@bagelink/vue 1.15.61 → 1.15.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/layout/AppSidebar.vue.d.ts.map +1 -1
- package/dist/components/layout/Divider.vue.d.ts.map +1 -1
- package/dist/components/layout/SidebarNavItem.vue.d.ts +3 -1
- package/dist/components/layout/SidebarNavItem.vue.d.ts.map +1 -1
- package/dist/index.cjs +11 -11
- package/dist/index.mjs +1392 -1383
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Dropdown.vue +1 -1
- package/src/components/layout/AppSidebar.vue +1 -0
- package/src/components/layout/Divider.vue +2 -9
- package/src/components/layout/SidebarNavItem.vue +82 -41
- package/src/styles/dark.css +13 -0
- package/src/styles/text.css +38 -6
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@ ${r.event.url}`),`https://calendar.google.com/calendar/render?${g.toString()}`})
|
|
|
7
7
|
<div class="gap-025 flex">
|
|
8
8
|
<p class="bold txt18">${A(P.value)}</p>
|
|
9
9
|
<p>|</p>
|
|
10
|
-
<p class="bold txt18">${E(P.percentage)}</p></div>`}return(P,N)=>{const V=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"chartRef",ref:l,class:"h-100p flex column flex-stretch"},[(0,n.createElementVNode)("div",Ib,[(0,n.createElementVNode)("div",Vb,[(0,n.createVNode)((0,n.unref)(ge),{name:e.icon,size:"1.2",color:e.color,class:"line-height-0"},null,8,["name","color"]),(0,n.createElementVNode)("p",Ob,(0,n.toDisplayString)(e.title),1)]),e.percentageChange!==0?((0,n.openBlock)(),(0,n.createElementBlock)("div",Rb,[(0,n.createVNode)((0,n.unref)(ge),{class:(0,n.normalizeClass)(["line-height-1",e.percentageChange>0?"color-success":"color-danger"]),name:e.percentageChange>0?"trending_up":"trending_down",size:"1"},null,8,["name","class"]),(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(["txt12 bold",e.percentageChange>0?"color-success":"color-danger"])},(0,n.toDisplayString)(Math.abs(e.percentageChange))+"% ",3)])):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["chart-container flex space-between gap-1 flex-wrap flex-grow",{"with-legend":e.showLegend,"with-connectors":e.showConnectorLines}])},[((0,n.openBlock)(),(0,n.createElementBlock)("svg",{width:p.value.width,height:p.value.height,class:"chart-svg mx-auto flex-shrink-0",style:(0,n.normalizeStyle)(e.showConnectorLines?"overflow: visible;":"")},[(0,n.createElementVNode)("g",{transform:`translate(${h.value.x}, ${h.value.y})`},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value.filter(x=>x.visible),(x,T)=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("path",{key:T,d:x.path,fill:x.color,class:"pie-segment",stroke:"white","stroke-width":"2"},null,8,Ub)),[[V,{content:k(x),html:!0}]])),128)),e.donut&&(e.showCenterTotal||e.centerValue!==void 0)?((0,n.openBlock)(),(0,n.createElementBlock)("g",Hb,[(0,n.createElementVNode)("text",Wb,(0,n.toDisplayString)(e.centerLabel),1),(0,n.createElementVNode)("text",jb,(0,n.toDisplayString)(A(y.value)),1)])):(0,n.createCommentVNode)("",!0),e.showConnectorLines?((0,n.openBlock)(),(0,n.createElementBlock)("g",qb,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value.filter(x=>x.visible),(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("g",{key:`line-${T}`},[(0,n.createElementVNode)("polyline",{points:`${g(x).innerX},${g(x).innerY} ${g(x).outerX},${g(x).outerY} ${g(x).labelX},${g(x).labelY}`,stroke:"#333","stroke-width":"1.5",fill:"none"},null,8,Gb)]))),128))])):(0,n.createCommentVNode)("",!0),e.showLabelsOnChart?((0,n.openBlock)(),(0,n.createElementBlock)("g",Yb,[e.showConnectorLines?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("g",Xb,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value.filter(x=>x.visible),(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:`label-${T}`,x:b(x).x,y:b(x).y-5,"text-anchor":"middle","dominant-baseline":"middle",class:"chart-label txt12 pointer-events-none",fill:e.labelColor},(0,n.toDisplayString)(x.label),9,Kb))),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value.filter(x=>x.visible),(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:`value-${T}`,x:b(x).x,y:b(x).y+12,"text-anchor":"middle","dominant-baseline":"middle",class:"chart-value txt16 mt-1 line-height-2 bold pointer-events-none",fill:e.labelColor},(0,n.toDisplayString)(A(x.value)),9,Jb))),128))])),e.showConnectorLines?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value.filter(x=>x.visible),(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:`label-line-${T}`,x:g(x).labelX,y:g(x).labelY-8,"text-anchor":g(x).textAnchor,"dominant-baseline":"middle",class:"chart-label txt12 bold",fill:e.labelColor},(0,n.toDisplayString)(x.label),9,Zb))),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value.filter(x=>x.visible),(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:`value-line-${T}`,x:g(x).labelX,y:g(x).labelY+2,"text-anchor":g(x).textAnchor,"dominant-baseline":"middle",class:"chart-value txt11",fill:"#666"},(0,n.toDisplayString)(A(x.value)),9,Qb))),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value.filter(x=>x.visible),(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:`percentage-${T}`,x:g(x).labelX,y:g(x).labelY+15,"text-anchor":g(x).textAnchor,"dominant-baseline":"middle",class:"chart-percentage txt10 pointer-events-none",fill:"#999"}," ("+(0,n.toDisplayString)(E(x.percentage))+") ",9,e1))),128))],64)):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0)],8,zb)],12,Fb)),e.showLegend?((0,n.openBlock)(),(0,n.createElementBlock)("div",t1,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value,(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:T,class:"gap-1 flex align-items-center txt14 justify-content-start"},[(0,n.createElementVNode)("div",{class:"legend-color flex-shrink-0 radius-05",style:(0,n.normalizeStyle)({backgroundColor:x.color})},null,4),x.label?((0,n.openBlock)(),(0,n.createElementBlock)("span",n1,(0,n.toDisplayString)(x.label),1)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",r1,(0,n.toDisplayString)(A(x.value)),1),(0,n.createElementVNode)("span",o1,"("+(0,n.toDisplayString)(E(x.percentage))+")",1)]))),128))])):(0,n.createCommentVNode)("",!0)],2)],512)}}}),i1=we(a1,[["__scopeId","data-v-2aaa0ea6"]]),l1={key:0},s1=["src","alt","width","height"],c1=["src","alt","width","height"],u1=(0,n.defineComponent)({name:"BglImage",__name:"Image",props:{src:{},pathKey:{},alt:{},width:{},height:{},caption:{},modelValue:{}},setup(e){const t=e,r=(0,n.ref)(void 0),o=(0,n.ref)(!1);function a(){if(!((t.src===void 0||t.src==="")&&(t.pathKey===void 0||t.pathKey==="")&&(t.modelValue===void 0||t.modelValue==="")))return fn(t.src??t.pathKey??t.modelValue)}async function i(u){if("caches"in window)try{const d=await(await window.caches.open("img-cache")).match(u);if(d)return URL.createObjectURL(await d.blob())}catch{}}async function l(u,d){if("caches"in window)try{await(await window.caches.open("img-cache")).put(u,new Response(d))}catch{}}async function s(u){await Ga("https://cdnjs.cloudflare.com/ajax/libs/heic2any/0.0.1/index.min.js");const d=await(await Sa("heic2any"))({blob:await(await fetch(Wu(u))).blob()});return await l(u,d),URL.createObjectURL(d)}async function c(){o.value=!1;const u=a();if(u===void 0||u===""){r.value=void 0;return}try{if(u.split(".").pop()?.toLowerCase().split("?")[0]==="heic"){const d=await i(u);if(d!==void 0&&d!==""){r.value=d;return}r.value=await s(u)}else r.value=u}catch{o.value=!0,r.value=void 0}}return(0,n.watch)(()=>[t.src,t.pathKey,t.modelValue],c,{immediate:!0}),(u,d)=>e.caption?((0,n.openBlock)(),(0,n.createElementBlock)("figcaption",l1,[r.value?((0,n.openBlock)(),(0,n.createElementBlock)("img",(0,n.mergeProps)({key:0,src:r.value},u.$attrs,{alt:e.alt,width:(0,n.unref)(cn)(e.width),height:(0,n.unref)(cn)(e.height)}),null,16,s1)):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Ki),{key:1,class:"img-web-kit",width:(0,n.unref)(cn)(e.width),height:(0,n.unref)(cn)(e.height)},null,8,["width","height"]))])):r.value?((0,n.openBlock)(),(0,n.createElementBlock)("img",(0,n.mergeProps)({key:1,src:r.value},u.$attrs,{alt:e.alt,width:(0,n.unref)(cn)(e.width),height:(0,n.unref)(cn)(e.height)}),null,16,c1)):o.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:2,class:"flex-center error-image",style:(0,n.normalizeStyle)({width:(0,n.unref)(cn)(e.width),height:(0,n.unref)(cn)(e.height)})},[(0,n.createVNode)((0,n.unref)(ge),{name:"broken_image"})],4)):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Ki),{key:3,class:"img-web-kit",width:(0,n.unref)(cn)(e.width),height:(0,n.unref)(cn)(e.height)},null,8,["width","height"]))}}),bo=we(u1,[["__scopeId","data-v-a568dbbb"]]),d1=(0,n.defineComponent)({name:"BglAvatar",__name:"Avatar",props:{fallback:{},src:{},name:{},icon:{},alt:{},size:{default:50},square:{type:[Boolean,Number]},color:{}},setup(e){const t=e,r=(0,n.computed)(()=>t.square?t.square===!0?"var(--bgl-btn-border-radius)":`${t.square}px`:"1000px"),o=(0,n.computed)(()=>t.color?{background:`var(--bgl-${t.color}-tint, color-mix(in srgb, var(--bgl-${t.color}) 14%, transparent))`,color:`var(--bgl-${t.color})`,border:"none"}:{});return(a,i)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"overflow-hidden txt-center p-0 avatar flex justify-content-center align-items-center",style:(0,n.normalizeStyle)({width:`${e.size}px`,height:`${e.size}px`,borderRadius:r.value,...o.value})},[e.src?((0,n.openBlock)(),(0,n.createBlock)(bo,{key:0,src:e.src,alt:e.alt||e.name},null,8,["src","alt"])):e.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,icon:e.icon,size:e.size/40},null,8,["icon","size"])):((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:2,style:(0,n.normalizeStyle)({"line-height":`${e.size}px`,"font-size":`calc(1.5rem * ${e.size} / 50)`})},(0,n.toDisplayString)((e.fallback||(0,n.unref)(Ug)(e.name||"")).toUpperCase()),5))],4))}}),Ip=we(d1,[["__scopeId","data-v-176eb199"]]),f1=["disabled"],m1={class:"flex h-100 justify-content-center relative"},p1={key:0,class:"loading absolute inset-0 mx-auto"},h1=(0,n.defineComponent)({name:"BglBadge",__name:"Badge",props:{disabled:{type:Boolean},icon:{},iconEnd:{},color:{},variant:{},flat:{type:Boolean},outline:{type:Boolean},glass:{type:Boolean},dot:{type:Boolean},border:{type:Boolean},loading:{type:Boolean},value:{},round:{type:Boolean},btn:{},btnEnd:{},size:{},sm:{type:Boolean},lg:{type:Boolean},uppercase:{type:Boolean}},setup(e){const t=e,r=(0,n.useSlots)(),o=(0,n.computed)(()=>t.disabled?"gray-light":t.color),a=(0,n.computed)(()=>{const u=o.value;return u?`pair-${u}`:"pair-primary"}),i=(0,n.computed)(()=>`var(--bgl-${(o.value||"primary").replace(/-(light|tint|10|20|30|40|50|60|70)$/,"")})`),l=(0,n.computed)(()=>t.size?t.size:t.sm?"sm":t.lg?"lg":"md"),s=(0,n.computed)(()=>t.variant?t.variant:t.glass?"glass":t.flat?"flat":t.outline||t.border?"outline":"solid"),c=(0,n.computed)(()=>{const u={bgl_pill:!t.icon||!!r.default||!!t.value,round:t.round,bgl_flatPill:s.value==="flat","bgl_pill-border":s.value==="outline",bgl_glassPill:s.value==="glass",pillLarge:l.value==="lg",pillSmall:l.value==="sm"};return u[a.value]=!0,u});return(u,d)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["bgl_pill",c.value]),style:{height:"var(--bgl-pill-height)"},disabled:e.disabled},[(0,n.createElementVNode)("div",m1,[e.loading?((0,n.openBlock)(),(0,n.createElementBlock)("div",p1)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["px-025 flex gap-025 justify-content-center align-items-center",{"opacity-0":e.loading}])},[e.btn?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),(0,n.mergeProps)({key:0,class:"bgl_pill-btn -ms-025","icon-size":"0.8",round:""},e.btn),null,16)):(0,n.createCommentVNode)("",!0),e.dot?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:1,class:"bgl_pill-dot",style:(0,n.normalizeStyle)({background:i.value})},null,4)):(0,n.createCommentVNode)("",!0),e.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:2,class:"line-height-0",icon:e.icon,style:{"font-size":"var(--bgl-pill-font-size)"}},null,8,["icon"])):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(u.$slots,"default",{class:(0,n.normalizeClass)({uppercase:e.uppercase})},void 0,!0),(0,n.unref)(r).default?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:3,class:(0,n.normalizeClass)(["pillText inline",{uppercase:e.uppercase}])},(0,n.toDisplayString)(e.value),3)),e.iconEnd?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:4,class:"line-height-0",icon:e.iconEnd,style:{"font-size":"var(--bgl-pill-font-size)"}},null,8,["icon"])):(0,n.createCommentVNode)("",!0),e.btnEnd?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),(0,n.mergeProps)({key:5,class:"bgl_pill-btn -me-025","icon-size":"0.8",round:""},e.btnEnd),null,16)):(0,n.createCommentVNode)("",!0)],2)])],10,f1))}}),Vp=we(h1,[["__scopeId","data-v-58c72113"]]);function Yc(e){return(0,n.getCurrentScope)()?((0,n.onScopeDispose)(e),!0):!1}var Ia=typeof window<"u"&&typeof document<"u",MR=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,g1=e=>e!=null,v1=Object.prototype.toString,y1=e=>v1.call(e)==="[object Object]",hd=()=>+Date.now(),Wt=()=>{},b1=_1();function _1(){var e,t;return Ia&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Xc(e,t){function r(...o){return new Promise((a,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(a).catch(i)})}return r}var w1=e=>e();function Op(e,t={}){let r,o,a=Wt;const i=c=>{clearTimeout(c),a(),a=Wt};let l;return c=>{const u=(0,n.toValue)(e),d=(0,n.toValue)(t.maxWait);return r&&i(r),u<=0||d!==void 0&&d<=0?(o&&(i(o),o=void 0),Promise.resolve(c())):new Promise((f,m)=>{a=t.rejectOnCancel?m:f,l=c,d&&!o&&(o=setTimeout(()=>{r&&i(r),o=void 0,f(l())},d)),r=setTimeout(()=>{o&&i(o),o=void 0,f(c())},u)})}}function $1(...e){let t=0,r,o=!0,a=Wt,i,l,s,c,u;!(0,n.isRef)(e[0])&&typeof e[0]=="object"?{delay:l,trailing:s=!0,leading:c=!0,rejectOnCancel:u=!1}=e[0]:[l,s=!0,c=!0,u=!1]=e;const d=()=>{r&&(clearTimeout(r),r=void 0,a(),a=Wt)};return m=>{const p=(0,n.toValue)(l),h=Date.now()-t,v=()=>i=m();return d(),p<=0?(t=Date.now(),v()):(h>p&&(c||!o)?(t=Date.now(),v()):s&&(i=new Promise((b,g)=>{a=u?g:b,r=setTimeout(()=>{t=Date.now(),o=!0,b(v()),d()},Math.max(0,p-h))})),!c&&!r&&(r=setTimeout(()=>o=!0,p)),o=!1,i)}}function gd(e,t=!1,r="Timeout"){return new Promise((o,a)=>{setTimeout(t?()=>a(r):o,e)})}function ea(e){return Array.isArray(e)?e:[e]}function Rp(e){const t=Object.create(null);return r=>t[r]||(t[r]=e(r))}var k1=/\B([A-Z])/g,LR=Rp(e=>e.replace(k1,"-$1").toLowerCase()),E1=/-(\w)/g,PR=Rp(e=>e.replace(E1,(t,r)=>r?r.toUpperCase():""));function C1(e){return e||(0,n.getCurrentInstance)()}function Vr(e,t=200,r={}){return Xc(Op(t,r),e)}function S1(e,t,r={}){const{eventFilter:o=w1,...a}=r;return(0,n.watch)(e,Xc(o,t),a)}function x1(e,t=!0,r){C1(r)?(0,n.onMounted)(e,r):t?e():(0,n.nextTick)(e)}function Rs(e,t=!1){function r(f,{flush:m="sync",deep:p=!1,timeout:h,throwOnTimeout:v}={}){let b=null;const g=[new Promise(y=>{b=(0,n.watch)(e,_=>{f(_)!==t&&(b?b():(0,n.nextTick)(()=>b?.()),y(_))},{flush:m,deep:p,immediate:!0})})];return h!=null&&g.push(gd(h,v).then(()=>(0,n.toValue)(e)).finally(()=>b?.())),Promise.race(g)}function o(f,m){if(!(0,n.isRef)(f))return r(_=>_===f,m);const{flush:p="sync",deep:h=!1,timeout:v,throwOnTimeout:b}=m??{};let g=null;const y=[new Promise(_=>{g=(0,n.watch)([e,f],([w,$])=>{t!==(w===$)&&(g?g():(0,n.nextTick)(()=>g?.()),_(w))},{flush:p,deep:h,immediate:!0})})];return v!=null&&y.push(gd(v,b).then(()=>(0,n.toValue)(e)).finally(()=>(g?.(),(0,n.toValue)(e)))),Promise.race(y)}function a(f){return r(m=>!!m,f)}function i(f){return o(null,f)}function l(f){return o(void 0,f)}function s(f){return r(Number.isNaN,f)}function c(f,m){return r(p=>{const h=Array.from(p);return h.includes(f)||h.includes((0,n.toValue)(f))},m)}function u(f){return d(1,f)}function d(f=1,m){let p=-1;return r(()=>(p+=1,p>=f),m)}return Array.isArray((0,n.toValue)(e))?{toMatch:r,toContains:c,changed:u,changedTimes:d,get not(){return Rs(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:a,toBeNull:i,toBeNaN:s,toBeUndefined:l,changed:u,changedTimes:d,get not(){return Rs(e,!t)}}}function T1(e){return Rs(e)}function N1(e,t,r={}){const{debounce:o=0,maxWait:a=void 0,...i}=r;return S1(e,t,{...i,eventFilter:Op(o,{maxWait:a})})}function D1(e,t,r){return(0,n.watch)(e,t,{...r,immediate:!0})}var Ao=Ia?window:void 0,IR=Ia?window.document:void 0,VR=Ia?window.navigator:void 0,OR=Ia?window.location:void 0;function It(e){var t;const r=(0,n.toValue)(e);return(t=r?.$el)!=null?t:r}function fo(...e){const t=[],r=()=>{t.forEach(s=>s()),t.length=0},o=(s,c,u,d)=>(s.addEventListener(c,u,d),()=>s.removeEventListener(c,u,d)),a=(0,n.computed)(()=>{const s=ea((0,n.toValue)(e[0])).filter(c=>c!=null);return s.every(c=>typeof c!="string")?s:void 0}),i=D1(()=>{var s,c;return[(c=(s=a.value)==null?void 0:s.map(u=>It(u)))!=null?c:[Ao].filter(u=>u!=null),ea((0,n.toValue)(a.value?e[1]:e[0])),ea((0,n.unref)(a.value?e[2]:e[1])),(0,n.toValue)(a.value?e[3]:e[2])]},([s,c,u,d])=>{if(r(),!s?.length||!c?.length||!u?.length)return;const f=y1(d)?{...d}:d;t.push(...s.flatMap(m=>c.flatMap(p=>u.map(h=>o(m,p,h,f)))))},{flush:"post"}),l=()=>{i(),r()};return Yc(r),l}var vd=!1;function A1(e,t,r={}){const{window:o=Ao,ignore:a=[],capture:i=!0,detectIframe:l=!1,controls:s=!1}=r;if(!o)return s?{stop:Wt,cancel:Wt,trigger:Wt}:Wt;if(b1&&!vd){vd=!0;const b={passive:!0};Array.from(o.document.body.children).forEach(g=>g.addEventListener("click",Wt,b)),o.document.documentElement.addEventListener("click",Wt,b)}let c=!0;const u=b=>(0,n.toValue)(a).some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(y=>y===b.target||b.composedPath().includes(y));{const y=It(g);return y&&(b.target===y||b.composedPath().includes(y))}});function d(b){const g=(0,n.toValue)(b);return g&&g.$.subTree.shapeFlag===16}function f(b,g){const y=(0,n.toValue)(b),_=y.$.subTree&&y.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(w=>w.el===g.target||g.composedPath().includes(w.el))}const m=b=>{const g=It(e);if(b.target!=null&&!(!(g instanceof Element)&&d(e)&&f(e,b))&&!(!g||g===b.target||b.composedPath().includes(g))){if("detail"in b&&b.detail===0&&(c=!u(b)),!c){c=!0;return}t(b)}};let p=!1;const h=[fo(o,"click",b=>{p||(p=!0,setTimeout(()=>{p=!1},0),m(b))},{passive:!0,capture:i}),fo(o,"pointerdown",b=>{const g=It(e);c=!u(b)&&!!(g&&!b.composedPath().includes(g))},{passive:!0}),l&&fo(o,"blur",b=>{setTimeout(()=>{var g;const y=It(e);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!y?.contains(o.document.activeElement)&&t(b)},0)},{passive:!0})].filter(Boolean),v=()=>h.forEach(b=>b());return s?{stop:v,cancel:()=>{c=!1},trigger:b=>{c=!0,m(b),c=!1}}:v}function B1(){const e=(0,n.shallowRef)(!1),t=(0,n.getCurrentInstance)();return t&&(0,n.onMounted)(()=>{e.value=!0},t),e}function Fp(e){const t=B1();return(0,n.computed)(()=>(t.value,!!e()))}function zp(e,t,r={}){const{window:o=Ao,...a}=r;let i;const l=Fp(()=>o&&"ResizeObserver"in o),s=()=>{i&&(i.disconnect(),i=void 0)},c=(0,n.watch)((0,n.computed)(()=>{const d=(0,n.toValue)(e);return Array.isArray(d)?d.map(f=>It(f)):[It(d)]}),d=>{if(s(),l.value&&o){i=new ResizeObserver(t);for(const f of d)f&&i.observe(f,a)}},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return Yc(u),{isSupported:l,stop:u}}function M1(e,t={width:0,height:0},r={}){const{window:o=Ao,box:a="content-box"}=r,i=(0,n.computed)(()=>{var f,m;return(m=(f=It(e))==null?void 0:f.namespaceURI)==null?void 0:m.includes("svg")}),l=(0,n.shallowRef)(t.width),s=(0,n.shallowRef)(t.height),{stop:c}=zp(e,([f])=>{const m=a==="border-box"?f.borderBoxSize:a==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&i.value){const p=It(e);if(p){const h=p.getBoundingClientRect();l.value=h.width,s.value=h.height}}else if(m){const p=ea(m);l.value=p.reduce((h,{inlineSize:v})=>h+v,0),s.value=p.reduce((h,{blockSize:v})=>h+v,0)}else l.value=f.contentRect.width,s.value=f.contentRect.height},r);x1(()=>{const f=It(e);f&&(l.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=(0,n.watch)(()=>It(e),f=>{l.value=f?t.width:0,s.value=f?t.height:0});function d(){c(),u()}return{width:l,height:s,stop:d}}function Up(e,t,r={}){const{root:o,rootMargin:a="0px",threshold:i=0,window:l=Ao,immediate:s=!0}=r,c=Fp(()=>l&&"IntersectionObserver"in l),u=(0,n.computed)(()=>ea((0,n.toValue)(e)).map(It).filter(g1));let d=Wt;const f=(0,n.shallowRef)(s),m=c.value?(0,n.watch)(()=>[u.value,It(o),f.value],([h,v])=>{if(d(),!f.value||!h.length)return;const b=new IntersectionObserver(t,{root:It(v),rootMargin:a,threshold:i});h.forEach(g=>g&&b.observe(g)),d=()=>{b.disconnect(),d=Wt}},{immediate:s,flush:"post"}):Wt,p=()=>{d(),m(),f.value=!1};return Yc(p),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:p}}var L1=["mousemove","mousedown","resize","keydown","touchstart","wheel"],P1=6e4;function I1(e=P1,t={}){const{initialState:r=!1,listenForVisibilityChange:o=!0,events:a=L1,window:i=Ao,eventFilter:l=$1(50)}=t,s=(0,n.shallowRef)(r),c=(0,n.shallowRef)(hd());let u;const d=()=>{s.value=!1,clearTimeout(u),u=setTimeout(()=>s.value=!0,e)},f=Xc(l,()=>{c.value=hd(),d()});if(i){const m=i.document,p={passive:!0};for(const h of a)fo(i,h,f,p);o&&fo(m,"visibilitychange",()=>{m.hidden||f()},p),r||d()}return{idle:s,lastActive:c,reset:d}}var RR=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}];function V1(e,t){const{containerStyle:r,wrapperProps:o,scrollTo:a,calculateRange:i,currentList:l,containerRef:s}="itemHeight"in t?F1(t,e):R1(t,e);return{list:l,scrollTo:a,containerProps:{ref:s,onScroll:()=>{i()},style:r},wrapperProps:o}}function Hp(e){const t=(0,n.shallowRef)(null),r=M1(t),o=(0,n.ref)([]),a=(0,n.shallowRef)(e);return{state:(0,n.ref)({start:0,end:10}),source:a,currentList:o,size:r,containerRef:t}}function Wp(e,t,r){return o=>{if(typeof r=="number")return Math.ceil(o/r);const{start:a=0}=e.value;let i=0,l=0;for(let s=a;s<t.value.length;s++){const c=r(s);if(i+=c,l=s,i>o)break}return l-a}}function jp(e,t){return r=>{if(typeof t=="number")return Math.floor(r/t)+1;let o=0,a=0;for(let i=0;i<e.value.length;i++){const l=t(i);if(o+=l,o>=r){a=i;break}}return a+1}}function qp(e,t,r,o,{containerRef:a,state:i,currentList:l,source:s}){return()=>{const c=a.value;if(c){const u=r(e==="vertical"?c.scrollTop:c.scrollLeft),d=o(e==="vertical"?c.clientHeight:c.clientWidth),f=u-t,m=u+d+t;i.value={start:f<0?0:f,end:m>s.value.length?s.value.length:m},l.value=s.value.slice(i.value.start,i.value.end).map((p,h)=>({data:p,index:h+i.value.start}))}}}function Gp(e,t){return r=>typeof e=="number"?r*e:t.value.slice(0,r).reduce((o,a,i)=>o+e(i),0)}function Yp(e,t,r,o){(0,n.watch)([e.width,e.height,()=>(0,n.toValue)(t),r],()=>{o()})}function Xp(e,t){return(0,n.computed)(()=>typeof e=="number"?t.value.length*e:t.value.reduce((r,o,a)=>r+e(a),0))}var O1={horizontal:"scrollLeft",vertical:"scrollTop"};function Kp(e,t,r,o){return a=>{o.value&&(o.value[O1[e]]=r(a),t())}}function R1(e,t){const r=Hp(t),{state:o,source:a,currentList:i,size:l,containerRef:s}=r,c={overflowX:"auto"},{itemWidth:u,overscan:d=5}=e,f=Wp(o,a,u),m=qp("horizontal",d,jp(a,u),f,r),p=Gp(u,a),h=(0,n.computed)(()=>p(o.value.start)),v=Xp(u,a);return Yp(l,t,s,m),{scrollTo:Kp("horizontal",m,p,s),calculateRange:m,wrapperProps:(0,n.computed)(()=>({style:{height:"100%",width:`${v.value-h.value}px`,marginLeft:`${h.value}px`,display:"flex"}})),containerStyle:c,currentList:i,containerRef:s}}function F1(e,t){const r=Hp(t),{state:o,source:a,currentList:i,size:l,containerRef:s}=r,c={overflowY:"auto"},{itemHeight:u,overscan:d=5}=e,f=Wp(o,a,u),m=qp("vertical",d,jp(a,u),f,r),p=Gp(u,a),h=(0,n.computed)(()=>p(o.value.start)),v=Xp(u,a);return Yp(l,t,s,m),{calculateRange:m,scrollTo:Kp("vertical",m,p,s),containerStyle:c,wrapperProps:(0,n.computed)(()=>({style:{width:"100%",height:`${v.value-h.value}px`,marginTop:`${h.value}px`}})),currentList:i,containerRef:s}}var z1=["src"],U1=["autoplay","muted","loop","controls","playsinline"],H1=["src","type"],W1=(0,n.defineComponent)({__name:"BglVideo",props:{src:{},autoplay:{type:[Boolean,String]},mute:{type:Boolean},aspectRatio:{},controls:{type:Boolean},loop:{type:Boolean},status:{},playsinline:{type:Boolean}},setup(e,{expose:t}){const r=e,o=(0,n.computed)(()=>r.src?.split(".").pop()?.split("?").shift()?.toLowerCase()??"mp4"),a=(0,n.ref)(),i=(0,n.computed)(()=>r.src?.includes("youtube.com/shorts/")??!1),l=(0,n.computed)(()=>i.value?"9/16":r.aspectRatio?.replace(":","/")??"16/9"),s=(0,n.ref)();function c(){s.value?.play()}function u(){s.value?.pause()}r.autoplay==="visible"&&Up(a,([{isIntersecting:m}])=>{m?c():u()},{threshold:.3}),(0,n.watch)(()=>r.status,m=>{m==="play"&&c(),m==="pause"&&u()}),t({play:c,pause:u});const d=(0,n.computed)(()=>{if(/youtube\.com|youtu\.be/.test(r.src??""))return"YouTube";if(/(?:player\.)?vimeo\.com/.test(r.src??""))return"Vimeo"}),f=(0,n.computed)(()=>{if(d.value==="YouTube"){let m="";r.src?.includes("youtube.com/shorts/")===!0?m=r.src.split("/shorts/")[1]?.split("?")[0]??"":m=r.src?.split(/v=|youtu\.be\//)[1]?.split("&")?.[0]??"";const p=new URLSearchParams({autoplay:r.autoplay===!0||r.autoplay==="visible"?"1":"0",controls:"0",showinfo:"0",modestbranding:"1"});return`https://www.youtube.com/embed/${m}?${p}`}if(d.value==="Vimeo"){const m=/player\.vimeo\.com\/video\/(\d+)/,p=/vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|album\/(\d+)\/video\/)?(\d+)(?:$|\/|\?)/,h=r.src?.match(m)??null,v=r.src?.match(p)??null;return`https://player.vimeo.com/video/${h?.[1]??v?.[3]}`}return r.src});return(m,p)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"videoContainer",ref:a,class:(0,n.normalizeClass)(["bgl_vid",{vid_empty:!e.src,vid_short:i.value}])},[d.value?((0,n.openBlock)(),(0,n.createElementBlock)("iframe",{key:0,src:f.value,style:(0,n.normalizeStyle)({aspectRatio:l.value}),frameborder:"0",title:"Video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerpolicy:"strict-origin-when-cross-origin",allowfullscreen:""},null,12,z1)):e.src?((0,n.openBlock)(),(0,n.createElementBlock)("video",{key:1,ref_key:"video",ref:s,autoplay:e.autoplay===!0,muted:e.mute,loop:e.loop,style:(0,n.normalizeStyle)({aspectRatio:l.value}),controls:e.controls,playsinline:e.playsinline},[(0,n.createElementVNode)("source",{src:e.src,type:`video/${o.value}`},null,8,H1)],12,U1)):(0,n.createCommentVNode)("",!0)],2))}}),Kc=we(W1,[["__scopeId","data-v-acc6c65e"]]),j1=(0,n.defineComponent)({__name:"CalendarPopover",props:{event:{},targetElement:{},position:{},show:{type:Boolean},hasEventContentSlot:{type:Boolean}},emits:["close","eventClick"],setup(e,{emit:t}){const r=e,o=t,{scrollY:a,scrollX:i,innerHeight:l,innerWidth:s}=ja(),c=(0,n.ref)(),u=(0,n.computed)(()=>{if(r.position){let{top:p,left:h}=r.position;return p-=80,p=Math.max(a.value+10,Math.min(p,l.value+a.value-150-10)),h=Math.max(i.value+10,Math.min(h,s.value+i.value-400-10)),{top:p,left:h,width:400,height:150}}if(r.targetElement&&r.show){const p=r.targetElement.getBoundingClientRect();let h=p.top+a.value+p.height/2-150/2,v=p.left+i.value+p.width+10;return h=Math.max(a.value+10,Math.min(h,l.value+a.value-150-10)),v+400>s.value+i.value&&(v=p.left+i.value-400+p.width-10),v<i.value&&(v=p.right+i.value+10),{top:h,left:v,width:400,height:150}}return{top:0,left:0,width:400,height:150}});function d(){o("close")}return(f,m)=>{const p=(0,n.resolveDirective)("click-outside");return e.show&&e.event?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ar),{key:0,ref_key:"popoverRef",ref:c,thin:"",class:"custom-popover",style:(0,n.normalizeStyle)({top:`${u.value.top}px`,left:`${u.value.left}px`,maxWidth:`${u.value.width}px`})},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(f.$slots,"eventContent",{event:e.event,close:d},void 0,!0)]),_:3},8,["style"])),[[p,d]]):(0,n.createCommentVNode)("",!0)}}}),q1=we(j1,[["__scopeId","data-v-291fefea"]]),G1={key:0,class:"flex h-100p justify-content-center column gap-1 opacity-3"},Y1=["data-date","data-today"],X1={class:"bg-white border line-height-12 radius-1 grid align-items-center px-05 py-025 txt-center"},K1={class:"txt18"},J1={class:"txt12"},Z1={class:"line-height-12"},Q1={class:"txt12 opacity-6"},e_={key:0,class:"ms-auto"},t_=["onClick"],n_={class:"agenda-event-time txt-center pt-1 txt14 opacity-6 bold relative"},r_={class:"flex space-between"},o_={class:"txt16 m-0 semi"},a_={class:"txt12 opacity-6"},i_={key:0,class:"txt12 opacity-6"},l_=(0,n.defineComponent)({__name:"AgendaView",props:{events:{},startDate:{}},emits:["eventClick","dateChange","openPopover"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.useSlots)(),{t:i}=ft(),l=(0,n.ref)(null);function s(){try{return $r().global.locale.value}catch{return"en"}}function c(v){if(v<60)return`${v} min`;const b=Math.floor(v/60),g=v%60;return g?`${b}h ${g}m`:`${b}h`}const u=(0,n.computed)(()=>{const v=s(),b=new Date().toDateString(),g=[...r.events].sort((_,w)=>new Date(_.start_time).getTime()-new Date(w.start_time).getTime()),y=new Map;for(const _ of g){const w=new Date(_.start_time),$=w.toDateString();y.has($)||y.set($,{dateKey:$,date:w,dayNumber:w.toLocaleDateString(v,{day:"2-digit"}),monthShort:w.toLocaleDateString(v,{month:"short"}),weekdayLong:w.toLocaleDateString(v,{weekday:"long"}),isToday:$===b,events:[]});const A=Math.round((new Date(_.end_time).getTime()-new Date(_.start_time).getTime())/6e4);y.get($).events.push({..._,durationMin:A})}return Array.from(y.values())}),d=(0,n.ref)(!1);function f(){if(!l.value)return;const v=l.value,b=v.querySelectorAll(".agenda-day-group"),g=v.getBoundingClientRect().top;let y=null,_=1/0;if(b.forEach(w=>{const $=Math.abs(w.getBoundingClientRect().top-g);$<_&&(_=$,y=w)}),y){const w=y.dataset.date;w&&o("dateChange",new Date(w))}}function m(v,b){if(!a.eventContent){o("eventClick",v);return}if(b){const g=b.currentTarget.getBoundingClientRect();o("openPopover",v,{top:g.top+window.scrollY+g.height/2,left:g.left+window.scrollX+g.width+10})}else o("openPopover",v)}function p(v){const b=new Date(v);return b.setHours(0,0,0,0),b.getTime()}function h(v,b="instant",g="nearest"){if(!l.value)return;const y=Array.from(l.value.querySelectorAll(".agenda-day-group"));if(!y.length)return;const _=p(v);let w=null,$=1/0;if(g==="forward")for(const A of y){const E=A.dataset.date;if(!E)continue;const k=p(new Date(E));k>=_&&k-_<$&&($=k-_,w=A)}else if(g==="backward")for(const A of y){const E=A.dataset.date;if(!E)continue;const k=p(new Date(E));k<=_&&_-k<$&&($=_-k,w=A)}if(!w)for(const A of y){const E=A.dataset.date;if(!E)continue;const k=Math.abs(p(new Date(E))-_);k<$&&($=k,w=A)}w?.scrollIntoView({block:"start",behavior:b})}return(0,n.watch)(()=>r.startDate,(v,b)=>{const g=!b||p(v)>=p(b)?"forward":"backward";(0,n.nextTick)(()=>h(v,"smooth",g))}),(0,n.watchEffect)(()=>{if(d.value||!u.value.length)return;const v=new Date().getTime();u.value.some(b=>b.date.getTime()>=v-864e5)&&(d.value=!0,(0,n.nextTick)(()=>h(new Date,"instant","nearest")))}),(0,n.onMounted)(()=>{l.value?.addEventListener("scroll",f)}),(0,n.onUnmounted)(()=>{l.value?.removeEventListener("scroll",f)}),(v,b)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"containerRef",ref:l,class:"display-flex column h-100p overflow gap-0"},[u.value.length===0?((0,n.openBlock)(),(0,n.createElementBlock)("div",G1,[(0,n.createVNode)((0,n.unref)(ge),{icon:"calendar",size:"4",weight:"200"}),(0,n.createTextVNode)(" "+(0,n.toDisplayString)((0,n.unref)(i)("calendar.agenda.noEvents")),1)])):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(u.value,g=>((0,n.openBlock)(),(0,n.createElementBlock)("section",{key:g.dateKey,class:"mb-1 agenda-day-group","data-date":g.date.toISOString(),"data-today":g.isToday||void 0},[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["sticky z-2 flex gap-05 p-1 m_p-05 mb-05",{"bg-primary-light":g.isToday,"bg-bg":!g.isToday}])},[(0,n.createElementVNode)("div",X1,[(0,n.createElementVNode)("p",K1,(0,n.toDisplayString)(g.dayNumber),1),(0,n.createElementVNode)("p",J1,(0,n.toDisplayString)(g.monthShort),1)]),(0,n.createElementVNode)("div",null,[(0,n.createElementVNode)("p",Z1,(0,n.toDisplayString)(g.weekdayLong),1),(0,n.createElementVNode)("p",Q1,(0,n.toDisplayString)((0,n.unref)(i)("calendar.agenda.eventsCount",g.events.length,{named:{n:g.events.length}})),1)]),g.isToday?((0,n.openBlock)(),(0,n.createElementBlock)("p",e_,(0,n.toDisplayString)((0,n.unref)(i)("calendar.today")),1)):(0,n.createCommentVNode)("",!0)],2),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(g.events,y=>((0,n.openBlock)(),(0,n.createElementBlock)("article",{key:y.id,class:"agenda-event-row grid gap-05 hover pe-1",onClick:(0,n.withModifiers)(_=>m(y,_),["stop"])},[(0,n.createElementVNode)("div",n_,(0,n.toDisplayString)((0,n.unref)(it)(y.start_time,{format:"HH:mm"})),1),(0,n.createVNode)((0,n.unref)(ar),{class:"agenda-event-card overflow-hidden transition py-025 px-075 my-025",frame:"",style:(0,n.normalizeStyle)({"--event-color":y.color||"var(--bgl-primary)"})},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("div",r_,[(0,n.createElementVNode)("h3",o_,(0,n.toDisplayString)(y.title),1),(0,n.createElementVNode)("p",a_,(0,n.toDisplayString)(c(y.durationMin)),1)]),y.description?((0,n.openBlock)(),(0,n.createElementBlock)("p",i_,(0,n.toDisplayString)(y.description),1)):(0,n.createCommentVNode)("",!0)]),_:2},1032,["style"])],8,t_))),128))],8,Y1))),128))],512))}}),s_=we(l_,[["__scopeId","data-v-9aafb2d8"]]),c_={class:"w-100p overflow-hidden m_overflow h-100p grid"},u_={class:"border-bottom me-1 txt-center p-05 dayGrid"},d_={class:"overflow h-100p pe-05"},f_={class:"time-column"},m_={class:"events-column"},p_=["onClick"],h_={class:"event-content"},g_={class:"white-space ellipsis-1"},v_={class:"event-time opacity-8"},y_={class:"color-primary txt-12 p-025"},Ro=60,Fo=60,b_=(0,n.defineComponent)({__name:"DayView",props:{events:{},startDate:{}},emits:["eventClick","eventCreate","openPopover"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.useSlots)(),i={start:0,end:24},l=(0,n.ref)({isDragging:!1,start:null,end:null,startTime:null,endTime:null}),s=(0,n.ref)(0),c=(0,n.ref)(!1),u=(0,n.ref)(null),d=(0,n.computed)(()=>{const y=[];for(let _=i.start;_<i.end;_++)for(let w=0;w<60;w+=Fo)y.push({hour:_,minute:w,time:`${_.toString().padStart(2,"0")}:${w.toString().padStart(2,"0")}`});return y}),f=(0,n.computed)(()=>r.events.filter(y=>new Date(y.start_time).toDateString()===r.startDate.toDateString()).map(y=>{const _=new Date(y.start_time),w=new Date(y.end_time),$=_.getHours()*60+_.getMinutes(),A=w.getHours()*60+w.getMinutes(),E=$/Fo*Ro,k=Math.max((A-$)/Fo*Ro,30);return{...y,top:E,height:k}}));function m(){const y=new Date;c.value=y.toDateString()===r.startDate.toDateString(),s.value=(y.getHours()*60+y.getMinutes())/Fo*Ro}function p(y){y.target.closest(".time-slot")&&(l.value.isDragging=!0,l.value.start={x:y.clientX,y:y.clientY},l.value.startTime=b(y.clientY),document.addEventListener("mousemove",h),document.addEventListener("mouseup",v))}function h(y){l.value.isDragging&&(l.value.end={x:y.clientX,y:y.clientY},l.value.endTime=b(y.clientY))}function v(){if(!l.value.isDragging||!l.value.startTime||!l.value.endTime)return;let y=new Date(l.value.startTime),_=new Date(l.value.endTime);_<y&&([y,_]=[_,y]),o("eventCreate",{start_time:y,end_time:_}),l.value={isDragging:!1,start:null,end:null,startTime:null,endTime:null},document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",v)}function b(y){const _=document.querySelector(".time-slots")?.getBoundingClientRect();if(!_)return new Date;const w=y-_.top,$=Fo,A=w/Ro,E=Math.floor(A*$),k=new Date(r.startDate);return k.setHours(Math.floor(E/60)),k.setMinutes(E%60),k.setSeconds(0),k.setMilliseconds(0),k}function g(y,_){if(!a.eventContent){o("eventClick",y);return}if(_){const w=_.currentTarget.getBoundingClientRect();o("openPopover",y,{top:w.top+window.scrollY+w.height/2,left:w.left+window.scrollX+w.width+10})}else o("openPopover",y)}return(0,n.onMounted)(()=>{document.addEventListener("mousedown",p),m(),u.value=setInterval(m,6e4)}),(0,n.onUnmounted)(()=>{document.removeEventListener("mousedown",p),document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",v),u.value&&clearInterval(u.value)}),(y,_)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",c_,[(0,n.createElementVNode)("div",u_,[_[0]||(_[0]=(0,n.createElementVNode)("div",null,null,-1)),(0,n.createElementVNode)("div",null,(0,n.toDisplayString)((0,n.unref)(it)(e.startDate)),1)]),(0,n.createElementVNode)("div",d_,[(0,n.createElementVNode)("div",{class:"time-slots dayGrid border-end relative",onMousedown:p},[(0,n.createElementVNode)("div",f_,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(d.value,w=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:w.time,class:"time-slot txt-light txt-12 color-gray bg-gray-light border-start",style:(0,n.normalizeStyle)({height:`${Ro}px`})},(0,n.toDisplayString)(w.time),5))),128))]),(0,n.createElementVNode)("div",m_,[c.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"absolute end w-100p z-2 flex pointer-events-none",style:(0,n.normalizeStyle)({top:`${s.value}px`})},[..._[1]||(_[1]=[(0,n.createElementVNode)("div",{class:"current-time-dot h-10px aspect-ratio-1 round bg-primary"},null,-1),(0,n.createElementVNode)("div",{class:"current-time-line w-100p bg-primary"},null,-1)])],4)):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(f.value,w=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:w.id,class:"event absolute radius-05 overflow-hidden pointer transition z-1",style:(0,n.normalizeStyle)({top:`${w.top}px`,height:`${w.height}px`,backgroundColor:w.color||"var(--bgl-primary)"}),onClick:(0,n.withModifiers)($=>g(w,$),["stop"])},[(0,n.createElementVNode)("div",h_,[(0,n.createElementVNode)("div",g_,(0,n.toDisplayString)(w.title),1),(0,n.createElementVNode)("div",v_,(0,n.toDisplayString)((0,n.unref)(it)(new Date(w.start_time),{format:"HH:mm"}))+" - "+(0,n.toDisplayString)((0,n.unref)(it)(new Date(w.end_time),{format:"HH:mm"})),1)])],12,p_))),128))]),l.value.isDragging&&l.value.start&&l.value.end?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"drag-preview absolute bg-primary-tint pointer-events-none z-1",style:(0,n.normalizeStyle)({top:`${Math.min(l.value.start.y,l.value.end.y)}px`,height:`${Math.abs(l.value.end.y-l.value.start.y)}px`,left:"10px",right:"10px"})},[(0,n.createElementVNode)("div",y_,(0,n.toDisplayString)(l.value.startTime?(0,n.unref)(it)(l.value.startTime,{format:"HH:mm"}):"")+" - "+(0,n.toDisplayString)(l.value.endTime?(0,n.unref)(it)(l.value.endTime,{format:"HH:mm"}):""),1)],4)):(0,n.createCommentVNode)("",!0)],32)]),_[2]||(_[2]=(0,n.createElementVNode)("div",{class:"border-bottom me-1"},null,-1))]))}}),__=we(b_,[["__scopeId","data-v-f2670028"]]),w_={class:"month-view"},$_={class:"month-header"},k_={class:"month-grid"},E_={class:"day-number"},C_={class:"day-events"},S_={key:0,class:"event-dot"},x_=["onClick"],T_={class:"event-title"},N_={class:"event-time"},D_=(0,n.defineComponent)({__name:"MonthView",props:{events:{},startDate:{}},emits:["eventClick","openPopover"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.useSlots)(),{isMobile:i}=ja(),l=(0,n.computed)(()=>{let u="en";try{u=$r().global.locale.value}catch{}return Array.from({length:7},(d,f)=>new Date(2024,0,7+f).toLocaleDateString(u,{weekday:"short"}))}),s=(0,n.computed)(()=>{const u=r.startDate.getFullYear(),d=r.startDate.getMonth(),f=new Date(u,d,1),m=new Date(u,d+1,0).getDate(),p=f.getDay(),h=new Date().toDateString(),v=[],b=new Date(u,d,0).getDate();for(let y=p-1;y>=0;y--){const _=new Date(u,d-1,b-y);v.push({date:_,events:[],isToday:!1,isCurrentMonth:!1})}for(let y=1;y<=m;y++){const _=new Date(u,d,y),w=r.events.filter($=>{const A=new Date($.start_time);return A.getDate()===y&&A.getMonth()===d&&A.getFullYear()===u});v.push({date:_,events:w,isToday:_.toDateString()===h,isCurrentMonth:!0})}const g=42-v.length;for(let y=1;y<=g;y++){const _=new Date(u,d+1,y);v.push({date:_,events:[],isToday:!1,isCurrentMonth:!1})}return v});function c(u,d){if(!a.eventContent){o("eventClick",u);return}if(d){const f=d.currentTarget.getBoundingClientRect();o("openPopover",u,{top:f.top+window.scrollY+f.height/2,left:f.left+window.scrollX+f.width+10})}else o("openPopover",u)}return(u,d)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",w_,[(0,n.createElementVNode)("div",$_,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(l.value,f=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:f,class:"weekday"},(0,n.toDisplayString)(f),1))),128))]),(0,n.createElementVNode)("div",k_,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(s.value,f=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:f.date.toISOString(),class:(0,n.normalizeClass)(["day-cell",{"current-month":f.isCurrentMonth,today:f.isToday,"other-month":!f.isCurrentMonth}])},[(0,n.createElementVNode)("div",E_,(0,n.toDisplayString)((0,n.unref)(it)(f.date,{format:"DD"})),1),(0,n.createElementVNode)("div",C_,[(0,n.unref)(i)?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[f.events.length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",S_)):(0,n.createCommentVNode)("",!0)],64)):((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:1},(0,n.renderList)(f.events,m=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:m.id,class:"event-item",style:(0,n.normalizeStyle)({backgroundColor:m.color||"var(--bgl-primary)"}),onClick:(0,n.withModifiers)(p=>c(m,p),["stop"])},[(0,n.createElementVNode)("div",T_,(0,n.toDisplayString)(m.title),1),(0,n.createElementVNode)("div",N_,(0,n.toDisplayString)((0,n.unref)(it)(m.start_time,"HH:mm")),1)],12,x_))),128))])],2))),128))])]))}}),A_=we(D_,[["__scopeId","data-v-0abf6d19"]]),B_={class:"w-100p overflow-hidden m_overflow h-100p grid"},M_=["onMousedown"],L_=["onClick"],P_={class:"overflow-hidden color-white p-025 txt12 h-100p flex gap-1 flex-wrap"},I_={class:"white-space ellipsis-1"},V_={class:"txt10 opacity-8 user-select-none"},O_={class:"color-primary txt-12 p-025"},pt=60,Kt=60,Xa=30,R_=(0,n.defineComponent)({__name:"WeekView",props:{events:{default:()=>[]},startDate:{default:()=>new Date},weekStart:{default:"Sunday"},availabilityMode:{type:Boolean,default:!1},availabilityEditable:{type:Boolean,default:!1},availabilitySlots:{default:()=>[]}},emits:["eventClick","eventCreate","openPopover","availabilityChange"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.useSlots)(),i={start:0,end:24},l=(0,n.computed)(()=>!!a.eventCreate||Object.prototype.hasOwnProperty.call(o,"eventCreate")),s=(0,n.ref)({isDragging:!1,startDay:-1,endDay:-1,start:void 0,end:void 0,startTime:void 0,endTime:void 0}),c=(0,n.ref)([]),u=(0,n.ref)({isDragging:!1,mode:"add",dayIndex:-1,startMinute:0,currentMinute:0});(0,n.watch)(()=>r.availabilitySlots,R=>{c.value=R.map(I=>({start_time:new Date(I.start_time),end_time:new Date(I.end_time)}))},{immediate:!0});const d=(0,n.computed)(()=>{const R=[],I=new Date(r.startDate),U=r.weekStart==="Sunday"?0:1,D=I.getDay();I.setDate(I.getDate()-D+U),I.setHours(0,0,0,0);for(let W=0;W<7;W++){const j=new Date(I);j.setDate(I.getDate()+W),R.push(j)}return R});function f(R){return Math.round(R/Xa)*Xa}function m(R){return c.value.filter(I=>{const U=new Date(I.start_time);return U.getFullYear()===R.getFullYear()&&U.getMonth()===R.getMonth()&&U.getDate()===R.getDate()}).map(I=>{const U=new Date(I.start_time).getHours()*60+new Date(I.start_time).getMinutes(),D=new Date(I.end_time).getHours()*60+new Date(I.end_time).getMinutes();return{top:U/Kt*pt,height:(D-U)/Kt*pt,slot:I}})}function p(R){if(!u.value.isDragging||u.value.dayIndex!==R)return null;const I=Math.min(u.value.startMinute,u.value.currentMinute),U=Math.max(u.value.startMinute,u.value.currentMinute);return{top:I/Kt*pt,height:(U-I)/Kt*pt,mode:u.value.mode}}function h(R,I){return c.value.some(U=>{const D=new Date(U.start_time);if(D.getFullYear()!==R.getFullYear()||D.getMonth()!==R.getMonth()||D.getDate()!==R.getDate())return!1;const W=D.getHours()*60+D.getMinutes(),j=new Date(U.end_time).getHours()*60+new Date(U.end_time).getMinutes();return I>=W&&I<j})}function v(R,I){if(!r.availabilityEditable)return;R.preventDefault(),R.stopPropagation();const U=d.value[I],D=f(N(R.clientY));u.value={isDragging:!0,mode:h(U,D)?"remove":"add",dayIndex:I,startMinute:D,currentMinute:D+Xa},document.addEventListener("mousemove",b),document.addEventListener("mouseup",g)}function b(R){if(!u.value.isDragging)return;const I=f(N(R.clientY));u.value.currentMinute=I}function g(){if(!u.value.isDragging)return;const{dayIndex:R,startMinute:I,currentMinute:U,mode:D}=u.value,W=d.value[R],j=Math.min(I,U),Y=Math.max(I,U);if(Y-j<Xa){u.value.isDragging=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",g);return}const ae=new Date(W);ae.setHours(Math.floor(j/60),j%60,0,0);const be=new Date(W);if(be.setHours(Math.floor(Y/60),Y%60,0,0),D==="add"){const K=c.value.filter(de=>{const _e=new Date(de.start_time);return _e.getFullYear()!==W.getFullYear()||_e.getMonth()!==W.getMonth()||_e.getDate()!==W.getDate()}),ce=c.value.filter(de=>{const _e=new Date(de.start_time);return _e.getFullYear()===W.getFullYear()&&_e.getMonth()===W.getMonth()&&_e.getDate()===W.getDate()});ce.push({start_time:ae,end_time:be}),ce.sort((de,_e)=>new Date(de.start_time).getTime()-new Date(_e.start_time).getTime());const ie=[];for(const de of ce)if(ie.length===0)ie.push({start_time:new Date(de.start_time),end_time:new Date(de.end_time)});else{const _e=ie[ie.length-1];new Date(de.start_time).getTime()<=new Date(_e.end_time).getTime()?_e.end_time=new Date(Math.max(new Date(_e.end_time).getTime(),new Date(de.end_time).getTime())):ie.push({start_time:new Date(de.start_time),end_time:new Date(de.end_time)})}c.value=[...K,...ie]}else{const K=[];for(const ce of c.value){const ie=new Date(ce.start_time);if(ie.getFullYear()!==W.getFullYear()||ie.getMonth()!==W.getMonth()||ie.getDate()!==W.getDate()){K.push(ce);continue}const de=new Date(ce.start_time).getTime(),_e=new Date(ce.end_time).getTime(),se=ae.getTime(),$e=be.getTime();if(_e<=se||de>=$e){K.push(ce);continue}de<se&&K.push({start_time:new Date(de),end_time:new Date(se)}),_e>$e&&K.push({start_time:new Date($e),end_time:new Date(_e)})}c.value=K}o("availabilityChange",c.value),u.value.isDragging=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",g)}const y=(0,n.ref)(0),_=(0,n.ref)(!1),w=(0,n.ref)(),$=(0,n.ref)(),A=(0,n.ref)(),E=(0,n.ref)([]),k=(0,n.ref)(),P=(0,n.ref)();function N(R){if(!k.value)return 0;const I=R-k.value.getBoundingClientRect().top;return Math.max(0,Math.min(I/pt*Kt,1440))}const V=(0,n.computed)(()=>{const R=[];for(let I=i.start;I<i.end;I++)for(let U=0;U<60;U+=Kt)R.push({hour:I,minute:U,time:`${I.toString().padStart(2,"0")}:${U.toString().padStart(2,"0")}`});return R}),x=(0,n.computed)(()=>{if(!s.value.isDragging||!s.value.startTime||!s.value.endTime)return null;const R=s.value.startTime.getHours()*60+s.value.startTime.getMinutes(),I=s.value.endTime.getHours()*60+s.value.endTime.getMinutes();return{top:R/Kt*pt,height:Math.max((I-R)/Kt*pt,30)}}),T=(0,n.computed)(()=>{const R=[],I={};return r.events.forEach(U=>{const D=new Date(U.start_time),W=new Date(U.end_time),j=d.value.findIndex(ie=>ie.getDate()===D.getDate()&&ie.getMonth()===D.getMonth()&&ie.getFullYear()===D.getFullYear());if(j===-1)return;const Y=D.getHours()*60+D.getMinutes(),ae=W.getHours()*60+W.getMinutes(),be=Y/Kt*pt,K=Math.max((ae-Y)/Kt*pt,30),ce={...U,top:be,height:K,left:0,width:100,overlappingEvents:0,position:0};I[j]||(I[j]=[]),I[j].push(ce)}),Object.entries(I).forEach(([U,D])=>{D.sort((Y,ae)=>new Date(Y.start_time).getTime()-new Date(ae.start_time).getTime());const W=[];let j=[];D.forEach(Y=>{j.length===0?j=[Y]:j.some(ae=>{const be=new Date(Y.start_time).getTime(),K=new Date(Y.end_time).getTime(),ce=new Date(ae.start_time).getTime(),ie=new Date(ae.end_time).getTime();return!(K<=ce||be>=ie)})?j.push(Y):(j.length>0&&W.push([...j]),j=[Y])}),j.length>0&&W.push(j),W.forEach(Y=>{if(Y.length>1){const be=(100-2*(Y.length-1))/Y.length;Y.forEach((K,ce)=>{K.overlappingEvents=Y.length,K.position=ce,K.width=be,K.left=ce*(be+2)})}R.push(...Y)})}),R});function L(R,I){if(!l.value||!A.value||!k.value)return;let U=-1;for(let Y=0;Y<E.value.length;Y++){const ae=E.value[Y];if(!ae)continue;const be=ae.getBoundingClientRect();if(R.clientX>=be.left&&R.clientX<=be.right){U=Y;break}}if(U===-1)return;const D=E.value[U].getBoundingClientRect(),W=k.value.getBoundingClientRect();s.value.isDragging=!0,s.value.startDay=U,s.value.endDay=U,s.value.start={x:D.left-W.left,y:R.clientY-W.top},s.value.end={x:D.right-W.left,y:R.clientY-W.top};const j=B(R.clientY,I);s.value.startTime=j,document.addEventListener("mousemove",F),document.addEventListener("mouseup",O)}function F(R){if(!l.value||!s.value.isDragging||!s.value.start||!E.value.length||!A.value||!k.value)return;let I=-1;for(let U=0;U<E.value.length;U++){const D=E.value[U];if(!D)continue;const W=D.getBoundingClientRect();if(R.clientX>=W.left&&R.clientX<=W.right){I=U;break}}if(I!==-1&&(s.value.endDay=I,s.value.end={x:s.value.start.x,y:R.clientY-k.value.getBoundingClientRect().top},I>=0&&I<d.value.length)){const U=new Date(d.value[s.value.startDay]);U.setHours(0,0,0,0);const D=B(R.clientY,U);s.value.endTime=D}}function O(){if(!l.value||!s.value.isDragging||!s.value.startTime||!s.value.endTime)return;let R=new Date(s.value.startTime),I=new Date(s.value.endTime);I<R&&([R,I]=[I,R]),o("eventCreate",{start_time:R,end_time:I}),s.value={isDragging:!1,startDay:-1,endDay:-1,start:void 0,end:void 0,startTime:void 0,endTime:void 0},document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",O)}function B(R,I){if(!k.value)return new Date(I);const U=R-k.value.getBoundingClientRect().top,D=Kt,W=U/pt,j=Math.floor(W*D),Y=new Date(I);Y.setHours(Math.floor(j/60));const ae=Math.round(j%60/5)*5;return Y.setMinutes(ae),Y.setSeconds(0),Y.setMilliseconds(0),Y}function q(){const R=new Date;_.value=d.value.some(I=>I.getDate()===R.getDate()&&I.getMonth()===R.getMonth()&&I.getFullYear()===R.getFullYear()),y.value=(R.getHours()*60+R.getMinutes())/Kt*pt}function te(R,I){if(!a.eventContent){o("eventClick",R);return}if(I){const U=I.currentTarget.getBoundingClientRect();o("openPopover",R,{top:U.top+window.scrollY+U.height/2,left:U.left+window.scrollX+U.width+10})}else o("openPopover",R)}function ee(R,I){for(;E.value.length<=I;)E.value.push(null);R?E.value[I]=R instanceof Element?R:R.$el:E.value[I]=null}function le(R){P.value&&(P.value.scrollTop=R*pt)}return(0,n.onMounted)(()=>{q(),w.value=setInterval(q,6e4),(0,n.nextTick)(()=>{le(6)})}),(0,n.onUnmounted)(()=>{document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",O),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",g),w.value&&clearInterval(w.value)}),(R,I)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",B_,[(0,n.createElementVNode)("div",{ref_key:"calendarGrid",ref:A,class:"weekGrid border-bottom me-1"},[I[1]||(I[1]=(0,n.createElementVNode)("div",null,null,-1)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(d.value,U=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:U.toISOString(),class:"day-header p-05 txt-center m_txt12"},[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(it)(U,{format:"DDD"}))+" ",1),(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(["txt-12 round p-025",{"color-gray":U.toDateString()!==new Date().toDateString(),"bg-primary color-white":U.toDateString()===new Date().toDateString()}])},(0,n.toDisplayString)((0,n.unref)(it)(U,{format:"DD"})),3)]))),128))],512),(0,n.createElementVNode)("div",{ref_key:"scrollableContainer",ref:P,class:"overflow h-100p pe-05"},[(0,n.createElementVNode)("div",{ref_key:"dayColumnsContainer",ref:k,class:"weekGrid border-end relative"},[(0,n.createElementVNode)("div",{ref_key:"timeSlotsContainer",ref:$},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(V.value,U=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:U.time,class:"txt-light txt-12 color-gray flex justify-content-center bg-gray-light border-start",style:(0,n.normalizeStyle)({height:`${pt}px`})},(0,n.toDisplayString)(U.time),5))),128))],512),_.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"absolute end w-100p z-2 flex pointer-events-none ps-4-5",style:(0,n.normalizeStyle)({top:`${y.value}px`})},[...I[2]||(I[2]=[(0,n.createElementVNode)("div",{class:"current-time-dot h-10px aspect-ratio-1 round bg-primary"},null,-1),(0,n.createElementVNode)("div",{class:"current-time-line w-100p bg-primary"},null,-1)])],4)):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(d.value,(U,D)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:U.toISOString(),ref_for:!0,ref:W=>ee(W,D),class:"day-column top bottom border-start relative",onMousedown:W=>r.availabilityEditable?v(W,D):L(W,U)},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(V.value,W=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:`line-${W.time}`},[(0,n.createElementVNode)("div",{class:"hour-line absolute start end pointer-events-none",style:(0,n.normalizeStyle)({top:`${W.hour*pt}px`})},null,4),(0,n.createElementVNode)("div",{class:"sub-hour-line absolute start end pointer-events-none",style:(0,n.normalizeStyle)({top:`${W.hour*pt+pt/3}px`})},null,4),(0,n.createElementVNode)("div",{class:"sub-hour-line absolute start end pointer-events-none",style:(0,n.normalizeStyle)({top:`${W.hour*pt+pt*2/3}px`})},null,4)],64))),128)),r.availabilityMode?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(m(U),(W,j)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:`avail-${j}`,class:(0,n.normalizeClass)(["availability-block absolute start end",{"availability-editable":r.availabilityEditable}]),style:(0,n.normalizeStyle)({top:`${W.top}px`,height:`${W.height}px`})},null,6))),128)),p(D)?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["availability-preview absolute start end pointer-events-none",{"avail-remove":p(D).mode==="remove"}]),style:(0,n.normalizeStyle)({top:`${p(D).top}px`,height:`${p(D).height}px`})},null,6)):(0,n.createCommentVNode)("",!0)],64)):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(T.value.filter(W=>new Date(W.start_time).toDateString()===U.toDateString()),W=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:W.id,class:"event absolute radius-05 overflow-hidden pointer transition z-1 opacity-8 border",style:(0,n.normalizeStyle)({top:`${W.top}px`,height:`${W.height}px`,left:`${W.left}%`,width:`${W.width}%`,backgroundColor:W.color||"var(--bgl-primary)"}),onMousedown:I[0]||(I[0]=(0,n.withModifiers)(()=>{},["stop"])),onClick:(0,n.withModifiers)(j=>te(W,j),["stop"])},[(0,n.createElementVNode)("div",P_,[(0,n.createElementVNode)("div",I_,(0,n.toDisplayString)(W.title),1),(0,n.createElementVNode)("div",V_,(0,n.toDisplayString)((0,n.unref)(it)(W.start_time,{format:"HH:mm"}))+" - "+(0,n.toDisplayString)((0,n.unref)(it)(W.end_time,{format:"HH:mm"})),1)])],44,L_))),128))],40,M_))),128)),l.value&&s.value.isDragging&&s.value.start&&s.value.end&&x.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:"drag-preview absolute bg-primary-tint pointer-events-none overflow-hidden opacity-7 z-1",style:(0,n.normalizeStyle)({left:`${s.value.start.x}px`,top:`${x.value.top}px`,width:`${E.value[s.value.startDay]?.offsetWidth||100}px`,height:`${x.value.height}px`})},[(0,n.createElementVNode)("div",O_,(0,n.toDisplayString)(s.value.startTime?(0,n.unref)(it)(s.value.startTime,{format:"HH:mm"}):"")+" - "+(0,n.toDisplayString)(s.value.endTime?(0,n.unref)(it)(s.value.endTime,{format:"HH:mm"}):""),1)],4)):(0,n.createCommentVNode)("",!0)],512)],512),I[3]||(I[3]=(0,n.createElementVNode)("div",{class:"border-bottom me-1"},null,-1))]))}}),F_=we(R_,[["__scopeId","data-v-0850fe4c"]]),z_={class:"calendar"},U_={class:"flex m_block p-1"},H_={class:"txt-light my-0 m_pb-05"},W_={class:"ms-auto flex gap-025 m_flex-wrap"},j_={class:"flex gap-025"},q_=(0,n.defineComponent)({__name:"Index",props:{events:{default:()=>[]},startDate:{default:()=>new Date},view:{default:"Week"},weekStart:{default:"Sunday"},availabilityMode:{type:Boolean,default:!1},availabilityEditable:{type:Boolean,default:!1},availabilitySlots:{default:()=>[]},viewSwitcher:{default:"dropdown"}},emits:["eventClick","eventCreate","eventUpdate","eventDelete","dateChange","viewChange","ready","availabilityChange"],setup(e,{expose:t,emit:r}){const o=e,a=r,{t:i}=ft(),l=(0,n.ref)(new Date(o.startDate)),s=(0,n.ref)(o.view),c=(0,n.ref)(),u=(0,n.ref)(!1),d=(0,n.ref)(),f={Week:F_,Month:A_,Day:__,Agenda:s_},m=(0,n.computed)(()=>Object.keys(f).map(P=>({label:i(`calendar.views.${P.toLowerCase()}`),value:P}))),p={Week:"weeks",Month:"months",Day:"days",Agenda:"days"},h=(0,n.computed)(()=>{const P=new Date(l.value);let N=new Date(l.value);const V=o.weekStart==="Sunday"?0:1;switch(s.value){case"Week":P.setDate(P.getDate()-P.getDay()+V),N.setDate(P.getDate()+6);break;case"Month":case"Agenda":P.setDate(-6),N=new Date(P.getFullYear(),P.getMonth()+2,7);break;case"Day":N.setDate(N.getDate()+1);break;default:break}return{start:P,end:N}}),v=(0,n.computed)(()=>({visibleDateRange:h.value,currentDate:l.value,currentView:s.value}));function b(P){l.value=new Date(P),a("dateChange",v.value)}function g(P){a("dateChange",{visibleDateRange:h.value,currentDate:P,currentView:s.value})}function y(P){s.value=P,a("viewChange",v.value)}function _(P){a("eventClick",P)}function w(P){a("eventCreate",P)}function $(P){a("eventUpdate",P)}function A(P){a("eventDelete",P)}function E(P,N){c.value=P,d.value=N,u.value=!0}function k(){u.value=!1,c.value=void 0,d.value=void 0}return t({visibleDateRange:h,currentView:s,currentDate:l,openPopover:E,closePopover:k}),(0,n.onMounted)(()=>{a("ready",v.value)}),(P,N)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",z_,[(0,n.createElementVNode)("div",U_,[(0,n.createElementVNode)("h3",H_,[(0,n.createElementVNode)("b",null,(0,n.toDisplayString)((0,n.unref)(it)(l.value,"MMMM")),1),(0,n.createTextVNode)(" "+(0,n.toDisplayString)((0,n.unref)(it)(l.value,"YYYY")),1)]),(0,n.createElementVNode)("div",W_,[e.viewSwitcher==="tabs"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Nl),{key:0,size:"sm","model-value":s.value,tabs:m.value,group:"calendar-view","onUpdate:modelValue":N[0]||(N[0]=V=>y(V)),style:{"--bgl_tabs-border-radius":"calc(var(--bgl-btn-border-radius) / 2)"},class:"txt12 m_mb-05 m_w-100p","align-txt":"center"},null,8,["model-value","tabs"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Tt),{key:1,thin:"",value:s.value,iconEnd:"keyboard_arrow_down",color:"gray"},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(f,(V,x)=>(0,n.createVNode)((0,n.unref)(Dn),{key:x,thin:"",title:(0,n.unref)(i)(`calendar.views.${x.toLowerCase()}`),onClick:T=>y(x)},null,8,["title","onClick"])),64))]),_:1},8,["value"])),(0,n.createElementVNode)("div",j_,[(0,n.createVNode)((0,n.unref)(ne),{icon:"calendar",size:"sm",class:"txt12",color:"gray",value:(0,n.unref)(i)("calendar.today"),onClick:N[1]||(N[1]=V=>b(new Date))},null,8,["value"]),(0,n.createVNode)((0,n.unref)(ne),{icon:"chevron_left",color:"gray",size:"sm",class:"",disabled:s.value==="Agenda",onClick:N[2]||(N[2]=V=>b((0,n.unref)(dn)(l.value,{[p[s.value]]:-1})))},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(ne),{icon:"chevron_right",color:"gray",size:"sm",class:"",disabled:s.value==="Agenda",onClick:N[3]||(N[3]=V=>b((0,n.unref)(dn)(l.value,{[p[s.value]]:1})))},null,8,["disabled"])])])]),((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(f[s.value]),{events:e.events,"start-date":l.value,"week-start":e.weekStart,"availability-mode":o.availabilityMode,"availability-editable":o.availabilityEditable,"availability-slots":o.availabilitySlots,onEventClick:_,onEventCreate:w,onEventUpdate:$,onEventDelete:A,onDateChange:N[4]||(N[4]=V=>s.value==="Agenda"?g(V):b(V)),onOpenPopover:E,onAvailabilityChange:N[5]||(N[5]=V=>a("availabilityChange",V))},{eventContent:(0,n.withCtx)(({event:V,close:x})=>[(0,n.renderSlot)(P.$slots,"eventContent",{event:V,close:x},void 0,!0)]),_:3},40,["events","start-date","week-start","availability-mode","availability-editable","availability-slots"])),(0,n.createVNode)(q1,{event:c.value,position:d.value,show:u.value,"has-event-content-slot":!!P.$slots.eventContent,onClose:k,onEventClick:_},{eventContent:(0,n.withCtx)(({event:V,close:x})=>[(0,n.renderSlot)(P.$slots,"eventContent",{event:V,close:x},void 0,!0)]),_:3},8,["event","position","show","has-event-content-slot"])]))}}),G_=we(q_,[["__scopeId","data-v-91aaf448"]]),Y_={key:0,class:"card_label"},X_=(0,n.defineComponent)({name:"BglCard",__name:"Card",props:{label:{},thin:{type:Boolean},outline:{type:Boolean},h100:{type:Boolean},to:{},href:{},overflowX:{type:Boolean},overflowY:{type:Boolean},frame:{type:Boolean},bg:{}},setup(e){const t=e,r=(0,n.computed)(()=>{const a={};return t.href!==void 0&&t.href!==""?a.href=t.href:t.to!==void 0&&t.to!==""&&(a.to=t.to),a}),o=(0,n.computed)(()=>t.href!==void 0&&t.href!==""?"a":t.to!==void 0&&t.to!==""?"router-link":"div");return(a,i)=>{const l=(0,n.resolveDirective)("ripple");return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(o.value),(0,n.mergeProps)(r.value,{class:["bgl_card",{thin:e.thin,border:e.outline,"h-100":e.h100,[e.bg||""]:e.bg,"overflow-x":e.overflowX,"overflow-y":e.overflowY,card_frame:e.frame}]}),{default:(0,n.withCtx)(()=>[e.label?((0,n.openBlock)(),(0,n.createElementBlock)("span",Y_,(0,n.toDisplayString)(e.label),1)):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(a.$slots,"default")]),_:3},16,["class"])),[[l,!!e.to]])}}}),ar=X_,K_=new Set(["div","span","p"]),J_=new Set(["img","iframe"]);function Jp(e){const{mode:t="form",getFormData:r,onUpdateModelValue:o,includeUnset:a=!1}=e;function i(u,d=0){if(u==null)return"";if(typeof u!="object")return String(u);if(Array.isArray(u))return u.map(h=>i(h,d+1)).join(", ");const f=d>0?" ".repeat(d):"",m=" ".repeat(d+1),p=Object.entries(u);return p.length===0?"{}":d>0?`{
|
|
10
|
+
<p class="bold txt18">${E(P.percentage)}</p></div>`}return(P,N)=>{const V=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"chartRef",ref:l,class:"h-100p flex column flex-stretch"},[(0,n.createElementVNode)("div",Ib,[(0,n.createElementVNode)("div",Vb,[(0,n.createVNode)((0,n.unref)(ge),{name:e.icon,size:"1.2",color:e.color,class:"line-height-0"},null,8,["name","color"]),(0,n.createElementVNode)("p",Ob,(0,n.toDisplayString)(e.title),1)]),e.percentageChange!==0?((0,n.openBlock)(),(0,n.createElementBlock)("div",Rb,[(0,n.createVNode)((0,n.unref)(ge),{class:(0,n.normalizeClass)(["line-height-1",e.percentageChange>0?"color-success":"color-danger"]),name:e.percentageChange>0?"trending_up":"trending_down",size:"1"},null,8,["name","class"]),(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(["txt12 bold",e.percentageChange>0?"color-success":"color-danger"])},(0,n.toDisplayString)(Math.abs(e.percentageChange))+"% ",3)])):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["chart-container flex space-between gap-1 flex-wrap flex-grow",{"with-legend":e.showLegend,"with-connectors":e.showConnectorLines}])},[((0,n.openBlock)(),(0,n.createElementBlock)("svg",{width:p.value.width,height:p.value.height,class:"chart-svg mx-auto flex-shrink-0",style:(0,n.normalizeStyle)(e.showConnectorLines?"overflow: visible;":"")},[(0,n.createElementVNode)("g",{transform:`translate(${h.value.x}, ${h.value.y})`},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value.filter(x=>x.visible),(x,T)=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("path",{key:T,d:x.path,fill:x.color,class:"pie-segment",stroke:"white","stroke-width":"2"},null,8,Ub)),[[V,{content:k(x),html:!0}]])),128)),e.donut&&(e.showCenterTotal||e.centerValue!==void 0)?((0,n.openBlock)(),(0,n.createElementBlock)("g",Hb,[(0,n.createElementVNode)("text",Wb,(0,n.toDisplayString)(e.centerLabel),1),(0,n.createElementVNode)("text",jb,(0,n.toDisplayString)(A(y.value)),1)])):(0,n.createCommentVNode)("",!0),e.showConnectorLines?((0,n.openBlock)(),(0,n.createElementBlock)("g",qb,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value.filter(x=>x.visible),(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("g",{key:`line-${T}`},[(0,n.createElementVNode)("polyline",{points:`${g(x).innerX},${g(x).innerY} ${g(x).outerX},${g(x).outerY} ${g(x).labelX},${g(x).labelY}`,stroke:"#333","stroke-width":"1.5",fill:"none"},null,8,Gb)]))),128))])):(0,n.createCommentVNode)("",!0),e.showLabelsOnChart?((0,n.openBlock)(),(0,n.createElementBlock)("g",Yb,[e.showConnectorLines?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("g",Xb,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value.filter(x=>x.visible),(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:`label-${T}`,x:b(x).x,y:b(x).y-5,"text-anchor":"middle","dominant-baseline":"middle",class:"chart-label txt12 pointer-events-none",fill:e.labelColor},(0,n.toDisplayString)(x.label),9,Kb))),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value.filter(x=>x.visible),(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:`value-${T}`,x:b(x).x,y:b(x).y+12,"text-anchor":"middle","dominant-baseline":"middle",class:"chart-value txt16 mt-1 line-height-2 bold pointer-events-none",fill:e.labelColor},(0,n.toDisplayString)(A(x.value)),9,Jb))),128))])),e.showConnectorLines?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value.filter(x=>x.visible),(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:`label-line-${T}`,x:g(x).labelX,y:g(x).labelY-8,"text-anchor":g(x).textAnchor,"dominant-baseline":"middle",class:"chart-label txt12 bold",fill:e.labelColor},(0,n.toDisplayString)(x.label),9,Zb))),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value.filter(x=>x.visible),(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:`value-line-${T}`,x:g(x).labelX,y:g(x).labelY+2,"text-anchor":g(x).textAnchor,"dominant-baseline":"middle",class:"chart-value txt11",fill:"#666"},(0,n.toDisplayString)(A(x.value)),9,Qb))),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value.filter(x=>x.visible),(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:`percentage-${T}`,x:g(x).labelX,y:g(x).labelY+15,"text-anchor":g(x).textAnchor,"dominant-baseline":"middle",class:"chart-percentage txt10 pointer-events-none",fill:"#999"}," ("+(0,n.toDisplayString)(E(x.percentage))+") ",9,e1))),128))],64)):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0)],8,zb)],12,Fb)),e.showLegend?((0,n.openBlock)(),(0,n.createElementBlock)("div",t1,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value,(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:T,class:"gap-1 flex align-items-center txt14 justify-content-start"},[(0,n.createElementVNode)("div",{class:"legend-color flex-shrink-0 radius-05",style:(0,n.normalizeStyle)({backgroundColor:x.color})},null,4),x.label?((0,n.openBlock)(),(0,n.createElementBlock)("span",n1,(0,n.toDisplayString)(x.label),1)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",r1,(0,n.toDisplayString)(A(x.value)),1),(0,n.createElementVNode)("span",o1,"("+(0,n.toDisplayString)(E(x.percentage))+")",1)]))),128))])):(0,n.createCommentVNode)("",!0)],2)],512)}}}),i1=we(a1,[["__scopeId","data-v-2aaa0ea6"]]),l1={key:0},s1=["src","alt","width","height"],c1=["src","alt","width","height"],u1=(0,n.defineComponent)({name:"BglImage",__name:"Image",props:{src:{},pathKey:{},alt:{},width:{},height:{},caption:{},modelValue:{}},setup(e){const t=e,r=(0,n.ref)(void 0),o=(0,n.ref)(!1);function a(){if(!((t.src===void 0||t.src==="")&&(t.pathKey===void 0||t.pathKey==="")&&(t.modelValue===void 0||t.modelValue==="")))return fn(t.src??t.pathKey??t.modelValue)}async function i(u){if("caches"in window)try{const d=await(await window.caches.open("img-cache")).match(u);if(d)return URL.createObjectURL(await d.blob())}catch{}}async function l(u,d){if("caches"in window)try{await(await window.caches.open("img-cache")).put(u,new Response(d))}catch{}}async function s(u){await Ga("https://cdnjs.cloudflare.com/ajax/libs/heic2any/0.0.1/index.min.js");const d=await(await Sa("heic2any"))({blob:await(await fetch(Wu(u))).blob()});return await l(u,d),URL.createObjectURL(d)}async function c(){o.value=!1;const u=a();if(u===void 0||u===""){r.value=void 0;return}try{if(u.split(".").pop()?.toLowerCase().split("?")[0]==="heic"){const d=await i(u);if(d!==void 0&&d!==""){r.value=d;return}r.value=await s(u)}else r.value=u}catch{o.value=!0,r.value=void 0}}return(0,n.watch)(()=>[t.src,t.pathKey,t.modelValue],c,{immediate:!0}),(u,d)=>e.caption?((0,n.openBlock)(),(0,n.createElementBlock)("figcaption",l1,[r.value?((0,n.openBlock)(),(0,n.createElementBlock)("img",(0,n.mergeProps)({key:0,src:r.value},u.$attrs,{alt:e.alt,width:(0,n.unref)(cn)(e.width),height:(0,n.unref)(cn)(e.height)}),null,16,s1)):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Ki),{key:1,class:"img-web-kit",width:(0,n.unref)(cn)(e.width),height:(0,n.unref)(cn)(e.height)},null,8,["width","height"]))])):r.value?((0,n.openBlock)(),(0,n.createElementBlock)("img",(0,n.mergeProps)({key:1,src:r.value},u.$attrs,{alt:e.alt,width:(0,n.unref)(cn)(e.width),height:(0,n.unref)(cn)(e.height)}),null,16,c1)):o.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:2,class:"flex-center error-image",style:(0,n.normalizeStyle)({width:(0,n.unref)(cn)(e.width),height:(0,n.unref)(cn)(e.height)})},[(0,n.createVNode)((0,n.unref)(ge),{name:"broken_image"})],4)):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Ki),{key:3,class:"img-web-kit",width:(0,n.unref)(cn)(e.width),height:(0,n.unref)(cn)(e.height)},null,8,["width","height"]))}}),bo=we(u1,[["__scopeId","data-v-a568dbbb"]]),d1=(0,n.defineComponent)({name:"BglAvatar",__name:"Avatar",props:{fallback:{},src:{},name:{},icon:{},alt:{},size:{default:50},square:{type:[Boolean,Number]},color:{}},setup(e){const t=e,r=(0,n.computed)(()=>t.square?t.square===!0?"var(--bgl-btn-border-radius)":`${t.square}px`:"1000px"),o=(0,n.computed)(()=>t.color?{background:`var(--bgl-${t.color}-tint, color-mix(in srgb, var(--bgl-${t.color}) 14%, transparent))`,color:`var(--bgl-${t.color})`,border:"none"}:{});return(a,i)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"overflow-hidden txt-center p-0 avatar flex justify-content-center align-items-center",style:(0,n.normalizeStyle)({width:`${e.size}px`,height:`${e.size}px`,borderRadius:r.value,...o.value})},[e.src?((0,n.openBlock)(),(0,n.createBlock)(bo,{key:0,src:e.src,alt:e.alt||e.name},null,8,["src","alt"])):e.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,icon:e.icon,size:e.size/40},null,8,["icon","size"])):((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:2,style:(0,n.normalizeStyle)({"line-height":`${e.size}px`,"font-size":`calc(1.5rem * ${e.size} / 50)`})},(0,n.toDisplayString)((e.fallback||(0,n.unref)(Ug)(e.name||"")).toUpperCase()),5))],4))}}),Ip=we(d1,[["__scopeId","data-v-176eb199"]]),f1=["disabled"],m1={class:"flex h-100 justify-content-center relative"},p1={key:0,class:"loading absolute inset-0 mx-auto"},h1=(0,n.defineComponent)({name:"BglBadge",__name:"Badge",props:{disabled:{type:Boolean},icon:{},iconEnd:{},color:{},variant:{},flat:{type:Boolean},outline:{type:Boolean},glass:{type:Boolean},dot:{type:Boolean},border:{type:Boolean},loading:{type:Boolean},value:{},round:{type:Boolean},btn:{},btnEnd:{},size:{},sm:{type:Boolean},lg:{type:Boolean},uppercase:{type:Boolean}},setup(e){const t=e,r=(0,n.useSlots)(),o=(0,n.computed)(()=>t.disabled?"gray-light":t.color),a=(0,n.computed)(()=>{const u=o.value;return u?`pair-${u}`:"pair-primary"}),i=(0,n.computed)(()=>`var(--bgl-${(o.value||"primary").replace(/-(light|tint|10|20|30|40|50|60|70)$/,"")})`),l=(0,n.computed)(()=>t.size?t.size:t.sm?"sm":t.lg?"lg":"md"),s=(0,n.computed)(()=>t.variant?t.variant:t.glass?"glass":t.flat?"flat":t.outline||t.border?"outline":"solid"),c=(0,n.computed)(()=>{const u={bgl_pill:!t.icon||!!r.default||!!t.value,round:t.round,bgl_flatPill:s.value==="flat","bgl_pill-border":s.value==="outline",bgl_glassPill:s.value==="glass",pillLarge:l.value==="lg",pillSmall:l.value==="sm"};return u[a.value]=!0,u});return(u,d)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["bgl_pill",c.value]),style:{height:"var(--bgl-pill-height)"},disabled:e.disabled},[(0,n.createElementVNode)("div",m1,[e.loading?((0,n.openBlock)(),(0,n.createElementBlock)("div",p1)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["px-025 flex gap-025 justify-content-center align-items-center",{"opacity-0":e.loading}])},[e.btn?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),(0,n.mergeProps)({key:0,class:"bgl_pill-btn -ms-025","icon-size":"0.8",round:""},e.btn),null,16)):(0,n.createCommentVNode)("",!0),e.dot?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:1,class:"bgl_pill-dot",style:(0,n.normalizeStyle)({background:i.value})},null,4)):(0,n.createCommentVNode)("",!0),e.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:2,class:"line-height-0",icon:e.icon,style:{"font-size":"var(--bgl-pill-font-size)"}},null,8,["icon"])):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(u.$slots,"default",{class:(0,n.normalizeClass)({uppercase:e.uppercase})},void 0,!0),(0,n.unref)(r).default?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:3,class:(0,n.normalizeClass)(["pillText inline",{uppercase:e.uppercase}])},(0,n.toDisplayString)(e.value),3)),e.iconEnd?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:4,class:"line-height-0",icon:e.iconEnd,style:{"font-size":"var(--bgl-pill-font-size)"}},null,8,["icon"])):(0,n.createCommentVNode)("",!0),e.btnEnd?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),(0,n.mergeProps)({key:5,class:"bgl_pill-btn -me-025","icon-size":"0.8",round:""},e.btnEnd),null,16)):(0,n.createCommentVNode)("",!0)],2)])],10,f1))}}),Vp=we(h1,[["__scopeId","data-v-58c72113"]]);function Yc(e){return(0,n.getCurrentScope)()?((0,n.onScopeDispose)(e),!0):!1}var Ia=typeof window<"u"&&typeof document<"u",LR=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,g1=e=>e!=null,v1=Object.prototype.toString,y1=e=>v1.call(e)==="[object Object]",hd=()=>+Date.now(),Wt=()=>{},b1=_1();function _1(){var e,t;return Ia&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Xc(e,t){function r(...o){return new Promise((a,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(a).catch(i)})}return r}var w1=e=>e();function Op(e,t={}){let r,o,a=Wt;const i=c=>{clearTimeout(c),a(),a=Wt};let l;return c=>{const u=(0,n.toValue)(e),d=(0,n.toValue)(t.maxWait);return r&&i(r),u<=0||d!==void 0&&d<=0?(o&&(i(o),o=void 0),Promise.resolve(c())):new Promise((f,m)=>{a=t.rejectOnCancel?m:f,l=c,d&&!o&&(o=setTimeout(()=>{r&&i(r),o=void 0,f(l())},d)),r=setTimeout(()=>{o&&i(o),o=void 0,f(c())},u)})}}function $1(...e){let t=0,r,o=!0,a=Wt,i,l,s,c,u;!(0,n.isRef)(e[0])&&typeof e[0]=="object"?{delay:l,trailing:s=!0,leading:c=!0,rejectOnCancel:u=!1}=e[0]:[l,s=!0,c=!0,u=!1]=e;const d=()=>{r&&(clearTimeout(r),r=void 0,a(),a=Wt)};return m=>{const p=(0,n.toValue)(l),h=Date.now()-t,v=()=>i=m();return d(),p<=0?(t=Date.now(),v()):(h>p&&(c||!o)?(t=Date.now(),v()):s&&(i=new Promise((b,g)=>{a=u?g:b,r=setTimeout(()=>{t=Date.now(),o=!0,b(v()),d()},Math.max(0,p-h))})),!c&&!r&&(r=setTimeout(()=>o=!0,p)),o=!1,i)}}function gd(e,t=!1,r="Timeout"){return new Promise((o,a)=>{setTimeout(t?()=>a(r):o,e)})}function ea(e){return Array.isArray(e)?e:[e]}function Rp(e){const t=Object.create(null);return r=>t[r]||(t[r]=e(r))}var k1=/\B([A-Z])/g,PR=Rp(e=>e.replace(k1,"-$1").toLowerCase()),E1=/-(\w)/g,IR=Rp(e=>e.replace(E1,(t,r)=>r?r.toUpperCase():""));function C1(e){return e||(0,n.getCurrentInstance)()}function Vr(e,t=200,r={}){return Xc(Op(t,r),e)}function S1(e,t,r={}){const{eventFilter:o=w1,...a}=r;return(0,n.watch)(e,Xc(o,t),a)}function x1(e,t=!0,r){C1(r)?(0,n.onMounted)(e,r):t?e():(0,n.nextTick)(e)}function Rs(e,t=!1){function r(f,{flush:m="sync",deep:p=!1,timeout:h,throwOnTimeout:v}={}){let b=null;const g=[new Promise(y=>{b=(0,n.watch)(e,_=>{f(_)!==t&&(b?b():(0,n.nextTick)(()=>b?.()),y(_))},{flush:m,deep:p,immediate:!0})})];return h!=null&&g.push(gd(h,v).then(()=>(0,n.toValue)(e)).finally(()=>b?.())),Promise.race(g)}function o(f,m){if(!(0,n.isRef)(f))return r(_=>_===f,m);const{flush:p="sync",deep:h=!1,timeout:v,throwOnTimeout:b}=m??{};let g=null;const y=[new Promise(_=>{g=(0,n.watch)([e,f],([w,$])=>{t!==(w===$)&&(g?g():(0,n.nextTick)(()=>g?.()),_(w))},{flush:p,deep:h,immediate:!0})})];return v!=null&&y.push(gd(v,b).then(()=>(0,n.toValue)(e)).finally(()=>(g?.(),(0,n.toValue)(e)))),Promise.race(y)}function a(f){return r(m=>!!m,f)}function i(f){return o(null,f)}function l(f){return o(void 0,f)}function s(f){return r(Number.isNaN,f)}function c(f,m){return r(p=>{const h=Array.from(p);return h.includes(f)||h.includes((0,n.toValue)(f))},m)}function u(f){return d(1,f)}function d(f=1,m){let p=-1;return r(()=>(p+=1,p>=f),m)}return Array.isArray((0,n.toValue)(e))?{toMatch:r,toContains:c,changed:u,changedTimes:d,get not(){return Rs(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:a,toBeNull:i,toBeNaN:s,toBeUndefined:l,changed:u,changedTimes:d,get not(){return Rs(e,!t)}}}function T1(e){return Rs(e)}function N1(e,t,r={}){const{debounce:o=0,maxWait:a=void 0,...i}=r;return S1(e,t,{...i,eventFilter:Op(o,{maxWait:a})})}function D1(e,t,r){return(0,n.watch)(e,t,{...r,immediate:!0})}var Ao=Ia?window:void 0,VR=Ia?window.document:void 0,OR=Ia?window.navigator:void 0,RR=Ia?window.location:void 0;function It(e){var t;const r=(0,n.toValue)(e);return(t=r?.$el)!=null?t:r}function fo(...e){const t=[],r=()=>{t.forEach(s=>s()),t.length=0},o=(s,c,u,d)=>(s.addEventListener(c,u,d),()=>s.removeEventListener(c,u,d)),a=(0,n.computed)(()=>{const s=ea((0,n.toValue)(e[0])).filter(c=>c!=null);return s.every(c=>typeof c!="string")?s:void 0}),i=D1(()=>{var s,c;return[(c=(s=a.value)==null?void 0:s.map(u=>It(u)))!=null?c:[Ao].filter(u=>u!=null),ea((0,n.toValue)(a.value?e[1]:e[0])),ea((0,n.unref)(a.value?e[2]:e[1])),(0,n.toValue)(a.value?e[3]:e[2])]},([s,c,u,d])=>{if(r(),!s?.length||!c?.length||!u?.length)return;const f=y1(d)?{...d}:d;t.push(...s.flatMap(m=>c.flatMap(p=>u.map(h=>o(m,p,h,f)))))},{flush:"post"}),l=()=>{i(),r()};return Yc(r),l}var vd=!1;function A1(e,t,r={}){const{window:o=Ao,ignore:a=[],capture:i=!0,detectIframe:l=!1,controls:s=!1}=r;if(!o)return s?{stop:Wt,cancel:Wt,trigger:Wt}:Wt;if(b1&&!vd){vd=!0;const b={passive:!0};Array.from(o.document.body.children).forEach(g=>g.addEventListener("click",Wt,b)),o.document.documentElement.addEventListener("click",Wt,b)}let c=!0;const u=b=>(0,n.toValue)(a).some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(y=>y===b.target||b.composedPath().includes(y));{const y=It(g);return y&&(b.target===y||b.composedPath().includes(y))}});function d(b){const g=(0,n.toValue)(b);return g&&g.$.subTree.shapeFlag===16}function f(b,g){const y=(0,n.toValue)(b),_=y.$.subTree&&y.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(w=>w.el===g.target||g.composedPath().includes(w.el))}const m=b=>{const g=It(e);if(b.target!=null&&!(!(g instanceof Element)&&d(e)&&f(e,b))&&!(!g||g===b.target||b.composedPath().includes(g))){if("detail"in b&&b.detail===0&&(c=!u(b)),!c){c=!0;return}t(b)}};let p=!1;const h=[fo(o,"click",b=>{p||(p=!0,setTimeout(()=>{p=!1},0),m(b))},{passive:!0,capture:i}),fo(o,"pointerdown",b=>{const g=It(e);c=!u(b)&&!!(g&&!b.composedPath().includes(g))},{passive:!0}),l&&fo(o,"blur",b=>{setTimeout(()=>{var g;const y=It(e);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!y?.contains(o.document.activeElement)&&t(b)},0)},{passive:!0})].filter(Boolean),v=()=>h.forEach(b=>b());return s?{stop:v,cancel:()=>{c=!1},trigger:b=>{c=!0,m(b),c=!1}}:v}function B1(){const e=(0,n.shallowRef)(!1),t=(0,n.getCurrentInstance)();return t&&(0,n.onMounted)(()=>{e.value=!0},t),e}function Fp(e){const t=B1();return(0,n.computed)(()=>(t.value,!!e()))}function zp(e,t,r={}){const{window:o=Ao,...a}=r;let i;const l=Fp(()=>o&&"ResizeObserver"in o),s=()=>{i&&(i.disconnect(),i=void 0)},c=(0,n.watch)((0,n.computed)(()=>{const d=(0,n.toValue)(e);return Array.isArray(d)?d.map(f=>It(f)):[It(d)]}),d=>{if(s(),l.value&&o){i=new ResizeObserver(t);for(const f of d)f&&i.observe(f,a)}},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return Yc(u),{isSupported:l,stop:u}}function M1(e,t={width:0,height:0},r={}){const{window:o=Ao,box:a="content-box"}=r,i=(0,n.computed)(()=>{var f,m;return(m=(f=It(e))==null?void 0:f.namespaceURI)==null?void 0:m.includes("svg")}),l=(0,n.shallowRef)(t.width),s=(0,n.shallowRef)(t.height),{stop:c}=zp(e,([f])=>{const m=a==="border-box"?f.borderBoxSize:a==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&i.value){const p=It(e);if(p){const h=p.getBoundingClientRect();l.value=h.width,s.value=h.height}}else if(m){const p=ea(m);l.value=p.reduce((h,{inlineSize:v})=>h+v,0),s.value=p.reduce((h,{blockSize:v})=>h+v,0)}else l.value=f.contentRect.width,s.value=f.contentRect.height},r);x1(()=>{const f=It(e);f&&(l.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=(0,n.watch)(()=>It(e),f=>{l.value=f?t.width:0,s.value=f?t.height:0});function d(){c(),u()}return{width:l,height:s,stop:d}}function Up(e,t,r={}){const{root:o,rootMargin:a="0px",threshold:i=0,window:l=Ao,immediate:s=!0}=r,c=Fp(()=>l&&"IntersectionObserver"in l),u=(0,n.computed)(()=>ea((0,n.toValue)(e)).map(It).filter(g1));let d=Wt;const f=(0,n.shallowRef)(s),m=c.value?(0,n.watch)(()=>[u.value,It(o),f.value],([h,v])=>{if(d(),!f.value||!h.length)return;const b=new IntersectionObserver(t,{root:It(v),rootMargin:a,threshold:i});h.forEach(g=>g&&b.observe(g)),d=()=>{b.disconnect(),d=Wt}},{immediate:s,flush:"post"}):Wt,p=()=>{d(),m(),f.value=!1};return Yc(p),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:p}}var L1=["mousemove","mousedown","resize","keydown","touchstart","wheel"],P1=6e4;function I1(e=P1,t={}){const{initialState:r=!1,listenForVisibilityChange:o=!0,events:a=L1,window:i=Ao,eventFilter:l=$1(50)}=t,s=(0,n.shallowRef)(r),c=(0,n.shallowRef)(hd());let u;const d=()=>{s.value=!1,clearTimeout(u),u=setTimeout(()=>s.value=!0,e)},f=Xc(l,()=>{c.value=hd(),d()});if(i){const m=i.document,p={passive:!0};for(const h of a)fo(i,h,f,p);o&&fo(m,"visibilitychange",()=>{m.hidden||f()},p),r||d()}return{idle:s,lastActive:c,reset:d}}var FR=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}];function V1(e,t){const{containerStyle:r,wrapperProps:o,scrollTo:a,calculateRange:i,currentList:l,containerRef:s}="itemHeight"in t?F1(t,e):R1(t,e);return{list:l,scrollTo:a,containerProps:{ref:s,onScroll:()=>{i()},style:r},wrapperProps:o}}function Hp(e){const t=(0,n.shallowRef)(null),r=M1(t),o=(0,n.ref)([]),a=(0,n.shallowRef)(e);return{state:(0,n.ref)({start:0,end:10}),source:a,currentList:o,size:r,containerRef:t}}function Wp(e,t,r){return o=>{if(typeof r=="number")return Math.ceil(o/r);const{start:a=0}=e.value;let i=0,l=0;for(let s=a;s<t.value.length;s++){const c=r(s);if(i+=c,l=s,i>o)break}return l-a}}function jp(e,t){return r=>{if(typeof t=="number")return Math.floor(r/t)+1;let o=0,a=0;for(let i=0;i<e.value.length;i++){const l=t(i);if(o+=l,o>=r){a=i;break}}return a+1}}function qp(e,t,r,o,{containerRef:a,state:i,currentList:l,source:s}){return()=>{const c=a.value;if(c){const u=r(e==="vertical"?c.scrollTop:c.scrollLeft),d=o(e==="vertical"?c.clientHeight:c.clientWidth),f=u-t,m=u+d+t;i.value={start:f<0?0:f,end:m>s.value.length?s.value.length:m},l.value=s.value.slice(i.value.start,i.value.end).map((p,h)=>({data:p,index:h+i.value.start}))}}}function Gp(e,t){return r=>typeof e=="number"?r*e:t.value.slice(0,r).reduce((o,a,i)=>o+e(i),0)}function Yp(e,t,r,o){(0,n.watch)([e.width,e.height,()=>(0,n.toValue)(t),r],()=>{o()})}function Xp(e,t){return(0,n.computed)(()=>typeof e=="number"?t.value.length*e:t.value.reduce((r,o,a)=>r+e(a),0))}var O1={horizontal:"scrollLeft",vertical:"scrollTop"};function Kp(e,t,r,o){return a=>{o.value&&(o.value[O1[e]]=r(a),t())}}function R1(e,t){const r=Hp(t),{state:o,source:a,currentList:i,size:l,containerRef:s}=r,c={overflowX:"auto"},{itemWidth:u,overscan:d=5}=e,f=Wp(o,a,u),m=qp("horizontal",d,jp(a,u),f,r),p=Gp(u,a),h=(0,n.computed)(()=>p(o.value.start)),v=Xp(u,a);return Yp(l,t,s,m),{scrollTo:Kp("horizontal",m,p,s),calculateRange:m,wrapperProps:(0,n.computed)(()=>({style:{height:"100%",width:`${v.value-h.value}px`,marginLeft:`${h.value}px`,display:"flex"}})),containerStyle:c,currentList:i,containerRef:s}}function F1(e,t){const r=Hp(t),{state:o,source:a,currentList:i,size:l,containerRef:s}=r,c={overflowY:"auto"},{itemHeight:u,overscan:d=5}=e,f=Wp(o,a,u),m=qp("vertical",d,jp(a,u),f,r),p=Gp(u,a),h=(0,n.computed)(()=>p(o.value.start)),v=Xp(u,a);return Yp(l,t,s,m),{calculateRange:m,scrollTo:Kp("vertical",m,p,s),containerStyle:c,wrapperProps:(0,n.computed)(()=>({style:{width:"100%",height:`${v.value-h.value}px`,marginTop:`${h.value}px`}})),currentList:i,containerRef:s}}var z1=["src"],U1=["autoplay","muted","loop","controls","playsinline"],H1=["src","type"],W1=(0,n.defineComponent)({__name:"BglVideo",props:{src:{},autoplay:{type:[Boolean,String]},mute:{type:Boolean},aspectRatio:{},controls:{type:Boolean},loop:{type:Boolean},status:{},playsinline:{type:Boolean}},setup(e,{expose:t}){const r=e,o=(0,n.computed)(()=>r.src?.split(".").pop()?.split("?").shift()?.toLowerCase()??"mp4"),a=(0,n.ref)(),i=(0,n.computed)(()=>r.src?.includes("youtube.com/shorts/")??!1),l=(0,n.computed)(()=>i.value?"9/16":r.aspectRatio?.replace(":","/")??"16/9"),s=(0,n.ref)();function c(){s.value?.play()}function u(){s.value?.pause()}r.autoplay==="visible"&&Up(a,([{isIntersecting:m}])=>{m?c():u()},{threshold:.3}),(0,n.watch)(()=>r.status,m=>{m==="play"&&c(),m==="pause"&&u()}),t({play:c,pause:u});const d=(0,n.computed)(()=>{if(/youtube\.com|youtu\.be/.test(r.src??""))return"YouTube";if(/(?:player\.)?vimeo\.com/.test(r.src??""))return"Vimeo"}),f=(0,n.computed)(()=>{if(d.value==="YouTube"){let m="";r.src?.includes("youtube.com/shorts/")===!0?m=r.src.split("/shorts/")[1]?.split("?")[0]??"":m=r.src?.split(/v=|youtu\.be\//)[1]?.split("&")?.[0]??"";const p=new URLSearchParams({autoplay:r.autoplay===!0||r.autoplay==="visible"?"1":"0",controls:"0",showinfo:"0",modestbranding:"1"});return`https://www.youtube.com/embed/${m}?${p}`}if(d.value==="Vimeo"){const m=/player\.vimeo\.com\/video\/(\d+)/,p=/vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|album\/(\d+)\/video\/)?(\d+)(?:$|\/|\?)/,h=r.src?.match(m)??null,v=r.src?.match(p)??null;return`https://player.vimeo.com/video/${h?.[1]??v?.[3]}`}return r.src});return(m,p)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"videoContainer",ref:a,class:(0,n.normalizeClass)(["bgl_vid",{vid_empty:!e.src,vid_short:i.value}])},[d.value?((0,n.openBlock)(),(0,n.createElementBlock)("iframe",{key:0,src:f.value,style:(0,n.normalizeStyle)({aspectRatio:l.value}),frameborder:"0",title:"Video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerpolicy:"strict-origin-when-cross-origin",allowfullscreen:""},null,12,z1)):e.src?((0,n.openBlock)(),(0,n.createElementBlock)("video",{key:1,ref_key:"video",ref:s,autoplay:e.autoplay===!0,muted:e.mute,loop:e.loop,style:(0,n.normalizeStyle)({aspectRatio:l.value}),controls:e.controls,playsinline:e.playsinline},[(0,n.createElementVNode)("source",{src:e.src,type:`video/${o.value}`},null,8,H1)],12,U1)):(0,n.createCommentVNode)("",!0)],2))}}),Kc=we(W1,[["__scopeId","data-v-acc6c65e"]]),j1=(0,n.defineComponent)({__name:"CalendarPopover",props:{event:{},targetElement:{},position:{},show:{type:Boolean},hasEventContentSlot:{type:Boolean}},emits:["close","eventClick"],setup(e,{emit:t}){const r=e,o=t,{scrollY:a,scrollX:i,innerHeight:l,innerWidth:s}=ja(),c=(0,n.ref)(),u=(0,n.computed)(()=>{if(r.position){let{top:p,left:h}=r.position;return p-=80,p=Math.max(a.value+10,Math.min(p,l.value+a.value-150-10)),h=Math.max(i.value+10,Math.min(h,s.value+i.value-400-10)),{top:p,left:h,width:400,height:150}}if(r.targetElement&&r.show){const p=r.targetElement.getBoundingClientRect();let h=p.top+a.value+p.height/2-150/2,v=p.left+i.value+p.width+10;return h=Math.max(a.value+10,Math.min(h,l.value+a.value-150-10)),v+400>s.value+i.value&&(v=p.left+i.value-400+p.width-10),v<i.value&&(v=p.right+i.value+10),{top:h,left:v,width:400,height:150}}return{top:0,left:0,width:400,height:150}});function d(){o("close")}return(f,m)=>{const p=(0,n.resolveDirective)("click-outside");return e.show&&e.event?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ar),{key:0,ref_key:"popoverRef",ref:c,thin:"",class:"custom-popover",style:(0,n.normalizeStyle)({top:`${u.value.top}px`,left:`${u.value.left}px`,maxWidth:`${u.value.width}px`})},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(f.$slots,"eventContent",{event:e.event,close:d},void 0,!0)]),_:3},8,["style"])),[[p,d]]):(0,n.createCommentVNode)("",!0)}}}),q1=we(j1,[["__scopeId","data-v-291fefea"]]),G1={key:0,class:"flex h-100p justify-content-center column gap-1 opacity-3"},Y1=["data-date","data-today"],X1={class:"bg-white border line-height-12 radius-1 grid align-items-center px-05 py-025 txt-center"},K1={class:"txt18"},J1={class:"txt12"},Z1={class:"line-height-12"},Q1={class:"txt12 opacity-6"},e_={key:0,class:"ms-auto"},t_=["onClick"],n_={class:"agenda-event-time txt-center pt-1 txt14 opacity-6 bold relative"},r_={class:"flex space-between"},o_={class:"txt16 m-0 semi"},a_={class:"txt12 opacity-6"},i_={key:0,class:"txt12 opacity-6"},l_=(0,n.defineComponent)({__name:"AgendaView",props:{events:{},startDate:{}},emits:["eventClick","dateChange","openPopover"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.useSlots)(),{t:i}=ft(),l=(0,n.ref)(null);function s(){try{return $r().global.locale.value}catch{return"en"}}function c(v){if(v<60)return`${v} min`;const b=Math.floor(v/60),g=v%60;return g?`${b}h ${g}m`:`${b}h`}const u=(0,n.computed)(()=>{const v=s(),b=new Date().toDateString(),g=[...r.events].sort((_,w)=>new Date(_.start_time).getTime()-new Date(w.start_time).getTime()),y=new Map;for(const _ of g){const w=new Date(_.start_time),$=w.toDateString();y.has($)||y.set($,{dateKey:$,date:w,dayNumber:w.toLocaleDateString(v,{day:"2-digit"}),monthShort:w.toLocaleDateString(v,{month:"short"}),weekdayLong:w.toLocaleDateString(v,{weekday:"long"}),isToday:$===b,events:[]});const A=Math.round((new Date(_.end_time).getTime()-new Date(_.start_time).getTime())/6e4);y.get($).events.push({..._,durationMin:A})}return Array.from(y.values())}),d=(0,n.ref)(!1);function f(){if(!l.value)return;const v=l.value,b=v.querySelectorAll(".agenda-day-group"),g=v.getBoundingClientRect().top;let y=null,_=1/0;if(b.forEach(w=>{const $=Math.abs(w.getBoundingClientRect().top-g);$<_&&(_=$,y=w)}),y){const w=y.dataset.date;w&&o("dateChange",new Date(w))}}function m(v,b){if(!a.eventContent){o("eventClick",v);return}if(b){const g=b.currentTarget.getBoundingClientRect();o("openPopover",v,{top:g.top+window.scrollY+g.height/2,left:g.left+window.scrollX+g.width+10})}else o("openPopover",v)}function p(v){const b=new Date(v);return b.setHours(0,0,0,0),b.getTime()}function h(v,b="instant",g="nearest"){if(!l.value)return;const y=Array.from(l.value.querySelectorAll(".agenda-day-group"));if(!y.length)return;const _=p(v);let w=null,$=1/0;if(g==="forward")for(const A of y){const E=A.dataset.date;if(!E)continue;const k=p(new Date(E));k>=_&&k-_<$&&($=k-_,w=A)}else if(g==="backward")for(const A of y){const E=A.dataset.date;if(!E)continue;const k=p(new Date(E));k<=_&&_-k<$&&($=_-k,w=A)}if(!w)for(const A of y){const E=A.dataset.date;if(!E)continue;const k=Math.abs(p(new Date(E))-_);k<$&&($=k,w=A)}w?.scrollIntoView({block:"start",behavior:b})}return(0,n.watch)(()=>r.startDate,(v,b)=>{const g=!b||p(v)>=p(b)?"forward":"backward";(0,n.nextTick)(()=>h(v,"smooth",g))}),(0,n.watchEffect)(()=>{if(d.value||!u.value.length)return;const v=new Date().getTime();u.value.some(b=>b.date.getTime()>=v-864e5)&&(d.value=!0,(0,n.nextTick)(()=>h(new Date,"instant","nearest")))}),(0,n.onMounted)(()=>{l.value?.addEventListener("scroll",f)}),(0,n.onUnmounted)(()=>{l.value?.removeEventListener("scroll",f)}),(v,b)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"containerRef",ref:l,class:"display-flex column h-100p overflow gap-0"},[u.value.length===0?((0,n.openBlock)(),(0,n.createElementBlock)("div",G1,[(0,n.createVNode)((0,n.unref)(ge),{icon:"calendar",size:"4",weight:"200"}),(0,n.createTextVNode)(" "+(0,n.toDisplayString)((0,n.unref)(i)("calendar.agenda.noEvents")),1)])):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(u.value,g=>((0,n.openBlock)(),(0,n.createElementBlock)("section",{key:g.dateKey,class:"mb-1 agenda-day-group","data-date":g.date.toISOString(),"data-today":g.isToday||void 0},[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["sticky z-2 flex gap-05 p-1 m_p-05 mb-05",{"bg-primary-light":g.isToday,"bg-bg":!g.isToday}])},[(0,n.createElementVNode)("div",X1,[(0,n.createElementVNode)("p",K1,(0,n.toDisplayString)(g.dayNumber),1),(0,n.createElementVNode)("p",J1,(0,n.toDisplayString)(g.monthShort),1)]),(0,n.createElementVNode)("div",null,[(0,n.createElementVNode)("p",Z1,(0,n.toDisplayString)(g.weekdayLong),1),(0,n.createElementVNode)("p",Q1,(0,n.toDisplayString)((0,n.unref)(i)("calendar.agenda.eventsCount",g.events.length,{named:{n:g.events.length}})),1)]),g.isToday?((0,n.openBlock)(),(0,n.createElementBlock)("p",e_,(0,n.toDisplayString)((0,n.unref)(i)("calendar.today")),1)):(0,n.createCommentVNode)("",!0)],2),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(g.events,y=>((0,n.openBlock)(),(0,n.createElementBlock)("article",{key:y.id,class:"agenda-event-row grid gap-05 hover pe-1",onClick:(0,n.withModifiers)(_=>m(y,_),["stop"])},[(0,n.createElementVNode)("div",n_,(0,n.toDisplayString)((0,n.unref)(it)(y.start_time,{format:"HH:mm"})),1),(0,n.createVNode)((0,n.unref)(ar),{class:"agenda-event-card overflow-hidden transition py-025 px-075 my-025",frame:"",style:(0,n.normalizeStyle)({"--event-color":y.color||"var(--bgl-primary)"})},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("div",r_,[(0,n.createElementVNode)("h3",o_,(0,n.toDisplayString)(y.title),1),(0,n.createElementVNode)("p",a_,(0,n.toDisplayString)(c(y.durationMin)),1)]),y.description?((0,n.openBlock)(),(0,n.createElementBlock)("p",i_,(0,n.toDisplayString)(y.description),1)):(0,n.createCommentVNode)("",!0)]),_:2},1032,["style"])],8,t_))),128))],8,Y1))),128))],512))}}),s_=we(l_,[["__scopeId","data-v-9aafb2d8"]]),c_={class:"w-100p overflow-hidden m_overflow h-100p grid"},u_={class:"border-bottom me-1 txt-center p-05 dayGrid"},d_={class:"overflow h-100p pe-05"},f_={class:"time-column"},m_={class:"events-column"},p_=["onClick"],h_={class:"event-content"},g_={class:"white-space ellipsis-1"},v_={class:"event-time opacity-8"},y_={class:"color-primary txt-12 p-025"},Ro=60,Fo=60,b_=(0,n.defineComponent)({__name:"DayView",props:{events:{},startDate:{}},emits:["eventClick","eventCreate","openPopover"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.useSlots)(),i={start:0,end:24},l=(0,n.ref)({isDragging:!1,start:null,end:null,startTime:null,endTime:null}),s=(0,n.ref)(0),c=(0,n.ref)(!1),u=(0,n.ref)(null),d=(0,n.computed)(()=>{const y=[];for(let _=i.start;_<i.end;_++)for(let w=0;w<60;w+=Fo)y.push({hour:_,minute:w,time:`${_.toString().padStart(2,"0")}:${w.toString().padStart(2,"0")}`});return y}),f=(0,n.computed)(()=>r.events.filter(y=>new Date(y.start_time).toDateString()===r.startDate.toDateString()).map(y=>{const _=new Date(y.start_time),w=new Date(y.end_time),$=_.getHours()*60+_.getMinutes(),A=w.getHours()*60+w.getMinutes(),E=$/Fo*Ro,k=Math.max((A-$)/Fo*Ro,30);return{...y,top:E,height:k}}));function m(){const y=new Date;c.value=y.toDateString()===r.startDate.toDateString(),s.value=(y.getHours()*60+y.getMinutes())/Fo*Ro}function p(y){y.target.closest(".time-slot")&&(l.value.isDragging=!0,l.value.start={x:y.clientX,y:y.clientY},l.value.startTime=b(y.clientY),document.addEventListener("mousemove",h),document.addEventListener("mouseup",v))}function h(y){l.value.isDragging&&(l.value.end={x:y.clientX,y:y.clientY},l.value.endTime=b(y.clientY))}function v(){if(!l.value.isDragging||!l.value.startTime||!l.value.endTime)return;let y=new Date(l.value.startTime),_=new Date(l.value.endTime);_<y&&([y,_]=[_,y]),o("eventCreate",{start_time:y,end_time:_}),l.value={isDragging:!1,start:null,end:null,startTime:null,endTime:null},document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",v)}function b(y){const _=document.querySelector(".time-slots")?.getBoundingClientRect();if(!_)return new Date;const w=y-_.top,$=Fo,A=w/Ro,E=Math.floor(A*$),k=new Date(r.startDate);return k.setHours(Math.floor(E/60)),k.setMinutes(E%60),k.setSeconds(0),k.setMilliseconds(0),k}function g(y,_){if(!a.eventContent){o("eventClick",y);return}if(_){const w=_.currentTarget.getBoundingClientRect();o("openPopover",y,{top:w.top+window.scrollY+w.height/2,left:w.left+window.scrollX+w.width+10})}else o("openPopover",y)}return(0,n.onMounted)(()=>{document.addEventListener("mousedown",p),m(),u.value=setInterval(m,6e4)}),(0,n.onUnmounted)(()=>{document.removeEventListener("mousedown",p),document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",v),u.value&&clearInterval(u.value)}),(y,_)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",c_,[(0,n.createElementVNode)("div",u_,[_[0]||(_[0]=(0,n.createElementVNode)("div",null,null,-1)),(0,n.createElementVNode)("div",null,(0,n.toDisplayString)((0,n.unref)(it)(e.startDate)),1)]),(0,n.createElementVNode)("div",d_,[(0,n.createElementVNode)("div",{class:"time-slots dayGrid border-end relative",onMousedown:p},[(0,n.createElementVNode)("div",f_,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(d.value,w=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:w.time,class:"time-slot txt-light txt-12 color-gray bg-gray-light border-start",style:(0,n.normalizeStyle)({height:`${Ro}px`})},(0,n.toDisplayString)(w.time),5))),128))]),(0,n.createElementVNode)("div",m_,[c.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"absolute end w-100p z-2 flex pointer-events-none",style:(0,n.normalizeStyle)({top:`${s.value}px`})},[..._[1]||(_[1]=[(0,n.createElementVNode)("div",{class:"current-time-dot h-10px aspect-ratio-1 round bg-primary"},null,-1),(0,n.createElementVNode)("div",{class:"current-time-line w-100p bg-primary"},null,-1)])],4)):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(f.value,w=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:w.id,class:"event absolute radius-05 overflow-hidden pointer transition z-1",style:(0,n.normalizeStyle)({top:`${w.top}px`,height:`${w.height}px`,backgroundColor:w.color||"var(--bgl-primary)"}),onClick:(0,n.withModifiers)($=>g(w,$),["stop"])},[(0,n.createElementVNode)("div",h_,[(0,n.createElementVNode)("div",g_,(0,n.toDisplayString)(w.title),1),(0,n.createElementVNode)("div",v_,(0,n.toDisplayString)((0,n.unref)(it)(new Date(w.start_time),{format:"HH:mm"}))+" - "+(0,n.toDisplayString)((0,n.unref)(it)(new Date(w.end_time),{format:"HH:mm"})),1)])],12,p_))),128))]),l.value.isDragging&&l.value.start&&l.value.end?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"drag-preview absolute bg-primary-tint pointer-events-none z-1",style:(0,n.normalizeStyle)({top:`${Math.min(l.value.start.y,l.value.end.y)}px`,height:`${Math.abs(l.value.end.y-l.value.start.y)}px`,left:"10px",right:"10px"})},[(0,n.createElementVNode)("div",y_,(0,n.toDisplayString)(l.value.startTime?(0,n.unref)(it)(l.value.startTime,{format:"HH:mm"}):"")+" - "+(0,n.toDisplayString)(l.value.endTime?(0,n.unref)(it)(l.value.endTime,{format:"HH:mm"}):""),1)],4)):(0,n.createCommentVNode)("",!0)],32)]),_[2]||(_[2]=(0,n.createElementVNode)("div",{class:"border-bottom me-1"},null,-1))]))}}),__=we(b_,[["__scopeId","data-v-f2670028"]]),w_={class:"month-view"},$_={class:"month-header"},k_={class:"month-grid"},E_={class:"day-number"},C_={class:"day-events"},S_={key:0,class:"event-dot"},x_=["onClick"],T_={class:"event-title"},N_={class:"event-time"},D_=(0,n.defineComponent)({__name:"MonthView",props:{events:{},startDate:{}},emits:["eventClick","openPopover"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.useSlots)(),{isMobile:i}=ja(),l=(0,n.computed)(()=>{let u="en";try{u=$r().global.locale.value}catch{}return Array.from({length:7},(d,f)=>new Date(2024,0,7+f).toLocaleDateString(u,{weekday:"short"}))}),s=(0,n.computed)(()=>{const u=r.startDate.getFullYear(),d=r.startDate.getMonth(),f=new Date(u,d,1),m=new Date(u,d+1,0).getDate(),p=f.getDay(),h=new Date().toDateString(),v=[],b=new Date(u,d,0).getDate();for(let y=p-1;y>=0;y--){const _=new Date(u,d-1,b-y);v.push({date:_,events:[],isToday:!1,isCurrentMonth:!1})}for(let y=1;y<=m;y++){const _=new Date(u,d,y),w=r.events.filter($=>{const A=new Date($.start_time);return A.getDate()===y&&A.getMonth()===d&&A.getFullYear()===u});v.push({date:_,events:w,isToday:_.toDateString()===h,isCurrentMonth:!0})}const g=42-v.length;for(let y=1;y<=g;y++){const _=new Date(u,d+1,y);v.push({date:_,events:[],isToday:!1,isCurrentMonth:!1})}return v});function c(u,d){if(!a.eventContent){o("eventClick",u);return}if(d){const f=d.currentTarget.getBoundingClientRect();o("openPopover",u,{top:f.top+window.scrollY+f.height/2,left:f.left+window.scrollX+f.width+10})}else o("openPopover",u)}return(u,d)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",w_,[(0,n.createElementVNode)("div",$_,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(l.value,f=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:f,class:"weekday"},(0,n.toDisplayString)(f),1))),128))]),(0,n.createElementVNode)("div",k_,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(s.value,f=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:f.date.toISOString(),class:(0,n.normalizeClass)(["day-cell",{"current-month":f.isCurrentMonth,today:f.isToday,"other-month":!f.isCurrentMonth}])},[(0,n.createElementVNode)("div",E_,(0,n.toDisplayString)((0,n.unref)(it)(f.date,{format:"DD"})),1),(0,n.createElementVNode)("div",C_,[(0,n.unref)(i)?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[f.events.length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",S_)):(0,n.createCommentVNode)("",!0)],64)):((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:1},(0,n.renderList)(f.events,m=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:m.id,class:"event-item",style:(0,n.normalizeStyle)({backgroundColor:m.color||"var(--bgl-primary)"}),onClick:(0,n.withModifiers)(p=>c(m,p),["stop"])},[(0,n.createElementVNode)("div",T_,(0,n.toDisplayString)(m.title),1),(0,n.createElementVNode)("div",N_,(0,n.toDisplayString)((0,n.unref)(it)(m.start_time,"HH:mm")),1)],12,x_))),128))])],2))),128))])]))}}),A_=we(D_,[["__scopeId","data-v-0abf6d19"]]),B_={class:"w-100p overflow-hidden m_overflow h-100p grid"},M_=["onMousedown"],L_=["onClick"],P_={class:"overflow-hidden color-white p-025 txt12 h-100p flex gap-1 flex-wrap"},I_={class:"white-space ellipsis-1"},V_={class:"txt10 opacity-8 user-select-none"},O_={class:"color-primary txt-12 p-025"},pt=60,Kt=60,Xa=30,R_=(0,n.defineComponent)({__name:"WeekView",props:{events:{default:()=>[]},startDate:{default:()=>new Date},weekStart:{default:"Sunday"},availabilityMode:{type:Boolean,default:!1},availabilityEditable:{type:Boolean,default:!1},availabilitySlots:{default:()=>[]}},emits:["eventClick","eventCreate","openPopover","availabilityChange"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.useSlots)(),i={start:0,end:24},l=(0,n.computed)(()=>!!a.eventCreate||Object.prototype.hasOwnProperty.call(o,"eventCreate")),s=(0,n.ref)({isDragging:!1,startDay:-1,endDay:-1,start:void 0,end:void 0,startTime:void 0,endTime:void 0}),c=(0,n.ref)([]),u=(0,n.ref)({isDragging:!1,mode:"add",dayIndex:-1,startMinute:0,currentMinute:0});(0,n.watch)(()=>r.availabilitySlots,R=>{c.value=R.map(I=>({start_time:new Date(I.start_time),end_time:new Date(I.end_time)}))},{immediate:!0});const d=(0,n.computed)(()=>{const R=[],I=new Date(r.startDate),U=r.weekStart==="Sunday"?0:1,D=I.getDay();I.setDate(I.getDate()-D+U),I.setHours(0,0,0,0);for(let W=0;W<7;W++){const j=new Date(I);j.setDate(I.getDate()+W),R.push(j)}return R});function f(R){return Math.round(R/Xa)*Xa}function m(R){return c.value.filter(I=>{const U=new Date(I.start_time);return U.getFullYear()===R.getFullYear()&&U.getMonth()===R.getMonth()&&U.getDate()===R.getDate()}).map(I=>{const U=new Date(I.start_time).getHours()*60+new Date(I.start_time).getMinutes(),D=new Date(I.end_time).getHours()*60+new Date(I.end_time).getMinutes();return{top:U/Kt*pt,height:(D-U)/Kt*pt,slot:I}})}function p(R){if(!u.value.isDragging||u.value.dayIndex!==R)return null;const I=Math.min(u.value.startMinute,u.value.currentMinute),U=Math.max(u.value.startMinute,u.value.currentMinute);return{top:I/Kt*pt,height:(U-I)/Kt*pt,mode:u.value.mode}}function h(R,I){return c.value.some(U=>{const D=new Date(U.start_time);if(D.getFullYear()!==R.getFullYear()||D.getMonth()!==R.getMonth()||D.getDate()!==R.getDate())return!1;const W=D.getHours()*60+D.getMinutes(),j=new Date(U.end_time).getHours()*60+new Date(U.end_time).getMinutes();return I>=W&&I<j})}function v(R,I){if(!r.availabilityEditable)return;R.preventDefault(),R.stopPropagation();const U=d.value[I],D=f(N(R.clientY));u.value={isDragging:!0,mode:h(U,D)?"remove":"add",dayIndex:I,startMinute:D,currentMinute:D+Xa},document.addEventListener("mousemove",b),document.addEventListener("mouseup",g)}function b(R){if(!u.value.isDragging)return;const I=f(N(R.clientY));u.value.currentMinute=I}function g(){if(!u.value.isDragging)return;const{dayIndex:R,startMinute:I,currentMinute:U,mode:D}=u.value,W=d.value[R],j=Math.min(I,U),Y=Math.max(I,U);if(Y-j<Xa){u.value.isDragging=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",g);return}const ae=new Date(W);ae.setHours(Math.floor(j/60),j%60,0,0);const be=new Date(W);if(be.setHours(Math.floor(Y/60),Y%60,0,0),D==="add"){const K=c.value.filter(de=>{const _e=new Date(de.start_time);return _e.getFullYear()!==W.getFullYear()||_e.getMonth()!==W.getMonth()||_e.getDate()!==W.getDate()}),ce=c.value.filter(de=>{const _e=new Date(de.start_time);return _e.getFullYear()===W.getFullYear()&&_e.getMonth()===W.getMonth()&&_e.getDate()===W.getDate()});ce.push({start_time:ae,end_time:be}),ce.sort((de,_e)=>new Date(de.start_time).getTime()-new Date(_e.start_time).getTime());const ie=[];for(const de of ce)if(ie.length===0)ie.push({start_time:new Date(de.start_time),end_time:new Date(de.end_time)});else{const _e=ie[ie.length-1];new Date(de.start_time).getTime()<=new Date(_e.end_time).getTime()?_e.end_time=new Date(Math.max(new Date(_e.end_time).getTime(),new Date(de.end_time).getTime())):ie.push({start_time:new Date(de.start_time),end_time:new Date(de.end_time)})}c.value=[...K,...ie]}else{const K=[];for(const ce of c.value){const ie=new Date(ce.start_time);if(ie.getFullYear()!==W.getFullYear()||ie.getMonth()!==W.getMonth()||ie.getDate()!==W.getDate()){K.push(ce);continue}const de=new Date(ce.start_time).getTime(),_e=new Date(ce.end_time).getTime(),se=ae.getTime(),$e=be.getTime();if(_e<=se||de>=$e){K.push(ce);continue}de<se&&K.push({start_time:new Date(de),end_time:new Date(se)}),_e>$e&&K.push({start_time:new Date($e),end_time:new Date(_e)})}c.value=K}o("availabilityChange",c.value),u.value.isDragging=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",g)}const y=(0,n.ref)(0),_=(0,n.ref)(!1),w=(0,n.ref)(),$=(0,n.ref)(),A=(0,n.ref)(),E=(0,n.ref)([]),k=(0,n.ref)(),P=(0,n.ref)();function N(R){if(!k.value)return 0;const I=R-k.value.getBoundingClientRect().top;return Math.max(0,Math.min(I/pt*Kt,1440))}const V=(0,n.computed)(()=>{const R=[];for(let I=i.start;I<i.end;I++)for(let U=0;U<60;U+=Kt)R.push({hour:I,minute:U,time:`${I.toString().padStart(2,"0")}:${U.toString().padStart(2,"0")}`});return R}),x=(0,n.computed)(()=>{if(!s.value.isDragging||!s.value.startTime||!s.value.endTime)return null;const R=s.value.startTime.getHours()*60+s.value.startTime.getMinutes(),I=s.value.endTime.getHours()*60+s.value.endTime.getMinutes();return{top:R/Kt*pt,height:Math.max((I-R)/Kt*pt,30)}}),T=(0,n.computed)(()=>{const R=[],I={};return r.events.forEach(U=>{const D=new Date(U.start_time),W=new Date(U.end_time),j=d.value.findIndex(ie=>ie.getDate()===D.getDate()&&ie.getMonth()===D.getMonth()&&ie.getFullYear()===D.getFullYear());if(j===-1)return;const Y=D.getHours()*60+D.getMinutes(),ae=W.getHours()*60+W.getMinutes(),be=Y/Kt*pt,K=Math.max((ae-Y)/Kt*pt,30),ce={...U,top:be,height:K,left:0,width:100,overlappingEvents:0,position:0};I[j]||(I[j]=[]),I[j].push(ce)}),Object.entries(I).forEach(([U,D])=>{D.sort((Y,ae)=>new Date(Y.start_time).getTime()-new Date(ae.start_time).getTime());const W=[];let j=[];D.forEach(Y=>{j.length===0?j=[Y]:j.some(ae=>{const be=new Date(Y.start_time).getTime(),K=new Date(Y.end_time).getTime(),ce=new Date(ae.start_time).getTime(),ie=new Date(ae.end_time).getTime();return!(K<=ce||be>=ie)})?j.push(Y):(j.length>0&&W.push([...j]),j=[Y])}),j.length>0&&W.push(j),W.forEach(Y=>{if(Y.length>1){const be=(100-2*(Y.length-1))/Y.length;Y.forEach((K,ce)=>{K.overlappingEvents=Y.length,K.position=ce,K.width=be,K.left=ce*(be+2)})}R.push(...Y)})}),R});function L(R,I){if(!l.value||!A.value||!k.value)return;let U=-1;for(let Y=0;Y<E.value.length;Y++){const ae=E.value[Y];if(!ae)continue;const be=ae.getBoundingClientRect();if(R.clientX>=be.left&&R.clientX<=be.right){U=Y;break}}if(U===-1)return;const D=E.value[U].getBoundingClientRect(),W=k.value.getBoundingClientRect();s.value.isDragging=!0,s.value.startDay=U,s.value.endDay=U,s.value.start={x:D.left-W.left,y:R.clientY-W.top},s.value.end={x:D.right-W.left,y:R.clientY-W.top};const j=B(R.clientY,I);s.value.startTime=j,document.addEventListener("mousemove",F),document.addEventListener("mouseup",O)}function F(R){if(!l.value||!s.value.isDragging||!s.value.start||!E.value.length||!A.value||!k.value)return;let I=-1;for(let U=0;U<E.value.length;U++){const D=E.value[U];if(!D)continue;const W=D.getBoundingClientRect();if(R.clientX>=W.left&&R.clientX<=W.right){I=U;break}}if(I!==-1&&(s.value.endDay=I,s.value.end={x:s.value.start.x,y:R.clientY-k.value.getBoundingClientRect().top},I>=0&&I<d.value.length)){const U=new Date(d.value[s.value.startDay]);U.setHours(0,0,0,0);const D=B(R.clientY,U);s.value.endTime=D}}function O(){if(!l.value||!s.value.isDragging||!s.value.startTime||!s.value.endTime)return;let R=new Date(s.value.startTime),I=new Date(s.value.endTime);I<R&&([R,I]=[I,R]),o("eventCreate",{start_time:R,end_time:I}),s.value={isDragging:!1,startDay:-1,endDay:-1,start:void 0,end:void 0,startTime:void 0,endTime:void 0},document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",O)}function B(R,I){if(!k.value)return new Date(I);const U=R-k.value.getBoundingClientRect().top,D=Kt,W=U/pt,j=Math.floor(W*D),Y=new Date(I);Y.setHours(Math.floor(j/60));const ae=Math.round(j%60/5)*5;return Y.setMinutes(ae),Y.setSeconds(0),Y.setMilliseconds(0),Y}function q(){const R=new Date;_.value=d.value.some(I=>I.getDate()===R.getDate()&&I.getMonth()===R.getMonth()&&I.getFullYear()===R.getFullYear()),y.value=(R.getHours()*60+R.getMinutes())/Kt*pt}function te(R,I){if(!a.eventContent){o("eventClick",R);return}if(I){const U=I.currentTarget.getBoundingClientRect();o("openPopover",R,{top:U.top+window.scrollY+U.height/2,left:U.left+window.scrollX+U.width+10})}else o("openPopover",R)}function ee(R,I){for(;E.value.length<=I;)E.value.push(null);R?E.value[I]=R instanceof Element?R:R.$el:E.value[I]=null}function le(R){P.value&&(P.value.scrollTop=R*pt)}return(0,n.onMounted)(()=>{q(),w.value=setInterval(q,6e4),(0,n.nextTick)(()=>{le(6)})}),(0,n.onUnmounted)(()=>{document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",O),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",g),w.value&&clearInterval(w.value)}),(R,I)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",B_,[(0,n.createElementVNode)("div",{ref_key:"calendarGrid",ref:A,class:"weekGrid border-bottom me-1"},[I[1]||(I[1]=(0,n.createElementVNode)("div",null,null,-1)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(d.value,U=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:U.toISOString(),class:"day-header p-05 txt-center m_txt12"},[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(it)(U,{format:"DDD"}))+" ",1),(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(["txt-12 round p-025",{"color-gray":U.toDateString()!==new Date().toDateString(),"bg-primary color-white":U.toDateString()===new Date().toDateString()}])},(0,n.toDisplayString)((0,n.unref)(it)(U,{format:"DD"})),3)]))),128))],512),(0,n.createElementVNode)("div",{ref_key:"scrollableContainer",ref:P,class:"overflow h-100p pe-05"},[(0,n.createElementVNode)("div",{ref_key:"dayColumnsContainer",ref:k,class:"weekGrid border-end relative"},[(0,n.createElementVNode)("div",{ref_key:"timeSlotsContainer",ref:$},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(V.value,U=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:U.time,class:"txt-light txt-12 color-gray flex justify-content-center bg-gray-light border-start",style:(0,n.normalizeStyle)({height:`${pt}px`})},(0,n.toDisplayString)(U.time),5))),128))],512),_.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"absolute end w-100p z-2 flex pointer-events-none ps-4-5",style:(0,n.normalizeStyle)({top:`${y.value}px`})},[...I[2]||(I[2]=[(0,n.createElementVNode)("div",{class:"current-time-dot h-10px aspect-ratio-1 round bg-primary"},null,-1),(0,n.createElementVNode)("div",{class:"current-time-line w-100p bg-primary"},null,-1)])],4)):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(d.value,(U,D)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:U.toISOString(),ref_for:!0,ref:W=>ee(W,D),class:"day-column top bottom border-start relative",onMousedown:W=>r.availabilityEditable?v(W,D):L(W,U)},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(V.value,W=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:`line-${W.time}`},[(0,n.createElementVNode)("div",{class:"hour-line absolute start end pointer-events-none",style:(0,n.normalizeStyle)({top:`${W.hour*pt}px`})},null,4),(0,n.createElementVNode)("div",{class:"sub-hour-line absolute start end pointer-events-none",style:(0,n.normalizeStyle)({top:`${W.hour*pt+pt/3}px`})},null,4),(0,n.createElementVNode)("div",{class:"sub-hour-line absolute start end pointer-events-none",style:(0,n.normalizeStyle)({top:`${W.hour*pt+pt*2/3}px`})},null,4)],64))),128)),r.availabilityMode?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(m(U),(W,j)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:`avail-${j}`,class:(0,n.normalizeClass)(["availability-block absolute start end",{"availability-editable":r.availabilityEditable}]),style:(0,n.normalizeStyle)({top:`${W.top}px`,height:`${W.height}px`})},null,6))),128)),p(D)?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["availability-preview absolute start end pointer-events-none",{"avail-remove":p(D).mode==="remove"}]),style:(0,n.normalizeStyle)({top:`${p(D).top}px`,height:`${p(D).height}px`})},null,6)):(0,n.createCommentVNode)("",!0)],64)):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(T.value.filter(W=>new Date(W.start_time).toDateString()===U.toDateString()),W=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:W.id,class:"event absolute radius-05 overflow-hidden pointer transition z-1 opacity-8 border",style:(0,n.normalizeStyle)({top:`${W.top}px`,height:`${W.height}px`,left:`${W.left}%`,width:`${W.width}%`,backgroundColor:W.color||"var(--bgl-primary)"}),onMousedown:I[0]||(I[0]=(0,n.withModifiers)(()=>{},["stop"])),onClick:(0,n.withModifiers)(j=>te(W,j),["stop"])},[(0,n.createElementVNode)("div",P_,[(0,n.createElementVNode)("div",I_,(0,n.toDisplayString)(W.title),1),(0,n.createElementVNode)("div",V_,(0,n.toDisplayString)((0,n.unref)(it)(W.start_time,{format:"HH:mm"}))+" - "+(0,n.toDisplayString)((0,n.unref)(it)(W.end_time,{format:"HH:mm"})),1)])],44,L_))),128))],40,M_))),128)),l.value&&s.value.isDragging&&s.value.start&&s.value.end&&x.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:"drag-preview absolute bg-primary-tint pointer-events-none overflow-hidden opacity-7 z-1",style:(0,n.normalizeStyle)({left:`${s.value.start.x}px`,top:`${x.value.top}px`,width:`${E.value[s.value.startDay]?.offsetWidth||100}px`,height:`${x.value.height}px`})},[(0,n.createElementVNode)("div",O_,(0,n.toDisplayString)(s.value.startTime?(0,n.unref)(it)(s.value.startTime,{format:"HH:mm"}):"")+" - "+(0,n.toDisplayString)(s.value.endTime?(0,n.unref)(it)(s.value.endTime,{format:"HH:mm"}):""),1)],4)):(0,n.createCommentVNode)("",!0)],512)],512),I[3]||(I[3]=(0,n.createElementVNode)("div",{class:"border-bottom me-1"},null,-1))]))}}),F_=we(R_,[["__scopeId","data-v-0850fe4c"]]),z_={class:"calendar"},U_={class:"flex m_block p-1"},H_={class:"txt-light my-0 m_pb-05"},W_={class:"ms-auto flex gap-025 m_flex-wrap"},j_={class:"flex gap-025"},q_=(0,n.defineComponent)({__name:"Index",props:{events:{default:()=>[]},startDate:{default:()=>new Date},view:{default:"Week"},weekStart:{default:"Sunday"},availabilityMode:{type:Boolean,default:!1},availabilityEditable:{type:Boolean,default:!1},availabilitySlots:{default:()=>[]},viewSwitcher:{default:"dropdown"}},emits:["eventClick","eventCreate","eventUpdate","eventDelete","dateChange","viewChange","ready","availabilityChange"],setup(e,{expose:t,emit:r}){const o=e,a=r,{t:i}=ft(),l=(0,n.ref)(new Date(o.startDate)),s=(0,n.ref)(o.view),c=(0,n.ref)(),u=(0,n.ref)(!1),d=(0,n.ref)(),f={Week:F_,Month:A_,Day:__,Agenda:s_},m=(0,n.computed)(()=>Object.keys(f).map(P=>({label:i(`calendar.views.${P.toLowerCase()}`),value:P}))),p={Week:"weeks",Month:"months",Day:"days",Agenda:"days"},h=(0,n.computed)(()=>{const P=new Date(l.value);let N=new Date(l.value);const V=o.weekStart==="Sunday"?0:1;switch(s.value){case"Week":P.setDate(P.getDate()-P.getDay()+V),N.setDate(P.getDate()+6);break;case"Month":case"Agenda":P.setDate(-6),N=new Date(P.getFullYear(),P.getMonth()+2,7);break;case"Day":N.setDate(N.getDate()+1);break;default:break}return{start:P,end:N}}),v=(0,n.computed)(()=>({visibleDateRange:h.value,currentDate:l.value,currentView:s.value}));function b(P){l.value=new Date(P),a("dateChange",v.value)}function g(P){a("dateChange",{visibleDateRange:h.value,currentDate:P,currentView:s.value})}function y(P){s.value=P,a("viewChange",v.value)}function _(P){a("eventClick",P)}function w(P){a("eventCreate",P)}function $(P){a("eventUpdate",P)}function A(P){a("eventDelete",P)}function E(P,N){c.value=P,d.value=N,u.value=!0}function k(){u.value=!1,c.value=void 0,d.value=void 0}return t({visibleDateRange:h,currentView:s,currentDate:l,openPopover:E,closePopover:k}),(0,n.onMounted)(()=>{a("ready",v.value)}),(P,N)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",z_,[(0,n.createElementVNode)("div",U_,[(0,n.createElementVNode)("h3",H_,[(0,n.createElementVNode)("b",null,(0,n.toDisplayString)((0,n.unref)(it)(l.value,"MMMM")),1),(0,n.createTextVNode)(" "+(0,n.toDisplayString)((0,n.unref)(it)(l.value,"YYYY")),1)]),(0,n.createElementVNode)("div",W_,[e.viewSwitcher==="tabs"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Nl),{key:0,size:"sm","model-value":s.value,tabs:m.value,group:"calendar-view","onUpdate:modelValue":N[0]||(N[0]=V=>y(V)),style:{"--bgl_tabs-border-radius":"calc(var(--bgl-btn-border-radius) / 2)"},class:"txt12 m_mb-05 m_w-100p","align-txt":"center"},null,8,["model-value","tabs"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Tt),{key:1,thin:"",value:s.value,iconEnd:"keyboard_arrow_down",color:"gray"},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(f,(V,x)=>(0,n.createVNode)((0,n.unref)(Dn),{key:x,thin:"",title:(0,n.unref)(i)(`calendar.views.${x.toLowerCase()}`),onClick:T=>y(x)},null,8,["title","onClick"])),64))]),_:1},8,["value"])),(0,n.createElementVNode)("div",j_,[(0,n.createVNode)((0,n.unref)(ne),{icon:"calendar",size:"sm",class:"txt12",color:"gray",value:(0,n.unref)(i)("calendar.today"),onClick:N[1]||(N[1]=V=>b(new Date))},null,8,["value"]),(0,n.createVNode)((0,n.unref)(ne),{icon:"chevron_left",color:"gray",size:"sm",class:"",disabled:s.value==="Agenda",onClick:N[2]||(N[2]=V=>b((0,n.unref)(dn)(l.value,{[p[s.value]]:-1})))},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(ne),{icon:"chevron_right",color:"gray",size:"sm",class:"",disabled:s.value==="Agenda",onClick:N[3]||(N[3]=V=>b((0,n.unref)(dn)(l.value,{[p[s.value]]:1})))},null,8,["disabled"])])])]),((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(f[s.value]),{events:e.events,"start-date":l.value,"week-start":e.weekStart,"availability-mode":o.availabilityMode,"availability-editable":o.availabilityEditable,"availability-slots":o.availabilitySlots,onEventClick:_,onEventCreate:w,onEventUpdate:$,onEventDelete:A,onDateChange:N[4]||(N[4]=V=>s.value==="Agenda"?g(V):b(V)),onOpenPopover:E,onAvailabilityChange:N[5]||(N[5]=V=>a("availabilityChange",V))},{eventContent:(0,n.withCtx)(({event:V,close:x})=>[(0,n.renderSlot)(P.$slots,"eventContent",{event:V,close:x},void 0,!0)]),_:3},40,["events","start-date","week-start","availability-mode","availability-editable","availability-slots"])),(0,n.createVNode)(q1,{event:c.value,position:d.value,show:u.value,"has-event-content-slot":!!P.$slots.eventContent,onClose:k,onEventClick:_},{eventContent:(0,n.withCtx)(({event:V,close:x})=>[(0,n.renderSlot)(P.$slots,"eventContent",{event:V,close:x},void 0,!0)]),_:3},8,["event","position","show","has-event-content-slot"])]))}}),G_=we(q_,[["__scopeId","data-v-91aaf448"]]),Y_={key:0,class:"card_label"},X_=(0,n.defineComponent)({name:"BglCard",__name:"Card",props:{label:{},thin:{type:Boolean},outline:{type:Boolean},h100:{type:Boolean},to:{},href:{},overflowX:{type:Boolean},overflowY:{type:Boolean},frame:{type:Boolean},bg:{}},setup(e){const t=e,r=(0,n.computed)(()=>{const a={};return t.href!==void 0&&t.href!==""?a.href=t.href:t.to!==void 0&&t.to!==""&&(a.to=t.to),a}),o=(0,n.computed)(()=>t.href!==void 0&&t.href!==""?"a":t.to!==void 0&&t.to!==""?"router-link":"div");return(a,i)=>{const l=(0,n.resolveDirective)("ripple");return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(o.value),(0,n.mergeProps)(r.value,{class:["bgl_card",{thin:e.thin,border:e.outline,"h-100":e.h100,[e.bg||""]:e.bg,"overflow-x":e.overflowX,"overflow-y":e.overflowY,card_frame:e.frame}]}),{default:(0,n.withCtx)(()=>[e.label?((0,n.openBlock)(),(0,n.createElementBlock)("span",Y_,(0,n.toDisplayString)(e.label),1)):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(a.$slots,"default")]),_:3},16,["class"])),[[l,!!e.to]])}}}),ar=X_,K_=new Set(["div","span","p"]),J_=new Set(["img","iframe"]);function Jp(e){const{mode:t="form",getFormData:r,onUpdateModelValue:o,includeUnset:a=!1}=e;function i(u,d=0){if(u==null)return"";if(typeof u!="object")return String(u);if(Array.isArray(u))return u.map(h=>i(h,d+1)).join(", ");const f=d>0?" ".repeat(d):"",m=" ".repeat(d+1),p=Object.entries(u);return p.length===0?"{}":d>0?`{
|
|
11
11
|
${p.map(([h,v])=>`${m}${h}: ${i(v,d+1)}`).join(`,
|
|
12
12
|
`)}
|
|
13
13
|
${f}}`:p.map(([h,v])=>`${h}: ${typeof v=="object"&&v!==null?i(v,d+1):String(v)}`).join(`
|
|
@@ -22,13 +22,13 @@ ${f}}`:p.map(([h,v])=>`${h}: ${typeof v=="object"&&v!==null?i(v,d+1):String(v)}`
|
|
|
22
22
|
])(${t})(?!${t})`,"g")}match({password:t}){const r=[];if(t.length===0)return r;const o=Ys.getMostUsedSeparatorChar(t);if(o===void 0)return r;const a=Ys.getSeparatorRegex(o);for(const i of t.matchAll(a)){if(i.index===void 0)continue;const l=i.index+1;r.push({pattern:"separator",token:o,i:l,j:l})}return r}},eE=class{constructor(){this.matchers={date:yk,dictionary:Dk,regex:Ak,repeat:Xk,sequence:Kk,spatial:Jk,separator:Qk}}match(e){const t=[],r=[];return[...Object.keys(this.matchers),...Object.keys(Ee.matchers)].forEach(o=>{if(!this.matchers[o]&&!Ee.matchers[o])return;const a=new(this.matchers[o]?this.matchers[o]:Ee.matchers[o].Matching)().match({password:e,omniMatch:this});a instanceof Promise?(a.then(i=>{js(t,i)}),r.push(a)):js(t,a)}),r.length>0?new Promise((o,a)=>{Promise.all(r).then(()=>{o(wo(t))}).catch(i=>{a(i)})}):wo(t)}},xh=1,Th=xh*60,Nh=Th*60,Dh=Nh*24,Ah=Dh*31,Od=Ah*12,Gl={second:xh,minute:Th,hour:Nh,day:Dh,month:Ah,year:Od,century:Od*100},tE=class{translate(e,t){let r=e;t!==void 0&&t!==1&&(r+="s");const{timeEstimation:o}=Ee.translations;return o[r].replace("{base}",`${t}`)}estimateAttackTimes(e){const t={onlineThrottling100PerHour:e/.027777777777777776,onlineNoThrottling10PerSecond:e/10,offlineSlowHashing1e4PerSecond:e/1e4,offlineFastHashing1e10PerSecond:e/1e10},r={onlineThrottling100PerHour:"",onlineNoThrottling10PerSecond:"",offlineSlowHashing1e4PerSecond:"",offlineFastHashing1e10PerSecond:""};return Object.keys(t).forEach(o=>{const a=t[o];r[o]=this.displayTime(a)}),{crackTimesSeconds:t,crackTimesDisplay:r,score:this.guessesToScore(e)}}guessesToScore(e){return e<1005?0:e<1000005?1:e<100000005?2:e<1e10+5?3:4}displayTime(e){let t="centuries",r;const o=Object.keys(Gl),a=o.findIndex(i=>e<Gl[i]);return a>-1&&(t=o[a-1],a!==0?r=Math.round(e/Gl[t]):t="ltSecond"),this.translate(t,r)}},nE=(()=>null),rE=(()=>({warning:Ee.translations.warnings.dates,suggestions:[Ee.translations.suggestions.dates]})),oE=(e,t)=>{let r=null;return t&&!e.l33t&&!e.reversed?e.rank<=10?r=Ee.translations.warnings.topTen:e.rank<=100?r=Ee.translations.warnings.topHundred:r=Ee.translations.warnings.common:e.guessesLog10<=4&&(r=Ee.translations.warnings.similarToCommon),r},aE=(e,t)=>{let r=null;return t&&(r=Ee.translations.warnings.wordByItself),r},iE=(e,t)=>t?Ee.translations.warnings.namesByThemselves:Ee.translations.warnings.commonNames,lE=(e,t)=>{let r=null;const o=e.dictionaryName,a=o==="lastnames"||o.toLowerCase().includes("firstnames");return o==="passwords"?r=oE(e,t):o.includes("wikipedia")?r=aE(e,t):a?r=iE(e,t):o==="userInputs"&&(r=Ee.translations.warnings.userInputs),r},sE=((e,t)=>{const r=lE(e,t),o=[],a=e.token;return a.match(Eh)?o.push(Ee.translations.suggestions.capitalization):a.match(Ch)&&a.toLowerCase()!==a&&o.push(Ee.translations.suggestions.allUppercase),e.reversed&&e.token.length>=4&&o.push(Ee.translations.suggestions.reverseWords),e.l33t&&o.push(Ee.translations.suggestions.l33t),{warning:r,suggestions:o}}),cE=(e=>e.regexName==="recentYear"?{warning:Ee.translations.warnings.recentYears,suggestions:[Ee.translations.suggestions.recentYears,Ee.translations.suggestions.associatedYears]}:{warning:null,suggestions:[]}),uE=(e=>{let t=Ee.translations.warnings.extendedRepeat;return e.baseToken.length===1&&(t=Ee.translations.warnings.simpleRepeat),{warning:t,suggestions:[Ee.translations.suggestions.repeated]}}),dE=(()=>({warning:Ee.translations.warnings.sequences,suggestions:[Ee.translations.suggestions.sequences]})),fE=(e=>{let t=Ee.translations.warnings.keyPattern;return e.turns===1&&(t=Ee.translations.warnings.straightRow),{warning:t,suggestions:[Ee.translations.suggestions.longerKeyboardPattern]}}),mE=(()=>null),Rd={warning:null,suggestions:[]},pE=class{constructor(){this.matchers={bruteforce:nE,date:rE,dictionary:sE,regex:cE,repeat:uE,sequence:dE,spatial:fE,separator:mE},this.defaultFeedback={warning:null,suggestions:[]},this.setDefaultSuggestions()}setDefaultSuggestions(){this.defaultFeedback.suggestions.push(Ee.translations.suggestions.useWords,Ee.translations.suggestions.noNeed)}getFeedback(e,t){if(t.length===0)return this.defaultFeedback;if(e>2)return Rd;const r=Ee.translations.suggestions.anotherWord,o=this.getLongestMatch(t);let a=this.getMatchFeedback(o,t.length===1);return a!=null?a.suggestions.unshift(r):a={warning:null,suggestions:[r]},a}getLongestMatch(e){let t=e[0];return e.slice(1).forEach(r=>{r.token.length>t.token.length&&(t=r)}),t}getMatchFeedback(e,t){return this.matchers[e.pattern]?this.matchers[e.pattern](e,t):Ee.matchers[e.pattern]&&"feedback"in Ee.matchers[e.pattern]?Ee.matchers[e.pattern].feedback(e,t):Rd}},Bh=()=>new Date().getTime(),hE=(e,t,r)=>{const o=new pE,a=new tE,i=Gs.mostGuessableMatchSequence(t,e),l=Bh()-r,s=a.estimateAttackTimes(i.guesses);return{calcTime:l,...i,...s,feedback:o.getFeedback(s.score,i.sequence)}},gE=(e,t)=>(t&&Ee.extendUserInputsDictionary(t),new eE().match(e)),vE=(e,t)=>{const r=Bh(),o=gE(e,t);if(o instanceof Promise)throw new Error("You are using a Promised matcher, please use `zxcvbnAsync` for it.");return hE(o,e,r)},yE={class:"m-password position-bottom-end flex column justify-content-center"},bE={key:0,class:"password-strength-container absolute start end -bottom-1-5"},_E={class:"password-strength-bar pointer overflow-hidden round"},wE=(0,n.defineComponent)({__name:"PasswordInput",props:(0,n.mergeModels)({strengthMeter:{type:Boolean,default:!1},id:{},title:{},helptext:{},name:{},placeholder:{},modelValue:{},label:{default:""},small:{type:Boolean},dense:{type:Boolean},required:{type:Boolean},pattern:{},defaultValue:{},shrink:{type:Boolean},underlined:{type:Boolean},disabled:{type:Boolean},type:{},nativeInputAttrs:{},icon:{},iconStart:{},multiline:{type:Boolean},autoheight:{type:Boolean},code:{type:Boolean},rows:{},autocomplete:{default:"current-password"},autofocus:{type:Boolean},error:{},onFocusout:{},onFocus:{},validate:{},getFormData:{},frame:{type:Boolean},outline:{type:Boolean},minWidth:{},maxWidth:{},labelColor:{},labelActiveColor:{}},{modelValue:{},modelModifiers:{},showPwd:{type:Boolean,default:!1},showPwdModifiers:{}}),emits:["update:modelValue","update:showPwd"],setup(e){const t=e,{$t:r}=ft(),o=(0,n.computed)(()=>{const{strengthMeter:h,modelValue:v,...b}=t;return b}),a=(0,n.useModel)(e,"modelValue"),i=(0,n.useModel)(e,"showPwd"),l=(0,n.computed)(()=>i.value?"visibility_off":"visibility"),s=(0,n.computed)(()=>i.value?"text":"password"),c=(0,n.computed)(()=>{const h=a.value;return!t.strengthMeter||h==null||h.length===0?null:vE(h)}),u=(0,n.computed)(()=>a.value==null||a.value.length===0?null:c.value?.score??0),d=(0,n.computed)(()=>{const h=u.value;return h==null?"var(--bgl-input-bg)":h<=1?"var(--bgl-red)":h===2?"var(--bgl-orange)":h===3?"var(--bgl-yellow)":"var(--bgl-green)"}),f=(0,n.computed)(()=>{const h=u.value;return h==null?"":r(h===0?"password.veryWeak":h===1?"password.weak":h===2?"password.fair":h===3?"password.good":"password.strong")}),m=(0,n.computed)(()=>{const h=u.value;return h==null?0:(h+1)/5*100}),p=(0,n.computed)(()=>{const h=c.value;if(!h)return"";const{feedback:{warning:v,suggestions:b}}=h;return[...v?[v]:[],...b].join(" ")});return(h,v)=>{const b=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["relative passwordInput",{"relative mb-2":t.strengthMeter,"has-error":!!t.error,underlined:t.underlined}])},[(0,n.createVNode)((0,n.unref)(Fe),(0,n.mergeProps)({modelValue:a.value,"onUpdate:modelValue":v[0]||(v[0]=g=>a.value=g)},o.value,{type:s.value,class:"mb-0"}),null,16,["modelValue","type"]),(0,n.createElementVNode)("div",yE,[(0,n.createVNode)((0,n.unref)(ne),{flat:"",thin:"",class:"mx-05",icon:l.value,onClick:v[1]||(v[1]=g=>i.value=!i.value)},null,8,["icon"])]),t.strengthMeter?((0,n.openBlock)(),(0,n.createElementBlock)("div",bE,[(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",_E,[(0,n.createElementVNode)("div",{class:"password-strength-fill h-100p round",style:(0,n.normalizeStyle)({width:`${m.value}%`,backgroundColor:d.value})},null,4)])),[[b,p.value||`Password strength: ${f.value}`]]),(0,n.createElementVNode)("span",{class:"password-strength-label txt10 light white-space",style:(0,n.normalizeStyle)({color:d.value})},(0,n.toDisplayString)(f.value),5)])):(0,n.createCommentVNode)("",!0)],2)}}}),Mh=wE;function ta(e){return e==null?"":typeof e=="object"?e.label??String(e.value??""):String(e)}function Dr(e){if(e!=null)return typeof e=="object"?e.value:e}function ga(e){if(!(e==null||typeof e!="object"))return e.icon}function Lh(e){if(typeof e=="object"&&e!==null){const t=e;return{...t,label:t.label??String(t.value??""),value:t.value}}return{label:String(e),value:e}}var $E={key:0,class:"group-label"},kE={key:0},EE={class:"radio-group-wrap"},CE=["for"],SE=["id","disabled","name","value","required"],xE=["src","alt"],TE={class:""},NE=["innerHTML"],DE={key:1,class:"txt-gray txt-12 m-0 pt-025"},AE=(0,n.defineComponent)({__name:"RadioGroup",props:(0,n.mergeModels)({id:{},label:{},groupName:{},options:{},deletable:{type:Boolean},required:{type:Boolean},error:{},disabled:{type:Boolean},thin:{type:Boolean},flat:{type:Boolean},invertedActive:{type:Boolean},align:{default:"center"},hideRadio:{type:Boolean},bgColor:{},activeBgColor:{},activeTextColor:{},borderColor:{},textColor:{},textAlign:{},frame:{type:Boolean},outline:{type:Boolean},minWidth:{},maxWidth:{},labelColor:{},labelActiveColor:{}},{modelValue:{},modelModifiers:{}}),emits:(0,n.mergeModels)(["delete","focus","blur","change"],["update:modelValue"]),setup(e,{emit:t}){(0,n.useCssVars)(b=>({v682c0a00:b.activeBgColor||"var(--bgl-primary-light)",v91bde0f8:b.activeTextColor||null}));const r=e,o=t,{shellClass:a,shellStyle:i}=lt(r),l=(0,n.computed)(()=>r.groupName||r.id||Math.random().toString(36).substring(2,15)),s=(0,n.useModel)(e,"modelValue"),c=(0,n.ref)([]),u=(0,n.computed)(()=>(Array.isArray(r.options)?r.options:c.value).map(b=>Lh(b)));async function d(){if(typeof r.options=="function")try{c.value=await r.options()}catch{c.value=[]}}(0,n.watch)(()=>r.options,()=>{c.value=[],d()},{immediate:!0,deep:!0});const f=(0,n.ref)(!1),m=(0,n.computed)(()=>({"bagel-input":!0,...a.value,"has-error":!!r.error,"is-disabled":r.disabled,"is-focused":f.value,"has-value":s.value!=null&&s.value!=="",open:f.value}));function p(){f.value=!0,o("focus")}function h(){f.value=!1,o("blur")}function v(){o("change",s.value)}return(b,g)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(m.value),style:(0,n.normalizeStyle)((0,n.unref)(i))},[e.label?((0,n.openBlock)(),(0,n.createElementBlock)("p",$E,[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(ke)(e.label))+" ",1),e.required?((0,n.openBlock)(),(0,n.createElementBlock)("span",kE,"*")):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",EE,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(u.value,(y,_)=>((0,n.openBlock)(),(0,n.createElementBlock)("label",{key:y.id||`${l.value}-${_}`,class:(0,n.normalizeClass)(["border rounded flex active-list-item hover mb-05",{"p-05 gap-025":e.thin,"py-1 gap-075":!e.thin,"ps-05":!e.hideRadio,"bg-gray-light":!e.bgColor&&!e.flat,"align-items-start":e.align==="start"||e.align==="top","align-items-center":e.align==="center","align-items-end":e.align==="end"||e.align==="bottom",invertedActive:e.invertedActive}]),for:y.id||`${l.value}-${_}`,style:(0,n.normalizeStyle)({backgroundColor:e.bgColor,borderColor:e.borderColor})},[(0,n.withDirectives)((0,n.createElementVNode)("input",{id:y.id||`${l.value}-${_}`,"onUpdate:modelValue":g[0]||(g[0]=w=>s.value=w),disabled:e.disabled,class:(0,n.normalizeClass)(["radio-input-list",{"mt-025":e.align==="start"||e.align==="top","mb-025":e.align==="end"||e.align==="bottom",hideRadio:e.hideRadio}]),type:"radio",name:l.value,value:y.value,required:e.required,onFocus:p,onBlur:h,onChange:v},null,42,SE),[[n.vModelRadio,s.value]]),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025",{"txt-center justify-content-center":e.textAlign==="center","txt-end justify-content-end":e.textAlign==="right","txt-start justify-content-start":e.textAlign==="left"}]),style:(0,n.normalizeStyle)({color:e.textColor})},[y.imgSrc?((0,n.openBlock)(),(0,n.createElementBlock)("img",{key:0,class:"py-025 radius-05 m_w40 object-fit",height:"40",width:"40",src:y.imgSrc,alt:y.imgAlt},null,8,xE)):y.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,icon:y.icon,size:1},null,8,["icon"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",TE,[y.label?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"m-0 m_txt-14 line-height-14",innerHTML:(0,n.unref)(Hg)(y.label)},null,8,NE)):(0,n.createCommentVNode)("",!0),y.subLabel?((0,n.openBlock)(),(0,n.createElementBlock)("p",DE,(0,n.toDisplayString)(y.subLabel),1)):(0,n.createCommentVNode)("",!0)]),(0,n.renderSlot)(b.$slots,"radioItem",(0,n.mergeProps)({ref_for:!0},y),void 0,!0)],6),e.deletable?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:0,class:"ms-auto",flat:"",thin:"",icon:"delete",onClick:w=>b.$emit("delete",y)},null,8,["onClick"])):(0,n.createCommentVNode)("",!0)],14,CE))),128))])],6))}}),Ph=we(AE,[["__scopeId","data-v-777a2f54"]]),BE=["dir"],ME={key:0,class:"label"},LE={class:"range-slider relative w-100"},PE=["id","value","min","max","step","required","disabled","aria-label"],IE=["value","min","max","step","required","disabled"],VE={class:"txt-center txt-14 user-select-none range-slider-txt flex space-between opacity-4 mx-05"},OE=(0,n.defineComponent)({__name:"RangeInput",props:{modelValue:{},min:{},max:{},step:{},required:{type:Boolean},label:{},disabled:{type:Boolean},id:{},rtl:{type:Boolean},multiRange:{type:Boolean},formatValue:{type:Function},trackColor:{},activeColor:{},frame:{type:Boolean},outline:{type:Boolean},minWidth:{},maxWidth:{},labelColor:{},labelActiveColor:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,o=t,{min:a=0,max:i=100,step:l=1,multiRange:s=!1,formatValue:c=_=>_.toString()}=r,u=(0,n.ref)(Array.isArray(r.modelValue)?r.modelValue[0]:r.modelValue??a),d=(0,n.ref)(Array.isArray(r.modelValue)?r.modelValue[1]:i),f=(0,n.computed)(()=>Math.min(Math.max(u.value,a),s?d.value:i)),m=(0,n.computed)(()=>Math.max(Math.min(d.value,i),u.value)),p=(0,n.computed)(()=>(f.value-a)/(i-a)*100),h=(0,n.computed)(()=>(m.value-a)/(i-a)*100);(0,n.watch)(()=>r.modelValue,_=>{Array.isArray(_)&&s?(u.value=_[0]??a,d.value=_[1]??i):Array.isArray(_)||(u.value=_??a,d.value=i)},{immediate:!0});function v(_,w){w?u.value=_:d.value=_,o("update:modelValue",s?[f.value,m.value]:f.value)}const b=(0,n.computed)(()=>s?{left:`${p.value}%`,width:`${h.value-p.value}%`}:r.rtl?{left:`${100-p.value}%`,width:`${p.value}%`}:{left:"0",width:`${p.value}%`}),g=(0,n.computed)(()=>c(f.value)),y=(0,n.computed)(()=>c(m.value));return(_,w)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{dir:e.rtl?"rtl":"ltr",style:(0,n.normalizeStyle)([e.minWidth?{minWidth:e.minWidth}:{},e.maxWidth?{maxWidth:e.maxWidth}:{},e.activeColor?{"--bgl-range-thumb-color":e.activeColor}:{},e.labelActiveColor?{"--bgl-input-label-active-color":e.labelActiveColor}:{}])},[r.label?((0,n.openBlock)(),(0,n.createElementBlock)("label",ME,(0,n.toDisplayString)((0,n.unref)(ke)(r.label)),1)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",LE,[(0,n.createElementVNode)("input",{id:e.id,value:f.value,class:"from",type:"range",min:(0,n.unref)(a),max:(0,n.unref)(i),step:(0,n.unref)(l),required:e.required,disabled:e.disabled,"aria-label":(0,n.unref)(s)?"Minimum value":"Value",onInput:w[0]||(w[0]=$=>v(+$.target.value,!0))},null,40,PE),(0,n.unref)(s)?((0,n.openBlock)(),(0,n.createElementBlock)("input",{key:0,value:m.value,class:"to",type:"range",min:(0,n.unref)(a),max:(0,n.unref)(i),step:(0,n.unref)(l),required:e.required,disabled:e.disabled,"aria-label":"Maximum value",onInput:w[1]||(w[1]=$=>v(+$.target.value,!1))},null,40,IE)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",{class:"track absolute pointer-events-none overflow-hidden round",style:(0,n.normalizeStyle)(e.trackColor?{background:e.trackColor}:{})},[(0,n.createElementVNode)("div",{class:"active-range absolute h-100 pointer-events-none",style:(0,n.normalizeStyle)({...b.value,background:e.activeColor||"var(--bgl-input-label-active-color, var(--bgl-primary))"})},null,4)],4),f.value!==(0,n.unref)(a)?((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:1,class:"txt-center txt-12 range-slider-position-txt absolute line-height-1",style:(0,n.normalizeStyle)({"--progress":`${p.value}`})},[(0,n.unref)(s)?(0,n.createCommentVNode)("",!0):(0,n.renderSlot)(_.$slots,"progress",{key:0,progress:g.value,min:(0,n.unref)(c)((0,n.unref)(a)),max:(0,n.unref)(c)((0,n.unref)(i))},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(g.value),1)],!0),(0,n.unref)(s)?(0,n.renderSlot)(_.$slots,"from",{key:1,from:g.value,to:y.value,min:(0,n.unref)(c)((0,n.unref)(a)),max:(0,n.unref)(c)((0,n.unref)(i))},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(g.value),1)],!0):(0,n.createCommentVNode)("",!0)],4)):(0,n.createCommentVNode)("",!0),(0,n.unref)(s)&&m.value!==(0,n.unref)(i)?((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:2,class:"txt-center txt-12 range-slider-position-txt line-height-1 absolute",style:(0,n.normalizeStyle)({"--progress":`${h.value}`})},[(0,n.renderSlot)(_.$slots,"to",{to:y.value,from:g.value,min:(0,n.unref)(c)((0,n.unref)(a)),max:(0,n.unref)(c)((0,n.unref)(i))},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(y.value),1)],!0)],4)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("p",VE,[(0,n.renderSlot)(_.$slots,"min",{max:(0,n.unref)(c)((0,n.unref)(i)),min:(0,n.unref)(c)((0,n.unref)(a)),from:g.value,to:y.value,progress:g.value},()=>[(0,n.createElementVNode)("span",null,(0,n.toDisplayString)((0,n.unref)(c)((0,n.unref)(a))),1)],!0),(0,n.renderSlot)(_.$slots,"max",{max:(0,n.unref)(c)((0,n.unref)(i)),min:(0,n.unref)(c)((0,n.unref)(a)),from:g.value,to:y.value,progress:g.value},()=>[(0,n.createElementVNode)("span",null,(0,n.toDisplayString)((0,n.unref)(c)((0,n.unref)(i))),1)],!0)])],12,BE))}}),ou=we(OE,[["__scopeId","data-v-0cdca1d2"]]),RE={key:0,class:"label-text"},FE={key:0},zE={class:"flex gap-05"},UE=["disabled"],HE={key:2,class:"ms-auto ps-05 me-05"},WE=["value"],jE={key:1,class:"error-message"},qE={key:0,class:"opacity-7 txt-small light"},GE=["aria-selected","onClick","onKeydown"],YE={class:"flex gap-05"},XE={class:"block"},KE={key:0,class:"selectinput-option opacity-3 pointer-events-none"},JE=(0,n.defineComponent)({__name:"SelectInput",props:{options:{},placeholder:{},disabled:{type:Boolean},modelValue:{},searchable:{type:Boolean},required:{type:Boolean},label:{},fullWidth:{type:Boolean},multiselect:{type:Boolean},icon:{},hideLabel:{type:Boolean},defaultValue:{},helpText:{},clearable:{type:Boolean},placement:{default:"bottom-start"},searchPlaceholder:{},error:{},underlined:{type:Boolean},size:{},border:{type:Boolean},thin:{type:Boolean},round:{type:Boolean},frame:{type:Boolean},outline:{type:Boolean},minWidth:{},maxWidth:{},labelColor:{},labelActiveColor:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,o=t,{$t:a}=ft(),{shellClass:i,shellStyle:l}=lt(r),s=O=>typeof O=="function",c=(0,n.ref)(),u=(0,n.ref)(),d=(0,n.ref)([]),f=O=>Dr(O),m=(0,n.computed)(()=>d.value.length),p=(0,n.ref)(""),h=(0,n.ref)(),v=(0,n.ref)(!1),b=(0,n.ref)(!1),g=(0,n.computed)(()=>ke(r.placeholder)??a("select.placeholder")),y=(0,n.computed)(()=>({"selectinput-btn--xs":r.size==="xs","selectinput-btn--s":r.size==="s","selectinput-btn--l":r.size==="l","selectinput-btn--xl":r.size==="xl","selectinput-btn--round":r.round,"selectinput-btn--thin":r.thin,outline:r.outline,border:r.border})),_=(0,n.computed)(()=>m.value===0?g.value:m.value>4?`${d.value.slice(0,4).map(O=>ta(O)).join(", ")}... +${m.value-4}`:d.value.map(O=>ta(O)).join(", ")),w=(0,n.computed)(()=>r.searchPlaceholder??_.value??a("select.search")),{results:$,isLoading:A}=dy({searchTerm:()=>p.value,serverSearch:s(r.options)?r.options:void 0,items:()=>Array.isArray(r.options)?r.options:[],keysToSearch:["label"],minChars:s(r.options)?0:2}),E=(0,n.ref)(-1),k=(0,n.ref)();function P(O){if(!b.value){b.value=!0,setTimeout(()=>{P(O)},210);return}O==="up"?E.value=E.value>0?E.value-1:$.value.length-1:O==="down"&&(E.value=E.value<$.value.length-1?E.value+1:0),setTimeout(()=>{const B=k.value?.children[E.value];B?B.focus():E.value=-1},10)}const N=O=>d.value.find(B=>f(O)===f(B))!==void 0;function V(){if(!k.value||m.value===0)return;const O=$.value.findIndex(q=>N(q));if(O===-1)return;const B=k.value.children[O];B&&B.scrollIntoView({block:"center",behavior:"instant"})}function x(){b.value=!0}function T(O){v.value=!0;const B=d.value.findIndex(te=>f(te)===f(O));if(B>-1)d.value.splice(B,1);else if(r.multiselect){const te=[...d.value];te.push(O),d.value=te}else d.value.splice(0,m.value,O);const q=document.activeElement;q&&k.value?.contains(q)&&q.blur(),r.multiselect||(b.value=!1,setTimeout(()=>{u.value?.focus()},0)),L()}function L(){if(r.multiselect)o("update:modelValue",d.value.map(f).filter(O=>O!=null));else{const[O]=d.value;o("update:modelValue",f(O))}}function F(O,B){if(O.length!==B.length)return!1;const q=O.map(f).filter(ee=>ee!=null).map(String).sort(),te=B.map(f).filter(ee=>ee!=null).map(String).sort();return q.every((ee,le)=>ee===te[le])}return(0,n.watch)(()=>r.modelValue,O=>{if(r.multiselect){const B=Array.isArray(O)?O:O!=null?[O]:[];F(B,d.value)||d.value.splice(0,m.value,...B)}else if(O==null)d.value.length>0&&(d.value=[]);else{const B=Array.isArray(O)?O[0]:O,q=Array.isArray(r.options)?r.options.find(te=>f(te)===f(B))??B:B;q!=null&&!N(q)&&(d.value=[q])}},{immediate:!0}),(0,n.watch)(()=>b.value,O=>{O&&(E.value=-1,setTimeout(()=>{V()},10))}),(0,n.watch)(()=>r.options,()=>{const O=r.options;Array.isArray(O)&&d.value.forEach((B,q)=>{const te=O.find(ee=>f(ee)===f(B));te===void 0?d.value.splice(q,1):d.value.splice(q,1,te)})},{deep:!0,immediate:!0}),(0,n.watch)(()=>$.value,O=>{s(r.options)&&O.length>0&&d.value.forEach((B,q)=>{const te=f(B);if(typeof B!="object"||!B.label){const ee=O.find(le=>f(le)===te);ee!==void 0&&d.value.splice(q,1,ee)}})},{deep:!0,immediate:!0}),(0,n.onMounted)(()=>{const O=r.options;if(r.modelValue==null&&r.defaultValue!==void 0&&Array.isArray(O)){const B=O.find(q=>f(q)===f(r.defaultValue));if(B===void 0)return;d.value=[B]}}),(O,B)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Tt),{ref_key:"dropdown",ref:h,shown:b.value,"onUpdate:shown":B[11]||(B[11]=q=>b.value=q),placement:e.placement,class:(0,n.normalizeClass)(["bagel-input selectinput",[(0,n.unref)(i),{"has-error":!!e.error,underlined:e.underlined,open:b.value,"has-value":m.value>0}]]),style:(0,n.normalizeStyle)((0,n.unref)(l)),"no-auto-focus":"",onClick:B[12]||(B[12]=(0,n.withModifiers)(()=>{},["stop"]))},{trigger:(0,n.withCtx)(()=>[(0,n.createElementVNode)("label",null,[e.label||e.underlined&&e.placeholder?((0,n.openBlock)(),(0,n.createElementBlock)("span",RE,[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(ke)(e.label)||(0,n.unref)(ke)(e.placeholder)),1),e.required?((0,n.openBlock)(),(0,n.createElementBlock)("span",FE," *")):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",zE,[e.searchable&&b.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Fe),{key:0,ref_key:"searchInput",ref:c,modelValue:p.value,"onUpdate:modelValue":B[0]||(B[0]=q=>p.value=q),class:"mb-0",placeholder:w.value,icon:"search",onInput:B[1]||(B[1]=q=>v.value=!1),onClick:x,onKeydown:[B[2]||(B[2]=(0,n.withKeys)((0,n.withModifiers)(q=>P("down"),["prevent"]),["down"])),B[3]||(B[3]=(0,n.withKeys)((0,n.withModifiers)(q=>P("up"),["prevent"]),["up"]))]},null,8,["modelValue","placeholder"])):((0,n.openBlock)(),(0,n.createElementBlock)("button",{key:1,ref_key:"triggerBtn",ref:u,disabled:e.disabled,type:"button",class:(0,n.normalizeClass)(["selectinput-btn",[{isEmpty:m.value===0},y.value]]),onClick:B[5]||(B[5]=q=>b.value=!b.value),onKeydown:[B[6]||(B[6]=(0,n.withKeys)((0,n.withModifiers)(q=>P("down"),["prevent"]),["down"])),B[7]||(B[7]=(0,n.withKeys)((0,n.withModifiers)(q=>P("up"),["prevent"]),["up"]))]},[e.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:0,icon:e.icon},null,8,["icon"])):(0,n.createCommentVNode)("",!0),e.hideLabel?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:1,class:(0,n.normalizeClass)({"me-auto ms-05":e.icon})},(0,n.toDisplayString)(m.value>0?_.value:e.underlined?"":(0,n.unref)(ke)(e.placeholder)||"Select..."),3)),e.clearable&&m.value>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",HE,[(0,n.createVNode)((0,n.unref)(ne),{flat:"",thin:"",icon:"clear",class:"color-gray",onClick:B[4]||(B[4]=q=>{d.value=[],L()})})])):(0,n.createCommentVNode)("",!0),e.disabled?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)(n.Transition,{key:3,name:"icon-swap",mode:"out-in"},{default:(0,n.withCtx)(()=>[b.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:"open",thin:"",icon:e.underlined?"expand_less":"unfold_less"},null,8,["icon"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:"closed",thin:"",icon:e.underlined?"expand_more":"unfold_more"},null,8,["icon"]))]),_:1}))],42,UE)),e.required&&!e.underlined?((0,n.openBlock)(),(0,n.createElementBlock)("input",{key:2,tabindex:"-1",style:{width:"0",height:"0",position:"absolute",opacity:"0","z-index":"-1"},value:d.value,required:""},null,8,WE)):(0,n.createCommentVNode)("",!0)]),e.error?((0,n.openBlock)(),(0,n.createElementBlock)("div",jE,(0,n.toDisplayString)(e.error),1)):(0,n.createCommentVNode)("",!0)]),e.helpText?((0,n.openBlock)(),(0,n.createElementBlock)("p",qE,(0,n.toDisplayString)(e.helpText),1)):(0,n.createCommentVNode)("",!0)]),default:(0,n.withCtx)(()=>[(0,n.unref)(A)?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Ki),{key:0,count:6,width:"200px",height:"25px",class:"mx-1 my-1"})):(0,n.createCommentVNode)("",!0),(0,n.createVNode)((0,n.unref)(ar),{class:"p-05",frame:"",style:(0,n.normalizeStyle)({width:e.fullWidth?"100%":"auto"}),onClick:B[10]||(B[10]=(0,n.withModifiers)(()=>{},["stop"]))},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("div",{ref_key:"selectOptions",ref:k,class:(0,n.normalizeClass)(["selectinput-options",{multiselect:e.multiselect}])},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)($),(q,te)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:`${String(f(q))}-${te}`,class:(0,n.normalizeClass)(["selectinput-option hover gap-1 align-items-center",{selected:N(q)}]),role:"option",tabindex:"0","aria-selected":N(q),onClick:ee=>T(q),onKeydown:[(0,n.withKeys)(ee=>T(q),["enter"]),B[8]||(B[8]=(0,n.withKeys)((0,n.withModifiers)(ee=>P("down"),["prevent"]),["down"])),B[9]||(B[9]=(0,n.withKeys)((0,n.withModifiers)(ee=>P("up"),["prevent"]),["up"]))]},[e.multiselect?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[N(q)?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:0,size:1.1,icon:"select_check_box"})):(0,n.createCommentVNode)("",!0),N(q)?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,class:"opacity-3",icon:"check_box_outline_blank",size:1.1}))],64)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",YE,[(0,n.unref)(ga)(q)?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:0,icon:(0,n.unref)(ga)(q),size:1},null,8,["icon"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",XE,(0,n.toDisplayString)((0,n.unref)(ta)(q)),1)])],42,GE))),128)),(0,n.unref)($).length===0?((0,n.openBlock)(),(0,n.createElementBlock)("p",KE," No options found ")):(0,n.createCommentVNode)("",!0)],2),(0,n.renderSlot)(O.$slots,"last",{},void 0,!0)]),_:3},8,["style"])]),_:3},8,["shown","placement","class","style"]))}}),Ut=we(JE,[["__scopeId","data-v-4af41228"]]),ZE=["title"],QE=["for"],eC={key:0,class:"label-text"},tC={key:0},nC=["id","name","title","autocomplete","type","placeholder","disabled","required","pattern"],rC=["id","name","title","type","rows","placeholder","disabled","required","pattern"],oC={key:3,class:"opacity-7 light"},aC={key:0,class:"error-message"},iC=(0,n.defineComponent)({__name:"TextInput",props:{id:{},title:{},helptext:{},name:{},placeholder:{},modelValue:{default:""},label:{},small:{type:Boolean},dense:{type:Boolean},required:{type:Boolean},pattern:{},defaultValue:{},shrink:{type:Boolean},underlined:{type:Boolean},disabled:{type:Boolean},type:{default:"text"},nativeInputAttrs:{},icon:{},iconStart:{},multiline:{type:Boolean},autoheight:{type:Boolean},code:{type:Boolean},rows:{},autocomplete:{},autofocus:{type:Boolean},error:{},onFocusout:{},onFocus:{},validate:{},getFormData:{},frame:{type:Boolean},outline:{type:Boolean},minWidth:{},maxWidth:{},labelColor:{},labelActiveColor:{}},emits:["update:modelValue","debounce"],setup(e,{expose:t,emit:r}){const o=e,a=r,{shellClass:i,shellStyle:l}=lt(o),s=(0,n.computed)(()=>{if(!o.pattern)return;let{pattern:g}=o;g=g.replace(/^\^/,"").replace(/\$$/,"");try{return new RegExp(g,"v"),g}catch{try{return new RegExp(g),g}catch{return}}}),c=(0,n.ref)(),u=(0,n.ref)();Xg(()=>c.value,()=>u.value,o.validate,o.getFormData);const d=(0,n.computed)(()=>{let g=Number(o.rows)||1;return o.autoheight&&(g=Math.max(g,String(c.value).split(`
|
|
23
23
|
`).length)),(o.multiline||o.code)&&(g=Math.max(g,4)),g}),f=Vr(()=>{a("debounce",c.value)},700);function m(){if(!o.autoheight||!u.value||u.value.tagName!=="TEXTAREA")return;const g=u.value;g.style.height="auto",g.style.height=`${g.scrollHeight+1}px`}function p(){o.disabled||(a("update:modelValue",c.value),f(),o.autoheight&&(0,n.nextTick)(()=>{m()}))}(0,n.watch)(()=>o.modelValue,g=>{g!==c.value&&(c.value=g,o.autoheight&&(0,n.nextTick)(()=>{m()}))},{immediate:!0}),t({focus:()=>u.value?.focus(),hasFocus:()=>document.activeElement===u.value});const b=(0,n.computed)(()=>String(c.value??"").length>0);return(0,n.onMounted)(async()=>{o.autofocus&&setTimeout(()=>u.value?.focus(),50),o.autoheight&&(await(0,n.nextTick)(),m())}),(g,y)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["bagel-input text-input",[(0,n.unref)(i),{dense:e.dense,small:e.small,shrink:e.shrink,code:e.code,underlined:e.underlined,textInputIconWrap:e.icon,txtInputIconStart:e.iconStart,"has-error":!!e.error,"has-value":b.value}]]),style:(0,n.normalizeStyle)((0,n.unref)(l)),title:e.title},[(0,n.createElementVNode)("label",{for:e.id},[e.label||e.underlined&&e.placeholder?((0,n.openBlock)(),(0,n.createElementBlock)("span",eC,[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(ke)(e.label)||(0,n.unref)(ke)(e.placeholder)),1),e.required?((0,n.openBlock)(),(0,n.createElementBlock)("span",tC," *")):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),!e.autoheight&&d.value<2?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("input",(0,n.mergeProps)({key:1,id:e.id,ref_key:"input",ref:u,"onUpdate:modelValue":y[0]||(y[0]=_=>c.value=_),name:e.name,title:e.title,autocomplete:e.autocomplete,type:e.type,rows:1,placeholder:e.underlined?" ":(0,n.unref)(ke)(e.placeholder)||(0,n.unref)(ke)(e.label),disabled:e.disabled,required:e.required},e.nativeInputAttrs,{pattern:s.value,onFocusout:y[1]||(y[1]=(..._)=>e.onFocusout&&e.onFocusout(..._)),onFocus:y[2]||(y[2]=(..._)=>e.onFocus&&e.onFocus(..._)),onInput:p}),null,16,nC)),[[n.vModelDynamic,c.value,void 0,{trim:!0}]]):(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("textarea",(0,n.mergeProps)({key:2,id:e.id,ref_key:"input",ref:u,"onUpdate:modelValue":y[3]||(y[3]=_=>c.value=_),name:e.name,title:e.title,type:e.type,rows:d.value,placeholder:e.underlined?" ":(0,n.unref)(ke)(e.placeholder)||(0,n.unref)(ke)(e.label),disabled:e.disabled,required:e.required},e.nativeInputAttrs,{pattern:s.value,onInput:p,onFocusout:y[4]||(y[4]=(..._)=>e.onFocusout&&e.onFocusout(..._))}),null,16,rC)),[[n.vModelText,c.value]]),e.helptext?((0,n.openBlock)(),(0,n.createElementBlock)("p",oC,(0,n.toDisplayString)(e.helptext),1)):(0,n.createCommentVNode)("",!0),e.iconStart?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:4,class:(0,n.normalizeClass)([{" -top-025 line-height-0 ":e.underlined},"iconStart"]),icon:e.iconStart},null,8,["class","icon"])):(0,n.createCommentVNode)("",!0),e.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:5,class:(0,n.normalizeClass)({" -top-025 line-height-0 ":e.underlined}),icon:e.icon},null,8,["class","icon"])):(0,n.createCommentVNode)("",!0)],8,QE),e.error?((0,n.openBlock)(),(0,n.createElementBlock)("div",aC,(0,n.toDisplayString)(e.error),1)):(0,n.createCommentVNode)("",!0)],14,ZE))}}),Fe=we(iC,[["__scopeId","data-v-7ec4ed73"]]);function Ih(e,t){return function(){return e.apply(t,arguments)}}var{toString:lC}=Object.prototype,{getPrototypeOf:ml}=Object,{iterator:pl,toStringTag:Vh}=Symbol,hl=(e=>t=>{const r=lC.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),wn=e=>(e=e.toLowerCase(),t=>hl(t)===e),gl=e=>t=>typeof t===e,{isArray:Rr}=Array,$o=gl("undefined");function Mo(e){return e!==null&&!$o(e)&&e.constructor!==null&&!$o(e.constructor)&&Vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Oh=wn("ArrayBuffer");function sC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Oh(e.buffer),t}var cC=gl("string"),Vt=gl("function"),Rh=gl("number"),Ra=e=>e!==null&&typeof e=="object",uC=e=>e===!0||e===!1,hi=e=>{if(hl(e)!=="object")return!1;const t=ml(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Vh in e)&&!(pl in e)},dC=e=>{if(!Ra(e)||Mo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},fC=wn("Date"),mC=wn("File"),pC=e=>!!(e&&typeof e.uri<"u"),hC=e=>e&&typeof e.getParts<"u",gC=wn("Blob"),vC=wn("FileList"),yC=e=>Ra(e)&&Vt(e.pipe);function bC(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var Fd=bC(),zd=typeof Fd.FormData<"u"?Fd.FormData:void 0,_C=e=>{if(!e)return!1;if(zd&&e instanceof zd)return!0;const t=ml(e);if(!t||t===Object.prototype||!Vt(e.append))return!1;const r=hl(e);return r==="formdata"||r==="object"&&Vt(e.toString)&&e.toString()==="[object FormData]"},wC=wn("URLSearchParams"),[$C,kC,EC,CC]=["ReadableStream","Request","Response","Headers"].map(wn),SC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fa(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,a;if(typeof e!="object"&&(e=[e]),Rr(e))for(o=0,a=e.length;o<a;o++)t.call(null,e[o],o,e);else{if(Mo(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let s;for(o=0;o<l;o++)s=i[o],t.call(null,e[s],s,e)}}function Fh(e,t){if(Mo(e))return null;t=t.toLowerCase();const r=Object.keys(e);let o=r.length,a;for(;o-- >0;)if(a=r[o],t===a.toLowerCase())return a;return null}var Ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zh=e=>!$o(e)&&e!==Ar;function Xs(...e){const{caseless:t,skipUndefined:r}=zh(this)&&this||{},o={},a=(i,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const s=t&&typeof l=="string"&&Fh(o,l)||l,c=Ks(o,s)?o[s]:void 0;hi(c)&&hi(i)?o[s]=Xs(c,i):hi(i)?o[s]=Xs({},i):Rr(i)?o[s]=i.slice():(!r||!$o(i))&&(o[s]=i)};for(let i=0,l=e.length;i<l;i++){const s=e[i];if(!s||Mo(s)||(Fa(s,a),typeof s!="object"||Rr(s)))continue;const c=Object.getOwnPropertySymbols(s);for(let u=0;u<c.length;u++){const d=c[u];OC.call(s,d)&&a(s[d],d)}}return o}var xC=(e,t,r,{allOwnKeys:o}={})=>(Fa(t,(a,i)=>{r&&Vt(a)?Object.defineProperty(e,i,{__proto__:null,value:Ih(a,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),TC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),NC=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},DC=(e,t,r,o)=>{let a,i,l;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)l=a[i],(!o||o(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=r!==!1&&ml(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},AC=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return o!==-1&&o===r},BC=e=>{if(!e)return null;if(Rr(e))return e;let t=e.length;if(!Rh(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},MC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ml(Uint8Array)),LC=(e,t)=>{const r=(e&&e[pl]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},PC=(e,t)=>{let r;const o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},IC=wn("HTMLFormElement"),VC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,a){return o.toUpperCase()+a}),Ks=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),{propertyIsEnumerable:OC}=Object.prototype,RC=wn("RegExp"),Uh=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};Fa(r,(a,i)=>{let l;(l=t(a,i,e))!==!1&&(o[i]=l||a)}),Object.defineProperties(e,o)},FC=e=>{Uh(e,(t,r)=>{if(Vt(e)&&["arguments","caller","callee"].includes(r))return!1;const o=e[r];if(Vt(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},zC=(e,t)=>{const r={},o=a=>{a.forEach(i=>{r[i]=!0})};return Rr(e)?o(e):o(String(e).split(t)),r},UC=()=>{},HC=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function WC(e){return!!(e&&Vt(e.append)&&e[Vh]==="FormData"&&e[pl])}var jC=e=>{const t=new WeakSet,r=o=>{if(Ra(o)){if(t.has(o))return;if(Mo(o))return o;if(!("toJSON"in o)){t.add(o);const a=Rr(o)?[]:{};return Fa(o,(i,l)=>{const s=r(i);!$o(s)&&(a[l]=s)}),t.delete(o),a}}return o};return r(e)},qC=wn("AsyncFunction"),GC=e=>e&&(Ra(e)||Vt(e))&&Vt(e.then)&&Vt(e.catch),Hh=((e,t)=>e?setImmediate:t?((r,o)=>(Ar.addEventListener("message",({source:a,data:i})=>{a===Ar&&i===r&&o.length&&o.shift()()},!1),a=>{o.push(a),Ar.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Vt(Ar.postMessage)),YC=typeof queueMicrotask<"u"?queueMicrotask.bind(Ar):typeof process<"u"&&process.nextTick||Hh,XC=e=>e!=null&&Vt(e[pl]),J={isArray:Rr,isArrayBuffer:Oh,isBuffer:Mo,isFormData:_C,isArrayBufferView:sC,isString:cC,isNumber:Rh,isBoolean:uC,isObject:Ra,isPlainObject:hi,isEmptyObject:dC,isReadableStream:$C,isRequest:kC,isResponse:EC,isHeaders:CC,isUndefined:$o,isDate:fC,isFile:mC,isReactNativeBlob:pC,isReactNative:hC,isBlob:gC,isRegExp:RC,isFunction:Vt,isStream:yC,isURLSearchParams:wC,isTypedArray:MC,isFileList:vC,forEach:Fa,merge:Xs,extend:xC,trim:SC,stripBOM:TC,inherits:NC,toFlatObject:DC,kindOf:hl,kindOfTest:wn,endsWith:AC,toArray:BC,forEachEntry:LC,matchAll:PC,isHTMLForm:IC,hasOwnProperty:Ks,hasOwnProp:Ks,reduceDescriptors:Uh,freezeMethods:FC,toObjectSet:zC,toCamelCase:VC,noop:UC,toFiniteNumber:HC,findKey:Fh,global:Ar,isContextDefined:zh,isSpecCompliantForm:WC,toJSONObject:jC,isAsyncFn:qC,isThenable:GC,setImmediate:Hh,asap:YC,isIterable:XC},KC=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),JC=e=>{const t={};let r,o,a;return e&&e.split(`
|
|
24
24
|
`).forEach(function(l){a=l.indexOf(":"),r=l.substring(0,a).trim().toLowerCase(),o=l.substring(a+1).trim(),!(!r||t[r]&&KC[r])&&(r==="set-cookie"?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)}),t};function ZC(e){let t=0,r=e.length;for(;t<r;){const o=e.charCodeAt(t);if(o!==9&&o!==32)break;t+=1}for(;r>t;){const o=e.charCodeAt(r-1);if(o!==9&&o!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}var QC=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),eS=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function au(e,t){return J.isArray(e)?e.map(r=>au(r,t)):ZC(String(e).replace(t,""))}const tS=e=>au(e,QC),nS=e=>au(e,eS);function Wh(e){const t=Object.create(null);return J.forEach(e.toJSON(),(r,o)=>{t[o]=nS(r)}),t}var Ud=Symbol("internals");function zo(e){return e&&String(e).trim().toLowerCase()}function gi(e){return e===!1||e==null?e:J.isArray(e)?e.map(gi):tS(String(e))}function rS(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}var oS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Yl(e,t,r,o,a){if(J.isFunction(o))return o.call(this,t,r);if(a&&(t=r),!!J.isString(t)){if(J.isString(o))return t.indexOf(o)!==-1;if(J.isRegExp(o))return o.test(t)}}function aS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,o)=>r.toUpperCase()+o)}function iS(e,t){const r=J.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+r,{__proto__:null,value:function(a,i,l){return this[o].call(this,t,a,i,l)},configurable:!0})})}var vl=class{constructor(e){e&&this.set(e)}set(e,t,r){const o=this;function a(l,s,c){const u=zo(s);if(!u)return;const d=J.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||s]=gi(l))}const i=(l,s)=>J.forEach(l,(c,u)=>a(c,u,s));if(J.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(J.isString(e)&&(e=e.trim())&&!oS(e))i(JC(e),t);else if(J.isObject(e)&&J.isIterable(e)){let l={},s,c;for(const u of e){if(!J.isArray(u))throw new TypeError("Object iterator must return a key-value pair");l[c=u[0]]=(s=l[c])?J.isArray(s)?[...s,u[1]]:[s,u[1]]:u[1]}i(l,t)}else e!=null&&a(t,e,r);return this}get(e,t){if(e=zo(e),e){const r=J.findKey(this,e);if(r){const o=this[r];if(!t)return o;if(t===!0)return rS(o);if(J.isFunction(t))return t.call(this,o,r);if(J.isRegExp(t))return t.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=zo(e),e){const r=J.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||Yl(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let o=!1;function a(i){if(i=zo(i),i){const l=J.findKey(r,i);l&&(!t||Yl(r,r[l],l,t))&&(delete r[l],o=!0)}}return J.isArray(e)?e.forEach(a):a(e),o}clear(e){const t=Object.keys(this);let r=t.length,o=!1;for(;r--;){const a=t[r];(!e||Yl(this,this[a],a,e,!0))&&(delete this[a],o=!0)}return o}normalize(e){const t=this,r={};return J.forEach(this,(o,a)=>{const i=J.findKey(r,a);if(i){t[i]=gi(o),delete t[a];return}const l=e?aS(a):String(a).trim();l!==a&&delete t[a],t[l]=gi(o),r[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,(r,o)=>{r!=null&&r!==!1&&(t[o]=e&&J.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
|
25
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(o=>r.set(o)),r}static accessor(e){const t=(this[Ud]=this[Ud]={accessors:{}}).accessors,r=this.prototype;function o(a){const i=zo(a);t[i]||(iS(r,a),t[i]=!0)}return J.isArray(e)?e.forEach(o):o(e),this}};vl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(vl.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}});J.freezeMethods(vl);var on=vl,lS="[REDACTED ****]";function sS(e){if(J.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(J.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function cS(e,t){const r=new Set(t.map(i=>String(i).toLowerCase())),o=[],a=i=>{if(i===null||typeof i!="object"||J.isBuffer(i))return i;if(o.indexOf(i)!==-1)return;i instanceof on&&(i=i.toJSON()),o.push(i);let l;if(J.isArray(i))l=[],i.forEach((s,c)=>{const u=a(s);J.isUndefined(u)||(l[c]=u)});else{if(!J.isPlainObject(i)&&sS(i))return o.pop(),i;l=Object.create(null);for(const[s,c]of Object.entries(i)){const u=r.has(s.toLowerCase())?lS:a(c);J.isUndefined(u)||(l[s]=u)}}return o.pop(),l};return a(e)}var Nt=class jh extends Error{static from(t,r,o,a,i,l){const s=new jh(t.message,r||t.code,o,a,i);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),l&&Object.assign(s,l),s}constructor(t,r,o,a,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),o&&(this.config=o),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,r=t&&J.hasOwnProp(t,"redact")?t.redact:void 0,o=J.isArray(r)&&r.length>0?cS(t,r):J.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:o,code:this.code,status:this.status}}};Nt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Nt.ERR_BAD_OPTION="ERR_BAD_OPTION";Nt.ECONNABORTED="ECONNABORTED";Nt.ETIMEDOUT="ETIMEDOUT";Nt.ECONNREFUSED="ECONNREFUSED";Nt.ERR_NETWORK="ERR_NETWORK";Nt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Nt.ERR_DEPRECATED="ERR_DEPRECATED";Nt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Nt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Nt.ERR_CANCELED="ERR_CANCELED";Nt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Nt.ERR_INVALID_URL="ERR_INVALID_URL";Nt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var Ce=Nt;function Js(e){return J.isPlainObject(e)||J.isArray(e)}function qh(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Xl(e,t,r){return e?e.concat(t).map(function(a,i){return a=qh(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function uS(e){return J.isArray(e)&&!e.some(Js)}var dS=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function fS(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,g){return!J.isUndefined(g[b])});const o=r.metaTokens,a=r.visitor||f,i=r.dots,l=r.indexes,s=r.Blob||typeof Blob<"u"&&Blob,c=r.maxDepth===void 0?100:r.maxDepth,u=s&&J.isSpecCompliantForm(t);if(!J.isFunction(a))throw new TypeError("visitor must be a function");function d(v){if(v===null)return"";if(J.isDate(v))return v.toISOString();if(J.isBoolean(v))return v.toString();if(!u&&J.isBlob(v))throw new Ce("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(v)||J.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function f(v,b,g){let y=v;if(J.isReactNative(t)&&J.isReactNativeBlob(v))return t.append(Xl(g,b,i),d(v)),!1;if(v&&!g&&typeof v=="object"){if(J.endsWith(b,"{}"))b=o?b:b.slice(0,-2),v=JSON.stringify(v);else if(J.isArray(v)&&uS(v)||(J.isFileList(v)||J.endsWith(b,"[]"))&&(y=J.toArray(v)))return b=qh(b),y.forEach(function(w,$){!(J.isUndefined(w)||w===null)&&t.append(l===!0?Xl([b],$,i):l===null?b:b+"[]",d(w))}),!1}return Js(v)?!0:(t.append(Xl(g,b,i),d(v)),!1)}const m=[],p=Object.assign(dS,{defaultVisitor:f,convertValue:d,isVisitable:Js});function h(v,b,g=0){if(!J.isUndefined(v)){if(g>c)throw new Ce("Object is too deeply nested ("+g+" levels). Max depth: "+c,Ce.ERR_FORM_DATA_DEPTH_EXCEEDED);if(m.indexOf(v)!==-1)throw new Error("Circular reference detected in "+b.join("."));m.push(v),J.forEach(v,function(_,w){(!(J.isUndefined(_)||_===null)&&a.call(t,_,J.isString(w)?w.trim():w,b,p))===!0&&h(_,b?b.concat(w):[w],g+1)}),m.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return h(e),t}var yl=fS;function Hd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(o){return t[o]})}function Gh(e,t){this._pairs=[],e&&yl(e,this,t)}var Yh=Gh.prototype;Yh.append=function(t,r){this._pairs.push([t,r])};Yh.toString=function(t){const r=t?function(o){return t.call(this,o,Hd)}:Hd;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};var Xh=Gh;function mS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Kh(e,t,r){if(!t)return e;const o=r&&r.encode||mS,a=J.isFunction(r)?{serialize:r}:r,i=a&&a.serialize;let l;if(i?l=i(t,a):l=J.isURLSearchParams(t)?t.toString():new Xh(t,a).toString(o),l){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}var pS=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,function(r){r!==null&&e(r)})}},Wd=pS,iu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},hS=typeof URLSearchParams<"u"?URLSearchParams:Xh,gS=typeof FormData<"u"?FormData:null,vS=typeof Blob<"u"?Blob:null,yS={isBrowser:!0,classes:{URLSearchParams:hS,FormData:gS,Blob:vS},protocols:["http","https","file","blob","url","data"]},bS=Pp({hasBrowserEnv:()=>lu,hasStandardBrowserEnv:()=>_S,hasStandardBrowserWebWorkerEnv:()=>wS,navigator:()=>Zs,origin:()=>$S},1),lu=typeof window<"u"&&typeof document<"u",Zs=typeof navigator=="object"&&navigator||void 0,_S=lu&&(!Zs||["ReactNative","NativeScript","NS"].indexOf(Zs.product)<0),wS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$S=lu&&window.location.href||"http://localhost",bt={...bS,...yS};function kS(e,t){return yl(e,new bt.classes.URLSearchParams,{visitor:function(r,o,a,i){return bt.isNode&&J.isBuffer(r)?(this.append(o,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function ES(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function CS(e){const t={},r=Object.keys(e);let o;const a=r.length;let i;for(o=0;o<a;o++)i=r[o],t[i]=e[i];return t}function SS(e){function t(r,o,a,i){let l=r[i++];if(l==="__proto__")return!0;const s=Number.isFinite(+l),c=i>=r.length;return l=!l&&J.isArray(a)?a.length:l,c?(J.hasOwnProp(a,l)?a[l]=J.isArray(a[l])?a[l].concat(o):[a[l],o]:a[l]=o,!s):((!J.hasOwnProp(a,l)||!J.isObject(a[l]))&&(a[l]=[]),t(r,o,a[l],i)&&J.isArray(a[l])&&(a[l]=CS(a[l])),!s)}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,(o,a)=>{t(ES(o),a,r,0)}),r}return null}var Jh=SS,Yr=(e,t)=>e!=null&&J.hasOwnProp(e,t)?e[t]:void 0;function xS(e,t,r){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}var su={transitional:iu,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const o=r.getContentType()||"",a=o.indexOf("application/json")>-1,i=J.isObject(t);if(i&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return a?JSON.stringify(Jh(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){const s=Yr(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return kS(t,s).toString();if((l=J.isFileList(t))||o.indexOf("multipart/form-data")>-1){const c=Yr(this,"env"),u=c&&c.FormData;return yl(l?{"files[]":t}:t,u&&new u,s)}}return i||a?(r.setContentType("application/json",!1),xS(t)):t}],transformResponse:[function(t){const r=Yr(this,"transitional")||su.transitional,o=r&&r.forcedJSONParsing,a=Yr(this,"responseType"),i=a==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(o&&!a||i)){const l=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,Yr(this,"parseReviver"))}catch(s){if(l)throw s.name==="SyntaxError"?Ce.from(s,Ce.ERR_BAD_RESPONSE,this,null,Yr(this,"response")):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bt.classes.FormData,Blob:bt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch","query"],e=>{su.headers[e]={}});var cu=su;function Kl(e,t){const r=this||cu,o=t||r,a=on.from(o.headers);let i=o.data;return J.forEach(e,function(s){i=s.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function Zh(e){return!!(e&&e.__CANCEL__)}var TS=class extends Ce{constructor(e,t,r){super(e??"canceled",Ce.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}},za=TS;function Qh(e,t,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new Ce("Request failed with status code "+r.status,r.status>=400&&r.status<500?Ce.ERR_BAD_REQUEST:Ce.ERR_BAD_RESPONSE,r.config,r.request,r))}function NS(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function DS(e,t){e=e||10;const r=new Array(e),o=new Array(e);let a=0,i=0,l;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=o[i];l||(l=u),r[a]=c,o[a]=u;let f=i,m=0;for(;f!==a;)m+=r[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-l<t)return;const p=d&&u-d;return p?Math.round(m*1e3/p):void 0}}var AS=DS;function BS(e,t){let r=0,o=1e3/t,a,i;const l=(u,d=Date.now())=>{r=d,a=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-r;f>=o?l(u,d):(a=u,i||(i=setTimeout(()=>{i=null,l(a)},o-f)))},()=>a&&l(a)]}var MS=BS;const Oi=(e,t,r=3)=>{let o=0;const a=AS(50,250);return MS(i=>{if(!i||typeof i.loaded!="number")return;const l=i.loaded,s=i.lengthComputable?i.total:void 0,c=s!=null?Math.min(l,s):l,u=Math.max(0,c-o),d=a(u);o=Math.max(o,c),e({loaded:c,total:s,progress:s?c/s:void 0,bytes:u,rate:d||void 0,estimated:d&&s?(s-c)/d:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0})},r)},jd=(e,t)=>{const r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},qd=e=>(...t)=>J.asap(()=>e(...t));var LS=bt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,bt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(bt.origin),bt.navigator&&/(msie|trident)/i.test(bt.navigator.userAgent)):()=>!0,PS=bt.hasStandardBrowserEnv?{write(e,t,r,o,a,i,l){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];J.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),J.isString(o)&&s.push(`path=${o}`),J.isString(a)&&s.push(`domain=${a}`),i===!0&&s.push("secure"),J.isString(l)&&s.push(`SameSite=${l}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let r=0;r<t.length;r++){const o=t[r].replace(/^\s+/,""),a=o.indexOf("=");if(a!==-1&&o.slice(0,a)===e)return decodeURIComponent(o.slice(a+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function IS(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function VS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function e0(e,t,r){let o=!IS(t);return e&&(o||r===!1)?VS(e,t):t}var Gd=e=>e instanceof on?{...e}:e;function Fr(e,t){t=t||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function o(u,d,f,m){return J.isPlainObject(u)&&J.isPlainObject(d)?J.merge.call({caseless:m},u,d):J.isPlainObject(d)?J.merge({},d):J.isArray(d)?d.slice():d}function a(u,d,f,m){if(J.isUndefined(d)){if(!J.isUndefined(u))return o(void 0,u,f,m)}else return o(u,d,f,m)}function i(u,d){if(!J.isUndefined(d))return o(void 0,d)}function l(u,d){if(J.isUndefined(d)){if(!J.isUndefined(u))return o(void 0,u)}else return o(void 0,d)}function s(u,d,f){if(J.hasOwnProp(t,f))return o(u,d);if(J.hasOwnProp(e,f))return o(void 0,u)}const c={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:s,headers:(u,d,f)=>a(Gd(u),Gd(d),f,!0)};return J.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=J.hasOwnProp(c,d)?c[d]:a,m=f(J.hasOwnProp(e,d)?e[d]:void 0,J.hasOwnProp(t,d)?t[d]:void 0,d);J.isUndefined(m)&&f!==s||(r[d]=m)}),r}var OS=["content-type","content-length"];function RS(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([o,a])=>{OS.includes(o.toLowerCase())&&e.set(o,a)})}var FS=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16)));function zS(e){const t=Fr({},e),r=m=>J.hasOwnProp(t,m)?t[m]:void 0,o=r("data");let a=r("withXSRFToken");const i=r("xsrfHeaderName"),l=r("xsrfCookieName");let s=r("headers");const c=r("auth"),u=r("baseURL"),d=r("allowAbsoluteUrls"),f=r("url");if(t.headers=s=on.from(s),t.url=Kh(e0(u,f,d),r("params"),r("paramsSerializer")),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?FS(c.password):""))),J.isFormData(o)&&(bt.hasStandardBrowserEnv||bt.hasStandardBrowserWebWorkerEnv||J.isReactNative(o)?s.setContentType(void 0):J.isFunction(o.getHeaders)&&RS(s,o.getHeaders(),r("formDataHeaderPolicy"))),bt.hasStandardBrowserEnv&&(J.isFunction(a)&&(a=a(t)),a===!0||a==null&&LS(t.url))){const m=i&&l&&PS.read(l);m&&s.set(i,m)}return t}var t0=zS,US=typeof XMLHttpRequest<"u",HS=US&&function(e){return new Promise(function(r,o){const a=t0(e);let i=a.data;const l=on.from(a.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:u}=a,d,f,m,p,h;function v(){p&&p(),h&&h(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(a.method.toUpperCase(),a.url,!0),b.timeout=a.timeout;function g(){if(!b)return;const _=on.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());Qh(function($){r($),v()},function($){o($),v()},{data:!s||s==="text"||s==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:_,config:e,request:b}),b=null}"onloadend"in b?b.onloadend=g:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.startsWith("file:"))||setTimeout(g)},b.onabort=function(){b&&(o(new Ce("Request aborted",Ce.ECONNABORTED,e,b)),v(),b=null)},b.onerror=function(w){const $=new Ce(w&&w.message?w.message:"Network Error",Ce.ERR_NETWORK,e,b);$.event=w||null,o($),v(),b=null},b.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const $=a.transitional||iu;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),o(new Ce(w,$.clarifyTimeoutError?Ce.ETIMEDOUT:Ce.ECONNABORTED,e,b)),v(),b=null},i===void 0&&l.setContentType(null),"setRequestHeader"in b&&J.forEach(Wh(l),function(w,$){b.setRequestHeader($,w)}),J.isUndefined(a.withCredentials)||(b.withCredentials=!!a.withCredentials),s&&s!=="json"&&(b.responseType=a.responseType),u&&([m,h]=Oi(u,!0),b.addEventListener("progress",m)),c&&b.upload&&([f,p]=Oi(c),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(d=_=>{b&&(o(!_||_.type?new za(null,e,b):_),b.abort(),v(),b=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const y=NS(a.url);if(y&&!bt.protocols.includes(y)){o(new Ce("Unsupported protocol "+y+":",Ce.ERR_BAD_REQUEST,e));return}b.send(i||null)})},WS=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let o=!1;const a=function(c){if(!o){o=!0,l();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Ce?u:new za(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,a(new Ce(`timeout of ${t}ms exceeded`,Ce.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:s}=r;return s.unsubscribe=()=>J.asap(l),s},jS=WS;const qS=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let o=0,a;for(;o<r;)a=o+t,yield e.slice(o,a),o=a},GS=async function*(e,t){for await(const r of YS(e))yield*qS(r,t)};var YS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:o}=await t.read();if(r)break;yield o}}finally{await t.cancel()}};const Yd=(e,t,r,o)=>{const a=GS(e,t);let i=0,l,s=c=>{l||(l=!0,o&&o(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await a.next();if(u){s(),c.close();return}let f=d.byteLength;r&&r(i+=f),c.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(c){return s(c),a.return()}},{highWaterMark:2})};function XS(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const r=e.slice(5,t),o=e.slice(t+1);if(/;base64/i.test(r)){let i=o.length;const l=o.length;for(let f=0;f<l;f++)if(o.charCodeAt(f)===37&&f+2<l){const m=o.charCodeAt(f+1),p=o.charCodeAt(f+2);(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102)&&(i-=2,f+=2)}let s=0,c=l-1;const u=f=>f>=2&&o.charCodeAt(f-2)===37&&o.charCodeAt(f-1)===51&&(o.charCodeAt(f)===68||o.charCodeAt(f)===100);c>=0&&(o.charCodeAt(c)===61?(s++,c--):u(c)&&(s++,c-=3)),s===1&&c>=0&&(o.charCodeAt(c)===61||u(c))&&s++;const d=Math.floor(i/4)*3-(s||0);return d>0?d:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(o,"utf8");let a=0;for(let i=0,l=o.length;i<l;i++){const s=o.charCodeAt(i);if(s<128)a+=1;else if(s<2048)a+=2;else if(s>=55296&&s<=56319&&i+1<l){const c=o.charCodeAt(i+1);c>=56320&&c<=57343?(a+=4,i++):a+=3}else a+=3}return a}const uu="1.17.0";var Xd=64*1024,{isFunction:Ka}=J,KS=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),Kd=e=>{if(!J.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Jd=(e,...t)=>{try{return!!e(...t)}catch{return!1}},JS=e=>{const t=e.indexOf("://");let r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},ZS=e=>{const t=J.global!==void 0&&J.global!==null?J.global:globalThis,{ReadableStream:r,TextEncoder:o}=t;e=J.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:l}=e,s=a?Ka(a):typeof fetch=="function",c=Ka(i),u=Ka(l);if(!s)return!1;const d=s&&Ka(r),f=s&&(typeof o=="function"?(g=>y=>g.encode(y))(new o):async g=>new Uint8Array(await new i(g).arrayBuffer())),m=c&&d&&Jd(()=>{let g=!1;const y=new i(bt.origin,{body:new r,method:"POST",get duplex(){return g=!0,"half"}}),_=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),g&&!_}),p=u&&d&&Jd(()=>J.isReadableStream(new l("").body)),h={stream:p&&(g=>g.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(y,_)=>{let w=y&&y[g];if(w)return w.call(y);throw new Ce(`Response type '${g}' is not supported`,Ce.ERR_NOT_SUPPORT,_)})});const v=async g=>{if(g==null)return 0;if(J.isBlob(g))return g.size;if(J.isSpecCompliantForm(g))return(await new i(bt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(J.isArrayBufferView(g)||J.isArrayBuffer(g))return g.byteLength;if(J.isURLSearchParams(g)&&(g=g+""),J.isString(g))return(await f(g)).byteLength},b=async(g,y)=>{const _=J.toFiniteNumber(g.getContentLength());return _??v(y)};return async g=>{let{url:y,method:_,data:w,signal:$,cancelToken:A,timeout:E,onDownloadProgress:k,onUploadProgress:P,responseType:N,headers:V,withCredentials:x="same-origin",fetchOptions:T,maxContentLength:L,maxBodyLength:F}=t0(g);const O=J.isNumber(L)&&L>-1,B=J.isNumber(F)&&F>-1,q=U=>J.hasOwnProp(g,U)?g[U]:void 0;let te=a||fetch;N=N?(N+"").toLowerCase():"text";let ee=jS([$,A&&A.toAbortSignal()],E),le=null;const R=ee&&ee.unsubscribe&&(()=>{ee.unsubscribe()});let I;try{let U;const D=q("auth");if(D&&(U={username:D.username||"",password:D.password||""}),JS(y)){const K=new URL(y,bt.origin);!U&&(K.username||K.password)&&(U={username:Kd(K.username),password:Kd(K.password)}),(K.username||K.password)&&(K.username="",K.password="",y=K.href)}if(U&&(V.delete("authorization"),V.set("Authorization","Basic "+btoa(KS((U.username||"")+":"+(U.password||""))))),O&&typeof y=="string"&&y.startsWith("data:")&&XS(y)>L)throw new Ce("maxContentLength size of "+L+" exceeded",Ce.ERR_BAD_RESPONSE,g,le);if(B&&_!=="get"&&_!=="head"){const K=await b(V,w);if(typeof K=="number"&&isFinite(K)&&K>F)throw new Ce("Request body larger than maxBodyLength limit",Ce.ERR_BAD_REQUEST,g,le)}if(P&&m&&_!=="get"&&_!=="head"&&(I=await b(V,w))!==0){let K=new i(y,{method:"POST",body:w,duplex:"half"}),ce;if(J.isFormData(w)&&(ce=K.headers.get("content-type"))&&V.setContentType(ce),K.body){const[ie,de]=jd(I,Oi(qd(P)));w=Yd(K.body,Xd,ie,de)}}J.isString(x)||(x=x?"include":"omit");const W=c&&"credentials"in i.prototype;if(J.isFormData(w)){const K=V.getContentType();K&&/^multipart\/form-data/i.test(K)&&!/boundary=/i.test(K)&&V.delete("content-type")}V.set("User-Agent","axios/"+uu,!1);const j={...T,signal:ee,method:_.toUpperCase(),headers:Wh(V.normalize()),body:w,duplex:"half",credentials:W?x:void 0};le=c&&new i(y,j);let Y=await(c?te(le,T):te(y,j));if(O){const K=J.toFiniteNumber(Y.headers.get("content-length"));if(K!=null&&K>L)throw new Ce("maxContentLength size of "+L+" exceeded",Ce.ERR_BAD_RESPONSE,g,le)}const ae=p&&(N==="stream"||N==="response");if(p&&Y.body&&(k||O||ae&&R)){const K={};["status","statusText","headers"].forEach($e=>{K[$e]=Y[$e]});const ce=J.toFiniteNumber(Y.headers.get("content-length")),[ie,de]=k&&jd(ce,Oi(qd(k),!0))||[];let _e=0;const se=$e=>{if(O&&(_e=$e,_e>L))throw new Ce("maxContentLength size of "+L+" exceeded",Ce.ERR_BAD_RESPONSE,g,le);ie&&ie($e)};Y=new l(Yd(Y.body,Xd,se,()=>{de&&de(),R&&R()}),K)}N=N||"text";let be=await h[J.findKey(h,N)||"text"](Y,g);if(O&&!p&&!ae){let K;if(be!=null&&(typeof be.byteLength=="number"?K=be.byteLength:typeof be.size=="number"?K=be.size:typeof be=="string"&&(K=typeof o=="function"?new o().encode(be).byteLength:be.length)),typeof K=="number"&&K>L)throw new Ce("maxContentLength size of "+L+" exceeded",Ce.ERR_BAD_RESPONSE,g,le)}return!ae&&R&&R(),await new Promise((K,ce)=>{Qh(K,ce,{data:be,headers:on.from(Y.headers),status:Y.status,statusText:Y.statusText,config:g,request:le})})}catch(U){if(R&&R(),ee&&ee.aborted&&ee.reason instanceof Ce){const D=ee.reason;throw D.config=g,le&&(D.request=le),U!==D&&(D.cause=U),D}throw U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new Ce("Network Error",Ce.ERR_NETWORK,g,le,U&&U.response),{cause:U.cause||U}):Ce.from(U,U&&U.code,g,le,U&&U.response)}}},QS=new Map;const n0=e=>{let t=e&&e.env||{};const{fetch:r,Request:o,Response:a}=t,i=[o,a,r];let l=i.length,s,c,u=QS;for(;l--;)s=i[l],c=u.get(s),c===void 0&&u.set(s,c=l?new Map:ZS(t)),u=c;return c};var FR=n0(),du={http:null,xhr:HS,fetch:{get:n0}};J.forEach(du,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Zd=e=>`- ${e}`,e3=e=>J.isFunction(e)||e===null||e===!1;function t3(e,t){e=J.isArray(e)?e:[e];const{length:r}=e;let o,a;const i={};for(let l=0;l<r;l++){o=e[l];let s;if(a=o,!e3(o)&&(a=du[(s=String(o)).toLowerCase()],a===void 0))throw new Ce(`Unknown adapter '${s}'`);if(a&&(J.isFunction(a)||(a=a.get(t))))break;i[s||"#"+l]=a}if(!a){const l=Object.entries(i).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));throw new Ce("There is no suitable adapter to dispatch the request "+(r?l.length>1?`since :
|
|
25
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(o=>r.set(o)),r}static accessor(e){const t=(this[Ud]=this[Ud]={accessors:{}}).accessors,r=this.prototype;function o(a){const i=zo(a);t[i]||(iS(r,a),t[i]=!0)}return J.isArray(e)?e.forEach(o):o(e),this}};vl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(vl.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}});J.freezeMethods(vl);var on=vl,lS="[REDACTED ****]";function sS(e){if(J.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(J.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function cS(e,t){const r=new Set(t.map(i=>String(i).toLowerCase())),o=[],a=i=>{if(i===null||typeof i!="object"||J.isBuffer(i))return i;if(o.indexOf(i)!==-1)return;i instanceof on&&(i=i.toJSON()),o.push(i);let l;if(J.isArray(i))l=[],i.forEach((s,c)=>{const u=a(s);J.isUndefined(u)||(l[c]=u)});else{if(!J.isPlainObject(i)&&sS(i))return o.pop(),i;l=Object.create(null);for(const[s,c]of Object.entries(i)){const u=r.has(s.toLowerCase())?lS:a(c);J.isUndefined(u)||(l[s]=u)}}return o.pop(),l};return a(e)}var Nt=class jh extends Error{static from(t,r,o,a,i,l){const s=new jh(t.message,r||t.code,o,a,i);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),l&&Object.assign(s,l),s}constructor(t,r,o,a,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),o&&(this.config=o),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,r=t&&J.hasOwnProp(t,"redact")?t.redact:void 0,o=J.isArray(r)&&r.length>0?cS(t,r):J.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:o,code:this.code,status:this.status}}};Nt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Nt.ERR_BAD_OPTION="ERR_BAD_OPTION";Nt.ECONNABORTED="ECONNABORTED";Nt.ETIMEDOUT="ETIMEDOUT";Nt.ECONNREFUSED="ECONNREFUSED";Nt.ERR_NETWORK="ERR_NETWORK";Nt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Nt.ERR_DEPRECATED="ERR_DEPRECATED";Nt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Nt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Nt.ERR_CANCELED="ERR_CANCELED";Nt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Nt.ERR_INVALID_URL="ERR_INVALID_URL";Nt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var Ce=Nt;function Js(e){return J.isPlainObject(e)||J.isArray(e)}function qh(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Xl(e,t,r){return e?e.concat(t).map(function(a,i){return a=qh(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function uS(e){return J.isArray(e)&&!e.some(Js)}var dS=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function fS(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,g){return!J.isUndefined(g[b])});const o=r.metaTokens,a=r.visitor||f,i=r.dots,l=r.indexes,s=r.Blob||typeof Blob<"u"&&Blob,c=r.maxDepth===void 0?100:r.maxDepth,u=s&&J.isSpecCompliantForm(t);if(!J.isFunction(a))throw new TypeError("visitor must be a function");function d(v){if(v===null)return"";if(J.isDate(v))return v.toISOString();if(J.isBoolean(v))return v.toString();if(!u&&J.isBlob(v))throw new Ce("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(v)||J.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function f(v,b,g){let y=v;if(J.isReactNative(t)&&J.isReactNativeBlob(v))return t.append(Xl(g,b,i),d(v)),!1;if(v&&!g&&typeof v=="object"){if(J.endsWith(b,"{}"))b=o?b:b.slice(0,-2),v=JSON.stringify(v);else if(J.isArray(v)&&uS(v)||(J.isFileList(v)||J.endsWith(b,"[]"))&&(y=J.toArray(v)))return b=qh(b),y.forEach(function(w,$){!(J.isUndefined(w)||w===null)&&t.append(l===!0?Xl([b],$,i):l===null?b:b+"[]",d(w))}),!1}return Js(v)?!0:(t.append(Xl(g,b,i),d(v)),!1)}const m=[],p=Object.assign(dS,{defaultVisitor:f,convertValue:d,isVisitable:Js});function h(v,b,g=0){if(!J.isUndefined(v)){if(g>c)throw new Ce("Object is too deeply nested ("+g+" levels). Max depth: "+c,Ce.ERR_FORM_DATA_DEPTH_EXCEEDED);if(m.indexOf(v)!==-1)throw new Error("Circular reference detected in "+b.join("."));m.push(v),J.forEach(v,function(_,w){(!(J.isUndefined(_)||_===null)&&a.call(t,_,J.isString(w)?w.trim():w,b,p))===!0&&h(_,b?b.concat(w):[w],g+1)}),m.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return h(e),t}var yl=fS;function Hd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(o){return t[o]})}function Gh(e,t){this._pairs=[],e&&yl(e,this,t)}var Yh=Gh.prototype;Yh.append=function(t,r){this._pairs.push([t,r])};Yh.toString=function(t){const r=t?function(o){return t.call(this,o,Hd)}:Hd;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};var Xh=Gh;function mS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Kh(e,t,r){if(!t)return e;const o=r&&r.encode||mS,a=J.isFunction(r)?{serialize:r}:r,i=a&&a.serialize;let l;if(i?l=i(t,a):l=J.isURLSearchParams(t)?t.toString():new Xh(t,a).toString(o),l){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}var pS=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,function(r){r!==null&&e(r)})}},Wd=pS,iu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},hS=typeof URLSearchParams<"u"?URLSearchParams:Xh,gS=typeof FormData<"u"?FormData:null,vS=typeof Blob<"u"?Blob:null,yS={isBrowser:!0,classes:{URLSearchParams:hS,FormData:gS,Blob:vS},protocols:["http","https","file","blob","url","data"]},bS=Pp({hasBrowserEnv:()=>lu,hasStandardBrowserEnv:()=>_S,hasStandardBrowserWebWorkerEnv:()=>wS,navigator:()=>Zs,origin:()=>$S},1),lu=typeof window<"u"&&typeof document<"u",Zs=typeof navigator=="object"&&navigator||void 0,_S=lu&&(!Zs||["ReactNative","NativeScript","NS"].indexOf(Zs.product)<0),wS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$S=lu&&window.location.href||"http://localhost",bt={...bS,...yS};function kS(e,t){return yl(e,new bt.classes.URLSearchParams,{visitor:function(r,o,a,i){return bt.isNode&&J.isBuffer(r)?(this.append(o,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function ES(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function CS(e){const t={},r=Object.keys(e);let o;const a=r.length;let i;for(o=0;o<a;o++)i=r[o],t[i]=e[i];return t}function SS(e){function t(r,o,a,i){let l=r[i++];if(l==="__proto__")return!0;const s=Number.isFinite(+l),c=i>=r.length;return l=!l&&J.isArray(a)?a.length:l,c?(J.hasOwnProp(a,l)?a[l]=J.isArray(a[l])?a[l].concat(o):[a[l],o]:a[l]=o,!s):((!J.hasOwnProp(a,l)||!J.isObject(a[l]))&&(a[l]=[]),t(r,o,a[l],i)&&J.isArray(a[l])&&(a[l]=CS(a[l])),!s)}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,(o,a)=>{t(ES(o),a,r,0)}),r}return null}var Jh=SS,Yr=(e,t)=>e!=null&&J.hasOwnProp(e,t)?e[t]:void 0;function xS(e,t,r){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}var su={transitional:iu,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const o=r.getContentType()||"",a=o.indexOf("application/json")>-1,i=J.isObject(t);if(i&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return a?JSON.stringify(Jh(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){const s=Yr(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return kS(t,s).toString();if((l=J.isFileList(t))||o.indexOf("multipart/form-data")>-1){const c=Yr(this,"env"),u=c&&c.FormData;return yl(l?{"files[]":t}:t,u&&new u,s)}}return i||a?(r.setContentType("application/json",!1),xS(t)):t}],transformResponse:[function(t){const r=Yr(this,"transitional")||su.transitional,o=r&&r.forcedJSONParsing,a=Yr(this,"responseType"),i=a==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(o&&!a||i)){const l=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,Yr(this,"parseReviver"))}catch(s){if(l)throw s.name==="SyntaxError"?Ce.from(s,Ce.ERR_BAD_RESPONSE,this,null,Yr(this,"response")):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bt.classes.FormData,Blob:bt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch","query"],e=>{su.headers[e]={}});var cu=su;function Kl(e,t){const r=this||cu,o=t||r,a=on.from(o.headers);let i=o.data;return J.forEach(e,function(s){i=s.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function Zh(e){return!!(e&&e.__CANCEL__)}var TS=class extends Ce{constructor(e,t,r){super(e??"canceled",Ce.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}},za=TS;function Qh(e,t,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new Ce("Request failed with status code "+r.status,r.status>=400&&r.status<500?Ce.ERR_BAD_REQUEST:Ce.ERR_BAD_RESPONSE,r.config,r.request,r))}function NS(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function DS(e,t){e=e||10;const r=new Array(e),o=new Array(e);let a=0,i=0,l;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=o[i];l||(l=u),r[a]=c,o[a]=u;let f=i,m=0;for(;f!==a;)m+=r[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-l<t)return;const p=d&&u-d;return p?Math.round(m*1e3/p):void 0}}var AS=DS;function BS(e,t){let r=0,o=1e3/t,a,i;const l=(u,d=Date.now())=>{r=d,a=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-r;f>=o?l(u,d):(a=u,i||(i=setTimeout(()=>{i=null,l(a)},o-f)))},()=>a&&l(a)]}var MS=BS;const Oi=(e,t,r=3)=>{let o=0;const a=AS(50,250);return MS(i=>{if(!i||typeof i.loaded!="number")return;const l=i.loaded,s=i.lengthComputable?i.total:void 0,c=s!=null?Math.min(l,s):l,u=Math.max(0,c-o),d=a(u);o=Math.max(o,c),e({loaded:c,total:s,progress:s?c/s:void 0,bytes:u,rate:d||void 0,estimated:d&&s?(s-c)/d:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0})},r)},jd=(e,t)=>{const r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},qd=e=>(...t)=>J.asap(()=>e(...t));var LS=bt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,bt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(bt.origin),bt.navigator&&/(msie|trident)/i.test(bt.navigator.userAgent)):()=>!0,PS=bt.hasStandardBrowserEnv?{write(e,t,r,o,a,i,l){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];J.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),J.isString(o)&&s.push(`path=${o}`),J.isString(a)&&s.push(`domain=${a}`),i===!0&&s.push("secure"),J.isString(l)&&s.push(`SameSite=${l}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let r=0;r<t.length;r++){const o=t[r].replace(/^\s+/,""),a=o.indexOf("=");if(a!==-1&&o.slice(0,a)===e)return decodeURIComponent(o.slice(a+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function IS(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function VS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function e0(e,t,r){let o=!IS(t);return e&&(o||r===!1)?VS(e,t):t}var Gd=e=>e instanceof on?{...e}:e;function Fr(e,t){t=t||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function o(u,d,f,m){return J.isPlainObject(u)&&J.isPlainObject(d)?J.merge.call({caseless:m},u,d):J.isPlainObject(d)?J.merge({},d):J.isArray(d)?d.slice():d}function a(u,d,f,m){if(J.isUndefined(d)){if(!J.isUndefined(u))return o(void 0,u,f,m)}else return o(u,d,f,m)}function i(u,d){if(!J.isUndefined(d))return o(void 0,d)}function l(u,d){if(J.isUndefined(d)){if(!J.isUndefined(u))return o(void 0,u)}else return o(void 0,d)}function s(u,d,f){if(J.hasOwnProp(t,f))return o(u,d);if(J.hasOwnProp(e,f))return o(void 0,u)}const c={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:s,headers:(u,d,f)=>a(Gd(u),Gd(d),f,!0)};return J.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=J.hasOwnProp(c,d)?c[d]:a,m=f(J.hasOwnProp(e,d)?e[d]:void 0,J.hasOwnProp(t,d)?t[d]:void 0,d);J.isUndefined(m)&&f!==s||(r[d]=m)}),r}var OS=["content-type","content-length"];function RS(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([o,a])=>{OS.includes(o.toLowerCase())&&e.set(o,a)})}var FS=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16)));function zS(e){const t=Fr({},e),r=m=>J.hasOwnProp(t,m)?t[m]:void 0,o=r("data");let a=r("withXSRFToken");const i=r("xsrfHeaderName"),l=r("xsrfCookieName");let s=r("headers");const c=r("auth"),u=r("baseURL"),d=r("allowAbsoluteUrls"),f=r("url");if(t.headers=s=on.from(s),t.url=Kh(e0(u,f,d),r("params"),r("paramsSerializer")),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?FS(c.password):""))),J.isFormData(o)&&(bt.hasStandardBrowserEnv||bt.hasStandardBrowserWebWorkerEnv||J.isReactNative(o)?s.setContentType(void 0):J.isFunction(o.getHeaders)&&RS(s,o.getHeaders(),r("formDataHeaderPolicy"))),bt.hasStandardBrowserEnv&&(J.isFunction(a)&&(a=a(t)),a===!0||a==null&&LS(t.url))){const m=i&&l&&PS.read(l);m&&s.set(i,m)}return t}var t0=zS,US=typeof XMLHttpRequest<"u",HS=US&&function(e){return new Promise(function(r,o){const a=t0(e);let i=a.data;const l=on.from(a.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:u}=a,d,f,m,p,h;function v(){p&&p(),h&&h(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(a.method.toUpperCase(),a.url,!0),b.timeout=a.timeout;function g(){if(!b)return;const _=on.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());Qh(function($){r($),v()},function($){o($),v()},{data:!s||s==="text"||s==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:_,config:e,request:b}),b=null}"onloadend"in b?b.onloadend=g:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.startsWith("file:"))||setTimeout(g)},b.onabort=function(){b&&(o(new Ce("Request aborted",Ce.ECONNABORTED,e,b)),v(),b=null)},b.onerror=function(w){const $=new Ce(w&&w.message?w.message:"Network Error",Ce.ERR_NETWORK,e,b);$.event=w||null,o($),v(),b=null},b.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const $=a.transitional||iu;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),o(new Ce(w,$.clarifyTimeoutError?Ce.ETIMEDOUT:Ce.ECONNABORTED,e,b)),v(),b=null},i===void 0&&l.setContentType(null),"setRequestHeader"in b&&J.forEach(Wh(l),function(w,$){b.setRequestHeader($,w)}),J.isUndefined(a.withCredentials)||(b.withCredentials=!!a.withCredentials),s&&s!=="json"&&(b.responseType=a.responseType),u&&([m,h]=Oi(u,!0),b.addEventListener("progress",m)),c&&b.upload&&([f,p]=Oi(c),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(d=_=>{b&&(o(!_||_.type?new za(null,e,b):_),b.abort(),v(),b=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const y=NS(a.url);if(y&&!bt.protocols.includes(y)){o(new Ce("Unsupported protocol "+y+":",Ce.ERR_BAD_REQUEST,e));return}b.send(i||null)})},WS=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let o=!1;const a=function(c){if(!o){o=!0,l();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Ce?u:new za(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,a(new Ce(`timeout of ${t}ms exceeded`,Ce.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:s}=r;return s.unsubscribe=()=>J.asap(l),s},jS=WS;const qS=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let o=0,a;for(;o<r;)a=o+t,yield e.slice(o,a),o=a},GS=async function*(e,t){for await(const r of YS(e))yield*qS(r,t)};var YS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:o}=await t.read();if(r)break;yield o}}finally{await t.cancel()}};const Yd=(e,t,r,o)=>{const a=GS(e,t);let i=0,l,s=c=>{l||(l=!0,o&&o(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await a.next();if(u){s(),c.close();return}let f=d.byteLength;r&&r(i+=f),c.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(c){return s(c),a.return()}},{highWaterMark:2})};function XS(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const r=e.slice(5,t),o=e.slice(t+1);if(/;base64/i.test(r)){let i=o.length;const l=o.length;for(let f=0;f<l;f++)if(o.charCodeAt(f)===37&&f+2<l){const m=o.charCodeAt(f+1),p=o.charCodeAt(f+2);(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102)&&(i-=2,f+=2)}let s=0,c=l-1;const u=f=>f>=2&&o.charCodeAt(f-2)===37&&o.charCodeAt(f-1)===51&&(o.charCodeAt(f)===68||o.charCodeAt(f)===100);c>=0&&(o.charCodeAt(c)===61?(s++,c--):u(c)&&(s++,c-=3)),s===1&&c>=0&&(o.charCodeAt(c)===61||u(c))&&s++;const d=Math.floor(i/4)*3-(s||0);return d>0?d:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(o,"utf8");let a=0;for(let i=0,l=o.length;i<l;i++){const s=o.charCodeAt(i);if(s<128)a+=1;else if(s<2048)a+=2;else if(s>=55296&&s<=56319&&i+1<l){const c=o.charCodeAt(i+1);c>=56320&&c<=57343?(a+=4,i++):a+=3}else a+=3}return a}const uu="1.17.0";var Xd=64*1024,{isFunction:Ka}=J,KS=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),Kd=e=>{if(!J.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Jd=(e,...t)=>{try{return!!e(...t)}catch{return!1}},JS=e=>{const t=e.indexOf("://");let r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},ZS=e=>{const t=J.global!==void 0&&J.global!==null?J.global:globalThis,{ReadableStream:r,TextEncoder:o}=t;e=J.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:l}=e,s=a?Ka(a):typeof fetch=="function",c=Ka(i),u=Ka(l);if(!s)return!1;const d=s&&Ka(r),f=s&&(typeof o=="function"?(g=>y=>g.encode(y))(new o):async g=>new Uint8Array(await new i(g).arrayBuffer())),m=c&&d&&Jd(()=>{let g=!1;const y=new i(bt.origin,{body:new r,method:"POST",get duplex(){return g=!0,"half"}}),_=y.headers.has("Content-Type");return y.body!=null&&y.body.cancel(),g&&!_}),p=u&&d&&Jd(()=>J.isReadableStream(new l("").body)),h={stream:p&&(g=>g.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(y,_)=>{let w=y&&y[g];if(w)return w.call(y);throw new Ce(`Response type '${g}' is not supported`,Ce.ERR_NOT_SUPPORT,_)})});const v=async g=>{if(g==null)return 0;if(J.isBlob(g))return g.size;if(J.isSpecCompliantForm(g))return(await new i(bt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(J.isArrayBufferView(g)||J.isArrayBuffer(g))return g.byteLength;if(J.isURLSearchParams(g)&&(g=g+""),J.isString(g))return(await f(g)).byteLength},b=async(g,y)=>{const _=J.toFiniteNumber(g.getContentLength());return _??v(y)};return async g=>{let{url:y,method:_,data:w,signal:$,cancelToken:A,timeout:E,onDownloadProgress:k,onUploadProgress:P,responseType:N,headers:V,withCredentials:x="same-origin",fetchOptions:T,maxContentLength:L,maxBodyLength:F}=t0(g);const O=J.isNumber(L)&&L>-1,B=J.isNumber(F)&&F>-1,q=U=>J.hasOwnProp(g,U)?g[U]:void 0;let te=a||fetch;N=N?(N+"").toLowerCase():"text";let ee=jS([$,A&&A.toAbortSignal()],E),le=null;const R=ee&&ee.unsubscribe&&(()=>{ee.unsubscribe()});let I;try{let U;const D=q("auth");if(D&&(U={username:D.username||"",password:D.password||""}),JS(y)){const K=new URL(y,bt.origin);!U&&(K.username||K.password)&&(U={username:Kd(K.username),password:Kd(K.password)}),(K.username||K.password)&&(K.username="",K.password="",y=K.href)}if(U&&(V.delete("authorization"),V.set("Authorization","Basic "+btoa(KS((U.username||"")+":"+(U.password||""))))),O&&typeof y=="string"&&y.startsWith("data:")&&XS(y)>L)throw new Ce("maxContentLength size of "+L+" exceeded",Ce.ERR_BAD_RESPONSE,g,le);if(B&&_!=="get"&&_!=="head"){const K=await b(V,w);if(typeof K=="number"&&isFinite(K)&&K>F)throw new Ce("Request body larger than maxBodyLength limit",Ce.ERR_BAD_REQUEST,g,le)}if(P&&m&&_!=="get"&&_!=="head"&&(I=await b(V,w))!==0){let K=new i(y,{method:"POST",body:w,duplex:"half"}),ce;if(J.isFormData(w)&&(ce=K.headers.get("content-type"))&&V.setContentType(ce),K.body){const[ie,de]=jd(I,Oi(qd(P)));w=Yd(K.body,Xd,ie,de)}}J.isString(x)||(x=x?"include":"omit");const W=c&&"credentials"in i.prototype;if(J.isFormData(w)){const K=V.getContentType();K&&/^multipart\/form-data/i.test(K)&&!/boundary=/i.test(K)&&V.delete("content-type")}V.set("User-Agent","axios/"+uu,!1);const j={...T,signal:ee,method:_.toUpperCase(),headers:Wh(V.normalize()),body:w,duplex:"half",credentials:W?x:void 0};le=c&&new i(y,j);let Y=await(c?te(le,T):te(y,j));if(O){const K=J.toFiniteNumber(Y.headers.get("content-length"));if(K!=null&&K>L)throw new Ce("maxContentLength size of "+L+" exceeded",Ce.ERR_BAD_RESPONSE,g,le)}const ae=p&&(N==="stream"||N==="response");if(p&&Y.body&&(k||O||ae&&R)){const K={};["status","statusText","headers"].forEach($e=>{K[$e]=Y[$e]});const ce=J.toFiniteNumber(Y.headers.get("content-length")),[ie,de]=k&&jd(ce,Oi(qd(k),!0))||[];let _e=0;const se=$e=>{if(O&&(_e=$e,_e>L))throw new Ce("maxContentLength size of "+L+" exceeded",Ce.ERR_BAD_RESPONSE,g,le);ie&&ie($e)};Y=new l(Yd(Y.body,Xd,se,()=>{de&&de(),R&&R()}),K)}N=N||"text";let be=await h[J.findKey(h,N)||"text"](Y,g);if(O&&!p&&!ae){let K;if(be!=null&&(typeof be.byteLength=="number"?K=be.byteLength:typeof be.size=="number"?K=be.size:typeof be=="string"&&(K=typeof o=="function"?new o().encode(be).byteLength:be.length)),typeof K=="number"&&K>L)throw new Ce("maxContentLength size of "+L+" exceeded",Ce.ERR_BAD_RESPONSE,g,le)}return!ae&&R&&R(),await new Promise((K,ce)=>{Qh(K,ce,{data:be,headers:on.from(Y.headers),status:Y.status,statusText:Y.statusText,config:g,request:le})})}catch(U){if(R&&R(),ee&&ee.aborted&&ee.reason instanceof Ce){const D=ee.reason;throw D.config=g,le&&(D.request=le),U!==D&&(D.cause=U),D}throw U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new Ce("Network Error",Ce.ERR_NETWORK,g,le,U&&U.response),{cause:U.cause||U}):Ce.from(U,U&&U.code,g,le,U&&U.response)}}},QS=new Map;const n0=e=>{let t=e&&e.env||{};const{fetch:r,Request:o,Response:a}=t,i=[o,a,r];let l=i.length,s,c,u=QS;for(;l--;)s=i[l],c=u.get(s),c===void 0&&u.set(s,c=l?new Map:ZS(t)),u=c;return c};var zR=n0(),du={http:null,xhr:HS,fetch:{get:n0}};J.forEach(du,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Zd=e=>`- ${e}`,e3=e=>J.isFunction(e)||e===null||e===!1;function t3(e,t){e=J.isArray(e)?e:[e];const{length:r}=e;let o,a;const i={};for(let l=0;l<r;l++){o=e[l];let s;if(a=o,!e3(o)&&(a=du[(s=String(o)).toLowerCase()],a===void 0))throw new Ce(`Unknown adapter '${s}'`);if(a&&(J.isFunction(a)||(a=a.get(t))))break;i[s||"#"+l]=a}if(!a){const l=Object.entries(i).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));throw new Ce("There is no suitable adapter to dispatch the request "+(r?l.length>1?`since :
|
|
26
26
|
`+l.map(Zd).join(`
|
|
27
27
|
`):" "+Zd(l[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a}var r0={getAdapter:t3,adapters:du};function Jl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new za(null,e)}function Qd(e){return Jl(e),e.headers=on.from(e.headers),e.data=Kl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),r0.getAdapter(e.adapter||cu.adapter,e)(e).then(function(r){Jl(e),e.response=r;try{r.data=Kl.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=on.from(r.headers),r},function(r){if(!Zh(r)&&(Jl(e),r&&r.response)){e.response=r.response;try{r.response.data=Kl.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=on.from(r.response.headers)}return Promise.reject(r)})}var bl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bl[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});var ef={};bl.transitional=function(t,r,o){function a(i,l){return"[Axios v"+uu+"] Transitional option '"+i+"'"+l+(o?". "+o:"")}return(i,l,s)=>{if(t===!1)throw new Ce(a(l," has been removed"+(r?" in "+r:"")),Ce.ERR_DEPRECATED);return r&&!ef[l]&&(ef[l]=!0),t?t(i,l,s):!0}};bl.spelling=function(t){return(r,o)=>!0};function n3(e,t,r){if(typeof e!="object")throw new Ce("options must be an object",Ce.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const i=o[a],l=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(l){const s=e[i],c=s===void 0||l(s,i,e);if(c!==!0)throw new Ce("option "+i+" must be "+c,Ce.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ce("Unknown option "+i,Ce.ERR_BAD_OPTION)}}var vi={assertOptions:n3,validators:bl},Mt=vi.validators,Ri=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Wd,response:new Wd}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=(()=>{if(!o.stack)return"";const i=o.stack.indexOf(`
|
|
28
28
|
`);return i===-1?"":o.stack.slice(i+1)})();try{if(!r.stack)r.stack=a;else if(a){const i=a.indexOf(`
|
|
29
29
|
`),l=i===-1?-1:a.indexOf(`
|
|
30
30
|
`,i+1),s=l===-1?"":a.slice(l+1);String(r.stack).endsWith(s)||(r.stack+=`
|
|
31
|
-
`+a)}}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Fr(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:a}=t;r!==void 0&&vi.assertOptions(r,{silentJSONParsing:Mt.transitional(Mt.boolean),forcedJSONParsing:Mt.transitional(Mt.boolean),clarifyTimeoutError:Mt.transitional(Mt.boolean),legacyInterceptorReqResOrdering:Mt.transitional(Mt.boolean),advertiseZstdAcceptEncoding:Mt.transitional(Mt.boolean)},!1),o!=null&&(J.isFunction(o)?t.paramsSerializer={serialize:o}:vi.assertOptions(o,{encode:Mt.function,serialize:Mt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),vi.assertOptions(t,{baseUrl:Mt.spelling("baseURL"),withXsrfToken:Mt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&J.merge(a.common,a[t.method]);a&&J.forEach(["delete","get","head","post","put","patch","query","common"],p=>{delete a[p]}),t.headers=on.concat(i,a);const l=[];let s=!0;this.interceptors.request.forEach(function(h){if(typeof h.runWhen=="function"&&h.runWhen(t)===!1)return;s=s&&h.synchronous;const v=t.transitional||iu;v&&v.legacyInterceptorReqResOrdering?l.unshift(h.fulfilled,h.rejected):l.push(h.fulfilled,h.rejected)});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let u,d=0,f;if(!s){const p=[Qd.bind(this),void 0];for(p.unshift(...l),p.push(...c),f=p.length,u=Promise.resolve(t);d<f;)u=u.then(p[d++],p[d++]);return u}f=l.length;let m=t;for(;d<f;){const p=l[d++],h=l[d++];try{m=p(m)}catch(v){h.call(this,v);break}}try{u=Qd.call(this,m)}catch(p){return Promise.reject(p)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(e){return e=Fr(this.defaults,e),Kh(e0(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){Ri.prototype[t]=function(r,o){return this.request(Fr(o||{},{method:t,url:r,data:(o||{}).data}))}});J.forEach(["post","put","patch","query"],function(t){function r(o){return function(i,l,s){return this.request(Fr(s||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}Ri.prototype[t]=r(),t!=="query"&&(Ri.prototype[t+"Form"]=r(!0))});var yi=Ri,r3=class o0{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const o=this;this.promise.then(a=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](a);o._listeners=null}),this.promise.then=a=>{let i;const l=new Promise(s=>{o.subscribe(s),i=s}).then(a);return l.cancel=function(){o.unsubscribe(i)},l},t(function(i,l,s){o.reason||(o.reason=new za(i,l,s),r(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=o=>{t.abort(o)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new o0(function(o){t=o}),cancel:t}}},o3=r3;function a3(e){return function(r){return e.apply(null,r)}}function i3(e){return J.isObject(e)&&e.isAxiosError===!0}var Qs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Qs).forEach(([e,t])=>{Qs[t]=e});var l3=Qs;function a0(e){const t=new yi(e),r=Ih(yi.prototype.request,t);return J.extend(r,yi.prototype,t,{allOwnKeys:!0}),J.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return a0(Fr(e,a))},r}var dt=a0(cu);dt.Axios=yi;dt.CanceledError=za;dt.CancelToken=o3;dt.isCancel=Zh;dt.VERSION=uu;dt.toFormData=yl;dt.AxiosError=Ce;dt.Cancel=dt.CanceledError;dt.all=function(t){return Promise.all(t)};dt.spread=a3;dt.isAxiosError=i3;dt.mergeConfig=Fr;dt.AxiosHeaders=on;dt.formToJSON=e=>Jh(J.isHTMLForm(e)?new FormData(e):e);dt.getAdapter=r0.getAdapter;dt.HttpStatusCode=l3;dt.default=dt;var fu=dt,oo=fu;function s3(e={}){e.baseURL!==void 0&&(oo=fu.create({baseURL:e.baseURL}))}const Zl={get:async e=>oo.get("/files",{params:{path_key:e}}),put:async(e,t)=>oo.put("/files",e,{params:{path_key:t}}),delete:async e=>oo.delete(`/files/${e}`,{params:{path_key:e}}),upload:async(e,t)=>{const r=new FormData;return r.append("file",e),r.append("upload",e),oo.post("/files/upload",r,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:t?.onUploadProgress,params:{dir_path:t?.dirPath,tags:t?.tags}})},list:async e=>oo.get("/files/list",{params:{dir_path:e}})};function i0(e={}){const t=e.namespace||"default",r=(0,n.ref)([]),o=(0,n.ref)([]),a=(0,n.ref)([]),i=(0,n.computed)(()=>{const f=o.value.map(m=>m.path_key);return[...a.value,...f]}),l=f=>URL.createObjectURL(f);function s(f){if(!f)return;let m=[];f instanceof File?m=[f]:f instanceof FileList?m=Array.from(f):Array.isArray(f)&&(m=f);const p=m.map(h=>({url:l(h),name:h.name,file:h,progress:0,namespace:t}));e.multiple?r.value.push(...p):r.value=p,e.onFileQueued&&p.length>0&&e.onFileQueued(p)}async function c(f){if(typeof f=="string"){o.value=o.value.filter(p=>p.path_key!==f);const m=a.value.indexOf(f);m!==-1&&a.value.splice(m,1);try{await Zl.delete(f)}catch{}}else if(f){const m=f instanceof File?{name:f.name}:f,p=r.value.findIndex(h=>h.file.name===m.name&&h.namespace===t);p!==-1&&r.value.splice(p,1)}e.onChange?.()}async function u(){const f=r.value.filter(m=>m.namespace===t);for(const m of f){m.uploading=!0,e.multiple||a.value.splice(0,1);try{const{data:p}=await Zl.upload(m.file,{onUploadProgress:h=>{m.progress=h.loaded/h.total*100-1},dirPath:(0,n.toValue)(e.dirPath)});a.value.push(p.path_key)}catch{}}r.value=r.value.filter(m=>m.namespace!==t)}function d(f=!1){if(e.disabled)return;const m=document.createElement("input");m.type="file",m.multiple=!!e.multiple,m.accept=e.accept||"",e.capture!==void 0&&e.capture!==!1&&(m.capture=e.capture===!0?"environment":e.capture),m.onchange=p=>{s(p.target.files),f&&u()},m.click()}return(0,n.onMounted)(()=>{const f=(0,n.toValue)(e.dirPath);f&&Zl.list(f).then(m=>{const p=Array.isArray(m.data)?m.data:[m.data];o.value.push(...p)}).catch(m=>{})}),{fileQueue:r,storageFiles:o,pk:a,pathKeys:i,fileToUrl:l,removeFile:c,flushQueue:u,addFile:s,browse:d,namespace:t}}var c3=["data-field"],u3={key:0},d3={key:0},f3=["name"],m3={key:1,class:"flex align-items-center gap-1 p-05"},p3={class:"txt-gray txt-12"},h3={class:"m-05 flex opacity-8 z-99 gap-025"},g3={class:"flex gap-025 rounded pe-1 ps-05 py-025 -my-1"},v3={class:"ellipsis-1 word-break-all h-20 m-0 color-black txt16"},y3={key:2,class:"txt-gray txt-12"},b3={key:0,class:"bgl-multi-preview"},_3={class:"m-0"},w3=["src"],$3={class:"no-margin multi-preview-txt"},k3={key:0,class:"progress"},E3={key:1,class:"bgl-single-preview"},C3={key:0,class:"h-100"},S3=["src"],x3={class:"p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05"},T3={class:"pretty balance user-select-none"},N3={key:4,class:"error-message"},D3=(0,n.defineComponent)({__name:"UploadInput",props:{id:{},name:{},label:{},multiple:{type:Boolean},modelValue:{},width:{},height:{default:"215px"},dirPath:{},fill:{type:Boolean},oval:{type:Boolean},theme:{default:"dropzone"},accept:{default:"*"},capture:{type:[Boolean,String]},required:{type:Boolean},disabled:{type:Boolean},baseURL:{},placeholder:{},dropPlaceholder:{},noFilePlaceholder:{},btnPlaceholder:{},error:{},showIcon:{type:Boolean,default:!0},icon:{default:"upload_2"},iconSize:{default:2.5},iconMobileSize:{},frame:{type:Boolean},outline:{type:Boolean},minWidth:{},maxWidth:{},labelColor:{},labelActiveColor:{}},emits:["update:modelValue","addFileStart"],setup(e,{emit:t}){const r=e,o=t,{$t:a}=ft(),i=(0,n.useSlots)(),{fileQueue:l,pathKeys:s,removeFile:c,flushQueue:u,addFile:d,browse:f,pk:m}=i0({disabled:r.disabled,dirPath:r.dirPath,multiple:r.multiple,accept:r.accept,capture:r.capture,namespace:r.id||"upload",onFileQueued:async()=>{await u(),$()},onChange:$});(0,n.watch)(()=>r.modelValue,k=>m.value=k?[k].flat().filter(Boolean):[],{immediate:!0});const{shellClass:p,shellStyle:h}=lt(r),v=(0,n.computed)(()=>s.value.length>0||l.value.length>0),b=(0,n.computed)(()=>{const k=r.dropPlaceholder??r.placeholder;if(k==null)return a("upload.dropPlaceholder");const P=ke(k);return P!=null&&P!==""?P:a("upload.dropPlaceholder")}),g=(0,n.computed)(()=>!s.value.length&&!l.value.length||!!r.multiple),y=k=>Vi.test(k),_=(0,n.ref)(!1);function w(k,P=!1){k.preventDefault(),k.stopPropagation(),r.disabled||(_.value=P)}function $(){r.multiple?o("update:modelValue",s.value):o("update:modelValue",s.value[0]||void 0)}async function A(k){r.disabled||(k.preventDefault(),k.stopPropagation(),o("addFileStart"),d(k.dataTransfer?.files),_.value=!1)}function E(k){return!k||typeof k!="string"?"file":k.split("/").pop()||"file"}return(k,P)=>{const N=(0,n.resolveDirective)("tooltip"),V=(0,n.resolveDirective)("lightbox");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["bagel-input",[(0,n.unref)(p),{"has-error":!!e.error,"has-value":v.value}]]),style:(0,n.normalizeStyle)((0,n.unref)(h)),"data-field":e.name||e.id},[e.label?((0,n.openBlock)(),(0,n.createElementBlock)("label",u3,[(0,n.createTextVNode)((0,n.toDisplayString)(e.label),1),e.required?((0,n.openBlock)(),(0,n.createElementBlock)("span",d3," *")):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),e.required&&!(0,n.unref)(s).length?((0,n.openBlock)(),(0,n.createElementBlock)("input",{key:1,name:e.name||e.id,placeholder:"required",type:"text",required:"",class:"pixel"},null,8,f3)):(0,n.createCommentVNode)("",!0),e.theme==="basic"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ar),{key:2,outline:"",class:"flex p-05 gap-1",onDragover:P[2]||(P[2]=x=>w(x,!0)),onDrop:A},{default:(0,n.withCtx)(()=>[!(0,n.unref)(s).length&&!(0,n.unref)(l).length?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:0,class:"px-1-5",icon:"upload",outline:"",value:e.btnPlaceholder||(0,n.unref)(a)("upload.upload"),onClick:P[0]||(P[0]=x=>(0,n.unref)(f)())},null,8,["value"])):(0,n.createCommentVNode)("",!0),(0,n.unref)(l).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",m3,[(0,n.createVNode)((0,n.unref)(Wr),{size:"20"}),(0,n.createElementVNode)("span",p3,(0,n.toDisplayString)((0,n.unref)(a)("upload.uploading",{count:(0,n.unref)(l).length,plural:(0,n.unref)(l).length>1?"s":""})),1)])):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(s),x=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:x,class:"txt-gray txt-12 flex"},[(0,n.createElementVNode)("div",h3,[(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(ne),{color:"gray",thin:"",icon:"delete",onClick:T=>(0,n.unref)(c)(x)},null,8,["onClick"]),[[N,"Delete"]]),(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(ne),{color:"gray",thin:"",icon:"autorenew",onClick:P[1]||(P[1]=T=>(0,n.unref)(f)())},null,512),[[N,"Replace"]]),(0,n.createVNode)((0,n.unref)(ne),{icon:"download",color:"gray",thin:"",target:"_blank",href:(0,n.unref)(fn)(x),download:E(x)},null,8,["href","download"]),(0,n.createElementVNode)("div",g3,[(0,n.createVNode)((0,n.unref)(ge),{icon:"draft",size:1.5}),(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("p",v3,[(0,n.createTextVNode)((0,n.toDisplayString)(E(x)),1)])),[[V,{src:(0,n.unref)(fn)(x),download:!0}]])])])]))),128)),!(0,n.unref)(s).length&&!(0,n.unref)(l).length?((0,n.openBlock)(),(0,n.createElementBlock)("span",y3,(0,n.toDisplayString)(e.noFilePlaceholder||(0,n.unref)(a)("upload.noFile")),1)):(0,n.createCommentVNode)("",!0)]),_:1})):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:3,class:(0,n.normalizeClass)(["fileUploadWrap",{fileDropZone:!(0,n.unref)(s).length&&!(0,n.unref)(l).length,dragover:_.value,"bgl_oval-upload":e.oval}]),style:(0,n.normalizeStyle)({width:e.width,height:e.height}),onClick:P[4]||(P[4]=x=>(0,n.unref)(f)()),onDragover:P[5]||(P[5]=x=>w(x,!0)),onDrop:A,onDragleave:P[6]||(P[6]=x=>w(x))},[(0,n.renderSlot)(k.$slots,"files",{files:(0,n.unref)(s),fileQueue:(0,n.unref)(l)},()=>[e.multiple?((0,n.openBlock)(),(0,n.createElementBlock)("div",b3,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(s),x=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:x,class:(0,n.normalizeClass)(["multi-image-item-preview",{"bgl_fill-image":e.fill}])},[y(x)?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(bo),{key:0,pathKey:x,class:"multi-preview"},null,8,["pathKey"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,icon:"description",class:"multi-preview"})),(0,n.createElementVNode)("p",_3,(0,n.toDisplayString)(E(x)),1),(0,n.createVNode)((0,n.unref)(ne),{thin:"",flat:"",icon:"delete",color:"red",onClick:T=>(0,n.unref)(c)(x)},null,8,["onClick"])],2)),[[V,{src:(0,n.unref)(fn)(x),download:!0}]])),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(l),x=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:x.name,class:(0,n.normalizeClass)(["multi-image-item-preview",{"bgl_fill-image":e.fill}])},[y(x.file.type)?((0,n.openBlock)(),(0,n.createElementBlock)("img",{key:0,class:"multi-preview",src:x.url,alt:""},null,8,w3)):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,icon:"description",class:"multi-preview"})),(0,n.createElementVNode)("p",$3,(0,n.toDisplayString)(x.name),1),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["pie",{complete:x.progress===100}]),style:(0,n.normalizeStyle)([{"--p":x.progress},{"--b":"2px"}])},[x.progress<100?((0,n.openBlock)(),(0,n.createElementBlock)("span",k3,(0,n.toDisplayString)(x.progress.toFixed(0)),1)):(0,n.createCommentVNode)("",!0),(0,n.createVNode)((0,n.unref)(ge),{class:"success",icon:"check_circle"})],6)],2))),128))])):(0,n.unref)(s).length>0||(0,n.unref)(l).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",E3,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(s),x=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:x,class:(0,n.normalizeClass)(["single-image-item-preview",{"bgl_fill-image":e.fill}])},[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["flex opacity-8 z-99 gap-025 absolute top-0 start-0",{"mx-auto end-0 mt-1 justify-content-center":e.oval,"m-05":!e.oval}])},[(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(ne),{color:"white",frame:"",thin:"",icon:"delete",onClick:T=>(0,n.unref)(c)(x)},null,8,["onClick"]),[[N,"Delete"]]),(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(ne),{color:"white",frame:"",thin:"",icon:"autorenew",onClick:P[3]||(P[3]=T=>(0,n.unref)(f)())},null,512),[[N,"Replace"]]),(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(ne),{color:"white",frame:"",thin:"",target:"_blank",icon:"download",href:(0,n.unref)(fn)(x),download:E(x)},null,8,["href","download"]),[[N,"Download"]])],2),y(x)?((0,n.openBlock)(),(0,n.createElementBlock)("div",C3,[(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(bo),{class:"single-preview",pathKey:x,alt:""},null,8,["pathKey"]),[[V,{src:(0,n.unref)(fn)(x),download:!0}]])])):(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,size:4,weight:"2",icon:"description",class:"color-primary w-100"},null,512)),[[V,{src:(0,n.unref)(fn)(x),download:!0}]])],2))),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(l),x=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:x.name,class:(0,n.normalizeClass)(["single-image-item-preview",{"bgl_fill-image":e.fill}])},[(0,n.createVNode)((0,n.unref)(Wr),{type:"bar",progress:x.progress,class:"absolute bottom-05 end start w-100px mx-auto rounded overflow-hidden"},null,8,["progress"]),y(x.file.type)?((0,n.openBlock)(),(0,n.createElementBlock)("img",{key:0,class:"single-preview opacity-5",src:x.url,alt:""},null,8,S3)):(0,n.createCommentVNode)("",!0)],2))),128))])):(0,n.createCommentVNode)("",!0)],!0),g.value&&(0,n.unref)(i)["drop-placeholder"]?(0,n.renderSlot)(k.$slots,"drop-placeholder",{key:0,files:(0,n.unref)(s),fileQueue:(0,n.unref)(l),browse:(0,n.unref)(f)},void 0,!0):g.value?(0,n.renderSlot)(k.$slots,"placeholder",{key:1,files:(0,n.unref)(s),fileQueue:(0,n.unref)(l),browse:(0,n.unref)(f)},()=>[(0,n.createElementVNode)("p",x3,[e.showIcon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:0,icon:e.icon,size:e.iconSize,"mobile-size":e.iconMobileSize,class:"user-select-none line-height-1"},null,8,["icon","size","mobile-size"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",T3,(0,n.toDisplayString)(b.value),1)])],!0):(0,n.createCommentVNode)("",!0)],38)),e.error?((0,n.openBlock)(),(0,n.createElementBlock)("div",N3,(0,n.toDisplayString)(e.error),1)):(0,n.createCommentVNode)("",!0)],14,c3)}}}),va=we(D3,[["__scopeId","data-v-04d7cdbf"]]);const A3=["mergeCells","splitCells","addRowBefore","addRowAfter","deleteRow","insertColumnLeft","insertColumnRight","deleteColumn","tableAlignLeft","tableAlignCenter","tableAlignRight","tableAlignJustify","deleteTable"],B3=["h1","h2","h3","h4","h5","h6","separator","p","blockquote","orderedList","unorderedList","separator","bold","italic","underline","separator","alignMenu","ltrDirection","rtlDirection","separator","insertTable","separator","link","image","video","embed","clear","separator","undo","redo","separator","splitView","fullScreen"],zR=["h1","h2","h3","h4","h5","h6","separator","bold","italic","underline","separator","fontColor","bgColor","separator","p","blockquote","orderedList","unorderedList","indent","outdent","separator","link","image","video","embed","separator","splitView","clear","insertTable",...A3,"separator","undo","redo","fullScreen"],M3=[{name:"headingsMenu",label:"Headings",icon:"title"},{name:"mediaMenu",label:"Media",icon:"perm_media"},{name:"alignMenu",label:"Alignment",icon:"format_align_left"},{name:"h1",label:"Heading 1",icon:"format_h1"},{name:"h2",label:"Heading 2",icon:"format_h2"},{name:"h3",label:"Heading 3",icon:"format_h3"},{name:"h4",label:"Heading 4",icon:"format_h4"},{name:"h5",label:"Heading 5",icon:"format_h5"},{name:"h6",label:"Heading 6",icon:"format_h6"},{name:"p",label:"Paragraph",icon:"format_paragraph"},{name:"blockquote",label:"Blockquote",icon:"format_quote"},{name:"bold",label:"Bold",icon:"format_bold"},{name:"italic",label:"Italic",icon:"format_italic"},{name:"underline",label:"Underline",icon:"format_underlined"},{name:"orderedList",label:"Ordered List",icon:"format_list_numbered"},{name:"unorderedList",label:"Unordered List",icon:"format_list_bulleted"},{name:"link",label:"Link",icon:"add_link"},{name:"image",label:"Image",icon:"add_photo_alternate"},{name:"video",label:"Video",icon:"play_circle"},{name:"embed",label:"Embed",icon:"media_link"},{name:"splitView",label:"Split View",icon:"code"},{name:"clear",label:"Clear Formatting",icon:"format_clear"},{name:"alignLeft",label:"Align Left",icon:"format_align_left"},{name:"alignCenter",label:"Align Center",icon:"format_align_center"},{name:"alignRight",label:"Align Right",icon:"format_align_right"},{name:"alignJustify",label:"Align Justify",icon:"format_align_justify"},{name:"tableAlignLeft",label:"Table Align Left",icon:"format_align_left"},{name:"tableAlignCenter",label:"Table Align Center",icon:"format_align_center"},{name:"tableAlignRight",label:"Table Align Right",icon:"format_align_right"},{name:"tableAlignJustify",label:"Table Align Justify",icon:"format_align_justify"},{name:"indent",label:"Indent",icon:"format_indent_increase"},{name:"outdent",label:"Outdent",icon:"format_indent_decrease"},{name:"fontColor",label:"Font Color",icon:"format_color_text"},{name:"bgColor",label:"Background Color",icon:"format_color_fill"},{name:"insertTable",label:"Insert Table",icon:"table"},{name:"deleteTable",label:"Delete Table",icon:"delete_sweep"},{name:"mergeCells",label:"Merge Cells",icon:"table_chart"},{name:"splitCells",label:"Split Cells",icon:"dashboard"},{name:"addRowBefore",label:"Insert Row Above",icon:"add_box"},{name:"addRowAfter",label:"Insert Row Below",icon:"vertical_align_bottom"},{name:"deleteRow",label:"Delete Row",icon:"remove"},{name:"insertColumnLeft",label:"Insert Column Left",icon:"format_indent_decrease"},{name:"insertColumnRight",label:"Insert Column Right",icon:"format_indent_increase"},{name:"deleteColumn",label:"Delete Column",icon:"view_week"},{name:"separator"},{name:"undo",label:"Undo",icon:"undo"},{name:"redo",label:"Redo",icon:"redo"},{name:"separator"},{name:"fullScreen",label:"Full Screen",icon:"fullscreen",class:"ms-auto"},{name:"textDirection",label:"Text Direction (RTL/LTR)",icon:"format_textdirection_r_to_l"},{name:"ltrDirection",label:"Left to Right",icon:"format_textdirection_l_to_r"},{name:"rtlDirection",label:"Right to Left",icon:"format_textdirection_r_to_l"}];var L3={class:"table-grid-selector p-075"},P3={class:"txt-center mb-075"},I3={style:{"font-size":"14px","font-weight":"500",color:"#333","margin-bottom":"4px"}},V3=["onFocus","onMouseenter","onClick"],O3={class:"border-top pt-075"},R3=10,F3=10,z3=(0,n.defineComponent)({__name:"TableGridSelector",emits:["insert","openAdvanced"],setup(e,{emit:t}){const r=t,o=(0,n.ref)(0),a=(0,n.ref)(0),i=(0,n.computed)(()=>{const f=[];for(let m=1;m<=R3;m++)for(let p=1;p<=F3;p++)f.push({row:m,col:p,isActive:m<=o.value&&p<=a.value});return f}),l=(0,n.computed)(()=>o.value===0||a.value===0?"Select table size":`${o.value} × ${a.value}`);function s(f,m){o.value=f,a.value=m}function c(f,m,p){r("insert",f,m),p()}function u(f){r("openAdvanced"),f()}function d(){o.value=0,a.value=0}return(f,m)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Tt),{placement:"bottom-start",thin:"",flat:"",icon:"table"},{default:(0,n.withCtx)(({hide:p})=>[(0,n.createElementVNode)("div",L3,[(0,n.createElementVNode)("div",P3,[(0,n.createElementVNode)("div",I3,(0,n.toDisplayString)(l.value),1),m[0]||(m[0]=(0,n.createElementVNode)("div",{style:{"font-size":"12px",color:"#666"}}," Hover to select size ",-1))]),(0,n.createElementVNode)("div",{style:{display:"grid","grid-template-columns":"repeat(10, 20px)","grid-template-rows":"repeat(10, 20px)",gap:"2px","margin-bottom":"12px",direction:"ltr"},onMouseleave:d,onBlur:d},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(i.value,h=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:`${h.row}-${h.col}`,tabindex:"0",style:(0,n.normalizeStyle)({width:"20px",height:"20px",border:"1px solid var(--bgl-border-color)",backgroundColor:h.isActive?"var(--bgl-primary)":"var(--bgl-input-bg)",cursor:"pointer",borderRadius:"2px",transition:"background-color 0.1s ease"}),onFocus:v=>s(h),onMouseenter:v=>s(h.row,h.col),onClick:v=>c(h.row,h.col,p)},null,44,V3))),128))],32),(0,n.createElementVNode)("div",O3,[(0,n.createVNode)((0,n.unref)(ne),{value:"Advanced Settings",icon:"settings",class:"bg-gray-30 color-black",onClick:h=>u(p)},null,8,["onClick"])])])]),_:1}))}}),U3=z3,H3={class:"toolbar flex gap-025 pb-05 flex-wrap",role:"toolbar",style:{position:"relative"}},W3={class:"flex flex-column p-025"},j3=(0,n.defineComponent)({__name:"EditorToolbar",props:{config:{default:()=>B3},selectedStyles:{},hideImages:{type:Boolean,default:!1},hideVideos:{type:Boolean,default:!1},hideEmbeds:{type:Boolean,default:!1},hideTables:{type:Boolean,default:!1},hideAlignment:{type:Boolean,default:!1},hideDirections:{type:Boolean,default:!1},hideH5H6:{type:Boolean,default:!1},hide:{default:()=>[]}},emits:["action"],setup(e,{emit:t}){const r=t;function o(){return e.selectedStyles.has("alignLeft")?"format_align_left":e.selectedStyles.has("alignCenter")?"format_align_center":e.selectedStyles.has("alignRight")?"format_align_right":e.selectedStyles.has("alignJustify")?"format_align_justify":"format_align_left"}function a(){return e.selectedStyles.has("alignLeft")||e.selectedStyles.has("alignCenter")||e.selectedStyles.has("alignRight")||e.selectedStyles.has("alignJustify")}function i(f){if(e.hide.includes(f))return!0;for(const[m,p]of Object.entries({image:["insertImage","image"],video:["insertVideo","video"],embed:["insertEmbed","embed"],table:["insertTable"],direction:["textDirection"],fullScreen:["fullScreen"],ul:["unorderedList"],ol:["orderedList"],splitView:["splitView"],p:["p"],align:["alignMenu"],alignment:["alignMenu"]}))if(e.hide.includes(m)&&p.includes(f))return!0;return{insertImage:e.hideImages,insertVideo:e.hideVideos,insertEmbed:e.hideEmbeds,insertTable:e.hideTables,alignMenu:e.hideAlignment,textDirection:e.hideDirections,h5:e.hideH5H6,h6:e.hideH5H6}[f]||!1}const l=f=>M3.find(m=>m.name===f);function s(f){const m=e.config.map(l).filter(Boolean);let p=-1;for(let v=f-1;v>=0;v--){const b=m[v];if(b&&b.name!=="separator"&&!i(b.name)){p=v;break}}let h=-1;for(let v=f+1;v<m.length;v++){const b=m[v];if(b&&b.name!=="separator"&&!i(b.name)){h=v;break}}if(p===-1||h===-1)return!1;for(let v=p+1;v<f;v++){const b=m[v];if(b&&b.name==="separator")return!1}return!0}function c(f,m){r("action",f,m)}function u(f,m){const p=document.createElement("table");p.style.width="100%",p.style.borderCollapse="collapse",p.style.marginBottom="1rem";const h=document.createElement("thead"),v=h.insertRow();for(let g=0;g<m;g++){const y=document.createElement("th");y.innerHTML=`Header ${g+1}`,y.style.padding="8px",y.style.border="1px solid #ddd",y.style.backgroundColor="#f4f4f4",v.appendChild(y)}p.appendChild(h);const b=document.createElement("tbody");for(let g=0;g<f;g++){const y=b.insertRow();for(let _=0;_<m;_++){const w=y.insertCell();w.innerHTML=" ",w.style.padding="8px",w.style.border="1px solid #ddd"}}p.appendChild(b),r("action","insertTable",p.outerHTML)}function d(){r("action","insertTable")}return(f,m)=>{const p=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",H3,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.config.map(l).filter(Boolean),(h,v)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:v},[h.name==="insertTable"&&!i("insertTable")?((0,n.openBlock)(),(0,n.createBlock)(U3,{key:0,onInsert:u,onOpenAdvanced:d})):h.name==="insertImage"&&!i("insertImage")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:1,icon:h.icon,thin:"",flat:"","aria-label":h.name,class:(0,n.normalizeClass)([[h.class,{active:e.selectedStyles.has(h.name)}],""]),tabindex:"-1",onClick:b=>c(h.name)},null,8,["icon","aria-label","class","onClick"])),[[p,h.label]]):h.name==="insertVideo"&&!i("insertVideo")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:2,icon:h.icon,thin:"",flat:"","aria-label":h.name,class:(0,n.normalizeClass)([[h.class,{active:e.selectedStyles.has(h.name)}],""]),tabindex:"-1",onClick:b=>c(h.name)},null,8,["icon","aria-label","class","onClick"])),[[p,h.label]]):h.name==="insertEmbed"&&!i("insertEmbed")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:3,icon:h.icon,thin:"",flat:"","aria-label":h.name,class:(0,n.normalizeClass)([[h.class,{active:e.selectedStyles.has(h.name)}],""]),tabindex:"-1",onClick:b=>c(h.name)},null,8,["icon","aria-label","class","onClick"])),[[p,h.label]]):h.name==="alignMenu"&&!i("alignMenu")?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Tt),{key:4,placement:"bottom-start",thin:"",flat:"",icon:o(),class:(0,n.normalizeClass)({"alignment-active":a()})},{default:(0,n.withCtx)(({hide:b})=>[(0,n.createElementVNode)("div",W3,[(0,n.createVNode)((0,n.unref)(ne),{thin:"",flat:"",icon:"format_align_left",class:(0,n.normalizeClass)({active:e.selectedStyles.has("alignLeft")}),onClick:g=>{c("alignLeft"),b()}},null,8,["class","onClick"]),(0,n.createVNode)((0,n.unref)(ne),{thin:"",flat:"",icon:"format_align_center",class:(0,n.normalizeClass)({active:e.selectedStyles.has("alignCenter")}),onClick:g=>{c("alignCenter"),b()}},null,8,["class","onClick"]),(0,n.createVNode)((0,n.unref)(ne),{thin:"",flat:"",icon:"format_align_right",class:(0,n.normalizeClass)({active:e.selectedStyles.has("alignRight")}),onClick:g=>{c("alignRight"),b()}},null,8,["class","onClick"]),(0,n.createVNode)((0,n.unref)(ne),{thin:"",flat:"",icon:"format_align_justify",class:(0,n.normalizeClass)({active:e.selectedStyles.has("alignJustify")}),onClick:g=>{c("alignJustify"),b()}},null,8,["class","onClick"])])]),_:1},8,["icon","class"])):h.name==="textDirection"&&!i("textDirection")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:5,icon:e.selectedStyles.has("textDirection")?"format_textdirection_l_to_r":"format_textdirection_r_to_l",thin:"",flat:"","aria-label":h.name,class:(0,n.normalizeClass)([[h.class,{active:e.selectedStyles.has("textDirection")}],""]),tabindex:"-1",onClick:b=>c(h.name)},null,8,["icon","aria-label","class","onClick"])),[[p,h.label]]):(h.name==="h5"||h.name==="h6")&&!i(h.name)?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:6,icon:h.icon,thin:"",flat:"","aria-label":h.name,class:(0,n.normalizeClass)([[h.class,{active:e.selectedStyles.has(h.name)}],""]),tabindex:"-1",onClick:b=>c(h.name)},null,8,["icon","aria-label","class","onClick"])),[[p,h.label]]):h.name!=="separator"&&h.name!=="insertTable"&&h.name!=="insertImage"&&h.name!=="insertVideo"&&h.name!=="insertEmbed"&&h.name!=="alignMenu"&&h.name!=="textDirection"&&h.name!=="h5"&&h.name!=="h6"&&!i(h.name)?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:7,icon:h.icon,thin:"",flat:"","aria-label":h.name,class:(0,n.normalizeClass)([[h.class,{active:e.selectedStyles.has(h.name)}],""]),tabindex:"-1",onClick:b=>c(h.name)},null,8,["icon","aria-label","class","onClick"])),[[p,h.label]]):h.name==="separator"&&s(v)?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:`separator-${v}`,class:"opacity-2 mb-025"},"|")):(0,n.createCommentVNode)("",!0)],64))),128))])}}}),q3=we(j3,[["__scopeId","data-v-2af54422"]]);function G3(e,t){const{doc:r}=t;if(!r)return;const o=r.getSelection();if(!o||!o.rangeCount)return;let a=o.getRangeAt(0);if(a.collapsed){if(!Y3(r,a)){const{showTooltipMessage:s}=t;s?s("To add a link, please select text first or place cursor within a word"):alert("To add a link, please select text first or place the cursor within a word you want to turn into a link.");return}a=o.getRangeAt(0)}const i=a.commonAncestorContainer,l=(i.nodeType===Node.TEXT_NODE?i.parentElement:i)?.closest("a");if(t.openLinkModal){t.openLinkModal(o,a,l);return}alert("Link functionality requires proper modal setup")}function Y3(e,t){if(!t.collapsed)return!0;let r=t.startContainer,o=t.startOffset;if(r.nodeType!==Node.TEXT_NODE){const c=r;if(c.childNodes.length>0&&o<c.childNodes.length){const u=c.childNodes[o];if(u.nodeType===Node.TEXT_NODE)r=u,o=0;else return!1}else return!1}const a=r.textContent||"";if(!a)return!1;let i=o,l=o;const s=/[\u0590-\u05FF\u0600-\u06FF\w]/;for(;i>0&&s.test(a[i-1]);)i--;for(;l<a.length&&s.test(a[l]);)l++;if(i<l){t.setStart(r,i),t.setEnd(r,l);const c=e.getSelection();return c&&(c.removeAllRanges(),c.addRange(t)),!0}return!1}function tf(e,t,r){if(!r.doc)return;const o=r.doc.createElement("table");o.style.width="100%",o.style.borderCollapse="collapse",o.style.marginBottom="1rem";const a=r.doc.createElement("thead"),i=a.insertRow();for(let c=0;c<t;c++){const u=r.doc.createElement("th");u.innerHTML=`Header ${c+1}`,u.style.padding="8px",u.style.border="1px solid var(--bgl-border-color, #ddd)",u.style.backgroundColor="var(--bgl-gray-light, #f4f4f4)",i.appendChild(u)}o.appendChild(a);const l=r.doc.createElement("tbody");for(let c=0;c<e;c++){const u=l.insertRow();for(let d=0;d<t;d++){const f=u.insertCell();f.innerHTML=" ",f.style.padding="8px",f.style.border="1px solid var(--bgl-border-color, #ddd)"}}o.appendChild(l);const{range:s}=r;if(s){if(s.insertNode(o),r.doc.getSelection()){const c=o.querySelector("td");if(c){s.selectNodeContents(c),s.collapse(!0);const u=r.doc.getSelection();u&&(u.removeAllRanges(),u.addRange(s))}}}else r.doc.body.appendChild(o);r.content=r.doc.body.innerHTML}function X3(e,t){const r=Array.from(e.cloneContents().querySelectorAll("td"));if(r.length<2)return;const o=e.startContainer.parentElement?.closest("td");if(!o)return;o.colSpan=r.length,o.innerHTML=r.map(i=>i.innerHTML).join(" "),r.slice(1).forEach(i=>{t.getElementById(i.id)?.remove()});const a=t.editorState;a&&(a.content=t.body.innerHTML)}function K3(e,t){const r=e.startContainer.parentElement?.closest("td");if(!r||!r.colSpan||r.colSpan===1)return;const o=new Array(r.colSpan-1).fill(0).map(()=>{const i=t.createElement("td");return i.style.border="1px solid var(--bgl-border-color)",i.style.padding="8px",i.innerHTML=" ",i});r.colSpan=1,r.insertAdjacentElement("afterend",o[0]),o.slice(1).forEach(i=>{o[0].insertAdjacentElement("afterend",i)});const a=t.editorState;a&&(a.content=t.body.innerHTML)}function nf(e,t,r){const o=t.startContainer.parentElement?.closest("td");if(!o)return;const a=o.parentElement,i=a?.parentElement;if(!a||!i)return;const l=a.cloneNode(!0);Array.from(l.cells).forEach(c=>c.innerHTML=" "),a.insertAdjacentElement(e==="before"?"beforebegin":"afterend",l);const s=r.editorState;s&&(s.content=r.body.innerHTML)}function J3(e){const t=e.startContainer.parentElement?.closest("td");if(!t)return;const r=t.parentElement;if(!r)return;const o=r.ownerDocument;r.remove();const a=o.editorState;a&&(a.content=o.body.innerHTML)}function Z3(e){const t=e.startContainer.parentElement?.closest("td");if(!t)return;const r=t.closest("table");if(!r)return;const o=r.ownerDocument;r.remove();const a=o.editorState;a&&(a.content=o.body.innerHTML)}function rf(e,t){const r=t.startContainer.parentElement?.closest("td");if(!r)return;const o=r.closest("table");if(!o)return;const a=r.cellIndex,{rows:i}=o;for(let s=0;s<i.length;s++){const c=i[s].insertCell(e==="after"?a+1:a);c.innerHTML=" ",c.style.border="1px solid var(--bgl-border-color)",c.style.padding="8px"}const l=o.ownerDocument.editorState;l&&(l.content=o.ownerDocument.body.innerHTML)}function Q3(e){const t=e.startContainer.parentElement?.closest("td");if(!t)return;const r=t.closest("table");if(!r)return;const o=t.cellIndex,{rows:a}=r,i=r.ownerDocument;for(let s=0;s<a.length;s++)a[s].deleteCell(o);a[0].cells.length===0&&r.remove();const l=i.editorState;l&&(l.content=i.body.innerHTML)}function ex(e,t){const r=e.startContainer.parentElement?.closest("td");if(!r)return;const o=r.closest("table");if(!o)return;const a=r.cellIndex,{rows:i}=o;for(let s=0;s<i.length;s++){const c=i[s].cells[a];c&&(c.style.textAlign=t)}const l=o.ownerDocument.editorState;l&&(l.content=o.ownerDocument.body.innerHTML)}function We(e){if(!e.doc)return null;const t=e.doc.getSelection();return!t||!t.rangeCount?null:{selection:t,range:t.getRangeAt(0)}}function Ql(e,t,r){if(!t.collapsed)return!1;let o=t.startContainer,a=t.startOffset;if(o.nodeType!==Node.TEXT_NODE){const f=o;if(f.childNodes.length>0&&a<f.childNodes.length){const m=f.childNodes[a];if(m.nodeType===Node.TEXT_NODE)o=m,a=0;else return!1}else return!1}const{parentElement:i}=o,l=i?.closest(r.toLowerCase());if(l)try{const f=l.parentNode;if(f){for(;l.firstChild;)f.insertBefore(l.firstChild,l);f.removeChild(l);const m=e.createRange();m.setStart(o,a),m.collapse(!0);const p=e.getSelection();return p&&(p.removeAllRanges(),p.addRange(m)),!0}}catch{return!1}const s=o.textContent||"";if(!s)return!1;let c=a,u=a;const d=/[\u0590-\u05FF\u0600-\u06FF\w]/;for(a>0&&d.test(s[a-1])&&(a>=s.length||!d.test(s[a]))&&(c=a-1,u=a-1);c>0&&d.test(s[c-1]);)c--;for(;u<s.length&&d.test(s[u]);)u++;if(c<u&&u>c)try{const f=s.substring(0,c),m=s.substring(c,u),p=s.substring(u),h=e.createElement(r);h.textContent=m;const v=o.parentNode;if(v){if(f){const y=e.createTextNode(f);v.insertBefore(y,o)}if(v.insertBefore(h,o),p){const y=e.createTextNode(p);v.insertBefore(y,o)}v.removeChild(o);const b=e.createRange();b.setStartAfter(h),b.collapse(!0);const g=e.getSelection();return g&&(g.removeAllRanges(),g.addRange(b)),!0}}catch{}return!1}function tx(e){if(!e.doc)return;e.content=e.doc.body.innerHTML;const t=e.doc.getSelection();t&&t.rangeCount>0&&(e.selection=t,e.range=t.getRangeAt(0).cloneRange(),e.rangeCount=t.rangeCount)}function Uo(e){let t=e.nodeType===Node.TEXT_NODE?e.parentElement:e;for(;t;){if(t.matches&&t.matches("p,h1,h2,h3,h4,h5,h6,blockquote,li,div"))return t;t=t.parentElement}return null}function Ae(e,t,r){return{name:e,execute:(o,a)=>{o.doc&&(t(o,a),tx(o))},isActive:r}}function nx(e){const t={undo:Ae("Undo",()=>{if(e.undoStack.length>0&&e.doc){const m=e.undoStack.pop();m!==void 0&&(e.redoStack.push(e.content),e.content=m,e.doc.body.innerHTML=m)}}),redo:Ae("Redo",()=>{if(e.redoStack.length>0&&e.doc){const m=e.redoStack.pop();m!==void 0&&(e.undoStack.push(e.content),e.content=m,e.doc.body.innerHTML=m)}})},r={bold:Ae("Bold",m=>{const p=We(m);if(!p)return;let{range:h,selection:v}=p;if(h.collapsed)return Ql(m.doc,h,"b"),void 0;const b=h.commonAncestorContainer,g=(b.nodeType===Node.TEXT_NODE?b.parentElement:b)?.closest("b, strong");if(g)try{const y=g.parentNode;for(;g.firstChild;)y?.insertBefore(g.firstChild,g);y?.removeChild(g),v.removeAllRanges(),v.addRange(h)}catch{}else try{const y=m.doc.createElement("b");try{h.surroundContents(y)}catch{const _=h.extractContents();y.appendChild(_),h.insertNode(y)}h.selectNodeContents(y),v.removeAllRanges(),v.addRange(h)}catch{}},m=>{const p=We(m);if(!p)return!1;const h=p.range.commonAncestorContainer;return!!(h.nodeType===Node.TEXT_NODE?h.parentElement:h)?.closest("b, strong")}),italic:Ae("Italic",m=>{const p=We(m);if(!p)return;let{range:h,selection:v}=p;if(h.collapsed)return Ql(m.doc,h,"i"),void 0;const b=h.commonAncestorContainer,g=(b.nodeType===Node.TEXT_NODE?b.parentElement:b)?.closest("i, em");if(g)try{const y=g.parentNode;for(;g.firstChild;)y?.insertBefore(g.firstChild,g);y?.removeChild(g),v.removeAllRanges(),v.addRange(h)}catch{}else try{const y=m.doc.createElement("i");try{h.surroundContents(y)}catch{const _=h.extractContents();y.appendChild(_),h.insertNode(y)}h.selectNodeContents(y),v.removeAllRanges(),v.addRange(h)}catch{}},m=>{const p=We(m);if(!p)return!1;const h=p.range.commonAncestorContainer;return!!(h.nodeType===Node.TEXT_NODE?h.parentElement:h)?.closest("i, em")}),underline:Ae("Underline",m=>{const p=We(m);if(!p)return;let{range:h,selection:v}=p;if(h.collapsed)return Ql(m.doc,h,"u"),void 0;const b=h.commonAncestorContainer,g=(b.nodeType===Node.TEXT_NODE?b.parentElement:b)?.closest("u");if(g)try{const y=g.parentNode;for(;g.firstChild;)y?.insertBefore(g.firstChild,g);y?.removeChild(g),v.removeAllRanges(),v.addRange(h)}catch{}else try{const y=m.doc.createElement("u");try{h.surroundContents(y)}catch{const _=h.extractContents();y.appendChild(_),h.insertNode(y)}h.selectNodeContents(y),v.removeAllRanges(),v.addRange(h)}catch{}},m=>{const p=We(m);if(!p)return!1;const h=p.range.commonAncestorContainer;return!!(h.nodeType===Node.TEXT_NODE?h.parentElement:h)?.closest("u")}),link:Ae("Link",m=>{const{openLinkModal:p}=m;p&&G3(p,m)},m=>{const p=We(m);if(!p)return!1;const h=p.range.commonAncestorContainer;return!!(h.nodeType===Node.TEXT_NODE?h.parentElement:h)?.closest("a")})},o=["h1","h2","h3","h4","h5","h6"].reduce((m,p)=>({...m,[p]:Ae(`Heading ${p}`,h=>{const v=We(h);if(!v)return;const{range:b,selection:g}=v,y=Uo(b.commonAncestorContainer);if(!y)return;const{startContainer:_}=b,{endContainer:w}=b,{startOffset:$}=b,{endOffset:A}=b,E=b.collapsed,k=y.tagName.toLowerCase()===p.toLowerCase(),P=k?"p":p;try{const N=h.doc.createElement(P);for(;y.firstChild;)N.appendChild(y.firstChild);y.parentNode?.replaceChild(N,y);try{const V=h.doc.createRange(),x=(F,O,B)=>{if(F===O)return B;if(F.nodeType===Node.TEXT_NODE){const q=h.doc.createTreeWalker(B,NodeFilter.SHOW_TEXT,null);let te=0;const ee=h.doc.createTreeWalker(O,NodeFilter.SHOW_TEXT,null);let le=ee.nextNode();for(;le&&le!==F;)te++,le=ee.nextNode();let R=q.nextNode(),I=0;for(;R&&I<te;)I++,R=q.nextNode();return R}return B.firstChild},T=x(_,y,N),L=x(w,y,N);if(T&&L){if(T.nodeType===Node.TEXT_NODE){const F=Math.min($,T.textContent?.length||0);V.setStart(T,F)}else V.setStart(T,0);if(E)V.collapse(!0);else if(L.nodeType===Node.TEXT_NODE){const F=Math.min(A,L.textContent?.length||0);V.setEnd(L,F)}else V.setEnd(L,0);g.removeAllRanges(),g.addRange(V)}else V.selectNodeContents(N),E&&V.collapse(!0),g.removeAllRanges(),g.addRange(V)}catch{const x=h.doc.createRange();x.selectNodeContents(N),x.collapse(!0),g.removeAllRanges(),g.addRange(x)}if(!k&&!N.nextElementSibling){const V=h.doc.createElement("p");V.dir=N.dir||h.doc.body.dir,N.parentNode?.insertBefore(V,N.nextSibling)}}catch{}})}),{}),a={p:Ae("Paragraph",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=Uo(h.commonAncestorContainer);if(v&&v.tagName.toLowerCase()!=="p")try{const b=m.doc.createElement("p");for(;v.firstChild;)b.appendChild(v.firstChild);v.parentNode?.replaceChild(b,v),h.selectNodeContents(b),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}}),blockquote:Ae("Blockquote",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=Uo(h.commonAncestorContainer);if(!v)return;const b=v.tagName.toLowerCase()==="blockquote"?"p":"blockquote";try{const g=m.doc.createElement(b);for(;v.firstChild;)g.appendChild(v.firstChild);v.parentNode?.replaceChild(g,v),h.selectNodeContents(g),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}})},i={orderedList:Ae("Ordered List",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=Uo(h.commonAncestorContainer);if(!v)return;const b=v.closest("li");if(b){const g=b.parentElement;if(!g)return;if(g.tagName.toLowerCase()==="ol"){const y=m.doc.createElement("p");for(;b.firstChild;)y.appendChild(b.firstChild);g.parentNode?.insertBefore(y,g),b.remove(),g.querySelector("li")||g.remove(),h.selectNodeContents(y),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h);return}if(g.tagName.toLowerCase()==="ul"){const y=m.doc.createElement("ol"),_=h.startOffset,w=h.startContainer;for(;g.firstChild;)y.appendChild(g.firstChild);g.parentNode?.replaceChild(y,g);try{const $=m.doc.createRange();$.setStart(w,_),$.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange($)}catch{const $=y.querySelector("li");if($){const A=m.doc.createRange();A.selectNodeContents($),A.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange(A)}}return}}try{const g=m.doc.createElement("ol"),y=m.doc.createElement("li");for(;v.firstChild;)y.appendChild(v.firstChild);g.appendChild(y),v.parentNode?.replaceChild(g,v),h.selectNodeContents(y),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}}),unorderedList:Ae("Unordered List",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=Uo(h.commonAncestorContainer);if(!v)return;const b=v.closest("li");if(b){const g=b.parentElement;if(!g)return;if(g.tagName.toLowerCase()==="ul"){const y=m.doc.createElement("p");for(;b.firstChild;)y.appendChild(b.firstChild);g.parentNode?.insertBefore(y,g),b.remove(),g.querySelector("li")||g.remove(),h.selectNodeContents(y),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h);return}if(g.tagName.toLowerCase()==="ol"){const y=m.doc.createElement("ul"),_=h.startOffset,w=h.startContainer;for(;g.firstChild;)y.appendChild(g.firstChild);g.parentNode?.replaceChild(y,g);try{const $=m.doc.createRange();$.setStart(w,_),$.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange($)}catch{const A=y.querySelector("li");if(A){const E=m.doc.createRange();E.selectNodeContents(A),E.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange(E)}}return}}try{const g=m.doc.createElement("ul"),y=m.doc.createElement("li");for(;v.firstChild;)y.appendChild(v.firstChild);g.appendChild(y),v.parentNode?.replaceChild(g,v),h.selectNodeContents(y),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}})},l={clear:Ae("Clear Formatting",m=>{const p=We(m);if(!p)return;const{range:h,selection:v}=p;try{let y=function(w){return w.replace(/[\u200B-\u200D\uFEFF]/g,"").replace(/\s+/g," ").replace(/\u00A0/g," ").trim()},_=function(w){if(w.nodeType===Node.TEXT_NODE){const $=y(w.textContent||"");return m.doc.createTextNode($)}if(w.nodeType===Node.ELEMENT_NODE){const $=w,A=$.tagName.toLowerCase(),E=["p","h1","h2","h3","h4","h5","h6","ul","ol","li","blockquote","div","table","tr","td","th","thead","tbody","b","i","u","a","img","iframe","video","audio","figure","figcaption"];if(["strong","em","span","font","strike","sub","sup","mark","del","ins","small","big"].includes(A)){const k=y($.textContent||"");return m.doc.createTextNode(k)}if(E.includes(A)){const k=m.doc.createElement(A);return A==="a"&&$.hasAttribute("href")?(k.setAttribute("href",$.getAttribute("href")||""),$.hasAttribute("target")&&k.setAttribute("target",$.getAttribute("target")||""),$.hasAttribute("rel")&&k.setAttribute("rel",$.getAttribute("rel")||"")):A==="img"?($.hasAttribute("src")&&k.setAttribute("src",$.getAttribute("src")||""),$.hasAttribute("alt")&&k.setAttribute("alt",$.getAttribute("alt")||""),$.hasAttribute("width")&&k.setAttribute("width",$.getAttribute("width")||""),$.hasAttribute("height")&&k.setAttribute("height",$.getAttribute("height")||"")):A==="iframe"?($.hasAttribute("src")&&k.setAttribute("src",$.getAttribute("src")||""),$.hasAttribute("width")&&k.setAttribute("width",$.getAttribute("width")||""),$.hasAttribute("height")&&k.setAttribute("height",$.getAttribute("height")||""),$.hasAttribute("frameborder")&&k.setAttribute("frameborder",$.getAttribute("frameborder")||""),$.hasAttribute("allowfullscreen")&&k.setAttribute("allowfullscreen",$.getAttribute("allowfullscreen")||"")):(A==="video"||A==="audio")&&($.hasAttribute("src")&&k.setAttribute("src",$.getAttribute("src")||""),$.hasAttribute("controls")&&k.setAttribute("controls",$.getAttribute("controls")||""),$.hasAttribute("width")&&k.setAttribute("width",$.getAttribute("width")||""),$.hasAttribute("height")&&k.setAttribute("height",$.getAttribute("height")||"")),Array.from($.childNodes).forEach(P=>{const N=_(P);(N.textContent?.trim()||N.nodeType===Node.ELEMENT_NODE)&&k.appendChild(N)}),k}}return m.doc.createTextNode("")};var b=y,g=_;if(h.collapsed){const{body:w}=m.doc,$=m.doc.createDocumentFragment();if(Array.from(w.childNodes).forEach(A=>{const E=_(A);(E.textContent?.trim()||E.nodeType===Node.ELEMENT_NODE)&&$.appendChild(E)}),w.innerHTML="",w.appendChild($),!w.firstElementChild){const A=m.doc.createElement("p");w.appendChild(A);const E=m.doc.createRange();E.selectNodeContents(A),E.collapse(!0),v.removeAllRanges(),v.addRange(E)}}else{const w=h.cloneContents(),$=m.doc.createElement("div");$.appendChild(w);const A=m.doc.createDocumentFragment();Array.from($.childNodes).forEach(E=>{const k=_(E);(k.textContent?.trim()||k.nodeType===Node.ELEMENT_NODE)&&A.appendChild(k)}),h.deleteContents(),h.insertNode(A),h.collapse(!1),v.removeAllRanges(),v.addRange(h)}}catch{}})},s={insertTable:Ae("Insert Table",(m,p)=>{if(m.openTableEditor&&!p){m.openTableEditor(null);return}if(!p){const[h,v]=[3,3];tf(h,v,m);return}if(p.includes("<table")){const h=We(m);if(!h||!m.doc)return;const{range:v}=h;try{const b=m.doc.createElement("div");b.innerHTML=p;const g=b.querySelector("table");if(g){const y=g.cloneNode(!0);v.insertNode(y),v.setStartAfter(y),v.collapse(!0);const _=m.doc.getSelection();_&&(_.removeAllRanges(),_.addRange(v))}}catch{}}else{const[h,v]=p.split("x").map(Number)||[3,3];tf(h,v,m)}}),deleteTable:Ae("Delete Table",m=>m.range&&Z3(m.range)),mergeCells:Ae("Merge Cells",m=>m.range&&m.doc&&X3(m.range,m.doc)),splitCells:Ae("Split Cells",m=>m.range&&m.doc&&K3(m.range,m.doc)),addRowBefore:Ae("Add Row Before",m=>m.range&&m.doc&&nf("before",m.range,m.doc)),addRowAfter:Ae("Add Row After",m=>m.range&&m.doc&&nf("after",m.range,m.doc)),deleteRow:Ae("Delete Row",m=>m.range&&J3(m.range)),insertColumnLeft:Ae("Insert Column Left",m=>m.range&&rf("before",m.range)),insertColumnRight:Ae("Insert Column Right",m=>m.range&&rf("after",m.range)),deleteColumn:Ae("Delete Column",m=>m.range&&Q3(m.range))},c=["Left","Center","Right","Justify"].reduce((m,p)=>({...m,[`tableAlign${p}`]:Ae(`Table Align ${p}`,h=>{if(h.range){const v=p==="Left"?"start":p==="Right"?"end":p.toLowerCase();ex(h.range,v)}})}),{}),u={alignLeft:Ae("Align Left",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6");v&&(v.style.textAlign="left")},m=>{const p=We(m);if(!p)return!1;const{range:h}=p;return(h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6"))?.style.textAlign==="left"}),alignCenter:Ae("Align Center",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6");v&&(v.style.textAlign="center")},m=>{const p=We(m);if(!p)return!1;const{range:h}=p;return(h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6"))?.style.textAlign==="center"}),alignRight:Ae("Align Right",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6");v&&(v.style.textAlign="right")},m=>{const p=We(m);if(!p)return!1;const{range:h}=p;return(h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6"))?.style.textAlign==="right"}),alignJustify:Ae("Align Justify",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6");v&&(v.style.textAlign="justify")},m=>{const p=We(m);if(!p)return!1;const{range:h}=p;return(h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6"))?.style.textAlign==="justify"}),textDirection:Ae("Toggle Text Direction",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6");v&&(v.dir=(v.dir||"ltr")==="ltr"?"rtl":"ltr")},m=>{const p=We(m);if(!p)return!1;const{range:h}=p;return(h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6"))?.dir==="rtl"}),ltrDirection:Ae("Set Left to Right Direction",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6");v&&(v.dir="ltr")},m=>{const p=We(m);if(!p)return!1;const{range:h}=p;return(h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6"))?.dir==="ltr"}),rtlDirection:Ae("Set Right to Left Direction",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6");v&&(v.dir="rtl")},m=>{const p=We(m);if(!p)return!1;const{range:h}=p;return(h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6"))?.dir==="rtl"})},d={fullScreen:Ae("Full Screen",m=>{m.isFullscreen=!m.isFullscreen},m=>m.isFullscreen),splitView:Ae("Split View",m=>{m.isSplitView=!m.isSplitView},m=>m.isSplitView),codeView:Ae("Code View",m=>{m.isCodeView=!m.isCodeView},m=>m.isCodeView)},f={image:Ae("Insert Image",m=>{const{openImageModal:p}=m;p&&p()}),video:Ae("Insert Video",m=>{const{openVideoModal:p}=m;p&&p()}),embed:Ae("Insert Embed",m=>{const{openEmbedModal:p}=m;p&&p()})};return{...t,...r,...o,...a,...i,...l,...s,...c,...u,...d,...f}}function rx(e,t){return{execute(r,o){const a=t[r];a&&a.execute(e,o)},isActive(r){return t[r].isActive?.(e)||!1},getValue(r){return t[r].getValue?.(e)||null}}}function l0(e,t){const r=t.getSelection();if(!r||!r.rangeCount)return!1;const o=r.getRangeAt(0).commonAncestorContainer,a=o.nodeType===Node.TEXT_NODE?o.parentElement:o;if(!a)return!1;const i=(c,u)=>c?u(c)?!0:i(c.parentElement,u):!1,l={bold:c=>{const u=c.tagName?.toLowerCase();return u==="strong"||u==="b"},italic:c=>{const u=c.tagName?.toLowerCase();return u==="em"||u==="i"},underline:c=>c.tagName?.toLowerCase()==="u",h1:c=>c.tagName?.toLowerCase()==="h1",h2:c=>c.tagName?.toLowerCase()==="h2",h3:c=>c.tagName?.toLowerCase()==="h3",h4:c=>c.tagName?.toLowerCase()==="h4",h5:c=>c.tagName?.toLowerCase()==="h5",h6:c=>c.tagName?.toLowerCase()==="h6",p:c=>c.tagName?.toLowerCase()==="p",blockquote:c=>c.tagName?.toLowerCase()==="blockquote",orderedList:c=>!!c.closest("ol"),unorderedList:c=>!!c.closest("ul"),alignLeft:c=>c.closest("p, h1, h2, h3, h4, h5, h6")?.style.textAlign==="start",alignCenter:c=>c.closest("p, h1, h2, h3, h4, h5, h6")?.style.textAlign==="center",alignRight:c=>c.closest("p, h1, h2, h3, h4, h5, h6")?.style.textAlign==="end",alignJustify:c=>c.closest("p, h1, h2, h3, h4, h5, h6")?.style.textAlign==="justify",textDirection:c=>c.closest("p, h1, h2, h3, h4, h5, h6")?.dir==="rtl",ltrDirection:c=>c.closest("p, h1, h2, h3, h4, h5, h6")?.dir==="ltr",rtlDirection:c=>c.closest("p, h1, h2, h3, h4, h5, h6")?.dir==="rtl"};if(["splitView","codeView","fullScreen"].includes(e))return!1;const s=l[e];return s?i(a,s):i(a,c=>c.tagName?.toLowerCase()===e.toLowerCase())}function ox(e,t){const r=rx(e,nx(e)),o=()=>{if(!e.doc)return;const a=new Set;["bold","italic","underline","link","h1","h2","h3","h4","h5","h6","blockquote","p","orderedList","unorderedList","alignLeft","alignCenter","alignRight","alignJustify","textDirection","ltrDirection","rtlDirection"].forEach(i=>{l0(i,e.doc)&&a.add(i)}),e.selectedStyles=a};return{execute:(a,i)=>{if(!e.doc)return;if(t?.logCommand(a,i),["splitView","codeView","fullScreen"].includes(a))switch(a){case"splitView":e.isSplitView=!e.isSplitView;return;case"codeView":e.isCodeView=!e.isCodeView;return;case"fullScreen":e.isFullscreen=!e.isFullscreen;return}try{e.doc.body.focus()}catch{}const l=e.doc.getSelection();l?.rangeCount&&(e.selection=l,e.range=l.getRangeAt(0).cloneRange(),e.rangeCount=l.rangeCount);try{r.execute(a,i),["splitView","codeView","fullScreen"].includes(a)||o()}catch{}},isActive:r.isActive,getValue:r.getValue}}var ax=class{session;maxActions;isDevelopment;constructor(e=1e3){this.maxActions=e,this.session=this.createNewSession(),this.isDevelopment=!1}createNewSession(){return{id:`session_${Date.now()}`,startTime:Date.now(),actions:[]}}getNodeDescription(e){if(e.nodeType===Node.TEXT_NODE)return`Text("${e.textContent?.slice(0,20)}${e.textContent&&e.textContent.length>20?"...":""}")`;const t=e;return`${t.tagName.toLowerCase()}${t.id?`#${t.id}`:""}`}captureState(e){if(!e.doc||!e.selection)return{content:"",selection:null,activeStyles:[],caretPosition:null};const{selection:t}=e,r=t.rangeCount?t.getRangeAt(0):null;return{content:e.doc.body.innerHTML,selection:r?{start:r.startOffset,end:r.endOffset,collapsed:r.collapsed,text:r.toString()}:null,activeStyles:Array.from(e.selectedStyles),caretPosition:r?{node:this.getNodeDescription(r.startContainer),offset:r.startOffset}:null}}logCommand(e,t,r){this.addAction({type:"command",name:e,timestamp:Date.now(),details:{value:t},state:this.captureState(r)})}logPaste(e,t){this.addAction({type:"paste",name:"paste",timestamp:Date.now(),details:{html:e.getData("text/html"),text:e.getData("text/plain"),types:Array.from(e.types)},state:this.captureState(t)})}logKeyboard(e,t){this.addAction({type:"keyboard",name:"keypress",timestamp:Date.now(),details:{key:e.key,code:e.code,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey,meta:e.metaKey},state:this.captureState(t)})}logSelection(e){this.addAction({type:"selection",name:"selection_change",timestamp:Date.now(),details:{},state:this.captureState(e)})}logInput(e,t,r){this.addAction({type:"input",name:e,timestamp:Date.now(),details:{data:t},state:this.captureState(r)})}addAction(e){this.session.actions.push(e),this.session.actions.length>this.maxActions&&this.session.actions.shift(),this.isDevelopment}getSession(){return this.session}clearSession(){this.session=this.createNewSession()}exportSession(){return JSON.stringify(this.session,null,2)}downloadSession(){const e=new Blob([this.exportSession()],{type:"application/json"}),t=URL.createObjectURL(e),r=document.createElement("a");r.href=t,r.download=`editor_session_${this.session.id}.json`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(t)}exportSessionWithPrompt(e){const t={message:e||"here is a debug log, can you analyze and fix accordingly?",session:this.session};return JSON.stringify(t,null,2)}};function of(e){const t=document.createElement("div");t.innerHTML=e;const r=[],o=[];return t.querySelectorAll("iframe").forEach((a,i)=>{const l=`<!--iframe-${i}-->`;r.push(a.cloneNode(!0)),o.push(l),a.replaceWith(l)}),{html:t.innerHTML,iframes:r}}function af(e,t,r){const o=/<!--iframe-(\d+)-->/g;e.body.innerHTML=t.replace(o,(a,i)=>{const l=r[Number(i)];return l?l.outerHTML:""})}function ix(){let e=null;const t=(0,n.reactive)({content:"",doc:void 0,selection:null,selectedStyles:new Set,isFullscreen:!1,isSplitView:!1,isCodeView:!1,hasInit:!1,undoStack:[],redoStack:[],rangeCount:0,range:null,debug:void 0}),r={styles:()=>{if(!t.doc)return;const c=new Set;["bold","italic","underline","h1","h2","h3","h4","h5","h6","blockquote","p","orderedList","unorderedList","alignLeft","alignCenter","alignRight","alignJustify","textDirection","ltrDirection","rtlDirection"].forEach(u=>{t.doc&&l0(u,t.doc)&&c.add(u)}),t.selectedStyles=c},content:c=>{if(!t.doc)return;t.doc.body.innerHTML!==t.content&&(t.undoStack.push(t.content),t.redoStack=[]);const u=t.doc.getSelection(),d=u?.rangeCount?u.getRangeAt(0).cloneRange():null;if(c==="html"){const f=of(t.content);t.doc.body.innerHTML=f.html,setTimeout(()=>{if(t.doc&&(af(t.doc,t.content,f.iframes),d&&u))try{u.removeAllRanges(),u.addRange(d)}catch{}},0)}else t.doc.body.textContent=t.content},selection:()=>{if(!t.doc)return;const c=t.doc.getSelection();if(c)try{if(!t.doc.body.contains(c.anchorNode)){t.doc.body.focus();return}(!t.selection||t.selection!==c||t.rangeCount!==c.rangeCount||c.rangeCount>0&&t.range&&(t.range.startContainer!==c.getRangeAt(0).startContainer||t.range.startOffset!==c.getRangeAt(0).startOffset||t.range.endContainer!==c.getRangeAt(0).endContainer||t.range.endOffset!==c.getRangeAt(0).endOffset))&&(t.selection=c,t.rangeCount=c.rangeCount,c.rangeCount>0&&(t.range=c.getRangeAt(0).cloneRange()),r.styles())}catch{t.selection=null,t.range=null,t.rangeCount=0,t.selectedStyles=new Set}}},o={undo:()=>{if(t.undoStack.length===0)return;t.redoStack.push(t.content);const c=t.undoStack.pop();c!==void 0&&(t.content=c,r.content("html"))},redo:()=>{if(t.redoStack.length===0)return;t.undoStack.push(t.content);const c=t.redoStack.pop();c!==void 0&&(t.content=c,r.content("html"))}},a={emptyTags:c=>{const u=c.createTreeWalker(c.body,NodeFilter.SHOW_ELEMENT,null),d=[];let f=u.nextNode();for(;f;){if(["br","img","hr","input"].includes(f.tagName.toLowerCase())){f=u.nextNode();continue}const m=f.textContent?.trim()||"",p=f.innerHTML.trim(),h=p==="<br>"||p==="<br/>",v=p===" "||m===" ",b=!m&&!p,g=f.parentElement===c.body;(b||v||h&&!g)&&d.push(f),f=u.nextNode()}d.forEach(m=>{m.remove()})},normalizeContent:c=>{const u=c.createTreeWalker(c.body,NodeFilter.SHOW_TEXT),d=[];let f;for(;f=u.nextNode();)f.parentElement===c.body&&f.textContent?.trim()&&d.push(f);d.forEach(m=>{const p=c.createElement("p");p.dir=c.body.dir,p.appendChild(m.cloneNode()),c.body.replaceChild(p,m)})}};function i(c){e&&(e(),e=null);let u=!1;const d={input:()=>{if(u)return;u=!0;const f=c.body.innerHTML;f!==t.content&&(t.content=f),u=!1},selectionchange:()=>{u||r.selection()},mouseup:()=>{u||r.selection()},keyup:f=>{u||["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(f.key)&&r.selection()}};return Object.entries(d).forEach(([f,m])=>{c.addEventListener(f,m)}),e=()=>{Object.entries(d).forEach(([f,m])=>{c.removeEventListener(f,m)})},e}function l(c){if(t.hasInit&&e&&(e(),e=null),t.doc=c,t.hasInit=!0,c.editorState=t,t.content&&t.content.trim()&&!t.content.match(/^<p(?:\s[^>]*)?>(?:<br\s*\/?>)?\s*<\/p>$/i)){const u=of(t.content);c.body.innerHTML=u.html,setTimeout(()=>{t.doc&&af(c,t.content,u.iframes)},0)}if(a.normalizeContent(c),c.body.firstElementChild){const u=c.createRange(),d=c.getSelection();d&&(u.selectNodeContents(c.body),u.collapse(!1),d.removeAllRanges(),d.addRange(u),t.range=u.cloneRange(),t.selection=d,t.rangeCount=d.rangeCount)}else{const u=c.getSelection();if(u){const d=c.createRange();d.setStart(c.body,0),d.setEnd(c.body,0),u.removeAllRanges(),u.addRange(d),t.range=d.cloneRange(),t.selection=u,t.rangeCount=u.rangeCount}}e=i(c)}function s(){if(!t.debug){const c=new ax;t.debug={debugger:c,logCommand:(u,d)=>{c.logCommand(u,d,t)},getSession:()=>c.getSession(),clearSession:()=>{c.clearSession()},downloadSession:()=>{c.downloadSession()},exportDebugWithPrompt:u=>c.exportSessionWithPrompt(u)}}}return typeof window<"u"&&window.addEventListener("beforeunload",()=>{e&&e()}),{state:t,init:l,updateState:r,history:o,initDebugger:s,cleanup:()=>{e&&(e(),e=null)}}}var lx=[{key:"b",command:"bold"},{key:"i",command:"italic"},{key:"u",command:"underline"},{key:"k",command:"link"},{key:"z",command:"undo"},{key:"z",modifiers:{shift:!0},command:"redo"},{key:"y",command:"redo"},{key:".",modifiers:{shift:!0},command:"orderedList"},{key:"/",modifiers:{shift:!0},command:"unorderedList"},{key:"]",command:"indent"},{key:"[",command:"outdent"},...Array.from({length:6},(e,t)=>({key:String(t+1),modifiers:{alt:!0},command:`h${t+1}`}))];function sx(e,t){e.addEventListener("keydown",r=>{if(!r.ctrlKey&&!r.metaKey)return;const o=lx.find(a=>{const i=a.key===r.key,l=!a.modifiers||(!a.modifiers.ctrl||r.ctrlKey||r.metaKey)&&(!a.modifiers.alt||r.altKey)&&(!a.modifiers.shift||r.shiftKey);return i&&l});o&&(r.preventDefault(),t.execute(o.command))})}var cx={key:0},ux={key:1,class:"flex pt-05"},dx={class:"inline-toolbar-content"},fx={class:"menu-header"},mx={class:"px-025"},px={key:3,class:"context-menu-separator"},hx={class:"flex gap-05 align-items-end"},gx={class:"flex gap-1"},vx={class:"flex gap-05 w-100"},yx={class:"flex gap-1"},bx={class:"flex gap-05 w-100"},_x={class:"grid gap-0"},wx={key:0,class:"flex gap-025 opacity-5 -mt-05"},$x={key:1,class:"grid grid-wrap-2 gap-05"},kx={class:"grid grid-wrap-2 gap-05 py-1"},Ex={class:"overflow-hidden flex justify-content-center"},Cx={class:"flex gap-05 w-100"},Sx={class:"grid grid-wrap-4 m_grid-wrap-2 gap-col-1 table-editor testMe1"},xx={class:"grid-span-1"},Tx={class:"flex gap-025 mt-025 radius-1 p-05 w-fit",style:{height:"var(--bgl-input-height)",background:"var(--bgl-input-bg)"}},Nx={class:"grid-span-1"},Dx={class:"flex gap-025 mt-025 radius-1 p-025 w-fit",style:{height:"var(--bgl-input-height)",background:"var(--bgl-input-bg)"}},Ax={key:0,class:"grid-span-4 m_grid-span-2 grid-wrap-4 m_grid-wrap-2 grid gap-col-1 border-bottom pb-05 mb-05"},Bx={key:1,class:"grid grid-wrap-4 m_grid-wrap-2 gap-col-1 grid-span-4 m_grid-span-2 border-bottom pb-05 mb-05"},Mx=["innerHTML"],Lx=(0,n.defineComponent)({inheritAttrs:!1,__name:"index",props:{modelValue:{},toolbarConfig:{},debug:{type:Boolean},label:{},height:{},basic:{type:Boolean},simple:{type:Boolean},placeholder:{},hideToolbar:{type:Boolean},hideInlineToolbar:{type:Boolean},hideImages:{type:Boolean},hideVideos:{type:Boolean},hideEmbed:{type:Boolean},hideTables:{type:Boolean},hideAlignment:{type:Boolean},hideDirections:{type:Boolean},hideH5H6:{type:Boolean},hide:{},autofocus:{type:Boolean},textColor:{},fontSize:{},frame:{type:Boolean},outline:{type:Boolean},minWidth:{},maxWidth:{},labelColor:{},labelActiveColor:{}},emits:["update:modelValue"],setup(e,{expose:t,emit:r}){const o=e,a=r,{shellClass:i,shellStyle:l}=lt(o),s=(0,n.computed)(()=>!!o.modelValue?.trim()),c=(0,n.useAttrs)(),u=(0,n.ref)(),d=ix(),f=(0,n.ref)(!1),m=(0,n.ref)(!1),p=ox(d.state,d.state.debug),h=(0,n.ref)(0),v=(0,n.computed)(()=>(h.value,typeof document<"u"&&getComputedStyle(document.documentElement).getPropertyValue("--bgl-input-color").trim()||"#000")),b=(0,n.computed)(()=>{const M=v.value;return o.textColor||(M&&M.length>0&&M!=="#000"?M:"inherit")}),g=(0,n.computed)(()=>(h.value,typeof document<"u"&&getComputedStyle(document.documentElement).getPropertyValue("--bgl-font").trim()||"sans-serif"));let y=null;(0,n.onMounted)(()=>{typeof document<"u"&&(y=new MutationObserver(M=>{let C=!1;M.forEach(S=>{if(S.type==="attributes"){const{attributeName:re}=S;(re==="data-theme"||re==="class"||re==="style")&&(C=!0)}}),C&&(h.value++,m.value&&setTimeout(()=>{Ul()},50))}),y.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","class","style"]}),document.body&&y.observe(document.body,{attributes:!0,attributeFilter:["class","data-theme"]}))}),(0,n.onBeforeUnmount)(()=>{y?.disconnect()}),o.debug&&typeof window<"u"&&(window.forceRichTextUpdate=()=>{h.value++},window.debugRichText=_e);const _=(0,n.computed)(()=>!(o.hideToolbar||o.basic)),w=(0,n.computed)(()=>!o.hideInlineToolbar),$=(0,n.computed)(()=>o.toolbarConfig),A=(0,n.computed)(()=>{const M=[...o.hide||[]];return o.simple&&["h1","h2","h3","h4","h5","h6","image","video","embed","ul","ol","blockquote","direction","table","alignment"].forEach(C=>{M.includes(C)||M.push(C)}),M}),E=(0,n.ref)(!1),k=(0,n.ref)({url:"",openInNewTab:!0}),P=(0,n.ref)(!1),N=(0,n.ref)({message:"",x:0,y:0});let V=null;const x=(0,n.ref)(!1),T=(0,n.ref)({src:"",alt:"",width:"",height:"",credit:"",figcaption:!1});let L=null;const F=(0,n.ref)(!1),O=(0,n.ref)({src:"",width:"560",height:"315",alt:""});let B=null;const q=(0,n.ref)(!1),te=(0,n.ref)({top:0,left:0}),ee=(0,n.ref)(null),le=(0,n.ref)(!1),R=(0,n.ref)({src:"",width:"",autoplay:!1,mute:!1,controls:!0,loop:!1,aspectRatio:"16:9",customWidth:"",customHeight:"",caption:"",showCaption:!1});let I=null;const U=(0,n.ref)(!1),D=(0,n.ref)({rows:3,cols:3,width:100,borderWidth:1,borderColor:"#dddddd",cellPadding:8,showHeaders:!0,headerBgColor:"#f4f4f4",headerTextColor:"#333333",cellBgColor:"#ffffff",cellTextColor:"#333333",alternateRows:!1,alternateRowBgColor:"#f9f9f9",alternateRowTextColor:"#333333",fixedLayout:!0,alignment:"left",direction:"ltr"}),W=(0,n.ref)(!1),j=(0,n.ref)({x:0,y:0}),Y=(0,n.ref)(null);let ae=null;const be=(0,n.computed)(()=>{const M=D.value;let C=`<table style="${`
|
|
31
|
+
`+a)}}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Fr(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:a}=t;r!==void 0&&vi.assertOptions(r,{silentJSONParsing:Mt.transitional(Mt.boolean),forcedJSONParsing:Mt.transitional(Mt.boolean),clarifyTimeoutError:Mt.transitional(Mt.boolean),legacyInterceptorReqResOrdering:Mt.transitional(Mt.boolean),advertiseZstdAcceptEncoding:Mt.transitional(Mt.boolean)},!1),o!=null&&(J.isFunction(o)?t.paramsSerializer={serialize:o}:vi.assertOptions(o,{encode:Mt.function,serialize:Mt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),vi.assertOptions(t,{baseUrl:Mt.spelling("baseURL"),withXsrfToken:Mt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&J.merge(a.common,a[t.method]);a&&J.forEach(["delete","get","head","post","put","patch","query","common"],p=>{delete a[p]}),t.headers=on.concat(i,a);const l=[];let s=!0;this.interceptors.request.forEach(function(h){if(typeof h.runWhen=="function"&&h.runWhen(t)===!1)return;s=s&&h.synchronous;const v=t.transitional||iu;v&&v.legacyInterceptorReqResOrdering?l.unshift(h.fulfilled,h.rejected):l.push(h.fulfilled,h.rejected)});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let u,d=0,f;if(!s){const p=[Qd.bind(this),void 0];for(p.unshift(...l),p.push(...c),f=p.length,u=Promise.resolve(t);d<f;)u=u.then(p[d++],p[d++]);return u}f=l.length;let m=t;for(;d<f;){const p=l[d++],h=l[d++];try{m=p(m)}catch(v){h.call(this,v);break}}try{u=Qd.call(this,m)}catch(p){return Promise.reject(p)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(e){return e=Fr(this.defaults,e),Kh(e0(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){Ri.prototype[t]=function(r,o){return this.request(Fr(o||{},{method:t,url:r,data:(o||{}).data}))}});J.forEach(["post","put","patch","query"],function(t){function r(o){return function(i,l,s){return this.request(Fr(s||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}Ri.prototype[t]=r(),t!=="query"&&(Ri.prototype[t+"Form"]=r(!0))});var yi=Ri,r3=class o0{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const o=this;this.promise.then(a=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](a);o._listeners=null}),this.promise.then=a=>{let i;const l=new Promise(s=>{o.subscribe(s),i=s}).then(a);return l.cancel=function(){o.unsubscribe(i)},l},t(function(i,l,s){o.reason||(o.reason=new za(i,l,s),r(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=o=>{t.abort(o)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new o0(function(o){t=o}),cancel:t}}},o3=r3;function a3(e){return function(r){return e.apply(null,r)}}function i3(e){return J.isObject(e)&&e.isAxiosError===!0}var Qs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Qs).forEach(([e,t])=>{Qs[t]=e});var l3=Qs;function a0(e){const t=new yi(e),r=Ih(yi.prototype.request,t);return J.extend(r,yi.prototype,t,{allOwnKeys:!0}),J.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return a0(Fr(e,a))},r}var dt=a0(cu);dt.Axios=yi;dt.CanceledError=za;dt.CancelToken=o3;dt.isCancel=Zh;dt.VERSION=uu;dt.toFormData=yl;dt.AxiosError=Ce;dt.Cancel=dt.CanceledError;dt.all=function(t){return Promise.all(t)};dt.spread=a3;dt.isAxiosError=i3;dt.mergeConfig=Fr;dt.AxiosHeaders=on;dt.formToJSON=e=>Jh(J.isHTMLForm(e)?new FormData(e):e);dt.getAdapter=r0.getAdapter;dt.HttpStatusCode=l3;dt.default=dt;var fu=dt,oo=fu;function s3(e={}){e.baseURL!==void 0&&(oo=fu.create({baseURL:e.baseURL}))}const Zl={get:async e=>oo.get("/files",{params:{path_key:e}}),put:async(e,t)=>oo.put("/files",e,{params:{path_key:t}}),delete:async e=>oo.delete(`/files/${e}`,{params:{path_key:e}}),upload:async(e,t)=>{const r=new FormData;return r.append("file",e),r.append("upload",e),oo.post("/files/upload",r,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:t?.onUploadProgress,params:{dir_path:t?.dirPath,tags:t?.tags}})},list:async e=>oo.get("/files/list",{params:{dir_path:e}})};function i0(e={}){const t=e.namespace||"default",r=(0,n.ref)([]),o=(0,n.ref)([]),a=(0,n.ref)([]),i=(0,n.computed)(()=>{const f=o.value.map(m=>m.path_key);return[...a.value,...f]}),l=f=>URL.createObjectURL(f);function s(f){if(!f)return;let m=[];f instanceof File?m=[f]:f instanceof FileList?m=Array.from(f):Array.isArray(f)&&(m=f);const p=m.map(h=>({url:l(h),name:h.name,file:h,progress:0,namespace:t}));e.multiple?r.value.push(...p):r.value=p,e.onFileQueued&&p.length>0&&e.onFileQueued(p)}async function c(f){if(typeof f=="string"){o.value=o.value.filter(p=>p.path_key!==f);const m=a.value.indexOf(f);m!==-1&&a.value.splice(m,1);try{await Zl.delete(f)}catch{}}else if(f){const m=f instanceof File?{name:f.name}:f,p=r.value.findIndex(h=>h.file.name===m.name&&h.namespace===t);p!==-1&&r.value.splice(p,1)}e.onChange?.()}async function u(){const f=r.value.filter(m=>m.namespace===t);for(const m of f){m.uploading=!0,e.multiple||a.value.splice(0,1);try{const{data:p}=await Zl.upload(m.file,{onUploadProgress:h=>{m.progress=h.loaded/h.total*100-1},dirPath:(0,n.toValue)(e.dirPath)});a.value.push(p.path_key)}catch{}}r.value=r.value.filter(m=>m.namespace!==t)}function d(f=!1){if(e.disabled)return;const m=document.createElement("input");m.type="file",m.multiple=!!e.multiple,m.accept=e.accept||"",e.capture!==void 0&&e.capture!==!1&&(m.capture=e.capture===!0?"environment":e.capture),m.onchange=p=>{s(p.target.files),f&&u()},m.click()}return(0,n.onMounted)(()=>{const f=(0,n.toValue)(e.dirPath);f&&Zl.list(f).then(m=>{const p=Array.isArray(m.data)?m.data:[m.data];o.value.push(...p)}).catch(m=>{})}),{fileQueue:r,storageFiles:o,pk:a,pathKeys:i,fileToUrl:l,removeFile:c,flushQueue:u,addFile:s,browse:d,namespace:t}}var c3=["data-field"],u3={key:0},d3={key:0},f3=["name"],m3={key:1,class:"flex align-items-center gap-1 p-05"},p3={class:"txt-gray txt-12"},h3={class:"m-05 flex opacity-8 z-99 gap-025"},g3={class:"flex gap-025 rounded pe-1 ps-05 py-025 -my-1"},v3={class:"ellipsis-1 word-break-all h-20 m-0 color-black txt16"},y3={key:2,class:"txt-gray txt-12"},b3={key:0,class:"bgl-multi-preview"},_3={class:"m-0"},w3=["src"],$3={class:"no-margin multi-preview-txt"},k3={key:0,class:"progress"},E3={key:1,class:"bgl-single-preview"},C3={key:0,class:"h-100"},S3=["src"],x3={class:"p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05"},T3={class:"pretty balance user-select-none"},N3={key:4,class:"error-message"},D3=(0,n.defineComponent)({__name:"UploadInput",props:{id:{},name:{},label:{},multiple:{type:Boolean},modelValue:{},width:{},height:{default:"215px"},dirPath:{},fill:{type:Boolean},oval:{type:Boolean},theme:{default:"dropzone"},accept:{default:"*"},capture:{type:[Boolean,String]},required:{type:Boolean},disabled:{type:Boolean},baseURL:{},placeholder:{},dropPlaceholder:{},noFilePlaceholder:{},btnPlaceholder:{},error:{},showIcon:{type:Boolean,default:!0},icon:{default:"upload_2"},iconSize:{default:2.5},iconMobileSize:{},frame:{type:Boolean},outline:{type:Boolean},minWidth:{},maxWidth:{},labelColor:{},labelActiveColor:{}},emits:["update:modelValue","addFileStart"],setup(e,{emit:t}){const r=e,o=t,{$t:a}=ft(),i=(0,n.useSlots)(),{fileQueue:l,pathKeys:s,removeFile:c,flushQueue:u,addFile:d,browse:f,pk:m}=i0({disabled:r.disabled,dirPath:r.dirPath,multiple:r.multiple,accept:r.accept,capture:r.capture,namespace:r.id||"upload",onFileQueued:async()=>{await u(),$()},onChange:$});(0,n.watch)(()=>r.modelValue,k=>m.value=k?[k].flat().filter(Boolean):[],{immediate:!0});const{shellClass:p,shellStyle:h}=lt(r),v=(0,n.computed)(()=>s.value.length>0||l.value.length>0),b=(0,n.computed)(()=>{const k=r.dropPlaceholder??r.placeholder;if(k==null)return a("upload.dropPlaceholder");const P=ke(k);return P!=null&&P!==""?P:a("upload.dropPlaceholder")}),g=(0,n.computed)(()=>!s.value.length&&!l.value.length||!!r.multiple),y=k=>Vi.test(k),_=(0,n.ref)(!1);function w(k,P=!1){k.preventDefault(),k.stopPropagation(),r.disabled||(_.value=P)}function $(){r.multiple?o("update:modelValue",s.value):o("update:modelValue",s.value[0]||void 0)}async function A(k){r.disabled||(k.preventDefault(),k.stopPropagation(),o("addFileStart"),d(k.dataTransfer?.files),_.value=!1)}function E(k){return!k||typeof k!="string"?"file":k.split("/").pop()||"file"}return(k,P)=>{const N=(0,n.resolveDirective)("tooltip"),V=(0,n.resolveDirective)("lightbox");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["bagel-input",[(0,n.unref)(p),{"has-error":!!e.error,"has-value":v.value}]]),style:(0,n.normalizeStyle)((0,n.unref)(h)),"data-field":e.name||e.id},[e.label?((0,n.openBlock)(),(0,n.createElementBlock)("label",u3,[(0,n.createTextVNode)((0,n.toDisplayString)(e.label),1),e.required?((0,n.openBlock)(),(0,n.createElementBlock)("span",d3," *")):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),e.required&&!(0,n.unref)(s).length?((0,n.openBlock)(),(0,n.createElementBlock)("input",{key:1,name:e.name||e.id,placeholder:"required",type:"text",required:"",class:"pixel"},null,8,f3)):(0,n.createCommentVNode)("",!0),e.theme==="basic"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ar),{key:2,outline:"",class:"flex p-05 gap-1",onDragover:P[2]||(P[2]=x=>w(x,!0)),onDrop:A},{default:(0,n.withCtx)(()=>[!(0,n.unref)(s).length&&!(0,n.unref)(l).length?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:0,class:"px-1-5",icon:"upload",outline:"",value:e.btnPlaceholder||(0,n.unref)(a)("upload.upload"),onClick:P[0]||(P[0]=x=>(0,n.unref)(f)())},null,8,["value"])):(0,n.createCommentVNode)("",!0),(0,n.unref)(l).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",m3,[(0,n.createVNode)((0,n.unref)(Wr),{size:"20"}),(0,n.createElementVNode)("span",p3,(0,n.toDisplayString)((0,n.unref)(a)("upload.uploading",{count:(0,n.unref)(l).length,plural:(0,n.unref)(l).length>1?"s":""})),1)])):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(s),x=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:x,class:"txt-gray txt-12 flex"},[(0,n.createElementVNode)("div",h3,[(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(ne),{color:"gray",thin:"",icon:"delete",onClick:T=>(0,n.unref)(c)(x)},null,8,["onClick"]),[[N,"Delete"]]),(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(ne),{color:"gray",thin:"",icon:"autorenew",onClick:P[1]||(P[1]=T=>(0,n.unref)(f)())},null,512),[[N,"Replace"]]),(0,n.createVNode)((0,n.unref)(ne),{icon:"download",color:"gray",thin:"",target:"_blank",href:(0,n.unref)(fn)(x),download:E(x)},null,8,["href","download"]),(0,n.createElementVNode)("div",g3,[(0,n.createVNode)((0,n.unref)(ge),{icon:"draft",size:1.5}),(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("p",v3,[(0,n.createTextVNode)((0,n.toDisplayString)(E(x)),1)])),[[V,{src:(0,n.unref)(fn)(x),download:!0}]])])])]))),128)),!(0,n.unref)(s).length&&!(0,n.unref)(l).length?((0,n.openBlock)(),(0,n.createElementBlock)("span",y3,(0,n.toDisplayString)(e.noFilePlaceholder||(0,n.unref)(a)("upload.noFile")),1)):(0,n.createCommentVNode)("",!0)]),_:1})):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:3,class:(0,n.normalizeClass)(["fileUploadWrap",{fileDropZone:!(0,n.unref)(s).length&&!(0,n.unref)(l).length,dragover:_.value,"bgl_oval-upload":e.oval}]),style:(0,n.normalizeStyle)({width:e.width,height:e.height}),onClick:P[4]||(P[4]=x=>(0,n.unref)(f)()),onDragover:P[5]||(P[5]=x=>w(x,!0)),onDrop:A,onDragleave:P[6]||(P[6]=x=>w(x))},[(0,n.renderSlot)(k.$slots,"files",{files:(0,n.unref)(s),fileQueue:(0,n.unref)(l)},()=>[e.multiple?((0,n.openBlock)(),(0,n.createElementBlock)("div",b3,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(s),x=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:x,class:(0,n.normalizeClass)(["multi-image-item-preview",{"bgl_fill-image":e.fill}])},[y(x)?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(bo),{key:0,pathKey:x,class:"multi-preview"},null,8,["pathKey"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,icon:"description",class:"multi-preview"})),(0,n.createElementVNode)("p",_3,(0,n.toDisplayString)(E(x)),1),(0,n.createVNode)((0,n.unref)(ne),{thin:"",flat:"",icon:"delete",color:"red",onClick:T=>(0,n.unref)(c)(x)},null,8,["onClick"])],2)),[[V,{src:(0,n.unref)(fn)(x),download:!0}]])),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(l),x=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:x.name,class:(0,n.normalizeClass)(["multi-image-item-preview",{"bgl_fill-image":e.fill}])},[y(x.file.type)?((0,n.openBlock)(),(0,n.createElementBlock)("img",{key:0,class:"multi-preview",src:x.url,alt:""},null,8,w3)):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,icon:"description",class:"multi-preview"})),(0,n.createElementVNode)("p",$3,(0,n.toDisplayString)(x.name),1),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["pie",{complete:x.progress===100}]),style:(0,n.normalizeStyle)([{"--p":x.progress},{"--b":"2px"}])},[x.progress<100?((0,n.openBlock)(),(0,n.createElementBlock)("span",k3,(0,n.toDisplayString)(x.progress.toFixed(0)),1)):(0,n.createCommentVNode)("",!0),(0,n.createVNode)((0,n.unref)(ge),{class:"success",icon:"check_circle"})],6)],2))),128))])):(0,n.unref)(s).length>0||(0,n.unref)(l).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",E3,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(s),x=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:x,class:(0,n.normalizeClass)(["single-image-item-preview",{"bgl_fill-image":e.fill}])},[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["flex opacity-8 z-99 gap-025 absolute top-0 start-0",{"mx-auto end-0 mt-1 justify-content-center":e.oval,"m-05":!e.oval}])},[(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(ne),{color:"white",frame:"",thin:"",icon:"delete",onClick:T=>(0,n.unref)(c)(x)},null,8,["onClick"]),[[N,"Delete"]]),(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(ne),{color:"white",frame:"",thin:"",icon:"autorenew",onClick:P[3]||(P[3]=T=>(0,n.unref)(f)())},null,512),[[N,"Replace"]]),(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(ne),{color:"white",frame:"",thin:"",target:"_blank",icon:"download",href:(0,n.unref)(fn)(x),download:E(x)},null,8,["href","download"]),[[N,"Download"]])],2),y(x)?((0,n.openBlock)(),(0,n.createElementBlock)("div",C3,[(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(bo),{class:"single-preview",pathKey:x,alt:""},null,8,["pathKey"]),[[V,{src:(0,n.unref)(fn)(x),download:!0}]])])):(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,size:4,weight:"2",icon:"description",class:"color-primary w-100"},null,512)),[[V,{src:(0,n.unref)(fn)(x),download:!0}]])],2))),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(l),x=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:x.name,class:(0,n.normalizeClass)(["single-image-item-preview",{"bgl_fill-image":e.fill}])},[(0,n.createVNode)((0,n.unref)(Wr),{type:"bar",progress:x.progress,class:"absolute bottom-05 end start w-100px mx-auto rounded overflow-hidden"},null,8,["progress"]),y(x.file.type)?((0,n.openBlock)(),(0,n.createElementBlock)("img",{key:0,class:"single-preview opacity-5",src:x.url,alt:""},null,8,S3)):(0,n.createCommentVNode)("",!0)],2))),128))])):(0,n.createCommentVNode)("",!0)],!0),g.value&&(0,n.unref)(i)["drop-placeholder"]?(0,n.renderSlot)(k.$slots,"drop-placeholder",{key:0,files:(0,n.unref)(s),fileQueue:(0,n.unref)(l),browse:(0,n.unref)(f)},void 0,!0):g.value?(0,n.renderSlot)(k.$slots,"placeholder",{key:1,files:(0,n.unref)(s),fileQueue:(0,n.unref)(l),browse:(0,n.unref)(f)},()=>[(0,n.createElementVNode)("p",x3,[e.showIcon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:0,icon:e.icon,size:e.iconSize,"mobile-size":e.iconMobileSize,class:"user-select-none line-height-1"},null,8,["icon","size","mobile-size"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",T3,(0,n.toDisplayString)(b.value),1)])],!0):(0,n.createCommentVNode)("",!0)],38)),e.error?((0,n.openBlock)(),(0,n.createElementBlock)("div",N3,(0,n.toDisplayString)(e.error),1)):(0,n.createCommentVNode)("",!0)],14,c3)}}}),va=we(D3,[["__scopeId","data-v-04d7cdbf"]]);const A3=["mergeCells","splitCells","addRowBefore","addRowAfter","deleteRow","insertColumnLeft","insertColumnRight","deleteColumn","tableAlignLeft","tableAlignCenter","tableAlignRight","tableAlignJustify","deleteTable"],B3=["h1","h2","h3","h4","h5","h6","separator","p","blockquote","orderedList","unorderedList","separator","bold","italic","underline","separator","alignMenu","ltrDirection","rtlDirection","separator","insertTable","separator","link","image","video","embed","clear","separator","undo","redo","separator","splitView","fullScreen"],UR=["h1","h2","h3","h4","h5","h6","separator","bold","italic","underline","separator","fontColor","bgColor","separator","p","blockquote","orderedList","unorderedList","indent","outdent","separator","link","image","video","embed","separator","splitView","clear","insertTable",...A3,"separator","undo","redo","fullScreen"],M3=[{name:"headingsMenu",label:"Headings",icon:"title"},{name:"mediaMenu",label:"Media",icon:"perm_media"},{name:"alignMenu",label:"Alignment",icon:"format_align_left"},{name:"h1",label:"Heading 1",icon:"format_h1"},{name:"h2",label:"Heading 2",icon:"format_h2"},{name:"h3",label:"Heading 3",icon:"format_h3"},{name:"h4",label:"Heading 4",icon:"format_h4"},{name:"h5",label:"Heading 5",icon:"format_h5"},{name:"h6",label:"Heading 6",icon:"format_h6"},{name:"p",label:"Paragraph",icon:"format_paragraph"},{name:"blockquote",label:"Blockquote",icon:"format_quote"},{name:"bold",label:"Bold",icon:"format_bold"},{name:"italic",label:"Italic",icon:"format_italic"},{name:"underline",label:"Underline",icon:"format_underlined"},{name:"orderedList",label:"Ordered List",icon:"format_list_numbered"},{name:"unorderedList",label:"Unordered List",icon:"format_list_bulleted"},{name:"link",label:"Link",icon:"add_link"},{name:"image",label:"Image",icon:"add_photo_alternate"},{name:"video",label:"Video",icon:"play_circle"},{name:"embed",label:"Embed",icon:"media_link"},{name:"splitView",label:"Split View",icon:"code"},{name:"clear",label:"Clear Formatting",icon:"format_clear"},{name:"alignLeft",label:"Align Left",icon:"format_align_left"},{name:"alignCenter",label:"Align Center",icon:"format_align_center"},{name:"alignRight",label:"Align Right",icon:"format_align_right"},{name:"alignJustify",label:"Align Justify",icon:"format_align_justify"},{name:"tableAlignLeft",label:"Table Align Left",icon:"format_align_left"},{name:"tableAlignCenter",label:"Table Align Center",icon:"format_align_center"},{name:"tableAlignRight",label:"Table Align Right",icon:"format_align_right"},{name:"tableAlignJustify",label:"Table Align Justify",icon:"format_align_justify"},{name:"indent",label:"Indent",icon:"format_indent_increase"},{name:"outdent",label:"Outdent",icon:"format_indent_decrease"},{name:"fontColor",label:"Font Color",icon:"format_color_text"},{name:"bgColor",label:"Background Color",icon:"format_color_fill"},{name:"insertTable",label:"Insert Table",icon:"table"},{name:"deleteTable",label:"Delete Table",icon:"delete_sweep"},{name:"mergeCells",label:"Merge Cells",icon:"table_chart"},{name:"splitCells",label:"Split Cells",icon:"dashboard"},{name:"addRowBefore",label:"Insert Row Above",icon:"add_box"},{name:"addRowAfter",label:"Insert Row Below",icon:"vertical_align_bottom"},{name:"deleteRow",label:"Delete Row",icon:"remove"},{name:"insertColumnLeft",label:"Insert Column Left",icon:"format_indent_decrease"},{name:"insertColumnRight",label:"Insert Column Right",icon:"format_indent_increase"},{name:"deleteColumn",label:"Delete Column",icon:"view_week"},{name:"separator"},{name:"undo",label:"Undo",icon:"undo"},{name:"redo",label:"Redo",icon:"redo"},{name:"separator"},{name:"fullScreen",label:"Full Screen",icon:"fullscreen",class:"ms-auto"},{name:"textDirection",label:"Text Direction (RTL/LTR)",icon:"format_textdirection_r_to_l"},{name:"ltrDirection",label:"Left to Right",icon:"format_textdirection_l_to_r"},{name:"rtlDirection",label:"Right to Left",icon:"format_textdirection_r_to_l"}];var L3={class:"table-grid-selector p-075"},P3={class:"txt-center mb-075"},I3={style:{"font-size":"14px","font-weight":"500",color:"#333","margin-bottom":"4px"}},V3=["onFocus","onMouseenter","onClick"],O3={class:"border-top pt-075"},R3=10,F3=10,z3=(0,n.defineComponent)({__name:"TableGridSelector",emits:["insert","openAdvanced"],setup(e,{emit:t}){const r=t,o=(0,n.ref)(0),a=(0,n.ref)(0),i=(0,n.computed)(()=>{const f=[];for(let m=1;m<=R3;m++)for(let p=1;p<=F3;p++)f.push({row:m,col:p,isActive:m<=o.value&&p<=a.value});return f}),l=(0,n.computed)(()=>o.value===0||a.value===0?"Select table size":`${o.value} × ${a.value}`);function s(f,m){o.value=f,a.value=m}function c(f,m,p){r("insert",f,m),p()}function u(f){r("openAdvanced"),f()}function d(){o.value=0,a.value=0}return(f,m)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Tt),{placement:"bottom-start",thin:"",flat:"",icon:"table"},{default:(0,n.withCtx)(({hide:p})=>[(0,n.createElementVNode)("div",L3,[(0,n.createElementVNode)("div",P3,[(0,n.createElementVNode)("div",I3,(0,n.toDisplayString)(l.value),1),m[0]||(m[0]=(0,n.createElementVNode)("div",{style:{"font-size":"12px",color:"#666"}}," Hover to select size ",-1))]),(0,n.createElementVNode)("div",{style:{display:"grid","grid-template-columns":"repeat(10, 20px)","grid-template-rows":"repeat(10, 20px)",gap:"2px","margin-bottom":"12px",direction:"ltr"},onMouseleave:d,onBlur:d},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(i.value,h=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:`${h.row}-${h.col}`,tabindex:"0",style:(0,n.normalizeStyle)({width:"20px",height:"20px",border:"1px solid var(--bgl-border-color)",backgroundColor:h.isActive?"var(--bgl-primary)":"var(--bgl-input-bg)",cursor:"pointer",borderRadius:"2px",transition:"background-color 0.1s ease"}),onFocus:v=>s(h),onMouseenter:v=>s(h.row,h.col),onClick:v=>c(h.row,h.col,p)},null,44,V3))),128))],32),(0,n.createElementVNode)("div",O3,[(0,n.createVNode)((0,n.unref)(ne),{value:"Advanced Settings",icon:"settings",class:"bg-gray-30 color-black",onClick:h=>u(p)},null,8,["onClick"])])])]),_:1}))}}),U3=z3,H3={class:"toolbar flex gap-025 pb-05 flex-wrap",role:"toolbar",style:{position:"relative"}},W3={class:"flex flex-column p-025"},j3=(0,n.defineComponent)({__name:"EditorToolbar",props:{config:{default:()=>B3},selectedStyles:{},hideImages:{type:Boolean,default:!1},hideVideos:{type:Boolean,default:!1},hideEmbeds:{type:Boolean,default:!1},hideTables:{type:Boolean,default:!1},hideAlignment:{type:Boolean,default:!1},hideDirections:{type:Boolean,default:!1},hideH5H6:{type:Boolean,default:!1},hide:{default:()=>[]}},emits:["action"],setup(e,{emit:t}){const r=t;function o(){return e.selectedStyles.has("alignLeft")?"format_align_left":e.selectedStyles.has("alignCenter")?"format_align_center":e.selectedStyles.has("alignRight")?"format_align_right":e.selectedStyles.has("alignJustify")?"format_align_justify":"format_align_left"}function a(){return e.selectedStyles.has("alignLeft")||e.selectedStyles.has("alignCenter")||e.selectedStyles.has("alignRight")||e.selectedStyles.has("alignJustify")}function i(f){if(e.hide.includes(f))return!0;for(const[m,p]of Object.entries({image:["insertImage","image"],video:["insertVideo","video"],embed:["insertEmbed","embed"],table:["insertTable"],direction:["textDirection"],fullScreen:["fullScreen"],ul:["unorderedList"],ol:["orderedList"],splitView:["splitView"],p:["p"],align:["alignMenu"],alignment:["alignMenu"]}))if(e.hide.includes(m)&&p.includes(f))return!0;return{insertImage:e.hideImages,insertVideo:e.hideVideos,insertEmbed:e.hideEmbeds,insertTable:e.hideTables,alignMenu:e.hideAlignment,textDirection:e.hideDirections,h5:e.hideH5H6,h6:e.hideH5H6}[f]||!1}const l=f=>M3.find(m=>m.name===f);function s(f){const m=e.config.map(l).filter(Boolean);let p=-1;for(let v=f-1;v>=0;v--){const b=m[v];if(b&&b.name!=="separator"&&!i(b.name)){p=v;break}}let h=-1;for(let v=f+1;v<m.length;v++){const b=m[v];if(b&&b.name!=="separator"&&!i(b.name)){h=v;break}}if(p===-1||h===-1)return!1;for(let v=p+1;v<f;v++){const b=m[v];if(b&&b.name==="separator")return!1}return!0}function c(f,m){r("action",f,m)}function u(f,m){const p=document.createElement("table");p.style.width="100%",p.style.borderCollapse="collapse",p.style.marginBottom="1rem";const h=document.createElement("thead"),v=h.insertRow();for(let g=0;g<m;g++){const y=document.createElement("th");y.innerHTML=`Header ${g+1}`,y.style.padding="8px",y.style.border="1px solid #ddd",y.style.backgroundColor="#f4f4f4",v.appendChild(y)}p.appendChild(h);const b=document.createElement("tbody");for(let g=0;g<f;g++){const y=b.insertRow();for(let _=0;_<m;_++){const w=y.insertCell();w.innerHTML=" ",w.style.padding="8px",w.style.border="1px solid #ddd"}}p.appendChild(b),r("action","insertTable",p.outerHTML)}function d(){r("action","insertTable")}return(f,m)=>{const p=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",H3,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.config.map(l).filter(Boolean),(h,v)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:v},[h.name==="insertTable"&&!i("insertTable")?((0,n.openBlock)(),(0,n.createBlock)(U3,{key:0,onInsert:u,onOpenAdvanced:d})):h.name==="insertImage"&&!i("insertImage")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:1,icon:h.icon,thin:"",flat:"","aria-label":h.name,class:(0,n.normalizeClass)([[h.class,{active:e.selectedStyles.has(h.name)}],""]),tabindex:"-1",onClick:b=>c(h.name)},null,8,["icon","aria-label","class","onClick"])),[[p,h.label]]):h.name==="insertVideo"&&!i("insertVideo")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:2,icon:h.icon,thin:"",flat:"","aria-label":h.name,class:(0,n.normalizeClass)([[h.class,{active:e.selectedStyles.has(h.name)}],""]),tabindex:"-1",onClick:b=>c(h.name)},null,8,["icon","aria-label","class","onClick"])),[[p,h.label]]):h.name==="insertEmbed"&&!i("insertEmbed")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:3,icon:h.icon,thin:"",flat:"","aria-label":h.name,class:(0,n.normalizeClass)([[h.class,{active:e.selectedStyles.has(h.name)}],""]),tabindex:"-1",onClick:b=>c(h.name)},null,8,["icon","aria-label","class","onClick"])),[[p,h.label]]):h.name==="alignMenu"&&!i("alignMenu")?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Tt),{key:4,placement:"bottom-start",thin:"",flat:"",icon:o(),class:(0,n.normalizeClass)({"alignment-active":a()})},{default:(0,n.withCtx)(({hide:b})=>[(0,n.createElementVNode)("div",W3,[(0,n.createVNode)((0,n.unref)(ne),{thin:"",flat:"",icon:"format_align_left",class:(0,n.normalizeClass)({active:e.selectedStyles.has("alignLeft")}),onClick:g=>{c("alignLeft"),b()}},null,8,["class","onClick"]),(0,n.createVNode)((0,n.unref)(ne),{thin:"",flat:"",icon:"format_align_center",class:(0,n.normalizeClass)({active:e.selectedStyles.has("alignCenter")}),onClick:g=>{c("alignCenter"),b()}},null,8,["class","onClick"]),(0,n.createVNode)((0,n.unref)(ne),{thin:"",flat:"",icon:"format_align_right",class:(0,n.normalizeClass)({active:e.selectedStyles.has("alignRight")}),onClick:g=>{c("alignRight"),b()}},null,8,["class","onClick"]),(0,n.createVNode)((0,n.unref)(ne),{thin:"",flat:"",icon:"format_align_justify",class:(0,n.normalizeClass)({active:e.selectedStyles.has("alignJustify")}),onClick:g=>{c("alignJustify"),b()}},null,8,["class","onClick"])])]),_:1},8,["icon","class"])):h.name==="textDirection"&&!i("textDirection")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:5,icon:e.selectedStyles.has("textDirection")?"format_textdirection_l_to_r":"format_textdirection_r_to_l",thin:"",flat:"","aria-label":h.name,class:(0,n.normalizeClass)([[h.class,{active:e.selectedStyles.has("textDirection")}],""]),tabindex:"-1",onClick:b=>c(h.name)},null,8,["icon","aria-label","class","onClick"])),[[p,h.label]]):(h.name==="h5"||h.name==="h6")&&!i(h.name)?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:6,icon:h.icon,thin:"",flat:"","aria-label":h.name,class:(0,n.normalizeClass)([[h.class,{active:e.selectedStyles.has(h.name)}],""]),tabindex:"-1",onClick:b=>c(h.name)},null,8,["icon","aria-label","class","onClick"])),[[p,h.label]]):h.name!=="separator"&&h.name!=="insertTable"&&h.name!=="insertImage"&&h.name!=="insertVideo"&&h.name!=="insertEmbed"&&h.name!=="alignMenu"&&h.name!=="textDirection"&&h.name!=="h5"&&h.name!=="h6"&&!i(h.name)?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:7,icon:h.icon,thin:"",flat:"","aria-label":h.name,class:(0,n.normalizeClass)([[h.class,{active:e.selectedStyles.has(h.name)}],""]),tabindex:"-1",onClick:b=>c(h.name)},null,8,["icon","aria-label","class","onClick"])),[[p,h.label]]):h.name==="separator"&&s(v)?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:`separator-${v}`,class:"opacity-2 mb-025"},"|")):(0,n.createCommentVNode)("",!0)],64))),128))])}}}),q3=we(j3,[["__scopeId","data-v-2af54422"]]);function G3(e,t){const{doc:r}=t;if(!r)return;const o=r.getSelection();if(!o||!o.rangeCount)return;let a=o.getRangeAt(0);if(a.collapsed){if(!Y3(r,a)){const{showTooltipMessage:s}=t;s?s("To add a link, please select text first or place cursor within a word"):alert("To add a link, please select text first or place the cursor within a word you want to turn into a link.");return}a=o.getRangeAt(0)}const i=a.commonAncestorContainer,l=(i.nodeType===Node.TEXT_NODE?i.parentElement:i)?.closest("a");if(t.openLinkModal){t.openLinkModal(o,a,l);return}alert("Link functionality requires proper modal setup")}function Y3(e,t){if(!t.collapsed)return!0;let r=t.startContainer,o=t.startOffset;if(r.nodeType!==Node.TEXT_NODE){const c=r;if(c.childNodes.length>0&&o<c.childNodes.length){const u=c.childNodes[o];if(u.nodeType===Node.TEXT_NODE)r=u,o=0;else return!1}else return!1}const a=r.textContent||"";if(!a)return!1;let i=o,l=o;const s=/[\u0590-\u05FF\u0600-\u06FF\w]/;for(;i>0&&s.test(a[i-1]);)i--;for(;l<a.length&&s.test(a[l]);)l++;if(i<l){t.setStart(r,i),t.setEnd(r,l);const c=e.getSelection();return c&&(c.removeAllRanges(),c.addRange(t)),!0}return!1}function tf(e,t,r){if(!r.doc)return;const o=r.doc.createElement("table");o.style.width="100%",o.style.borderCollapse="collapse",o.style.marginBottom="1rem";const a=r.doc.createElement("thead"),i=a.insertRow();for(let c=0;c<t;c++){const u=r.doc.createElement("th");u.innerHTML=`Header ${c+1}`,u.style.padding="8px",u.style.border="1px solid var(--bgl-border-color, #ddd)",u.style.backgroundColor="var(--bgl-gray-light, #f4f4f4)",i.appendChild(u)}o.appendChild(a);const l=r.doc.createElement("tbody");for(let c=0;c<e;c++){const u=l.insertRow();for(let d=0;d<t;d++){const f=u.insertCell();f.innerHTML=" ",f.style.padding="8px",f.style.border="1px solid var(--bgl-border-color, #ddd)"}}o.appendChild(l);const{range:s}=r;if(s){if(s.insertNode(o),r.doc.getSelection()){const c=o.querySelector("td");if(c){s.selectNodeContents(c),s.collapse(!0);const u=r.doc.getSelection();u&&(u.removeAllRanges(),u.addRange(s))}}}else r.doc.body.appendChild(o);r.content=r.doc.body.innerHTML}function X3(e,t){const r=Array.from(e.cloneContents().querySelectorAll("td"));if(r.length<2)return;const o=e.startContainer.parentElement?.closest("td");if(!o)return;o.colSpan=r.length,o.innerHTML=r.map(i=>i.innerHTML).join(" "),r.slice(1).forEach(i=>{t.getElementById(i.id)?.remove()});const a=t.editorState;a&&(a.content=t.body.innerHTML)}function K3(e,t){const r=e.startContainer.parentElement?.closest("td");if(!r||!r.colSpan||r.colSpan===1)return;const o=new Array(r.colSpan-1).fill(0).map(()=>{const i=t.createElement("td");return i.style.border="1px solid var(--bgl-border-color)",i.style.padding="8px",i.innerHTML=" ",i});r.colSpan=1,r.insertAdjacentElement("afterend",o[0]),o.slice(1).forEach(i=>{o[0].insertAdjacentElement("afterend",i)});const a=t.editorState;a&&(a.content=t.body.innerHTML)}function nf(e,t,r){const o=t.startContainer.parentElement?.closest("td");if(!o)return;const a=o.parentElement,i=a?.parentElement;if(!a||!i)return;const l=a.cloneNode(!0);Array.from(l.cells).forEach(c=>c.innerHTML=" "),a.insertAdjacentElement(e==="before"?"beforebegin":"afterend",l);const s=r.editorState;s&&(s.content=r.body.innerHTML)}function J3(e){const t=e.startContainer.parentElement?.closest("td");if(!t)return;const r=t.parentElement;if(!r)return;const o=r.ownerDocument;r.remove();const a=o.editorState;a&&(a.content=o.body.innerHTML)}function Z3(e){const t=e.startContainer.parentElement?.closest("td");if(!t)return;const r=t.closest("table");if(!r)return;const o=r.ownerDocument;r.remove();const a=o.editorState;a&&(a.content=o.body.innerHTML)}function rf(e,t){const r=t.startContainer.parentElement?.closest("td");if(!r)return;const o=r.closest("table");if(!o)return;const a=r.cellIndex,{rows:i}=o;for(let s=0;s<i.length;s++){const c=i[s].insertCell(e==="after"?a+1:a);c.innerHTML=" ",c.style.border="1px solid var(--bgl-border-color)",c.style.padding="8px"}const l=o.ownerDocument.editorState;l&&(l.content=o.ownerDocument.body.innerHTML)}function Q3(e){const t=e.startContainer.parentElement?.closest("td");if(!t)return;const r=t.closest("table");if(!r)return;const o=t.cellIndex,{rows:a}=r,i=r.ownerDocument;for(let s=0;s<a.length;s++)a[s].deleteCell(o);a[0].cells.length===0&&r.remove();const l=i.editorState;l&&(l.content=i.body.innerHTML)}function ex(e,t){const r=e.startContainer.parentElement?.closest("td");if(!r)return;const o=r.closest("table");if(!o)return;const a=r.cellIndex,{rows:i}=o;for(let s=0;s<i.length;s++){const c=i[s].cells[a];c&&(c.style.textAlign=t)}const l=o.ownerDocument.editorState;l&&(l.content=o.ownerDocument.body.innerHTML)}function We(e){if(!e.doc)return null;const t=e.doc.getSelection();return!t||!t.rangeCount?null:{selection:t,range:t.getRangeAt(0)}}function Ql(e,t,r){if(!t.collapsed)return!1;let o=t.startContainer,a=t.startOffset;if(o.nodeType!==Node.TEXT_NODE){const f=o;if(f.childNodes.length>0&&a<f.childNodes.length){const m=f.childNodes[a];if(m.nodeType===Node.TEXT_NODE)o=m,a=0;else return!1}else return!1}const{parentElement:i}=o,l=i?.closest(r.toLowerCase());if(l)try{const f=l.parentNode;if(f){for(;l.firstChild;)f.insertBefore(l.firstChild,l);f.removeChild(l);const m=e.createRange();m.setStart(o,a),m.collapse(!0);const p=e.getSelection();return p&&(p.removeAllRanges(),p.addRange(m)),!0}}catch{return!1}const s=o.textContent||"";if(!s)return!1;let c=a,u=a;const d=/[\u0590-\u05FF\u0600-\u06FF\w]/;for(a>0&&d.test(s[a-1])&&(a>=s.length||!d.test(s[a]))&&(c=a-1,u=a-1);c>0&&d.test(s[c-1]);)c--;for(;u<s.length&&d.test(s[u]);)u++;if(c<u&&u>c)try{const f=s.substring(0,c),m=s.substring(c,u),p=s.substring(u),h=e.createElement(r);h.textContent=m;const v=o.parentNode;if(v){if(f){const y=e.createTextNode(f);v.insertBefore(y,o)}if(v.insertBefore(h,o),p){const y=e.createTextNode(p);v.insertBefore(y,o)}v.removeChild(o);const b=e.createRange();b.setStartAfter(h),b.collapse(!0);const g=e.getSelection();return g&&(g.removeAllRanges(),g.addRange(b)),!0}}catch{}return!1}function tx(e){if(!e.doc)return;e.content=e.doc.body.innerHTML;const t=e.doc.getSelection();t&&t.rangeCount>0&&(e.selection=t,e.range=t.getRangeAt(0).cloneRange(),e.rangeCount=t.rangeCount)}function Uo(e){let t=e.nodeType===Node.TEXT_NODE?e.parentElement:e;for(;t;){if(t.matches&&t.matches("p,h1,h2,h3,h4,h5,h6,blockquote,li,div"))return t;t=t.parentElement}return null}function Ae(e,t,r){return{name:e,execute:(o,a)=>{o.doc&&(t(o,a),tx(o))},isActive:r}}function nx(e){const t={undo:Ae("Undo",()=>{if(e.undoStack.length>0&&e.doc){const m=e.undoStack.pop();m!==void 0&&(e.redoStack.push(e.content),e.content=m,e.doc.body.innerHTML=m)}}),redo:Ae("Redo",()=>{if(e.redoStack.length>0&&e.doc){const m=e.redoStack.pop();m!==void 0&&(e.undoStack.push(e.content),e.content=m,e.doc.body.innerHTML=m)}})},r={bold:Ae("Bold",m=>{const p=We(m);if(!p)return;let{range:h,selection:v}=p;if(h.collapsed)return Ql(m.doc,h,"b"),void 0;const b=h.commonAncestorContainer,g=(b.nodeType===Node.TEXT_NODE?b.parentElement:b)?.closest("b, strong");if(g)try{const y=g.parentNode;for(;g.firstChild;)y?.insertBefore(g.firstChild,g);y?.removeChild(g),v.removeAllRanges(),v.addRange(h)}catch{}else try{const y=m.doc.createElement("b");try{h.surroundContents(y)}catch{const _=h.extractContents();y.appendChild(_),h.insertNode(y)}h.selectNodeContents(y),v.removeAllRanges(),v.addRange(h)}catch{}},m=>{const p=We(m);if(!p)return!1;const h=p.range.commonAncestorContainer;return!!(h.nodeType===Node.TEXT_NODE?h.parentElement:h)?.closest("b, strong")}),italic:Ae("Italic",m=>{const p=We(m);if(!p)return;let{range:h,selection:v}=p;if(h.collapsed)return Ql(m.doc,h,"i"),void 0;const b=h.commonAncestorContainer,g=(b.nodeType===Node.TEXT_NODE?b.parentElement:b)?.closest("i, em");if(g)try{const y=g.parentNode;for(;g.firstChild;)y?.insertBefore(g.firstChild,g);y?.removeChild(g),v.removeAllRanges(),v.addRange(h)}catch{}else try{const y=m.doc.createElement("i");try{h.surroundContents(y)}catch{const _=h.extractContents();y.appendChild(_),h.insertNode(y)}h.selectNodeContents(y),v.removeAllRanges(),v.addRange(h)}catch{}},m=>{const p=We(m);if(!p)return!1;const h=p.range.commonAncestorContainer;return!!(h.nodeType===Node.TEXT_NODE?h.parentElement:h)?.closest("i, em")}),underline:Ae("Underline",m=>{const p=We(m);if(!p)return;let{range:h,selection:v}=p;if(h.collapsed)return Ql(m.doc,h,"u"),void 0;const b=h.commonAncestorContainer,g=(b.nodeType===Node.TEXT_NODE?b.parentElement:b)?.closest("u");if(g)try{const y=g.parentNode;for(;g.firstChild;)y?.insertBefore(g.firstChild,g);y?.removeChild(g),v.removeAllRanges(),v.addRange(h)}catch{}else try{const y=m.doc.createElement("u");try{h.surroundContents(y)}catch{const _=h.extractContents();y.appendChild(_),h.insertNode(y)}h.selectNodeContents(y),v.removeAllRanges(),v.addRange(h)}catch{}},m=>{const p=We(m);if(!p)return!1;const h=p.range.commonAncestorContainer;return!!(h.nodeType===Node.TEXT_NODE?h.parentElement:h)?.closest("u")}),link:Ae("Link",m=>{const{openLinkModal:p}=m;p&&G3(p,m)},m=>{const p=We(m);if(!p)return!1;const h=p.range.commonAncestorContainer;return!!(h.nodeType===Node.TEXT_NODE?h.parentElement:h)?.closest("a")})},o=["h1","h2","h3","h4","h5","h6"].reduce((m,p)=>({...m,[p]:Ae(`Heading ${p}`,h=>{const v=We(h);if(!v)return;const{range:b,selection:g}=v,y=Uo(b.commonAncestorContainer);if(!y)return;const{startContainer:_}=b,{endContainer:w}=b,{startOffset:$}=b,{endOffset:A}=b,E=b.collapsed,k=y.tagName.toLowerCase()===p.toLowerCase(),P=k?"p":p;try{const N=h.doc.createElement(P);for(;y.firstChild;)N.appendChild(y.firstChild);y.parentNode?.replaceChild(N,y);try{const V=h.doc.createRange(),x=(F,O,B)=>{if(F===O)return B;if(F.nodeType===Node.TEXT_NODE){const q=h.doc.createTreeWalker(B,NodeFilter.SHOW_TEXT,null);let te=0;const ee=h.doc.createTreeWalker(O,NodeFilter.SHOW_TEXT,null);let le=ee.nextNode();for(;le&&le!==F;)te++,le=ee.nextNode();let R=q.nextNode(),I=0;for(;R&&I<te;)I++,R=q.nextNode();return R}return B.firstChild},T=x(_,y,N),L=x(w,y,N);if(T&&L){if(T.nodeType===Node.TEXT_NODE){const F=Math.min($,T.textContent?.length||0);V.setStart(T,F)}else V.setStart(T,0);if(E)V.collapse(!0);else if(L.nodeType===Node.TEXT_NODE){const F=Math.min(A,L.textContent?.length||0);V.setEnd(L,F)}else V.setEnd(L,0);g.removeAllRanges(),g.addRange(V)}else V.selectNodeContents(N),E&&V.collapse(!0),g.removeAllRanges(),g.addRange(V)}catch{const x=h.doc.createRange();x.selectNodeContents(N),x.collapse(!0),g.removeAllRanges(),g.addRange(x)}if(!k&&!N.nextElementSibling){const V=h.doc.createElement("p");V.dir=N.dir||h.doc.body.dir,N.parentNode?.insertBefore(V,N.nextSibling)}}catch{}})}),{}),a={p:Ae("Paragraph",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=Uo(h.commonAncestorContainer);if(v&&v.tagName.toLowerCase()!=="p")try{const b=m.doc.createElement("p");for(;v.firstChild;)b.appendChild(v.firstChild);v.parentNode?.replaceChild(b,v),h.selectNodeContents(b),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}}),blockquote:Ae("Blockquote",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=Uo(h.commonAncestorContainer);if(!v)return;const b=v.tagName.toLowerCase()==="blockquote"?"p":"blockquote";try{const g=m.doc.createElement(b);for(;v.firstChild;)g.appendChild(v.firstChild);v.parentNode?.replaceChild(g,v),h.selectNodeContents(g),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}})},i={orderedList:Ae("Ordered List",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=Uo(h.commonAncestorContainer);if(!v)return;const b=v.closest("li");if(b){const g=b.parentElement;if(!g)return;if(g.tagName.toLowerCase()==="ol"){const y=m.doc.createElement("p");for(;b.firstChild;)y.appendChild(b.firstChild);g.parentNode?.insertBefore(y,g),b.remove(),g.querySelector("li")||g.remove(),h.selectNodeContents(y),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h);return}if(g.tagName.toLowerCase()==="ul"){const y=m.doc.createElement("ol"),_=h.startOffset,w=h.startContainer;for(;g.firstChild;)y.appendChild(g.firstChild);g.parentNode?.replaceChild(y,g);try{const $=m.doc.createRange();$.setStart(w,_),$.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange($)}catch{const $=y.querySelector("li");if($){const A=m.doc.createRange();A.selectNodeContents($),A.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange(A)}}return}}try{const g=m.doc.createElement("ol"),y=m.doc.createElement("li");for(;v.firstChild;)y.appendChild(v.firstChild);g.appendChild(y),v.parentNode?.replaceChild(g,v),h.selectNodeContents(y),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}}),unorderedList:Ae("Unordered List",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=Uo(h.commonAncestorContainer);if(!v)return;const b=v.closest("li");if(b){const g=b.parentElement;if(!g)return;if(g.tagName.toLowerCase()==="ul"){const y=m.doc.createElement("p");for(;b.firstChild;)y.appendChild(b.firstChild);g.parentNode?.insertBefore(y,g),b.remove(),g.querySelector("li")||g.remove(),h.selectNodeContents(y),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h);return}if(g.tagName.toLowerCase()==="ol"){const y=m.doc.createElement("ul"),_=h.startOffset,w=h.startContainer;for(;g.firstChild;)y.appendChild(g.firstChild);g.parentNode?.replaceChild(y,g);try{const $=m.doc.createRange();$.setStart(w,_),$.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange($)}catch{const A=y.querySelector("li");if(A){const E=m.doc.createRange();E.selectNodeContents(A),E.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange(E)}}return}}try{const g=m.doc.createElement("ul"),y=m.doc.createElement("li");for(;v.firstChild;)y.appendChild(v.firstChild);g.appendChild(y),v.parentNode?.replaceChild(g,v),h.selectNodeContents(y),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}})},l={clear:Ae("Clear Formatting",m=>{const p=We(m);if(!p)return;const{range:h,selection:v}=p;try{let y=function(w){return w.replace(/[\u200B-\u200D\uFEFF]/g,"").replace(/\s+/g," ").replace(/\u00A0/g," ").trim()},_=function(w){if(w.nodeType===Node.TEXT_NODE){const $=y(w.textContent||"");return m.doc.createTextNode($)}if(w.nodeType===Node.ELEMENT_NODE){const $=w,A=$.tagName.toLowerCase(),E=["p","h1","h2","h3","h4","h5","h6","ul","ol","li","blockquote","div","table","tr","td","th","thead","tbody","b","i","u","a","img","iframe","video","audio","figure","figcaption"];if(["strong","em","span","font","strike","sub","sup","mark","del","ins","small","big"].includes(A)){const k=y($.textContent||"");return m.doc.createTextNode(k)}if(E.includes(A)){const k=m.doc.createElement(A);return A==="a"&&$.hasAttribute("href")?(k.setAttribute("href",$.getAttribute("href")||""),$.hasAttribute("target")&&k.setAttribute("target",$.getAttribute("target")||""),$.hasAttribute("rel")&&k.setAttribute("rel",$.getAttribute("rel")||"")):A==="img"?($.hasAttribute("src")&&k.setAttribute("src",$.getAttribute("src")||""),$.hasAttribute("alt")&&k.setAttribute("alt",$.getAttribute("alt")||""),$.hasAttribute("width")&&k.setAttribute("width",$.getAttribute("width")||""),$.hasAttribute("height")&&k.setAttribute("height",$.getAttribute("height")||"")):A==="iframe"?($.hasAttribute("src")&&k.setAttribute("src",$.getAttribute("src")||""),$.hasAttribute("width")&&k.setAttribute("width",$.getAttribute("width")||""),$.hasAttribute("height")&&k.setAttribute("height",$.getAttribute("height")||""),$.hasAttribute("frameborder")&&k.setAttribute("frameborder",$.getAttribute("frameborder")||""),$.hasAttribute("allowfullscreen")&&k.setAttribute("allowfullscreen",$.getAttribute("allowfullscreen")||"")):(A==="video"||A==="audio")&&($.hasAttribute("src")&&k.setAttribute("src",$.getAttribute("src")||""),$.hasAttribute("controls")&&k.setAttribute("controls",$.getAttribute("controls")||""),$.hasAttribute("width")&&k.setAttribute("width",$.getAttribute("width")||""),$.hasAttribute("height")&&k.setAttribute("height",$.getAttribute("height")||"")),Array.from($.childNodes).forEach(P=>{const N=_(P);(N.textContent?.trim()||N.nodeType===Node.ELEMENT_NODE)&&k.appendChild(N)}),k}}return m.doc.createTextNode("")};var b=y,g=_;if(h.collapsed){const{body:w}=m.doc,$=m.doc.createDocumentFragment();if(Array.from(w.childNodes).forEach(A=>{const E=_(A);(E.textContent?.trim()||E.nodeType===Node.ELEMENT_NODE)&&$.appendChild(E)}),w.innerHTML="",w.appendChild($),!w.firstElementChild){const A=m.doc.createElement("p");w.appendChild(A);const E=m.doc.createRange();E.selectNodeContents(A),E.collapse(!0),v.removeAllRanges(),v.addRange(E)}}else{const w=h.cloneContents(),$=m.doc.createElement("div");$.appendChild(w);const A=m.doc.createDocumentFragment();Array.from($.childNodes).forEach(E=>{const k=_(E);(k.textContent?.trim()||k.nodeType===Node.ELEMENT_NODE)&&A.appendChild(k)}),h.deleteContents(),h.insertNode(A),h.collapse(!1),v.removeAllRanges(),v.addRange(h)}}catch{}})},s={insertTable:Ae("Insert Table",(m,p)=>{if(m.openTableEditor&&!p){m.openTableEditor(null);return}if(!p){const[h,v]=[3,3];tf(h,v,m);return}if(p.includes("<table")){const h=We(m);if(!h||!m.doc)return;const{range:v}=h;try{const b=m.doc.createElement("div");b.innerHTML=p;const g=b.querySelector("table");if(g){const y=g.cloneNode(!0);v.insertNode(y),v.setStartAfter(y),v.collapse(!0);const _=m.doc.getSelection();_&&(_.removeAllRanges(),_.addRange(v))}}catch{}}else{const[h,v]=p.split("x").map(Number)||[3,3];tf(h,v,m)}}),deleteTable:Ae("Delete Table",m=>m.range&&Z3(m.range)),mergeCells:Ae("Merge Cells",m=>m.range&&m.doc&&X3(m.range,m.doc)),splitCells:Ae("Split Cells",m=>m.range&&m.doc&&K3(m.range,m.doc)),addRowBefore:Ae("Add Row Before",m=>m.range&&m.doc&&nf("before",m.range,m.doc)),addRowAfter:Ae("Add Row After",m=>m.range&&m.doc&&nf("after",m.range,m.doc)),deleteRow:Ae("Delete Row",m=>m.range&&J3(m.range)),insertColumnLeft:Ae("Insert Column Left",m=>m.range&&rf("before",m.range)),insertColumnRight:Ae("Insert Column Right",m=>m.range&&rf("after",m.range)),deleteColumn:Ae("Delete Column",m=>m.range&&Q3(m.range))},c=["Left","Center","Right","Justify"].reduce((m,p)=>({...m,[`tableAlign${p}`]:Ae(`Table Align ${p}`,h=>{if(h.range){const v=p==="Left"?"start":p==="Right"?"end":p.toLowerCase();ex(h.range,v)}})}),{}),u={alignLeft:Ae("Align Left",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6");v&&(v.style.textAlign="left")},m=>{const p=We(m);if(!p)return!1;const{range:h}=p;return(h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6"))?.style.textAlign==="left"}),alignCenter:Ae("Align Center",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6");v&&(v.style.textAlign="center")},m=>{const p=We(m);if(!p)return!1;const{range:h}=p;return(h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6"))?.style.textAlign==="center"}),alignRight:Ae("Align Right",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6");v&&(v.style.textAlign="right")},m=>{const p=We(m);if(!p)return!1;const{range:h}=p;return(h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6"))?.style.textAlign==="right"}),alignJustify:Ae("Align Justify",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6");v&&(v.style.textAlign="justify")},m=>{const p=We(m);if(!p)return!1;const{range:h}=p;return(h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6"))?.style.textAlign==="justify"}),textDirection:Ae("Toggle Text Direction",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6");v&&(v.dir=(v.dir||"ltr")==="ltr"?"rtl":"ltr")},m=>{const p=We(m);if(!p)return!1;const{range:h}=p;return(h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6"))?.dir==="rtl"}),ltrDirection:Ae("Set Left to Right Direction",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6");v&&(v.dir="ltr")},m=>{const p=We(m);if(!p)return!1;const{range:h}=p;return(h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6"))?.dir==="ltr"}),rtlDirection:Ae("Set Right to Left Direction",m=>{const p=We(m);if(!p)return;const{range:h}=p,v=h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6");v&&(v.dir="rtl")},m=>{const p=We(m);if(!p)return!1;const{range:h}=p;return(h.startContainer.nodeType===Node.TEXT_NODE?h.startContainer.parentElement?.closest("p, h1, h2, h3, h4, h5, h6"):h.startContainer.closest("p, h1, h2, h3, h4, h5, h6"))?.dir==="rtl"})},d={fullScreen:Ae("Full Screen",m=>{m.isFullscreen=!m.isFullscreen},m=>m.isFullscreen),splitView:Ae("Split View",m=>{m.isSplitView=!m.isSplitView},m=>m.isSplitView),codeView:Ae("Code View",m=>{m.isCodeView=!m.isCodeView},m=>m.isCodeView)},f={image:Ae("Insert Image",m=>{const{openImageModal:p}=m;p&&p()}),video:Ae("Insert Video",m=>{const{openVideoModal:p}=m;p&&p()}),embed:Ae("Insert Embed",m=>{const{openEmbedModal:p}=m;p&&p()})};return{...t,...r,...o,...a,...i,...l,...s,...c,...u,...d,...f}}function rx(e,t){return{execute(r,o){const a=t[r];a&&a.execute(e,o)},isActive(r){return t[r].isActive?.(e)||!1},getValue(r){return t[r].getValue?.(e)||null}}}function l0(e,t){const r=t.getSelection();if(!r||!r.rangeCount)return!1;const o=r.getRangeAt(0).commonAncestorContainer,a=o.nodeType===Node.TEXT_NODE?o.parentElement:o;if(!a)return!1;const i=(c,u)=>c?u(c)?!0:i(c.parentElement,u):!1,l={bold:c=>{const u=c.tagName?.toLowerCase();return u==="strong"||u==="b"},italic:c=>{const u=c.tagName?.toLowerCase();return u==="em"||u==="i"},underline:c=>c.tagName?.toLowerCase()==="u",h1:c=>c.tagName?.toLowerCase()==="h1",h2:c=>c.tagName?.toLowerCase()==="h2",h3:c=>c.tagName?.toLowerCase()==="h3",h4:c=>c.tagName?.toLowerCase()==="h4",h5:c=>c.tagName?.toLowerCase()==="h5",h6:c=>c.tagName?.toLowerCase()==="h6",p:c=>c.tagName?.toLowerCase()==="p",blockquote:c=>c.tagName?.toLowerCase()==="blockquote",orderedList:c=>!!c.closest("ol"),unorderedList:c=>!!c.closest("ul"),alignLeft:c=>c.closest("p, h1, h2, h3, h4, h5, h6")?.style.textAlign==="start",alignCenter:c=>c.closest("p, h1, h2, h3, h4, h5, h6")?.style.textAlign==="center",alignRight:c=>c.closest("p, h1, h2, h3, h4, h5, h6")?.style.textAlign==="end",alignJustify:c=>c.closest("p, h1, h2, h3, h4, h5, h6")?.style.textAlign==="justify",textDirection:c=>c.closest("p, h1, h2, h3, h4, h5, h6")?.dir==="rtl",ltrDirection:c=>c.closest("p, h1, h2, h3, h4, h5, h6")?.dir==="ltr",rtlDirection:c=>c.closest("p, h1, h2, h3, h4, h5, h6")?.dir==="rtl"};if(["splitView","codeView","fullScreen"].includes(e))return!1;const s=l[e];return s?i(a,s):i(a,c=>c.tagName?.toLowerCase()===e.toLowerCase())}function ox(e,t){const r=rx(e,nx(e)),o=()=>{if(!e.doc)return;const a=new Set;["bold","italic","underline","link","h1","h2","h3","h4","h5","h6","blockquote","p","orderedList","unorderedList","alignLeft","alignCenter","alignRight","alignJustify","textDirection","ltrDirection","rtlDirection"].forEach(i=>{l0(i,e.doc)&&a.add(i)}),e.selectedStyles=a};return{execute:(a,i)=>{if(!e.doc)return;if(t?.logCommand(a,i),["splitView","codeView","fullScreen"].includes(a))switch(a){case"splitView":e.isSplitView=!e.isSplitView;return;case"codeView":e.isCodeView=!e.isCodeView;return;case"fullScreen":e.isFullscreen=!e.isFullscreen;return}try{e.doc.body.focus()}catch{}const l=e.doc.getSelection();l?.rangeCount&&(e.selection=l,e.range=l.getRangeAt(0).cloneRange(),e.rangeCount=l.rangeCount);try{r.execute(a,i),["splitView","codeView","fullScreen"].includes(a)||o()}catch{}},isActive:r.isActive,getValue:r.getValue}}var ax=class{session;maxActions;isDevelopment;constructor(e=1e3){this.maxActions=e,this.session=this.createNewSession(),this.isDevelopment=!1}createNewSession(){return{id:`session_${Date.now()}`,startTime:Date.now(),actions:[]}}getNodeDescription(e){if(e.nodeType===Node.TEXT_NODE)return`Text("${e.textContent?.slice(0,20)}${e.textContent&&e.textContent.length>20?"...":""}")`;const t=e;return`${t.tagName.toLowerCase()}${t.id?`#${t.id}`:""}`}captureState(e){if(!e.doc||!e.selection)return{content:"",selection:null,activeStyles:[],caretPosition:null};const{selection:t}=e,r=t.rangeCount?t.getRangeAt(0):null;return{content:e.doc.body.innerHTML,selection:r?{start:r.startOffset,end:r.endOffset,collapsed:r.collapsed,text:r.toString()}:null,activeStyles:Array.from(e.selectedStyles),caretPosition:r?{node:this.getNodeDescription(r.startContainer),offset:r.startOffset}:null}}logCommand(e,t,r){this.addAction({type:"command",name:e,timestamp:Date.now(),details:{value:t},state:this.captureState(r)})}logPaste(e,t){this.addAction({type:"paste",name:"paste",timestamp:Date.now(),details:{html:e.getData("text/html"),text:e.getData("text/plain"),types:Array.from(e.types)},state:this.captureState(t)})}logKeyboard(e,t){this.addAction({type:"keyboard",name:"keypress",timestamp:Date.now(),details:{key:e.key,code:e.code,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey,meta:e.metaKey},state:this.captureState(t)})}logSelection(e){this.addAction({type:"selection",name:"selection_change",timestamp:Date.now(),details:{},state:this.captureState(e)})}logInput(e,t,r){this.addAction({type:"input",name:e,timestamp:Date.now(),details:{data:t},state:this.captureState(r)})}addAction(e){this.session.actions.push(e),this.session.actions.length>this.maxActions&&this.session.actions.shift(),this.isDevelopment}getSession(){return this.session}clearSession(){this.session=this.createNewSession()}exportSession(){return JSON.stringify(this.session,null,2)}downloadSession(){const e=new Blob([this.exportSession()],{type:"application/json"}),t=URL.createObjectURL(e),r=document.createElement("a");r.href=t,r.download=`editor_session_${this.session.id}.json`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(t)}exportSessionWithPrompt(e){const t={message:e||"here is a debug log, can you analyze and fix accordingly?",session:this.session};return JSON.stringify(t,null,2)}};function of(e){const t=document.createElement("div");t.innerHTML=e;const r=[],o=[];return t.querySelectorAll("iframe").forEach((a,i)=>{const l=`<!--iframe-${i}-->`;r.push(a.cloneNode(!0)),o.push(l),a.replaceWith(l)}),{html:t.innerHTML,iframes:r}}function af(e,t,r){const o=/<!--iframe-(\d+)-->/g;e.body.innerHTML=t.replace(o,(a,i)=>{const l=r[Number(i)];return l?l.outerHTML:""})}function ix(){let e=null;const t=(0,n.reactive)({content:"",doc:void 0,selection:null,selectedStyles:new Set,isFullscreen:!1,isSplitView:!1,isCodeView:!1,hasInit:!1,undoStack:[],redoStack:[],rangeCount:0,range:null,debug:void 0}),r={styles:()=>{if(!t.doc)return;const c=new Set;["bold","italic","underline","h1","h2","h3","h4","h5","h6","blockquote","p","orderedList","unorderedList","alignLeft","alignCenter","alignRight","alignJustify","textDirection","ltrDirection","rtlDirection"].forEach(u=>{t.doc&&l0(u,t.doc)&&c.add(u)}),t.selectedStyles=c},content:c=>{if(!t.doc)return;t.doc.body.innerHTML!==t.content&&(t.undoStack.push(t.content),t.redoStack=[]);const u=t.doc.getSelection(),d=u?.rangeCount?u.getRangeAt(0).cloneRange():null;if(c==="html"){const f=of(t.content);t.doc.body.innerHTML=f.html,setTimeout(()=>{if(t.doc&&(af(t.doc,t.content,f.iframes),d&&u))try{u.removeAllRanges(),u.addRange(d)}catch{}},0)}else t.doc.body.textContent=t.content},selection:()=>{if(!t.doc)return;const c=t.doc.getSelection();if(c)try{if(!t.doc.body.contains(c.anchorNode)){t.doc.body.focus();return}(!t.selection||t.selection!==c||t.rangeCount!==c.rangeCount||c.rangeCount>0&&t.range&&(t.range.startContainer!==c.getRangeAt(0).startContainer||t.range.startOffset!==c.getRangeAt(0).startOffset||t.range.endContainer!==c.getRangeAt(0).endContainer||t.range.endOffset!==c.getRangeAt(0).endOffset))&&(t.selection=c,t.rangeCount=c.rangeCount,c.rangeCount>0&&(t.range=c.getRangeAt(0).cloneRange()),r.styles())}catch{t.selection=null,t.range=null,t.rangeCount=0,t.selectedStyles=new Set}}},o={undo:()=>{if(t.undoStack.length===0)return;t.redoStack.push(t.content);const c=t.undoStack.pop();c!==void 0&&(t.content=c,r.content("html"))},redo:()=>{if(t.redoStack.length===0)return;t.undoStack.push(t.content);const c=t.redoStack.pop();c!==void 0&&(t.content=c,r.content("html"))}},a={emptyTags:c=>{const u=c.createTreeWalker(c.body,NodeFilter.SHOW_ELEMENT,null),d=[];let f=u.nextNode();for(;f;){if(["br","img","hr","input"].includes(f.tagName.toLowerCase())){f=u.nextNode();continue}const m=f.textContent?.trim()||"",p=f.innerHTML.trim(),h=p==="<br>"||p==="<br/>",v=p===" "||m===" ",b=!m&&!p,g=f.parentElement===c.body;(b||v||h&&!g)&&d.push(f),f=u.nextNode()}d.forEach(m=>{m.remove()})},normalizeContent:c=>{const u=c.createTreeWalker(c.body,NodeFilter.SHOW_TEXT),d=[];let f;for(;f=u.nextNode();)f.parentElement===c.body&&f.textContent?.trim()&&d.push(f);d.forEach(m=>{const p=c.createElement("p");p.dir=c.body.dir,p.appendChild(m.cloneNode()),c.body.replaceChild(p,m)})}};function i(c){e&&(e(),e=null);let u=!1;const d={input:()=>{if(u)return;u=!0;const f=c.body.innerHTML;f!==t.content&&(t.content=f),u=!1},selectionchange:()=>{u||r.selection()},mouseup:()=>{u||r.selection()},keyup:f=>{u||["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(f.key)&&r.selection()}};return Object.entries(d).forEach(([f,m])=>{c.addEventListener(f,m)}),e=()=>{Object.entries(d).forEach(([f,m])=>{c.removeEventListener(f,m)})},e}function l(c){if(t.hasInit&&e&&(e(),e=null),t.doc=c,t.hasInit=!0,c.editorState=t,t.content&&t.content.trim()&&!t.content.match(/^<p(?:\s[^>]*)?>(?:<br\s*\/?>)?\s*<\/p>$/i)){const u=of(t.content);c.body.innerHTML=u.html,setTimeout(()=>{t.doc&&af(c,t.content,u.iframes)},0)}if(a.normalizeContent(c),c.body.firstElementChild){const u=c.createRange(),d=c.getSelection();d&&(u.selectNodeContents(c.body),u.collapse(!1),d.removeAllRanges(),d.addRange(u),t.range=u.cloneRange(),t.selection=d,t.rangeCount=d.rangeCount)}else{const u=c.getSelection();if(u){const d=c.createRange();d.setStart(c.body,0),d.setEnd(c.body,0),u.removeAllRanges(),u.addRange(d),t.range=d.cloneRange(),t.selection=u,t.rangeCount=u.rangeCount}}e=i(c)}function s(){if(!t.debug){const c=new ax;t.debug={debugger:c,logCommand:(u,d)=>{c.logCommand(u,d,t)},getSession:()=>c.getSession(),clearSession:()=>{c.clearSession()},downloadSession:()=>{c.downloadSession()},exportDebugWithPrompt:u=>c.exportSessionWithPrompt(u)}}}return typeof window<"u"&&window.addEventListener("beforeunload",()=>{e&&e()}),{state:t,init:l,updateState:r,history:o,initDebugger:s,cleanup:()=>{e&&(e(),e=null)}}}var lx=[{key:"b",command:"bold"},{key:"i",command:"italic"},{key:"u",command:"underline"},{key:"k",command:"link"},{key:"z",command:"undo"},{key:"z",modifiers:{shift:!0},command:"redo"},{key:"y",command:"redo"},{key:".",modifiers:{shift:!0},command:"orderedList"},{key:"/",modifiers:{shift:!0},command:"unorderedList"},{key:"]",command:"indent"},{key:"[",command:"outdent"},...Array.from({length:6},(e,t)=>({key:String(t+1),modifiers:{alt:!0},command:`h${t+1}`}))];function sx(e,t){e.addEventListener("keydown",r=>{if(!r.ctrlKey&&!r.metaKey)return;const o=lx.find(a=>{const i=a.key===r.key,l=!a.modifiers||(!a.modifiers.ctrl||r.ctrlKey||r.metaKey)&&(!a.modifiers.alt||r.altKey)&&(!a.modifiers.shift||r.shiftKey);return i&&l});o&&(r.preventDefault(),t.execute(o.command))})}var cx={key:0},ux={key:1,class:"flex pt-05"},dx={class:"inline-toolbar-content"},fx={class:"menu-header"},mx={class:"px-025"},px={key:3,class:"context-menu-separator"},hx={class:"flex gap-05 align-items-end"},gx={class:"flex gap-1"},vx={class:"flex gap-05 w-100"},yx={class:"flex gap-1"},bx={class:"flex gap-05 w-100"},_x={class:"grid gap-0"},wx={key:0,class:"flex gap-025 opacity-5 -mt-05"},$x={key:1,class:"grid grid-wrap-2 gap-05"},kx={class:"grid grid-wrap-2 gap-05 py-1"},Ex={class:"overflow-hidden flex justify-content-center"},Cx={class:"flex gap-05 w-100"},Sx={class:"grid grid-wrap-4 m_grid-wrap-2 gap-col-1 table-editor testMe1"},xx={class:"grid-span-1"},Tx={class:"flex gap-025 mt-025 radius-1 p-05 w-fit",style:{height:"var(--bgl-input-height)",background:"var(--bgl-input-bg)"}},Nx={class:"grid-span-1"},Dx={class:"flex gap-025 mt-025 radius-1 p-025 w-fit",style:{height:"var(--bgl-input-height)",background:"var(--bgl-input-bg)"}},Ax={key:0,class:"grid-span-4 m_grid-span-2 grid-wrap-4 m_grid-wrap-2 grid gap-col-1 border-bottom pb-05 mb-05"},Bx={key:1,class:"grid grid-wrap-4 m_grid-wrap-2 gap-col-1 grid-span-4 m_grid-span-2 border-bottom pb-05 mb-05"},Mx=["innerHTML"],Lx=(0,n.defineComponent)({inheritAttrs:!1,__name:"index",props:{modelValue:{},toolbarConfig:{},debug:{type:Boolean},label:{},height:{},basic:{type:Boolean},simple:{type:Boolean},placeholder:{},hideToolbar:{type:Boolean},hideInlineToolbar:{type:Boolean},hideImages:{type:Boolean},hideVideos:{type:Boolean},hideEmbed:{type:Boolean},hideTables:{type:Boolean},hideAlignment:{type:Boolean},hideDirections:{type:Boolean},hideH5H6:{type:Boolean},hide:{},autofocus:{type:Boolean},textColor:{},fontSize:{},frame:{type:Boolean},outline:{type:Boolean},minWidth:{},maxWidth:{},labelColor:{},labelActiveColor:{}},emits:["update:modelValue"],setup(e,{expose:t,emit:r}){const o=e,a=r,{shellClass:i,shellStyle:l}=lt(o),s=(0,n.computed)(()=>!!o.modelValue?.trim()),c=(0,n.useAttrs)(),u=(0,n.ref)(),d=ix(),f=(0,n.ref)(!1),m=(0,n.ref)(!1),p=ox(d.state,d.state.debug),h=(0,n.ref)(0),v=(0,n.computed)(()=>(h.value,typeof document<"u"&&getComputedStyle(document.documentElement).getPropertyValue("--bgl-input-color").trim()||"#000")),b=(0,n.computed)(()=>{const M=v.value;return o.textColor||(M&&M.length>0&&M!=="#000"?M:"inherit")}),g=(0,n.computed)(()=>(h.value,typeof document<"u"&&getComputedStyle(document.documentElement).getPropertyValue("--bgl-font").trim()||"sans-serif"));let y=null;(0,n.onMounted)(()=>{typeof document<"u"&&(y=new MutationObserver(M=>{let C=!1;M.forEach(S=>{if(S.type==="attributes"){const{attributeName:re}=S;(re==="data-theme"||re==="class"||re==="style")&&(C=!0)}}),C&&(h.value++,m.value&&setTimeout(()=>{Ul()},50))}),y.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","class","style"]}),document.body&&y.observe(document.body,{attributes:!0,attributeFilter:["class","data-theme"]}))}),(0,n.onBeforeUnmount)(()=>{y?.disconnect()}),o.debug&&typeof window<"u"&&(window.forceRichTextUpdate=()=>{h.value++},window.debugRichText=_e);const _=(0,n.computed)(()=>!(o.hideToolbar||o.basic)),w=(0,n.computed)(()=>!o.hideInlineToolbar),$=(0,n.computed)(()=>o.toolbarConfig),A=(0,n.computed)(()=>{const M=[...o.hide||[]];return o.simple&&["h1","h2","h3","h4","h5","h6","image","video","embed","ul","ol","blockquote","direction","table","alignment"].forEach(C=>{M.includes(C)||M.push(C)}),M}),E=(0,n.ref)(!1),k=(0,n.ref)({url:"",openInNewTab:!0}),P=(0,n.ref)(!1),N=(0,n.ref)({message:"",x:0,y:0});let V=null;const x=(0,n.ref)(!1),T=(0,n.ref)({src:"",alt:"",width:"",height:"",credit:"",figcaption:!1});let L=null;const F=(0,n.ref)(!1),O=(0,n.ref)({src:"",width:"560",height:"315",alt:""});let B=null;const q=(0,n.ref)(!1),te=(0,n.ref)({top:0,left:0}),ee=(0,n.ref)(null),le=(0,n.ref)(!1),R=(0,n.ref)({src:"",width:"",autoplay:!1,mute:!1,controls:!0,loop:!1,aspectRatio:"16:9",customWidth:"",customHeight:"",caption:"",showCaption:!1});let I=null;const U=(0,n.ref)(!1),D=(0,n.ref)({rows:3,cols:3,width:100,borderWidth:1,borderColor:"#dddddd",cellPadding:8,showHeaders:!0,headerBgColor:"#f4f4f4",headerTextColor:"#333333",cellBgColor:"#ffffff",cellTextColor:"#333333",alternateRows:!1,alternateRowBgColor:"#f9f9f9",alternateRowTextColor:"#333333",fixedLayout:!0,alignment:"left",direction:"ltr"}),W=(0,n.ref)(!1),j=(0,n.ref)({x:0,y:0}),Y=(0,n.ref)(null);let ae=null;const be=(0,n.computed)(()=>{const M=D.value;let C=`<table style="${`
|
|
32
32
|
width: ${M.width}%;
|
|
33
33
|
border-collapse: collapse;
|
|
34
34
|
margin-bottom: 1rem;
|
|
@@ -289,13 +289,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
289
289
|
`,I8="\u2028",V8="\u2029";function O8(e){const t=e;let r=0,o=1,a=1,i=0;const l=E=>t[E]===P8&&t[E+1]===wt,s=E=>t[E]===wt,c=E=>t[E]===V8,u=E=>t[E]===I8,d=E=>l(E)||s(E)||c(E)||u(E),f=()=>r,m=()=>o,p=()=>a,h=()=>i,v=E=>l(E)||c(E)||u(E)?wt:t[E],b=()=>v(r),g=()=>v(r+i);function y(){return i=0,d(r)&&(o++,a=0),l(r)&&r++,r++,a++,t[r]}function _(){return l(r+i)&&i++,i++,t[r+i]}function w(){r=0,o=1,a=1,i=0}function $(E=0){i=E}function A(){const E=r+i;for(;E!==r;)y();i=0}return{index:f,line:m,column:p,peekOffset:h,charAt:v,currentChar:b,currentPeek:g,next:y,peek:_,reset:w,resetPeek:$,skipToPeek:A}}var Un=void 0,R8=".",em="'",F8="tokenizer";function z8(e,t={}){const r=t.location!==!1,o=O8(e),a=()=>o.index(),i=()=>D8(o.line(),o.column(),o.index()),l=i(),s=a(),c={currentType:13,offset:s,startLoc:l,endLoc:l,lastType:13,lastOffset:s,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:d}=t;function f(z,G,fe,...ve){const qe=u();G.column+=fe,G.offset+=fe,d&&d(Lo(z,r?pc(qe.startLoc,G):null,{domain:F8,args:ve}))}function m(z,G,fe){z.endLoc=i(),z.currentType=G;const ve={type:G};return r&&(ve.loc=pc(z.startLoc,z.endLoc)),fe!=null&&(ve.value=fe),ve}const p=z=>m(z,13);function h(z,G){return z.currentChar()===G?(z.next(),G):(f(Te.EXPECTED_TOKEN,i(),0,G),"")}function v(z){let G="";for(;z.currentPeek()===Cn||z.currentPeek()===wt;)G+=z.currentPeek(),z.peek();return G}function b(z){const G=v(z);return z.skipToPeek(),G}function g(z){if(z===Un)return!1;const G=z.charCodeAt(0);return G>=97&&G<=122||G>=65&&G<=90||G===95}function y(z){if(z===Un)return!1;const G=z.charCodeAt(0);return G>=48&&G<=57}function _(z,G){const{currentType:fe}=G;if(fe!==2)return!1;v(z);const ve=g(z.currentPeek());return z.resetPeek(),ve}function w(z,G){const{currentType:fe}=G;if(fe!==2)return!1;v(z);const ve=y(z.currentPeek()==="-"?z.peek():z.currentPeek());return z.resetPeek(),ve}function $(z,G){const{currentType:fe}=G;if(fe!==2)return!1;v(z);const ve=z.currentPeek()===em;return z.resetPeek(),ve}function A(z,G){const{currentType:fe}=G;if(fe!==7)return!1;v(z);const ve=z.currentPeek()===".";return z.resetPeek(),ve}function E(z,G){const{currentType:fe}=G;if(fe!==8)return!1;v(z);const ve=g(z.currentPeek());return z.resetPeek(),ve}function k(z,G){const{currentType:fe}=G;if(!(fe===7||fe===11))return!1;v(z);const ve=z.currentPeek()===":";return z.resetPeek(),ve}function P(z,G){const{currentType:fe}=G;if(fe!==9)return!1;const ve=()=>{const Xe=z.currentPeek();return Xe==="{"?g(z.peek()):Xe==="@"||Xe==="|"||Xe===":"||Xe==="."||Xe===Cn||!Xe?!1:Xe===wt?(z.peek(),ve()):V(z,!1)},qe=ve();return z.resetPeek(),qe}function N(z){v(z);const G=z.currentPeek()==="|";return z.resetPeek(),G}function V(z,G=!0){const fe=(qe=!1,Xe="")=>{const Ie=z.currentPeek();return Ie==="{"||Ie==="@"||!Ie?qe:Ie==="|"?!(Xe===Cn||Xe===wt):Ie===Cn?(z.peek(),fe(!0,Cn)):Ie===wt?(z.peek(),fe(!0,wt)):!0},ve=fe();return G&&z.resetPeek(),ve}function x(z,G){const fe=z.currentChar();return fe===Un?Un:G(fe)?(z.next(),fe):null}function T(z){const G=z.charCodeAt(0);return G>=97&&G<=122||G>=65&&G<=90||G>=48&&G<=57||G===95||G===36}function L(z){return x(z,T)}function F(z){const G=z.charCodeAt(0);return G>=97&&G<=122||G>=65&&G<=90||G>=48&&G<=57||G===95||G===36||G===45}function O(z){return x(z,F)}function B(z){const G=z.charCodeAt(0);return G>=48&&G<=57}function q(z){return x(z,B)}function te(z){const G=z.charCodeAt(0);return G>=48&&G<=57||G>=65&&G<=70||G>=97&&G<=102}function ee(z){return x(z,te)}function le(z){let G="",fe="";for(;G=q(z);)fe+=G;return fe}function R(z){let G="";for(;;){const fe=z.currentChar();if(fe==="\\"){const ve=z.peek();ve==="{"||ve==="}"||ve==="@"||ve==="|"||ve==="\\"?(G+=fe+ve,z.next(),z.next()):(z.resetPeek(),G+=fe,z.next())}else{if(fe==="{"||fe==="}"||fe==="@"||fe==="|"||!fe)break;if(fe===Cn||fe===wt)if(V(z))G+=fe,z.next();else{if(N(z))break;G+=fe,z.next()}else G+=fe,z.next()}}return G}function I(z){b(z);let G="",fe="";for(;G=O(z);)fe+=G;const ve=z.currentChar();if(ve&&ve!=="}"&&ve!==Un&&ve!==Cn&&ve!==wt&&ve!==" "){const qe=be(z);return f(Te.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,fe+qe),fe+qe}return z.currentChar()===Un&&f(Te.UNTERMINATED_CLOSING_BRACE,i(),0),fe}function U(z){b(z);let G="";return z.currentChar()==="-"?(z.next(),G+=`-${le(z)}`):G+=le(z),z.currentChar()===Un&&f(Te.UNTERMINATED_CLOSING_BRACE,i(),0),G}function D(z){return z!==em&&z!==wt}function W(z){b(z),h(z,"'");let G="",fe="";for(;G=x(z,D);)G==="\\"?fe+=j(z):fe+=G;const ve=z.currentChar();return ve===wt||ve===Un?(f(Te.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),ve===wt&&(z.next(),h(z,"'")),fe):(h(z,"'"),fe)}function j(z){const G=z.currentChar();switch(G){case"\\":case"'":return z.next(),`\\${G}`;case"u":return Y(z,G,4);case"U":return Y(z,G,6);default:return f(Te.UNKNOWN_ESCAPE_SEQUENCE,i(),0,G),""}}function Y(z,G,fe){h(z,G);let ve="";for(let qe=0;qe<fe;qe++){const Xe=ee(z);if(!Xe){f(Te.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${G}${ve}${z.currentChar()}`);break}ve+=Xe}return`\\${G}${ve}`}function ae(z){return z!=="{"&&z!=="}"&&z!==Cn&&z!==wt}function be(z){b(z);let G="",fe="";for(;G=x(z,ae);)fe+=G;return fe}function K(z){let G="",fe="";for(;G=L(z);)fe+=G;return fe}function ce(z){const G=fe=>{const ve=z.currentChar();return ve==="{"||ve==="@"||ve==="|"||ve==="("||ve===")"||!ve||ve===Cn?fe:(fe+=ve,z.next(),G(fe))};return G("")}function ie(z){b(z);const G=h(z,"|");return b(z),G}function de(z,G){let fe=null;switch(z.currentChar()){case"{":return G.braceNest>=1&&f(Te.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),z.next(),fe=m(G,2,"{"),b(z),G.braceNest++,fe;case"}":return G.braceNest>0&&G.currentType===2&&f(Te.EMPTY_PLACEHOLDER,i(),0),z.next(),fe=m(G,3,"}"),G.braceNest--,G.braceNest>0&&b(z),G.inLinked&&G.braceNest===0&&(G.inLinked=!1),fe;case"@":return G.braceNest>0&&f(Te.UNTERMINATED_CLOSING_BRACE,i(),0),fe=_e(z,G)||p(G),G.braceNest=0,fe;default:{let ve=!0,qe=!0,Xe=!0;if(N(z))return G.braceNest>0&&f(Te.UNTERMINATED_CLOSING_BRACE,i(),0),fe=m(G,1,ie(z)),G.braceNest=0,G.inLinked=!1,fe;if(G.braceNest>0&&(G.currentType===4||G.currentType===5||G.currentType===6))return f(Te.UNTERMINATED_CLOSING_BRACE,i(),0),G.braceNest=0,se(z,G);if(ve=_(z,G))return fe=m(G,4,I(z)),b(z),fe;if(qe=w(z,G))return fe=m(G,5,U(z)),b(z),fe;if(Xe=$(z,G))return fe=m(G,6,W(z)),b(z),fe;if(!ve&&!qe&&!Xe)return fe=m(G,12,be(z)),f(Te.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,fe.value),b(z),fe;break}}return fe}function _e(z,G){const{currentType:fe}=G;let ve=null;const qe=z.currentChar();switch((fe===7||fe===8||fe===11||fe===9)&&(qe===wt||qe===Cn)&&f(Te.INVALID_LINKED_FORMAT,i(),0),qe){case"@":return z.next(),ve=m(G,7,"@"),G.inLinked=!0,ve;case".":return b(z),z.next(),m(G,8,".");case":":return b(z),z.next(),m(G,9,":");default:return N(z)?(ve=m(G,1,ie(z)),G.braceNest=0,G.inLinked=!1,ve):A(z,G)||k(z,G)?(b(z),_e(z,G)):E(z,G)?(b(z),m(G,11,K(z))):P(z,G)?(b(z),qe==="{"?de(z,G)||ve:m(G,10,ce(z))):(fe===7&&f(Te.INVALID_LINKED_FORMAT,i(),0),G.braceNest=0,G.inLinked=!1,se(z,G))}}function se(z,G){let fe={type:13};if(G.braceNest>0)return de(z,G)||p(G);if(G.inLinked)return _e(z,G)||p(G);switch(z.currentChar()){case"{":return de(z,G)||p(G);case"}":return f(Te.UNBALANCED_CLOSING_BRACE,i(),0),z.next(),m(G,3,"}");case"@":return _e(z,G)||p(G);default:if(N(z))return fe=m(G,1,ie(z)),G.braceNest=0,G.inLinked=!1,fe;if(V(z))return m(G,0,R(z));break}return fe}function $e(){const{currentType:z,offset:G,startLoc:fe,endLoc:ve}=c;return c.lastType=z,c.lastOffset=G,c.lastStartLoc=fe,c.lastEndLoc=ve,c.offset=a(),c.startLoc=i(),o.currentChar()===Un?m(c,13):se(o,c)}return{nextToken:$e,currentOffset:a,currentPosition:i,context:u}}var U8="parser",H8=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,W8=/\\([\\@{}|])/g;function j8(e,t){return t}function q8(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const o=parseInt(t||r,16);return o<=55295||o>=57344?String.fromCodePoint(o):"�"}}}function G8(e={}){const t=e.location!==!1,{onError:r}=e;function o(g,y,_,w,...$){const A=g.currentPosition();A.offset+=w,A.column+=w,r&&r(Lo(y,t?pc(_,A):null,{domain:U8,args:$}))}function a(g,y,_){const w={type:g};return t&&(w.start=y,w.end=y,w.loc={start:_,end:_}),w}function i(g,y,_,w){t&&(g.end=y,g.loc&&(g.loc.end=_))}function l(g,y){const _=g.context(),w=a(3,_.offset,_.startLoc);return w.value=y.replace(W8,j8),i(w,g.currentOffset(),g.currentPosition()),w}function s(g,y){const{lastOffset:_,lastStartLoc:w}=g.context(),$=a(5,_,w);return $.index=parseInt(y,10),g.nextToken(),i($,g.currentOffset(),g.currentPosition()),$}function c(g,y){const{lastOffset:_,lastStartLoc:w}=g.context(),$=a(4,_,w);return $.key=y,g.nextToken(),i($,g.currentOffset(),g.currentPosition()),$}function u(g,y){const{lastOffset:_,lastStartLoc:w}=g.context(),$=a(9,_,w);return $.value=y.replace(H8,q8),g.nextToken(),i($,g.currentOffset(),g.currentPosition()),$}function d(g){const y=g.nextToken(),_=g.context(),{lastOffset:w,lastStartLoc:$}=_,A=a(8,w,$);return y.type!==11?(o(g,Te.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),A.value="",i(A,w,$),{nextConsumeToken:y,node:A}):(y.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Sn(y)),A.value=y.value||"",i(A,g.currentOffset(),g.currentPosition()),{node:A})}function f(g,y){const _=g.context(),w=a(7,_.offset,_.startLoc);return w.value=y,i(w,g.currentOffset(),g.currentPosition()),w}function m(g){const y=g.context(),_=a(6,y.offset,y.startLoc);let w=g.nextToken();if(w.type===8){const $=d(g);_.modifier=$.node,w=$.nextConsumeToken||g.nextToken()}switch(w.type!==9&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Sn(w)),w=g.nextToken(),w.type===2&&(w=g.nextToken()),w.type){case 10:w.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Sn(w)),_.key=f(g,w.value||"");break;case 4:w.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Sn(w)),_.key=c(g,w.value||"");break;case 5:w.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Sn(w)),_.key=s(g,w.value||"");break;case 6:w.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Sn(w)),_.key=u(g,w.value||"");break;default:{o(g,Te.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const $=g.context(),A=a(7,$.offset,$.startLoc);return A.value="",i(A,$.offset,$.startLoc),_.key=A,i(_,$.offset,$.startLoc),{nextConsumeToken:w,node:_}}}return i(_,g.currentOffset(),g.currentPosition()),{node:_}}function p(g){const y=g.context(),_=a(2,y.currentType===1?g.currentOffset():y.offset,y.currentType===1?y.endLoc:y.startLoc);_.items=[];let w=null;do{const $=w||g.nextToken();switch(w=null,$.type){case 0:$.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Sn($)),_.items.push(l(g,$.value||""));break;case 5:$.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Sn($)),_.items.push(s(g,$.value||""));break;case 4:$.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Sn($)),_.items.push(c(g,$.value||""));break;case 6:$.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Sn($)),_.items.push(u(g,$.value||""));break;case 7:{const A=m(g);_.items.push(A.node),w=A.nextConsumeToken||null;break}}}while(y.currentType!==13&&y.currentType!==1);return i(_,y.currentType===1?y.lastOffset:g.currentOffset(),y.currentType===1?y.lastEndLoc:g.currentPosition()),_}function h(g,y,_,w){const $=g.context();let A=w.items.length===0;const E=a(1,y,_);E.cases=[],E.cases.push(w);do{const k=p(g);A||(A=k.items.length===0),E.cases.push(k)}while($.currentType!==13);return A&&o(g,Te.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),i(E,g.currentOffset(),g.currentPosition()),E}function v(g){const y=g.context(),{offset:_,startLoc:w}=y,$=p(g);return y.currentType===13?$:h(g,_,w,$)}function b(g){const y=z8(g,ut({},e)),_=y.context(),w=a(0,_.offset,_.startLoc);return t&&w.loc&&(w.loc.source=g),w.body=v(y),e.onCacheKey&&(w.cacheKey=e.onCacheKey(g)),_.currentType!==13&&o(y,Te.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,g[_.offset]||""),i(w,y.currentOffset(),y.currentPosition()),w}return{parse:b}}function Sn(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Y8(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:i=>(r.helpers.add(i),i)}}function tm(e,t){for(let r=0;r<e.length;r++)Tu(e[r],t)}function Tu(e,t){switch(e.type){case 1:tm(e.cases,t),t.helper("plural");break;case 2:tm(e.items,t);break;case 6:Tu(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function X8(e,t={}){const r=Y8(e);r.helper("normalize"),e.body&&Tu(e.body,r);const o=r.context();e.helpers=Array.from(o.helpers)}function K8(e){const t=e.body;return t.type===2?nm(t):t.cases.forEach(r=>nm(r)),e}function nm(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let r=0;r<e.items.length;r++){const o=e.items[r];if(!(o.type===3||o.type===9)||o.value==null)break;t.push(o.value)}if(t.length===e.items.length){e.static=xu(t);for(let r=0;r<e.items.length;r++){const o=e.items[r];(o.type===3||o.type===9)&&delete o.value}}}}var J8="minifier";function io(e){switch(e.t=e.type,e.type){case 0:{const t=e;io(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,r=t.cases;for(let o=0;o<r.length;o++)io(r[o]);t.c=r,delete t.cases;break}case 2:{const t=e,r=t.items;for(let o=0;o<r.length;o++)io(r[o]);t.i=r,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;io(t.key),t.k=t.key,delete t.key,t.modifier&&(io(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw Lo(Te.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:J8,args:[e.type]})}delete e.type}var Z8="parser";function Q8(e,t){const{filename:r,breakLineCode:o,needIndent:a}=t,i=t.location!==!1,l={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:a,indentLevel:0};i&&e.loc&&(l.source=e.loc.source);const s=()=>l;function c(v,b){l.code+=v}function u(v,b=!0){const g=b?o:"";c(a?g+" ".repeat(v):g)}function d(v=!0){const b=++l.indentLevel;v&&u(b)}function f(v=!0){const b=--l.indentLevel;v&&u(b)}function m(){u(l.indentLevel)}return{context:s,push:c,indent:d,deindent:f,newline:m,helper:v=>`_${v}`,needIndent:()=>l.needIndent}}function e5(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),Co(e,t.key),t.modifier?(e.push(", "),Co(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function t5(e,t){const{helper:r,needIndent:o}=e;e.push(`${r("normalize")}([`),e.indent(o());const a=t.items.length;for(let i=0;i<a&&(Co(e,t.items[i]),i!==a-1);i++)e.push(", ");e.deindent(o()),e.push("])")}function n5(e,t){const{helper:r,needIndent:o}=e;if(t.cases.length>1){e.push(`${r("plural")}([`),e.indent(o());const a=t.cases.length;for(let i=0;i<a&&(Co(e,t.cases[i]),i!==a-1);i++)e.push(", ");e.deindent(o()),e.push("])")}}function r5(e,t){t.body?Co(e,t.body):e.push("null")}function Co(e,t){const{helper:r}=e;switch(t.type){case 0:r5(e,t);break;case 1:n5(e,t);break;case 2:t5(e,t);break;case 6:e5(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${r("interpolate")}(${r("list")}(${t.index}))`,t);break;case 4:e.push(`${r("interpolate")}(${r("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw Lo(Te.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Z8,args:[t.type]})}}var o5=(e,t={})=>{const r=ye(t.mode)?t.mode:"normal",o=ye(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":`
|
|
290
290
|
`,i=t.needIndent?t.needIndent:r!=="arrow",l=e.helpers||[],s=Q8(e,{filename:o,breakLineCode:a,needIndent:i});s.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(i),l.length>0&&(s.push(`const { ${xu(l.map(d=>`${d}: _${d}`),", ")} } = ctx`),s.newline()),s.push("return "),Co(s,e),s.deindent(i),s.push("}"),delete e.helpers;const{code:c,map:u}=s.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function a5(e,t={}){const r=ut({},t),o=!!r.jit,a=!!r.minify,i=r.optimize==null?!0:r.optimize,l=G8(r).parse(e);return o?(i&&K8(l),a&&io(l),{ast:l,code:""}):(X8(l,r),o5(l,r))}function i5(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Br().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Br().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function an(e){return Me(e)&&Nu(e)===0&&(nn(e,"b")||nn(e,"body"))}var P0=["b","body"];function l5(e){return _r(e,P0)}var I0=["c","cases"];function s5(e){return _r(e,I0,[])}var V0=["s","static"];function c5(e){return _r(e,V0)}var O0=["i","items"];function u5(e){return _r(e,O0,[])}var R0=["t","type"];function Nu(e){return _r(e,R0)}var F0=["v","value"];function ri(e,t){const r=_r(e,F0);if(r!=null)return r;throw _a(t)}var z0=["m","modifier"];function d5(e){return _r(e,z0)}var U0=["k","key"];function f5(e){const t=_r(e,U0);if(t)return t;throw _a(6)}function _r(e,t,r){for(let o=0;o<t.length;o++){const a=t[o];if(nn(e,a)&&e[a]!=null)return e[a]}return r}var H0=[...P0,...I0,...V0,...O0,...U0,...z0,...F0,...R0];function _a(e){return new Error(`unhandled node type: ${e}`)}function ms(e){return r=>m5(r,e)}function m5(e,t){const r=l5(t);if(r==null)throw _a(0);if(Nu(r)===1){const o=s5(r);return e.plural(o.reduce((a,i)=>[...a,rm(e,i)],[]))}else return rm(e,r)}function rm(e,t){const r=c5(t);if(r!=null)return e.type==="text"?r:e.normalize([r]);{const o=u5(t).reduce((a,i)=>[...a,hc(e,i)],[]);return e.normalize(o)}}function hc(e,t){const r=Nu(t);switch(r){case 3:return ri(t,r);case 9:return ri(t,r);case 4:{const o=t;if(nn(o,"k")&&o.k)return e.interpolate(e.named(o.k));if(nn(o,"key")&&o.key)return e.interpolate(e.named(o.key));throw _a(r)}case 5:{const o=t;if(nn(o,"i")&&ct(o.i))return e.interpolate(e.list(o.i));if(nn(o,"index")&&ct(o.index))return e.interpolate(e.list(o.index));throw _a(r)}case 6:{const o=t,a=d5(o),i=f5(o);return e.linked(hc(e,i),a?hc(e,a):void 0,e.type)}case 7:return ri(t,r);case 8:return ri(t,r);default:throw new Error(`unhandled node on format message part: ${r}`)}}var p5="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function h5(e,t){t&&L8(e)&&(Cl(p5,{source:e}),void 0)}var g5=e=>e,oi=je();function v5(e,t={}){let r=!1;const o=t.onError||B8;return t.onError=a=>{r=!0,o(a)},{...a5(e,t),detectError:r}}function y5(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&ye(e)){const r=Oe(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&h5(e,r);const o=(t.onCacheKey||g5)(e),a=oi[o];if(a)return a;const{ast:i,detectError:l}=v5(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),s=ms(i);return l?s:oi[o]=s}else{if(process.env.NODE_ENV!=="production"&&!an(e))return`${t.key}`,(()=>e);const r=e.cacheKey;if(r){const o=oi[r];return o||(oi[r]=ms(e))}else return ms(e)}}var wa=null;function b5(e){wa=e}function _5(e,t,r){wa&&wa.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}var w5=$5("function:translate");function $5(e){return t=>wa&&wa.emit(e,t)}var $t={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Yn(e){return Lo(e,null,process.env.NODE_ENV!=="production"?{messages:k5}:void 0)}var k5={[$t.INVALID_ARGUMENT]:"Invalid arguments",[$t.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[$t.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[$t.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[$t.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[$t.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[$t.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Du(e,t){return t.locale!=null?om(t.locale):om(e.locale)}var ps;function om(e){if(ye(e))return e;if(Je(e)){if(e.resolvedOnce&&ps!=null)return ps;if(e.constructor.name==="Function"){const t=e();if(x8(t))throw Yn($t.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ps=t}else throw Yn($t.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Yn($t.NOT_SUPPORT_LOCALE_TYPE)}function E5(e,t,r){return[...new Set([r,...tt(t)?t:Me(t)?Object.keys(t):ye(t)?[t]:[r]])]}function gc(e,t,r){const o=ye(r)?r:$a,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(o);if(!i){i=[];let l=[r];for(;tt(l);)l=am(i,l,t);const s=tt(t)||!Be(t)?t:t.default?t.default:null;l=ye(s)?[s]:s,tt(l)&&am(i,l,!1),a.__localeChainCache.set(o,i)}return i}function am(e,t,r){let o=!0;for(let a=0;a<t.length&&Oe(o);a++){const i=t[a];ye(i)&&(o=C5(e,t[a],r))}return o}function C5(e,t,r){let o;const a=t.split("-");do o=S5(e,a.join("-"),r),a.splice(-1,1);while(a.length&&o===!0);return o}function S5(e,t,r){let o=!1;if(!e.includes(t)&&(o=!0,t)){o=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(tt(r)||Be(r))&&r[a]&&(o=r[a])}return o}var wr=[];wr[0]={w:[0],i:[3,0],"[":[4],o:[7]};wr[1]={w:[1],".":[2],"[":[4],o:[7]};wr[2]={w:[2],i:[3,0],0:[3,0]};wr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};wr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};wr[5]={"'":[4,0],o:8,l:[5,0]};wr[6]={'"':[4,0],o:8,l:[6,0]};var x5=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function T5(e){return x5.test(e)}function N5(e){const t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function D5(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function A5(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:T5(t)?N5(t):"*"+t}function B5(e){const t=[];let r=-1,o=0,a=0,i,l,s,c,u,d,f;const m=[];m[0]=()=>{l===void 0?l=s:l+=s},m[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},m[2]=()=>{m[0](),a++},m[3]=()=>{if(a>0)a--,o=4,m[0]();else{if(a=0,l===void 0||(l=A5(l),l===!1))return!1;m[1]()}};function p(){const h=e[r+1];if(o===5&&h==="'"||o===6&&h==='"')return r++,s="\\"+h,m[0](),!0}for(;o!==null;)if(r++,i=e[r],!(i==="\\"&&p())){if(c=D5(i),f=wr[o],u=f[c]||f.l||8,u===8||(o=u[0],u[1]!==void 0&&(d=m[u[1]],d&&(s=i,d()===!1))))return;if(o===7)return t}}var im=new Map;function M5(e,t){return Me(e)?e[t]:null}function L5(e,t){if(!Me(e))return null;let r=im.get(t);if(r||(r=B5(t),r&&im.set(t,r)),!r)return null;const o=r.length;let a=e,i=0;for(;i<o;){const l=r[i];if(H0.includes(l)&&an(a)||!Me(a)||!nn(a,l))return null;const s=a[l];if(s===void 0||Je(a))return null;a=s,i++}return a}var ht={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9};var P5={[ht.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ht.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ht.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ht.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ht.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ht.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ht.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.",[ht.INVALID_NUMBER_ARGUMENT]:"Invalid argument for number formatting: expected a number but received '{value}'.",[ht.INVALID_DATE_ARGUMENT]:"Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."};function er(e,...t){return Cl(P5[e],...t)}var I5="11.4.5";var $a="en-US";var lm=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function V5(){return{upper:(e,t)=>t==="text"&&ye(e)?e.toUpperCase():t==="vnode"&&Me(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&ye(e)?e.toLowerCase():t==="vnode"&&Me(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&ye(e)?lm(e):t==="vnode"&&Me(e)&&"__v_isVNode"in e?lm(e.children):e}}var W0;function O5(e){W0=e}var j0;function R5(e){j0=e}var q0;function F5(e){q0=e}var G0=null,sm=e=>{G0=e},z5=()=>G0,Y0=null,cm=e=>{Y0=e},U5=()=>Y0,um=0;function H5(e={}){const t=Je(e.onWarn)?e.onWarn:g8,r=ye(e.version)?e.version:I5,o=ye(e.locale)||Je(e.locale)?e.locale:$a,a=Je(o)?$a:o,i=tt(e.fallbackLocale)||Be(e.fallbackLocale)||ye(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,l=Be(e.messages)?e.messages:hs(a),s=Be(e.datetimeFormats)?e.datetimeFormats:hs(a),c=Be(e.numberFormats)?e.numberFormats:hs(a),u=ut(je(),e.modifiers,V5()),d=e.pluralRules||je(),f=Je(e.missing)?e.missing:null,m=Oe(e.missingWarn)||Eo(e.missingWarn)?e.missingWarn:!0,p=Oe(e.fallbackWarn)||Eo(e.fallbackWarn)?e.fallbackWarn:!0,h=!!e.fallbackFormat,v=!!e.unresolving,b=Je(e.postTranslation)?e.postTranslation:null,g=Be(e.processor)?e.processor:null,y=Oe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,w=Je(e.messageCompiler)?e.messageCompiler:W0;process.env.NODE_ENV!=="production"&&Je(e.messageCompiler)&&Eu(er(ht.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const $=Je(e.messageResolver)?e.messageResolver:j0||M5,A=Je(e.localeFallbacker)?e.localeFallbacker:q0||E5,E=Me(e.fallbackContext)?e.fallbackContext:void 0,k=e,P=Me(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,N=Me(k.__numberFormatters)?k.__numberFormatters:new Map,V=Me(k.__meta)?k.__meta:{};um++;const x={version:r,cid:um,locale:o,fallbackLocale:i,messages:l,modifiers:u,pluralRules:d,missing:f,missingWarn:m,fallbackWarn:p,fallbackFormat:h,unresolving:v,postTranslation:b,processor:g,warnHtmlMessage:y,escapeParameter:_,messageCompiler:w,messageResolver:$,localeFallbacker:A,fallbackContext:E,onWarn:t,__meta:V};return x.datetimeFormats=s,x.numberFormats=c,x.__datetimeFormatters=P,x.__numberFormatters=N,process.env.NODE_ENV!=="production"&&(x.__v_emitter=k.__v_emitter!=null?k.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&_5(x,r,V),x}var hs=e=>({[e]:je()});function Tl(e,t){return e instanceof RegExp?e.test(t):e}function X0(e,t){return e instanceof RegExp?e.test(t):e}function Au(e,t,r,o,a){const{missing:i,onWarn:l}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:r,key:t,type:a,groupId:`${a}:${t}`})}if(i!==null){const s=i(e,r,t,a);return ye(s)?s:t}else return process.env.NODE_ENV!=="production"&&X0(o,t)&&l(er(ht.NOT_FOUND_KEY,{key:t,locale:r})),t}function Ho(e,t,r){const o=e;o.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function K0(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function W5(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let o=r+1;o<t.length;o++)if(K0(e,t[o]))return!0;return!1}var dm=typeof Intl<"u",J0={dateTimeFormat:dm&&typeof Intl.DateTimeFormat<"u",numberFormat:dm&&typeof Intl.NumberFormat<"u"};function fm(e,...t){const{datetimeFormats:r,unresolving:o,fallbackLocale:a,onWarn:i,localeFallbacker:l}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!J0.dateTimeFormat)return i(er(ht.CANNOT_FORMAT_DATE)),"";if(!ye(t[0])&&!M0(t[0])&&!ct(t[0]))return process.env.NODE_ENV!=="production"&&i(er(ht.INVALID_DATE_ARGUMENT,{value:String(t[0])})),"";const[c,u,d,f]=vc(...t),m=Oe(d.missingWarn)?d.missingWarn:e.missingWarn,p=Oe(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,h=!!d.part,v=Du(e,d),b=l(e,a,v);if(!ye(c)||c===""){const P=new Intl.DateTimeFormat(v.replace(/!/g,""),f);return h?P.formatToParts(u):P.format(u)}let g={},y,_=null,w=v,$=null;const A="datetime format";for(let P=0;P<b.length;P++){if(y=$=b[P],process.env.NODE_ENV!=="production"&&v!==y&&Tl(p,c)&&i(er(ht.FALLBACK_TO_DATE_FORMAT,{key:c,target:y})),process.env.NODE_ENV!=="production"&&v!==y){const N=e.__v_emitter;N&&N.emit("fallback",{type:A,key:c,from:w,to:$,groupId:`${A}:${c}`})}if(g=r[y]||{},_=g[c],Be(_))break;Au(e,c,y,m,A),w=$}if(!Be(_)||!ye(y))return o?-1:c;let E=`${y}__${c}`;Sl(f)||(E=`${E}__${JSON.stringify(f)}`);let k=s.get(E);return k||(k=new Intl.DateTimeFormat(y,ut({},_,f)),s.set(E,k)),h?k.formatToParts(u):k.format(u)}var Z0=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function vc(...e){const[t,r,o,a]=e,i=je();let l=je(),s;if(ye(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Yn($t.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();s=new Date(u);try{s.toISOString()}catch{throw Yn($t.INVALID_ISO_DATE_ARGUMENT)}}else if(M0(t)){if(isNaN(t.getTime()))throw Yn($t.INVALID_DATE_ARGUMENT);s=t}else if(ct(t))s=t;else throw Yn($t.INVALID_ARGUMENT);return ye(r)?i.key=r:Be(r)&&Object.keys(r).forEach(c=>{Z0.includes(c)?l[c]=r[c]:i[c]=r[c]}),ye(o)?i.locale=o:Be(o)&&(l=o),Be(a)&&(l=a),[i.key||"",s,i,l]}function mm(e,t,r){const o=e;for(const a in r){const i=`${t}__${a}`;o.__datetimeFormatters.has(i)&&o.__datetimeFormatters.delete(i)}}function pm(e,...t){const{numberFormats:r,unresolving:o,fallbackLocale:a,onWarn:i,localeFallbacker:l}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!J0.numberFormat)return i(er(ht.CANNOT_FORMAT_NUMBER)),"";if(!ct(t[0]))return process.env.NODE_ENV!=="production"&&i(er(ht.INVALID_NUMBER_ARGUMENT,{value:String(t[0])})),"";const[c,u,d,f]=yc(...t),m=Oe(d.missingWarn)?d.missingWarn:e.missingWarn,p=Oe(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,h=!!d.part,v=Du(e,d),b=l(e,a,v);if(!ye(c)||c===""){const P=new Intl.NumberFormat(v.replace(/!/g,""),f);return h?P.formatToParts(u):P.format(u)}let g={},y,_=null,w=v,$=null;const A="number format";for(let P=0;P<b.length;P++){if(y=$=b[P],process.env.NODE_ENV!=="production"&&v!==y&&Tl(p,c)&&i(er(ht.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:y})),process.env.NODE_ENV!=="production"&&v!==y){const N=e.__v_emitter;N&&N.emit("fallback",{type:A,key:c,from:w,to:$,groupId:`${A}:${c}`})}if(g=r[y]||{},_=g[c],Be(_))break;Au(e,c,y,m,A),w=$}if(!Be(_)||!ye(y))return o?-1:c;let E=`${y}__${c}`;Sl(f)||(E=`${E}__${JSON.stringify(f)}`);let k=s.get(E);return k||(k=new Intl.NumberFormat(y,ut({},_,f)),s.set(E,k)),h?k.formatToParts(u):k.format(u)}var Q0=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function yc(...e){const[t,r,o,a]=e,i=je();let l=je();if(!ct(t))throw Yn($t.INVALID_ARGUMENT);const s=t;return ye(r)?i.key=r:Be(r)&&Object.keys(r).forEach(c=>{Q0.includes(c)?l[c]=r[c]:i[c]=r[c]}),ye(o)?i.locale=o:Be(o)&&(l=o),Be(a)&&(l=a),[i.key||"",s,i,l]}function hm(e,t,r){const o=e;for(const a in r){const i=`${t}__${a}`;o.__numberFormatters.has(i)&&o.__numberFormatters.delete(i)}}var j5=e=>e,q5=e=>"",G5="text",Y5=e=>e.length===0?"":xu(e),X5=T8;function gs(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function K5(e){const t=ct(e.pluralIndex)?e.pluralIndex:-1;return ct(e.named?.count)?e.named.count:ct(e.named?.n)?e.named.n:t}function J5(e={}){const t=e.locale,r=K5(e),o=ye(t)&&Je(e.pluralRules?.[t])?e.pluralRules[t]:gs,a=o===gs?void 0:gs,i=g=>g[o(r,g.length,a)],l=e.list||[],s=g=>l[g],c=e.named||je();ct(e.pluralIndex)&&(c.count||=e.pluralIndex,c.n||=e.pluralIndex);const u=g=>c[g];function d(g,y){const _=Je(e.messages)?e.messages(g,!!y):Me(e.messages)?e.messages[g]:!1;return _||(e.parent?e.parent.message(g):q5)}const f=g=>e.modifiers?e.modifiers[g]:j5,m=Je(e.processor?.normalize)?e.processor.normalize:Y5,p=Je(e.processor?.interpolate)?e.processor.interpolate:X5,h=ye(e.processor?.type)?e.processor.type:G5,b={list:s,named:u,plural:i,linked:(g,...y)=>{const[_,w]=y;let $="text",A="";y.length===1?Me(_)?(A=_.modifier||A,$=_.type||$):ye(_)&&(A=_||A):y.length===2&&(ye(_)&&(A=_||A),ye(w)&&($=w||$));const E=d(g,!0)(b),k=E===""||E===void 0?g:E,P=$==="vnode"&&tt(k)&&A?k[0]:k;return A?f(A)(P,$):P},message:d,type:h,interpolate:p,normalize:m,values:ut(je(),l,c)};return b}var gm=()=>"",Qt=e=>Je(e);function vm(e,...t){const{fallbackFormat:r,postTranslation:o,unresolving:a,messageCompiler:i,fallbackLocale:l,messages:s}=e,[c,u]=bc(...t),d=Oe(u.missingWarn)?u.missingWarn:e.missingWarn,f=Oe(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,m=Oe(u.escapeParameter)?u.escapeParameter:e.escapeParameter,p=!!u.resolvedMessage,h=ye(u.default)||Oe(u.default)?Oe(u.default)?i?c:()=>c:u.default:r?i?c:()=>c:null,v=r||h!=null&&(ye(h)||Je(h)),b=Du(e,u);m&&Z5(u);let[g,y,_]=p?[c,b,s[b]||je()]:eg(e,c,b,l,f,d),w=g,$=c;if(!p&&!(ye(w)||an(w)||Qt(w))&&v&&(w=h,$=w),!p&&(!(ye(w)||an(w)||Qt(w))||!ye(y)))return a?-1:c;if(process.env.NODE_ENV!=="production"&&ye(w)&&e.messageCompiler==null)return`${c}`,c;let A=!1;const E=()=>{A=!0},k=Qt(w)?w:tg(e,c,y,w,$,E);if(A)return w;const P=Q5(e,k,J5(nD(e,y,_,u)));let N=o?o(P,c):P;if(m&&ye(N)&&(N=C8(N)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const V={timestamp:Date.now(),key:ye(c)?c:Qt(w)?w.key:"",locale:y||(Qt(w)?w.locale:""),format:ye(w)?w:Qt(w)?w.source:"",message:N};V.meta=ut({},e.__meta,z5()||{}),w5(V)}return N}function Z5(e){tt(e.list)?e.list=e.list.map(t=>ye(t)?Jf(t):t):Me(e.named)&&Object.keys(e.named).forEach(t=>{ye(e.named[t])&&(e.named[t]=Jf(e.named[t]))})}function eg(e,t,r,o,a,i){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:u}=e,d=u(e,o,r);let f=je(),m,p=null,h=r,v=null;const b="translate";for(let g=0;g<d.length;g++){m=v=d[g],process.env.NODE_ENV!=="production"&&r!==m&&!K0(r,m)&&Tl(a,t)&&s(er(ht.FALLBACK_TO_TRANSLATE,{key:t,target:m}));const y=process.env.NODE_ENV!=="production"?e.__v_emitter:void 0;process.env.NODE_ENV!=="production"&&r!==m&&y&&y.emit("fallback",{type:b,key:t,from:h,to:v,groupId:`${b}:${t}`}),f=l[m]||je();let _=null,w,$;if(process.env.NODE_ENV!=="production"&&_n&&y&&(_=window.performance.now(),w="intlify-message-resolve-start",$="intlify-message-resolve-end",Gt&&Gt(w)),(p=c(f,t))===null&&(p=f[t]),process.env.NODE_ENV!=="production"&&_n&&y){const A=window.performance.now();y&&_&&p&&y.emit("message-resolve",{type:"message-resolve",key:t,message:p,time:A-_,groupId:`${b}:${t}`}),w&&$&&Gt&&zr&&(Gt($),zr("intlify message resolve",w,$))}if(ye(p)||an(p)||Qt(p))break;if(!W5(m,d)){const A=Au(e,t,m,i,b);A!==t&&(p=A)}h=v}return[p,m,f]}function tg(e,t,r,o,a,i){const{messageCompiler:l,warnHtmlMessage:s}=e;if(Qt(o)){const p=o;return p.locale=p.locale||r,p.key=p.key||t,p}if(l==null){const p=(()=>o);return p.locale=r,p.key=t,p}const c=process.env.NODE_ENV!=="production"?e.__v_emitter:void 0;let u=null,d,f;process.env.NODE_ENV!=="production"&&_n&&c&&(u=window.performance.now(),d="intlify-message-compilation-start",f="intlify-message-compilation-end",Gt&&Gt(d));const m=l(o,eD(e,r,a,o,s,i));if(process.env.NODE_ENV!=="production"&&_n&&c){const p=window.performance.now();c&&u&&c.emit("message-compilation",{type:"message-compilation",message:o,time:p-u,groupId:`translate:${t}`}),d&&f&&Gt&&zr&&(Gt(f),zr("intlify message compilation",d,f))}return m.locale=r,m.key=t,m.source=o,m}function Q5(e,t,r){const o=process.env.NODE_ENV!=="production"?e.__v_emitter:void 0;let a=null,i,l;process.env.NODE_ENV!=="production"&&_n&&o&&(a=window.performance.now(),i="intlify-message-evaluation-start",l="intlify-message-evaluation-end",Gt&&Gt(i));const s=t(r);if(process.env.NODE_ENV!=="production"&&_n&&o){const c=window.performance.now();o&&a&&o.emit("message-evaluation",{type:"message-evaluation",value:s,time:c-a,groupId:`translate:${t.key}`}),i&&l&&Gt&&zr&&(Gt(l),zr("intlify message evaluation",i,l))}return s}function bc(...e){const[t,r,o]=e,a=je();if(!ye(t)&&!ct(t)&&!Qt(t)&&!an(t))throw Yn($t.INVALID_ARGUMENT);const i=ct(t)?String(t):(Qt(t),t);return ct(r)?a.plural=r:ye(r)?a.default=r:Be(r)&&!Sl(r)?a.named=r:tt(r)&&(a.list=r),ct(o)?a.plural=o:ye(o)?a.default=o:Be(o)&&ut(a,o),[i,a]}function eD(e,t,r,o,a,i){return{locale:t,key:r,warnHtmlMessage:a,onError:l=>{if(i&&i(l),process.env.NODE_ENV!=="production"){const s=tD(o),c=l.location&&s&&N8(s,l.location.start.offset,l.location.end.offset),u=e.__v_emitter;u&&s&&u.emit("compile-error",{message:s,error:l.message,start:l.location&&l.location.start.offset,end:l.location&&l.location.end.offset,groupId:`translate:${r}`});const d=`Message compilation error: ${l.message}`;throw new SyntaxError(c?`${d}
|
|
291
291
|
${c}`:d)}throw l},onCacheKey:l=>y8(t,r,l)}}function tD(e){if(ye(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function nD(e,t,r,o){const{modifiers:a,pluralRules:i,messageResolver:l,fallbackLocale:s,fallbackWarn:c,missingWarn:u,fallbackContext:d}=e,m={locale:t,modifiers:a,pluralRules:i,messages:(p,h)=>{let v=l(r,p);if(v==null&&(d||h)){const[b,,g]=eg(d||e,p,t,s,c,u);v=b??l(g,p)}if(ye(v)||an(v)){let b=!1;const y=tg(e,p,t,v,p,()=>{b=!0});return b?gm:y}else return Qt(v)?v:gm}};return e.processor&&(m.processor=e.processor),o.list&&(m.list=o.list),o.named&&(m.named=o.named),ct(o.plural)&&(m.pluralIndex=o.plural),m}i5();function rD(){return ng().__VUE_DEVTOOLS_GLOBAL_HOOK__}function ng(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const oD=typeof Proxy=="function",aD="devtools-plugin:setup",iD="plugin:settings:set";var Zr,_c;function lD(){var e;return Zr!==void 0||(typeof window<"u"&&window.performance?(Zr=!0,_c=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Zr=!0,_c=globalThis.perf_hooks.performance):Zr=!1),Zr}function sD(){return lD()?_c.now():Date.now()}var cD=class{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const r={};if(e.settings)for(const i in e.settings)r[i]=e.settings[i].defaultValue;const o=`__vue-devtools-plugin-settings__${e.id}`;let a=Object.assign({},r);try{const i=localStorage.getItem(o),l=JSON.parse(i);Object.assign(a,l)}catch{}this.fallbacks={getSettings(){return a},setSettings(i){try{localStorage.setItem(o,JSON.stringify(i))}catch{}a=i},now(){return sD()}},t&&t.on(iD,(i,l)=>{i===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(i,l)=>this.target?this.target.on[l]:(...s)=>{this.onQueue.push({method:l,args:s})}}),this.proxiedTarget=new Proxy({},{get:(i,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...s)=>(this.targetQueue.push({method:l,args:s,resolve:()=>{}}),this.fallbacks[l](...s)):(...s)=>new Promise(c=>{this.targetQueue.push({method:l,args:s,resolve:c})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}};function uD(e,t){const r=e,o=ng(),a=rD(),i=oD&&r.enableEarlyProxy;if(a&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))a.emit(aD,e,t);else{const l=i?new cD(r,a):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:l}),l&&t(l.proxiedTarget)}}var dD="11.4.5";function fD(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Br().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Br().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Br().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Br().__INTLIFY_PROD_DEVTOOLS__=!1)}var Ye={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function xt(e,...t){return Lo(e,null,process.env.NODE_ENV!=="production"?{messages:mD,args:t}:void 0)}var mD={[Ye.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Ye.INVALID_ARGUMENT]:"Invalid argument",[Ye.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Ye.NOT_INSTALLED]:"Need to install with `app.use` function",[Ye.UNEXPECTED_ERROR]:"Unexpected error",[Ye.REQUIRED_VALUE]:"Required in value: {0}",[Ye.INVALID_VALUE]:"Invalid value",[Ye.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Ye.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Ye.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Ye.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},wc=$n("__translateVNode"),$c=$n("__datetimeParts"),kc=$n("__numberParts"),or=$n("__enableEmitter"),Ur=$n("__disableEmitter"),rg=$n("__setPluralRules");$n("__intlifyMeta");var og=$n("__injectWithOption"),co=$n("__dispose"),en={FALLBACK_TO_ROOT:10,NOT_FOUND_PARENT_SCOPE:11,IGNORE_OBJ_FLATTEN:12,DEPRECATE_LEGACY_MODE:13,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:14,DUPLICATE_USE_I18N_CALLING:15},pD={[en.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[en.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[en.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[en.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
292
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[en.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[en.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function So(e,...t){return Cl(pD[e],...t)}function ka(e){if(!Me(e)||an(e))return e;for(const t in e)if(nn(e,t))if(!t.includes("."))Me(e[t])&&ka(e[t]);else{const r=t.split("."),o=r.length-1;let a=e,i=!1;for(let l=0;l<o;l++){if(r[l]==="__proto__")throw new Error(`unsafe key: ${r[l]}`);if(r[l]in a||(a[r[l]]=je()),!Me(a[r[l]])){process.env.NODE_ENV!=="production"&&(So(en.IGNORE_OBJ_FLATTEN,{key:r[l]}),void 0),i=!0;break}a=a[r[l]]}if(i||(an(a)?H0.includes(r[o])||delete e[t]:(a[r[o]]=e[t],delete e[t])),!an(a)){const l=a[r[o]];Me(l)&&ka(l)}}return e}function Bu(e,t){const{messages:r,__i18n:o,messageResolver:a,flatJson:i}=t,l=Be(r)?r:tt(o)?je():{[e]:je()};if(tt(o)&&o.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:c,resource:u}=s;c?(l[c]=l[c]||je(),Si(u,l[c])):Si(u,l)}else ye(s)&&Si(JSON.parse(s),l)}),a==null&&i)for(const s in l)nn(l,s)&&ka(l[s]);return l}function ag(e){return e.type}function ig(e,t,r){let o=Me(t.messages)?t.messages:je();"__i18nGlobal"in r&&(o=Bu(e.locale.value,{messages:o,__i18n:r.__i18nGlobal}));const a=Object.keys(o);if(a.length&&a.forEach(i=>{e.mergeLocaleMessage(i,o[i])}),Me(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(Me(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}function ym(e){return(0,n.createVNode)(n.Text,null,e,0)}function go(){const e="currentInstance";return e in n?n[e]:n.getCurrentInstance()}var bm="__INTLIFY_META__",_m=()=>[],hD=()=>!1,wm=0;function $m(e){return((t,r,o,a)=>e(r,o,go()||void 0,a))}var gD=()=>{const e=go();let t=null;return e&&(t=ag(e)[bm])?{[bm]:t}:null};function Yi(e={}){const{__root:t,__injectWithOption:r}=e,o=t===void 0,a=e.flatJson,i=_n?n.ref:n.shallowRef;let l=Oe(e.inheritLocale)?e.inheritLocale:!0;const s=i(t&&l?t.locale.value:ye(e.locale)?e.locale:$a),c=i(t&&l?t.fallbackLocale.value:ye(e.fallbackLocale)||tt(e.fallbackLocale)||Be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=i(Bu(s.value,e)),d=i(Be(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=i(Be(e.numberFormats)?e.numberFormats:{[s.value]:{}});let m=t?t.missingWarn:Oe(e.missingWarn)||Eo(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:Oe(e.fallbackWarn)||Eo(e.fallbackWarn)?e.fallbackWarn:!0,h=t?t.fallbackRoot:Oe(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.fallbackFormat,b=Je(e.missing)?e.missing:null,g=Je(e.missing)?$m(e.missing):null,y=Je(e.postTranslation)?e.postTranslation:null,_=t?t.warnHtmlMessage:Oe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const $=t?t.modifiers:Be(e.modifiers)?e.modifiers:{};let A=e.pluralRules||t&&t.pluralRules,E;E=(()=>{o&&cm(null);const oe={version:dD,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:$,pluralRules:A,missing:g===null?void 0:g,missingWarn:m,fallbackWarn:p,fallbackFormat:v,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:_,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};oe.datetimeFormats=d.value,oe.numberFormats=f.value,oe.__datetimeFormatters=Be(E)?E.__datetimeFormatters:void 0,oe.__numberFormatters=Be(E)?E.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(oe.__v_emitter=Be(E)?E.__v_emitter:void 0);const me=H5(oe);return o&&cm(me),me})(),Ho(E,s.value,c.value);function P(){return[s.value,c.value,u.value,d.value,f.value]}const N=(0,n.computed)({get:()=>s.value,set:oe=>{E.locale=oe,s.value=oe}}),V=(0,n.computed)({get:()=>c.value,set:oe=>{E.fallbackLocale=oe,c.value=oe,Ho(E,s.value,oe)}}),x=(0,n.computed)(()=>u.value),T=(0,n.computed)(()=>d.value),L=(0,n.computed)(()=>f.value);function F(){return Je(y)?y:null}function O(oe){y=oe,E.postTranslation=oe}function B(){return b}function q(oe){oe!==null&&(g=$m(oe)),b=oe,E.missing=g}function te(oe,me){return oe!=="translate"||!me.resolvedMessage}const ee=(oe,me,Le,Ze,kn,Xt)=>{P();let kt;try{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&sm(gD()),o||(E.fallbackContext=t?U5():void 0),kt=oe(E)}finally{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&sm(null),o||(E.fallbackContext=void 0)}if(Le!=="translate exists"&&ct(kt)&&kt===-1||Le==="translate exists"&&!kt){const[Fn,Fl]=me();if(process.env.NODE_ENV!=="production"&&t&&ye(Fn)&&te(Le,Fl)&&(h&&(Tl(p,Fn)||X0(m,Fn))&&(So(en.FALLBACK_TO_ROOT,{key:Fn,type:Le}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:Vo}=E;Vo&&h&&Vo.emit("fallback",{type:Le,key:Fn,to:"global",groupId:`${Le}:${Fn}`})}return t&&h?Ze(t):kn(Fn)}else{if(Xt(kt))return kt;throw xt(Ye.UNEXPECTED_RETURN_TYPE)}};function le(...oe){return ee(me=>Reflect.apply(vm,null,[me,...oe]),()=>bc(...oe),"translate",me=>Reflect.apply(me.t,me,[...oe]),me=>me,me=>ye(me))}function R(...oe){const[me,Le,Ze]=oe;if(Ze&&!Me(Ze))throw xt(Ye.INVALID_ARGUMENT);return le(me,Le,ut({resolvedMessage:!0},Ze||{}))}function I(...oe){return ee(me=>Reflect.apply(fm,null,[me,...oe]),()=>vc(...oe),"datetime format",me=>Reflect.apply(me.d,me,[...oe]),()=>"",me=>ye(me)||tt(me))}function U(...oe){return ee(me=>Reflect.apply(pm,null,[me,...oe]),()=>yc(...oe),"number format",me=>Reflect.apply(me.n,me,[...oe]),()=>"",me=>ye(me)||tt(me))}function D(oe){return oe.map(me=>ye(me)||ct(me)||Oe(me)?ym(String(me)):me)}const j={normalize:D,interpolate:oe=>oe,type:"vnode"};function Y(...oe){return ee(me=>{let Le;const Ze=me;try{Ze.processor=j,Le=Reflect.apply(vm,null,[Ze,...oe])}finally{Ze.processor=null}return Le},()=>bc(...oe),"translate",me=>me[wc](...oe),me=>[ym(me)],me=>tt(me))}function ae(...oe){return ee(me=>Reflect.apply(pm,null,[me,...oe]),()=>yc(...oe),"number format",me=>me[kc](...oe),_m,me=>ye(me)||tt(me))}function be(...oe){return ee(me=>Reflect.apply(fm,null,[me,...oe]),()=>vc(...oe),"datetime format",me=>me[$c](...oe),_m,me=>ye(me)||tt(me))}function K(oe){A=oe,E.pluralRules=A}function ce(oe,me){return ee(()=>{if(!oe)return!1;const Le=ye(me)?me:s.value,Ze=ye(me)?[Le]:gc(E,c.value,Le);for(let kn=0;kn<Ze.length;kn++){const Xt=_e(Ze[kn]);let kt=E.messageResolver(Xt,oe);if(kt===null&&(kt=Xt[oe]),an(kt)||Qt(kt)||ye(kt))return!0}return!1},()=>[oe],"translate exists",Le=>Reflect.apply(Le.te,Le,[oe,me]),hD,Le=>Oe(Le))}function ie(oe){let me=null;const Le=gc(E,c.value,s.value);for(let Ze=0;Ze<Le.length;Ze++){const kn=u.value[Le[Ze]]||{},Xt=E.messageResolver(kn,oe);if(Xt!=null){me=Xt;break}}return me}function de(oe){const me=ie(oe);return me??(t?t.tm(oe)||{}:{})}function _e(oe){return u.value[oe]||{}}function se(oe,me){if(a){const Le={[oe]:me};for(const Ze in Le)nn(Le,Ze)&&ka(Le[Ze]);me=Le[oe]}u.value[oe]=me,E.messages=u.value}function $e(oe,me){u.value[oe]=u.value[oe]||{};const Le={[oe]:me};if(a)for(const Ze in Le)nn(Le,Ze)&&ka(Le[Ze]);me=Le[oe],Si(me,u.value[oe]),E.messages=u.value}function z(oe){return d.value[oe]||{}}function G(oe,me){d.value[oe]=me,E.datetimeFormats=d.value,mm(E,oe,me)}function fe(oe,me){d.value[oe]=ut(d.value[oe]||{},me),E.datetimeFormats=d.value,mm(E,oe,me)}function ve(oe){return f.value[oe]||{}}function qe(oe,me){f.value[oe]=me,E.numberFormats=f.value,hm(E,oe,me)}function Xe(oe,me){f.value[oe]=ut(f.value[oe]||{},me),E.numberFormats=f.value,hm(E,oe,me)}wm++,t&&_n&&((0,n.watch)(t.locale,oe=>{l&&(s.value=oe,E.locale=oe,Ho(E,s.value,c.value))}),(0,n.watch)(t.fallbackLocale,oe=>{l&&(c.value=oe,E.fallbackLocale=oe,Ho(E,s.value,c.value))}));const Ie={id:wm,locale:N,fallbackLocale:V,get inheritLocale(){return l},set inheritLocale(oe){l=oe,oe&&t&&(s.value=t.locale.value,c.value=t.fallbackLocale.value,Ho(E,s.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:x,get modifiers(){return $},get pluralRules(){return A||{}},get isGlobal(){return o},get missingWarn(){return m},set missingWarn(oe){m=oe,E.missingWarn=m},get fallbackWarn(){return p},set fallbackWarn(oe){p=oe,E.fallbackWarn=p},get fallbackRoot(){return h},set fallbackRoot(oe){h=oe},get fallbackFormat(){return v},set fallbackFormat(oe){v=oe,E.fallbackFormat=v},get warnHtmlMessage(){return _},set warnHtmlMessage(oe){_=oe,E.warnHtmlMessage=oe},get escapeParameter(){return w},set escapeParameter(oe){w=oe,E.escapeParameter=oe},t:le,getLocaleMessage:_e,setLocaleMessage:se,mergeLocaleMessage:$e,getPostTranslationHandler:F,setPostTranslationHandler:O,getMissingHandler:B,setMissingHandler:q,[rg]:K};return Ie.datetimeFormats=T,Ie.numberFormats=L,Ie.rt=R,Ie.te=ce,Ie.tm=de,Ie.d=I,Ie.n=U,Ie.getDateTimeFormat=z,Ie.setDateTimeFormat=G,Ie.mergeDateTimeFormat=fe,Ie.getNumberFormat=ve,Ie.setNumberFormat=qe,Ie.mergeNumberFormat=Xe,Ie[og]=r,Ie[wc]=Y,Ie[$c]=be,Ie[kc]=ae,process.env.NODE_ENV!=="production"&&(Ie[or]=oe=>{E.__v_emitter=oe},Ie[Ur]=()=>{E.__v_emitter=void 0}),Ie}var lg="vue-i18n: composer properties",vs={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},vD={"vue-i18n-resource-inspector":"Search for scopes ..."},yD={"vue-i18n-timeline":16764185},Ec;async function bD(e,t){return new Promise((r,o)=>{try{uD({id:"vue-devtools-plugin-vue-i18n",label:vs["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[lg],app:e},a=>{Ec=a,a.on.visitComponentTree(({componentInstance:l,treeNode:s})=>{_D(l,s,t)}),a.on.inspectComponent(({componentInstance:l,instanceData:s})=>{l.__VUE_I18N__&&s&&(t.mode==="legacy"?l.__VUE_I18N__!==t.global.__composer&&km(s,l.__VUE_I18N__):km(s,l.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:vs["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:vD["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&CD(l,t)});const i=new Map;a.on.getInspectorState(async l=>{if(l.app===e&&l.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),xD(l,t),l.nodeId==="global"){if(!i.has(l.app)){const[s]=await a.getComponentInstances(l.app);i.set(l.app,s)}a.highlightElement(i.get(l.app))}else{const s=SD(l.nodeId,t);s&&a.highlightElement(s)}}),a.on.editInspectorState(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&ND(l,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:vs["vue-i18n-timeline"],color:yD["vue-i18n-timeline"]}),r(!0)})}catch{o(!1)}})}function sg(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function _D(e,t,r){const o=r.mode==="composition"?r.global:r.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==o){const a={label:`i18n (${sg(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function km(e,t){const r=lg;e.state.push({type:r,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:r,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:r,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:r,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:r,key:"messages",editable:!1,value:Mu(t.messages.value)}),e.state.push({type:r,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:r,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Mu(e){const t={};return Object.keys(e).forEach(r=>{const o=e[r];Je(o)&&"source"in o?t[r]=ED(o):an(o)&&o.loc&&o.loc.source?t[r]=o.loc.source:Me(o)?t[r]=Mu(o):t[r]=o}),t}var wD={"<":"<",">":">",'"':""","&":"&"};function $D(e){return e.replace(/[<>"&]/g,kD)}function kD(e){return wD[e]||e}function ED(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${$D(e.source)}")`:"(?)"}`}}}function CD(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const r=t.mode==="composition"?t.global:t.global.__composer;for(const[o,a]of t.__instances){const i=t.mode==="composition"?a:a.__composer;r!==i&&e.rootNodes.push({id:i.id.toString(),label:`${sg(o)} Scope`})}}function SD(e,t){let r=null;if(e!=="global"){for(const[o,a]of t.__instances.entries())if(a.id.toString()===e){r=o;break}}return r}function cg(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const r=Array.from(t.__instances.values()).find(o=>o.id.toString()===e);return r?t.mode==="composition"?r:r.__composer:null}}function xD(e,t){const r=cg(e.nodeId,t);return r&&(e.state=TD(r)),null}function TD(e){const t={},r="Locale related info";t[r]=[{type:r,key:"locale",editable:!0,value:e.locale.value},{type:r,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:r,key:"availableLocales",editable:!1,value:e.availableLocales},{type:r,key:"inheritLocale",editable:!0,value:e.inheritLocale}];const o="Locale messages info";t[o]=[{type:o,key:"messages",editable:!1,value:Mu(e.messages.value)}];{const a="Datetime formats info";t[a]=[{type:a,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];const i="Datetime formats info";t[i]=[{type:i,key:"numberFormats",editable:!1,value:e.numberFormats.value}]}return t}function Hr(e,t){if(Ec){let r;t&&"groupId"in t&&(r=t.groupId,delete t.groupId),Ec.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:r,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function ND(e,t){const r=cg(e.nodeId,t);if(r){const[o]=e.path;o==="locale"&&ye(e.state.value)?r.locale.value=e.state.value:o==="fallbackLocale"&&(ye(e.state.value)||tt(e.state.value)||Me(e.state.value))?r.fallbackLocale.value=e.state.value:o==="inheritLocale"&&Oe(e.state.value)&&(r.inheritLocale=e.state.value)}}function DD(e){const t=ye(e.locale)?e.locale:$a,r=ye(e.fallbackLocale)||tt(e.fallbackLocale)||Be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,o=Je(e.missing)?e.missing:void 0,a=Oe(e.silentTranslationWarn)||Eo(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=Oe(e.silentFallbackWarn)||Eo(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=Oe(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,c=Be(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,d=Je(e.postTranslation)?e.postTranslation:void 0,f=ye(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,m=!!e.escapeParameterHtml,p=Oe(e.sync)?e.sync:!0;let h=e.messages;if(Be(e.sharedMessages)){const $=e.sharedMessages;h=Object.keys($).reduce((A,E)=>(ut(A[E]||(A[E]={}),$[E]),A),h||{})}const{__i18n:v,__root:b,__injectWithOption:g}=e,y=e.datetimeFormats,_=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:r,messages:h,flatJson:w,datetimeFormats:y,numberFormats:_,missing:o,missingWarn:a,fallbackWarn:i,fallbackRoot:l,fallbackFormat:s,modifiers:c,pluralRules:u,postTranslation:d,warnHtmlMessage:f,escapeParameter:m,messageResolver:e.messageResolver,inheritLocale:p,__i18n:v,__root:b,__injectWithOption:g}}function Cc(e={}){const t=Yi(DD(e)),{__extender:r}=e,o={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return Oe(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=Oe(a)?!a:a},get silentFallbackWarn(){return Oe(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=Oe(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},te(a,i){return t.te(a,i)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,i){t.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){t.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,i){t.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){t.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,i){t.setNumberFormat(a,i)},mergeNumberFormat(a,i){t.mergeNumberFormat(a,i)}};return o.__extender=r,process.env.NODE_ENV!=="production"&&(o.__enableEmitter=a=>{const i=t;i[or]&&i[or](a)},o.__disableEmitter=()=>{const a=t;a[Ur]&&a[Ur]()}),o}function AD(e,t,r){return{beforeCreate(){const o=go();if(!o)throw xt(Ye.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const i=a.i18n;if(a.__i18n&&(i.__i18n=a.__i18n),i.__root=t,this===this.$root)this.$i18n=Em(e,i);else{i.__injectWithOption=!0,i.__extender=r.__vueI18nExtend,this.$i18n=Cc(i);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=Em(e,a);else{this.$i18n=Cc({__i18n:a.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&ig(t,a,a),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$te=(i,l)=>this.$i18n.te(i,l),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),r.__setInstance(o,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$i18n){const o=go();if(!o)return;const a=this.$i18n;o.__VUE_I18N__=a.__composer;const i=this.__v_emitter=xl();a.__enableEmitter&&a.__enableEmitter(i),i.on("*",Hr)}},unmounted(){const o=go();if(!o)throw xt(Ye.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&o.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Hr),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete o.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),r.__deleteInstance(o),delete this.$i18n}}}function Em(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[rg](t.pluralizationRules||e.pluralizationRules);const r=Bu(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(r).forEach(o=>e.mergeLocaleMessage(o,r[o])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(o=>e.mergeDateTimeFormat(o,t.datetimeFormats[o])),t.numberFormats&&Object.keys(t.numberFormats).forEach(o=>e.mergeNumberFormat(o,t.numberFormats[o])),e}var Lu={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function BD({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>[...r,...o.type===n.Fragment?o.children:[o]],[]):t.reduce((r,o)=>{const a=e[o];return a&&(r[o]=a()),r},je())}function ug(){return n.Fragment}var Cm=(0,n.defineComponent)({name:"i18n-t",props:ut({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ct(e)||!isNaN(e)}},Lu),setup(e,t){const{slots:r,attrs:o}=t,a=e.i18n||Pu({useScope:e.scope,__useComponent:!0});return()=>{const i=()=>{const c=Object.keys(r).filter(f=>f[0]!=="_"),u=je();e.locale&&(u.locale=e.locale),e.plural!==void 0&&(u.plural=ye(e.plural)?+e.plural:e.plural);const d=BD(t,c);return a[wc](e.keypath,d,u)},l=ut(je(),o),s=ye(e.tag)||Me(e.tag)?e.tag:ug();return Me(s)?(0,n.h)(s,l,{default:i}):(0,n.h)(s,l,i())}}});function MD(e){return tt(e)&&!ye(e[0])}function dg(e,t,r,o){const{slots:a,attrs:i}=t;return()=>{const l=()=>{const u={part:!0};let d=je();e.locale&&(u.locale=e.locale),ye(e.format)?u.key=e.format:Me(e.format)&&(ye(e.format.key)&&(u.key=e.format.key),d=Object.keys(e.format).reduce((p,h)=>r.includes(h)?ut(je(),p,{[h]:e.format[h]}):p,je()));const f=o(e.value,u,d);let m=[u.key];return tt(f)?m=f.map((p,h)=>{const v=a[p.type],b=v?v({[p.type]:p.value,index:h,parts:f}):[p.value];return MD(b)&&(b[0].key=`${p.type}-${h}`),b}):ye(f)&&(m=[f]),m},s=ut(je(),i),c=ye(e.tag)||Me(e.tag)?e.tag:ug();return Me(c)?(0,n.h)(c,s,{default:l}):(0,n.h)(c,s,l())}}var Sm=(0,n.defineComponent)({name:"i18n-n",props:ut({value:{type:Number,required:!0},format:{type:[String,Object]}},Lu),setup(e,t){const r=e.i18n||Pu({useScope:e.scope,__useComponent:!0});return dg(e,t,Q0,(...o)=>r[kc](...o))}});function LD(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const o=r.__getInstance(t);return o!=null?o.__composer:e.global.__composer}}function PD(e){const t=l=>{process.env.NODE_ENV!=="production"&&Eu(So(en.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:s,value:c}=l;if(!s||!s.$)throw xt(Ye.UNEXPECTED_ERROR);const u=LD(e,s.$),d=xm(c);return[Reflect.apply(u.t,u,[...Tm(d)]),u]};return{created:(l,s)=>{const[c,u]=t(s);_n&&(l.__i18nWatcher=(0,n.watch)(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),l.__composer=u,l.textContent=c},unmounted:l=>{_n&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:s})=>{if(l.__composer){const c=l.__composer,u=xm(s);l.textContent=Reflect.apply(c.t,c,[...Tm(u)])}},getSSRProps:l=>{const[s]=t(l);return{textContent:s}}}}function xm(e){if(ye(e))return{path:e};if(Be(e)){if(!("path"in e))throw xt(Ye.REQUIRED_VALUE,"path");return e}else throw xt(Ye.INVALID_VALUE)}function Tm(e){const{path:t,locale:r,args:o,choice:a,plural:i}=e,l={},s=o||{};return ye(r)&&(l.locale=r),ct(a)&&(l.plural=a),ct(i)&&(l.plural=i),[t,s,l]}function ID(e,t,...r){const o=Be(r[0])?r[0]:{};(!Oe(o.globalInstall)||o.globalInstall)&&([Cm.name,"I18nT"].forEach(a=>e.component(a,Cm)),[Sm.name,"I18nN"].forEach(a=>e.component(a,Sm)),[Am.name,"I18nD"].forEach(a=>e.component(a,Am))),e.directive("t",PD(t))}var VD=$n("global-vue-i18n");function OD(e={}){const t=__VUE_I18N_LEGACY_API__&&Oe(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&Eu(So(en.DEPRECATE_LEGACY_MODE));const r=Oe(e.globalInjection)?e.globalInjection:!0,o=new Map,[a,i]=RD(e,t),l=$n(process.env.NODE_ENV!=="production"?"vue-i18n":"");function s(f){return o.get(f)||null}function c(f,m){o.set(f,m)}function u(f){o.delete(f)}const d={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...m){if(process.env.NODE_ENV!=="production"&&(f.__VUE_I18N__=d),f.__VUE_I18N_SYMBOL__=l,f.provide(f.__VUE_I18N_SYMBOL__,d),Be(m[0])){const v=m[0];d.__composerExtend=v.__composerExtend,d.__vueI18nExtend=v.__vueI18nExtend}let p=null;!t&&r&&(p=qD(f,d.global)),__VUE_I18N_FULL_INSTALL__&&ID(f,d,...m),__VUE_I18N_LEGACY_API__&&t&&f.mixin(AD(i,i.__composer,d));const h=f.unmount;if(f.unmount=()=>{p&&p(),d.dispose(),h()},process.env.NODE_ENV!=="production"){if(!await bD(f,d))throw xt(Ye.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const v=xl();if(t){const b=i;b.__enableEmitter&&b.__enableEmitter(v)}else{const b=i;b[or]&&b[or](v)}v.on("*",Hr)}},get global(){return i},dispose(){a.stop()},__instances:o,__getInstance:s,__setInstance:c,__deleteInstance:u};return d}function Pu(e={}){const t=go();if(t==null)throw xt(Ye.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw xt(Ye.NOT_INSTALLED);const r=FD(t),o=UD(r),a=ag(t),i=zD(e,a);if(i==="global")return ig(o,e,a),o;if(i==="parent"){let c=Nm(r,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&(So(en.NOT_FOUND_PARENT_SCOPE),void 0),c=o),c}if(i==="isolated"){if(r.mode!=="composition")throw xt(Ye.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=r,u=ut({},e);u.__root=Nm(r,t)||o;const d=Yi(u);c.__composerExtend&&(d[co]=c.__composerExtend(d));let f=null;if(process.env.NODE_ENV!=="production"){f=xl();const m=d;m[or]&&m[or](f),f.on("*",Hr)}return(0,n.getCurrentScope)()&&(0,n.onScopeDispose)(()=>{if(process.env.NODE_ENV!=="production"){f&&f.off("*",Hr);const p=d;p[Ur]&&p[Ur]()}const m=d[co];m&&(m(),delete d[co])}),d}const l=r;let s=l.__getInstance(t);if(s==null){const c=ut({},e);"__i18n"in a&&(c.__i18n=a.__i18n),o&&(c.__root=o),s=Yi(c),l.__composerExtend&&(s[co]=l.__composerExtend(s)),WD(l,t,s),l.__setInstance(t,s)}else process.env.NODE_ENV!=="production"&&i==="local"&&(So(en.DUPLICATE_USE_I18N_CALLING),void 0);return s}function RD(e,t){const r=(0,n.effectScope)(),o=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Cc(e)):r.run(()=>Yi(e));if(o==null)throw xt(Ye.UNEXPECTED_ERROR);return[r,o]}function FD(e){const t=(0,n.inject)(e.isCE?VD:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw xt(e.isCE?Ye.NOT_INSTALLED_WITH_PROVIDE:Ye.UNEXPECTED_ERROR);return t}function zD(e,t){return Sl(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function UD(e){return e.mode==="composition"?e.global:e.global.__composer}function Nm(e,t,r=!1){let o=null;const a=t.root;let i=HD(t,r);for(;i!=null;){const l=e;if(e.mode==="composition")o=l.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=l.__getInstance(i);s!=null&&(o=s.__composer,r&&o&&!o[og]&&(o=null))}if(o!=null||a===i)break;i=i.parent}return o}function HD(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function WD(e,t,r){let o=null;(0,n.onMounted)(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=r,o=xl();const a=r;a[or]&&a[or](o),o.on("*",Hr)}},t),(0,n.onUnmounted)(()=>{const a=r;process.env.NODE_ENV!=="production"&&(o&&o.off("*",Hr),a[Ur]&&a[Ur](),delete t.__VUE_I18N__),e.__deleteInstance(t);const i=a[co];i&&(i(),delete a[co])},t)}var jD=["locale","fallbackLocale","availableLocales"],Dm=["t","rt","d","n","tm","te"];function qD(e,t){const r=Object.create(null);return jD.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i)throw xt(Ye.UNEXPECTED_ERROR);const l=(0,n.isRef)(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(r,a,l)}),e.config.globalProperties.$i18n=r,Dm.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i||!i.value)throw xt(Ye.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,i)}),()=>{delete e.config.globalProperties.$i18n,Dm.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}var Am=(0,n.defineComponent)({name:"i18n-d",props:ut({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Lu),setup(e,t){const r=e.i18n||Pu({useScope:e.scope,__useComponent:!0});return dg(e,t,Z0,(...o)=>r[$c](...o))}});fD();O5(y5);R5(L5);F5(gc);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Br();e.__INTLIFY__=!0,b5(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const GD={title:"Confirm",message:"Are you sure you want to continue?",confirm:"Confirm",cancel:"Cancel"},YD={upload:"Upload",uploading:"Uploading {count} file{plural}...",noFile:"No file selected",dropPlaceholder:"Drag and Drop files here or click to upload",delete:"Delete",replace:"Replace",download:"Download"},XD={of:"of",prev:"Previous",next:"Next"},KD={required:"This field is required",invalidEmail:"Please enter a valid email address",invalidUrl:"Please enter a valid URL",minLength:"Must be at least {min} characters",maxLength:"Must be no more than {max} characters",minValue:"Must be at least {min}",maxValue:"Must be no more than {max}",pattern:"Invalid format",passwordStrength:"Password strength"},JD={veryWeak:"Very Weak",weak:"Weak",fair:"Fair",good:"Good",strong:"Strong"},ZD={placeholder:"Select",search:"Search",yes:"Yes",no:"No"},QD={loadDefault:"Load Default {label}"},eA={item:"Item"},tA={loading:"Loading..."},nA={success:"Success",error:"Error",warning:"Warning",info:"Information"},rA={filter:"Filter",noActiveFilters:"No active filters",connectors:{and:"And",or:"Or"},operators:{eq:"Equals",ne:"Not equals",gt:"Greater than",ge:"Greater or equal",lt:"Less than",le:"Less or equal",co:"Contains",sw:"Starts with",ew:"Ends with",pr:"Present",in:"In list",nin:"Not in list"},placeholders:{selectField:"Select field",selectOption:"Select option",selectDate:"Select date",enterValue:"Value"},buttons:{addCondition:"Add condition",clearAll:"Clear all",save:"Save"}},oA={previous:"Previous",next:"Next",complete:"Complete",step:"Step {current} of {total}"},aA={placeholder:"Enter address"},iA={close:"Close",cancel:"Cancel",importData:"Import Data",changeFile:"Change File",selectSheet:"Select Sheet",hasHeaders:"Mark this if file has a header row",sourceKeyField:"Source Key Field (from this file)",relatedKeyField:"Related Key Field (from related file)",selectSourceValue:"Select source value",sourceValue:"Source value",selectTargetValue:"Select target value",targetValue:"Target value",selectColumn:"Select column..."},lA={year:"year",month:"month",week:"week",day:"day",hour:"hour",minute:"minute",second:"second",ago:"ago",in:"in",justNow:"Just now"},sA={save:"Save",cancel:"Cancel",delete:"Delete",validationError:"Please fix the validation errors before submitting",errorOccurred:"An error occurred"},cA={phoneNumber:"Phone Number",invalidPhone:"Please enter a valid phone number"},uA={invalidEmail:"Please enter a valid email address",invalidDomain:"This email domain appears to be invalid",disposableEmail:"Please use a non-disposable email address",didYouMean:"did you mean {suggestion}?",validating:"Validating email..."},dA={invalidFormat:"Invalid date format"},fA={wrapText:"Wrap Text",selectAll:"Select All",clearAll:"Clear All"},mA={openFile:"Open File"},pA={placeholder:"Enter color"},hA={deleteBlockConfirm:"Are you sure you want to delete this section?",saving:"Saving...",error:"Error",save:"Save",saved:"Saved",title:"Title",slug:"Slug",slugPlaceholder:"my-page",pageSettings:"Page Settings",deletePage:"Delete Page",deletePageConfirm:"Deleting this page cannot be undone.",newPage:"New Page",createPage:"Create Page",addNewBlock:"Add New Block",searchBlock:"Search block",page:"Page",pageStructure:"Page Structure",clickToEdit:"Click on section to edit",addNewBlockHere:"Click here to add a",newBlock:"new block",adding:"Adding",removeSection:"Remove Section",closeEditor:"Close Editor (ESC)",blockNotEditable:"This block's content comes from a data source",blockNotEditableDesc:"and cannot be edited here.",dataSourceHint:"Some content in this block may come from a data source. To change it, edit the data directly.",screenTooSmall:"The screen is too small for this editor. Try reducing zoom or using a larger screen.",cancel:"Cancel",publish:"Publish",unpublish:"Unpublish",discard:"Discard",selectItemPreview:"Select item for preview",language:"Language",defaultLanguage:"Default",setAsDefault:"Set as default",removeLanguage:"Remove language",languageCode:"he / en / fr",removeLanguageConfirm:'Remove language "{locale}"?',seoTitle:"SEO Title",seoDescription:"SEO Description",ogImageUrl:"OG Image URL",showGrid:"Show Grid",hideGrid:"Hide Grid",search:"Search...",lastSaved:"Last Saved",saveNow:"Save Now",publishDestination:"Choose publish destination",publishAll:"Publish all",lastPublished:"Last published",published:"Published",notPublished:"Not published yet",production:"Production",publishFailed:"Publish failed"},gA={loadError:"Loading failed",newItemTitle:"New item — {label}",createSubmit:"Create",editTitle:"Edit",saveSubmit:"Save",importTitle:"Import JSON — {label}",importSubmit:"Import",importJsonLabel:"JSON content",importJsonHint:"Array of objects [ {...}, {...} ] or a single object",importSummary:"{imported} imported · {failed} failed",deleteItemTitle:"Delete item",deleteItemMessage:"Delete this item?",deleteConfirm:"Delete",batchDeleteTitle:"Batch delete",batchDeleteMessage:"Delete {count} items?",batchDeleteSummary:"{deleted} deleted · {failed} failed",batchUpdateTitle:"Batch update — {count} items",updateAllSubmit:"Update all",batchUpdateSummary:"Updated · {failed} failed",selectedCount:"{count} selected",updateBtn:"Update",deleteBtn:"Delete",searchPlaceholder:"Search...",refreshTooltip:"Refresh",importTooltip:"Import JSON",newItemBtn:"New item",deleteTooltip:"Delete",reorderTooltip:"Reorder",reorderSaving:"Saving order..."},vA={selectCollection:"Select a collection from the list",fieldName:"Name",fieldStore:"Store",fieldStoreHint:"e.g.: default",fieldCollection:"Collection",fieldCollectionHint:"e.g.: my_collection",fieldDescription:"Description",createTitle:"Create new Datastore",createSubmit:"Create",editTitle:"Edit {name}",saveSubmit:"Save",addBtn:"Add Datastore",empty:"No Datastores yet",deleteConfirm:'Delete "{name}"?'},yA={content:"Content",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Newsletter",agent:"Agents",users:"Users",tenants:"Organizations"},bA={title:"Users",notConfigured:"User management interface is not configured",notConfiguredHint:"Pass userApi to createAuthAdmin() to enable this screen.",team:"Team",filterByRole:"Filter by role",invite:"Invite",pendingInvitations:"Pending invitations",pending:"Pending",resend:"Resend",delete:"Delete",activeUsers:"Active users",active:"Active",edit:"Edit",remove:"Remove",noUsers:"No users yet",inviteFirst:"Invite the first one",inviteTitle:"Invite user",firstName:"First name",lastName:"Last name",email:"Email",role:"Role",message:"Message",inviteSent:"Invitation sent again",inviteError:"Error sending invitation",deleteInviteConfirm:"Delete the invitation?",deleteInviteError:"Error deleting invitation",removeUserConfirm:"Remove {email}?"},_A={title:"Forms",refresh:"Refresh",newForm:"New Form",createForm:"Create Form",noForms:"No forms yet",noFormsDesc:"Create your first form to get started",active:"Active",inactive:"Inactive",submissionsOnly:"Submissions only",noDefinition:"No form definition - view submissions",fieldCount:"{n} fields",createdAt:"Created {date}",editor:{newForm:"New Form",builder:"Builder",submissions:"Submissions",edit:"Edit",preview:"Preview",save:"Save",create:"Create",formName:"Form Name *",formNamePlaceholder:"Enter form name",description:"Description",descriptionPlaceholder:"Optional description",active:"Active",deleteForm:"Delete Form",deleteConfirm:"Are you sure you want to delete this form?",submit:"Submit"},submissions:{title:"Submissions",exportCsv:"Export CSV",statusPlaceholder:"Status",noSubmissions:"No submissions found",count:"No submissions | 1 submission | {n} submissions",date:"Date",status:"Status",statusAll:"All",statusSaved:"Saved",statusDraft:"Draft",statusProcessed:"Processed",statusAbandoned:"Abandoned",statusError:"Error",statusSpam:"Spam"},builder:{noFields:"No fields yet",noFieldsDesc:"Click + to add your first field",noFieldsDefined:"No fields defined",selectField:"Select a field to edit its settings",tooSmall:"Window too small",tooSmallDesc:"Expand the window to at least 1000px to edit the form"},fieldSettings:{headingText:"Heading Text",noDividerSettings:"No settings for divider",label:"Label",fieldKey:"Field Key",placeholder:"Placeholder",helpText:"Help Text",required:"Required",options:"Options",addOption:"Add Option",validation:"Validation",minLength:"Min Length",maxLength:"Max Length",pattern:"Pattern (RegEx)",min:"Min",max:"Max",step:"Step",removeField:"Remove Field",columnWidth:"Column Width",columnHeight:"Column Height",optionLabel:"Label",optionValue:"Value",sectionHeader:"Section Header",fieldPrefix:"Field",removeFieldTitle:"Remove field",removeTitle:"Remove",richTextVariant:"Toolbar",richTextVariantFull:"Full",richTextVariantBasic:"Basic",richTextVariantSimple:"Simple",textareaRows:"Rows",textareaAutoHeight:"Auto Height",numberLayout:"Spinner Layout",numberLayoutDefault:"Default",numberLayoutVertical:"Vertical",numberLayoutHorizontal:"Horizontal",numberSpinner:"Show Spinner",phoneOnlyCountries:"Allowed Countries",phoneOnlyCountriesPlaceholder:"e.g. IL, US, GB",phoneOnlyCountriesHelp:"Comma-separated ISO 3166-1 alpha-2 country codes. Leave empty to show all countries.",selectMultiselect:"Multiple Selection",dateEnableTime:"Enable Time",dateMin:"Min Date",dateMax:"Max Date",rangeMulti:"Range (Two Handles)",radioThin:"Compact Style",radioHideRadio:"Hide Radio Circle",radioAlign:"Item Alignment",radioAlignStart:"Start",radioAlignCenter:"Center",radioAlignEnd:"End",textIcon:"End Icon",textIconStart:"Start Icon",fileMultiple:"Allow Multiple Files",fileHeight:"Height",fileAccept:"Accepted File Types",fileAcceptPlaceholder:"e.g. image/*,.pdf",fileTheme:"Theme",fileThemeDropzone:"Dropzone",fileThemeBasic:"Basic",fileShowIcon:"Show Icon",fileIcon:"Icon Name"},iconPicker:{none:"None",search:"Search icons...",noResults:"No icons found"},schemaBuilder:{fieldId:"Field ID",fieldIdDesc:"Technical name for API/database",fieldLabel:"Field Label",fieldLabelPlaceholder:"Enter field label",description:"Description (optional)",descriptionPlaceholder:"Help text for this field",requiredField:"Required field",required:"Required",textValidations:"Text Validations",format:"Format",minimumLength:"Minimum Length",maximumLength:"Maximum Length",noMinimum:"No minimum",noMaximum:"No maximum",numberValidations:"Number Validations",minimumValue:"Minimum Value",maximumValue:"Maximum Value",stepMultipleOf:"Step / Multiple Of",anyValue:"Any value",addField:"Add Field",noFieldsClickAbove:"Click a button above to add your first field",patternPlaceholder:"e.g., ^[A-Z]+$",fieldTypes:{shortText:"Short Text",longText:"Long Text",number:"Number",integer:"Integer",yesNo:"Yes/No",dropdown:"Dropdown",email:"Email",phone:"Phone",date:"Date",unknown:"Unknown"},formats:{plainText:"Plain Text",email:"Email",url:"URL",date:"Date",dateTime:"Date & Time",time:"Time",phone:"Phone"}}},wA={today:"Today",views:{week:"Week",month:"Month",day:"Day",agenda:"Agenda"},agenda:{time:"Time",event:"Event",eventsCount:"{n} event | {n} events",noEvents:"No events"}},$A={addTo:"Add to {name}",addToCalendar:"Add to Calendar",google:"Google Calendar",apple:"Apple Calendar",outlook:"Outlook",office365:"Office 365",yahoo:"Yahoo Calendar",ics:"Calendar (ICS file)"};var kA={modalConfirm:GD,upload:YD,pagination:XD,form:KD,password:JD,select:ZD,fieldArray:QD,arrayInput:eA,btn:tA,toast:nA,filter:rA,multiStep:oA,addressSearch:aA,importData:iA,timeAgo:lA,dialogForm:sA,tel:cA,email:uA,date:dA,spreadsheet:fA,lightbox:mA,color:pA,pageDesigner:hA,collection:gA,datastores:vA,admin:yA,userManagement:bA,forms:_A,calendar:wA,addToCalendar:$A};const EA={title:"Confirmar",message:"¿Estás seguro de que quieres continuar?",confirm:"Confirmar",cancel:"Cancelar"},CA={upload:"Subir",uploading:"Subiendo {count} archivo{plural}...",noFile:"Ningún archivo seleccionado",dropPlaceholder:"Arrastra y suelta archivos aquí o haz clic para subir",delete:"Eliminar",replace:"Reemplazar",download:"Descargar"},SA={of:"de",prev:"Anterior",next:"Siguiente"},xA={required:"Este campo es obligatorio",invalidEmail:"Introduce un correo electrónico válido",invalidUrl:"Introduce una URL válida",minLength:"Debe tener al menos {min} caracteres",maxLength:"Debe tener como máximo {max} caracteres",minValue:"Debe ser al menos {min}",maxValue:"Debe ser como máximo {max}",pattern:"Formato inválido",passwordStrength:"Fortaleza de la contraseña"},TA={veryWeak:"Muy débil",weak:"Débil",fair:"Regular",good:"Buena",strong:"Fuerte"},NA={placeholder:"Seleccionar",search:"Buscar",yes:"Sí",no:"No"},DA={loadDefault:"Cargar {label} predeterminado"},AA={item:"Elemento"},BA={loading:"Cargando..."},MA={success:"Éxito",error:"Error",warning:"Advertencia",info:"Información"},LA={filter:"Filtro",noActiveFilters:"Sin filtros activos",connectors:{and:"Y",or:"O"},operators:{eq:"Igual a",ne:"No igual a",gt:"Mayor que",ge:"Mayor o igual",lt:"Menor que",le:"Menor o igual",co:"Contiene",sw:"Empieza con",ew:"Termina con",pr:"Presente",in:"En lista",nin:"No en lista"},placeholders:{selectField:"Seleccionar campo",selectOption:"Seleccionar opción",selectDate:"Seleccionar fecha",enterValue:"Valor"},buttons:{addCondition:"Añadir condición",clearAll:"Limpiar todo",save:"Guardar"}},PA={previous:"Anterior",next:"Siguiente",complete:"Completar",step:"Paso {current} de {total}"},IA={placeholder:"Introduce una dirección"},VA={close:"Cerrar",cancel:"Cancelar",importData:"Importar datos",changeFile:"Cambiar archivo",selectSheet:"Seleccionar hoja",hasHeaders:"Marcar si el archivo tiene fila de encabezado",sourceKeyField:"Campo clave de origen (de este archivo)",relatedKeyField:"Campo clave relacionado (del archivo relacionado)",selectSourceValue:"Seleccionar valor de origen",sourceValue:"Valor de origen",selectTargetValue:"Seleccionar valor de destino",targetValue:"Valor de destino",selectColumn:"Seleccionar columna..."},OA={year:"año",month:"mes",week:"semana",day:"día",hour:"hora",minute:"minuto",second:"segundo",ago:"hace",in:"en",justNow:"Justo ahora"},RA={save:"Guardar",cancel:"Cancelar",delete:"Eliminar",validationError:"Por favor corrija los errores de validación antes de enviar",errorOccurred:"Ocurrió un error"},FA={phoneNumber:"Número de teléfono",invalidPhone:"Por favor introduce un número de teléfono válido"},zA={invalidEmail:"Introduce un correo electrónico válido",invalidDomain:"El dominio de este correo electrónico parece no ser válido",disposableEmail:"Por favor, utilice una dirección de correo electrónico que no sea desechable",didYouMean:"¿Quisiste decir {suggestion}?",validating:"Validando correo electrónico..."},UA={invalidFormat:"Formato de fecha inválido"},HA={wrapText:"Ajuste de texto",selectAll:"Seleccionar todo",clearAll:"Limpiar todo"},WA={openFile:"Abrir archivo"},jA={placeholder:"Introduce un color"},qA={deleteBlockConfirm:"¿Estás seguro de que quieres eliminar esta sección?",saving:"Guardando...",error:"Error",save:"Guardar",saved:"Guardado",title:"Título",slug:"Slug",slugPlaceholder:"mi-pagina",pageSettings:"Configuración de página",deletePage:"Eliminar página",deletePageConfirm:"Eliminar esta página no se puede deshacer.",newPage:"Nueva página",createPage:"Crear página",addNewBlock:"Añadir nuevo bloque",searchBlock:"Buscar bloque",page:"Página",pageStructure:"Estructura de página",clickToEdit:"Haz clic en la sección para editar",addNewBlockHere:"Haz clic aquí para añadir un",newBlock:"nuevo bloque",adding:"Añadiendo",removeSection:"Eliminar sección",closeEditor:"Cerrar editor (ESC)",blockNotEditable:"El contenido de este bloque proviene de una fuente de datos",blockNotEditableDesc:"y no se puede editar aquí.",dataSourceHint:"Parte del contenido de este bloque proviene de una fuente de datos. Para cambiarlo, edita los datos directamente.",screenTooSmall:"La pantalla es demasiado pequeña para este editor. Prueba reducir el zoom o usar una pantalla más grande.",cancel:"Cancelar",publish:"Publicar",unpublish:"Despublicar",discard:"Descartar",selectItemPreview:"Seleccionar elemento para vista previa",language:"Idioma",defaultLanguage:"Predeterminado",setAsDefault:"Establecer como predeterminado",removeLanguage:"Eliminar idioma",languageCode:"es / en / fr",removeLanguageConfirm:'¿Eliminar idioma "{locale}"?',seoTitle:"Título SEO",seoDescription:"Descripción SEO",ogImageUrl:"URL de imagen OG",showGrid:"Mostrar cuadrícula",hideGrid:"Ocultar cuadrícula",search:"Buscar...",lastSaved:"Último guardado",saveNow:"Guardar ahora",publishDestination:"Elegir destino de publicación",publishAll:"Publicar todo",lastPublished:"Última publicación",published:"Publicado",notPublished:"No publicado aún",production:"Producción",publishFailed:"Error al publicar"},GA={content:"Contenido",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Boletín",agent:"Agentes",users:"Usuarios",tenants:"Organizaciones"},YA={title:"Usuarios",notConfigured:"La interfaz de gestión de usuarios no está configurada",notConfiguredHint:"Pasa userApi a createAuthAdmin() para habilitar esta pantalla.",team:"Equipo",filterByRole:"Filtrar por rol",invite:"Invitar",pendingInvitations:"Invitaciones pendientes",pending:"Pendiente",resend:"Reenviar",delete:"Eliminar",activeUsers:"Usuarios activos",active:"Activo",edit:"Editar",remove:"Eliminar",noUsers:"No hay usuarios aún",inviteFirst:"Invita al primero",inviteTitle:"Invitar usuario",firstName:"Nombre",lastName:"Apellido",email:"Correo electrónico",role:"Rol",message:"Mensaje",inviteSent:"Invitación reenviada",inviteError:"Error al enviar la invitación",deleteInviteConfirm:"¿Eliminar la invitación?",deleteInviteError:"Error al eliminar la invitación",removeUserConfirm:"¿Eliminar a {email}?"},XA={today:"Hoy",views:{week:"Semana",month:"Mes",day:"Día",agenda:"Agenda"},agenda:{time:"Hora",event:"Evento",eventsCount:"{n} evento | {n} eventos",noEvents:"Sin eventos"}},KA={addTo:"Agregar a {name}",addToCalendar:"Agregar al calendario"};var JA={modalConfirm:EA,upload:CA,pagination:SA,form:xA,password:TA,select:NA,fieldArray:DA,arrayInput:AA,btn:BA,toast:MA,filter:LA,multiStep:PA,addressSearch:IA,importData:VA,timeAgo:OA,dialogForm:RA,tel:FA,email:zA,date:UA,spreadsheet:HA,lightbox:WA,color:jA,pageDesigner:qA,admin:GA,userManagement:YA,calendar:XA,addToCalendar:KA};const ZA={title:"Confirmer",message:"Êtes-vous sûr de vouloir continuer ?",confirm:"Confirmer",cancel:"Annuler"},QA={upload:"Télécharger",uploading:"Téléchargement de {count} fichier{plural} en cours...",noFile:"Aucun fichier sélectionné",dropPlaceholder:"Glissez-déposez des fichiers ici ou cliquez pour télécharger",delete:"Supprimer",replace:"Remplacer",download:"Télécharger"},e9={of:"de",prev:"Précédent",next:"Suivant"},t9={required:"Ce champ est obligatoire",invalidEmail:"Veuillez entrer une adresse email valide",invalidUrl:"Veuillez entrer une URL valide",minLength:"Doit contenir au moins {min} caractères",maxLength:"Doit contenir au maximum {max} caractères",minValue:"Doit être au moins {min}",maxValue:"Doit être au maximum {max}",pattern:"Format invalide",passwordStrength:"Force du mot de passe"},n9={veryWeak:"Très faible",weak:"Faible",fair:"Passable",good:"Bonne",strong:"Forte"},r9={placeholder:"Sélectionner",search:"Rechercher",yes:"Oui",no:"Non"},o9={loadDefault:"Charger {label} par défaut"},a9={item:"Élément"},i9={loading:"Chargement..."},l9={success:"Succès",error:"Erreur",warning:"Avertissement",info:"Information"},s9={filter:"Filtre",noActiveFilters:"Aucun filtre actif",connectors:{and:"Et",or:"Ou"},operators:{eq:"Égal à",ne:"Différent de",gt:"Supérieur à",ge:"Supérieur ou égal",lt:"Inférieur à",le:"Inférieur ou égal",co:"Contient",sw:"Commence par",ew:"Se termine par",pr:"Présent",in:"Dans la liste",nin:"Pas dans la liste"},placeholders:{selectField:"Sélectionner un champ",selectOption:"Sélectionner une option",selectDate:"Sélectionner une date",enterValue:"Valeur"},buttons:{addCondition:"Ajouter une condition",clearAll:"Tout effacer",save:"Enregistrer"}},c9={previous:"Précédent",next:"Suivant",complete:"Terminer",step:"Étape {current} sur {total}"},u9={placeholder:"Entrez une adresse"},d9={close:"Fermer",cancel:"Annuler",importData:"Importer les données",changeFile:"Changer de fichier",selectSheet:"Sélectionner la feuille",hasHeaders:"Cochez si le fichier a une ligne d'en-tête",sourceKeyField:"Champ clé source (de ce fichier)",relatedKeyField:"Champ clé lié (du fichier lié)",selectSourceValue:"Sélectionner la valeur source",sourceValue:"Valeur source",selectTargetValue:"Sélectionner la valeur cible",targetValue:"Valeur cible",selectColumn:"Sélectionner une colonne..."},f9={year:"an",month:"mois",week:"semaine",day:"jour",hour:"heure",minute:"minute",second:"seconde",ago:"il y a",in:"dans",justNow:"À l'instant"},m9={save:"Enregistrer",cancel:"Annuler",delete:"Supprimer",validationError:"Veuillez corriger les erreurs de validation avant de soumettre",errorOccurred:"Une erreur est survenue"},p9={phoneNumber:"Numéro de téléphone",invalidPhone:"Veuillez entrer un numéro de téléphone valide"},h9={invalidEmail:"Veuillez entrer une adresse email valide",invalidDomain:"Le domaine de cet email semble invalide",disposableEmail:"Veuillez utiliser une adresse e-mail non jetable",didYouMean:"Vouliez-vous dire {suggestion} ?",validating:"Validation de l'e-mail..."},g9={invalidFormat:"Format de date invalide"},v9={wrapText:"Renvoyer à la ligne",selectAll:"Tout sélectionner",clearAll:"Tout effacer"},y9={openFile:"Ouvrir le fichier"},b9={placeholder:"Entrez une couleur"},_9={deleteBlockConfirm:"Êtes-vous sûr de vouloir supprimer cette section ?",saving:"Enregistrement...",error:"Erreur",save:"Enregistrer",saved:"Enregistré",title:"Titre",slug:"Slug",slugPlaceholder:"ma-page",pageSettings:"Paramètres de la page",deletePage:"Supprimer la page",deletePageConfirm:"La suppression de cette page ne peut pas être annulée.",newPage:"Nouvelle page",createPage:"Créer une page",addNewBlock:"Ajouter un nouveau bloc",searchBlock:"Rechercher un bloc",page:"Page",pageStructure:"Structure de la page",clickToEdit:"Cliquez sur la section pour éditer",addNewBlockHere:"Cliquez ici pour ajouter un",newBlock:"nouveau bloc",adding:"Ajout",removeSection:"Supprimer la section",closeEditor:"Fermer l'éditeur (ESC)",blockNotEditable:"Le contenu de ce bloc provient d'une source de données",blockNotEditableDesc:"et ne peut pas être édité ici.",dataSourceHint:"Une partie du contenu de ce bloc provient d'une source de données. Pour le modifier, éditez les données directement.",screenTooSmall:"L'écran est trop petit pour cet éditeur. Essayez de réduire le zoom ou d'utiliser un écran plus grand.",cancel:"Annuler",publish:"Publier",unpublish:"Dépublier",discard:"Ignorer",selectItemPreview:"Sélectionner un élément pour l'aperçu",language:"Langue",defaultLanguage:"Par défaut",setAsDefault:"Définir par défaut",removeLanguage:"Supprimer la langue",languageCode:"fr / en / es",removeLanguageConfirm:'Supprimer la langue "{locale}" ?',seoTitle:"Titre SEO",seoDescription:"Description SEO",ogImageUrl:"URL de l'image OG",showGrid:"Afficher la grille",hideGrid:"Masquer la grille",search:"Rechercher...",lastSaved:"Dernière sauvegarde",saveNow:"Enregistrer maintenant",publishDestination:"Choisir la destination",publishAll:"Tout publier",lastPublished:"Dernière publication",published:"Publié",notPublished:"Pas encore publié",production:"Production",publishFailed:"Échec de la publication"},w9={content:"Contenu",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Newsletter",agent:"Agents",users:"Utilisateurs",tenants:"Organisations"},$9={title:"Utilisateurs",notConfigured:"L'interface de gestion des utilisateurs n'est pas configurée",notConfiguredHint:"Passez userApi à createAuthAdmin() pour activer cet écran.",team:"Équipe",filterByRole:"Filtrer par rôle",invite:"Inviter",pendingInvitations:"Invitations en attente",pending:"En attente",resend:"Renvoyer",delete:"Supprimer",activeUsers:"Utilisateurs actifs",active:"Actif",edit:"Modifier",remove:"Retirer",noUsers:"Aucun utilisateur pour l'instant",inviteFirst:"Invitez le premier",inviteTitle:"Inviter un utilisateur",firstName:"Prénom",lastName:"Nom",email:"E-mail",role:"Rôle",message:"Message",inviteSent:"Invitation renvoyée",inviteError:"Erreur lors de l'envoi de l'invitation",deleteInviteConfirm:"Supprimer l'invitation ?",deleteInviteError:"Erreur lors de la suppression de l'invitation",removeUserConfirm:"Retirer {email} ?"},k9={today:"Aujourd'hui",views:{week:"Semaine",month:"Mois",day:"Jour",agenda:"Agenda"},agenda:{time:"Heure",event:"Événement",eventsCount:"{n} événement | {n} événements",noEvents:"Aucun événement"}},E9={addTo:"Ajouter à {name}",addToCalendar:"Ajouter au calendrier"};var C9={modalConfirm:ZA,upload:QA,pagination:e9,form:t9,password:n9,select:r9,fieldArray:o9,arrayInput:a9,btn:i9,toast:l9,filter:s9,multiStep:c9,addressSearch:u9,importData:d9,timeAgo:f9,dialogForm:m9,tel:p9,email:h9,date:g9,spreadsheet:v9,lightbox:y9,color:b9,pageDesigner:_9,admin:w9,userManagement:$9,calendar:k9,addToCalendar:E9};const S9={title:"אישור",message:"האם אתה בטוח שברצונך להמשיך?",confirm:"אישור",cancel:"ביטול"},x9={upload:"העלה",uploading:"מעלה {count} קבצים...",noFile:"לא נבחר קובץ",dropPlaceholder:"גרור ושחרר קבצים כאן או לחץ להעלאה",delete:"מחק",replace:"החלף",download:"הורד"},T9={of:"מתוך",prev:"הקודם",next:"הבא"},N9={required:"שדה זה נדרש",invalidEmail:"הזן כתובת אימייל חוקית",invalidUrl:"הזן כתובת URL חוקית",minLength:"חייב להכיל לפחות {min} תווים",maxLength:"חייב להכיל לכל היותר {max} תווים",minValue:"חייב להיות לפחות {min}",maxValue:"חייב להיות לכל היותר {max}",pattern:"פורמט לא חוקי",passwordStrength:"חוזק סיסמה"},D9={veryWeak:"חלשה מאוד",weak:"חלשה",fair:"סבירה",good:"טובה",strong:"חזקה"},A9={placeholder:"בחר",search:"חיפוש",yes:"כן",no:"לא"},B9={loadDefault:"טען {label} ברירת מחדל"},M9={item:"פריט"},L9={loading:"טוען..."},P9={success:"הצלחה",error:"שגיאה",warning:"אזהרה",info:"מידע"},I9={filter:"פילטר",noActiveFilters:"אין פילטרים פעילים",connectors:{and:"וגם",or:"או"},operators:{eq:"שווה ל",ne:"לא שווה ל",gt:"גדול מ",ge:"גדול או שווה ל",lt:"קטן מ",le:"קטן או שווה ל",co:"מכיל",sw:"מתחיל ב",ew:"מסתיים ב",pr:"קיים",in:"ברשימה",nin:"לא ברשימה"},placeholders:{selectField:"בחר שדה",selectOption:"בחירה",selectDate:"בחירת תאריך",enterValue:"ערך"},buttons:{addCondition:"הוספת תנאי",clearAll:"נקה הכל",save:"שמירה"}},V9={previous:"הקודם",next:"הבא",complete:"סיים",step:"שלב {current} מתוך {total}"},O9={placeholder:"הזן כתובת"},R9={close:"סגור",cancel:"ביטול",importData:"ייבא נתונים",changeFile:"החלף קובץ",selectSheet:"בחר גיליון",hasHeaders:"סמן אם לקובץ יש שורת כותרת",sourceKeyField:"שדה מפתח מקור (מהקובץ הזה)",relatedKeyField:"שדה מפתח קשור (מהקובץ הקשור)",selectSourceValue:"בחר ערך מקור",sourceValue:"ערך מקור",selectTargetValue:"בחר ערך יעד",targetValue:"ערך יעד",selectColumn:"בחר עמודה..."},F9={year:{singular:"שנה",plural:"שנים"},month:{singular:"חודש",plural:"חודשים"},week:{singular:"שבוע",plural:"שבועות"},day:{singular:"יום",plural:"ימים"},hour:{singular:"שעה",plural:"שעות"},minute:{singular:"דקה",plural:"דקות"},second:{singular:"שנייה",plural:"שניות"},ago:"לפני",in:"בעוד",justNow:"זה עתה"},z9={save:"שמור",cancel:"ביטול",delete:"מחק",validationError:"אנא תקן את שגיאות האימות לפני השליחה",errorOccurred:"אירעה שגיאה"},U9={phoneNumber:"מספר טלפון",invalidPhone:"אנא הזן מספר טלפון תקין"},H9={invalidEmail:"הזן כתובת אימייל חוקית",invalidDomain:"נראה שדומיין האימייל אינו חוקי",disposableEmail:"אנא השתמש בכתובת אימייל שאינה חד-פעמית",didYouMean:"האם התכוונת ל-{suggestion}?",validating:"מאמת כתובת אימייל..."},W9={invalidFormat:"פורמט תאריך לא חוקי"},j9={wrapText:"גלישת טקסט",selectAll:"בחר הכל",clearAll:"נקה הכל"},q9={openFile:"פתח קובץ"},G9={placeholder:"הזן צבע"},Y9={deleteBlockConfirm:"האם אתם בטוחים שברצונכם למחוק את הסקשן הזה?",saving:"שומר...",error:"שגיאה",save:"שמירה",saved:"נשמר",title:"כותרת",slug:"נתיב (slug)",slugPlaceholder:"my-page",pageSettings:"הגדרות עמוד",deletePage:"מחיקת עמוד",deletePageConfirm:"מחיקת עמוד זה אינה ניתנת לביטול.",newPage:"עמוד חדש",createPage:"צור עמוד",addNewBlock:"הוספת בלוק חדש",searchBlock:"חיפוש בלוק",page:"עמוד",pageStructure:"מבנה העמוד",clickToEdit:"לחצו על מקטע כדי לערוך",addNewBlockHere:"לחצו כאן להוספת",newBlock:"בלוק חדש",adding:"מוסיף",removeSection:"הסרת מקטע",closeEditor:"סגור עורך (ESC)",blockNotEditable:"תוכן הבלוק הזה מגיע ממקור נתונים",blockNotEditableDesc:"ואינו ניתן לעריכה כאן.",dataSourceHint:"ייתכן שחלק מהתוכן בבלוק זה מגיע ממקור נתונים. כדי לשנות אותו, ערוך את הדאטה ישירות.",screenTooSmall:"המסך קטן מדי לעורך הזה. נסו להקטין זום או להשתמש במסך גדול יותר.",cancel:"ביטול",publish:"פרסום",unpublish:"ביטול פרסום",discard:"ביטול",selectItemPreview:"בחר פריט לתצוגה מקדימה",language:"שפה",defaultLanguage:"ברירת מחדל",setAsDefault:"קביעת ברירת מחדל",removeLanguage:"הסרת שפה",languageCode:"he / en / fr",removeLanguageConfirm:'הסר את שפה "{locale}"?',seoTitle:"SEO כותרת",seoDescription:"SEO תיאור",ogImageUrl:"OG Image URL",showGrid:"הצג רשת",hideGrid:"הסתר רשת",search:"חיפוש...",lastSaved:"נשמר לאחרונה",saveNow:"שמור עכשיו",publishDestination:"בחר יעד לפרסום",publishAll:"פרסם הכל",lastPublished:"פורסם לאחרונה",published:"פורסם",notPublished:"טרם פורסם",production:"פרודקשן",publishFailed:"פרסום נכשל"},X9={loadError:"טעינה נכשלה",newItemTitle:"פריט חדש — {label}",createSubmit:"יצירה",editTitle:"עריכה",saveSubmit:"שמירה",importTitle:"ייבוא JSON — {label}",importSubmit:"ייבוא",importJsonLabel:"תוכן JSON",importJsonHint:"מערך של אובייקטים [ {...}, {...} ] או אובייקט בודד",importSummary:"{imported} יובאו · {failed} נכשלו",deleteItemTitle:"מחיקת פריט",deleteItemMessage:"האם למחוק פריט זה?",deleteConfirm:"מחיקה",batchDeleteTitle:"מחיקה קבוצתית",batchDeleteMessage:"האם למחוק {count} פריטים?",batchDeleteSummary:"{deleted} נמחקו · {failed} נכשלו",batchUpdateTitle:"עדכון קבוצתי — {count} פריטים",updateAllSubmit:"עדכן הכל",batchUpdateSummary:"עודכנו · {failed} נכשלו",selectedCount:"{count} נבחרו",updateBtn:"עדכון",deleteBtn:"מחיקה",searchPlaceholder:"חיפוש...",refreshTooltip:"ריענון",importTooltip:"ייבוא JSON",newItemBtn:"פריט חדש",deleteTooltip:"מחיקה",reorderTooltip:"שינוי סדר",reorderSaving:"שומר סדר..."},K9={selectCollection:"בחרו קולקציה מהרשימה",fieldName:"שם",fieldStore:"Store",fieldStoreHint:"לדוגמה: default",fieldCollection:"Collection",fieldCollectionHint:"לדוגמה: my_collection",fieldDescription:"תיאור",createTitle:"יצירת Datastore חדש",createSubmit:"יצירה",editTitle:"עריכת {name}",saveSubmit:"שמירה",addBtn:"הוספת Datastore",empty:"אין Datastores עדיין",deleteConfirm:'למחוק את "{name}"?'},J9={content:"תוכן",blox:"בלוקס",whatsapp:"וואטסאפ",newsletter:"ניוזלטר",agent:"סוכנים",users:"משתמשים",tenants:"ארגונים"},Z9={title:"משתמשים",notConfigured:"ממשק ניהול משתמשים לא מוגדר",notConfiguredHint:"העבר userApi ל-createAuthAdmin() כדי להפעיל מסך זה.",team:"צוות",filterByRole:"סנן לפי תפקיד",invite:"הזמנה",pendingInvitations:"הזמנות ממתינות",pending:"ממתין",resend:"שלח מחדש",delete:"מחיקה",activeUsers:"משתמשים פעילים",active:"פעיל",edit:"עריכה",remove:"הסרה",noUsers:"אין משתמשים עדיין",inviteFirst:"הזמן את הראשון",inviteTitle:"הזמנת משתמש",firstName:"שם פרטי",lastName:"שם משפחה",email:"אימייל",role:"תפקיד",message:"הודעה",inviteSent:"ההזמנה נשלחה מחדש",inviteError:"שגיאה בשליחת ההזמנה",deleteInviteConfirm:"למחוק את ההזמנה?",deleteInviteError:"שגיאה במחיקת ההזמנה",removeUserConfirm:"להסיר את {email}?"},Q9={title:"טפסים",refresh:"רענן",newForm:"טופס חדש",createForm:"יצירת טופס",noForms:"אין טפסים עדיין",noFormsDesc:"צור את הטופס הראשון שלך כדי להתחיל",active:"פעיל",inactive:"לא פעיל",submissionsOnly:"הגשות בלבד",noDefinition:"אין הגדרת טופס - הצג הגשות",fieldCount:"{n} שדות",createdAt:"נוצר {date}",editor:{newForm:"טופס חדש",builder:"בנאי",submissions:"הגשות",edit:"עריכה",preview:"תצוגה מקדימה",save:"שמור",create:"צור",formName:"שם הטופס *",formNamePlaceholder:"הכנס שם לטופס",description:"תיאור",descriptionPlaceholder:"תיאור אופציונלי",active:"פעיל",deleteForm:"מחק טופס",deleteConfirm:"האם אתה בטוח שברצונך למחוק טופס זה?",submit:"שלח"},submissions:{title:"הגשות",exportCsv:"יצוא CSV",statusPlaceholder:"סטטוס",noSubmissions:"לא נמצאו הגשות",count:"אין הגשות | הגשה אחת | {n} הגשות",date:"תאריך",status:"סטטוס",statusAll:"הכל",statusSaved:"נשמר",statusDraft:"טיוטה",statusProcessed:"טופל",statusAbandoned:"ננטש",statusError:"שגיאה",statusSpam:"ספאם"},builder:{noFields:"אין שדות עדיין",noFieldsDesc:"לחץ על + להוספת שדה ראשון",noFieldsDefined:"לא הוגדרו שדות",selectField:"בחר שדה לעריכת הגדרותיו",tooSmall:"החלון קטן מידי",tooSmallDesc:"הגדל את החלון לפחות ל-1000px לעריכת הטופס"},fieldSettings:{headingText:"טקסט כותרת",noDividerSettings:"אין הגדרות לקו מפריד",label:"תווית",fieldKey:"מפתח שדה",placeholder:"טקסט placeholder",helpText:"טקסט עזרה",required:"שדה חובה",options:"אפשרויות",addOption:"הוסף אפשרות",validation:"ולידציה",minLength:"אורך מינימלי",maxLength:"אורך מקסימלי",pattern:"תבנית (RegEx)",min:"מינימום",max:"מקסימום",step:"קפיצה",removeField:"הסר שדה",columnWidth:"רוחב עמודה",columnHeight:"גובה עמודה",optionLabel:"תווית",optionValue:"ערך",sectionHeader:"כותרת סעיף",fieldPrefix:"שדה",removeFieldTitle:"הסר שדה",removeTitle:"הסר",richTextVariant:"סרגלת כלים",richTextVariantFull:"מלאה",richTextVariantBasic:"בסיסי",richTextVariantSimple:"פשוטה",textareaRows:"שורות",textareaAutoHeight:"גובה אוטומטי",numberLayout:"סגנון ספינר",numberLayoutDefault:"רגיל",numberLayoutVertical:"אנכי",numberLayoutHorizontal:"אופקי",numberSpinner:"הצג ספינר",phoneOnlyCountries:"מדינות מותרות",phoneOnlyCountriesPlaceholder:"לדוגמא: IL, US, GB",phoneOnlyCountriesHelp:"קודי מדינה מופרדים בפסיק (ISO 3166-1 alpha-2). השאר ריק להצג כל המדינות.",selectMultiselect:"בחירה מרובית",dateEnableTime:"אפשר בחירת שעה",dateMin:"תאריך מינימלי",dateMax:"תאריך מקסימלי",rangeMulti:"טווח (שתי ידיות)",radioThin:"סגנון דחוס",radioHideRadio:"הסתר עיגול ה-radio",radioAlign:"יישור פריטים",radioAlignStart:"התחלה",radioAlignCenter:"מרכז",radioAlignEnd:"סוף",textIcon:"איקון סייום",textIconStart:"איקון התחלה",fileMultiple:"העלאת מספר קבצים",fileHeight:"גובה",fileAccept:"סוגי קבצים מותרים",fileAcceptPlaceholder:"לדוגמא: image/*,.pdf",fileTheme:"עיצוב",fileThemeDropzone:"Dropzone",fileThemeBasic:"פשוט",fileShowIcon:"הצג איקון",fileIcon:"שם איקון"},iconPicker:{none:"ללא",search:"חפש איקונים...",noResults:"לא נמצאו איקונים"},schemaBuilder:{fieldId:"מזהה שדה",fieldIdDesc:"שם טכני ל-API/מסד נתונים",fieldLabel:"תווית שדה",fieldLabelPlaceholder:"הכנס תווית לשדה",description:"תיאור (אופציונלי)",descriptionPlaceholder:"טקסט עזרה לשדה זה",requiredField:"שדה חובה",required:"חובה",textValidations:"ולידציות טקסט",format:"פורמט",minimumLength:"אורך מינימלי",maximumLength:"אורך מקסימלי",noMinimum:"ללא מינימום",noMaximum:"ללא מקסימום",numberValidations:"ולידציות מספר",minimumValue:"ערך מינימלי",maximumValue:"ערך מקסימלי",stepMultipleOf:"קפיצה / כפולה של",anyValue:"כל ערך",addField:"הוסף שדה",noFieldsClickAbove:"לחץ על כפתור למעלה להוספת השדה הראשון",patternPlaceholder:"לדוגמה: ^[A-Z]+$",fieldTypes:{shortText:"טקסט קצר",longText:"טקסט ארוך",number:"מספר",integer:"מספר שלם",yesNo:"כן/לא",dropdown:"רשימה נפתחת",email:"אימייל",phone:"טלפון",date:"תאריך",unknown:"לא ידוע"},formats:{plainText:"טקסט רגיל",email:"אימייל",url:"כתובת URL",date:"תאריך",dateTime:"תאריך ושעה",time:"שעה",phone:"טלפון"}}},eB={today:"היום",views:{week:"שבוע",month:"חודש",day:"יום",agenda:"סדר יום"},agenda:{time:"שעה",event:"אירוע",eventsCount:"אירוע אחד | {n} אירועים",noEvents:"אין אירועים"}},tB={addTo:"הוסף ל{name}",addToCalendar:"הוסף ליומן",google:"יומן Google",apple:"יומן Apple",outlook:"Outlook",office365:"Office 365",yahoo:"יומן Yahoo",ics:"יומן (קובץ ICS)"};var nB={modalConfirm:S9,upload:x9,pagination:T9,form:N9,password:D9,select:A9,fieldArray:B9,arrayInput:M9,btn:L9,toast:P9,filter:I9,multiStep:V9,addressSearch:O9,importData:R9,timeAgo:F9,dialogForm:z9,tel:U9,email:H9,date:W9,spreadsheet:j9,lightbox:q9,color:G9,pageDesigner:Y9,collection:X9,datastores:K9,admin:J9,userManagement:Z9,forms:Q9,calendar:eB,addToCalendar:tB};const rB={title:"Conferma",message:"Sei sicuro di voler continuare?",confirm:"Conferma",cancel:"Annulla"},oB={upload:"Carica",uploading:"Caricamento di {count} file{plural} in corso...",noFile:"Nessun file selezionato",dropPlaceholder:"Trascina e rilascia i file qui o clicca per caricare",delete:"Elimina",replace:"Sostituisci",download:"Scarica"},aB={of:"di",prev:"Precedente",next:"Successivo"},iB={required:"Questo campo è obbligatorio",invalidEmail:"Inserisci un indirizzo email valido",invalidUrl:"Inserisci un URL valido",minLength:"Deve contenere almeno {min} caratteri",maxLength:"Deve contenere al massimo {max} caratteri",minValue:"Deve essere almeno {min}",maxValue:"Deve essere al massimo {max}",pattern:"Formato non valido",passwordStrength:"Forza della password"},lB={veryWeak:"Molto debole",weak:"Debole",fair:"Discreta",good:"Buona",strong:"Forte"},sB={placeholder:"Seleziona",search:"Cerca",yes:"Sì",no:"No"},cB={loadDefault:"Carica {label} predefinito"},uB={item:"Elemento"},dB={loading:"Caricamento..."},fB={success:"Successo",error:"Errore",warning:"Avviso",info:"Informazione"},mB={filter:"Filtro",noActiveFilters:"Nessun filtro attivo",connectors:{and:"E",or:"O"},operators:{eq:"Uguale a",ne:"Diverso da",gt:"Maggiore di",ge:"Maggiore o uguale",lt:"Minore di",le:"Minore o uguale",co:"Contiene",sw:"Inizia con",ew:"Finisce con",pr:"Presente",in:"Nella lista",nin:"Non nella lista"},placeholders:{selectField:"Seleziona campo",selectOption:"Seleziona opzione",selectDate:"Seleziona data",enterValue:"Valore"},buttons:{addCondition:"Aggiungi condizione",clearAll:"Cancella tutto",save:"Salva"}},pB={previous:"Precedente",next:"Successivo",complete:"Completa",step:"Passo {current} di {total}"},hB={placeholder:"Inserisci un indirizzo"},gB={close:"Chiudi",cancel:"Annulla",importData:"Importa dati",changeFile:"Cambia file",selectSheet:"Seleziona foglio",hasHeaders:"Seleziona se il file ha una riga di intestazione",sourceKeyField:"Campo chiave sorgente (da questo file)",relatedKeyField:"Campo chiave correlato (dal file correlato)",selectSourceValue:"Seleziona valore sorgente",sourceValue:"Valore sorgente",selectTargetValue:"Seleziona valore di destinazione",targetValue:"Valore di destinazione",selectColumn:"Seleziona colonna..."},vB={year:"anno",month:"mese",week:"settimana",day:"giorno",hour:"ora",minute:"minuto",second:"secondo",ago:"fa",in:"tra",justNow:"Poco fa"},yB={save:"Salva",cancel:"Annulla",delete:"Elimina",validationError:"Correggi gli errori di validazione prima di inviare",errorOccurred:"Si è verificato un errore"},bB={phoneNumber:"Numero di telefono",invalidPhone:"Inserisci un numero di telefono valido"},_B={invalidEmail:"Inserisci un indirizzo email valido",invalidDomain:"Il dominio di questa email sembra non essere valido",disposableEmail:"Si prega di utilizzare un indirizzo email non temporaneo",didYouMean:"Intendevi {suggestion}?",validating:"Convalida dell'e-mail..."},wB={invalidFormat:"Formato data non valido"},$B={wrapText:"A capo automatico",selectAll:"Seleziona tutto",clearAll:"Cancella tutto"},kB={openFile:"Apri file"},EB={placeholder:"Inserisci un colore"},CB={deleteBlockConfirm:"Sei sicuro di voler eliminare questa sezione?",saving:"Salvataggio...",error:"Errore",save:"Salva",saved:"Salvato",title:"Titolo",slug:"Slug",slugPlaceholder:"la-mia-pagina",pageSettings:"Impostazioni pagina",deletePage:"Elimina pagina",deletePageConfirm:"L'eliminazione di questa pagina non può essere annullata.",newPage:"Nuova pagina",createPage:"Crea pagina",addNewBlock:"Aggiungi nuovo blocco",searchBlock:"Cerca blocco",page:"Pagina",pageStructure:"Struttura della pagina",clickToEdit:"Clicca sulla sezione per modificare",addNewBlockHere:"Clicca qui per aggiungere un",newBlock:"nuovo blocco",adding:"Aggiungendo",removeSection:"Rimuovi sezione",closeEditor:"Chiudi editor (ESC)",blockNotEditable:"Il contenuto di questo blocco proviene da una fonte di dati",blockNotEditableDesc:"e non può essere modificato qui.",dataSourceHint:"Parte del contenuto di questo blocco proviene da una fonte di dati. Per modificarlo, modifica i dati direttamente.",screenTooSmall:"Lo schermo è troppo piccolo per questo editor. Prova a ridurre lo zoom o utilizzare uno schermo più grande.",cancel:"Annulla",publish:"Pubblica",unpublish:"Rimuovi pubblicazione",discard:"Scarta",selectItemPreview:"Seleziona elemento per anteprima",language:"Lingua",defaultLanguage:"Predefinita",setAsDefault:"Imposta come predefinita",removeLanguage:"Rimuovi lingua",languageCode:"it / en / es",removeLanguageConfirm:'Rimuovere la lingua "{locale}"?',seoTitle:"Titolo SEO",seoDescription:"Descrizione SEO",ogImageUrl:"URL immagine OG",showGrid:"Mostra griglia",hideGrid:"Nascondi griglia",search:"Cerca...",lastSaved:"Ultimo salvataggio",saveNow:"Salva ora",publishDestination:"Scegli destinazione",publishAll:"Pubblica tutto",lastPublished:"Ultima pubblicazione",published:"Pubblicato",notPublished:"Non ancora pubblicato",production:"Produzione",publishFailed:"Pubblicazione fallita"},SB={content:"Contenuto",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Newsletter",agent:"Agenti",users:"Utenti",tenants:"Organizzazioni"},xB={title:"Utenti",notConfigured:"L'interfaccia di gestione utenti non è configurata",notConfiguredHint:"Passa userApi a createAuthAdmin() per abilitare questa schermata.",team:"Team",filterByRole:"Filtra per ruolo",invite:"Invita",pendingInvitations:"Inviti in sospeso",pending:"In sospeso",resend:"Reinvia",delete:"Elimina",activeUsers:"Utenti attivi",active:"Attivo",edit:"Modifica",remove:"Rimuovi",noUsers:"Nessun utente ancora",inviteFirst:"Invita il primo",inviteTitle:"Invita utente",firstName:"Nome",lastName:"Cognome",email:"Email",role:"Ruolo",message:"Messaggio",inviteSent:"Invito reinviato",inviteError:"Errore durante l'invio dell'invito",deleteInviteConfirm:"Eliminare l'invito?",deleteInviteError:"Errore durante l'eliminazione dell'invito",removeUserConfirm:"Rimuovere {email}?"},TB={today:"Oggi",views:{week:"Settimana",month:"Mese",day:"Giorno",agenda:"Agenda"},agenda:{time:"Ora",event:"Evento",eventsCount:"{n} evento | {n} eventi",noEvents:"Nessun evento"}},NB={addTo:"Aggiungi a {name}",addToCalendar:"Aggiungi al calendario"};var DB={modalConfirm:rB,upload:oB,pagination:aB,form:iB,password:lB,select:sB,fieldArray:cB,arrayInput:uB,btn:dB,toast:fB,filter:mB,multiStep:pB,addressSearch:hB,importData:gB,timeAgo:vB,dialogForm:yB,tel:bB,email:_B,date:wB,spreadsheet:$B,lightbox:kB,color:EB,pageDesigner:CB,admin:SB,userManagement:xB,calendar:TB,addToCalendar:NB};const AB={title:"Подтвердить",message:"Вы уверены, что хотите продолжить?",confirm:"Подтвердить",cancel:"Отмена"},BB={upload:"Загрузить",uploading:"Загрузка {count} файл{plural}...",noFile:"Файл не выбран",dropPlaceholder:"Перетащите файлы сюда или нажмите для загрузки",delete:"Удалить",replace:"Заменить",download:"Скачать"},MB={of:"из",prev:"Предыдущая",next:"Следующая"},LB={required:"Это поле обязательно для заполнения",invalidEmail:"Введите действительный адрес электронной почты",invalidUrl:"Введите действительный URL",minLength:"Должно содержать не менее {min} символов",maxLength:"Должно содержать не более {max} символов",minValue:"Должно быть не менее {min}",maxValue:"Должно быть не более {max}",pattern:"Неверный формат",passwordStrength:"Надежность пароля"},PB={veryWeak:"Очень слабый",weak:"Слабый",fair:"Средний",good:"Хороший",strong:"Надёжный"},IB={placeholder:"Выбрать",search:"Поиск",yes:"Да",no:"Нет"},VB={loadDefault:"Загрузить {label} по умолчанию"},OB={item:"Элемент"},RB={loading:"Загрузка..."},FB={success:"Успешно",error:"Ошибка",warning:"Предупреждение",info:"Информация"},zB={filter:"Фильтр",noActiveFilters:"Нет активных фильтров",connectors:{and:"И",or:"Или"},operators:{eq:"Равно",ne:"Не равно",gt:"Больше чем",ge:"Больше или равно",lt:"Меньше чем",le:"Меньше или равно",co:"Содержит",sw:"Начинается с",ew:"Заканчивается на",pr:"Присутствует",in:"В списке",nin:"Не в списке"},placeholders:{selectField:"Выберите поле",selectOption:"Выберите вариант",selectDate:"Выберите дату",enterValue:"Значение"},buttons:{addCondition:"Добавить условие",clearAll:"Очистить всё",save:"Сохранить"}},UB={previous:"Назад",next:"Далее",complete:"Завершить",step:"Шаг {current} из {total}"},HB={placeholder:"Введите адрес"},WB={close:"Закрыть",cancel:"Отмена",importData:"Импорт данных",changeFile:"Изменить файл",selectSheet:"Выбрать лист",hasHeaders:"Отметьте, если файл содержит строку заголовка",sourceKeyField:"Ключевое поле источника (из этого файла)",relatedKeyField:"Ключевое поле связанного (из связанного файла)",selectSourceValue:"Выберите исходное значение",sourceValue:"Исходное значение",selectTargetValue:"Выберите целевое значение",targetValue:"Целевое значение",selectColumn:"Выберите столбец..."},jB={year:"год",month:"месяц",week:"неделя",day:"день",hour:"час",minute:"минута",second:"секунда",ago:"назад",in:"через",justNow:"Только что"},qB={save:"Сохранить",cancel:"Отмена",delete:"Удалить",validationError:"Пожалуйста, исправьте ошибки валидации перед отправкой",errorOccurred:"Произошла ошибка"},GB={phoneNumber:"Номер телефона",invalidPhone:"Пожалуйста, введите действительный номер телефона"},YB={invalidEmail:"Введите действительный адрес электронной почты",invalidDomain:"Домен этого адреса электронной почты, похоже, недействителен",disposableEmail:"Пожалуйста, используйте постоянный адрес электронной почты",didYouMean:"Вы имели в виду {suggestion}?",validating:"Проверка адреса электронной почты..."},XB={invalidFormat:"Неверный формат даты"},KB={wrapText:"Перенос текста",selectAll:"Выбрать всё",clearAll:"Очистить всё"},JB={openFile:"Открыть файл"},ZB={placeholder:"Введите цвет"},QB={deleteBlockConfirm:"Вы уверены, что хотите удалить эту секцию?",saving:"Сохранение...",error:"Ошибка",save:"Сохранить",saved:"Сохранено",title:"Заголовок",slug:"Slug",slugPlaceholder:"moya-stranica",pageSettings:"Настройки страницы",deletePage:"Удалить страницу",deletePageConfirm:"Удаление этой страницы нельзя отменить.",newPage:"Новая страница",createPage:"Создать страницу",addNewBlock:"Добавить новый блок",searchBlock:"Поиск блоков",page:"Страница",pageStructure:"Структура страницы",clickToEdit:"Нажмите на секцию для редактирования",addNewBlockHere:"Нажмите здесь, чтобы добавить",newBlock:"новый блок",adding:"Добавление",removeSection:"Удалить секцию",closeEditor:"Закрыть редактор (ESC)",blockNotEditable:"Содержимое этого блока поступает из источника данных",blockNotEditableDesc:"и не может быть отредактировано здесь.",dataSourceHint:"Часть содержимого этого блока поступает из источника данных. Чтобы изменить его, отредактируйте данные напрямую.",screenTooSmall:"Экран слишком мал для этого редактора. Попробуйте уменьшить масштаб или использовать большой экран.",cancel:"Отмена",publish:"Опубликовать",unpublish:"Отменить публикацию",discard:"Отменить",selectItemPreview:"Выбрать элемент для предпросмотра",language:"Язык",defaultLanguage:"По умолчанию",setAsDefault:"Установить по умолчанию",removeLanguage:"Удалить язык",languageCode:"ru / en / fr",removeLanguageConfirm:'Удалить язык "{locale}"?',seoTitle:"Заголовок SEO",seoDescription:"Описание SEO",ogImageUrl:"URL изображения OG",showGrid:"Показать сетку",hideGrid:"Скрыть сетку",search:"Поиск...",lastSaved:"Последнее сохранение",saveNow:"Сохранить сейчас",publishDestination:"Выбрать место публикации",publishAll:"Опубликовать всё",lastPublished:"Последняя публикация",published:"Опубликовано",notPublished:"Ещё не опубликовано",production:"Продакшн",publishFailed:"Ошибка публикации"},e6={content:"Контент",blox:"Блокс",whatsapp:"WhatsApp",newsletter:"Рассылка",agent:"Агенты",users:"Пользователи",tenants:"Организации"},t6={title:"Пользователи",notConfigured:"Интерфейс управления пользователями не настроен",notConfiguredHint:"Передайте userApi в createAuthAdmin(), чтобы активировать этот экран.",team:"Команда",filterByRole:"Фильтр по роли",invite:"Пригласить",pendingInvitations:"Ожидающие приглашения",pending:"Ожидает",resend:"Отправить ещё раз",delete:"Удалить",activeUsers:"Активные пользователи",active:"Активен",edit:"Редактировать",remove:"Удалить",noUsers:"Пользователейещё нет",inviteFirst:"Пригласить первого",inviteTitle:"Приглашение пользователя",firstName:"Имя",lastName:"Фамилия",email:"Эл. почта",role:"Роль",message:"Сообщение",inviteSent:"Приглашение отправлено повторно",inviteError:"Ошибка при отправке приглашения",deleteInviteConfirm:"Удалить приглашение?",deleteInviteError:"Ошибка при удалении приглашения",removeUserConfirm:"Удалить {email}?"},n6={today:"Сегодня",views:{week:"Неделя",month:"Месяц",day:"День",agenda:"Повестка"},agenda:{time:"Время",event:"Событие",eventsCount:"{n} событие | {n} события | {n} событий",noEvents:"Нет событий"}},r6={addTo:"Добавить в {name}",addToCalendar:"Добавить в календарь"};var o6={modalConfirm:AB,upload:BB,pagination:MB,form:LB,password:PB,select:IB,fieldArray:VB,arrayInput:OB,btn:RB,toast:FB,filter:zB,multiStep:UB,addressSearch:HB,importData:WB,timeAgo:jB,dialogForm:qB,tel:GB,email:YB,date:XB,spreadsheet:KB,lightbox:JB,color:ZB,pageDesigner:QB,admin:e6,userManagement:t6,calendar:n6,addToCalendar:r6},Sc={en:kA,he:nB,it:DB,es:JA,fr:C9,ru:o6},Xi=null;function fg(e={}){const{locale:t="en",fallbackLocale:r="en",messages:o={}}=e,a=Object.keys(Sc),i={};for(const l of a)i[l]={...Sc[l]||{},...o[l]||{}};for(const l of Object.keys(o))i[l]||(i[l]=o[l]);return Xi=OD({locale:t,fallbackLocale:r,messages:i,legacy:!1,globalInjection:!0}),Xi}function $r(){if(!Xi)throw new Error("i18n not initialized. Call createI18n() first.");return Xi}function ft(){const e=$r().global;return{$t:e.t,t:e.t,locale:e.locale,availableLocales:e.availableLocales,fallbackLocale:e.fallbackLocale,n:e.n,d:e.d}}function ke(e){if(e!=null)return e.startsWith("$t:")?$r().global.t(e.slice(3)):e}var a6={class:"nav-text"},i6={key:1,class:"sidebar-group w100p"},l6={class:"nav-text flex-grow"},s6={class:"nav-text"},c6={class:"nav-text"},u6={class:"sidebar-flyout p-05"},d6={class:"sidebar-flyout-label"},f6=(0,n.defineComponent)({__name:"SidebarNavItem",props:{link:{},open:{type:Boolean},isMobile:{type:Boolean},bgColor:{},textColor:{},activeColor:{}},setup(e){const t=e,r=(0,da.useRoute)(),o=(0,n.computed)(()=>!!t.link.children?.length);function a(d){const f=d.to;return d.activeRoutes?.length?d.activeRoutes.some(m=>m==="/"?r.path===m:r.path===m||r.path.startsWith(`${m}/`)):f?f==="/"?r.path===f:r.path===f||r.path.startsWith(`${f}/`):!1}const i=(0,n.computed)(()=>t.link.children?.some(a)??!1),l=(0,n.computed)(()=>a(t.link)),s=(0,n.computed)(()=>l.value||o.value&&i.value),c=(0,n.ref)(i.value);(0,n.watch)(i,d=>{d&&(c.value=!0)});function u(){o.value?c.value=!c.value:t.link.action?.()}return(d,f)=>o.value?e.open||e.isMobile?((0,n.openBlock)(),(0,n.createElementBlock)("div",i6,[(0,n.createVNode)((0,n.unref)(ne),{fullWidth:"",alignTxt:"start",class:(0,n.normalizeClass)(["flex-shrink-0 px-075 sidebar-group-toggle",{"nav-btn-active":s.value}]),style:(0,n.normalizeStyle)({backgroundColor:s.value?e.activeColor:e.bgColor,color:s.value?"white":e.textColor}),onClick:u},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{name:e.link.icon,size:"1.2"},null,8,["name"]),(0,n.createElementVNode)("span",l6,(0,n.toDisplayString)((0,n.unref)(ke)(e.link.label)),1),(0,n.createVNode)((0,n.unref)(ge),{name:"expand_more",size:"1.1",class:(0,n.normalizeClass)(["nav-text sidebar-chevron",{"sidebar-chevron-open":c.value}])},null,8,["class"])]),_:1},8,["class","style"]),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["sidebar-children",{"sidebar-children-open":c.value}])},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.link.children,m=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:m.to||m.label,fullWidth:"",alignTxt:"start",class:(0,n.normalizeClass)(["flex-shrink-0 ps-2 pe-075 sidebar-child",{"nav-btn-active":a(m)}]),style:(0,n.normalizeStyle)({backgroundColor:a(m)?e.activeColor:"transparent",color:a(m)?"white":e.textColor}),to:m.to||"/",onClick:m.action},{default:(0,n.withCtx)(()=>[m.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:0,name:m.icon,size:"1.05",class:"opacity-7"},null,8,["name"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",s6,(0,n.toDisplayString)((0,n.unref)(ke)(m.label)),1)]),_:2},1032,["class","style","to","onClick"]))),128))],2)])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Tt),{key:2,placement:"right-start",triggers:["hover"],card:"",class:"w100p sidebar-flyout-trigger"},{trigger:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ne),{fullWidth:"",alignTxt:"start",class:(0,n.normalizeClass)(["flex-shrink-0 px-075",{"nav-btn-active":s.value}]),style:(0,n.normalizeStyle)({backgroundColor:s.value?e.activeColor:e.bgColor,color:s.value?"white":e.textColor})},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{name:e.link.icon,size:"1.2"},null,8,["name"]),(0,n.createElementVNode)("span",c6,(0,n.toDisplayString)((0,n.unref)(ke)(e.link.label)),1)]),_:1},8,["class","style"])]),default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("div",u6,[(0,n.createElementVNode)("p",d6,(0,n.toDisplayString)((0,n.unref)(ke)(e.link.label)),1),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.link.children,m=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:m.to||m.label,fullWidth:"",alignTxt:"start",thin:"",class:(0,n.normalizeClass)(["flex-shrink-0 px-075 sidebar-flyout-item",{"nav-btn-active":a(m)}]),style:(0,n.normalizeStyle)({backgroundColor:a(m)?e.activeColor:"transparent",color:a(m)?"white":"var(--bgl-text-color)"}),to:m.to||"/",onClick:m.action},{default:(0,n.withCtx)(()=>[m.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:0,name:m.icon,size:"1.05",class:"opacity-7"},null,8,["name"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)((0,n.unref)(ke)(m.label)),1)]),_:2},1032,["class","style","to","onClick"]))),128))])]),_:1})):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:0,title:!e.open&&!e.isMobile?(0,n.unref)(ke)(e.link.label):"",fullWidth:"",alignTxt:"start",class:(0,n.normalizeClass)(["flex-shrink-0 px-075",{"nav-btn-active":l.value}]),style:(0,n.normalizeStyle)({backgroundColor:l.value?e.activeColor:e.bgColor,color:l.value?"white":e.textColor}),to:e.link.to||"/",onClick:e.link.action},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{name:e.link.icon,size:"1.2"},null,8,["name"]),(0,n.createElementVNode)("span",a6,(0,n.toDisplayString)((0,n.unref)(ke)(e.link.label)),1)]),_:1},8,["title","class","style","to","onClick"]))}}),m6=we(f6,[["__scopeId","data-v-32e04cab"]]),p6=["src","alt"],h6={class:"nav-text"},g6={class:"sidebar-footer flex column flex-stretch gap-025 align-items-start px-025 mt-auto"},v6={class:"nav-text"},y6=(0,n.defineComponent)({__name:"AppSidebar",props:{navLinks:{},footerLinks:{default:()=>[]},logo:{},logoAlt:{default:"Logo"},card:{type:Boolean,default:!0},bgColor:{default:"var(--bgl-box-bg)"},textColor:{default:"var(--bgl-text-color)"},activeColor:{default:"var(--bgl-primary)"},logoHeight:{default:"2rem"},name:{default:"App Name"},frame:{type:Boolean},activeRoutes:{},centerlinks:{type:Boolean,default:!1}},setup(e){const t=e,r=(0,da.useRoute)(),o=(0,n.ref)(!1),{isOpen:a,isMobile:i,sidebarWidth:l,toggleMenu:s,closeOnMobile:c}=ku(),u=(0,n.computed)(()=>a.value||o.value);(0,n.watch)(()=>a.value,()=>{i.value||(o.value=!0,setTimeout(()=>{o.value=!1},400))});function d(m){const p=m.to;if(p==null||p==="")return!1;if(m.activeRoutes&&m.activeRoutes.length>0)return m.activeRoutes.some(b=>b==="/"?r.path===b:r.path===b||r.path.startsWith(`${b}/`));if(p==="/")return r.path===p;if(r.path===p||r.path.startsWith(`${p}/`))return!0;const h=p.split("/").filter(Boolean),v=r.path.split("/").filter(Boolean);return h.length<=v.length?h.every((b,g)=>b.match(/^[a-f0-9-]{36}$/i)&&v[g]?.match(/^[a-f0-9-]{36}$/i)?!0:b===v[g]):!1}const f=(0,n.computed)(()=>{let m="280px";if(!i.value){const p=t.card?A0:$u;m=a.value?l:p}return{width:m}});return(m,p)=>{const h=(0,n.resolveComponent)("router-link");return(0,n.openBlock)(),(0,n.createElementBlock)("aside",{id:"bgl-app-sidebar",class:(0,n.normalizeClass)(["app-sidebar transition-400 fixed start top bottom h-100vh z-99",{"sidebar-mobile-open":(0,n.unref)(i)&&(0,n.unref)(a),"sidebar-mobile-closed":(0,n.unref)(i)&&!(0,n.unref)(a),transitioning:o.value,"p-05":t.card,"sidebar-collapsed":!(0,n.unref)(i)&&!(0,n.unref)(a)}]),style:(0,n.normalizeStyle)(f.value)},[(0,n.createElementVNode)("div",{style:(0,n.normalizeStyle)({backgroundColor:t.bgColor,color:t.textColor,...t.card&&{borderRadius:"var(--bgl-card-border-radius)"}}),class:(0,n.normalizeClass)([{"card cardWrapSide":t.card,"px-05":!u.value,aside_frame:t.frame},"overflow-hidden flex column flex-stretch gap-1 w100p pt-1 pb-05 h-100p testMe1"])},[(0,n.createVNode)(h,{to:"/",class:(0,n.normalizeClass)(["decoration-none flex siderbarLogoWrap gap-05",{"mx-1":u.value,"mx-05":!u.value}])},{default:(0,n.withCtx)(()=>[t.logo?((0,n.openBlock)(),(0,n.createElementBlock)("img",{key:0,src:t.logo,alt:t.logoAlt,class:"contain",style:(0,n.normalizeStyle)({height:t.logoHeight})},null,12,p6)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",h6,(0,n.toDisplayString)(t.name),1)]),_:1},8,["class"]),(0,n.createElementVNode)("nav",{class:(0,n.normalizeClass)(["sidebar-nav flex column flex-stretch gap-025 align-items-start",{"justify-content-center":t.centerlinks}])},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(t.navLinks,v=>((0,n.openBlock)(),(0,n.createBlock)(m6,{key:v.to||v.label,link:v,open:u.value,"is-mobile":(0,n.unref)(i),"bg-color":t.bgColor,"text-color":t.textColor,"active-color":t.activeColor},null,8,["link","open","is-mobile","bg-color","text-color","active-color"]))),128))],2),(0,n.createElementVNode)("div",g6,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(t.footerLinks,v=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:v.to||v.label,title:!(0,n.unref)(a)&&!(0,n.unref)(i)?(0,n.unref)(ke)(v.label):"",style:(0,n.normalizeStyle)({backgroundColor:d(v)?t.activeColor:t.bgColor,color:d(v)?"white":t.textColor}),fullWidth:"",alignTxt:"start",class:(0,n.normalizeClass)(["flex-shrink-0 px-075",{"nav-btn-active":d(v)}]),to:v.to||"/",onClick:v.action},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{name:v.icon,size:"1.2"},null,8,["name"]),(0,n.createElementVNode)("span",v6,(0,n.toDisplayString)((0,n.unref)(ke)(v.label)),1)]),_:2},1032,["title","style","class","to","onClick"]))),128)),(0,n.renderSlot)(m.$slots,"footer",(0,n.normalizeProps)((0,n.guardReactiveProps)({isOpen:(0,n.unref)(a),isMobile:(0,n.unref)(i),toggleMenu:(0,n.unref)(s),closeOnMobile:(0,n.unref)(c)})))])],6)],6)}}}),b6=y6,_6={class:"m-0 pb-025 txt10 line-height-1 w60 menu-text"},w6=(0,n.defineComponent)({__name:"BottomMenu",props:{navLinks:{}},setup(e){return(t,r)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ar),{class:"hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x"},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(t.$slots,"brand",{},void 0,!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.navLinks,(o,a)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:a,to:o.to,class:"m_h-auto",onClick:o.action},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{icon:o.icon,size:1.4,class:"m-0 line-height-14"},null,8,["icon"]),(0,n.createElementVNode)("p",_6,(0,n.toDisplayString)(o.label),1)]),_:2},1032,["to","onClick"]))),128)),(0,n.renderSlot)(t.$slots,"end",{},void 0,!0)]),_:3}))}}),$6=we(w6,[["__scopeId","data-v-bf0ed739"]]),k6={class:"bgl-divider-label"},E6=(0,n.defineComponent)({name:"BglDivider",__name:"Divider",props:{vertical:{type:Boolean,default:!1},label:{default:""},size:{},class:{default:""}},setup(e){const t=(0,n.useSlots)();return(r,o)=>e.vertical?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["divider-v",e.class]),style:(0,n.normalizeStyle)(e.size?{"--divider-size":e.size}:void 0),role:"separator","aria-orientation":"vertical"},null,6)):e.label||(0,n.unref)(t).default?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:(0,n.normalizeClass)(["bgl-divider-labeled",e.class]),role:"separator"},[o[0]||(o[0]=(0,n.createElementVNode)("span",{class:"divider bgl-divider-line"},null,-1)),(0,n.createElementVNode)("span",k6,[(0,n.renderSlot)(r.$slots,"default",{},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.label),1)],!0)]),o[1]||(o[1]=(0,n.createElementVNode)("span",{class:"divider bgl-divider-line"},null,-1))],2)):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:2,class:(0,n.normalizeClass)(["divider",e.class]),role:"separator"},null,2))}}),C6=we(E6,[["__scopeId","data-v-31eebbb3"]]),S6=(0,n.defineComponent)({__name:"Layout",props:{gap:{default:.5},h100:{type:Boolean,default:!1},columns:{default:()=>[]},mColumns:{default:()=>[]},mRows:{default:()=>[]},rows:{default:()=>[]},mGap:{default:void 0}},setup(e){(0,n.useCssVars)(d=>({v5409afe2:i.value,v137ea764:a.value,d4054570:c.value,v2507103f:l.value,v3afd6491:s.value,c8f7cbb6:u.value}));const t=e;function r(d){const f=d.trim();return/^\d*\.?\d+fr$/.test(f)?`minmax(0, ${f})`:f}function o(d){return d.length>0?d.map(r).join(" "):"auto"}const a=(0,n.computed)(()=>o(t.rows)),i=(0,n.computed)(()=>`${t.gap}rem`),l=(0,n.computed)(()=>t.mGap!==void 0?`${t.mGap}rem`:i.value),s=(0,n.computed)(()=>t.mRows?.length?o(t.mRows):a.value),c=(0,n.computed)(()=>o(t.columns)),u=(0,n.computed)(()=>t.mColumns?.length?o(t.mColumns):c.value);return(d,f)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["layout",{"layout-h-100":e.h100}])},[(0,n.renderSlot)(d.$slots,"default",{},void 0,!0)],2))}}),x6=we(S6,[["__scopeId","data-v-3e416ebc"]]);const mg=Symbol("Resizable");var T6=0;function N6(){return`panel-${++T6}`}function pg(e){const{containerEl:t,breakpoint:r,mobileDirection:o}=e,a=(0,n.ref)(!1),i=(0,n.shallowRef)([]),l=(0,n.computed)(()=>a.value?o:e.directionProp.value);let s=null;function c(){t.value&&(s?.disconnect(),s=new ResizeObserver(b=>{const g=b[0];g&&(a.value=g.contentRect.width<r)}),s.observe(t.value),a.value=t.value.clientWidth<r)}function u(){s?.disconnect(),s=null}(0,n.watch)(a,b=>{for(const g of i.value){const{config:y}=g;g.collapsed.value=b&&y.collapseOnMobile||!1}});function d(b){const g={id:b.id,config:b,size:(0,n.ref)(b.defaultSize),collapsed:(0,n.ref)(a.value?b.collapseOnMobile:!1),el:(0,n.ref)(null)};return i.value=[...i.value,g],g}function f(b){i.value=i.value.filter(g=>g.id!==b)}function m(b){return i.value.findIndex(g=>g.id===b)}let p=null;function h(b,g){const y=g-b.startPos,_=b.isRtl?-y:y,w=i.value[b.indexA],$=i.value[b.indexB],A=w.config.min,E=w.config.max,k=$.config.min,P=$.config.max;let N=b.currentSizeA,V=b.currentSizeB;if(b.isFlexB)N=Math.max(A,Math.min(E,b.startSizeA+_));else if(b.isFlexA)V=Math.max(k,Math.min(P,b.startSizeB-_));else{const T=Math.max(A,Math.min(E,b.startSizeA+_))-b.startSizeA;V=Math.max(k,Math.min(P,b.startSizeB-T)),N=b.startSizeA+(b.startSizeB-V)}b.currentSizeA=N,b.currentSizeB=V;const x=b.isHorizontal?"width":"height";b.elA&&!b.isFlexA&&(b.elA.style.flex=`0 0 ${N}px`,b.elA.style[x]=`${N}px`),b.elB&&!b.isFlexB&&(b.elB.style.flex=`0 0 ${V}px`,b.elB.style[x]=`${V}px`)}function v(b,g){p?.();const y=m(b);if(y<0||y>=i.value.length-1)return;const _=i.value[y],w=i.value[y+1];if(_.collapsed.value||w.collapsed.value)return;g.preventDefault();const $=l.value==="horizontal",A=$?g.clientX:g.clientY,E=$&&!!t.value&&getComputedStyle(t.value).direction==="rtl",k={panelId:b,pointerId:g.pointerId,isHorizontal:$,isRtl:E,startPos:A,startSizeA:_.size.value,startSizeB:w.size.value,currentSizeA:_.size.value,currentSizeB:w.size.value,indexA:y,indexB:y+1,isFlexA:_.config.flex,isFlexB:w.config.flex,elA:_.el.value,elB:w.el.value};t.value?.setAttribute("data-resizing",""),document.body.style.userSelect="none",document.body.style.cursor=$?"ew-resize":"ns-resize";function P(x){x.pointerId===k.pointerId&&h(k,k.isHorizontal?x.clientX:x.clientY)}function N(x){x.pointerId===k.pointerId&&(h(k,k.isHorizontal?x.clientX:x.clientY),i.value[k.indexA].size.value=k.currentSizeA,i.value[k.indexB].size.value=k.currentSizeB,V())}function V(){p=null,t.value?.removeAttribute("data-resizing"),document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("pointermove",P),document.removeEventListener("pointerup",N),document.removeEventListener("pointercancel",V)}document.addEventListener("pointermove",P),document.addEventListener("pointerup",N),document.addEventListener("pointercancel",V),p=V}return{context:{direction:l,isMobile:a,panels:i,registerPanel:d,unregisterPanel:f,onHandlePointerDown:v},observe:c,disconnect:u}}var D6={class:"panel__content"},A6=(0,n.defineComponent)({__name:"Panel",props:{id:{},defaultSize:{default:200},size:{},min:{default:0},max:{default:Number.POSITIVE_INFINITY},collapsible:{type:Boolean,default:!1},collapsed:{type:Boolean,default:void 0},flex:{type:Boolean,default:!1},collapseOnMobile:{type:Boolean},hideOnMobile:{type:Boolean},handle:{type:Boolean,default:!0}},emits:["update:collapsed","update:size"],setup(e,{expose:t,emit:r}){const o=e,a=r,i=(0,n.inject)(mg);if(!i)throw new Error("<Panel> must be used inside a <Resizable>");const l=o.id??N6(),s=(0,n.shallowRef)(null),c=(0,n.ref)(null),u=(0,n.computed)({get:()=>o.collapsed??s.value?.collapsed.value??!1,set(g){s.value&&(s.value.collapsed.value=g),a("update:collapsed",g)}});(0,n.watch)(()=>o.collapsed,g=>{g!==void 0&&s.value&&(s.value.collapsed.value=g)}),(0,n.watch)(()=>o.size,g=>{if(g===void 0||!s.value)return;const y=Math.max(o.min,Math.min(o.max,g));y!==s.value.size.value&&(s.value.size.value=y)}),(0,n.watch)(()=>s.value?.size.value,(g,y)=>{g!==void 0&&y!==void 0&&a("update:size",g)}),(0,n.onMounted)(()=>{const g={id:l,defaultSize:o.size??o.defaultSize,min:o.min,max:o.max,flex:o.flex,collapseOnMobile:o.collapseOnMobile??!1,hideOnMobile:o.hideOnMobile??!1};s.value=i.registerPanel(g),s.value.el.value=c.value,o.collapsed!==void 0&&(s.value.collapsed.value=o.collapsed)}),(0,n.onUnmounted)(()=>{i.unregisterPanel(l)});const d=(0,n.computed)(()=>s.value?.size.value??o.defaultSize),f=(0,n.computed)(()=>u.value),m=(0,n.computed)(()=>i.direction.value==="horizontal"),p=(0,n.computed)(()=>i.isMobile.value&&o.hideOnMobile),h=(0,n.computed)(()=>{const g=i.panels.value,y=g.findIndex(_=>_.id===l);return y>=0&&y===g.length-1}),v=(0,n.computed)(()=>f.value?m.value?{flex:"0 0 0px",width:"0px",minWidth:"0",overflow:"hidden"}:{flex:"0 0 0px",height:"0px",minHeight:"0",overflow:"hidden"}:o.flex?m.value?{flex:"1 1 0",minWidth:`${o.min}px`,maxWidth:o.max===Number.POSITIVE_INFINITY?void 0:`${o.max}px`,overflow:"hidden"}:{flex:"1 1 0",minHeight:`${o.min}px`,maxHeight:o.max===Number.POSITIVE_INFINITY?void 0:`${o.max}px`,overflow:"hidden"}:m.value?{flex:`0 0 ${d.value}px`,width:`${d.value}px`,overflow:"hidden"}:{flex:`0 0 ${d.value}px`,height:`${d.value}px`,overflow:"hidden"});function b(){u.value=!u.value}return t({toggleCollapse:b,size:d,isCollapsed:f}),(g,y)=>p.value?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,ref_key:"panelEl",ref:c,class:(0,n.normalizeClass)(["panel",[m.value?"panel--h":"panel--v",f.value&&"panel--collapsed"]]),style:(0,n.normalizeStyle)(v.value)},[(0,n.createElementVNode)("div",D6,[(0,n.renderSlot)(g.$slots,"default",{collapsed:f.value,size:d.value,toggleCollapse:b},void 0,!0)]),o.handle&&!h.value&&!f.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["panel__handle",m.value?"panel__handle--h":"panel__handle--v"]),onPointerdown:y[0]||(y[0]=_=>(0,n.unref)(i).onHandlePointerDown((0,n.unref)(l),_))},[...y[1]||(y[1]=[(0,n.createElementVNode)("div",{class:"panel__handle-bar"},null,-1)])],34)):(0,n.createCommentVNode)("",!0)],6))}}),B6=we(A6,[["__scopeId","data-v-2ed31dc2"]]),M6=(0,n.defineComponent)({name:"BglResizable",__name:"Resizable",props:{horizontal:{type:Boolean,default:!1},mobileVertical:{type:Boolean,default:!0},breakpoint:{default:910}},setup(e){const t=e,r=(0,n.ref)(),{context:o,observe:a,disconnect:i}=pg({directionProp:(0,n.computed)(()=>t.horizontal?"horizontal":"vertical"),mobileDirection:(0,n.computed)(()=>t.mobileVertical||!t.horizontal?"vertical":"horizontal").value,breakpoint:t.breakpoint,containerEl:r});(0,n.provide)(mg,o),(0,n.onMounted)(a),(0,n.onUnmounted)(i);const l=(0,n.computed)(()=>o.direction.value==="horizontal");return(s,c)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"containerEl",ref:r,class:(0,n.normalizeClass)(["resizable",l.value?"resizable--row":"resizable--col"])},[(0,n.renderSlot)(s.$slots,"default",{},void 0,!0)],2))}}),L6=we(M6,[["__scopeId","data-v-fda4fba5"]]),P6={key:0},I6=(0,n.defineComponent)({__name:"SidebarMenu",props:{navLinks:{},expandable:{type:Boolean},open:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.useSlots)(),i=(0,n.ref)(r.open),l=Vr(()=>{i.value=!i.value,o("update:open",i.value)});return(s,c)=>{const u=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["vh-100 relative p-05 bgl_sidebar",{wideNav:i.value}])},[(0,n.createVNode)((0,n.unref)(ne),{thin:"",color:"white",class:"mb-05 absolute toggleNav z-2 border",icon:"keyboard_arrow_right",onClick:(0,n.unref)(l)},null,8,["onClick"]),(0,n.createVNode)((0,n.unref)(ar),{class:"py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y"},{default:(0,n.withCtx)(()=>[!i.value||!(0,n.unref)(a)["brand-open"]?(0,n.renderSlot)(s.$slots,"brand",{key:0},void 0,!0):(0,n.createCommentVNode)("",!0),i.value?(0,n.renderSlot)(s.$slots,"brand-open",{key:1},void 0,!0):(0,n.createCommentVNode)("",!0),e.navLinks?(0,n.createCommentVNode)("",!0):(0,n.renderSlot)(s.$slots,"default",{key:2},void 0,!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.navLinks,(d,f)=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),(0,n.mergeProps)({key:f},{ref_for:!0},{...d.to&&{to:d.to},...d.href&&{href:d.href},...d.action&&{onClick:d.action}},{class:"nav-button px-075 me-auto w-100"}),{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{icon:d.icon,size:1.4},null,8,["icon"]),(0,n.createVNode)(n.Transition,{name:"showP"},{default:(0,n.withCtx)(()=>[e.open?((0,n.openBlock)(),(0,n.createElementBlock)("p",P6,(0,n.toDisplayString)(d.label),1)):(0,n.createCommentVNode)("",!0)]),_:2},1024)]),_:2},1040)),[[u,{content:d.label,disabled:e.open},void 0,{right:!0}]])),128)),c[0]||(c[0]=(0,n.createElementVNode)("div",{style:{"flex-grow":"1"}},null,-1)),(0,n.renderSlot)(s.$slots,"footer",{},void 0,!0)]),_:3})],2)}}}),V6=we(I6,[["__scopeId","data-v-c8d5bd46"]]),O6=(0,n.defineComponent)({name:"BglSkeleton",__name:"Skeleton",props:{count:{default:1},height:{},width:{},round:{type:Boolean,default:!1},borderRadius:{default:"var(--bgl-skeleton-radius)"},class:{default:""}},setup(e){const t=(0,n.useSlots)();return(r,o)=>((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(+e.count,a=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:a},[(0,n.unref)(t).default?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["skeleton-wrap",e.class])},[(0,n.renderSlot)(r.$slots,"default",{},void 0,!0)],2)):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:(0,n.normalizeClass)(["skeleton",{round:e.round,[e.class]:!0}]),style:(0,n.normalizeStyle)({height:e.height,width:e.width,borderRadius:e.borderRadius})},null,6))],64))),128))}}),Ki=we(O6,[["__scopeId","data-v-cacc01b4"]]),R6={class:"bgl_card tabs-top"},F6={class:"tabs grid auto-flow-columns fit-content"},z6=["onClick"],U6=(0,n.defineComponent)({__name:"TabbedLayout",props:{title:{},tabs:{},modelValue:{},router:{},sideTabs:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.ref)();function i(l){a.value=l,o("update:modelValue",a.value);const s=r.router;s&&s.push({path:s.currentRoute.value.path,query:{...s.currentRoute.value.query,t:l},hash:s.currentRoute.value.hash})}return(0,n.onMounted)(()=>{a.value=r.modelValue||r.router?.currentRoute.value.query.t||r.tabs[0]}),(l,s)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["h-100 grid list-view gap-1",{"side-tabs":e.sideTabs}])},[(0,n.createElementVNode)("div",R6,[(0,n.renderSlot)(l.$slots,"top-section",{},void 0,!0),(0,n.createElementVNode)("div",F6,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.tabs,c=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:c,class:(0,n.normalizeClass)([{active:c===a.value||c===e.router?.currentRoute.value.path.split("/").slice(-1)[0]},"tab"]),onClick:u=>i(c)},(0,n.toDisplayString)(c),11,z6))),128))])]),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.tabs.filter(c=>c===a.value),c=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:c,class:"list-content"},[(0,n.renderSlot)(l.$slots,c,{key:c},void 0,!0)]))),128))],2))}}),H6=we(U6,[["__scopeId","data-v-452d7195"]]),ai=(0,n.reactive)(new Map);function Iu(e){return ai.has(e)||ai.set(e,(0,n.reactive)({currentTab:void 0})),{currentTab:(0,n.computed)({get:()=>ai.get(e).currentTab,set:t=>{ai.get(e).currentTab=t}})}}var W6={key:0},j6=(0,n.defineComponent)({__name:"Tabs",props:{tabs:{},modelValue:{},flat:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.useSlots)(),i=Math.random().toString(36).slice(7),{currentTab:l}=Iu(i),s=d=>typeof d=="string"?d:d.value,c=(0,n.computed)({get:()=>r.modelValue||s(r.tabs[0]),set:d=>{o("update:modelValue",d)}}),u=(0,n.defineComponent)({render(){const d=r.tabs.findIndex(m=>s(m)===l.value);if(d===-1)return;const f=a.default?.()[1]?.children;return(0,n.h)("div",f[d])}});return(d,f)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)((0,n.unref)(Nl),{modelValue:c.value,"onUpdate:modelValue":f[0]||(f[0]=m=>c.value=m),flat:e.flat,tabs:e.tabs,group:(0,n.unref)(i),class:"mb-05"},null,8,["modelValue","flat","tabs","group"]),(0,n.unref)(l)?((0,n.openBlock)(),(0,n.createElementBlock)("div",W6,[(0,n.unref)(a)[(0,n.unref)(l)]?(0,n.renderSlot)(d.$slots,(0,n.unref)(l),{key:0}):(0,n.unref)(l)?((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)((0,n.unref)(u)),{key:1})):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0)],64))}}),q6=j6,G6=(0,n.defineComponent)({__name:"TabsBody",props:{group:{}},setup(e){const{currentTab:t}=Iu(e.group);return(r,o)=>(0,n.unref)(t)?(0,n.renderSlot)(r.$slots,(0,n.unref)(t),{key:0}):(0,n.createCommentVNode)("",!0)}}),Y6=G6,X6=["onClick"],K6=(0,n.defineComponent)({__name:"TabsNav",props:{title:{},tabs:{},modelValue:{},sideTabs:{type:Boolean},group:{},flat:{type:Boolean},vertical:{type:Boolean},icon:{},iconEnd:{},iconSize:{},iconMobileSize:{},thin:{type:Boolean},size:{},fullWidth:{type:Boolean},fullWidthMobile:{type:Boolean},alignTxt:{},alignTxtMobile:{},outline:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,o=t,{currentTab:a}=Iu(r.group);a.value=r.modelValue||typeof r.tabs[0]=="string"?r.tabs[0]:r.tabs[0].value;const i=(0,n.ref)(void 0),l=(0,n.ref)([]);let s;function c(p,h){const v=p.getBoundingClientRect(),b=h.getBoundingClientRect(),g=b.left-v.left+p.scrollLeft,y=b.width;y>0&&(p.style.setProperty("--indicator-left",`${g}px`),p.style.setProperty("--indicator-width",`${y}px`),p.style.setProperty("--indicator-opacity","1"))}function u(){(0,n.nextTick)(()=>{const p=i.value;if(!p)return;const h=()=>{l.value=Array.from(p.querySelectorAll(".bgl_tab"));const v=l.value.find(b=>b.classList.contains("active"));if(!v){p.style.setProperty("--indicator-opacity","0");return}c(p,v)};requestAnimationFrame(()=>{requestAnimationFrame(h)})})}function d(p){a.value=typeof p=="string"?p:p.value,o("update:modelValue",a.value),(0,n.nextTick)(()=>{u()})}function f(p){return typeof p=="string"?a.value===p:a.value===p.value}function m(p){return typeof p=="string"?p:p.label}return(0,n.watch)(()=>r.modelValue,p=>{p&&!f(p)&&(a.value=p),(0,n.nextTick)(()=>{u()})},{immediate:!0}),(0,n.onMounted)(()=>{l.value=Array.from(i.value?.querySelectorAll(".bgl_tab")||[]),requestAnimationFrame(()=>{u()}),window.addEventListener("resize",u),i.value?.addEventListener("scroll",u,{passive:!0}),typeof ResizeObserver<"u"&&i.value&&(s=new ResizeObserver(()=>{u()}),s.observe(i.value)),typeof window<"u"&&window.visualViewport&&window.visualViewport.addEventListener("resize",u)}),(0,n.watch)(()=>r.tabs,()=>{(0,n.nextTick)(()=>{u()})},{deep:!0}),(0,n.onBeforeUnmount)(()=>{window.removeEventListener("resize",u),i.value?.removeEventListener("scroll",u),s?.disconnect(),s=void 0,typeof window<"u"&&window.visualViewport&&window.visualViewport.removeEventListener("resize",u)}),(p,h)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"tabsWrap",ref:i,class:(0,n.normalizeClass)(["grid auto-flow-columns relative fit-content bgl_tabs_wrap overflow-hidden",{"bgl_flat-tabs":e.flat,"bgl_vertical-tabs":e.vertical,outline:e.outline}])},[(0,n.renderSlot)(p.$slots,"tabs",(0,n.normalizeProps)((0,n.guardReactiveProps)({selectTab:d,isActive:f,tabLabel:m,tabs:l.value})),()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.tabs,(v,b)=>((0,n.openBlock)(),(0,n.createElementBlock)("button",{key:b,type:"button",class:(0,n.normalizeClass)([[{active:f(v)},{"bgl_tab-thin":e.thin,"bgl_tab-xs":e.size==="xs","bgl_tab-s":e.size==="sm","bgl_tab-l":e.size==="lg","bgl_tab-xl":e.size==="xl","w-100p justify-center":e.fullWidth,"w-auto m_w-100p":e.fullWidthMobile,"bgl_tab-align-center":e.alignTxt==="center","bgl_tab-align-start":e.alignTxt==="start","bgl_tab-align-end":e.alignTxt==="end","bgl_tab-align-center-mobile":e.alignTxtMobile==="center","bgl_tab-align-start-mobile":e.alignTxtMobile==="start","bgl_tab-align-end-mobile":e.alignTxtMobile==="end"}],"bgl_tab relative z-1"]),onClick:g=>d(v)},[e.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:0,icon:e.icon,size:e.iconSize,"mobile-size":e.iconMobileSize},null,8,["icon","size","mobile-size"])):typeof v!="string"&&v.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,icon:v.icon,size:e.iconSize,"mobile-size":e.iconMobileSize},null,8,["icon","size","mobile-size"])):(0,n.createCommentVNode)("",!0),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(m(v))+" ",1),e.iconEnd?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:2,icon:e.iconEnd,size:e.iconSize,"mobile-size":e.iconMobileSize},null,8,["icon","size","mobile-size"])):(0,n.createCommentVNode)("",!0)],10,X6))),128))],!0)],2))}}),Nl=we(K6,[["__scopeId","data-v-c09021d6"]]),J6={key:0,class:"list-item-start flex align-items-center flex-shrink-0"},Z6={key:1,class:"list-item-icon flex-shrink-0"},Q6={class:"txt-start flex-grow-1 list-item-body"},eM={class:"list-item-end flex align-items-center gap-05 flex-shrink-0"},tM=["textContent"],nM=(0,n.defineComponent)({__name:"ListItem",props:{src:{},showAvatar:{type:Boolean},to:{},href:{},icon:{},title:{},subtitle:{},flat:{type:Boolean},disabled:{type:Boolean},lead:{},end:{},iconEnd:{},target:{},thin:{type:Boolean},fullWidth:{type:Boolean},ellipsis:{type:Boolean,default:!0},ripple:{type:Boolean,default:!1},fullRow:{type:Boolean,default:!1},clickable:{type:Boolean},onClick:{}},setup(e){const t=e,r=(0,n.computed)(()=>t.to!==void 0&&t.to!==""),o=(0,n.computed)(()=>t.href!==void 0&&t.href!==""),a=(0,n.computed)(()=>r.value||o.value||t.onClick!==void 0||t.clickable===!0),i=(0,n.computed)(()=>r.value?"router-link":o.value?"a":a.value?"button":"div"),l=(0,n.computed)(()=>{const s={};return t.to!==void 0&&t.to!==""?s.to=t.to:t.href!==void 0&&t.href!==""&&(s.href=t.href),t.target!==void 0&&t.target!==void 0&&(t.to!==void 0&&t.to!==""||t.href!==void 0&&t.href!=="")&&(s.target=t.target),s.class={notClickable:!a.value,"no-border-list":t.flat},t.disabled&&(s.disabled=!0),s});return(s,c)=>{const u=(0,n.resolveDirective)("ripple");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["flex space-between list-item-row",{"no-border-list":t.flat,"list-item-flush":t.fullWidth,"list-item-fullrow":e.fullRow&&a.value}])},[s.$slots.start?((0,n.openBlock)(),(0,n.createElementBlock)("div",J6,[(0,n.renderSlot)(s.$slots,"start")])):(0,n.createCommentVNode)("",!0),(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(i.value),(0,n.mergeProps)(l.value,{class:["flex flex-grow-1 gap-075 align-items-center list-item",{"py-075":!t.thin,"py-05":t.thin,"px-1":!t.fullWidth,"px-0":t.fullWidth}],onClick:c[0]||(c[0]=d=>typeof e.onClick=="function"&&e.onClick())}),{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(s.$slots,"media",{},()=>[e.src||e.showAvatar?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Ip),{key:0,name:e.title,src:e.src,size:e.thin?30:38,class:"flex-shrink-0"},null,8,["name","src","size"])):(0,n.createCommentVNode)("",!0),e.icon?((0,n.openBlock)(),(0,n.createElementBlock)("span",Z6,[(0,n.createVNode)((0,n.unref)(ge),{size:"1.2",icon:e.icon},null,8,["icon"])])):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",Q6,[e.lead?((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:0,class:(0,n.normalizeClass)(["list-item-lead",{ellipsis:e.ellipsis}])},[(0,n.createTextVNode)((0,n.toDisplayString)(e.lead)+" ",1),(0,n.renderSlot)(s.$slots,"lead")],2)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("p",{class:(0,n.normalizeClass)(["list-item-title",{"ellipsis-1":e.ellipsis}])},[(0,n.createTextVNode)((0,n.toDisplayString)(e.title)+" ",1),(0,n.renderSlot)(s.$slots,"default")],2),e.subtitle||s.$slots.subtitle?((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:1,class:(0,n.normalizeClass)(["list-item-subtitle",{"ellipsis-1":e.ellipsis}])},[(0,n.createTextVNode)((0,n.toDisplayString)(e.subtitle)+" ",1),(0,n.renderSlot)(s.$slots,"subtitle")],2)):(0,n.createCommentVNode)("",!0)])]),_:3},16,["class"])),[[u,e.ripple&&a.value]]),(0,n.createElementVNode)("div",eM,[(0,n.renderSlot)(s.$slots,"end",{},()=>[e.end?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:0,class:(0,n.normalizeClass)(["list-item-endtext",{"ellipsis-1":e.ellipsis}]),textContent:(0,n.toDisplayString)(e.end)},null,10,tM)):(0,n.createCommentVNode)("",!0),e.iconEnd?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,icon:e.iconEnd,class:"transition-400 opacity-4"},null,8,["icon"])):(0,n.createCommentVNode)("",!0)])])],2)}}}),Dn=nM,rM={},oM={class:"list-wrap bgl_card thin grid overflow-hidden pt-0 pb-05 px-0 m_pb-0"},aM={class:"p-0"},iM={class:"list-content auto-flow-rows align-items-start overflow-y h-100"};function lM(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",oM,[(0,n.createElementVNode)("div",aM,[(0,n.renderSlot)(e.$slots,"header")]),(0,n.createElementVNode)("div",iM,[(0,n.renderSlot)(e.$slots,"default")])])}var hg=we(rM,[["render",lM]]);function Bm(e,t="px"){if(e===void 0||e==="")return"";if(typeof e=="string"){const r={xs:16,sm:24,md:32,lg:48,xl:64};return e in r?`${r[e]}${t}`:e.endsWith(t)?e:`${e}${t}`}return`${e}${t}`}var sM=["width","height"],cM=["r","stroke","stroke-width"],uM=["r","stroke","stroke-width","stroke-dasharray"],dM={class:"slot-content"},fM=(0,n.defineComponent)({__name:"Loading",props:{size:{default:50},thickness:{},duration:{default:1.2},type:{default:"ring"},color:{},progress:{}},setup(e){const t=(0,n.computed)(()=>Bm(e.size)),r=(0,n.computed)(()=>`${e.duration}s`),o=(0,n.computed)(()=>Bm(e.thickness??Math.max(Number.parseInt(t.value,10)/9,2))),a=(0,n.computed)(()=>e.color?e.color.startsWith("#")||e.color.startsWith("rgb")||e.color.startsWith("var(")?e.color:`var(--bgl-${e.color})`:"var(--bgl-text-color)"),i=(0,n.computed)(()=>{const c=Number.parseFloat(o.value),u=Number.parseFloat(t.value);return Math.round(c/u*100)*.9}),l=(0,n.computed)(()=>50-i.value/2),s=(0,n.computed)(()=>Math.PI*2*l.value);return(c,u)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["flex-center loading-container",{progress:e.progress!==void 0}]),style:(0,n.normalizeStyle)({"--progress":e.progress})},[e.type==="bar"?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.renderSlot)(c.$slots,"default",{},void 0,!0),(0,n.createElementVNode)("div",{class:"lds-bar",style:(0,n.normalizeStyle)({animationDuration:r.value,color:a.value})},null,4)],64)):(0,n.createCommentVNode)("",!0),e.type==="ellipsis"?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[(0,n.renderSlot)(c.$slots,"default",{},void 0,!0),(0,n.createElementVNode)("div",{class:"lds-ellipsis",style:(0,n.normalizeStyle)({"--size":t.value})},[((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(4,d=>(0,n.createElementVNode)("div",{key:d,style:(0,n.normalizeStyle)({color:a.value,"--size":t.value})},null,4)),64))],4)],64)):(0,n.createCommentVNode)("",!0),e.type==="ring"?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:2,class:"lds-ring",style:(0,n.normalizeStyle)({"--size":t.value,"--thickness":o.value})},[e.progress!==void 0?((0,n.openBlock)(),(0,n.createElementBlock)("svg",{key:0,width:t.value,height:t.value,viewBox:"0 0 100 100"},[(0,n.createElementVNode)("circle",{cx:"50",cy:"50",r:l.value,fill:"none",stroke:a.value,"stroke-width":i.value,"stroke-opacity":"0.2"},null,8,cM),(0,n.createElementVNode)("circle",{cx:"50",cy:"50",r:l.value,fill:"none",stroke:a.value,"stroke-width":i.value,"stroke-linecap":"round","stroke-dasharray":`${e.progress/100*s.value} ${s.value}`,transform:"rotate(-90 50 50)"},null,8,uM)],8,sM)):((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},(0,n.renderList)(4,d=>(0,n.createElementVNode)("div",{key:d,class:"ring-segment",style:(0,n.normalizeStyle)({color:a.value,width:t.value,height:t.value,borderWidth:o.value,"--animation-duration":r.value,"--size":t.value,"--thickness":o.value})},null,4)),64)),(0,n.createElementVNode)("div",dM,[(0,n.renderSlot)(c.$slots,"default",{},void 0,!0)])],4)):(0,n.createCommentVNode)("",!0)],6))}}),Wr=we(fM,[["__scopeId","data-v-89551186"]]),mM=["id"],pM='<svg width="28" height="38" viewBox="0 0 28 38" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.2263 37.7955C17.0897 37.7955 19.4109 37.0138 19.4109 36.0496C19.4109 35.0854 17.0897 34.3037 14.2263 34.3037C11.363 34.3037 9.04175 35.0854 9.04175 36.0496C9.04175 37.0138 11.363 37.7955 14.2263 37.7955Z" fill="black" fill-opacity="0.1"/><path d="M14.2265 0.549591C21.2842 0.549591 27.0131 6.23786 27.0787 13.28V13.4024C27.0787 19.3328 24.4759 24.4306 21.5627 28.2764C18.6511 32.12 15.4577 34.6754 14.3457 35.5097C14.2748 35.5629 14.1778 35.5629 14.1068 35.5097C12.9947 34.675 9.80135 32.1197 6.88984 28.2762C3.97665 24.4304 1.37378 19.3328 1.37378 13.4024C1.37378 6.30387 7.12806 0.549591 14.2265 0.549591Z" fill="#ED1b3E" stroke="#ED6C6F"/><path d="M14.2263 21.6185C18.7639 21.6185 22.4424 17.94 22.4424 13.4024C22.4424 8.86477 18.7639 5.18631 14.2263 5.18631C9.68872 5.18631 6.01025 8.86477 6.01025 13.4024C6.01025 17.94 9.68872 21.6185 14.2263 21.6185Z" fill="white"/></svg>',hM="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js",gM=(0,n.defineComponent)({__name:"Index",props:{center:{default:()=>[31.7683,35.2137]},zoom:{default:15},height:{default:400},zoomControl:{type:Boolean,default:!0},markers:{},markerIcon:{default:""}},emits:["select"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.ref)(),i=(0,n.ref)(),l=(0,n.ref)([]),s=(0,n.ref)(Math.random().toString(36).slice(2,10));async function c(){await Ga(hM),a.value=await Sa("L"),i.value||(i.value=a.value.map(s.value,{center:r.center,zoom:r.zoom,zoomControl:r.zoomControl}),a.value.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:18}).addTo(i.value))}async function u(p){const h=r.markerIcon||pM,v=a.value?.icon({iconUrl:`data:image/svg+xml;utf8,${encodeURIComponent(h)}`,iconSize:[32,32]}),b=f(p),g=Array.isArray(p)?p[2]:p.title??p.tooltip,y=Array.isArray(p)?p[2]:p.tooltip,_=a.value?.marker(b,{title:g,icon:v,interactive:!0}).addTo(i.value);y&&_.bindTooltip(y,{direction:"top"}),_.on("click",()=>{o("select",p)}),l.value.push(_)}function d(p){if(l.value.length>0){const h=l.value.map(g=>g.getLatLng()),v=p.latLngBounds(h),b=v.getCenter();i.value?.setView(b,r.zoom),i.value?.fitBounds(v,{animate:!0,padding:[20,20]})}}function f(p){const[h,v]=Array.isArray(p)?[p[0],p[1]]:[p.lat,p.lng];return{lat:+h,lng:+v}}async function m(p){if(a.value||(a.value=await Sa("L")),l.value.forEach(h=>h.remove()),!!p){for(const h of p)i.value||await c(),u(h);d(a.value)}}return(0,n.watch)(()=>r.markers,m,{immediate:!0}),(0,n.watch)(()=>r.center,p=>i.value?.setView(p,r.zoom),{immediate:!0}),(0,n.onMounted)(c),(0,n.onUnmounted)(()=>{l.value.forEach(p=>p.remove()),i.value?.remove(),i.value=void 0}),(p,h)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{id:s.value,class:"leaflet-map",style:(0,n.normalizeStyle)({height:`${r.height||400}px`}),dir:"ltr"},null,12,mM))}}),vM=gM,yM={class:"flex space-between m_w-100vw overflow m_-ms-1 m_-me-1 m_px-1 m_pt-025 m_pb-05 bglTopMenu"},bM={class:"flex gap-025 m_gap-05"},_M={class:"-ms-025"},wM={class:"-ms-025"},$M={class:"-ms-025"},kM=(0,n.defineComponent)({__name:"Menu",props:{items:{}},setup(e){return(t,r)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",yM,[(0,n.createElementVNode)("div",bM,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.items,o=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:o.label},[o.children?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Tt),{key:0,value:(0,n.unref)(ke)(o.label),iconEnd:"keyboard_arrow_down"},{trigger:(0,n.withCtx)(({show:a})=>[(0,n.createVNode)((0,n.unref)(ne),{thin:"",flat:"",class:(0,n.normalizeClass)(o.class),onClick:i=>a()},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{name:o.icon,size:"0.8",style:{"margin-bottom":"-0.1rem"},class:"line-height-0"},null,8,["name"]),(0,n.createElementVNode)("p",_M,(0,n.toDisplayString)((0,n.unref)(ke)(o.label)),1),(0,n.createVNode)((0,n.unref)(ge),{name:"keyboard_arrow_down",size:"0.8",style:{"margin-bottom":"-0.1rem"},class:"line-height-0"})]),_:2},1032,["class","onClick"])]),default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(o.children,a=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:a.label,thin:"",flat:"",to:a.to,class:(0,n.normalizeClass)([a.class,"block m_px-025"]),onClick:i=>a.action?.()},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{name:a.icon,size:"0.8",style:{"margin-bottom":"-0.1rem"},class:"line-height-0"},null,8,["name"]),(0,n.createElementVNode)("p",wM,(0,n.toDisplayString)(a.label),1)]),_:2},1032,["to","class","onClick"]))),128))]),_:2},1032,["value"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:1,thin:"",flat:"",to:o.to,class:(0,n.normalizeClass)([o.class,"m_px-025"]),onClick:a=>o.action?.()},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{name:o.icon,size:"0.9",style:{"margin-bottom":"-0.1rem"},class:"line-height-0"},null,8,["name"]),(0,n.createElementVNode)("p",$M,(0,n.toDisplayString)(o.label),1)]),_:2},1032,["to","class","onClick"]))],64))),128))]),(0,n.renderSlot)(t.$slots,"end",{},void 0,!0)]))}}),EM=we(kM,[["__scopeId","data-v-630b449b"]]),CM={class:"full-nav"},SM={class:"nav-scroll"},xM={class:"nav-links-wrapper"},TM={class:"tooltip"},NM={class:"bot-buttons-wrapper"},DM={class:"tooltip"},AM=(0,n.defineComponent)({__name:"NavBar",props:{footerLinks:{default:()=>[]},links:{default:()=>[]},homeIcon:{default:"home"},homeLabel:{default:"Home"},homeTo:{default:"/"}},setup(e){const t=(0,n.ref)(!0);function r(){t.value=window.innerWidth<=910;const a=localStorage.getItem("navOpen");(a==="true"||a===null)&&(t.value=!0)}function o(){t.value=!t.value,localStorage.setItem("navOpen",`${t.value}`)}return(0,n.onMounted)(r),(a,i)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)({open:t.value,closed:!t.value})},[(0,n.renderSlot)(a.$slots,"top",{isOpen:t.value},void 0,!0),(0,n.createElementVNode)("div",{class:"nav-expend",role:"button","aria-label":"Toggle Navigation",tabindex:"0",onClick:o,onKeypress:(0,n.withKeys)(o,["enter"])},[(0,n.createVNode)((0,n.unref)(ge),{icon:"chevron_right",class:"top-arrow"})],32),(0,n.createElementVNode)("div",CM,[(0,n.createElementVNode)("div",SM,[(0,n.createElementVNode)("div",xM,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.links,l=>((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(l.to?"router-link":"div"),{key:l.label,class:"nav-button",to:l.to,onClick:s=>l.action?.()},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{icon:l.icon},null,8,["icon"]),(0,n.createElementVNode)("div",TM,(0,n.toDisplayString)((0,n.unref)(ke)(l.label)),1)]),_:2},1032,["to","onClick"]))),128))])]),(0,n.createElementVNode)("div",NM,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.footerLinks,l=>((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(l.to?"router-link":"div"),{key:l.label,class:"nav-button",to:l.to,onClick:s=>l.action?.()},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{icon:l.icon},null,8,["icon"]),(0,n.createElementVNode)("div",DM,(0,n.toDisplayString)((0,n.unref)(ke)(l.label)),1)]),_:2},1032,["to","onClick"]))),128)),(0,n.renderSlot)(a.$slots,"floor",{},void 0,!0)])])],2))}}),BM=we(AM,[["__scopeId","data-v-2f4dcf67"]]),MM={class:"page-top"},LM={class:"top-title m-0"},PM=(0,n.defineComponent)({__name:"PageTitle",props:{value:{type:String,default:""}},setup(e){return(t,r)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",MM,[(0,n.createElementVNode)("h1",LM,[(0,n.renderSlot)(t.$slots,"default"),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.value),1)])]))}}),gg=PM,IM={key:1,class:"pagination-ellipsis"},VM={class:"pagination-info"},OM=(0,n.defineComponent)({__name:"Pagination",props:(0,n.mergeModels)({totalItems:{default:0},perPage:{default:25},totalPages:{default:void 0},variant:{default:"default"},rtl:{type:Boolean,default:!1},maxVisiblePages:{default:3}},{page:{default:1},pageModifiers:{},range:{},rangeModifiers:{}}),emits:["update:page","update:range"],setup(e){const t=e,r=(0,n.useModel)(e,"page"),o=(0,n.useModel)(e,"range"),a=(0,n.ref)(),i=(0,n.ref)(0),l=(0,n.ref)(0),s=(0,n.computed)(()=>{if(t.totalPages!==void 0)return t.totalPages;const{perPage:v}=t;return Math.max(1,Math.ceil(t.totalItems/v))});(0,n.watch)([()=>r.value,()=>t.perPage,()=>t.totalItems],()=>{if(o.value){const{perPage:v}=t,b=(r.value-1)*v;o.value={start:b,end:Math.min(b+v-1,t.totalItems-1)}}(0,n.nextTick)(()=>{u()})},{immediate:!0}),(0,n.watch)(()=>t.rtl,u);const c=(0,n.computed)(()=>{const{maxVisiblePages:v}=t;if(s.value<=v*2)return Array.from({length:s.value},(y,_)=>_+1);const b=new Set;b.add(r.value),r.value>1&&b.add(r.value-1),r.value<s.value&&b.add(r.value+1),b.add(1),b.add(s.value);const g=Array.from(b).sort((y,_)=>y-_);if(g.length<v+2)for(let y=0;y<g.length-1;y++){const _=g[y],w=g[y+1];if(w-_>1){const $=Math.min(w-_-1,v+2-g.length),A=Array.from({length:$},(E,k)=>_+k+1);g.splice(y+1,0,...A),y+=A.length}}return g});function u(){if(!a.value)return;const v=a.value.querySelector(".selected");if(!v)return;const b=a.value.getBoundingClientRect(),g=v.getBoundingClientRect();l.value=g.width,t.rtl?i.value=b.right-g.right:i.value=g.left-b.left}function d(v){v<1||v>s.value||(r.value=v)}function f(){d(r.value+1)}function m(){d(r.value-1)}function p(v){return v===void 0?"-":(v+1).toString()}const h=(0,n.computed)(()=>{const v=[];for(let b=0;b<c.value.length;b++){const g=c.value[b];b>0&&g-c.value[b-1]>1&&v.push({type:"ellipsis",key:`ellipsis-${b}`}),v.push({type:"page",number:g,key:g})}return v});return(v,b)=>s.value>1?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,ref_key:"paginationContainer",ref:a,class:"relative flex gap-1 justify-content"},[e.variant!=="simple"?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createElementVNode)("div",{class:"indicator radius-1",style:(0,n.normalizeStyle)({[e.rtl?"right":"left"]:`${i.value}px`,width:`${l.value}px`})},null,4),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(h.value,g=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:g.key},[g.type==="page"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:0,flat:"",thin:"",class:(0,n.normalizeClass)({selected:g.number===r.value}),value:g.number?g.number.toString():"",onClick:y=>g.number?d(g.number):null},null,8,["class","value","onClick"])):g.type==="ellipsis"?((0,n.openBlock)(),(0,n.createElementBlock)("div",IM," ... ")):(0,n.createCommentVNode)("",!0)],64))),128))],64)):((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[(0,n.createVNode)((0,n.unref)(ne),{flat:"",thin:"",disabled:r.value<=1,icon:"chevron_left",onClick:m},null,8,["disabled"]),(0,n.createElementVNode)("span",VM,(0,n.toDisplayString)(p(o.value?.start))+"-"+(0,n.toDisplayString)(p(o.value?.end))+" / "+(0,n.toDisplayString)(t.totalItems),1),(0,n.createVNode)((0,n.unref)(ne),{flat:"",thin:"",disabled:r.value>=s.value,icon:"chevron_right",onClick:f},null,8,["disabled"])],64))],512)):(0,n.createCommentVNode)("",!0)}}),RM=we(OM,[["__scopeId","data-v-f3fadb25"]]),FM={key:1,class:"flex gap-075 align-items-center"},zM={key:0,class:"txt12 opacity-6 bgl-progress-label"},UM=(0,n.defineComponent)({name:"BglProgress",__name:"Progress",props:{value:{default:0},color:{default:"primary"},ring:{type:Boolean},size:{default:void 0},thickness:{default:9},label:{type:Boolean}},setup(e){const t=e,r=(0,n.computed)(()=>Math.max(0,Math.min(100,t.value))),o=(0,n.computed)(()=>`var(--bgl-${t.color})`),a=(0,n.computed)(()=>t.size??86),i=(0,n.computed)(()=>t.size??8);return(l,s)=>e.ring?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"bgl-progress-ring grid place-items-center",style:(0,n.normalizeStyle)({width:`${a.value}px`,height:`${a.value}px`,"--bgl-progress-pct":`${r.value}`,background:`conic-gradient(${o.value} calc(var(--bgl-progress-pct) * 1%), var(--bgl-progress-track, var(--bgl-border-color)) 0)`})},[(0,n.createElementVNode)("div",{class:"bgl-progress-ring-hole grid place-items-center txt-center",style:(0,n.normalizeStyle)({width:`calc(100% - ${e.thickness*2}px)`,height:`calc(100% - ${e.thickness*2}px)`})},[(0,n.renderSlot)(l.$slots,"default",{},void 0,!0)],4)],4)):((0,n.openBlock)(),(0,n.createElementBlock)("div",FM,[(0,n.createElementVNode)("div",{class:"bgl-progress-track flex-grow",style:(0,n.normalizeStyle)({height:`${i.value}px`})},[(0,n.createElementVNode)("div",{class:"bgl-progress-fill",style:(0,n.normalizeStyle)({width:`${r.value}%`,background:o.value})},null,4)],4),e.label&&!l.$slots.default?((0,n.openBlock)(),(0,n.createElementBlock)("span",zM,(0,n.toDisplayString)(Math.round(r.value))+"%",1)):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(l.$slots,"default",{},void 0,!0)]))}}),HM=we(UM,[["__scopeId","data-v-5658f84c"]]),WM={class:"rating"},jM=(0,n.defineComponent)({__name:"Rating",props:{rating:{},totalStars:{default:5},iconType:{default:"star"},fillColor:{default:"#fabf05"},emptyColor:{default:"lightgray"},size:{default:1.4}},setup(e){function t(r){const o=typeof e.rating=="string"?Number.parseFloat(e.rating.replace(",",".")):e.rating;return r<=Math.floor(o)?"100%":r>Math.ceil(o)?"0%":`${o%1*100}%`}return(r,o)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",WM,[e.iconType==="star"?((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:0},(0,n.renderList)(e.totalStars,a=>((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:a,class:"star-icon p-025",style:(0,n.normalizeStyle)({"--gradient-width":t(a),"--fill-color":e.fillColor,"--empty-color":e.emptyColor})}," ★ ",4))),128)):((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:1},(0,n.renderList)(e.totalStars,a=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:a,fill:"",name:e.iconType,class:"star-icon p-0",size:e.size,style:(0,n.normalizeStyle)({gap:`${e.size*.3}rem`,"--gradient-width":t(a),"--fill-color":e.fillColor,"--empty-color":e.emptyColor})},null,8,["name","size","style"]))),128))]))}}),qM=we(jM,[["__scopeId","data-v-efe1578b"]]),GM={class:"w-100p h-100vh flex justify-content-center"},YM=(0,n.defineComponent)({__name:"RouterWrapper",setup(e){return(t,r)=>{const o=(0,n.resolveComponent)("RouterView");return(0,n.openBlock)(),(0,n.createBlock)(o,null,{default:(0,n.withCtx)(({Component:a,route:i})=>[a?((0,n.openBlock)(),(0,n.createBlock)(n.Transition,{key:1,duration:300,name:"slide-fade",mode:"out-in",appear:""},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(a),{key:i?.params.itemID}))]),_:2},1024)):(0,n.renderSlot)(t.$slots,"default",{key:0},()=>[(0,n.createElementVNode)("div",GM,[(0,n.createVNode)(Wr)])],!0)]),_:3})}}}),XM=we(YM,[["__scopeId","data-v-9f43ea65"]]);function xc(e,t=""){const r={};for(const o in e){if(!Object.hasOwn(e,o))continue;const a=e[o],i=t?`${t}.${o}`:o;a&&typeof a=="object"&&!Array.isArray(a)?Object.assign(r,xc(a,i)):r[i]=a}return r}function KM(e){const t={};for(const r in e){if(!Object.hasOwn(e,r))continue;const o=r.split(".");let a=t;for(let i=0;i<o.length-1;i++){const l=o[i];a[l]||(a[l]={}),a=a[l]}a[o[o.length-1]]=e[r]}return t}function Tc(e,t){if(e==null)return"";switch(t){case"image":return String(e);case"boolean":return"";case"number":return Number(e).toLocaleString();case"currency":return Number(e).toLocaleString(void 0,{style:"currency",currency:"USD"});case"date":return e?new Date(e).toLocaleDateString():"";case"percentage":return Number(e).toLocaleString(void 0,{style:"percent",minimumFractionDigits:2});default:return String(e)}}function vg(e,t){switch(t){case"boolean":return typeof e=="boolean"?e:e==="true";case"number":case"percentage":case"currency":return typeof e=="boolean"||e===""?null:Number(String(e).replace(/[^0-9.-]/g,""));case"date":return typeof e=="boolean"||e===""?null:new Date(String(e)).toISOString();default:return String(e)}}function JM(e,t,r,o,a,i,l,s){async function c(){if(!r.value||!o.value)return;const d=Math.min(r.value.row,o.value.row),f=Math.max(r.value.row,o.value.row),m=Math.min(r.value.col,o.value.col),p=Math.max(r.value.col,o.value.col),h=Array.from({length:f-d+1},(v,b)=>Array.from({length:p-m+1},(g,y)=>{const _=t.value[m+y];return Tc(e.value[d+b][_.key],_.format)}).join(" ")).join(`
|
|
292
|
+
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[en.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[en.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function So(e,...t){return Cl(pD[e],...t)}function ka(e){if(!Me(e)||an(e))return e;for(const t in e)if(nn(e,t))if(!t.includes("."))Me(e[t])&&ka(e[t]);else{const r=t.split("."),o=r.length-1;let a=e,i=!1;for(let l=0;l<o;l++){if(r[l]==="__proto__")throw new Error(`unsafe key: ${r[l]}`);if(r[l]in a||(a[r[l]]=je()),!Me(a[r[l]])){process.env.NODE_ENV!=="production"&&(So(en.IGNORE_OBJ_FLATTEN,{key:r[l]}),void 0),i=!0;break}a=a[r[l]]}if(i||(an(a)?H0.includes(r[o])||delete e[t]:(a[r[o]]=e[t],delete e[t])),!an(a)){const l=a[r[o]];Me(l)&&ka(l)}}return e}function Bu(e,t){const{messages:r,__i18n:o,messageResolver:a,flatJson:i}=t,l=Be(r)?r:tt(o)?je():{[e]:je()};if(tt(o)&&o.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:c,resource:u}=s;c?(l[c]=l[c]||je(),Si(u,l[c])):Si(u,l)}else ye(s)&&Si(JSON.parse(s),l)}),a==null&&i)for(const s in l)nn(l,s)&&ka(l[s]);return l}function ag(e){return e.type}function ig(e,t,r){let o=Me(t.messages)?t.messages:je();"__i18nGlobal"in r&&(o=Bu(e.locale.value,{messages:o,__i18n:r.__i18nGlobal}));const a=Object.keys(o);if(a.length&&a.forEach(i=>{e.mergeLocaleMessage(i,o[i])}),Me(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(Me(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}function ym(e){return(0,n.createVNode)(n.Text,null,e,0)}function go(){const e="currentInstance";return e in n?n[e]:n.getCurrentInstance()}var bm="__INTLIFY_META__",_m=()=>[],hD=()=>!1,wm=0;function $m(e){return((t,r,o,a)=>e(r,o,go()||void 0,a))}var gD=()=>{const e=go();let t=null;return e&&(t=ag(e)[bm])?{[bm]:t}:null};function Yi(e={}){const{__root:t,__injectWithOption:r}=e,o=t===void 0,a=e.flatJson,i=_n?n.ref:n.shallowRef;let l=Oe(e.inheritLocale)?e.inheritLocale:!0;const s=i(t&&l?t.locale.value:ye(e.locale)?e.locale:$a),c=i(t&&l?t.fallbackLocale.value:ye(e.fallbackLocale)||tt(e.fallbackLocale)||Be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=i(Bu(s.value,e)),d=i(Be(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=i(Be(e.numberFormats)?e.numberFormats:{[s.value]:{}});let m=t?t.missingWarn:Oe(e.missingWarn)||Eo(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:Oe(e.fallbackWarn)||Eo(e.fallbackWarn)?e.fallbackWarn:!0,h=t?t.fallbackRoot:Oe(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.fallbackFormat,b=Je(e.missing)?e.missing:null,g=Je(e.missing)?$m(e.missing):null,y=Je(e.postTranslation)?e.postTranslation:null,_=t?t.warnHtmlMessage:Oe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const $=t?t.modifiers:Be(e.modifiers)?e.modifiers:{};let A=e.pluralRules||t&&t.pluralRules,E;E=(()=>{o&&cm(null);const oe={version:dD,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:$,pluralRules:A,missing:g===null?void 0:g,missingWarn:m,fallbackWarn:p,fallbackFormat:v,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:_,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};oe.datetimeFormats=d.value,oe.numberFormats=f.value,oe.__datetimeFormatters=Be(E)?E.__datetimeFormatters:void 0,oe.__numberFormatters=Be(E)?E.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(oe.__v_emitter=Be(E)?E.__v_emitter:void 0);const me=H5(oe);return o&&cm(me),me})(),Ho(E,s.value,c.value);function P(){return[s.value,c.value,u.value,d.value,f.value]}const N=(0,n.computed)({get:()=>s.value,set:oe=>{E.locale=oe,s.value=oe}}),V=(0,n.computed)({get:()=>c.value,set:oe=>{E.fallbackLocale=oe,c.value=oe,Ho(E,s.value,oe)}}),x=(0,n.computed)(()=>u.value),T=(0,n.computed)(()=>d.value),L=(0,n.computed)(()=>f.value);function F(){return Je(y)?y:null}function O(oe){y=oe,E.postTranslation=oe}function B(){return b}function q(oe){oe!==null&&(g=$m(oe)),b=oe,E.missing=g}function te(oe,me){return oe!=="translate"||!me.resolvedMessage}const ee=(oe,me,Le,Ze,kn,Xt)=>{P();let kt;try{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&sm(gD()),o||(E.fallbackContext=t?U5():void 0),kt=oe(E)}finally{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&sm(null),o||(E.fallbackContext=void 0)}if(Le!=="translate exists"&&ct(kt)&&kt===-1||Le==="translate exists"&&!kt){const[Fn,Fl]=me();if(process.env.NODE_ENV!=="production"&&t&&ye(Fn)&&te(Le,Fl)&&(h&&(Tl(p,Fn)||X0(m,Fn))&&(So(en.FALLBACK_TO_ROOT,{key:Fn,type:Le}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:Vo}=E;Vo&&h&&Vo.emit("fallback",{type:Le,key:Fn,to:"global",groupId:`${Le}:${Fn}`})}return t&&h?Ze(t):kn(Fn)}else{if(Xt(kt))return kt;throw xt(Ye.UNEXPECTED_RETURN_TYPE)}};function le(...oe){return ee(me=>Reflect.apply(vm,null,[me,...oe]),()=>bc(...oe),"translate",me=>Reflect.apply(me.t,me,[...oe]),me=>me,me=>ye(me))}function R(...oe){const[me,Le,Ze]=oe;if(Ze&&!Me(Ze))throw xt(Ye.INVALID_ARGUMENT);return le(me,Le,ut({resolvedMessage:!0},Ze||{}))}function I(...oe){return ee(me=>Reflect.apply(fm,null,[me,...oe]),()=>vc(...oe),"datetime format",me=>Reflect.apply(me.d,me,[...oe]),()=>"",me=>ye(me)||tt(me))}function U(...oe){return ee(me=>Reflect.apply(pm,null,[me,...oe]),()=>yc(...oe),"number format",me=>Reflect.apply(me.n,me,[...oe]),()=>"",me=>ye(me)||tt(me))}function D(oe){return oe.map(me=>ye(me)||ct(me)||Oe(me)?ym(String(me)):me)}const j={normalize:D,interpolate:oe=>oe,type:"vnode"};function Y(...oe){return ee(me=>{let Le;const Ze=me;try{Ze.processor=j,Le=Reflect.apply(vm,null,[Ze,...oe])}finally{Ze.processor=null}return Le},()=>bc(...oe),"translate",me=>me[wc](...oe),me=>[ym(me)],me=>tt(me))}function ae(...oe){return ee(me=>Reflect.apply(pm,null,[me,...oe]),()=>yc(...oe),"number format",me=>me[kc](...oe),_m,me=>ye(me)||tt(me))}function be(...oe){return ee(me=>Reflect.apply(fm,null,[me,...oe]),()=>vc(...oe),"datetime format",me=>me[$c](...oe),_m,me=>ye(me)||tt(me))}function K(oe){A=oe,E.pluralRules=A}function ce(oe,me){return ee(()=>{if(!oe)return!1;const Le=ye(me)?me:s.value,Ze=ye(me)?[Le]:gc(E,c.value,Le);for(let kn=0;kn<Ze.length;kn++){const Xt=_e(Ze[kn]);let kt=E.messageResolver(Xt,oe);if(kt===null&&(kt=Xt[oe]),an(kt)||Qt(kt)||ye(kt))return!0}return!1},()=>[oe],"translate exists",Le=>Reflect.apply(Le.te,Le,[oe,me]),hD,Le=>Oe(Le))}function ie(oe){let me=null;const Le=gc(E,c.value,s.value);for(let Ze=0;Ze<Le.length;Ze++){const kn=u.value[Le[Ze]]||{},Xt=E.messageResolver(kn,oe);if(Xt!=null){me=Xt;break}}return me}function de(oe){const me=ie(oe);return me??(t?t.tm(oe)||{}:{})}function _e(oe){return u.value[oe]||{}}function se(oe,me){if(a){const Le={[oe]:me};for(const Ze in Le)nn(Le,Ze)&&ka(Le[Ze]);me=Le[oe]}u.value[oe]=me,E.messages=u.value}function $e(oe,me){u.value[oe]=u.value[oe]||{};const Le={[oe]:me};if(a)for(const Ze in Le)nn(Le,Ze)&&ka(Le[Ze]);me=Le[oe],Si(me,u.value[oe]),E.messages=u.value}function z(oe){return d.value[oe]||{}}function G(oe,me){d.value[oe]=me,E.datetimeFormats=d.value,mm(E,oe,me)}function fe(oe,me){d.value[oe]=ut(d.value[oe]||{},me),E.datetimeFormats=d.value,mm(E,oe,me)}function ve(oe){return f.value[oe]||{}}function qe(oe,me){f.value[oe]=me,E.numberFormats=f.value,hm(E,oe,me)}function Xe(oe,me){f.value[oe]=ut(f.value[oe]||{},me),E.numberFormats=f.value,hm(E,oe,me)}wm++,t&&_n&&((0,n.watch)(t.locale,oe=>{l&&(s.value=oe,E.locale=oe,Ho(E,s.value,c.value))}),(0,n.watch)(t.fallbackLocale,oe=>{l&&(c.value=oe,E.fallbackLocale=oe,Ho(E,s.value,c.value))}));const Ie={id:wm,locale:N,fallbackLocale:V,get inheritLocale(){return l},set inheritLocale(oe){l=oe,oe&&t&&(s.value=t.locale.value,c.value=t.fallbackLocale.value,Ho(E,s.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:x,get modifiers(){return $},get pluralRules(){return A||{}},get isGlobal(){return o},get missingWarn(){return m},set missingWarn(oe){m=oe,E.missingWarn=m},get fallbackWarn(){return p},set fallbackWarn(oe){p=oe,E.fallbackWarn=p},get fallbackRoot(){return h},set fallbackRoot(oe){h=oe},get fallbackFormat(){return v},set fallbackFormat(oe){v=oe,E.fallbackFormat=v},get warnHtmlMessage(){return _},set warnHtmlMessage(oe){_=oe,E.warnHtmlMessage=oe},get escapeParameter(){return w},set escapeParameter(oe){w=oe,E.escapeParameter=oe},t:le,getLocaleMessage:_e,setLocaleMessage:se,mergeLocaleMessage:$e,getPostTranslationHandler:F,setPostTranslationHandler:O,getMissingHandler:B,setMissingHandler:q,[rg]:K};return Ie.datetimeFormats=T,Ie.numberFormats=L,Ie.rt=R,Ie.te=ce,Ie.tm=de,Ie.d=I,Ie.n=U,Ie.getDateTimeFormat=z,Ie.setDateTimeFormat=G,Ie.mergeDateTimeFormat=fe,Ie.getNumberFormat=ve,Ie.setNumberFormat=qe,Ie.mergeNumberFormat=Xe,Ie[og]=r,Ie[wc]=Y,Ie[$c]=be,Ie[kc]=ae,process.env.NODE_ENV!=="production"&&(Ie[or]=oe=>{E.__v_emitter=oe},Ie[Ur]=()=>{E.__v_emitter=void 0}),Ie}var lg="vue-i18n: composer properties",vs={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},vD={"vue-i18n-resource-inspector":"Search for scopes ..."},yD={"vue-i18n-timeline":16764185},Ec;async function bD(e,t){return new Promise((r,o)=>{try{uD({id:"vue-devtools-plugin-vue-i18n",label:vs["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[lg],app:e},a=>{Ec=a,a.on.visitComponentTree(({componentInstance:l,treeNode:s})=>{_D(l,s,t)}),a.on.inspectComponent(({componentInstance:l,instanceData:s})=>{l.__VUE_I18N__&&s&&(t.mode==="legacy"?l.__VUE_I18N__!==t.global.__composer&&km(s,l.__VUE_I18N__):km(s,l.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:vs["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:vD["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&CD(l,t)});const i=new Map;a.on.getInspectorState(async l=>{if(l.app===e&&l.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),xD(l,t),l.nodeId==="global"){if(!i.has(l.app)){const[s]=await a.getComponentInstances(l.app);i.set(l.app,s)}a.highlightElement(i.get(l.app))}else{const s=SD(l.nodeId,t);s&&a.highlightElement(s)}}),a.on.editInspectorState(l=>{l.app===e&&l.inspectorId==="vue-i18n-resource-inspector"&&ND(l,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:vs["vue-i18n-timeline"],color:yD["vue-i18n-timeline"]}),r(!0)})}catch{o(!1)}})}function sg(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function _D(e,t,r){const o=r.mode==="composition"?r.global:r.global.__composer;if(e&&e.__VUE_I18N__&&e.__VUE_I18N__!==o){const a={label:`i18n (${sg(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function km(e,t){const r=lg;e.state.push({type:r,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:r,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:r,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:r,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:r,key:"messages",editable:!1,value:Mu(t.messages.value)}),e.state.push({type:r,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:r,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Mu(e){const t={};return Object.keys(e).forEach(r=>{const o=e[r];Je(o)&&"source"in o?t[r]=ED(o):an(o)&&o.loc&&o.loc.source?t[r]=o.loc.source:Me(o)?t[r]=Mu(o):t[r]=o}),t}var wD={"<":"<",">":">",'"':""","&":"&"};function $D(e){return e.replace(/[<>"&]/g,kD)}function kD(e){return wD[e]||e}function ED(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${$D(e.source)}")`:"(?)"}`}}}function CD(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const r=t.mode==="composition"?t.global:t.global.__composer;for(const[o,a]of t.__instances){const i=t.mode==="composition"?a:a.__composer;r!==i&&e.rootNodes.push({id:i.id.toString(),label:`${sg(o)} Scope`})}}function SD(e,t){let r=null;if(e!=="global"){for(const[o,a]of t.__instances.entries())if(a.id.toString()===e){r=o;break}}return r}function cg(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const r=Array.from(t.__instances.values()).find(o=>o.id.toString()===e);return r?t.mode==="composition"?r:r.__composer:null}}function xD(e,t){const r=cg(e.nodeId,t);return r&&(e.state=TD(r)),null}function TD(e){const t={},r="Locale related info";t[r]=[{type:r,key:"locale",editable:!0,value:e.locale.value},{type:r,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:r,key:"availableLocales",editable:!1,value:e.availableLocales},{type:r,key:"inheritLocale",editable:!0,value:e.inheritLocale}];const o="Locale messages info";t[o]=[{type:o,key:"messages",editable:!1,value:Mu(e.messages.value)}];{const a="Datetime formats info";t[a]=[{type:a,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];const i="Datetime formats info";t[i]=[{type:i,key:"numberFormats",editable:!1,value:e.numberFormats.value}]}return t}function Hr(e,t){if(Ec){let r;t&&"groupId"in t&&(r=t.groupId,delete t.groupId),Ec.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:r,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function ND(e,t){const r=cg(e.nodeId,t);if(r){const[o]=e.path;o==="locale"&&ye(e.state.value)?r.locale.value=e.state.value:o==="fallbackLocale"&&(ye(e.state.value)||tt(e.state.value)||Me(e.state.value))?r.fallbackLocale.value=e.state.value:o==="inheritLocale"&&Oe(e.state.value)&&(r.inheritLocale=e.state.value)}}function DD(e){const t=ye(e.locale)?e.locale:$a,r=ye(e.fallbackLocale)||tt(e.fallbackLocale)||Be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,o=Je(e.missing)?e.missing:void 0,a=Oe(e.silentTranslationWarn)||Eo(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=Oe(e.silentFallbackWarn)||Eo(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=Oe(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,c=Be(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,d=Je(e.postTranslation)?e.postTranslation:void 0,f=ye(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,m=!!e.escapeParameterHtml,p=Oe(e.sync)?e.sync:!0;let h=e.messages;if(Be(e.sharedMessages)){const $=e.sharedMessages;h=Object.keys($).reduce((A,E)=>(ut(A[E]||(A[E]={}),$[E]),A),h||{})}const{__i18n:v,__root:b,__injectWithOption:g}=e,y=e.datetimeFormats,_=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:r,messages:h,flatJson:w,datetimeFormats:y,numberFormats:_,missing:o,missingWarn:a,fallbackWarn:i,fallbackRoot:l,fallbackFormat:s,modifiers:c,pluralRules:u,postTranslation:d,warnHtmlMessage:f,escapeParameter:m,messageResolver:e.messageResolver,inheritLocale:p,__i18n:v,__root:b,__injectWithOption:g}}function Cc(e={}){const t=Yi(DD(e)),{__extender:r}=e,o={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return Oe(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=Oe(a)?!a:a},get silentFallbackWarn(){return Oe(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=Oe(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},te(a,i){return t.te(a,i)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,i){t.setLocaleMessage(a,i)},mergeLocaleMessage(a,i){t.mergeLocaleMessage(a,i)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,i){t.setDateTimeFormat(a,i)},mergeDateTimeFormat(a,i){t.mergeDateTimeFormat(a,i)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,i){t.setNumberFormat(a,i)},mergeNumberFormat(a,i){t.mergeNumberFormat(a,i)}};return o.__extender=r,process.env.NODE_ENV!=="production"&&(o.__enableEmitter=a=>{const i=t;i[or]&&i[or](a)},o.__disableEmitter=()=>{const a=t;a[Ur]&&a[Ur]()}),o}function AD(e,t,r){return{beforeCreate(){const o=go();if(!o)throw xt(Ye.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const i=a.i18n;if(a.__i18n&&(i.__i18n=a.__i18n),i.__root=t,this===this.$root)this.$i18n=Em(e,i);else{i.__injectWithOption=!0,i.__extender=r.__vueI18nExtend,this.$i18n=Cc(i);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=Em(e,a);else{this.$i18n=Cc({__i18n:a.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&ig(t,a,a),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$te=(i,l)=>this.$i18n.te(i,l),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),r.__setInstance(o,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$i18n){const o=go();if(!o)return;const a=this.$i18n;o.__VUE_I18N__=a.__composer;const i=this.__v_emitter=xl();a.__enableEmitter&&a.__enableEmitter(i),i.on("*",Hr)}},unmounted(){const o=go();if(!o)throw xt(Ye.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&o.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Hr),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete o.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),r.__deleteInstance(o),delete this.$i18n}}}function Em(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[rg](t.pluralizationRules||e.pluralizationRules);const r=Bu(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(r).forEach(o=>e.mergeLocaleMessage(o,r[o])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(o=>e.mergeDateTimeFormat(o,t.datetimeFormats[o])),t.numberFormats&&Object.keys(t.numberFormats).forEach(o=>e.mergeNumberFormat(o,t.numberFormats[o])),e}var Lu={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function BD({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>[...r,...o.type===n.Fragment?o.children:[o]],[]):t.reduce((r,o)=>{const a=e[o];return a&&(r[o]=a()),r},je())}function ug(){return n.Fragment}var Cm=(0,n.defineComponent)({name:"i18n-t",props:ut({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ct(e)||!isNaN(e)}},Lu),setup(e,t){const{slots:r,attrs:o}=t,a=e.i18n||Pu({useScope:e.scope,__useComponent:!0});return()=>{const i=()=>{const c=Object.keys(r).filter(f=>f[0]!=="_"),u=je();e.locale&&(u.locale=e.locale),e.plural!==void 0&&(u.plural=ye(e.plural)?+e.plural:e.plural);const d=BD(t,c);return a[wc](e.keypath,d,u)},l=ut(je(),o),s=ye(e.tag)||Me(e.tag)?e.tag:ug();return Me(s)?(0,n.h)(s,l,{default:i}):(0,n.h)(s,l,i())}}});function MD(e){return tt(e)&&!ye(e[0])}function dg(e,t,r,o){const{slots:a,attrs:i}=t;return()=>{const l=()=>{const u={part:!0};let d=je();e.locale&&(u.locale=e.locale),ye(e.format)?u.key=e.format:Me(e.format)&&(ye(e.format.key)&&(u.key=e.format.key),d=Object.keys(e.format).reduce((p,h)=>r.includes(h)?ut(je(),p,{[h]:e.format[h]}):p,je()));const f=o(e.value,u,d);let m=[u.key];return tt(f)?m=f.map((p,h)=>{const v=a[p.type],b=v?v({[p.type]:p.value,index:h,parts:f}):[p.value];return MD(b)&&(b[0].key=`${p.type}-${h}`),b}):ye(f)&&(m=[f]),m},s=ut(je(),i),c=ye(e.tag)||Me(e.tag)?e.tag:ug();return Me(c)?(0,n.h)(c,s,{default:l}):(0,n.h)(c,s,l())}}var Sm=(0,n.defineComponent)({name:"i18n-n",props:ut({value:{type:Number,required:!0},format:{type:[String,Object]}},Lu),setup(e,t){const r=e.i18n||Pu({useScope:e.scope,__useComponent:!0});return dg(e,t,Q0,(...o)=>r[kc](...o))}});function LD(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const o=r.__getInstance(t);return o!=null?o.__composer:e.global.__composer}}function PD(e){const t=l=>{process.env.NODE_ENV!=="production"&&Eu(So(en.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:s,value:c}=l;if(!s||!s.$)throw xt(Ye.UNEXPECTED_ERROR);const u=LD(e,s.$),d=xm(c);return[Reflect.apply(u.t,u,[...Tm(d)]),u]};return{created:(l,s)=>{const[c,u]=t(s);_n&&(l.__i18nWatcher=(0,n.watch)(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),l.__composer=u,l.textContent=c},unmounted:l=>{_n&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:s})=>{if(l.__composer){const c=l.__composer,u=xm(s);l.textContent=Reflect.apply(c.t,c,[...Tm(u)])}},getSSRProps:l=>{const[s]=t(l);return{textContent:s}}}}function xm(e){if(ye(e))return{path:e};if(Be(e)){if(!("path"in e))throw xt(Ye.REQUIRED_VALUE,"path");return e}else throw xt(Ye.INVALID_VALUE)}function Tm(e){const{path:t,locale:r,args:o,choice:a,plural:i}=e,l={},s=o||{};return ye(r)&&(l.locale=r),ct(a)&&(l.plural=a),ct(i)&&(l.plural=i),[t,s,l]}function ID(e,t,...r){const o=Be(r[0])?r[0]:{};(!Oe(o.globalInstall)||o.globalInstall)&&([Cm.name,"I18nT"].forEach(a=>e.component(a,Cm)),[Sm.name,"I18nN"].forEach(a=>e.component(a,Sm)),[Am.name,"I18nD"].forEach(a=>e.component(a,Am))),e.directive("t",PD(t))}var VD=$n("global-vue-i18n");function OD(e={}){const t=__VUE_I18N_LEGACY_API__&&Oe(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&Eu(So(en.DEPRECATE_LEGACY_MODE));const r=Oe(e.globalInjection)?e.globalInjection:!0,o=new Map,[a,i]=RD(e,t),l=$n(process.env.NODE_ENV!=="production"?"vue-i18n":"");function s(f){return o.get(f)||null}function c(f,m){o.set(f,m)}function u(f){o.delete(f)}const d={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...m){if(process.env.NODE_ENV!=="production"&&(f.__VUE_I18N__=d),f.__VUE_I18N_SYMBOL__=l,f.provide(f.__VUE_I18N_SYMBOL__,d),Be(m[0])){const v=m[0];d.__composerExtend=v.__composerExtend,d.__vueI18nExtend=v.__vueI18nExtend}let p=null;!t&&r&&(p=qD(f,d.global)),__VUE_I18N_FULL_INSTALL__&&ID(f,d,...m),__VUE_I18N_LEGACY_API__&&t&&f.mixin(AD(i,i.__composer,d));const h=f.unmount;if(f.unmount=()=>{p&&p(),d.dispose(),h()},process.env.NODE_ENV!=="production"){if(!await bD(f,d))throw xt(Ye.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const v=xl();if(t){const b=i;b.__enableEmitter&&b.__enableEmitter(v)}else{const b=i;b[or]&&b[or](v)}v.on("*",Hr)}},get global(){return i},dispose(){a.stop()},__instances:o,__getInstance:s,__setInstance:c,__deleteInstance:u};return d}function Pu(e={}){const t=go();if(t==null)throw xt(Ye.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw xt(Ye.NOT_INSTALLED);const r=FD(t),o=UD(r),a=ag(t),i=zD(e,a);if(i==="global")return ig(o,e,a),o;if(i==="parent"){let c=Nm(r,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&(So(en.NOT_FOUND_PARENT_SCOPE),void 0),c=o),c}if(i==="isolated"){if(r.mode!=="composition")throw xt(Ye.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=r,u=ut({},e);u.__root=Nm(r,t)||o;const d=Yi(u);c.__composerExtend&&(d[co]=c.__composerExtend(d));let f=null;if(process.env.NODE_ENV!=="production"){f=xl();const m=d;m[or]&&m[or](f),f.on("*",Hr)}return(0,n.getCurrentScope)()&&(0,n.onScopeDispose)(()=>{if(process.env.NODE_ENV!=="production"){f&&f.off("*",Hr);const p=d;p[Ur]&&p[Ur]()}const m=d[co];m&&(m(),delete d[co])}),d}const l=r;let s=l.__getInstance(t);if(s==null){const c=ut({},e);"__i18n"in a&&(c.__i18n=a.__i18n),o&&(c.__root=o),s=Yi(c),l.__composerExtend&&(s[co]=l.__composerExtend(s)),WD(l,t,s),l.__setInstance(t,s)}else process.env.NODE_ENV!=="production"&&i==="local"&&(So(en.DUPLICATE_USE_I18N_CALLING),void 0);return s}function RD(e,t){const r=(0,n.effectScope)(),o=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Cc(e)):r.run(()=>Yi(e));if(o==null)throw xt(Ye.UNEXPECTED_ERROR);return[r,o]}function FD(e){const t=(0,n.inject)(e.isCE?VD:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw xt(e.isCE?Ye.NOT_INSTALLED_WITH_PROVIDE:Ye.UNEXPECTED_ERROR);return t}function zD(e,t){return Sl(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function UD(e){return e.mode==="composition"?e.global:e.global.__composer}function Nm(e,t,r=!1){let o=null;const a=t.root;let i=HD(t,r);for(;i!=null;){const l=e;if(e.mode==="composition")o=l.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=l.__getInstance(i);s!=null&&(o=s.__composer,r&&o&&!o[og]&&(o=null))}if(o!=null||a===i)break;i=i.parent}return o}function HD(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function WD(e,t,r){let o=null;(0,n.onMounted)(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=r,o=xl();const a=r;a[or]&&a[or](o),o.on("*",Hr)}},t),(0,n.onUnmounted)(()=>{const a=r;process.env.NODE_ENV!=="production"&&(o&&o.off("*",Hr),a[Ur]&&a[Ur](),delete t.__VUE_I18N__),e.__deleteInstance(t);const i=a[co];i&&(i(),delete a[co])},t)}var jD=["locale","fallbackLocale","availableLocales"],Dm=["t","rt","d","n","tm","te"];function qD(e,t){const r=Object.create(null);return jD.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i)throw xt(Ye.UNEXPECTED_ERROR);const l=(0,n.isRef)(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(r,a,l)}),e.config.globalProperties.$i18n=r,Dm.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i||!i.value)throw xt(Ye.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,i)}),()=>{delete e.config.globalProperties.$i18n,Dm.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}var Am=(0,n.defineComponent)({name:"i18n-d",props:ut({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Lu),setup(e,t){const r=e.i18n||Pu({useScope:e.scope,__useComponent:!0});return dg(e,t,Z0,(...o)=>r[$c](...o))}});fD();O5(y5);R5(L5);F5(gc);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Br();e.__INTLIFY__=!0,b5(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const GD={title:"Confirm",message:"Are you sure you want to continue?",confirm:"Confirm",cancel:"Cancel"},YD={upload:"Upload",uploading:"Uploading {count} file{plural}...",noFile:"No file selected",dropPlaceholder:"Drag and Drop files here or click to upload",delete:"Delete",replace:"Replace",download:"Download"},XD={of:"of",prev:"Previous",next:"Next"},KD={required:"This field is required",invalidEmail:"Please enter a valid email address",invalidUrl:"Please enter a valid URL",minLength:"Must be at least {min} characters",maxLength:"Must be no more than {max} characters",minValue:"Must be at least {min}",maxValue:"Must be no more than {max}",pattern:"Invalid format",passwordStrength:"Password strength"},JD={veryWeak:"Very Weak",weak:"Weak",fair:"Fair",good:"Good",strong:"Strong"},ZD={placeholder:"Select",search:"Search",yes:"Yes",no:"No"},QD={loadDefault:"Load Default {label}"},eA={item:"Item"},tA={loading:"Loading..."},nA={success:"Success",error:"Error",warning:"Warning",info:"Information"},rA={filter:"Filter",noActiveFilters:"No active filters",connectors:{and:"And",or:"Or"},operators:{eq:"Equals",ne:"Not equals",gt:"Greater than",ge:"Greater or equal",lt:"Less than",le:"Less or equal",co:"Contains",sw:"Starts with",ew:"Ends with",pr:"Present",in:"In list",nin:"Not in list"},placeholders:{selectField:"Select field",selectOption:"Select option",selectDate:"Select date",enterValue:"Value"},buttons:{addCondition:"Add condition",clearAll:"Clear all",save:"Save"}},oA={previous:"Previous",next:"Next",complete:"Complete",step:"Step {current} of {total}"},aA={placeholder:"Enter address"},iA={close:"Close",cancel:"Cancel",importData:"Import Data",changeFile:"Change File",selectSheet:"Select Sheet",hasHeaders:"Mark this if file has a header row",sourceKeyField:"Source Key Field (from this file)",relatedKeyField:"Related Key Field (from related file)",selectSourceValue:"Select source value",sourceValue:"Source value",selectTargetValue:"Select target value",targetValue:"Target value",selectColumn:"Select column..."},lA={year:"year",month:"month",week:"week",day:"day",hour:"hour",minute:"minute",second:"second",ago:"ago",in:"in",justNow:"Just now"},sA={save:"Save",cancel:"Cancel",delete:"Delete",validationError:"Please fix the validation errors before submitting",errorOccurred:"An error occurred"},cA={phoneNumber:"Phone Number",invalidPhone:"Please enter a valid phone number"},uA={invalidEmail:"Please enter a valid email address",invalidDomain:"This email domain appears to be invalid",disposableEmail:"Please use a non-disposable email address",didYouMean:"did you mean {suggestion}?",validating:"Validating email..."},dA={invalidFormat:"Invalid date format"},fA={wrapText:"Wrap Text",selectAll:"Select All",clearAll:"Clear All"},mA={openFile:"Open File"},pA={placeholder:"Enter color"},hA={deleteBlockConfirm:"Are you sure you want to delete this section?",saving:"Saving...",error:"Error",save:"Save",saved:"Saved",title:"Title",slug:"Slug",slugPlaceholder:"my-page",pageSettings:"Page Settings",deletePage:"Delete Page",deletePageConfirm:"Deleting this page cannot be undone.",newPage:"New Page",createPage:"Create Page",addNewBlock:"Add New Block",searchBlock:"Search block",page:"Page",pageStructure:"Page Structure",clickToEdit:"Click on section to edit",addNewBlockHere:"Click here to add a",newBlock:"new block",adding:"Adding",removeSection:"Remove Section",closeEditor:"Close Editor (ESC)",blockNotEditable:"This block's content comes from a data source",blockNotEditableDesc:"and cannot be edited here.",dataSourceHint:"Some content in this block may come from a data source. To change it, edit the data directly.",screenTooSmall:"The screen is too small for this editor. Try reducing zoom or using a larger screen.",cancel:"Cancel",publish:"Publish",unpublish:"Unpublish",discard:"Discard",selectItemPreview:"Select item for preview",language:"Language",defaultLanguage:"Default",setAsDefault:"Set as default",removeLanguage:"Remove language",languageCode:"he / en / fr",removeLanguageConfirm:'Remove language "{locale}"?',seoTitle:"SEO Title",seoDescription:"SEO Description",ogImageUrl:"OG Image URL",showGrid:"Show Grid",hideGrid:"Hide Grid",search:"Search...",lastSaved:"Last Saved",saveNow:"Save Now",publishDestination:"Choose publish destination",publishAll:"Publish all",lastPublished:"Last published",published:"Published",notPublished:"Not published yet",production:"Production",publishFailed:"Publish failed"},gA={loadError:"Loading failed",newItemTitle:"New item — {label}",createSubmit:"Create",editTitle:"Edit",saveSubmit:"Save",importTitle:"Import JSON — {label}",importSubmit:"Import",importJsonLabel:"JSON content",importJsonHint:"Array of objects [ {...}, {...} ] or a single object",importSummary:"{imported} imported · {failed} failed",deleteItemTitle:"Delete item",deleteItemMessage:"Delete this item?",deleteConfirm:"Delete",batchDeleteTitle:"Batch delete",batchDeleteMessage:"Delete {count} items?",batchDeleteSummary:"{deleted} deleted · {failed} failed",batchUpdateTitle:"Batch update — {count} items",updateAllSubmit:"Update all",batchUpdateSummary:"Updated · {failed} failed",selectedCount:"{count} selected",updateBtn:"Update",deleteBtn:"Delete",searchPlaceholder:"Search...",refreshTooltip:"Refresh",importTooltip:"Import JSON",newItemBtn:"New item",deleteTooltip:"Delete",reorderTooltip:"Reorder",reorderSaving:"Saving order..."},vA={selectCollection:"Select a collection from the list",fieldName:"Name",fieldStore:"Store",fieldStoreHint:"e.g.: default",fieldCollection:"Collection",fieldCollectionHint:"e.g.: my_collection",fieldDescription:"Description",createTitle:"Create new Datastore",createSubmit:"Create",editTitle:"Edit {name}",saveSubmit:"Save",addBtn:"Add Datastore",empty:"No Datastores yet",deleteConfirm:'Delete "{name}"?'},yA={content:"Content",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Newsletter",agent:"Agents",users:"Users",tenants:"Organizations"},bA={title:"Users",notConfigured:"User management interface is not configured",notConfiguredHint:"Pass userApi to createAuthAdmin() to enable this screen.",team:"Team",filterByRole:"Filter by role",invite:"Invite",pendingInvitations:"Pending invitations",pending:"Pending",resend:"Resend",delete:"Delete",activeUsers:"Active users",active:"Active",edit:"Edit",remove:"Remove",noUsers:"No users yet",inviteFirst:"Invite the first one",inviteTitle:"Invite user",firstName:"First name",lastName:"Last name",email:"Email",role:"Role",message:"Message",inviteSent:"Invitation sent again",inviteError:"Error sending invitation",deleteInviteConfirm:"Delete the invitation?",deleteInviteError:"Error deleting invitation",removeUserConfirm:"Remove {email}?"},_A={title:"Forms",refresh:"Refresh",newForm:"New Form",createForm:"Create Form",noForms:"No forms yet",noFormsDesc:"Create your first form to get started",active:"Active",inactive:"Inactive",submissionsOnly:"Submissions only",noDefinition:"No form definition - view submissions",fieldCount:"{n} fields",createdAt:"Created {date}",editor:{newForm:"New Form",builder:"Builder",submissions:"Submissions",edit:"Edit",preview:"Preview",save:"Save",create:"Create",formName:"Form Name *",formNamePlaceholder:"Enter form name",description:"Description",descriptionPlaceholder:"Optional description",active:"Active",deleteForm:"Delete Form",deleteConfirm:"Are you sure you want to delete this form?",submit:"Submit"},submissions:{title:"Submissions",exportCsv:"Export CSV",statusPlaceholder:"Status",noSubmissions:"No submissions found",count:"No submissions | 1 submission | {n} submissions",date:"Date",status:"Status",statusAll:"All",statusSaved:"Saved",statusDraft:"Draft",statusProcessed:"Processed",statusAbandoned:"Abandoned",statusError:"Error",statusSpam:"Spam"},builder:{noFields:"No fields yet",noFieldsDesc:"Click + to add your first field",noFieldsDefined:"No fields defined",selectField:"Select a field to edit its settings",tooSmall:"Window too small",tooSmallDesc:"Expand the window to at least 1000px to edit the form"},fieldSettings:{headingText:"Heading Text",noDividerSettings:"No settings for divider",label:"Label",fieldKey:"Field Key",placeholder:"Placeholder",helpText:"Help Text",required:"Required",options:"Options",addOption:"Add Option",validation:"Validation",minLength:"Min Length",maxLength:"Max Length",pattern:"Pattern (RegEx)",min:"Min",max:"Max",step:"Step",removeField:"Remove Field",columnWidth:"Column Width",columnHeight:"Column Height",optionLabel:"Label",optionValue:"Value",sectionHeader:"Section Header",fieldPrefix:"Field",removeFieldTitle:"Remove field",removeTitle:"Remove",richTextVariant:"Toolbar",richTextVariantFull:"Full",richTextVariantBasic:"Basic",richTextVariantSimple:"Simple",textareaRows:"Rows",textareaAutoHeight:"Auto Height",numberLayout:"Spinner Layout",numberLayoutDefault:"Default",numberLayoutVertical:"Vertical",numberLayoutHorizontal:"Horizontal",numberSpinner:"Show Spinner",phoneOnlyCountries:"Allowed Countries",phoneOnlyCountriesPlaceholder:"e.g. IL, US, GB",phoneOnlyCountriesHelp:"Comma-separated ISO 3166-1 alpha-2 country codes. Leave empty to show all countries.",selectMultiselect:"Multiple Selection",dateEnableTime:"Enable Time",dateMin:"Min Date",dateMax:"Max Date",rangeMulti:"Range (Two Handles)",radioThin:"Compact Style",radioHideRadio:"Hide Radio Circle",radioAlign:"Item Alignment",radioAlignStart:"Start",radioAlignCenter:"Center",radioAlignEnd:"End",textIcon:"End Icon",textIconStart:"Start Icon",fileMultiple:"Allow Multiple Files",fileHeight:"Height",fileAccept:"Accepted File Types",fileAcceptPlaceholder:"e.g. image/*,.pdf",fileTheme:"Theme",fileThemeDropzone:"Dropzone",fileThemeBasic:"Basic",fileShowIcon:"Show Icon",fileIcon:"Icon Name"},iconPicker:{none:"None",search:"Search icons...",noResults:"No icons found"},schemaBuilder:{fieldId:"Field ID",fieldIdDesc:"Technical name for API/database",fieldLabel:"Field Label",fieldLabelPlaceholder:"Enter field label",description:"Description (optional)",descriptionPlaceholder:"Help text for this field",requiredField:"Required field",required:"Required",textValidations:"Text Validations",format:"Format",minimumLength:"Minimum Length",maximumLength:"Maximum Length",noMinimum:"No minimum",noMaximum:"No maximum",numberValidations:"Number Validations",minimumValue:"Minimum Value",maximumValue:"Maximum Value",stepMultipleOf:"Step / Multiple Of",anyValue:"Any value",addField:"Add Field",noFieldsClickAbove:"Click a button above to add your first field",patternPlaceholder:"e.g., ^[A-Z]+$",fieldTypes:{shortText:"Short Text",longText:"Long Text",number:"Number",integer:"Integer",yesNo:"Yes/No",dropdown:"Dropdown",email:"Email",phone:"Phone",date:"Date",unknown:"Unknown"},formats:{plainText:"Plain Text",email:"Email",url:"URL",date:"Date",dateTime:"Date & Time",time:"Time",phone:"Phone"}}},wA={today:"Today",views:{week:"Week",month:"Month",day:"Day",agenda:"Agenda"},agenda:{time:"Time",event:"Event",eventsCount:"{n} event | {n} events",noEvents:"No events"}},$A={addTo:"Add to {name}",addToCalendar:"Add to Calendar",google:"Google Calendar",apple:"Apple Calendar",outlook:"Outlook",office365:"Office 365",yahoo:"Yahoo Calendar",ics:"Calendar (ICS file)"};var kA={modalConfirm:GD,upload:YD,pagination:XD,form:KD,password:JD,select:ZD,fieldArray:QD,arrayInput:eA,btn:tA,toast:nA,filter:rA,multiStep:oA,addressSearch:aA,importData:iA,timeAgo:lA,dialogForm:sA,tel:cA,email:uA,date:dA,spreadsheet:fA,lightbox:mA,color:pA,pageDesigner:hA,collection:gA,datastores:vA,admin:yA,userManagement:bA,forms:_A,calendar:wA,addToCalendar:$A};const EA={title:"Confirmar",message:"¿Estás seguro de que quieres continuar?",confirm:"Confirmar",cancel:"Cancelar"},CA={upload:"Subir",uploading:"Subiendo {count} archivo{plural}...",noFile:"Ningún archivo seleccionado",dropPlaceholder:"Arrastra y suelta archivos aquí o haz clic para subir",delete:"Eliminar",replace:"Reemplazar",download:"Descargar"},SA={of:"de",prev:"Anterior",next:"Siguiente"},xA={required:"Este campo es obligatorio",invalidEmail:"Introduce un correo electrónico válido",invalidUrl:"Introduce una URL válida",minLength:"Debe tener al menos {min} caracteres",maxLength:"Debe tener como máximo {max} caracteres",minValue:"Debe ser al menos {min}",maxValue:"Debe ser como máximo {max}",pattern:"Formato inválido",passwordStrength:"Fortaleza de la contraseña"},TA={veryWeak:"Muy débil",weak:"Débil",fair:"Regular",good:"Buena",strong:"Fuerte"},NA={placeholder:"Seleccionar",search:"Buscar",yes:"Sí",no:"No"},DA={loadDefault:"Cargar {label} predeterminado"},AA={item:"Elemento"},BA={loading:"Cargando..."},MA={success:"Éxito",error:"Error",warning:"Advertencia",info:"Información"},LA={filter:"Filtro",noActiveFilters:"Sin filtros activos",connectors:{and:"Y",or:"O"},operators:{eq:"Igual a",ne:"No igual a",gt:"Mayor que",ge:"Mayor o igual",lt:"Menor que",le:"Menor o igual",co:"Contiene",sw:"Empieza con",ew:"Termina con",pr:"Presente",in:"En lista",nin:"No en lista"},placeholders:{selectField:"Seleccionar campo",selectOption:"Seleccionar opción",selectDate:"Seleccionar fecha",enterValue:"Valor"},buttons:{addCondition:"Añadir condición",clearAll:"Limpiar todo",save:"Guardar"}},PA={previous:"Anterior",next:"Siguiente",complete:"Completar",step:"Paso {current} de {total}"},IA={placeholder:"Introduce una dirección"},VA={close:"Cerrar",cancel:"Cancelar",importData:"Importar datos",changeFile:"Cambiar archivo",selectSheet:"Seleccionar hoja",hasHeaders:"Marcar si el archivo tiene fila de encabezado",sourceKeyField:"Campo clave de origen (de este archivo)",relatedKeyField:"Campo clave relacionado (del archivo relacionado)",selectSourceValue:"Seleccionar valor de origen",sourceValue:"Valor de origen",selectTargetValue:"Seleccionar valor de destino",targetValue:"Valor de destino",selectColumn:"Seleccionar columna..."},OA={year:"año",month:"mes",week:"semana",day:"día",hour:"hora",minute:"minuto",second:"segundo",ago:"hace",in:"en",justNow:"Justo ahora"},RA={save:"Guardar",cancel:"Cancelar",delete:"Eliminar",validationError:"Por favor corrija los errores de validación antes de enviar",errorOccurred:"Ocurrió un error"},FA={phoneNumber:"Número de teléfono",invalidPhone:"Por favor introduce un número de teléfono válido"},zA={invalidEmail:"Introduce un correo electrónico válido",invalidDomain:"El dominio de este correo electrónico parece no ser válido",disposableEmail:"Por favor, utilice una dirección de correo electrónico que no sea desechable",didYouMean:"¿Quisiste decir {suggestion}?",validating:"Validando correo electrónico..."},UA={invalidFormat:"Formato de fecha inválido"},HA={wrapText:"Ajuste de texto",selectAll:"Seleccionar todo",clearAll:"Limpiar todo"},WA={openFile:"Abrir archivo"},jA={placeholder:"Introduce un color"},qA={deleteBlockConfirm:"¿Estás seguro de que quieres eliminar esta sección?",saving:"Guardando...",error:"Error",save:"Guardar",saved:"Guardado",title:"Título",slug:"Slug",slugPlaceholder:"mi-pagina",pageSettings:"Configuración de página",deletePage:"Eliminar página",deletePageConfirm:"Eliminar esta página no se puede deshacer.",newPage:"Nueva página",createPage:"Crear página",addNewBlock:"Añadir nuevo bloque",searchBlock:"Buscar bloque",page:"Página",pageStructure:"Estructura de página",clickToEdit:"Haz clic en la sección para editar",addNewBlockHere:"Haz clic aquí para añadir un",newBlock:"nuevo bloque",adding:"Añadiendo",removeSection:"Eliminar sección",closeEditor:"Cerrar editor (ESC)",blockNotEditable:"El contenido de este bloque proviene de una fuente de datos",blockNotEditableDesc:"y no se puede editar aquí.",dataSourceHint:"Parte del contenido de este bloque proviene de una fuente de datos. Para cambiarlo, edita los datos directamente.",screenTooSmall:"La pantalla es demasiado pequeña para este editor. Prueba reducir el zoom o usar una pantalla más grande.",cancel:"Cancelar",publish:"Publicar",unpublish:"Despublicar",discard:"Descartar",selectItemPreview:"Seleccionar elemento para vista previa",language:"Idioma",defaultLanguage:"Predeterminado",setAsDefault:"Establecer como predeterminado",removeLanguage:"Eliminar idioma",languageCode:"es / en / fr",removeLanguageConfirm:'¿Eliminar idioma "{locale}"?',seoTitle:"Título SEO",seoDescription:"Descripción SEO",ogImageUrl:"URL de imagen OG",showGrid:"Mostrar cuadrícula",hideGrid:"Ocultar cuadrícula",search:"Buscar...",lastSaved:"Último guardado",saveNow:"Guardar ahora",publishDestination:"Elegir destino de publicación",publishAll:"Publicar todo",lastPublished:"Última publicación",published:"Publicado",notPublished:"No publicado aún",production:"Producción",publishFailed:"Error al publicar"},GA={content:"Contenido",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Boletín",agent:"Agentes",users:"Usuarios",tenants:"Organizaciones"},YA={title:"Usuarios",notConfigured:"La interfaz de gestión de usuarios no está configurada",notConfiguredHint:"Pasa userApi a createAuthAdmin() para habilitar esta pantalla.",team:"Equipo",filterByRole:"Filtrar por rol",invite:"Invitar",pendingInvitations:"Invitaciones pendientes",pending:"Pendiente",resend:"Reenviar",delete:"Eliminar",activeUsers:"Usuarios activos",active:"Activo",edit:"Editar",remove:"Eliminar",noUsers:"No hay usuarios aún",inviteFirst:"Invita al primero",inviteTitle:"Invitar usuario",firstName:"Nombre",lastName:"Apellido",email:"Correo electrónico",role:"Rol",message:"Mensaje",inviteSent:"Invitación reenviada",inviteError:"Error al enviar la invitación",deleteInviteConfirm:"¿Eliminar la invitación?",deleteInviteError:"Error al eliminar la invitación",removeUserConfirm:"¿Eliminar a {email}?"},XA={today:"Hoy",views:{week:"Semana",month:"Mes",day:"Día",agenda:"Agenda"},agenda:{time:"Hora",event:"Evento",eventsCount:"{n} evento | {n} eventos",noEvents:"Sin eventos"}},KA={addTo:"Agregar a {name}",addToCalendar:"Agregar al calendario"};var JA={modalConfirm:EA,upload:CA,pagination:SA,form:xA,password:TA,select:NA,fieldArray:DA,arrayInput:AA,btn:BA,toast:MA,filter:LA,multiStep:PA,addressSearch:IA,importData:VA,timeAgo:OA,dialogForm:RA,tel:FA,email:zA,date:UA,spreadsheet:HA,lightbox:WA,color:jA,pageDesigner:qA,admin:GA,userManagement:YA,calendar:XA,addToCalendar:KA};const ZA={title:"Confirmer",message:"Êtes-vous sûr de vouloir continuer ?",confirm:"Confirmer",cancel:"Annuler"},QA={upload:"Télécharger",uploading:"Téléchargement de {count} fichier{plural} en cours...",noFile:"Aucun fichier sélectionné",dropPlaceholder:"Glissez-déposez des fichiers ici ou cliquez pour télécharger",delete:"Supprimer",replace:"Remplacer",download:"Télécharger"},e9={of:"de",prev:"Précédent",next:"Suivant"},t9={required:"Ce champ est obligatoire",invalidEmail:"Veuillez entrer une adresse email valide",invalidUrl:"Veuillez entrer une URL valide",minLength:"Doit contenir au moins {min} caractères",maxLength:"Doit contenir au maximum {max} caractères",minValue:"Doit être au moins {min}",maxValue:"Doit être au maximum {max}",pattern:"Format invalide",passwordStrength:"Force du mot de passe"},n9={veryWeak:"Très faible",weak:"Faible",fair:"Passable",good:"Bonne",strong:"Forte"},r9={placeholder:"Sélectionner",search:"Rechercher",yes:"Oui",no:"Non"},o9={loadDefault:"Charger {label} par défaut"},a9={item:"Élément"},i9={loading:"Chargement..."},l9={success:"Succès",error:"Erreur",warning:"Avertissement",info:"Information"},s9={filter:"Filtre",noActiveFilters:"Aucun filtre actif",connectors:{and:"Et",or:"Ou"},operators:{eq:"Égal à",ne:"Différent de",gt:"Supérieur à",ge:"Supérieur ou égal",lt:"Inférieur à",le:"Inférieur ou égal",co:"Contient",sw:"Commence par",ew:"Se termine par",pr:"Présent",in:"Dans la liste",nin:"Pas dans la liste"},placeholders:{selectField:"Sélectionner un champ",selectOption:"Sélectionner une option",selectDate:"Sélectionner une date",enterValue:"Valeur"},buttons:{addCondition:"Ajouter une condition",clearAll:"Tout effacer",save:"Enregistrer"}},c9={previous:"Précédent",next:"Suivant",complete:"Terminer",step:"Étape {current} sur {total}"},u9={placeholder:"Entrez une adresse"},d9={close:"Fermer",cancel:"Annuler",importData:"Importer les données",changeFile:"Changer de fichier",selectSheet:"Sélectionner la feuille",hasHeaders:"Cochez si le fichier a une ligne d'en-tête",sourceKeyField:"Champ clé source (de ce fichier)",relatedKeyField:"Champ clé lié (du fichier lié)",selectSourceValue:"Sélectionner la valeur source",sourceValue:"Valeur source",selectTargetValue:"Sélectionner la valeur cible",targetValue:"Valeur cible",selectColumn:"Sélectionner une colonne..."},f9={year:"an",month:"mois",week:"semaine",day:"jour",hour:"heure",minute:"minute",second:"seconde",ago:"il y a",in:"dans",justNow:"À l'instant"},m9={save:"Enregistrer",cancel:"Annuler",delete:"Supprimer",validationError:"Veuillez corriger les erreurs de validation avant de soumettre",errorOccurred:"Une erreur est survenue"},p9={phoneNumber:"Numéro de téléphone",invalidPhone:"Veuillez entrer un numéro de téléphone valide"},h9={invalidEmail:"Veuillez entrer une adresse email valide",invalidDomain:"Le domaine de cet email semble invalide",disposableEmail:"Veuillez utiliser une adresse e-mail non jetable",didYouMean:"Vouliez-vous dire {suggestion} ?",validating:"Validation de l'e-mail..."},g9={invalidFormat:"Format de date invalide"},v9={wrapText:"Renvoyer à la ligne",selectAll:"Tout sélectionner",clearAll:"Tout effacer"},y9={openFile:"Ouvrir le fichier"},b9={placeholder:"Entrez une couleur"},_9={deleteBlockConfirm:"Êtes-vous sûr de vouloir supprimer cette section ?",saving:"Enregistrement...",error:"Erreur",save:"Enregistrer",saved:"Enregistré",title:"Titre",slug:"Slug",slugPlaceholder:"ma-page",pageSettings:"Paramètres de la page",deletePage:"Supprimer la page",deletePageConfirm:"La suppression de cette page ne peut pas être annulée.",newPage:"Nouvelle page",createPage:"Créer une page",addNewBlock:"Ajouter un nouveau bloc",searchBlock:"Rechercher un bloc",page:"Page",pageStructure:"Structure de la page",clickToEdit:"Cliquez sur la section pour éditer",addNewBlockHere:"Cliquez ici pour ajouter un",newBlock:"nouveau bloc",adding:"Ajout",removeSection:"Supprimer la section",closeEditor:"Fermer l'éditeur (ESC)",blockNotEditable:"Le contenu de ce bloc provient d'une source de données",blockNotEditableDesc:"et ne peut pas être édité ici.",dataSourceHint:"Une partie du contenu de ce bloc provient d'une source de données. Pour le modifier, éditez les données directement.",screenTooSmall:"L'écran est trop petit pour cet éditeur. Essayez de réduire le zoom ou d'utiliser un écran plus grand.",cancel:"Annuler",publish:"Publier",unpublish:"Dépublier",discard:"Ignorer",selectItemPreview:"Sélectionner un élément pour l'aperçu",language:"Langue",defaultLanguage:"Par défaut",setAsDefault:"Définir par défaut",removeLanguage:"Supprimer la langue",languageCode:"fr / en / es",removeLanguageConfirm:'Supprimer la langue "{locale}" ?',seoTitle:"Titre SEO",seoDescription:"Description SEO",ogImageUrl:"URL de l'image OG",showGrid:"Afficher la grille",hideGrid:"Masquer la grille",search:"Rechercher...",lastSaved:"Dernière sauvegarde",saveNow:"Enregistrer maintenant",publishDestination:"Choisir la destination",publishAll:"Tout publier",lastPublished:"Dernière publication",published:"Publié",notPublished:"Pas encore publié",production:"Production",publishFailed:"Échec de la publication"},w9={content:"Contenu",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Newsletter",agent:"Agents",users:"Utilisateurs",tenants:"Organisations"},$9={title:"Utilisateurs",notConfigured:"L'interface de gestion des utilisateurs n'est pas configurée",notConfiguredHint:"Passez userApi à createAuthAdmin() pour activer cet écran.",team:"Équipe",filterByRole:"Filtrer par rôle",invite:"Inviter",pendingInvitations:"Invitations en attente",pending:"En attente",resend:"Renvoyer",delete:"Supprimer",activeUsers:"Utilisateurs actifs",active:"Actif",edit:"Modifier",remove:"Retirer",noUsers:"Aucun utilisateur pour l'instant",inviteFirst:"Invitez le premier",inviteTitle:"Inviter un utilisateur",firstName:"Prénom",lastName:"Nom",email:"E-mail",role:"Rôle",message:"Message",inviteSent:"Invitation renvoyée",inviteError:"Erreur lors de l'envoi de l'invitation",deleteInviteConfirm:"Supprimer l'invitation ?",deleteInviteError:"Erreur lors de la suppression de l'invitation",removeUserConfirm:"Retirer {email} ?"},k9={today:"Aujourd'hui",views:{week:"Semaine",month:"Mois",day:"Jour",agenda:"Agenda"},agenda:{time:"Heure",event:"Événement",eventsCount:"{n} événement | {n} événements",noEvents:"Aucun événement"}},E9={addTo:"Ajouter à {name}",addToCalendar:"Ajouter au calendrier"};var C9={modalConfirm:ZA,upload:QA,pagination:e9,form:t9,password:n9,select:r9,fieldArray:o9,arrayInput:a9,btn:i9,toast:l9,filter:s9,multiStep:c9,addressSearch:u9,importData:d9,timeAgo:f9,dialogForm:m9,tel:p9,email:h9,date:g9,spreadsheet:v9,lightbox:y9,color:b9,pageDesigner:_9,admin:w9,userManagement:$9,calendar:k9,addToCalendar:E9};const S9={title:"אישור",message:"האם אתה בטוח שברצונך להמשיך?",confirm:"אישור",cancel:"ביטול"},x9={upload:"העלה",uploading:"מעלה {count} קבצים...",noFile:"לא נבחר קובץ",dropPlaceholder:"גרור ושחרר קבצים כאן או לחץ להעלאה",delete:"מחק",replace:"החלף",download:"הורד"},T9={of:"מתוך",prev:"הקודם",next:"הבא"},N9={required:"שדה זה נדרש",invalidEmail:"הזן כתובת אימייל חוקית",invalidUrl:"הזן כתובת URL חוקית",minLength:"חייב להכיל לפחות {min} תווים",maxLength:"חייב להכיל לכל היותר {max} תווים",minValue:"חייב להיות לפחות {min}",maxValue:"חייב להיות לכל היותר {max}",pattern:"פורמט לא חוקי",passwordStrength:"חוזק סיסמה"},D9={veryWeak:"חלשה מאוד",weak:"חלשה",fair:"סבירה",good:"טובה",strong:"חזקה"},A9={placeholder:"בחר",search:"חיפוש",yes:"כן",no:"לא"},B9={loadDefault:"טען {label} ברירת מחדל"},M9={item:"פריט"},L9={loading:"טוען..."},P9={success:"הצלחה",error:"שגיאה",warning:"אזהרה",info:"מידע"},I9={filter:"פילטר",noActiveFilters:"אין פילטרים פעילים",connectors:{and:"וגם",or:"או"},operators:{eq:"שווה ל",ne:"לא שווה ל",gt:"גדול מ",ge:"גדול או שווה ל",lt:"קטן מ",le:"קטן או שווה ל",co:"מכיל",sw:"מתחיל ב",ew:"מסתיים ב",pr:"קיים",in:"ברשימה",nin:"לא ברשימה"},placeholders:{selectField:"בחר שדה",selectOption:"בחירה",selectDate:"בחירת תאריך",enterValue:"ערך"},buttons:{addCondition:"הוספת תנאי",clearAll:"נקה הכל",save:"שמירה"}},V9={previous:"הקודם",next:"הבא",complete:"סיים",step:"שלב {current} מתוך {total}"},O9={placeholder:"הזן כתובת"},R9={close:"סגור",cancel:"ביטול",importData:"ייבא נתונים",changeFile:"החלף קובץ",selectSheet:"בחר גיליון",hasHeaders:"סמן אם לקובץ יש שורת כותרת",sourceKeyField:"שדה מפתח מקור (מהקובץ הזה)",relatedKeyField:"שדה מפתח קשור (מהקובץ הקשור)",selectSourceValue:"בחר ערך מקור",sourceValue:"ערך מקור",selectTargetValue:"בחר ערך יעד",targetValue:"ערך יעד",selectColumn:"בחר עמודה..."},F9={year:{singular:"שנה",plural:"שנים"},month:{singular:"חודש",plural:"חודשים"},week:{singular:"שבוע",plural:"שבועות"},day:{singular:"יום",plural:"ימים"},hour:{singular:"שעה",plural:"שעות"},minute:{singular:"דקה",plural:"דקות"},second:{singular:"שנייה",plural:"שניות"},ago:"לפני",in:"בעוד",justNow:"זה עתה"},z9={save:"שמור",cancel:"ביטול",delete:"מחק",validationError:"אנא תקן את שגיאות האימות לפני השליחה",errorOccurred:"אירעה שגיאה"},U9={phoneNumber:"מספר טלפון",invalidPhone:"אנא הזן מספר טלפון תקין"},H9={invalidEmail:"הזן כתובת אימייל חוקית",invalidDomain:"נראה שדומיין האימייל אינו חוקי",disposableEmail:"אנא השתמש בכתובת אימייל שאינה חד-פעמית",didYouMean:"האם התכוונת ל-{suggestion}?",validating:"מאמת כתובת אימייל..."},W9={invalidFormat:"פורמט תאריך לא חוקי"},j9={wrapText:"גלישת טקסט",selectAll:"בחר הכל",clearAll:"נקה הכל"},q9={openFile:"פתח קובץ"},G9={placeholder:"הזן צבע"},Y9={deleteBlockConfirm:"האם אתם בטוחים שברצונכם למחוק את הסקשן הזה?",saving:"שומר...",error:"שגיאה",save:"שמירה",saved:"נשמר",title:"כותרת",slug:"נתיב (slug)",slugPlaceholder:"my-page",pageSettings:"הגדרות עמוד",deletePage:"מחיקת עמוד",deletePageConfirm:"מחיקת עמוד זה אינה ניתנת לביטול.",newPage:"עמוד חדש",createPage:"צור עמוד",addNewBlock:"הוספת בלוק חדש",searchBlock:"חיפוש בלוק",page:"עמוד",pageStructure:"מבנה העמוד",clickToEdit:"לחצו על מקטע כדי לערוך",addNewBlockHere:"לחצו כאן להוספת",newBlock:"בלוק חדש",adding:"מוסיף",removeSection:"הסרת מקטע",closeEditor:"סגור עורך (ESC)",blockNotEditable:"תוכן הבלוק הזה מגיע ממקור נתונים",blockNotEditableDesc:"ואינו ניתן לעריכה כאן.",dataSourceHint:"ייתכן שחלק מהתוכן בבלוק זה מגיע ממקור נתונים. כדי לשנות אותו, ערוך את הדאטה ישירות.",screenTooSmall:"המסך קטן מדי לעורך הזה. נסו להקטין זום או להשתמש במסך גדול יותר.",cancel:"ביטול",publish:"פרסום",unpublish:"ביטול פרסום",discard:"ביטול",selectItemPreview:"בחר פריט לתצוגה מקדימה",language:"שפה",defaultLanguage:"ברירת מחדל",setAsDefault:"קביעת ברירת מחדל",removeLanguage:"הסרת שפה",languageCode:"he / en / fr",removeLanguageConfirm:'הסר את שפה "{locale}"?',seoTitle:"SEO כותרת",seoDescription:"SEO תיאור",ogImageUrl:"OG Image URL",showGrid:"הצג רשת",hideGrid:"הסתר רשת",search:"חיפוש...",lastSaved:"נשמר לאחרונה",saveNow:"שמור עכשיו",publishDestination:"בחר יעד לפרסום",publishAll:"פרסם הכל",lastPublished:"פורסם לאחרונה",published:"פורסם",notPublished:"טרם פורסם",production:"פרודקשן",publishFailed:"פרסום נכשל"},X9={loadError:"טעינה נכשלה",newItemTitle:"פריט חדש — {label}",createSubmit:"יצירה",editTitle:"עריכה",saveSubmit:"שמירה",importTitle:"ייבוא JSON — {label}",importSubmit:"ייבוא",importJsonLabel:"תוכן JSON",importJsonHint:"מערך של אובייקטים [ {...}, {...} ] או אובייקט בודד",importSummary:"{imported} יובאו · {failed} נכשלו",deleteItemTitle:"מחיקת פריט",deleteItemMessage:"האם למחוק פריט זה?",deleteConfirm:"מחיקה",batchDeleteTitle:"מחיקה קבוצתית",batchDeleteMessage:"האם למחוק {count} פריטים?",batchDeleteSummary:"{deleted} נמחקו · {failed} נכשלו",batchUpdateTitle:"עדכון קבוצתי — {count} פריטים",updateAllSubmit:"עדכן הכל",batchUpdateSummary:"עודכנו · {failed} נכשלו",selectedCount:"{count} נבחרו",updateBtn:"עדכון",deleteBtn:"מחיקה",searchPlaceholder:"חיפוש...",refreshTooltip:"ריענון",importTooltip:"ייבוא JSON",newItemBtn:"פריט חדש",deleteTooltip:"מחיקה",reorderTooltip:"שינוי סדר",reorderSaving:"שומר סדר..."},K9={selectCollection:"בחרו קולקציה מהרשימה",fieldName:"שם",fieldStore:"Store",fieldStoreHint:"לדוגמה: default",fieldCollection:"Collection",fieldCollectionHint:"לדוגמה: my_collection",fieldDescription:"תיאור",createTitle:"יצירת Datastore חדש",createSubmit:"יצירה",editTitle:"עריכת {name}",saveSubmit:"שמירה",addBtn:"הוספת Datastore",empty:"אין Datastores עדיין",deleteConfirm:'למחוק את "{name}"?'},J9={content:"תוכן",blox:"בלוקס",whatsapp:"וואטסאפ",newsletter:"ניוזלטר",agent:"סוכנים",users:"משתמשים",tenants:"ארגונים"},Z9={title:"משתמשים",notConfigured:"ממשק ניהול משתמשים לא מוגדר",notConfiguredHint:"העבר userApi ל-createAuthAdmin() כדי להפעיל מסך זה.",team:"צוות",filterByRole:"סנן לפי תפקיד",invite:"הזמנה",pendingInvitations:"הזמנות ממתינות",pending:"ממתין",resend:"שלח מחדש",delete:"מחיקה",activeUsers:"משתמשים פעילים",active:"פעיל",edit:"עריכה",remove:"הסרה",noUsers:"אין משתמשים עדיין",inviteFirst:"הזמן את הראשון",inviteTitle:"הזמנת משתמש",firstName:"שם פרטי",lastName:"שם משפחה",email:"אימייל",role:"תפקיד",message:"הודעה",inviteSent:"ההזמנה נשלחה מחדש",inviteError:"שגיאה בשליחת ההזמנה",deleteInviteConfirm:"למחוק את ההזמנה?",deleteInviteError:"שגיאה במחיקת ההזמנה",removeUserConfirm:"להסיר את {email}?"},Q9={title:"טפסים",refresh:"רענן",newForm:"טופס חדש",createForm:"יצירת טופס",noForms:"אין טפסים עדיין",noFormsDesc:"צור את הטופס הראשון שלך כדי להתחיל",active:"פעיל",inactive:"לא פעיל",submissionsOnly:"הגשות בלבד",noDefinition:"אין הגדרת טופס - הצג הגשות",fieldCount:"{n} שדות",createdAt:"נוצר {date}",editor:{newForm:"טופס חדש",builder:"בנאי",submissions:"הגשות",edit:"עריכה",preview:"תצוגה מקדימה",save:"שמור",create:"צור",formName:"שם הטופס *",formNamePlaceholder:"הכנס שם לטופס",description:"תיאור",descriptionPlaceholder:"תיאור אופציונלי",active:"פעיל",deleteForm:"מחק טופס",deleteConfirm:"האם אתה בטוח שברצונך למחוק טופס זה?",submit:"שלח"},submissions:{title:"הגשות",exportCsv:"יצוא CSV",statusPlaceholder:"סטטוס",noSubmissions:"לא נמצאו הגשות",count:"אין הגשות | הגשה אחת | {n} הגשות",date:"תאריך",status:"סטטוס",statusAll:"הכל",statusSaved:"נשמר",statusDraft:"טיוטה",statusProcessed:"טופל",statusAbandoned:"ננטש",statusError:"שגיאה",statusSpam:"ספאם"},builder:{noFields:"אין שדות עדיין",noFieldsDesc:"לחץ על + להוספת שדה ראשון",noFieldsDefined:"לא הוגדרו שדות",selectField:"בחר שדה לעריכת הגדרותיו",tooSmall:"החלון קטן מידי",tooSmallDesc:"הגדל את החלון לפחות ל-1000px לעריכת הטופס"},fieldSettings:{headingText:"טקסט כותרת",noDividerSettings:"אין הגדרות לקו מפריד",label:"תווית",fieldKey:"מפתח שדה",placeholder:"טקסט placeholder",helpText:"טקסט עזרה",required:"שדה חובה",options:"אפשרויות",addOption:"הוסף אפשרות",validation:"ולידציה",minLength:"אורך מינימלי",maxLength:"אורך מקסימלי",pattern:"תבנית (RegEx)",min:"מינימום",max:"מקסימום",step:"קפיצה",removeField:"הסר שדה",columnWidth:"רוחב עמודה",columnHeight:"גובה עמודה",optionLabel:"תווית",optionValue:"ערך",sectionHeader:"כותרת סעיף",fieldPrefix:"שדה",removeFieldTitle:"הסר שדה",removeTitle:"הסר",richTextVariant:"סרגלת כלים",richTextVariantFull:"מלאה",richTextVariantBasic:"בסיסי",richTextVariantSimple:"פשוטה",textareaRows:"שורות",textareaAutoHeight:"גובה אוטומטי",numberLayout:"סגנון ספינר",numberLayoutDefault:"רגיל",numberLayoutVertical:"אנכי",numberLayoutHorizontal:"אופקי",numberSpinner:"הצג ספינר",phoneOnlyCountries:"מדינות מותרות",phoneOnlyCountriesPlaceholder:"לדוגמא: IL, US, GB",phoneOnlyCountriesHelp:"קודי מדינה מופרדים בפסיק (ISO 3166-1 alpha-2). השאר ריק להצג כל המדינות.",selectMultiselect:"בחירה מרובית",dateEnableTime:"אפשר בחירת שעה",dateMin:"תאריך מינימלי",dateMax:"תאריך מקסימלי",rangeMulti:"טווח (שתי ידיות)",radioThin:"סגנון דחוס",radioHideRadio:"הסתר עיגול ה-radio",radioAlign:"יישור פריטים",radioAlignStart:"התחלה",radioAlignCenter:"מרכז",radioAlignEnd:"סוף",textIcon:"איקון סייום",textIconStart:"איקון התחלה",fileMultiple:"העלאת מספר קבצים",fileHeight:"גובה",fileAccept:"סוגי קבצים מותרים",fileAcceptPlaceholder:"לדוגמא: image/*,.pdf",fileTheme:"עיצוב",fileThemeDropzone:"Dropzone",fileThemeBasic:"פשוט",fileShowIcon:"הצג איקון",fileIcon:"שם איקון"},iconPicker:{none:"ללא",search:"חפש איקונים...",noResults:"לא נמצאו איקונים"},schemaBuilder:{fieldId:"מזהה שדה",fieldIdDesc:"שם טכני ל-API/מסד נתונים",fieldLabel:"תווית שדה",fieldLabelPlaceholder:"הכנס תווית לשדה",description:"תיאור (אופציונלי)",descriptionPlaceholder:"טקסט עזרה לשדה זה",requiredField:"שדה חובה",required:"חובה",textValidations:"ולידציות טקסט",format:"פורמט",minimumLength:"אורך מינימלי",maximumLength:"אורך מקסימלי",noMinimum:"ללא מינימום",noMaximum:"ללא מקסימום",numberValidations:"ולידציות מספר",minimumValue:"ערך מינימלי",maximumValue:"ערך מקסימלי",stepMultipleOf:"קפיצה / כפולה של",anyValue:"כל ערך",addField:"הוסף שדה",noFieldsClickAbove:"לחץ על כפתור למעלה להוספת השדה הראשון",patternPlaceholder:"לדוגמה: ^[A-Z]+$",fieldTypes:{shortText:"טקסט קצר",longText:"טקסט ארוך",number:"מספר",integer:"מספר שלם",yesNo:"כן/לא",dropdown:"רשימה נפתחת",email:"אימייל",phone:"טלפון",date:"תאריך",unknown:"לא ידוע"},formats:{plainText:"טקסט רגיל",email:"אימייל",url:"כתובת URL",date:"תאריך",dateTime:"תאריך ושעה",time:"שעה",phone:"טלפון"}}},eB={today:"היום",views:{week:"שבוע",month:"חודש",day:"יום",agenda:"סדר יום"},agenda:{time:"שעה",event:"אירוע",eventsCount:"אירוע אחד | {n} אירועים",noEvents:"אין אירועים"}},tB={addTo:"הוסף ל{name}",addToCalendar:"הוסף ליומן",google:"יומן Google",apple:"יומן Apple",outlook:"Outlook",office365:"Office 365",yahoo:"יומן Yahoo",ics:"יומן (קובץ ICS)"};var nB={modalConfirm:S9,upload:x9,pagination:T9,form:N9,password:D9,select:A9,fieldArray:B9,arrayInput:M9,btn:L9,toast:P9,filter:I9,multiStep:V9,addressSearch:O9,importData:R9,timeAgo:F9,dialogForm:z9,tel:U9,email:H9,date:W9,spreadsheet:j9,lightbox:q9,color:G9,pageDesigner:Y9,collection:X9,datastores:K9,admin:J9,userManagement:Z9,forms:Q9,calendar:eB,addToCalendar:tB};const rB={title:"Conferma",message:"Sei sicuro di voler continuare?",confirm:"Conferma",cancel:"Annulla"},oB={upload:"Carica",uploading:"Caricamento di {count} file{plural} in corso...",noFile:"Nessun file selezionato",dropPlaceholder:"Trascina e rilascia i file qui o clicca per caricare",delete:"Elimina",replace:"Sostituisci",download:"Scarica"},aB={of:"di",prev:"Precedente",next:"Successivo"},iB={required:"Questo campo è obbligatorio",invalidEmail:"Inserisci un indirizzo email valido",invalidUrl:"Inserisci un URL valido",minLength:"Deve contenere almeno {min} caratteri",maxLength:"Deve contenere al massimo {max} caratteri",minValue:"Deve essere almeno {min}",maxValue:"Deve essere al massimo {max}",pattern:"Formato non valido",passwordStrength:"Forza della password"},lB={veryWeak:"Molto debole",weak:"Debole",fair:"Discreta",good:"Buona",strong:"Forte"},sB={placeholder:"Seleziona",search:"Cerca",yes:"Sì",no:"No"},cB={loadDefault:"Carica {label} predefinito"},uB={item:"Elemento"},dB={loading:"Caricamento..."},fB={success:"Successo",error:"Errore",warning:"Avviso",info:"Informazione"},mB={filter:"Filtro",noActiveFilters:"Nessun filtro attivo",connectors:{and:"E",or:"O"},operators:{eq:"Uguale a",ne:"Diverso da",gt:"Maggiore di",ge:"Maggiore o uguale",lt:"Minore di",le:"Minore o uguale",co:"Contiene",sw:"Inizia con",ew:"Finisce con",pr:"Presente",in:"Nella lista",nin:"Non nella lista"},placeholders:{selectField:"Seleziona campo",selectOption:"Seleziona opzione",selectDate:"Seleziona data",enterValue:"Valore"},buttons:{addCondition:"Aggiungi condizione",clearAll:"Cancella tutto",save:"Salva"}},pB={previous:"Precedente",next:"Successivo",complete:"Completa",step:"Passo {current} di {total}"},hB={placeholder:"Inserisci un indirizzo"},gB={close:"Chiudi",cancel:"Annulla",importData:"Importa dati",changeFile:"Cambia file",selectSheet:"Seleziona foglio",hasHeaders:"Seleziona se il file ha una riga di intestazione",sourceKeyField:"Campo chiave sorgente (da questo file)",relatedKeyField:"Campo chiave correlato (dal file correlato)",selectSourceValue:"Seleziona valore sorgente",sourceValue:"Valore sorgente",selectTargetValue:"Seleziona valore di destinazione",targetValue:"Valore di destinazione",selectColumn:"Seleziona colonna..."},vB={year:"anno",month:"mese",week:"settimana",day:"giorno",hour:"ora",minute:"minuto",second:"secondo",ago:"fa",in:"tra",justNow:"Poco fa"},yB={save:"Salva",cancel:"Annulla",delete:"Elimina",validationError:"Correggi gli errori di validazione prima di inviare",errorOccurred:"Si è verificato un errore"},bB={phoneNumber:"Numero di telefono",invalidPhone:"Inserisci un numero di telefono valido"},_B={invalidEmail:"Inserisci un indirizzo email valido",invalidDomain:"Il dominio di questa email sembra non essere valido",disposableEmail:"Si prega di utilizzare un indirizzo email non temporaneo",didYouMean:"Intendevi {suggestion}?",validating:"Convalida dell'e-mail..."},wB={invalidFormat:"Formato data non valido"},$B={wrapText:"A capo automatico",selectAll:"Seleziona tutto",clearAll:"Cancella tutto"},kB={openFile:"Apri file"},EB={placeholder:"Inserisci un colore"},CB={deleteBlockConfirm:"Sei sicuro di voler eliminare questa sezione?",saving:"Salvataggio...",error:"Errore",save:"Salva",saved:"Salvato",title:"Titolo",slug:"Slug",slugPlaceholder:"la-mia-pagina",pageSettings:"Impostazioni pagina",deletePage:"Elimina pagina",deletePageConfirm:"L'eliminazione di questa pagina non può essere annullata.",newPage:"Nuova pagina",createPage:"Crea pagina",addNewBlock:"Aggiungi nuovo blocco",searchBlock:"Cerca blocco",page:"Pagina",pageStructure:"Struttura della pagina",clickToEdit:"Clicca sulla sezione per modificare",addNewBlockHere:"Clicca qui per aggiungere un",newBlock:"nuovo blocco",adding:"Aggiungendo",removeSection:"Rimuovi sezione",closeEditor:"Chiudi editor (ESC)",blockNotEditable:"Il contenuto di questo blocco proviene da una fonte di dati",blockNotEditableDesc:"e non può essere modificato qui.",dataSourceHint:"Parte del contenuto di questo blocco proviene da una fonte di dati. Per modificarlo, modifica i dati direttamente.",screenTooSmall:"Lo schermo è troppo piccolo per questo editor. Prova a ridurre lo zoom o utilizzare uno schermo più grande.",cancel:"Annulla",publish:"Pubblica",unpublish:"Rimuovi pubblicazione",discard:"Scarta",selectItemPreview:"Seleziona elemento per anteprima",language:"Lingua",defaultLanguage:"Predefinita",setAsDefault:"Imposta come predefinita",removeLanguage:"Rimuovi lingua",languageCode:"it / en / es",removeLanguageConfirm:'Rimuovere la lingua "{locale}"?',seoTitle:"Titolo SEO",seoDescription:"Descrizione SEO",ogImageUrl:"URL immagine OG",showGrid:"Mostra griglia",hideGrid:"Nascondi griglia",search:"Cerca...",lastSaved:"Ultimo salvataggio",saveNow:"Salva ora",publishDestination:"Scegli destinazione",publishAll:"Pubblica tutto",lastPublished:"Ultima pubblicazione",published:"Pubblicato",notPublished:"Non ancora pubblicato",production:"Produzione",publishFailed:"Pubblicazione fallita"},SB={content:"Contenuto",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Newsletter",agent:"Agenti",users:"Utenti",tenants:"Organizzazioni"},xB={title:"Utenti",notConfigured:"L'interfaccia di gestione utenti non è configurata",notConfiguredHint:"Passa userApi a createAuthAdmin() per abilitare questa schermata.",team:"Team",filterByRole:"Filtra per ruolo",invite:"Invita",pendingInvitations:"Inviti in sospeso",pending:"In sospeso",resend:"Reinvia",delete:"Elimina",activeUsers:"Utenti attivi",active:"Attivo",edit:"Modifica",remove:"Rimuovi",noUsers:"Nessun utente ancora",inviteFirst:"Invita il primo",inviteTitle:"Invita utente",firstName:"Nome",lastName:"Cognome",email:"Email",role:"Ruolo",message:"Messaggio",inviteSent:"Invito reinviato",inviteError:"Errore durante l'invio dell'invito",deleteInviteConfirm:"Eliminare l'invito?",deleteInviteError:"Errore durante l'eliminazione dell'invito",removeUserConfirm:"Rimuovere {email}?"},TB={today:"Oggi",views:{week:"Settimana",month:"Mese",day:"Giorno",agenda:"Agenda"},agenda:{time:"Ora",event:"Evento",eventsCount:"{n} evento | {n} eventi",noEvents:"Nessun evento"}},NB={addTo:"Aggiungi a {name}",addToCalendar:"Aggiungi al calendario"};var DB={modalConfirm:rB,upload:oB,pagination:aB,form:iB,password:lB,select:sB,fieldArray:cB,arrayInput:uB,btn:dB,toast:fB,filter:mB,multiStep:pB,addressSearch:hB,importData:gB,timeAgo:vB,dialogForm:yB,tel:bB,email:_B,date:wB,spreadsheet:$B,lightbox:kB,color:EB,pageDesigner:CB,admin:SB,userManagement:xB,calendar:TB,addToCalendar:NB};const AB={title:"Подтвердить",message:"Вы уверены, что хотите продолжить?",confirm:"Подтвердить",cancel:"Отмена"},BB={upload:"Загрузить",uploading:"Загрузка {count} файл{plural}...",noFile:"Файл не выбран",dropPlaceholder:"Перетащите файлы сюда или нажмите для загрузки",delete:"Удалить",replace:"Заменить",download:"Скачать"},MB={of:"из",prev:"Предыдущая",next:"Следующая"},LB={required:"Это поле обязательно для заполнения",invalidEmail:"Введите действительный адрес электронной почты",invalidUrl:"Введите действительный URL",minLength:"Должно содержать не менее {min} символов",maxLength:"Должно содержать не более {max} символов",minValue:"Должно быть не менее {min}",maxValue:"Должно быть не более {max}",pattern:"Неверный формат",passwordStrength:"Надежность пароля"},PB={veryWeak:"Очень слабый",weak:"Слабый",fair:"Средний",good:"Хороший",strong:"Надёжный"},IB={placeholder:"Выбрать",search:"Поиск",yes:"Да",no:"Нет"},VB={loadDefault:"Загрузить {label} по умолчанию"},OB={item:"Элемент"},RB={loading:"Загрузка..."},FB={success:"Успешно",error:"Ошибка",warning:"Предупреждение",info:"Информация"},zB={filter:"Фильтр",noActiveFilters:"Нет активных фильтров",connectors:{and:"И",or:"Или"},operators:{eq:"Равно",ne:"Не равно",gt:"Больше чем",ge:"Больше или равно",lt:"Меньше чем",le:"Меньше или равно",co:"Содержит",sw:"Начинается с",ew:"Заканчивается на",pr:"Присутствует",in:"В списке",nin:"Не в списке"},placeholders:{selectField:"Выберите поле",selectOption:"Выберите вариант",selectDate:"Выберите дату",enterValue:"Значение"},buttons:{addCondition:"Добавить условие",clearAll:"Очистить всё",save:"Сохранить"}},UB={previous:"Назад",next:"Далее",complete:"Завершить",step:"Шаг {current} из {total}"},HB={placeholder:"Введите адрес"},WB={close:"Закрыть",cancel:"Отмена",importData:"Импорт данных",changeFile:"Изменить файл",selectSheet:"Выбрать лист",hasHeaders:"Отметьте, если файл содержит строку заголовка",sourceKeyField:"Ключевое поле источника (из этого файла)",relatedKeyField:"Ключевое поле связанного (из связанного файла)",selectSourceValue:"Выберите исходное значение",sourceValue:"Исходное значение",selectTargetValue:"Выберите целевое значение",targetValue:"Целевое значение",selectColumn:"Выберите столбец..."},jB={year:"год",month:"месяц",week:"неделя",day:"день",hour:"час",minute:"минута",second:"секунда",ago:"назад",in:"через",justNow:"Только что"},qB={save:"Сохранить",cancel:"Отмена",delete:"Удалить",validationError:"Пожалуйста, исправьте ошибки валидации перед отправкой",errorOccurred:"Произошла ошибка"},GB={phoneNumber:"Номер телефона",invalidPhone:"Пожалуйста, введите действительный номер телефона"},YB={invalidEmail:"Введите действительный адрес электронной почты",invalidDomain:"Домен этого адреса электронной почты, похоже, недействителен",disposableEmail:"Пожалуйста, используйте постоянный адрес электронной почты",didYouMean:"Вы имели в виду {suggestion}?",validating:"Проверка адреса электронной почты..."},XB={invalidFormat:"Неверный формат даты"},KB={wrapText:"Перенос текста",selectAll:"Выбрать всё",clearAll:"Очистить всё"},JB={openFile:"Открыть файл"},ZB={placeholder:"Введите цвет"},QB={deleteBlockConfirm:"Вы уверены, что хотите удалить эту секцию?",saving:"Сохранение...",error:"Ошибка",save:"Сохранить",saved:"Сохранено",title:"Заголовок",slug:"Slug",slugPlaceholder:"moya-stranica",pageSettings:"Настройки страницы",deletePage:"Удалить страницу",deletePageConfirm:"Удаление этой страницы нельзя отменить.",newPage:"Новая страница",createPage:"Создать страницу",addNewBlock:"Добавить новый блок",searchBlock:"Поиск блоков",page:"Страница",pageStructure:"Структура страницы",clickToEdit:"Нажмите на секцию для редактирования",addNewBlockHere:"Нажмите здесь, чтобы добавить",newBlock:"новый блок",adding:"Добавление",removeSection:"Удалить секцию",closeEditor:"Закрыть редактор (ESC)",blockNotEditable:"Содержимое этого блока поступает из источника данных",blockNotEditableDesc:"и не может быть отредактировано здесь.",dataSourceHint:"Часть содержимого этого блока поступает из источника данных. Чтобы изменить его, отредактируйте данные напрямую.",screenTooSmall:"Экран слишком мал для этого редактора. Попробуйте уменьшить масштаб или использовать большой экран.",cancel:"Отмена",publish:"Опубликовать",unpublish:"Отменить публикацию",discard:"Отменить",selectItemPreview:"Выбрать элемент для предпросмотра",language:"Язык",defaultLanguage:"По умолчанию",setAsDefault:"Установить по умолчанию",removeLanguage:"Удалить язык",languageCode:"ru / en / fr",removeLanguageConfirm:'Удалить язык "{locale}"?',seoTitle:"Заголовок SEO",seoDescription:"Описание SEO",ogImageUrl:"URL изображения OG",showGrid:"Показать сетку",hideGrid:"Скрыть сетку",search:"Поиск...",lastSaved:"Последнее сохранение",saveNow:"Сохранить сейчас",publishDestination:"Выбрать место публикации",publishAll:"Опубликовать всё",lastPublished:"Последняя публикация",published:"Опубликовано",notPublished:"Ещё не опубликовано",production:"Продакшн",publishFailed:"Ошибка публикации"},e6={content:"Контент",blox:"Блокс",whatsapp:"WhatsApp",newsletter:"Рассылка",agent:"Агенты",users:"Пользователи",tenants:"Организации"},t6={title:"Пользователи",notConfigured:"Интерфейс управления пользователями не настроен",notConfiguredHint:"Передайте userApi в createAuthAdmin(), чтобы активировать этот экран.",team:"Команда",filterByRole:"Фильтр по роли",invite:"Пригласить",pendingInvitations:"Ожидающие приглашения",pending:"Ожидает",resend:"Отправить ещё раз",delete:"Удалить",activeUsers:"Активные пользователи",active:"Активен",edit:"Редактировать",remove:"Удалить",noUsers:"Пользователейещё нет",inviteFirst:"Пригласить первого",inviteTitle:"Приглашение пользователя",firstName:"Имя",lastName:"Фамилия",email:"Эл. почта",role:"Роль",message:"Сообщение",inviteSent:"Приглашение отправлено повторно",inviteError:"Ошибка при отправке приглашения",deleteInviteConfirm:"Удалить приглашение?",deleteInviteError:"Ошибка при удалении приглашения",removeUserConfirm:"Удалить {email}?"},n6={today:"Сегодня",views:{week:"Неделя",month:"Месяц",day:"День",agenda:"Повестка"},agenda:{time:"Время",event:"Событие",eventsCount:"{n} событие | {n} события | {n} событий",noEvents:"Нет событий"}},r6={addTo:"Добавить в {name}",addToCalendar:"Добавить в календарь"};var o6={modalConfirm:AB,upload:BB,pagination:MB,form:LB,password:PB,select:IB,fieldArray:VB,arrayInput:OB,btn:RB,toast:FB,filter:zB,multiStep:UB,addressSearch:HB,importData:WB,timeAgo:jB,dialogForm:qB,tel:GB,email:YB,date:XB,spreadsheet:KB,lightbox:JB,color:ZB,pageDesigner:QB,admin:e6,userManagement:t6,calendar:n6,addToCalendar:r6},Sc={en:kA,he:nB,it:DB,es:JA,fr:C9,ru:o6},Xi=null;function fg(e={}){const{locale:t="en",fallbackLocale:r="en",messages:o={}}=e,a=Object.keys(Sc),i={};for(const l of a)i[l]={...Sc[l]||{},...o[l]||{}};for(const l of Object.keys(o))i[l]||(i[l]=o[l]);return Xi=OD({locale:t,fallbackLocale:r,messages:i,legacy:!1,globalInjection:!0}),Xi}function $r(){if(!Xi)throw new Error("i18n not initialized. Call createI18n() first.");return Xi}function ft(){const e=$r().global;return{$t:e.t,t:e.t,locale:e.locale,availableLocales:e.availableLocales,fallbackLocale:e.fallbackLocale,n:e.n,d:e.d}}function ke(e){if(e!=null)return e.startsWith("$t:")?$r().global.t(e.slice(3)):e}var a6={class:"nav-text"},i6={key:1,class:"sidebar-group w100p"},l6={class:"nav-text flex-grow"},s6={class:"sidebar-children-inner ps-1"},c6={class:"nav-text"},u6={class:"nav-text"},d6={class:"sidebar-flyout p-05 min-w-180px display-flex gap-025 column"},f6={class:"sidebar-flyout-label m-0 semi opacity-5 uppercase"},m6=(0,n.defineComponent)({__name:"SidebarNavItem",props:{link:{},open:{type:Boolean},realOpen:{type:Boolean},isMobile:{type:Boolean},bgColor:{},textColor:{},activeColor:{}},setup(e){const t=e,r=(0,da.useRoute)(),o=(0,n.computed)(()=>!!t.link.children?.length);function a(d){const f=d.to;return d.activeRoutes?.length?d.activeRoutes.some(m=>m==="/"?r.path===m:r.path===m||r.path.startsWith(`${m}/`)):f?f==="/"?r.path===f:r.path===f||r.path.startsWith(`${f}/`):!1}const i=(0,n.computed)(()=>t.link.children?.some(a)??!1),l=(0,n.computed)(()=>a(t.link)),s=(0,n.computed)(()=>l.value||o.value&&i.value),c=(0,n.ref)(i.value);(0,n.watch)(i,d=>{d&&(c.value=!0)}),(0,n.watch)(()=>t.realOpen,d=>{d?c.value=i.value:c.value=!1});function u(){o.value?c.value=!c.value:t.link.action?.()}return(d,f)=>o.value?e.open||e.isMobile?((0,n.openBlock)(),(0,n.createElementBlock)("div",i6,[(0,n.createVNode)((0,n.unref)(ne),{fullWidth:"",alignTxt:"start",flat:"",class:(0,n.normalizeClass)(["flex-shrink-0 px-075 sidebar-group-toggle txt-start sidebar-parent",{"sidebar-parent-active bold":s.value}]),style:(0,n.normalizeStyle)({color:s.value?e.activeColor:e.textColor}),onClick:u},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{name:e.link.icon,size:"1.2"},null,8,["name"]),(0,n.createElementVNode)("span",l6,(0,n.toDisplayString)((0,n.unref)(ke)(e.link.label)),1),(0,n.createVNode)((0,n.unref)(ge),{name:"expand_more",size:"1.1",class:(0,n.normalizeClass)(["nav-text sidebar-chevron",{"sidebar-chevron-open":c.value}])},null,8,["class"])]),_:1},8,["class","style"]),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["sidebar-children",{"sidebar-children-open":c.value}])},[(0,n.createElementVNode)("div",s6,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.link.children,m=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:m.to||m.label,fullWidth:"",alignTxt:"start",class:(0,n.normalizeClass)(["flex-shrink-0 ps-075 pe-075 sidebar-child",{"bold sidebar-child-active":a(m)}]),style:(0,n.normalizeStyle)({color:a(m)?e.activeColor:e.textColor,"--sidebar-active-color":e.activeColor}),flat:"",to:m.to||"/",onClick:m.action},{default:(0,n.withCtx)(()=>[m.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:0,name:m.icon,size:"1.05",class:"opacity-7"},null,8,["name"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",c6,(0,n.toDisplayString)((0,n.unref)(ke)(m.label)),1)]),_:2},1032,["class","style","to","onClick"]))),128))])],2)])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Tt),{key:2,placement:"right-start",triggers:["hover"],delay:{show:0,hide:200},card:"",class:"w100p sidebar-flyout-trigger"},{trigger:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ne),{fullWidth:"",alignTxt:"start",class:(0,n.normalizeClass)(["flex-shrink-0 px-075",{"nav-btn-active":s.value}]),style:(0,n.normalizeStyle)({backgroundColor:s.value?e.activeColor:e.bgColor,color:s.value?"white":e.textColor})},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{name:e.link.icon,size:"1.2"},null,8,["name"]),(0,n.createElementVNode)("span",u6,(0,n.toDisplayString)((0,n.unref)(ke)(e.link.label)),1)]),_:1},8,["class","style"])]),default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("div",d6,[(0,n.createElementVNode)("p",f6,(0,n.toDisplayString)((0,n.unref)(ke)(e.link.label)),1),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.link.children,m=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:m.to||m.label,fullWidth:"",alignTxt:"start",thin:"",flat:"",class:(0,n.normalizeClass)(["flex-shrink-0 px-075 radius-1 sidebar-child",{"bold sidebar-child-active":a(m)}]),style:(0,n.normalizeStyle)({color:a(m)?e.activeColor:"var(--bgl-text-color)","--sidebar-active-color":e.activeColor}),to:m.to||"/",onClick:m.action},{default:(0,n.withCtx)(()=>[m.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:0,name:m.icon,size:"1.05",class:"opacity-7"},null,8,["name"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)((0,n.unref)(ke)(m.label)),1)]),_:2},1032,["class","style","to","onClick"]))),128))])]),_:1})):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:0,title:!e.open&&!e.isMobile?(0,n.unref)(ke)(e.link.label):"",fullWidth:"",alignTxt:"start",class:(0,n.normalizeClass)(["flex-shrink-0 px-075",{"nav-btn-active":l.value}]),style:(0,n.normalizeStyle)({backgroundColor:l.value?e.activeColor:e.bgColor,color:l.value?"white":e.textColor}),to:e.link.to||"/",onClick:e.link.action},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{name:e.link.icon,size:"1.2"},null,8,["name"]),(0,n.createElementVNode)("span",a6,(0,n.toDisplayString)((0,n.unref)(ke)(e.link.label)),1)]),_:1},8,["title","class","style","to","onClick"]))}}),p6=we(m6,[["__scopeId","data-v-52900b43"]]),h6=["src","alt"],g6={class:"nav-text"},v6={class:"sidebar-footer flex column flex-stretch gap-025 align-items-start px-025 mt-auto"},y6={class:"nav-text"},b6=(0,n.defineComponent)({__name:"AppSidebar",props:{navLinks:{},footerLinks:{default:()=>[]},logo:{},logoAlt:{default:"Logo"},card:{type:Boolean,default:!0},bgColor:{default:"var(--bgl-box-bg)"},textColor:{default:"var(--bgl-text-color)"},activeColor:{default:"var(--bgl-primary)"},logoHeight:{default:"2rem"},name:{default:"App Name"},frame:{type:Boolean},activeRoutes:{},centerlinks:{type:Boolean,default:!1}},setup(e){const t=e,r=(0,da.useRoute)(),o=(0,n.ref)(!1),{isOpen:a,isMobile:i,sidebarWidth:l,toggleMenu:s,closeOnMobile:c}=ku(),u=(0,n.computed)(()=>a.value||o.value);(0,n.watch)(()=>a.value,()=>{i.value||(o.value=!0,setTimeout(()=>{o.value=!1},400))});function d(m){const p=m.to;if(p==null||p==="")return!1;if(m.activeRoutes&&m.activeRoutes.length>0)return m.activeRoutes.some(b=>b==="/"?r.path===b:r.path===b||r.path.startsWith(`${b}/`));if(p==="/")return r.path===p;if(r.path===p||r.path.startsWith(`${p}/`))return!0;const h=p.split("/").filter(Boolean),v=r.path.split("/").filter(Boolean);return h.length<=v.length?h.every((b,g)=>b.match(/^[a-f0-9-]{36}$/i)&&v[g]?.match(/^[a-f0-9-]{36}$/i)?!0:b===v[g]):!1}const f=(0,n.computed)(()=>{let m="280px";if(!i.value){const p=t.card?A0:$u;m=a.value?l:p}return{width:m}});return(m,p)=>{const h=(0,n.resolveComponent)("router-link");return(0,n.openBlock)(),(0,n.createElementBlock)("aside",{id:"bgl-app-sidebar",class:(0,n.normalizeClass)(["app-sidebar transition-400 fixed start top bottom h-100vh z-99",{"sidebar-mobile-open":(0,n.unref)(i)&&(0,n.unref)(a),"sidebar-mobile-closed":(0,n.unref)(i)&&!(0,n.unref)(a),transitioning:o.value,"p-05":t.card,"sidebar-collapsed":!(0,n.unref)(i)&&!(0,n.unref)(a)}]),style:(0,n.normalizeStyle)(f.value)},[(0,n.createElementVNode)("div",{style:(0,n.normalizeStyle)({backgroundColor:t.bgColor,color:t.textColor,...t.card&&{borderRadius:"var(--bgl-card-border-radius)"}}),class:(0,n.normalizeClass)([{"card cardWrapSide":t.card,"px-05":!u.value,aside_frame:t.frame},"overflow-hidden flex column flex-stretch gap-1 w100p pt-1 pb-05 h-100p testMe1"])},[(0,n.createVNode)(h,{to:"/",class:(0,n.normalizeClass)(["decoration-none flex siderbarLogoWrap gap-05",{"mx-1":u.value,"mx-05":!u.value}])},{default:(0,n.withCtx)(()=>[t.logo?((0,n.openBlock)(),(0,n.createElementBlock)("img",{key:0,src:t.logo,alt:t.logoAlt,class:"contain",style:(0,n.normalizeStyle)({height:t.logoHeight})},null,12,h6)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",g6,(0,n.toDisplayString)(t.name),1)]),_:1},8,["class"]),(0,n.createElementVNode)("nav",{class:(0,n.normalizeClass)(["sidebar-nav flex column flex-stretch gap-025 align-items-start",{"justify-content-center":t.centerlinks}])},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(t.navLinks,v=>((0,n.openBlock)(),(0,n.createBlock)(p6,{key:v.to||v.label,link:v,open:u.value,"real-open":(0,n.unref)(a),"is-mobile":(0,n.unref)(i),"bg-color":t.bgColor,"text-color":t.textColor,"active-color":t.activeColor},null,8,["link","open","real-open","is-mobile","bg-color","text-color","active-color"]))),128))],2),(0,n.createElementVNode)("div",v6,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(t.footerLinks,v=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:v.to||v.label,title:!(0,n.unref)(a)&&!(0,n.unref)(i)?(0,n.unref)(ke)(v.label):"",style:(0,n.normalizeStyle)({backgroundColor:d(v)?t.activeColor:t.bgColor,color:d(v)?"white":t.textColor}),fullWidth:"",alignTxt:"start",class:(0,n.normalizeClass)(["flex-shrink-0 px-075",{"nav-btn-active":d(v)}]),to:v.to||"/",onClick:v.action},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{name:v.icon,size:"1.2"},null,8,["name"]),(0,n.createElementVNode)("span",y6,(0,n.toDisplayString)((0,n.unref)(ke)(v.label)),1)]),_:2},1032,["title","style","class","to","onClick"]))),128)),(0,n.renderSlot)(m.$slots,"footer",(0,n.normalizeProps)((0,n.guardReactiveProps)({isOpen:(0,n.unref)(a),isMobile:(0,n.unref)(i),toggleMenu:(0,n.unref)(s),closeOnMobile:(0,n.unref)(c)})))])],6)],6)}}}),_6=b6,w6={class:"m-0 pb-025 txt10 line-height-1 w60 menu-text"},$6=(0,n.defineComponent)({__name:"BottomMenu",props:{navLinks:{}},setup(e){return(t,r)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ar),{class:"hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x"},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(t.$slots,"brand",{},void 0,!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.navLinks,(o,a)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:a,to:o.to,class:"m_h-auto",onClick:o.action},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{icon:o.icon,size:1.4,class:"m-0 line-height-14"},null,8,["icon"]),(0,n.createElementVNode)("p",w6,(0,n.toDisplayString)(o.label),1)]),_:2},1032,["to","onClick"]))),128)),(0,n.renderSlot)(t.$slots,"end",{},void 0,!0)]),_:3}))}}),k6=we($6,[["__scopeId","data-v-bf0ed739"]]),E6={class:"bgl-divider-label flex-shrink-0 white-space-nowrap"},C6=(0,n.defineComponent)({name:"BglDivider",__name:"Divider",props:{vertical:{type:Boolean,default:!1},label:{default:""},size:{},class:{default:""}},setup(e){const t=(0,n.useSlots)();return(r,o)=>e.vertical?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["divider-v",e.class]),style:(0,n.normalizeStyle)(e.size?{"--divider-size":e.size}:void 0),role:"separator","aria-orientation":"vertical"},null,6)):e.label||(0,n.unref)(t).default?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:(0,n.normalizeClass)(["bgl-divider-labeled flex gap-075",e.class]),role:"separator"},[o[0]||(o[0]=(0,n.createElementVNode)("span",{class:"divider bgl-divider-line"},null,-1)),(0,n.createElementVNode)("span",E6,[(0,n.renderSlot)(r.$slots,"default",{},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.label),1)],!0)]),o[1]||(o[1]=(0,n.createElementVNode)("span",{class:"divider bgl-divider-line"},null,-1))],2)):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:2,class:(0,n.normalizeClass)(["divider",e.class]),role:"separator"},null,2))}}),S6=we(C6,[["__scopeId","data-v-356e6ee7"]]),x6=(0,n.defineComponent)({__name:"Layout",props:{gap:{default:.5},h100:{type:Boolean,default:!1},columns:{default:()=>[]},mColumns:{default:()=>[]},mRows:{default:()=>[]},rows:{default:()=>[]},mGap:{default:void 0}},setup(e){(0,n.useCssVars)(d=>({v5409afe2:i.value,v137ea764:a.value,d4054570:c.value,v2507103f:l.value,v3afd6491:s.value,c8f7cbb6:u.value}));const t=e;function r(d){const f=d.trim();return/^\d*\.?\d+fr$/.test(f)?`minmax(0, ${f})`:f}function o(d){return d.length>0?d.map(r).join(" "):"auto"}const a=(0,n.computed)(()=>o(t.rows)),i=(0,n.computed)(()=>`${t.gap}rem`),l=(0,n.computed)(()=>t.mGap!==void 0?`${t.mGap}rem`:i.value),s=(0,n.computed)(()=>t.mRows?.length?o(t.mRows):a.value),c=(0,n.computed)(()=>o(t.columns)),u=(0,n.computed)(()=>t.mColumns?.length?o(t.mColumns):c.value);return(d,f)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["layout",{"layout-h-100":e.h100}])},[(0,n.renderSlot)(d.$slots,"default",{},void 0,!0)],2))}}),T6=we(x6,[["__scopeId","data-v-3e416ebc"]]);const mg=Symbol("Resizable");var N6=0;function D6(){return`panel-${++N6}`}function pg(e){const{containerEl:t,breakpoint:r,mobileDirection:o}=e,a=(0,n.ref)(!1),i=(0,n.shallowRef)([]),l=(0,n.computed)(()=>a.value?o:e.directionProp.value);let s=null;function c(){t.value&&(s?.disconnect(),s=new ResizeObserver(b=>{const g=b[0];g&&(a.value=g.contentRect.width<r)}),s.observe(t.value),a.value=t.value.clientWidth<r)}function u(){s?.disconnect(),s=null}(0,n.watch)(a,b=>{for(const g of i.value){const{config:y}=g;g.collapsed.value=b&&y.collapseOnMobile||!1}});function d(b){const g={id:b.id,config:b,size:(0,n.ref)(b.defaultSize),collapsed:(0,n.ref)(a.value?b.collapseOnMobile:!1),el:(0,n.ref)(null)};return i.value=[...i.value,g],g}function f(b){i.value=i.value.filter(g=>g.id!==b)}function m(b){return i.value.findIndex(g=>g.id===b)}let p=null;function h(b,g){const y=g-b.startPos,_=b.isRtl?-y:y,w=i.value[b.indexA],$=i.value[b.indexB],A=w.config.min,E=w.config.max,k=$.config.min,P=$.config.max;let N=b.currentSizeA,V=b.currentSizeB;if(b.isFlexB)N=Math.max(A,Math.min(E,b.startSizeA+_));else if(b.isFlexA)V=Math.max(k,Math.min(P,b.startSizeB-_));else{const T=Math.max(A,Math.min(E,b.startSizeA+_))-b.startSizeA;V=Math.max(k,Math.min(P,b.startSizeB-T)),N=b.startSizeA+(b.startSizeB-V)}b.currentSizeA=N,b.currentSizeB=V;const x=b.isHorizontal?"width":"height";b.elA&&!b.isFlexA&&(b.elA.style.flex=`0 0 ${N}px`,b.elA.style[x]=`${N}px`),b.elB&&!b.isFlexB&&(b.elB.style.flex=`0 0 ${V}px`,b.elB.style[x]=`${V}px`)}function v(b,g){p?.();const y=m(b);if(y<0||y>=i.value.length-1)return;const _=i.value[y],w=i.value[y+1];if(_.collapsed.value||w.collapsed.value)return;g.preventDefault();const $=l.value==="horizontal",A=$?g.clientX:g.clientY,E=$&&!!t.value&&getComputedStyle(t.value).direction==="rtl",k={panelId:b,pointerId:g.pointerId,isHorizontal:$,isRtl:E,startPos:A,startSizeA:_.size.value,startSizeB:w.size.value,currentSizeA:_.size.value,currentSizeB:w.size.value,indexA:y,indexB:y+1,isFlexA:_.config.flex,isFlexB:w.config.flex,elA:_.el.value,elB:w.el.value};t.value?.setAttribute("data-resizing",""),document.body.style.userSelect="none",document.body.style.cursor=$?"ew-resize":"ns-resize";function P(x){x.pointerId===k.pointerId&&h(k,k.isHorizontal?x.clientX:x.clientY)}function N(x){x.pointerId===k.pointerId&&(h(k,k.isHorizontal?x.clientX:x.clientY),i.value[k.indexA].size.value=k.currentSizeA,i.value[k.indexB].size.value=k.currentSizeB,V())}function V(){p=null,t.value?.removeAttribute("data-resizing"),document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("pointermove",P),document.removeEventListener("pointerup",N),document.removeEventListener("pointercancel",V)}document.addEventListener("pointermove",P),document.addEventListener("pointerup",N),document.addEventListener("pointercancel",V),p=V}return{context:{direction:l,isMobile:a,panels:i,registerPanel:d,unregisterPanel:f,onHandlePointerDown:v},observe:c,disconnect:u}}var A6={class:"panel__content"},B6=(0,n.defineComponent)({__name:"Panel",props:{id:{},defaultSize:{default:200},size:{},min:{default:0},max:{default:Number.POSITIVE_INFINITY},collapsible:{type:Boolean,default:!1},collapsed:{type:Boolean,default:void 0},flex:{type:Boolean,default:!1},collapseOnMobile:{type:Boolean},hideOnMobile:{type:Boolean},handle:{type:Boolean,default:!0}},emits:["update:collapsed","update:size"],setup(e,{expose:t,emit:r}){const o=e,a=r,i=(0,n.inject)(mg);if(!i)throw new Error("<Panel> must be used inside a <Resizable>");const l=o.id??D6(),s=(0,n.shallowRef)(null),c=(0,n.ref)(null),u=(0,n.computed)({get:()=>o.collapsed??s.value?.collapsed.value??!1,set(g){s.value&&(s.value.collapsed.value=g),a("update:collapsed",g)}});(0,n.watch)(()=>o.collapsed,g=>{g!==void 0&&s.value&&(s.value.collapsed.value=g)}),(0,n.watch)(()=>o.size,g=>{if(g===void 0||!s.value)return;const y=Math.max(o.min,Math.min(o.max,g));y!==s.value.size.value&&(s.value.size.value=y)}),(0,n.watch)(()=>s.value?.size.value,(g,y)=>{g!==void 0&&y!==void 0&&a("update:size",g)}),(0,n.onMounted)(()=>{const g={id:l,defaultSize:o.size??o.defaultSize,min:o.min,max:o.max,flex:o.flex,collapseOnMobile:o.collapseOnMobile??!1,hideOnMobile:o.hideOnMobile??!1};s.value=i.registerPanel(g),s.value.el.value=c.value,o.collapsed!==void 0&&(s.value.collapsed.value=o.collapsed)}),(0,n.onUnmounted)(()=>{i.unregisterPanel(l)});const d=(0,n.computed)(()=>s.value?.size.value??o.defaultSize),f=(0,n.computed)(()=>u.value),m=(0,n.computed)(()=>i.direction.value==="horizontal"),p=(0,n.computed)(()=>i.isMobile.value&&o.hideOnMobile),h=(0,n.computed)(()=>{const g=i.panels.value,y=g.findIndex(_=>_.id===l);return y>=0&&y===g.length-1}),v=(0,n.computed)(()=>f.value?m.value?{flex:"0 0 0px",width:"0px",minWidth:"0",overflow:"hidden"}:{flex:"0 0 0px",height:"0px",minHeight:"0",overflow:"hidden"}:o.flex?m.value?{flex:"1 1 0",minWidth:`${o.min}px`,maxWidth:o.max===Number.POSITIVE_INFINITY?void 0:`${o.max}px`,overflow:"hidden"}:{flex:"1 1 0",minHeight:`${o.min}px`,maxHeight:o.max===Number.POSITIVE_INFINITY?void 0:`${o.max}px`,overflow:"hidden"}:m.value?{flex:`0 0 ${d.value}px`,width:`${d.value}px`,overflow:"hidden"}:{flex:`0 0 ${d.value}px`,height:`${d.value}px`,overflow:"hidden"});function b(){u.value=!u.value}return t({toggleCollapse:b,size:d,isCollapsed:f}),(g,y)=>p.value?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,ref_key:"panelEl",ref:c,class:(0,n.normalizeClass)(["panel",[m.value?"panel--h":"panel--v",f.value&&"panel--collapsed"]]),style:(0,n.normalizeStyle)(v.value)},[(0,n.createElementVNode)("div",A6,[(0,n.renderSlot)(g.$slots,"default",{collapsed:f.value,size:d.value,toggleCollapse:b},void 0,!0)]),o.handle&&!h.value&&!f.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["panel__handle",m.value?"panel__handle--h":"panel__handle--v"]),onPointerdown:y[0]||(y[0]=_=>(0,n.unref)(i).onHandlePointerDown((0,n.unref)(l),_))},[...y[1]||(y[1]=[(0,n.createElementVNode)("div",{class:"panel__handle-bar"},null,-1)])],34)):(0,n.createCommentVNode)("",!0)],6))}}),M6=we(B6,[["__scopeId","data-v-2ed31dc2"]]),L6=(0,n.defineComponent)({name:"BglResizable",__name:"Resizable",props:{horizontal:{type:Boolean,default:!1},mobileVertical:{type:Boolean,default:!0},breakpoint:{default:910}},setup(e){const t=e,r=(0,n.ref)(),{context:o,observe:a,disconnect:i}=pg({directionProp:(0,n.computed)(()=>t.horizontal?"horizontal":"vertical"),mobileDirection:(0,n.computed)(()=>t.mobileVertical||!t.horizontal?"vertical":"horizontal").value,breakpoint:t.breakpoint,containerEl:r});(0,n.provide)(mg,o),(0,n.onMounted)(a),(0,n.onUnmounted)(i);const l=(0,n.computed)(()=>o.direction.value==="horizontal");return(s,c)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"containerEl",ref:r,class:(0,n.normalizeClass)(["resizable",l.value?"resizable--row":"resizable--col"])},[(0,n.renderSlot)(s.$slots,"default",{},void 0,!0)],2))}}),P6=we(L6,[["__scopeId","data-v-fda4fba5"]]),I6={key:0},V6=(0,n.defineComponent)({__name:"SidebarMenu",props:{navLinks:{},expandable:{type:Boolean},open:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.useSlots)(),i=(0,n.ref)(r.open),l=Vr(()=>{i.value=!i.value,o("update:open",i.value)});return(s,c)=>{const u=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["vh-100 relative p-05 bgl_sidebar",{wideNav:i.value}])},[(0,n.createVNode)((0,n.unref)(ne),{thin:"",color:"white",class:"mb-05 absolute toggleNav z-2 border",icon:"keyboard_arrow_right",onClick:(0,n.unref)(l)},null,8,["onClick"]),(0,n.createVNode)((0,n.unref)(ar),{class:"py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y"},{default:(0,n.withCtx)(()=>[!i.value||!(0,n.unref)(a)["brand-open"]?(0,n.renderSlot)(s.$slots,"brand",{key:0},void 0,!0):(0,n.createCommentVNode)("",!0),i.value?(0,n.renderSlot)(s.$slots,"brand-open",{key:1},void 0,!0):(0,n.createCommentVNode)("",!0),e.navLinks?(0,n.createCommentVNode)("",!0):(0,n.renderSlot)(s.$slots,"default",{key:2},void 0,!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.navLinks,(d,f)=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),(0,n.mergeProps)({key:f},{ref_for:!0},{...d.to&&{to:d.to},...d.href&&{href:d.href},...d.action&&{onClick:d.action}},{class:"nav-button px-075 me-auto w-100"}),{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{icon:d.icon,size:1.4},null,8,["icon"]),(0,n.createVNode)(n.Transition,{name:"showP"},{default:(0,n.withCtx)(()=>[e.open?((0,n.openBlock)(),(0,n.createElementBlock)("p",I6,(0,n.toDisplayString)(d.label),1)):(0,n.createCommentVNode)("",!0)]),_:2},1024)]),_:2},1040)),[[u,{content:d.label,disabled:e.open},void 0,{right:!0}]])),128)),c[0]||(c[0]=(0,n.createElementVNode)("div",{style:{"flex-grow":"1"}},null,-1)),(0,n.renderSlot)(s.$slots,"footer",{},void 0,!0)]),_:3})],2)}}}),O6=we(V6,[["__scopeId","data-v-c8d5bd46"]]),R6=(0,n.defineComponent)({name:"BglSkeleton",__name:"Skeleton",props:{count:{default:1},height:{},width:{},round:{type:Boolean,default:!1},borderRadius:{default:"var(--bgl-skeleton-radius)"},class:{default:""}},setup(e){const t=(0,n.useSlots)();return(r,o)=>((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(+e.count,a=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:a},[(0,n.unref)(t).default?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["skeleton-wrap",e.class])},[(0,n.renderSlot)(r.$slots,"default",{},void 0,!0)],2)):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:(0,n.normalizeClass)(["skeleton",{round:e.round,[e.class]:!0}]),style:(0,n.normalizeStyle)({height:e.height,width:e.width,borderRadius:e.borderRadius})},null,6))],64))),128))}}),Ki=we(R6,[["__scopeId","data-v-cacc01b4"]]),F6={class:"bgl_card tabs-top"},z6={class:"tabs grid auto-flow-columns fit-content"},U6=["onClick"],H6=(0,n.defineComponent)({__name:"TabbedLayout",props:{title:{},tabs:{},modelValue:{},router:{},sideTabs:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.ref)();function i(l){a.value=l,o("update:modelValue",a.value);const s=r.router;s&&s.push({path:s.currentRoute.value.path,query:{...s.currentRoute.value.query,t:l},hash:s.currentRoute.value.hash})}return(0,n.onMounted)(()=>{a.value=r.modelValue||r.router?.currentRoute.value.query.t||r.tabs[0]}),(l,s)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["h-100 grid list-view gap-1",{"side-tabs":e.sideTabs}])},[(0,n.createElementVNode)("div",F6,[(0,n.renderSlot)(l.$slots,"top-section",{},void 0,!0),(0,n.createElementVNode)("div",z6,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.tabs,c=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:c,class:(0,n.normalizeClass)([{active:c===a.value||c===e.router?.currentRoute.value.path.split("/").slice(-1)[0]},"tab"]),onClick:u=>i(c)},(0,n.toDisplayString)(c),11,U6))),128))])]),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.tabs.filter(c=>c===a.value),c=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:c,class:"list-content"},[(0,n.renderSlot)(l.$slots,c,{key:c},void 0,!0)]))),128))],2))}}),W6=we(H6,[["__scopeId","data-v-452d7195"]]),ai=(0,n.reactive)(new Map);function Iu(e){return ai.has(e)||ai.set(e,(0,n.reactive)({currentTab:void 0})),{currentTab:(0,n.computed)({get:()=>ai.get(e).currentTab,set:t=>{ai.get(e).currentTab=t}})}}var j6={key:0},q6=(0,n.defineComponent)({__name:"Tabs",props:{tabs:{},modelValue:{},flat:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.useSlots)(),i=Math.random().toString(36).slice(7),{currentTab:l}=Iu(i),s=d=>typeof d=="string"?d:d.value,c=(0,n.computed)({get:()=>r.modelValue||s(r.tabs[0]),set:d=>{o("update:modelValue",d)}}),u=(0,n.defineComponent)({render(){const d=r.tabs.findIndex(m=>s(m)===l.value);if(d===-1)return;const f=a.default?.()[1]?.children;return(0,n.h)("div",f[d])}});return(d,f)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)((0,n.unref)(Nl),{modelValue:c.value,"onUpdate:modelValue":f[0]||(f[0]=m=>c.value=m),flat:e.flat,tabs:e.tabs,group:(0,n.unref)(i),class:"mb-05"},null,8,["modelValue","flat","tabs","group"]),(0,n.unref)(l)?((0,n.openBlock)(),(0,n.createElementBlock)("div",j6,[(0,n.unref)(a)[(0,n.unref)(l)]?(0,n.renderSlot)(d.$slots,(0,n.unref)(l),{key:0}):(0,n.unref)(l)?((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)((0,n.unref)(u)),{key:1})):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0)],64))}}),G6=q6,Y6=(0,n.defineComponent)({__name:"TabsBody",props:{group:{}},setup(e){const{currentTab:t}=Iu(e.group);return(r,o)=>(0,n.unref)(t)?(0,n.renderSlot)(r.$slots,(0,n.unref)(t),{key:0}):(0,n.createCommentVNode)("",!0)}}),X6=Y6,K6=["onClick"],J6=(0,n.defineComponent)({__name:"TabsNav",props:{title:{},tabs:{},modelValue:{},sideTabs:{type:Boolean},group:{},flat:{type:Boolean},vertical:{type:Boolean},icon:{},iconEnd:{},iconSize:{},iconMobileSize:{},thin:{type:Boolean},size:{},fullWidth:{type:Boolean},fullWidthMobile:{type:Boolean},alignTxt:{},alignTxtMobile:{},outline:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,o=t,{currentTab:a}=Iu(r.group);a.value=r.modelValue||typeof r.tabs[0]=="string"?r.tabs[0]:r.tabs[0].value;const i=(0,n.ref)(void 0),l=(0,n.ref)([]);let s;function c(p,h){const v=p.getBoundingClientRect(),b=h.getBoundingClientRect(),g=b.left-v.left+p.scrollLeft,y=b.width;y>0&&(p.style.setProperty("--indicator-left",`${g}px`),p.style.setProperty("--indicator-width",`${y}px`),p.style.setProperty("--indicator-opacity","1"))}function u(){(0,n.nextTick)(()=>{const p=i.value;if(!p)return;const h=()=>{l.value=Array.from(p.querySelectorAll(".bgl_tab"));const v=l.value.find(b=>b.classList.contains("active"));if(!v){p.style.setProperty("--indicator-opacity","0");return}c(p,v)};requestAnimationFrame(()=>{requestAnimationFrame(h)})})}function d(p){a.value=typeof p=="string"?p:p.value,o("update:modelValue",a.value),(0,n.nextTick)(()=>{u()})}function f(p){return typeof p=="string"?a.value===p:a.value===p.value}function m(p){return typeof p=="string"?p:p.label}return(0,n.watch)(()=>r.modelValue,p=>{p&&!f(p)&&(a.value=p),(0,n.nextTick)(()=>{u()})},{immediate:!0}),(0,n.onMounted)(()=>{l.value=Array.from(i.value?.querySelectorAll(".bgl_tab")||[]),requestAnimationFrame(()=>{u()}),window.addEventListener("resize",u),i.value?.addEventListener("scroll",u,{passive:!0}),typeof ResizeObserver<"u"&&i.value&&(s=new ResizeObserver(()=>{u()}),s.observe(i.value)),typeof window<"u"&&window.visualViewport&&window.visualViewport.addEventListener("resize",u)}),(0,n.watch)(()=>r.tabs,()=>{(0,n.nextTick)(()=>{u()})},{deep:!0}),(0,n.onBeforeUnmount)(()=>{window.removeEventListener("resize",u),i.value?.removeEventListener("scroll",u),s?.disconnect(),s=void 0,typeof window<"u"&&window.visualViewport&&window.visualViewport.removeEventListener("resize",u)}),(p,h)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"tabsWrap",ref:i,class:(0,n.normalizeClass)(["grid auto-flow-columns relative fit-content bgl_tabs_wrap overflow-hidden",{"bgl_flat-tabs":e.flat,"bgl_vertical-tabs":e.vertical,outline:e.outline}])},[(0,n.renderSlot)(p.$slots,"tabs",(0,n.normalizeProps)((0,n.guardReactiveProps)({selectTab:d,isActive:f,tabLabel:m,tabs:l.value})),()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.tabs,(v,b)=>((0,n.openBlock)(),(0,n.createElementBlock)("button",{key:b,type:"button",class:(0,n.normalizeClass)([[{active:f(v)},{"bgl_tab-thin":e.thin,"bgl_tab-xs":e.size==="xs","bgl_tab-s":e.size==="sm","bgl_tab-l":e.size==="lg","bgl_tab-xl":e.size==="xl","w-100p justify-center":e.fullWidth,"w-auto m_w-100p":e.fullWidthMobile,"bgl_tab-align-center":e.alignTxt==="center","bgl_tab-align-start":e.alignTxt==="start","bgl_tab-align-end":e.alignTxt==="end","bgl_tab-align-center-mobile":e.alignTxtMobile==="center","bgl_tab-align-start-mobile":e.alignTxtMobile==="start","bgl_tab-align-end-mobile":e.alignTxtMobile==="end"}],"bgl_tab relative z-1"]),onClick:g=>d(v)},[e.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:0,icon:e.icon,size:e.iconSize,"mobile-size":e.iconMobileSize},null,8,["icon","size","mobile-size"])):typeof v!="string"&&v.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,icon:v.icon,size:e.iconSize,"mobile-size":e.iconMobileSize},null,8,["icon","size","mobile-size"])):(0,n.createCommentVNode)("",!0),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(m(v))+" ",1),e.iconEnd?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:2,icon:e.iconEnd,size:e.iconSize,"mobile-size":e.iconMobileSize},null,8,["icon","size","mobile-size"])):(0,n.createCommentVNode)("",!0)],10,K6))),128))],!0)],2))}}),Nl=we(J6,[["__scopeId","data-v-c09021d6"]]),Z6={key:0,class:"list-item-start flex align-items-center flex-shrink-0"},Q6={key:1,class:"list-item-icon flex-shrink-0"},eM={class:"txt-start flex-grow-1 list-item-body"},tM={class:"list-item-end flex align-items-center gap-05 flex-shrink-0"},nM=["textContent"],rM=(0,n.defineComponent)({__name:"ListItem",props:{src:{},showAvatar:{type:Boolean},to:{},href:{},icon:{},title:{},subtitle:{},flat:{type:Boolean},disabled:{type:Boolean},lead:{},end:{},iconEnd:{},target:{},thin:{type:Boolean},fullWidth:{type:Boolean},ellipsis:{type:Boolean,default:!0},ripple:{type:Boolean,default:!1},fullRow:{type:Boolean,default:!1},clickable:{type:Boolean},onClick:{}},setup(e){const t=e,r=(0,n.computed)(()=>t.to!==void 0&&t.to!==""),o=(0,n.computed)(()=>t.href!==void 0&&t.href!==""),a=(0,n.computed)(()=>r.value||o.value||t.onClick!==void 0||t.clickable===!0),i=(0,n.computed)(()=>r.value?"router-link":o.value?"a":a.value?"button":"div"),l=(0,n.computed)(()=>{const s={};return t.to!==void 0&&t.to!==""?s.to=t.to:t.href!==void 0&&t.href!==""&&(s.href=t.href),t.target!==void 0&&t.target!==void 0&&(t.to!==void 0&&t.to!==""||t.href!==void 0&&t.href!=="")&&(s.target=t.target),s.class={notClickable:!a.value,"no-border-list":t.flat},t.disabled&&(s.disabled=!0),s});return(s,c)=>{const u=(0,n.resolveDirective)("ripple");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["flex space-between list-item-row",{"no-border-list":t.flat,"list-item-flush":t.fullWidth,"list-item-fullrow":e.fullRow&&a.value}])},[s.$slots.start?((0,n.openBlock)(),(0,n.createElementBlock)("div",Z6,[(0,n.renderSlot)(s.$slots,"start")])):(0,n.createCommentVNode)("",!0),(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(i.value),(0,n.mergeProps)(l.value,{class:["flex flex-grow-1 gap-075 align-items-center list-item",{"py-075":!t.thin,"py-05":t.thin,"px-1":!t.fullWidth,"px-0":t.fullWidth}],onClick:c[0]||(c[0]=d=>typeof e.onClick=="function"&&e.onClick())}),{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(s.$slots,"media",{},()=>[e.src||e.showAvatar?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Ip),{key:0,name:e.title,src:e.src,size:e.thin?30:38,class:"flex-shrink-0"},null,8,["name","src","size"])):(0,n.createCommentVNode)("",!0),e.icon?((0,n.openBlock)(),(0,n.createElementBlock)("span",Q6,[(0,n.createVNode)((0,n.unref)(ge),{size:"1.2",icon:e.icon},null,8,["icon"])])):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",eM,[e.lead?((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:0,class:(0,n.normalizeClass)(["list-item-lead",{ellipsis:e.ellipsis}])},[(0,n.createTextVNode)((0,n.toDisplayString)(e.lead)+" ",1),(0,n.renderSlot)(s.$slots,"lead")],2)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("p",{class:(0,n.normalizeClass)(["list-item-title",{"ellipsis-1":e.ellipsis}])},[(0,n.createTextVNode)((0,n.toDisplayString)(e.title)+" ",1),(0,n.renderSlot)(s.$slots,"default")],2),e.subtitle||s.$slots.subtitle?((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:1,class:(0,n.normalizeClass)(["list-item-subtitle",{"ellipsis-1":e.ellipsis}])},[(0,n.createTextVNode)((0,n.toDisplayString)(e.subtitle)+" ",1),(0,n.renderSlot)(s.$slots,"subtitle")],2)):(0,n.createCommentVNode)("",!0)])]),_:3},16,["class"])),[[u,e.ripple&&a.value]]),(0,n.createElementVNode)("div",tM,[(0,n.renderSlot)(s.$slots,"end",{},()=>[e.end?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:0,class:(0,n.normalizeClass)(["list-item-endtext",{"ellipsis-1":e.ellipsis}]),textContent:(0,n.toDisplayString)(e.end)},null,10,nM)):(0,n.createCommentVNode)("",!0),e.iconEnd?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,icon:e.iconEnd,class:"transition-400 opacity-4"},null,8,["icon"])):(0,n.createCommentVNode)("",!0)])])],2)}}}),Dn=rM,oM={},aM={class:"list-wrap bgl_card thin grid overflow-hidden pt-0 pb-05 px-0 m_pb-0"},iM={class:"p-0"},lM={class:"list-content auto-flow-rows align-items-start overflow-y h-100"};function sM(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",aM,[(0,n.createElementVNode)("div",iM,[(0,n.renderSlot)(e.$slots,"header")]),(0,n.createElementVNode)("div",lM,[(0,n.renderSlot)(e.$slots,"default")])])}var hg=we(oM,[["render",sM]]);function Bm(e,t="px"){if(e===void 0||e==="")return"";if(typeof e=="string"){const r={xs:16,sm:24,md:32,lg:48,xl:64};return e in r?`${r[e]}${t}`:e.endsWith(t)?e:`${e}${t}`}return`${e}${t}`}var cM=["width","height"],uM=["r","stroke","stroke-width"],dM=["r","stroke","stroke-width","stroke-dasharray"],fM={class:"slot-content"},mM=(0,n.defineComponent)({__name:"Loading",props:{size:{default:50},thickness:{},duration:{default:1.2},type:{default:"ring"},color:{},progress:{}},setup(e){const t=(0,n.computed)(()=>Bm(e.size)),r=(0,n.computed)(()=>`${e.duration}s`),o=(0,n.computed)(()=>Bm(e.thickness??Math.max(Number.parseInt(t.value,10)/9,2))),a=(0,n.computed)(()=>e.color?e.color.startsWith("#")||e.color.startsWith("rgb")||e.color.startsWith("var(")?e.color:`var(--bgl-${e.color})`:"var(--bgl-text-color)"),i=(0,n.computed)(()=>{const c=Number.parseFloat(o.value),u=Number.parseFloat(t.value);return Math.round(c/u*100)*.9}),l=(0,n.computed)(()=>50-i.value/2),s=(0,n.computed)(()=>Math.PI*2*l.value);return(c,u)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["flex-center loading-container",{progress:e.progress!==void 0}]),style:(0,n.normalizeStyle)({"--progress":e.progress})},[e.type==="bar"?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.renderSlot)(c.$slots,"default",{},void 0,!0),(0,n.createElementVNode)("div",{class:"lds-bar",style:(0,n.normalizeStyle)({animationDuration:r.value,color:a.value})},null,4)],64)):(0,n.createCommentVNode)("",!0),e.type==="ellipsis"?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[(0,n.renderSlot)(c.$slots,"default",{},void 0,!0),(0,n.createElementVNode)("div",{class:"lds-ellipsis",style:(0,n.normalizeStyle)({"--size":t.value})},[((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(4,d=>(0,n.createElementVNode)("div",{key:d,style:(0,n.normalizeStyle)({color:a.value,"--size":t.value})},null,4)),64))],4)],64)):(0,n.createCommentVNode)("",!0),e.type==="ring"?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:2,class:"lds-ring",style:(0,n.normalizeStyle)({"--size":t.value,"--thickness":o.value})},[e.progress!==void 0?((0,n.openBlock)(),(0,n.createElementBlock)("svg",{key:0,width:t.value,height:t.value,viewBox:"0 0 100 100"},[(0,n.createElementVNode)("circle",{cx:"50",cy:"50",r:l.value,fill:"none",stroke:a.value,"stroke-width":i.value,"stroke-opacity":"0.2"},null,8,uM),(0,n.createElementVNode)("circle",{cx:"50",cy:"50",r:l.value,fill:"none",stroke:a.value,"stroke-width":i.value,"stroke-linecap":"round","stroke-dasharray":`${e.progress/100*s.value} ${s.value}`,transform:"rotate(-90 50 50)"},null,8,dM)],8,cM)):((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},(0,n.renderList)(4,d=>(0,n.createElementVNode)("div",{key:d,class:"ring-segment",style:(0,n.normalizeStyle)({color:a.value,width:t.value,height:t.value,borderWidth:o.value,"--animation-duration":r.value,"--size":t.value,"--thickness":o.value})},null,4)),64)),(0,n.createElementVNode)("div",fM,[(0,n.renderSlot)(c.$slots,"default",{},void 0,!0)])],4)):(0,n.createCommentVNode)("",!0)],6))}}),Wr=we(mM,[["__scopeId","data-v-89551186"]]),pM=["id"],hM='<svg width="28" height="38" viewBox="0 0 28 38" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.2263 37.7955C17.0897 37.7955 19.4109 37.0138 19.4109 36.0496C19.4109 35.0854 17.0897 34.3037 14.2263 34.3037C11.363 34.3037 9.04175 35.0854 9.04175 36.0496C9.04175 37.0138 11.363 37.7955 14.2263 37.7955Z" fill="black" fill-opacity="0.1"/><path d="M14.2265 0.549591C21.2842 0.549591 27.0131 6.23786 27.0787 13.28V13.4024C27.0787 19.3328 24.4759 24.4306 21.5627 28.2764C18.6511 32.12 15.4577 34.6754 14.3457 35.5097C14.2748 35.5629 14.1778 35.5629 14.1068 35.5097C12.9947 34.675 9.80135 32.1197 6.88984 28.2762C3.97665 24.4304 1.37378 19.3328 1.37378 13.4024C1.37378 6.30387 7.12806 0.549591 14.2265 0.549591Z" fill="#ED1b3E" stroke="#ED6C6F"/><path d="M14.2263 21.6185C18.7639 21.6185 22.4424 17.94 22.4424 13.4024C22.4424 8.86477 18.7639 5.18631 14.2263 5.18631C9.68872 5.18631 6.01025 8.86477 6.01025 13.4024C6.01025 17.94 9.68872 21.6185 14.2263 21.6185Z" fill="white"/></svg>',gM="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js",vM=(0,n.defineComponent)({__name:"Index",props:{center:{default:()=>[31.7683,35.2137]},zoom:{default:15},height:{default:400},zoomControl:{type:Boolean,default:!0},markers:{},markerIcon:{default:""}},emits:["select"],setup(e,{emit:t}){const r=e,o=t,a=(0,n.ref)(),i=(0,n.ref)(),l=(0,n.ref)([]),s=(0,n.ref)(Math.random().toString(36).slice(2,10));async function c(){await Ga(gM),a.value=await Sa("L"),i.value||(i.value=a.value.map(s.value,{center:r.center,zoom:r.zoom,zoomControl:r.zoomControl}),a.value.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:18}).addTo(i.value))}async function u(p){const h=r.markerIcon||hM,v=a.value?.icon({iconUrl:`data:image/svg+xml;utf8,${encodeURIComponent(h)}`,iconSize:[32,32]}),b=f(p),g=Array.isArray(p)?p[2]:p.title??p.tooltip,y=Array.isArray(p)?p[2]:p.tooltip,_=a.value?.marker(b,{title:g,icon:v,interactive:!0}).addTo(i.value);y&&_.bindTooltip(y,{direction:"top"}),_.on("click",()=>{o("select",p)}),l.value.push(_)}function d(p){if(l.value.length>0){const h=l.value.map(g=>g.getLatLng()),v=p.latLngBounds(h),b=v.getCenter();i.value?.setView(b,r.zoom),i.value?.fitBounds(v,{animate:!0,padding:[20,20]})}}function f(p){const[h,v]=Array.isArray(p)?[p[0],p[1]]:[p.lat,p.lng];return{lat:+h,lng:+v}}async function m(p){if(a.value||(a.value=await Sa("L")),l.value.forEach(h=>h.remove()),!!p){for(const h of p)i.value||await c(),u(h);d(a.value)}}return(0,n.watch)(()=>r.markers,m,{immediate:!0}),(0,n.watch)(()=>r.center,p=>i.value?.setView(p,r.zoom),{immediate:!0}),(0,n.onMounted)(c),(0,n.onUnmounted)(()=>{l.value.forEach(p=>p.remove()),i.value?.remove(),i.value=void 0}),(p,h)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{id:s.value,class:"leaflet-map",style:(0,n.normalizeStyle)({height:`${r.height||400}px`}),dir:"ltr"},null,12,pM))}}),yM=vM,bM={class:"flex space-between m_w-100vw overflow m_-ms-1 m_-me-1 m_px-1 m_pt-025 m_pb-05 bglTopMenu"},_M={class:"flex gap-025 m_gap-05"},wM={class:"-ms-025"},$M={class:"-ms-025"},kM={class:"-ms-025"},EM=(0,n.defineComponent)({__name:"Menu",props:{items:{}},setup(e){return(t,r)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",bM,[(0,n.createElementVNode)("div",_M,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.items,o=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:o.label},[o.children?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Tt),{key:0,value:(0,n.unref)(ke)(o.label),iconEnd:"keyboard_arrow_down"},{trigger:(0,n.withCtx)(({show:a})=>[(0,n.createVNode)((0,n.unref)(ne),{thin:"",flat:"",class:(0,n.normalizeClass)(o.class),onClick:i=>a()},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{name:o.icon,size:"0.8",style:{"margin-bottom":"-0.1rem"},class:"line-height-0"},null,8,["name"]),(0,n.createElementVNode)("p",wM,(0,n.toDisplayString)((0,n.unref)(ke)(o.label)),1),(0,n.createVNode)((0,n.unref)(ge),{name:"keyboard_arrow_down",size:"0.8",style:{"margin-bottom":"-0.1rem"},class:"line-height-0"})]),_:2},1032,["class","onClick"])]),default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(o.children,a=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:a.label,thin:"",flat:"",to:a.to,class:(0,n.normalizeClass)([a.class,"block m_px-025"]),onClick:i=>a.action?.()},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{name:a.icon,size:"0.8",style:{"margin-bottom":"-0.1rem"},class:"line-height-0"},null,8,["name"]),(0,n.createElementVNode)("p",$M,(0,n.toDisplayString)(a.label),1)]),_:2},1032,["to","class","onClick"]))),128))]),_:2},1032,["value"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:1,thin:"",flat:"",to:o.to,class:(0,n.normalizeClass)([o.class,"m_px-025"]),onClick:a=>o.action?.()},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{name:o.icon,size:"0.9",style:{"margin-bottom":"-0.1rem"},class:"line-height-0"},null,8,["name"]),(0,n.createElementVNode)("p",kM,(0,n.toDisplayString)(o.label),1)]),_:2},1032,["to","class","onClick"]))],64))),128))]),(0,n.renderSlot)(t.$slots,"end",{},void 0,!0)]))}}),CM=we(EM,[["__scopeId","data-v-630b449b"]]),SM={class:"full-nav"},xM={class:"nav-scroll"},TM={class:"nav-links-wrapper"},NM={class:"tooltip"},DM={class:"bot-buttons-wrapper"},AM={class:"tooltip"},BM=(0,n.defineComponent)({__name:"NavBar",props:{footerLinks:{default:()=>[]},links:{default:()=>[]},homeIcon:{default:"home"},homeLabel:{default:"Home"},homeTo:{default:"/"}},setup(e){const t=(0,n.ref)(!0);function r(){t.value=window.innerWidth<=910;const a=localStorage.getItem("navOpen");(a==="true"||a===null)&&(t.value=!0)}function o(){t.value=!t.value,localStorage.setItem("navOpen",`${t.value}`)}return(0,n.onMounted)(r),(a,i)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)({open:t.value,closed:!t.value})},[(0,n.renderSlot)(a.$slots,"top",{isOpen:t.value},void 0,!0),(0,n.createElementVNode)("div",{class:"nav-expend",role:"button","aria-label":"Toggle Navigation",tabindex:"0",onClick:o,onKeypress:(0,n.withKeys)(o,["enter"])},[(0,n.createVNode)((0,n.unref)(ge),{icon:"chevron_right",class:"top-arrow"})],32),(0,n.createElementVNode)("div",SM,[(0,n.createElementVNode)("div",xM,[(0,n.createElementVNode)("div",TM,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.links,l=>((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(l.to?"router-link":"div"),{key:l.label,class:"nav-button",to:l.to,onClick:s=>l.action?.()},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{icon:l.icon},null,8,["icon"]),(0,n.createElementVNode)("div",NM,(0,n.toDisplayString)((0,n.unref)(ke)(l.label)),1)]),_:2},1032,["to","onClick"]))),128))])]),(0,n.createElementVNode)("div",DM,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.footerLinks,l=>((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(l.to?"router-link":"div"),{key:l.label,class:"nav-button",to:l.to,onClick:s=>l.action?.()},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ge),{icon:l.icon},null,8,["icon"]),(0,n.createElementVNode)("div",AM,(0,n.toDisplayString)((0,n.unref)(ke)(l.label)),1)]),_:2},1032,["to","onClick"]))),128)),(0,n.renderSlot)(a.$slots,"floor",{},void 0,!0)])])],2))}}),MM=we(BM,[["__scopeId","data-v-2f4dcf67"]]),LM={class:"page-top"},PM={class:"top-title m-0"},IM=(0,n.defineComponent)({__name:"PageTitle",props:{value:{type:String,default:""}},setup(e){return(t,r)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",LM,[(0,n.createElementVNode)("h1",PM,[(0,n.renderSlot)(t.$slots,"default"),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.value),1)])]))}}),gg=IM,VM={key:1,class:"pagination-ellipsis"},OM={class:"pagination-info"},RM=(0,n.defineComponent)({__name:"Pagination",props:(0,n.mergeModels)({totalItems:{default:0},perPage:{default:25},totalPages:{default:void 0},variant:{default:"default"},rtl:{type:Boolean,default:!1},maxVisiblePages:{default:3}},{page:{default:1},pageModifiers:{},range:{},rangeModifiers:{}}),emits:["update:page","update:range"],setup(e){const t=e,r=(0,n.useModel)(e,"page"),o=(0,n.useModel)(e,"range"),a=(0,n.ref)(),i=(0,n.ref)(0),l=(0,n.ref)(0),s=(0,n.computed)(()=>{if(t.totalPages!==void 0)return t.totalPages;const{perPage:v}=t;return Math.max(1,Math.ceil(t.totalItems/v))});(0,n.watch)([()=>r.value,()=>t.perPage,()=>t.totalItems],()=>{if(o.value){const{perPage:v}=t,b=(r.value-1)*v;o.value={start:b,end:Math.min(b+v-1,t.totalItems-1)}}(0,n.nextTick)(()=>{u()})},{immediate:!0}),(0,n.watch)(()=>t.rtl,u);const c=(0,n.computed)(()=>{const{maxVisiblePages:v}=t;if(s.value<=v*2)return Array.from({length:s.value},(y,_)=>_+1);const b=new Set;b.add(r.value),r.value>1&&b.add(r.value-1),r.value<s.value&&b.add(r.value+1),b.add(1),b.add(s.value);const g=Array.from(b).sort((y,_)=>y-_);if(g.length<v+2)for(let y=0;y<g.length-1;y++){const _=g[y],w=g[y+1];if(w-_>1){const $=Math.min(w-_-1,v+2-g.length),A=Array.from({length:$},(E,k)=>_+k+1);g.splice(y+1,0,...A),y+=A.length}}return g});function u(){if(!a.value)return;const v=a.value.querySelector(".selected");if(!v)return;const b=a.value.getBoundingClientRect(),g=v.getBoundingClientRect();l.value=g.width,t.rtl?i.value=b.right-g.right:i.value=g.left-b.left}function d(v){v<1||v>s.value||(r.value=v)}function f(){d(r.value+1)}function m(){d(r.value-1)}function p(v){return v===void 0?"-":(v+1).toString()}const h=(0,n.computed)(()=>{const v=[];for(let b=0;b<c.value.length;b++){const g=c.value[b];b>0&&g-c.value[b-1]>1&&v.push({type:"ellipsis",key:`ellipsis-${b}`}),v.push({type:"page",number:g,key:g})}return v});return(v,b)=>s.value>1?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,ref_key:"paginationContainer",ref:a,class:"relative flex gap-1 justify-content"},[e.variant!=="simple"?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createElementVNode)("div",{class:"indicator radius-1",style:(0,n.normalizeStyle)({[e.rtl?"right":"left"]:`${i.value}px`,width:`${l.value}px`})},null,4),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(h.value,g=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:g.key},[g.type==="page"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:0,flat:"",thin:"",class:(0,n.normalizeClass)({selected:g.number===r.value}),value:g.number?g.number.toString():"",onClick:y=>g.number?d(g.number):null},null,8,["class","value","onClick"])):g.type==="ellipsis"?((0,n.openBlock)(),(0,n.createElementBlock)("div",VM," ... ")):(0,n.createCommentVNode)("",!0)],64))),128))],64)):((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[(0,n.createVNode)((0,n.unref)(ne),{flat:"",thin:"",disabled:r.value<=1,icon:"chevron_left",onClick:m},null,8,["disabled"]),(0,n.createElementVNode)("span",OM,(0,n.toDisplayString)(p(o.value?.start))+"-"+(0,n.toDisplayString)(p(o.value?.end))+" / "+(0,n.toDisplayString)(t.totalItems),1),(0,n.createVNode)((0,n.unref)(ne),{flat:"",thin:"",disabled:r.value>=s.value,icon:"chevron_right",onClick:f},null,8,["disabled"])],64))],512)):(0,n.createCommentVNode)("",!0)}}),FM=we(RM,[["__scopeId","data-v-f3fadb25"]]),zM={key:1,class:"flex gap-075 align-items-center"},UM={key:0,class:"txt12 opacity-6 bgl-progress-label"},HM=(0,n.defineComponent)({name:"BglProgress",__name:"Progress",props:{value:{default:0},color:{default:"primary"},ring:{type:Boolean},size:{default:void 0},thickness:{default:9},label:{type:Boolean}},setup(e){const t=e,r=(0,n.computed)(()=>Math.max(0,Math.min(100,t.value))),o=(0,n.computed)(()=>`var(--bgl-${t.color})`),a=(0,n.computed)(()=>t.size??86),i=(0,n.computed)(()=>t.size??8);return(l,s)=>e.ring?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"bgl-progress-ring grid place-items-center",style:(0,n.normalizeStyle)({width:`${a.value}px`,height:`${a.value}px`,"--bgl-progress-pct":`${r.value}`,background:`conic-gradient(${o.value} calc(var(--bgl-progress-pct) * 1%), var(--bgl-progress-track, var(--bgl-border-color)) 0)`})},[(0,n.createElementVNode)("div",{class:"bgl-progress-ring-hole grid place-items-center txt-center",style:(0,n.normalizeStyle)({width:`calc(100% - ${e.thickness*2}px)`,height:`calc(100% - ${e.thickness*2}px)`})},[(0,n.renderSlot)(l.$slots,"default",{},void 0,!0)],4)],4)):((0,n.openBlock)(),(0,n.createElementBlock)("div",zM,[(0,n.createElementVNode)("div",{class:"bgl-progress-track flex-grow",style:(0,n.normalizeStyle)({height:`${i.value}px`})},[(0,n.createElementVNode)("div",{class:"bgl-progress-fill",style:(0,n.normalizeStyle)({width:`${r.value}%`,background:o.value})},null,4)],4),e.label&&!l.$slots.default?((0,n.openBlock)(),(0,n.createElementBlock)("span",UM,(0,n.toDisplayString)(Math.round(r.value))+"%",1)):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(l.$slots,"default",{},void 0,!0)]))}}),WM=we(HM,[["__scopeId","data-v-5658f84c"]]),jM={class:"rating"},qM=(0,n.defineComponent)({__name:"Rating",props:{rating:{},totalStars:{default:5},iconType:{default:"star"},fillColor:{default:"#fabf05"},emptyColor:{default:"lightgray"},size:{default:1.4}},setup(e){function t(r){const o=typeof e.rating=="string"?Number.parseFloat(e.rating.replace(",",".")):e.rating;return r<=Math.floor(o)?"100%":r>Math.ceil(o)?"0%":`${o%1*100}%`}return(r,o)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",jM,[e.iconType==="star"?((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:0},(0,n.renderList)(e.totalStars,a=>((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:a,class:"star-icon p-025",style:(0,n.normalizeStyle)({"--gradient-width":t(a),"--fill-color":e.fillColor,"--empty-color":e.emptyColor})}," ★ ",4))),128)):((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:1},(0,n.renderList)(e.totalStars,a=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:a,fill:"",name:e.iconType,class:"star-icon p-0",size:e.size,style:(0,n.normalizeStyle)({gap:`${e.size*.3}rem`,"--gradient-width":t(a),"--fill-color":e.fillColor,"--empty-color":e.emptyColor})},null,8,["name","size","style"]))),128))]))}}),GM=we(qM,[["__scopeId","data-v-efe1578b"]]),YM={class:"w-100p h-100vh flex justify-content-center"},XM=(0,n.defineComponent)({__name:"RouterWrapper",setup(e){return(t,r)=>{const o=(0,n.resolveComponent)("RouterView");return(0,n.openBlock)(),(0,n.createBlock)(o,null,{default:(0,n.withCtx)(({Component:a,route:i})=>[a?((0,n.openBlock)(),(0,n.createBlock)(n.Transition,{key:1,duration:300,name:"slide-fade",mode:"out-in",appear:""},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(a),{key:i?.params.itemID}))]),_:2},1024)):(0,n.renderSlot)(t.$slots,"default",{key:0},()=>[(0,n.createElementVNode)("div",YM,[(0,n.createVNode)(Wr)])],!0)]),_:3})}}}),KM=we(XM,[["__scopeId","data-v-9f43ea65"]]);function xc(e,t=""){const r={};for(const o in e){if(!Object.hasOwn(e,o))continue;const a=e[o],i=t?`${t}.${o}`:o;a&&typeof a=="object"&&!Array.isArray(a)?Object.assign(r,xc(a,i)):r[i]=a}return r}function JM(e){const t={};for(const r in e){if(!Object.hasOwn(e,r))continue;const o=r.split(".");let a=t;for(let i=0;i<o.length-1;i++){const l=o[i];a[l]||(a[l]={}),a=a[l]}a[o[o.length-1]]=e[r]}return t}function Tc(e,t){if(e==null)return"";switch(t){case"image":return String(e);case"boolean":return"";case"number":return Number(e).toLocaleString();case"currency":return Number(e).toLocaleString(void 0,{style:"currency",currency:"USD"});case"date":return e?new Date(e).toLocaleDateString():"";case"percentage":return Number(e).toLocaleString(void 0,{style:"percent",minimumFractionDigits:2});default:return String(e)}}function vg(e,t){switch(t){case"boolean":return typeof e=="boolean"?e:e==="true";case"number":case"percentage":case"currency":return typeof e=="boolean"||e===""?null:Number(String(e).replace(/[^0-9.-]/g,""));case"date":return typeof e=="boolean"||e===""?null:new Date(String(e)).toISOString();default:return String(e)}}function ZM(e,t,r,o,a,i,l,s){async function c(){if(!r.value||!o.value)return;const d=Math.min(r.value.row,o.value.row),f=Math.max(r.value.row,o.value.row),m=Math.min(r.value.col,o.value.col),p=Math.max(r.value.col,o.value.col),h=Array.from({length:f-d+1},(v,b)=>Array.from({length:p-m+1},(g,y)=>{const _=t.value[m+y];return Tc(e.value[d+b][_.key],_.format)}).join(" ")).join(`
|
|
293
293
|
`);try{await navigator.clipboard.writeText(h)}catch{}}async function u(){if(r.value)try{const d=(await navigator.clipboard.readText()).split(`
|
|
294
|
-
`).map(h=>h.split(" "));a("paste");const f=r.value.row,m=r.value.col,p=f+d.length-e.value.length;for(let h=0;h<p;h++)e.value.push(l());d.forEach((h,v)=>{h.forEach((b,g)=>{const y=m+g;if(y>=t.value.length)return;const _=t.value[y];i(_.key)&&(e.value[f+v][_.key]=vg(b,_.format))})}),s()}catch{}}return{copySelection:c,pasteSelection:u}}function ZM(e,t){const r=(0,n.ref)([]),o=(0,n.ref)(new Map),a=(0,n.ref)(!1),i=(0,n.ref)(null),l=(0,n.ref)(0),s=(0,n.ref)(0),c=(0,n.computed)(()=>{const g=e.value.length?new Set(e.value.flatMap($=>Object.keys($))):new Set,y=t(),_=new Map((y||[]).map($=>[$.key,$])),w=new Set([...g,...y?.map($=>$.key)||[]]);return Array.from(w).map($=>{const A=_.get($);return{key:$,label:A?.label??$,locked:A?.locked??!1,sortable:A?.sortable??!0,format:A?.format??"text",width:A?.width,fixed:A?.fixed??!1,hidden:A?.hidden??!1,defaultValue:A?.defaultValue}})}),u=(0,n.computed)(()=>c.value.filter(g=>g.fixed&&!g.hidden&&r.value.includes(g.key))),d=(0,n.computed)(()=>c.value.filter(g=>!g.fixed&&!g.hidden&&r.value.includes(g.key))),f=(0,n.computed)(()=>c.value.filter(g=>!g.hidden));(0,n.watch)(c,g=>{g.length>0&&r.value.length===0&&(r.value=g.filter(y=>!y.hidden).map(y=>y.key))});function m(g){return!(c.value.find(y=>y.key===g)?.locked??!1)}function p(){const g={};return c.value.forEach(y=>{g[y.key]=y.defaultValue!==void 0?y.defaultValue:y.format==="boolean"?!1:""}),g}function h(g){if(!a.value||!i.value)return;g.preventDefault();const y=Math.max(80,s.value+(g.pageX-l.value));o.value.set(i.value,y)}function v(){a.value=!1,i.value=null,document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",v)}function b(g,y){a.value=!0,i.value=y,l.value=g.pageX;const _=g.target.closest("th");s.value=o.value.get(y)??_?.getBoundingClientRect().width??0,document.addEventListener("mousemove",h),document.addEventListener("mouseup",v)}return(0,n.onUnmounted)(()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",v)}),{columns:c,fixedColumns:u,scrollableColumns:d,columnOptions:f,visibleColumns:r,columnWidths:o,isCellEditable:m,createEmptyRow:p,handleResizeStart:b}}function QM(e){const t=(0,n.ref)(!1),r=(0,n.ref)(null),o=(0,n.ref)(null);function a(c,u){r.value={row:c,col:u},o.value={row:c,col:u},t.value=!0}function i(c,u){t.value&&(o.value={row:c,col:u})}function l(){t.value=!1}function s(c){r.value={row:c,col:0},o.value={row:c,col:e.value.length-1}}return window.addEventListener("mouseup",l),(0,n.onUnmounted)(()=>{window.removeEventListener("mouseup",l)}),{isSelecting:t,selectionStart:r,selectionEnd:o,handleMouseDown:a,handleMouseOver:i,handleMouseUp:l,selectEntireRow:s}}function eL(e,t,r,o){const a=(0,n.ref)(null),i=(0,n.ref)("asc");function l(s){if(!t.value.find(d=>d.key===s)?.sortable)return;a.value===s?i.value=i.value==="desc"?"asc":"desc":(a.value=s,i.value="desc");const c=[...e.value].sort((d,f)=>{const m=d[s],p=f[s];if(m===p)return 0;if(m==null)return 1;if(p==null)return-1;const h=i.value==="desc"?1:-1;return m<p?-h:h}),u=[...r.value];e.value=c,o(),(0,n.nextTick)(()=>{r.value=u})}return{sortColumn:a,sortDirection:i,sortByColumn:l}}function tL(e,t,r,o){const a=(0,n.ref)([]),i=(0,n.ref)([]),l=(0,n.computed)(()=>a.value.length>0),s=(0,n.computed)(()=>i.value.length>0);function c(){return{rows:JSON.parse(JSON.stringify(e.value)),selection:t.value&&r.value?{start:{...t.value},end:{...r.value}}:void 0}}function u(p){e.value=JSON.parse(JSON.stringify(p.data.rows)),p.data.selection&&(t.value={...p.data.selection.start},r.value={...p.data.selection.end}),o()}function d(p){a.value.push({type:p,data:c()}),i.value=[]}function f(){const p=a.value.pop();p&&(i.value.push({type:p.type,data:c()}),u(p))}function m(){const p=i.value.pop();p&&(a.value.push({type:p.type,data:c()}),u(p))}return{undoStack:a,redoStack:i,canUndo:l,canRedo:s,saveState:d,undo:f,redo:m}}var nL=["value"],rL={class:"spreadsheet-cell spreadsheetCellPlaceHolder"},oL={key:1,class:"h40px w-100p flex align-items-center justify-content-center overflow-hidden"},aL=["src","alt"],iL={key:3,class:"spreadsheet-cell"},lL=(0,n.defineComponent)({__name:"SpreadsheetCell",props:{col:{},row:{},rowIndex:{},globalColIndex:{},editing:{type:Boolean},editable:{type:Boolean},wrapText:{type:Boolean}},emits:["updateCell","stopEditing","setInputRef"],setup(e){return(t,r)=>e.editing?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createElementVNode)("input",{ref:o=>t.$emit("setInputRef",o,`cell-${e.rowIndex}-${e.globalColIndex}`),value:e.row[e.col.key],type:"text",class:"spreadsheet-input",onInput:r[0]||(r[0]=o=>t.$emit("updateCell",e.rowIndex,e.col.key,o.target.value)),onBlur:r[1]||(r[1]=o=>t.$emit("stopEditing",!1)),onKeydown:[r[2]||(r[2]=(0,n.withKeys)((0,n.withModifiers)(o=>t.$emit("stopEditing",!1),["prevent"]),["enter"])),r[3]||(r[3]=(0,n.withKeys)((0,n.withModifiers)(o=>t.$emit("stopEditing",!0),["prevent"]),["esc"]))],onMousedown:r[4]||(r[4]=(0,n.withModifiers)(()=>{},["stop"]))},null,40,nL),(0,n.createElementVNode)("span",rL,(0,n.toDisplayString)((0,n.unref)(Tc)(e.row[e.col.key],e.col.format)),1)],64)):e.col.format==="image"?((0,n.openBlock)(),(0,n.createElementBlock)("div",oL,[(0,n.createElementVNode)("img",{class:"w-100p h-100p contain radius-05",src:e.row[e.col.key],alt:e.col.label||e.col.key},null,8,aL)])):e.col.format==="boolean"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(St),{key:2,modelValue:!!e.row[e.col.key],disabled:!e.editable,"onUpdate:modelValue":r[5]||(r[5]=o=>t.$emit("updateCell",e.rowIndex,e.col.key,!!o)),onMousedown:r[6]||(r[6]=(0,n.withModifiers)(()=>{},["stop"]))},null,8,["modelValue","disabled"])):((0,n.openBlock)(),(0,n.createElementBlock)("span",iL,(0,n.toDisplayString)((0,n.unref)(Tc)(e.row[e.col.key],e.col.format)),1))}}),sL=lL,cL={class:"stickyTop"},uL={key:0,class:"row-number-header"},dL={class:"th-content"},fL=["onClick"],mL=["onMousedown"],pL=["onClick"],hL=["tabindex","onMousedown","onMouseover","onFocusin","onDblclick","onKeydown"],gL={key:0},vL=["colspan"],yL=(0,n.defineComponent)({__name:"SpreadsheetTable",props:{columns:{},rows:{},isFixed:{type:Boolean},showRowNumbers:{type:Boolean},columnWidths:{},sortColumn:{},sortDirection:{},selectionStart:{},selectionEnd:{},editingCell:{},baseColumnIndex:{},wrapText:{type:Boolean},emptyMessage:{}},emits:["sortColumn","resizeStart","selectRow","cellMouseDown","cellMouseOver","cellEditStart","cellKeyDown","updateCell","stopEditing","setInputRef"],setup(e){const t=e,r=c=>t.baseColumnIndex+c;function o(c,u){if(!t.selectionStart||!t.selectionEnd)return!1;const d=r(u),f=Math.min(t.selectionStart.row,t.selectionEnd.row),m=Math.max(t.selectionStart.row,t.selectionEnd.row),p=Math.min(t.selectionStart.col,t.selectionEnd.col),h=Math.max(t.selectionStart.col,t.selectionEnd.col);return c>=f&&c<=m&&d>=p&&d<=h}function a(c){return!(t.columns.find(u=>u.key===c)?.locked??!1)}function i(c,u){if(!t.editingCell)return!1;const d=r(u);return t.editingCell.row===c&&t.editingCell.col===d}function l(c){if(!t.selectionStart||!t.selectionEnd)return"none";const u=Math.min(t.selectionStart.row,t.selectionEnd.row),d=Math.max(t.selectionStart.row,t.selectionEnd.row);return c<u||c>d?"none":`${Math.min(t.selectionStart.col,t.selectionEnd.col)}-${Math.max(t.selectionStart.col,t.selectionEnd.col)}`}function s(c,u){if(!t.selectionStart||!t.selectionEnd)return{};const d=Math.min(t.selectionStart.row,t.selectionEnd.row),f=Math.max(t.selectionStart.row,t.selectionEnd.row),m=Math.min(t.selectionStart.col,t.selectionEnd.col),p=Math.max(t.selectionStart.col,t.selectionEnd.col),h=r(u);return c<d||c>f||h<m||h>p?{}:{"sel-top":c===d,"sel-bottom":c===f,"sel-left":h===m,"sel-right":h===p}}return(c,u)=>((0,n.openBlock)(),(0,n.createElementBlock)("table",{class:(0,n.normalizeClass)({"fixed-columns":e.isFixed,"w-100p":!e.isFixed})},[(0,n.createElementVNode)("thead",cL,[(0,n.createElementVNode)("tr",null,[e.showRowNumbers?((0,n.openBlock)(),(0,n.createElementBlock)("th",uL)):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.columns,d=>((0,n.openBlock)(),(0,n.createElementBlock)("th",{key:d.key,style:(0,n.normalizeStyle)({width:e.columnWidths.get(d.key)?`${e.columnWidths.get(d.key)}px`:d.width})},[(0,n.createElementVNode)("div",dL,[(0,n.createElementVNode)("span",{onClick:f=>d.sortable&&c.$emit("sortColumn",d.key)},(0,n.toDisplayString)(d.label||d.key),9,fL),e.sortColumn===d.key?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:0,class:(0,n.normalizeClass)(["line-height-0 transition-400",{"rotate-180":e.sortDirection==="desc"}]),name:"keyboard_arrow_down"},null,8,["class"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",{class:"resize-handle",onMousedown:(0,n.withModifiers)(f=>c.$emit("resizeStart",f,d.key),["stop"])},null,40,mL)])],4))),128))])]),(0,n.createElementVNode)("tbody",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.rows,(d,f,m,p)=>{const h=[l(f),e.editingCell?.row===f,d,e.wrapText];if(p&&p.el&&p.key===f&&(0,n.isMemoSame)(p,h))return p;const v=((0,n.openBlock)(),(0,n.createElementBlock)("tr",{key:f},[e.showRowNumbers?((0,n.openBlock)(),(0,n.createElementBlock)("td",{key:0,class:"row-number txt-center hover user-select-none pointer txt12 regular",onClick:b=>c.$emit("selectRow",f)},(0,n.toDisplayString)(f+1),9,pL)):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.columns,(b,g)=>((0,n.openBlock)(),(0,n.createElementBlock)("td",{key:b.key,class:(0,n.normalizeClass)({selected:o(f,g),locked:!a(b.key),"wrap-text":e.wrapText,...s(f,g)}),style:(0,n.normalizeStyle)({width:e.columnWidths.get(b.key)?`${e.columnWidths.get(b.key)}px`:b.width}),tabindex:b.hidden?void 0:0,onMousedown:y=>c.$emit("cellMouseDown",f,r(g)),onMouseover:y=>c.$emit("cellMouseOver",f,r(g)),onFocusin:y=>c.$emit("cellMouseOver",f,r(g)),onDblclick:y=>c.$emit("cellEditStart",f,r(g)),onKeydown:y=>c.$emit("cellKeyDown",y,f,r(g))},[(0,n.createVNode)(sL,{col:b,row:d,"row-index":f,"global-col-index":r(g),editing:i(f,g),editable:a(b.key),"wrap-text":e.wrapText,onUpdateCell:u[0]||(u[0]=(y,_,w)=>c.$emit("updateCell",y,_,w)),onStopEditing:u[1]||(u[1]=y=>c.$emit("stopEditing",y)),onSetInputRef:u[2]||(u[2]=(y,_)=>c.$emit("setInputRef",y,_))},null,8,["col","row","row-index","global-col-index","editing","editable","wrap-text"])],46,hL))),128))]));return v.memo=h,v},u,3),128)),!e.isFixed&&e.rows.length===0?((0,n.openBlock)(),(0,n.createElementBlock)("tr",gL,[(0,n.createElementVNode)("td",{colspan:e.columns.length+(e.showRowNumbers?1:0),class:"empty-state"},(0,n.toDisplayString)(e.emptyMessage??"No results"),9,vL)])):(0,n.createCommentVNode)("",!0)])],2))}}),Mm=we(yL,[["__scopeId","data-v-a6d02c41"]]),bL={class:"flex gap-05 py-05 justify-content-end m_flex-wrap spreadsheet-toolbar"},_L={key:0,class:"label me-auto"},wL={class:"flex gap-075"},$L={class:"p-05"},kL={class:"flex space-between"},EL={class:"flex w-100p relative"},CL={class:"flex-shrink flex-grow"},SL=(0,n.defineComponent)({__name:"Index",props:{modelValue:{},columnConfig:{},label:{},allowAddRow:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,{$t:o}=ft(),{wrapText:a}=Gg({wrapText:!1}),i=(0,n.ref)(e.modelValue?e.modelValue.map(K=>xc({...K})):[]);(0,n.watch)(()=>e.modelValue,K=>{i.value=K?K.map(ce=>xc({...ce})):[]});function l(){r("update:modelValue",i.value.map(K=>KM({...K})))}const{columns:s,fixedColumns:c,scrollableColumns:u,columnOptions:d,visibleColumns:f,columnWidths:m,isCellEditable:p,createEmptyRow:h,handleResizeStart:v}=ZM(i,()=>e.columnConfig),{sortColumn:b,sortDirection:g,sortByColumn:y}=eL(i,s,f,l),{selectionStart:_,selectionEnd:w,handleMouseDown:$,handleMouseOver:A,handleMouseUp:E,selectEntireRow:k}=QM(s),{canUndo:P,canRedo:N,saveState:V,undo:x,redo:T}=tL(i,_,w,l),{copySelection:L,pasteSelection:F}=JM(i,s,_,w,V,p,h,l),O=(0,n.ref)(null),B=(0,n.ref)(null),q=(0,n.ref)(new Map);function te(K,ce){K?.$el instanceof HTMLInputElement?q.value.set(ce,K.$el):K instanceof HTMLInputElement?q.value.set(ce,K):q.value.delete(ce)}function ee(K,ce,ie){const de=s.value[ce]?.key;de&&(ie!==void 0&&!p(de)||(O.value={row:K,col:ce},B.value=i.value[K][de]?.toString()??"",ie!==void 0&&I(K,de,ie),(0,n.nextTick)(()=>{const _e=q.value.get(`cell-${K}-${ce}`);_e&&(_e.focus(),ie!==void 0&&(_e.value=ie))})))}function le(K=!1){if(K&&O.value&&B.value!==null){const{row:ce,col:ie}=O.value,de=s.value[ie]?.key;de&&(i.value[ce][de]=B.value)}O.value=null,B.value=null}function R(K=!1){(0,n.nextTick)(()=>{le(K),(0,n.nextTick)(()=>{document.querySelector(".spreadsheet")?.focus()})})}function I(K,ce,ie){const de=s.value.find(se=>se.key===ce);if(de?.locked)return;V("cell");const _e=vg(ie,de?.format);i.value[K][ce]=_e??de?.defaultValue??(de?.format==="boolean"?!1:""),l()}const U=(0,n.ref)(""),D=(0,n.ref)(null);function W(){const K=D.value?.$el?.querySelector("input");return document.activeElement===K}const j=(0,n.computed)(()=>{if(!U.value)return i.value;const K=U.value.toLowerCase();return i.value.filter(ce=>Object.values(ce).some(ie=>ie!=null&&String(ie).toLowerCase().includes(K)))});function Y(){s.value.length&&(V("row"),i.value.push(h()),l())}function ae(K,ce,ie){!(O.value?.row===ce&&O.value?.col===ie)&&(K.key.length===1&&!K.ctrlKey&&!K.metaKey||K.key==="Enter")&&(K.preventDefault(),ee(ce,ie,K.key.length===1?K.key:void 0))}function be(K){if(!(O.value||W())&&(K.ctrlKey||K.metaKey))switch(K.key.toLowerCase()){case"c":K.preventDefault(),L();break;case"v":K.preventDefault(),F();break;case"z":K.preventDefault(),K.shiftKey?T():x();break;case"y":K.preventDefault(),T();break}}return(K,ce)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"w-100p",tabindex:"-1",onKeydown:be},[(0,n.createElementVNode)("div",bL,[e.label?((0,n.openBlock)(),(0,n.createElementBlock)("label",_L,(0,n.toDisplayString)(e.label),1)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",wL,[(0,n.createVNode)((0,n.unref)(Fe),{ref_key:"searchInputRef",ref:D,modelValue:U.value,"onUpdate:modelValue":ce[0]||(ce[0]=ie=>U.value=ie),icon:"search",placeholder:"Search",class:"m-0 max-w200px"},null,8,["modelValue"]),(0,n.createVNode)((0,n.unref)(Tt),{flat:"",thin:"",icon:"more_vert"},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(Dn),{title:"Paste",icon:"paste",onClick:(0,n.unref)(F)},null,8,["onClick"]),(0,n.createVNode)((0,n.unref)(Dn),{title:"Copy",icon:"copy",onClick:(0,n.unref)(L)},null,8,["onClick"]),(0,n.createVNode)((0,n.unref)(Dn),{title:"Undo",icon:"undo",disabled:!(0,n.unref)(P),onClick:(0,n.unref)(x)},null,8,["disabled","onClick"]),(0,n.createVNode)((0,n.unref)(Dn),{title:"Redo",icon:"redo",disabled:!(0,n.unref)(N),onClick:(0,n.unref)(T)},null,8,["disabled","onClick"]),(0,n.createVNode)((0,n.unref)(kl),{modelValue:(0,n.unref)(a),"onUpdate:modelValue":ce[1]||(ce[1]=ie=>(0,n.isRef)(a)?a.value=ie:null),label:(0,n.unref)(o)("spreadsheet.wrapText")},null,8,["modelValue","label"]),(0,n.createVNode)((0,n.unref)(Tt),{placement:"bottom-end"},{trigger:(0,n.withCtx)(({show:ie})=>[(0,n.createVNode)((0,n.unref)(Dn),{title:"Column Visibility",icon:"view_column",onClick:de=>ie()},null,8,["onClick"])]),default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("div",$L,[(0,n.createElementVNode)("div",kL,[(0,n.createVNode)((0,n.unref)(ne),{flat:"",thin:"",small:"",value:"$t:spreadsheet.selectAll",onClick:ce[2]||(ce[2]=ie=>f.value=(0,n.unref)(d).map(de=>de.key))}),(0,n.createVNode)((0,n.unref)(ne),{flat:"",thin:"",sm:"",value:"$t:spreadsheet.clearAll",onClick:ce[3]||(ce[3]=ie=>f.value=[])})]),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(d),ie=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(St),{key:ie.key,modelValue:(0,n.unref)(f),"onUpdate:modelValue":ce[4]||(ce[4]=de=>(0,n.isRef)(f)?f.value=de:null),value:ie.key,label:ie.label||ie.key},null,8,["modelValue","value","label"]))),128))])]),_:1})]),_:1})])]),(0,n.createElementVNode)("div",{class:"spreadsheet",onMouseup:ce[5]||(ce[5]=(...ie)=>(0,n.unref)(E)&&(0,n.unref)(E)(...ie))},[(0,n.createElementVNode)("div",EL,[(0,n.unref)(c).length?((0,n.openBlock)(),(0,n.createBlock)(Mm,{key:0,columns:(0,n.unref)(c),rows:j.value,"is-fixed":!0,"show-row-numbers":!0,"column-widths":(0,n.unref)(m),"sort-column":(0,n.unref)(b),"sort-direction":(0,n.unref)(g),"selection-start":(0,n.unref)(_),"selection-end":(0,n.unref)(w),"editing-cell":O.value,"base-column-index":0,"wrap-text":(0,n.unref)(a),class:"sticky z-2 start-0 bg-white",onSortColumn:(0,n.unref)(y),onResizeStart:(0,n.unref)(v),onSelectRow:(0,n.unref)(k),onCellMouseDown:(0,n.unref)($),onCellMouseOver:(0,n.unref)(A),onCellEditStart:ee,onCellKeyDown:ae,onUpdateCell:I,onStopEditing:R,onSetInputRef:te},null,8,["columns","rows","column-widths","sort-column","sort-direction","selection-start","selection-end","editing-cell","wrap-text","onSortColumn","onResizeStart","onSelectRow","onCellMouseDown","onCellMouseOver"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",CL,[(0,n.createVNode)(Mm,{columns:(0,n.unref)(u),rows:j.value,"is-fixed":!1,"show-row-numbers":!(0,n.unref)(c).length,"column-widths":(0,n.unref)(m),"empty-message":U.value?`No results for '${U.value}'`:void 0,"sort-column":(0,n.unref)(b),"sort-direction":(0,n.unref)(g),"selection-start":(0,n.unref)(_),"selection-end":(0,n.unref)(w),"editing-cell":O.value,"base-column-index":(0,n.unref)(c).length,"wrap-text":(0,n.unref)(a),onSortColumn:(0,n.unref)(y),onResizeStart:(0,n.unref)(v),onSelectRow:(0,n.unref)(k),onCellMouseDown:(0,n.unref)($),onCellMouseOver:(0,n.unref)(A),onCellEditStart:ee,onCellKeyDown:ae,onUpdateCell:I,onStopEditing:R,onSetInputRef:te},null,8,["columns","rows","show-row-numbers","column-widths","empty-message","sort-column","sort-direction","selection-start","selection-end","editing-cell","base-column-index","wrap-text","onSortColumn","onResizeStart","onSelectRow","onCellMouseDown","onCellMouseOver"])])]),e.allowAddRow?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:0,outline:"",thin:"",round:"",icon:"add",value:"Add Row",class:"mt-05",onClick:Y})):(0,n.createCommentVNode)("",!0)],32)],32))}}),xL=SL;function Lm(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Vu(e={},t={}){const r=["__proto__","constructor","prototype"];Object.keys(t).filter(o=>r.indexOf(o)<0).forEach(o=>{typeof e[o]>"u"?e[o]=t[o]:Lm(t[o])&&Lm(e[o])&&Object.keys(t[o]).length>0&&Vu(e[o],t[o])})}var yg={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ln(){const e=typeof document<"u"?document:{};return Vu(e,yg),e}var TL={document:yg,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function At(){const e=typeof window<"u"?window:{};return Vu(e,TL),e}function NL(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function DL(e){const t=e;Object.keys(t).forEach(r=>{try{t[r]=null}catch{}try{delete t[r]}catch{}})}function bg(e,t=0){return setTimeout(e,t)}function Ji(){return Date.now()}function AL(e){const t=At();let r;return t.getComputedStyle&&(r=t.getComputedStyle(e,null)),!r&&e.currentStyle&&(r=e.currentStyle),r||(r=e.style),r}function BL(e,t="x"){const r=At();let o,a,i;const l=AL(e);return r.WebKitCSSMatrix?(a=l.transform||l.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(s=>s.replace(",",".")).join(", ")),i=new r.WebKitCSSMatrix(a==="none"?"":a)):(i=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=i.toString().split(",")),t==="x"&&(r.WebKitCSSMatrix?a=i.m41:o.length===16?a=parseFloat(o[12]):a=parseFloat(o[4])),t==="y"&&(r.WebKitCSSMatrix?a=i.m42:o.length===16?a=parseFloat(o[13]):a=parseFloat(o[5])),a||0}function ii(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function ML(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Ht(...e){const t=Object(e[0]);for(let r=1;r<e.length;r+=1){const o=e[r];if(o!=null&&!ML(o)){const a=Object.keys(Object(o)).filter(i=>i!=="__proto__"&&i!=="constructor"&&i!=="prototype");for(let i=0,l=a.length;i<l;i+=1){const s=a[i],c=Object.getOwnPropertyDescriptor(o,s);c!==void 0&&c.enumerable&&(ii(t[s])&&ii(o[s])?o[s].__swiper__?t[s]=o[s]:Ht(t[s],o[s]):!ii(t[s])&&ii(o[s])?(t[s]={},o[s].__swiper__?t[s]=o[s]:Ht(t[s],o[s])):t[s]=o[s])}}}return t}function Qr(e,t,r){e.style.setProperty(t,r)}function _g({swiper:e,targetPosition:t,side:r}){const o=At(),a=-e.translate;let i=null,l;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(e.cssModeFrameID);const c=t>a?"next":"prev",u=(f,m)=>c==="next"&&f>=m||c==="prev"&&f<=m,d=()=>{l=new Date().getTime(),i===null&&(i=l);const f=Math.max(Math.min((l-i)/s,1),0);let m=a+(.5-Math.cos(f*Math.PI)/2)*(t-a);if(u(m,t)&&(m=t),e.wrapperEl.scrollTo({[r]:m}),u(m,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:m})}),o.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=o.requestAnimationFrame(d)};d()}function Po(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function An(e,t=""){const r=At(),o=[...e.children];return r.HTMLSlotElement&&e instanceof HTMLSlotElement&&o.push(...e.assignedElements()),t?o.filter(a=>a.matches(t)):o}function LL(e,t){const r=[t];for(;r.length>0;){const o=r.shift();if(e===o)return!0;r.push(...o.children,...o.shadowRoot?o.shadowRoot.children:[],...o.assignedElements?o.assignedElements():[])}}function PL(e,t){const r=At();let o=t.contains(e);return!o&&r.HTMLSlotElement&&t instanceof HTMLSlotElement&&(o=[...t.assignedElements()].includes(e),o||(o=LL(e,t))),o}function Zi(e){try{return}catch{}}function Xn(e,t=[]){const r=document.createElement(e);return r.classList.add(...Array.isArray(t)?t:NL(t)),r}function IL(e,t){const r=[];for(;e.previousElementSibling;){const o=e.previousElementSibling;t?o.matches(t)&&r.push(o):r.push(o),e=o}return r}function VL(e,t){const r=[];for(;e.nextElementSibling;){const o=e.nextElementSibling;t?o.matches(t)&&r.push(o):r.push(o),e=o}return r}function pr(e,t){return At().getComputedStyle(e,null).getPropertyValue(t)}function Qi(e){let t=e,r;if(t){for(r=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(r+=1);return r}}function wg(e,t){const r=[];let o=e.parentElement;for(;o;)t?o.matches(t)&&r.push(o):r.push(o),o=o.parentElement;return r}function OL(e,t){function r(o){o.target===e&&(t.call(e,o),e.removeEventListener("transitionend",r))}t&&e.addEventListener("transitionend",r)}function Nc(e,t,r){const o=At();return r?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(o.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(o.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}function gt(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function Ou(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90===0?t+.001:t}function Ea(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:r=>r}).createHTML(t):e.innerHTML=t}function $g(e,t,r,o){return e.params.createElements&&Object.keys(o).forEach(a=>{if(!r[a]&&r.auto===!0){let i=An(e.el,`.${o[a]}`)[0];i||(i=Xn("div",o[a]),i.className=o[a],e.el.append(i)),r[a]=i,t[a]=i}}),r}var Pm='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function RL({swiper:e,extendParams:t,on:r,emit:o}){t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:Pm};function a(p){let h;return p&&typeof p=="string"&&e.isElement&&(h=e.el.querySelector(p)||e.hostEl.querySelector(p),h)?h:(p&&(typeof p=="string"&&(h=[...document.querySelectorAll(p)]),e.params.uniqueNavElements&&typeof p=="string"&&h&&h.length>1&&e.el.querySelectorAll(p).length===1?h=e.el.querySelector(p):h&&h.length===1&&(h=h[0])),p&&!h?p:h)}function i(p,h){const v=e.params.navigation;p=gt(p),p.forEach(b=>{b&&(b.classList[h?"add":"remove"](...v.disabledClass.split(" ")),b.tagName==="BUTTON"&&(b.disabled=h),e.params.watchOverflow&&e.enabled&&b.classList[e.isLocked?"add":"remove"](v.lockClass))})}function l(){const{nextEl:p,prevEl:h}=e.navigation;if(e.params.loop){i(h,!1),i(p,!1);return}i(h,e.isBeginning&&!e.params.rewind),i(p,e.isEnd&&!e.params.rewind)}function s(p){p.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),o("navigationPrev"))}function c(p){p.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),o("navigationNext"))}function u(){const p=e.params.navigation;if(e.params.navigation=$g(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(p.nextEl||p.prevEl))return;let h=a(p.nextEl),v=a(p.prevEl);Object.assign(e.navigation,{nextEl:h,prevEl:v}),h=gt(h),v=gt(v);const b=(g,y)=>{if(g){if(p.addIcons&&g.matches(".swiper-button-next,.swiper-button-prev")&&!g.querySelector("svg")){const _=document.createElement("div");Ea(_,Pm),g.appendChild(_.querySelector("svg")),_.remove()}g.addEventListener("click",y==="next"?c:s)}!e.enabled&&g&&g.classList.add(...p.lockClass.split(" "))};h.forEach(g=>b(g,"next")),v.forEach(g=>b(g,"prev"))}function d(){let{nextEl:p,prevEl:h}=e.navigation;p=gt(p),h=gt(h);const v=(b,g)=>{b.removeEventListener("click",g==="next"?c:s),b.classList.remove(...e.params.navigation.disabledClass.split(" "))};p.forEach(b=>v(b,"next")),h.forEach(b=>v(b,"prev"))}r("init",()=>{e.params.navigation.enabled===!1?m():(u(),l())}),r("toEdge fromEdge lock unlock",()=>{l()}),r("destroy",()=>{d()}),r("enable disable",()=>{let{nextEl:p,prevEl:h}=e.navigation;if(p=gt(p),h=gt(h),e.enabled){l();return}[...p,...h].filter(v=>!!v).forEach(v=>v.classList.add(e.params.navigation.lockClass))}),r("click",(p,h)=>{let{nextEl:v,prevEl:b}=e.navigation;v=gt(v),b=gt(b);const g=h.target;let y=b.includes(g)||v.includes(g);if(e.isElement&&!y){const _=h.path||h.composedPath&&h.composedPath();_&&(y=_.find(w=>v.includes(w)||b.includes(w)))}if(e.params.navigation.hideOnClick&&!y){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===g||e.pagination.el.contains(g)))return;let _;v.length?_=v[0].classList.contains(e.params.navigation.hiddenClass):b.length&&(_=b[0].classList.contains(e.params.navigation.hiddenClass)),o(_===!0?"navigationShow":"navigationHide"),[...v,...b].filter(w=>!!w).forEach(w=>w.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),l()},m=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:f,disable:m,update:l,init:u,destroy:d})}function Wo(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function FL({swiper:e,extendParams:t,on:r,emit:o}){const a="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:g=>g,formatFractionTotal:g=>g,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),e.pagination={el:null,bullets:[]};let i,l=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(g,y){const{bulletActiveClass:_}=e.params.pagination;g&&(g=g[`${y==="prev"?"previous":"next"}ElementSibling`],g&&(g.classList.add(`${_}-${y}`),g=g[`${y==="prev"?"previous":"next"}ElementSibling`],g&&g.classList.add(`${_}-${y}-${y}`)))}function u(g,y,_){if(g=g%_,y=y%_,y===g+1)return"next";if(y===g-1)return"previous"}function d(g){const y=g.target.closest(Wo(e.params.pagination.bulletClass));if(!y)return;g.preventDefault();const _=Qi(y)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===_)return;const w=u(e.realIndex,_,e.slides.length);w==="next"?e.slideNext():w==="previous"?e.slidePrev():e.slideToLoop(_)}else e.slideTo(_)}function f(){const g=e.rtl,y=e.params.pagination;if(s())return;let _=e.pagination.el;_=gt(_);let w,$;const A=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,E=e.params.loop?Math.ceil(A/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?($=e.previousRealIndex||0,w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(w=e.snapIndex,$=e.previousSnapIndex):($=e.previousIndex||0,w=e.activeIndex||0),y.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const k=e.pagination.bullets;let P,N,V;if(y.dynamicBullets&&(i=Nc(k[0],e.isHorizontal()?"width":"height",!0),_.forEach(x=>{x.style[e.isHorizontal()?"width":"height"]=`${i*(y.dynamicMainBullets+4)}px`}),y.dynamicMainBullets>1&&$!==void 0&&(l+=w-($||0),l>y.dynamicMainBullets-1?l=y.dynamicMainBullets-1:l<0&&(l=0)),P=Math.max(w-l,0),N=P+(Math.min(k.length,y.dynamicMainBullets)-1),V=(N+P)/2),k.forEach(x=>{const T=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(L=>`${y.bulletActiveClass}${L}`)].map(L=>typeof L=="string"&&L.includes(" ")?L.split(" "):L).flat();x.classList.remove(...T)}),_.length>1)k.forEach(x=>{const T=Qi(x);T===w?x.classList.add(...y.bulletActiveClass.split(" ")):e.isElement&&x.setAttribute("part","bullet"),y.dynamicBullets&&(T>=P&&T<=N&&x.classList.add(...`${y.bulletActiveClass}-main`.split(" ")),T===P&&c(x,"prev"),T===N&&c(x,"next"))});else{const x=k[w];if(x&&x.classList.add(...y.bulletActiveClass.split(" ")),e.isElement&&k.forEach((T,L)=>{T.setAttribute("part",L===w?"bullet-active":"bullet")}),y.dynamicBullets){const T=k[P],L=k[N];for(let F=P;F<=N;F+=1)k[F]&&k[F].classList.add(...`${y.bulletActiveClass}-main`.split(" "));c(T,"prev"),c(L,"next")}}if(y.dynamicBullets){const x=Math.min(k.length,y.dynamicMainBullets+4),T=(i*x-i)/2-V*i,L=g?"right":"left";k.forEach(F=>{F.style[e.isHorizontal()?L:"top"]=`${T}px`})}}_.forEach((k,P)=>{if(y.type==="fraction"&&(k.querySelectorAll(Wo(y.currentClass)).forEach(N=>{N.textContent=y.formatFractionCurrent(w+1)}),k.querySelectorAll(Wo(y.totalClass)).forEach(N=>{N.textContent=y.formatFractionTotal(E)})),y.type==="progressbar"){let N;y.progressbarOpposite?N=e.isHorizontal()?"vertical":"horizontal":N=e.isHorizontal()?"horizontal":"vertical";const V=(w+1)/E;let x=1,T=1;N==="horizontal"?x=V:T=V,k.querySelectorAll(Wo(y.progressbarFillClass)).forEach(L=>{L.style.transform=`translate3d(0,0,0) scaleX(${x}) scaleY(${T})`,L.style.transitionDuration=`${e.params.speed}ms`})}y.type==="custom"&&y.renderCustom?(Ea(k,y.renderCustom(e,w+1,E)),P===0&&o("paginationRender",k)):(P===0&&o("paginationRender",k),o("paginationUpdate",k)),e.params.watchOverflow&&e.enabled&&k.classList[e.isLocked?"add":"remove"](y.lockClass)})}function m(){const g=e.params.pagination;if(s())return;const y=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let _=e.pagination.el;_=gt(_);let w="";if(g.type==="bullets"){let $=e.params.loop?Math.ceil(y/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&$>y&&($=y);for(let A=0;A<$;A+=1)g.renderBullet?w+=g.renderBullet.call(e,A,g.bulletClass):w+=`<${g.bulletElement} ${e.isElement?'part="bullet"':""} class="${g.bulletClass}"></${g.bulletElement}>`}g.type==="fraction"&&(g.renderFraction?w=g.renderFraction.call(e,g.currentClass,g.totalClass):w=`<span class="${g.currentClass}"></span> / <span class="${g.totalClass}"></span>`),g.type==="progressbar"&&(g.renderProgressbar?w=g.renderProgressbar.call(e,g.progressbarFillClass):w=`<span class="${g.progressbarFillClass}"></span>`),e.pagination.bullets=[],_.forEach($=>{g.type!=="custom"&&Ea($,w||""),g.type==="bullets"&&e.pagination.bullets.push(...$.querySelectorAll(Wo(g.bulletClass)))}),g.type!=="custom"&&o("paginationRender",_[0])}function p(){e.params.pagination=$g(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const g=e.params.pagination;if(!g.el)return;let y;typeof g.el=="string"&&e.isElement&&(y=e.el.querySelector(g.el)),!y&&typeof g.el=="string"&&(y=[...document.querySelectorAll(g.el)]),y||(y=g.el),!(!y||y.length===0)&&(e.params.uniqueNavElements&&typeof g.el=="string"&&Array.isArray(y)&&y.length>1&&(y=[...e.el.querySelectorAll(g.el)],y.length>1&&(y=y.find(_=>wg(_,".swiper")[0]===e.el))),Array.isArray(y)&&y.length===1&&(y=y[0]),Object.assign(e.pagination,{el:y}),y=gt(y),y.forEach(_=>{g.type==="bullets"&&g.clickable&&_.classList.add(...(g.clickableClass||"").split(" ")),_.classList.add(g.modifierClass+g.type),_.classList.add(e.isHorizontal()?g.horizontalClass:g.verticalClass),g.type==="bullets"&&g.dynamicBullets&&(_.classList.add(`${g.modifierClass}${g.type}-dynamic`),l=0,g.dynamicMainBullets<1&&(g.dynamicMainBullets=1)),g.type==="progressbar"&&g.progressbarOpposite&&_.classList.add(g.progressbarOppositeClass),g.clickable&&_.addEventListener("click",d),e.enabled||_.classList.add(g.lockClass)}))}function h(){const g=e.params.pagination;if(s())return;let y=e.pagination.el;y&&(y=gt(y),y.forEach(_=>{_.classList.remove(g.hiddenClass),_.classList.remove(g.modifierClass+g.type),_.classList.remove(e.isHorizontal()?g.horizontalClass:g.verticalClass),g.clickable&&(_.classList.remove(...(g.clickableClass||"").split(" ")),_.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(_=>_.classList.remove(...g.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const g=e.params.pagination;let{el:y}=e.pagination;y=gt(y),y.forEach(_=>{_.classList.remove(g.horizontalClass,g.verticalClass),_.classList.add(e.isHorizontal()?g.horizontalClass:g.verticalClass)})}),r("init",()=>{e.params.pagination.enabled===!1?b():(p(),m(),f())}),r("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),r("snapIndexChange",()=>{f()}),r("snapGridLengthChange",()=>{m(),f()}),r("destroy",()=>{h()}),r("enable disable",()=>{let{el:g}=e.pagination;g&&(g=gt(g),g.forEach(y=>y.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),r("lock unlock",()=>{f()}),r("click",(g,y)=>{const _=y.target,w=gt(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!_.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&_===e.navigation.nextEl||e.navigation.prevEl&&_===e.navigation.prevEl))return;w[0].classList.contains(e.params.pagination.hiddenClass)===!0?o("paginationShow"):o("paginationHide"),w.forEach($=>$.classList.toggle(e.params.pagination.hiddenClass))}});const v=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:g}=e.pagination;g&&(g=gt(g),g.forEach(y=>y.classList.remove(e.params.pagination.paginationDisabledClass))),p(),m(),f()},b=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:g}=e.pagination;g&&(g=gt(g),g.forEach(y=>y.classList.add(e.params.pagination.paginationDisabledClass))),h()};Object.assign(e.pagination,{enable:v,disable:b,render:m,update:f,init:p,destroy:h})}function zL({swiper:e,extendParams:t,on:r,emit:o,params:a}){e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let i,l,s=a&&a.autoplay?a.autoplay.delay:3e3,c=a&&a.autoplay?a.autoplay.delay:3e3,u,d=new Date().getTime(),f,m,p,h,v,b;function g(B){!e||e.destroyed||!e.wrapperEl||B.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",g),!(b||B.detail&&B.detail.bySwiperTouchMove)&&P())}const y=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(c=u,f=!1);const B=e.autoplay.paused?u:d+c-new Date().getTime();e.autoplay.timeLeft=B,o("autoplayTimeLeft",B,B/s),l=requestAnimationFrame(()=>{y()})},_=()=>{let B;if(e.virtual&&e.params.virtual.enabled?B=e.slides.find(q=>q.classList.contains("swiper-slide-active")):B=e.slides[e.activeIndex],!!B)return parseInt(B.getAttribute("data-swiper-autoplay"),10)},w=()=>{let B=e.params.autoplay.delay;const q=_();return!Number.isNaN(q)&&q>0&&(B=q),B},$=B=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(l),y();let q=B;typeof q>"u"&&(q=w(),s=q,c=q),u=q;const te=e.params.speed,ee=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(te,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,te,!0,!0),o("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(te,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,te,!0,!0),o("autoplay")),e.params.cssMode&&(d=new Date().getTime(),requestAnimationFrame(()=>{$()})))};return q>0?(clearTimeout(i),i=setTimeout(()=>{ee()},q)):requestAnimationFrame(()=>{ee()}),q},A=()=>{d=new Date().getTime(),e.autoplay.running=!0,$(),o("autoplayStart")},E=()=>{e.autoplay.running=!1,clearTimeout(i),cancelAnimationFrame(l),o("autoplayStop")},k=(B,q)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(i),B||(v=!0);const te=()=>{o("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",g):P()};if(e.autoplay.paused=!0,q){te();return}u=(u||e.params.autoplay.delay)-(new Date().getTime()-d),!(e.isEnd&&u<0&&!e.params.loop)&&(u<0&&(u=0),te())},P=()=>{e.isEnd&&u<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(d=new Date().getTime(),v?(v=!1,$(u)):$(),e.autoplay.paused=!1,o("autoplayResume"))},N=()=>{if(e.destroyed||!e.autoplay.running)return;const B=Ln();B.visibilityState==="hidden"&&(v=!0,k(!0)),B.visibilityState==="visible"&&P()},V=B=>{B.pointerType==="mouse"&&(v=!0,b=!0,!(e.animating||e.autoplay.paused)&&k(!0))},x=B=>{B.pointerType==="mouse"&&(b=!1,e.autoplay.paused&&P())},T=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",V),e.el.addEventListener("pointerleave",x))},L=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",V),e.el.removeEventListener("pointerleave",x))},F=()=>{Ln().addEventListener("visibilitychange",N)},O=()=>{Ln().removeEventListener("visibilitychange",N)};r("init",()=>{e.params.autoplay.enabled&&(T(),F(),A())}),r("destroy",()=>{L(),O(),e.autoplay.running&&E()}),r("_freeModeStaticRelease",()=>{(p||v)&&P()}),r("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?E():k(!0,!0)}),r("beforeTransitionStart",(B,q,te)=>{e.destroyed||!e.autoplay.running||(te||!e.params.autoplay.disableOnInteraction?k(!0,!0):E())}),r("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){E();return}m=!0,p=!1,v=!1,h=setTimeout(()=>{v=!0,p=!0,k(!0)},200)}}),r("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!m)){if(clearTimeout(h),clearTimeout(i),e.params.autoplay.disableOnInteraction){p=!1,m=!1;return}p&&e.params.cssMode&&P(),p=!1,m=!1}}),r("slideChange",()=>{e.destroyed||!e.autoplay.running||e.autoplay.paused&&(u=w(),s=w())}),Object.assign(e.autoplay,{start:A,stop:E,pause:k,resume:P})}function Wa(e){const{effect:t,swiper:r,on:o,setTranslate:a,setTransition:i,overwriteParams:l,perspective:s,recreateShadows:c,getEffectParams:u}=e;o("beforeInit",()=>{if(r.params.effect!==t)return;r.classNames.push(`${r.params.containerModifierClass}${t}`),s&&s()&&r.classNames.push(`${r.params.containerModifierClass}3d`);const f=l?l():{};Object.assign(r.params,f),Object.assign(r.originalParams,f)}),o("setTranslate _virtualUpdated",()=>{r.params.effect===t&&a()}),o("setTransition",(f,m)=>{r.params.effect===t&&i(m)}),o("transitionEnd",()=>{if(r.params.effect===t&&c){if(!u||!u().slideShadows)return;r.slides.forEach(f=>{f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(m=>m.remove())}),c()}});let d;o("virtualUpdate",()=>{r.params.effect===t&&(r.slides.length||(d=!0),requestAnimationFrame(()=>{d&&r.slides&&r.slides.length&&(a(),d=!1)}))})}function Dl(e,t){const r=Po(t);return r!==t&&(r.style.backfaceVisibility="hidden",r.style["-webkit-backface-visibility"]="hidden"),r}function Ru({swiper:e,duration:t,transformElements:r,allSlides:o}){const{activeIndex:a}=e,i=l=>l.parentElement?l.parentElement:e.slides.find(s=>s.shadowRoot&&s.shadowRoot===l.parentNode);if(e.params.virtualTranslate&&t!==0){let l=!1,s;o?s=r:s=r.filter(c=>{const u=c.classList.contains("swiper-slide-transform")?i(c):c;return e.getSlideIndex(u)===a}),s.forEach(c=>{OL(c,()=>{if(l||!e||e.destroyed)return;l=!0,e.animating=!1;const u=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(u)})})}}function UL({swiper:e,extendParams:t,on:r}){t({fadeEffect:{crossFade:!1}}),Wa({effect:"fade",swiper:e,on:r,setTranslate:()=>{const{slides:i}=e,l=e.params.fadeEffect;for(let s=0;s<i.length;s+=1){const c=e.slides[s];let u=-c.swiperSlideOffset;e.params.virtualTranslate||(u-=e.translate);let d=0;e.isHorizontal()||(d=u,u=0);const f=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(c.progress),0):1+Math.min(Math.max(c.progress,-1),0),m=Dl(l,c);m.style.opacity=f,m.style.transform=`translate3d(${u}px, ${d}px, 0px)`}},setTransition:i=>{const l=e.slides.map(s=>Po(s));l.forEach(s=>{s.style.transitionDuration=`${i}ms`}),Ru({swiper:e,duration:i,transformElements:l,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function HL({swiper:e,extendParams:t,on:r}){t({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const o=(s,c,u)=>{let d=u?s.querySelector(".swiper-slide-shadow-left"):s.querySelector(".swiper-slide-shadow-top"),f=u?s.querySelector(".swiper-slide-shadow-right"):s.querySelector(".swiper-slide-shadow-bottom");d||(d=Xn("div",`swiper-slide-shadow-cube swiper-slide-shadow-${u?"left":"top"}`.split(" ")),s.append(d)),f||(f=Xn("div",`swiper-slide-shadow-cube swiper-slide-shadow-${u?"right":"bottom"}`.split(" ")),s.append(f)),d&&(d.style.opacity=Math.max(-c,0)),f&&(f.style.opacity=Math.max(c,0))};Wa({effect:"cube",swiper:e,on:r,setTranslate:()=>{const{el:s,wrapperEl:c,slides:u,width:d,height:f,rtlTranslate:m,size:p,browser:h}=e,v=Ou(e),b=e.params.cubeEffect,g=e.isHorizontal(),y=e.virtual&&e.params.virtual.enabled;let _=0,w;b.shadow&&(g?(w=e.wrapperEl.querySelector(".swiper-cube-shadow"),w||(w=Xn("div","swiper-cube-shadow"),e.wrapperEl.append(w)),w.style.height=`${d}px`):(w=s.querySelector(".swiper-cube-shadow"),w||(w=Xn("div","swiper-cube-shadow"),s.append(w))));for(let A=0;A<u.length;A+=1){const E=u[A];let k=A;y&&(k=parseInt(E.getAttribute("data-swiper-slide-index"),10));let P=k*90,N=Math.floor(P/360);m&&(P=-P,N=Math.floor(-P/360));const V=Math.max(Math.min(E.progress,1),-1);let x=0,T=0,L=0;k%4===0?(x=-N*4*p,L=0):(k-1)%4===0?(x=0,L=-N*4*p):(k-2)%4===0?(x=p+N*4*p,L=p):(k-3)%4===0&&(x=-p,L=3*p+p*4*N),m&&(x=-x),g||(T=x,x=0);const F=`rotateX(${v(g?0:-P)}deg) rotateY(${v(g?P:0)}deg) translate3d(${x}px, ${T}px, ${L}px)`;V<=1&&V>-1&&(_=k*90+V*90,m&&(_=-k*90-V*90)),E.style.transform=F,b.slideShadows&&o(E,V,g)}if(c.style.transformOrigin=`50% 50% -${p/2}px`,c.style["-webkit-transform-origin"]=`50% 50% -${p/2}px`,b.shadow)if(g)w.style.transform=`translate3d(0px, ${d/2+b.shadowOffset}px, ${-d/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${b.shadowScale})`;else{const A=Math.abs(_)-Math.floor(Math.abs(_)/90)*90,E=1.5-(Math.sin(A*2*Math.PI/360)/2+Math.cos(A*2*Math.PI/360)/2),k=b.shadowScale,P=b.shadowScale/E,N=b.shadowOffset;w.style.transform=`scale3d(${k}, 1, ${P}) translate3d(0px, ${f/2+N}px, ${-f/2/P}px) rotateX(-89.99deg)`}const $=(h.isSafari||h.isWebView)&&h.needPerspectiveFix?-p/2:0;c.style.transform=`translate3d(0px,0,${$}px) rotateX(${v(e.isHorizontal()?0:_)}deg) rotateY(${v(e.isHorizontal()?-_:0)}deg)`,c.style.setProperty("--swiper-cube-translate-z",`${$}px`)},setTransition:s=>{const{el:c,slides:u}=e;if(u.forEach(d=>{d.style.transitionDuration=`${s}ms`,d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>{f.style.transitionDuration=`${s}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const d=c.querySelector(".swiper-cube-shadow");d&&(d.style.transitionDuration=`${s}ms`)}},recreateShadows:()=>{const s=e.isHorizontal();e.slides.forEach(c=>{o(c,Math.max(Math.min(c.progress,1),-1),s)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function Ca(e,t,r){const o=`swiper-slide-shadow${r?`-${r}`:""}${e?` swiper-slide-shadow-${e}`:""}`,a=Po(t);let i=a.querySelector(`.${o.split(" ").join(".")}`);return i||(i=Xn("div",o.split(" ")),a.append(i)),i}function WL({swiper:e,extendParams:t,on:r}){t({flipEffect:{slideShadows:!0,limitRotation:!0}});const o=(s,c)=>{let u=e.isHorizontal()?s.querySelector(".swiper-slide-shadow-left"):s.querySelector(".swiper-slide-shadow-top"),d=e.isHorizontal()?s.querySelector(".swiper-slide-shadow-right"):s.querySelector(".swiper-slide-shadow-bottom");u||(u=Ca("flip",s,e.isHorizontal()?"left":"top")),d||(d=Ca("flip",s,e.isHorizontal()?"right":"bottom")),u&&(u.style.opacity=Math.max(-c,0)),d&&(d.style.opacity=Math.max(c,0))};Wa({effect:"flip",swiper:e,on:r,setTranslate:()=>{const{slides:s,rtlTranslate:c}=e,u=e.params.flipEffect,d=Ou(e);for(let f=0;f<s.length;f+=1){const m=s[f];let p=m.progress;e.params.flipEffect.limitRotation&&(p=Math.max(Math.min(m.progress,1),-1));const h=m.swiperSlideOffset;let v=-180*p,b=0,g=e.params.cssMode?-h-e.translate:-h,y=0;e.isHorizontal()?c&&(v=-v):(y=g,g=0,b=-v,v=0),m.style.zIndex=-Math.abs(Math.round(p))+s.length,u.slideShadows&&o(m,p);const _=`translate3d(${g}px, ${y}px, 0px) rotateX(${d(b)}deg) rotateY(${d(v)}deg)`,w=Dl(u,m);w.style.transform=_}},setTransition:s=>{const c=e.slides.map(u=>Po(u));c.forEach(u=>{u.style.transitionDuration=`${s}ms`,u.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>{d.style.transitionDuration=`${s}ms`})}),Ru({swiper:e,duration:s,transformElements:c})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(s=>{let c=s.progress;e.params.flipEffect.limitRotation&&(c=Math.max(Math.min(s.progress,1),-1)),o(s,c)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function jL({swiper:e,extendParams:t,on:r}){t({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),Wa({effect:"coverflow",swiper:e,on:r,setTranslate:()=>{const{width:i,height:l,slides:s,slidesSizesGrid:c}=e,u=e.params.coverflowEffect,d=e.isHorizontal(),f=e.translate,m=d?-f+i/2:-f+l/2,p=d?u.rotate:-u.rotate,h=u.depth,v=Ou(e);for(let b=0,g=s.length;b<g;b+=1){const y=s[b],_=c[b],w=(m-y.swiperSlideOffset-_/2)/_,$=typeof u.modifier=="function"?u.modifier(w):w*u.modifier;let A=d?p*$:0,E=d?0:p*$,k=-h*Math.abs($),P=u.stretch;typeof P=="string"&&P.indexOf("%")!==-1&&(P=parseFloat(u.stretch)/100*_);let N=d?0:P*$,V=d?P*$:0,x=1-(1-u.scale)*Math.abs($);Math.abs(V)<.001&&(V=0),Math.abs(N)<.001&&(N=0),Math.abs(k)<.001&&(k=0),Math.abs(A)<.001&&(A=0),Math.abs(E)<.001&&(E=0),Math.abs(x)<.001&&(x=0);const T=`translate3d(${V}px,${N}px,${k}px) rotateX(${v(E)}deg) rotateY(${v(A)}deg) scale(${x})`,L=Dl(u,y);if(L.style.transform=T,y.style.zIndex=-Math.abs(Math.round($))+1,u.slideShadows){let F=d?y.querySelector(".swiper-slide-shadow-left"):y.querySelector(".swiper-slide-shadow-top"),O=d?y.querySelector(".swiper-slide-shadow-right"):y.querySelector(".swiper-slide-shadow-bottom");F||(F=Ca("coverflow",y,d?"left":"top")),O||(O=Ca("coverflow",y,d?"right":"bottom")),F&&(F.style.opacity=$>0?$:0),O&&(O.style.opacity=-$>0?-$:0)}}},setTransition:i=>{e.slides.map(l=>Po(l)).forEach(l=>{l.style.transitionDuration=`${i}ms`,l.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(s=>{s.style.transitionDuration=`${i}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function qL({swiper:e,extendParams:t,on:r}){t({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),Wa({effect:"cards",swiper:e,on:r,setTranslate:()=>{const{slides:i,activeIndex:l,rtlTranslate:s}=e,c=e.params.cardsEffect,{startTranslate:u,isTouched:d}=e.touchEventsData,f=s?-e.translate:e.translate;for(let m=0;m<i.length;m+=1){const p=i[m],h=p.progress,v=Math.min(Math.max(h,-4),4);let b=p.swiperSlideOffset;e.params.centeredSlides&&!e.params.cssMode&&(e.wrapperEl.style.transform=`translateX(${e.minTranslate()}px)`),e.params.centeredSlides&&e.params.cssMode&&(b-=i[0].swiperSlideOffset);let g=e.params.cssMode?-b-e.translate:-b,y=0;const _=-100*Math.abs(v);let w=1,$=-c.perSlideRotate*v,A=c.perSlideOffset-Math.abs(v)*.75;const E=e.virtual&&e.params.virtual.enabled?e.virtual.from+m:m,k=(E===l||E===l-1)&&v>0&&v<1&&(d||e.params.cssMode)&&f<u,P=(E===l||E===l+1)&&v<0&&v>-1&&(d||e.params.cssMode)&&f>u;if(k||P){const T=(1-Math.abs((Math.abs(v)-.5)/.5))**.5;$+=-28*v*T,w+=-.5*T,A+=96*T,y=`${(c.rotate||e.isHorizontal()?-25:0)*T*Math.abs(v)}%`}if(v<0?g=`calc(${g}px ${s?"-":"+"} (${A*Math.abs(v)}%))`:v>0?g=`calc(${g}px ${s?"-":"+"} (-${A*Math.abs(v)}%))`:g=`${g}px`,!e.isHorizontal()){const T=y;y=g,g=T}const N=v<0?`${1+(1-w)*v}`:`${1-(1-w)*v}`,V=`
|
|
294
|
+
`).map(h=>h.split(" "));a("paste");const f=r.value.row,m=r.value.col,p=f+d.length-e.value.length;for(let h=0;h<p;h++)e.value.push(l());d.forEach((h,v)=>{h.forEach((b,g)=>{const y=m+g;if(y>=t.value.length)return;const _=t.value[y];i(_.key)&&(e.value[f+v][_.key]=vg(b,_.format))})}),s()}catch{}}return{copySelection:c,pasteSelection:u}}function QM(e,t){const r=(0,n.ref)([]),o=(0,n.ref)(new Map),a=(0,n.ref)(!1),i=(0,n.ref)(null),l=(0,n.ref)(0),s=(0,n.ref)(0),c=(0,n.computed)(()=>{const g=e.value.length?new Set(e.value.flatMap($=>Object.keys($))):new Set,y=t(),_=new Map((y||[]).map($=>[$.key,$])),w=new Set([...g,...y?.map($=>$.key)||[]]);return Array.from(w).map($=>{const A=_.get($);return{key:$,label:A?.label??$,locked:A?.locked??!1,sortable:A?.sortable??!0,format:A?.format??"text",width:A?.width,fixed:A?.fixed??!1,hidden:A?.hidden??!1,defaultValue:A?.defaultValue}})}),u=(0,n.computed)(()=>c.value.filter(g=>g.fixed&&!g.hidden&&r.value.includes(g.key))),d=(0,n.computed)(()=>c.value.filter(g=>!g.fixed&&!g.hidden&&r.value.includes(g.key))),f=(0,n.computed)(()=>c.value.filter(g=>!g.hidden));(0,n.watch)(c,g=>{g.length>0&&r.value.length===0&&(r.value=g.filter(y=>!y.hidden).map(y=>y.key))});function m(g){return!(c.value.find(y=>y.key===g)?.locked??!1)}function p(){const g={};return c.value.forEach(y=>{g[y.key]=y.defaultValue!==void 0?y.defaultValue:y.format==="boolean"?!1:""}),g}function h(g){if(!a.value||!i.value)return;g.preventDefault();const y=Math.max(80,s.value+(g.pageX-l.value));o.value.set(i.value,y)}function v(){a.value=!1,i.value=null,document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",v)}function b(g,y){a.value=!0,i.value=y,l.value=g.pageX;const _=g.target.closest("th");s.value=o.value.get(y)??_?.getBoundingClientRect().width??0,document.addEventListener("mousemove",h),document.addEventListener("mouseup",v)}return(0,n.onUnmounted)(()=>{document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",v)}),{columns:c,fixedColumns:u,scrollableColumns:d,columnOptions:f,visibleColumns:r,columnWidths:o,isCellEditable:m,createEmptyRow:p,handleResizeStart:b}}function eL(e){const t=(0,n.ref)(!1),r=(0,n.ref)(null),o=(0,n.ref)(null);function a(c,u){r.value={row:c,col:u},o.value={row:c,col:u},t.value=!0}function i(c,u){t.value&&(o.value={row:c,col:u})}function l(){t.value=!1}function s(c){r.value={row:c,col:0},o.value={row:c,col:e.value.length-1}}return window.addEventListener("mouseup",l),(0,n.onUnmounted)(()=>{window.removeEventListener("mouseup",l)}),{isSelecting:t,selectionStart:r,selectionEnd:o,handleMouseDown:a,handleMouseOver:i,handleMouseUp:l,selectEntireRow:s}}function tL(e,t,r,o){const a=(0,n.ref)(null),i=(0,n.ref)("asc");function l(s){if(!t.value.find(d=>d.key===s)?.sortable)return;a.value===s?i.value=i.value==="desc"?"asc":"desc":(a.value=s,i.value="desc");const c=[...e.value].sort((d,f)=>{const m=d[s],p=f[s];if(m===p)return 0;if(m==null)return 1;if(p==null)return-1;const h=i.value==="desc"?1:-1;return m<p?-h:h}),u=[...r.value];e.value=c,o(),(0,n.nextTick)(()=>{r.value=u})}return{sortColumn:a,sortDirection:i,sortByColumn:l}}function nL(e,t,r,o){const a=(0,n.ref)([]),i=(0,n.ref)([]),l=(0,n.computed)(()=>a.value.length>0),s=(0,n.computed)(()=>i.value.length>0);function c(){return{rows:JSON.parse(JSON.stringify(e.value)),selection:t.value&&r.value?{start:{...t.value},end:{...r.value}}:void 0}}function u(p){e.value=JSON.parse(JSON.stringify(p.data.rows)),p.data.selection&&(t.value={...p.data.selection.start},r.value={...p.data.selection.end}),o()}function d(p){a.value.push({type:p,data:c()}),i.value=[]}function f(){const p=a.value.pop();p&&(i.value.push({type:p.type,data:c()}),u(p))}function m(){const p=i.value.pop();p&&(a.value.push({type:p.type,data:c()}),u(p))}return{undoStack:a,redoStack:i,canUndo:l,canRedo:s,saveState:d,undo:f,redo:m}}var rL=["value"],oL={class:"spreadsheet-cell spreadsheetCellPlaceHolder"},aL={key:1,class:"h40px w-100p flex align-items-center justify-content-center overflow-hidden"},iL=["src","alt"],lL={key:3,class:"spreadsheet-cell"},sL=(0,n.defineComponent)({__name:"SpreadsheetCell",props:{col:{},row:{},rowIndex:{},globalColIndex:{},editing:{type:Boolean},editable:{type:Boolean},wrapText:{type:Boolean}},emits:["updateCell","stopEditing","setInputRef"],setup(e){return(t,r)=>e.editing?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createElementVNode)("input",{ref:o=>t.$emit("setInputRef",o,`cell-${e.rowIndex}-${e.globalColIndex}`),value:e.row[e.col.key],type:"text",class:"spreadsheet-input",onInput:r[0]||(r[0]=o=>t.$emit("updateCell",e.rowIndex,e.col.key,o.target.value)),onBlur:r[1]||(r[1]=o=>t.$emit("stopEditing",!1)),onKeydown:[r[2]||(r[2]=(0,n.withKeys)((0,n.withModifiers)(o=>t.$emit("stopEditing",!1),["prevent"]),["enter"])),r[3]||(r[3]=(0,n.withKeys)((0,n.withModifiers)(o=>t.$emit("stopEditing",!0),["prevent"]),["esc"]))],onMousedown:r[4]||(r[4]=(0,n.withModifiers)(()=>{},["stop"]))},null,40,rL),(0,n.createElementVNode)("span",oL,(0,n.toDisplayString)((0,n.unref)(Tc)(e.row[e.col.key],e.col.format)),1)],64)):e.col.format==="image"?((0,n.openBlock)(),(0,n.createElementBlock)("div",aL,[(0,n.createElementVNode)("img",{class:"w-100p h-100p contain radius-05",src:e.row[e.col.key],alt:e.col.label||e.col.key},null,8,iL)])):e.col.format==="boolean"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(St),{key:2,modelValue:!!e.row[e.col.key],disabled:!e.editable,"onUpdate:modelValue":r[5]||(r[5]=o=>t.$emit("updateCell",e.rowIndex,e.col.key,!!o)),onMousedown:r[6]||(r[6]=(0,n.withModifiers)(()=>{},["stop"]))},null,8,["modelValue","disabled"])):((0,n.openBlock)(),(0,n.createElementBlock)("span",lL,(0,n.toDisplayString)((0,n.unref)(Tc)(e.row[e.col.key],e.col.format)),1))}}),cL=sL,uL={class:"stickyTop"},dL={key:0,class:"row-number-header"},fL={class:"th-content"},mL=["onClick"],pL=["onMousedown"],hL=["onClick"],gL=["tabindex","onMousedown","onMouseover","onFocusin","onDblclick","onKeydown"],vL={key:0},yL=["colspan"],bL=(0,n.defineComponent)({__name:"SpreadsheetTable",props:{columns:{},rows:{},isFixed:{type:Boolean},showRowNumbers:{type:Boolean},columnWidths:{},sortColumn:{},sortDirection:{},selectionStart:{},selectionEnd:{},editingCell:{},baseColumnIndex:{},wrapText:{type:Boolean},emptyMessage:{}},emits:["sortColumn","resizeStart","selectRow","cellMouseDown","cellMouseOver","cellEditStart","cellKeyDown","updateCell","stopEditing","setInputRef"],setup(e){const t=e,r=c=>t.baseColumnIndex+c;function o(c,u){if(!t.selectionStart||!t.selectionEnd)return!1;const d=r(u),f=Math.min(t.selectionStart.row,t.selectionEnd.row),m=Math.max(t.selectionStart.row,t.selectionEnd.row),p=Math.min(t.selectionStart.col,t.selectionEnd.col),h=Math.max(t.selectionStart.col,t.selectionEnd.col);return c>=f&&c<=m&&d>=p&&d<=h}function a(c){return!(t.columns.find(u=>u.key===c)?.locked??!1)}function i(c,u){if(!t.editingCell)return!1;const d=r(u);return t.editingCell.row===c&&t.editingCell.col===d}function l(c){if(!t.selectionStart||!t.selectionEnd)return"none";const u=Math.min(t.selectionStart.row,t.selectionEnd.row),d=Math.max(t.selectionStart.row,t.selectionEnd.row);return c<u||c>d?"none":`${Math.min(t.selectionStart.col,t.selectionEnd.col)}-${Math.max(t.selectionStart.col,t.selectionEnd.col)}`}function s(c,u){if(!t.selectionStart||!t.selectionEnd)return{};const d=Math.min(t.selectionStart.row,t.selectionEnd.row),f=Math.max(t.selectionStart.row,t.selectionEnd.row),m=Math.min(t.selectionStart.col,t.selectionEnd.col),p=Math.max(t.selectionStart.col,t.selectionEnd.col),h=r(u);return c<d||c>f||h<m||h>p?{}:{"sel-top":c===d,"sel-bottom":c===f,"sel-left":h===m,"sel-right":h===p}}return(c,u)=>((0,n.openBlock)(),(0,n.createElementBlock)("table",{class:(0,n.normalizeClass)({"fixed-columns":e.isFixed,"w-100p":!e.isFixed})},[(0,n.createElementVNode)("thead",uL,[(0,n.createElementVNode)("tr",null,[e.showRowNumbers?((0,n.openBlock)(),(0,n.createElementBlock)("th",dL)):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.columns,d=>((0,n.openBlock)(),(0,n.createElementBlock)("th",{key:d.key,style:(0,n.normalizeStyle)({width:e.columnWidths.get(d.key)?`${e.columnWidths.get(d.key)}px`:d.width})},[(0,n.createElementVNode)("div",fL,[(0,n.createElementVNode)("span",{onClick:f=>d.sortable&&c.$emit("sortColumn",d.key)},(0,n.toDisplayString)(d.label||d.key),9,mL),e.sortColumn===d.key?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:0,class:(0,n.normalizeClass)(["line-height-0 transition-400",{"rotate-180":e.sortDirection==="desc"}]),name:"keyboard_arrow_down"},null,8,["class"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",{class:"resize-handle",onMousedown:(0,n.withModifiers)(f=>c.$emit("resizeStart",f,d.key),["stop"])},null,40,pL)])],4))),128))])]),(0,n.createElementVNode)("tbody",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.rows,(d,f,m,p)=>{const h=[l(f),e.editingCell?.row===f,d,e.wrapText];if(p&&p.el&&p.key===f&&(0,n.isMemoSame)(p,h))return p;const v=((0,n.openBlock)(),(0,n.createElementBlock)("tr",{key:f},[e.showRowNumbers?((0,n.openBlock)(),(0,n.createElementBlock)("td",{key:0,class:"row-number txt-center hover user-select-none pointer txt12 regular",onClick:b=>c.$emit("selectRow",f)},(0,n.toDisplayString)(f+1),9,hL)):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.columns,(b,g)=>((0,n.openBlock)(),(0,n.createElementBlock)("td",{key:b.key,class:(0,n.normalizeClass)({selected:o(f,g),locked:!a(b.key),"wrap-text":e.wrapText,...s(f,g)}),style:(0,n.normalizeStyle)({width:e.columnWidths.get(b.key)?`${e.columnWidths.get(b.key)}px`:b.width}),tabindex:b.hidden?void 0:0,onMousedown:y=>c.$emit("cellMouseDown",f,r(g)),onMouseover:y=>c.$emit("cellMouseOver",f,r(g)),onFocusin:y=>c.$emit("cellMouseOver",f,r(g)),onDblclick:y=>c.$emit("cellEditStart",f,r(g)),onKeydown:y=>c.$emit("cellKeyDown",y,f,r(g))},[(0,n.createVNode)(cL,{col:b,row:d,"row-index":f,"global-col-index":r(g),editing:i(f,g),editable:a(b.key),"wrap-text":e.wrapText,onUpdateCell:u[0]||(u[0]=(y,_,w)=>c.$emit("updateCell",y,_,w)),onStopEditing:u[1]||(u[1]=y=>c.$emit("stopEditing",y)),onSetInputRef:u[2]||(u[2]=(y,_)=>c.$emit("setInputRef",y,_))},null,8,["col","row","row-index","global-col-index","editing","editable","wrap-text"])],46,gL))),128))]));return v.memo=h,v},u,3),128)),!e.isFixed&&e.rows.length===0?((0,n.openBlock)(),(0,n.createElementBlock)("tr",vL,[(0,n.createElementVNode)("td",{colspan:e.columns.length+(e.showRowNumbers?1:0),class:"empty-state"},(0,n.toDisplayString)(e.emptyMessage??"No results"),9,yL)])):(0,n.createCommentVNode)("",!0)])],2))}}),Mm=we(bL,[["__scopeId","data-v-a6d02c41"]]),_L={class:"flex gap-05 py-05 justify-content-end m_flex-wrap spreadsheet-toolbar"},wL={key:0,class:"label me-auto"},$L={class:"flex gap-075"},kL={class:"p-05"},EL={class:"flex space-between"},CL={class:"flex w-100p relative"},SL={class:"flex-shrink flex-grow"},xL=(0,n.defineComponent)({__name:"Index",props:{modelValue:{},columnConfig:{},label:{},allowAddRow:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,{$t:o}=ft(),{wrapText:a}=Gg({wrapText:!1}),i=(0,n.ref)(e.modelValue?e.modelValue.map(K=>xc({...K})):[]);(0,n.watch)(()=>e.modelValue,K=>{i.value=K?K.map(ce=>xc({...ce})):[]});function l(){r("update:modelValue",i.value.map(K=>JM({...K})))}const{columns:s,fixedColumns:c,scrollableColumns:u,columnOptions:d,visibleColumns:f,columnWidths:m,isCellEditable:p,createEmptyRow:h,handleResizeStart:v}=QM(i,()=>e.columnConfig),{sortColumn:b,sortDirection:g,sortByColumn:y}=tL(i,s,f,l),{selectionStart:_,selectionEnd:w,handleMouseDown:$,handleMouseOver:A,handleMouseUp:E,selectEntireRow:k}=eL(s),{canUndo:P,canRedo:N,saveState:V,undo:x,redo:T}=nL(i,_,w,l),{copySelection:L,pasteSelection:F}=ZM(i,s,_,w,V,p,h,l),O=(0,n.ref)(null),B=(0,n.ref)(null),q=(0,n.ref)(new Map);function te(K,ce){K?.$el instanceof HTMLInputElement?q.value.set(ce,K.$el):K instanceof HTMLInputElement?q.value.set(ce,K):q.value.delete(ce)}function ee(K,ce,ie){const de=s.value[ce]?.key;de&&(ie!==void 0&&!p(de)||(O.value={row:K,col:ce},B.value=i.value[K][de]?.toString()??"",ie!==void 0&&I(K,de,ie),(0,n.nextTick)(()=>{const _e=q.value.get(`cell-${K}-${ce}`);_e&&(_e.focus(),ie!==void 0&&(_e.value=ie))})))}function le(K=!1){if(K&&O.value&&B.value!==null){const{row:ce,col:ie}=O.value,de=s.value[ie]?.key;de&&(i.value[ce][de]=B.value)}O.value=null,B.value=null}function R(K=!1){(0,n.nextTick)(()=>{le(K),(0,n.nextTick)(()=>{document.querySelector(".spreadsheet")?.focus()})})}function I(K,ce,ie){const de=s.value.find(se=>se.key===ce);if(de?.locked)return;V("cell");const _e=vg(ie,de?.format);i.value[K][ce]=_e??de?.defaultValue??(de?.format==="boolean"?!1:""),l()}const U=(0,n.ref)(""),D=(0,n.ref)(null);function W(){const K=D.value?.$el?.querySelector("input");return document.activeElement===K}const j=(0,n.computed)(()=>{if(!U.value)return i.value;const K=U.value.toLowerCase();return i.value.filter(ce=>Object.values(ce).some(ie=>ie!=null&&String(ie).toLowerCase().includes(K)))});function Y(){s.value.length&&(V("row"),i.value.push(h()),l())}function ae(K,ce,ie){!(O.value?.row===ce&&O.value?.col===ie)&&(K.key.length===1&&!K.ctrlKey&&!K.metaKey||K.key==="Enter")&&(K.preventDefault(),ee(ce,ie,K.key.length===1?K.key:void 0))}function be(K){if(!(O.value||W())&&(K.ctrlKey||K.metaKey))switch(K.key.toLowerCase()){case"c":K.preventDefault(),L();break;case"v":K.preventDefault(),F();break;case"z":K.preventDefault(),K.shiftKey?T():x();break;case"y":K.preventDefault(),T();break}}return(K,ce)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"w-100p",tabindex:"-1",onKeydown:be},[(0,n.createElementVNode)("div",_L,[e.label?((0,n.openBlock)(),(0,n.createElementBlock)("label",wL,(0,n.toDisplayString)(e.label),1)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",$L,[(0,n.createVNode)((0,n.unref)(Fe),{ref_key:"searchInputRef",ref:D,modelValue:U.value,"onUpdate:modelValue":ce[0]||(ce[0]=ie=>U.value=ie),icon:"search",placeholder:"Search",class:"m-0 max-w200px"},null,8,["modelValue"]),(0,n.createVNode)((0,n.unref)(Tt),{flat:"",thin:"",icon:"more_vert"},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(Dn),{title:"Paste",icon:"paste",onClick:(0,n.unref)(F)},null,8,["onClick"]),(0,n.createVNode)((0,n.unref)(Dn),{title:"Copy",icon:"copy",onClick:(0,n.unref)(L)},null,8,["onClick"]),(0,n.createVNode)((0,n.unref)(Dn),{title:"Undo",icon:"undo",disabled:!(0,n.unref)(P),onClick:(0,n.unref)(x)},null,8,["disabled","onClick"]),(0,n.createVNode)((0,n.unref)(Dn),{title:"Redo",icon:"redo",disabled:!(0,n.unref)(N),onClick:(0,n.unref)(T)},null,8,["disabled","onClick"]),(0,n.createVNode)((0,n.unref)(kl),{modelValue:(0,n.unref)(a),"onUpdate:modelValue":ce[1]||(ce[1]=ie=>(0,n.isRef)(a)?a.value=ie:null),label:(0,n.unref)(o)("spreadsheet.wrapText")},null,8,["modelValue","label"]),(0,n.createVNode)((0,n.unref)(Tt),{placement:"bottom-end"},{trigger:(0,n.withCtx)(({show:ie})=>[(0,n.createVNode)((0,n.unref)(Dn),{title:"Column Visibility",icon:"view_column",onClick:de=>ie()},null,8,["onClick"])]),default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("div",kL,[(0,n.createElementVNode)("div",EL,[(0,n.createVNode)((0,n.unref)(ne),{flat:"",thin:"",small:"",value:"$t:spreadsheet.selectAll",onClick:ce[2]||(ce[2]=ie=>f.value=(0,n.unref)(d).map(de=>de.key))}),(0,n.createVNode)((0,n.unref)(ne),{flat:"",thin:"",sm:"",value:"$t:spreadsheet.clearAll",onClick:ce[3]||(ce[3]=ie=>f.value=[])})]),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(d),ie=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(St),{key:ie.key,modelValue:(0,n.unref)(f),"onUpdate:modelValue":ce[4]||(ce[4]=de=>(0,n.isRef)(f)?f.value=de:null),value:ie.key,label:ie.label||ie.key},null,8,["modelValue","value","label"]))),128))])]),_:1})]),_:1})])]),(0,n.createElementVNode)("div",{class:"spreadsheet",onMouseup:ce[5]||(ce[5]=(...ie)=>(0,n.unref)(E)&&(0,n.unref)(E)(...ie))},[(0,n.createElementVNode)("div",CL,[(0,n.unref)(c).length?((0,n.openBlock)(),(0,n.createBlock)(Mm,{key:0,columns:(0,n.unref)(c),rows:j.value,"is-fixed":!0,"show-row-numbers":!0,"column-widths":(0,n.unref)(m),"sort-column":(0,n.unref)(b),"sort-direction":(0,n.unref)(g),"selection-start":(0,n.unref)(_),"selection-end":(0,n.unref)(w),"editing-cell":O.value,"base-column-index":0,"wrap-text":(0,n.unref)(a),class:"sticky z-2 start-0 bg-white",onSortColumn:(0,n.unref)(y),onResizeStart:(0,n.unref)(v),onSelectRow:(0,n.unref)(k),onCellMouseDown:(0,n.unref)($),onCellMouseOver:(0,n.unref)(A),onCellEditStart:ee,onCellKeyDown:ae,onUpdateCell:I,onStopEditing:R,onSetInputRef:te},null,8,["columns","rows","column-widths","sort-column","sort-direction","selection-start","selection-end","editing-cell","wrap-text","onSortColumn","onResizeStart","onSelectRow","onCellMouseDown","onCellMouseOver"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",SL,[(0,n.createVNode)(Mm,{columns:(0,n.unref)(u),rows:j.value,"is-fixed":!1,"show-row-numbers":!(0,n.unref)(c).length,"column-widths":(0,n.unref)(m),"empty-message":U.value?`No results for '${U.value}'`:void 0,"sort-column":(0,n.unref)(b),"sort-direction":(0,n.unref)(g),"selection-start":(0,n.unref)(_),"selection-end":(0,n.unref)(w),"editing-cell":O.value,"base-column-index":(0,n.unref)(c).length,"wrap-text":(0,n.unref)(a),onSortColumn:(0,n.unref)(y),onResizeStart:(0,n.unref)(v),onSelectRow:(0,n.unref)(k),onCellMouseDown:(0,n.unref)($),onCellMouseOver:(0,n.unref)(A),onCellEditStart:ee,onCellKeyDown:ae,onUpdateCell:I,onStopEditing:R,onSetInputRef:te},null,8,["columns","rows","show-row-numbers","column-widths","empty-message","sort-column","sort-direction","selection-start","selection-end","editing-cell","base-column-index","wrap-text","onSortColumn","onResizeStart","onSelectRow","onCellMouseDown","onCellMouseOver"])])]),e.allowAddRow?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:0,outline:"",thin:"",round:"",icon:"add",value:"Add Row",class:"mt-05",onClick:Y})):(0,n.createCommentVNode)("",!0)],32)],32))}}),TL=xL;function Lm(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Vu(e={},t={}){const r=["__proto__","constructor","prototype"];Object.keys(t).filter(o=>r.indexOf(o)<0).forEach(o=>{typeof e[o]>"u"?e[o]=t[o]:Lm(t[o])&&Lm(e[o])&&Object.keys(t[o]).length>0&&Vu(e[o],t[o])})}var yg={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ln(){const e=typeof document<"u"?document:{};return Vu(e,yg),e}var NL={document:yg,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function At(){const e=typeof window<"u"?window:{};return Vu(e,NL),e}function DL(e=""){return e.trim().split(" ").filter(t=>!!t.trim())}function AL(e){const t=e;Object.keys(t).forEach(r=>{try{t[r]=null}catch{}try{delete t[r]}catch{}})}function bg(e,t=0){return setTimeout(e,t)}function Ji(){return Date.now()}function BL(e){const t=At();let r;return t.getComputedStyle&&(r=t.getComputedStyle(e,null)),!r&&e.currentStyle&&(r=e.currentStyle),r||(r=e.style),r}function ML(e,t="x"){const r=At();let o,a,i;const l=BL(e);return r.WebKitCSSMatrix?(a=l.transform||l.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(s=>s.replace(",",".")).join(", ")),i=new r.WebKitCSSMatrix(a==="none"?"":a)):(i=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=i.toString().split(",")),t==="x"&&(r.WebKitCSSMatrix?a=i.m41:o.length===16?a=parseFloat(o[12]):a=parseFloat(o[4])),t==="y"&&(r.WebKitCSSMatrix?a=i.m42:o.length===16?a=parseFloat(o[13]):a=parseFloat(o[5])),a||0}function ii(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function LL(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Ht(...e){const t=Object(e[0]);for(let r=1;r<e.length;r+=1){const o=e[r];if(o!=null&&!LL(o)){const a=Object.keys(Object(o)).filter(i=>i!=="__proto__"&&i!=="constructor"&&i!=="prototype");for(let i=0,l=a.length;i<l;i+=1){const s=a[i],c=Object.getOwnPropertyDescriptor(o,s);c!==void 0&&c.enumerable&&(ii(t[s])&&ii(o[s])?o[s].__swiper__?t[s]=o[s]:Ht(t[s],o[s]):!ii(t[s])&&ii(o[s])?(t[s]={},o[s].__swiper__?t[s]=o[s]:Ht(t[s],o[s])):t[s]=o[s])}}}return t}function Qr(e,t,r){e.style.setProperty(t,r)}function _g({swiper:e,targetPosition:t,side:r}){const o=At(),a=-e.translate;let i=null,l;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",o.cancelAnimationFrame(e.cssModeFrameID);const c=t>a?"next":"prev",u=(f,m)=>c==="next"&&f>=m||c==="prev"&&f<=m,d=()=>{l=new Date().getTime(),i===null&&(i=l);const f=Math.max(Math.min((l-i)/s,1),0);let m=a+(.5-Math.cos(f*Math.PI)/2)*(t-a);if(u(m,t)&&(m=t),e.wrapperEl.scrollTo({[r]:m}),u(m,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:m})}),o.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=o.requestAnimationFrame(d)};d()}function Po(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function An(e,t=""){const r=At(),o=[...e.children];return r.HTMLSlotElement&&e instanceof HTMLSlotElement&&o.push(...e.assignedElements()),t?o.filter(a=>a.matches(t)):o}function PL(e,t){const r=[t];for(;r.length>0;){const o=r.shift();if(e===o)return!0;r.push(...o.children,...o.shadowRoot?o.shadowRoot.children:[],...o.assignedElements?o.assignedElements():[])}}function IL(e,t){const r=At();let o=t.contains(e);return!o&&r.HTMLSlotElement&&t instanceof HTMLSlotElement&&(o=[...t.assignedElements()].includes(e),o||(o=PL(e,t))),o}function Zi(e){try{return}catch{}}function Xn(e,t=[]){const r=document.createElement(e);return r.classList.add(...Array.isArray(t)?t:DL(t)),r}function VL(e,t){const r=[];for(;e.previousElementSibling;){const o=e.previousElementSibling;t?o.matches(t)&&r.push(o):r.push(o),e=o}return r}function OL(e,t){const r=[];for(;e.nextElementSibling;){const o=e.nextElementSibling;t?o.matches(t)&&r.push(o):r.push(o),e=o}return r}function pr(e,t){return At().getComputedStyle(e,null).getPropertyValue(t)}function Qi(e){let t=e,r;if(t){for(r=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(r+=1);return r}}function wg(e,t){const r=[];let o=e.parentElement;for(;o;)t?o.matches(t)&&r.push(o):r.push(o),o=o.parentElement;return r}function RL(e,t){function r(o){o.target===e&&(t.call(e,o),e.removeEventListener("transitionend",r))}t&&e.addEventListener("transitionend",r)}function Nc(e,t,r){const o=At();return r?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(o.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(o.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}function gt(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function Ou(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90===0?t+.001:t}function Ea(e,t=""){typeof trustedTypes<"u"?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:r=>r}).createHTML(t):e.innerHTML=t}function $g(e,t,r,o){return e.params.createElements&&Object.keys(o).forEach(a=>{if(!r[a]&&r.auto===!0){let i=An(e.el,`.${o[a]}`)[0];i||(i=Xn("div",o[a]),i.className=o[a],e.el.append(i)),r[a]=i,t[a]=i}}),r}var Pm='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function FL({swiper:e,extendParams:t,on:r,emit:o}){t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:Pm};function a(p){let h;return p&&typeof p=="string"&&e.isElement&&(h=e.el.querySelector(p)||e.hostEl.querySelector(p),h)?h:(p&&(typeof p=="string"&&(h=[...document.querySelectorAll(p)]),e.params.uniqueNavElements&&typeof p=="string"&&h&&h.length>1&&e.el.querySelectorAll(p).length===1?h=e.el.querySelector(p):h&&h.length===1&&(h=h[0])),p&&!h?p:h)}function i(p,h){const v=e.params.navigation;p=gt(p),p.forEach(b=>{b&&(b.classList[h?"add":"remove"](...v.disabledClass.split(" ")),b.tagName==="BUTTON"&&(b.disabled=h),e.params.watchOverflow&&e.enabled&&b.classList[e.isLocked?"add":"remove"](v.lockClass))})}function l(){const{nextEl:p,prevEl:h}=e.navigation;if(e.params.loop){i(h,!1),i(p,!1);return}i(h,e.isBeginning&&!e.params.rewind),i(p,e.isEnd&&!e.params.rewind)}function s(p){p.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),o("navigationPrev"))}function c(p){p.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),o("navigationNext"))}function u(){const p=e.params.navigation;if(e.params.navigation=$g(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(p.nextEl||p.prevEl))return;let h=a(p.nextEl),v=a(p.prevEl);Object.assign(e.navigation,{nextEl:h,prevEl:v}),h=gt(h),v=gt(v);const b=(g,y)=>{if(g){if(p.addIcons&&g.matches(".swiper-button-next,.swiper-button-prev")&&!g.querySelector("svg")){const _=document.createElement("div");Ea(_,Pm),g.appendChild(_.querySelector("svg")),_.remove()}g.addEventListener("click",y==="next"?c:s)}!e.enabled&&g&&g.classList.add(...p.lockClass.split(" "))};h.forEach(g=>b(g,"next")),v.forEach(g=>b(g,"prev"))}function d(){let{nextEl:p,prevEl:h}=e.navigation;p=gt(p),h=gt(h);const v=(b,g)=>{b.removeEventListener("click",g==="next"?c:s),b.classList.remove(...e.params.navigation.disabledClass.split(" "))};p.forEach(b=>v(b,"next")),h.forEach(b=>v(b,"prev"))}r("init",()=>{e.params.navigation.enabled===!1?m():(u(),l())}),r("toEdge fromEdge lock unlock",()=>{l()}),r("destroy",()=>{d()}),r("enable disable",()=>{let{nextEl:p,prevEl:h}=e.navigation;if(p=gt(p),h=gt(h),e.enabled){l();return}[...p,...h].filter(v=>!!v).forEach(v=>v.classList.add(e.params.navigation.lockClass))}),r("click",(p,h)=>{let{nextEl:v,prevEl:b}=e.navigation;v=gt(v),b=gt(b);const g=h.target;let y=b.includes(g)||v.includes(g);if(e.isElement&&!y){const _=h.path||h.composedPath&&h.composedPath();_&&(y=_.find(w=>v.includes(w)||b.includes(w)))}if(e.params.navigation.hideOnClick&&!y){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===g||e.pagination.el.contains(g)))return;let _;v.length?_=v[0].classList.contains(e.params.navigation.hiddenClass):b.length&&(_=b[0].classList.contains(e.params.navigation.hiddenClass)),o(_===!0?"navigationShow":"navigationHide"),[...v,...b].filter(w=>!!w).forEach(w=>w.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),l()},m=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:f,disable:m,update:l,init:u,destroy:d})}function Wo(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function zL({swiper:e,extendParams:t,on:r,emit:o}){const a="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:g=>g,formatFractionTotal:g=>g,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),e.pagination={el:null,bullets:[]};let i,l=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(g,y){const{bulletActiveClass:_}=e.params.pagination;g&&(g=g[`${y==="prev"?"previous":"next"}ElementSibling`],g&&(g.classList.add(`${_}-${y}`),g=g[`${y==="prev"?"previous":"next"}ElementSibling`],g&&g.classList.add(`${_}-${y}-${y}`)))}function u(g,y,_){if(g=g%_,y=y%_,y===g+1)return"next";if(y===g-1)return"previous"}function d(g){const y=g.target.closest(Wo(e.params.pagination.bulletClass));if(!y)return;g.preventDefault();const _=Qi(y)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===_)return;const w=u(e.realIndex,_,e.slides.length);w==="next"?e.slideNext():w==="previous"?e.slidePrev():e.slideToLoop(_)}else e.slideTo(_)}function f(){const g=e.rtl,y=e.params.pagination;if(s())return;let _=e.pagination.el;_=gt(_);let w,$;const A=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,E=e.params.loop?Math.ceil(A/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?($=e.previousRealIndex||0,w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(w=e.snapIndex,$=e.previousSnapIndex):($=e.previousIndex||0,w=e.activeIndex||0),y.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const k=e.pagination.bullets;let P,N,V;if(y.dynamicBullets&&(i=Nc(k[0],e.isHorizontal()?"width":"height",!0),_.forEach(x=>{x.style[e.isHorizontal()?"width":"height"]=`${i*(y.dynamicMainBullets+4)}px`}),y.dynamicMainBullets>1&&$!==void 0&&(l+=w-($||0),l>y.dynamicMainBullets-1?l=y.dynamicMainBullets-1:l<0&&(l=0)),P=Math.max(w-l,0),N=P+(Math.min(k.length,y.dynamicMainBullets)-1),V=(N+P)/2),k.forEach(x=>{const T=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(L=>`${y.bulletActiveClass}${L}`)].map(L=>typeof L=="string"&&L.includes(" ")?L.split(" "):L).flat();x.classList.remove(...T)}),_.length>1)k.forEach(x=>{const T=Qi(x);T===w?x.classList.add(...y.bulletActiveClass.split(" ")):e.isElement&&x.setAttribute("part","bullet"),y.dynamicBullets&&(T>=P&&T<=N&&x.classList.add(...`${y.bulletActiveClass}-main`.split(" ")),T===P&&c(x,"prev"),T===N&&c(x,"next"))});else{const x=k[w];if(x&&x.classList.add(...y.bulletActiveClass.split(" ")),e.isElement&&k.forEach((T,L)=>{T.setAttribute("part",L===w?"bullet-active":"bullet")}),y.dynamicBullets){const T=k[P],L=k[N];for(let F=P;F<=N;F+=1)k[F]&&k[F].classList.add(...`${y.bulletActiveClass}-main`.split(" "));c(T,"prev"),c(L,"next")}}if(y.dynamicBullets){const x=Math.min(k.length,y.dynamicMainBullets+4),T=(i*x-i)/2-V*i,L=g?"right":"left";k.forEach(F=>{F.style[e.isHorizontal()?L:"top"]=`${T}px`})}}_.forEach((k,P)=>{if(y.type==="fraction"&&(k.querySelectorAll(Wo(y.currentClass)).forEach(N=>{N.textContent=y.formatFractionCurrent(w+1)}),k.querySelectorAll(Wo(y.totalClass)).forEach(N=>{N.textContent=y.formatFractionTotal(E)})),y.type==="progressbar"){let N;y.progressbarOpposite?N=e.isHorizontal()?"vertical":"horizontal":N=e.isHorizontal()?"horizontal":"vertical";const V=(w+1)/E;let x=1,T=1;N==="horizontal"?x=V:T=V,k.querySelectorAll(Wo(y.progressbarFillClass)).forEach(L=>{L.style.transform=`translate3d(0,0,0) scaleX(${x}) scaleY(${T})`,L.style.transitionDuration=`${e.params.speed}ms`})}y.type==="custom"&&y.renderCustom?(Ea(k,y.renderCustom(e,w+1,E)),P===0&&o("paginationRender",k)):(P===0&&o("paginationRender",k),o("paginationUpdate",k)),e.params.watchOverflow&&e.enabled&&k.classList[e.isLocked?"add":"remove"](y.lockClass)})}function m(){const g=e.params.pagination;if(s())return;const y=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let _=e.pagination.el;_=gt(_);let w="";if(g.type==="bullets"){let $=e.params.loop?Math.ceil(y/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&$>y&&($=y);for(let A=0;A<$;A+=1)g.renderBullet?w+=g.renderBullet.call(e,A,g.bulletClass):w+=`<${g.bulletElement} ${e.isElement?'part="bullet"':""} class="${g.bulletClass}"></${g.bulletElement}>`}g.type==="fraction"&&(g.renderFraction?w=g.renderFraction.call(e,g.currentClass,g.totalClass):w=`<span class="${g.currentClass}"></span> / <span class="${g.totalClass}"></span>`),g.type==="progressbar"&&(g.renderProgressbar?w=g.renderProgressbar.call(e,g.progressbarFillClass):w=`<span class="${g.progressbarFillClass}"></span>`),e.pagination.bullets=[],_.forEach($=>{g.type!=="custom"&&Ea($,w||""),g.type==="bullets"&&e.pagination.bullets.push(...$.querySelectorAll(Wo(g.bulletClass)))}),g.type!=="custom"&&o("paginationRender",_[0])}function p(){e.params.pagination=$g(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const g=e.params.pagination;if(!g.el)return;let y;typeof g.el=="string"&&e.isElement&&(y=e.el.querySelector(g.el)),!y&&typeof g.el=="string"&&(y=[...document.querySelectorAll(g.el)]),y||(y=g.el),!(!y||y.length===0)&&(e.params.uniqueNavElements&&typeof g.el=="string"&&Array.isArray(y)&&y.length>1&&(y=[...e.el.querySelectorAll(g.el)],y.length>1&&(y=y.find(_=>wg(_,".swiper")[0]===e.el))),Array.isArray(y)&&y.length===1&&(y=y[0]),Object.assign(e.pagination,{el:y}),y=gt(y),y.forEach(_=>{g.type==="bullets"&&g.clickable&&_.classList.add(...(g.clickableClass||"").split(" ")),_.classList.add(g.modifierClass+g.type),_.classList.add(e.isHorizontal()?g.horizontalClass:g.verticalClass),g.type==="bullets"&&g.dynamicBullets&&(_.classList.add(`${g.modifierClass}${g.type}-dynamic`),l=0,g.dynamicMainBullets<1&&(g.dynamicMainBullets=1)),g.type==="progressbar"&&g.progressbarOpposite&&_.classList.add(g.progressbarOppositeClass),g.clickable&&_.addEventListener("click",d),e.enabled||_.classList.add(g.lockClass)}))}function h(){const g=e.params.pagination;if(s())return;let y=e.pagination.el;y&&(y=gt(y),y.forEach(_=>{_.classList.remove(g.hiddenClass),_.classList.remove(g.modifierClass+g.type),_.classList.remove(e.isHorizontal()?g.horizontalClass:g.verticalClass),g.clickable&&(_.classList.remove(...(g.clickableClass||"").split(" ")),_.removeEventListener("click",d))})),e.pagination.bullets&&e.pagination.bullets.forEach(_=>_.classList.remove(...g.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const g=e.params.pagination;let{el:y}=e.pagination;y=gt(y),y.forEach(_=>{_.classList.remove(g.horizontalClass,g.verticalClass),_.classList.add(e.isHorizontal()?g.horizontalClass:g.verticalClass)})}),r("init",()=>{e.params.pagination.enabled===!1?b():(p(),m(),f())}),r("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),r("snapIndexChange",()=>{f()}),r("snapGridLengthChange",()=>{m(),f()}),r("destroy",()=>{h()}),r("enable disable",()=>{let{el:g}=e.pagination;g&&(g=gt(g),g.forEach(y=>y.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),r("lock unlock",()=>{f()}),r("click",(g,y)=>{const _=y.target,w=gt(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!_.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&_===e.navigation.nextEl||e.navigation.prevEl&&_===e.navigation.prevEl))return;w[0].classList.contains(e.params.pagination.hiddenClass)===!0?o("paginationShow"):o("paginationHide"),w.forEach($=>$.classList.toggle(e.params.pagination.hiddenClass))}});const v=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:g}=e.pagination;g&&(g=gt(g),g.forEach(y=>y.classList.remove(e.params.pagination.paginationDisabledClass))),p(),m(),f()},b=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:g}=e.pagination;g&&(g=gt(g),g.forEach(y=>y.classList.add(e.params.pagination.paginationDisabledClass))),h()};Object.assign(e.pagination,{enable:v,disable:b,render:m,update:f,init:p,destroy:h})}function UL({swiper:e,extendParams:t,on:r,emit:o,params:a}){e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let i,l,s=a&&a.autoplay?a.autoplay.delay:3e3,c=a&&a.autoplay?a.autoplay.delay:3e3,u,d=new Date().getTime(),f,m,p,h,v,b;function g(B){!e||e.destroyed||!e.wrapperEl||B.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",g),!(b||B.detail&&B.detail.bySwiperTouchMove)&&P())}const y=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(c=u,f=!1);const B=e.autoplay.paused?u:d+c-new Date().getTime();e.autoplay.timeLeft=B,o("autoplayTimeLeft",B,B/s),l=requestAnimationFrame(()=>{y()})},_=()=>{let B;if(e.virtual&&e.params.virtual.enabled?B=e.slides.find(q=>q.classList.contains("swiper-slide-active")):B=e.slides[e.activeIndex],!!B)return parseInt(B.getAttribute("data-swiper-autoplay"),10)},w=()=>{let B=e.params.autoplay.delay;const q=_();return!Number.isNaN(q)&&q>0&&(B=q),B},$=B=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(l),y();let q=B;typeof q>"u"&&(q=w(),s=q,c=q),u=q;const te=e.params.speed,ee=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(te,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,te,!0,!0),o("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(te,!0,!0),o("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,te,!0,!0),o("autoplay")),e.params.cssMode&&(d=new Date().getTime(),requestAnimationFrame(()=>{$()})))};return q>0?(clearTimeout(i),i=setTimeout(()=>{ee()},q)):requestAnimationFrame(()=>{ee()}),q},A=()=>{d=new Date().getTime(),e.autoplay.running=!0,$(),o("autoplayStart")},E=()=>{e.autoplay.running=!1,clearTimeout(i),cancelAnimationFrame(l),o("autoplayStop")},k=(B,q)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(i),B||(v=!0);const te=()=>{o("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",g):P()};if(e.autoplay.paused=!0,q){te();return}u=(u||e.params.autoplay.delay)-(new Date().getTime()-d),!(e.isEnd&&u<0&&!e.params.loop)&&(u<0&&(u=0),te())},P=()=>{e.isEnd&&u<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(d=new Date().getTime(),v?(v=!1,$(u)):$(),e.autoplay.paused=!1,o("autoplayResume"))},N=()=>{if(e.destroyed||!e.autoplay.running)return;const B=Ln();B.visibilityState==="hidden"&&(v=!0,k(!0)),B.visibilityState==="visible"&&P()},V=B=>{B.pointerType==="mouse"&&(v=!0,b=!0,!(e.animating||e.autoplay.paused)&&k(!0))},x=B=>{B.pointerType==="mouse"&&(b=!1,e.autoplay.paused&&P())},T=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",V),e.el.addEventListener("pointerleave",x))},L=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",V),e.el.removeEventListener("pointerleave",x))},F=()=>{Ln().addEventListener("visibilitychange",N)},O=()=>{Ln().removeEventListener("visibilitychange",N)};r("init",()=>{e.params.autoplay.enabled&&(T(),F(),A())}),r("destroy",()=>{L(),O(),e.autoplay.running&&E()}),r("_freeModeStaticRelease",()=>{(p||v)&&P()}),r("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?E():k(!0,!0)}),r("beforeTransitionStart",(B,q,te)=>{e.destroyed||!e.autoplay.running||(te||!e.params.autoplay.disableOnInteraction?k(!0,!0):E())}),r("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){E();return}m=!0,p=!1,v=!1,h=setTimeout(()=>{v=!0,p=!0,k(!0)},200)}}),r("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!m)){if(clearTimeout(h),clearTimeout(i),e.params.autoplay.disableOnInteraction){p=!1,m=!1;return}p&&e.params.cssMode&&P(),p=!1,m=!1}}),r("slideChange",()=>{e.destroyed||!e.autoplay.running||e.autoplay.paused&&(u=w(),s=w())}),Object.assign(e.autoplay,{start:A,stop:E,pause:k,resume:P})}function Wa(e){const{effect:t,swiper:r,on:o,setTranslate:a,setTransition:i,overwriteParams:l,perspective:s,recreateShadows:c,getEffectParams:u}=e;o("beforeInit",()=>{if(r.params.effect!==t)return;r.classNames.push(`${r.params.containerModifierClass}${t}`),s&&s()&&r.classNames.push(`${r.params.containerModifierClass}3d`);const f=l?l():{};Object.assign(r.params,f),Object.assign(r.originalParams,f)}),o("setTranslate _virtualUpdated",()=>{r.params.effect===t&&a()}),o("setTransition",(f,m)=>{r.params.effect===t&&i(m)}),o("transitionEnd",()=>{if(r.params.effect===t&&c){if(!u||!u().slideShadows)return;r.slides.forEach(f=>{f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(m=>m.remove())}),c()}});let d;o("virtualUpdate",()=>{r.params.effect===t&&(r.slides.length||(d=!0),requestAnimationFrame(()=>{d&&r.slides&&r.slides.length&&(a(),d=!1)}))})}function Dl(e,t){const r=Po(t);return r!==t&&(r.style.backfaceVisibility="hidden",r.style["-webkit-backface-visibility"]="hidden"),r}function Ru({swiper:e,duration:t,transformElements:r,allSlides:o}){const{activeIndex:a}=e,i=l=>l.parentElement?l.parentElement:e.slides.find(s=>s.shadowRoot&&s.shadowRoot===l.parentNode);if(e.params.virtualTranslate&&t!==0){let l=!1,s;o?s=r:s=r.filter(c=>{const u=c.classList.contains("swiper-slide-transform")?i(c):c;return e.getSlideIndex(u)===a}),s.forEach(c=>{RL(c,()=>{if(l||!e||e.destroyed)return;l=!0,e.animating=!1;const u=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(u)})})}}function HL({swiper:e,extendParams:t,on:r}){t({fadeEffect:{crossFade:!1}}),Wa({effect:"fade",swiper:e,on:r,setTranslate:()=>{const{slides:i}=e,l=e.params.fadeEffect;for(let s=0;s<i.length;s+=1){const c=e.slides[s];let u=-c.swiperSlideOffset;e.params.virtualTranslate||(u-=e.translate);let d=0;e.isHorizontal()||(d=u,u=0);const f=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(c.progress),0):1+Math.min(Math.max(c.progress,-1),0),m=Dl(l,c);m.style.opacity=f,m.style.transform=`translate3d(${u}px, ${d}px, 0px)`}},setTransition:i=>{const l=e.slides.map(s=>Po(s));l.forEach(s=>{s.style.transitionDuration=`${i}ms`}),Ru({swiper:e,duration:i,transformElements:l,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function WL({swiper:e,extendParams:t,on:r}){t({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const o=(s,c,u)=>{let d=u?s.querySelector(".swiper-slide-shadow-left"):s.querySelector(".swiper-slide-shadow-top"),f=u?s.querySelector(".swiper-slide-shadow-right"):s.querySelector(".swiper-slide-shadow-bottom");d||(d=Xn("div",`swiper-slide-shadow-cube swiper-slide-shadow-${u?"left":"top"}`.split(" ")),s.append(d)),f||(f=Xn("div",`swiper-slide-shadow-cube swiper-slide-shadow-${u?"right":"bottom"}`.split(" ")),s.append(f)),d&&(d.style.opacity=Math.max(-c,0)),f&&(f.style.opacity=Math.max(c,0))};Wa({effect:"cube",swiper:e,on:r,setTranslate:()=>{const{el:s,wrapperEl:c,slides:u,width:d,height:f,rtlTranslate:m,size:p,browser:h}=e,v=Ou(e),b=e.params.cubeEffect,g=e.isHorizontal(),y=e.virtual&&e.params.virtual.enabled;let _=0,w;b.shadow&&(g?(w=e.wrapperEl.querySelector(".swiper-cube-shadow"),w||(w=Xn("div","swiper-cube-shadow"),e.wrapperEl.append(w)),w.style.height=`${d}px`):(w=s.querySelector(".swiper-cube-shadow"),w||(w=Xn("div","swiper-cube-shadow"),s.append(w))));for(let A=0;A<u.length;A+=1){const E=u[A];let k=A;y&&(k=parseInt(E.getAttribute("data-swiper-slide-index"),10));let P=k*90,N=Math.floor(P/360);m&&(P=-P,N=Math.floor(-P/360));const V=Math.max(Math.min(E.progress,1),-1);let x=0,T=0,L=0;k%4===0?(x=-N*4*p,L=0):(k-1)%4===0?(x=0,L=-N*4*p):(k-2)%4===0?(x=p+N*4*p,L=p):(k-3)%4===0&&(x=-p,L=3*p+p*4*N),m&&(x=-x),g||(T=x,x=0);const F=`rotateX(${v(g?0:-P)}deg) rotateY(${v(g?P:0)}deg) translate3d(${x}px, ${T}px, ${L}px)`;V<=1&&V>-1&&(_=k*90+V*90,m&&(_=-k*90-V*90)),E.style.transform=F,b.slideShadows&&o(E,V,g)}if(c.style.transformOrigin=`50% 50% -${p/2}px`,c.style["-webkit-transform-origin"]=`50% 50% -${p/2}px`,b.shadow)if(g)w.style.transform=`translate3d(0px, ${d/2+b.shadowOffset}px, ${-d/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${b.shadowScale})`;else{const A=Math.abs(_)-Math.floor(Math.abs(_)/90)*90,E=1.5-(Math.sin(A*2*Math.PI/360)/2+Math.cos(A*2*Math.PI/360)/2),k=b.shadowScale,P=b.shadowScale/E,N=b.shadowOffset;w.style.transform=`scale3d(${k}, 1, ${P}) translate3d(0px, ${f/2+N}px, ${-f/2/P}px) rotateX(-89.99deg)`}const $=(h.isSafari||h.isWebView)&&h.needPerspectiveFix?-p/2:0;c.style.transform=`translate3d(0px,0,${$}px) rotateX(${v(e.isHorizontal()?0:_)}deg) rotateY(${v(e.isHorizontal()?-_:0)}deg)`,c.style.setProperty("--swiper-cube-translate-z",`${$}px`)},setTransition:s=>{const{el:c,slides:u}=e;if(u.forEach(d=>{d.style.transitionDuration=`${s}ms`,d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>{f.style.transitionDuration=`${s}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const d=c.querySelector(".swiper-cube-shadow");d&&(d.style.transitionDuration=`${s}ms`)}},recreateShadows:()=>{const s=e.isHorizontal();e.slides.forEach(c=>{o(c,Math.max(Math.min(c.progress,1),-1),s)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function Ca(e,t,r){const o=`swiper-slide-shadow${r?`-${r}`:""}${e?` swiper-slide-shadow-${e}`:""}`,a=Po(t);let i=a.querySelector(`.${o.split(" ").join(".")}`);return i||(i=Xn("div",o.split(" ")),a.append(i)),i}function jL({swiper:e,extendParams:t,on:r}){t({flipEffect:{slideShadows:!0,limitRotation:!0}});const o=(s,c)=>{let u=e.isHorizontal()?s.querySelector(".swiper-slide-shadow-left"):s.querySelector(".swiper-slide-shadow-top"),d=e.isHorizontal()?s.querySelector(".swiper-slide-shadow-right"):s.querySelector(".swiper-slide-shadow-bottom");u||(u=Ca("flip",s,e.isHorizontal()?"left":"top")),d||(d=Ca("flip",s,e.isHorizontal()?"right":"bottom")),u&&(u.style.opacity=Math.max(-c,0)),d&&(d.style.opacity=Math.max(c,0))};Wa({effect:"flip",swiper:e,on:r,setTranslate:()=>{const{slides:s,rtlTranslate:c}=e,u=e.params.flipEffect,d=Ou(e);for(let f=0;f<s.length;f+=1){const m=s[f];let p=m.progress;e.params.flipEffect.limitRotation&&(p=Math.max(Math.min(m.progress,1),-1));const h=m.swiperSlideOffset;let v=-180*p,b=0,g=e.params.cssMode?-h-e.translate:-h,y=0;e.isHorizontal()?c&&(v=-v):(y=g,g=0,b=-v,v=0),m.style.zIndex=-Math.abs(Math.round(p))+s.length,u.slideShadows&&o(m,p);const _=`translate3d(${g}px, ${y}px, 0px) rotateX(${d(b)}deg) rotateY(${d(v)}deg)`,w=Dl(u,m);w.style.transform=_}},setTransition:s=>{const c=e.slides.map(u=>Po(u));c.forEach(u=>{u.style.transitionDuration=`${s}ms`,u.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>{d.style.transitionDuration=`${s}ms`})}),Ru({swiper:e,duration:s,transformElements:c})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(s=>{let c=s.progress;e.params.flipEffect.limitRotation&&(c=Math.max(Math.min(s.progress,1),-1)),o(s,c)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function qL({swiper:e,extendParams:t,on:r}){t({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),Wa({effect:"coverflow",swiper:e,on:r,setTranslate:()=>{const{width:i,height:l,slides:s,slidesSizesGrid:c}=e,u=e.params.coverflowEffect,d=e.isHorizontal(),f=e.translate,m=d?-f+i/2:-f+l/2,p=d?u.rotate:-u.rotate,h=u.depth,v=Ou(e);for(let b=0,g=s.length;b<g;b+=1){const y=s[b],_=c[b],w=(m-y.swiperSlideOffset-_/2)/_,$=typeof u.modifier=="function"?u.modifier(w):w*u.modifier;let A=d?p*$:0,E=d?0:p*$,k=-h*Math.abs($),P=u.stretch;typeof P=="string"&&P.indexOf("%")!==-1&&(P=parseFloat(u.stretch)/100*_);let N=d?0:P*$,V=d?P*$:0,x=1-(1-u.scale)*Math.abs($);Math.abs(V)<.001&&(V=0),Math.abs(N)<.001&&(N=0),Math.abs(k)<.001&&(k=0),Math.abs(A)<.001&&(A=0),Math.abs(E)<.001&&(E=0),Math.abs(x)<.001&&(x=0);const T=`translate3d(${V}px,${N}px,${k}px) rotateX(${v(E)}deg) rotateY(${v(A)}deg) scale(${x})`,L=Dl(u,y);if(L.style.transform=T,y.style.zIndex=-Math.abs(Math.round($))+1,u.slideShadows){let F=d?y.querySelector(".swiper-slide-shadow-left"):y.querySelector(".swiper-slide-shadow-top"),O=d?y.querySelector(".swiper-slide-shadow-right"):y.querySelector(".swiper-slide-shadow-bottom");F||(F=Ca("coverflow",y,d?"left":"top")),O||(O=Ca("coverflow",y,d?"right":"bottom")),F&&(F.style.opacity=$>0?$:0),O&&(O.style.opacity=-$>0?-$:0)}}},setTransition:i=>{e.slides.map(l=>Po(l)).forEach(l=>{l.style.transitionDuration=`${i}ms`,l.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(s=>{s.style.transitionDuration=`${i}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function GL({swiper:e,extendParams:t,on:r}){t({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),Wa({effect:"cards",swiper:e,on:r,setTranslate:()=>{const{slides:i,activeIndex:l,rtlTranslate:s}=e,c=e.params.cardsEffect,{startTranslate:u,isTouched:d}=e.touchEventsData,f=s?-e.translate:e.translate;for(let m=0;m<i.length;m+=1){const p=i[m],h=p.progress,v=Math.min(Math.max(h,-4),4);let b=p.swiperSlideOffset;e.params.centeredSlides&&!e.params.cssMode&&(e.wrapperEl.style.transform=`translateX(${e.minTranslate()}px)`),e.params.centeredSlides&&e.params.cssMode&&(b-=i[0].swiperSlideOffset);let g=e.params.cssMode?-b-e.translate:-b,y=0;const _=-100*Math.abs(v);let w=1,$=-c.perSlideRotate*v,A=c.perSlideOffset-Math.abs(v)*.75;const E=e.virtual&&e.params.virtual.enabled?e.virtual.from+m:m,k=(E===l||E===l-1)&&v>0&&v<1&&(d||e.params.cssMode)&&f<u,P=(E===l||E===l+1)&&v<0&&v>-1&&(d||e.params.cssMode)&&f>u;if(k||P){const T=(1-Math.abs((Math.abs(v)-.5)/.5))**.5;$+=-28*v*T,w+=-.5*T,A+=96*T,y=`${(c.rotate||e.isHorizontal()?-25:0)*T*Math.abs(v)}%`}if(v<0?g=`calc(${g}px ${s?"-":"+"} (${A*Math.abs(v)}%))`:v>0?g=`calc(${g}px ${s?"-":"+"} (-${A*Math.abs(v)}%))`:g=`${g}px`,!e.isHorizontal()){const T=y;y=g,g=T}const N=v<0?`${1+(1-w)*v}`:`${1-(1-w)*v}`,V=`
|
|
295
295
|
translate3d(${g}, ${y}, ${_}px)
|
|
296
296
|
rotateZ(${c.rotate?s?-$:$:0}deg)
|
|
297
297
|
scale(${N})
|
|
298
|
-
`;if(c.slideShadows){let T=p.querySelector(".swiper-slide-shadow");T||(T=Ca("cards",p)),T&&(T.style.opacity=Math.min(Math.max((Math.abs(v)-.5)/.5,0),1))}p.style.zIndex=-Math.abs(Math.round(h))+i.length;const x=Dl(c,p);x.style.transform=V}},setTransition:i=>{const l=e.slides.map(s=>Po(s));l.forEach(s=>{s.style.transitionDuration=`${i}ms`,s.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${i}ms`})}),Ru({swiper:e,duration:i,transformElements:l})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:e.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!e.params.cssMode})})}var ys;function GL(){const e=At(),t=Ln();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function kg(){return ys||(ys=GL()),ys}var bs;function YL({userAgent:e}={}){const t=kg(),r=At(),o=r.navigator.platform,a=e||r.navigator.userAgent,i={ios:!1,android:!1},l=r.screen.width,s=r.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/);let u=a.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const d=a.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=o==="Win32";let p=o==="MacIntel";return!u&&p&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${s}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),p=!1),c&&!m&&(i.os="android",i.android=!0),(u||f||d)&&(i.os="ios",i.ios=!0),i}function Eg(e={}){return bs||(bs=YL(e)),bs}var _s;function XL(){const e=At(),t=Eg();let r=!1;function o(){const s=e.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(o()){const s=String(e.navigator.userAgent);if(s.includes("Version/")){const[c,u]=s.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));r=c<16||c===16&&u<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),i=o(),l=i||a&&t.ios;return{isSafari:r||i,needPerspectiveFix:r,need3dFix:l,isWebView:a}}function Cg(){return _s||(_s=XL()),_s}function KL({swiper:e,on:t,emit:r}){const o=At();let a=null,i=null;const l=()=>{!e||e.destroyed||!e.initialized||(r("beforeResize"),r("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(d=>{i=o.requestAnimationFrame(()=>{const{width:f,height:m}=e;let p=f,h=m;d.forEach(({contentBoxSize:v,contentRect:b,target:g})=>{g&&g!==e.el||(p=b?b.width:(v[0]||v).inlineSize,h=b?b.height:(v[0]||v).blockSize)}),(p!==f||h!==m)&&l()})}),a.observe(e.el))},c=()=>{i&&o.cancelAnimationFrame(i),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},u=()=>{!e||e.destroyed||!e.initialized||r("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof o.ResizeObserver<"u"){s();return}o.addEventListener("resize",l),o.addEventListener("orientationchange",u)}),t("destroy",()=>{c(),o.removeEventListener("resize",l),o.removeEventListener("orientationchange",u)})}function JL({swiper:e,extendParams:t,on:r,emit:o}){const a=[],i=At(),l=(u,d={})=>{const f=new(i.MutationObserver||i.WebkitMutationObserver)(m=>{if(e.__preventObserver__)return;if(m.length===1){o("observerUpdate",m[0]);return}const p=function(){o("observerUpdate",m[0])};i.requestAnimationFrame?i.requestAnimationFrame(p):i.setTimeout(p,0)});f.observe(u,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:e.isElement||(typeof d.childList>"u"?!0:d).childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),a.push(f)},s=()=>{if(e.params.observer){if(e.params.observeParents){const u=wg(e.hostEl);for(let d=0;d<u.length;d+=1)l(u[d])}l(e.hostEl,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},c=()=>{a.forEach(u=>{u.disconnect()}),a.splice(0,a.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",s),r("destroy",c)}var ZL={on(e,t,r){const o=this;if(!o.eventsListeners||o.destroyed||typeof t!="function")return o;const a=r?"unshift":"push";return e.split(" ").forEach(i=>{o.eventsListeners[i]||(o.eventsListeners[i]=[]),o.eventsListeners[i][a](t)}),o},once(e,t,r){const o=this;if(!o.eventsListeners||o.destroyed||typeof t!="function")return o;function a(...i){o.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(o,i)}return a.__emitterProxy=t,o.on(e,a,r)},onAny(e,t){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;const o=t?"unshift":"push";return r.eventsAnyListeners.indexOf(e)<0&&r.eventsAnyListeners[o](e),r},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const r=t.eventsAnyListeners.indexOf(e);return r>=0&&t.eventsAnyListeners.splice(r,1),t},off(e,t){const r=this;return!r.eventsListeners||r.destroyed||!r.eventsListeners||e.split(" ").forEach(o=>{typeof t>"u"?r.eventsListeners[o]=[]:r.eventsListeners[o]&&r.eventsListeners[o].forEach((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&r.eventsListeners[o].splice(i,1)})}),r},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let r,o,a;return typeof e[0]=="string"||Array.isArray(e[0])?(r=e[0],o=e.slice(1,e.length),a=t):(r=e[0].events,o=e[0].data,a=e[0].context||t),o.unshift(a),(Array.isArray(r)?r:r.split(" ")).forEach(i=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(l=>{l.apply(a,[i,...o])}),t.eventsListeners&&t.eventsListeners[i]&&t.eventsListeners[i].forEach(l=>{l.apply(a,o)})}),t}};function QL(){const e=this;let t,r;const o=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=o.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?r=e.params.height:r=o.clientHeight,!(t===0&&e.isHorizontal()||r===0&&e.isVertical())&&(t=t-parseInt(pr(o,"padding-left")||0,10)-parseInt(pr(o,"padding-right")||0,10),r=r-parseInt(pr(o,"padding-top")||0,10)-parseInt(pr(o,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(r)&&(r=0),Object.assign(e,{width:t,height:r,size:e.isHorizontal()?t:r}))}function eP(){const e=this;function t(N,V){return parseFloat(N.getPropertyValue(e.getDirectionLabel(V))||0)}const r=e.params,{wrapperEl:o,slidesEl:a,rtlTranslate:i,wrongRTL:l}=e,s=e.virtual&&r.virtual.enabled,c=s?e.virtual.slides.length:e.slides.length,u=An(a,`.${e.params.slideClass}, swiper-slide`),d=s?e.virtual.slides.length:u.length;let f=[];const m=[],p=[];let h=r.slidesOffsetBefore;typeof h=="function"&&(h=r.slidesOffsetBefore.call(e));let v=r.slidesOffsetAfter;typeof v=="function"&&(v=r.slidesOffsetAfter.call(e));const b=e.snapGrid.length,g=e.slidesGrid.length,y=e.size-h-v;let _=r.spaceBetween,w=-h,$=0,A=0;if(typeof y>"u")return;typeof _=="string"&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*y:typeof _=="string"&&(_=parseFloat(_)),e.virtualSize=-_-h-v,u.forEach(N=>{i?N.style.marginLeft="":N.style.marginRight="",N.style.marginBottom="",N.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(Qr(o,"--swiper-centered-offset-before",""),Qr(o,"--swiper-centered-offset-after","")),r.cssMode&&(Qr(o,"--swiper-slides-offset-before",`${h}px`),Qr(o,"--swiper-slides-offset-after",`${v}px`));const E=r.grid&&r.grid.rows>1&&e.grid;E?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();let k;const P=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(N=>typeof r.breakpoints[N].slidesPerView<"u").length>0;for(let N=0;N<d;N+=1){k=0;const V=u[N];if(!(V&&(E&&e.grid.updateSlide(N,V,u),pr(V,"display")==="none"))){if(s&&r.slidesPerView==="auto")r.virtual.slidesPerViewAutoSlideSize&&(k=r.virtual.slidesPerViewAutoSlideSize),k&&V&&(r.roundLengths&&(k=Math.floor(k)),V.style[e.getDirectionLabel("width")]=`${k}px`);else if(r.slidesPerView==="auto"){P&&(V.style[e.getDirectionLabel("width")]="");const x=getComputedStyle(V),T=V.style.transform,L=V.style.webkitTransform;if(T&&(V.style.transform="none"),L&&(V.style.webkitTransform="none"),r.roundLengths)k=e.isHorizontal()?Nc(V,"width",!0):Nc(V,"height",!0);else{const F=t(x,"width"),O=t(x,"padding-left"),B=t(x,"padding-right"),q=t(x,"margin-left"),te=t(x,"margin-right"),ee=x.getPropertyValue("box-sizing");if(ee&&ee==="border-box")k=F+q+te;else{const{clientWidth:le,offsetWidth:R}=V;k=F+O+B+q+te+(R-le)}}T&&(V.style.transform=T),L&&(V.style.webkitTransform=L),r.roundLengths&&(k=Math.floor(k))}else k=(y-(r.slidesPerView-1)*_)/r.slidesPerView,r.roundLengths&&(k=Math.floor(k)),V&&(V.style[e.getDirectionLabel("width")]=`${k}px`);V&&(V.swiperSlideSize=k),p.push(k),r.centeredSlides?(w=w+k/2+$/2+_,$===0&&N!==0&&(w=w-y/2-_),N===0&&(w=w-y/2-_),Math.abs(w)<1/1e3&&(w=0),r.roundLengths&&(w=Math.floor(w)),A%r.slidesPerGroup===0&&f.push(w),m.push(w)):(r.roundLengths&&(w=Math.floor(w)),(A-Math.min(e.params.slidesPerGroupSkip,A))%e.params.slidesPerGroup===0&&f.push(w),m.push(w),w=w+k+_),e.virtualSize+=k+_,$=k,A+=1}}if(e.virtualSize=Math.max(e.virtualSize,y)+v,i&&l&&(r.effect==="slide"||r.effect==="coverflow")&&(o.style.width=`${e.virtualSize+_}px`),r.setWrapperSize&&(o.style[e.getDirectionLabel("width")]=`${e.virtualSize+_}px`),E&&e.grid.updateWrapperSize(k,f),!r.centeredSlides){const N=r.slidesPerView!=="auto"&&r.slidesPerView%1!==0,V=r.snapToSlideEdge&&!r.loop&&(r.slidesPerView==="auto"||N);let x=f.length;if(V){let L;if(r.slidesPerView==="auto"){L=1;let F=0;for(let O=p.length-1;O>=0&&(F+=p[O]+(O<p.length-1?_:0),F<=y);O-=1)L=p.length-O}else L=Math.floor(r.slidesPerView);x=Math.max(d-L,0)}const T=[];for(let L=0;L<f.length;L+=1){let F=f[L];r.roundLengths&&(F=Math.floor(F)),V?L<=x&&T.push(F):f[L]<=e.virtualSize-y&&T.push(F)}f=T,Math.floor(e.virtualSize-y)-Math.floor(f[f.length-1])>1&&(V||f.push(e.virtualSize-y))}if(s&&r.loop){const N=p[0]+_;if(r.slidesPerGroup>1){const V=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),x=N*r.slidesPerGroup;for(let T=0;T<V;T+=1)f.push(f[f.length-1]+x)}for(let V=0;V<e.virtual.slidesBefore+e.virtual.slidesAfter;V+=1)r.slidesPerGroup===1&&f.push(f[f.length-1]+N),m.push(m[m.length-1]+N),e.virtualSize+=N}if(f.length===0&&(f=[0]),_!==0){const N=e.isHorizontal()&&i?"marginLeft":e.getDirectionLabel("marginRight");u.filter((V,x)=>!r.cssMode||r.loop?!0:x!==u.length-1).forEach(V=>{V.style[N]=`${_}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let N=0;p.forEach(x=>{N+=x+(_||0)}),N-=_;const V=N>y?N-y:0;f=f.map(x=>x<=0?-h:x>V?V+v:x)}if(r.centerInsufficientSlides){let N=0;if(p.forEach(V=>{N+=V+(_||0)}),N-=_,N<y){const V=(y-N)/2;f.forEach((x,T)=>{f[T]=x-V}),m.forEach((x,T)=>{m[T]=x+V})}}if(Object.assign(e,{slides:u,snapGrid:f,slidesGrid:m,slidesSizesGrid:p}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){Qr(o,"--swiper-centered-offset-before",`${-f[0]}px`),Qr(o,"--swiper-centered-offset-after",`${e.size/2-p[p.length-1]/2}px`);const N=-e.snapGrid[0],V=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(x=>x+N),e.slidesGrid=e.slidesGrid.map(x=>x+V)}if(d!==c&&e.emit("slidesLengthChange"),f.length!==b&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==g&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!s&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const N=`${r.containerModifierClass}backface-hidden`,V=e.el.classList.contains(N);d<=r.maxBackfaceHiddenSlides?V||e.el.classList.add(N):V&&e.el.classList.remove(N)}}function tP(e){const t=this,r=[],o=t.virtual&&t.params.virtual.enabled;let a=0,i;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const l=s=>o?t.slides[t.getSlideIndexByData(s)]:t.slides[s];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(s=>{r.push(s)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const s=t.activeIndex+i;if(s>t.slides.length&&!o)break;r.push(l(s))}else r.push(l(t.activeIndex));for(i=0;i<r.length;i+=1)if(typeof r[i]<"u"){const s=r[i].offsetHeight;a=s>a?s:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)}function nP(){const e=this,t=e.slides,r=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let o=0;o<t.length;o+=1)t[o].swiperSlideOffset=(e.isHorizontal()?t[o].offsetLeft:t[o].offsetTop)-r-e.cssOverflowAdjustment()}var Im=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};function rP(e=this&&this.translate||0){const t=this,r=t.params,{slides:o,rtlTranslate:a,snapGrid:i}=t;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let l=-e;a&&(l=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=r.spaceBetween;typeof s=="string"&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:typeof s=="string"&&(s=parseFloat(s));for(let c=0;c<o.length;c+=1){const u=o[c];let d=u.swiperSlideOffset;r.cssMode&&r.centeredSlides&&(d-=o[0].swiperSlideOffset);const f=(l+(r.centeredSlides?t.minTranslate():0)-d)/(u.swiperSlideSize+s),m=(l-i[0]+(r.centeredSlides?t.minTranslate():0)-d)/(u.swiperSlideSize+s),p=-(l-d),h=p+t.slidesSizesGrid[c],v=p>=0&&p<=t.size-t.slidesSizesGrid[c],b=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;b&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(c)),Im(u,b,r.slideVisibleClass),Im(u,v,r.slideFullyVisibleClass),u.progress=a?-f:f,u.originalProgress=a?-m:m}}function oP(e){const t=this;if(typeof e>"u"){const d=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*d||0}const r=t.params,o=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:i,isEnd:l,progressLoop:s}=t;const c=i,u=l;if(o===0)a=0,i=!0,l=!0;else{a=(e-t.minTranslate())/o;const d=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;i=d||a<=0,l=f||a>=1,d&&(a=0),f&&(a=1)}if(r.loop){const d=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),m=t.slidesGrid[d],p=t.slidesGrid[f],h=t.slidesGrid[t.slidesGrid.length-1],v=Math.abs(e);v>=m?s=(v-m)/h:s=(v+h-p)/h,s>1&&(s-=1)}Object.assign(t,{progress:a,progressLoop:s,isBeginning:i,isEnd:l}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),i&&!c&&t.emit("reachBeginning toEdge"),l&&!u&&t.emit("reachEnd toEdge"),(c&&!i||u&&!l)&&t.emit("fromEdge"),t.emit("progress",a)}var ws=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};function aP(){const e=this,{slides:t,params:r,slidesEl:o,activeIndex:a}=e,i=e.virtual&&r.virtual.enabled,l=e.grid&&r.grid&&r.grid.rows>1,s=f=>An(o,`.${r.slideClass}${f}, swiper-slide${f}`)[0];let c,u,d;if(i)if(r.loop){let f=a-e.virtual.slidesBefore;f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),c=s(`[data-swiper-slide-index="${f}"]`)}else c=s(`[data-swiper-slide-index="${a}"]`);else l?(c=t.find(f=>f.column===a),d=t.find(f=>f.column===a+1),u=t.find(f=>f.column===a-1)):c=t[a];c&&(l||(d=VL(c,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!d&&(d=t[0]),u=IL(c,`.${r.slideClass}, swiper-slide`)[0],r.loop)),t.forEach(f=>{ws(f,f===c,r.slideActiveClass),ws(f,f===d,r.slideNextClass),ws(f,f===u,r.slidePrevClass)}),e.emitSlidesClasses()}var xi=(e,t)=>{if(!e||e.destroyed||!e.params)return;const r=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,o=t.closest(r());if(o){let a=o.querySelector(`.${e.params.lazyPreloaderClass}`);!a&&e.isElement&&(o.shadowRoot?a=o.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(a=o.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),a&&!a.lazyPreloaderManaged&&a.remove())})),a&&!a.lazyPreloaderManaged&&a.remove()}},$s=(e,t)=>{if(!e.slides[t])return;const r=e.slides[t].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},Dc=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const r=e.slides.length;if(!r||!t||t<0)return;t=Math.min(t,r);const o=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),a=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const l=a,s=[l-t];s.push(...Array.from({length:t}).map((c,u)=>l+o+u)),e.slides.forEach((c,u)=>{s.includes(c.column)&&$s(e,u)});return}const i=a+o-1;if(e.params.rewind||e.params.loop)for(let l=a-t;l<=i+t;l+=1){const s=(l%r+r)%r;(s<a||s>i)&&$s(e,s)}else for(let l=Math.max(a-t,0);l<=Math.min(i+t,r-1);l+=1)l!==a&&(l>i||l<a)&&$s(e,l)};function iP(e){const{slidesGrid:t,params:r}=e,o=e.rtlTranslate?e.translate:-e.translate;let a;for(let i=0;i<t.length;i+=1)typeof t[i+1]<"u"?o>=t[i]&&o<t[i+1]-(t[i+1]-t[i])/2?a=i:o>=t[i]&&o<t[i+1]&&(a=i+1):o>=t[i]&&(a=i);return r.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function lP(e){const t=this,r=t.rtlTranslate?t.translate:-t.translate,{snapGrid:o,params:a,activeIndex:i,realIndex:l,snapIndex:s}=t;let c=e,u;const d=p=>{let h=p-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof c>"u"&&(c=iP(t)),o.indexOf(r)>=0)u=o.indexOf(r);else{const p=Math.min(a.slidesPerGroupSkip,c);u=p+Math.floor((c-p)/a.slidesPerGroup)}if(u>=o.length&&(u=o.length-1),c===i&&!t.params.loop){u!==s&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(c===i&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=d(c);return}const f=t.grid&&a.grid&&a.grid.rows>1;let m;if(t.virtual&&a.virtual.enabled)a.loop?m=d(c):m=c;else if(f){const p=t.slides.find(v=>v.column===c);let h=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(h)&&(h=Math.max(t.slides.indexOf(p),0)),m=Math.floor(h/a.grid.rows)}else if(t.slides[c]){const p=t.slides[c].getAttribute("data-swiper-slide-index");p?m=parseInt(p,10):m=c}else m=c;Object.assign(t,{previousSnapIndex:s,snapIndex:u,previousRealIndex:l,realIndex:m,previousIndex:i,activeIndex:c}),t.initialized&&Dc(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(l!==m&&t.emit("realIndexChange"),t.emit("slideChange"))}function sP(e,t){const r=this,o=r.params;let a=e.closest(`.${o.slideClass}, swiper-slide`);!a&&r.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(s=>{!a&&s.matches&&s.matches(`.${o.slideClass}, swiper-slide`)&&(a=s)});let i=!1,l;if(a){for(let s=0;s<r.slides.length;s+=1)if(r.slides[s]===a){i=!0,l=s;break}}if(a&&i)r.clickedSlide=a,r.virtual&&r.params.virtual.enabled?r.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):r.clickedIndex=l;else{r.clickedSlide=void 0,r.clickedIndex=void 0;return}o.slideToClickedSlide&&r.clickedIndex!==void 0&&r.clickedIndex!==r.activeIndex&&r.slideToClickedSlide()}var cP={updateSize:QL,updateSlides:eP,updateAutoHeight:tP,updateSlidesOffset:nP,updateSlidesProgress:rP,updateProgress:oP,updateSlidesClasses:aP,updateActiveIndex:lP,updateClickedSlide:sP};function uP(e=this.isHorizontal()?"x":"y"){const t=this,{params:r,rtlTranslate:o,translate:a,wrapperEl:i}=t;if(r.virtualTranslate)return o?-a:a;if(r.cssMode)return a;let l=BL(i,e);return l+=t.cssOverflowAdjustment(),o&&(l=-l),l||0}function dP(e,t){const r=this,{rtlTranslate:o,params:a,wrapperEl:i,progress:l}=r;let s=0,c=0;const u=0;r.isHorizontal()?s=o?-e:e:c=e,a.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),r.previousTranslate=r.translate,r.translate=r.isHorizontal()?s:c,a.cssMode?i[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-s:-c:a.virtualTranslate||(r.isHorizontal()?s-=r.cssOverflowAdjustment():c-=r.cssOverflowAdjustment(),i.style.transform=`translate3d(${s}px, ${c}px, ${u}px)`);let d;const f=r.maxTranslate()-r.minTranslate();f===0?d=0:d=(e-r.minTranslate())/f,d!==l&&r.updateProgress(e),r.emit("setTranslate",r.translate,t)}function fP(){return-this.snapGrid[0]}function mP(){return-this.snapGrid[this.snapGrid.length-1]}function pP(e=0,t=this.params.speed,r=!0,o=!0,a){const i=this,{params:l,wrapperEl:s}=i;if(i.animating&&l.preventInteractionOnTransition)return!1;const c=i.minTranslate(),u=i.maxTranslate();let d;if(o&&e>c?d=c:o&&e<u?d=u:d=e,i.updateProgress(d),l.cssMode){const f=i.isHorizontal();if(t===0)s[f?"scrollLeft":"scrollTop"]=-d;else{if(!i.support.smoothScroll)return _g({swiper:i,targetPosition:-d,side:f?"left":"top"}),!0;s.scrollTo({[f?"left":"top"]:-d,behavior:"smooth"})}return!0}return t===0?(i.setTransition(0),i.setTranslate(d),r&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionEnd"))):(i.setTransition(t),i.setTranslate(d),r&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(m){!i||i.destroyed||m.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,i.animating=!1,r&&i.emit("transitionEnd"))}),i.wrapperEl.addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd))),!0}var hP={getTranslate:uP,setTranslate:dP,minTranslate:fP,maxTranslate:mP,translateTo:pP};function gP(e,t){const r=this;r.params.cssMode||(r.wrapperEl.style.transitionDuration=`${e}ms`,r.wrapperEl.style.transitionDelay=e===0?"0ms":""),r.emit("setTransition",e,t)}function Sg({swiper:e,runCallbacks:t,direction:r,step:o}){const{activeIndex:a,previousIndex:i}=e;let l=r;l||(a>i?l="next":a<i?l="prev":l="reset"),e.emit(`transition${o}`),t&&l==="reset"?e.emit(`slideResetTransition${o}`):t&&a!==i&&(e.emit(`slideChangeTransition${o}`),l==="next"?e.emit(`slideNextTransition${o}`):e.emit(`slidePrevTransition${o}`))}function vP(e=!0,t){const r=this,{params:o}=r;o.cssMode||(o.autoHeight&&r.updateAutoHeight(),Sg({swiper:r,runCallbacks:e,direction:t,step:"Start"}))}function yP(e=!0,t){const r=this,{params:o}=r;r.animating=!1,!o.cssMode&&(r.setTransition(0),Sg({swiper:r,runCallbacks:e,direction:t,step:"End"}))}var bP={setTransition:gP,transitionStart:vP,transitionEnd:yP};function _P(e=0,t,r=!0,o,a){typeof e=="string"&&(e=parseInt(e,10));const i=this;let l=e;l<0&&(l=0);const{params:s,snapGrid:c,slidesGrid:u,previousIndex:d,activeIndex:f,rtlTranslate:m,wrapperEl:p,enabled:h}=i;if(!h&&!o&&!a||i.destroyed||i.animating&&s.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=i.params.speed);const v=Math.min(i.params.slidesPerGroupSkip,l);let b=v+Math.floor((l-v)/i.params.slidesPerGroup);b>=c.length&&(b=c.length-1);const g=-c[b];if(s.normalizeSlideIndex)for(let $=0;$<u.length;$+=1){const A=-Math.floor(g*100),E=Math.floor(u[$]*100),k=Math.floor(u[$+1]*100);typeof u[$+1]<"u"?A>=E&&A<k-(k-E)/2?l=$:A>=E&&A<k&&(l=$+1):A>=E&&(l=$)}if(i.initialized&&l!==f&&(!i.allowSlideNext&&(m?g>i.translate&&g>i.minTranslate():g<i.translate&&g<i.minTranslate())||!i.allowSlidePrev&&g>i.translate&&g>i.maxTranslate()&&(f||0)!==l))return!1;l!==(d||0)&&r&&i.emit("beforeSlideChangeStart"),i.updateProgress(g);let y;l>f?y="next":l<f?y="prev":y="reset";const _=i.virtual&&i.params.virtual.enabled;if(!(_&&a)&&(m&&-g===i.translate||!m&&g===i.translate))return i.updateActiveIndex(l),s.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),s.effect!=="slide"&&i.setTranslate(g),y!=="reset"&&(i.transitionStart(r,y),i.transitionEnd(r,y)),!1;if(s.cssMode){const $=i.isHorizontal(),A=m?g:-g;if(t===0)_&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),_&&!i._cssModeVirtualInitialSet&&i.params.initialSlide>0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[$?"scrollLeft":"scrollTop"]=A})):p[$?"scrollLeft":"scrollTop"]=A,_&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1});else{if(!i.support.smoothScroll)return _g({swiper:i,targetPosition:A,side:$?"left":"top"}),!0;p.scrollTo({[$?"left":"top"]:A,behavior:"smooth"})}return!0}const w=Cg().isSafari;return _&&!a&&w&&i.isElement&&i.virtual.update(!1,!1,l),i.setTransition(t),i.setTranslate(g),i.updateActiveIndex(l),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,o),i.transitionStart(r,y),t===0?i.transitionEnd(r,y):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(A){!i||i.destroyed||A.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(r,y))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function wP(e=0,t,r=!0,o){typeof e=="string"&&(e=parseInt(e,10));const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);const i=a.grid&&a.params.grid&&a.params.grid.rows>1;let l=e;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)l=l+a.virtual.slidesBefore;else{let s;if(i){const v=l*a.params.grid.rows;s=a.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===v).column}else s=a.getSlideIndexByData(l);const c=i?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:u,slidesOffsetBefore:d,slidesOffsetAfter:f}=a.params,m=u||!!d||!!f;let p=a.params.slidesPerView;p==="auto"?p=a.slidesPerViewDynamic():(p=Math.ceil(parseFloat(a.params.slidesPerView,10)),m&&p%2===0&&(p=p+1));let h=c-s<p;if(m&&(h=h||s<Math.ceil(p/2)),o&&m&&a.params.slidesPerView!=="auto"&&!i&&(h=!1),h){const v=m?s<a.activeIndex?"prev":"next":s-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:v,slideTo:!0,activeSlideIndex:v==="next"?s+1:s-c+1,slideRealIndex:v==="next"?a.realIndex:void 0})}if(i){const v=l*a.params.grid.rows;l=a.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===v).column}else l=a.getSlideIndexByData(l)}return requestAnimationFrame(()=>{a.slideTo(l,t,r,o)}),a}function $P(e,t=!0,r){const o=this,{enabled:a,params:i,animating:l}=o;if(!a||o.destroyed)return o;typeof e>"u"&&(e=o.params.speed);let s=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(s=Math.max(o.slidesPerViewDynamic("current",!0),1));const c=o.activeIndex<i.slidesPerGroupSkip?1:s,u=o.virtual&&i.virtual.enabled;if(i.loop){if(l&&!u&&i.loopPreventsSliding)return!1;if(o.loopFix({direction:"next"}),o._clientLeft=o.wrapperEl.clientLeft,o.activeIndex===o.slides.length-1&&i.cssMode)return requestAnimationFrame(()=>{o.slideTo(o.activeIndex+c,e,t,r)}),!0}return i.rewind&&o.isEnd?o.slideTo(0,e,t,r):o.slideTo(o.activeIndex+c,e,t,r)}function kP(e,t=!0,r){const o=this,{params:a,snapGrid:i,slidesGrid:l,rtlTranslate:s,enabled:c,animating:u}=o;if(!c||o.destroyed)return o;typeof e>"u"&&(e=o.params.speed);const d=o.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const f=s?o.translate:-o.translate;function m(y){return y<0?-Math.floor(Math.abs(y)):Math.floor(y)}const p=m(f),h=i.map(y=>m(y)),v=a.freeMode&&a.freeMode.enabled;let b=i[h.indexOf(p)-1];if(typeof b>"u"&&(a.cssMode||v)){let y;i.forEach((_,w)=>{p>=_&&(y=w)}),typeof y<"u"&&(b=v?i[y]:i[y>0?y-1:y])}let g=0;if(typeof b<"u"&&(g=l.indexOf(b),g<0&&(g=o.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(g=g-o.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),a.rewind&&o.isBeginning){const y=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(y,e,t,r)}else if(a.loop&&o.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{o.slideTo(g,e,t,r)}),!0;return o.slideTo(g,e,t,r)}function EP(e,t=!0,r){const o=this;if(!o.destroyed)return typeof e>"u"&&(e=o.params.speed),o.slideTo(o.activeIndex,e,t,r)}function CP(e,t=!0,r,o=.5){const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);let i=a.activeIndex;const l=Math.min(a.params.slidesPerGroupSkip,i),s=l+Math.floor((i-l)/a.params.slidesPerGroup),c=a.rtlTranslate?a.translate:-a.translate;if(c>=a.snapGrid[s]){const u=a.snapGrid[s],d=a.snapGrid[s+1];c-u>(d-u)*o&&(i+=a.params.slidesPerGroup)}else{const u=a.snapGrid[s-1],d=a.snapGrid[s];c-u<=(d-u)*o&&(i-=a.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,a.slidesGrid.length-1),a.slideTo(i,e,t,r)}function SP(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:r}=e,o=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let a=e.getSlideIndexWhenGrid(e.clickedIndex),i;const l=e.isElement?"swiper-slide":`.${t.slideClass}`,s=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(i):a>(s?(e.slides.length-o)/2-(e.params.grid.rows-1):e.slides.length-o)?(e.loopFix(),a=e.getSlideIndex(An(r,`${l}[data-swiper-slide-index="${i}"]`)[0]),bg(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}var xP={slideTo:_P,slideToLoop:wP,slideNext:$P,slidePrev:kP,slideReset:EP,slideToClosest:CP,slideToClickedSlide:SP};function TP(e,t){const r=this,{params:o,slidesEl:a}=r;if(!o.loop||r.virtual&&r.params.virtual.enabled)return;const i=()=>{An(a,`.${o.slideClass}, swiper-slide`).forEach((p,h)=>{p.setAttribute("data-swiper-slide-index",h)})},l=()=>{const p=An(a,`.${o.slideBlankClass}`);p.forEach(h=>{h.remove()}),p.length>0&&(r.recalcSlides(),r.updateSlides())},s=r.grid&&o.grid&&o.grid.rows>1;o.loopAddBlankSlides&&(o.slidesPerGroup>1||s)&&l();const c=o.slidesPerGroup*(s?o.grid.rows:1),u=r.slides.length%c!==0,d=s&&r.slides.length%o.grid.rows!==0,f=p=>{for(let h=0;h<p;h+=1){const v=r.isElement?Xn("swiper-slide",[o.slideBlankClass]):Xn("div",[o.slideClass,o.slideBlankClass]);r.slidesEl.append(v)}};u?(o.loopAddBlankSlides?(f(c-r.slides.length%c),r.recalcSlides(),r.updateSlides()):Zi("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),i()):(d&&(o.loopAddBlankSlides?(f(o.grid.rows-r.slides.length%o.grid.rows),r.recalcSlides(),r.updateSlides()):Zi("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")),i());const m=o.centeredSlides||!!o.slidesOffsetBefore||!!o.slidesOffsetAfter;r.loopFix({slideRealIndex:e,direction:m?void 0:"next",initial:t})}function NP({slideRealIndex:e,slideTo:t=!0,direction:r,setTranslate:o,activeSlideIndex:a,initial:i,byController:l,byMousewheel:s}={}){const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:f,slidesEl:m,params:p}=c,{centeredSlides:h,slidesOffsetBefore:v,slidesOffsetAfter:b,initialSlide:g}=p,y=h||!!v||!!b;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&p.virtual.enabled){t&&(!y&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):y&&c.snapIndex<p.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=d,c.allowSlideNext=f,c.emit("loopFix");return}let _=p.slidesPerView;_==="auto"?_=c.slidesPerViewDynamic():(_=Math.ceil(parseFloat(p.slidesPerView,10)),y&&_%2===0&&(_=_+1));const w=p.slidesPerGroupAuto?_:p.slidesPerGroup;let $=y?Math.max(w,Math.ceil(_/2)):w;$%w!==0&&($+=w-$%w),$+=p.loopAdditionalSlides,c.loopedSlides=$;const A=c.grid&&p.grid&&p.grid.rows>1;u.length<_+$||c.params.effect==="cards"&&u.length<_+$*2?Zi("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):A&&p.grid.fill==="row"&&Zi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const E=[],k=[],P=A?Math.ceil(u.length/p.grid.rows):u.length,N=i&&P-g<_&&!y;let V=N?g:c.activeIndex;typeof a>"u"?a=c.getSlideIndex(u.find(B=>B.classList.contains(p.slideActiveClass))):V=a;const x=r==="next"||!r,T=r==="prev"||!r;let L=0,F=0;const O=(A?u[a].column:a)+(y&&typeof o>"u"?-_/2+.5:0);if(O<$){L=Math.max($-O,w);for(let B=0;B<$-O;B+=1){const q=B-Math.floor(B/P)*P;if(A){const te=P-q-1;for(let ee=u.length-1;ee>=0;ee-=1)u[ee].column===te&&E.push(ee)}else E.push(P-q-1)}}else if(O+_>P-$){F=Math.max(O-(P-$*2),w),N&&(F=Math.max(F,_-P+g+1));for(let B=0;B<F;B+=1){const q=B-Math.floor(B/P)*P;A?u.forEach((te,ee)=>{te.column===q&&k.push(ee)}):k.push(q)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect==="cards"&&u.length<_+$*2&&(k.includes(a)&&k.splice(k.indexOf(a),1),E.includes(a)&&E.splice(E.indexOf(a),1)),T&&E.forEach(B=>{u[B].swiperLoopMoveDOM=!0,m.prepend(u[B]),u[B].swiperLoopMoveDOM=!1}),x&&k.forEach(B=>{u[B].swiperLoopMoveDOM=!0,m.append(u[B]),u[B].swiperLoopMoveDOM=!1}),c.recalcSlides(),p.slidesPerView==="auto"?c.updateSlides():A&&(E.length>0&&T||k.length>0&&x)&&c.slides.forEach((B,q)=>{c.grid.updateSlide(q,B,c.slides)}),p.watchSlidesProgress&&c.updateSlidesOffset(),t){if(E.length>0&&T){if(typeof e>"u"){const B=c.slidesGrid[V],q=c.slidesGrid[V+L]-B;s?c.setTranslate(c.translate-q):(c.slideTo(V+Math.ceil(L),0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-q,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-q))}else if(o){const B=A?E.length/p.grid.rows:E.length;c.slideTo(c.activeIndex+B,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(k.length>0&&x)if(typeof e>"u"){const B=c.slidesGrid[V],q=c.slidesGrid[V-F]-B;s?c.setTranslate(c.translate-q):(c.slideTo(V-F,0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-q,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-q))}else{const B=A?k.length/p.grid.rows:k.length;c.slideTo(c.activeIndex-B,0,!1,!0)}}if(c.allowSlidePrev=d,c.allowSlideNext=f,c.controller&&c.controller.control&&!l){const B={slideRealIndex:e,direction:r,setTranslate:o,activeSlideIndex:a,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(q=>{!q.destroyed&&q.params.loop&&q.loopFix({...B,slideTo:q.params.slidesPerView===p.slidesPerView?t:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...B,slideTo:c.controller.control.params.slidesPerView===p.slidesPerView?t:!1})}c.emit("loopFix")}function DP(){const e=this,{params:t,slidesEl:r}=e;if(!t.loop||!r||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const o=[];e.slides.forEach(a=>{const i=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;o[i]=a}),e.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),o.forEach(a=>{r.append(a)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var AP={loopCreate:TP,loopFix:NP,loopDestroy:DP};function BP(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const r=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),r.style.cursor="move",r.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function MP(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var LP={setGrabCursor:BP,unsetGrabCursor:MP};function PP(e,t=this){function r(o){if(!o||o===Ln()||o===At())return null;o.assignedSlot&&(o=o.assignedSlot);const a=o.closest(e);return!a&&!o.getRootNode?null:a||r(o.getRootNode().host)}return r(t)}function Vm(e,t,r){const o=At(),{params:a}=e,i=a.edgeSwipeDetection,l=a.edgeSwipeThreshold;return i&&(r<=l||r>=o.innerWidth-l)?i==="prevent"?(t.preventDefault(),!0):!1:!0}function IP(e){const t=this;if(t.destroyed)return;const r=Ln();let o=e;o.originalEvent&&(o=o.originalEvent);const a=t.touchEventsData;if(o.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==o.pointerId)return;a.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(a.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){Vm(t,o,o.targetTouches[0].pageX);return}const{params:i,touches:l,enabled:s}=t;if(!s||!i.simulateTouch&&o.pointerType==="mouse"||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let c=o.target;if(i.touchEventsTarget==="wrapper"&&!PL(c,t.wrapperEl)||"which"in o&&o.which===3||"button"in o&&o.button>0||a.isTouched&&a.isMoved)return;const u=!!i.noSwipingClass&&i.noSwipingClass!=="",d=o.composedPath?o.composedPath():o.path;u&&o.target&&o.target.shadowRoot&&d&&(c=d[0]);const f=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,m=!!(o.target&&o.target.shadowRoot);if(i.noSwiping&&(m?PP(f,c):c.closest(f))){t.allowClick=!0;return}if(i.swipeHandler&&!c.closest(i.swipeHandler))return;l.currentX=o.pageX,l.currentY=o.pageY;const p=l.currentX,h=l.currentY;if(!Vm(t,o,p))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=p,l.startY=h,a.touchStartTime=Ji(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(a.allowThresholdMove=!1);let v=!0;c.matches(a.focusableElements)&&(v=!1,c.nodeName==="SELECT"&&(a.isTouched=!1)),r.activeElement&&r.activeElement.matches(a.focusableElements)&&r.activeElement!==c&&(o.pointerType==="mouse"||o.pointerType!=="mouse"&&!c.matches(a.focusableElements))&&r.activeElement.blur();const b=v&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||b)&&!c.isContentEditable&&o.preventDefault(),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",o)}function VP(e){const t=Ln(),r=this;if(r.destroyed)return;const o=r.touchEventsData,{params:a,touches:i,rtlTranslate:l,enabled:s}=r;if(!s||!a.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),c.type==="pointermove"&&(o.touchId!==null||c.pointerId!==o.pointerId))return;let u;if(c.type==="touchmove"){if(u=[...c.changedTouches].find($=>$.identifier===o.touchId),!u||u.identifier!==o.touchId)return}else u=c;if(!o.isTouched){o.startMoving&&o.isScrolling&&r.emit("touchMoveOpposite",c);return}const d=u.pageX,f=u.pageY;if(c.preventedByNestedSwiper){i.startX=d,i.startY=f;return}if(!r.allowTouchMove){c.target.matches(o.focusableElements)||(r.allowClick=!1),o.isTouched&&(Object.assign(i,{startX:d,startY:f,currentX:d,currentY:f}),o.touchStartTime=Ji());return}if(a.touchReleaseOnEdges&&!a.loop)if(r.isVertical()){if(f<i.startY&&r.translate<=r.maxTranslate()||f>i.startY&&r.translate>=r.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else{if(l&&(d>i.startX&&-r.translate<=r.maxTranslate()||d<i.startX&&-r.translate>=r.minTranslate()))return;if(!l&&(d<i.startX&&r.translate<=r.maxTranslate()||d>i.startX&&r.translate>=r.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(o.focusableElements)&&t.activeElement!==c.target&&c.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(o.focusableElements)){o.isMoved=!0,r.allowClick=!1;return}o.allowTouchCallbacks&&r.emit("touchMove",c),i.previousX=i.currentX,i.previousY=i.currentY,i.currentX=d,i.currentY=f;const m=i.currentX-i.startX,p=i.currentY-i.startY;if(r.params.threshold&&Math.sqrt(m**2+p**2)<r.params.threshold)return;if(typeof o.isScrolling>"u"){let $;r.isHorizontal()&&i.currentY===i.startY||r.isVertical()&&i.currentX===i.startX?o.isScrolling=!1:m*m+p*p>=25&&($=Math.atan2(Math.abs(p),Math.abs(m))*180/Math.PI,o.isScrolling=r.isHorizontal()?$>a.touchAngle:90-$>a.touchAngle)}if(o.isScrolling&&r.emit("touchMoveOpposite",c),typeof o.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(o.startMoving=!0),o.isScrolling||c.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;r.allowClick=!1,!a.cssMode&&c.cancelable&&c.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&c.stopPropagation();let h=r.isHorizontal()?m:p,v=r.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;a.oneWayMovement&&(h=Math.abs(h)*(l?1:-1),v=Math.abs(v)*(l?1:-1)),i.diff=h,h*=a.touchRatio,l&&(h=-h,v=-v);const b=r.touchesDirection;r.swipeDirection=h>0?"prev":"next",r.touchesDirection=v>0?"prev":"next";const g=r.params.loop&&!a.cssMode,y=r.touchesDirection==="next"&&r.allowSlideNext||r.touchesDirection==="prev"&&r.allowSlidePrev;if(!o.isMoved){if(g&&y&&r.loopFix({direction:r.swipeDirection}),o.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const $=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});r.wrapperEl.dispatchEvent($)}o.allowMomentumBounce=!1,a.grabCursor&&(r.allowSlideNext===!0||r.allowSlidePrev===!0)&&r.setGrabCursor(!0),r.emit("sliderFirstMove",c)}if(new Date().getTime(),a._loopSwapReset!==!1&&o.isMoved&&o.allowThresholdMove&&b!==r.touchesDirection&&g&&y&&Math.abs(h)>=1){Object.assign(i,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}r.emit("sliderMove",c),o.isMoved=!0,o.currentTranslate=h+o.startTranslate;let _=!0,w=a.resistanceRatio;if(a.touchReleaseOnEdges&&(w=0),h>0?(g&&y&&o.allowThresholdMove&&o.currentTranslate>(a.centeredSlides?r.minTranslate()-r.slidesSizesGrid[r.activeIndex+1]-(a.slidesPerView!=="auto"&&r.slides.length-a.slidesPerView>=2?r.slidesSizesGrid[r.activeIndex+1]+r.params.spaceBetween:0)-r.params.spaceBetween:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>r.minTranslate()&&(_=!1,a.resistance&&(o.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+o.startTranslate+h)**w))):h<0&&(g&&y&&o.allowThresholdMove&&o.currentTranslate<(a.centeredSlides?r.maxTranslate()+r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween+(a.slidesPerView!=="auto"&&r.slides.length-a.slidesPerView>=2?r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween:0):r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-(a.slidesPerView==="auto"?r.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),o.currentTranslate<r.maxTranslate()&&(_=!1,a.resistance&&(o.currentTranslate=r.maxTranslate()+1-(r.maxTranslate()-o.startTranslate-h)**w))),_&&(c.preventedByNestedSwiper=!0),!r.allowSlideNext&&r.swipeDirection==="next"&&o.currentTranslate<o.startTranslate&&(o.currentTranslate=o.startTranslate),!r.allowSlidePrev&&r.swipeDirection==="prev"&&o.currentTranslate>o.startTranslate&&(o.currentTranslate=o.startTranslate),!r.allowSlidePrev&&!r.allowSlideNext&&(o.currentTranslate=o.startTranslate),a.threshold>0)if(Math.abs(h)>a.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,o.currentTranslate=o.startTranslate,i.diff=r.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{o.currentTranslate=o.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&r.freeMode||a.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(o.currentTranslate),r.setTranslate(o.currentTranslate))}function OP(e){const t=this;if(t.destroyed)return;const r=t.touchEventsData;let o=e;o.originalEvent&&(o=o.originalEvent);let a;if(o.type==="touchend"||o.type==="touchcancel"){if(a=[...o.changedTouches].find(w=>w.identifier===r.touchId),!a||a.identifier!==r.touchId)return}else{if(r.touchId!==null||o.pointerId!==r.pointerId)return;a=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(t.browser.isSafari||t.browser.isWebView)))return;r.pointerId=null,r.touchId=null;const{params:i,touches:l,rtlTranslate:s,slidesGrid:c,enabled:u}=t;if(!u||!i.simulateTouch&&o.pointerType==="mouse")return;if(r.allowTouchCallbacks&&t.emit("touchEnd",o),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&i.grabCursor&&t.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}i.grabCursor&&r.isMoved&&r.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=Ji(),f=d-r.touchStartTime;if(t.allowClick){const w=o.path||o.composedPath&&o.composedPath();t.updateClickedSlide(w&&w[0]||o.target,w),t.emit("tap click",o),f<300&&d-r.lastClickTime<300&&t.emit("doubleTap doubleClick",o)}if(r.lastClickTime=Ji(),bg(()=>{t.destroyed||(t.allowClick=!0)}),!r.isTouched||!r.isMoved||!t.swipeDirection||l.diff===0&&!r.loopSwapReset||r.currentTranslate===r.startTranslate&&!r.loopSwapReset){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;let m;if(i.followFinger?m=s?t.translate:-t.translate:m=-r.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:m});return}const p=m>=-t.maxTranslate()&&!t.params.loop;let h=0,v=t.slidesSizesGrid[0];for(let w=0;w<c.length;w+=w<i.slidesPerGroupSkip?1:i.slidesPerGroup){const $=w<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof c[w+$]<"u"?(p||m>=c[w]&&m<c[w+$])&&(h=w,v=c[w+$]-c[w]):(p||m>=c[w])&&(h=w,v=c[c.length-1]-c[c.length-2])}let b=null,g=null;i.rewind&&(t.isBeginning?g=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const y=(m-c[h])/v,_=h<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(f>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(y>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?b:h+_):t.slideTo(h)),t.swipeDirection==="prev"&&(y>1-i.longSwipesRatio?t.slideTo(h+_):g!==null&&y<0&&Math.abs(y)>i.longSwipesRatio?t.slideTo(g):t.slideTo(h))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(o.target===t.navigation.nextEl||o.target===t.navigation.prevEl)?o.target===t.navigation.nextEl?t.slideTo(h+_):t.slideTo(h):(t.swipeDirection==="next"&&t.slideTo(b!==null?b:h+_),t.swipeDirection==="prev"&&t.slideTo(g!==null?g:h))}}function Om(){const e=this,{params:t,el:r}=e;if(r&&r.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:a,snapGrid:i}=e,l=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=l&&t.loop;if((t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s){const c=l?e.virtual.slides:e.slides;e.slideTo(c.length-1,0,!1,!0)}else e.params.loop&&!l?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=a,e.allowSlideNext=o,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}function RP(e){const t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function FP(){const e=this;if(e.destroyed)return;const{wrapperEl:t,rtlTranslate:r,enabled:o}=e;if(!o)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let a;const i=e.maxTranslate()-e.minTranslate();i===0?a=0:a=(e.translate-e.minTranslate())/i,a!==e.progress&&e.updateProgress(r?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function zP(e){const t=this;t.destroyed||(xi(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update())}function UP(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}var xg=(e,t)=>{const r=Ln(),{params:o,el:a,wrapperEl:i,device:l}=e,s=!!o.nested,c=t==="on"?"addEventListener":"removeEventListener",u=t;!a||typeof a=="string"||(r[c]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:s}),a[c]("touchstart",e.onTouchStart,{passive:!1}),a[c]("pointerdown",e.onTouchStart,{passive:!1}),r[c]("touchmove",e.onTouchMove,{passive:!1,capture:s}),r[c]("pointermove",e.onTouchMove,{passive:!1,capture:s}),r[c]("touchend",e.onTouchEnd,{passive:!0}),r[c]("pointerup",e.onTouchEnd,{passive:!0}),r[c]("pointercancel",e.onTouchEnd,{passive:!0}),r[c]("touchcancel",e.onTouchEnd,{passive:!0}),r[c]("pointerout",e.onTouchEnd,{passive:!0}),r[c]("pointerleave",e.onTouchEnd,{passive:!0}),r[c]("contextmenu",e.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&a[c]("click",e.onClick,!0),o.cssMode&&i[c]("scroll",e.onScroll),o.updateOnWindowResize?e[u](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",Om,!0):e[u]("observerUpdate",Om,!0),a[c]("load",e.onLoad,{capture:!0}))};function HP(){const e=this,{params:t}=e;e.onTouchStart=IP.bind(e),e.onTouchMove=VP.bind(e),e.onTouchEnd=OP.bind(e),e.onDocumentTouchStart=UP.bind(e),t.cssMode&&(e.onScroll=FP.bind(e)),e.onClick=RP.bind(e),e.onLoad=zP.bind(e),xg(e,"on")}function WP(){xg(this,"off")}var jP={attachEvents:HP,detachEvents:WP},Rm=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function qP(){const e=this,{realIndex:t,initialized:r,params:o,el:a}=e,i=o.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const l=Ln(),s=o.breakpointsBase==="window"||!o.breakpointsBase?o.breakpointsBase:"container",c=["window","container"].includes(o.breakpointsBase)||!o.breakpointsBase?e.el:l.querySelector(o.breakpointsBase),u=e.getBreakpoint(i,s,c);if(!u||e.currentBreakpoint===u)return;const d=(u in i?i[u]:void 0)||e.originalParams,f=Rm(e,o),m=Rm(e,d),p=e.params.grabCursor,h=d.grabCursor,v=o.enabled;f&&!m?(a.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),e.emitContainerClasses()):!f&&m&&(a.classList.add(`${o.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&o.grid.fill==="column")&&a.classList.add(`${o.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!h?e.unsetGrabCursor():!p&&h&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach($=>{if(typeof d[$]>"u")return;const A=o[$]&&o[$].enabled,E=d[$]&&d[$].enabled;A&&!E&&e[$].disable(),!A&&E&&e[$].enable()});const b=d.direction&&d.direction!==o.direction,g=o.loop&&(d.slidesPerView!==o.slidesPerView||b),y=o.loop;b&&r&&e.changeDirection(),Ht(e.params,d);const _=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),v&&!_?e.disable():!v&&_&&e.enable(),e.currentBreakpoint=u,e.emit("_beforeBreakpoint",d),r&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&w?(e.loopCreate(t),e.updateSlides()):y&&!w&&e.loopDestroy()),e.emit("breakpoint",d)}function GP(e,t="window",r){if(!e||t==="container"&&!r)return;let o=!1;const a=At(),i=t==="window"?a.innerHeight:r.clientHeight,l=Object.keys(e).map(s=>typeof s=="string"&&s.indexOf("@")===0?{value:i*parseFloat(s.substr(1)),point:s}:{value:s,point:s});l.sort((s,c)=>parseInt(s.value,10)-parseInt(c.value,10));for(let s=0;s<l.length;s+=1){const{point:c,value:u}=l[s];t==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(o=c):u<=r.clientWidth&&(o=c)}return o||"max"}var YP={setBreakpoint:qP,getBreakpoint:GP};function XP(e,t){const r=[];return e.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(a=>{o[a]&&r.push(t+a)}):typeof o=="string"&&r.push(t+o)}),r}function KP(){const e=this,{classNames:t,params:r,rtl:o,el:a,device:i}=e,l=XP(["initialized",r.direction,{"free-mode":e.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:o},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);t.push(...l),a.classList.add(...t),e.emitContainerClasses()}function JP(){const e=this,{el:t,classNames:r}=e;!t||typeof t=="string"||(t.classList.remove(...r),e.emitContainerClasses())}var ZP={addClasses:KP,removeClasses:JP};function QP(){const e=this,{isLocked:t,params:r}=e,{slidesOffsetBefore:o}=r;if(o){const a=e.slides.length-1,i=e.slidesGrid[a]+e.slidesSizesGrid[a]+o*2;e.isLocked=e.size>i}else e.isLocked=e.snapGrid.length===1;r.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),r.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var eI={checkOverflow:QP},Ac={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function tI(e,t){return function(o={}){const a=Object.keys(o)[0],i=o[a];if(typeof i!="object"||i===null){Ht(t,o);return}if(e[a]===!0&&(e[a]={enabled:!0}),a==="navigation"&&e[a]&&e[a].enabled&&!e[a].prevEl&&!e[a].nextEl&&(e[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&e[a]&&e[a].enabled&&!e[a].el&&(e[a].auto=!0),!(a in e&&"enabled"in i)){Ht(t,o);return}typeof e[a]=="object"&&!("enabled"in e[a])&&(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),Ht(t,o)}}var ks={eventsEmitter:ZL,update:cP,translate:hP,transition:bP,slide:xP,loop:AP,grabCursor:LP,events:jP,breakpoints:YP,checkOverflow:eI,classes:ZP},Es={},Fu=class Hn{constructor(...t){let r,o;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?o=t[0]:[r,o]=t,o||(o={}),o=Ht({},o),r&&!o.el&&(o.el=r);const a=Ln();if(o.el&&typeof o.el=="string"&&a.querySelectorAll(o.el).length>1){const s=[];return a.querySelectorAll(o.el).forEach(c=>{const u=Ht({},o,{el:c});s.push(new Hn(u))}),s}const i=this;i.__swiper__=!0,i.support=kg(),i.device=Eg({userAgent:o.userAgent}),i.browser=Cg(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],o.modules&&Array.isArray(o.modules)&&o.modules.forEach(s=>{typeof s=="function"&&i.modules.indexOf(s)<0&&i.modules.push(s)});const l={};return i.modules.forEach(s=>{s({params:o,swiper:i,extendParams:tI(o,l),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})}),i.params=Ht({},Ht({},Ac,l),Es,o),i.originalParams=Ht({},i.params),i.passedParams=Ht({},o),i.params&&i.params.on&&Object.keys(i.params.on).forEach(s=>{i.on(s,i.params.on[s])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:r,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:r,params:o}=this,a=Qi(An(r,`.${o.slideClass}, swiper-slide`)[0]);return Qi(t)-a}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(r=>r.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:r,params:o}=t;t.slides=An(r,`.${o.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,r){const o=this;t=Math.min(Math.max(t,0),1);const a=o.minTranslate(),i=(o.maxTranslate()-a)*t+a;o.translateTo(i,typeof r>"u"?0:r),o.updateActiveIndex(),o.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const r=t.el.className.split(" ").filter(o=>o.indexOf("swiper")===0||o.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",r.join(" "))}getSlideClasses(t){const r=this;return r.destroyed?"":t.className.split(" ").filter(o=>o.indexOf("swiper-slide")===0||o.indexOf(r.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const r=[];t.slides.forEach(o=>{const a=t.getSlideClasses(o);r.push({slideEl:o,classNames:a}),t.emit("_slideClass",o,a)}),t.emit("_slideClasses",r)}slidesPerViewDynamic(t="current",r=!1){const{params:o,slides:a,slidesGrid:i,slidesSizesGrid:l,size:s,activeIndex:c}=this;let u=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let d=a[c]?Math.ceil(a[c].swiperSlideSize):0,f;for(let m=c+1;m<a.length;m+=1)a[m]&&!f&&(d+=Math.ceil(a[m].swiperSlideSize),u+=1,d>s&&(f=!0));for(let m=c-1;m>=0;m-=1)a[m]&&!f&&(d+=a[m].swiperSlideSize,u+=1,d>s&&(f=!0))}else if(t==="current")for(let d=c+1;d<a.length;d+=1)(r?i[d]+l[d]-i[c]<s:i[d]-i[c]<s)&&(u+=1);else for(let d=c-1;d>=0;d-=1)i[c]-i[d]<s&&(u+=1);return u}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:r,params:o}=t;o.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(l=>{l.complete&&xi(t,l)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const l=t.rtlTranslate?t.translate*-1:t.translate,s=Math.min(Math.max(l,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()}let i;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)a(),o.autoHeight&&t.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&t.isEnd&&!o.centeredSlides){const l=t.virtual&&o.virtual.enabled?t.virtual.slides:t.slides;i=t.slideTo(l.length-1,0,!1,!0)}else i=t.slideTo(t.activeIndex,0,!1,!0);i||a()}o.watchOverflow&&r!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,r=!0){const o=this,a=o.params.direction;return t||(t=a==="horizontal"?"vertical":"horizontal"),t===a||t!=="horizontal"&&t!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${a}`),o.el.classList.add(`${o.params.containerModifierClass}${t}`),o.emitContainerClasses(),o.params.direction=t,o.slides.forEach(i=>{t==="vertical"?i.style.width="":i.style.height=""}),o.emit("changeDirection"),r&&o.update()),o}changeLanguageDirection(t){const r=this;r.rtl&&t==="rtl"||!r.rtl&&t==="ltr"||(r.rtl=t==="rtl",r.rtlTranslate=r.params.direction==="horizontal"&&r.rtl,r.rtl?(r.el.classList.add(`${r.params.containerModifierClass}rtl`),r.el.dir="rtl"):(r.el.classList.remove(`${r.params.containerModifierClass}rtl`),r.el.dir="ltr"),r.update())}mount(t){const r=this;if(r.mounted)return!0;let o=t||r.params.el;if(typeof o=="string"&&(o=document.querySelector(o)),!o)return!1;o.swiper=r,o.parentNode&&o.parentNode.host&&o.parentNode.host.nodeName===r.params.swiperElementNodeName.toUpperCase()&&(r.isElement=!0);const a=()=>`.${(r.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(a()):An(o,a())[0];return!l&&r.params.createElements&&(l=Xn("div",r.params.wrapperClass),o.append(l),An(o,`.${r.params.slideClass}`).forEach(s=>{l.append(s)})),Object.assign(r,{el:o,wrapperEl:l,slidesEl:r.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:l,hostEl:r.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||pr(o,"direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||pr(o,"direction")==="rtl"),wrongRTL:pr(l,"display")==="-webkit-box"}),!0}init(t){const r=this;if(r.initialized||r.mount(t)===!1)return r;r.emit("beforeInit"),r.params.breakpoints&&r.setBreakpoint(),r.addClasses(),r.updateSize(),r.updateSlides(),r.params.watchOverflow&&r.checkOverflow(),r.params.grabCursor&&r.enabled&&r.setGrabCursor(),r.params.loop&&r.virtual&&r.params.virtual.enabled?r.slideTo(r.params.initialSlide+r.virtual.slidesBefore,0,r.params.runCallbacksOnInit,!1,!0):r.slideTo(r.params.initialSlide,0,r.params.runCallbacksOnInit,!1,!0),r.params.loop&&r.loopCreate(void 0,!0),r.attachEvents();const o=[...r.el.querySelectorAll('[loading="lazy"]')];return r.isElement&&o.push(...r.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(a=>{a.complete?xi(r,a):a.addEventListener("load",i=>{xi(r,i.target)})}),Dc(r),r.initialized=!0,Dc(r),r.emit("init"),r.emit("afterInit"),r}destroy(t=!0,r=!0){const o=this,{params:a,el:i,wrapperEl:l,slides:s}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),a.loop&&o.loopDestroy(),r&&(o.removeClasses(),i&&typeof i!="string"&&i.removeAttribute("style"),l&&l.removeAttribute("style"),s&&s.length&&s.forEach(c=>{c.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),c.removeAttribute("style"),c.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(c=>{o.off(c)}),t!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),DL(o)),o.destroyed=!0),null}static extendDefaults(t){Ht(Es,t)}static get extendedDefaults(){return Es}static get defaults(){return Ac}static installModule(t){Hn.prototype.__modules__||(Hn.prototype.__modules__=[]);const r=Hn.prototype.__modules__;typeof t=="function"&&r.indexOf(t)<0&&r.push(t)}static use(t){return Array.isArray(t)?(t.forEach(r=>Hn.installModule(r)),Hn):(Hn.installModule(t),Hn)}};Object.keys(ks).forEach(e=>{Object.keys(ks[e]).forEach(t=>{Fu.prototype[t]=ks[e][t]})});Fu.use([KL,JL]);var Tg=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function jr(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function vo(e,t){const r=["__proto__","constructor","prototype"];Object.keys(t).filter(o=>r.indexOf(o)<0).forEach(o=>{typeof e[o]>"u"?e[o]=t[o]:jr(t[o])&&jr(e[o])&&Object.keys(t[o]).length>0?t[o].__swiper__?e[o]=t[o]:vo(e[o],t[o]):e[o]=t[o]})}function Ng(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Dg(e={}){return e.pagination&&typeof e.pagination.el>"u"}function Ag(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function Bg(e=""){const t=e.split(" ").map(o=>o.trim()).filter(o=>!!o),r=[];return t.forEach(o=>{r.indexOf(o)<0&&r.push(o)}),r.join(" ")}function nI(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function rI({swiper:e,slides:t,passedParams:r,changedParams:o,nextEl:a,prevEl:i,scrollbarEl:l,paginationEl:s}){const c=o.filter(k=>k!=="children"&&k!=="direction"&&k!=="wrapperClass"),{params:u,pagination:d,navigation:f,scrollbar:m,virtual:p,thumbs:h}=e;let v,b,g,y,_,w,$,A;o.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&u.thumbs&&(!u.thumbs.swiper||u.thumbs.swiper.destroyed)&&(v=!0),o.includes("controller")&&r.controller&&r.controller.control&&u.controller&&!u.controller.control&&(b=!0),o.includes("pagination")&&r.pagination&&(r.pagination.el||s)&&(u.pagination||u.pagination===!1)&&d&&!d.el&&(g=!0),o.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||l)&&(u.scrollbar||u.scrollbar===!1)&&m&&!m.el&&(y=!0),o.includes("navigation")&&r.navigation&&(r.navigation.prevEl||i)&&(r.navigation.nextEl||a)&&(u.navigation||u.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(_=!0);const E=k=>{e[k]&&(e[k].destroy(),k==="navigation"?(e.isElement&&(e[k].prevEl.remove(),e[k].nextEl.remove()),u[k].prevEl=void 0,u[k].nextEl=void 0,e[k].prevEl=void 0,e[k].nextEl=void 0):(e.isElement&&e[k].el.remove(),u[k].el=void 0,e[k].el=void 0))};o.includes("loop")&&e.isElement&&(u.loop&&!r.loop?w=!0:!u.loop&&r.loop?$=!0:A=!0),c.forEach(k=>{if(jr(u[k])&&jr(r[k]))Object.assign(u[k],r[k]),(k==="navigation"||k==="pagination"||k==="scrollbar")&&"enabled"in r[k]&&!r[k].enabled&&E(k);else{const P=r[k];(P===!0||P===!1)&&(k==="navigation"||k==="pagination"||k==="scrollbar")?P===!1&&E(k):u[k]=r[k]}}),c.includes("controller")&&!b&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),o.includes("children")&&t&&p&&u.virtual.enabled?(p.slides=t,p.update(!0)):o.includes("virtual")&&p&&u.virtual.enabled&&(t&&(p.slides=t),p.update(!0)),o.includes("children")&&t&&u.loop&&(A=!0),v&&h.init()&&h.update(!0),b&&(e.controller.control=u.controller.control),g&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(u.pagination.el=s),d.init(),d.render(),d.update()),y&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),l.part.add("scrollbar"),e.el.appendChild(l)),l&&(u.scrollbar.el=l),m.init(),m.updateSize(),m.setTranslate()),_&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),Ea(a,e.navigation.arrowSvg),a.part.add("button-next"),e.el.appendChild(a)),(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-prev"),Ea(i,e.navigation.arrowSvg),i.part.add("button-prev"),e.el.appendChild(i))),a&&(u.navigation.nextEl=a),i&&(u.navigation.prevEl=i),f.init(),f.update()),o.includes("allowSlideNext")&&(e.allowSlideNext=r.allowSlideNext),o.includes("allowSlidePrev")&&(e.allowSlidePrev=r.allowSlidePrev),o.includes("direction")&&e.changeDirection(r.direction,!1),(w||A)&&e.loopDestroy(),($||A)&&e.loopCreate(),e.update()}function Fm(e={},t=!0){const r={on:{}},o={},a={};vo(r,Ac),r._emitClasses=!0,r.init=!1;const i={},l=Tg.map(c=>c.replace(/_/,"")),s=Object.assign({},e);return Object.keys(s).forEach(c=>{typeof e[c]>"u"||(l.indexOf(c)>=0?jr(e[c])?(r[c]={},a[c]={},vo(r[c],e[c]),vo(a[c],e[c])):(r[c]=e[c],a[c]=e[c]):c.search(/on[A-Z]/)===0&&typeof e[c]=="function"?t?o[`${c[2].toLowerCase()}${c.substr(3)}`]=e[c]:r.on[`${c[2].toLowerCase()}${c.substr(3)}`]=e[c]:i[c]=e[c])}),["navigation","pagination","scrollbar"].forEach(c=>{r[c]===!0&&(r[c]={}),r[c]===!1&&delete r[c]}),{params:r,passedParams:a,rest:i,events:o}}function oI({el:e,nextEl:t,prevEl:r,paginationEl:o,scrollbarEl:a,swiper:i},l){Ng(l)&&t&&r&&(i.params.navigation.nextEl=t,i.originalParams.navigation.nextEl=t,i.params.navigation.prevEl=r,i.originalParams.navigation.prevEl=r),Dg(l)&&o&&(i.params.pagination.el=o,i.originalParams.pagination.el=o),Ag(l)&&a&&(i.params.scrollbar.el=a,i.originalParams.scrollbar.el=a),i.init(e)}function aI(e,t,r,o,a){const i=[];if(!t)return i;const l=s=>{i.indexOf(s)<0&&i.push(s)};if(r&&o){const s=o.map(a),c=r.map(a);s.join("")!==c.join("")&&l("children"),o.length!==r.length&&l("children")}return Tg.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in e&&s in t)if(jr(e[s])&&jr(t[s])){const c=Object.keys(e[s]),u=Object.keys(t[s]);c.length!==u.length?l(s):(c.forEach(d=>{e[s][d]!==t[s][d]&&l(s)}),u.forEach(d=>{e[s][d]!==t[s][d]&&l(s)}))}else e[s]!==t[s]&&l(s)}),i}var iI=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Cs(e={},t,r){const o=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},i=(l,s)=>{Array.isArray(l)&&l.forEach(c=>{const u=typeof c.type=="symbol";s==="default"&&(s="container-end"),u&&c.children?i(c.children,s):c.type&&(c.type.name==="SwiperSlide"||c.type.name==="AsyncComponentWrapper")||c.componentOptions&&c.componentOptions.tag==="SwiperSlide"?o.push(c):a[s]&&a[s].push(c)})};return Object.keys(e).forEach(l=>{typeof e[l]=="function"&&i(e[l](),l)}),r.value=t.value,t.value=o,{slides:o,slots:a}}function lI(e,t,r){if(!r)return null;const o=d=>{let f=d;return d<0?f=t.length+d:f>=t.length&&(f=f-t.length),f},a=e.value.isHorizontal()?{[e.value.rtlTranslate?"right":"left"]:`${r.offset}px`}:{top:`${r.offset}px`},{from:i,to:l}=r,s=e.value.params.loop?-t.length:0,c=e.value.params.loop?t.length*2:t.length,u=[];for(let d=s;d<c;d+=1)d>=i&&d<=l&&u.length<t.length&&u.push(t[o(d)]);return u.map(d=>{if(d.props||(d.props={}),d.props.style||(d.props.style={}),d.props.swiperRef=e,d.props.style=a,d.type)return(0,n.h)(d.type,{...d.props},d.children);if(d.componentOptions)return(0,n.h)(d.componentOptions.Ctor,{...d.props},d.componentOptions.children)})}var sI={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},swiperElementNodeName:{type:String,default:"SWIPER-CONTAINER"},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},breakpointsBase:{type:String,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},loopAdditionalSlides:{type:Number,default:void 0},loopAddBlankSlides:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideFullyVisibleClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","_virtualUpdated","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slidesUpdated","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(e,{slots:t,emit:r}){const{tag:o,wrapperTag:a}=e,i=(0,n.ref)("swiper"),l=(0,n.ref)(null),s=(0,n.ref)(!1),c=(0,n.ref)(!1),u=(0,n.ref)(null),d=(0,n.ref)(null),f=(0,n.ref)(null),m={value:[]},p={value:[]},h=(0,n.ref)(null),v=(0,n.ref)(null),b=(0,n.ref)(null),g=(0,n.ref)(null),{params:y,passedParams:_}=Fm(e,!1);Cs(t,m,p),f.value=_,p.value=m.value;const w=()=>{Cs(t,m,p),s.value=!0};y.onAny=(E,...k)=>{r(E,...k)},Object.assign(y.on,{_beforeBreakpoint:w,_containerClasses(E,k){i.value=k}});const $={...y};if(delete $.wrapperClass,d.value=new Fu($),d.value.virtual&&d.value.params.virtual.enabled){d.value.virtual.slides=m.value;const E={cache:!1,slides:m.value,renderExternal:k=>{l.value=k},renderExternalUpdate:!1};vo(d.value.params.virtual,E),vo(d.value.originalParams.virtual,E)}(0,n.onUpdated)(()=>{!c.value&&d.value&&(d.value.emitSlidesClasses(),c.value=!0);const{passedParams:E}=Fm(e,!1),k=aI(E,f.value,m.value,p.value,P=>P.props&&P.props.key);f.value=E,(k.length||s.value)&&d.value&&!d.value.destroyed&&rI({swiper:d.value,slides:m.value,passedParams:E,changedParams:k,nextEl:h.value,prevEl:v.value,scrollbarEl:g.value,paginationEl:b.value}),s.value=!1}),(0,n.provide)("swiper",d),(0,n.watch)(l,()=>{(0,n.nextTick)(()=>{iI(d.value)})}),(0,n.onMounted)(()=>{u.value&&(oI({el:u.value,nextEl:h.value,prevEl:v.value,paginationEl:b.value,scrollbarEl:g.value,swiper:d.value},y),r("swiper",d.value))}),(0,n.onBeforeUnmount)(()=>{d.value&&!d.value.destroyed&&d.value.destroy(!0,!1)});function A(E){return y.virtual?lI(d,E,l.value):(E.forEach((k,P)=>{k.props||(k.props={}),k.props.swiperRef=d,k.props.swiperSlideIndex=P}),E)}return()=>{const{slides:E,slots:k}=Cs(t,m,p);return(0,n.h)(o,{ref:u,class:Bg(i.value)},[k["container-start"],(0,n.h)(a,{class:nI(y.wrapperClass)},[k["wrapper-start"],A(E),k["wrapper-end"]]),Ng(e)&&[(0,n.h)("div",{ref:v,class:"swiper-button-prev"}),(0,n.h)("div",{ref:h,class:"swiper-button-next"})],Ag(e)&&(0,n.h)("div",{ref:g,class:"swiper-scrollbar"}),Dg(e)&&(0,n.h)("div",{ref:b,class:"swiper-pagination"}),k["container-end"]])}}},cI={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,{slots:t}){let r=!1;const{swiperRef:o}=e,a=(0,n.ref)(null),i=(0,n.ref)("swiper-slide"),l=(0,n.ref)(!1);function s(d,f,m){f===a.value&&(i.value=m)}(0,n.onMounted)(()=>{!o||!o.value||(o.value.on("_slideClass",s),r=!0)}),(0,n.onBeforeUpdate)(()=>{r||!o||!o.value||(o.value.on("_slideClass",s),r=!0)}),(0,n.onUpdated)(()=>{!a.value||!o||!o.value||(typeof e.swiperSlideIndex<"u"&&(a.value.swiperSlideIndex=e.swiperSlideIndex),o.value.destroyed&&i.value!=="swiper-slide"&&(i.value="swiper-slide"))}),(0,n.onBeforeUnmount)(()=>{!o||!o.value||o.value.off("_slideClass",s)});const c=(0,n.computed)(()=>({isActive:i.value.indexOf("swiper-slide-active")>=0,isVisible:i.value.indexOf("swiper-slide-visible")>=0,isPrev:i.value.indexOf("swiper-slide-prev")>=0,isNext:i.value.indexOf("swiper-slide-next")>=0}));(0,n.provide)("swiperSlide",c);const u=()=>{l.value=!0};return()=>(0,n.h)(e.tag,{class:Bg(`${i.value}`),ref:a,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&o&&o.value&&o.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:u},e.zoom?(0,n.h)("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},[t.default&&t.default(c.value),e.lazy&&!l.value&&(0,n.h)("div",{class:"swiper-lazy-preloader",onVnodeMounted:d=>{d.el&&(d.el.lazyPreloaderManaged=!0)}})]):[t.default&&t.default(c.value),e.lazy&&!l.value&&(0,n.h)("div",{class:"swiper-lazy-preloader",onVnodeMounted:d=>{d.el&&(d.el.lazyPreloaderManaged=!0)}})])}},uI={class:"swi-wrap"},dI={key:0,class:"swi-ctrl"},fI=(0,n.defineComponent)({name:"BglSwiper",__name:"Swiper",props:{items:{default:void 0},index:{default:void 0},variant:{default:"default"},slideWidth:{default:void 0},effect:{default:void 0},direction:{default:"horizontal"},speed:{default:void 0},loop:{type:Boolean,default:void 0},initialSlide:{default:0},slidesPerView:{default:void 0},spaceBetween:{default:void 0},centeredSlides:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},mousewheel:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},navigation:{type:Boolean,default:void 0},pagination:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},coverflowEffect:{default:void 0},breakpoints:{default:void 0},advancedOptions:{default:void 0}},emits:["update:index"],setup(e,{expose:t,emit:r}){const o=e,a=r,i={default:{},testimonial:{slidesPerView:1,autoplay:{delay:5e3,disableOnInteraction:!1},pagination:{clickable:!0},loop:!0,speed:600},gallery:{slidesPerView:1,spaceBetween:0,navigation:!0,loop:!0},cards:{slidesPerView:3,spaceBetween:20,navigation:!0,breakpoints:{320:{slidesPerView:1,spaceBetween:10},768:{slidesPerView:2,spaceBetween:15},1024:{slidesPerView:3,spaceBetween:20}}},coverflow:{effect:"coverflow",slidesPerView:"auto",centeredSlides:!0,loop:!0,navigation:!0,coverflowEffect:{rotate:-2,stretch:0,depth:100,slideShadows:!0,modifier:1,scale:.98}},hero:{slidesPerView:1,autoplay:{delay:4e3},pagination:{clickable:!0},loop:!0,speed:800,effect:"fade"}},l=(0,n.ref)(null),s=(0,n.ref)(!0),c=(0,n.ref)(!1),u=(0,n.ref)(o.index??o.initialSlide??0);let d=!1;const f=(0,n.computed)(()=>{const $={};return o.slideWidth!==void 0&&($.width=typeof o.slideWidth=="number"?`${o.slideWidth}px`:o.slideWidth),$}),m=(0,n.computed)(()=>i[o.variant]),p=(0,n.computed)(()=>o.slidesPerView!==void 0?o.slidesPerView:m.value.slidesPerView!==void 0?m.value.slidesPerView:o.slideWidth!==void 0?"auto":1),h=(0,n.computed)(()=>{const $=(N,V,x)=>N!==void 0?N:m.value[V]!==void 0?m.value[V]:x,A={modules:[RL,FL,zL,UL,jL,HL,WL,qL],effect:$(o.effect,"effect","slide"),direction:o.direction??"horizontal",speed:$(o.speed,"speed",300),loop:$(o.loop,"loop",!1),initialSlide:o.index??o.initialSlide,slidesPerView:p.value,spaceBetween:$(o.spaceBetween,"spaceBetween",0),centeredSlides:$(o.centeredSlides,"centeredSlides",!1),grabCursor:o.grabCursor,keyboard:o.keyboard,mousewheel:o.mousewheel,autoHeight:o.autoHeight},E=$(o.pagination,"pagination",!1);A.pagination=E?typeof E=="boolean"?{clickable:!0}:E:!1;const k=$(o.autoplay,"autoplay",!1);A.autoplay=k?typeof k=="boolean"?{delay:3e3}:k:!1,(A.effect||"slide")==="coverflow"&&(A.coverflowEffect={rotate:0,stretch:0,depth:100,modifier:1,slideShadows:!0,...m.value.coverflowEffect,...o.coverflowEffect});const P=$(o.breakpoints,"breakpoints",void 0);return P&&(A.breakpoints=P),o.advancedOptions?{...A,...o.advancedOptions}:A}),v=(0,n.computed)(()=>({modules:h.value.modules,effect:h.value.effect,direction:h.value.direction,speed:h.value.speed,loop:h.value.loop,initialSlide:h.value.initialSlide,slidesPerView:h.value.slidesPerView,spaceBetween:h.value.spaceBetween,centeredSlides:h.value.centeredSlides,grabCursor:h.value.grabCursor,keyboard:h.value.keyboard,mousewheel:h.value.mousewheel,autoHeight:h.value.autoHeight,navigation:h.value.navigation,pagination:h.value.pagination,autoplay:h.value.autoplay,coverflowEffect:h.value.coverflowEffect,breakpoints:h.value.breakpoints})),b=(0,n.computed)(()=>l.value);function g(){if(l.value&&!d){s.value=l.value.isBeginning,c.value=l.value.isEnd;const $=o.loop?l.value.realIndex:l.value.activeIndex;u.value=$,a("update:index",$)}}function y($){l.value&&l.value.slideTo($)}function _($){l.value&&($==="next"?l.value.slideNext():l.value.slidePrev())}function w($){l.value=$,g()}return(0,n.watch)(()=>o.initialSlide,$=>{$!==void 0&&l.value&&setTimeout(()=>{l.value&&l.value.slideTo($)},1)},{immediate:!0}),(0,n.watch)(()=>o.index,$=>{$!==void 0&&(u.value=$,l.value&&$!==(o.loop?l.value.realIndex:l.value.activeIndex)&&(d=!0,l.value.slideTo($),setTimeout(()=>{d=!1},50)))}),(0,n.watch)(h,$=>{l.value&&(Object.assign(l.value.params,$),l.value.update())},{deep:!0}),t({swiper:b,slideNext:()=>{_("next")},slidePrev:()=>{_("prev")},slideTo:y,update:()=>l.value?.update(),isFirst:s,isLast:c,currentIndex:u}),($,A)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",uI,[(0,n.createVNode)((0,n.unref)(sI),(0,n.mergeProps)(v.value,{class:"swiper",onSwiper:w,onSlideChange:g,onReachBeginning:g,onReachEnd:g,onFromEdge:g}),{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.items,(E,k)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(cI),{key:k,style:(0,n.normalizeStyle)(f.value)},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)($.$slots,"default",{item:E,index:k,currentIndex:u.value})]),_:2},1032,["style"]))),128))]),_:3},16),(0,n.renderSlot)($.$slots,"navigation",{items:e.items||[],currentIndex:u.value,slideTo:y,prev:()=>_("prev"),next:()=>_("next"),isFirst:s.value,isLast:c.value},()=>[e.navigation?((0,n.openBlock)(),(0,n.createElementBlock)("div",dI,[(0,n.createElementVNode)("div",{class:"swi-prev hover",onClick:A[0]||(A[0]=E=>_("prev"))},[(0,n.renderSlot)($.$slots,"prev-button",{prev:()=>_("prev")},()=>[(0,n.createVNode)((0,n.unref)(ge),{name:"chevron_left",class:"user-select-none hover z-99 color-primary",size:2})])]),(0,n.createElementVNode)("div",{class:"swi-next hover",onClick:A[1]||(A[1]=E=>_("next"))},[(0,n.renderSlot)($.$slots,"next-button",{next:()=>_("next")},()=>[(0,n.createVNode)((0,n.unref)(ge),{name:"chevron_right",class:"user-select-none hover z-99 color-primary",size:2})])])])):(0,n.createCommentVNode)("",!0)]),e.pagination?(0,n.renderSlot)($.$slots,"pagination",{key:0}):(0,n.createCommentVNode)("",!0)]))}}),Mg=fI,mI={},pI={class:"flex space-between"};function hI(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",pI,[(0,n.renderSlot)(e.$slots,"default")])}var gI=we(mI,[["render",hI]]),vI=class{singleTapCallbacks=[];doubleTapCallbacks=[];isTouchMode=!1;lastTapTimestamp=0;tappedCount=0;touchMovedLength=0;lastPointerX=0;lastPointerY=0;attach(e){e instanceof Element&&(e.addEventListener("touchstart",this.onTouchStart),e.addEventListener("touchmove",this.onTouchMove),e.addEventListener("touchend",this.onTouchEnd),e.addEventListener("mousedown",this.onMouseDown),e.addEventListener("mouseup",this.onMouseUp),e.addEventListener("mousemove",this.onMouseMove))}detach(e){e.removeEventListener("touchstart",this.onTouchStart),e.removeEventListener("touchmove",this.onTouchMove),e.removeEventListener("touchend",this.onTouchEnd),e.removeEventListener("mousedown",this.onMouseDown),e.removeEventListener("mouseup",this.onMouseUp),e.removeEventListener("mousemove",this.onMouseMove)}onSingleTap(e){typeof e=="function"&&!this.singleTapCallbacks.includes(e)&&this.singleTapCallbacks.push(e)}onDoubleTap(e){typeof e=="function"&&!this.doubleTapCallbacks.includes(e)&&this.doubleTapCallbacks.push(e)}triggerCallbacks(e,t){(e==="single"?this.singleTapCallbacks:this.doubleTapCallbacks).forEach(r=>{r(t)})}onTouchStart=e=>{this.isTouchMode=!0,e.touches.length===1&&this.onPointerDown(e.touches[0].clientX,e.touches[0].clientY)};onTouchMove=e=>{e.touches.length===1&&this.onPointerMove(e.touches[0].clientX,e.touches[0].clientY)};onTouchEnd=()=>{this.isTouchMode&&this.onPointerUp()};onMouseDown=e=>{this.isTouchMode||this.onPointerDown(e.clientX,e.clientY)};onMouseMove=e=>{!this.isTouchMode&&e.button===0&&this.onPointerMove(e.clientX,e.clientY)};onMouseUp=()=>{this.isTouchMode||this.onPointerUp()};onPointerDown(e,t){this.lastPointerX=e,this.lastPointerY=t,this.touchMovedLength=0}onPointerUp(){const e=Date.now();this.touchMovedLength<10&&(e-this.lastTapTimestamp<300?this.tappedCount++:this.tappedCount=1,this.lastTapTimestamp=e,this.triggerCallbacks("single",{clientX:this.lastPointerX,clientY:this.lastPointerY}),this.tappedCount===2&&(this.triggerCallbacks("double",{clientX:this.lastPointerX,clientY:this.lastPointerY}),this.tappedCount=0)),this.touchMovedLength=0}onPointerMove(e,t){const r=this.lastPointerX-e,o=this.lastPointerY-t;this.touchMovedLength+=Math.sqrt(r*r+o*o),this.lastPointerX=e,this.lastPointerY=t}},yI=(0,n.defineComponent)({__name:"Zoomer",props:{minScale:{default:1},maxScale:{default:5},zoom:{},resetTrigger:{},backgroundColor:{default:"transparent"},pivot:{default:"cursor"},zoomingElastic:{type:Boolean,default:!0},limitTranslation:{type:Boolean,default:!0},doubleClickToZoom:{type:Boolean,default:!0},mouseWheelToZoom:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["update:zoom"],setup(e,{expose:t,emit:r}){const o=r,a=(0,n.ref)(),i=(0,n.ref)(1),l=(0,n.ref)(1),s=(0,n.ref)(0),c=(0,n.ref)(0),u=(0,n.ref)(0),d=(0,n.ref)(0),f=(0,n.ref)(0),m=(0,n.ref)(0),p=(0,n.ref)(e.zoom??1),h=(0,n.computed)({get:()=>e.zoom??p.value,set:se=>{p.value=se,o("update:zoom",p.value)}}),v=(0,n.ref)(1),b=(0,n.ref)(0),g=(0,n.ref)(0),y=(0,n.ref)("y"),_=(0,n.ref)(!1),w=(0,n.ref)(-1),$=(0,n.ref)(-1),A=(0,n.ref)(0),E=(0,n.ref)(!0),k=(0,n.ref)(),P=(0,n.ref)(),N=(0,n.ref)(0),V=(0,n.ref)(0),x=(0,n.ref)(0),T=(0,n.ref)(),L=(0,n.computed)(()=>({transform:[`translate(${i.value*d.value}px, ${l.value*m.value}px)`,`scale(${v.value})`].join(" "),transformOrigin:"50% 50%"}));(0,n.watch)(()=>h.value,se=>{const{x:$e,y:z}=R();u.value=Math.max(-$e,Math.min($e,u.value)),f.value=Math.max(-z,Math.min(z,f.value)),se!==1&&(E.value=!1)});function F(){h.value=1,E.value=!0,u.value=0,f.value=0}t({reset:F});function O(se){if(e.disabled)return;let $e=h.value*se;if(e.zoomingElastic){if($e<e.minScale||$e>e.maxScale){let z=Math.log2(se);z*=.2,se=2**z,$e=h.value*se}}else $e<e.minScale?$e=e.minScale:$e>e.maxScale&&($e=e.maxScale);if(se=$e/h.value,h.value=$e,e.pivot!=="image-center"){const z=(w.value-s.value)/i.value,G=($.value-c.value)/l.value;u.value=(.5+u.value-z)*se+z-.5,f.value=(.5+f.value-G)*se+G-.5}}function B(){w.value=s.value+i.value/2,$.value=c.value+l.value/2}function q(se,$e){if(_.value){const z=Date.now(),G=se-w.value,fe=$e-$.value;if(!E.value){const ve=z-x.value;ve>0&&(N.value=G/ve,V.value=fe/ve);const qe=R(),Xe=qe.x,Ie=qe.y,oe=u.value+G/i.value,me=f.value+fe/l.value;u.value=Math.max(-Xe,Math.min(Xe,oe)),f.value=Math.max(-Ie,Math.min(Ie,me)),x.value=z}}w.value=se,$.value=$e}function te(){if(Math.abs(N.value)<.01&&Math.abs(V.value)<.01){N.value=0,V.value=0,T.value&&(cancelAnimationFrame(T.value),T.value=void 0);return}const se=R(),$e=u.value+N.value*16/i.value,z=f.value+V.value*16/l.value;u.value=Math.max(-se.x,Math.min(se.x,$e)),f.value=Math.max(-se.y,Math.min(se.y,z)),N.value*=.95,V.value*=.95,T.value=requestAnimationFrame(te)}const ee=Vr(()=>{le(),E.value=h.value===1,!E.value&&(Math.abs(N.value)>.1||Math.abs(V.value)>.1)?(T.value&&cancelAnimationFrame(T.value),te()):(N.value=0,V.value=0)},50);function le(){if(h.value<e.minScale?h.value=e.minScale:h.value>e.maxScale&&O(e.maxScale/h.value),e.limitTranslation){const se=R();Math.abs(u.value)>se.x&&(u.value*=se.x/Math.abs(u.value)),Math.abs(f.value)>se.y&&(f.value*=se.y/Math.abs(f.value))}}function R(){const se=Math.max(0,(h.value-1)/2);return{x:se,y:se}}function I(se){if(!e.mouseWheelToZoom)return;se.preventDefault();const $e=Date.now();Math.abs(se.deltaY)===120?$e-b.value>50&&(U(se.deltaY),b.value=$e):($e-g.value>50&&(y.value=se.deltaX>se.deltaY?"x":"y",y.value==="y"&&U(se.deltaY)),g.value=$e)}function U(se){O(1.15**(se/120)),ee()}function D(se){K(),_.value=!0,w.value=se.clientX,$.value=se.clientY,x.value=Date.now(),N.value=0,V.value=0,T.value&&(cancelAnimationFrame(T.value),T.value=void 0),document.addEventListener("mousemove",j),document.addEventListener("mouseup",W)}function W(){_.value=!1,ee(),document.removeEventListener("mouseup",W),document.removeEventListener("mousemove",j)}function j(se){!E.value&&h.value>1&&se.stopPropagation(),q(se.clientX,se.clientY)}function Y(se){if(se.touches.length===1)K(),w.value=se.touches[0].clientX,$.value=se.touches[0].clientY,x.value=Date.now(),N.value=0,V.value=0,T.value&&(cancelAnimationFrame(T.value),T.value=void 0),_.value=!0;else if(se.touches.length===2){T.value&&(cancelAnimationFrame(T.value),T.value=void 0),N.value=0,V.value=0,_.value=!0,w.value=(se.touches[0].clientX+se.touches[1].clientX)/2,$.value=(se.touches[0].clientY+se.touches[1].clientY)/2;const $e=se.touches[0].clientX-se.touches[1].clientX,z=se.touches[0].clientY-se.touches[1].clientY;A.value=Math.sqrt($e*$e+z*z)}document.addEventListener("touchend",ae)}function ae(se){se.touches.length===0?(_.value=!1,Math.abs(h.value-1)<.1&&(h.value=1),ee()):se.touches.length===1&&(w.value=se.touches[0].clientX,$.value=se.touches[0].clientY),document.removeEventListener("touchend",ae)}function be(se){if(se.touches.length===1)!E.value&&h.value>1&&se.stopPropagation(),q(se.touches[0].clientX,se.touches[0].clientY);else if(se.touches.length===2){se.stopPropagation();const $e=se.touches[0].clientX-se.touches[1].clientX,z=se.touches[0].clientY-se.touches[1].clientY,G=Math.sqrt($e*$e+z*z);O(G/A.value),A.value=G}}function K(){if(a.value){const se=a.value.getBoundingClientRect();s.value=se.left,c.value=se.top}}function ce(){v.value=ie(v.value,h.value),d.value=ie(d.value,u.value),m.value=ie(m.value,f.value),k.value=window.requestAnimationFrame(ce)}function ie(se,$e){const z=($e-se)*.4;return Math.abs(z)>1e-5?se+z:$e}(0,n.onMounted)(()=>{P.value=new vI,a.value&&P.value.attach(a.value),e.doubleClickToZoom&&(P.value.onDoubleTap(de),a.value&&a.value.addEventListener("dblclick",de)),window.addEventListener("resize",_e),_e(),K(),ce()}),(0,n.onUnmounted)(()=>{a.value&&(P.value?.detach(a.value),e.doubleClickToZoom&&a.value.removeEventListener("dblclick",de)),window.removeEventListener("resize",_e),k.value&&window.cancelAnimationFrame(k.value),T.value&&window.cancelAnimationFrame(T.value)});function de(se){se.clientX>0&&(w.value=se.clientX,$.value=se.clientY);const $e=Math.min(2.5,e.maxScale/2+.5),z=e.maxScale;h.value===1?O($e):h.value<z-.1?O(z/h.value):F()}function _e(){if(a.value){const se=window.getComputedStyle(a.value);i.value=Number.parseFloat(se.width),l.value=Number.parseFloat(se.height),B(),le()}}return(se,$e)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"zoomElement",ref:a,class:"vue-zoomer",style:(0,n.normalizeStyle)({backgroundColor:e.backgroundColor}),onMousewheel:I,"on:DOMMouseScroll":I,onMousedown:D,onMouseout:B,onFocusout:B,onTouchstart:Y,onTouchmove:be},[(0,n.createElementVNode)("div",{class:"zoomer",style:(0,n.normalizeStyle)(L.value)},[(0,n.renderSlot)(se.$slots,"default",{},void 0,!0)],4)],36))}}),Lg=we(yI,[["__scopeId","data-v-f6a534bc"]]);function bI(e){const t=g=>typeof g=="string"?new Date(g):g,r=t(e.startDate),a=(()=>{if(e.endDate!==void 0)return t(e.endDate);const g=new Date(r);return g.setMinutes(g.getMinutes()+45),g})(),l=(g=>!g||g.length===0?!1:/^https?:\/\/.+/.test(g.trim()))(e.location),s=g=>`${g.getFullYear()}${String(g.getMonth()+1).padStart(2,"0")}${String(g.getDate()).padStart(2,"0")}T${String(g.getHours()).padStart(2,"0")}${String(g.getMinutes()).padStart(2,"0")}${String(g.getSeconds()).padStart(2,"0")}`,c=g=>`${g.toISOString().replace(/[-:]/g,"").split(".")[0]}Z`,u=()=>{const g=s(r),y=s(a),_=s(new Date),w=["BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//Add to Calendar//EN","CALSCALE:GREGORIAN","METHOD:PUBLISH","BEGIN:VEVENT",`UID:${_}@addtocalendar`,`DTSTAMP:${_}`,`DTSTART:${g}`,`DTEND:${y}`,`SUMMARY:${e.title}`];if(e.description&&e.description.length>0){const $=e.description.replace(/\n/g,"\\n");w.push(`DESCRIPTION:${$}`)}return e.location&&e.location.length>0&&(w.push(`LOCATION:${e.location}`),l&&w.push(`URL:${e.location}`)),w.push("STATUS:CONFIRMED","SEQUENCE:0","END:VEVENT","END:VCALENDAR"),w.join(`\r
|
|
298
|
+
`;if(c.slideShadows){let T=p.querySelector(".swiper-slide-shadow");T||(T=Ca("cards",p)),T&&(T.style.opacity=Math.min(Math.max((Math.abs(v)-.5)/.5,0),1))}p.style.zIndex=-Math.abs(Math.round(h))+i.length;const x=Dl(c,p);x.style.transform=V}},setTransition:i=>{const l=e.slides.map(s=>Po(s));l.forEach(s=>{s.style.transitionDuration=`${i}ms`,s.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${i}ms`})}),Ru({swiper:e,duration:i,transformElements:l})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:e.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!e.params.cssMode})})}var ys;function YL(){const e=At(),t=Ln();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function kg(){return ys||(ys=YL()),ys}var bs;function XL({userAgent:e}={}){const t=kg(),r=At(),o=r.navigator.platform,a=e||r.navigator.userAgent,i={ios:!1,android:!1},l=r.screen.width,s=r.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/);let u=a.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const d=a.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=o==="Win32";let p=o==="MacIntel";return!u&&p&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${s}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),p=!1),c&&!m&&(i.os="android",i.android=!0),(u||f||d)&&(i.os="ios",i.ios=!0),i}function Eg(e={}){return bs||(bs=XL(e)),bs}var _s;function KL(){const e=At(),t=Eg();let r=!1;function o(){const s=e.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(o()){const s=String(e.navigator.userAgent);if(s.includes("Version/")){const[c,u]=s.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));r=c<16||c===16&&u<2}}const a=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),i=o(),l=i||a&&t.ios;return{isSafari:r||i,needPerspectiveFix:r,need3dFix:l,isWebView:a}}function Cg(){return _s||(_s=KL()),_s}function JL({swiper:e,on:t,emit:r}){const o=At();let a=null,i=null;const l=()=>{!e||e.destroyed||!e.initialized||(r("beforeResize"),r("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(d=>{i=o.requestAnimationFrame(()=>{const{width:f,height:m}=e;let p=f,h=m;d.forEach(({contentBoxSize:v,contentRect:b,target:g})=>{g&&g!==e.el||(p=b?b.width:(v[0]||v).inlineSize,h=b?b.height:(v[0]||v).blockSize)}),(p!==f||h!==m)&&l()})}),a.observe(e.el))},c=()=>{i&&o.cancelAnimationFrame(i),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},u=()=>{!e||e.destroyed||!e.initialized||r("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof o.ResizeObserver<"u"){s();return}o.addEventListener("resize",l),o.addEventListener("orientationchange",u)}),t("destroy",()=>{c(),o.removeEventListener("resize",l),o.removeEventListener("orientationchange",u)})}function ZL({swiper:e,extendParams:t,on:r,emit:o}){const a=[],i=At(),l=(u,d={})=>{const f=new(i.MutationObserver||i.WebkitMutationObserver)(m=>{if(e.__preventObserver__)return;if(m.length===1){o("observerUpdate",m[0]);return}const p=function(){o("observerUpdate",m[0])};i.requestAnimationFrame?i.requestAnimationFrame(p):i.setTimeout(p,0)});f.observe(u,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:e.isElement||(typeof d.childList>"u"?!0:d).childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),a.push(f)},s=()=>{if(e.params.observer){if(e.params.observeParents){const u=wg(e.hostEl);for(let d=0;d<u.length;d+=1)l(u[d])}l(e.hostEl,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},c=()=>{a.forEach(u=>{u.disconnect()}),a.splice(0,a.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",s),r("destroy",c)}var QL={on(e,t,r){const o=this;if(!o.eventsListeners||o.destroyed||typeof t!="function")return o;const a=r?"unshift":"push";return e.split(" ").forEach(i=>{o.eventsListeners[i]||(o.eventsListeners[i]=[]),o.eventsListeners[i][a](t)}),o},once(e,t,r){const o=this;if(!o.eventsListeners||o.destroyed||typeof t!="function")return o;function a(...i){o.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(o,i)}return a.__emitterProxy=t,o.on(e,a,r)},onAny(e,t){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;const o=t?"unshift":"push";return r.eventsAnyListeners.indexOf(e)<0&&r.eventsAnyListeners[o](e),r},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const r=t.eventsAnyListeners.indexOf(e);return r>=0&&t.eventsAnyListeners.splice(r,1),t},off(e,t){const r=this;return!r.eventsListeners||r.destroyed||!r.eventsListeners||e.split(" ").forEach(o=>{typeof t>"u"?r.eventsListeners[o]=[]:r.eventsListeners[o]&&r.eventsListeners[o].forEach((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&r.eventsListeners[o].splice(i,1)})}),r},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let r,o,a;return typeof e[0]=="string"||Array.isArray(e[0])?(r=e[0],o=e.slice(1,e.length),a=t):(r=e[0].events,o=e[0].data,a=e[0].context||t),o.unshift(a),(Array.isArray(r)?r:r.split(" ")).forEach(i=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(l=>{l.apply(a,[i,...o])}),t.eventsListeners&&t.eventsListeners[i]&&t.eventsListeners[i].forEach(l=>{l.apply(a,o)})}),t}};function eP(){const e=this;let t,r;const o=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=o.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?r=e.params.height:r=o.clientHeight,!(t===0&&e.isHorizontal()||r===0&&e.isVertical())&&(t=t-parseInt(pr(o,"padding-left")||0,10)-parseInt(pr(o,"padding-right")||0,10),r=r-parseInt(pr(o,"padding-top")||0,10)-parseInt(pr(o,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(r)&&(r=0),Object.assign(e,{width:t,height:r,size:e.isHorizontal()?t:r}))}function tP(){const e=this;function t(N,V){return parseFloat(N.getPropertyValue(e.getDirectionLabel(V))||0)}const r=e.params,{wrapperEl:o,slidesEl:a,rtlTranslate:i,wrongRTL:l}=e,s=e.virtual&&r.virtual.enabled,c=s?e.virtual.slides.length:e.slides.length,u=An(a,`.${e.params.slideClass}, swiper-slide`),d=s?e.virtual.slides.length:u.length;let f=[];const m=[],p=[];let h=r.slidesOffsetBefore;typeof h=="function"&&(h=r.slidesOffsetBefore.call(e));let v=r.slidesOffsetAfter;typeof v=="function"&&(v=r.slidesOffsetAfter.call(e));const b=e.snapGrid.length,g=e.slidesGrid.length,y=e.size-h-v;let _=r.spaceBetween,w=-h,$=0,A=0;if(typeof y>"u")return;typeof _=="string"&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*y:typeof _=="string"&&(_=parseFloat(_)),e.virtualSize=-_-h-v,u.forEach(N=>{i?N.style.marginLeft="":N.style.marginRight="",N.style.marginBottom="",N.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(Qr(o,"--swiper-centered-offset-before",""),Qr(o,"--swiper-centered-offset-after","")),r.cssMode&&(Qr(o,"--swiper-slides-offset-before",`${h}px`),Qr(o,"--swiper-slides-offset-after",`${v}px`));const E=r.grid&&r.grid.rows>1&&e.grid;E?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();let k;const P=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(N=>typeof r.breakpoints[N].slidesPerView<"u").length>0;for(let N=0;N<d;N+=1){k=0;const V=u[N];if(!(V&&(E&&e.grid.updateSlide(N,V,u),pr(V,"display")==="none"))){if(s&&r.slidesPerView==="auto")r.virtual.slidesPerViewAutoSlideSize&&(k=r.virtual.slidesPerViewAutoSlideSize),k&&V&&(r.roundLengths&&(k=Math.floor(k)),V.style[e.getDirectionLabel("width")]=`${k}px`);else if(r.slidesPerView==="auto"){P&&(V.style[e.getDirectionLabel("width")]="");const x=getComputedStyle(V),T=V.style.transform,L=V.style.webkitTransform;if(T&&(V.style.transform="none"),L&&(V.style.webkitTransform="none"),r.roundLengths)k=e.isHorizontal()?Nc(V,"width",!0):Nc(V,"height",!0);else{const F=t(x,"width"),O=t(x,"padding-left"),B=t(x,"padding-right"),q=t(x,"margin-left"),te=t(x,"margin-right"),ee=x.getPropertyValue("box-sizing");if(ee&&ee==="border-box")k=F+q+te;else{const{clientWidth:le,offsetWidth:R}=V;k=F+O+B+q+te+(R-le)}}T&&(V.style.transform=T),L&&(V.style.webkitTransform=L),r.roundLengths&&(k=Math.floor(k))}else k=(y-(r.slidesPerView-1)*_)/r.slidesPerView,r.roundLengths&&(k=Math.floor(k)),V&&(V.style[e.getDirectionLabel("width")]=`${k}px`);V&&(V.swiperSlideSize=k),p.push(k),r.centeredSlides?(w=w+k/2+$/2+_,$===0&&N!==0&&(w=w-y/2-_),N===0&&(w=w-y/2-_),Math.abs(w)<1/1e3&&(w=0),r.roundLengths&&(w=Math.floor(w)),A%r.slidesPerGroup===0&&f.push(w),m.push(w)):(r.roundLengths&&(w=Math.floor(w)),(A-Math.min(e.params.slidesPerGroupSkip,A))%e.params.slidesPerGroup===0&&f.push(w),m.push(w),w=w+k+_),e.virtualSize+=k+_,$=k,A+=1}}if(e.virtualSize=Math.max(e.virtualSize,y)+v,i&&l&&(r.effect==="slide"||r.effect==="coverflow")&&(o.style.width=`${e.virtualSize+_}px`),r.setWrapperSize&&(o.style[e.getDirectionLabel("width")]=`${e.virtualSize+_}px`),E&&e.grid.updateWrapperSize(k,f),!r.centeredSlides){const N=r.slidesPerView!=="auto"&&r.slidesPerView%1!==0,V=r.snapToSlideEdge&&!r.loop&&(r.slidesPerView==="auto"||N);let x=f.length;if(V){let L;if(r.slidesPerView==="auto"){L=1;let F=0;for(let O=p.length-1;O>=0&&(F+=p[O]+(O<p.length-1?_:0),F<=y);O-=1)L=p.length-O}else L=Math.floor(r.slidesPerView);x=Math.max(d-L,0)}const T=[];for(let L=0;L<f.length;L+=1){let F=f[L];r.roundLengths&&(F=Math.floor(F)),V?L<=x&&T.push(F):f[L]<=e.virtualSize-y&&T.push(F)}f=T,Math.floor(e.virtualSize-y)-Math.floor(f[f.length-1])>1&&(V||f.push(e.virtualSize-y))}if(s&&r.loop){const N=p[0]+_;if(r.slidesPerGroup>1){const V=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),x=N*r.slidesPerGroup;for(let T=0;T<V;T+=1)f.push(f[f.length-1]+x)}for(let V=0;V<e.virtual.slidesBefore+e.virtual.slidesAfter;V+=1)r.slidesPerGroup===1&&f.push(f[f.length-1]+N),m.push(m[m.length-1]+N),e.virtualSize+=N}if(f.length===0&&(f=[0]),_!==0){const N=e.isHorizontal()&&i?"marginLeft":e.getDirectionLabel("marginRight");u.filter((V,x)=>!r.cssMode||r.loop?!0:x!==u.length-1).forEach(V=>{V.style[N]=`${_}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let N=0;p.forEach(x=>{N+=x+(_||0)}),N-=_;const V=N>y?N-y:0;f=f.map(x=>x<=0?-h:x>V?V+v:x)}if(r.centerInsufficientSlides){let N=0;if(p.forEach(V=>{N+=V+(_||0)}),N-=_,N<y){const V=(y-N)/2;f.forEach((x,T)=>{f[T]=x-V}),m.forEach((x,T)=>{m[T]=x+V})}}if(Object.assign(e,{slides:u,snapGrid:f,slidesGrid:m,slidesSizesGrid:p}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){Qr(o,"--swiper-centered-offset-before",`${-f[0]}px`),Qr(o,"--swiper-centered-offset-after",`${e.size/2-p[p.length-1]/2}px`);const N=-e.snapGrid[0],V=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(x=>x+N),e.slidesGrid=e.slidesGrid.map(x=>x+V)}if(d!==c&&e.emit("slidesLengthChange"),f.length!==b&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==g&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!s&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const N=`${r.containerModifierClass}backface-hidden`,V=e.el.classList.contains(N);d<=r.maxBackfaceHiddenSlides?V||e.el.classList.add(N):V&&e.el.classList.remove(N)}}function nP(e){const t=this,r=[],o=t.virtual&&t.params.virtual.enabled;let a=0,i;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const l=s=>o?t.slides[t.getSlideIndexByData(s)]:t.slides[s];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(s=>{r.push(s)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const s=t.activeIndex+i;if(s>t.slides.length&&!o)break;r.push(l(s))}else r.push(l(t.activeIndex));for(i=0;i<r.length;i+=1)if(typeof r[i]<"u"){const s=r[i].offsetHeight;a=s>a?s:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)}function rP(){const e=this,t=e.slides,r=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let o=0;o<t.length;o+=1)t[o].swiperSlideOffset=(e.isHorizontal()?t[o].offsetLeft:t[o].offsetTop)-r-e.cssOverflowAdjustment()}var Im=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};function oP(e=this&&this.translate||0){const t=this,r=t.params,{slides:o,rtlTranslate:a,snapGrid:i}=t;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let l=-e;a&&(l=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=r.spaceBetween;typeof s=="string"&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:typeof s=="string"&&(s=parseFloat(s));for(let c=0;c<o.length;c+=1){const u=o[c];let d=u.swiperSlideOffset;r.cssMode&&r.centeredSlides&&(d-=o[0].swiperSlideOffset);const f=(l+(r.centeredSlides?t.minTranslate():0)-d)/(u.swiperSlideSize+s),m=(l-i[0]+(r.centeredSlides?t.minTranslate():0)-d)/(u.swiperSlideSize+s),p=-(l-d),h=p+t.slidesSizesGrid[c],v=p>=0&&p<=t.size-t.slidesSizesGrid[c],b=p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size;b&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(c)),Im(u,b,r.slideVisibleClass),Im(u,v,r.slideFullyVisibleClass),u.progress=a?-f:f,u.originalProgress=a?-m:m}}function aP(e){const t=this;if(typeof e>"u"){const d=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*d||0}const r=t.params,o=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:i,isEnd:l,progressLoop:s}=t;const c=i,u=l;if(o===0)a=0,i=!0,l=!0;else{a=(e-t.minTranslate())/o;const d=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;i=d||a<=0,l=f||a>=1,d&&(a=0),f&&(a=1)}if(r.loop){const d=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),m=t.slidesGrid[d],p=t.slidesGrid[f],h=t.slidesGrid[t.slidesGrid.length-1],v=Math.abs(e);v>=m?s=(v-m)/h:s=(v+h-p)/h,s>1&&(s-=1)}Object.assign(t,{progress:a,progressLoop:s,isBeginning:i,isEnd:l}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),i&&!c&&t.emit("reachBeginning toEdge"),l&&!u&&t.emit("reachEnd toEdge"),(c&&!i||u&&!l)&&t.emit("fromEdge"),t.emit("progress",a)}var ws=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};function iP(){const e=this,{slides:t,params:r,slidesEl:o,activeIndex:a}=e,i=e.virtual&&r.virtual.enabled,l=e.grid&&r.grid&&r.grid.rows>1,s=f=>An(o,`.${r.slideClass}${f}, swiper-slide${f}`)[0];let c,u,d;if(i)if(r.loop){let f=a-e.virtual.slidesBefore;f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),c=s(`[data-swiper-slide-index="${f}"]`)}else c=s(`[data-swiper-slide-index="${a}"]`);else l?(c=t.find(f=>f.column===a),d=t.find(f=>f.column===a+1),u=t.find(f=>f.column===a-1)):c=t[a];c&&(l||(d=OL(c,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!d&&(d=t[0]),u=VL(c,`.${r.slideClass}, swiper-slide`)[0],r.loop)),t.forEach(f=>{ws(f,f===c,r.slideActiveClass),ws(f,f===d,r.slideNextClass),ws(f,f===u,r.slidePrevClass)}),e.emitSlidesClasses()}var xi=(e,t)=>{if(!e||e.destroyed||!e.params)return;const r=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,o=t.closest(r());if(o){let a=o.querySelector(`.${e.params.lazyPreloaderClass}`);!a&&e.isElement&&(o.shadowRoot?a=o.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{o.shadowRoot&&(a=o.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),a&&!a.lazyPreloaderManaged&&a.remove())})),a&&!a.lazyPreloaderManaged&&a.remove()}},$s=(e,t)=>{if(!e.slides[t])return;const r=e.slides[t].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},Dc=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const r=e.slides.length;if(!r||!t||t<0)return;t=Math.min(t,r);const o=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),a=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const l=a,s=[l-t];s.push(...Array.from({length:t}).map((c,u)=>l+o+u)),e.slides.forEach((c,u)=>{s.includes(c.column)&&$s(e,u)});return}const i=a+o-1;if(e.params.rewind||e.params.loop)for(let l=a-t;l<=i+t;l+=1){const s=(l%r+r)%r;(s<a||s>i)&&$s(e,s)}else for(let l=Math.max(a-t,0);l<=Math.min(i+t,r-1);l+=1)l!==a&&(l>i||l<a)&&$s(e,l)};function lP(e){const{slidesGrid:t,params:r}=e,o=e.rtlTranslate?e.translate:-e.translate;let a;for(let i=0;i<t.length;i+=1)typeof t[i+1]<"u"?o>=t[i]&&o<t[i+1]-(t[i+1]-t[i])/2?a=i:o>=t[i]&&o<t[i+1]&&(a=i+1):o>=t[i]&&(a=i);return r.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function sP(e){const t=this,r=t.rtlTranslate?t.translate:-t.translate,{snapGrid:o,params:a,activeIndex:i,realIndex:l,snapIndex:s}=t;let c=e,u;const d=p=>{let h=p-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof c>"u"&&(c=lP(t)),o.indexOf(r)>=0)u=o.indexOf(r);else{const p=Math.min(a.slidesPerGroupSkip,c);u=p+Math.floor((c-p)/a.slidesPerGroup)}if(u>=o.length&&(u=o.length-1),c===i&&!t.params.loop){u!==s&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(c===i&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=d(c);return}const f=t.grid&&a.grid&&a.grid.rows>1;let m;if(t.virtual&&a.virtual.enabled)a.loop?m=d(c):m=c;else if(f){const p=t.slides.find(v=>v.column===c);let h=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(h)&&(h=Math.max(t.slides.indexOf(p),0)),m=Math.floor(h/a.grid.rows)}else if(t.slides[c]){const p=t.slides[c].getAttribute("data-swiper-slide-index");p?m=parseInt(p,10):m=c}else m=c;Object.assign(t,{previousSnapIndex:s,snapIndex:u,previousRealIndex:l,realIndex:m,previousIndex:i,activeIndex:c}),t.initialized&&Dc(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(l!==m&&t.emit("realIndexChange"),t.emit("slideChange"))}function cP(e,t){const r=this,o=r.params;let a=e.closest(`.${o.slideClass}, swiper-slide`);!a&&r.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(s=>{!a&&s.matches&&s.matches(`.${o.slideClass}, swiper-slide`)&&(a=s)});let i=!1,l;if(a){for(let s=0;s<r.slides.length;s+=1)if(r.slides[s]===a){i=!0,l=s;break}}if(a&&i)r.clickedSlide=a,r.virtual&&r.params.virtual.enabled?r.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):r.clickedIndex=l;else{r.clickedSlide=void 0,r.clickedIndex=void 0;return}o.slideToClickedSlide&&r.clickedIndex!==void 0&&r.clickedIndex!==r.activeIndex&&r.slideToClickedSlide()}var uP={updateSize:eP,updateSlides:tP,updateAutoHeight:nP,updateSlidesOffset:rP,updateSlidesProgress:oP,updateProgress:aP,updateSlidesClasses:iP,updateActiveIndex:sP,updateClickedSlide:cP};function dP(e=this.isHorizontal()?"x":"y"){const t=this,{params:r,rtlTranslate:o,translate:a,wrapperEl:i}=t;if(r.virtualTranslate)return o?-a:a;if(r.cssMode)return a;let l=ML(i,e);return l+=t.cssOverflowAdjustment(),o&&(l=-l),l||0}function fP(e,t){const r=this,{rtlTranslate:o,params:a,wrapperEl:i,progress:l}=r;let s=0,c=0;const u=0;r.isHorizontal()?s=o?-e:e:c=e,a.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),r.previousTranslate=r.translate,r.translate=r.isHorizontal()?s:c,a.cssMode?i[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-s:-c:a.virtualTranslate||(r.isHorizontal()?s-=r.cssOverflowAdjustment():c-=r.cssOverflowAdjustment(),i.style.transform=`translate3d(${s}px, ${c}px, ${u}px)`);let d;const f=r.maxTranslate()-r.minTranslate();f===0?d=0:d=(e-r.minTranslate())/f,d!==l&&r.updateProgress(e),r.emit("setTranslate",r.translate,t)}function mP(){return-this.snapGrid[0]}function pP(){return-this.snapGrid[this.snapGrid.length-1]}function hP(e=0,t=this.params.speed,r=!0,o=!0,a){const i=this,{params:l,wrapperEl:s}=i;if(i.animating&&l.preventInteractionOnTransition)return!1;const c=i.minTranslate(),u=i.maxTranslate();let d;if(o&&e>c?d=c:o&&e<u?d=u:d=e,i.updateProgress(d),l.cssMode){const f=i.isHorizontal();if(t===0)s[f?"scrollLeft":"scrollTop"]=-d;else{if(!i.support.smoothScroll)return _g({swiper:i,targetPosition:-d,side:f?"left":"top"}),!0;s.scrollTo({[f?"left":"top"]:-d,behavior:"smooth"})}return!0}return t===0?(i.setTransition(0),i.setTranslate(d),r&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionEnd"))):(i.setTransition(t),i.setTranslate(d),r&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(m){!i||i.destroyed||m.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,i.animating=!1,r&&i.emit("transitionEnd"))}),i.wrapperEl.addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd))),!0}var gP={getTranslate:dP,setTranslate:fP,minTranslate:mP,maxTranslate:pP,translateTo:hP};function vP(e,t){const r=this;r.params.cssMode||(r.wrapperEl.style.transitionDuration=`${e}ms`,r.wrapperEl.style.transitionDelay=e===0?"0ms":""),r.emit("setTransition",e,t)}function Sg({swiper:e,runCallbacks:t,direction:r,step:o}){const{activeIndex:a,previousIndex:i}=e;let l=r;l||(a>i?l="next":a<i?l="prev":l="reset"),e.emit(`transition${o}`),t&&l==="reset"?e.emit(`slideResetTransition${o}`):t&&a!==i&&(e.emit(`slideChangeTransition${o}`),l==="next"?e.emit(`slideNextTransition${o}`):e.emit(`slidePrevTransition${o}`))}function yP(e=!0,t){const r=this,{params:o}=r;o.cssMode||(o.autoHeight&&r.updateAutoHeight(),Sg({swiper:r,runCallbacks:e,direction:t,step:"Start"}))}function bP(e=!0,t){const r=this,{params:o}=r;r.animating=!1,!o.cssMode&&(r.setTransition(0),Sg({swiper:r,runCallbacks:e,direction:t,step:"End"}))}var _P={setTransition:vP,transitionStart:yP,transitionEnd:bP};function wP(e=0,t,r=!0,o,a){typeof e=="string"&&(e=parseInt(e,10));const i=this;let l=e;l<0&&(l=0);const{params:s,snapGrid:c,slidesGrid:u,previousIndex:d,activeIndex:f,rtlTranslate:m,wrapperEl:p,enabled:h}=i;if(!h&&!o&&!a||i.destroyed||i.animating&&s.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=i.params.speed);const v=Math.min(i.params.slidesPerGroupSkip,l);let b=v+Math.floor((l-v)/i.params.slidesPerGroup);b>=c.length&&(b=c.length-1);const g=-c[b];if(s.normalizeSlideIndex)for(let $=0;$<u.length;$+=1){const A=-Math.floor(g*100),E=Math.floor(u[$]*100),k=Math.floor(u[$+1]*100);typeof u[$+1]<"u"?A>=E&&A<k-(k-E)/2?l=$:A>=E&&A<k&&(l=$+1):A>=E&&(l=$)}if(i.initialized&&l!==f&&(!i.allowSlideNext&&(m?g>i.translate&&g>i.minTranslate():g<i.translate&&g<i.minTranslate())||!i.allowSlidePrev&&g>i.translate&&g>i.maxTranslate()&&(f||0)!==l))return!1;l!==(d||0)&&r&&i.emit("beforeSlideChangeStart"),i.updateProgress(g);let y;l>f?y="next":l<f?y="prev":y="reset";const _=i.virtual&&i.params.virtual.enabled;if(!(_&&a)&&(m&&-g===i.translate||!m&&g===i.translate))return i.updateActiveIndex(l),s.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),s.effect!=="slide"&&i.setTranslate(g),y!=="reset"&&(i.transitionStart(r,y),i.transitionEnd(r,y)),!1;if(s.cssMode){const $=i.isHorizontal(),A=m?g:-g;if(t===0)_&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),_&&!i._cssModeVirtualInitialSet&&i.params.initialSlide>0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[$?"scrollLeft":"scrollTop"]=A})):p[$?"scrollLeft":"scrollTop"]=A,_&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1});else{if(!i.support.smoothScroll)return _g({swiper:i,targetPosition:A,side:$?"left":"top"}),!0;p.scrollTo({[$?"left":"top"]:A,behavior:"smooth"})}return!0}const w=Cg().isSafari;return _&&!a&&w&&i.isElement&&i.virtual.update(!1,!1,l),i.setTransition(t),i.setTranslate(g),i.updateActiveIndex(l),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,o),i.transitionStart(r,y),t===0?i.transitionEnd(r,y):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(A){!i||i.destroyed||A.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(r,y))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function $P(e=0,t,r=!0,o){typeof e=="string"&&(e=parseInt(e,10));const a=this;if(a.destroyed)return;typeof t>"u"&&(t=a.params.speed);const i=a.grid&&a.params.grid&&a.params.grid.rows>1;let l=e;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)l=l+a.virtual.slidesBefore;else{let s;if(i){const v=l*a.params.grid.rows;s=a.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===v).column}else s=a.getSlideIndexByData(l);const c=i?Math.ceil(a.slides.length/a.params.grid.rows):a.slides.length,{centeredSlides:u,slidesOffsetBefore:d,slidesOffsetAfter:f}=a.params,m=u||!!d||!!f;let p=a.params.slidesPerView;p==="auto"?p=a.slidesPerViewDynamic():(p=Math.ceil(parseFloat(a.params.slidesPerView,10)),m&&p%2===0&&(p=p+1));let h=c-s<p;if(m&&(h=h||s<Math.ceil(p/2)),o&&m&&a.params.slidesPerView!=="auto"&&!i&&(h=!1),h){const v=m?s<a.activeIndex?"prev":"next":s-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:v,slideTo:!0,activeSlideIndex:v==="next"?s+1:s-c+1,slideRealIndex:v==="next"?a.realIndex:void 0})}if(i){const v=l*a.params.grid.rows;l=a.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===v).column}else l=a.getSlideIndexByData(l)}return requestAnimationFrame(()=>{a.slideTo(l,t,r,o)}),a}function kP(e,t=!0,r){const o=this,{enabled:a,params:i,animating:l}=o;if(!a||o.destroyed)return o;typeof e>"u"&&(e=o.params.speed);let s=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(s=Math.max(o.slidesPerViewDynamic("current",!0),1));const c=o.activeIndex<i.slidesPerGroupSkip?1:s,u=o.virtual&&i.virtual.enabled;if(i.loop){if(l&&!u&&i.loopPreventsSliding)return!1;if(o.loopFix({direction:"next"}),o._clientLeft=o.wrapperEl.clientLeft,o.activeIndex===o.slides.length-1&&i.cssMode)return requestAnimationFrame(()=>{o.slideTo(o.activeIndex+c,e,t,r)}),!0}return i.rewind&&o.isEnd?o.slideTo(0,e,t,r):o.slideTo(o.activeIndex+c,e,t,r)}function EP(e,t=!0,r){const o=this,{params:a,snapGrid:i,slidesGrid:l,rtlTranslate:s,enabled:c,animating:u}=o;if(!c||o.destroyed)return o;typeof e>"u"&&(e=o.params.speed);const d=o.virtual&&a.virtual.enabled;if(a.loop){if(u&&!d&&a.loopPreventsSliding)return!1;o.loopFix({direction:"prev"}),o._clientLeft=o.wrapperEl.clientLeft}const f=s?o.translate:-o.translate;function m(y){return y<0?-Math.floor(Math.abs(y)):Math.floor(y)}const p=m(f),h=i.map(y=>m(y)),v=a.freeMode&&a.freeMode.enabled;let b=i[h.indexOf(p)-1];if(typeof b>"u"&&(a.cssMode||v)){let y;i.forEach((_,w)=>{p>=_&&(y=w)}),typeof y<"u"&&(b=v?i[y]:i[y>0?y-1:y])}let g=0;if(typeof b<"u"&&(g=l.indexOf(b),g<0&&(g=o.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(g=g-o.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),a.rewind&&o.isBeginning){const y=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(y,e,t,r)}else if(a.loop&&o.activeIndex===0&&a.cssMode)return requestAnimationFrame(()=>{o.slideTo(g,e,t,r)}),!0;return o.slideTo(g,e,t,r)}function CP(e,t=!0,r){const o=this;if(!o.destroyed)return typeof e>"u"&&(e=o.params.speed),o.slideTo(o.activeIndex,e,t,r)}function SP(e,t=!0,r,o=.5){const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);let i=a.activeIndex;const l=Math.min(a.params.slidesPerGroupSkip,i),s=l+Math.floor((i-l)/a.params.slidesPerGroup),c=a.rtlTranslate?a.translate:-a.translate;if(c>=a.snapGrid[s]){const u=a.snapGrid[s],d=a.snapGrid[s+1];c-u>(d-u)*o&&(i+=a.params.slidesPerGroup)}else{const u=a.snapGrid[s-1],d=a.snapGrid[s];c-u<=(d-u)*o&&(i-=a.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,a.slidesGrid.length-1),a.slideTo(i,e,t,r)}function xP(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:r}=e,o=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let a=e.getSlideIndexWhenGrid(e.clickedIndex),i;const l=e.isElement?"swiper-slide":`.${t.slideClass}`,s=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(i):a>(s?(e.slides.length-o)/2-(e.params.grid.rows-1):e.slides.length-o)?(e.loopFix(),a=e.getSlideIndex(An(r,`${l}[data-swiper-slide-index="${i}"]`)[0]),bg(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}var TP={slideTo:wP,slideToLoop:$P,slideNext:kP,slidePrev:EP,slideReset:CP,slideToClosest:SP,slideToClickedSlide:xP};function NP(e,t){const r=this,{params:o,slidesEl:a}=r;if(!o.loop||r.virtual&&r.params.virtual.enabled)return;const i=()=>{An(a,`.${o.slideClass}, swiper-slide`).forEach((p,h)=>{p.setAttribute("data-swiper-slide-index",h)})},l=()=>{const p=An(a,`.${o.slideBlankClass}`);p.forEach(h=>{h.remove()}),p.length>0&&(r.recalcSlides(),r.updateSlides())},s=r.grid&&o.grid&&o.grid.rows>1;o.loopAddBlankSlides&&(o.slidesPerGroup>1||s)&&l();const c=o.slidesPerGroup*(s?o.grid.rows:1),u=r.slides.length%c!==0,d=s&&r.slides.length%o.grid.rows!==0,f=p=>{for(let h=0;h<p;h+=1){const v=r.isElement?Xn("swiper-slide",[o.slideBlankClass]):Xn("div",[o.slideClass,o.slideBlankClass]);r.slidesEl.append(v)}};u?(o.loopAddBlankSlides?(f(c-r.slides.length%c),r.recalcSlides(),r.updateSlides()):Zi("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),i()):(d&&(o.loopAddBlankSlides?(f(o.grid.rows-r.slides.length%o.grid.rows),r.recalcSlides(),r.updateSlides()):Zi("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")),i());const m=o.centeredSlides||!!o.slidesOffsetBefore||!!o.slidesOffsetAfter;r.loopFix({slideRealIndex:e,direction:m?void 0:"next",initial:t})}function DP({slideRealIndex:e,slideTo:t=!0,direction:r,setTranslate:o,activeSlideIndex:a,initial:i,byController:l,byMousewheel:s}={}){const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:f,slidesEl:m,params:p}=c,{centeredSlides:h,slidesOffsetBefore:v,slidesOffsetAfter:b,initialSlide:g}=p,y=h||!!v||!!b;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&p.virtual.enabled){t&&(!y&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):y&&c.snapIndex<p.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=d,c.allowSlideNext=f,c.emit("loopFix");return}let _=p.slidesPerView;_==="auto"?_=c.slidesPerViewDynamic():(_=Math.ceil(parseFloat(p.slidesPerView,10)),y&&_%2===0&&(_=_+1));const w=p.slidesPerGroupAuto?_:p.slidesPerGroup;let $=y?Math.max(w,Math.ceil(_/2)):w;$%w!==0&&($+=w-$%w),$+=p.loopAdditionalSlides,c.loopedSlides=$;const A=c.grid&&p.grid&&p.grid.rows>1;u.length<_+$||c.params.effect==="cards"&&u.length<_+$*2?Zi("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):A&&p.grid.fill==="row"&&Zi("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const E=[],k=[],P=A?Math.ceil(u.length/p.grid.rows):u.length,N=i&&P-g<_&&!y;let V=N?g:c.activeIndex;typeof a>"u"?a=c.getSlideIndex(u.find(B=>B.classList.contains(p.slideActiveClass))):V=a;const x=r==="next"||!r,T=r==="prev"||!r;let L=0,F=0;const O=(A?u[a].column:a)+(y&&typeof o>"u"?-_/2+.5:0);if(O<$){L=Math.max($-O,w);for(let B=0;B<$-O;B+=1){const q=B-Math.floor(B/P)*P;if(A){const te=P-q-1;for(let ee=u.length-1;ee>=0;ee-=1)u[ee].column===te&&E.push(ee)}else E.push(P-q-1)}}else if(O+_>P-$){F=Math.max(O-(P-$*2),w),N&&(F=Math.max(F,_-P+g+1));for(let B=0;B<F;B+=1){const q=B-Math.floor(B/P)*P;A?u.forEach((te,ee)=>{te.column===q&&k.push(ee)}):k.push(q)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect==="cards"&&u.length<_+$*2&&(k.includes(a)&&k.splice(k.indexOf(a),1),E.includes(a)&&E.splice(E.indexOf(a),1)),T&&E.forEach(B=>{u[B].swiperLoopMoveDOM=!0,m.prepend(u[B]),u[B].swiperLoopMoveDOM=!1}),x&&k.forEach(B=>{u[B].swiperLoopMoveDOM=!0,m.append(u[B]),u[B].swiperLoopMoveDOM=!1}),c.recalcSlides(),p.slidesPerView==="auto"?c.updateSlides():A&&(E.length>0&&T||k.length>0&&x)&&c.slides.forEach((B,q)=>{c.grid.updateSlide(q,B,c.slides)}),p.watchSlidesProgress&&c.updateSlidesOffset(),t){if(E.length>0&&T){if(typeof e>"u"){const B=c.slidesGrid[V],q=c.slidesGrid[V+L]-B;s?c.setTranslate(c.translate-q):(c.slideTo(V+Math.ceil(L),0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-q,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-q))}else if(o){const B=A?E.length/p.grid.rows:E.length;c.slideTo(c.activeIndex+B,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(k.length>0&&x)if(typeof e>"u"){const B=c.slidesGrid[V],q=c.slidesGrid[V-F]-B;s?c.setTranslate(c.translate-q):(c.slideTo(V-F,0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-q,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-q))}else{const B=A?k.length/p.grid.rows:k.length;c.slideTo(c.activeIndex-B,0,!1,!0)}}if(c.allowSlidePrev=d,c.allowSlideNext=f,c.controller&&c.controller.control&&!l){const B={slideRealIndex:e,direction:r,setTranslate:o,activeSlideIndex:a,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(q=>{!q.destroyed&&q.params.loop&&q.loopFix({...B,slideTo:q.params.slidesPerView===p.slidesPerView?t:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...B,slideTo:c.controller.control.params.slidesPerView===p.slidesPerView?t:!1})}c.emit("loopFix")}function AP(){const e=this,{params:t,slidesEl:r}=e;if(!t.loop||!r||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const o=[];e.slides.forEach(a=>{const i=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;o[i]=a}),e.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),o.forEach(a=>{r.append(a)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var BP={loopCreate:NP,loopFix:DP,loopDestroy:AP};function MP(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const r=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),r.style.cursor="move",r.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function LP(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var PP={setGrabCursor:MP,unsetGrabCursor:LP};function IP(e,t=this){function r(o){if(!o||o===Ln()||o===At())return null;o.assignedSlot&&(o=o.assignedSlot);const a=o.closest(e);return!a&&!o.getRootNode?null:a||r(o.getRootNode().host)}return r(t)}function Vm(e,t,r){const o=At(),{params:a}=e,i=a.edgeSwipeDetection,l=a.edgeSwipeThreshold;return i&&(r<=l||r>=o.innerWidth-l)?i==="prevent"?(t.preventDefault(),!0):!1:!0}function VP(e){const t=this;if(t.destroyed)return;const r=Ln();let o=e;o.originalEvent&&(o=o.originalEvent);const a=t.touchEventsData;if(o.type==="pointerdown"){if(a.pointerId!==null&&a.pointerId!==o.pointerId)return;a.pointerId=o.pointerId}else o.type==="touchstart"&&o.targetTouches.length===1&&(a.touchId=o.targetTouches[0].identifier);if(o.type==="touchstart"){Vm(t,o,o.targetTouches[0].pageX);return}const{params:i,touches:l,enabled:s}=t;if(!s||!i.simulateTouch&&o.pointerType==="mouse"||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let c=o.target;if(i.touchEventsTarget==="wrapper"&&!IL(c,t.wrapperEl)||"which"in o&&o.which===3||"button"in o&&o.button>0||a.isTouched&&a.isMoved)return;const u=!!i.noSwipingClass&&i.noSwipingClass!=="",d=o.composedPath?o.composedPath():o.path;u&&o.target&&o.target.shadowRoot&&d&&(c=d[0]);const f=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,m=!!(o.target&&o.target.shadowRoot);if(i.noSwiping&&(m?IP(f,c):c.closest(f))){t.allowClick=!0;return}if(i.swipeHandler&&!c.closest(i.swipeHandler))return;l.currentX=o.pageX,l.currentY=o.pageY;const p=l.currentX,h=l.currentY;if(!Vm(t,o,p))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=p,l.startY=h,a.touchStartTime=Ji(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(a.allowThresholdMove=!1);let v=!0;c.matches(a.focusableElements)&&(v=!1,c.nodeName==="SELECT"&&(a.isTouched=!1)),r.activeElement&&r.activeElement.matches(a.focusableElements)&&r.activeElement!==c&&(o.pointerType==="mouse"||o.pointerType!=="mouse"&&!c.matches(a.focusableElements))&&r.activeElement.blur();const b=v&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||b)&&!c.isContentEditable&&o.preventDefault(),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",o)}function OP(e){const t=Ln(),r=this;if(r.destroyed)return;const o=r.touchEventsData,{params:a,touches:i,rtlTranslate:l,enabled:s}=r;if(!s||!a.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),c.type==="pointermove"&&(o.touchId!==null||c.pointerId!==o.pointerId))return;let u;if(c.type==="touchmove"){if(u=[...c.changedTouches].find($=>$.identifier===o.touchId),!u||u.identifier!==o.touchId)return}else u=c;if(!o.isTouched){o.startMoving&&o.isScrolling&&r.emit("touchMoveOpposite",c);return}const d=u.pageX,f=u.pageY;if(c.preventedByNestedSwiper){i.startX=d,i.startY=f;return}if(!r.allowTouchMove){c.target.matches(o.focusableElements)||(r.allowClick=!1),o.isTouched&&(Object.assign(i,{startX:d,startY:f,currentX:d,currentY:f}),o.touchStartTime=Ji());return}if(a.touchReleaseOnEdges&&!a.loop)if(r.isVertical()){if(f<i.startY&&r.translate<=r.maxTranslate()||f>i.startY&&r.translate>=r.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else{if(l&&(d>i.startX&&-r.translate<=r.maxTranslate()||d<i.startX&&-r.translate>=r.minTranslate()))return;if(!l&&(d<i.startX&&r.translate<=r.maxTranslate()||d>i.startX&&r.translate>=r.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(o.focusableElements)&&t.activeElement!==c.target&&c.pointerType!=="mouse"&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(o.focusableElements)){o.isMoved=!0,r.allowClick=!1;return}o.allowTouchCallbacks&&r.emit("touchMove",c),i.previousX=i.currentX,i.previousY=i.currentY,i.currentX=d,i.currentY=f;const m=i.currentX-i.startX,p=i.currentY-i.startY;if(r.params.threshold&&Math.sqrt(m**2+p**2)<r.params.threshold)return;if(typeof o.isScrolling>"u"){let $;r.isHorizontal()&&i.currentY===i.startY||r.isVertical()&&i.currentX===i.startX?o.isScrolling=!1:m*m+p*p>=25&&($=Math.atan2(Math.abs(p),Math.abs(m))*180/Math.PI,o.isScrolling=r.isHorizontal()?$>a.touchAngle:90-$>a.touchAngle)}if(o.isScrolling&&r.emit("touchMoveOpposite",c),typeof o.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(o.startMoving=!0),o.isScrolling||c.type==="touchmove"&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;r.allowClick=!1,!a.cssMode&&c.cancelable&&c.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&c.stopPropagation();let h=r.isHorizontal()?m:p,v=r.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;a.oneWayMovement&&(h=Math.abs(h)*(l?1:-1),v=Math.abs(v)*(l?1:-1)),i.diff=h,h*=a.touchRatio,l&&(h=-h,v=-v);const b=r.touchesDirection;r.swipeDirection=h>0?"prev":"next",r.touchesDirection=v>0?"prev":"next";const g=r.params.loop&&!a.cssMode,y=r.touchesDirection==="next"&&r.allowSlideNext||r.touchesDirection==="prev"&&r.allowSlidePrev;if(!o.isMoved){if(g&&y&&r.loopFix({direction:r.swipeDirection}),o.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const $=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});r.wrapperEl.dispatchEvent($)}o.allowMomentumBounce=!1,a.grabCursor&&(r.allowSlideNext===!0||r.allowSlidePrev===!0)&&r.setGrabCursor(!0),r.emit("sliderFirstMove",c)}if(new Date().getTime(),a._loopSwapReset!==!1&&o.isMoved&&o.allowThresholdMove&&b!==r.touchesDirection&&g&&y&&Math.abs(h)>=1){Object.assign(i,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}r.emit("sliderMove",c),o.isMoved=!0,o.currentTranslate=h+o.startTranslate;let _=!0,w=a.resistanceRatio;if(a.touchReleaseOnEdges&&(w=0),h>0?(g&&y&&o.allowThresholdMove&&o.currentTranslate>(a.centeredSlides?r.minTranslate()-r.slidesSizesGrid[r.activeIndex+1]-(a.slidesPerView!=="auto"&&r.slides.length-a.slidesPerView>=2?r.slidesSizesGrid[r.activeIndex+1]+r.params.spaceBetween:0)-r.params.spaceBetween:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>r.minTranslate()&&(_=!1,a.resistance&&(o.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+o.startTranslate+h)**w))):h<0&&(g&&y&&o.allowThresholdMove&&o.currentTranslate<(a.centeredSlides?r.maxTranslate()+r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween+(a.slidesPerView!=="auto"&&r.slides.length-a.slidesPerView>=2?r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween:0):r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-(a.slidesPerView==="auto"?r.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),o.currentTranslate<r.maxTranslate()&&(_=!1,a.resistance&&(o.currentTranslate=r.maxTranslate()+1-(r.maxTranslate()-o.startTranslate-h)**w))),_&&(c.preventedByNestedSwiper=!0),!r.allowSlideNext&&r.swipeDirection==="next"&&o.currentTranslate<o.startTranslate&&(o.currentTranslate=o.startTranslate),!r.allowSlidePrev&&r.swipeDirection==="prev"&&o.currentTranslate>o.startTranslate&&(o.currentTranslate=o.startTranslate),!r.allowSlidePrev&&!r.allowSlideNext&&(o.currentTranslate=o.startTranslate),a.threshold>0)if(Math.abs(h)>a.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,o.currentTranslate=o.startTranslate,i.diff=r.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{o.currentTranslate=o.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&r.freeMode||a.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(o.currentTranslate),r.setTranslate(o.currentTranslate))}function RP(e){const t=this;if(t.destroyed)return;const r=t.touchEventsData;let o=e;o.originalEvent&&(o=o.originalEvent);let a;if(o.type==="touchend"||o.type==="touchcancel"){if(a=[...o.changedTouches].find(w=>w.identifier===r.touchId),!a||a.identifier!==r.touchId)return}else{if(r.touchId!==null||o.pointerId!==r.pointerId)return;a=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(t.browser.isSafari||t.browser.isWebView)))return;r.pointerId=null,r.touchId=null;const{params:i,touches:l,rtlTranslate:s,slidesGrid:c,enabled:u}=t;if(!u||!i.simulateTouch&&o.pointerType==="mouse")return;if(r.allowTouchCallbacks&&t.emit("touchEnd",o),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&i.grabCursor&&t.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}i.grabCursor&&r.isMoved&&r.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=Ji(),f=d-r.touchStartTime;if(t.allowClick){const w=o.path||o.composedPath&&o.composedPath();t.updateClickedSlide(w&&w[0]||o.target,w),t.emit("tap click",o),f<300&&d-r.lastClickTime<300&&t.emit("doubleTap doubleClick",o)}if(r.lastClickTime=Ji(),bg(()=>{t.destroyed||(t.allowClick=!0)}),!r.isTouched||!r.isMoved||!t.swipeDirection||l.diff===0&&!r.loopSwapReset||r.currentTranslate===r.startTranslate&&!r.loopSwapReset){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;let m;if(i.followFinger?m=s?t.translate:-t.translate:m=-r.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:m});return}const p=m>=-t.maxTranslate()&&!t.params.loop;let h=0,v=t.slidesSizesGrid[0];for(let w=0;w<c.length;w+=w<i.slidesPerGroupSkip?1:i.slidesPerGroup){const $=w<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof c[w+$]<"u"?(p||m>=c[w]&&m<c[w+$])&&(h=w,v=c[w+$]-c[w]):(p||m>=c[w])&&(h=w,v=c[c.length-1]-c[c.length-2])}let b=null,g=null;i.rewind&&(t.isBeginning?g=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const y=(m-c[h])/v,_=h<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(f>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(y>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?b:h+_):t.slideTo(h)),t.swipeDirection==="prev"&&(y>1-i.longSwipesRatio?t.slideTo(h+_):g!==null&&y<0&&Math.abs(y)>i.longSwipesRatio?t.slideTo(g):t.slideTo(h))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(o.target===t.navigation.nextEl||o.target===t.navigation.prevEl)?o.target===t.navigation.nextEl?t.slideTo(h+_):t.slideTo(h):(t.swipeDirection==="next"&&t.slideTo(b!==null?b:h+_),t.swipeDirection==="prev"&&t.slideTo(g!==null?g:h))}}function Om(){const e=this,{params:t,el:r}=e;if(r&&r.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:a,snapGrid:i}=e,l=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=l&&t.loop;if((t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s){const c=l?e.virtual.slides:e.slides;e.slideTo(c.length-1,0,!1,!0)}else e.params.loop&&!l?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=a,e.allowSlideNext=o,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}function FP(e){const t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function zP(){const e=this;if(e.destroyed)return;const{wrapperEl:t,rtlTranslate:r,enabled:o}=e;if(!o)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let a;const i=e.maxTranslate()-e.minTranslate();i===0?a=0:a=(e.translate-e.minTranslate())/i,a!==e.progress&&e.updateProgress(r?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function UP(e){const t=this;t.destroyed||(xi(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update())}function HP(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}var xg=(e,t)=>{const r=Ln(),{params:o,el:a,wrapperEl:i,device:l}=e,s=!!o.nested,c=t==="on"?"addEventListener":"removeEventListener",u=t;!a||typeof a=="string"||(r[c]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:s}),a[c]("touchstart",e.onTouchStart,{passive:!1}),a[c]("pointerdown",e.onTouchStart,{passive:!1}),r[c]("touchmove",e.onTouchMove,{passive:!1,capture:s}),r[c]("pointermove",e.onTouchMove,{passive:!1,capture:s}),r[c]("touchend",e.onTouchEnd,{passive:!0}),r[c]("pointerup",e.onTouchEnd,{passive:!0}),r[c]("pointercancel",e.onTouchEnd,{passive:!0}),r[c]("touchcancel",e.onTouchEnd,{passive:!0}),r[c]("pointerout",e.onTouchEnd,{passive:!0}),r[c]("pointerleave",e.onTouchEnd,{passive:!0}),r[c]("contextmenu",e.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&a[c]("click",e.onClick,!0),o.cssMode&&i[c]("scroll",e.onScroll),o.updateOnWindowResize?e[u](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",Om,!0):e[u]("observerUpdate",Om,!0),a[c]("load",e.onLoad,{capture:!0}))};function WP(){const e=this,{params:t}=e;e.onTouchStart=VP.bind(e),e.onTouchMove=OP.bind(e),e.onTouchEnd=RP.bind(e),e.onDocumentTouchStart=HP.bind(e),t.cssMode&&(e.onScroll=zP.bind(e)),e.onClick=FP.bind(e),e.onLoad=UP.bind(e),xg(e,"on")}function jP(){xg(this,"off")}var qP={attachEvents:WP,detachEvents:jP},Rm=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function GP(){const e=this,{realIndex:t,initialized:r,params:o,el:a}=e,i=o.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const l=Ln(),s=o.breakpointsBase==="window"||!o.breakpointsBase?o.breakpointsBase:"container",c=["window","container"].includes(o.breakpointsBase)||!o.breakpointsBase?e.el:l.querySelector(o.breakpointsBase),u=e.getBreakpoint(i,s,c);if(!u||e.currentBreakpoint===u)return;const d=(u in i?i[u]:void 0)||e.originalParams,f=Rm(e,o),m=Rm(e,d),p=e.params.grabCursor,h=d.grabCursor,v=o.enabled;f&&!m?(a.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),e.emitContainerClasses()):!f&&m&&(a.classList.add(`${o.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&o.grid.fill==="column")&&a.classList.add(`${o.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!h?e.unsetGrabCursor():!p&&h&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach($=>{if(typeof d[$]>"u")return;const A=o[$]&&o[$].enabled,E=d[$]&&d[$].enabled;A&&!E&&e[$].disable(),!A&&E&&e[$].enable()});const b=d.direction&&d.direction!==o.direction,g=o.loop&&(d.slidesPerView!==o.slidesPerView||b),y=o.loop;b&&r&&e.changeDirection(),Ht(e.params,d);const _=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),v&&!_?e.disable():!v&&_&&e.enable(),e.currentBreakpoint=u,e.emit("_beforeBreakpoint",d),r&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&w?(e.loopCreate(t),e.updateSlides()):y&&!w&&e.loopDestroy()),e.emit("breakpoint",d)}function YP(e,t="window",r){if(!e||t==="container"&&!r)return;let o=!1;const a=At(),i=t==="window"?a.innerHeight:r.clientHeight,l=Object.keys(e).map(s=>typeof s=="string"&&s.indexOf("@")===0?{value:i*parseFloat(s.substr(1)),point:s}:{value:s,point:s});l.sort((s,c)=>parseInt(s.value,10)-parseInt(c.value,10));for(let s=0;s<l.length;s+=1){const{point:c,value:u}=l[s];t==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(o=c):u<=r.clientWidth&&(o=c)}return o||"max"}var XP={setBreakpoint:GP,getBreakpoint:YP};function KP(e,t){const r=[];return e.forEach(o=>{typeof o=="object"?Object.keys(o).forEach(a=>{o[a]&&r.push(t+a)}):typeof o=="string"&&r.push(t+o)}),r}function JP(){const e=this,{classNames:t,params:r,rtl:o,el:a,device:i}=e,l=KP(["initialized",r.direction,{"free-mode":e.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:o},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);t.push(...l),a.classList.add(...t),e.emitContainerClasses()}function ZP(){const e=this,{el:t,classNames:r}=e;!t||typeof t=="string"||(t.classList.remove(...r),e.emitContainerClasses())}var QP={addClasses:JP,removeClasses:ZP};function eI(){const e=this,{isLocked:t,params:r}=e,{slidesOffsetBefore:o}=r;if(o){const a=e.slides.length-1,i=e.slidesGrid[a]+e.slidesSizesGrid[a]+o*2;e.isLocked=e.size>i}else e.isLocked=e.snapGrid.length===1;r.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),r.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var tI={checkOverflow:eI},Ac={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function nI(e,t){return function(o={}){const a=Object.keys(o)[0],i=o[a];if(typeof i!="object"||i===null){Ht(t,o);return}if(e[a]===!0&&(e[a]={enabled:!0}),a==="navigation"&&e[a]&&e[a].enabled&&!e[a].prevEl&&!e[a].nextEl&&(e[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&e[a]&&e[a].enabled&&!e[a].el&&(e[a].auto=!0),!(a in e&&"enabled"in i)){Ht(t,o);return}typeof e[a]=="object"&&!("enabled"in e[a])&&(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),Ht(t,o)}}var ks={eventsEmitter:QL,update:uP,translate:gP,transition:_P,slide:TP,loop:BP,grabCursor:PP,events:qP,breakpoints:XP,checkOverflow:tI,classes:QP},Es={},Fu=class Hn{constructor(...t){let r,o;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?o=t[0]:[r,o]=t,o||(o={}),o=Ht({},o),r&&!o.el&&(o.el=r);const a=Ln();if(o.el&&typeof o.el=="string"&&a.querySelectorAll(o.el).length>1){const s=[];return a.querySelectorAll(o.el).forEach(c=>{const u=Ht({},o,{el:c});s.push(new Hn(u))}),s}const i=this;i.__swiper__=!0,i.support=kg(),i.device=Eg({userAgent:o.userAgent}),i.browser=Cg(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],o.modules&&Array.isArray(o.modules)&&o.modules.forEach(s=>{typeof s=="function"&&i.modules.indexOf(s)<0&&i.modules.push(s)});const l={};return i.modules.forEach(s=>{s({params:o,swiper:i,extendParams:nI(o,l),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})}),i.params=Ht({},Ht({},Ac,l),Es,o),i.originalParams=Ht({},i.params),i.passedParams=Ht({},o),i.params&&i.params.on&&Object.keys(i.params.on).forEach(s=>{i.on(s,i.params.on[s])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:r,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:r,params:o}=this,a=Qi(An(r,`.${o.slideClass}, swiper-slide`)[0]);return Qi(t)-a}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(r=>r.getAttribute("data-swiper-slide-index")*1===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?t=Math.floor(t/this.params.grid.rows):this.params.grid.fill==="row"&&(t=t%Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const t=this,{slidesEl:r,params:o}=t;t.slides=An(r,`.${o.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,r){const o=this;t=Math.min(Math.max(t,0),1);const a=o.minTranslate(),i=(o.maxTranslate()-a)*t+a;o.translateTo(i,typeof r>"u"?0:r),o.updateActiveIndex(),o.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const r=t.el.className.split(" ").filter(o=>o.indexOf("swiper")===0||o.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",r.join(" "))}getSlideClasses(t){const r=this;return r.destroyed?"":t.className.split(" ").filter(o=>o.indexOf("swiper-slide")===0||o.indexOf(r.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const r=[];t.slides.forEach(o=>{const a=t.getSlideClasses(o);r.push({slideEl:o,classNames:a}),t.emit("_slideClass",o,a)}),t.emit("_slideClasses",r)}slidesPerViewDynamic(t="current",r=!1){const{params:o,slides:a,slidesGrid:i,slidesSizesGrid:l,size:s,activeIndex:c}=this;let u=1;if(typeof o.slidesPerView=="number")return o.slidesPerView;if(o.centeredSlides){let d=a[c]?Math.ceil(a[c].swiperSlideSize):0,f;for(let m=c+1;m<a.length;m+=1)a[m]&&!f&&(d+=Math.ceil(a[m].swiperSlideSize),u+=1,d>s&&(f=!0));for(let m=c-1;m>=0;m-=1)a[m]&&!f&&(d+=a[m].swiperSlideSize,u+=1,d>s&&(f=!0))}else if(t==="current")for(let d=c+1;d<a.length;d+=1)(r?i[d]+l[d]-i[c]<s:i[d]-i[c]<s)&&(u+=1);else for(let d=c-1;d>=0;d-=1)i[c]-i[d]<s&&(u+=1);return u}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:r,params:o}=t;o.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(l=>{l.complete&&xi(t,l)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const l=t.rtlTranslate?t.translate*-1:t.translate,s=Math.min(Math.max(l,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()}let i;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)a(),o.autoHeight&&t.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&t.isEnd&&!o.centeredSlides){const l=t.virtual&&o.virtual.enabled?t.virtual.slides:t.slides;i=t.slideTo(l.length-1,0,!1,!0)}else i=t.slideTo(t.activeIndex,0,!1,!0);i||a()}o.watchOverflow&&r!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,r=!0){const o=this,a=o.params.direction;return t||(t=a==="horizontal"?"vertical":"horizontal"),t===a||t!=="horizontal"&&t!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${a}`),o.el.classList.add(`${o.params.containerModifierClass}${t}`),o.emitContainerClasses(),o.params.direction=t,o.slides.forEach(i=>{t==="vertical"?i.style.width="":i.style.height=""}),o.emit("changeDirection"),r&&o.update()),o}changeLanguageDirection(t){const r=this;r.rtl&&t==="rtl"||!r.rtl&&t==="ltr"||(r.rtl=t==="rtl",r.rtlTranslate=r.params.direction==="horizontal"&&r.rtl,r.rtl?(r.el.classList.add(`${r.params.containerModifierClass}rtl`),r.el.dir="rtl"):(r.el.classList.remove(`${r.params.containerModifierClass}rtl`),r.el.dir="ltr"),r.update())}mount(t){const r=this;if(r.mounted)return!0;let o=t||r.params.el;if(typeof o=="string"&&(o=document.querySelector(o)),!o)return!1;o.swiper=r,o.parentNode&&o.parentNode.host&&o.parentNode.host.nodeName===r.params.swiperElementNodeName.toUpperCase()&&(r.isElement=!0);const a=()=>`.${(r.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(a()):An(o,a())[0];return!l&&r.params.createElements&&(l=Xn("div",r.params.wrapperClass),o.append(l),An(o,`.${r.params.slideClass}`).forEach(s=>{l.append(s)})),Object.assign(r,{el:o,wrapperEl:l,slidesEl:r.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:l,hostEl:r.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||pr(o,"direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||pr(o,"direction")==="rtl"),wrongRTL:pr(l,"display")==="-webkit-box"}),!0}init(t){const r=this;if(r.initialized||r.mount(t)===!1)return r;r.emit("beforeInit"),r.params.breakpoints&&r.setBreakpoint(),r.addClasses(),r.updateSize(),r.updateSlides(),r.params.watchOverflow&&r.checkOverflow(),r.params.grabCursor&&r.enabled&&r.setGrabCursor(),r.params.loop&&r.virtual&&r.params.virtual.enabled?r.slideTo(r.params.initialSlide+r.virtual.slidesBefore,0,r.params.runCallbacksOnInit,!1,!0):r.slideTo(r.params.initialSlide,0,r.params.runCallbacksOnInit,!1,!0),r.params.loop&&r.loopCreate(void 0,!0),r.attachEvents();const o=[...r.el.querySelectorAll('[loading="lazy"]')];return r.isElement&&o.push(...r.hostEl.querySelectorAll('[loading="lazy"]')),o.forEach(a=>{a.complete?xi(r,a):a.addEventListener("load",i=>{xi(r,i.target)})}),Dc(r),r.initialized=!0,Dc(r),r.emit("init"),r.emit("afterInit"),r}destroy(t=!0,r=!0){const o=this,{params:a,el:i,wrapperEl:l,slides:s}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),a.loop&&o.loopDestroy(),r&&(o.removeClasses(),i&&typeof i!="string"&&i.removeAttribute("style"),l&&l.removeAttribute("style"),s&&s.length&&s.forEach(c=>{c.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),c.removeAttribute("style"),c.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(c=>{o.off(c)}),t!==!1&&(o.el&&typeof o.el!="string"&&(o.el.swiper=null),AL(o)),o.destroyed=!0),null}static extendDefaults(t){Ht(Es,t)}static get extendedDefaults(){return Es}static get defaults(){return Ac}static installModule(t){Hn.prototype.__modules__||(Hn.prototype.__modules__=[]);const r=Hn.prototype.__modules__;typeof t=="function"&&r.indexOf(t)<0&&r.push(t)}static use(t){return Array.isArray(t)?(t.forEach(r=>Hn.installModule(r)),Hn):(Hn.installModule(t),Hn)}};Object.keys(ks).forEach(e=>{Object.keys(ks[e]).forEach(t=>{Fu.prototype[t]=ks[e][t]})});Fu.use([JL,ZL]);var Tg=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function jr(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function vo(e,t){const r=["__proto__","constructor","prototype"];Object.keys(t).filter(o=>r.indexOf(o)<0).forEach(o=>{typeof e[o]>"u"?e[o]=t[o]:jr(t[o])&&jr(e[o])&&Object.keys(t[o]).length>0?t[o].__swiper__?e[o]=t[o]:vo(e[o],t[o]):e[o]=t[o]})}function Ng(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Dg(e={}){return e.pagination&&typeof e.pagination.el>"u"}function Ag(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function Bg(e=""){const t=e.split(" ").map(o=>o.trim()).filter(o=>!!o),r=[];return t.forEach(o=>{r.indexOf(o)<0&&r.push(o)}),r.join(" ")}function rI(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function oI({swiper:e,slides:t,passedParams:r,changedParams:o,nextEl:a,prevEl:i,scrollbarEl:l,paginationEl:s}){const c=o.filter(k=>k!=="children"&&k!=="direction"&&k!=="wrapperClass"),{params:u,pagination:d,navigation:f,scrollbar:m,virtual:p,thumbs:h}=e;let v,b,g,y,_,w,$,A;o.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&u.thumbs&&(!u.thumbs.swiper||u.thumbs.swiper.destroyed)&&(v=!0),o.includes("controller")&&r.controller&&r.controller.control&&u.controller&&!u.controller.control&&(b=!0),o.includes("pagination")&&r.pagination&&(r.pagination.el||s)&&(u.pagination||u.pagination===!1)&&d&&!d.el&&(g=!0),o.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||l)&&(u.scrollbar||u.scrollbar===!1)&&m&&!m.el&&(y=!0),o.includes("navigation")&&r.navigation&&(r.navigation.prevEl||i)&&(r.navigation.nextEl||a)&&(u.navigation||u.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(_=!0);const E=k=>{e[k]&&(e[k].destroy(),k==="navigation"?(e.isElement&&(e[k].prevEl.remove(),e[k].nextEl.remove()),u[k].prevEl=void 0,u[k].nextEl=void 0,e[k].prevEl=void 0,e[k].nextEl=void 0):(e.isElement&&e[k].el.remove(),u[k].el=void 0,e[k].el=void 0))};o.includes("loop")&&e.isElement&&(u.loop&&!r.loop?w=!0:!u.loop&&r.loop?$=!0:A=!0),c.forEach(k=>{if(jr(u[k])&&jr(r[k]))Object.assign(u[k],r[k]),(k==="navigation"||k==="pagination"||k==="scrollbar")&&"enabled"in r[k]&&!r[k].enabled&&E(k);else{const P=r[k];(P===!0||P===!1)&&(k==="navigation"||k==="pagination"||k==="scrollbar")?P===!1&&E(k):u[k]=r[k]}}),c.includes("controller")&&!b&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),o.includes("children")&&t&&p&&u.virtual.enabled?(p.slides=t,p.update(!0)):o.includes("virtual")&&p&&u.virtual.enabled&&(t&&(p.slides=t),p.update(!0)),o.includes("children")&&t&&u.loop&&(A=!0),v&&h.init()&&h.update(!0),b&&(e.controller.control=u.controller.control),g&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(u.pagination.el=s),d.init(),d.render(),d.update()),y&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),l.part.add("scrollbar"),e.el.appendChild(l)),l&&(u.scrollbar.el=l),m.init(),m.updateSize(),m.setTranslate()),_&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),Ea(a,e.navigation.arrowSvg),a.part.add("button-next"),e.el.appendChild(a)),(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-prev"),Ea(i,e.navigation.arrowSvg),i.part.add("button-prev"),e.el.appendChild(i))),a&&(u.navigation.nextEl=a),i&&(u.navigation.prevEl=i),f.init(),f.update()),o.includes("allowSlideNext")&&(e.allowSlideNext=r.allowSlideNext),o.includes("allowSlidePrev")&&(e.allowSlidePrev=r.allowSlidePrev),o.includes("direction")&&e.changeDirection(r.direction,!1),(w||A)&&e.loopDestroy(),($||A)&&e.loopCreate(),e.update()}function Fm(e={},t=!0){const r={on:{}},o={},a={};vo(r,Ac),r._emitClasses=!0,r.init=!1;const i={},l=Tg.map(c=>c.replace(/_/,"")),s=Object.assign({},e);return Object.keys(s).forEach(c=>{typeof e[c]>"u"||(l.indexOf(c)>=0?jr(e[c])?(r[c]={},a[c]={},vo(r[c],e[c]),vo(a[c],e[c])):(r[c]=e[c],a[c]=e[c]):c.search(/on[A-Z]/)===0&&typeof e[c]=="function"?t?o[`${c[2].toLowerCase()}${c.substr(3)}`]=e[c]:r.on[`${c[2].toLowerCase()}${c.substr(3)}`]=e[c]:i[c]=e[c])}),["navigation","pagination","scrollbar"].forEach(c=>{r[c]===!0&&(r[c]={}),r[c]===!1&&delete r[c]}),{params:r,passedParams:a,rest:i,events:o}}function aI({el:e,nextEl:t,prevEl:r,paginationEl:o,scrollbarEl:a,swiper:i},l){Ng(l)&&t&&r&&(i.params.navigation.nextEl=t,i.originalParams.navigation.nextEl=t,i.params.navigation.prevEl=r,i.originalParams.navigation.prevEl=r),Dg(l)&&o&&(i.params.pagination.el=o,i.originalParams.pagination.el=o),Ag(l)&&a&&(i.params.scrollbar.el=a,i.originalParams.scrollbar.el=a),i.init(e)}function iI(e,t,r,o,a){const i=[];if(!t)return i;const l=s=>{i.indexOf(s)<0&&i.push(s)};if(r&&o){const s=o.map(a),c=r.map(a);s.join("")!==c.join("")&&l("children"),o.length!==r.length&&l("children")}return Tg.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in e&&s in t)if(jr(e[s])&&jr(t[s])){const c=Object.keys(e[s]),u=Object.keys(t[s]);c.length!==u.length?l(s):(c.forEach(d=>{e[s][d]!==t[s][d]&&l(s)}),u.forEach(d=>{e[s][d]!==t[s][d]&&l(s)}))}else e[s]!==t[s]&&l(s)}),i}var lI=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Cs(e={},t,r){const o=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},i=(l,s)=>{Array.isArray(l)&&l.forEach(c=>{const u=typeof c.type=="symbol";s==="default"&&(s="container-end"),u&&c.children?i(c.children,s):c.type&&(c.type.name==="SwiperSlide"||c.type.name==="AsyncComponentWrapper")||c.componentOptions&&c.componentOptions.tag==="SwiperSlide"?o.push(c):a[s]&&a[s].push(c)})};return Object.keys(e).forEach(l=>{typeof e[l]=="function"&&i(e[l](),l)}),r.value=t.value,t.value=o,{slides:o,slots:a}}function sI(e,t,r){if(!r)return null;const o=d=>{let f=d;return d<0?f=t.length+d:f>=t.length&&(f=f-t.length),f},a=e.value.isHorizontal()?{[e.value.rtlTranslate?"right":"left"]:`${r.offset}px`}:{top:`${r.offset}px`},{from:i,to:l}=r,s=e.value.params.loop?-t.length:0,c=e.value.params.loop?t.length*2:t.length,u=[];for(let d=s;d<c;d+=1)d>=i&&d<=l&&u.length<t.length&&u.push(t[o(d)]);return u.map(d=>{if(d.props||(d.props={}),d.props.style||(d.props.style={}),d.props.swiperRef=e,d.props.style=a,d.type)return(0,n.h)(d.type,{...d.props},d.children);if(d.componentOptions)return(0,n.h)(d.componentOptions.Ctor,{...d.props},d.componentOptions.children)})}var cI={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},swiperElementNodeName:{type:String,default:"SWIPER-CONTAINER"},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},breakpointsBase:{type:String,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},loopAdditionalSlides:{type:Number,default:void 0},loopAddBlankSlides:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideFullyVisibleClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","_virtualUpdated","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slidesUpdated","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(e,{slots:t,emit:r}){const{tag:o,wrapperTag:a}=e,i=(0,n.ref)("swiper"),l=(0,n.ref)(null),s=(0,n.ref)(!1),c=(0,n.ref)(!1),u=(0,n.ref)(null),d=(0,n.ref)(null),f=(0,n.ref)(null),m={value:[]},p={value:[]},h=(0,n.ref)(null),v=(0,n.ref)(null),b=(0,n.ref)(null),g=(0,n.ref)(null),{params:y,passedParams:_}=Fm(e,!1);Cs(t,m,p),f.value=_,p.value=m.value;const w=()=>{Cs(t,m,p),s.value=!0};y.onAny=(E,...k)=>{r(E,...k)},Object.assign(y.on,{_beforeBreakpoint:w,_containerClasses(E,k){i.value=k}});const $={...y};if(delete $.wrapperClass,d.value=new Fu($),d.value.virtual&&d.value.params.virtual.enabled){d.value.virtual.slides=m.value;const E={cache:!1,slides:m.value,renderExternal:k=>{l.value=k},renderExternalUpdate:!1};vo(d.value.params.virtual,E),vo(d.value.originalParams.virtual,E)}(0,n.onUpdated)(()=>{!c.value&&d.value&&(d.value.emitSlidesClasses(),c.value=!0);const{passedParams:E}=Fm(e,!1),k=iI(E,f.value,m.value,p.value,P=>P.props&&P.props.key);f.value=E,(k.length||s.value)&&d.value&&!d.value.destroyed&&oI({swiper:d.value,slides:m.value,passedParams:E,changedParams:k,nextEl:h.value,prevEl:v.value,scrollbarEl:g.value,paginationEl:b.value}),s.value=!1}),(0,n.provide)("swiper",d),(0,n.watch)(l,()=>{(0,n.nextTick)(()=>{lI(d.value)})}),(0,n.onMounted)(()=>{u.value&&(aI({el:u.value,nextEl:h.value,prevEl:v.value,paginationEl:b.value,scrollbarEl:g.value,swiper:d.value},y),r("swiper",d.value))}),(0,n.onBeforeUnmount)(()=>{d.value&&!d.value.destroyed&&d.value.destroy(!0,!1)});function A(E){return y.virtual?sI(d,E,l.value):(E.forEach((k,P)=>{k.props||(k.props={}),k.props.swiperRef=d,k.props.swiperSlideIndex=P}),E)}return()=>{const{slides:E,slots:k}=Cs(t,m,p);return(0,n.h)(o,{ref:u,class:Bg(i.value)},[k["container-start"],(0,n.h)(a,{class:rI(y.wrapperClass)},[k["wrapper-start"],A(E),k["wrapper-end"]]),Ng(e)&&[(0,n.h)("div",{ref:v,class:"swiper-button-prev"}),(0,n.h)("div",{ref:h,class:"swiper-button-next"})],Ag(e)&&(0,n.h)("div",{ref:g,class:"swiper-scrollbar"}),Dg(e)&&(0,n.h)("div",{ref:b,class:"swiper-pagination"}),k["container-end"]])}}},uI={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,{slots:t}){let r=!1;const{swiperRef:o}=e,a=(0,n.ref)(null),i=(0,n.ref)("swiper-slide"),l=(0,n.ref)(!1);function s(d,f,m){f===a.value&&(i.value=m)}(0,n.onMounted)(()=>{!o||!o.value||(o.value.on("_slideClass",s),r=!0)}),(0,n.onBeforeUpdate)(()=>{r||!o||!o.value||(o.value.on("_slideClass",s),r=!0)}),(0,n.onUpdated)(()=>{!a.value||!o||!o.value||(typeof e.swiperSlideIndex<"u"&&(a.value.swiperSlideIndex=e.swiperSlideIndex),o.value.destroyed&&i.value!=="swiper-slide"&&(i.value="swiper-slide"))}),(0,n.onBeforeUnmount)(()=>{!o||!o.value||o.value.off("_slideClass",s)});const c=(0,n.computed)(()=>({isActive:i.value.indexOf("swiper-slide-active")>=0,isVisible:i.value.indexOf("swiper-slide-visible")>=0,isPrev:i.value.indexOf("swiper-slide-prev")>=0,isNext:i.value.indexOf("swiper-slide-next")>=0}));(0,n.provide)("swiperSlide",c);const u=()=>{l.value=!0};return()=>(0,n.h)(e.tag,{class:Bg(`${i.value}`),ref:a,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&o&&o.value&&o.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:u},e.zoom?(0,n.h)("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},[t.default&&t.default(c.value),e.lazy&&!l.value&&(0,n.h)("div",{class:"swiper-lazy-preloader",onVnodeMounted:d=>{d.el&&(d.el.lazyPreloaderManaged=!0)}})]):[t.default&&t.default(c.value),e.lazy&&!l.value&&(0,n.h)("div",{class:"swiper-lazy-preloader",onVnodeMounted:d=>{d.el&&(d.el.lazyPreloaderManaged=!0)}})])}},dI={class:"swi-wrap"},fI={key:0,class:"swi-ctrl"},mI=(0,n.defineComponent)({name:"BglSwiper",__name:"Swiper",props:{items:{default:void 0},index:{default:void 0},variant:{default:"default"},slideWidth:{default:void 0},effect:{default:void 0},direction:{default:"horizontal"},speed:{default:void 0},loop:{type:Boolean,default:void 0},initialSlide:{default:0},slidesPerView:{default:void 0},spaceBetween:{default:void 0},centeredSlides:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},mousewheel:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},navigation:{type:Boolean,default:void 0},pagination:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},coverflowEffect:{default:void 0},breakpoints:{default:void 0},advancedOptions:{default:void 0}},emits:["update:index"],setup(e,{expose:t,emit:r}){const o=e,a=r,i={default:{},testimonial:{slidesPerView:1,autoplay:{delay:5e3,disableOnInteraction:!1},pagination:{clickable:!0},loop:!0,speed:600},gallery:{slidesPerView:1,spaceBetween:0,navigation:!0,loop:!0},cards:{slidesPerView:3,spaceBetween:20,navigation:!0,breakpoints:{320:{slidesPerView:1,spaceBetween:10},768:{slidesPerView:2,spaceBetween:15},1024:{slidesPerView:3,spaceBetween:20}}},coverflow:{effect:"coverflow",slidesPerView:"auto",centeredSlides:!0,loop:!0,navigation:!0,coverflowEffect:{rotate:-2,stretch:0,depth:100,slideShadows:!0,modifier:1,scale:.98}},hero:{slidesPerView:1,autoplay:{delay:4e3},pagination:{clickable:!0},loop:!0,speed:800,effect:"fade"}},l=(0,n.ref)(null),s=(0,n.ref)(!0),c=(0,n.ref)(!1),u=(0,n.ref)(o.index??o.initialSlide??0);let d=!1;const f=(0,n.computed)(()=>{const $={};return o.slideWidth!==void 0&&($.width=typeof o.slideWidth=="number"?`${o.slideWidth}px`:o.slideWidth),$}),m=(0,n.computed)(()=>i[o.variant]),p=(0,n.computed)(()=>o.slidesPerView!==void 0?o.slidesPerView:m.value.slidesPerView!==void 0?m.value.slidesPerView:o.slideWidth!==void 0?"auto":1),h=(0,n.computed)(()=>{const $=(N,V,x)=>N!==void 0?N:m.value[V]!==void 0?m.value[V]:x,A={modules:[FL,zL,UL,HL,qL,WL,jL,GL],effect:$(o.effect,"effect","slide"),direction:o.direction??"horizontal",speed:$(o.speed,"speed",300),loop:$(o.loop,"loop",!1),initialSlide:o.index??o.initialSlide,slidesPerView:p.value,spaceBetween:$(o.spaceBetween,"spaceBetween",0),centeredSlides:$(o.centeredSlides,"centeredSlides",!1),grabCursor:o.grabCursor,keyboard:o.keyboard,mousewheel:o.mousewheel,autoHeight:o.autoHeight},E=$(o.pagination,"pagination",!1);A.pagination=E?typeof E=="boolean"?{clickable:!0}:E:!1;const k=$(o.autoplay,"autoplay",!1);A.autoplay=k?typeof k=="boolean"?{delay:3e3}:k:!1,(A.effect||"slide")==="coverflow"&&(A.coverflowEffect={rotate:0,stretch:0,depth:100,modifier:1,slideShadows:!0,...m.value.coverflowEffect,...o.coverflowEffect});const P=$(o.breakpoints,"breakpoints",void 0);return P&&(A.breakpoints=P),o.advancedOptions?{...A,...o.advancedOptions}:A}),v=(0,n.computed)(()=>({modules:h.value.modules,effect:h.value.effect,direction:h.value.direction,speed:h.value.speed,loop:h.value.loop,initialSlide:h.value.initialSlide,slidesPerView:h.value.slidesPerView,spaceBetween:h.value.spaceBetween,centeredSlides:h.value.centeredSlides,grabCursor:h.value.grabCursor,keyboard:h.value.keyboard,mousewheel:h.value.mousewheel,autoHeight:h.value.autoHeight,navigation:h.value.navigation,pagination:h.value.pagination,autoplay:h.value.autoplay,coverflowEffect:h.value.coverflowEffect,breakpoints:h.value.breakpoints})),b=(0,n.computed)(()=>l.value);function g(){if(l.value&&!d){s.value=l.value.isBeginning,c.value=l.value.isEnd;const $=o.loop?l.value.realIndex:l.value.activeIndex;u.value=$,a("update:index",$)}}function y($){l.value&&l.value.slideTo($)}function _($){l.value&&($==="next"?l.value.slideNext():l.value.slidePrev())}function w($){l.value=$,g()}return(0,n.watch)(()=>o.initialSlide,$=>{$!==void 0&&l.value&&setTimeout(()=>{l.value&&l.value.slideTo($)},1)},{immediate:!0}),(0,n.watch)(()=>o.index,$=>{$!==void 0&&(u.value=$,l.value&&$!==(o.loop?l.value.realIndex:l.value.activeIndex)&&(d=!0,l.value.slideTo($),setTimeout(()=>{d=!1},50)))}),(0,n.watch)(h,$=>{l.value&&(Object.assign(l.value.params,$),l.value.update())},{deep:!0}),t({swiper:b,slideNext:()=>{_("next")},slidePrev:()=>{_("prev")},slideTo:y,update:()=>l.value?.update(),isFirst:s,isLast:c,currentIndex:u}),($,A)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",dI,[(0,n.createVNode)((0,n.unref)(cI),(0,n.mergeProps)(v.value,{class:"swiper",onSwiper:w,onSlideChange:g,onReachBeginning:g,onReachEnd:g,onFromEdge:g}),{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.items,(E,k)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(uI),{key:k,style:(0,n.normalizeStyle)(f.value)},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)($.$slots,"default",{item:E,index:k,currentIndex:u.value})]),_:2},1032,["style"]))),128))]),_:3},16),(0,n.renderSlot)($.$slots,"navigation",{items:e.items||[],currentIndex:u.value,slideTo:y,prev:()=>_("prev"),next:()=>_("next"),isFirst:s.value,isLast:c.value},()=>[e.navigation?((0,n.openBlock)(),(0,n.createElementBlock)("div",fI,[(0,n.createElementVNode)("div",{class:"swi-prev hover",onClick:A[0]||(A[0]=E=>_("prev"))},[(0,n.renderSlot)($.$slots,"prev-button",{prev:()=>_("prev")},()=>[(0,n.createVNode)((0,n.unref)(ge),{name:"chevron_left",class:"user-select-none hover z-99 color-primary",size:2})])]),(0,n.createElementVNode)("div",{class:"swi-next hover",onClick:A[1]||(A[1]=E=>_("next"))},[(0,n.renderSlot)($.$slots,"next-button",{next:()=>_("next")},()=>[(0,n.createVNode)((0,n.unref)(ge),{name:"chevron_right",class:"user-select-none hover z-99 color-primary",size:2})])])])):(0,n.createCommentVNode)("",!0)]),e.pagination?(0,n.renderSlot)($.$slots,"pagination",{key:0}):(0,n.createCommentVNode)("",!0)]))}}),Mg=mI,pI={},hI={class:"flex space-between"};function gI(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",hI,[(0,n.renderSlot)(e.$slots,"default")])}var vI=we(pI,[["render",gI]]),yI=class{singleTapCallbacks=[];doubleTapCallbacks=[];isTouchMode=!1;lastTapTimestamp=0;tappedCount=0;touchMovedLength=0;lastPointerX=0;lastPointerY=0;attach(e){e instanceof Element&&(e.addEventListener("touchstart",this.onTouchStart),e.addEventListener("touchmove",this.onTouchMove),e.addEventListener("touchend",this.onTouchEnd),e.addEventListener("mousedown",this.onMouseDown),e.addEventListener("mouseup",this.onMouseUp),e.addEventListener("mousemove",this.onMouseMove))}detach(e){e.removeEventListener("touchstart",this.onTouchStart),e.removeEventListener("touchmove",this.onTouchMove),e.removeEventListener("touchend",this.onTouchEnd),e.removeEventListener("mousedown",this.onMouseDown),e.removeEventListener("mouseup",this.onMouseUp),e.removeEventListener("mousemove",this.onMouseMove)}onSingleTap(e){typeof e=="function"&&!this.singleTapCallbacks.includes(e)&&this.singleTapCallbacks.push(e)}onDoubleTap(e){typeof e=="function"&&!this.doubleTapCallbacks.includes(e)&&this.doubleTapCallbacks.push(e)}triggerCallbacks(e,t){(e==="single"?this.singleTapCallbacks:this.doubleTapCallbacks).forEach(r=>{r(t)})}onTouchStart=e=>{this.isTouchMode=!0,e.touches.length===1&&this.onPointerDown(e.touches[0].clientX,e.touches[0].clientY)};onTouchMove=e=>{e.touches.length===1&&this.onPointerMove(e.touches[0].clientX,e.touches[0].clientY)};onTouchEnd=()=>{this.isTouchMode&&this.onPointerUp()};onMouseDown=e=>{this.isTouchMode||this.onPointerDown(e.clientX,e.clientY)};onMouseMove=e=>{!this.isTouchMode&&e.button===0&&this.onPointerMove(e.clientX,e.clientY)};onMouseUp=()=>{this.isTouchMode||this.onPointerUp()};onPointerDown(e,t){this.lastPointerX=e,this.lastPointerY=t,this.touchMovedLength=0}onPointerUp(){const e=Date.now();this.touchMovedLength<10&&(e-this.lastTapTimestamp<300?this.tappedCount++:this.tappedCount=1,this.lastTapTimestamp=e,this.triggerCallbacks("single",{clientX:this.lastPointerX,clientY:this.lastPointerY}),this.tappedCount===2&&(this.triggerCallbacks("double",{clientX:this.lastPointerX,clientY:this.lastPointerY}),this.tappedCount=0)),this.touchMovedLength=0}onPointerMove(e,t){const r=this.lastPointerX-e,o=this.lastPointerY-t;this.touchMovedLength+=Math.sqrt(r*r+o*o),this.lastPointerX=e,this.lastPointerY=t}},bI=(0,n.defineComponent)({__name:"Zoomer",props:{minScale:{default:1},maxScale:{default:5},zoom:{},resetTrigger:{},backgroundColor:{default:"transparent"},pivot:{default:"cursor"},zoomingElastic:{type:Boolean,default:!0},limitTranslation:{type:Boolean,default:!0},doubleClickToZoom:{type:Boolean,default:!0},mouseWheelToZoom:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["update:zoom"],setup(e,{expose:t,emit:r}){const o=r,a=(0,n.ref)(),i=(0,n.ref)(1),l=(0,n.ref)(1),s=(0,n.ref)(0),c=(0,n.ref)(0),u=(0,n.ref)(0),d=(0,n.ref)(0),f=(0,n.ref)(0),m=(0,n.ref)(0),p=(0,n.ref)(e.zoom??1),h=(0,n.computed)({get:()=>e.zoom??p.value,set:se=>{p.value=se,o("update:zoom",p.value)}}),v=(0,n.ref)(1),b=(0,n.ref)(0),g=(0,n.ref)(0),y=(0,n.ref)("y"),_=(0,n.ref)(!1),w=(0,n.ref)(-1),$=(0,n.ref)(-1),A=(0,n.ref)(0),E=(0,n.ref)(!0),k=(0,n.ref)(),P=(0,n.ref)(),N=(0,n.ref)(0),V=(0,n.ref)(0),x=(0,n.ref)(0),T=(0,n.ref)(),L=(0,n.computed)(()=>({transform:[`translate(${i.value*d.value}px, ${l.value*m.value}px)`,`scale(${v.value})`].join(" "),transformOrigin:"50% 50%"}));(0,n.watch)(()=>h.value,se=>{const{x:$e,y:z}=R();u.value=Math.max(-$e,Math.min($e,u.value)),f.value=Math.max(-z,Math.min(z,f.value)),se!==1&&(E.value=!1)});function F(){h.value=1,E.value=!0,u.value=0,f.value=0}t({reset:F});function O(se){if(e.disabled)return;let $e=h.value*se;if(e.zoomingElastic){if($e<e.minScale||$e>e.maxScale){let z=Math.log2(se);z*=.2,se=2**z,$e=h.value*se}}else $e<e.minScale?$e=e.minScale:$e>e.maxScale&&($e=e.maxScale);if(se=$e/h.value,h.value=$e,e.pivot!=="image-center"){const z=(w.value-s.value)/i.value,G=($.value-c.value)/l.value;u.value=(.5+u.value-z)*se+z-.5,f.value=(.5+f.value-G)*se+G-.5}}function B(){w.value=s.value+i.value/2,$.value=c.value+l.value/2}function q(se,$e){if(_.value){const z=Date.now(),G=se-w.value,fe=$e-$.value;if(!E.value){const ve=z-x.value;ve>0&&(N.value=G/ve,V.value=fe/ve);const qe=R(),Xe=qe.x,Ie=qe.y,oe=u.value+G/i.value,me=f.value+fe/l.value;u.value=Math.max(-Xe,Math.min(Xe,oe)),f.value=Math.max(-Ie,Math.min(Ie,me)),x.value=z}}w.value=se,$.value=$e}function te(){if(Math.abs(N.value)<.01&&Math.abs(V.value)<.01){N.value=0,V.value=0,T.value&&(cancelAnimationFrame(T.value),T.value=void 0);return}const se=R(),$e=u.value+N.value*16/i.value,z=f.value+V.value*16/l.value;u.value=Math.max(-se.x,Math.min(se.x,$e)),f.value=Math.max(-se.y,Math.min(se.y,z)),N.value*=.95,V.value*=.95,T.value=requestAnimationFrame(te)}const ee=Vr(()=>{le(),E.value=h.value===1,!E.value&&(Math.abs(N.value)>.1||Math.abs(V.value)>.1)?(T.value&&cancelAnimationFrame(T.value),te()):(N.value=0,V.value=0)},50);function le(){if(h.value<e.minScale?h.value=e.minScale:h.value>e.maxScale&&O(e.maxScale/h.value),e.limitTranslation){const se=R();Math.abs(u.value)>se.x&&(u.value*=se.x/Math.abs(u.value)),Math.abs(f.value)>se.y&&(f.value*=se.y/Math.abs(f.value))}}function R(){const se=Math.max(0,(h.value-1)/2);return{x:se,y:se}}function I(se){if(!e.mouseWheelToZoom)return;se.preventDefault();const $e=Date.now();Math.abs(se.deltaY)===120?$e-b.value>50&&(U(se.deltaY),b.value=$e):($e-g.value>50&&(y.value=se.deltaX>se.deltaY?"x":"y",y.value==="y"&&U(se.deltaY)),g.value=$e)}function U(se){O(1.15**(se/120)),ee()}function D(se){K(),_.value=!0,w.value=se.clientX,$.value=se.clientY,x.value=Date.now(),N.value=0,V.value=0,T.value&&(cancelAnimationFrame(T.value),T.value=void 0),document.addEventListener("mousemove",j),document.addEventListener("mouseup",W)}function W(){_.value=!1,ee(),document.removeEventListener("mouseup",W),document.removeEventListener("mousemove",j)}function j(se){!E.value&&h.value>1&&se.stopPropagation(),q(se.clientX,se.clientY)}function Y(se){if(se.touches.length===1)K(),w.value=se.touches[0].clientX,$.value=se.touches[0].clientY,x.value=Date.now(),N.value=0,V.value=0,T.value&&(cancelAnimationFrame(T.value),T.value=void 0),_.value=!0;else if(se.touches.length===2){T.value&&(cancelAnimationFrame(T.value),T.value=void 0),N.value=0,V.value=0,_.value=!0,w.value=(se.touches[0].clientX+se.touches[1].clientX)/2,$.value=(se.touches[0].clientY+se.touches[1].clientY)/2;const $e=se.touches[0].clientX-se.touches[1].clientX,z=se.touches[0].clientY-se.touches[1].clientY;A.value=Math.sqrt($e*$e+z*z)}document.addEventListener("touchend",ae)}function ae(se){se.touches.length===0?(_.value=!1,Math.abs(h.value-1)<.1&&(h.value=1),ee()):se.touches.length===1&&(w.value=se.touches[0].clientX,$.value=se.touches[0].clientY),document.removeEventListener("touchend",ae)}function be(se){if(se.touches.length===1)!E.value&&h.value>1&&se.stopPropagation(),q(se.touches[0].clientX,se.touches[0].clientY);else if(se.touches.length===2){se.stopPropagation();const $e=se.touches[0].clientX-se.touches[1].clientX,z=se.touches[0].clientY-se.touches[1].clientY,G=Math.sqrt($e*$e+z*z);O(G/A.value),A.value=G}}function K(){if(a.value){const se=a.value.getBoundingClientRect();s.value=se.left,c.value=se.top}}function ce(){v.value=ie(v.value,h.value),d.value=ie(d.value,u.value),m.value=ie(m.value,f.value),k.value=window.requestAnimationFrame(ce)}function ie(se,$e){const z=($e-se)*.4;return Math.abs(z)>1e-5?se+z:$e}(0,n.onMounted)(()=>{P.value=new yI,a.value&&P.value.attach(a.value),e.doubleClickToZoom&&(P.value.onDoubleTap(de),a.value&&a.value.addEventListener("dblclick",de)),window.addEventListener("resize",_e),_e(),K(),ce()}),(0,n.onUnmounted)(()=>{a.value&&(P.value?.detach(a.value),e.doubleClickToZoom&&a.value.removeEventListener("dblclick",de)),window.removeEventListener("resize",_e),k.value&&window.cancelAnimationFrame(k.value),T.value&&window.cancelAnimationFrame(T.value)});function de(se){se.clientX>0&&(w.value=se.clientX,$.value=se.clientY);const $e=Math.min(2.5,e.maxScale/2+.5),z=e.maxScale;h.value===1?O($e):h.value<z-.1?O(z/h.value):F()}function _e(){if(a.value){const se=window.getComputedStyle(a.value);i.value=Number.parseFloat(se.width),l.value=Number.parseFloat(se.height),B(),le()}}return(se,$e)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"zoomElement",ref:a,class:"vue-zoomer",style:(0,n.normalizeStyle)({backgroundColor:e.backgroundColor}),onMousewheel:I,"on:DOMMouseScroll":I,onMousedown:D,onMouseout:B,onFocusout:B,onTouchstart:Y,onTouchmove:be},[(0,n.createElementVNode)("div",{class:"zoomer",style:(0,n.normalizeStyle)(L.value)},[(0,n.renderSlot)(se.$slots,"default",{},void 0,!0)],4)],36))}}),Lg=we(bI,[["__scopeId","data-v-f6a534bc"]]);function _I(e){const t=g=>typeof g=="string"?new Date(g):g,r=t(e.startDate),a=(()=>{if(e.endDate!==void 0)return t(e.endDate);const g=new Date(r);return g.setMinutes(g.getMinutes()+45),g})(),l=(g=>!g||g.length===0?!1:/^https?:\/\/.+/.test(g.trim()))(e.location),s=g=>`${g.getFullYear()}${String(g.getMonth()+1).padStart(2,"0")}${String(g.getDate()).padStart(2,"0")}T${String(g.getHours()).padStart(2,"0")}${String(g.getMinutes()).padStart(2,"0")}${String(g.getSeconds()).padStart(2,"0")}`,c=g=>`${g.toISOString().replace(/[-:]/g,"").split(".")[0]}Z`,u=()=>{const g=s(r),y=s(a),_=s(new Date),w=["BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//Add to Calendar//EN","CALSCALE:GREGORIAN","METHOD:PUBLISH","BEGIN:VEVENT",`UID:${_}@addtocalendar`,`DTSTAMP:${_}`,`DTSTART:${g}`,`DTEND:${y}`,`SUMMARY:${e.title}`];if(e.description&&e.description.length>0){const $=e.description.replace(/\n/g,"\\n");w.push(`DESCRIPTION:${$}`)}return e.location&&e.location.length>0&&(w.push(`LOCATION:${e.location}`),l&&w.push(`URL:${e.location}`)),w.push("STATUS:CONFIRMED","SEQUENCE:0","END:VEVENT","END:VCALENDAR"),w.join(`\r
|
|
299
299
|
`)},d=(0,n.computed)(()=>{const g=new URLSearchParams({action:"TEMPLATE",text:e.title,dates:`${c(r)}/${c(a)}`});return e.description&&e.description.length>0&&g.append("details",e.description),e.location&&e.location.length>0&&g.append("location",e.location),`https://calendar.google.com/calendar/render?${g.toString()}`}),f=(0,n.computed)(()=>{const g=new URLSearchParams({path:"/calendar/action/compose",rru:"addevent",subject:e.title,startdt:r.toISOString(),enddt:a.toISOString()});return e.description&&e.description.length>0&&g.append("body",e.description),e.location&&e.location.length>0&&g.append("location",e.location),`https://outlook.live.com/calendar/0/deeplink/compose?${g.toString()}`}),m=(0,n.computed)(()=>{const g=new URLSearchParams({path:"/calendar/action/compose",rru:"addevent",subject:e.title,startdt:r.toISOString(),enddt:a.toISOString()});return e.description&&e.description.length>0&&g.append("body",e.description),e.location&&e.location.length>0&&g.append("location",e.location),`https://outlook.office.com/calendar/0/deeplink/compose?${g.toString()}`}),p=(0,n.computed)(()=>{const g=Math.floor((a.getTime()-r.getTime())/1e3/60),y=new URLSearchParams({v:"60",title:e.title,st:c(r),dur:g.toString()});return e.description&&e.description.length>0&&y.append("desc",e.description),e.location&&e.location.length>0&&y.append("in_loc",e.location),`https://calendar.yahoo.com/?${y.toString()}`}),h=g=>{switch(g){case"google":return d.value;case"apple":case"ics":return"";case"outlook":return m.value;case"outlookcom":return f.value;case"yahoo":return p.value;default:return""}},v=(g="event.ics")=>{const y=u(),_=new Blob([y],{type:"text/calendar;charset=utf-8"}),w=document.createElement("a");w.href=URL.createObjectURL(_),w.download=g,document.body.appendChild(w),w.click(),document.body.removeChild(w),URL.revokeObjectURL(w.href)};return{googleUrl:d,outlookUrl:m,outlookWebUrl:f,yahooUrl:p,generateICS:u,downloadICS:v,getCalendarUrl:h,addToCalendar:g=>{if(g==="apple"||g==="ics")v();else{const y=h(g);y&&window.open(y,"_blank","noopener,noreferrer")}}}}function ja(){const e=(0,n.ref)(0),t=(0,n.ref)(!1),r=(0,n.ref)(0),o=(0,n.ref)(0),a=(0,n.ref)(0),i=(0,n.ref)(null),l=(0,n.ref)(null),s=(0,n.ref)(0),c=(0,n.ref)(0);function u(){s.value=r.value,c.value=o.value,e.value=window.innerWidth,t.value=window.innerWidth<=910,r.value=window.scrollY,o.value=window.scrollX,a.value=window.innerHeight;const d=10;r.value>s.value+d?i.value="down":r.value<s.value-d&&(i.value="up"),o.value>c.value+d?l.value="right":o.value<c.value-d&&(l.value="left")}return(0,n.onMounted)(()=>{window.addEventListener("resize",u),window.addEventListener("scroll",u),u()}),(0,n.onUnmounted)(()=>{window.removeEventListener("resize",u),window.removeEventListener("scroll",u)}),{innerWidth:e,isMobile:t,scrollY:r,scrollX:o,innerHeight:a,dirY:i,dirX:l}}var Pg={omitExtraWLInCodeBlocks:!1,noHeaderId:!1,prefixHeaderId:!1,rawPrefixHeaderId:!1,ghCompatibleHeaderId:!1,rawHeaderId:!1,headerLevelStart:0,parseImgDimensions:!1,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!1,literalMidWordUnderscores:!1,literalMidWordAsterisks:!1,strikethrough:!1,tables:!1,tablesHeaderId:!1,ghCodeBlocks:!0,tasklists:!1,smoothLivePreview:!1,smartIndentationFix:!1,disableForced4SpacesIndentedSublists:!1,simpleLineBreaks:!1,requireSpaceBeforeHeadingText:!1,ghMentions:!1,encodeEmails:!0,openLinksInNewWindow:!0,backslashEscapesHTMLTags:!1,customizedHeaderId:!1,tableHeaderId:!1,underline:!1,completeHTMLDocument:!1,splitAdjacentBlockquotes:!1},zm={},H={helper:{},subParser:((e,t)=>{if(t!==void 0)zm[e]=t;else return zm[e]}),Converter:void 0};H.helper.isString=function(e){return typeof e=="string"||e instanceof String};H.helper.isFunction=function(e){return e&&{}.toString.call(e)==="[object Function]"};H.helper.isArray=function(e){return Array.isArray(e)};H.helper.isUndefined=function(e){return typeof e>"u"};H.helper.forEach=function(e,t){if(H.helper.isUndefined(e))throw new TypeError("obj param is required");if(H.helper.isUndefined(t))throw new TypeError("callback param is required");if(!H.helper.isFunction(t))throw new TypeError("callback param must be a function/closure");if(typeof e.forEach=="function")e.forEach(t);else if(H.helper.isArray(e))for(let r=0;r<e.length;r++)t(e[r],r,e);else if(typeof e=="object")for(let r in e)e.hasOwnProperty(r)&&t(e[r],r,e);else throw new TypeError("obj does not seem to be an array or an iterable object")};function Ig(e,t){return`¨E${t.charCodeAt(0)}E`}H.helper.escapeCharactersCallback=Ig;H.helper.escapeCharacters=function(e,t,r){let o=`([${t.replace(/([[\]\\])/g,"\\$1")}])`;r&&(o=`\\\\${o}`);let a=new RegExp(o,"g");return e=e.replace(a,Ig),e};H.helper.unescapeHTMLEntities=function(e){return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")};var Vg=function(e,t,r,o){let a=o||"",i=a.includes("g"),l=new RegExp(`${t}|${r}`,`g${a.replace(/g/g,"")}`),s=new RegExp(t,a.replace(/g/g,"")),c=[],u=0,d=0,f,m=0,p=0;do for(u=0;f=l.exec(e);)if(s.test(f[0]))u++||(d=l.lastIndex,m=d-f[0].length);else if(u&&!--u){p=f.index+f[0].length;let h={left:{start:m,end:d},match:{start:d,end:f.index},right:{start:f.index,end:p},wholeMatch:{start:m,end:p}};if(c.push(h),!i)return c}while(u&&(l.lastIndex=d));return c};H.helper.matchRecursiveRegExp=function(e,t,r,o){let a=Vg(e,t,r,o),i=[];for(let l=0;l<a.length;++l)i.push([e.slice(a[l].wholeMatch.start,a[l].wholeMatch.end),e.slice(a[l].match.start,a[l].match.end),e.slice(a[l].left.start,a[l].left.end),e.slice(a[l].right.start,a[l].right.end)]);return i};H.helper.replaceRecursiveRegExp=function(e,t,r,o,a){let i;if(H.helper.isFunction(t))i=t;else{let u=t;i=function(){return u}}let l=Vg(e,r,o,a),s=e,c=l.length;if(c>0){let u=[];l[0].wholeMatch.start!==0&&u.push(e.slice(0,l[0].wholeMatch.start));for(let d=0;d<c;++d)u.push(i(e.slice(l[d].wholeMatch.start,l[d].wholeMatch.end),e.slice(l[d].match.start,l[d].match.end),e.slice(l[d].left.start,l[d].left.end),e.slice(l[d].right.start,l[d].right.end))),d<c-1&&u.push(e.slice(l[d].wholeMatch.end,l[d+1].wholeMatch.start));l[c-1].wholeMatch.end<e.length&&u.push(e.slice(l[c-1].wholeMatch.end)),s=u.join("")}return s};H.helper.regexIndexOf=function(e,t,r){if(!H.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(!(t instanceof RegExp))throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";let o=e.substring(r||0).search(t);return o>=0?o+(r||0):o};H.helper.splitAtIndex=function(e,t){if(!H.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]};H.helper.encodeEmailAddress=function(e){let t=[function(r){return`&#${r.charCodeAt(0)};`},function(r){return`&#x${r.charCodeAt(0).toString(16)};`},function(r){return r}];return e=e.replace(/./g,r=>{if(r==="@")r=t[Math.floor(Math.random()*2)](r);else{let o=Math.random();r=o>.9?t[2](r):o>.45?t[1](r):t[0](r)}return r}),e};H.helper.padEnd=function(t,r,o){return r=r>>0,o=String(o||" "),t.length>r?String(t):(r=r-t.length,r>o.length&&(o+=o.repeat(r/o.length)),String(t)+o.slice(0,r))};typeof console>"u"&&(console={warn(e){alert(e)},log(e){alert(e)},error(e){throw e}});H.helper.regexes={asteriskDashAndColon:/([*_:~])/g};H.Converter=function(e){let t={};r();function r(){if(e=e||{},typeof e!="object")throw new TypeError(`Converter expects the passed parameter to be an object, but ${typeof e} was passed instead.`);t={...Pg,...e}}function o(a){let i=a.match(/^\s*/)?.[0].length||0,l=new RegExp(`^\\s{0,${i}}`,"gm");return a.replace(l,"")}this.makeHtml=function(a){if(!a)return a;let i={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return a=a.replace(/¨/g,"¨T"),a=a.replace(/\$/g,"¨D"),a=a.replace(/\r\n/g,`
|
|
300
300
|
`),a=a.replace(/\r/g,`
|
|
301
301
|
`),a=a.replace(/\u00A0/g," "),t.smartIndentationFix&&(a=o(a)),a=`
|
|
@@ -305,7 +305,7 @@ ${a}
|
|
|
305
305
|
`,a=H.subParser("detab")(a,t,i),a=a.replace(/^[ \t]+$/gm,""),a=H.subParser("metadata")(a,t,i),a=H.subParser("hashPreCodeTags")(a,t,i),a=H.subParser("githubCodeBlocks")(a,t,i),a=H.subParser("hashHTMLBlocks")(a,t,i),a=H.subParser("hashCodeTags")(a,t,i),a=H.subParser("stripLinkDefinitions")(a,t,i),a=H.subParser("blockGamut")(a,t,i),a=H.subParser("unhashHTMLSpans")(a,t,i),a=H.subParser("unescapeSpecialChars")(a,t,i),a=a.replace(/¨D/g,"$$"),a=a.replace(/¨T/g,"¨"),a=H.subParser("completeHTMLDocument")(a,t,i),a},this.makeMarkdown=this.makeMd=function(a,i){if(a=a.replace(/\r\n/g,`
|
|
306
306
|
`),a=a.replace(/\r/g,`
|
|
307
307
|
`),a=a.replace(/>[ \t]+</,">¨NBSP;<"),!i)if(typeof window<"u"&&window.document)i=window.document;else throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");let l=i.createElement("div");l.innerHTML=a;let s={preList:f(l)};d(l);let c=l.childNodes,u="";for(let m=0;m<c.length;m++)u+=H.subParser("makeMarkdown.node")(c[m],s);function d(m){for(let p=0;p<m.childNodes.length;++p){let h=m.childNodes[p];h.nodeType===3?!/\S/.test(h.nodeValue)&&!/^ +$/.test(h.nodeValue)?(m.removeChild(h),--p):(h.nodeValue=h.nodeValue.split(`
|
|
308
|
-
`).join(" "),h.nodeValue=h.nodeValue.replace(/(\s)+/g,"$1")):h.nodeType===1&&d(h)}}function f(m){let p=m.querySelectorAll("pre"),h=[];for(let v=0;v<p.length;++v)if(p[v].childElementCount===1&&p[v].firstChild.tagName.toLowerCase()==="code"){let b=p[v].firstChild.innerHTML.trim(),g=p[v].firstChild.getAttribute("data-language")||"";if(g===""){let y=p[v].firstChild.className.split(" ");for(let _=0;_<y.length;++_){let w=y[_].match(/^language-(.+)$/);if(w!==null){g=w[1];break}}}b=H.helper.unescapeHTMLEntities(b),h.push(b),p[v].outerHTML=`<precode language="${g}" precodenum="${v.toString()}"></precode>`}else h.push(p[v].innerHTML),p[v].innerHTML="",p[v].setAttribute("prenum",v.toString());return h}return u}};H.subParser("anchors",(e,t,r)=>{let o=function(a,i,l,s,c,u,d){if(H.helper.isUndefined(d)&&(d=""),l=l.toLowerCase(),a.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)s="";else if(!s)if(l||(l=i.toLowerCase().replace(/ ?\n/g," ")),s=`#${l}`,!H.helper.isUndefined(r.gUrls[l]))s=r.gUrls[l],H.helper.isUndefined(r.gTitles[l])||(d=r.gTitles[l]);else return a;s=s.replace(H.helper.regexes.asteriskDashAndColon,H.helper.escapeCharactersCallback);let f=`<a href="${s}"`;return d!==""&&d!==null&&d!==void 0&&(d=d.replace(/"/g,"""),d=d.replace(H.helper.regexes.asteriskDashAndColon,H.helper.escapeCharactersCallback),f+=` title="${d}"`),t.openLinksInNewWindow&&!/^#/.test(s)&&(f+=' rel="noopener noreferrer" target="¨E95Eblank"'),f+=`>${i}</a>`,f};return e=e.replace(/\[((?:\[[^\]]*\]|[^[\]])*)\] ?(?:\n *)?\[(.*?)\]()()()()/g,o),e=e.replace(/\[((?:\[[^\]]*\]|[^[\]])*)\]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,o),e=e.replace(/\[((?:\[[^\]]*\]|[^[\]])*)\]()[ \t]*\([ \t]?<?(\S+?(?:\(\S*?\)\S*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,o),e=e.replace(/\[([^[\]]+)\]()()()()()/g,o),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(a,i,l,s,c)=>{if(l==="\\")return i+s;if(!H.helper.isString(t.ghMentionsLink))throw new TypeError("ghMentionsLink option must be a string");let u=t.ghMentionsLink.replace(/\{u\}/g,c),d="";return t.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),`${i}<a href="${u}"${d}>${s}</a>`})),e});var
|
|
308
|
+
`).join(" "),h.nodeValue=h.nodeValue.replace(/(\s)+/g,"$1")):h.nodeType===1&&d(h)}}function f(m){let p=m.querySelectorAll("pre"),h=[];for(let v=0;v<p.length;++v)if(p[v].childElementCount===1&&p[v].firstChild.tagName.toLowerCase()==="code"){let b=p[v].firstChild.innerHTML.trim(),g=p[v].firstChild.getAttribute("data-language")||"";if(g===""){let y=p[v].firstChild.className.split(" ");for(let _=0;_<y.length;++_){let w=y[_].match(/^language-(.+)$/);if(w!==null){g=w[1];break}}}b=H.helper.unescapeHTMLEntities(b),h.push(b),p[v].outerHTML=`<precode language="${g}" precodenum="${v.toString()}"></precode>`}else h.push(p[v].innerHTML),p[v].innerHTML="",p[v].setAttribute("prenum",v.toString());return h}return u}};H.subParser("anchors",(e,t,r)=>{let o=function(a,i,l,s,c,u,d){if(H.helper.isUndefined(d)&&(d=""),l=l.toLowerCase(),a.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)s="";else if(!s)if(l||(l=i.toLowerCase().replace(/ ?\n/g," ")),s=`#${l}`,!H.helper.isUndefined(r.gUrls[l]))s=r.gUrls[l],H.helper.isUndefined(r.gTitles[l])||(d=r.gTitles[l]);else return a;s=s.replace(H.helper.regexes.asteriskDashAndColon,H.helper.escapeCharactersCallback);let f=`<a href="${s}"`;return d!==""&&d!==null&&d!==void 0&&(d=d.replace(/"/g,"""),d=d.replace(H.helper.regexes.asteriskDashAndColon,H.helper.escapeCharactersCallback),f+=` title="${d}"`),t.openLinksInNewWindow&&!/^#/.test(s)&&(f+=' rel="noopener noreferrer" target="¨E95Eblank"'),f+=`>${i}</a>`,f};return e=e.replace(/\[((?:\[[^\]]*\]|[^[\]])*)\] ?(?:\n *)?\[(.*?)\]()()()()/g,o),e=e.replace(/\[((?:\[[^\]]*\]|[^[\]])*)\]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,o),e=e.replace(/\[((?:\[[^\]]*\]|[^[\]])*)\]()[ \t]*\([ \t]?<?(\S+?(?:\(\S*?\)\S*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,o),e=e.replace(/\[([^[\]]+)\]()()()()()/g,o),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(a,i,l,s,c)=>{if(l==="\\")return i+s;if(!H.helper.isString(t.ghMentionsLink))throw new TypeError("ghMentionsLink option must be a string");let u=t.ghMentionsLink.replace(/\{u\}/g,c),d="";return t.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),`${i}<a href="${u}"${d}>${s}</a>`})),e});var wI=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,$I=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()[\]])?(\1)?(?=\s|$)(?!["<>])/gi,kI=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,EI=/(^|\s)(?:mailto:)?([\w!#$%&'*+-/=?^`{|}~]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,CI=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,Bc=function(e){return function(t,r,o,a,i,l,s){o=o.replace(H.helper.regexes.asteriskDashAndColon,H.helper.escapeCharactersCallback);let c=o,u="",d="",f=r||"",m=s||"";return/^www\./i.test(o)&&(o=o.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&l&&(u=l),e.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),`${f}<a href="${o}"${d}>${c}</a>${u}${m}`}},Og=function(e,t){return function(r,o,a){let i="mailto:";return o=o||"",a=H.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(i=H.helper.encodeEmailAddress(i+a),a=H.helper.encodeEmailAddress(a)):i=i+a,`${o}<a href="${i}">${a}</a>`}};H.subParser("autoLinks",(e,t,r)=>(e=e.replace(kI,Bc(t)),e=e.replace(CI,Og(t,r)),e));H.subParser("simplifiedAutoLinks",(e,t,r)=>(t.simplifiedAutoLink&&(t.excludeTrailingPunctuationFromURLs?e=e.replace($I,Bc(t)):e=e.replace(wI,Bc(t)),e=e.replace(EI,Og(t,r))),e));H.subParser("blockGamut",(e,t,r)=>(e=H.subParser("blockQuotes")(e,t,r),e=H.subParser("headers")(e,t,r),e=H.subParser("horizontalRule")(e,t,r),e=H.subParser("lists")(e,t,r),e=H.subParser("codeBlocks")(e,t,r),e=H.subParser("tables")(e,t,r),e=H.subParser("hashHTMLBlocks")(e,t,r),e=H.subParser("paragraphs")(e,t,r),e));H.subParser("blockQuotes",(e,t,r)=>{e=`${e}
|
|
309
309
|
|
|
310
310
|
`;let o=/(^ {0,3}>.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(o=/^ {0,3}>[\s\S]*?\n\n/gm),e=e.replace(o,a=>(a=a.replace(/^[ \t]*>[ \t]?/gm,""),a=a.replace(/¨0/g,""),a=a.replace(/^[ \t]+$/gm,""),a=H.subParser("githubCodeBlocks")(a,t,r),a=H.subParser("blockGamut")(a,t,r),a=a.replace(/(^|\n)/g,"$1 "),a=a.replace(/(\s*<pre>[^\r]+?<\/pre>)/g,(i,l)=>{let s=l;return s=s.replace(/^ {2}/gm,"¨0"),s=s.replace(/¨0/g,""),s}),H.subParser("hashBlock")(`<blockquote>
|
|
311
311
|
${a}
|
|
@@ -426,8 +426,8 @@ ${t.preList[o]}
|
|
|
426
426
|
`);break;case"code":o=H.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":o=H.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":o=H.subParser("makeMarkdown.strong")(e,t);break;case"del":o=H.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":o=H.subParser("makeMarkdown.links")(e,t);break;case"img":o=H.subParser("makeMarkdown.image")(e,t);break;default:o=`${e.outerHTML}
|
|
427
427
|
|
|
428
428
|
`}return o});H.subParser("makeMarkdown.paragraph",(e,t)=>{let r="";if(e.hasChildNodes()){let o=e.childNodes,a=o.length;for(let i=0;i<a;++i)r+=H.subParser("makeMarkdown.node")(o[i],t)}return r=r.trim(),r});H.subParser("makeMarkdown.pre",(e,t)=>{let r=e.getAttribute("prenum");return`<pre>${t.preList[r]}</pre>`});H.subParser("makeMarkdown.strikethrough",(e,t)=>{let r="";if(e.hasChildNodes()){r+="~~";let o=e.childNodes,a=o.length;for(let i=0;i<a;++i)r+=H.subParser("makeMarkdown.node")(o[i],t);r+="~~"}return r});H.subParser("makeMarkdown.strong",(e,t)=>{let r="";if(e.hasChildNodes()){r+="**";let o=e.childNodes,a=o.length;for(let i=0;i<a;++i)r+=H.subParser("makeMarkdown.node")(o[i],t);r+="**"}return r});H.subParser("makeMarkdown.table",(e,t)=>{let r="",o=[[],[]],a=e.querySelectorAll("thead>tr>th"),i=e.querySelectorAll("tbody>tr");for(let s=0;s<a.length;++s){let c=H.subParser("makeMarkdown.tableCell")(a[s],t),u="---";if(a[s].hasAttribute("style"))switch(a[s].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":u=":---";break;case"text-align:right;":u="---:";break;case"text-align:center;":u=":---:";break}o[0][s]=c.trim(),o[1][s]=u}for(let s=0;s<i.length;++s){let c=o.push([])-1,u=i[s].getElementsByTagName("td");for(let d=0;d<a.length;++d){let f=" ";typeof u[d]<"u"&&(f=H.subParser("makeMarkdown.tableCell")(u[d],t)),o[c].push(f)}}let l=3;for(let s=0;s<o.length;++s)for(let c=0;c<o[s].length;++c){let u=o[s][c].length;u>l&&(l=u)}for(let s=0;s<o.length;++s){for(let c=0;c<o[s].length;++c)s===1?o[s][c].slice(-1)===":"?o[s][c]=`${H.helper.padEnd(o[s][c].slice(-1),l-1,"-")}:`:o[s][c]=H.helper.padEnd(o[s][c],l,"-"):o[s][c]=H.helper.padEnd(o[s][c],l);r+=`| ${o[s].join(" | ")} |
|
|
429
|
-
`}return r.trim()});H.subParser("makeMarkdown.tableCell",(e,t)=>{let r="";if(!e.hasChildNodes())return"";let o=e.childNodes,a=o.length;for(let i=0;i<a;++i)r+=H.subParser("makeMarkdown.node")(o[i],t,!0);return r.trim()});H.subParser("makeMarkdown.txt",e=>{let t=e.nodeValue;return t=t.replace(/ +/g," "),t=t.replace(/¨NBSP;/g," "),t=H.helper.unescapeHTMLEntities(t),t=t.replace(/([*_~|`])/g,"\\$1"),t=t.replace(/^(\s*)>/g,"\\$1>"),t=t.replace(/^#/gm,"\\#"),t=t.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),t=t.replace(/^( {0,3}\d+)\./gm,"$1\\."),t=t.replace(/^( {0,3})([+-])/gm,"$1\\$2"),t=t.replace(/\](\s*)\(/g,"\\]$1\\("),t=t.replace(/^ {0,3}\[([\S \t]*?)\]:/gm,"\\[$1]:"),t});function CI(){try{const{locale:e}=$r().global;return typeof e=="string"?e:e.value}catch{return typeof navigator>"u"?"en-US":navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language}}function li(e){if(e instanceof Date)return e;if(typeof e=="number")return new Date(e);let t=e.trim().replace(" ","T");return!t.endsWith("Z")&&!t.includes("+")&&!/[+-]\d{2}:\d{2}$/.test(t)&&(t+="Z"),new Date(t)}const SI=Object.assign(li,{iso(e){return li(e).toISOString()},date(e){return li(e).toISOString().slice(0,10)},ms(e){return li(e).getTime()}});function Rg(e){const t=-e.getTimezoneOffset();return`${t>=0?"+":"-"}${String(Math.floor(Math.abs(t)/60)).padStart(2,"0")}:${String(Math.abs(t)%60).padStart(2,"0")}`}function xI(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}T${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}:${String(e.getSeconds()).padStart(2,"0")}.${String(e.getMilliseconds()).padStart(3,"0")}${Rg(e)}`}const TI={iso(e=new Date){return xI(e)},offset(e=new Date){return Rg(e)}},Io={SECOND:1e3,MINUTE:6e4,HOUR:36e5,DAY:864e5,WEEK:6048e5},{SECOND:NI}=Io,{MINUTE:DI}=Io,{HOUR:AI}=Io,{DAY:BI}=Io,{WEEK:MI}=Io;function dn(e,t){const r=new Date(e);return t.days&&r.setDate(r.getDate()+t.days),t.hours&&r.setHours(r.getHours()+t.hours),t.minutes&&r.setMinutes(r.getMinutes()+t.minutes),t.seconds&&r.setSeconds(r.getSeconds()+t.seconds),t.weeks&&r.setDate(r.getDate()+t.weeks*7),t.months&&r.setMonth(r.getMonth()+t.months),t.years&&r.setFullYear(r.getFullYear()+t.years),r}var LI={seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:0};function zu(e,t,r="days"){const o=new Date(e),a=new Date(t);return r==="months"?(a.getFullYear()-o.getFullYear())*12+(a.getMonth()-o.getMonth()):Math.floor((a.getTime()-o.getTime())/LI[r])}var yt=class Mc{_date;constructor(t){this._date=new Date(t)}add(t,r="days"){return new Mc(dn(this._date,{[r]:t}))}subtract(t,r="days"){return new Mc(dn(this._date,{[r]:-t}))}diff(t,r="days"){return zu(this._date,t,r)}isBefore(t){return this._date.getTime()<new Date(t).getTime()}isAfter(t){return this._date.getTime()>new Date(t).getTime()}isSameDay(t){const r=new Date(t);return this._date.getFullYear()===r.getFullYear()&&this._date.getMonth()===r.getMonth()&&this._date.getDate()===r.getDate()}toDate(){return new Date(this._date)}valueOf(){return this._date.getTime()}toString(){return this._date.toISOString()}};function PI(e){return new yt(e!==void 0?e:new Date)}const II=Object.assign(PI,{get now(){return new yt(new Date)},get today(){const e=new Date;return e.setHours(0,0,0,0),new yt(e)},get tomorrow(){return new yt(dn(new Date,{days:1}))},get yesterday(){return new yt(dn(new Date,{days:-1}))},get nextWeek(){return new yt(dn(new Date,{weeks:1}))},get lastWeek(){return new yt(dn(new Date,{weeks:-1}))},get firstOfMonth(){const e=new Date;return new yt(new Date(e.getFullYear(),e.getMonth(),1))},get lastOfMonth(){const e=new Date;return new yt(new Date(e.getFullYear(),e.getMonth()+1,0))},get firstOfWeek(){const e=new Date;return new yt(new Date(e.setDate(e.getDate()-e.getDay())))},get lastOfWeek(){const e=new Date;return new yt(new Date(e.setDate(e.getDate()+(6-e.getDay()))))},get firstOfNextMonth(){const e=new Date;return new yt(new Date(e.getFullYear(),e.getMonth()+1,1))},get lastOfNextMonth(){const e=new Date;return new yt(new Date(e.getFullYear(),e.getMonth()+2,0))},get firstOfNextYear(){return new yt(new Date(new Date().getFullYear()+1,0,1))},in:(e,t="days")=>new yt(dn(new Date,{[t]:e})),ago:(e,t="days")=>new yt(dn(new Date,{[t]:-e})),diff:(e,t,r="days")=>zu(e,t,r),isBefore:(e,t)=>new Date(e).getTime()<new Date(t).getTime(),isAfter:(e,t)=>new Date(e).getTime()>new Date(t).getTime(),isSameDay:(e,t)=>{const r=new Date(e),o=new Date(t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()&&r.getDate()===o.getDate()}});function Fg(e,t){if(t.timeZone==="UTC"){const r=new Date(e.getTime());return r.setMinutes(r.getMinutes()+e.getTimezoneOffset()),r}try{const r=new Intl.DateTimeFormat("en-US",{...t,month:"numeric"}).formatToParts(e),o={};for(const a of r)a.type!=="literal"&&a.type!=="timeZoneName"&&(o[a.type]=Number.parseInt(a.value,10));return new Date(o.year,(o.month||1)-1,o.day,o.hour||0,o.minute||0,o.second||0)}catch{return e}}function Uu(e,t,r){const o=r?.timeZone?Fg(e,r):e,a=o.getFullYear().toString();return{AmPm:o.toLocaleString(t,{hour:"numeric",hour12:!0,minute:"numeric"}).split(" ")[1],DD:String(o.getDate()).padStart(2,"0"),DDD:o.toLocaleString(t,{weekday:"short"}),DDDD:o.toLocaleString(t,{weekday:"long"}),HH:String(o.getHours()).padStart(2,"0"),mm:String(o.getMinutes()).padStart(2,"0"),MM:String(o.getMonth()+1).padStart(2,"0"),MMM:o.toLocaleString(t,{month:"short"}),MMMM:o.toLocaleString(t,{month:"long"}),ss:String(o.getSeconds()).padStart(2,"0"),sss:String(o.getMilliseconds()).padStart(3,"0"),YY:a.slice(-2),YYYY:a}}var VI=Uu(new Date,"en-US"),OI=Object.keys(VI).sort((e,t)=>t.length-e.length),RI=new RegExp(OI.join("|"),"g");function it(e,t){if(!e)return"";let r,o,a,i={};if(typeof t=="string"?r=t:t&&typeof t=="object"&&(r=t.format,o=t.locale,a=t.tz,i=t),r==="ISO"||r==="ISO8601"){const l=new Date(e);return Number.isNaN(l.getTime())?"":l.toISOString()}r=r||"DD.MM.YY",o=o||CI();try{let l=new Date(e);if(typeof e=="string"&&Number.isNaN(l.getTime())){const f=e.split(/[/.-]/);if(f.length===3){const[m,p,h]=f.map(v=>Number.parseInt(v,10));if(!Number.isNaN(m)&&!Number.isNaN(p)&&!Number.isNaN(h)){const v=h<100?2e3+h:h;l=new Date(v,p-1,m)}}}if(Number.isNaN(l.getTime()))return"";const s={day:"numeric",hour:"2-digit",hour12:i.hour12===void 0?!0:i.hour12,minute:"2-digit",month:"long",second:"2-digit",timeZone:a,weekday:"long",year:"numeric"},c=Uu(l,o,s),u=new Intl.DateTimeFormat(o,s).formatToParts(l),d={};for(const f of u)f.type!=="literal"&&(d[f.type]=f.value);return d.month&&(c.MMM=d.month.substring(0,3),c.MMMM=d.month),d.weekday&&(c.DDD=new Intl.DateTimeFormat(o,{weekday:"short",timeZone:a}).format(l),c.DDDD=d.weekday),d.dayPeriod&&(c.AmPm=d.dayPeriod),r.replace(RI,f=>c[f])}catch{return""}}const FI=it;function Ti(e,t){if(!t)return{matches:!0,score:0};const r=e.toLowerCase(),o=t.toLowerCase();if(r.includes(o))return{matches:!0,score:1e3};const a=o.split(/\s+/).filter(f=>f.length>0),i=r.split(/\s+/);let l=0;for(const f of a)i.some(m=>m.includes(f))&&l++;if(l===a.length)return{matches:!0,score:100+l*10};let s=0,c=0,u=0,d=0;for(let f=0;f<r.length&&s<o.length;f++)r[f]===o[s]?(s++,c++,d++,u=Math.max(u,c)):c=0;return s===o.length?{matches:!0,score:u*5+d}:{matches:!1,score:0}}function zI(...e){return e.filter(Boolean).join(", ")}function UI(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function HI(e){const t=e;return t.label??t.name??t.title??String(t.id??"")}function WI(e){const t=e;return t.value??t.key??t.id??""}function jI(e){if(Array.isArray(e))return e.map(r=>({...r,label:HI(r),value:WI(r)}));const t=e;return r=>r.map(o=>({...o,label:typeof t.label=="function"?t.label(o):String(o[t.label]??""),value:o[t.value]}))}function qI(e){return Array.isArray(e)?e:"data"in e?e.data:"items"in e?e.items:[]}function GI(e,t,r){const o=r?.timeout??1e4,a=e.length>0;let i=null;async function l(c){const u=a?e(c??""):e();return t(qI(await Promise.race([u,new Promise((d,f)=>setTimeout(()=>{f(new Error("Request timeout"))},o))])))}const s=async c=>{try{return a?await l(c):(i||(i=await l()),c?i.filter(u=>{const{label:d}=u;return typeof d!="string"?!0:Ti(d,c).matches}).sort((u,d)=>{const f=u.label??"";return Ti(d.label??"",c).score-Ti(f,c).score}):i)}catch{return[]}};return s.clearCache=()=>{i=null},s}function Lc(e,t){return t==="titleCase"?e.split("_").map(r=>r[0].toUpperCase()+r.slice(1).toLocaleLowerCase()).join(" "):t==="pascal"?e.split("_").map(r=>r[0].toUpperCase()+r.slice(1).toLocaleLowerCase()).join(""):t==="camel"?e.split("_").map((r,o)=>o===0?r:r[0].toUpperCase()+r.slice(1)).join(""):t==="snake"?[...e].map(r=>r===r.toUpperCase()?`_${r.toLowerCase()}`:r).join(""):e}var Ss=new Map;function YI(e,t=500){clearTimeout(Ss.get(e));const r=setTimeout(()=>{e(),Ss.delete(e)},t);Ss.set(e,r)}function XI(e){return e.toLowerCase().replace(/[^a-z0-9-\s]/g,"").split(/[\s-]+/).join("-")}function qa(e){return e===void 0?e:e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")||e}async function zg(e,t){await navigator.clipboard.writeText(e),t&&t("Copied to clipboard")}function Ug(...e){return e=e.flatMap(t=>t.split(/\s/)),e.map(t=>t.charAt(0)).join("")}function Hg(e){if(!e||typeof document>"u")return e;const t=document.createElement("template");t.innerHTML=e;const r=o=>{for(const a of Array.from(o.children)){const i=a.tagName.toLowerCase();if(["script","iframe","object","embed","link","meta","base","form"].includes(i)){a.remove();continue}for(const l of Array.from(a.attributes)){const s=l.name.toLowerCase(),c=l.value.trim().toLowerCase();(s.startsWith("on")||(s==="href"||s==="src"||s==="xlink:href")&&(c.startsWith("javascript:")||c.startsWith("data:")))&&a.removeAttribute(l.name)}r(a)}};return r(t.content),t.innerHTML}function KI(e,t){e.key==="Escape"&&t()}function Wg(e,t,...r){return r.map(o=>typeof o=="function"?o(e,t):o).join(" ")}function Pc(e,t,r){if(!e)return{};const o=["class","onClick","$el"],a=Object.entries(e).filter(([l])=>!o.includes(l)).map(([l,s])=>[l,typeof s=="function"?s(t,r):s]),i=Object.fromEntries(a);for(const l of o.slice(1))e[l]&&(i[l]=e[l]);return i}function JI(e,t){return e["v-if"]===void 0?!0:typeof e["v-if"]=="boolean"?e["v-if"]:typeof e["v-if"]=="string"?!0:typeof e["v-if"]=="function"?e["v-if"]?.(t?.[e.id],t):!0}function ZI(e,t){if(t)return e?e[t]:void 0}const Ic=e=>!Number.isNaN(Date.parse(e));function jg(e,t){const r=Array.from(new Set((e??[]).flatMap(Object.keys))).map(o=>({id:o,label:qa(o),transform:a=>["created_at","updated_at"].includes(o)?a&&new Date(a).toLocaleString():a}));return t?r.filter(o=>t.includes(o.id)||!o.id):r}function Hu(e=100){return new Promise(t=>setTimeout(t,e))}var jo=new Map;async function Ga(e,t){const r=t?.id||e;if(await Hu(1),jo.has(r)){const a=jo.get(r);if(a)return a}if(t?.id&&document.getElementById(t.id)||document.querySelector(`script[src="${e}"]`))return Promise.resolve();const o=new Promise((a,i)=>{const l=document.createElement("script");l.src=e,t?.id&&(l.id=t.id),l.onload=()=>{a(),jo.delete(r)},l.onerror=s=>{i(new Error(String(s))),jo.delete(r)},document.head.append(l)});return jo.set(r,o),o}async function Sa(e,{timeout:t=1e4,interval:r=50}={}){const o=Date.now();for(;window[e]===void 0;){if(Date.now()-o>t)throw new Error(`awaitGlobal: window.${e} not available after ${t}ms`);await Hu(r)}return window[e]}function Vc(e){return new Promise((t,r)=>{if(document.querySelector(`link[href="${e}"]`)){t();return}const o=document.createElement("link");o.href=e,o.rel="stylesheet",o.onload=()=>{t()},o.onerror=r,document.head.append(o)})}function Wu(e){return e.startsWith("https://")?e:(e=e.replace(/http:\/\//,""),`https://${e}`)}function cn(e,t="px"){return typeof e=="number"?`${e}${t}`:e}var QI=/^https?:\/\/|^\/\//;function fn(e){if(!(e==null||e===""))return QI.test(e)||e.startsWith("/")?e:e.startsWith("static/")||e.startsWith("images/")?`/${e}`:`https://files.bagel.design/${e}`}function la(e,t,r=void 0){if(!t)return e;const o=t.split(/[.[]/);let a=e;for(const i of o){if(!a||typeof a!="object"||!(i in a))return r;a=a[i]}return a??r}var eV=e=>e.replace(/http:\/\//,"//");function qg(e,t){try{return e()}catch(r){t&&t(r)}}function ju(e,t){if(typeof document>"u")return;const r=document.createElement("a");r.target="_blank",r.rel="noopener noreferrer";const o=t!==void 0&&t!=="";if(typeof e=="string"){r.href=eV(e);const a=e.split("/").pop();r.download=o?t:a!==void 0&&a!==""?a:"download"}else{const a=URL.createObjectURL(e);r.href=a,r.download=o?t:"download",setTimeout(()=>qg(()=>{URL.revokeObjectURL(a)}),0)}document.body.appendChild(r),r.click(),document.body.removeChild(r)}var tV=e=>Object.keys(e),Um=e=>e?.split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");function Hm(e,t){return t?e.map(r=>{const o={};return t.forEach(a=>{const{id:i,transform:l,label:s}=a;if(i){const c=la(r,i),u=s||i;o[u]=l?.(c,r)||c||""}}),o}):e}function nV(e){const t=new Set;return e.forEach(r=>{Object.keys(r).forEach(o=>t.add(o))}),Array.from(t).map(r=>({id:r,label:r}))}function rV(){const e=(0,n.ref)(!1);async function t(){return e.value||(await Ga("https://cdn.jsdelivr.net/npm/xlsx/dist/xlsx.full.min.js"),e.value=!0),window.XLSX}async function r(f,m="data",p){const h=(0,n.toValue)(p)||nV(f),v=await t(),b=Hm(f,h),g=h.length>0?h.map(w=>{const{id:$,label:A}=w;return{v:A||$,t:"s"}}):[],y=v.utils.json_to_sheet(b);g.length>0&&v.utils.sheet_add_aoa(y,[g.map(w=>w.v)],{origin:"A1"});const _=v.utils.book_new();v.utils.book_append_sheet(_,y,"Sheet1"),m=m.endsWith(".xlsx")?m:`${m}.xlsx`,v.writeFile(_,m)}async function o(f,m="data",p){const h=p?p.map(y=>y.id).filter(Boolean):[...new Set(f.flatMap(tV))],v=p?p.map(y=>{const{label:_,id:w}=y;return _||Um(w)}):h.map(Um),b=Hm(f,p),g=[v.join(","),...b.map(y=>h.map(_=>{const w=y[_]!==void 0?y[_]:"";return`"${String(w).replace(/"/g,'""')}"`}).join(","))].join(`
|
|
430
|
-
`);m=m.endsWith(".csv")?m:`${m}.csv`,ju(new Blob([g],{type:"text/csv;charset=utf-8"}),m)}async function a(f){const m=await t(),p=await f.arrayBuffer();return m.read(p)}async function i(f){return(await a(f)).SheetNames}async function l(f,m,p=!0){const h=await t(),v=(await a(f)).Sheets[m],b=h.utils.sheet_to_json(v,{header:1});if(b.length===0)return{headers:[],data:[]};let g=[],y=0;p?(g=b[0].map(w=>String(w||"").trim()),y=1):g=b[0].map((w,$)=>String.fromCharCode(65+$));const _=[];for(let w=y;w<b.length;w++){const $=b[w],A={};for(let E=0;E<g.length;E++)E<$.length?A[g[E]]=$[E]:A[g[E]]="";_.push(A)}return{headers:g,data:_}}async function s(f){const m=await t();return new Promise((p,h)=>{const v=new FileReader;v.onload=b=>{try{const g=new Uint8Array(b.target?.result),y=m.read(g,{type:"array"}),_=y.SheetNames[0],w=y.Sheets[_];p(m.utils.sheet_to_json(w))}catch(g){h(g)}},v.onerror=()=>{h(new Error("Failed to read file"))},v.readAsArrayBuffer(f)})}function c(f){return typeof f=="number"&&Number.isInteger(f)&&f>=2e4&&f<=5e4}function u(f){const m=new Date(Date.UTC(1899,11,30));return new Date(m.getTime()+f*(1440*60*1e3))}function d(f,m=!1){if(!(f instanceof Date)||Number.isNaN(f.getTime()))return"";const p=f.getFullYear(),h=String(f.getMonth()+1).padStart(2,"0"),v=String(f.getDate()).padStart(2,"0");return m?`${p}-${h}-${v}T${String(f.getHours()).padStart(2,"0")}:${String(f.getMinutes()).padStart(2,"0")}:${String(f.getSeconds()).padStart(2,"0")}`:`${p}-${h}-${v}`}return{downloadExcel:r,downloadCSV:o,readExcelFile:s,ensureXLSXLoaded:t,getSheetNames:i,readSheetData:l,getWorkbook:a,isExcelSerialDate:c,excelSerialDateToJSDate:u,formatDate:d}}var uo={},Wm=!1,Oc=typeof window<"u";function oV(){!Oc||Wm||(Wm=!0,window.addEventListener("storage",e=>{e.key!==null&&e.key in uo&&(uo[e.key].value=e.newValue!==null?JSON.parse(e.newValue):null)}))}function aV(e,t=null){if(!(e in uo)){const r=Oc?localStorage.getItem(e):null;uo[e]=(0,n.ref)(r!==null?JSON.parse(r):t),(0,n.watch)(uo[e],o=>{Oc&&localStorage.setItem(e,JSON.stringify(o))})}return uo[e]}function Gg(e){return oV(),new Proxy({},{get(t,r){return aV(r,e?.[r]??null)}})}var Yg=1e3,iV=60*Yg;function lV(e,t={}){const{interval:r=30*Yg,inactivityThreshold:o=5*iV,pauseInBackground:a=!0}=t,{idle:i}=I1(o),l=(0,n.ref)(!0),s=(0,n.ref)(null),c=()=>!a||document.visibilityState==="visible",u=()=>{l.value=!1,s.value!==null&&(clearTimeout(s.value),s.value=null)},d=()=>{s.value!==null&&(clearTimeout(s.value),s.value=null)},f=()=>{s.value!==null&&(clearTimeout(s.value),s.value=null);const h=async()=>{if(l.value&&c()&&!i.value)try{await e()}catch{}l.value&&(s.value=window.setTimeout(h,r))};h()},m=()=>{l.value&&f()};function p(){document.visibilityState==="visible"?l.value&&f():a&&d()}return(0,n.onMounted)(()=>{document.addEventListener("visibilitychange",p),f()}),(0,n.onUnmounted)(()=>{document.removeEventListener("visibilitychange",p),u()}),{isPolling:l,pausePolling:d,resumePolling:m,startPolling:f,stopPolling:u}}function sV(e,t,r){const o={...e};return r===void 0?delete o[t]:o[t]=r,o}function cV(e){const t=(0,da.useRoute)(),r=(0,da.useRouter)(),o={};return new Proxy({},{get(a,i){if(!(i in o)){const l=e?.[i];o[i]=(0,n.computed)({get:()=>t.query[i]??l,set:s=>r.replace({query:sV(t.query,i,s)})})}return o[i]}})}function uV(e){const t=(0,n.ref)(0),r=(0,n.ref)(0);let o=null;return(0,n.onMounted)(()=>{e.value&&(o=new ResizeObserver(a=>{for(const i of a)t.value=i.contentRect.width,r.value=i.contentRect.height}),o.observe(e.value),t.value=e.value.clientWidth,r.value=e.value.clientHeight)}),(0,n.onUnmounted)(()=>{o&&(o.disconnect(),o=null)}),{width:t,height:r}}var pn=(0,n.ref)([{value:"dark",class:"bgl-dark-mode",icon:"cloudy_night",label:"Dark Mode",isDark:!0},{value:"light",class:"bgl-light-mode",icon:"brightness_7",label:"Light Mode",isDark:!1},{value:"system",class:"system",icon:"settings_input_component",label:"System Default"}]),jm="color-mode",Kn=(0,n.ref)("system"),Rc=(0,n.ref)(!1),qu=(0,n.ref)(!1),Gu=typeof window<"u";function dV(){return qu.value&&Gu&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}function qm(e){return pn.value.find(t=>t.value===e)}function Ni(e){if(!Gu)return;const t=document.documentElement;if(pn.value.forEach(r=>{r.class!=="system"&&t.classList.remove(r.class)}),e==="system"){const r=dV();Rc.value=r;const o=pn.value.find(l=>l.value==="dark"),a=pn.value.find(l=>l.value==="light"),i=r?o:a;i&&t.classList.add(i.class)}else{const r=qm(e),o=r&&r.isDark&&!qu.value?qm("light"):r;o&&(t.classList.add(o.class),Rc.value=o.isDark??!1)}}function fV(){const e=pn.value.filter(t=>t.value!=="system");e.length!==0&&(Kn.value=e[(e.findIndex(t=>t.value===Kn.value)+1)%e.length].value)}function mV(e={}){e.allowDark!==void 0&&(qu.value=e.allowDark),Ni(Kn.value)}function pV(e){if(!pn.value.some(t=>t.value===e.value)){const t=pn.value.findIndex(r=>r.value==="system");t>-1?pn.value.splice(t,0,e):pn.value.push(e)}}var Gm=!1;function hV(){if(Gm||!Gu)return;Gm=!0;const e=window.localStorage.getItem(jm);pn.value.some(t=>t.value===e)&&(Kn.value=e),Ni(Kn.value),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{Kn.value==="system"&&Ni("system")}),(0,n.watch)(Kn,t=>{localStorage.setItem(jm,t),Ni(t)})}function gV(){return hV(),{isDark:Rc,theme:(0,n.computed)(()=>Kn.value),themeOptions:pn,toggleTheme:fV,addTheme:pV,setTheme:e=>{Kn.value=e}}}function Xg(e,t,r,o){N1(e,(a,i)=>{if(t?.()?.setCustomValidity(""),!r||a===i||!a)return;const l=r(a,o?.());typeof l=="string"&&t?.()?.setCustomValidity(l)},{debounce:500})}function Kg({schema:e,columns:t,data:r}={}){const o=(0,n.computed)(()=>(0,n.toValue)(e)),a=(0,n.computed)(()=>(0,n.toValue)(t));return o.value?a.value&&a.value.length>0?o.value.filter(i=>a.value?.includes(i.id)):o.value:jg(r,a.value)}const vV={s:"400px",m:"540px",l:"720px",xl:"960px",full:"100%"};var yV={key:2,class:"flex-grow-1"},bV=(0,n.defineComponent)({__name:"Dialog",props:{open:{type:Boolean},title:{},width:{default:"m"},position:{default:"center"},dismissable:{type:Boolean,default:!0},flat:{type:Boolean,default:!0},thin:{type:Boolean,default:!1},centerTitle:{type:Boolean,default:!1},ellipsisTitle:{type:Boolean,default:!1},closePlacement:{default:"header-end"}},emits:["update:open","close"],setup(e,{expose:t,emit:r}){const o=e,a=r,i=(0,n.ref)(null),l=(0,n.ref)(!1),s=(0,n.ref)(!0),c=(0,n.computed)(()=>vV[o.width]),u=(0,n.computed)(()=>o.position==="left"?"dialog-left ms-1 me-auto mt-1 mb-1 height-100-2 m_m-0 m_h-100vh m_max-h-100vh m_radius-0":o.position==="right"?"dialog-right me-1 ms-auto mt-1 mb-1 height-100-2 m_m-0 m_h-100vh m_max-h-100vh m_radius-0":o.position==="top"?"dialog-top mx-auto mt-1 mb-auto":o.position==="bottom"?"dialog-bottom mx-auto mb-1 mt-auto":"dialog-center mx-auto");(0,n.watch)(()=>o.open,v=>{v?(i.value?.showModal(),l.value=!1,s.value=!1,setTimeout(()=>{s.value=!0},250)):d()}),(0,n.onMounted)(()=>{o.open&&i.value?.showModal()});function d(){l.value||(l.value=!0)}function f(){l.value&&(i.value?.close(),l.value=!1,a("close"))}function m(v){v.target===i.value&&o.dismissable&&a("update:open",!1)}function p(v){if(!o.dismissable){v.preventDefault();return}a("update:open",!1)}function h(){s.value=!1,a("update:open",!1)}return t({close:h}),(v,b)=>((0,n.openBlock)(),(0,n.createElementBlock)("dialog",{ref_key:"dialogRef",ref:i,class:(0,n.normalizeClass)([[u.value,{"is-closing":l.value}],"border-none shadow-30 p-0 testMe1"]),style:(0,n.normalizeStyle)({"--dialog-width":c.value}),onClick:m,onCancel:p,onAnimationend:f},[(0,n.createElementVNode)("div",{class:"grid grid-dialog max-height-100-2",onClick:b[0]||(b[0]=(0,n.withModifiers)(()=>{},["stop"]))},[e.title||e.dismissable?((0,n.openBlock)(),(0,n.createElementBlock)("header",{key:0,class:(0,n.normalizeClass)(["flex space-between flex-shrink-0 align-items-start gap-05",{"border-bottom":!e.flat,"border-none":!e.title,"m_ps-1":e.title,"p-05 m_p-05":!e.title,"ps-1-5 pe-1 py-1 ":!e.thin&&e.title,"ps-1 pe-05 py-05":e.thin&&e.title}])},[e.dismissable&&e.closePlacement==="header-start"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:0,flat:"",icon:"close","aria-label":"Close",class:"dialog-close relative z-2",thin:"",onClick:h})):(0,n.createCommentVNode)("",!0),e.title?((0,n.openBlock)(),(0,n.createElementBlock)("h3",{key:1,class:(0,n.normalizeClass)(["dialog-title m-0 txt20 semi w-100p",{"txt-center balance":e.centerTitle,"word-break-all":!e.centerTitle,"ellipsis-1":e.ellipsisTitle}])},(0,n.toDisplayString)(e.title),3)):(0,n.createCommentVNode)("",!0),e.title?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("div",yV)),e.dismissable&&e.closePlacement==="header-end"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:3,flat:"",icon:"close","aria-label":"Close",class:"dialog-close relative z-2",thin:"",onClick:h})):(0,n.createCommentVNode)("",!0)],2)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["overflow-y flex-grow-1 m_p-1",{"px-1 py-05":e.thin,"px-1-5 py-1":!e.thin}])},[(0,n.renderSlot)(v.$slots,"default",{},void 0,!0)],2),v.$slots.footer?((0,n.openBlock)(),(0,n.createElementBlock)("footer",{key:1,class:(0,n.normalizeClass)(["flex flex-shrink-0 gap-05 m_px-05 m_py-05 justify-content-end",{"border-top":!e.flat,"px-05 py-05":e.thin,"px-1-5 py-1":!e.thin}])},[(0,n.renderSlot)(v.$slots,"footer",{},void 0,!0)],2)):(0,n.createCommentVNode)("",!0)]),e.dismissable&&e.closePlacement==="overlay-start"&&s.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:0,icon:"close","aria-label":"Close",class:"fixed top-1 start-1 z-999 overlay-btn",onClick:h})):(0,n.createCommentVNode)("",!0),e.dismissable&&e.closePlacement==="overlay-end"&&s.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:1,icon:"close","aria-label":"Close",class:"fixed top-1 end-1 z-999 overlay-btn",onClick:h})):(0,n.createCommentVNode)("",!0)],38))}}),qn=we(bV,[["__scopeId","data-v-3fa1d15e"]]),_V=(0,n.defineComponent)({__name:"DialogConfirm",props:{open:{type:Boolean},title:{},message:{},width:{default:"s"},position:{default:"center"},dismissable:{type:Boolean,default:!0},confirmText:{},cancelText:{},confirmColor:{default:"primary"}},emits:["update:open","resolve"],setup(e,{emit:t}){const r=e,o=t,{$t:a}=ft(),i=(0,n.computed)(()=>r.title||a("modalConfirm.title")),l=(0,n.computed)(()=>r.confirmText||a("modalConfirm.confirm")),s=(0,n.computed)(()=>r.cancelText||a("modalConfirm.cancel"));function c(){o("resolve",!0),o("update:open",!1)}function u(){o("resolve",!1),o("update:open",!1)}function d(){o("resolve",!1)}return(f,m)=>((0,n.openBlock)(),(0,n.createBlock)(qn,{open:e.open,title:i.value,width:e.width,position:e.position,dismissable:e.dismissable,"onUpdate:open":m[0]||(m[0]=p=>f.$emit("update:open",p)),onClose:d},{footer:(0,n.withCtx)(()=>[(0,n.createVNode)(ne,{flat:"",onClick:u},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(s.value),1)]),_:1}),(0,n.createVNode)(ne,{color:e.confirmColor,onClick:c},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(l.value),1)]),_:1},8,["color"])]),default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("p",null,(0,n.toDisplayString)(e.message),1)]),_:1},8,["open","title","width","position","dismissable"]))}}),Jg=_V,wV=(0,n.defineComponent)({__name:"FormFlow",props:{schema:{},modelValue:{},components:{},errors:{},onSubmit:{type:Function}},emits:["update:modelValue"],setup(e,{expose:t,emit:r}){const o=e,a=r,{$t:i}=ft();function l(T,L){const F=L.split(".");let O=T;for(const B of F)O=O?.[B];return O}function s(T,L,F){const O=L.split(".");let B=T;for(let q=0;q<O.length-1;q++){const te=O[q];(B[te]==null||typeof B[te]!="object")&&(B[te]={}),B=B[te]}B[O[O.length-1]]=F}function c(T){const L={...T??{}};for(const[F,O]of Object.entries(o.schema._fields)){const B=O._config.default;B!==void 0&&l(L,F)===void 0&&s(L,F,B)}return L}const u=(0,n.ref)(c(o.modelValue)),d=(0,n.ref)({}),f=(0,n.ref)(!1),m=(0,n.ref)("idle"),p=(0,n.ref)();let h=!1;(0,n.watch)(()=>o.modelValue,T=>{h||(u.value=c(T))},{deep:!0}),(0,n.watch)(u,T=>{h=!0,a("update:modelValue",T),(0,n.nextTick)(()=>{h=!1})},{deep:!0});function v(T){return T._condition==null?!0:vh(T._condition,u.value)}const b=(0,n.computed)(()=>{const T=[];for(const[L,F]of Object.entries(o.schema._fields))v(F)&&T.push({key:L,field:F});return T});function g(T,L,F){s(u.value,T,L),(m.value==="success"||m.value==="error")&&(m.value="idle"),f.value&&_(T,F)}function y(T,L){return T==null||T===""||Array.isArray(T)&&T.length===0||L._type==="tel"&&typeof T=="string"&&/^\+\d+$/.test(T)}function _(T,L){const F=w(T);if(L._config.required===!0&&y(F,L))return d.value={...d.value,[T]:L._config.requiredMessage??i("form.required")},!1;if(L._type==="email"&&F&&!Nr.test(F))return d.value={...d.value,[T]:i("form.invalidEmail")},!1;if(L._validations!=null)for(const O of L._validations){const B=O(F);if(B!==!0)return d.value={...d.value,[T]:B},!1}return d.value=Object.fromEntries(Object.entries(d.value).filter(([O])=>O!==T)),!0}function w(T){return l(u.value,T)}function $(T,L){return L._config.label!=null?L._config.label:T.split(/[._-]/).map(F=>F.charAt(0).toUpperCase()+F.slice(1)).join(" ")}function A(T){if(typeof T!="string"&&(T._type==="select"||T._type==="multiselect")&&T._config.display==="btn")return s0;const L=typeof T=="string"?T:T._type;return{text:Fe,email:nu,password:Mh,number:Nn,tel:wu,url:Fe,date:ha,time:Fe,datetime:ha,textarea:Fe,richtext:mu,json:tu,checkbox:St,toggle:kl,radio:Ph,select:Ut,multiselect:Ut,array:ro,upload:va,color:xn,range:ou}[L]??Fe}const E=(0,n.computed)(()=>{const T={...d.value,...o.errors||{}},L={};for(const[F,O]of Object.entries(T))L[F]=ke(O)??O;return L});function k(T,L){const F={label:$(L,T),modelValue:w(L),"onUpdate:modelValue":O=>{g(L,O,T)},error:E.value[L],...T._config,name:T._config.name??L};if(T._type==="textarea"&&(F.multiline=!0),T._type==="multiselect"&&(F.multiselect=!0),T._type==="json"&&(F.language=F.language??"json"),T._type==="array"){const O=Object.fromEntries(Object.entries(T._config).filter(([B])=>B!=="schema"&&B!=="itemType"));Object.assign(F,O),F.allowAdd=F.allowAdd??!0,F.allowDelete=F.allowDelete??!0}return F}function P(T){return typeof T=="string"&&o.components?.[T]!=null?o.components[T]:T}function N(T){return T._component!=null}function V(){let T=!0;const L={};for(const{key:F,field:O}of b.value){const B=w(F);if(O._config.required===!0&&y(B,O)){L[F]=O._config.requiredMessage??i("form.required"),T=!1;continue}if(O._type==="email"&&B&&!Nr.test(B)){L[F]=i("form.invalidEmail"),T=!1;continue}if(O._validations!=null)for(const q of O._validations){const te=q(B);if(te!==!0){L[F]=te,T=!1;break}}}return d.value=L,T}async function x(T){T&&T.preventDefault(),f.value=!0;const L=V();if(L){if(o.onSubmit){m.value="submitting";try{await o.onSubmit(u.value),m.value="success"}catch{m.value="error"}}}else{T?.stopPropagation();const F=b.value.find(({key:O})=>d.value[O])?.key;if(F!=null&&p.value){const O=p.value.querySelector(`[name="${F}"]`)||p.value.querySelector(`[id="${F}"]`)||p.value.querySelector(`[data-field="${F}"]`)||p.value.querySelector("input, select, textarea");O&&(O.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(()=>{O instanceof HTMLElement&&O.focus()},300))}}return L}return t({validate:V,submit:x,formState:m}),(T,L)=>{const F=(0,n.resolveComponent)("FormFlow",!0);return(0,n.openBlock)(),(0,n.createElementBlock)("form",{ref_key:"formElement",ref:p,class:(0,n.normalizeClass)(["grid-form",e.schema._class]),onSubmit:x},[m.value==="success"?(0,n.renderSlot)(T.$slots,"success",{key:0,formData:u.value}):((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(b.value,({key:O,field:B})=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:O,class:(0,n.normalizeClass)([B._class,B._config.class])},[(0,n.renderSlot)(T.$slots,`field:${O}`,{value:w(O),field:B,formData:u.value,error:d.value[O],onChange:q=>{g(O,q,B)}},()=>[B._type==="array"&&B._config.schema?._isSchema?((0,n.openBlock)(),(0,n.createBlock)(ro,(0,n.mergeProps)({key:0,ref_for:!0},k(B,O)),{default:(0,n.withCtx)(({item:q})=>[(0,n.createVNode)(F,{"model-value":q.value,schema:B._config.schema,components:e.components,"onUpdate:modelValue":te=>{q.value=te}},null,8,["model-value","schema","components","onUpdate:modelValue"])]),_:2},1040)):B._type==="array"&&typeof B._config.schema=="string"?((0,n.openBlock)(),(0,n.createBlock)(ro,(0,n.mergeProps)({key:1,ref_for:!0},k(B,O)),{default:(0,n.withCtx)(({item:q})=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(A(B._config.schema)),{"model-value":q.value,"onUpdate:modelValue":te=>{q.value=te}},null,8,["model-value","onUpdate:modelValue"]))]),_:2},1040)):B._type==="array"&&B._config.schema?((0,n.openBlock)(),(0,n.createBlock)(ro,(0,n.mergeProps)({key:2,ref_for:!0},k(B,O)),{default:(0,n.withCtx)(({item:q})=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(P(B._config.schema)),{modelValue:q.value,"onUpdate:modelValue":te=>q.value=te},null,8,["modelValue","onUpdate:modelValue"]))]),_:2},1040)):B._type==="array"&&B._config.itemType?((0,n.openBlock)(),(0,n.createBlock)(ro,(0,n.mergeProps)({key:3,ref_for:!0},k(B,O)),{default:(0,n.withCtx)(({item:q})=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(A(B._config.itemType)),{"model-value":q.value,"onUpdate:modelValue":te=>{q.value=te}},null,8,["model-value","onUpdate:modelValue"]))]),_:2},1040)):N(B)?((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(P(B._component.component)),(0,n.mergeProps)({key:4,"model-value":w(O)},{ref_for:!0},B._component.props,{"onUpdate:modelValue":q=>g(O,q,B)}),null,16,["model-value","onUpdate:modelValue"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(A(B)),(0,n.mergeProps)({key:5,ref_for:!0},k(B,O)),null,16))])],2))),128)),(0,n.renderSlot)(T.$slots,"errors",{errors:E.value,errorCount:Object.keys(E.value).filter(O=>E.value[O]).length,visibleFields:b.value}),m.value==="error"?(0,n.renderSlot)(T.$slots,"error",{key:0,formData:u.value}):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(T.$slots,"submit",{submit:x,validate:V,formData:u.value,errors:E.value,formState:m.value})],64))],34)}}}),Yu=wV,$V={key:0,class:"dialog-form-error bg-red-30 color-red radius-1 mb-1 txt14 px-1 py-075"},kV=(0,n.defineComponent)({__name:"DialogForm",props:{open:{type:Boolean},title:{},width:{default:"m"},position:{default:"center"},dismissable:{type:Boolean,default:!0},schema:{},modelValue:{},onSubmit:{},onDelete:{},submitText:{},cancelText:{},deleteText:{}},emits:["update:open","resolve"],setup(e,{emit:t}){const r=e,o=t,{$t:a}=ft(),i=(0,n.ref)({...r.modelValue||{}}),l=(0,n.ref)(!1),s=(0,n.ref)(!1),c=(0,n.ref)(null),u=(0,n.ref)(),d=(0,n.computed)(()=>typeof r.onDelete=="function");async function f(){if(!l.value){if(!u.value?.validate()){c.value=a("dialogForm.validationError");return}c.value=null,l.value=!0;try{r.onSubmit&&await r.onSubmit(i.value),o("resolve",{action:"submit",data:i.value}),o("update:open",!1)}catch(v){c.value=v instanceof Error?v.message:a("dialogForm.errorOccurred")}finally{l.value=!1}}}async function m(){if(!(s.value||!r.onDelete)){c.value=null,s.value=!0;try{await r.onDelete(i.value),o("resolve",{action:"delete",data:i.value}),o("update:open",!1)}catch(v){c.value=v instanceof Error?v.message:a("dialogForm.errorOccurred")}finally{s.value=!1}}}function p(){o("resolve",{action:"cancel",data:i.value}),o("update:open",!1)}function h(){o("resolve",{action:"cancel",data:i.value})}return(v,b)=>((0,n.openBlock)(),(0,n.createBlock)(qn,{open:e.open,title:e.title,width:e.width,position:e.position,dismissable:e.dismissable,"onUpdate:open":b[1]||(b[1]=g=>v.$emit("update:open",g)),onClose:h},{footer:(0,n.withCtx)(()=>[d.value?((0,n.openBlock)(),(0,n.createBlock)(ne,{key:0,color:"red",flat:"",loading:s.value,disabled:l.value,class:"me-auto",onClick:m},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.deleteText||(0,n.unref)(a)("dialogForm.delete")),1)]),_:1},8,["loading","disabled"])):(0,n.createCommentVNode)("",!0),b[2]||(b[2]=(0,n.createElementVNode)("div",{class:"flex-grow-1"},null,-1)),(0,n.createVNode)(ne,{flat:"",disabled:l.value||s.value,onClick:p},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.cancelText||(0,n.unref)(a)("dialogForm.cancel")),1)]),_:1},8,["disabled"]),(0,n.createVNode)(ne,{color:"primary",loading:l.value,disabled:s.value,onClick:f},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.submitText||(0,n.unref)(a)("dialogForm.save")),1)]),_:1},8,["loading","disabled"])]),default:(0,n.withCtx)(()=>[c.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",$V,(0,n.toDisplayString)(c.value),1)):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(Yu,{ref_key:"formFlowRef",ref:u,modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=g=>i.value=g),schema:e.schema,onSubmit:f},null,8,["modelValue","schema"])]),_:1},8,["open","title","width","position","dismissable"]))}}),Zg=kV;const Xu=Symbol("dialog");var el=null;function Qg(){const e=(0,n.inject)(Xu,null);if(!e){if(el)return el;throw new Error("Dialog API not provided. Make sure DialogPlugin is installed via app.use(DialogPlugin)")}return e}const ev={install:e=>{let t=0;const r=(0,n.reactive)([]),o={form:i=>new Promise(l=>{const s=++t;r.push({id:s,type:"form",options:i,resolve:l,open:!0})}),confirm:i=>new Promise(l=>{const s=++t,c=typeof i=="string"?{message:i}:i;r.push({id:s,type:"confirm",options:c,resolve:l,open:!0})}),open:i=>{const l=++t,s={id:l,type:"open",options:i,resolve:()=>{},open:!0};return r.push(s),{close:()=>{const c=r.findIndex(u=>u.id===l);c!==-1&&(r[c].open=!1,setTimeout(()=>{const u=r.findIndex(d=>d.id===l);u!==-1&&r.splice(u,1)},200))}}}};el||(el=o),e.provide(Xu,o);const a=(0,n.defineComponent)({name:"DialogContainer",setup(){function i(c,u){c.resolve(u),c.open=!1,setTimeout(()=>{const d=r.findIndex(f=>f.id===c.id);d!==-1&&r.splice(d,1)},200)}function l(c,u){c.resolve(u),c.open=!1,setTimeout(()=>{const d=r.findIndex(f=>f.id===c.id);d!==-1&&r.splice(d,1)},200)}function s(c,u){u||(c.open=!1,setTimeout(()=>{const d=r.findIndex(f=>f.id===c.id);d!==-1&&r.splice(d,1)},200))}return{dialogStack:r,handleFormResolve:i,handleConfirmResolve:l,handleOpenUpdate:s}},render(){return this.dialogStack.map(i=>{if(i.type==="form")return(0,n.h)(Zg,{key:i.id,open:i.open,...i.options,"onUpdate:open":l=>{l||this.handleFormResolve(i,{action:"cancel",data:i.options.modelValue||{}})},onResolve:l=>{this.handleFormResolve(i,l)}});if(i.type==="confirm")return(0,n.h)(Jg,{key:i.id,open:i.open,...i.options,"onUpdate:open":l=>{l||this.handleConfirmResolve(i,!1)},onResolve:l=>{this.handleConfirmResolve(i,l)}});if(i.type==="open"){const l=i.options;return(0,n.h)(qn,{key:i.id,open:i.open,title:l.title,width:l.width,position:l.position,dismissable:l.dismissable,class:l.class,"onUpdate:open":s=>{this.handleOpenUpdate(i,s)}},{default:()=>(0,n.h)((typeof l.component=="string",l.component),l.props||{})})}return null})}});if(e.component("DialogContainer",a),typeof document<"u"&&typeof window<"u"){const i=()=>{if(!document.getElementById("bagelink-dialog-root")){const l=document.createElement("div");l.id="bagelink-dialog-root",document.body.appendChild(l);const s=(0,n.createApp)(a);Object.assign(s._context,e._context),s.mount(l)}};document.body&&i(),e.mixin({mounted(){this.$root===this&&i()}})}}};var Ku={pint:{pattern:/\d/},int:{pattern:/[\d-]/},pnum:{pattern:/[\d.]/},tel:{pattern:/[\d.\-()\s+]/},money:{pattern:/[\d.\s,]/},number:{pattern:/[\d\-.]/},num:{pattern:/[\d\-.]/},hex:{pattern:/[0-9a-f]/i},email:{pattern:/[\w.\-@]/},alpha:{pattern:/[a-z_]/i},alphanum:{pattern:/\w/},lower:{pattern:/[a-z]/i,transform:e=>e.toLowerCase()},upper:{pattern:/[A-Z]/i,transform:e=>e.toUpperCase()},slug:{pattern:/[a-z0-9-]/i,transform:e=>e.toLowerCase().replace(/\s/g,"-")},snake:{pattern:/[a-z_]/,transform:e=>e.toLowerCase().replace(/\s/g,"_")}},si=new WeakMap;function xs(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)return e;const t=e.querySelector("input, textarea");return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?t:null}function Ym(e){const t=Object.keys(e.modifiers);return t.length>0?t[t.length-1]:""}function tv(e){return e.pattern!=null?e.pattern:e.modifier!=null&&e.modifier!==""?Ku[e.modifier]?.pattern??/./:/./}function Xm(e,t,r){r.keydownEvent=(o=>{CV(o,t,r)}),r.inputEvent=(o=>{nv(o,t,r)}),r.compositionStartEvent=(()=>{SV(r)}),r.compositionEndEvent=(o=>{xV(o,t,r)}),t.addEventListener("keydown",r.keydownEvent),t.addEventListener("input",r.inputEvent,{capture:!0}),t.addEventListener("compositionstart",r.compositionStartEvent),t.addEventListener("compositionend",r.compositionEndEvent)}function Km(e,t){t.keydownEvent&&e.removeEventListener("keydown",t.keydownEvent),t.inputEvent&&e.removeEventListener("input",t.inputEvent,{capture:!0}),t.compositionStartEvent&&e.removeEventListener("compositionstart",t.compositionStartEvent),t.compositionEndEvent&&e.removeEventListener("compositionend",t.compositionEndEvent),t.keydownEvent=void 0,t.inputEvent=void 0,t.compositionStartEvent=void 0,t.compositionEndEvent=void 0}function EV(e){const t=["Tab","Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"];return e.ctrlKey||e.altKey||e.metaKey?!0:t.includes(e.key)}function CV(e,t,r){if(r.composing===!0||EV(e)||r.modifier!=null&&r.modifier!==""&&typeof Ku[r.modifier]?.transform=="function")return;const o=tv(r),a=e.key;o.test(a)||e.preventDefault()}function SV(e){e.composing=!0}function xV(e,t,r){r.composing=!1,nv(e,t,r)}function Jm(e,t){const r=tv(t);let o;if(t.modifier!=null&&t.modifier!==""){const i=Ku[t.modifier]?.transform;o=i?i(e):e}else o=e;let a="";for(let i=0;i<o.length;i++){const l=o[i];r.test(l)&&(a+=l)}return a}function nv(e,t,r){if(r.reformatting===!0||r.composing===!0)return;const o=t.value,a=t.selectionEnd??o.length,i=o.slice(0,a),l=Jm(o,r);if(l===o)return;const s=Jm(i,r).length;r.reformatting=!0,t.value=l,t.setSelectionRange(s,s),r.reformatting=!1}var TV={beforeMount(e,t){const r=xs(e);if(r===null)return;const o={modifier:Ym(t)};typeof t.value=="object"&&t.value!==null&&(o.pattern=t.value.pattern??/./,o.validateOnly=t.value.validateOnly===!0),si.set(e,o),Xm(e,r,o)},updated(e,t){const r=xs(e);if(r===null)return;const o=si.get(e);o!==void 0&&(Km(r,o),o.modifier=Ym(t),typeof t.value=="object"&&t.value!==null&&(o.pattern=t.value.pattern??/./,o.validateOnly=t.value.validateOnly===!0),Xm(e,r,o))},unmounted(e){const t=xs(e),r=si.get(e);t!==null&&r!==void 0&&Km(t,r),si.delete(e)},getSSRProps(){return{}}},rv=TV,NV=()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;function DV(e){const t={y:"up",delay:0,once:!0,threshold:.12};return e?typeof e=="string"?{...t,y:e}:{...t,...e}:t}var Ts=new WeakMap,AV={mounted(e,t){const r=DV(t.value);if(NV())return;e.classList.add("bgl-reveal"),r.y!=="none"&&(e.dataset.revealDir=r.y),r.delay&&e.style.setProperty("--bgl-reveal-delay",`${r.delay}ms`);const o=new IntersectionObserver(a=>{for(const i of a)i.isIntersecting?(e.classList.add("bgl-reveal-in"),r.once&&o.unobserve(e)):r.once||e.classList.remove("bgl-reveal-in")},{threshold:r.threshold,rootMargin:"0px 0px -8% 0px"});o.observe(e),Ts.set(e,o)},unmounted(e){Ts.get(e)?.disconnect(),Ts.delete(e)},getSSRProps(){return{}}},ov=AV;function BV(e){let t=e.__rippleContainer;return(!t||!t.isConnected)&&(t=document.createElement("span"),Object.assign(t.style,{position:"absolute",inset:"0",overflow:"hidden",borderRadius:"inherit",pointerEvents:"none"}),e.appendChild(t),e.__rippleContainer=t),t}var MV={mounted(e,t){const r=o=>{const a=e.getBoundingClientRect(),i=Math.max(a.width,a.height),l=document.createElement("span");l.className="ripple",Object.assign(l.style,{width:`${i}px`,height:`${i}px`,left:`${o.clientX-a.left-i/2}px`,top:`${o.clientY-a.top-i/2}px`,position:"absolute",borderRadius:"50%",transform:"scale(0)",background:"rgba(0, 0, 0, 0.3)",pointerEvents:"none",animation:"rippleEffect 0.6s ease-out"}),BV(e).appendChild(l),setTimeout(()=>{l.remove()},600)};e.__rippleClickHandler=r,t.value!==!1&&(getComputedStyle(e).position==="static"&&(e.style.position="relative"),e.addEventListener("mousedown",r))},updated(e,t){const r=e.__rippleClickHandler;t.value===!1?e.removeEventListener("mousedown",r):(getComputedStyle(e).position==="static"&&(e.style.position="relative"),e.addEventListener("mousedown",r))},unmounted(e){const t=e.__rippleClickHandler;t&&(e.removeEventListener("mousedown",t),delete e.__rippleClickHandler)},getSSRProps(){return{}}},av=MV,Zo=Symbol("resize");function Zm(e,t){const r=t.value||{};let o=!1,a=0,i=0,l=null;r.handle?(l=e.querySelector(r.handle),l||(l=document.createElement("div"),l.className=r.handle.replace(".","")+(r.handleClass?` ${r.handleClass}`:""),l.style.cssText=`
|
|
429
|
+
`}return r.trim()});H.subParser("makeMarkdown.tableCell",(e,t)=>{let r="";if(!e.hasChildNodes())return"";let o=e.childNodes,a=o.length;for(let i=0;i<a;++i)r+=H.subParser("makeMarkdown.node")(o[i],t,!0);return r.trim()});H.subParser("makeMarkdown.txt",e=>{let t=e.nodeValue;return t=t.replace(/ +/g," "),t=t.replace(/¨NBSP;/g," "),t=H.helper.unescapeHTMLEntities(t),t=t.replace(/([*_~|`])/g,"\\$1"),t=t.replace(/^(\s*)>/g,"\\$1>"),t=t.replace(/^#/gm,"\\#"),t=t.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),t=t.replace(/^( {0,3}\d+)\./gm,"$1\\."),t=t.replace(/^( {0,3})([+-])/gm,"$1\\$2"),t=t.replace(/\](\s*)\(/g,"\\]$1\\("),t=t.replace(/^ {0,3}\[([\S \t]*?)\]:/gm,"\\[$1]:"),t});function SI(){try{const{locale:e}=$r().global;return typeof e=="string"?e:e.value}catch{return typeof navigator>"u"?"en-US":navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language}}function li(e){if(e instanceof Date)return e;if(typeof e=="number")return new Date(e);let t=e.trim().replace(" ","T");return!t.endsWith("Z")&&!t.includes("+")&&!/[+-]\d{2}:\d{2}$/.test(t)&&(t+="Z"),new Date(t)}const xI=Object.assign(li,{iso(e){return li(e).toISOString()},date(e){return li(e).toISOString().slice(0,10)},ms(e){return li(e).getTime()}});function Rg(e){const t=-e.getTimezoneOffset();return`${t>=0?"+":"-"}${String(Math.floor(Math.abs(t)/60)).padStart(2,"0")}:${String(Math.abs(t)%60).padStart(2,"0")}`}function TI(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}T${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}:${String(e.getSeconds()).padStart(2,"0")}.${String(e.getMilliseconds()).padStart(3,"0")}${Rg(e)}`}const NI={iso(e=new Date){return TI(e)},offset(e=new Date){return Rg(e)}},Io={SECOND:1e3,MINUTE:6e4,HOUR:36e5,DAY:864e5,WEEK:6048e5},{SECOND:DI}=Io,{MINUTE:AI}=Io,{HOUR:BI}=Io,{DAY:MI}=Io,{WEEK:LI}=Io;function dn(e,t){const r=new Date(e);return t.days&&r.setDate(r.getDate()+t.days),t.hours&&r.setHours(r.getHours()+t.hours),t.minutes&&r.setMinutes(r.getMinutes()+t.minutes),t.seconds&&r.setSeconds(r.getSeconds()+t.seconds),t.weeks&&r.setDate(r.getDate()+t.weeks*7),t.months&&r.setMonth(r.getMonth()+t.months),t.years&&r.setFullYear(r.getFullYear()+t.years),r}var PI={seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:0};function zu(e,t,r="days"){const o=new Date(e),a=new Date(t);return r==="months"?(a.getFullYear()-o.getFullYear())*12+(a.getMonth()-o.getMonth()):Math.floor((a.getTime()-o.getTime())/PI[r])}var yt=class Mc{_date;constructor(t){this._date=new Date(t)}add(t,r="days"){return new Mc(dn(this._date,{[r]:t}))}subtract(t,r="days"){return new Mc(dn(this._date,{[r]:-t}))}diff(t,r="days"){return zu(this._date,t,r)}isBefore(t){return this._date.getTime()<new Date(t).getTime()}isAfter(t){return this._date.getTime()>new Date(t).getTime()}isSameDay(t){const r=new Date(t);return this._date.getFullYear()===r.getFullYear()&&this._date.getMonth()===r.getMonth()&&this._date.getDate()===r.getDate()}toDate(){return new Date(this._date)}valueOf(){return this._date.getTime()}toString(){return this._date.toISOString()}};function II(e){return new yt(e!==void 0?e:new Date)}const VI=Object.assign(II,{get now(){return new yt(new Date)},get today(){const e=new Date;return e.setHours(0,0,0,0),new yt(e)},get tomorrow(){return new yt(dn(new Date,{days:1}))},get yesterday(){return new yt(dn(new Date,{days:-1}))},get nextWeek(){return new yt(dn(new Date,{weeks:1}))},get lastWeek(){return new yt(dn(new Date,{weeks:-1}))},get firstOfMonth(){const e=new Date;return new yt(new Date(e.getFullYear(),e.getMonth(),1))},get lastOfMonth(){const e=new Date;return new yt(new Date(e.getFullYear(),e.getMonth()+1,0))},get firstOfWeek(){const e=new Date;return new yt(new Date(e.setDate(e.getDate()-e.getDay())))},get lastOfWeek(){const e=new Date;return new yt(new Date(e.setDate(e.getDate()+(6-e.getDay()))))},get firstOfNextMonth(){const e=new Date;return new yt(new Date(e.getFullYear(),e.getMonth()+1,1))},get lastOfNextMonth(){const e=new Date;return new yt(new Date(e.getFullYear(),e.getMonth()+2,0))},get firstOfNextYear(){return new yt(new Date(new Date().getFullYear()+1,0,1))},in:(e,t="days")=>new yt(dn(new Date,{[t]:e})),ago:(e,t="days")=>new yt(dn(new Date,{[t]:-e})),diff:(e,t,r="days")=>zu(e,t,r),isBefore:(e,t)=>new Date(e).getTime()<new Date(t).getTime(),isAfter:(e,t)=>new Date(e).getTime()>new Date(t).getTime(),isSameDay:(e,t)=>{const r=new Date(e),o=new Date(t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()&&r.getDate()===o.getDate()}});function Fg(e,t){if(t.timeZone==="UTC"){const r=new Date(e.getTime());return r.setMinutes(r.getMinutes()+e.getTimezoneOffset()),r}try{const r=new Intl.DateTimeFormat("en-US",{...t,month:"numeric"}).formatToParts(e),o={};for(const a of r)a.type!=="literal"&&a.type!=="timeZoneName"&&(o[a.type]=Number.parseInt(a.value,10));return new Date(o.year,(o.month||1)-1,o.day,o.hour||0,o.minute||0,o.second||0)}catch{return e}}function Uu(e,t,r){const o=r?.timeZone?Fg(e,r):e,a=o.getFullYear().toString();return{AmPm:o.toLocaleString(t,{hour:"numeric",hour12:!0,minute:"numeric"}).split(" ")[1],DD:String(o.getDate()).padStart(2,"0"),DDD:o.toLocaleString(t,{weekday:"short"}),DDDD:o.toLocaleString(t,{weekday:"long"}),HH:String(o.getHours()).padStart(2,"0"),mm:String(o.getMinutes()).padStart(2,"0"),MM:String(o.getMonth()+1).padStart(2,"0"),MMM:o.toLocaleString(t,{month:"short"}),MMMM:o.toLocaleString(t,{month:"long"}),ss:String(o.getSeconds()).padStart(2,"0"),sss:String(o.getMilliseconds()).padStart(3,"0"),YY:a.slice(-2),YYYY:a}}var OI=Uu(new Date,"en-US"),RI=Object.keys(OI).sort((e,t)=>t.length-e.length),FI=new RegExp(RI.join("|"),"g");function it(e,t){if(!e)return"";let r,o,a,i={};if(typeof t=="string"?r=t:t&&typeof t=="object"&&(r=t.format,o=t.locale,a=t.tz,i=t),r==="ISO"||r==="ISO8601"){const l=new Date(e);return Number.isNaN(l.getTime())?"":l.toISOString()}r=r||"DD.MM.YY",o=o||SI();try{let l=new Date(e);if(typeof e=="string"&&Number.isNaN(l.getTime())){const f=e.split(/[/.-]/);if(f.length===3){const[m,p,h]=f.map(v=>Number.parseInt(v,10));if(!Number.isNaN(m)&&!Number.isNaN(p)&&!Number.isNaN(h)){const v=h<100?2e3+h:h;l=new Date(v,p-1,m)}}}if(Number.isNaN(l.getTime()))return"";const s={day:"numeric",hour:"2-digit",hour12:i.hour12===void 0?!0:i.hour12,minute:"2-digit",month:"long",second:"2-digit",timeZone:a,weekday:"long",year:"numeric"},c=Uu(l,o,s),u=new Intl.DateTimeFormat(o,s).formatToParts(l),d={};for(const f of u)f.type!=="literal"&&(d[f.type]=f.value);return d.month&&(c.MMM=d.month.substring(0,3),c.MMMM=d.month),d.weekday&&(c.DDD=new Intl.DateTimeFormat(o,{weekday:"short",timeZone:a}).format(l),c.DDDD=d.weekday),d.dayPeriod&&(c.AmPm=d.dayPeriod),r.replace(FI,f=>c[f])}catch{return""}}const zI=it;function Ti(e,t){if(!t)return{matches:!0,score:0};const r=e.toLowerCase(),o=t.toLowerCase();if(r.includes(o))return{matches:!0,score:1e3};const a=o.split(/\s+/).filter(f=>f.length>0),i=r.split(/\s+/);let l=0;for(const f of a)i.some(m=>m.includes(f))&&l++;if(l===a.length)return{matches:!0,score:100+l*10};let s=0,c=0,u=0,d=0;for(let f=0;f<r.length&&s<o.length;f++)r[f]===o[s]?(s++,c++,d++,u=Math.max(u,c)):c=0;return s===o.length?{matches:!0,score:u*5+d}:{matches:!1,score:0}}function UI(...e){return e.filter(Boolean).join(", ")}function HI(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function WI(e){const t=e;return t.label??t.name??t.title??String(t.id??"")}function jI(e){const t=e;return t.value??t.key??t.id??""}function qI(e){if(Array.isArray(e))return e.map(r=>({...r,label:WI(r),value:jI(r)}));const t=e;return r=>r.map(o=>({...o,label:typeof t.label=="function"?t.label(o):String(o[t.label]??""),value:o[t.value]}))}function GI(e){return Array.isArray(e)?e:"data"in e?e.data:"items"in e?e.items:[]}function YI(e,t,r){const o=r?.timeout??1e4,a=e.length>0;let i=null;async function l(c){const u=a?e(c??""):e();return t(GI(await Promise.race([u,new Promise((d,f)=>setTimeout(()=>{f(new Error("Request timeout"))},o))])))}const s=async c=>{try{return a?await l(c):(i||(i=await l()),c?i.filter(u=>{const{label:d}=u;return typeof d!="string"?!0:Ti(d,c).matches}).sort((u,d)=>{const f=u.label??"";return Ti(d.label??"",c).score-Ti(f,c).score}):i)}catch{return[]}};return s.clearCache=()=>{i=null},s}function Lc(e,t){return t==="titleCase"?e.split("_").map(r=>r[0].toUpperCase()+r.slice(1).toLocaleLowerCase()).join(" "):t==="pascal"?e.split("_").map(r=>r[0].toUpperCase()+r.slice(1).toLocaleLowerCase()).join(""):t==="camel"?e.split("_").map((r,o)=>o===0?r:r[0].toUpperCase()+r.slice(1)).join(""):t==="snake"?[...e].map(r=>r===r.toUpperCase()?`_${r.toLowerCase()}`:r).join(""):e}var Ss=new Map;function XI(e,t=500){clearTimeout(Ss.get(e));const r=setTimeout(()=>{e(),Ss.delete(e)},t);Ss.set(e,r)}function KI(e){return e.toLowerCase().replace(/[^a-z0-9-\s]/g,"").split(/[\s-]+/).join("-")}function qa(e){return e===void 0?e:e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")||e}async function zg(e,t){await navigator.clipboard.writeText(e),t&&t("Copied to clipboard")}function Ug(...e){return e=e.flatMap(t=>t.split(/\s/)),e.map(t=>t.charAt(0)).join("")}function Hg(e){if(!e||typeof document>"u")return e;const t=document.createElement("template");t.innerHTML=e;const r=o=>{for(const a of Array.from(o.children)){const i=a.tagName.toLowerCase();if(["script","iframe","object","embed","link","meta","base","form"].includes(i)){a.remove();continue}for(const l of Array.from(a.attributes)){const s=l.name.toLowerCase(),c=l.value.trim().toLowerCase();(s.startsWith("on")||(s==="href"||s==="src"||s==="xlink:href")&&(c.startsWith("javascript:")||c.startsWith("data:")))&&a.removeAttribute(l.name)}r(a)}};return r(t.content),t.innerHTML}function JI(e,t){e.key==="Escape"&&t()}function Wg(e,t,...r){return r.map(o=>typeof o=="function"?o(e,t):o).join(" ")}function Pc(e,t,r){if(!e)return{};const o=["class","onClick","$el"],a=Object.entries(e).filter(([l])=>!o.includes(l)).map(([l,s])=>[l,typeof s=="function"?s(t,r):s]),i=Object.fromEntries(a);for(const l of o.slice(1))e[l]&&(i[l]=e[l]);return i}function ZI(e,t){return e["v-if"]===void 0?!0:typeof e["v-if"]=="boolean"?e["v-if"]:typeof e["v-if"]=="string"?!0:typeof e["v-if"]=="function"?e["v-if"]?.(t?.[e.id],t):!0}function QI(e,t){if(t)return e?e[t]:void 0}const Ic=e=>!Number.isNaN(Date.parse(e));function jg(e,t){const r=Array.from(new Set((e??[]).flatMap(Object.keys))).map(o=>({id:o,label:qa(o),transform:a=>["created_at","updated_at"].includes(o)?a&&new Date(a).toLocaleString():a}));return t?r.filter(o=>t.includes(o.id)||!o.id):r}function Hu(e=100){return new Promise(t=>setTimeout(t,e))}var jo=new Map;async function Ga(e,t){const r=t?.id||e;if(await Hu(1),jo.has(r)){const a=jo.get(r);if(a)return a}if(t?.id&&document.getElementById(t.id)||document.querySelector(`script[src="${e}"]`))return Promise.resolve();const o=new Promise((a,i)=>{const l=document.createElement("script");l.src=e,t?.id&&(l.id=t.id),l.onload=()=>{a(),jo.delete(r)},l.onerror=s=>{i(new Error(String(s))),jo.delete(r)},document.head.append(l)});return jo.set(r,o),o}async function Sa(e,{timeout:t=1e4,interval:r=50}={}){const o=Date.now();for(;window[e]===void 0;){if(Date.now()-o>t)throw new Error(`awaitGlobal: window.${e} not available after ${t}ms`);await Hu(r)}return window[e]}function Vc(e){return new Promise((t,r)=>{if(document.querySelector(`link[href="${e}"]`)){t();return}const o=document.createElement("link");o.href=e,o.rel="stylesheet",o.onload=()=>{t()},o.onerror=r,document.head.append(o)})}function Wu(e){return e.startsWith("https://")?e:(e=e.replace(/http:\/\//,""),`https://${e}`)}function cn(e,t="px"){return typeof e=="number"?`${e}${t}`:e}var eV=/^https?:\/\/|^\/\//;function fn(e){if(!(e==null||e===""))return eV.test(e)||e.startsWith("/")?e:e.startsWith("static/")||e.startsWith("images/")?`/${e}`:`https://files.bagel.design/${e}`}function la(e,t,r=void 0){if(!t)return e;const o=t.split(/[.[]/);let a=e;for(const i of o){if(!a||typeof a!="object"||!(i in a))return r;a=a[i]}return a??r}var tV=e=>e.replace(/http:\/\//,"//");function qg(e,t){try{return e()}catch(r){t&&t(r)}}function ju(e,t){if(typeof document>"u")return;const r=document.createElement("a");r.target="_blank",r.rel="noopener noreferrer";const o=t!==void 0&&t!=="";if(typeof e=="string"){r.href=tV(e);const a=e.split("/").pop();r.download=o?t:a!==void 0&&a!==""?a:"download"}else{const a=URL.createObjectURL(e);r.href=a,r.download=o?t:"download",setTimeout(()=>qg(()=>{URL.revokeObjectURL(a)}),0)}document.body.appendChild(r),r.click(),document.body.removeChild(r)}var nV=e=>Object.keys(e),Um=e=>e?.split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");function Hm(e,t){return t?e.map(r=>{const o={};return t.forEach(a=>{const{id:i,transform:l,label:s}=a;if(i){const c=la(r,i),u=s||i;o[u]=l?.(c,r)||c||""}}),o}):e}function rV(e){const t=new Set;return e.forEach(r=>{Object.keys(r).forEach(o=>t.add(o))}),Array.from(t).map(r=>({id:r,label:r}))}function oV(){const e=(0,n.ref)(!1);async function t(){return e.value||(await Ga("https://cdn.jsdelivr.net/npm/xlsx/dist/xlsx.full.min.js"),e.value=!0),window.XLSX}async function r(f,m="data",p){const h=(0,n.toValue)(p)||rV(f),v=await t(),b=Hm(f,h),g=h.length>0?h.map(w=>{const{id:$,label:A}=w;return{v:A||$,t:"s"}}):[],y=v.utils.json_to_sheet(b);g.length>0&&v.utils.sheet_add_aoa(y,[g.map(w=>w.v)],{origin:"A1"});const _=v.utils.book_new();v.utils.book_append_sheet(_,y,"Sheet1"),m=m.endsWith(".xlsx")?m:`${m}.xlsx`,v.writeFile(_,m)}async function o(f,m="data",p){const h=p?p.map(y=>y.id).filter(Boolean):[...new Set(f.flatMap(nV))],v=p?p.map(y=>{const{label:_,id:w}=y;return _||Um(w)}):h.map(Um),b=Hm(f,p),g=[v.join(","),...b.map(y=>h.map(_=>{const w=y[_]!==void 0?y[_]:"";return`"${String(w).replace(/"/g,'""')}"`}).join(","))].join(`
|
|
430
|
+
`);m=m.endsWith(".csv")?m:`${m}.csv`,ju(new Blob([g],{type:"text/csv;charset=utf-8"}),m)}async function a(f){const m=await t(),p=await f.arrayBuffer();return m.read(p)}async function i(f){return(await a(f)).SheetNames}async function l(f,m,p=!0){const h=await t(),v=(await a(f)).Sheets[m],b=h.utils.sheet_to_json(v,{header:1});if(b.length===0)return{headers:[],data:[]};let g=[],y=0;p?(g=b[0].map(w=>String(w||"").trim()),y=1):g=b[0].map((w,$)=>String.fromCharCode(65+$));const _=[];for(let w=y;w<b.length;w++){const $=b[w],A={};for(let E=0;E<g.length;E++)E<$.length?A[g[E]]=$[E]:A[g[E]]="";_.push(A)}return{headers:g,data:_}}async function s(f){const m=await t();return new Promise((p,h)=>{const v=new FileReader;v.onload=b=>{try{const g=new Uint8Array(b.target?.result),y=m.read(g,{type:"array"}),_=y.SheetNames[0],w=y.Sheets[_];p(m.utils.sheet_to_json(w))}catch(g){h(g)}},v.onerror=()=>{h(new Error("Failed to read file"))},v.readAsArrayBuffer(f)})}function c(f){return typeof f=="number"&&Number.isInteger(f)&&f>=2e4&&f<=5e4}function u(f){const m=new Date(Date.UTC(1899,11,30));return new Date(m.getTime()+f*(1440*60*1e3))}function d(f,m=!1){if(!(f instanceof Date)||Number.isNaN(f.getTime()))return"";const p=f.getFullYear(),h=String(f.getMonth()+1).padStart(2,"0"),v=String(f.getDate()).padStart(2,"0");return m?`${p}-${h}-${v}T${String(f.getHours()).padStart(2,"0")}:${String(f.getMinutes()).padStart(2,"0")}:${String(f.getSeconds()).padStart(2,"0")}`:`${p}-${h}-${v}`}return{downloadExcel:r,downloadCSV:o,readExcelFile:s,ensureXLSXLoaded:t,getSheetNames:i,readSheetData:l,getWorkbook:a,isExcelSerialDate:c,excelSerialDateToJSDate:u,formatDate:d}}var uo={},Wm=!1,Oc=typeof window<"u";function aV(){!Oc||Wm||(Wm=!0,window.addEventListener("storage",e=>{e.key!==null&&e.key in uo&&(uo[e.key].value=e.newValue!==null?JSON.parse(e.newValue):null)}))}function iV(e,t=null){if(!(e in uo)){const r=Oc?localStorage.getItem(e):null;uo[e]=(0,n.ref)(r!==null?JSON.parse(r):t),(0,n.watch)(uo[e],o=>{Oc&&localStorage.setItem(e,JSON.stringify(o))})}return uo[e]}function Gg(e){return aV(),new Proxy({},{get(t,r){return iV(r,e?.[r]??null)}})}var Yg=1e3,lV=60*Yg;function sV(e,t={}){const{interval:r=30*Yg,inactivityThreshold:o=5*lV,pauseInBackground:a=!0}=t,{idle:i}=I1(o),l=(0,n.ref)(!0),s=(0,n.ref)(null),c=()=>!a||document.visibilityState==="visible",u=()=>{l.value=!1,s.value!==null&&(clearTimeout(s.value),s.value=null)},d=()=>{s.value!==null&&(clearTimeout(s.value),s.value=null)},f=()=>{s.value!==null&&(clearTimeout(s.value),s.value=null);const h=async()=>{if(l.value&&c()&&!i.value)try{await e()}catch{}l.value&&(s.value=window.setTimeout(h,r))};h()},m=()=>{l.value&&f()};function p(){document.visibilityState==="visible"?l.value&&f():a&&d()}return(0,n.onMounted)(()=>{document.addEventListener("visibilitychange",p),f()}),(0,n.onUnmounted)(()=>{document.removeEventListener("visibilitychange",p),u()}),{isPolling:l,pausePolling:d,resumePolling:m,startPolling:f,stopPolling:u}}function cV(e,t,r){const o={...e};return r===void 0?delete o[t]:o[t]=r,o}function uV(e){const t=(0,da.useRoute)(),r=(0,da.useRouter)(),o={};return new Proxy({},{get(a,i){if(!(i in o)){const l=e?.[i];o[i]=(0,n.computed)({get:()=>t.query[i]??l,set:s=>r.replace({query:cV(t.query,i,s)})})}return o[i]}})}function dV(e){const t=(0,n.ref)(0),r=(0,n.ref)(0);let o=null;return(0,n.onMounted)(()=>{e.value&&(o=new ResizeObserver(a=>{for(const i of a)t.value=i.contentRect.width,r.value=i.contentRect.height}),o.observe(e.value),t.value=e.value.clientWidth,r.value=e.value.clientHeight)}),(0,n.onUnmounted)(()=>{o&&(o.disconnect(),o=null)}),{width:t,height:r}}var pn=(0,n.ref)([{value:"dark",class:"bgl-dark-mode",icon:"cloudy_night",label:"Dark Mode",isDark:!0},{value:"light",class:"bgl-light-mode",icon:"brightness_7",label:"Light Mode",isDark:!1},{value:"system",class:"system",icon:"settings_input_component",label:"System Default"}]),jm="color-mode",Kn=(0,n.ref)("system"),Rc=(0,n.ref)(!1),qu=(0,n.ref)(!1),Gu=typeof window<"u";function fV(){return qu.value&&Gu&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}function qm(e){return pn.value.find(t=>t.value===e)}function Ni(e){if(!Gu)return;const t=document.documentElement;if(pn.value.forEach(r=>{r.class!=="system"&&t.classList.remove(r.class)}),e==="system"){const r=fV();Rc.value=r;const o=pn.value.find(l=>l.value==="dark"),a=pn.value.find(l=>l.value==="light"),i=r?o:a;i&&t.classList.add(i.class)}else{const r=qm(e),o=r&&r.isDark&&!qu.value?qm("light"):r;o&&(t.classList.add(o.class),Rc.value=o.isDark??!1)}}function mV(){const e=pn.value.filter(t=>t.value!=="system");e.length!==0&&(Kn.value=e[(e.findIndex(t=>t.value===Kn.value)+1)%e.length].value)}function pV(e={}){e.allowDark!==void 0&&(qu.value=e.allowDark),Ni(Kn.value)}function hV(e){if(!pn.value.some(t=>t.value===e.value)){const t=pn.value.findIndex(r=>r.value==="system");t>-1?pn.value.splice(t,0,e):pn.value.push(e)}}var Gm=!1;function gV(){if(Gm||!Gu)return;Gm=!0;const e=window.localStorage.getItem(jm);pn.value.some(t=>t.value===e)&&(Kn.value=e),Ni(Kn.value),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{Kn.value==="system"&&Ni("system")}),(0,n.watch)(Kn,t=>{localStorage.setItem(jm,t),Ni(t)})}function vV(){return gV(),{isDark:Rc,theme:(0,n.computed)(()=>Kn.value),themeOptions:pn,toggleTheme:mV,addTheme:hV,setTheme:e=>{Kn.value=e}}}function Xg(e,t,r,o){N1(e,(a,i)=>{if(t?.()?.setCustomValidity(""),!r||a===i||!a)return;const l=r(a,o?.());typeof l=="string"&&t?.()?.setCustomValidity(l)},{debounce:500})}function Kg({schema:e,columns:t,data:r}={}){const o=(0,n.computed)(()=>(0,n.toValue)(e)),a=(0,n.computed)(()=>(0,n.toValue)(t));return o.value?a.value&&a.value.length>0?o.value.filter(i=>a.value?.includes(i.id)):o.value:jg(r,a.value)}const yV={s:"400px",m:"540px",l:"720px",xl:"960px",full:"100%"};var bV={key:2,class:"flex-grow-1"},_V=(0,n.defineComponent)({__name:"Dialog",props:{open:{type:Boolean},title:{},width:{default:"m"},position:{default:"center"},dismissable:{type:Boolean,default:!0},flat:{type:Boolean,default:!0},thin:{type:Boolean,default:!1},centerTitle:{type:Boolean,default:!1},ellipsisTitle:{type:Boolean,default:!1},closePlacement:{default:"header-end"}},emits:["update:open","close"],setup(e,{expose:t,emit:r}){const o=e,a=r,i=(0,n.ref)(null),l=(0,n.ref)(!1),s=(0,n.ref)(!0),c=(0,n.computed)(()=>yV[o.width]),u=(0,n.computed)(()=>o.position==="left"?"dialog-left ms-1 me-auto mt-1 mb-1 height-100-2 m_m-0 m_h-100vh m_max-h-100vh m_radius-0":o.position==="right"?"dialog-right me-1 ms-auto mt-1 mb-1 height-100-2 m_m-0 m_h-100vh m_max-h-100vh m_radius-0":o.position==="top"?"dialog-top mx-auto mt-1 mb-auto":o.position==="bottom"?"dialog-bottom mx-auto mb-1 mt-auto":"dialog-center mx-auto");(0,n.watch)(()=>o.open,v=>{v?(i.value?.showModal(),l.value=!1,s.value=!1,setTimeout(()=>{s.value=!0},250)):d()}),(0,n.onMounted)(()=>{o.open&&i.value?.showModal()});function d(){l.value||(l.value=!0)}function f(){l.value&&(i.value?.close(),l.value=!1,a("close"))}function m(v){v.target===i.value&&o.dismissable&&a("update:open",!1)}function p(v){if(!o.dismissable){v.preventDefault();return}a("update:open",!1)}function h(){s.value=!1,a("update:open",!1)}return t({close:h}),(v,b)=>((0,n.openBlock)(),(0,n.createElementBlock)("dialog",{ref_key:"dialogRef",ref:i,class:(0,n.normalizeClass)([[u.value,{"is-closing":l.value}],"border-none shadow-30 p-0 testMe1"]),style:(0,n.normalizeStyle)({"--dialog-width":c.value}),onClick:m,onCancel:p,onAnimationend:f},[(0,n.createElementVNode)("div",{class:"grid grid-dialog max-height-100-2",onClick:b[0]||(b[0]=(0,n.withModifiers)(()=>{},["stop"]))},[e.title||e.dismissable?((0,n.openBlock)(),(0,n.createElementBlock)("header",{key:0,class:(0,n.normalizeClass)(["flex space-between flex-shrink-0 align-items-start gap-05",{"border-bottom":!e.flat,"border-none":!e.title,"m_ps-1":e.title,"p-05 m_p-05":!e.title,"ps-1-5 pe-1 py-1 ":!e.thin&&e.title,"ps-1 pe-05 py-05":e.thin&&e.title}])},[e.dismissable&&e.closePlacement==="header-start"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:0,flat:"",icon:"close","aria-label":"Close",class:"dialog-close relative z-2",thin:"",onClick:h})):(0,n.createCommentVNode)("",!0),e.title?((0,n.openBlock)(),(0,n.createElementBlock)("h3",{key:1,class:(0,n.normalizeClass)(["dialog-title m-0 txt20 semi w-100p",{"txt-center balance":e.centerTitle,"word-break-all":!e.centerTitle,"ellipsis-1":e.ellipsisTitle}])},(0,n.toDisplayString)(e.title),3)):(0,n.createCommentVNode)("",!0),e.title?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("div",bV)),e.dismissable&&e.closePlacement==="header-end"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:3,flat:"",icon:"close","aria-label":"Close",class:"dialog-close relative z-2",thin:"",onClick:h})):(0,n.createCommentVNode)("",!0)],2)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["overflow-y flex-grow-1 m_p-1",{"px-1 py-05":e.thin,"px-1-5 py-1":!e.thin}])},[(0,n.renderSlot)(v.$slots,"default",{},void 0,!0)],2),v.$slots.footer?((0,n.openBlock)(),(0,n.createElementBlock)("footer",{key:1,class:(0,n.normalizeClass)(["flex flex-shrink-0 gap-05 m_px-05 m_py-05 justify-content-end",{"border-top":!e.flat,"px-05 py-05":e.thin,"px-1-5 py-1":!e.thin}])},[(0,n.renderSlot)(v.$slots,"footer",{},void 0,!0)],2)):(0,n.createCommentVNode)("",!0)]),e.dismissable&&e.closePlacement==="overlay-start"&&s.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:0,icon:"close","aria-label":"Close",class:"fixed top-1 start-1 z-999 overlay-btn",onClick:h})):(0,n.createCommentVNode)("",!0),e.dismissable&&e.closePlacement==="overlay-end"&&s.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:1,icon:"close","aria-label":"Close",class:"fixed top-1 end-1 z-999 overlay-btn",onClick:h})):(0,n.createCommentVNode)("",!0)],38))}}),qn=we(_V,[["__scopeId","data-v-3fa1d15e"]]),wV=(0,n.defineComponent)({__name:"DialogConfirm",props:{open:{type:Boolean},title:{},message:{},width:{default:"s"},position:{default:"center"},dismissable:{type:Boolean,default:!0},confirmText:{},cancelText:{},confirmColor:{default:"primary"}},emits:["update:open","resolve"],setup(e,{emit:t}){const r=e,o=t,{$t:a}=ft(),i=(0,n.computed)(()=>r.title||a("modalConfirm.title")),l=(0,n.computed)(()=>r.confirmText||a("modalConfirm.confirm")),s=(0,n.computed)(()=>r.cancelText||a("modalConfirm.cancel"));function c(){o("resolve",!0),o("update:open",!1)}function u(){o("resolve",!1),o("update:open",!1)}function d(){o("resolve",!1)}return(f,m)=>((0,n.openBlock)(),(0,n.createBlock)(qn,{open:e.open,title:i.value,width:e.width,position:e.position,dismissable:e.dismissable,"onUpdate:open":m[0]||(m[0]=p=>f.$emit("update:open",p)),onClose:d},{footer:(0,n.withCtx)(()=>[(0,n.createVNode)(ne,{flat:"",onClick:u},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(s.value),1)]),_:1}),(0,n.createVNode)(ne,{color:e.confirmColor,onClick:c},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(l.value),1)]),_:1},8,["color"])]),default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("p",null,(0,n.toDisplayString)(e.message),1)]),_:1},8,["open","title","width","position","dismissable"]))}}),Jg=wV,$V=(0,n.defineComponent)({__name:"FormFlow",props:{schema:{},modelValue:{},components:{},errors:{},onSubmit:{type:Function}},emits:["update:modelValue"],setup(e,{expose:t,emit:r}){const o=e,a=r,{$t:i}=ft();function l(T,L){const F=L.split(".");let O=T;for(const B of F)O=O?.[B];return O}function s(T,L,F){const O=L.split(".");let B=T;for(let q=0;q<O.length-1;q++){const te=O[q];(B[te]==null||typeof B[te]!="object")&&(B[te]={}),B=B[te]}B[O[O.length-1]]=F}function c(T){const L={...T??{}};for(const[F,O]of Object.entries(o.schema._fields)){const B=O._config.default;B!==void 0&&l(L,F)===void 0&&s(L,F,B)}return L}const u=(0,n.ref)(c(o.modelValue)),d=(0,n.ref)({}),f=(0,n.ref)(!1),m=(0,n.ref)("idle"),p=(0,n.ref)();let h=!1;(0,n.watch)(()=>o.modelValue,T=>{h||(u.value=c(T))},{deep:!0}),(0,n.watch)(u,T=>{h=!0,a("update:modelValue",T),(0,n.nextTick)(()=>{h=!1})},{deep:!0});function v(T){return T._condition==null?!0:vh(T._condition,u.value)}const b=(0,n.computed)(()=>{const T=[];for(const[L,F]of Object.entries(o.schema._fields))v(F)&&T.push({key:L,field:F});return T});function g(T,L,F){s(u.value,T,L),(m.value==="success"||m.value==="error")&&(m.value="idle"),f.value&&_(T,F)}function y(T,L){return T==null||T===""||Array.isArray(T)&&T.length===0||L._type==="tel"&&typeof T=="string"&&/^\+\d+$/.test(T)}function _(T,L){const F=w(T);if(L._config.required===!0&&y(F,L))return d.value={...d.value,[T]:L._config.requiredMessage??i("form.required")},!1;if(L._type==="email"&&F&&!Nr.test(F))return d.value={...d.value,[T]:i("form.invalidEmail")},!1;if(L._validations!=null)for(const O of L._validations){const B=O(F);if(B!==!0)return d.value={...d.value,[T]:B},!1}return d.value=Object.fromEntries(Object.entries(d.value).filter(([O])=>O!==T)),!0}function w(T){return l(u.value,T)}function $(T,L){return L._config.label!=null?L._config.label:T.split(/[._-]/).map(F=>F.charAt(0).toUpperCase()+F.slice(1)).join(" ")}function A(T){if(typeof T!="string"&&(T._type==="select"||T._type==="multiselect")&&T._config.display==="btn")return s0;const L=typeof T=="string"?T:T._type;return{text:Fe,email:nu,password:Mh,number:Nn,tel:wu,url:Fe,date:ha,time:Fe,datetime:ha,textarea:Fe,richtext:mu,json:tu,checkbox:St,toggle:kl,radio:Ph,select:Ut,multiselect:Ut,array:ro,upload:va,color:xn,range:ou}[L]??Fe}const E=(0,n.computed)(()=>{const T={...d.value,...o.errors||{}},L={};for(const[F,O]of Object.entries(T))L[F]=ke(O)??O;return L});function k(T,L){const F={label:$(L,T),modelValue:w(L),"onUpdate:modelValue":O=>{g(L,O,T)},error:E.value[L],...T._config,name:T._config.name??L};if(T._type==="textarea"&&(F.multiline=!0),T._type==="multiselect"&&(F.multiselect=!0),T._type==="json"&&(F.language=F.language??"json"),T._type==="array"){const O=Object.fromEntries(Object.entries(T._config).filter(([B])=>B!=="schema"&&B!=="itemType"));Object.assign(F,O),F.allowAdd=F.allowAdd??!0,F.allowDelete=F.allowDelete??!0}return F}function P(T){return typeof T=="string"&&o.components?.[T]!=null?o.components[T]:T}function N(T){return T._component!=null}function V(){let T=!0;const L={};for(const{key:F,field:O}of b.value){const B=w(F);if(O._config.required===!0&&y(B,O)){L[F]=O._config.requiredMessage??i("form.required"),T=!1;continue}if(O._type==="email"&&B&&!Nr.test(B)){L[F]=i("form.invalidEmail"),T=!1;continue}if(O._validations!=null)for(const q of O._validations){const te=q(B);if(te!==!0){L[F]=te,T=!1;break}}}return d.value=L,T}async function x(T){T&&T.preventDefault(),f.value=!0;const L=V();if(L){if(o.onSubmit){m.value="submitting";try{await o.onSubmit(u.value),m.value="success"}catch{m.value="error"}}}else{T?.stopPropagation();const F=b.value.find(({key:O})=>d.value[O])?.key;if(F!=null&&p.value){const O=p.value.querySelector(`[name="${F}"]`)||p.value.querySelector(`[id="${F}"]`)||p.value.querySelector(`[data-field="${F}"]`)||p.value.querySelector("input, select, textarea");O&&(O.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(()=>{O instanceof HTMLElement&&O.focus()},300))}}return L}return t({validate:V,submit:x,formState:m}),(T,L)=>{const F=(0,n.resolveComponent)("FormFlow",!0);return(0,n.openBlock)(),(0,n.createElementBlock)("form",{ref_key:"formElement",ref:p,class:(0,n.normalizeClass)(["grid-form",e.schema._class]),onSubmit:x},[m.value==="success"?(0,n.renderSlot)(T.$slots,"success",{key:0,formData:u.value}):((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(b.value,({key:O,field:B})=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:O,class:(0,n.normalizeClass)([B._class,B._config.class])},[(0,n.renderSlot)(T.$slots,`field:${O}`,{value:w(O),field:B,formData:u.value,error:d.value[O],onChange:q=>{g(O,q,B)}},()=>[B._type==="array"&&B._config.schema?._isSchema?((0,n.openBlock)(),(0,n.createBlock)(ro,(0,n.mergeProps)({key:0,ref_for:!0},k(B,O)),{default:(0,n.withCtx)(({item:q})=>[(0,n.createVNode)(F,{"model-value":q.value,schema:B._config.schema,components:e.components,"onUpdate:modelValue":te=>{q.value=te}},null,8,["model-value","schema","components","onUpdate:modelValue"])]),_:2},1040)):B._type==="array"&&typeof B._config.schema=="string"?((0,n.openBlock)(),(0,n.createBlock)(ro,(0,n.mergeProps)({key:1,ref_for:!0},k(B,O)),{default:(0,n.withCtx)(({item:q})=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(A(B._config.schema)),{"model-value":q.value,"onUpdate:modelValue":te=>{q.value=te}},null,8,["model-value","onUpdate:modelValue"]))]),_:2},1040)):B._type==="array"&&B._config.schema?((0,n.openBlock)(),(0,n.createBlock)(ro,(0,n.mergeProps)({key:2,ref_for:!0},k(B,O)),{default:(0,n.withCtx)(({item:q})=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(P(B._config.schema)),{modelValue:q.value,"onUpdate:modelValue":te=>q.value=te},null,8,["modelValue","onUpdate:modelValue"]))]),_:2},1040)):B._type==="array"&&B._config.itemType?((0,n.openBlock)(),(0,n.createBlock)(ro,(0,n.mergeProps)({key:3,ref_for:!0},k(B,O)),{default:(0,n.withCtx)(({item:q})=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(A(B._config.itemType)),{"model-value":q.value,"onUpdate:modelValue":te=>{q.value=te}},null,8,["model-value","onUpdate:modelValue"]))]),_:2},1040)):N(B)?((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(P(B._component.component)),(0,n.mergeProps)({key:4,"model-value":w(O)},{ref_for:!0},B._component.props,{"onUpdate:modelValue":q=>g(O,q,B)}),null,16,["model-value","onUpdate:modelValue"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(A(B)),(0,n.mergeProps)({key:5,ref_for:!0},k(B,O)),null,16))])],2))),128)),(0,n.renderSlot)(T.$slots,"errors",{errors:E.value,errorCount:Object.keys(E.value).filter(O=>E.value[O]).length,visibleFields:b.value}),m.value==="error"?(0,n.renderSlot)(T.$slots,"error",{key:0,formData:u.value}):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(T.$slots,"submit",{submit:x,validate:V,formData:u.value,errors:E.value,formState:m.value})],64))],34)}}}),Yu=$V,kV={key:0,class:"dialog-form-error bg-red-30 color-red radius-1 mb-1 txt14 px-1 py-075"},EV=(0,n.defineComponent)({__name:"DialogForm",props:{open:{type:Boolean},title:{},width:{default:"m"},position:{default:"center"},dismissable:{type:Boolean,default:!0},schema:{},modelValue:{},onSubmit:{},onDelete:{},submitText:{},cancelText:{},deleteText:{}},emits:["update:open","resolve"],setup(e,{emit:t}){const r=e,o=t,{$t:a}=ft(),i=(0,n.ref)({...r.modelValue||{}}),l=(0,n.ref)(!1),s=(0,n.ref)(!1),c=(0,n.ref)(null),u=(0,n.ref)(),d=(0,n.computed)(()=>typeof r.onDelete=="function");async function f(){if(!l.value){if(!u.value?.validate()){c.value=a("dialogForm.validationError");return}c.value=null,l.value=!0;try{r.onSubmit&&await r.onSubmit(i.value),o("resolve",{action:"submit",data:i.value}),o("update:open",!1)}catch(v){c.value=v instanceof Error?v.message:a("dialogForm.errorOccurred")}finally{l.value=!1}}}async function m(){if(!(s.value||!r.onDelete)){c.value=null,s.value=!0;try{await r.onDelete(i.value),o("resolve",{action:"delete",data:i.value}),o("update:open",!1)}catch(v){c.value=v instanceof Error?v.message:a("dialogForm.errorOccurred")}finally{s.value=!1}}}function p(){o("resolve",{action:"cancel",data:i.value}),o("update:open",!1)}function h(){o("resolve",{action:"cancel",data:i.value})}return(v,b)=>((0,n.openBlock)(),(0,n.createBlock)(qn,{open:e.open,title:e.title,width:e.width,position:e.position,dismissable:e.dismissable,"onUpdate:open":b[1]||(b[1]=g=>v.$emit("update:open",g)),onClose:h},{footer:(0,n.withCtx)(()=>[d.value?((0,n.openBlock)(),(0,n.createBlock)(ne,{key:0,color:"red",flat:"",loading:s.value,disabled:l.value,class:"me-auto",onClick:m},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.deleteText||(0,n.unref)(a)("dialogForm.delete")),1)]),_:1},8,["loading","disabled"])):(0,n.createCommentVNode)("",!0),b[2]||(b[2]=(0,n.createElementVNode)("div",{class:"flex-grow-1"},null,-1)),(0,n.createVNode)(ne,{flat:"",disabled:l.value||s.value,onClick:p},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.cancelText||(0,n.unref)(a)("dialogForm.cancel")),1)]),_:1},8,["disabled"]),(0,n.createVNode)(ne,{color:"primary",loading:l.value,disabled:s.value,onClick:f},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.submitText||(0,n.unref)(a)("dialogForm.save")),1)]),_:1},8,["loading","disabled"])]),default:(0,n.withCtx)(()=>[c.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",kV,(0,n.toDisplayString)(c.value),1)):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(Yu,{ref_key:"formFlowRef",ref:u,modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=g=>i.value=g),schema:e.schema,onSubmit:f},null,8,["modelValue","schema"])]),_:1},8,["open","title","width","position","dismissable"]))}}),Zg=EV;const Xu=Symbol("dialog");var el=null;function Qg(){const e=(0,n.inject)(Xu,null);if(!e){if(el)return el;throw new Error("Dialog API not provided. Make sure DialogPlugin is installed via app.use(DialogPlugin)")}return e}const ev={install:e=>{let t=0;const r=(0,n.reactive)([]),o={form:i=>new Promise(l=>{const s=++t;r.push({id:s,type:"form",options:i,resolve:l,open:!0})}),confirm:i=>new Promise(l=>{const s=++t,c=typeof i=="string"?{message:i}:i;r.push({id:s,type:"confirm",options:c,resolve:l,open:!0})}),open:i=>{const l=++t,s={id:l,type:"open",options:i,resolve:()=>{},open:!0};return r.push(s),{close:()=>{const c=r.findIndex(u=>u.id===l);c!==-1&&(r[c].open=!1,setTimeout(()=>{const u=r.findIndex(d=>d.id===l);u!==-1&&r.splice(u,1)},200))}}}};el||(el=o),e.provide(Xu,o);const a=(0,n.defineComponent)({name:"DialogContainer",setup(){function i(c,u){c.resolve(u),c.open=!1,setTimeout(()=>{const d=r.findIndex(f=>f.id===c.id);d!==-1&&r.splice(d,1)},200)}function l(c,u){c.resolve(u),c.open=!1,setTimeout(()=>{const d=r.findIndex(f=>f.id===c.id);d!==-1&&r.splice(d,1)},200)}function s(c,u){u||(c.open=!1,setTimeout(()=>{const d=r.findIndex(f=>f.id===c.id);d!==-1&&r.splice(d,1)},200))}return{dialogStack:r,handleFormResolve:i,handleConfirmResolve:l,handleOpenUpdate:s}},render(){return this.dialogStack.map(i=>{if(i.type==="form")return(0,n.h)(Zg,{key:i.id,open:i.open,...i.options,"onUpdate:open":l=>{l||this.handleFormResolve(i,{action:"cancel",data:i.options.modelValue||{}})},onResolve:l=>{this.handleFormResolve(i,l)}});if(i.type==="confirm")return(0,n.h)(Jg,{key:i.id,open:i.open,...i.options,"onUpdate:open":l=>{l||this.handleConfirmResolve(i,!1)},onResolve:l=>{this.handleConfirmResolve(i,l)}});if(i.type==="open"){const l=i.options;return(0,n.h)(qn,{key:i.id,open:i.open,title:l.title,width:l.width,position:l.position,dismissable:l.dismissable,class:l.class,"onUpdate:open":s=>{this.handleOpenUpdate(i,s)}},{default:()=>(0,n.h)((typeof l.component=="string",l.component),l.props||{})})}return null})}});if(e.component("DialogContainer",a),typeof document<"u"&&typeof window<"u"){const i=()=>{if(!document.getElementById("bagelink-dialog-root")){const l=document.createElement("div");l.id="bagelink-dialog-root",document.body.appendChild(l);const s=(0,n.createApp)(a);Object.assign(s._context,e._context),s.mount(l)}};document.body&&i(),e.mixin({mounted(){this.$root===this&&i()}})}}};var Ku={pint:{pattern:/\d/},int:{pattern:/[\d-]/},pnum:{pattern:/[\d.]/},tel:{pattern:/[\d.\-()\s+]/},money:{pattern:/[\d.\s,]/},number:{pattern:/[\d\-.]/},num:{pattern:/[\d\-.]/},hex:{pattern:/[0-9a-f]/i},email:{pattern:/[\w.\-@]/},alpha:{pattern:/[a-z_]/i},alphanum:{pattern:/\w/},lower:{pattern:/[a-z]/i,transform:e=>e.toLowerCase()},upper:{pattern:/[A-Z]/i,transform:e=>e.toUpperCase()},slug:{pattern:/[a-z0-9-]/i,transform:e=>e.toLowerCase().replace(/\s/g,"-")},snake:{pattern:/[a-z_]/,transform:e=>e.toLowerCase().replace(/\s/g,"_")}},si=new WeakMap;function xs(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)return e;const t=e.querySelector("input, textarea");return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?t:null}function Ym(e){const t=Object.keys(e.modifiers);return t.length>0?t[t.length-1]:""}function tv(e){return e.pattern!=null?e.pattern:e.modifier!=null&&e.modifier!==""?Ku[e.modifier]?.pattern??/./:/./}function Xm(e,t,r){r.keydownEvent=(o=>{SV(o,t,r)}),r.inputEvent=(o=>{nv(o,t,r)}),r.compositionStartEvent=(()=>{xV(r)}),r.compositionEndEvent=(o=>{TV(o,t,r)}),t.addEventListener("keydown",r.keydownEvent),t.addEventListener("input",r.inputEvent,{capture:!0}),t.addEventListener("compositionstart",r.compositionStartEvent),t.addEventListener("compositionend",r.compositionEndEvent)}function Km(e,t){t.keydownEvent&&e.removeEventListener("keydown",t.keydownEvent),t.inputEvent&&e.removeEventListener("input",t.inputEvent,{capture:!0}),t.compositionStartEvent&&e.removeEventListener("compositionstart",t.compositionStartEvent),t.compositionEndEvent&&e.removeEventListener("compositionend",t.compositionEndEvent),t.keydownEvent=void 0,t.inputEvent=void 0,t.compositionStartEvent=void 0,t.compositionEndEvent=void 0}function CV(e){const t=["Tab","Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"];return e.ctrlKey||e.altKey||e.metaKey?!0:t.includes(e.key)}function SV(e,t,r){if(r.composing===!0||CV(e)||r.modifier!=null&&r.modifier!==""&&typeof Ku[r.modifier]?.transform=="function")return;const o=tv(r),a=e.key;o.test(a)||e.preventDefault()}function xV(e){e.composing=!0}function TV(e,t,r){r.composing=!1,nv(e,t,r)}function Jm(e,t){const r=tv(t);let o;if(t.modifier!=null&&t.modifier!==""){const i=Ku[t.modifier]?.transform;o=i?i(e):e}else o=e;let a="";for(let i=0;i<o.length;i++){const l=o[i];r.test(l)&&(a+=l)}return a}function nv(e,t,r){if(r.reformatting===!0||r.composing===!0)return;const o=t.value,a=t.selectionEnd??o.length,i=o.slice(0,a),l=Jm(o,r);if(l===o)return;const s=Jm(i,r).length;r.reformatting=!0,t.value=l,t.setSelectionRange(s,s),r.reformatting=!1}var NV={beforeMount(e,t){const r=xs(e);if(r===null)return;const o={modifier:Ym(t)};typeof t.value=="object"&&t.value!==null&&(o.pattern=t.value.pattern??/./,o.validateOnly=t.value.validateOnly===!0),si.set(e,o),Xm(e,r,o)},updated(e,t){const r=xs(e);if(r===null)return;const o=si.get(e);o!==void 0&&(Km(r,o),o.modifier=Ym(t),typeof t.value=="object"&&t.value!==null&&(o.pattern=t.value.pattern??/./,o.validateOnly=t.value.validateOnly===!0),Xm(e,r,o))},unmounted(e){const t=xs(e),r=si.get(e);t!==null&&r!==void 0&&Km(t,r),si.delete(e)},getSSRProps(){return{}}},rv=NV,DV=()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;function AV(e){const t={y:"up",delay:0,once:!0,threshold:.12};return e?typeof e=="string"?{...t,y:e}:{...t,...e}:t}var Ts=new WeakMap,BV={mounted(e,t){const r=AV(t.value);if(DV())return;e.classList.add("bgl-reveal"),r.y!=="none"&&(e.dataset.revealDir=r.y),r.delay&&e.style.setProperty("--bgl-reveal-delay",`${r.delay}ms`);const o=new IntersectionObserver(a=>{for(const i of a)i.isIntersecting?(e.classList.add("bgl-reveal-in"),r.once&&o.unobserve(e)):r.once||e.classList.remove("bgl-reveal-in")},{threshold:r.threshold,rootMargin:"0px 0px -8% 0px"});o.observe(e),Ts.set(e,o)},unmounted(e){Ts.get(e)?.disconnect(),Ts.delete(e)},getSSRProps(){return{}}},ov=BV;function MV(e){let t=e.__rippleContainer;return(!t||!t.isConnected)&&(t=document.createElement("span"),Object.assign(t.style,{position:"absolute",inset:"0",overflow:"hidden",borderRadius:"inherit",pointerEvents:"none"}),e.appendChild(t),e.__rippleContainer=t),t}var LV={mounted(e,t){const r=o=>{const a=e.getBoundingClientRect(),i=Math.max(a.width,a.height),l=document.createElement("span");l.className="ripple",Object.assign(l.style,{width:`${i}px`,height:`${i}px`,left:`${o.clientX-a.left-i/2}px`,top:`${o.clientY-a.top-i/2}px`,position:"absolute",borderRadius:"50%",transform:"scale(0)",background:"rgba(0, 0, 0, 0.3)",pointerEvents:"none",animation:"rippleEffect 0.6s ease-out"}),MV(e).appendChild(l),setTimeout(()=>{l.remove()},600)};e.__rippleClickHandler=r,t.value!==!1&&(getComputedStyle(e).position==="static"&&(e.style.position="relative"),e.addEventListener("mousedown",r))},updated(e,t){const r=e.__rippleClickHandler;t.value===!1?e.removeEventListener("mousedown",r):(getComputedStyle(e).position==="static"&&(e.style.position="relative"),e.addEventListener("mousedown",r))},unmounted(e){const t=e.__rippleClickHandler;t&&(e.removeEventListener("mousedown",t),delete e.__rippleClickHandler)},getSSRProps(){return{}}},av=LV,Zo=Symbol("resize");function Zm(e,t){const r=t.value||{};let o=!1,a=0,i=0,l=null;r.handle?(l=e.querySelector(r.handle),l||(l=document.createElement("div"),l.className=r.handle.replace(".","")+(r.handleClass?` ${r.handleClass}`:""),l.style.cssText=`
|
|
431
431
|
position: absolute;
|
|
432
432
|
bottom: 0;
|
|
433
433
|
left: 0;
|
|
@@ -436,7 +436,7 @@ ${t.preList[o]}
|
|
|
436
436
|
background: rgba(0, 0, 0, 0.1);
|
|
437
437
|
cursor: ns-resize;
|
|
438
438
|
transition: background 0.2s;
|
|
439
|
-
`,e.appendChild(l))):l=e,l.addEventListener("mouseenter",()=>{l!==e&&(l.style.background="rgba(0, 0, 0, 0.2)")}),l.addEventListener("mouseleave",()=>{l!==e&&!o&&(l.style.background="rgba(0, 0, 0, 0.1)")}),l.style.cursor="ns-resize",l.style.userSelect="none";function s(m){return{clientY:m,deltaY:m-a,initialHeight:i}}function c(m){return r.gridSize?Math.round(m/r.gridSize)*r.gridSize:m}function u(m){if(!o)return;m.preventDefault();const p=s("touches"in m?m.touches[0].clientY:m.clientY);let h=i+p.deltaY;r.minHeight!==void 0&&(h=Math.max(h,r.minHeight)),r.maxHeight!==void 0&&(h=Math.min(h,r.maxHeight)),h=c(h),e.style.height=`${h}px`,r.onResize&&r.onResize(p),l!==e&&(l.style.background="rgba(0, 0, 0, 0.3)")}function d(m){if(!o)return;const p=s("touches"in m?m.changedTouches[0].clientY:m.clientY);o=!1,document.body.style.cursor="",document.body.style.userSelect="",l!==e&&(l.style.background="rgba(0, 0, 0, 0.1)"),r.onEnd&&r.onEnd(p),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d),document.removeEventListener("touchcancel",d)}function f(m){m instanceof MouseEvent&&m.button!==0||(m.preventDefault(),o=!0,a="touches"in m?m.touches[0].clientY:m.clientY,i=e.offsetHeight,r.onStart&&r.onStart(m),document.body.style.cursor="ns-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",u,{passive:!1}),document.addEventListener("mouseup",d),document.addEventListener("touchmove",u,{passive:!1}),document.addEventListener("touchend",d),document.addEventListener("touchcancel",d))}l.addEventListener("mousedown",f),l.addEventListener("touchstart",f,{passive:!1}),e[Zo]=()=>{l!==e&&e.removeChild(l),l.removeEventListener("mousedown",f),l.removeEventListener("touchstart",f),l.removeEventListener("mouseenter",f),l.removeEventListener("mouseleave",f),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d),document.removeEventListener("touchcancel",d)}}const LV={mounted(e,t){Zm(e,t)},unmounted(e){const t=e[Zo];typeof t=="function"&&(t(),delete e[Zo])},updated(e,t){if(t.value!==t.oldValue){const r=e[Zo];typeof r=="function"&&(r(),delete e[Zo]),Zm(e,t)}},getSSRProps(){return{}}};function Ju(e){return e==="richtext"?3:e==="textarea"||e==="json"||e==="radio"||e==="file"||e==="signature"?2:1}function Zu(e){if(e.format)switch(e.format){case"email":return"email";case"tel":return"phone";case"uri":case"url":return"url";case"date":case"date-time":return"date"}if(e.enum)return"select";switch(e.type){case"number":case"integer":return"number";case"boolean":return"checkbox"}return"text"}function iv(e){if(!e?.properties)return[];const t=new Set(e.required??[]),r=[];for(const[o,a]of Object.entries(e.properties)){const i=a["x-field-type"]??Zu(a),l={};a.minLength!==void 0&&(l.minLength=a.minLength),a.maxLength!==void 0&&(l.maxLength=a.maxLength),a.minimum!==void 0&&(l.min=a.minimum),a.maximum!==void 0&&(l.max=a.maximum),a.multipleOf!==void 0&&(l.step=a.multipleOf),a.pattern!==void 0&&(l.pattern=a.pattern),a["x-options"]?l.options=a["x-options"]:a.enum&&(l.options=a.enum.map(c=>({label:String(c),value:String(c)})));const s={id:crypto.randomUUID(),key:o,type:i,label:a.title??o,placeholder:a["x-placeholder"],description:a.description,required:t.has(o)||void 0,colSpan:a["x-col-span"]??12,colStart:a["x-col-start"],rowSpan:a["x-row-span"]??Ju(i),rowStart:a["x-row-start"],mColSpan:a["x-m-col-span"]??12,mColStart:a["x-m-col-start"],mRowSpan:a["x-m-row-span"],mRowStart:a["x-m-row-start"],hideLabel:a["x-hide-label"]??!1,richTextVariant:a["x-rich-text-variant"],markdownShowFormatting:a["x-markdown-show-formatting"],textareaRows:a["x-textarea-rows"],textareaAutoHeight:a["x-textarea-autoheight"],numberLayout:a["x-number-layout"],numberSpinner:a["x-number-spinner"]??!0,phoneOnlyCountries:a["x-phone-only-countries"],selectMultiselect:a["x-select-multiselect"],fileMultiple:a["x-file-multiple"],fileHeight:a["x-file-height"],fileAccept:a["x-file-accept"],fileTheme:a["x-file-theme"],fileShowIcon:a["x-file-show-icon"]===!1?!1:void 0,fileIcon:a["x-file-icon"],dateEnableTime:a["x-date-enable-time"],dateMin:a["x-date-min"],dateMax:a["x-date-max"],rangeMulti:a["x-range-multi"],radioThin:a["x-radio-thin"],radioHideRadio:a["x-radio-hide-radio"],radioAlign:a["x-radio-align"],textIcon:a["x-text-icon"],textIconStart:a["x-text-icon-start"],validation:Object.keys(l).length>0?l:void 0,defaultValue:a.default,content:a["x-field-type"]==="heading"?a.title:void 0};r.push(s)}return r}function PV(e,t){const r={},o=[];for(const i of e){const l={};if(i.type==="heading"||i.type==="divider")l.type="string",l.title=i.content||i.label,l["x-field-type"]=i.type;else{switch(i.type){case"text":case"textarea":case"richtext":case"markdown":case"email":case"phone":case"url":case"date":case"file":case"signature":case"color":l.type="string";break;case"number":case"range":l.type="number";break;case"checkbox":case"toggle":l.type="boolean";break;case"json":l.type="object";break;case"select":case"radio":l.type="string",i.validation?.options&&(l.enum=i.validation.options.map(s=>s.value));break}i.type==="email"&&(l.format="email"),i.type==="phone"&&(l.format="tel"),i.type==="url"&&(l.format="uri"),i.type==="date"&&(l.format=i.dateEnableTime?"date-time":"date"),i.type==="color"&&(l.format="color"),l.title=i.label,i.description&&(l.description=i.description),i.defaultValue!==void 0&&(l.default=i.defaultValue),i.type!=="text"&&(l["x-field-type"]=i.type),i.validation?.minLength!==void 0&&(l.minLength=i.validation.minLength),i.validation?.maxLength!==void 0&&(l.maxLength=i.validation.maxLength),i.validation?.min!==void 0&&(l.minimum=i.validation.min),i.validation?.max!==void 0&&(l.maximum=i.validation.max),i.validation?.step!==void 0&&(l.multipleOf=i.validation.step),i.validation?.pattern!==void 0&&(l.pattern=i.validation.pattern),i.required&&o.push(i.key)}i.placeholder&&(l["x-placeholder"]=i.placeholder),i.validation?.options&&(l["x-options"]=i.validation.options),i.colSpan!==void 0&&i.colSpan!==12&&(l["x-col-span"]=i.colSpan),i.colStart!==void 0&&(l["x-col-start"]=i.colStart),i.rowSpan!==void 0&&i.rowSpan!==Ju(i.type)&&(l["x-row-span"]=i.rowSpan),i.rowStart!==void 0&&(l["x-row-start"]=i.rowStart),i.mColSpan!==void 0&&i.mColSpan!==12&&(l["x-m-col-span"]=i.mColSpan),i.mColStart!==void 0&&(l["x-m-col-start"]=i.mColStart),i.mRowSpan!==void 0&&(l["x-m-row-span"]=i.mRowSpan),i.mRowStart!==void 0&&(l["x-m-row-start"]=i.mRowStart),i.hideLabel===!0&&(l["x-hide-label"]=!0),i.richTextVariant&&(l["x-rich-text-variant"]=i.richTextVariant),i.markdownShowFormatting===!0&&(l["x-markdown-show-formatting"]=!0),i.textareaRows!==void 0&&(l["x-textarea-rows"]=i.textareaRows),i.textareaAutoHeight===!0&&(l["x-textarea-autoheight"]=!0),i.numberLayout&&i.numberLayout!=="default"&&(l["x-number-layout"]=i.numberLayout),i.numberSpinner===!1&&(l["x-number-spinner"]=!1),i.phoneOnlyCountries&&(l["x-phone-only-countries"]=i.phoneOnlyCountries),i.selectMultiselect===!0&&(l["x-select-multiselect"]=!0),i.fileMultiple===!0&&(l["x-file-multiple"]=!0),i.fileHeight!==void 0&&(l["x-file-height"]=i.fileHeight),i.fileAccept&&(l["x-file-accept"]=i.fileAccept),i.fileTheme&&(l["x-file-theme"]=i.fileTheme),i.fileShowIcon===!1&&(l["x-file-show-icon"]=!1),i.fileIcon&&(l["x-file-icon"]=i.fileIcon),i.dateEnableTime===!0&&(l["x-date-enable-time"]=!0),i.dateMin&&(l["x-date-min"]=i.dateMin),i.dateMax&&(l["x-date-max"]=i.dateMax),i.rangeMulti===!0&&(l["x-range-multi"]=!0),i.radioThin===!0&&(l["x-radio-thin"]=!0),i.radioHideRadio===!0&&(l["x-radio-hide-radio"]=!0),i.radioAlign&&(l["x-radio-align"]=i.radioAlign),i.textIcon&&(l["x-text-icon"]=i.textIcon),i.textIconStart&&(l["x-text-icon-start"]=i.textIconStart),r[i.key]=l}const a={$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:r};return o.length>0&&(a.required=o),t?.dynamicHeight&&(a["x-dynamic-height"]=!0),a}function IV(e,t){const r={};for(const o of e)if(!(o.type==="heading"||o.type==="divider")){if(t&&o.key in t){r[o.key]=t[o.key];continue}if(o.defaultValue!==void 0){r[o.key]=o.defaultValue;continue}switch(o.type){case"checkbox":case"toggle":r[o.key]=!1;break;case"number":case"range":r[o.key]=o.validation?.min??0;break;default:r[o.key]=""}}return r}function VV(e,t){const r={};for(const o of e){if(o.type==="heading"||o.type==="divider")continue;const a=t[o.key];if(o.required&&(a==null||a==="")){r[o.key]=`${o.label} is required`;continue}if(a==null||a==="")continue;const i=o.validation;if(typeof a=="string"){if(i?.minLength!==void 0&&a.length<i.minLength){r[o.key]=`${o.label} must be at least ${i.minLength} characters`;continue}if(i?.maxLength!==void 0&&a.length>i.maxLength){r[o.key]=`${o.label} must be at most ${i.maxLength} characters`;continue}if(i?.pattern&&!new RegExp(i.pattern).test(a)){r[o.key]=`${o.label} format is invalid`;continue}}if(typeof a=="number"){if(i?.min!==void 0&&a<i.min){r[o.key]=`${o.label} must be at least ${i.min}`;continue}if(i?.max!==void 0&&a>i.max){r[o.key]=`${o.label} must be at most ${i.max}`;continue}}}return r}function OV(e){return{fields:(0,n.computed)(()=>iv(e.value))}}const RV=!0;var Ge=class{_type;_config;_condition;_validations;_onUpdate;_class;_slots;_component;constructor(e,t={}){this._type=e,this._config=t}if(e){return this._condition=e,this}validate(e){return this._validations||(this._validations=[]),this._validations.push(e),this}onUpdate(e){return this._onUpdate=e,this}class(e){return this._class=this._class?`${this._class} ${e}`:e,this}required(e){return this._config.required=!0,e&&(this._config.requiredMessage=e),this}slot(e,t,r){return this._slots||(this._slots=[]),typeof e!="string"||t!==void 0&&typeof t!="string"?this._slots.push({component:e,props:t}):this._slots.push({name:e,component:t,props:r}),this}};function ot(e,t){return typeof e=="string"?{...t,label:e}:e??{}}const at={text(e,t){return new Ge("text",ot(e,t))},email(e,t){return new Ge("email",ot(e,t))},password(e,t){return new Ge("password",ot(e,t))},number(e,t){return new Ge("number",ot(e,t))},tel(e,t){return new Ge("tel",ot(e,t))},url(e,t){return new Ge("url",ot(e,t))},date(e,t){return new Ge("date",ot(e,t))},time(e,t){return new Ge("time",ot(e,t))},datetime(e,t){return new Ge("datetime",ot(e,t))},textarea(e,t){return new Ge("textarea",ot(e,t))},richtext(e,t){return new Ge("richtext",ot(e,t))},json(e,t){const r=ot(e,t);return r.language||(r.language="json"),new Ge("json",r)},checkbox(e,t){return new Ge("checkbox",ot(e,t))},toggle(e,t){return new Ge("toggle",ot(e,t))},radio(e,t,r){if(typeof e=="string"){const o=e,a=t;return new Ge("radio",{...r,label:o,options:a})}return new Ge("radio",{...ot(t,r),options:e})},select(e,t,r){if(typeof e=="string"){const o=e,a=t;return new Ge("select",{...r,label:o,options:a})}return new Ge("select",{...ot(t,r),options:e})},multiselect(e,t,r){if(typeof e=="string"){const o=e,a=t;return new Ge("multiselect",{...r,label:o,options:a,multiple:!0})}return new Ge("multiselect",{...ot(t,r),options:e})},color(e,t){return new Ge("color",ot(e,t))},range(e,t){return new Ge("range",ot(e,t))},upload(e,t){return new Ge("upload",ot(e,t))},array(e,t,r){if(typeof e=="string"){const a=e,i=t;return new Ge("array",{...r??{},label:a,schema:i})}const o=e;return new Ge("array",{...ot(t,r),schema:o})},component(e,t={}){const r=new Ge("component",t);return r._component={component:e,props:t},r},display(e,t={}){const r=new Ge("display",t);return r._component={component:e,props:t},r}};var Fc=class lv{_isSchema=!0;_label;_fields;_condition;_class;constructor(t,r){this._fields=t,this._label=r}if(t){return this._condition=t,this}class(t){return this._class=this._class?`${this._class} ${t}`:t,this}defaults(t){for(const[r,o]of Object.entries(t))this._fields[r]&&this._fields[r]._config.default===void 0&&(this._fields[r]._config.default=o);return this}getDefaults(){const t={};for(const[r,o]of Object.entries(this._fields))o._config.default!==void 0&&(t[r]=o._config.default);return t}toJSONSchema(){const t={},r=[];for(const[i,l]of Object.entries(this._fields)){const s=l._config,c=lv.getJSONSchemaType(l._type),u={type:c};if(s.label&&(u.title=s.label),s.helpText&&(u.description=s.helpText),s.default!==void 0&&(u.default=s.default),s.options){const f=s.options.map(m=>Dr(m)??m);l._type==="multiselect"?u.items={type:"string",enum:f}:u.enum=f}s.min!==void 0&&(u[c==="string"?"minLength":"minimum"]=s.min),s.max!==void 0&&(u[c==="string"?"maxLength":"maximum"]=s.max),l._type==="email"&&(u.format="email"),l._type==="url"&&(u.format="uri"),l._type==="date"&&(u.format="date"),l._type==="time"&&(u.format="time"),l._type==="datetime"&&(u.format="date-time");const d={};l._type!=="text"&&(d.fieldType=l._type),s.placeholder&&(d.placeholder=s.placeholder),s.disabled&&(d.disabled=s.disabled),s.readonly&&(d.readonly=s.readonly),s.autoheight&&(d.autoheight=s.autoheight),s.rows&&(d.rows=s.rows),s.cols&&(d.cols=s.cols),l._class&&(d.class=l._class),l._condition&&(d.condition=l._condition),l._type==="array"&&(s.allowAdd!==void 0&&(d.allowAdd=s.allowAdd),s.allowDelete!==void 0&&(d.allowDelete=s.allowDelete)),l._component&&(d.component=typeof l._component.component=="string"?l._component.component:l._component.component.name||"CustomComponent",l._component.props&&(d.componentProps=l._component.props)),Object.keys(d).length>0&&(u["x-ui"]=d),t[i]=u,s.required===!0&&r.push(i)}const o={type:"object",properties:t};r.length>0&&(o.required=r),this._label&&(o.title=this._label);const a={};return this._condition&&(a.condition=this._condition),this._class&&(a.class=this._class),Object.keys(a).length>0&&(o["x-ui"]=a),o}static getJSONSchemaType(t){return{text:"string",email:"string",password:"string",number:"number",tel:"string",url:"string",date:"string",time:"string",datetime:"string",textarea:"string",richtext:"string",json:"object",checkbox:"boolean",toggle:"boolean",radio:"string",select:"string",multiselect:"array",array:"array"}[t]||"string"}};function FV(e,t){if(typeof e=="string"){if(!t)throw new Error("Fields are required when providing a label");return new Fc(t,e)}return new Fc(e)}function zV(e){return e}function UV(e){const t={},r=new Set(e.required||[]);if(e.properties)for(const[a,i]of Object.entries(e.properties))t[a]=jV(a,i,r.has(a),e);const o=new Fc(t,e.title);return e["x-ui"]?.condition&&o.if(e["x-ui"].condition),e["x-ui"]?.class&&o.class(e["x-ui"].class),o}function HV(e,t){const r=e.match(/^#\/(\$defs|definitions)\/(.+)$/);if(!r)return;const[,o,a]=r,i=o==="$defs"?t.$defs:t.definitions;return a?i?.[a]:void 0}function WV(e,t){const r=e.anyOf||e.oneOf;if(!r||r.length===0)return e;const o=r.filter(l=>l.type!=="null");if(o.length===1){const l=o[0];return{...l,title:e.title||l.title,description:e.description||l.description,default:e.default!==void 0?e.default:l.default,"x-ui":{...l["x-ui"],...e["x-ui"]}}}const a=["object","array","string","number","integer","boolean"],i=o.sort((l,s)=>a.indexOf(l.type||"string")-a.indexOf(s.type||"string"))[0];return{...i,title:e.title||i.title,description:e.description||i.description,default:e.default!==void 0?e.default:i.default,"x-ui":{...i["x-ui"],...e["x-ui"]}}}function jV(e,t,r,o){let a=t;if(t.$ref){const u=HV(t.$ref,o);u&&(a={...u,type:t.type??u.type,enum:t.enum??u.enum,title:t.title??u.title,description:t.description??u.description,default:t.default!==void 0?t.default:u.default,"x-ui":{...u["x-ui"],...t["x-ui"]}})}(a.anyOf||a.oneOf)&&(a=WV(a,o));const i=a["x-ui"]||{},l=i.fieldType||Qm(a),s={};a.title&&(s.label=a.title),a.description&&(s.helpText=a.description),a.default!==void 0&&(s.default=a.default),r&&(s.required=!0),i.placeholder&&(s.placeholder=i.placeholder),i.disabled&&(s.disabled=i.disabled),i.readonly&&(s.readonly=i.readonly),i.autoheight&&(s.autoheight=i.autoheight),i.rows&&(s.rows=i.rows),i.cols&&(s.cols=i.cols),a.minimum!==void 0&&(s.min=a.minimum),a.maximum!==void 0&&(s.max=a.maximum),a.minLength!==void 0&&(s.min=a.minLength),a.maxLength!==void 0&&(s.max=a.maxLength);let c;switch(l){case"email":c=at.email(s);break;case"password":c=at.password(s);break;case"number":c=at.number(s);break;case"tel":c=at.tel(s);break;case"url":c=at.url(s);break;case"date":c=at.date(s);break;case"time":c=at.time(s);break;case"datetime":c=at.datetime(s);break;case"textarea":c=at.textarea(s);break;case"richtext":c=at.richtext(s);break;case"json":c=at.json(s);break;case"checkbox":c=at.checkbox(s);break;case"toggle":c=at.toggle(s);break;case"radio":c=at.radio(a.enum||[],s);break;case"select":c=at.select(a.enum||[],s);break;case"multiselect":c=at.multiselect(a.enum||[],s);break;case"array":{const u={...s};i.allowAdd!==void 0&&(u.allowAdd=i.allowAdd),i.allowDelete!==void 0&&(u.allowDelete=i.allowDelete),a.items?.type&&(u.itemType=Qm(a.items)),c=at.array(a.title||e,void 0,u);break}case"display":c=at.display(i.component||"div",i.componentProps||{});break;case"component":c=at.component(i.component||"div",i.componentProps||{});break;default:c=at.text(s)}return i.class&&c.class(i.class),i.condition&&c.if(i.condition),c}function Qm(e){if(e.format)switch(e.format){case"email":return"email";case"uri":return"url";case"date":return"date";case"time":return"time";case"date-time":return"datetime"}if(e.enum)return"select";switch(e.type){case"boolean":return"checkbox";case"number":case"integer":return"number";case"array":return"array";case"object":return"json";default:return"text"}}var qV={class:"multi-step-form"},GV={class:"step-progress"},YV=["onClick"],XV={class:"step-number"},KV={class:"step-label"},JV={key:0},ZV={key:0,class:"step-title"},QV={key:1,class:"validation-errors"},e7={class:"step-navigation"},t7=["disabled"],n7={class:"step-counter"},r7=(0,n.defineComponent)({__name:"MultiStepForm",props:{schema:{},modelValue:{},currentStep:{},components:{},validateOnNext:{type:Boolean,default:!0}},emits:["update:modelValue","update:currentStep","stepChange","complete","validationError"],setup(e,{expose:t,emit:r}){const o=e,a=r,{$t:i}=ft(),l=(0,n.useSlots)(),s=(0,n.computed)(()=>Object.keys(l)),c=(0,n.ref)({...o.modelValue||{}}),u=(0,n.ref)(o.currentStep!=null&&o.currentStep!==""?o.currentStep:Object.keys(o.schema)[0]);let d=!1;(0,n.watch)(()=>o.modelValue,x=>{d||(c.value={...x||{}})},{deep:!0}),(0,n.watch)(c,x=>{d=!0,a("update:modelValue",x),setTimeout(()=>{d=!1},0)},{deep:!0}),(0,n.watch)(()=>o.currentStep,x=>{x!=null&&(u.value=x)}),(0,n.watch)(u,x=>{a("update:currentStep",x),a("stepChange",x)});function f(x,T){const L=T.split(".");let F=x;for(const O of L)F=F?.[O];return F}function m(x,T){if(!x)return!0;try{const L=pa(x);if(L.length===0)return!0;let F=!0,O=null;for(let B=0;B<L.length;B++){const q=L[B],te=f(T,q.field),{op:ee,value:le,connector:R}=q;let I=!1;switch(ee){case"eq":I=te===le;break;case"ne":I=te!==le;break;case"gt":I=le!=null&&te>le;break;case"ge":I=le!=null&&te>=le;break;case"lt":I=le!=null&&te<le;break;case"le":I=le!=null&&te<=le;break;case"co":I=le!=null&&String(te).includes(String(le));break;case"sw":I=le!=null&&String(te).startsWith(String(le));break;case"ew":I=le!=null&&String(te).endsWith(String(le));break;case"pr":I=te!=null;break;default:I=!1}B===0?(F=I,O=I):(R==="or"?F=(O??!1)||I:R==="and"&&(F=(O??!1)&&I),O=F)}return F}catch{return!0}}function p(x){return x._condition==null?!0:m(x._condition,c.value)}const h=(0,n.computed)(()=>Object.entries(o.schema).filter(([,x])=>p(x)).map(([x,T])=>({key:x,schema:T}))),v=(0,n.computed)(()=>h.value.findIndex(x=>x.key===u.value)),b=(0,n.computed)(()=>v.value===0),g=(0,n.computed)(()=>v.value===h.value.length-1),y=(0,n.computed)(()=>h.value[v.value]?.schema),_=(0,n.ref)({});function w(x){return x._condition==null?!0:m(x._condition,c.value)}function $(x){const T=x.replace(/\[(\d+)\]/g,".$1");return f(c.value,T)}function A(x){return!!(x==null||typeof x=="string"&&x.trim()===""||Array.isArray(x)&&x.length===0)}function E(){if(!o.validateOnNext||y.value==null)return!0;const x={},T=y.value._fields;for(const[L,F]of Object.entries(T)){if(F._type==="display"||!w(F))continue;const O=$(L),B=F._config;if(B.required===!0&&A(O)){x[L]=`${typeof B.label=="string"?B.label:L} is required`;continue}if(F._validations&&!A(O))for(const q of F._validations){const te=q(O);if(te!==!0){x[L]=te;break}}}return _.value=x,Object.keys(x).length>0?(a("validationError",x),!1):!0}function k(x,T){return T._label!=null?T._label:x.split(/[._-]/).map(L=>L.charAt(0).toUpperCase()+L.slice(1)).join(" ")}function P(x){const T=h.value.findIndex(L=>L.key===x);if(T!==-1){if(T<v.value){u.value=x,_.value={};return}T>v.value&&!E()||(u.value=x)}}function N(){if(E())if(g.value)a("complete");else{const x=v.value+1;u.value=h.value[x].key,_.value={}}}function V(){if(!b.value){const x=v.value-1;u.value=h.value[x].key,_.value={}}}return t({validateCurrentStep:E,stepErrors:_,nextStep:N,prevStep:V,goToStep:P,visibleSteps:h,activeStep:u,currentStepIndex:v,isFirstStep:b,isLastStep:g}),(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",qV,[(0,n.createElementVNode)("div",GV,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(h.value,(L,F)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:L.key,class:(0,n.normalizeClass)(["step-indicator",{active:L.key===u.value,completed:F<v.value}]),onClick:O=>P(L.key)},[(0,n.createElementVNode)("div",XV,(0,n.toDisplayString)(F+1),1),(0,n.createElementVNode)("div",KV,(0,n.toDisplayString)(k(L.key,L.schema)),1)],10,YV))),128))]),y.value!=null?((0,n.openBlock)(),(0,n.createElementBlock)("div",JV,[y.value._label?((0,n.openBlock)(),(0,n.createElementBlock)("h2",ZV,(0,n.toDisplayString)(y.value._label),1)):(0,n.createCommentVNode)("",!0),Object.keys(_.value).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",QV,[(0,n.createElementVNode)("ul",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value,(L,F)=>((0,n.openBlock)(),(0,n.createElementBlock)("li",{key:F},(0,n.toDisplayString)(L),1))),128))])])):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(x.$slots,`step:${u.value}`,{schema:y.value,formData:c.value,stepKey:u.value,errors:_.value},()=>[(0,n.createVNode)(Yu,{modelValue:c.value,"onUpdate:modelValue":T[0]||(T[0]=L=>c.value=L),schema:y.value,components:e.components,errors:_.value},(0,n.createSlots)({_:2},[(0,n.renderList)(s.value,L=>({name:L,fn:(0,n.withCtx)(F=>[(0,n.renderSlot)(x.$slots,L,(0,n.normalizeProps)((0,n.guardReactiveProps)(F)),void 0,!0)])}))]),1032,["modelValue","schema","components","errors"])],!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",e7,[(0,n.createElementVNode)("button",{type:"button",class:"btn-secondary",disabled:b.value,onClick:V},(0,n.toDisplayString)((0,n.unref)(i)("multiStep.previous")),9,t7),(0,n.createElementVNode)("div",n7,(0,n.toDisplayString)((0,n.unref)(i)("multiStep.step",{current:v.value+1,total:h.value.length})),1),(0,n.createElementVNode)("button",{type:"button",class:"btn-primary",onClick:N},(0,n.toDisplayString)(g.value?(0,n.unref)(i)("multiStep.complete"):(0,n.unref)(i)("multiStep.next")),1)])]))}}),o7=we(r7,[["__scopeId","data-v-94c284dc"]]);function rn(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pn(e){return rn(e).getComputedStyle(e)}var ep=Math.min,sa=Math.max,tl=Math.round;function sv(e){const t=Pn(e);let r=parseFloat(t.width),o=parseFloat(t.height);const a=e.offsetWidth,i=e.offsetHeight,l=tl(r)!==a||tl(o)!==i;return l&&(r=a,o=i),{width:r,height:o,fallback:l}}function br(e){return uv(e)?(e.nodeName||"").toLowerCase():""}var ci;function cv(){if(ci)return ci;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(ci=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),ci):navigator.userAgent}function In(e){return e instanceof rn(e).HTMLElement}function gr(e){return e instanceof rn(e).Element}function uv(e){return e instanceof rn(e).Node}function tp(e){return typeof ShadowRoot>"u"?!1:e instanceof rn(e).ShadowRoot||e instanceof ShadowRoot}function Al(e){const{overflow:t,overflowX:r,overflowY:o,display:a}=Pn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(a)}function a7(e){return["table","td","th"].includes(br(e))}function zc(e){const t=/firefox/i.test(cv()),r=Pn(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((a=>r.willChange.includes(a)))||["paint","layout","strict","content"].some((a=>{const i=r.contain;return i!=null&&i.includes(a)}))}function dv(){return!/^((?!chrome|android).)*safari/i.test(cv())}function Qu(e){return["html","body","#document"].includes(br(e))}function fv(e){return gr(e)?e:e.contextElement}var mv={x:1,y:1};function yo(e){const t=fv(e);if(!In(t))return mv;const r=t.getBoundingClientRect(),{width:o,height:a,fallback:i}=sv(t);let l=(i?tl(r.width):r.width)/o,s=(i?tl(r.height):r.height)/a;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}function xa(e,t,r,o){var a,i;t===void 0&&(t=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),s=fv(e);let c=mv;t&&(o?gr(o)&&(c=yo(o)):c=yo(e));const u=s?rn(s):window,d=!dv()&&r;let f=(l.left+(d&&((a=u.visualViewport)==null?void 0:a.offsetLeft)||0))/c.x,m=(l.top+(d&&((i=u.visualViewport)==null?void 0:i.offsetTop)||0))/c.y,p=l.width/c.x,h=l.height/c.y;if(s){const v=rn(s),b=o&&gr(o)?rn(o):o;let g=v.frameElement;for(;g&&o&&b!==v;){const y=yo(g),_=g.getBoundingClientRect(),w=getComputedStyle(g);_.x+=(g.clientLeft+parseFloat(w.paddingLeft))*y.x,_.y+=(g.clientTop+parseFloat(w.paddingTop))*y.y,f*=y.x,m*=y.y,p*=y.x,h*=y.y,f+=_.x,m+=_.y,g=rn(g).frameElement}}return{width:p,height:h,top:m,right:f+p,bottom:m+h,left:f,x:f,y:m}}function vr(e){return((uv(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bl(e){return gr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function pv(e){return xa(vr(e)).left+Bl(e).scrollLeft}function Ta(e){if(br(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tp(e)&&e.host||vr(e);return tp(t)?t.host:t}function hv(e){const t=Ta(e);return Qu(t)?t.ownerDocument.body:In(t)&&Al(t)?t:hv(t)}function nl(e,t){var r;t===void 0&&(t=[]);const o=hv(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=rn(o);return a?t.concat(i,i.visualViewport||[],Al(o)?o:[]):t.concat(o,nl(o))}function np(e,t,r){return t==="viewport"?Lr((function(o,a){const i=rn(o),l=vr(o),s=i.visualViewport;let c=l.clientWidth,u=l.clientHeight,d=0,f=0;if(s){c=s.width,u=s.height;const m=dv();(m||!m&&a==="fixed")&&(d=s.offsetLeft,f=s.offsetTop)}return{width:c,height:u,x:d,y:f}})(e,r)):gr(t)?Lr((function(o,a){const i=xa(o,!0,a==="fixed"),l=i.top+o.clientTop,s=i.left+o.clientLeft,c=In(o)?yo(o):{x:1,y:1};return{width:o.clientWidth*c.x,height:o.clientHeight*c.y,x:s*c.x,y:l*c.y}})(t,r)):Lr((function(o){const a=vr(o),i=Bl(o),l=o.ownerDocument.body,s=sa(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),c=sa(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let u=-i.scrollLeft+pv(o);const d=-i.scrollTop;return Pn(l).direction==="rtl"&&(u+=sa(a.clientWidth,l.clientWidth)-s),{width:s,height:c,x:u,y:d}})(vr(e)))}function rp(e){return In(e)&&Pn(e).position!=="fixed"?e.offsetParent:null}function op(e){const t=rn(e);let r=rp(e);for(;r&&a7(r)&&Pn(r).position==="static";)r=rp(r);return r&&(br(r)==="html"||br(r)==="body"&&Pn(r).position==="static"&&!zc(r))?t:r||(function(o){let a=Ta(o);for(;In(a)&&!Qu(a);){if(zc(a))return a;a=Ta(a)}return null})(e)||t}function i7(e,t,r){const o=In(t),a=vr(t),i=xa(e,!0,r==="fixed",t);let l={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&r!=="fixed")if((br(t)!=="body"||Al(a))&&(l=Bl(t)),In(t)){const c=xa(t,!0);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else a&&(s.x=pv(a));return{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}var l7={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:a}=e;const i=[...r==="clippingAncestors"?(function(c,u){const d=u.get(c);if(d)return d;let f=nl(c).filter((v=>gr(v)&&br(v)!=="body")),m=null;const p=Pn(c).position==="fixed";let h=p?Ta(c):c;for(;gr(h)&&!Qu(h);){const v=Pn(h),b=zc(h);(p?b||m:b||v.position!=="static"||!m||!["absolute","fixed"].includes(m.position))?m=v:f=f.filter((g=>g!==h)),h=Ta(h)}return u.set(c,f),f})(t,this._c):[].concat(r),o],l=i[0],s=i.reduce(((c,u)=>{const d=np(t,u,a);return c.top=sa(d.top,c.top),c.right=ep(d.right,c.right),c.bottom=ep(d.bottom,c.bottom),c.left=sa(d.left,c.left),c}),np(t,l,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const a=In(r),i=vr(r);if(r===i)return t;let l={scrollLeft:0,scrollTop:0},s={x:1,y:1};const c={x:0,y:0};if((a||!a&&o!=="fixed")&&((br(r)!=="body"||Al(i))&&(l=Bl(r)),In(r))){const u=xa(r);s=yo(r),c.x=u.x+r.clientLeft,c.y=u.y+r.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-l.scrollLeft*s.x+c.x,y:t.y*s.y-l.scrollTop*s.y+c.y}},isElement:gr,getDimensions:function(e){return In(e)?sv(e):e.getBoundingClientRect()},getOffsetParent:op,getDocumentElement:vr,getScale:yo,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const a=this.getOffsetParent||op,i=this.getDimensions;return{reference:i7(t,await a(r),o),floating:{x:0,y:0,...await i(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Pn(e).direction==="rtl"},s7=(e,t,r)=>{const o=new Map,a={platform:l7,...r},i={...a.platform,_c:o};return oh(e,t,{...a,platform:i})};function gv(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?gv(e[r],t[r]):e[r]=t[r])}var gn={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function Na(e,t){let r=gn.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=gn.themes[r.$extend]||{}:(r=null,o=gn[t]):r=null;while(r);return o}function c7(e){const t=[e];let r=gn.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=gn.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function ap(e){const t=[e];let r=gn.themes[e]||{};do r.$extend?(t.push(r.$extend),r=gn.themes[r.$extend]||{}):r=null;while(r);return t}var xo=!1;if(typeof window<"u"){xo=!1;try{const e=Object.defineProperty({},"passive",{get(){xo=!0}});window.addEventListener("test",null,e)}catch{}}var vv=!1;typeof window<"u"&&typeof navigator<"u"&&(vv=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var yv=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),ip={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},lp={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function sp(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Ns(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var mn=[],Sr=null,cp={};function up(e){let t=cp[e];return t||(t=cp[e]=[]),t}var Uc=function(){};typeof window<"u"&&(Uc=window.Element);function Pe(e){return function(t){return Na(t.theme,e)}}var Ds="__floating-vue__popper",bv=()=>(0,n.defineComponent)({name:"VPopper",provide(){return{[Ds]:{parentPopper:this}}},inject:{[Ds]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Pe("disabled")},positioningDisabled:{type:Boolean,default:Pe("positioningDisabled")},placement:{type:String,default:Pe("placement"),validator:e=>yv.includes(e)},delay:{type:[String,Number,Object],default:Pe("delay")},distance:{type:[Number,String],default:Pe("distance")},skidding:{type:[Number,String],default:Pe("skidding")},triggers:{type:Array,default:Pe("triggers")},showTriggers:{type:[Array,Function],default:Pe("showTriggers")},hideTriggers:{type:[Array,Function],default:Pe("hideTriggers")},popperTriggers:{type:Array,default:Pe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Pe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Pe("popperHideTriggers")},container:{type:[String,Object,Uc,Boolean],default:Pe("container")},boundary:{type:[String,Uc],default:Pe("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Pe("strategy")},autoHide:{type:[Boolean,Function],default:Pe("autoHide")},handleResize:{type:Boolean,default:Pe("handleResize")},instantMove:{type:Boolean,default:Pe("instantMove")},eagerMount:{type:Boolean,default:Pe("eagerMount")},popperClass:{type:[String,Array,Object],default:Pe("popperClass")},computeTransformOrigin:{type:Boolean,default:Pe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Pe("autoMinSize")},autoSize:{type:[Boolean,String],default:Pe("autoSize")},autoMaxSize:{type:Boolean,default:Pe("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Pe("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Pe("preventOverflow")},overflowPadding:{type:[Number,String],default:Pe("overflowPadding")},arrowPadding:{type:[Number,String],default:Pe("arrowPadding")},arrowOverflow:{type:Boolean,default:Pe("arrowOverflow")},flip:{type:Boolean,default:Pe("flip")},shift:{type:Boolean,default:Pe("shift")},shiftCrossAxis:{type:Boolean,default:Pe("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Pe("noAutoFocus")},disposeTimeout:{type:Number,default:Pe("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Ds])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize,this.autoMaxSize},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,a;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((a=this.parentPopper)==null?void 0:a.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(lh({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(ah({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(sh({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(ih({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Mw({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:a,middlewareData:i})=>{let l;const{centerOffset:s}=i.arrow;return o.startsWith("top")||o.startsWith("bottom")?l=Math.abs(s)>a.reference.width/2:l=Math.abs(s)>a.reference.height/2,{data:{overflow:l}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:a,placement:i,middlewareData:l})=>{var s;if((s=l.autoSize)!=null&&s.skip)return{};let c,u;return i.startsWith("top")||i.startsWith("bottom")?c=a.reference.width:u=a.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=c!=null?`${c}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Vw({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:a})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=a!=null?`${a}px`:null}})));const r=await s7(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Sr&&this.instantMove&&Sr.instantMove&&Sr!==this.parentPopper){Sr.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Sr=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Ns(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...nl(this.$_referenceNode),...nl(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),a=t.x+t.width/2-(o.left+r.offsetLeft),i=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${a}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<mn.length;r++)t=mn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}mn.push(this),document.body.classList.add("v-popper--some-open");for(const t of ap(this.theme))up(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ns(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,sp(mn,this),mn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of ap(this.theme)){const o=up(r);sp(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Sr===this&&(Sr=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ns(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,ip,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],ip,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,lp,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],lp,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,xo?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,a){let i=r;o!=null&&(i=typeof o=="function"?o(i):o),i.forEach(l=>{const s=t[l];s&&this.$_registerEventListeners(e,s,a)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:a,handler:i}=r;!e||e===a?o.forEach(l=>l.removeEventListener(a,i)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(ca>=e.left&&ca<=e.right&&ua>=e.top&&ua<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=ca-cr,o=ua-ur,a=t.left+t.width/2-cr+(t.top+t.height/2)-ur+t.width+t.height,i=cr+r*a,l=ur+o*a;return ui(cr,ur,i,l,t.left,t.top,t.left,t.bottom)||ui(cr,ur,i,l,t.left,t.top,t.right,t.top)||ui(cr,ur,i,l,t.right,t.top,t.right,t.bottom)||ui(cr,ur,i,l,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(vv){const e=xo?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>dp(t,!0),e),document.addEventListener("touchend",t=>fp(t,!0),e)}else window.addEventListener("mousedown",e=>dp(e,!1),!0),window.addEventListener("click",e=>fp(e,!1),!0);window.addEventListener("resize",d7)}function dp(e,t){if(gn.autoHideOnMousedown)_v(e,t);else for(let r=0;r<mn.length;r++){const o=mn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function fp(e,t){gn.autoHideOnMousedown||_v(e,t)}function _v(e,t){const r={};for(let o=mn.length-1;o>=0;o--){const a=mn[o];try{const i=a.containsGlobalTarget=a.mouseDownContains||a.popperNode().contains(e.target);a.pendingHide=!1,requestAnimationFrame(()=>{if(a.pendingHide=!1,!r[a.randomId]&&mp(a,i,e)){if(a.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let s=a.parentPopper;for(;s;)r[s.randomId]=!0,s=s.parentPopper;return}let l=a.parentPopper;for(;l&&mp(l,l.containsGlobalTarget,e);)l.$_handleGlobalClose(e,t),l=l.parentPopper}})}catch{}}}function mp(e,t,r){return r.closeAllPopover||r.closePopover&&t||u7(e,r)&&!t}function u7(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function d7(){for(let e=0;e<mn.length;e++)mn[e].$_computePosition()}var cr=0,ur=0,ca=0,ua=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{cr=ca,ur=ua,ca=e.clientX,ua=e.clientY},xo?{passive:!0}:void 0);function ui(e,t,r,o,a,i,l,s){const c=((l-a)*(t-i)-(s-i)*(e-a))/((s-i)*(r-e)-(l-a)*(o-t)),u=((r-e)*(t-i)-(o-t)*(e-a))/((s-i)*(r-e)-(l-a)*(o-t));return c>=0&&c<=1&&u>=0&&u<=1}var f7={extends:bv()},Ml=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r};function m7(e,t,r,o,a,i){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{ref:"reference",class:(0,n.normalizeClass)(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[(0,n.renderSlot)(e.$slots,"default",(0,n.normalizeProps)((0,n.guardReactiveProps)(e.slotData)))],2)}var p7=Ml(f7,[["render",m7]]);function h7(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}var Di;function Hc(){Hc.init||(Hc.init=!0,Di=h7()!==-1)}var Ll={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Hc(),(0,n.nextTick)(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Di&&this.$el.appendChild(e),e.data="about:blank",Di||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Di&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},g7=(0,n.withScopeId)("data-v-b329ee4c");(0,n.pushScopeId)("data-v-b329ee4c");var v7={class:"resize-observer",tabindex:"-1"};(0,n.popScopeId)();Ll.render=g7((e,t,r,o,a,i)=>((0,n.openBlock)(),(0,n.createBlock)("div",v7)));Ll.__scopeId="data-v-b329ee4c";Ll.__file="src/components/ResizeObserver.vue";var wv=(e="theme")=>({computed:{themeClass(){return c7(this[e])}}}),y7=(0,n.defineComponent)({name:"VPopperContent",components:{ResizeObserver:Ll},mixins:[wv()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),b7=["id","aria-hidden","tabindex","data-popper-placement"],_7={ref:"inner",class:"v-popper__inner"},w7=[(0,n.createElementVNode)("div",{class:"v-popper__arrow-outer"},null,-1),(0,n.createElementVNode)("div",{class:"v-popper__arrow-inner"},null,-1)];function $7(e,t,r,o,a,i){const l=(0,n.resolveComponent)("ResizeObserver");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{id:e.popperId,ref:"popover",class:(0,n.normalizeClass)(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:(0,n.normalizeStyle)(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=(0,n.withKeys)(s=>e.autoHide&&e.$emit("hide"),["esc"]))},[(0,n.createElementVNode)("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=s=>e.autoHide&&e.$emit("hide"))}),(0,n.createElementVNode)("div",{class:"v-popper__wrapper",style:(0,n.normalizeStyle)(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[(0,n.createElementVNode)("div",_7,[e.mounted?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createElementVNode)("div",null,[(0,n.renderSlot)(e.$slots,"default")]),e.handleResize?((0,n.openBlock)(),(0,n.createBlock)(l,{key:0,onNotify:t[1]||(t[1]=s=>e.$emit("resize",s))})):(0,n.createCommentVNode)("",!0)],64)):(0,n.createCommentVNode)("",!0)],512),(0,n.createElementVNode)("div",{ref:"arrow",class:"v-popper__arrow-container",style:(0,n.normalizeStyle)(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},w7,4)],4)],46,b7)}var $v=Ml(y7,[["render",$7]]),kv={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},Wc=function(){};typeof window<"u"&&(Wc=window.Element);var k7=(0,n.defineComponent)({name:"VPopperWrapper",components:{Popper:p7,PopperContent:$v},mixins:[kv,wv("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Wc,Boolean],default:void 0},boundary:{type:[String,Wc],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function E7(e,t,r,o,a,i){const l=(0,n.resolveComponent)("PopperContent"),s=(0,n.resolveComponent)("Popper");return(0,n.openBlock)(),(0,n.createBlock)(s,(0,n.mergeProps)({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=c=>e.$emit("update:shown",c)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:(0,n.withCtx)(({popperId:c,isShown:u,shouldMountContent:d,skipTransition:f,autoHide:m,show:p,hide:h,handleResize:v,onResize:b,classes:g,result:y})=>[(0,n.renderSlot)(e.$slots,"default",{shown:u,show:p,hide:h}),(0,n.createVNode)(l,{ref:"popperContent","popper-id":c,theme:e.finalTheme,shown:u,mounted:d,"skip-transition":f,"auto-hide":m,"handle-resize":v,classes:g,result:y,onHide:h,onResize:b},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"popper",{shown:u,hide:h})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}var ed=Ml(k7,[["render",E7]]),C7={...ed,name:"VDropdown",vPopperTheme:"dropdown"},S7={...ed,name:"VMenu",vPopperTheme:"menu"},x7={...ed,name:"VTooltip",vPopperTheme:"tooltip"},T7=(0,n.defineComponent)({name:"VTooltipDirective",components:{Popper:bv(),PopperContent:$v},mixins:[kv],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Na(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Na(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),N7=["innerHTML"],D7=["textContent"];function A7(e,t,r,o,a,i){const l=(0,n.resolveComponent)("PopperContent"),s=(0,n.resolveComponent)("Popper");return(0,n.openBlock)(),(0,n.createBlock)(s,(0,n.mergeProps)({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:(0,n.withCtx)(({popperId:c,isShown:u,shouldMountContent:d,skipTransition:f,autoHide:m,hide:p,handleResize:h,onResize:v,classes:b,result:g})=>[(0,n.createVNode)(l,{ref:"popperContent",class:(0,n.normalizeClass)({"v-popper--tooltip-loading":e.loading}),"popper-id":c,theme:e.theme,shown:u,mounted:d,"skip-transition":f,"auto-hide":m,"handle-resize":h,classes:b,result:g,onHide:p,onResize:v},{default:(0,n.withCtx)(()=>[e.html?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,innerHTML:e.finalContent},null,8,N7)):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,textContent:(0,n.toDisplayString)(e.finalContent)},null,8,D7))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}var B7=Ml(T7,[["render",A7]]),Ev="v-popper--has-tooltip";function M7(e,t){let r=e.placement;if(!r&&t)for(const o of yv)t[o]&&(r=o);return r||(r=Na(e.theme||"tooltip","placement")),r}function Cv(e,t,r){let o;const a=typeof t;return a==="string"?o={content:t}:t&&a==="object"?o=t:o={content:!1},o.placement=M7(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}var As,Da,L7=0;function P7(){if(As)return;Da=(0,n.ref)([]),As=(0,n.createApp)({name:"VTooltipDirectiveApp",setup(){return{directives:Da}},render(){return this.directives.map(t=>(0,n.h)(B7,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),As.mount(e)}function I7(e,t,r){P7();const o=(0,n.ref)(Cv(e,t,r)),a=(0,n.ref)(!1),i={id:L7++,options:o,shown:a};return Da.value.push(i),e.classList&&e.classList.add(Ev),e.$_popper={options:o,item:i,show(){a.value=!0},hide(){a.value=!1}}}function Sv(e){if(e.$_popper){const t=Da.value.indexOf(e.$_popper.item);t!==-1&&Da.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Ev)}function pp(e,{value:t,modifiers:r}){const o=Cv(e,t,r);if(!o.content||Na(o.theme||"tooltip","disabled"))Sv(e);else{let a;e.$_popper?(a=e.$_popper,a.options.value=o):a=I7(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?a.show():a.hide())}}var V7={beforeMount:pp,updated:pp,beforeUnmount(e){Sv(e)}};function hp(e){e.addEventListener("mousedown",rl),e.addEventListener("click",rl),e.addEventListener("touchstart",xv,xo?{passive:!0}:!1)}function gp(e){e.removeEventListener("mousedown",rl),e.removeEventListener("click",rl),e.removeEventListener("touchstart",xv),e.removeEventListener("touchend",Tv),e.removeEventListener("touchcancel",Nv)}function rl(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function xv(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener("touchend",Tv),t.addEventListener("touchcancel",Nv)}}function Tv(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Nv(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var O7={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&hp(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?hp(e):gp(e))},beforeUnmount(e){gp(e)}};function R7(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,gv(gn,t),e.directive("tooltip",V7),e.directive("close-popper",O7),e.component("VTooltip",x7),e.component("VDropdown",C7),e.component("VMenu",S7))}var F7={version:"5.2.2",install:R7,options:gn},z7={key:0,class:"center"},U7={key:3},H7={class:"bgl-lightbox-item"},W7={key:2,class:"lightbox-pdf"},j7=["src","title"],q7={key:3,class:"lightbox-file"},G7={class:"file-info txt-white flex m_block align-items-start gap-025"},Y7={class:"txt-start"},X7={class:"mx-0 light"},K7={class:"semi word-break-all"},J7={class:"mx-0"},Z7={class:"semi"},Q7=(0,n.defineComponent)({__name:"Lightbox",setup(e,{expose:t}){const r=(0,n.ref)(!1),o=(0,n.ref)([]),a=(0,n.ref)(0),i=(0,n.computed)(()=>o.value[a.value]),l=(0,n.ref)(1),s=(0,n.computed)(()=>l.value===1),c=(0,n.computed)(()=>({allowTouchMove:l.value===1,touchRatio:l.value===1?1:0,simulateTouch:l.value===1}));function u(m,p){r.value=!0,o.value=p||[m],a.value=o.value.findIndex(h=>{const v=m.src!==void 0&&m.src!==null&&m.src!==""&&h.src===m.src,b=m.pathKey!==void 0&&m.pathKey!==null&&m.pathKey!==""&&h.pathKey===m.pathKey;return v||b}),a.value===-1&&(a.value=0),l.value=1}function d(){r.value=!1}El(d,r);function f(m){a.value=m,l.value=1}return(0,n.watch)(()=>r.value,m=>{m?document.body.style.overflow="hidden":document.body.style.overflow=""}),(0,n.watch)(()=>a.value,()=>{l.value=1}),t({open:u,close:d}),(m,p)=>((0,n.openBlock)(),(0,n.createBlock)(n.Transition,{name:"fade"},{default:(0,n.withCtx)(()=>[r.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"bgl-lightbox-overlay",onKeydown:(0,n.withKeys)(d,["esc"])},[(0,n.createElementVNode)("div",{class:"flex start w-100 space-between p-025 z-9",onClick:d},[(0,n.createVNode)((0,n.unref)(ne),{flat:"",class:"color-white",icon:"close",onClick:d}),i.value?.enableZoom&&i.value?.type==="image"?((0,n.openBlock)(),(0,n.createElementBlock)("div",z7,[(0,n.createVNode)((0,n.unref)(ne),{flat:"",class:"color-white",icon:"remove",disabled:l.value===1,onClick:p[0]||(p[0]=h=>l.value--)},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(ne),{flat:"",class:"color-white",icon:"zoom_in",disabled:l.value===1,onClick:p[1]||(p[1]=h=>l.value=1)},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(ne),{flat:"",class:"color-white",icon:"add",disabled:l.value===3,onClick:p[2]||(p[2]=h=>l.value++)},null,8,["disabled"])])):(0,n.createCommentVNode)("",!0),i.value?.openFile&&i.value?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:1,class:"color-white",round:"",thin:"",flat:"",iconEnd:"arrow_outward",value:"$t:lightbox.openFile",href:i.value?.src,target:"_blank"},null,8,["href"])):(0,n.createCommentVNode)("",!0),i.value?.download&&i.value?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:2,class:"color-white",round:"",thin:"",flat:"",icon:"download",value:"Download File",onClick:p[3]||(p[3]=h=>(0,n.unref)(ju)(i.value?.src))})):(0,n.createCommentVNode)("",!0),!i.value?.openFile&&!i.value?.download?((0,n.openBlock)(),(0,n.createElementBlock)("div",U7)):(0,n.createCommentVNode)("",!0)]),o.value&&o.value.length>0?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Mg),{key:0,index:a.value,"onUpdate:index":p[6]||(p[6]=h=>a.value=h),items:o.value,"initial-slide":a.value,class:(0,n.normalizeClass)(["bgl-lightbox-swiper",{zoomed:l.value>1}]),navigation:o.value.length>1,"grab-cursor":s.value,keyboard:!0,loop:!1,speed:400,"slides-per-view":1,"space-between":0,effect:"slide","advanced-options":c.value,onClick:p[7]||(p[7]=(0,n.withModifiers)(()=>{},["stop"]))},{default:(0,n.withCtx)(({item:h})=>[(0,n.createElementVNode)("div",H7,[h.type==="image"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Lg),{key:0,zoom:l.value,"onUpdate:zoom":p[4]||(p[4]=v=>l.value=v),disabled:!h?.enableZoom,"mouse-wheel-to-zoom":!1,"double-click-to-zoom":!0,"max-scale":5,"min-scale":1,"aspect-ratio":0,"limit-translation":!0,onClick:p[5]||(p[5]=(0,n.withModifiers)(()=>{},["stop"]))},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(bo),{draggable:!1,src:h?.src,alt:"Preview",class:"lightbox-image"},null,8,["src"])]),_:2},1032,["zoom","disabled"])):h?.type==="video"&&h?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Kc),{key:1,src:h?.src,autoplay:"",controls:"",class:"lightbox-video"},null,8,["src"])):h?.type==="pdf"&&h?.src?((0,n.openBlock)(),(0,n.createElementBlock)("div",W7,[(0,n.createElementVNode)("embed",{src:(0,n.unref)(Wu)(h?.src),type:"application/pdf",title:h?.name},null,8,j7)])):((0,n.openBlock)(),(0,n.createElementBlock)("div",q7,[(0,n.createElementVNode)("div",G7,[(0,n.createVNode)((0,n.unref)(ge),{class:"m-0 m_none",icon:"draft",size:10,weight:"12"}),(0,n.createVNode)((0,n.unref)(ge),{class:"m-0 none m_block m_-mb-1",icon:"draft",size:4,weight:"2"}),(0,n.createElementVNode)("div",Y7,[(0,n.createElementVNode)("p",X7,[p[9]||(p[9]=(0,n.createTextVNode)(" File: ",-1)),(0,n.createElementVNode)("span",K7,(0,n.toDisplayString)(h?.name),1)]),(0,n.createElementVNode)("p",J7,[p[10]||(p[10]=(0,n.createTextVNode)(" Type: ",-1)),(0,n.createElementVNode)("span",Z7,(0,n.toDisplayString)(h?.type),1)]),(0,n.createVNode)((0,n.unref)(ne),{href:h?.src,target:"_blank",round:"",thin:"",class:"mt-1",value:"Open file"},null,8,["href"])])])]))])]),"prev-button":(0,n.withCtx)(({prev:h})=>[(0,n.createVNode)((0,n.unref)(ne),{icon:"arrow_back",color:"black",onClick:h},null,8,["onClick"])]),"next-button":(0,n.withCtx)(({next:h})=>[(0,n.createVNode)((0,n.unref)(ne),{icon:"arrow_forward",color:"black",onClick:h},null,8,["onClick"])]),_:1},8,["index","items","initial-slide","class","navigation","grab-cursor","advanced-options"])):(0,n.createCommentVNode)("",!0),o.value&&o.value.length>1?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:"lightbox-thumbnails",onClick:p[8]||(p[8]=(0,n.withModifiers)(()=>{},["stop"]))},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(o.value,(h,v)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:v},[h.type==="image"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(bo),{key:0,class:(0,n.normalizeClass)(["thumbnail",{active:a.value===v}]),src:h.src,alt:"",onClick:(0,n.withModifiers)(b=>f(v),["stop"])},null,8,["src","class","onClick"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,class:(0,n.normalizeClass)(["thumbnail thumbnail-icon",{active:a.value===v}]),icon:"description",onClick:(0,n.withModifiers)(b=>f(v),["stop"])},null,8,["class","onClick"]))],64))),128))])):(0,n.createCommentVNode)("",!0)],32)):(0,n.createCommentVNode)("",!0)]),_:1}))}}),eO=Q7,Qo={},eo=e=>{},tO={mounted(e,t){vp(jc(t,e)),eo=r=>{yp(r,e,t)},e.addEventListener("click",eo)},updated(e,t){vp(jc(t,e)),e.removeEventListener("click",eo),eo=r=>{yp(r,e,t)},e.addEventListener("click",eo)},unmounted(e){e.removeEventListener("click",eo)},getSSRProps(){return{}}};function vp(e){e.group&&(Qo[e.group]||(Qo[e.group]=[]),Qo[e.group].findIndex(t=>t.src===e.src)===-1&&Qo[e.group].push(e))}function yp(e,t,r){e.stopPropagation();const o=jc(r,t),a=iO();if(!a||!a.open)return;const i=a.open;i(o,o&&o.group?Qo[o.group]:void 0)}function jc(e,t){let{group:r,src:o,type:a,name:i,thumbnail:l,enableZoom:s,openFile:c,download:u,pathKey:d}=e.value||{};return o=fn(o||d)||e.value||t.getAttribute("src")||"",a=a||aO(o),i=i||oO(o)||t.getAttribute("alt")||"",{src:o,type:a,name:i,thumbnail:l,group:r,enableZoom:s,openFile:c,download:u}}var nO=/youtube\.com|youtu\.be/,rO=/vimeo\.com/;function oO(e){return!e||typeof e!="string"?"":(e.split("/").pop()||"").replace(/\.[^/.]+$/,"")}function aO(e){if(typeof e!="string"||!e)return"unknown";const t=(e.split(".").pop()||"").toLowerCase(),r=e.split("?")[0].split(".").pop()?.toLowerCase()||"";return Vi.test(t)||Vi.test(r)?"image":kh.test(t)||nO.test(e)||rO.test(e)?"video":["pdf"].includes(t)?"pdf":t??"unknown"}var Bs;function iO(){if(!(typeof document>"u")){if(!Bs){const e=document.createElement("div");document.body.prepend(e),Bs=(0,n.createApp)(eO).mount(e)}return Bs}}var lO={install(e){e.directive("lightbox",tO)}},sO=lO,cO={beforeMount(e,t){e.clickOutsideEvent=r=>{e===r.target||e.contains(r.target)||t.value(r)},document.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.removeEventListener("click",e.clickOutsideEvent)}},Dv=Pp({EventBus:()=>Vl,POSITION:()=>Ba,TYPE:()=>Pt,createToastInterface:()=>Ma,default:()=>Gv,globalEventBus:()=>td,provideToast:()=>KO,toastInjectionKey:()=>Ol,useToast:()=>qv},1),uO=Object.defineProperty,bp=Object.getOwnPropertySymbols,dO=Object.prototype.hasOwnProperty,fO=Object.prototype.propertyIsEnumerable,_p=(e,t,r)=>t in e?uO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Av=(e,t)=>{for(var r in t||(t={}))dO.call(t,r)&&_p(e,r,t[r]);if(bp)for(var r of bp(t))fO.call(t,r)&&_p(e,r,t[r]);return e},Pl=e=>typeof e=="function",Il=e=>typeof e=="string",Bv=e=>Il(e)&&e.trim().length>0,mO=e=>typeof e=="number",Mr=e=>typeof e>"u",Aa=e=>typeof e=="object"&&e!==null,pO=e=>Vn(e,"tag")&&Bv(e.tag),Mv=e=>window.TouchEvent&&e instanceof TouchEvent,Lv=e=>Vn(e,"component")&&Pv(e.component),hO=e=>Pl(e)||Aa(e),Pv=e=>!Mr(e)&&(Il(e)||hO(e)||Lv(e)),wp=e=>Aa(e)&&["height","width","right","left","top","bottom"].every(t=>mO(e[t])),Vn=(e,t)=>(Aa(e)||Pl(e))&&t in e,gO=(e=>()=>e++)(0);function Ms(e){return Mv(e)?e.targetTouches[0].clientX:e.clientX}function $p(e){return Mv(e)?e.targetTouches[0].clientY:e.clientY}var vO=e=>{Mr(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},Ya=e=>Lv(e)?Ya(e.component):pO(e)?(0,n.defineComponent)({render(){return e}}):typeof e=="string"?e:(0,n.toRaw)((0,n.unref)(e)),yO=e=>{if(typeof e=="string")return e;const t=Vn(e,"props")&&Aa(e.props)?e.props:{},r=Vn(e,"listeners")&&Aa(e.listeners)?e.listeners:{};return{component:Ya(e),props:t,listeners:r}},bO=()=>typeof window<"u",Vl=class{constructor(){this.allHandlers={}}getHandlers(e){return this.allHandlers[e]||[]}on(e,t){const r=this.getHandlers(e);r.push(t),this.allHandlers[e]=r}off(e,t){const r=this.getHandlers(e);r.splice(r.indexOf(t)>>>0,1)}emit(e,t){this.getHandlers(e).forEach(r=>r(t))}},_O=e=>["on","off","emit"].every(t=>Vn(e,t)&&Pl(e[t])),Pt;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(Pt||(Pt={}));var Ba;(function(e){e.TOP_LEFT="top-left",e.TOP_CENTER="top-center",e.TOP_RIGHT="top-right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_CENTER="bottom-center",e.BOTTOM_RIGHT="bottom-right"})(Ba||(Ba={}));var qt;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(qt||(qt={}));var Jn="Vue-Toastification",un={type:{type:String,default:Pt.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},kp={type:un.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},di={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:un.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},Ls={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},Ep={transition:{type:[Object,String],default:`${Jn}__bounce`}},tr={CORE_TOAST:{position:{type:String,default:Ba.TOP_RIGHT},draggable:un.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:un.trueBoolean,pauseOnHover:un.trueBoolean,closeOnClick:un.trueBoolean,timeout:Ls.timeout,hideProgressBar:Ls.hideProgressBar,toastClassName:un.classNames,bodyClassName:un.classNames,icon:kp.customIcon,closeButton:di.component,closeButtonClassName:di.classNames,showCloseButtonOnHover:di.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new Vl}},TOAST:{id:{type:[String,Number],required:!0,default:0},type:un.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},CONTAINER:{container:{type:[Object,Function],default:()=>document.body},newestOnTop:un.trueBoolean,maxToasts:{type:Number,default:20},transition:Ep.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:un.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},PROGRESS_BAR:Ls,ICON:kp,TRANSITION:Ep,CLOSE_BUTTON:di},Iv=(0,n.defineComponent)({name:"VtProgressBar",props:tr.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${Jn}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function wO(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{style:(0,n.normalizeStyle)(e.style),class:(0,n.normalizeClass)(e.cpClass)},null,6)}Iv.render=wO;var $O=Iv,Vv=(0,n.defineComponent)({name:"VtCloseButton",props:tr.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?Ya(this.component):"button"},classes(){const e=[`${Jn}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),kO=(0,n.createTextVNode)(" × ");function EO(e,t){return(0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.buttonComponent),(0,n.mergeProps)({"aria-label":e.ariaLabel,class:e.classes},e.$attrs),{default:(0,n.withCtx)(()=>[kO]),_:1},16,["aria-label","class"])}Vv.render=EO;var CO=Vv,Ov={},SO={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},xO=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1)];function TO(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",SO,xO)}Ov.render=TO;var NO=Ov,Rv={},DO={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},AO=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1)];function BO(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",DO,AO)}Rv.render=BO;var Cp=Rv,Fv={},MO={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},LO=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function PO(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",MO,LO)}Fv.render=PO;var IO=Fv,zv={},VO={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},OO=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function RO(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",VO,OO)}zv.render=RO;var FO=zv,Uv=(0,n.defineComponent)({name:"VtIcon",props:tr.ICON,computed:{customIconChildren(){return Vn(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return Il(this.customIcon)?this.trimValue(this.customIcon):Vn(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return Vn(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:Pv(this.customIcon)?Ya(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[Pt.DEFAULT]:Cp,[Pt.INFO]:Cp,[Pt.SUCCESS]:NO,[Pt.ERROR]:FO,[Pt.WARNING]:IO}[this.type]},iconClasses(){const e=[`${Jn}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return Bv(e)?e.trim():t}}});function zO(e,t){return(0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.component),{class:(0,n.normalizeClass)(e.iconClasses)},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.customIconChildren),1)]),_:1},8,["class"])}Uv.render=zO;var Hv=(0,n.defineComponent)({name:"VtToast",components:{ProgressBar:$O,CloseButton:CO,Icon:Uv},inheritAttrs:!1,props:Object.assign({},tr.CORE_TOAST,tr.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${Jn}__toast`,`${Jn}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${Jn}__toast--rtl`),e},bodyClasses(){return[`${Jn}__toast-${Il(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return wp(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:Vn,getVueComponentFromObj:Ya,closeToast(){this.eventBus.emit(qt.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const e=this.$el;e.addEventListener("touchstart",this.onDragStart,{passive:!0}),e.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const e=this.$el;e.removeEventListener("touchstart",this.onDragStart),e.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(e){this.beingDragged=!0,this.dragPos={x:Ms(e),y:$p(e)},this.dragStart=Ms(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:Ms(e),y:$p(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,wp(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),UO=["role"];function HO(e,t){const r=(0,n.resolveComponent)("Icon"),o=(0,n.resolveComponent)("CloseButton"),a=(0,n.resolveComponent)("ProgressBar");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.classes),style:(0,n.normalizeStyle)(e.draggableStyle),onClick:t[0]||(t[0]=(...i)=>e.clickHandler&&e.clickHandler(...i)),onMouseenter:t[1]||(t[1]=(...i)=>e.hoverPause&&e.hoverPause(...i)),onMouseleave:t[2]||(t[2]=(...i)=>e.hoverPlay&&e.hoverPlay(...i))},[e.icon?((0,n.openBlock)(),(0,n.createBlock)(r,{key:0,"custom-icon":e.icon,type:e.type},null,8,["custom-icon","type"])):(0,n.createCommentVNode)("v-if",!0),(0,n.createElementVNode)("div",{role:e.accessibility.toastRole||"alert",class:(0,n.normalizeClass)(e.bodyClasses)},[typeof e.content=="string"?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createTextVNode)((0,n.toDisplayString)(e.content),1)],2112)):((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getVueComponentFromObj(e.content)),(0,n.mergeProps)({key:1,"toast-id":e.id},e.hasProp(e.content,"props")?e.content.props:{},(0,n.toHandlers)(e.hasProp(e.content,"listeners")?e.content.listeners:{}),{onCloseToast:e.closeToast}),null,16,["toast-id","onCloseToast"]))],10,UO),e.closeButton?((0,n.openBlock)(),(0,n.createBlock)(o,{key:1,component:e.closeButton,"class-names":e.closeButtonClassName,"show-on-hover":e.showCloseButtonOnHover,"aria-label":e.accessibility.closeButtonLabel,onClick:(0,n.withModifiers)(e.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):(0,n.createCommentVNode)("v-if",!0),e.timeout?((0,n.openBlock)(),(0,n.createBlock)(a,{key:2,"is-running":e.isRunning,"hide-progress-bar":e.hideProgressBar,timeout:e.timeout,onCloseToast:e.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):(0,n.createCommentVNode)("v-if",!0)],38)}Hv.render=HO;var WO=Hv,Wv=(0,n.defineComponent)({name:"VtTransition",props:tr.TRANSITION,emits:["leave"],methods:{hasProp:Vn,leave(e){e instanceof HTMLElement&&(e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px",e.style.width=getComputedStyle(e).width,e.style.position="absolute")}}});function jO(e,t){return(0,n.openBlock)(),(0,n.createBlock)(n.TransitionGroup,{tag:"div","enter-active-class":e.transition.enter?e.transition.enter:`${e.transition}-enter-active`,"move-class":e.transition.move?e.transition.move:`${e.transition}-move`,"leave-active-class":e.transition.leave?e.transition.leave:`${e.transition}-leave-active`,onLeave:e.leave},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}Wv.render=jO;var jv=(0,n.defineComponent)({name:"VueToastification",devtools:{hide:!0},components:{Toast:WO,VtTransition:Wv},props:Object.assign({},tr.CORE_TOAST,tr.CONTAINER,tr.TRANSITION),data(){return{count:0,positions:Object.values(Ba),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(qt.ADD,this.addToast),e.on(qt.CLEAR,this.clearToasts),e.on(qt.DISMISS,this.dismissToast),e.on(qt.UPDATE,this.updateToast),e.on(qt.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){Pl(e)&&(e=await e()),vO(this.$el),e.appendChild(this.$el)},setToast(e){Mr(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=yO(e.content);const t=Object.assign({},this.defaults,e.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[e.type],e),r=this.defaults.filterBeforeCreate(t,this.toastArray);r&&this.setToast(r)},dismissToast(e){const t=this.toasts[e];!Mr(t)&&!Mr(t.onClose)&&t.onClose(),delete this.toasts[e]},clearToasts(){Object.keys(this.toasts).forEach(e=>{this.dismissToast(e)})},getPositionToasts(e){const t=this.filteredToasts.filter(r=>r.position===e).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?t.reverse():t},updateDefaults(e){Mr(e.container)||this.setup(e.container),this.defaults=Object.assign({},this.defaults,e)},updateToast({id:e,options:t,create:r}){this.toasts[e]?(t.timeout&&t.timeout===this.toasts[e].timeout&&t.timeout++,this.setToast(Object.assign({},this.toasts[e],t))):r&&this.addToast(Object.assign({},{id:e},t))},getClasses(e){return[`${Jn}__container`,e].concat(this.defaults.containerClassName)}}});function qO(e,t){const r=(0,n.resolveComponent)("Toast"),o=(0,n.resolveComponent)("VtTransition");return(0,n.openBlock)(),(0,n.createElementBlock)("div",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.positions,a=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:a},[(0,n.createVNode)(o,{transition:e.defaults.transition,class:(0,n.normalizeClass)(e.getClasses(a))},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getPositionToasts(a),i=>((0,n.openBlock)(),(0,n.createBlock)(r,(0,n.mergeProps)({key:i.id},i),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}jv.render=qO;var GO=jv,Sp=(e={},t=!0)=>{const r=e.eventBus=e.eventBus||new Vl;t&&(0,n.nextTick)(()=>{const i=(0,n.createApp)(GO,Av({},e)),l=i.mount(document.createElement("div")),s=e.onMounted;if(Mr(s)||s(l,i),e.shareAppContext){const c=e.shareAppContext;c===!0||(i._context.components=c._context.components,i._context.directives=c._context.directives,i._context.mixins=c._context.mixins,i._context.provides=c._context.provides,i.config.globalProperties=c.config.globalProperties)}});const o=(i,l)=>{const s=Object.assign({},{id:gO(),type:Pt.DEFAULT},l,{content:i});return r.emit(qt.ADD,s),s.id};o.clear=()=>r.emit(qt.CLEAR,void 0),o.updateDefaults=i=>{r.emit(qt.UPDATE_DEFAULTS,i)},o.dismiss=i=>{r.emit(qt.DISMISS,i)};function a(i,{content:l,options:s},c=!1){const u=Object.assign({},s,{content:l});r.emit(qt.UPDATE,{id:i,options:u,create:c})}return o.update=a,o.success=(i,l)=>o(i,Object.assign({},l,{type:Pt.SUCCESS})),o.info=(i,l)=>o(i,Object.assign({},l,{type:Pt.INFO})),o.error=(i,l)=>o(i,Object.assign({},l,{type:Pt.ERROR})),o.warning=(i,l)=>o(i,Object.assign({},l,{type:Pt.WARNING})),o},YO=()=>{const e=()=>{};return new Proxy(e,{get(){return e}})};function Ma(e){return bO()?_O(e)?Sp({eventBus:e},!1):Sp(e,!0):YO()}var Ol=Symbol("VueToastification"),td=new Vl,XO=(e,t)=>{t?.shareAppContext===!0&&(t.shareAppContext=e);const r=Ma(Av({eventBus:td},t));e.provide(Ol,r)},KO=e=>{const t=Ma(e);(0,n.getCurrentInstance)()&&(0,n.provide)(Ol,t)},qv=e=>{if(e)return Ma(e);const t=(0,n.getCurrentInstance)()?(0,n.inject)(Ol,void 0):void 0;return t||Ma(td)},Gv=XO,JO={key:0,class:"custom-toast__icon"},ZO={class:"custom-toast__content"},QO=(0,n.defineComponent)({name:"BglToast",__name:"Toast",props:{message:{},type:{},info:{type:Boolean},success:{type:Boolean},warning:{type:Boolean},error:{type:Boolean},showIcon:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},closeToast:{}},setup(e){const t=e,r=(0,n.computed)(()=>t.type?t.type:t.error?"error":t.warning?"warning":t.success?"success":"info");return(o,a)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["custom-toast",`custom-toast--${r.value}`])},[e.showIcon?((0,n.openBlock)(),(0,n.createElementBlock)("div",JO,[r.value==="success"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:0,icon:"check_circle"})):(0,n.createCommentVNode)("",!0),r.value==="error"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,icon:"dangerous"})):(0,n.createCommentVNode)("",!0),r.value==="warning"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:2,icon:"report"})):(0,n.createCommentVNode)("",!0),r.value==="info"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:3,icon:"info"})):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",ZO,(0,n.toDisplayString)(e.message),1),e.showCloseButton?((0,n.openBlock)(),(0,n.createElementBlock)("button",{key:1,class:"custom-toast__close",onClick:a[0]||(a[0]=(...i)=>e.closeToast&&e.closeToast(...i))},[(0,n.createVNode)((0,n.unref)(ge),{icon:"close"})])):(0,n.createCommentVNode)("",!0)],2))}}),qo=QO,eR=Gv||Dv,{POSITION:tR}=Dv,to=qv;const Yv=Symbol("toast");var ol=null;function nR(){const e=(0,n.inject)(Yv,null);if(!e){if(ol)return ol;throw new Error("Toast API not provided. Make sure ToastPlugin is installed via app.use(ToastPlugin)")}return e}function rR(){if(typeof document>"u")return;let e=document.getElementById("bgl-toast-container");e||(e=document.createElement("div"),e.setAttribute("popover","manual"),e.setAttribute("id","bgl-toast-container"),document.body.appendChild(e));try{e.hidePopover()}catch{}try{e.showPopover()}catch{}return e}const Xv={install:(e,t={})=>{const r=rR(),o={position:tR.TOP_RIGHT,timeout:5e3,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!0,closeButton:!1,icon:!1,rtl:!1,transition:"Vue-Toastification__fade",maxToasts:5,newestOnTop:!0,toastClassName:"custom-toast-wrapper",bodyClassName:"custom-toast-body",...r?{container:r}:{},...t};e.use(eR,o);function a(){const l=typeof document<"u"?document.getElementById("bgl-toast-container"):null;if(l){try{l.hidePopover()}catch{}try{l.showPopover()}catch{}}}const i={success:(l,s)=>(a(),to()({component:qo,props:{message:l,type:"success"}},s)),error:(l,s)=>(a(),to()({component:qo,props:{message:l,type:"error"}},s)),info:(l,s)=>(a(),to()({component:qo,props:{message:l,type:"info"}},s)),warning:(l,s)=>(a(),to()({component:qo,props:{message:l,type:"warning"}},s)),show:(l,s)=>(a(),to()({component:qo,props:{message:l,type:"info"}},s)),clear:()=>{to().clear()}};ol||(ol=i),e.provide(Yv,i)}};var Rl=class extends Event{oldState;newState;constructor(e,{oldState:t="",newState:r="",...o}={}){super(e,o),this.oldState=String(t||""),this.newState=String(r||"")}},xp=new WeakMap;function Kv(e,t,r){xp.set(e,setTimeout(()=>{xp.has(e)&&e.dispatchEvent(new Rl("toggle",{cancelable:!1,oldState:t,newState:r}))},0))}var nd=globalThis.ShadowRoot||function(){},oR=globalThis.HTMLDialogElement||function(){},Ai=new WeakMap,Zn=new WeakMap,tn=new WeakMap,To=new WeakMap;function al(e){return To.get(e)||"hidden"}var il=new WeakMap;function La(e){return[...e].pop()}function aR(e){const t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;const r=al(t);e.popoverTargetAction==="show"&&r==="showing"||e.popoverTargetAction==="hide"&&r==="hidden"||(r==="showing"?Do(t,!0,!0):Pr(t,!1)&&(il.set(t,e),qc(t)))}function Pr(e,t){return!(e.popover!=="auto"&&e.popover!=="manual"&&e.popover!=="hint"||!e.isConnected||t&&al(e)!=="showing"||!t&&al(e)!=="hidden"||e instanceof oR&&e.hasAttribute("open")||document.fullscreenElement===e)}function Tp(e){if(!e)return 0;const t=Zn.get(document)||new Set,r=tn.get(document)||new Set;return r.has(e)?[...r].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function iR(e){const t=Jv(e),r=lR(e);return Tp(t)>Tp(r)?t:r}function Pa(e){let t;const r=tn.get(e)||new Set,o=Zn.get(e)||new Set,a=r.size>0?r:o.size>0?o:null;return a?(t=La(a),t.isConnected?t:(a.delete(t),Pa(e))):null}function Np(e){for(const t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function No(e){return typeof e.getRootNode=="function"?e.getRootNode():e.parentNode?No(e.parentNode):e}function Jv(e){for(;e;){if(e instanceof HTMLElement&&e.popover==="auto"&&To.get(e)==="showing")return e;if(e=e instanceof Element&&e.assignedSlot||e.parentElement||No(e),e instanceof nd&&(e=e.host),e instanceof Document)return}}function lR(e){for(;e;){const t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if(e=e.parentElement||No(e),e instanceof nd&&(e=e.host),e instanceof Document)return}}function Dp(e,t){const r=new Map;let o=0;for(const l of t||[])r.set(l,o),o+=1;r.set(e,o),o+=1;let a=null;function i(l){if(!l)return;let s=!1,c=null,u=null;for(;!s;){if(c=Jv(l)||null,c===null||!r.has(c))return;(e.popover==="hint"||c.popover==="auto")&&(s=!0),s||(l=c.parentElement)}u=r.get(c),(a===null||r.get(a)<u)&&(a=c)}return i(e.parentElement||No(e)),a}function sR(e){return e.hidden||e instanceof nd||(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)&&e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e instanceof HTMLAnchorElement&&e.href===""?!1:typeof e.tabIndex=="number"&&e.tabIndex!==-1}function cR(e){if(e.shadowRoot&&e.shadowRoot.delegatesFocus!==!0)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);let r=t.querySelector("[autofocus]");if(r)return r;{const i=t.querySelectorAll("slot");for(const l of i){const s=l.assignedElements({flatten:!0});for(const c of s){if(c.hasAttribute("autofocus"))return c;if(r=c.querySelector("[autofocus]"),r)return r}}}const o=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);let a=o.currentNode;for(;a;){if(sR(a))return a;a=o.nextNode()}}function uR(e){var t;(t=cR(e))==null||t.focus()}var ll=new WeakMap;function qc(e){if(!Pr(e,!1))return;const t=e.ownerDocument;if(!e.dispatchEvent(new Rl("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!Pr(e,!1))return;let r=!1;const o=e.popover;let a=null;const i=Dp(e,Zn.get(t)||new Set),l=Dp(e,tn.get(t)||new Set);if(o==="auto"&&(Gc(tn.get(t)||new Set,r,!0),Ir(i||t,r,!0),a="auto"),o==="hint"&&(l?(Ir(l,r,!0),a="hint"):(Gc(tn.get(t)||new Set,r,!0),i?(Ir(i,r,!0),a="auto"):a="hint")),o==="auto"||o==="hint"){if(o!==e.popover||!Pr(e,!1))return;Pa(t)||(r=!0),a==="auto"?(Zn.has(t)||Zn.set(t,new Set),Zn.get(t).add(e)):a==="hint"&&(tn.has(t)||tn.set(t,new Set),tn.get(t).add(e))}ll.delete(e);const s=t.activeElement;e.classList.add(":popover-open"),To.set(e,"showing"),Ai.has(t)||Ai.set(t,new Set),Ai.get(t).add(e),Zv(il.get(e),!0),uR(e),r&&s&&e.popover==="auto"&&ll.set(e,s),Kv(e,"closed","open")}function Do(e,t=!1,r=!1){var o,a;if(!Pr(e,!0))return;const i=e.ownerDocument;if(["auto","hint"].includes(e.popover)&&(Ir(e,t,r),!Pr(e,!0)))return;const l=Zn.get(i)||new Set,s=l.has(e)&&La(l)===e;if(Zv(il.get(e),!1),il.delete(e),r&&(e.dispatchEvent(new Rl("beforetoggle",{oldState:"open",newState:"closed"})),s&&La(l)!==e&&Ir(e,t,r),!Pr(e,!0)))return;(o=Ai.get(i))==null||o.delete(e),l.delete(e),(a=tn.get(i))==null||a.delete(e),e.classList.remove(":popover-open"),To.set(e,"hidden"),r&&Kv(e,"open","closed");const c=ll.get(e);c&&(ll.delete(e),t&&c.focus())}function dR(e,t=!1,r=!1){let o=Pa(e);for(;o;)Do(o,t,r),o=Pa(e)}function Gc(e,t=!1,r=!1){let o=Np(e);for(;o;)Do(o,t,r),o=Np(e)}function Ap(e,t,r,o){let a=!1,i=!1;for(;a||!i;){i=!0;let l=null,s=!1;for(const c of t)if(c===e)s=!0;else if(s){l=c;break}if(!l)return;for(;al(l)==="showing"&&t.size;)Do(La(t),r,o);t.has(e)&&La(t)!==e&&(a=!0),a&&(o=!1)}}function Ir(e,t,r){var o,a;const i=e.ownerDocument||e;if(e instanceof Document)return dR(i,t,r);if((o=tn.get(i))!=null&&o.has(e)){Ap(e,tn.get(i),t,r);return}Gc(tn.get(i)||new Set,t,r),(a=Zn.get(i))!=null&&a.has(e)&&Ap(e,Zn.get(i),t,r)}var Ps=new WeakMap;function Bp(e){if(!e.isTrusted)return;const t=e.composedPath()[0];if(!t)return;const r=t.ownerDocument;if(!Pa(r))return;const o=iR(t);if(o&&e.type==="pointerdown")Ps.set(r,o);else if(e.type==="pointerup"){const a=Ps.get(r)===o;Ps.delete(r),a&&Ir(o||r,!1,!0)}}var Is=new WeakMap;function Zv(e,t=!1){if(!e)return;Is.has(e)||Is.set(e,e.getAttribute("aria-expanded"));const r=e.popoverTargetElement;if(r instanceof HTMLElement&&r.popover==="auto")e.setAttribute("aria-expanded",String(t));else{const o=Is.get(e);o?e.setAttribute("aria-expanded",o):e.removeAttribute("aria-expanded")}}var Mp=globalThis.ShadowRoot||function(){};function fR(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype=="object"&&"popover"in HTMLElement.prototype}function xr(e,t,r){const o=e[t];Object.defineProperty(e,t,{value(a){return o.call(this,r(a))}})}var mR=/(^|[^\\]):popover-open\b/g;function pR(){return typeof globalThis.CSSLayerBlockRule=="function"}function hR(){const e=pR();return`
|
|
439
|
+
`,e.appendChild(l))):l=e,l.addEventListener("mouseenter",()=>{l!==e&&(l.style.background="rgba(0, 0, 0, 0.2)")}),l.addEventListener("mouseleave",()=>{l!==e&&!o&&(l.style.background="rgba(0, 0, 0, 0.1)")}),l.style.cursor="ns-resize",l.style.userSelect="none";function s(m){return{clientY:m,deltaY:m-a,initialHeight:i}}function c(m){return r.gridSize?Math.round(m/r.gridSize)*r.gridSize:m}function u(m){if(!o)return;m.preventDefault();const p=s("touches"in m?m.touches[0].clientY:m.clientY);let h=i+p.deltaY;r.minHeight!==void 0&&(h=Math.max(h,r.minHeight)),r.maxHeight!==void 0&&(h=Math.min(h,r.maxHeight)),h=c(h),e.style.height=`${h}px`,r.onResize&&r.onResize(p),l!==e&&(l.style.background="rgba(0, 0, 0, 0.3)")}function d(m){if(!o)return;const p=s("touches"in m?m.changedTouches[0].clientY:m.clientY);o=!1,document.body.style.cursor="",document.body.style.userSelect="",l!==e&&(l.style.background="rgba(0, 0, 0, 0.1)"),r.onEnd&&r.onEnd(p),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d),document.removeEventListener("touchcancel",d)}function f(m){m instanceof MouseEvent&&m.button!==0||(m.preventDefault(),o=!0,a="touches"in m?m.touches[0].clientY:m.clientY,i=e.offsetHeight,r.onStart&&r.onStart(m),document.body.style.cursor="ns-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",u,{passive:!1}),document.addEventListener("mouseup",d),document.addEventListener("touchmove",u,{passive:!1}),document.addEventListener("touchend",d),document.addEventListener("touchcancel",d))}l.addEventListener("mousedown",f),l.addEventListener("touchstart",f,{passive:!1}),e[Zo]=()=>{l!==e&&e.removeChild(l),l.removeEventListener("mousedown",f),l.removeEventListener("touchstart",f),l.removeEventListener("mouseenter",f),l.removeEventListener("mouseleave",f),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d),document.removeEventListener("touchcancel",d)}}const PV={mounted(e,t){Zm(e,t)},unmounted(e){const t=e[Zo];typeof t=="function"&&(t(),delete e[Zo])},updated(e,t){if(t.value!==t.oldValue){const r=e[Zo];typeof r=="function"&&(r(),delete e[Zo]),Zm(e,t)}},getSSRProps(){return{}}};function Ju(e){return e==="richtext"?3:e==="textarea"||e==="json"||e==="radio"||e==="file"||e==="signature"?2:1}function Zu(e){if(e.format)switch(e.format){case"email":return"email";case"tel":return"phone";case"uri":case"url":return"url";case"date":case"date-time":return"date"}if(e.enum)return"select";switch(e.type){case"number":case"integer":return"number";case"boolean":return"checkbox"}return"text"}function iv(e){if(!e?.properties)return[];const t=new Set(e.required??[]),r=[];for(const[o,a]of Object.entries(e.properties)){const i=a["x-field-type"]??Zu(a),l={};a.minLength!==void 0&&(l.minLength=a.minLength),a.maxLength!==void 0&&(l.maxLength=a.maxLength),a.minimum!==void 0&&(l.min=a.minimum),a.maximum!==void 0&&(l.max=a.maximum),a.multipleOf!==void 0&&(l.step=a.multipleOf),a.pattern!==void 0&&(l.pattern=a.pattern),a["x-options"]?l.options=a["x-options"]:a.enum&&(l.options=a.enum.map(c=>({label:String(c),value:String(c)})));const s={id:crypto.randomUUID(),key:o,type:i,label:a.title??o,placeholder:a["x-placeholder"],description:a.description,required:t.has(o)||void 0,colSpan:a["x-col-span"]??12,colStart:a["x-col-start"],rowSpan:a["x-row-span"]??Ju(i),rowStart:a["x-row-start"],mColSpan:a["x-m-col-span"]??12,mColStart:a["x-m-col-start"],mRowSpan:a["x-m-row-span"],mRowStart:a["x-m-row-start"],hideLabel:a["x-hide-label"]??!1,richTextVariant:a["x-rich-text-variant"],markdownShowFormatting:a["x-markdown-show-formatting"],textareaRows:a["x-textarea-rows"],textareaAutoHeight:a["x-textarea-autoheight"],numberLayout:a["x-number-layout"],numberSpinner:a["x-number-spinner"]??!0,phoneOnlyCountries:a["x-phone-only-countries"],selectMultiselect:a["x-select-multiselect"],fileMultiple:a["x-file-multiple"],fileHeight:a["x-file-height"],fileAccept:a["x-file-accept"],fileTheme:a["x-file-theme"],fileShowIcon:a["x-file-show-icon"]===!1?!1:void 0,fileIcon:a["x-file-icon"],dateEnableTime:a["x-date-enable-time"],dateMin:a["x-date-min"],dateMax:a["x-date-max"],rangeMulti:a["x-range-multi"],radioThin:a["x-radio-thin"],radioHideRadio:a["x-radio-hide-radio"],radioAlign:a["x-radio-align"],textIcon:a["x-text-icon"],textIconStart:a["x-text-icon-start"],validation:Object.keys(l).length>0?l:void 0,defaultValue:a.default,content:a["x-field-type"]==="heading"?a.title:void 0};r.push(s)}return r}function IV(e,t){const r={},o=[];for(const i of e){const l={};if(i.type==="heading"||i.type==="divider")l.type="string",l.title=i.content||i.label,l["x-field-type"]=i.type;else{switch(i.type){case"text":case"textarea":case"richtext":case"markdown":case"email":case"phone":case"url":case"date":case"file":case"signature":case"color":l.type="string";break;case"number":case"range":l.type="number";break;case"checkbox":case"toggle":l.type="boolean";break;case"json":l.type="object";break;case"select":case"radio":l.type="string",i.validation?.options&&(l.enum=i.validation.options.map(s=>s.value));break}i.type==="email"&&(l.format="email"),i.type==="phone"&&(l.format="tel"),i.type==="url"&&(l.format="uri"),i.type==="date"&&(l.format=i.dateEnableTime?"date-time":"date"),i.type==="color"&&(l.format="color"),l.title=i.label,i.description&&(l.description=i.description),i.defaultValue!==void 0&&(l.default=i.defaultValue),i.type!=="text"&&(l["x-field-type"]=i.type),i.validation?.minLength!==void 0&&(l.minLength=i.validation.minLength),i.validation?.maxLength!==void 0&&(l.maxLength=i.validation.maxLength),i.validation?.min!==void 0&&(l.minimum=i.validation.min),i.validation?.max!==void 0&&(l.maximum=i.validation.max),i.validation?.step!==void 0&&(l.multipleOf=i.validation.step),i.validation?.pattern!==void 0&&(l.pattern=i.validation.pattern),i.required&&o.push(i.key)}i.placeholder&&(l["x-placeholder"]=i.placeholder),i.validation?.options&&(l["x-options"]=i.validation.options),i.colSpan!==void 0&&i.colSpan!==12&&(l["x-col-span"]=i.colSpan),i.colStart!==void 0&&(l["x-col-start"]=i.colStart),i.rowSpan!==void 0&&i.rowSpan!==Ju(i.type)&&(l["x-row-span"]=i.rowSpan),i.rowStart!==void 0&&(l["x-row-start"]=i.rowStart),i.mColSpan!==void 0&&i.mColSpan!==12&&(l["x-m-col-span"]=i.mColSpan),i.mColStart!==void 0&&(l["x-m-col-start"]=i.mColStart),i.mRowSpan!==void 0&&(l["x-m-row-span"]=i.mRowSpan),i.mRowStart!==void 0&&(l["x-m-row-start"]=i.mRowStart),i.hideLabel===!0&&(l["x-hide-label"]=!0),i.richTextVariant&&(l["x-rich-text-variant"]=i.richTextVariant),i.markdownShowFormatting===!0&&(l["x-markdown-show-formatting"]=!0),i.textareaRows!==void 0&&(l["x-textarea-rows"]=i.textareaRows),i.textareaAutoHeight===!0&&(l["x-textarea-autoheight"]=!0),i.numberLayout&&i.numberLayout!=="default"&&(l["x-number-layout"]=i.numberLayout),i.numberSpinner===!1&&(l["x-number-spinner"]=!1),i.phoneOnlyCountries&&(l["x-phone-only-countries"]=i.phoneOnlyCountries),i.selectMultiselect===!0&&(l["x-select-multiselect"]=!0),i.fileMultiple===!0&&(l["x-file-multiple"]=!0),i.fileHeight!==void 0&&(l["x-file-height"]=i.fileHeight),i.fileAccept&&(l["x-file-accept"]=i.fileAccept),i.fileTheme&&(l["x-file-theme"]=i.fileTheme),i.fileShowIcon===!1&&(l["x-file-show-icon"]=!1),i.fileIcon&&(l["x-file-icon"]=i.fileIcon),i.dateEnableTime===!0&&(l["x-date-enable-time"]=!0),i.dateMin&&(l["x-date-min"]=i.dateMin),i.dateMax&&(l["x-date-max"]=i.dateMax),i.rangeMulti===!0&&(l["x-range-multi"]=!0),i.radioThin===!0&&(l["x-radio-thin"]=!0),i.radioHideRadio===!0&&(l["x-radio-hide-radio"]=!0),i.radioAlign&&(l["x-radio-align"]=i.radioAlign),i.textIcon&&(l["x-text-icon"]=i.textIcon),i.textIconStart&&(l["x-text-icon-start"]=i.textIconStart),r[i.key]=l}const a={$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:r};return o.length>0&&(a.required=o),t?.dynamicHeight&&(a["x-dynamic-height"]=!0),a}function VV(e,t){const r={};for(const o of e)if(!(o.type==="heading"||o.type==="divider")){if(t&&o.key in t){r[o.key]=t[o.key];continue}if(o.defaultValue!==void 0){r[o.key]=o.defaultValue;continue}switch(o.type){case"checkbox":case"toggle":r[o.key]=!1;break;case"number":case"range":r[o.key]=o.validation?.min??0;break;default:r[o.key]=""}}return r}function OV(e,t){const r={};for(const o of e){if(o.type==="heading"||o.type==="divider")continue;const a=t[o.key];if(o.required&&(a==null||a==="")){r[o.key]=`${o.label} is required`;continue}if(a==null||a==="")continue;const i=o.validation;if(typeof a=="string"){if(i?.minLength!==void 0&&a.length<i.minLength){r[o.key]=`${o.label} must be at least ${i.minLength} characters`;continue}if(i?.maxLength!==void 0&&a.length>i.maxLength){r[o.key]=`${o.label} must be at most ${i.maxLength} characters`;continue}if(i?.pattern&&!new RegExp(i.pattern).test(a)){r[o.key]=`${o.label} format is invalid`;continue}}if(typeof a=="number"){if(i?.min!==void 0&&a<i.min){r[o.key]=`${o.label} must be at least ${i.min}`;continue}if(i?.max!==void 0&&a>i.max){r[o.key]=`${o.label} must be at most ${i.max}`;continue}}}return r}function RV(e){return{fields:(0,n.computed)(()=>iv(e.value))}}const FV=!0;var Ge=class{_type;_config;_condition;_validations;_onUpdate;_class;_slots;_component;constructor(e,t={}){this._type=e,this._config=t}if(e){return this._condition=e,this}validate(e){return this._validations||(this._validations=[]),this._validations.push(e),this}onUpdate(e){return this._onUpdate=e,this}class(e){return this._class=this._class?`${this._class} ${e}`:e,this}required(e){return this._config.required=!0,e&&(this._config.requiredMessage=e),this}slot(e,t,r){return this._slots||(this._slots=[]),typeof e!="string"||t!==void 0&&typeof t!="string"?this._slots.push({component:e,props:t}):this._slots.push({name:e,component:t,props:r}),this}};function ot(e,t){return typeof e=="string"?{...t,label:e}:e??{}}const at={text(e,t){return new Ge("text",ot(e,t))},email(e,t){return new Ge("email",ot(e,t))},password(e,t){return new Ge("password",ot(e,t))},number(e,t){return new Ge("number",ot(e,t))},tel(e,t){return new Ge("tel",ot(e,t))},url(e,t){return new Ge("url",ot(e,t))},date(e,t){return new Ge("date",ot(e,t))},time(e,t){return new Ge("time",ot(e,t))},datetime(e,t){return new Ge("datetime",ot(e,t))},textarea(e,t){return new Ge("textarea",ot(e,t))},richtext(e,t){return new Ge("richtext",ot(e,t))},json(e,t){const r=ot(e,t);return r.language||(r.language="json"),new Ge("json",r)},checkbox(e,t){return new Ge("checkbox",ot(e,t))},toggle(e,t){return new Ge("toggle",ot(e,t))},radio(e,t,r){if(typeof e=="string"){const o=e,a=t;return new Ge("radio",{...r,label:o,options:a})}return new Ge("radio",{...ot(t,r),options:e})},select(e,t,r){if(typeof e=="string"){const o=e,a=t;return new Ge("select",{...r,label:o,options:a})}return new Ge("select",{...ot(t,r),options:e})},multiselect(e,t,r){if(typeof e=="string"){const o=e,a=t;return new Ge("multiselect",{...r,label:o,options:a,multiple:!0})}return new Ge("multiselect",{...ot(t,r),options:e})},color(e,t){return new Ge("color",ot(e,t))},range(e,t){return new Ge("range",ot(e,t))},upload(e,t){return new Ge("upload",ot(e,t))},array(e,t,r){if(typeof e=="string"){const a=e,i=t;return new Ge("array",{...r??{},label:a,schema:i})}const o=e;return new Ge("array",{...ot(t,r),schema:o})},component(e,t={}){const r=new Ge("component",t);return r._component={component:e,props:t},r},display(e,t={}){const r=new Ge("display",t);return r._component={component:e,props:t},r}};var Fc=class lv{_isSchema=!0;_label;_fields;_condition;_class;constructor(t,r){this._fields=t,this._label=r}if(t){return this._condition=t,this}class(t){return this._class=this._class?`${this._class} ${t}`:t,this}defaults(t){for(const[r,o]of Object.entries(t))this._fields[r]&&this._fields[r]._config.default===void 0&&(this._fields[r]._config.default=o);return this}getDefaults(){const t={};for(const[r,o]of Object.entries(this._fields))o._config.default!==void 0&&(t[r]=o._config.default);return t}toJSONSchema(){const t={},r=[];for(const[i,l]of Object.entries(this._fields)){const s=l._config,c=lv.getJSONSchemaType(l._type),u={type:c};if(s.label&&(u.title=s.label),s.helpText&&(u.description=s.helpText),s.default!==void 0&&(u.default=s.default),s.options){const f=s.options.map(m=>Dr(m)??m);l._type==="multiselect"?u.items={type:"string",enum:f}:u.enum=f}s.min!==void 0&&(u[c==="string"?"minLength":"minimum"]=s.min),s.max!==void 0&&(u[c==="string"?"maxLength":"maximum"]=s.max),l._type==="email"&&(u.format="email"),l._type==="url"&&(u.format="uri"),l._type==="date"&&(u.format="date"),l._type==="time"&&(u.format="time"),l._type==="datetime"&&(u.format="date-time");const d={};l._type!=="text"&&(d.fieldType=l._type),s.placeholder&&(d.placeholder=s.placeholder),s.disabled&&(d.disabled=s.disabled),s.readonly&&(d.readonly=s.readonly),s.autoheight&&(d.autoheight=s.autoheight),s.rows&&(d.rows=s.rows),s.cols&&(d.cols=s.cols),l._class&&(d.class=l._class),l._condition&&(d.condition=l._condition),l._type==="array"&&(s.allowAdd!==void 0&&(d.allowAdd=s.allowAdd),s.allowDelete!==void 0&&(d.allowDelete=s.allowDelete)),l._component&&(d.component=typeof l._component.component=="string"?l._component.component:l._component.component.name||"CustomComponent",l._component.props&&(d.componentProps=l._component.props)),Object.keys(d).length>0&&(u["x-ui"]=d),t[i]=u,s.required===!0&&r.push(i)}const o={type:"object",properties:t};r.length>0&&(o.required=r),this._label&&(o.title=this._label);const a={};return this._condition&&(a.condition=this._condition),this._class&&(a.class=this._class),Object.keys(a).length>0&&(o["x-ui"]=a),o}static getJSONSchemaType(t){return{text:"string",email:"string",password:"string",number:"number",tel:"string",url:"string",date:"string",time:"string",datetime:"string",textarea:"string",richtext:"string",json:"object",checkbox:"boolean",toggle:"boolean",radio:"string",select:"string",multiselect:"array",array:"array"}[t]||"string"}};function zV(e,t){if(typeof e=="string"){if(!t)throw new Error("Fields are required when providing a label");return new Fc(t,e)}return new Fc(e)}function UV(e){return e}function HV(e){const t={},r=new Set(e.required||[]);if(e.properties)for(const[a,i]of Object.entries(e.properties))t[a]=qV(a,i,r.has(a),e);const o=new Fc(t,e.title);return e["x-ui"]?.condition&&o.if(e["x-ui"].condition),e["x-ui"]?.class&&o.class(e["x-ui"].class),o}function WV(e,t){const r=e.match(/^#\/(\$defs|definitions)\/(.+)$/);if(!r)return;const[,o,a]=r,i=o==="$defs"?t.$defs:t.definitions;return a?i?.[a]:void 0}function jV(e,t){const r=e.anyOf||e.oneOf;if(!r||r.length===0)return e;const o=r.filter(l=>l.type!=="null");if(o.length===1){const l=o[0];return{...l,title:e.title||l.title,description:e.description||l.description,default:e.default!==void 0?e.default:l.default,"x-ui":{...l["x-ui"],...e["x-ui"]}}}const a=["object","array","string","number","integer","boolean"],i=o.sort((l,s)=>a.indexOf(l.type||"string")-a.indexOf(s.type||"string"))[0];return{...i,title:e.title||i.title,description:e.description||i.description,default:e.default!==void 0?e.default:i.default,"x-ui":{...i["x-ui"],...e["x-ui"]}}}function qV(e,t,r,o){let a=t;if(t.$ref){const u=WV(t.$ref,o);u&&(a={...u,type:t.type??u.type,enum:t.enum??u.enum,title:t.title??u.title,description:t.description??u.description,default:t.default!==void 0?t.default:u.default,"x-ui":{...u["x-ui"],...t["x-ui"]}})}(a.anyOf||a.oneOf)&&(a=jV(a,o));const i=a["x-ui"]||{},l=i.fieldType||Qm(a),s={};a.title&&(s.label=a.title),a.description&&(s.helpText=a.description),a.default!==void 0&&(s.default=a.default),r&&(s.required=!0),i.placeholder&&(s.placeholder=i.placeholder),i.disabled&&(s.disabled=i.disabled),i.readonly&&(s.readonly=i.readonly),i.autoheight&&(s.autoheight=i.autoheight),i.rows&&(s.rows=i.rows),i.cols&&(s.cols=i.cols),a.minimum!==void 0&&(s.min=a.minimum),a.maximum!==void 0&&(s.max=a.maximum),a.minLength!==void 0&&(s.min=a.minLength),a.maxLength!==void 0&&(s.max=a.maxLength);let c;switch(l){case"email":c=at.email(s);break;case"password":c=at.password(s);break;case"number":c=at.number(s);break;case"tel":c=at.tel(s);break;case"url":c=at.url(s);break;case"date":c=at.date(s);break;case"time":c=at.time(s);break;case"datetime":c=at.datetime(s);break;case"textarea":c=at.textarea(s);break;case"richtext":c=at.richtext(s);break;case"json":c=at.json(s);break;case"checkbox":c=at.checkbox(s);break;case"toggle":c=at.toggle(s);break;case"radio":c=at.radio(a.enum||[],s);break;case"select":c=at.select(a.enum||[],s);break;case"multiselect":c=at.multiselect(a.enum||[],s);break;case"array":{const u={...s};i.allowAdd!==void 0&&(u.allowAdd=i.allowAdd),i.allowDelete!==void 0&&(u.allowDelete=i.allowDelete),a.items?.type&&(u.itemType=Qm(a.items)),c=at.array(a.title||e,void 0,u);break}case"display":c=at.display(i.component||"div",i.componentProps||{});break;case"component":c=at.component(i.component||"div",i.componentProps||{});break;default:c=at.text(s)}return i.class&&c.class(i.class),i.condition&&c.if(i.condition),c}function Qm(e){if(e.format)switch(e.format){case"email":return"email";case"uri":return"url";case"date":return"date";case"time":return"time";case"date-time":return"datetime"}if(e.enum)return"select";switch(e.type){case"boolean":return"checkbox";case"number":case"integer":return"number";case"array":return"array";case"object":return"json";default:return"text"}}var GV={class:"multi-step-form"},YV={class:"step-progress"},XV=["onClick"],KV={class:"step-number"},JV={class:"step-label"},ZV={key:0},QV={key:0,class:"step-title"},e7={key:1,class:"validation-errors"},t7={class:"step-navigation"},n7=["disabled"],r7={class:"step-counter"},o7=(0,n.defineComponent)({__name:"MultiStepForm",props:{schema:{},modelValue:{},currentStep:{},components:{},validateOnNext:{type:Boolean,default:!0}},emits:["update:modelValue","update:currentStep","stepChange","complete","validationError"],setup(e,{expose:t,emit:r}){const o=e,a=r,{$t:i}=ft(),l=(0,n.useSlots)(),s=(0,n.computed)(()=>Object.keys(l)),c=(0,n.ref)({...o.modelValue||{}}),u=(0,n.ref)(o.currentStep!=null&&o.currentStep!==""?o.currentStep:Object.keys(o.schema)[0]);let d=!1;(0,n.watch)(()=>o.modelValue,x=>{d||(c.value={...x||{}})},{deep:!0}),(0,n.watch)(c,x=>{d=!0,a("update:modelValue",x),setTimeout(()=>{d=!1},0)},{deep:!0}),(0,n.watch)(()=>o.currentStep,x=>{x!=null&&(u.value=x)}),(0,n.watch)(u,x=>{a("update:currentStep",x),a("stepChange",x)});function f(x,T){const L=T.split(".");let F=x;for(const O of L)F=F?.[O];return F}function m(x,T){if(!x)return!0;try{const L=pa(x);if(L.length===0)return!0;let F=!0,O=null;for(let B=0;B<L.length;B++){const q=L[B],te=f(T,q.field),{op:ee,value:le,connector:R}=q;let I=!1;switch(ee){case"eq":I=te===le;break;case"ne":I=te!==le;break;case"gt":I=le!=null&&te>le;break;case"ge":I=le!=null&&te>=le;break;case"lt":I=le!=null&&te<le;break;case"le":I=le!=null&&te<=le;break;case"co":I=le!=null&&String(te).includes(String(le));break;case"sw":I=le!=null&&String(te).startsWith(String(le));break;case"ew":I=le!=null&&String(te).endsWith(String(le));break;case"pr":I=te!=null;break;default:I=!1}B===0?(F=I,O=I):(R==="or"?F=(O??!1)||I:R==="and"&&(F=(O??!1)&&I),O=F)}return F}catch{return!0}}function p(x){return x._condition==null?!0:m(x._condition,c.value)}const h=(0,n.computed)(()=>Object.entries(o.schema).filter(([,x])=>p(x)).map(([x,T])=>({key:x,schema:T}))),v=(0,n.computed)(()=>h.value.findIndex(x=>x.key===u.value)),b=(0,n.computed)(()=>v.value===0),g=(0,n.computed)(()=>v.value===h.value.length-1),y=(0,n.computed)(()=>h.value[v.value]?.schema),_=(0,n.ref)({});function w(x){return x._condition==null?!0:m(x._condition,c.value)}function $(x){const T=x.replace(/\[(\d+)\]/g,".$1");return f(c.value,T)}function A(x){return!!(x==null||typeof x=="string"&&x.trim()===""||Array.isArray(x)&&x.length===0)}function E(){if(!o.validateOnNext||y.value==null)return!0;const x={},T=y.value._fields;for(const[L,F]of Object.entries(T)){if(F._type==="display"||!w(F))continue;const O=$(L),B=F._config;if(B.required===!0&&A(O)){x[L]=`${typeof B.label=="string"?B.label:L} is required`;continue}if(F._validations&&!A(O))for(const q of F._validations){const te=q(O);if(te!==!0){x[L]=te;break}}}return _.value=x,Object.keys(x).length>0?(a("validationError",x),!1):!0}function k(x,T){return T._label!=null?T._label:x.split(/[._-]/).map(L=>L.charAt(0).toUpperCase()+L.slice(1)).join(" ")}function P(x){const T=h.value.findIndex(L=>L.key===x);if(T!==-1){if(T<v.value){u.value=x,_.value={};return}T>v.value&&!E()||(u.value=x)}}function N(){if(E())if(g.value)a("complete");else{const x=v.value+1;u.value=h.value[x].key,_.value={}}}function V(){if(!b.value){const x=v.value-1;u.value=h.value[x].key,_.value={}}}return t({validateCurrentStep:E,stepErrors:_,nextStep:N,prevStep:V,goToStep:P,visibleSteps:h,activeStep:u,currentStepIndex:v,isFirstStep:b,isLastStep:g}),(x,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",GV,[(0,n.createElementVNode)("div",YV,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(h.value,(L,F)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:L.key,class:(0,n.normalizeClass)(["step-indicator",{active:L.key===u.value,completed:F<v.value}]),onClick:O=>P(L.key)},[(0,n.createElementVNode)("div",KV,(0,n.toDisplayString)(F+1),1),(0,n.createElementVNode)("div",JV,(0,n.toDisplayString)(k(L.key,L.schema)),1)],10,XV))),128))]),y.value!=null?((0,n.openBlock)(),(0,n.createElementBlock)("div",ZV,[y.value._label?((0,n.openBlock)(),(0,n.createElementBlock)("h2",QV,(0,n.toDisplayString)(y.value._label),1)):(0,n.createCommentVNode)("",!0),Object.keys(_.value).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",e7,[(0,n.createElementVNode)("ul",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value,(L,F)=>((0,n.openBlock)(),(0,n.createElementBlock)("li",{key:F},(0,n.toDisplayString)(L),1))),128))])])):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(x.$slots,`step:${u.value}`,{schema:y.value,formData:c.value,stepKey:u.value,errors:_.value},()=>[(0,n.createVNode)(Yu,{modelValue:c.value,"onUpdate:modelValue":T[0]||(T[0]=L=>c.value=L),schema:y.value,components:e.components,errors:_.value},(0,n.createSlots)({_:2},[(0,n.renderList)(s.value,L=>({name:L,fn:(0,n.withCtx)(F=>[(0,n.renderSlot)(x.$slots,L,(0,n.normalizeProps)((0,n.guardReactiveProps)(F)),void 0,!0)])}))]),1032,["modelValue","schema","components","errors"])],!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",t7,[(0,n.createElementVNode)("button",{type:"button",class:"btn-secondary",disabled:b.value,onClick:V},(0,n.toDisplayString)((0,n.unref)(i)("multiStep.previous")),9,n7),(0,n.createElementVNode)("div",r7,(0,n.toDisplayString)((0,n.unref)(i)("multiStep.step",{current:v.value+1,total:h.value.length})),1),(0,n.createElementVNode)("button",{type:"button",class:"btn-primary",onClick:N},(0,n.toDisplayString)(g.value?(0,n.unref)(i)("multiStep.complete"):(0,n.unref)(i)("multiStep.next")),1)])]))}}),a7=we(o7,[["__scopeId","data-v-94c284dc"]]);function rn(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pn(e){return rn(e).getComputedStyle(e)}var ep=Math.min,sa=Math.max,tl=Math.round;function sv(e){const t=Pn(e);let r=parseFloat(t.width),o=parseFloat(t.height);const a=e.offsetWidth,i=e.offsetHeight,l=tl(r)!==a||tl(o)!==i;return l&&(r=a,o=i),{width:r,height:o,fallback:l}}function br(e){return uv(e)?(e.nodeName||"").toLowerCase():""}var ci;function cv(){if(ci)return ci;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(ci=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),ci):navigator.userAgent}function In(e){return e instanceof rn(e).HTMLElement}function gr(e){return e instanceof rn(e).Element}function uv(e){return e instanceof rn(e).Node}function tp(e){return typeof ShadowRoot>"u"?!1:e instanceof rn(e).ShadowRoot||e instanceof ShadowRoot}function Al(e){const{overflow:t,overflowX:r,overflowY:o,display:a}=Pn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(a)}function i7(e){return["table","td","th"].includes(br(e))}function zc(e){const t=/firefox/i.test(cv()),r=Pn(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some((a=>r.willChange.includes(a)))||["paint","layout","strict","content"].some((a=>{const i=r.contain;return i!=null&&i.includes(a)}))}function dv(){return!/^((?!chrome|android).)*safari/i.test(cv())}function Qu(e){return["html","body","#document"].includes(br(e))}function fv(e){return gr(e)?e:e.contextElement}var mv={x:1,y:1};function yo(e){const t=fv(e);if(!In(t))return mv;const r=t.getBoundingClientRect(),{width:o,height:a,fallback:i}=sv(t);let l=(i?tl(r.width):r.width)/o,s=(i?tl(r.height):r.height)/a;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}function xa(e,t,r,o){var a,i;t===void 0&&(t=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),s=fv(e);let c=mv;t&&(o?gr(o)&&(c=yo(o)):c=yo(e));const u=s?rn(s):window,d=!dv()&&r;let f=(l.left+(d&&((a=u.visualViewport)==null?void 0:a.offsetLeft)||0))/c.x,m=(l.top+(d&&((i=u.visualViewport)==null?void 0:i.offsetTop)||0))/c.y,p=l.width/c.x,h=l.height/c.y;if(s){const v=rn(s),b=o&&gr(o)?rn(o):o;let g=v.frameElement;for(;g&&o&&b!==v;){const y=yo(g),_=g.getBoundingClientRect(),w=getComputedStyle(g);_.x+=(g.clientLeft+parseFloat(w.paddingLeft))*y.x,_.y+=(g.clientTop+parseFloat(w.paddingTop))*y.y,f*=y.x,m*=y.y,p*=y.x,h*=y.y,f+=_.x,m+=_.y,g=rn(g).frameElement}}return{width:p,height:h,top:m,right:f+p,bottom:m+h,left:f,x:f,y:m}}function vr(e){return((uv(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bl(e){return gr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function pv(e){return xa(vr(e)).left+Bl(e).scrollLeft}function Ta(e){if(br(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tp(e)&&e.host||vr(e);return tp(t)?t.host:t}function hv(e){const t=Ta(e);return Qu(t)?t.ownerDocument.body:In(t)&&Al(t)?t:hv(t)}function nl(e,t){var r;t===void 0&&(t=[]);const o=hv(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=rn(o);return a?t.concat(i,i.visualViewport||[],Al(o)?o:[]):t.concat(o,nl(o))}function np(e,t,r){return t==="viewport"?Lr((function(o,a){const i=rn(o),l=vr(o),s=i.visualViewport;let c=l.clientWidth,u=l.clientHeight,d=0,f=0;if(s){c=s.width,u=s.height;const m=dv();(m||!m&&a==="fixed")&&(d=s.offsetLeft,f=s.offsetTop)}return{width:c,height:u,x:d,y:f}})(e,r)):gr(t)?Lr((function(o,a){const i=xa(o,!0,a==="fixed"),l=i.top+o.clientTop,s=i.left+o.clientLeft,c=In(o)?yo(o):{x:1,y:1};return{width:o.clientWidth*c.x,height:o.clientHeight*c.y,x:s*c.x,y:l*c.y}})(t,r)):Lr((function(o){const a=vr(o),i=Bl(o),l=o.ownerDocument.body,s=sa(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),c=sa(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let u=-i.scrollLeft+pv(o);const d=-i.scrollTop;return Pn(l).direction==="rtl"&&(u+=sa(a.clientWidth,l.clientWidth)-s),{width:s,height:c,x:u,y:d}})(vr(e)))}function rp(e){return In(e)&&Pn(e).position!=="fixed"?e.offsetParent:null}function op(e){const t=rn(e);let r=rp(e);for(;r&&i7(r)&&Pn(r).position==="static";)r=rp(r);return r&&(br(r)==="html"||br(r)==="body"&&Pn(r).position==="static"&&!zc(r))?t:r||(function(o){let a=Ta(o);for(;In(a)&&!Qu(a);){if(zc(a))return a;a=Ta(a)}return null})(e)||t}function l7(e,t,r){const o=In(t),a=vr(t),i=xa(e,!0,r==="fixed",t);let l={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&r!=="fixed")if((br(t)!=="body"||Al(a))&&(l=Bl(t)),In(t)){const c=xa(t,!0);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else a&&(s.x=pv(a));return{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}var s7={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:a}=e;const i=[...r==="clippingAncestors"?(function(c,u){const d=u.get(c);if(d)return d;let f=nl(c).filter((v=>gr(v)&&br(v)!=="body")),m=null;const p=Pn(c).position==="fixed";let h=p?Ta(c):c;for(;gr(h)&&!Qu(h);){const v=Pn(h),b=zc(h);(p?b||m:b||v.position!=="static"||!m||!["absolute","fixed"].includes(m.position))?m=v:f=f.filter((g=>g!==h)),h=Ta(h)}return u.set(c,f),f})(t,this._c):[].concat(r),o],l=i[0],s=i.reduce(((c,u)=>{const d=np(t,u,a);return c.top=sa(d.top,c.top),c.right=ep(d.right,c.right),c.bottom=ep(d.bottom,c.bottom),c.left=sa(d.left,c.left),c}),np(t,l,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const a=In(r),i=vr(r);if(r===i)return t;let l={scrollLeft:0,scrollTop:0},s={x:1,y:1};const c={x:0,y:0};if((a||!a&&o!=="fixed")&&((br(r)!=="body"||Al(i))&&(l=Bl(r)),In(r))){const u=xa(r);s=yo(r),c.x=u.x+r.clientLeft,c.y=u.y+r.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-l.scrollLeft*s.x+c.x,y:t.y*s.y-l.scrollTop*s.y+c.y}},isElement:gr,getDimensions:function(e){return In(e)?sv(e):e.getBoundingClientRect()},getOffsetParent:op,getDocumentElement:vr,getScale:yo,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const a=this.getOffsetParent||op,i=this.getDimensions;return{reference:l7(t,await a(r),o),floating:{x:0,y:0,...await i(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Pn(e).direction==="rtl"},c7=(e,t,r)=>{const o=new Map,a={platform:s7,...r},i={...a.platform,_c:o};return oh(e,t,{...a,platform:i})};function gv(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?gv(e[r],t[r]):e[r]=t[r])}var gn={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function Na(e,t){let r=gn.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=gn.themes[r.$extend]||{}:(r=null,o=gn[t]):r=null;while(r);return o}function u7(e){const t=[e];let r=gn.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=gn.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function ap(e){const t=[e];let r=gn.themes[e]||{};do r.$extend?(t.push(r.$extend),r=gn.themes[r.$extend]||{}):r=null;while(r);return t}var xo=!1;if(typeof window<"u"){xo=!1;try{const e=Object.defineProperty({},"passive",{get(){xo=!0}});window.addEventListener("test",null,e)}catch{}}var vv=!1;typeof window<"u"&&typeof navigator<"u"&&(vv=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var yv=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),ip={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},lp={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function sp(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Ns(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var mn=[],Sr=null,cp={};function up(e){let t=cp[e];return t||(t=cp[e]=[]),t}var Uc=function(){};typeof window<"u"&&(Uc=window.Element);function Pe(e){return function(t){return Na(t.theme,e)}}var Ds="__floating-vue__popper",bv=()=>(0,n.defineComponent)({name:"VPopper",provide(){return{[Ds]:{parentPopper:this}}},inject:{[Ds]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Pe("disabled")},positioningDisabled:{type:Boolean,default:Pe("positioningDisabled")},placement:{type:String,default:Pe("placement"),validator:e=>yv.includes(e)},delay:{type:[String,Number,Object],default:Pe("delay")},distance:{type:[Number,String],default:Pe("distance")},skidding:{type:[Number,String],default:Pe("skidding")},triggers:{type:Array,default:Pe("triggers")},showTriggers:{type:[Array,Function],default:Pe("showTriggers")},hideTriggers:{type:[Array,Function],default:Pe("hideTriggers")},popperTriggers:{type:Array,default:Pe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Pe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Pe("popperHideTriggers")},container:{type:[String,Object,Uc,Boolean],default:Pe("container")},boundary:{type:[String,Uc],default:Pe("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Pe("strategy")},autoHide:{type:[Boolean,Function],default:Pe("autoHide")},handleResize:{type:Boolean,default:Pe("handleResize")},instantMove:{type:Boolean,default:Pe("instantMove")},eagerMount:{type:Boolean,default:Pe("eagerMount")},popperClass:{type:[String,Array,Object],default:Pe("popperClass")},computeTransformOrigin:{type:Boolean,default:Pe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Pe("autoMinSize")},autoSize:{type:[Boolean,String],default:Pe("autoSize")},autoMaxSize:{type:Boolean,default:Pe("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Pe("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Pe("preventOverflow")},overflowPadding:{type:[Number,String],default:Pe("overflowPadding")},arrowPadding:{type:[Number,String],default:Pe("arrowPadding")},arrowOverflow:{type:Boolean,default:Pe("arrowOverflow")},flip:{type:Boolean,default:Pe("flip")},shift:{type:Boolean,default:Pe("shift")},shiftCrossAxis:{type:Boolean,default:Pe("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Pe("noAutoFocus")},disposeTimeout:{type:Number,default:Pe("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Ds])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize,this.autoMaxSize},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,a;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((a=this.parentPopper)==null?void 0:a.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(lh({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(ah({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(sh({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(ih({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Mw({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:a,middlewareData:i})=>{let l;const{centerOffset:s}=i.arrow;return o.startsWith("top")||o.startsWith("bottom")?l=Math.abs(s)>a.reference.width/2:l=Math.abs(s)>a.reference.height/2,{data:{overflow:l}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:a,placement:i,middlewareData:l})=>{var s;if((s=l.autoSize)!=null&&s.skip)return{};let c,u;return i.startsWith("top")||i.startsWith("bottom")?c=a.reference.width:u=a.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=c!=null?`${c}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Vw({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:a})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=a!=null?`${a}px`:null}})));const r=await c7(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Sr&&this.instantMove&&Sr.instantMove&&Sr!==this.parentPopper){Sr.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Sr=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Ns(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...nl(this.$_referenceNode),...nl(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),a=t.x+t.width/2-(o.left+r.offsetLeft),i=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${a}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<mn.length;r++)t=mn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}mn.push(this),document.body.classList.add("v-popper--some-open");for(const t of ap(this.theme))up(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ns(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,sp(mn,this),mn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of ap(this.theme)){const o=up(r);sp(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Sr===this&&(Sr=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ns(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,ip,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],ip,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,lp,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],lp,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,xo?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,a){let i=r;o!=null&&(i=typeof o=="function"?o(i):o),i.forEach(l=>{const s=t[l];s&&this.$_registerEventListeners(e,s,a)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:a,handler:i}=r;!e||e===a?o.forEach(l=>l.removeEventListener(a,i)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(ca>=e.left&&ca<=e.right&&ua>=e.top&&ua<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=ca-cr,o=ua-ur,a=t.left+t.width/2-cr+(t.top+t.height/2)-ur+t.width+t.height,i=cr+r*a,l=ur+o*a;return ui(cr,ur,i,l,t.left,t.top,t.left,t.bottom)||ui(cr,ur,i,l,t.left,t.top,t.right,t.top)||ui(cr,ur,i,l,t.right,t.top,t.right,t.bottom)||ui(cr,ur,i,l,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(vv){const e=xo?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>dp(t,!0),e),document.addEventListener("touchend",t=>fp(t,!0),e)}else window.addEventListener("mousedown",e=>dp(e,!1),!0),window.addEventListener("click",e=>fp(e,!1),!0);window.addEventListener("resize",f7)}function dp(e,t){if(gn.autoHideOnMousedown)_v(e,t);else for(let r=0;r<mn.length;r++){const o=mn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function fp(e,t){gn.autoHideOnMousedown||_v(e,t)}function _v(e,t){const r={};for(let o=mn.length-1;o>=0;o--){const a=mn[o];try{const i=a.containsGlobalTarget=a.mouseDownContains||a.popperNode().contains(e.target);a.pendingHide=!1,requestAnimationFrame(()=>{if(a.pendingHide=!1,!r[a.randomId]&&mp(a,i,e)){if(a.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let s=a.parentPopper;for(;s;)r[s.randomId]=!0,s=s.parentPopper;return}let l=a.parentPopper;for(;l&&mp(l,l.containsGlobalTarget,e);)l.$_handleGlobalClose(e,t),l=l.parentPopper}})}catch{}}}function mp(e,t,r){return r.closeAllPopover||r.closePopover&&t||d7(e,r)&&!t}function d7(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function f7(){for(let e=0;e<mn.length;e++)mn[e].$_computePosition()}var cr=0,ur=0,ca=0,ua=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{cr=ca,ur=ua,ca=e.clientX,ua=e.clientY},xo?{passive:!0}:void 0);function ui(e,t,r,o,a,i,l,s){const c=((l-a)*(t-i)-(s-i)*(e-a))/((s-i)*(r-e)-(l-a)*(o-t)),u=((r-e)*(t-i)-(o-t)*(e-a))/((s-i)*(r-e)-(l-a)*(o-t));return c>=0&&c<=1&&u>=0&&u<=1}var m7={extends:bv()},Ml=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r};function p7(e,t,r,o,a,i){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{ref:"reference",class:(0,n.normalizeClass)(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[(0,n.renderSlot)(e.$slots,"default",(0,n.normalizeProps)((0,n.guardReactiveProps)(e.slotData)))],2)}var h7=Ml(m7,[["render",p7]]);function g7(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}var Di;function Hc(){Hc.init||(Hc.init=!0,Di=g7()!==-1)}var Ll={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Hc(),(0,n.nextTick)(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Di&&this.$el.appendChild(e),e.data="about:blank",Di||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Di&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},v7=(0,n.withScopeId)("data-v-b329ee4c");(0,n.pushScopeId)("data-v-b329ee4c");var y7={class:"resize-observer",tabindex:"-1"};(0,n.popScopeId)();Ll.render=v7((e,t,r,o,a,i)=>((0,n.openBlock)(),(0,n.createBlock)("div",y7)));Ll.__scopeId="data-v-b329ee4c";Ll.__file="src/components/ResizeObserver.vue";var wv=(e="theme")=>({computed:{themeClass(){return u7(this[e])}}}),b7=(0,n.defineComponent)({name:"VPopperContent",components:{ResizeObserver:Ll},mixins:[wv()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),_7=["id","aria-hidden","tabindex","data-popper-placement"],w7={ref:"inner",class:"v-popper__inner"},$7=[(0,n.createElementVNode)("div",{class:"v-popper__arrow-outer"},null,-1),(0,n.createElementVNode)("div",{class:"v-popper__arrow-inner"},null,-1)];function k7(e,t,r,o,a,i){const l=(0,n.resolveComponent)("ResizeObserver");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{id:e.popperId,ref:"popover",class:(0,n.normalizeClass)(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:(0,n.normalizeStyle)(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=(0,n.withKeys)(s=>e.autoHide&&e.$emit("hide"),["esc"]))},[(0,n.createElementVNode)("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=s=>e.autoHide&&e.$emit("hide"))}),(0,n.createElementVNode)("div",{class:"v-popper__wrapper",style:(0,n.normalizeStyle)(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[(0,n.createElementVNode)("div",w7,[e.mounted?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createElementVNode)("div",null,[(0,n.renderSlot)(e.$slots,"default")]),e.handleResize?((0,n.openBlock)(),(0,n.createBlock)(l,{key:0,onNotify:t[1]||(t[1]=s=>e.$emit("resize",s))})):(0,n.createCommentVNode)("",!0)],64)):(0,n.createCommentVNode)("",!0)],512),(0,n.createElementVNode)("div",{ref:"arrow",class:"v-popper__arrow-container",style:(0,n.normalizeStyle)(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},$7,4)],4)],46,_7)}var $v=Ml(b7,[["render",k7]]),kv={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},Wc=function(){};typeof window<"u"&&(Wc=window.Element);var E7=(0,n.defineComponent)({name:"VPopperWrapper",components:{Popper:h7,PopperContent:$v},mixins:[kv,wv("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Wc,Boolean],default:void 0},boundary:{type:[String,Wc],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function C7(e,t,r,o,a,i){const l=(0,n.resolveComponent)("PopperContent"),s=(0,n.resolveComponent)("Popper");return(0,n.openBlock)(),(0,n.createBlock)(s,(0,n.mergeProps)({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=c=>e.$emit("update:shown",c)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:(0,n.withCtx)(({popperId:c,isShown:u,shouldMountContent:d,skipTransition:f,autoHide:m,show:p,hide:h,handleResize:v,onResize:b,classes:g,result:y})=>[(0,n.renderSlot)(e.$slots,"default",{shown:u,show:p,hide:h}),(0,n.createVNode)(l,{ref:"popperContent","popper-id":c,theme:e.finalTheme,shown:u,mounted:d,"skip-transition":f,"auto-hide":m,"handle-resize":v,classes:g,result:y,onHide:h,onResize:b},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"popper",{shown:u,hide:h})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}var ed=Ml(E7,[["render",C7]]),S7={...ed,name:"VDropdown",vPopperTheme:"dropdown"},x7={...ed,name:"VMenu",vPopperTheme:"menu"},T7={...ed,name:"VTooltip",vPopperTheme:"tooltip"},N7=(0,n.defineComponent)({name:"VTooltipDirective",components:{Popper:bv(),PopperContent:$v},mixins:[kv],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Na(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Na(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),D7=["innerHTML"],A7=["textContent"];function B7(e,t,r,o,a,i){const l=(0,n.resolveComponent)("PopperContent"),s=(0,n.resolveComponent)("Popper");return(0,n.openBlock)(),(0,n.createBlock)(s,(0,n.mergeProps)({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:(0,n.withCtx)(({popperId:c,isShown:u,shouldMountContent:d,skipTransition:f,autoHide:m,hide:p,handleResize:h,onResize:v,classes:b,result:g})=>[(0,n.createVNode)(l,{ref:"popperContent",class:(0,n.normalizeClass)({"v-popper--tooltip-loading":e.loading}),"popper-id":c,theme:e.theme,shown:u,mounted:d,"skip-transition":f,"auto-hide":m,"handle-resize":h,classes:b,result:g,onHide:p,onResize:v},{default:(0,n.withCtx)(()=>[e.html?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,innerHTML:e.finalContent},null,8,D7)):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,textContent:(0,n.toDisplayString)(e.finalContent)},null,8,A7))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}var M7=Ml(N7,[["render",B7]]),Ev="v-popper--has-tooltip";function L7(e,t){let r=e.placement;if(!r&&t)for(const o of yv)t[o]&&(r=o);return r||(r=Na(e.theme||"tooltip","placement")),r}function Cv(e,t,r){let o;const a=typeof t;return a==="string"?o={content:t}:t&&a==="object"?o=t:o={content:!1},o.placement=L7(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}var As,Da,P7=0;function I7(){if(As)return;Da=(0,n.ref)([]),As=(0,n.createApp)({name:"VTooltipDirectiveApp",setup(){return{directives:Da}},render(){return this.directives.map(t=>(0,n.h)(M7,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),As.mount(e)}function V7(e,t,r){I7();const o=(0,n.ref)(Cv(e,t,r)),a=(0,n.ref)(!1),i={id:P7++,options:o,shown:a};return Da.value.push(i),e.classList&&e.classList.add(Ev),e.$_popper={options:o,item:i,show(){a.value=!0},hide(){a.value=!1}}}function Sv(e){if(e.$_popper){const t=Da.value.indexOf(e.$_popper.item);t!==-1&&Da.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Ev)}function pp(e,{value:t,modifiers:r}){const o=Cv(e,t,r);if(!o.content||Na(o.theme||"tooltip","disabled"))Sv(e);else{let a;e.$_popper?(a=e.$_popper,a.options.value=o):a=V7(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?a.show():a.hide())}}var O7={beforeMount:pp,updated:pp,beforeUnmount(e){Sv(e)}};function hp(e){e.addEventListener("mousedown",rl),e.addEventListener("click",rl),e.addEventListener("touchstart",xv,xo?{passive:!0}:!1)}function gp(e){e.removeEventListener("mousedown",rl),e.removeEventListener("click",rl),e.removeEventListener("touchstart",xv),e.removeEventListener("touchend",Tv),e.removeEventListener("touchcancel",Nv)}function rl(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function xv(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener("touchend",Tv),t.addEventListener("touchcancel",Nv)}}function Tv(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Nv(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var R7={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&hp(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?hp(e):gp(e))},beforeUnmount(e){gp(e)}};function F7(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,gv(gn,t),e.directive("tooltip",O7),e.directive("close-popper",R7),e.component("VTooltip",T7),e.component("VDropdown",S7),e.component("VMenu",x7))}var z7={version:"5.2.2",install:F7,options:gn},U7={key:0,class:"center"},H7={key:3},W7={class:"bgl-lightbox-item"},j7={key:2,class:"lightbox-pdf"},q7=["src","title"],G7={key:3,class:"lightbox-file"},Y7={class:"file-info txt-white flex m_block align-items-start gap-025"},X7={class:"txt-start"},K7={class:"mx-0 light"},J7={class:"semi word-break-all"},Z7={class:"mx-0"},Q7={class:"semi"},eO=(0,n.defineComponent)({__name:"Lightbox",setup(e,{expose:t}){const r=(0,n.ref)(!1),o=(0,n.ref)([]),a=(0,n.ref)(0),i=(0,n.computed)(()=>o.value[a.value]),l=(0,n.ref)(1),s=(0,n.computed)(()=>l.value===1),c=(0,n.computed)(()=>({allowTouchMove:l.value===1,touchRatio:l.value===1?1:0,simulateTouch:l.value===1}));function u(m,p){r.value=!0,o.value=p||[m],a.value=o.value.findIndex(h=>{const v=m.src!==void 0&&m.src!==null&&m.src!==""&&h.src===m.src,b=m.pathKey!==void 0&&m.pathKey!==null&&m.pathKey!==""&&h.pathKey===m.pathKey;return v||b}),a.value===-1&&(a.value=0),l.value=1}function d(){r.value=!1}El(d,r);function f(m){a.value=m,l.value=1}return(0,n.watch)(()=>r.value,m=>{m?document.body.style.overflow="hidden":document.body.style.overflow=""}),(0,n.watch)(()=>a.value,()=>{l.value=1}),t({open:u,close:d}),(m,p)=>((0,n.openBlock)(),(0,n.createBlock)(n.Transition,{name:"fade"},{default:(0,n.withCtx)(()=>[r.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"bgl-lightbox-overlay",onKeydown:(0,n.withKeys)(d,["esc"])},[(0,n.createElementVNode)("div",{class:"flex start w-100 space-between p-025 z-9",onClick:d},[(0,n.createVNode)((0,n.unref)(ne),{flat:"",class:"color-white",icon:"close",onClick:d}),i.value?.enableZoom&&i.value?.type==="image"?((0,n.openBlock)(),(0,n.createElementBlock)("div",U7,[(0,n.createVNode)((0,n.unref)(ne),{flat:"",class:"color-white",icon:"remove",disabled:l.value===1,onClick:p[0]||(p[0]=h=>l.value--)},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(ne),{flat:"",class:"color-white",icon:"zoom_in",disabled:l.value===1,onClick:p[1]||(p[1]=h=>l.value=1)},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(ne),{flat:"",class:"color-white",icon:"add",disabled:l.value===3,onClick:p[2]||(p[2]=h=>l.value++)},null,8,["disabled"])])):(0,n.createCommentVNode)("",!0),i.value?.openFile&&i.value?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:1,class:"color-white",round:"",thin:"",flat:"",iconEnd:"arrow_outward",value:"$t:lightbox.openFile",href:i.value?.src,target:"_blank"},null,8,["href"])):(0,n.createCommentVNode)("",!0),i.value?.download&&i.value?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ne),{key:2,class:"color-white",round:"",thin:"",flat:"",icon:"download",value:"Download File",onClick:p[3]||(p[3]=h=>(0,n.unref)(ju)(i.value?.src))})):(0,n.createCommentVNode)("",!0),!i.value?.openFile&&!i.value?.download?((0,n.openBlock)(),(0,n.createElementBlock)("div",H7)):(0,n.createCommentVNode)("",!0)]),o.value&&o.value.length>0?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Mg),{key:0,index:a.value,"onUpdate:index":p[6]||(p[6]=h=>a.value=h),items:o.value,"initial-slide":a.value,class:(0,n.normalizeClass)(["bgl-lightbox-swiper",{zoomed:l.value>1}]),navigation:o.value.length>1,"grab-cursor":s.value,keyboard:!0,loop:!1,speed:400,"slides-per-view":1,"space-between":0,effect:"slide","advanced-options":c.value,onClick:p[7]||(p[7]=(0,n.withModifiers)(()=>{},["stop"]))},{default:(0,n.withCtx)(({item:h})=>[(0,n.createElementVNode)("div",W7,[h.type==="image"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Lg),{key:0,zoom:l.value,"onUpdate:zoom":p[4]||(p[4]=v=>l.value=v),disabled:!h?.enableZoom,"mouse-wheel-to-zoom":!1,"double-click-to-zoom":!0,"max-scale":5,"min-scale":1,"aspect-ratio":0,"limit-translation":!0,onClick:p[5]||(p[5]=(0,n.withModifiers)(()=>{},["stop"]))},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(bo),{draggable:!1,src:h?.src,alt:"Preview",class:"lightbox-image"},null,8,["src"])]),_:2},1032,["zoom","disabled"])):h?.type==="video"&&h?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Kc),{key:1,src:h?.src,autoplay:"",controls:"",class:"lightbox-video"},null,8,["src"])):h?.type==="pdf"&&h?.src?((0,n.openBlock)(),(0,n.createElementBlock)("div",j7,[(0,n.createElementVNode)("embed",{src:(0,n.unref)(Wu)(h?.src),type:"application/pdf",title:h?.name},null,8,q7)])):((0,n.openBlock)(),(0,n.createElementBlock)("div",G7,[(0,n.createElementVNode)("div",Y7,[(0,n.createVNode)((0,n.unref)(ge),{class:"m-0 m_none",icon:"draft",size:10,weight:"12"}),(0,n.createVNode)((0,n.unref)(ge),{class:"m-0 none m_block m_-mb-1",icon:"draft",size:4,weight:"2"}),(0,n.createElementVNode)("div",X7,[(0,n.createElementVNode)("p",K7,[p[9]||(p[9]=(0,n.createTextVNode)(" File: ",-1)),(0,n.createElementVNode)("span",J7,(0,n.toDisplayString)(h?.name),1)]),(0,n.createElementVNode)("p",Z7,[p[10]||(p[10]=(0,n.createTextVNode)(" Type: ",-1)),(0,n.createElementVNode)("span",Q7,(0,n.toDisplayString)(h?.type),1)]),(0,n.createVNode)((0,n.unref)(ne),{href:h?.src,target:"_blank",round:"",thin:"",class:"mt-1",value:"Open file"},null,8,["href"])])])]))])]),"prev-button":(0,n.withCtx)(({prev:h})=>[(0,n.createVNode)((0,n.unref)(ne),{icon:"arrow_back",color:"black",onClick:h},null,8,["onClick"])]),"next-button":(0,n.withCtx)(({next:h})=>[(0,n.createVNode)((0,n.unref)(ne),{icon:"arrow_forward",color:"black",onClick:h},null,8,["onClick"])]),_:1},8,["index","items","initial-slide","class","navigation","grab-cursor","advanced-options"])):(0,n.createCommentVNode)("",!0),o.value&&o.value.length>1?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:"lightbox-thumbnails",onClick:p[8]||(p[8]=(0,n.withModifiers)(()=>{},["stop"]))},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(o.value,(h,v)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:v},[h.type==="image"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(bo),{key:0,class:(0,n.normalizeClass)(["thumbnail",{active:a.value===v}]),src:h.src,alt:"",onClick:(0,n.withModifiers)(b=>f(v),["stop"])},null,8,["src","class","onClick"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,class:(0,n.normalizeClass)(["thumbnail thumbnail-icon",{active:a.value===v}]),icon:"description",onClick:(0,n.withModifiers)(b=>f(v),["stop"])},null,8,["class","onClick"]))],64))),128))])):(0,n.createCommentVNode)("",!0)],32)):(0,n.createCommentVNode)("",!0)]),_:1}))}}),tO=eO,Qo={},eo=e=>{},nO={mounted(e,t){vp(jc(t,e)),eo=r=>{yp(r,e,t)},e.addEventListener("click",eo)},updated(e,t){vp(jc(t,e)),e.removeEventListener("click",eo),eo=r=>{yp(r,e,t)},e.addEventListener("click",eo)},unmounted(e){e.removeEventListener("click",eo)},getSSRProps(){return{}}};function vp(e){e.group&&(Qo[e.group]||(Qo[e.group]=[]),Qo[e.group].findIndex(t=>t.src===e.src)===-1&&Qo[e.group].push(e))}function yp(e,t,r){e.stopPropagation();const o=jc(r,t),a=lO();if(!a||!a.open)return;const i=a.open;i(o,o&&o.group?Qo[o.group]:void 0)}function jc(e,t){let{group:r,src:o,type:a,name:i,thumbnail:l,enableZoom:s,openFile:c,download:u,pathKey:d}=e.value||{};return o=fn(o||d)||e.value||t.getAttribute("src")||"",a=a||iO(o),i=i||aO(o)||t.getAttribute("alt")||"",{src:o,type:a,name:i,thumbnail:l,group:r,enableZoom:s,openFile:c,download:u}}var rO=/youtube\.com|youtu\.be/,oO=/vimeo\.com/;function aO(e){return!e||typeof e!="string"?"":(e.split("/").pop()||"").replace(/\.[^/.]+$/,"")}function iO(e){if(typeof e!="string"||!e)return"unknown";const t=(e.split(".").pop()||"").toLowerCase(),r=e.split("?")[0].split(".").pop()?.toLowerCase()||"";return Vi.test(t)||Vi.test(r)?"image":kh.test(t)||rO.test(e)||oO.test(e)?"video":["pdf"].includes(t)?"pdf":t??"unknown"}var Bs;function lO(){if(!(typeof document>"u")){if(!Bs){const e=document.createElement("div");document.body.prepend(e),Bs=(0,n.createApp)(tO).mount(e)}return Bs}}var sO={install(e){e.directive("lightbox",nO)}},cO=sO,uO={beforeMount(e,t){e.clickOutsideEvent=r=>{e===r.target||e.contains(r.target)||t.value(r)},document.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.removeEventListener("click",e.clickOutsideEvent)}},Dv=Pp({EventBus:()=>Vl,POSITION:()=>Ba,TYPE:()=>Pt,createToastInterface:()=>Ma,default:()=>Gv,globalEventBus:()=>td,provideToast:()=>JO,toastInjectionKey:()=>Ol,useToast:()=>qv},1),dO=Object.defineProperty,bp=Object.getOwnPropertySymbols,fO=Object.prototype.hasOwnProperty,mO=Object.prototype.propertyIsEnumerable,_p=(e,t,r)=>t in e?dO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Av=(e,t)=>{for(var r in t||(t={}))fO.call(t,r)&&_p(e,r,t[r]);if(bp)for(var r of bp(t))mO.call(t,r)&&_p(e,r,t[r]);return e},Pl=e=>typeof e=="function",Il=e=>typeof e=="string",Bv=e=>Il(e)&&e.trim().length>0,pO=e=>typeof e=="number",Mr=e=>typeof e>"u",Aa=e=>typeof e=="object"&&e!==null,hO=e=>Vn(e,"tag")&&Bv(e.tag),Mv=e=>window.TouchEvent&&e instanceof TouchEvent,Lv=e=>Vn(e,"component")&&Pv(e.component),gO=e=>Pl(e)||Aa(e),Pv=e=>!Mr(e)&&(Il(e)||gO(e)||Lv(e)),wp=e=>Aa(e)&&["height","width","right","left","top","bottom"].every(t=>pO(e[t])),Vn=(e,t)=>(Aa(e)||Pl(e))&&t in e,vO=(e=>()=>e++)(0);function Ms(e){return Mv(e)?e.targetTouches[0].clientX:e.clientX}function $p(e){return Mv(e)?e.targetTouches[0].clientY:e.clientY}var yO=e=>{Mr(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},Ya=e=>Lv(e)?Ya(e.component):hO(e)?(0,n.defineComponent)({render(){return e}}):typeof e=="string"?e:(0,n.toRaw)((0,n.unref)(e)),bO=e=>{if(typeof e=="string")return e;const t=Vn(e,"props")&&Aa(e.props)?e.props:{},r=Vn(e,"listeners")&&Aa(e.listeners)?e.listeners:{};return{component:Ya(e),props:t,listeners:r}},_O=()=>typeof window<"u",Vl=class{constructor(){this.allHandlers={}}getHandlers(e){return this.allHandlers[e]||[]}on(e,t){const r=this.getHandlers(e);r.push(t),this.allHandlers[e]=r}off(e,t){const r=this.getHandlers(e);r.splice(r.indexOf(t)>>>0,1)}emit(e,t){this.getHandlers(e).forEach(r=>r(t))}},wO=e=>["on","off","emit"].every(t=>Vn(e,t)&&Pl(e[t])),Pt;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(Pt||(Pt={}));var Ba;(function(e){e.TOP_LEFT="top-left",e.TOP_CENTER="top-center",e.TOP_RIGHT="top-right",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_CENTER="bottom-center",e.BOTTOM_RIGHT="bottom-right"})(Ba||(Ba={}));var qt;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(qt||(qt={}));var Jn="Vue-Toastification",un={type:{type:String,default:Pt.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},kp={type:un.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},di={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:un.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},Ls={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},Ep={transition:{type:[Object,String],default:`${Jn}__bounce`}},tr={CORE_TOAST:{position:{type:String,default:Ba.TOP_RIGHT},draggable:un.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:un.trueBoolean,pauseOnHover:un.trueBoolean,closeOnClick:un.trueBoolean,timeout:Ls.timeout,hideProgressBar:Ls.hideProgressBar,toastClassName:un.classNames,bodyClassName:un.classNames,icon:kp.customIcon,closeButton:di.component,closeButtonClassName:di.classNames,showCloseButtonOnHover:di.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new Vl}},TOAST:{id:{type:[String,Number],required:!0,default:0},type:un.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},CONTAINER:{container:{type:[Object,Function],default:()=>document.body},newestOnTop:un.trueBoolean,maxToasts:{type:Number,default:20},transition:Ep.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:un.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},PROGRESS_BAR:Ls,ICON:kp,TRANSITION:Ep,CLOSE_BUTTON:di},Iv=(0,n.defineComponent)({name:"VtProgressBar",props:tr.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${Jn}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function $O(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{style:(0,n.normalizeStyle)(e.style),class:(0,n.normalizeClass)(e.cpClass)},null,6)}Iv.render=$O;var kO=Iv,Vv=(0,n.defineComponent)({name:"VtCloseButton",props:tr.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?Ya(this.component):"button"},classes(){const e=[`${Jn}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),EO=(0,n.createTextVNode)(" × ");function CO(e,t){return(0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.buttonComponent),(0,n.mergeProps)({"aria-label":e.ariaLabel,class:e.classes},e.$attrs),{default:(0,n.withCtx)(()=>[EO]),_:1},16,["aria-label","class"])}Vv.render=CO;var SO=Vv,Ov={},xO={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},TO=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1)];function NO(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",xO,TO)}Ov.render=NO;var DO=Ov,Rv={},AO={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},BO=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1)];function MO(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",AO,BO)}Rv.render=MO;var Cp=Rv,Fv={},LO={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},PO=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function IO(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",LO,PO)}Fv.render=IO;var VO=Fv,zv={},OO={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},RO=[(0,n.createElementVNode)("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function FO(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",OO,RO)}zv.render=FO;var zO=zv,Uv=(0,n.defineComponent)({name:"VtIcon",props:tr.ICON,computed:{customIconChildren(){return Vn(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return Il(this.customIcon)?this.trimValue(this.customIcon):Vn(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return Vn(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:Pv(this.customIcon)?Ya(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[Pt.DEFAULT]:Cp,[Pt.INFO]:Cp,[Pt.SUCCESS]:DO,[Pt.ERROR]:zO,[Pt.WARNING]:VO}[this.type]},iconClasses(){const e=[`${Jn}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return Bv(e)?e.trim():t}}});function UO(e,t){return(0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.component),{class:(0,n.normalizeClass)(e.iconClasses)},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.customIconChildren),1)]),_:1},8,["class"])}Uv.render=UO;var Hv=(0,n.defineComponent)({name:"VtToast",components:{ProgressBar:kO,CloseButton:SO,Icon:Uv},inheritAttrs:!1,props:Object.assign({},tr.CORE_TOAST,tr.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${Jn}__toast`,`${Jn}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${Jn}__toast--rtl`),e},bodyClasses(){return[`${Jn}__toast-${Il(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return wp(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:Vn,getVueComponentFromObj:Ya,closeToast(){this.eventBus.emit(qt.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const e=this.$el;e.addEventListener("touchstart",this.onDragStart,{passive:!0}),e.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const e=this.$el;e.removeEventListener("touchstart",this.onDragStart),e.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(e){this.beingDragged=!0,this.dragPos={x:Ms(e),y:$p(e)},this.dragStart=Ms(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:Ms(e),y:$p(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,wp(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),HO=["role"];function WO(e,t){const r=(0,n.resolveComponent)("Icon"),o=(0,n.resolveComponent)("CloseButton"),a=(0,n.resolveComponent)("ProgressBar");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.classes),style:(0,n.normalizeStyle)(e.draggableStyle),onClick:t[0]||(t[0]=(...i)=>e.clickHandler&&e.clickHandler(...i)),onMouseenter:t[1]||(t[1]=(...i)=>e.hoverPause&&e.hoverPause(...i)),onMouseleave:t[2]||(t[2]=(...i)=>e.hoverPlay&&e.hoverPlay(...i))},[e.icon?((0,n.openBlock)(),(0,n.createBlock)(r,{key:0,"custom-icon":e.icon,type:e.type},null,8,["custom-icon","type"])):(0,n.createCommentVNode)("v-if",!0),(0,n.createElementVNode)("div",{role:e.accessibility.toastRole||"alert",class:(0,n.normalizeClass)(e.bodyClasses)},[typeof e.content=="string"?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createTextVNode)((0,n.toDisplayString)(e.content),1)],2112)):((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.getVueComponentFromObj(e.content)),(0,n.mergeProps)({key:1,"toast-id":e.id},e.hasProp(e.content,"props")?e.content.props:{},(0,n.toHandlers)(e.hasProp(e.content,"listeners")?e.content.listeners:{}),{onCloseToast:e.closeToast}),null,16,["toast-id","onCloseToast"]))],10,HO),e.closeButton?((0,n.openBlock)(),(0,n.createBlock)(o,{key:1,component:e.closeButton,"class-names":e.closeButtonClassName,"show-on-hover":e.showCloseButtonOnHover,"aria-label":e.accessibility.closeButtonLabel,onClick:(0,n.withModifiers)(e.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):(0,n.createCommentVNode)("v-if",!0),e.timeout?((0,n.openBlock)(),(0,n.createBlock)(a,{key:2,"is-running":e.isRunning,"hide-progress-bar":e.hideProgressBar,timeout:e.timeout,onCloseToast:e.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):(0,n.createCommentVNode)("v-if",!0)],38)}Hv.render=WO;var jO=Hv,Wv=(0,n.defineComponent)({name:"VtTransition",props:tr.TRANSITION,emits:["leave"],methods:{hasProp:Vn,leave(e){e instanceof HTMLElement&&(e.style.left=e.offsetLeft+"px",e.style.top=e.offsetTop+"px",e.style.width=getComputedStyle(e).width,e.style.position="absolute")}}});function qO(e,t){return(0,n.openBlock)(),(0,n.createBlock)(n.TransitionGroup,{tag:"div","enter-active-class":e.transition.enter?e.transition.enter:`${e.transition}-enter-active`,"move-class":e.transition.move?e.transition.move:`${e.transition}-move`,"leave-active-class":e.transition.leave?e.transition.leave:`${e.transition}-leave-active`,onLeave:e.leave},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}Wv.render=qO;var jv=(0,n.defineComponent)({name:"VueToastification",devtools:{hide:!0},components:{Toast:jO,VtTransition:Wv},props:Object.assign({},tr.CORE_TOAST,tr.CONTAINER,tr.TRANSITION),data(){return{count:0,positions:Object.values(Ba),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(qt.ADD,this.addToast),e.on(qt.CLEAR,this.clearToasts),e.on(qt.DISMISS,this.dismissToast),e.on(qt.UPDATE,this.updateToast),e.on(qt.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){Pl(e)&&(e=await e()),yO(this.$el),e.appendChild(this.$el)},setToast(e){Mr(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=bO(e.content);const t=Object.assign({},this.defaults,e.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[e.type],e),r=this.defaults.filterBeforeCreate(t,this.toastArray);r&&this.setToast(r)},dismissToast(e){const t=this.toasts[e];!Mr(t)&&!Mr(t.onClose)&&t.onClose(),delete this.toasts[e]},clearToasts(){Object.keys(this.toasts).forEach(e=>{this.dismissToast(e)})},getPositionToasts(e){const t=this.filteredToasts.filter(r=>r.position===e).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?t.reverse():t},updateDefaults(e){Mr(e.container)||this.setup(e.container),this.defaults=Object.assign({},this.defaults,e)},updateToast({id:e,options:t,create:r}){this.toasts[e]?(t.timeout&&t.timeout===this.toasts[e].timeout&&t.timeout++,this.setToast(Object.assign({},this.toasts[e],t))):r&&this.addToast(Object.assign({},{id:e},t))},getClasses(e){return[`${Jn}__container`,e].concat(this.defaults.containerClassName)}}});function GO(e,t){const r=(0,n.resolveComponent)("Toast"),o=(0,n.resolveComponent)("VtTransition");return(0,n.openBlock)(),(0,n.createElementBlock)("div",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.positions,a=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:a},[(0,n.createVNode)(o,{transition:e.defaults.transition,class:(0,n.normalizeClass)(e.getClasses(a))},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.getPositionToasts(a),i=>((0,n.openBlock)(),(0,n.createBlock)(r,(0,n.mergeProps)({key:i.id},i),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}jv.render=GO;var YO=jv,Sp=(e={},t=!0)=>{const r=e.eventBus=e.eventBus||new Vl;t&&(0,n.nextTick)(()=>{const i=(0,n.createApp)(YO,Av({},e)),l=i.mount(document.createElement("div")),s=e.onMounted;if(Mr(s)||s(l,i),e.shareAppContext){const c=e.shareAppContext;c===!0||(i._context.components=c._context.components,i._context.directives=c._context.directives,i._context.mixins=c._context.mixins,i._context.provides=c._context.provides,i.config.globalProperties=c.config.globalProperties)}});const o=(i,l)=>{const s=Object.assign({},{id:vO(),type:Pt.DEFAULT},l,{content:i});return r.emit(qt.ADD,s),s.id};o.clear=()=>r.emit(qt.CLEAR,void 0),o.updateDefaults=i=>{r.emit(qt.UPDATE_DEFAULTS,i)},o.dismiss=i=>{r.emit(qt.DISMISS,i)};function a(i,{content:l,options:s},c=!1){const u=Object.assign({},s,{content:l});r.emit(qt.UPDATE,{id:i,options:u,create:c})}return o.update=a,o.success=(i,l)=>o(i,Object.assign({},l,{type:Pt.SUCCESS})),o.info=(i,l)=>o(i,Object.assign({},l,{type:Pt.INFO})),o.error=(i,l)=>o(i,Object.assign({},l,{type:Pt.ERROR})),o.warning=(i,l)=>o(i,Object.assign({},l,{type:Pt.WARNING})),o},XO=()=>{const e=()=>{};return new Proxy(e,{get(){return e}})};function Ma(e){return _O()?wO(e)?Sp({eventBus:e},!1):Sp(e,!0):XO()}var Ol=Symbol("VueToastification"),td=new Vl,KO=(e,t)=>{t?.shareAppContext===!0&&(t.shareAppContext=e);const r=Ma(Av({eventBus:td},t));e.provide(Ol,r)},JO=e=>{const t=Ma(e);(0,n.getCurrentInstance)()&&(0,n.provide)(Ol,t)},qv=e=>{if(e)return Ma(e);const t=(0,n.getCurrentInstance)()?(0,n.inject)(Ol,void 0):void 0;return t||Ma(td)},Gv=KO,ZO={key:0,class:"custom-toast__icon"},QO={class:"custom-toast__content"},eR=(0,n.defineComponent)({name:"BglToast",__name:"Toast",props:{message:{},type:{},info:{type:Boolean},success:{type:Boolean},warning:{type:Boolean},error:{type:Boolean},showIcon:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},closeToast:{}},setup(e){const t=e,r=(0,n.computed)(()=>t.type?t.type:t.error?"error":t.warning?"warning":t.success?"success":"info");return(o,a)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["custom-toast",`custom-toast--${r.value}`])},[e.showIcon?((0,n.openBlock)(),(0,n.createElementBlock)("div",ZO,[r.value==="success"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:0,icon:"check_circle"})):(0,n.createCommentVNode)("",!0),r.value==="error"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:1,icon:"dangerous"})):(0,n.createCommentVNode)("",!0),r.value==="warning"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:2,icon:"report"})):(0,n.createCommentVNode)("",!0),r.value==="info"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(ge),{key:3,icon:"info"})):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",QO,(0,n.toDisplayString)(e.message),1),e.showCloseButton?((0,n.openBlock)(),(0,n.createElementBlock)("button",{key:1,class:"custom-toast__close",onClick:a[0]||(a[0]=(...i)=>e.closeToast&&e.closeToast(...i))},[(0,n.createVNode)((0,n.unref)(ge),{icon:"close"})])):(0,n.createCommentVNode)("",!0)],2))}}),qo=eR,tR=Gv||Dv,{POSITION:nR}=Dv,to=qv;const Yv=Symbol("toast");var ol=null;function rR(){const e=(0,n.inject)(Yv,null);if(!e){if(ol)return ol;throw new Error("Toast API not provided. Make sure ToastPlugin is installed via app.use(ToastPlugin)")}return e}function oR(){if(typeof document>"u")return;let e=document.getElementById("bgl-toast-container");e||(e=document.createElement("div"),e.setAttribute("popover","manual"),e.setAttribute("id","bgl-toast-container"),document.body.appendChild(e));try{e.hidePopover()}catch{}try{e.showPopover()}catch{}return e}const Xv={install:(e,t={})=>{const r=oR(),o={position:nR.TOP_RIGHT,timeout:5e3,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,draggable:!0,draggablePercent:.6,showCloseButtonOnHover:!1,hideProgressBar:!0,closeButton:!1,icon:!1,rtl:!1,transition:"Vue-Toastification__fade",maxToasts:5,newestOnTop:!0,toastClassName:"custom-toast-wrapper",bodyClassName:"custom-toast-body",...r?{container:r}:{},...t};e.use(tR,o);function a(){const l=typeof document<"u"?document.getElementById("bgl-toast-container"):null;if(l){try{l.hidePopover()}catch{}try{l.showPopover()}catch{}}}const i={success:(l,s)=>(a(),to()({component:qo,props:{message:l,type:"success"}},s)),error:(l,s)=>(a(),to()({component:qo,props:{message:l,type:"error"}},s)),info:(l,s)=>(a(),to()({component:qo,props:{message:l,type:"info"}},s)),warning:(l,s)=>(a(),to()({component:qo,props:{message:l,type:"warning"}},s)),show:(l,s)=>(a(),to()({component:qo,props:{message:l,type:"info"}},s)),clear:()=>{to().clear()}};ol||(ol=i),e.provide(Yv,i)}};var Rl=class extends Event{oldState;newState;constructor(e,{oldState:t="",newState:r="",...o}={}){super(e,o),this.oldState=String(t||""),this.newState=String(r||"")}},xp=new WeakMap;function Kv(e,t,r){xp.set(e,setTimeout(()=>{xp.has(e)&&e.dispatchEvent(new Rl("toggle",{cancelable:!1,oldState:t,newState:r}))},0))}var nd=globalThis.ShadowRoot||function(){},aR=globalThis.HTMLDialogElement||function(){},Ai=new WeakMap,Zn=new WeakMap,tn=new WeakMap,To=new WeakMap;function al(e){return To.get(e)||"hidden"}var il=new WeakMap;function La(e){return[...e].pop()}function iR(e){const t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;const r=al(t);e.popoverTargetAction==="show"&&r==="showing"||e.popoverTargetAction==="hide"&&r==="hidden"||(r==="showing"?Do(t,!0,!0):Pr(t,!1)&&(il.set(t,e),qc(t)))}function Pr(e,t){return!(e.popover!=="auto"&&e.popover!=="manual"&&e.popover!=="hint"||!e.isConnected||t&&al(e)!=="showing"||!t&&al(e)!=="hidden"||e instanceof aR&&e.hasAttribute("open")||document.fullscreenElement===e)}function Tp(e){if(!e)return 0;const t=Zn.get(document)||new Set,r=tn.get(document)||new Set;return r.has(e)?[...r].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function lR(e){const t=Jv(e),r=sR(e);return Tp(t)>Tp(r)?t:r}function Pa(e){let t;const r=tn.get(e)||new Set,o=Zn.get(e)||new Set,a=r.size>0?r:o.size>0?o:null;return a?(t=La(a),t.isConnected?t:(a.delete(t),Pa(e))):null}function Np(e){for(const t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function No(e){return typeof e.getRootNode=="function"?e.getRootNode():e.parentNode?No(e.parentNode):e}function Jv(e){for(;e;){if(e instanceof HTMLElement&&e.popover==="auto"&&To.get(e)==="showing")return e;if(e=e instanceof Element&&e.assignedSlot||e.parentElement||No(e),e instanceof nd&&(e=e.host),e instanceof Document)return}}function sR(e){for(;e;){const t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if(e=e.parentElement||No(e),e instanceof nd&&(e=e.host),e instanceof Document)return}}function Dp(e,t){const r=new Map;let o=0;for(const l of t||[])r.set(l,o),o+=1;r.set(e,o),o+=1;let a=null;function i(l){if(!l)return;let s=!1,c=null,u=null;for(;!s;){if(c=Jv(l)||null,c===null||!r.has(c))return;(e.popover==="hint"||c.popover==="auto")&&(s=!0),s||(l=c.parentElement)}u=r.get(c),(a===null||r.get(a)<u)&&(a=c)}return i(e.parentElement||No(e)),a}function cR(e){return e.hidden||e instanceof nd||(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)&&e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e instanceof HTMLAnchorElement&&e.href===""?!1:typeof e.tabIndex=="number"&&e.tabIndex!==-1}function uR(e){if(e.shadowRoot&&e.shadowRoot.delegatesFocus!==!0)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);let r=t.querySelector("[autofocus]");if(r)return r;{const i=t.querySelectorAll("slot");for(const l of i){const s=l.assignedElements({flatten:!0});for(const c of s){if(c.hasAttribute("autofocus"))return c;if(r=c.querySelector("[autofocus]"),r)return r}}}const o=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);let a=o.currentNode;for(;a;){if(cR(a))return a;a=o.nextNode()}}function dR(e){var t;(t=uR(e))==null||t.focus()}var ll=new WeakMap;function qc(e){if(!Pr(e,!1))return;const t=e.ownerDocument;if(!e.dispatchEvent(new Rl("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!Pr(e,!1))return;let r=!1;const o=e.popover;let a=null;const i=Dp(e,Zn.get(t)||new Set),l=Dp(e,tn.get(t)||new Set);if(o==="auto"&&(Gc(tn.get(t)||new Set,r,!0),Ir(i||t,r,!0),a="auto"),o==="hint"&&(l?(Ir(l,r,!0),a="hint"):(Gc(tn.get(t)||new Set,r,!0),i?(Ir(i,r,!0),a="auto"):a="hint")),o==="auto"||o==="hint"){if(o!==e.popover||!Pr(e,!1))return;Pa(t)||(r=!0),a==="auto"?(Zn.has(t)||Zn.set(t,new Set),Zn.get(t).add(e)):a==="hint"&&(tn.has(t)||tn.set(t,new Set),tn.get(t).add(e))}ll.delete(e);const s=t.activeElement;e.classList.add(":popover-open"),To.set(e,"showing"),Ai.has(t)||Ai.set(t,new Set),Ai.get(t).add(e),Zv(il.get(e),!0),dR(e),r&&s&&e.popover==="auto"&&ll.set(e,s),Kv(e,"closed","open")}function Do(e,t=!1,r=!1){var o,a;if(!Pr(e,!0))return;const i=e.ownerDocument;if(["auto","hint"].includes(e.popover)&&(Ir(e,t,r),!Pr(e,!0)))return;const l=Zn.get(i)||new Set,s=l.has(e)&&La(l)===e;if(Zv(il.get(e),!1),il.delete(e),r&&(e.dispatchEvent(new Rl("beforetoggle",{oldState:"open",newState:"closed"})),s&&La(l)!==e&&Ir(e,t,r),!Pr(e,!0)))return;(o=Ai.get(i))==null||o.delete(e),l.delete(e),(a=tn.get(i))==null||a.delete(e),e.classList.remove(":popover-open"),To.set(e,"hidden"),r&&Kv(e,"open","closed");const c=ll.get(e);c&&(ll.delete(e),t&&c.focus())}function fR(e,t=!1,r=!1){let o=Pa(e);for(;o;)Do(o,t,r),o=Pa(e)}function Gc(e,t=!1,r=!1){let o=Np(e);for(;o;)Do(o,t,r),o=Np(e)}function Ap(e,t,r,o){let a=!1,i=!1;for(;a||!i;){i=!0;let l=null,s=!1;for(const c of t)if(c===e)s=!0;else if(s){l=c;break}if(!l)return;for(;al(l)==="showing"&&t.size;)Do(La(t),r,o);t.has(e)&&La(t)!==e&&(a=!0),a&&(o=!1)}}function Ir(e,t,r){var o,a;const i=e.ownerDocument||e;if(e instanceof Document)return fR(i,t,r);if((o=tn.get(i))!=null&&o.has(e)){Ap(e,tn.get(i),t,r);return}Gc(tn.get(i)||new Set,t,r),(a=Zn.get(i))!=null&&a.has(e)&&Ap(e,Zn.get(i),t,r)}var Ps=new WeakMap;function Bp(e){if(!e.isTrusted)return;const t=e.composedPath()[0];if(!t)return;const r=t.ownerDocument;if(!Pa(r))return;const o=lR(t);if(o&&e.type==="pointerdown")Ps.set(r,o);else if(e.type==="pointerup"){const a=Ps.get(r)===o;Ps.delete(r),a&&Ir(o||r,!1,!0)}}var Is=new WeakMap;function Zv(e,t=!1){if(!e)return;Is.has(e)||Is.set(e,e.getAttribute("aria-expanded"));const r=e.popoverTargetElement;if(r instanceof HTMLElement&&r.popover==="auto")e.setAttribute("aria-expanded",String(t));else{const o=Is.get(e);o?e.setAttribute("aria-expanded",o):e.removeAttribute("aria-expanded")}}var Mp=globalThis.ShadowRoot||function(){};function mR(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype=="object"&&"popover"in HTMLElement.prototype}function xr(e,t,r){const o=e[t];Object.defineProperty(e,t,{value(a){return o.call(this,r(a))}})}var pR=/(^|[^\\]):popover-open\b/g;function hR(){return typeof globalThis.CSSLayerBlockRule=="function"}function gR(){const e=hR();return`
|
|
440
440
|
${e?"@layer popover-polyfill {":""}
|
|
441
441
|
:where([popover]) {
|
|
442
442
|
position: fixed;
|
|
@@ -498,4 +498,4 @@ ${e?"@layer popover-polyfill {":""}
|
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
${e?"}":""}
|
|
501
|
-
`}var no=null;function Vs(e){const t=hR();if(no===null)try{no=new CSSStyleSheet,no.replaceSync(t)}catch{no=!1}if(no===!1){const r=document.createElement("style");r.textContent=t,e instanceof Document?e.head.prepend(r):e.prepend(r)}else e.adoptedStyleSheets=[no,...e.adoptedStyleSheets]}function gR(){if(typeof window>"u")return;window.ToggleEvent=window.ToggleEvent||Rl;function e(c){return c?.includes(":popover-open")&&(c=c.replace(mR,"$1.\\:popover-open")),c}xr(Document.prototype,"querySelector",e),xr(Document.prototype,"querySelectorAll",e),xr(Element.prototype,"querySelector",e),xr(Element.prototype,"querySelectorAll",e),xr(Element.prototype,"matches",e),xr(Element.prototype,"closest",e),xr(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const c=(this.getAttribute("popover")||"").toLowerCase();return c===""||c=="auto"?"auto":c=="hint"?"hint":"manual"},set(c){c===null?this.removeAttribute("popover"):this.setAttribute("popover",c)}},showPopover:{enumerable:!0,configurable:!0,value(c={}){qc(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Do(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(c={}){return typeof c=="boolean"&&(c={force:c}),To.get(this)==="showing"&&c.force===void 0||c.force===!1?Do(this,!0,!0):(c.force===void 0||c.force===!0)&&qc(this),To.get(this)==="showing"}}});const t=Element.prototype.attachShadow;t&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(c){const u=t.call(this,c);return Vs(u),u}}});const r=HTMLElement.prototype.attachInternals;r&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const c=r.call(this);return c.shadowRoot&&Vs(c.shadowRoot),c}}});const o=new WeakMap;function a(c){Object.defineProperties(c.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(u){if(u===null)this.removeAttribute("popovertarget"),o.delete(this);else if(u instanceof Element)this.setAttribute("popovertarget",""),o.set(this,u);else throw new TypeError("popoverTargetElement must be an element or null")},get(){if(this.localName!=="button"&&this.localName!=="input"||this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"||this.disabled||this.form&&this.type==="submit")return null;const u=o.get(this);if(u&&u.isConnected)return u;if(u&&!u.isConnected)return o.delete(this),null;const d=No(this),f=this.getAttribute("popovertarget");return(d instanceof Document||d instanceof Mp)&&f&&d.getElementById(f)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const u=(this.getAttribute("popovertargetaction")||"").toLowerCase();return u==="show"||u==="hide"?u:"toggle"},set(u){this.setAttribute("popovertargetaction",u)}}})}a(HTMLButtonElement),a(HTMLInputElement);const i=c=>{if(c.defaultPrevented)return;const u=c.composedPath(),d=u[0];if(!(d instanceof Element)||d?.shadowRoot)return;const f=No(d);if(!(f instanceof Mp||f instanceof Document))return;const m=u.find(p=>{var h;return(h=p.matches)==null?void 0:h.call(p,"[popovertargetaction],[popovertarget]")});if(m){aR(m),c.preventDefault();return}},l=c=>{const u=c.key,d=c.target;!c.defaultPrevented&&d&&(u==="Escape"||u==="Esc")&&Ir(d.ownerDocument,!0,!0)};(c=>{c.addEventListener("click",i),c.addEventListener("keydown",l),c.addEventListener("pointerdown",Bp),c.addEventListener("pointerup",Bp)})(document),Vs(document)}fR()||gR();const vR={install:(e,t={})=>{e.directive("click-outside",cO),e.directive("ripple",av),e.directive("pattern",rv),e.directive("reveal",ov),e.use(sO),e.use(ev),e.use(Xv,t.toast||{}),e.use(F7,{themes:{"bgl-theme":{triggers:["click"],autoHide:!0,placement:"bottom"}}});const r=fg(t.i18n||{});e.use(r)}};var yR=[["Afghanistan (افغانستان)","AF","93"],["Albania (Shqipëri)","AL","355"],["Algeria (الجزائر)","DZ","213"],["American Samoa","AS","1",5,["684"]],["Andorra","AD","376"],["Angola","AO","244"],["Anguilla","AI","1",6,["264"]],["Antigua and Barbuda","AG","1",7,["268"]],["Argentina","AR","54"],["Armenia (Հայաստան)","AM","374"],["Aruba","AW","297"],["Ascension Island","AC","247"],["Australia","AU","61",0],["Austria (Österreich)","AT","43"],["Azerbaijan (Azərbaycan)","AZ","994"],["Bahamas","BS","1",8,["242"]],["Bahrain (البحرين)","BH","973"],["Bangladesh (বাংলাদেশ)","BD","880"],["Barbados","BB","1",9,["246"]],["Belarus (Беларусь)","BY","375"],["Belgium (België)","BE","32"],["Belize","BZ","501"],["Benin (Bénin)","BJ","229"],["Bermuda","BM","1",10,["441"]],["Bhutan (འབྲུག)","BT","975"],["Bolivia","BO","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","BA","387"],["Botswana","BW","267"],["Brazil (Brasil)","BR","55"],["British Indian Ocean Territory","IO","246"],["British Virgin Islands","VG","1",11,["284"]],["Brunei","BN","673"],["Bulgaria (България)","BG","359"],["Burkina Faso","BF","226"],["Burundi (Uburundi)","BI","257"],["Cambodia (កម្ពុជា)","KH","855"],["Cameroon (Cameroun)","CM","237"],["Canada","CA","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","CV","238"],["Caribbean Netherlands","BQ","599",1,["3","4","7"]],["Cayman Islands","KY","1",12,["345"]],["Central African Republic (République centrafricaine)","CF","236"],["Chad (Tchad)","TD","235"],["Chile","CL","56"],["China (中国)","CN","86"],["Christmas Island","CX","61",2,["89164"]],["Cocos (Keeling) Islands","CC","61",1,["89162"]],["Colombia","CO","57"],["Comoros (جزر القمر)","KM","269"],["Congo (DRC) (République démocratique du Congo)","CD","243"],["Congo (Republic) (Congo-Brazzaville)","CG","242"],["Cook Islands","CK","682"],["Costa Rica","CR","506"],["Côte d’Ivoire","CI","225"],["Croatia (Hrvatska)","HR","385"],["Cuba","CU","53"],["Curaçao","CW","599",0],["Cyprus (Κύπρος)","CY","357"],["Czech Republic (Česká republika)","CZ","420"],["Denmark (Danmark)","DK","45"],["Djibouti","DJ","253"],["Dominica","DM","1",13,["767"]],["Dominican Republic (República Dominicana)","DO","1",2,["809","829","849"]],["Ecuador","EC","593"],["Egypt (مصر)","EG","20"],["El Salvador","SV","503"],["Equatorial Guinea (Guinea Ecuatorial)","GQ","240"],["Eritrea","ER","291"],["Estonia (Eesti)","EE","372"],["Eswatini","SZ","268"],["Ethiopia","ET","251"],["Falkland Islands (Islas Malvinas)","FK","500"],["Faroe Islands (Føroyar)","FO","298"],["Fiji","FJ","679"],["Finland (Suomi)","FI","358",0],["France","FR","33"],["French Guiana (Guyane française)","GF","594"],["French Polynesia (Polynésie française)","PF","689"],["Gabon","GA","241"],["Gambia","GM","220"],["Georgia (საქართველო)","GE","995"],["Germany (Deutschland)","DE","49"],["Ghana (Gaana)","GH","233"],["Gibraltar","GI","350"],["Greece (Ελλάδα)","GR","30"],["Greenland (Kalaallit Nunaat)","GL","299"],["Grenada","GD","1",14,["473"]],["Guadeloupe","GP","590",0],["Guam","GU","1",15,["671"]],["Guatemala","GT","502"],["Guernsey","GG","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","GN","224"],["Guinea-Bissau (Guiné Bissau)","GW","245"],["Guyana","GY","592"],["Haiti","HT","509"],["Honduras","HN","504"],["Hong Kong (香港)","HK","852"],["Hungary (Magyarország)","HU","36"],["Iceland (Ísland)","IS","354"],["India (भारत)","IN","91"],["Indonesia","ID","62"],["Iran (ایران)","IR","98"],["Iraq (العراق)","IQ","964"],["Ireland","IE","353"],["Isle of Man","IM","44",2,["1624","74576","7524","7924","7624"]],["Israel (ישראל)","IL","972"],["Italy (Italia)","IT","39",0],["Jamaica","JM","1",4,["876","658"]],["Japan (日本)","JP","81"],["Jersey","JE","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (الأردن)","JO","962"],["Kazakhstan (Казахстан)","KZ","7",1,["33","7"]],["Kenya","KE","254"],["Kiribati","KI","686"],["Kosovo","XK","383"],["Kuwait (الكويت)","KW","965"],["Kyrgyzstan (Кыргызстан)","KG","996"],["Laos (ລາວ)","LA","856"],["Latvia (Latvija)","LV","371"],["Lebanon (لبنان)","LB","961"],["Lesotho","LS","266"],["Liberia","LR","231"],["Libya (ليبيا)","LY","218"],["Liechtenstein","LI","423"],["Lithuania (Lietuva)","LT","370"],["Luxembourg","LU","352"],["Macau (澳門)","MO","853"],["Madagascar (Madagasikara)","MG","261"],["Malawi","MW","265"],["Malaysia","MY","60"],["Maldives","MV","960"],["Mali","ML","223"],["Malta","MT","356"],["Marshall Islands","MH","692"],["Martinique","MQ","596"],["Mauritania (موريتانيا)","MR","222"],["Mauritius (Moris)","MU","230"],["Mayotte","YT","262",1,["269","639"]],["Mexico (México)","MX","52"],["Micronesia","FM","691"],["Moldova (Republica Moldova)","MD","373"],["Monaco","MC","377"],["Mongolia (Монгол)","MN","976"],["Montenegro (Crna Gora)","ME","382"],["Montserrat","MS","1",16,["664"]],["Morocco (المغرب)","MA","212",0],["Mozambique (Moçambique)","MZ","258"],["Myanmar (Burma) (မြန်မာ)","MM","95"],["Namibia (Namibië)","NA","264"],["Nauru","NR","674"],["Nepal (नेपाल)","NP","977"],["Netherlands (Nederland)","NL","31"],["New Caledonia (Nouvelle-Calédonie)","NC","687"],["New Zealand","NZ","64"],["Nicaragua","NI","505"],["Niger (Nijar)","NE","227"],["Nigeria","NG","234"],["Niue","NU","683"],["Norfolk Island","NF","672"],["North Korea (조선 민주주의 인민 공화국)","KP","850"],["North Macedonia (Северна Македонија)","MK","389"],["Northern Mariana Islands","MP","1",17,["670"]],["Norway (Norge)","NO","47",0],["Oman (عُمان)","OM","968"],["Pakistan (پاکستان)","PK","92"],["Palau","PW","680"],["Palestine (فلسطين)","PS","970"],["Panama (Panamá)","PA","507"],["Papua New Guinea","PG","675"],["Paraguay","PY","595"],["Peru (Perú)","PE","51"],["Philippines","PH","63"],["Poland (Polska)","PL","48"],["Portugal","PT","351"],["Puerto Rico","PR","1",3,["787","939"]],["Qatar (قطر)","QA","974"],["Réunion (La Réunion)","RE","262",0],["Romania (România)","RO","40"],["Russia (Россия)","RU","7",0],["Rwanda","RW","250"],["Saint Barthélemy","BL","590",1],["Saint Helena","SH","290"],["Saint Kitts and Nevis","KN","1",18,["869"]],["Saint Lucia","LC","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","MF","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","PM","508"],["Saint Vincent and the Grenadines","VC","1",20,["784"]],["Samoa","WS","685"],["San Marino","SM","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","ST","239"],["Saudi Arabia (المملكة العربية السعودية)","SA","966"],["Senegal (Sénégal)","SN","221"],["Serbia (Србија)","RS","381"],["Seychelles","SC","248"],["Sierra Leone","SL","232"],["Singapore","SG","65"],["Sint Maarten","SX","1",21,["721"]],["Slovakia (Slovensko)","SK","421"],["Slovenia (Slovenija)","SI","386"],["Solomon Islands","SB","677"],["Somalia (Soomaaliya)","SO","252"],["South Africa","ZA","27"],["South Korea (대한민국)","KR","82"],["South Sudan (جنوب السودان)","SS","211"],["Spain (España)","ES","34"],["Sri Lanka (ශ්රී ලංකාව)","LK","94"],["Sudan (السودان)","SD","249"],["Suriname","SR","597"],["Svalbard and Jan Mayen","SJ","47",1,["79"]],["Sweden (Sverige)","SE","46"],["Switzerland (Schweiz)","CH","41"],["Syria (سوريا)","SY","963"],["Taiwan (台灣)","TW","886"],["Tajikistan","TJ","992"],["Tanzania","TZ","255"],["Thailand (ไทย)","TH","66"],["Timor-Leste","TL","670"],["Togo","TG","228"],["Tokelau","TK","690"],["Tonga","TO","676"],["Trinidad and Tobago","TT","1",22,["868"]],["Tunisia (تونس)","TN","216"],["Turkey (Türkiye)","TR","90"],["Turkmenistan","TM","993"],["Turks and Caicos Islands","TC","1",23,["649"]],["Tuvalu","TV","688"],["U.S. Virgin Islands","VI","1",24,["340"]],["Uganda","UG","256"],["Ukraine (Україна)","UA","380"],["United Arab Emirates (الإمارات العربية المتحدة)","AE","971"],["United Kingdom","GB","44",0],["United States","US","1",0],["Uruguay","UY","598"],["Uzbekistan (Oʻzbekiston)","UZ","998"],["Vanuatu","VU","678"],["Vatican City (Città del Vaticano)","VA","39",1,["06698"]],["Venezuela","VE","58"],["Vietnam (Việt Nam)","VN","84"],["Wallis and Futuna (Wallis-et-Futuna)","WF","681"],["Western Sahara (الصحراء الغربية)","EH","212",1,["5288","5289"]],["Yemen (اليمن)","YE","967"],["Zambia","ZM","260"],["Zimbabwe","ZW","263"],["Åland Islands","AX","358",1,["18"]]];const Qv=yR.map(([e,t,r,o=0,a=[]])=>({name:e,iso2:t,dialCode:r,priority:o,areaCodes:a}));function bR(e){const t={year:"year",month:"month",week:"week",day:"day",hour:"hour",minute:"minute",second:"second",ago:"ago",in:"in",justNow:"Just now"};try{const r=$r().global.messages,o=(r[e]||r.en)?.timeAgo;return o?{...t,...o}:t}catch{return t}}function fi(e,t){return e==null?"":typeof e=="string"?t===1||e.endsWith("s")?e:`${e}s`:t===1?e.singular??"":e.plural??e.singular??""}function _R(){try{const{locale:e}=$r().global,t=typeof e=="string"?e:e.value;return["en","es","fr","he","it","ru"].includes(t)?t:"en"}catch{return"en"}}function wR(e,t){if(!e)return"";typeof e=="string"&&(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/.test(e)&&!/[Z+-]\d*$/.test(e)?e=new Date(`${e}Z`):e=new Date(e));const r=typeof t=="string"?t:t?.lang||_R(),o=(typeof t=="object"&&t.mode||"relative")==="relative",a=Math.floor((e.getTime()-Date.now())/1e3),i=[{label:"year",seconds:31536e3},{label:"month",seconds:2592e3},{label:"week",seconds:604800},{label:"day",seconds:86400},{label:"hour",seconds:3600},{label:"minute",seconds:60},{label:"second",seconds:1}],l=bR(r),s=c=>l[c];for(const c of i){const u=Math.floor(Math.abs(a)/c.seconds);if(u>=1){const d=o&&a<0?` ${l.ago}`:"",f=o&&a>0&&l.in!=="in"?`${l.in} `:"";if(r==="he"){const p=fi(s(c.label),u),h=o?a<0?`${l.ago} `:a>0?`${l.in} `:"":"";if(c.label==="day"&&a>0){const v=Math.floor(Math.abs(a)%86400/3600),b=fi(l.hour,v);return`${h}${u===1?p:`${u} ${p}`}${v>0?v===1?` ${b}`:` ${v} ${b}`:""}`}return`${h}${u===1?p:`${u} ${p}`}`}const m=fi(s(c.label),u);if(c.label==="day"&&a>0){const p=Math.floor(Math.abs(a)%86400/3600),h=fi(l.hour,p);return`${f}${u} ${m}${p>0?` ${p} ${h}`:""}${d}`}return`${f}${u} ${m}${d}`}}return l.justNow}function sl(e,t,r){let o,a="",i,l={};if(typeof e=="object"&&e!==null){l=e;const{id:s,text:c,icon:u}=l;o=s,a=c??"",i=u}else o=e,t!=null&&(typeof t=="string"&&t.length<=30&&!t.includes(" ")&&(t.includes("-")||t.includes("_")||t.length<=12)&&t===t.toLowerCase()?(i=t,r&&(l=r)):(a=t,r&&(l=r)));return{$el:"btn",id:o,class:l.class,vIf:l.vIf,style:l.style,onClick:l.onClick,attrs:{value:a||(l.text??"")||"",variant:l.variant,size:l.size,disabled:l.disabled,loading:l.loading,icon:i??l.icon,iconPosition:l.iconPosition,href:l.href,target:l.target}}}function ey(e,t,r={}){return{$el:e,id:t,class:r.class,vIf:r.vIf,style:r.style,attrs:r.attrs||{},onClick:r.onClick}}function ty(e,t,r){return t!=null&&e!=null?sl(e,t,r||{}):sl({id:e,icon:t,...r})}function ny(e,t,r){let o,a={};if(typeof e=="object"&&e!==null){a=e;const{id:i}=a;o=i}else o=e,t!=null&&(typeof r=="string"?a={tag:r,text:t}:r?a={...r,text:t}:a={text:t});return{$el:a.tag||"p",id:o,class:a.class,vIf:a.vIf,style:a.style,attrs:{text:a.text??"",size:a.size,weight:a.weight,color:a.color,align:a.align},transform:a.transform}}function ry(e,t,r){let o,a={};if(typeof e=="object"&&e!==null){a=e;const{id:i}=a;o=i}else o=e,t!=null&&(typeof r=="string"?a={alt:r}:r&&(a=r));return{$el:"img",id:o,class:a.class,vIf:a.vIf,style:a.style,transform:a.transform,attrs:{alt:a.alt,width:a.width,height:a.height,loading:a.loading,fit:a.fit,rounded:a.rounded,fallback:a.fallback}}}function $R(e){return{$el:"pill",id:e?.id,class:e?.class,vIf:e?.vIf,style:e?.style,attrs:e?.attrs||{}}}function oy(...e){let t,r=[];if(e.length>0){const a=e[0];typeof a=="object"&&a!==null&&"$el"in a?r=e:(t=a,r=e.slice(1))}const o={};return t?.attrs&&Object.assign(o,t.attrs),t&&(t.options!=null&&(o.options=t.options),t.placeholder!=null&&(o.placeholder=t.placeholder),t.searchable!=null&&(o.searchable=t.searchable),t.multiselect!=null&&(o.multiselect=t.multiselect),t.clearable!=null&&(o.clearable=t.clearable),t.onSelect!=null&&(o.onSelect=t.onSelect),t.onSearch!=null&&(o.onSearch=t.onSearch)),{$el:(0,n.markRaw)(Tt),class:t?.class,vIf:t?.vIf,style:t?.style,attrs:o,children:r}}function ay(e,t){return{$el:(0,n.markRaw)(Dn),id:t?.id,class:t?.class,vIf:t?.vIf,style:t?.style,onClick:t?.onClick,attrs:{thin:!0,title:e??t?.title??"",subtitle:t?.subtitle,icon:t?.icon,avatar:t?.avatar,badge:t?.badge,actions:t?.actions,clickable:t?.clickable,divider:t?.divider}}}function iy(e,t,r){return{$el:"div",id:e,class:r?.class??"flex gap-2",vIf:r?.vIf,style:r?.style,attrs:r?.attrs||{},children:t}}function rd(e,t){for(const r of t){if(r.id===e)return r;if(r.children&&r.children.length>0){const o=rd(e,r.children);if(o)return o}}}function od(e,t,r){let o;return typeof t=="string"?o=t:r=t,{$el:"div",id:e,class:r?.class??"column-class ellipsis-1 line-height-15",vIf:r?.vIf,style:r?.style,transform:r?.transform,attrs:{...r?.attrs,label:o??r?.attrs?.label??""},children:r?.children}}const ly=od;function kR(){return{btn:sl,iconBtn:ty,txt:ny,img:ry,dropdown:oy,listItem:ay,container:iy,findElementById:rd,getBaseElementField:ey,col:ly,column:od}}var ER={"":/<[^>]*>?/g," ":/ /g,'"':/"/g,"'":/'/g,"&":/&/g,"<":/</g,">":/>/g};function CR(e){return e?Object.entries(ER).reduce((t,[r,o])=>t.replace(o,r),e):""}var SR=/[\p{N}\p{L}\s]/gu;function Os(e){return e.match(SR)?.join("").toLowerCase()??""}function xR(e,t){let r=e;for(const o of t.split(".")){if(r==null||typeof r!="object")return;r=r[o]}return r}function sy(e,t=""){return!e||typeof e!="object"?[]:Object.keys(e).flatMap(r=>{const o=e[r],a=t?`${t}.${r}`:r;return o&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)?sy(o,a):[a]})}function Lp(e){return e==null?"":typeof e=="string"?CR(e):typeof e=="number"||typeof e=="boolean"?String(e):e instanceof Date?e.toISOString():""}function TR(e=[],t={}){const{minChars:r=1}=t,o=(0,n.shallowReactive)({_list:e,searchTerm:""});let a=[];function i(c,u=new WeakSet){if(u.has(c))return"";u.add(c);const d=t.keys??sy(c),f=[];for(const m of d){const p=xR(c,m);if(Array.isArray(p))for(const h of p)if(h&&typeof h=="object"&&!(h instanceof Date))f.push(i(h,u));else{const v=Lp(h);v&&f.push(Os(v))}else{const h=Lp(p);h&&f.push(Os(h))}}return f.join(" ")}function l(c){a=c.map(u=>i(u))}l(e);const s=(0,n.computed)(()=>{let c=o._list;if(o.searchTerm.length>=r){const u=Os(o.searchTerm).split(/\s+/).filter(d=>d.length>0);u.length>0&&(c=c.filter((d,f)=>{const m=a[f]??"";return u.every(p=>m.includes(p))}))}if(t.filter){const u=(0,n.isRef)(t.filter)?t.filter.value:t.filter;c=c.filter(u)}return c});return{get searchTerm(){return o.searchTerm},set searchTerm(c){o.searchTerm=c},get value(){return s.value},set value(c){o._list=c,l(c)},get length(){return s.value.length},[Symbol.iterator](){return s.value[Symbol.iterator]()}}}var Go=null;async function cy(){const e=sessionStorage.getItem("ipapi");return e?JSON.parse(e):(Go||(Go=fu.get("https://ipapi.co/json/").then(t=>{const r=JSON.stringify(t.data);return sessionStorage.setItem("ipapi",r),Go=null,t.data}).catch(t=>{throw Go=null,t})),Go)}var NR={"":/<[^>]*>?/g," ":/ /g,'"':/"/g,"'":/'/g,"&":/&/g,"<":/</g,">":/>/g};function ad(e){return e?Object.entries(NR).reduce((t,[r,o])=>t.replace(o,r),e):""}var DR=/[\p{N}\p{L}\s]/gu;function lo(e){return e.match(DR)?.join("").toLowerCase()??""}function AR(e,t){const r=t.split(".");let o=e;for(const a of r){if(o==null||typeof o!="object")return;o=o[a]}return o}function mi(e,t){let r=0;if(e.length===0)return 0;let o=0;for(const i of t)if(e.includes(i)){const l=new RegExp(i,"g"),s=e.match(l);s&&(o+=s.length*i.length),r+=1,e.split(/\s+/).includes(i)&&(r+=.5),e.startsWith(i)&&(r+=.5)}const a=Math.min(1,o/e.length);return r*=1+a*2,r}function pi(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function BR(e){return e==null?"":typeof e=="string"?ad(e):typeof e=="number"||typeof e=="boolean"?String(e):typeof e=="object"&&e instanceof Date?e.toISOString():""}function uy(e){const{searchTerm:t,items:r=[],keysToSearch:o,fieldWeights:a={},minChars:i=2}=e,l=(0,n.toValue)(t),s=(0,n.toValue)(r)||[];if(!l||l.length<i)return s;const c=lo(l).split(/\s+/).filter(v=>v.length>1);if(c.length===0)return s;const u={name:2,first_name:2,last_name:2,title:2,headline:2,description:.7,subtitle:.7,bio:.7,content:.7,body:.7,email:.7,phone:.7,id:.3,created_at:.3,updated_at:.3};function d(v){if(v in a){const g=a[v];if(typeof g=="number")return g}const b=v.split(".").pop()||"";return b in u?u[b]:1}function f(v,b=""){return!v||typeof v!="object"?[]:Object.keys(v).flatMap(g=>{const y=v[g],_=b?`${b}.${g}`:g;return y&&typeof y=="object"&&!Array.isArray(y)?[_,...f(y,_)]:[_]})}function m(v){let b=0;if(pi(v))return mi(lo(String(v)),c);if(Array.isArray(v)){for(const y of v)if(pi(y)){const _=lo(String(y));b+=mi(_,c)}return b}const g=o||f(v);for(const y of g){const _=AR(v,String(y));if(_==null)continue;if(Array.isArray(_)){for(const A of _)if(pi(A)){const E=mi(lo(ad(String(A))),c),k=d(String(y));b+=E*k}continue}if(typeof _=="object"&&!pi(_))continue;const w=mi(lo(BR(_)),c),$=d(String(y));b+=w*$}return b}const p=s.map(v=>[v,m(v)]).filter(([,v])=>v>0);let h=p;if(p.length>0){const v=Math.max(...p.map(([,b])=>b));if(v>5){const b=v*.25;h=p.filter(([,g])=>g>=b)}else if(v>2){const b=v*.15;h=p.filter(([,g])=>g>=b)}}return h.sort(([,v],[,b])=>b-v).map(([v])=>v)}function dy(e,t){let r,o;const a=Array.isArray(e),i=typeof e=="function",l=typeof e=="object"&&e!==null&&"value"in e&&!("items"in e);a||i||l?(o=(0,n.ref)(""),r={items:e,searchTerm:o,...t}):r=e;const{searchTerm:s,minChars:c=2,serverSearch:u,debounceMs:d=300}=r,f=(0,n.ref)(!1),m=(0,n.ref)([]);let p=null;u&&(0,n.watch)(()=>(0,n.toValue)(s),async _=>{p!==null&&clearTimeout(p);const w=typeof _=="string"?_:"";if(w.length<c&&c>0){m.value=[];return}p=window.setTimeout(async()=>{try{f.value=!0,m.value=await u(w)}catch{m.value=[]}finally{f.value=!1}},d)},{immediate:!0});const h=()=>(0,n.toValue)(s),v=()=>{const _=h();return u&&(_&&typeof _=="string"&&_.length>=c||c===0)?m.value:uy(r)},b=(0,n.computed)(()=>v()),g=(0,n.computed)(()=>b.value.length),y={results:b,resultCount:g,hasResults:(0,n.computed)(()=>g.value>0),isSearching:(0,n.computed)(()=>{const _=h();return!!_&&typeof _=="string"&&_.length>=c}),isLoading:(0,n.computed)(()=>f.value)};return o&&(y.searchTerm=o),y}exports.$=at;exports.Accordion=Oy;exports.AccordionItem=Hy;exports.AddToCalendar=Yy;exports.AddressSearch=qy;exports.Alert=eb;exports.AppContent=d8;exports.AppLayout=h8;exports.AppSidebar=b6;exports.ArrayInput=ro;exports.Avatar=Ip;exports.Badge=Vp;exports.BagelVue=vR;exports.BarChart=lb;exports.BglVideo=Kc;exports.BottomMenu=$6;exports.Btn=ne;exports.Calendar=G_;exports.Card=ar;exports.CheckInput=St;exports.Checkbox=G2;exports.CodeEditor=tu;exports.ColorInput=xn;exports.DAY=BI;exports.DataPreview=ow;exports.DataTable=Qp;exports.DateChain=yt;exports.DateInput=ha;exports.DatePicker=_h;exports.Dialog=qn;exports.DialogConfirm=Jg;exports.DialogForm=Zg;exports.DialogPlugin=ev;exports.DialogSymbol=Xu;exports.Divider=C6;exports.DragOver=$w;exports.Draggable=eh;exports.Dropdown=Tt;exports.EMAIL_REGEX=Nr;exports.EmailInput=nu;exports.FONT_AWESOME_BRANDS_ICONS=Ci;exports.FONT_AWESOME_ICONS=mc;exports.FieldSetVue=m2;exports.FilterQuery=M2;exports.Flag=Hs;exports.FormFlow=Yu;exports.HOUR=AI;exports.IMAGE_FORMATS=wh;exports.IMAGE_FORMATS_REGEXP=Vi;exports.Icon=ge;exports.IframeVue=a8;exports.Image=bo;exports.JSONInput=F$;exports.KpiCard=vb;exports.Layout=x6;exports.LineChart=Pb;exports.ListItem=Dn;exports.ListView=hg;exports.Loading=Wr;exports.MATERIAL_ICONS=D0;exports.MINUTE=DI;exports.MOBILE_BREAKPOINT=C$;exports.MS=Io;exports.MapEmbed=vM;exports.MarkdownEditor=j$;exports.Menu=EM;exports.MultiStepForm=o7;exports.NavBar=BM;exports.NumberInput=Nn;exports.OTP=ok;exports.PageTitle=gg;exports.Pagination=RM;exports.Panel=B6;exports.PasswordInput=Mh;exports.PieChart=i1;exports.Pill=Vp;exports.Progress=HM;exports.RadioGroup=Ph;exports.RangeInput=ou;exports.Rating=qM;exports.Resizable=L6;exports.RichText=mu;exports.RouterWrapper=XM;exports.SECOND=NI;exports.SelectBtn=s0;exports.SelectInput=Ut;exports.SidebarMenu=V6;exports.SignaturePad=Xx;exports.Skeleton=Ki;exports.Spreadsheet=xL;exports.Swiper=Mg;exports.TabbedLayout=H6;exports.TableField=RT;exports.TableSchema=Qp;exports.Tabs=q6;exports.TabsBody=Y6;exports.TabsNav=Nl;exports.TelInput=wu;exports.TextInput=Fe;exports.ToastPlugin=Xv;exports.ToggleInput=kl;exports.TopBar=gI;exports.UploadInput=va;exports.VIDEO_FORMATS=$h;exports.VIDEO_FORMATS_REGEXP=kh;exports.WEEK=MI;exports.Zoomer=Lg;exports.allCountries=Qv;exports.anyOf=g2;exports.appendScript=Ga;exports.appendStyle=Vc;exports.awaitGlobal=Sa;exports.bagelinkLocales=Sc;exports.bindAttrs=Pc;exports.btn=sl;exports.buildQuery=Oa;exports.classify=Wg;exports.clearHtml=ad;exports.col=ly;exports.column=od;exports.configureTheme=mV;exports.container=iy;exports.copyText=zg;exports.createI18n=fg;exports.createUploadApi=s3;exports.d=II;exports.dateDiff=zu;exports.debounce=YI;exports.defaultOptions=Pg;exports.defaultRowSpan=Ju;exports.defineSchema=FV;exports.denullify=ZI;exports.downloadFile=ju;exports.dropdown=oy;exports.evaluateQuery=vh;exports.fieldsToSchema=PV;exports.filterRef=TR;exports.findElementById=rd;exports.fmtDate=FI;exports.formatDate=it;exports.formatString=Lc;exports.fromJSONSchema=UV;exports.fuzzyMatch=Ti;exports.getBaseElementField=ey;exports.getDatePartsMap=Uu;exports.getFallbackSchema=jg;exports.getI18n=$r;exports.getNestedValue=la;exports.getOptionIcon=ga;exports.getOptionLabel=ta;exports.getOptionValue=Dr;exports.handleTimezone=Fg;exports.iconBtn=ty;exports.iffer=JI;exports.img=ry;exports.inferFieldType=Zu;exports.inferSchemaFieldType=Zu;exports.initFormData=IV;exports.initials=Ug;exports.ipapi=cy;exports.isDate=Ic;exports.keyToLabel=qa;exports.listItem=ay;exports.local=TI;exports.multiStepSchema=zV;exports.normalizeDimension=cn;exports.normalizeOption=Lh;exports.normalizeText=lo;exports.normalizeURL=Wu;exports.normalizedFetch=GI;exports.parseQuery=pa;exports.pathKeyToURL=fn;exports.pattern=rv;exports.pill=$R;exports.queryFilter=h2;exports.range=v2;exports.required=RV;exports.resolveI18n=ke;exports.reveal=ov;exports.ripple=av;exports.sanitizeHtml=Hg;exports.schemaToFields=iv;exports.search=y2;exports.searchItems=uy;exports.showdown=H;exports.sleep=Hu;exports.slugify=XI;exports.strJoin=zI;exports.timeAgo=wR;exports.timeDelta=dn;exports.toOptions=jI;exports.tryRun=qg;exports.txt=ny;exports.useAddToCalendar=bI;exports.useAppLayout=ku;exports.useBagelInputShell=lt;exports.useBglSchema=Kg;exports.useDebounceFn=Vr;exports.useDevice=ja;exports.useDialog=Qg;exports.useDraggable=fa;exports.useElements=kR;exports.useEscape=KI;exports.useEscapeKey=El;exports.useExcel=rV;exports.useFileUpload=i0;exports.useI18n=ft;exports.useLocalStore=Gg;exports.usePolling=lV;exports.useQuery=cV;exports.useResizableLayoutProvider=pg;exports.useResizeObserver=uV;exports.useSchemaToFields=OV;exports.useSearch=dy;exports.useTheme=gV;exports.useToast=nR;exports.useValidateFieldValue=Xg;exports.utc=SI;exports.uuid4=UI;exports.vDraggable=bw;exports.vResize=LV;exports.validateFormData=VV;
|
|
501
|
+
`}var no=null;function Vs(e){const t=gR();if(no===null)try{no=new CSSStyleSheet,no.replaceSync(t)}catch{no=!1}if(no===!1){const r=document.createElement("style");r.textContent=t,e instanceof Document?e.head.prepend(r):e.prepend(r)}else e.adoptedStyleSheets=[no,...e.adoptedStyleSheets]}function vR(){if(typeof window>"u")return;window.ToggleEvent=window.ToggleEvent||Rl;function e(c){return c?.includes(":popover-open")&&(c=c.replace(pR,"$1.\\:popover-open")),c}xr(Document.prototype,"querySelector",e),xr(Document.prototype,"querySelectorAll",e),xr(Element.prototype,"querySelector",e),xr(Element.prototype,"querySelectorAll",e),xr(Element.prototype,"matches",e),xr(Element.prototype,"closest",e),xr(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const c=(this.getAttribute("popover")||"").toLowerCase();return c===""||c=="auto"?"auto":c=="hint"?"hint":"manual"},set(c){c===null?this.removeAttribute("popover"):this.setAttribute("popover",c)}},showPopover:{enumerable:!0,configurable:!0,value(c={}){qc(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Do(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(c={}){return typeof c=="boolean"&&(c={force:c}),To.get(this)==="showing"&&c.force===void 0||c.force===!1?Do(this,!0,!0):(c.force===void 0||c.force===!0)&&qc(this),To.get(this)==="showing"}}});const t=Element.prototype.attachShadow;t&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(c){const u=t.call(this,c);return Vs(u),u}}});const r=HTMLElement.prototype.attachInternals;r&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const c=r.call(this);return c.shadowRoot&&Vs(c.shadowRoot),c}}});const o=new WeakMap;function a(c){Object.defineProperties(c.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(u){if(u===null)this.removeAttribute("popovertarget"),o.delete(this);else if(u instanceof Element)this.setAttribute("popovertarget",""),o.set(this,u);else throw new TypeError("popoverTargetElement must be an element or null")},get(){if(this.localName!=="button"&&this.localName!=="input"||this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"||this.disabled||this.form&&this.type==="submit")return null;const u=o.get(this);if(u&&u.isConnected)return u;if(u&&!u.isConnected)return o.delete(this),null;const d=No(this),f=this.getAttribute("popovertarget");return(d instanceof Document||d instanceof Mp)&&f&&d.getElementById(f)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const u=(this.getAttribute("popovertargetaction")||"").toLowerCase();return u==="show"||u==="hide"?u:"toggle"},set(u){this.setAttribute("popovertargetaction",u)}}})}a(HTMLButtonElement),a(HTMLInputElement);const i=c=>{if(c.defaultPrevented)return;const u=c.composedPath(),d=u[0];if(!(d instanceof Element)||d?.shadowRoot)return;const f=No(d);if(!(f instanceof Mp||f instanceof Document))return;const m=u.find(p=>{var h;return(h=p.matches)==null?void 0:h.call(p,"[popovertargetaction],[popovertarget]")});if(m){iR(m),c.preventDefault();return}},l=c=>{const u=c.key,d=c.target;!c.defaultPrevented&&d&&(u==="Escape"||u==="Esc")&&Ir(d.ownerDocument,!0,!0)};(c=>{c.addEventListener("click",i),c.addEventListener("keydown",l),c.addEventListener("pointerdown",Bp),c.addEventListener("pointerup",Bp)})(document),Vs(document)}mR()||vR();const yR={install:(e,t={})=>{e.directive("click-outside",uO),e.directive("ripple",av),e.directive("pattern",rv),e.directive("reveal",ov),e.use(cO),e.use(ev),e.use(Xv,t.toast||{}),e.use(z7,{themes:{"bgl-theme":{triggers:["click"],autoHide:!0,placement:"bottom"}}});const r=fg(t.i18n||{});e.use(r)}};var bR=[["Afghanistan (افغانستان)","AF","93"],["Albania (Shqipëri)","AL","355"],["Algeria (الجزائر)","DZ","213"],["American Samoa","AS","1",5,["684"]],["Andorra","AD","376"],["Angola","AO","244"],["Anguilla","AI","1",6,["264"]],["Antigua and Barbuda","AG","1",7,["268"]],["Argentina","AR","54"],["Armenia (Հայաստան)","AM","374"],["Aruba","AW","297"],["Ascension Island","AC","247"],["Australia","AU","61",0],["Austria (Österreich)","AT","43"],["Azerbaijan (Azərbaycan)","AZ","994"],["Bahamas","BS","1",8,["242"]],["Bahrain (البحرين)","BH","973"],["Bangladesh (বাংলাদেশ)","BD","880"],["Barbados","BB","1",9,["246"]],["Belarus (Беларусь)","BY","375"],["Belgium (België)","BE","32"],["Belize","BZ","501"],["Benin (Bénin)","BJ","229"],["Bermuda","BM","1",10,["441"]],["Bhutan (འབྲུག)","BT","975"],["Bolivia","BO","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","BA","387"],["Botswana","BW","267"],["Brazil (Brasil)","BR","55"],["British Indian Ocean Territory","IO","246"],["British Virgin Islands","VG","1",11,["284"]],["Brunei","BN","673"],["Bulgaria (България)","BG","359"],["Burkina Faso","BF","226"],["Burundi (Uburundi)","BI","257"],["Cambodia (កម្ពុជា)","KH","855"],["Cameroon (Cameroun)","CM","237"],["Canada","CA","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","CV","238"],["Caribbean Netherlands","BQ","599",1,["3","4","7"]],["Cayman Islands","KY","1",12,["345"]],["Central African Republic (République centrafricaine)","CF","236"],["Chad (Tchad)","TD","235"],["Chile","CL","56"],["China (中国)","CN","86"],["Christmas Island","CX","61",2,["89164"]],["Cocos (Keeling) Islands","CC","61",1,["89162"]],["Colombia","CO","57"],["Comoros (جزر القمر)","KM","269"],["Congo (DRC) (République démocratique du Congo)","CD","243"],["Congo (Republic) (Congo-Brazzaville)","CG","242"],["Cook Islands","CK","682"],["Costa Rica","CR","506"],["Côte d’Ivoire","CI","225"],["Croatia (Hrvatska)","HR","385"],["Cuba","CU","53"],["Curaçao","CW","599",0],["Cyprus (Κύπρος)","CY","357"],["Czech Republic (Česká republika)","CZ","420"],["Denmark (Danmark)","DK","45"],["Djibouti","DJ","253"],["Dominica","DM","1",13,["767"]],["Dominican Republic (República Dominicana)","DO","1",2,["809","829","849"]],["Ecuador","EC","593"],["Egypt (مصر)","EG","20"],["El Salvador","SV","503"],["Equatorial Guinea (Guinea Ecuatorial)","GQ","240"],["Eritrea","ER","291"],["Estonia (Eesti)","EE","372"],["Eswatini","SZ","268"],["Ethiopia","ET","251"],["Falkland Islands (Islas Malvinas)","FK","500"],["Faroe Islands (Føroyar)","FO","298"],["Fiji","FJ","679"],["Finland (Suomi)","FI","358",0],["France","FR","33"],["French Guiana (Guyane française)","GF","594"],["French Polynesia (Polynésie française)","PF","689"],["Gabon","GA","241"],["Gambia","GM","220"],["Georgia (საქართველო)","GE","995"],["Germany (Deutschland)","DE","49"],["Ghana (Gaana)","GH","233"],["Gibraltar","GI","350"],["Greece (Ελλάδα)","GR","30"],["Greenland (Kalaallit Nunaat)","GL","299"],["Grenada","GD","1",14,["473"]],["Guadeloupe","GP","590",0],["Guam","GU","1",15,["671"]],["Guatemala","GT","502"],["Guernsey","GG","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","GN","224"],["Guinea-Bissau (Guiné Bissau)","GW","245"],["Guyana","GY","592"],["Haiti","HT","509"],["Honduras","HN","504"],["Hong Kong (香港)","HK","852"],["Hungary (Magyarország)","HU","36"],["Iceland (Ísland)","IS","354"],["India (भारत)","IN","91"],["Indonesia","ID","62"],["Iran (ایران)","IR","98"],["Iraq (العراق)","IQ","964"],["Ireland","IE","353"],["Isle of Man","IM","44",2,["1624","74576","7524","7924","7624"]],["Israel (ישראל)","IL","972"],["Italy (Italia)","IT","39",0],["Jamaica","JM","1",4,["876","658"]],["Japan (日本)","JP","81"],["Jersey","JE","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (الأردن)","JO","962"],["Kazakhstan (Казахстан)","KZ","7",1,["33","7"]],["Kenya","KE","254"],["Kiribati","KI","686"],["Kosovo","XK","383"],["Kuwait (الكويت)","KW","965"],["Kyrgyzstan (Кыргызстан)","KG","996"],["Laos (ລາວ)","LA","856"],["Latvia (Latvija)","LV","371"],["Lebanon (لبنان)","LB","961"],["Lesotho","LS","266"],["Liberia","LR","231"],["Libya (ليبيا)","LY","218"],["Liechtenstein","LI","423"],["Lithuania (Lietuva)","LT","370"],["Luxembourg","LU","352"],["Macau (澳門)","MO","853"],["Madagascar (Madagasikara)","MG","261"],["Malawi","MW","265"],["Malaysia","MY","60"],["Maldives","MV","960"],["Mali","ML","223"],["Malta","MT","356"],["Marshall Islands","MH","692"],["Martinique","MQ","596"],["Mauritania (موريتانيا)","MR","222"],["Mauritius (Moris)","MU","230"],["Mayotte","YT","262",1,["269","639"]],["Mexico (México)","MX","52"],["Micronesia","FM","691"],["Moldova (Republica Moldova)","MD","373"],["Monaco","MC","377"],["Mongolia (Монгол)","MN","976"],["Montenegro (Crna Gora)","ME","382"],["Montserrat","MS","1",16,["664"]],["Morocco (المغرب)","MA","212",0],["Mozambique (Moçambique)","MZ","258"],["Myanmar (Burma) (မြန်မာ)","MM","95"],["Namibia (Namibië)","NA","264"],["Nauru","NR","674"],["Nepal (नेपाल)","NP","977"],["Netherlands (Nederland)","NL","31"],["New Caledonia (Nouvelle-Calédonie)","NC","687"],["New Zealand","NZ","64"],["Nicaragua","NI","505"],["Niger (Nijar)","NE","227"],["Nigeria","NG","234"],["Niue","NU","683"],["Norfolk Island","NF","672"],["North Korea (조선 민주주의 인민 공화국)","KP","850"],["North Macedonia (Северна Македонија)","MK","389"],["Northern Mariana Islands","MP","1",17,["670"]],["Norway (Norge)","NO","47",0],["Oman (عُمان)","OM","968"],["Pakistan (پاکستان)","PK","92"],["Palau","PW","680"],["Palestine (فلسطين)","PS","970"],["Panama (Panamá)","PA","507"],["Papua New Guinea","PG","675"],["Paraguay","PY","595"],["Peru (Perú)","PE","51"],["Philippines","PH","63"],["Poland (Polska)","PL","48"],["Portugal","PT","351"],["Puerto Rico","PR","1",3,["787","939"]],["Qatar (قطر)","QA","974"],["Réunion (La Réunion)","RE","262",0],["Romania (România)","RO","40"],["Russia (Россия)","RU","7",0],["Rwanda","RW","250"],["Saint Barthélemy","BL","590",1],["Saint Helena","SH","290"],["Saint Kitts and Nevis","KN","1",18,["869"]],["Saint Lucia","LC","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","MF","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","PM","508"],["Saint Vincent and the Grenadines","VC","1",20,["784"]],["Samoa","WS","685"],["San Marino","SM","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","ST","239"],["Saudi Arabia (المملكة العربية السعودية)","SA","966"],["Senegal (Sénégal)","SN","221"],["Serbia (Србија)","RS","381"],["Seychelles","SC","248"],["Sierra Leone","SL","232"],["Singapore","SG","65"],["Sint Maarten","SX","1",21,["721"]],["Slovakia (Slovensko)","SK","421"],["Slovenia (Slovenija)","SI","386"],["Solomon Islands","SB","677"],["Somalia (Soomaaliya)","SO","252"],["South Africa","ZA","27"],["South Korea (대한민국)","KR","82"],["South Sudan (جنوب السودان)","SS","211"],["Spain (España)","ES","34"],["Sri Lanka (ශ්රී ලංකාව)","LK","94"],["Sudan (السودان)","SD","249"],["Suriname","SR","597"],["Svalbard and Jan Mayen","SJ","47",1,["79"]],["Sweden (Sverige)","SE","46"],["Switzerland (Schweiz)","CH","41"],["Syria (سوريا)","SY","963"],["Taiwan (台灣)","TW","886"],["Tajikistan","TJ","992"],["Tanzania","TZ","255"],["Thailand (ไทย)","TH","66"],["Timor-Leste","TL","670"],["Togo","TG","228"],["Tokelau","TK","690"],["Tonga","TO","676"],["Trinidad and Tobago","TT","1",22,["868"]],["Tunisia (تونس)","TN","216"],["Turkey (Türkiye)","TR","90"],["Turkmenistan","TM","993"],["Turks and Caicos Islands","TC","1",23,["649"]],["Tuvalu","TV","688"],["U.S. Virgin Islands","VI","1",24,["340"]],["Uganda","UG","256"],["Ukraine (Україна)","UA","380"],["United Arab Emirates (الإمارات العربية المتحدة)","AE","971"],["United Kingdom","GB","44",0],["United States","US","1",0],["Uruguay","UY","598"],["Uzbekistan (Oʻzbekiston)","UZ","998"],["Vanuatu","VU","678"],["Vatican City (Città del Vaticano)","VA","39",1,["06698"]],["Venezuela","VE","58"],["Vietnam (Việt Nam)","VN","84"],["Wallis and Futuna (Wallis-et-Futuna)","WF","681"],["Western Sahara (الصحراء الغربية)","EH","212",1,["5288","5289"]],["Yemen (اليمن)","YE","967"],["Zambia","ZM","260"],["Zimbabwe","ZW","263"],["Åland Islands","AX","358",1,["18"]]];const Qv=bR.map(([e,t,r,o=0,a=[]])=>({name:e,iso2:t,dialCode:r,priority:o,areaCodes:a}));function _R(e){const t={year:"year",month:"month",week:"week",day:"day",hour:"hour",minute:"minute",second:"second",ago:"ago",in:"in",justNow:"Just now"};try{const r=$r().global.messages,o=(r[e]||r.en)?.timeAgo;return o?{...t,...o}:t}catch{return t}}function fi(e,t){return e==null?"":typeof e=="string"?t===1||e.endsWith("s")?e:`${e}s`:t===1?e.singular??"":e.plural??e.singular??""}function wR(){try{const{locale:e}=$r().global,t=typeof e=="string"?e:e.value;return["en","es","fr","he","it","ru"].includes(t)?t:"en"}catch{return"en"}}function $R(e,t){if(!e)return"";typeof e=="string"&&(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/.test(e)&&!/[Z+-]\d*$/.test(e)?e=new Date(`${e}Z`):e=new Date(e));const r=typeof t=="string"?t:t?.lang||wR(),o=(typeof t=="object"&&t.mode||"relative")==="relative",a=Math.floor((e.getTime()-Date.now())/1e3),i=[{label:"year",seconds:31536e3},{label:"month",seconds:2592e3},{label:"week",seconds:604800},{label:"day",seconds:86400},{label:"hour",seconds:3600},{label:"minute",seconds:60},{label:"second",seconds:1}],l=_R(r),s=c=>l[c];for(const c of i){const u=Math.floor(Math.abs(a)/c.seconds);if(u>=1){const d=o&&a<0?` ${l.ago}`:"",f=o&&a>0&&l.in!=="in"?`${l.in} `:"";if(r==="he"){const p=fi(s(c.label),u),h=o?a<0?`${l.ago} `:a>0?`${l.in} `:"":"";if(c.label==="day"&&a>0){const v=Math.floor(Math.abs(a)%86400/3600),b=fi(l.hour,v);return`${h}${u===1?p:`${u} ${p}`}${v>0?v===1?` ${b}`:` ${v} ${b}`:""}`}return`${h}${u===1?p:`${u} ${p}`}`}const m=fi(s(c.label),u);if(c.label==="day"&&a>0){const p=Math.floor(Math.abs(a)%86400/3600),h=fi(l.hour,p);return`${f}${u} ${m}${p>0?` ${p} ${h}`:""}${d}`}return`${f}${u} ${m}${d}`}}return l.justNow}function sl(e,t,r){let o,a="",i,l={};if(typeof e=="object"&&e!==null){l=e;const{id:s,text:c,icon:u}=l;o=s,a=c??"",i=u}else o=e,t!=null&&(typeof t=="string"&&t.length<=30&&!t.includes(" ")&&(t.includes("-")||t.includes("_")||t.length<=12)&&t===t.toLowerCase()?(i=t,r&&(l=r)):(a=t,r&&(l=r)));return{$el:"btn",id:o,class:l.class,vIf:l.vIf,style:l.style,onClick:l.onClick,attrs:{value:a||(l.text??"")||"",variant:l.variant,size:l.size,disabled:l.disabled,loading:l.loading,icon:i??l.icon,iconPosition:l.iconPosition,href:l.href,target:l.target}}}function ey(e,t,r={}){return{$el:e,id:t,class:r.class,vIf:r.vIf,style:r.style,attrs:r.attrs||{},onClick:r.onClick}}function ty(e,t,r){return t!=null&&e!=null?sl(e,t,r||{}):sl({id:e,icon:t,...r})}function ny(e,t,r){let o,a={};if(typeof e=="object"&&e!==null){a=e;const{id:i}=a;o=i}else o=e,t!=null&&(typeof r=="string"?a={tag:r,text:t}:r?a={...r,text:t}:a={text:t});return{$el:a.tag||"p",id:o,class:a.class,vIf:a.vIf,style:a.style,attrs:{text:a.text??"",size:a.size,weight:a.weight,color:a.color,align:a.align},transform:a.transform}}function ry(e,t,r){let o,a={};if(typeof e=="object"&&e!==null){a=e;const{id:i}=a;o=i}else o=e,t!=null&&(typeof r=="string"?a={alt:r}:r&&(a=r));return{$el:"img",id:o,class:a.class,vIf:a.vIf,style:a.style,transform:a.transform,attrs:{alt:a.alt,width:a.width,height:a.height,loading:a.loading,fit:a.fit,rounded:a.rounded,fallback:a.fallback}}}function kR(e){return{$el:"pill",id:e?.id,class:e?.class,vIf:e?.vIf,style:e?.style,attrs:e?.attrs||{}}}function oy(...e){let t,r=[];if(e.length>0){const a=e[0];typeof a=="object"&&a!==null&&"$el"in a?r=e:(t=a,r=e.slice(1))}const o={};return t?.attrs&&Object.assign(o,t.attrs),t&&(t.options!=null&&(o.options=t.options),t.placeholder!=null&&(o.placeholder=t.placeholder),t.searchable!=null&&(o.searchable=t.searchable),t.multiselect!=null&&(o.multiselect=t.multiselect),t.clearable!=null&&(o.clearable=t.clearable),t.onSelect!=null&&(o.onSelect=t.onSelect),t.onSearch!=null&&(o.onSearch=t.onSearch)),{$el:(0,n.markRaw)(Tt),class:t?.class,vIf:t?.vIf,style:t?.style,attrs:o,children:r}}function ay(e,t){return{$el:(0,n.markRaw)(Dn),id:t?.id,class:t?.class,vIf:t?.vIf,style:t?.style,onClick:t?.onClick,attrs:{thin:!0,title:e??t?.title??"",subtitle:t?.subtitle,icon:t?.icon,avatar:t?.avatar,badge:t?.badge,actions:t?.actions,clickable:t?.clickable,divider:t?.divider}}}function iy(e,t,r){return{$el:"div",id:e,class:r?.class??"flex gap-2",vIf:r?.vIf,style:r?.style,attrs:r?.attrs||{},children:t}}function rd(e,t){for(const r of t){if(r.id===e)return r;if(r.children&&r.children.length>0){const o=rd(e,r.children);if(o)return o}}}function od(e,t,r){let o;return typeof t=="string"?o=t:r=t,{$el:"div",id:e,class:r?.class??"column-class ellipsis-1 line-height-15",vIf:r?.vIf,style:r?.style,transform:r?.transform,attrs:{...r?.attrs,label:o??r?.attrs?.label??""},children:r?.children}}const ly=od;function ER(){return{btn:sl,iconBtn:ty,txt:ny,img:ry,dropdown:oy,listItem:ay,container:iy,findElementById:rd,getBaseElementField:ey,col:ly,column:od}}var CR={"":/<[^>]*>?/g," ":/ /g,'"':/"/g,"'":/'/g,"&":/&/g,"<":/</g,">":/>/g};function SR(e){return e?Object.entries(CR).reduce((t,[r,o])=>t.replace(o,r),e):""}var xR=/[\p{N}\p{L}\s]/gu;function Os(e){return e.match(xR)?.join("").toLowerCase()??""}function TR(e,t){let r=e;for(const o of t.split(".")){if(r==null||typeof r!="object")return;r=r[o]}return r}function sy(e,t=""){return!e||typeof e!="object"?[]:Object.keys(e).flatMap(r=>{const o=e[r],a=t?`${t}.${r}`:r;return o&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)?sy(o,a):[a]})}function Lp(e){return e==null?"":typeof e=="string"?SR(e):typeof e=="number"||typeof e=="boolean"?String(e):e instanceof Date?e.toISOString():""}function NR(e=[],t={}){const{minChars:r=1}=t,o=(0,n.shallowReactive)({_list:e,searchTerm:""});let a=[];function i(c,u=new WeakSet){if(u.has(c))return"";u.add(c);const d=t.keys??sy(c),f=[];for(const m of d){const p=TR(c,m);if(Array.isArray(p))for(const h of p)if(h&&typeof h=="object"&&!(h instanceof Date))f.push(i(h,u));else{const v=Lp(h);v&&f.push(Os(v))}else{const h=Lp(p);h&&f.push(Os(h))}}return f.join(" ")}function l(c){a=c.map(u=>i(u))}l(e);const s=(0,n.computed)(()=>{let c=o._list;if(o.searchTerm.length>=r){const u=Os(o.searchTerm).split(/\s+/).filter(d=>d.length>0);u.length>0&&(c=c.filter((d,f)=>{const m=a[f]??"";return u.every(p=>m.includes(p))}))}if(t.filter){const u=(0,n.isRef)(t.filter)?t.filter.value:t.filter;c=c.filter(u)}return c});return{get searchTerm(){return o.searchTerm},set searchTerm(c){o.searchTerm=c},get value(){return s.value},set value(c){o._list=c,l(c)},get length(){return s.value.length},[Symbol.iterator](){return s.value[Symbol.iterator]()}}}var Go=null;async function cy(){const e=sessionStorage.getItem("ipapi");return e?JSON.parse(e):(Go||(Go=fu.get("https://ipapi.co/json/").then(t=>{const r=JSON.stringify(t.data);return sessionStorage.setItem("ipapi",r),Go=null,t.data}).catch(t=>{throw Go=null,t})),Go)}var DR={"":/<[^>]*>?/g," ":/ /g,'"':/"/g,"'":/'/g,"&":/&/g,"<":/</g,">":/>/g};function ad(e){return e?Object.entries(DR).reduce((t,[r,o])=>t.replace(o,r),e):""}var AR=/[\p{N}\p{L}\s]/gu;function lo(e){return e.match(AR)?.join("").toLowerCase()??""}function BR(e,t){const r=t.split(".");let o=e;for(const a of r){if(o==null||typeof o!="object")return;o=o[a]}return o}function mi(e,t){let r=0;if(e.length===0)return 0;let o=0;for(const i of t)if(e.includes(i)){const l=new RegExp(i,"g"),s=e.match(l);s&&(o+=s.length*i.length),r+=1,e.split(/\s+/).includes(i)&&(r+=.5),e.startsWith(i)&&(r+=.5)}const a=Math.min(1,o/e.length);return r*=1+a*2,r}function pi(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function MR(e){return e==null?"":typeof e=="string"?ad(e):typeof e=="number"||typeof e=="boolean"?String(e):typeof e=="object"&&e instanceof Date?e.toISOString():""}function uy(e){const{searchTerm:t,items:r=[],keysToSearch:o,fieldWeights:a={},minChars:i=2}=e,l=(0,n.toValue)(t),s=(0,n.toValue)(r)||[];if(!l||l.length<i)return s;const c=lo(l).split(/\s+/).filter(v=>v.length>1);if(c.length===0)return s;const u={name:2,first_name:2,last_name:2,title:2,headline:2,description:.7,subtitle:.7,bio:.7,content:.7,body:.7,email:.7,phone:.7,id:.3,created_at:.3,updated_at:.3};function d(v){if(v in a){const g=a[v];if(typeof g=="number")return g}const b=v.split(".").pop()||"";return b in u?u[b]:1}function f(v,b=""){return!v||typeof v!="object"?[]:Object.keys(v).flatMap(g=>{const y=v[g],_=b?`${b}.${g}`:g;return y&&typeof y=="object"&&!Array.isArray(y)?[_,...f(y,_)]:[_]})}function m(v){let b=0;if(pi(v))return mi(lo(String(v)),c);if(Array.isArray(v)){for(const y of v)if(pi(y)){const _=lo(String(y));b+=mi(_,c)}return b}const g=o||f(v);for(const y of g){const _=BR(v,String(y));if(_==null)continue;if(Array.isArray(_)){for(const A of _)if(pi(A)){const E=mi(lo(ad(String(A))),c),k=d(String(y));b+=E*k}continue}if(typeof _=="object"&&!pi(_))continue;const w=mi(lo(MR(_)),c),$=d(String(y));b+=w*$}return b}const p=s.map(v=>[v,m(v)]).filter(([,v])=>v>0);let h=p;if(p.length>0){const v=Math.max(...p.map(([,b])=>b));if(v>5){const b=v*.25;h=p.filter(([,g])=>g>=b)}else if(v>2){const b=v*.15;h=p.filter(([,g])=>g>=b)}}return h.sort(([,v],[,b])=>b-v).map(([v])=>v)}function dy(e,t){let r,o;const a=Array.isArray(e),i=typeof e=="function",l=typeof e=="object"&&e!==null&&"value"in e&&!("items"in e);a||i||l?(o=(0,n.ref)(""),r={items:e,searchTerm:o,...t}):r=e;const{searchTerm:s,minChars:c=2,serverSearch:u,debounceMs:d=300}=r,f=(0,n.ref)(!1),m=(0,n.ref)([]);let p=null;u&&(0,n.watch)(()=>(0,n.toValue)(s),async _=>{p!==null&&clearTimeout(p);const w=typeof _=="string"?_:"";if(w.length<c&&c>0){m.value=[];return}p=window.setTimeout(async()=>{try{f.value=!0,m.value=await u(w)}catch{m.value=[]}finally{f.value=!1}},d)},{immediate:!0});const h=()=>(0,n.toValue)(s),v=()=>{const _=h();return u&&(_&&typeof _=="string"&&_.length>=c||c===0)?m.value:uy(r)},b=(0,n.computed)(()=>v()),g=(0,n.computed)(()=>b.value.length),y={results:b,resultCount:g,hasResults:(0,n.computed)(()=>g.value>0),isSearching:(0,n.computed)(()=>{const _=h();return!!_&&typeof _=="string"&&_.length>=c}),isLoading:(0,n.computed)(()=>f.value)};return o&&(y.searchTerm=o),y}exports.$=at;exports.Accordion=Oy;exports.AccordionItem=Hy;exports.AddToCalendar=Yy;exports.AddressSearch=qy;exports.Alert=eb;exports.AppContent=d8;exports.AppLayout=h8;exports.AppSidebar=_6;exports.ArrayInput=ro;exports.Avatar=Ip;exports.Badge=Vp;exports.BagelVue=yR;exports.BarChart=lb;exports.BglVideo=Kc;exports.BottomMenu=k6;exports.Btn=ne;exports.Calendar=G_;exports.Card=ar;exports.CheckInput=St;exports.Checkbox=G2;exports.CodeEditor=tu;exports.ColorInput=xn;exports.DAY=MI;exports.DataPreview=ow;exports.DataTable=Qp;exports.DateChain=yt;exports.DateInput=ha;exports.DatePicker=_h;exports.Dialog=qn;exports.DialogConfirm=Jg;exports.DialogForm=Zg;exports.DialogPlugin=ev;exports.DialogSymbol=Xu;exports.Divider=S6;exports.DragOver=$w;exports.Draggable=eh;exports.Dropdown=Tt;exports.EMAIL_REGEX=Nr;exports.EmailInput=nu;exports.FONT_AWESOME_BRANDS_ICONS=Ci;exports.FONT_AWESOME_ICONS=mc;exports.FieldSetVue=m2;exports.FilterQuery=M2;exports.Flag=Hs;exports.FormFlow=Yu;exports.HOUR=BI;exports.IMAGE_FORMATS=wh;exports.IMAGE_FORMATS_REGEXP=Vi;exports.Icon=ge;exports.IframeVue=a8;exports.Image=bo;exports.JSONInput=F$;exports.KpiCard=vb;exports.Layout=T6;exports.LineChart=Pb;exports.ListItem=Dn;exports.ListView=hg;exports.Loading=Wr;exports.MATERIAL_ICONS=D0;exports.MINUTE=AI;exports.MOBILE_BREAKPOINT=C$;exports.MS=Io;exports.MapEmbed=yM;exports.MarkdownEditor=j$;exports.Menu=CM;exports.MultiStepForm=a7;exports.NavBar=MM;exports.NumberInput=Nn;exports.OTP=ok;exports.PageTitle=gg;exports.Pagination=FM;exports.Panel=M6;exports.PasswordInput=Mh;exports.PieChart=i1;exports.Pill=Vp;exports.Progress=WM;exports.RadioGroup=Ph;exports.RangeInput=ou;exports.Rating=GM;exports.Resizable=P6;exports.RichText=mu;exports.RouterWrapper=KM;exports.SECOND=DI;exports.SelectBtn=s0;exports.SelectInput=Ut;exports.SidebarMenu=O6;exports.SignaturePad=Xx;exports.Skeleton=Ki;exports.Spreadsheet=TL;exports.Swiper=Mg;exports.TabbedLayout=W6;exports.TableField=RT;exports.TableSchema=Qp;exports.Tabs=G6;exports.TabsBody=X6;exports.TabsNav=Nl;exports.TelInput=wu;exports.TextInput=Fe;exports.ToastPlugin=Xv;exports.ToggleInput=kl;exports.TopBar=vI;exports.UploadInput=va;exports.VIDEO_FORMATS=$h;exports.VIDEO_FORMATS_REGEXP=kh;exports.WEEK=LI;exports.Zoomer=Lg;exports.allCountries=Qv;exports.anyOf=g2;exports.appendScript=Ga;exports.appendStyle=Vc;exports.awaitGlobal=Sa;exports.bagelinkLocales=Sc;exports.bindAttrs=Pc;exports.btn=sl;exports.buildQuery=Oa;exports.classify=Wg;exports.clearHtml=ad;exports.col=ly;exports.column=od;exports.configureTheme=pV;exports.container=iy;exports.copyText=zg;exports.createI18n=fg;exports.createUploadApi=s3;exports.d=VI;exports.dateDiff=zu;exports.debounce=XI;exports.defaultOptions=Pg;exports.defaultRowSpan=Ju;exports.defineSchema=zV;exports.denullify=QI;exports.downloadFile=ju;exports.dropdown=oy;exports.evaluateQuery=vh;exports.fieldsToSchema=IV;exports.filterRef=NR;exports.findElementById=rd;exports.fmtDate=zI;exports.formatDate=it;exports.formatString=Lc;exports.fromJSONSchema=HV;exports.fuzzyMatch=Ti;exports.getBaseElementField=ey;exports.getDatePartsMap=Uu;exports.getFallbackSchema=jg;exports.getI18n=$r;exports.getNestedValue=la;exports.getOptionIcon=ga;exports.getOptionLabel=ta;exports.getOptionValue=Dr;exports.handleTimezone=Fg;exports.iconBtn=ty;exports.iffer=ZI;exports.img=ry;exports.inferFieldType=Zu;exports.inferSchemaFieldType=Zu;exports.initFormData=VV;exports.initials=Ug;exports.ipapi=cy;exports.isDate=Ic;exports.keyToLabel=qa;exports.listItem=ay;exports.local=NI;exports.multiStepSchema=UV;exports.normalizeDimension=cn;exports.normalizeOption=Lh;exports.normalizeText=lo;exports.normalizeURL=Wu;exports.normalizedFetch=YI;exports.parseQuery=pa;exports.pathKeyToURL=fn;exports.pattern=rv;exports.pill=kR;exports.queryFilter=h2;exports.range=v2;exports.required=FV;exports.resolveI18n=ke;exports.reveal=ov;exports.ripple=av;exports.sanitizeHtml=Hg;exports.schemaToFields=iv;exports.search=y2;exports.searchItems=uy;exports.showdown=H;exports.sleep=Hu;exports.slugify=KI;exports.strJoin=UI;exports.timeAgo=$R;exports.timeDelta=dn;exports.toOptions=qI;exports.tryRun=qg;exports.txt=ny;exports.useAddToCalendar=_I;exports.useAppLayout=ku;exports.useBagelInputShell=lt;exports.useBglSchema=Kg;exports.useDebounceFn=Vr;exports.useDevice=ja;exports.useDialog=Qg;exports.useDraggable=fa;exports.useElements=ER;exports.useEscape=JI;exports.useEscapeKey=El;exports.useExcel=oV;exports.useFileUpload=i0;exports.useI18n=ft;exports.useLocalStore=Gg;exports.usePolling=sV;exports.useQuery=uV;exports.useResizableLayoutProvider=pg;exports.useResizeObserver=dV;exports.useSchemaToFields=RV;exports.useSearch=dy;exports.useTheme=vV;exports.useToast=rR;exports.useValidateFieldValue=Xg;exports.utc=xI;exports.uuid4=HI;exports.vDraggable=bw;exports.vResize=PV;exports.validateFormData=OV;
|