@bagelink/vue 1.15.96 → 1.15.98
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/Swiper.vue.d.ts +1 -0
- package/dist/components/Swiper.vue.d.ts.map +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.mjs +613 -609
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Swiper.vue +23 -10
package/dist/index.cjs
CHANGED
|
@@ -6,7 +6,7 @@ ${r.event.url}`),`https://calendar.google.com/calendar/render?${g.toString()}`})
|
|
|
6
6
|
`,d_="\u2028",f_="\u2029";function m_(e){const t=e;let r=0,o=1,a=1,l=0;const i=E=>t[E]===u_&&t[E+1]===wt,s=E=>t[E]===wt,c=E=>t[E]===f_,u=E=>t[E]===d_,d=E=>i(E)||s(E)||c(E)||u(E),f=()=>r,m=()=>o,p=()=>a,h=()=>l,y=E=>i(E)||c(E)||u(E)?wt:t[E],b=()=>y(r),g=()=>y(r+l);function v(){return l=0,d(r)&&(o++,a=0),i(r)&&r++,r++,a++,t[r]}function _(){return i(r+l)&&l++,l++,t[r+l]}function w(){r=0,o=1,a=1,l=0}function k(E=0){l=E}function S(){const E=r+l;for(;E!==r;)v();l=0}return{index:f,line:m,column:p,peekOffset:h,charAt:y,currentChar:b,currentPeek:g,next:v,peek:_,reset:w,resetPeek:k,skipToPeek:S}}var Wn=void 0,p_=".",Rd="'",h_="tokenizer";function g_(e,t={}){const r=t.location!==!1,o=m_(e),a=()=>o.index(),l=()=>a_(o.line(),o.column(),o.index()),i=l(),s=a(),c={currentType:13,offset:s,startLoc:i,endLoc:i,lastType:13,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:d}=t;function f(H,G,fe,...ye){const qe=u();G.column+=fe,G.offset+=fe,d&&d(Po(H,r?Zs(qe.startLoc,G):null,{domain:h_,args:ye}))}function m(H,G,fe){H.endLoc=l(),H.currentType=G;const ye={type:G};return r&&(ye.loc=Zs(H.startLoc,H.endLoc)),fe!=null&&(ye.value=fe),ye}const p=H=>m(H,13);function h(H,G){return H.currentChar()===G?(H.next(),G):(f(Te.EXPECTED_TOKEN,l(),0,G),"")}function y(H){let G="";for(;H.currentPeek()===xn||H.currentPeek()===wt;)G+=H.currentPeek(),H.peek();return G}function b(H){const G=y(H);return H.skipToPeek(),G}function g(H){if(H===Wn)return!1;const G=H.charCodeAt(0);return G>=97&&G<=122||G>=65&&G<=90||G===95}function v(H){if(H===Wn)return!1;const G=H.charCodeAt(0);return G>=48&&G<=57}function _(H,G){const{currentType:fe}=G;if(fe!==2)return!1;y(H);const ye=g(H.currentPeek());return H.resetPeek(),ye}function w(H,G){const{currentType:fe}=G;if(fe!==2)return!1;y(H);const ye=v(H.currentPeek()==="-"?H.peek():H.currentPeek());return H.resetPeek(),ye}function k(H,G){const{currentType:fe}=G;if(fe!==2)return!1;y(H);const ye=H.currentPeek()===Rd;return H.resetPeek(),ye}function S(H,G){const{currentType:fe}=G;if(fe!==7)return!1;y(H);const ye=H.currentPeek()===".";return H.resetPeek(),ye}function E(H,G){const{currentType:fe}=G;if(fe!==8)return!1;y(H);const ye=g(H.currentPeek());return H.resetPeek(),ye}function $(H,G){const{currentType:fe}=G;if(!(fe===7||fe===11))return!1;y(H);const ye=H.currentPeek()===":";return H.resetPeek(),ye}function I(H,G){const{currentType:fe}=G;if(fe!==9)return!1;const ye=()=>{const Xe=H.currentPeek();return Xe==="{"?g(H.peek()):Xe==="@"||Xe==="|"||Xe===":"||Xe==="."||Xe===xn||!Xe?!1:Xe===wt?(H.peek(),ye()):R(H,!1)},qe=ye();return H.resetPeek(),qe}function D(H){y(H);const G=H.currentPeek()==="|";return H.resetPeek(),G}function R(H,G=!0){const fe=(qe=!1,Xe="")=>{const Ie=H.currentPeek();return Ie==="{"||Ie==="@"||!Ie?qe:Ie==="|"?!(Xe===xn||Xe===wt):Ie===xn?(H.peek(),fe(!0,xn)):Ie===wt?(H.peek(),fe(!0,wt)):!0},ye=fe();return G&&H.resetPeek(),ye}function M(H,G){const fe=H.currentChar();return fe===Wn?Wn:G(fe)?(H.next(),fe):null}function N(H){const G=H.charCodeAt(0);return G>=97&&G<=122||G>=65&&G<=90||G>=48&&G<=57||G===95||G===36}function A(H){return M(H,N)}function F(H){const G=H.charCodeAt(0);return G>=97&&G<=122||G>=65&&G<=90||G>=48&&G<=57||G===95||G===36||G===45}function V(H){return M(H,F)}function B(H){const G=H.charCodeAt(0);return G>=48&&G<=57}function j(H){return M(H,B)}function Q(H){const G=H.charCodeAt(0);return G>=48&&G<=57||G>=65&&G<=70||G>=97&&G<=102}function K(H){return M(H,Q)}function re(H){let G="",fe="";for(;G=j(H);)fe+=G;return fe}function O(H){let G="";for(;;){const fe=H.currentChar();if(fe==="\\"){const ye=H.peek();ye==="{"||ye==="}"||ye==="@"||ye==="|"||ye==="\\"?(G+=fe+ye,H.next(),H.next()):(H.resetPeek(),G+=fe,H.next())}else{if(fe==="{"||fe==="}"||fe==="@"||fe==="|"||!fe)break;if(fe===xn||fe===wt)if(R(H))G+=fe,H.next();else{if(D(H))break;G+=fe,H.next()}else G+=fe,H.next()}}return G}function P(H){b(H);let G="",fe="";for(;G=V(H);)fe+=G;const ye=H.currentChar();if(ye&&ye!=="}"&&ye!==Wn&&ye!==xn&&ye!==wt&&ye!==" "){const qe=ve(H);return f(Te.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,fe+qe),fe+qe}return H.currentChar()===Wn&&f(Te.UNTERMINATED_CLOSING_BRACE,l(),0),fe}function U(H){b(H);let G="";return H.currentChar()==="-"?(H.next(),G+=`-${re(H)}`):G+=re(H),H.currentChar()===Wn&&f(Te.UNTERMINATED_CLOSING_BRACE,l(),0),G}function T(H){return H!==Rd&&H!==wt}function z(H){b(H),h(H,"'");let G="",fe="";for(;G=M(H,T);)G==="\\"?fe+=W(H):fe+=G;const ye=H.currentChar();return ye===wt||ye===Wn?(f(Te.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),0),ye===wt&&(H.next(),h(H,"'")),fe):(h(H,"'"),fe)}function W(H){const G=H.currentChar();switch(G){case"\\":case"'":return H.next(),`\\${G}`;case"u":return Y(H,G,4);case"U":return Y(H,G,6);default:return f(Te.UNKNOWN_ESCAPE_SEQUENCE,l(),0,G),""}}function Y(H,G,fe){h(H,G);let ye="";for(let qe=0;qe<fe;qe++){const Xe=K(H);if(!Xe){f(Te.INVALID_UNICODE_ESCAPE_SEQUENCE,l(),0,`\\${G}${ye}${H.currentChar()}`);break}ye+=Xe}return`\\${G}${ye}`}function ne(H){return H!=="{"&&H!=="}"&&H!==xn&&H!==wt}function ve(H){b(H);let G="",fe="";for(;G=M(H,ne);)fe+=G;return fe}function X(H){let G="",fe="";for(;G=A(H);)fe+=G;return fe}function se(H){const G=fe=>{const ye=H.currentChar();return ye==="{"||ye==="@"||ye==="|"||ye==="("||ye===")"||!ye||ye===xn?fe:(fe+=ye,H.next(),G(fe))};return G("")}function ie(H){b(H);const G=h(H,"|");return b(H),G}function ue(H,G){let fe=null;switch(H.currentChar()){case"{":return G.braceNest>=1&&f(Te.NOT_ALLOW_NEST_PLACEHOLDER,l(),0),H.next(),fe=m(G,2,"{"),b(H),G.braceNest++,fe;case"}":return G.braceNest>0&&G.currentType===2&&f(Te.EMPTY_PLACEHOLDER,l(),0),H.next(),fe=m(G,3,"}"),G.braceNest--,G.braceNest>0&&b(H),G.inLinked&&G.braceNest===0&&(G.inLinked=!1),fe;case"@":return G.braceNest>0&&f(Te.UNTERMINATED_CLOSING_BRACE,l(),0),fe=we(H,G)||p(G),G.braceNest=0,fe;default:{let ye=!0,qe=!0,Xe=!0;if(D(H))return G.braceNest>0&&f(Te.UNTERMINATED_CLOSING_BRACE,l(),0),fe=m(G,1,ie(H)),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,l(),0),G.braceNest=0,ce(H,G);if(ye=_(H,G))return fe=m(G,4,P(H)),b(H),fe;if(qe=w(H,G))return fe=m(G,5,U(H)),b(H),fe;if(Xe=k(H,G))return fe=m(G,6,z(H)),b(H),fe;if(!ye&&!qe&&!Xe)return fe=m(G,12,ve(H)),f(Te.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,fe.value),b(H),fe;break}}return fe}function we(H,G){const{currentType:fe}=G;let ye=null;const qe=H.currentChar();switch((fe===7||fe===8||fe===11||fe===9)&&(qe===wt||qe===xn)&&f(Te.INVALID_LINKED_FORMAT,l(),0),qe){case"@":return H.next(),ye=m(G,7,"@"),G.inLinked=!0,ye;case".":return b(H),H.next(),m(G,8,".");case":":return b(H),H.next(),m(G,9,":");default:return D(H)?(ye=m(G,1,ie(H)),G.braceNest=0,G.inLinked=!1,ye):S(H,G)||$(H,G)?(b(H),we(H,G)):E(H,G)?(b(H),m(G,11,X(H))):I(H,G)?(b(H),qe==="{"?ue(H,G)||ye:m(G,10,se(H))):(fe===7&&f(Te.INVALID_LINKED_FORMAT,l(),0),G.braceNest=0,G.inLinked=!1,ce(H,G))}}function ce(H,G){let fe={type:13};if(G.braceNest>0)return ue(H,G)||p(G);if(G.inLinked)return we(H,G)||p(G);switch(H.currentChar()){case"{":return ue(H,G)||p(G);case"}":return f(Te.UNBALANCED_CLOSING_BRACE,l(),0),H.next(),m(G,3,"}");case"@":return we(H,G)||p(G);default:if(D(H))return fe=m(G,1,ie(H)),G.braceNest=0,G.inLinked=!1,fe;if(R(H))return m(G,0,O(H));break}return fe}function ke(){const{currentType:H,offset:G,startLoc:fe,endLoc:ye}=c;return c.lastType=H,c.lastOffset=G,c.lastStartLoc=fe,c.lastEndLoc=ye,c.offset=a(),c.startLoc=l(),o.currentChar()===Wn?m(c,13):ce(o,c)}return{nextToken:ke,currentOffset:a,currentPosition:l,context:u}}var v_="parser",y_=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,b_=/\\([\\@{}|])/g;function __(e,t){return t}function w_(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 k_(e={}){const t=e.location!==!1,{onError:r}=e;function o(g,v,_,w,...k){const S=g.currentPosition();S.offset+=w,S.column+=w,r&&r(Po(v,t?Zs(_,S):null,{domain:v_,args:k}))}function a(g,v,_){const w={type:g};return t&&(w.start=v,w.end=v,w.loc={start:_,end:_}),w}function l(g,v,_,w){t&&(g.end=v,g.loc&&(g.loc.end=_))}function i(g,v){const _=g.context(),w=a(3,_.offset,_.startLoc);return w.value=v.replace(b_,__),l(w,g.currentOffset(),g.currentPosition()),w}function s(g,v){const{lastOffset:_,lastStartLoc:w}=g.context(),k=a(5,_,w);return k.index=parseInt(v,10),g.nextToken(),l(k,g.currentOffset(),g.currentPosition()),k}function c(g,v){const{lastOffset:_,lastStartLoc:w}=g.context(),k=a(4,_,w);return k.key=v,g.nextToken(),l(k,g.currentOffset(),g.currentPosition()),k}function u(g,v){const{lastOffset:_,lastStartLoc:w}=g.context(),k=a(9,_,w);return k.value=v.replace(y_,w_),g.nextToken(),l(k,g.currentOffset(),g.currentPosition()),k}function d(g){const v=g.nextToken(),_=g.context(),{lastOffset:w,lastStartLoc:k}=_,S=a(8,w,k);return v.type!==11?(o(g,Te.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),S.value="",l(S,w,k),{nextConsumeToken:v,node:S}):(v.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Tn(v)),S.value=v.value||"",l(S,g.currentOffset(),g.currentPosition()),{node:S})}function f(g,v){const _=g.context(),w=a(7,_.offset,_.startLoc);return w.value=v,l(w,g.currentOffset(),g.currentPosition()),w}function m(g){const v=g.context(),_=a(6,v.offset,v.startLoc);let w=g.nextToken();if(w.type===8){const k=d(g);_.modifier=k.node,w=k.nextConsumeToken||g.nextToken()}switch(w.type!==9&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Tn(w)),w=g.nextToken(),w.type===2&&(w=g.nextToken()),w.type){case 10:w.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Tn(w)),_.key=f(g,w.value||"");break;case 4:w.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Tn(w)),_.key=c(g,w.value||"");break;case 5:w.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Tn(w)),_.key=s(g,w.value||"");break;case 6:w.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Tn(w)),_.key=u(g,w.value||"");break;default:{o(g,Te.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const k=g.context(),S=a(7,k.offset,k.startLoc);return S.value="",l(S,k.offset,k.startLoc),_.key=S,l(_,k.offset,k.startLoc),{nextConsumeToken:w,node:_}}}return l(_,g.currentOffset(),g.currentPosition()),{node:_}}function p(g){const v=g.context(),_=a(2,v.currentType===1?g.currentOffset():v.offset,v.currentType===1?v.endLoc:v.startLoc);_.items=[];let w=null;do{const k=w||g.nextToken();switch(w=null,k.type){case 0:k.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Tn(k)),_.items.push(i(g,k.value||""));break;case 5:k.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Tn(k)),_.items.push(s(g,k.value||""));break;case 4:k.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Tn(k)),_.items.push(c(g,k.value||""));break;case 6:k.value==null&&o(g,Te.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Tn(k)),_.items.push(u(g,k.value||""));break;case 7:{const S=m(g);_.items.push(S.node),w=S.nextConsumeToken||null;break}}}while(v.currentType!==13&&v.currentType!==1);return l(_,v.currentType===1?v.lastOffset:g.currentOffset(),v.currentType===1?v.lastEndLoc:g.currentPosition()),_}function h(g,v,_,w){const k=g.context();let S=w.items.length===0;const E=a(1,v,_);E.cases=[],E.cases.push(w);do{const $=p(g);S||(S=$.items.length===0),E.cases.push($)}while(k.currentType!==13);return S&&o(g,Te.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),l(E,g.currentOffset(),g.currentPosition()),E}function y(g){const v=g.context(),{offset:_,startLoc:w}=v,k=p(g);return v.currentType===13?k:h(g,_,w,k)}function b(g){const v=g_(g,dt({},e)),_=v.context(),w=a(0,_.offset,_.startLoc);return t&&w.loc&&(w.loc.source=g),w.body=y(v),e.onCacheKey&&(w.cacheKey=e.onCacheKey(g)),_.currentType!==13&&o(v,Te.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,g[_.offset]||""),l(w,v.currentOffset(),v.currentPosition()),w}return{parse:b}}function Tn(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 $_(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:l=>(r.helpers.add(l),l)}}function Fd(e,t){for(let r=0;r<e.length;r++)mu(e[r],t)}function mu(e,t){switch(e.type){case 1:Fd(e.cases,t),t.helper("plural");break;case 2:Fd(e.items,t);break;case 6:mu(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 E_(e,t={}){const r=$_(e);r.helper("normalize"),e.body&&mu(e.body,r);const o=r.context();e.helpers=Array.from(o.helpers)}function C_(e){const t=e.body;return t.type===2?zd(t):t.cases.forEach(r=>zd(r)),e}function zd(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=fu(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 S_="minifier";function lo(e){switch(e.t=e.type,e.type){case 0:{const t=e;lo(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++)lo(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++)lo(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;lo(t.key),t.k=t.key,delete t.key,t.modifier&&(lo(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 Po(Te.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:S_,args:[e.type]})}delete e.type}var x_="parser";function T_(e,t){const{filename:r,breakLineCode:o,needIndent:a}=t,l=t.location!==!1,i={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:a,indentLevel:0};l&&e.loc&&(i.source=e.loc.source);const s=()=>i;function c(y,b){i.code+=y}function u(y,b=!0){const g=b?o:"";c(a?g+" ".repeat(y):g)}function d(y=!0){const b=++i.indentLevel;y&&u(b)}function f(y=!0){const b=--i.indentLevel;y&&u(b)}function m(){u(i.indentLevel)}return{context:s,push:c,indent:d,deindent:f,newline:m,helper:y=>`_${y}`,needIndent:()=>i.needIndent}}function N_(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 B_(e,t){const{helper:r,needIndent:o}=e;e.push(`${r("normalize")}([`),e.indent(o());const a=t.items.length;for(let l=0;l<a&&(Co(e,t.items[l]),l!==a-1);l++)e.push(", ");e.deindent(o()),e.push("])")}function D_(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 l=0;l<a&&(Co(e,t.cases[l]),l!==a-1);l++)e.push(", ");e.deindent(o()),e.push("])")}}function A_(e,t){t.body?Co(e,t.body):e.push("null")}function Co(e,t){const{helper:r}=e;switch(t.type){case 0:A_(e,t);break;case 1:D_(e,t);break;case 2:B_(e,t);break;case 6:N_(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 Po(Te.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:x_,args:[t.type]})}}var M_=(e,t={})=>{const r=_e(t.mode)?t.mode:"normal",o=_e(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":`
|
|
7
7
|
`,l=t.needIndent?t.needIndent:r!=="arrow",i=e.helpers||[],s=T_(e,{filename:o,breakLineCode:a,needIndent:l});s.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(l),i.length>0&&(s.push(`const { ${fu(i.map(d=>`${d}: _${d}`),", ")} } = ctx`),s.newline()),s.push("return "),Co(s,e),s.deindent(l),s.push("}"),delete e.helpers;const{code:c,map:u}=s.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function L_(e,t={}){const r=dt({},t),o=!!r.jit,a=!!r.minify,l=r.optimize==null?!0:r.optimize,i=k_(r).parse(e);return o?(l&&C_(i),a&&lo(i),{ast:i,code:""}):(E_(i,r),M_(i,r))}function P_(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ar().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ar().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function sn(e){return Me(e)&&pu(e)===0&&(an(e,"b")||an(e,"body"))}var sh=["b","body"];function I_(e){return Er(e,sh)}var ch=["c","cases"];function V_(e){return Er(e,ch,[])}var uh=["s","static"];function O_(e){return Er(e,uh)}var dh=["i","items"];function R_(e){return Er(e,dh,[])}var fh=["t","type"];function pu(e){return Er(e,fh)}var mh=["v","value"];function nl(e,t){const r=Er(e,mh);if(r!=null)return r;throw va(t)}var ph=["m","modifier"];function F_(e){return Er(e,ph)}var hh=["k","key"];function z_(e){const t=Er(e,hh);if(t)return t;throw va(6)}function Er(e,t,r){for(let o=0;o<t.length;o++){const a=t[o];if(an(e,a)&&e[a]!=null)return e[a]}return r}var gh=[...sh,...ch,...uh,...dh,...hh,...ph,...mh,...fh];function va(e){return new Error(`unhandled node type: ${e}`)}function ts(e){return r=>U_(r,e)}function U_(e,t){const r=I_(t);if(r==null)throw va(0);if(pu(r)===1){const o=V_(r);return e.plural(o.reduce((a,l)=>[...a,Ud(e,l)],[]))}else return Ud(e,r)}function Ud(e,t){const r=O_(t);if(r!=null)return e.type==="text"?r:e.normalize([r]);{const o=R_(t).reduce((a,l)=>[...a,Qs(e,l)],[]);return e.normalize(o)}}function Qs(e,t){const r=pu(t);switch(r){case 3:return nl(t,r);case 9:return nl(t,r);case 4:{const o=t;if(an(o,"k")&&o.k)return e.interpolate(e.named(o.k));if(an(o,"key")&&o.key)return e.interpolate(e.named(o.key));throw va(r)}case 5:{const o=t;if(an(o,"i")&&ut(o.i))return e.interpolate(e.list(o.i));if(an(o,"index")&&ut(o.index))return e.interpolate(e.list(o.index));throw va(r)}case 6:{const o=t,a=F_(o),l=z_(o);return e.linked(Qs(e,l),a?Qs(e,a):void 0,e.type)}case 7:return nl(t,r);case 8:return nl(t,r);default:throw new Error(`unhandled node on format message part: ${r}`)}}var H_="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function W_(e,t){t&&c_(e)&&(yi(H_,{source:e}),void 0)}var j_=e=>e,rl=je();function q_(e,t={}){let r=!1;const o=t.onError||i_;return t.onError=a=>{r=!0,o(a)},{...L_(e,t),detectError:r}}function G_(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&_e(e)){const r=Oe(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&W_(e,r);const o=(t.onCacheKey||j_)(e),a=rl[o];if(a)return a;const{ast:l,detectError:i}=q_(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),s=ts(l);return i?s:rl[o]=s}else{if(process.env.NODE_ENV!=="production"&&!sn(e))return`${t.key}`,(()=>e);const r=e.cacheKey;if(r){const o=rl[r];return o||(rl[r]=ts(e))}else return ts(e)}}var ya=null;function Y_(e){ya=e}function X_(e,t,r){ya&&ya.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}var K_=J_("function:translate");function J_(e){return t=>ya&&ya.emit(e,t)}var kt={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 Xn(e){return Po(e,null,process.env.NODE_ENV!=="production"?{messages:Z_}:void 0)}var Z_={[kt.INVALID_ARGUMENT]:"Invalid arguments",[kt.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[kt.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[kt.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[kt.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[kt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[kt.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function hu(e,t){return t.locale!=null?Hd(t.locale):Hd(e.locale)}var ns;function Hd(e){if(_e(e))return e;if(Je(e)){if(e.resolvedOnce&&ns!=null)return ns;if(e.constructor.name==="Function"){const t=e();if(n_(t))throw Xn(kt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ns=t}else throw Xn(kt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Xn(kt.NOT_SUPPORT_LOCALE_TYPE)}function Q_(e,t,r){return[...new Set([r,...tt(t)?t:Me(t)?Object.keys(t):_e(t)?[t]:[r]])]}function ec(e,t,r){const o=_e(r)?r:ba,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let l=a.__localeChainCache.get(o);if(!l){l=[];let i=[r];for(;tt(i);)i=Wd(l,i,t);const s=tt(t)||!Ae(t)?t:t.default?t.default:null;i=_e(s)?[s]:s,tt(i)&&Wd(l,i,!1),a.__localeChainCache.set(o,l)}return l}function Wd(e,t,r){let o=!0;for(let a=0;a<t.length&&Oe(o);a++){const l=t[a];_e(l)&&(o=e1(e,t[a],r))}return o}function e1(e,t,r){let o;const a=t.split("-");do o=t1(e,a.join("-"),r),a.splice(-1,1);while(a.length&&o===!0);return o}function t1(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)||Ae(r))&&r[a]&&(o=r[a])}return o}var Cr=[];Cr[0]={w:[0],i:[3,0],"[":[4],o:[7]};Cr[1]={w:[1],".":[2],"[":[4],o:[7]};Cr[2]={w:[2],i:[3,0],0:[3,0]};Cr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Cr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Cr[5]={"'":[4,0],o:8,l:[5,0]};Cr[6]={'"':[4,0],o:8,l:[6,0]};var n1=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function r1(e){return n1.test(e)}function o1(e){const t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function a1(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 l1(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:r1(t)?o1(t):"*"+t}function i1(e){const t=[];let r=-1,o=0,a=0,l,i,s,c,u,d,f;const m=[];m[0]=()=>{i===void 0?i=s:i+=s},m[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},m[2]=()=>{m[0](),a++},m[3]=()=>{if(a>0)a--,o=4,m[0]();else{if(a=0,i===void 0||(i=l1(i),i===!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++,l=e[r],!(l==="\\"&&p())){if(c=a1(l),f=Cr[o],u=f[c]||f.l||8,u===8||(o=u[0],u[1]!==void 0&&(d=m[u[1]],d&&(s=l,d()===!1))))return;if(o===7)return t}}var jd=new Map;function s1(e,t){return Me(e)?e[t]:null}function c1(e,t){if(!Me(e))return null;let r=jd.get(t);if(r||(r=i1(t),r&&jd.set(t,r)),!r)return null;const o=r.length;let a=e,l=0;for(;l<o;){const i=r[l];if(gh.includes(i)&&sn(a)||!Me(a)||!an(a,i))return null;const s=a[i];if(s===void 0||Je(a))return null;a=s,l++}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 u1={[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 tr(e,...t){return yi(u1[e],...t)}var d1="11.4.5";var ba="en-US";var qd=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function f1(){return{upper:(e,t)=>t==="text"&&_e(e)?e.toUpperCase():t==="vnode"&&Me(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&_e(e)?e.toLowerCase():t==="vnode"&&Me(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&_e(e)?qd(e):t==="vnode"&&Me(e)&&"__v_isVNode"in e?qd(e.children):e}}var vh;function m1(e){vh=e}var yh;function p1(e){yh=e}var bh;function h1(e){bh=e}var _h=null,Gd=e=>{_h=e},g1=()=>_h,wh=null,Yd=e=>{wh=e},v1=()=>wh,Xd=0;function y1(e={}){const t=Je(e.onWarn)?e.onWarn:jb,r=_e(e.version)?e.version:d1,o=_e(e.locale)||Je(e.locale)?e.locale:ba,a=Je(o)?ba:o,l=tt(e.fallbackLocale)||Ae(e.fallbackLocale)||_e(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=Ae(e.messages)?e.messages:rs(a),s=Ae(e.datetimeFormats)?e.datetimeFormats:rs(a),c=Ae(e.numberFormats)?e.numberFormats:rs(a),u=dt(je(),e.modifiers,f1()),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,y=!!e.unresolving,b=Je(e.postTranslation)?e.postTranslation:null,g=Ae(e.processor)?e.processor:null,v=Oe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,w=Je(e.messageCompiler)?e.messageCompiler:vh;process.env.NODE_ENV!=="production"&&Je(e.messageCompiler)&&cu(tr(ht.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const k=Je(e.messageResolver)?e.messageResolver:yh||s1,S=Je(e.localeFallbacker)?e.localeFallbacker:bh||Q_,E=Me(e.fallbackContext)?e.fallbackContext:void 0,$=e,I=Me($.__datetimeFormatters)?$.__datetimeFormatters:new Map,D=Me($.__numberFormatters)?$.__numberFormatters:new Map,R=Me($.__meta)?$.__meta:{};Xd++;const M={version:r,cid:Xd,locale:o,fallbackLocale:l,messages:i,modifiers:u,pluralRules:d,missing:f,missingWarn:m,fallbackWarn:p,fallbackFormat:h,unresolving:y,postTranslation:b,processor:g,warnHtmlMessage:v,escapeParameter:_,messageCompiler:w,messageResolver:k,localeFallbacker:S,fallbackContext:E,onWarn:t,__meta:R};return M.datetimeFormats=s,M.numberFormats=c,M.__datetimeFormatters=I,M.__numberFormatters=D,process.env.NODE_ENV!=="production"&&(M.__v_emitter=$.__v_emitter!=null?$.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&X_(M,r,R),M}var rs=e=>({[e]:je()});function wi(e,t){return e instanceof RegExp?e.test(t):e}function kh(e,t){return e instanceof RegExp?e.test(t):e}function gu(e,t,r,o,a){const{missing:l,onWarn:i}=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(l!==null){const s=l(e,r,t,a);return _e(s)?s:t}else return process.env.NODE_ENV!=="production"&&kh(o,t)&&i(tr(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 $h(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function b1(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let o=r+1;o<t.length;o++)if($h(e,t[o]))return!0;return!1}var Kd=typeof Intl<"u",Eh={dateTimeFormat:Kd&&typeof Intl.DateTimeFormat<"u",numberFormat:Kd&&typeof Intl.NumberFormat<"u"};function Jd(e,...t){const{datetimeFormats:r,unresolving:o,fallbackLocale:a,onWarn:l,localeFallbacker:i}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Eh.dateTimeFormat)return l(tr(ht.CANNOT_FORMAT_DATE)),"";if(!_e(t[0])&&!lh(t[0])&&!ut(t[0]))return process.env.NODE_ENV!=="production"&&l(tr(ht.INVALID_DATE_ARGUMENT,{value:String(t[0])})),"";const[c,u,d,f]=tc(...t),m=Oe(d.missingWarn)?d.missingWarn:e.missingWarn,p=Oe(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,h=!!d.part,y=hu(e,d),b=i(e,a,y);if(!_e(c)||c===""){const I=new Intl.DateTimeFormat(y.replace(/!/g,""),f);return h?I.formatToParts(u):I.format(u)}let g={},v,_=null,w=y,k=null;const S="datetime format";for(let I=0;I<b.length;I++){if(v=k=b[I],process.env.NODE_ENV!=="production"&&y!==v&&wi(p,c)&&l(tr(ht.FALLBACK_TO_DATE_FORMAT,{key:c,target:v})),process.env.NODE_ENV!=="production"&&y!==v){const D=e.__v_emitter;D&&D.emit("fallback",{type:S,key:c,from:w,to:k,groupId:`${S}:${c}`})}if(g=r[v]||{},_=g[c],Ae(_))break;gu(e,c,v,m,S),w=k}if(!Ae(_)||!_e(v))return o?-1:c;let E=`${v}__${c}`;bi(f)||(E=`${E}__${JSON.stringify(f)}`);let $=s.get(E);return $||($=new Intl.DateTimeFormat(v,dt({},_,f)),s.set(E,$)),h?$.formatToParts(u):$.format(u)}var Ch=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function tc(...e){const[t,r,o,a]=e,l=je();let i=je(),s;if(_e(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Xn(kt.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 Xn(kt.INVALID_ISO_DATE_ARGUMENT)}}else if(lh(t)){if(isNaN(t.getTime()))throw Xn(kt.INVALID_DATE_ARGUMENT);s=t}else if(ut(t))s=t;else throw Xn(kt.INVALID_ARGUMENT);return _e(r)?l.key=r:Ae(r)&&Object.keys(r).forEach(c=>{Ch.includes(c)?i[c]=r[c]:l[c]=r[c]}),_e(o)?l.locale=o:Ae(o)&&(i=o),Ae(a)&&(i=a),[l.key||"",s,l,i]}function Zd(e,t,r){const o=e;for(const a in r){const l=`${t}__${a}`;o.__datetimeFormatters.has(l)&&o.__datetimeFormatters.delete(l)}}function Qd(e,...t){const{numberFormats:r,unresolving:o,fallbackLocale:a,onWarn:l,localeFallbacker:i}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Eh.numberFormat)return l(tr(ht.CANNOT_FORMAT_NUMBER)),"";if(!ut(t[0]))return process.env.NODE_ENV!=="production"&&l(tr(ht.INVALID_NUMBER_ARGUMENT,{value:String(t[0])})),"";const[c,u,d,f]=nc(...t),m=Oe(d.missingWarn)?d.missingWarn:e.missingWarn,p=Oe(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,h=!!d.part,y=hu(e,d),b=i(e,a,y);if(!_e(c)||c===""){const I=new Intl.NumberFormat(y.replace(/!/g,""),f);return h?I.formatToParts(u):I.format(u)}let g={},v,_=null,w=y,k=null;const S="number format";for(let I=0;I<b.length;I++){if(v=k=b[I],process.env.NODE_ENV!=="production"&&y!==v&&wi(p,c)&&l(tr(ht.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:v})),process.env.NODE_ENV!=="production"&&y!==v){const D=e.__v_emitter;D&&D.emit("fallback",{type:S,key:c,from:w,to:k,groupId:`${S}:${c}`})}if(g=r[v]||{},_=g[c],Ae(_))break;gu(e,c,v,m,S),w=k}if(!Ae(_)||!_e(v))return o?-1:c;let E=`${v}__${c}`;bi(f)||(E=`${E}__${JSON.stringify(f)}`);let $=s.get(E);return $||($=new Intl.NumberFormat(v,dt({},_,f)),s.set(E,$)),h?$.formatToParts(u):$.format(u)}var Sh=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function nc(...e){const[t,r,o,a]=e,l=je();let i=je();if(!ut(t))throw Xn(kt.INVALID_ARGUMENT);const s=t;return _e(r)?l.key=r:Ae(r)&&Object.keys(r).forEach(c=>{Sh.includes(c)?i[c]=r[c]:l[c]=r[c]}),_e(o)?l.locale=o:Ae(o)&&(i=o),Ae(a)&&(i=a),[l.key||"",s,l,i]}function ef(e,t,r){const o=e;for(const a in r){const l=`${t}__${a}`;o.__numberFormatters.has(l)&&o.__numberFormatters.delete(l)}}var _1=e=>e,w1=e=>"",k1="text",$1=e=>e.length===0?"":fu(e),E1=r_;function os(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function C1(e){const t=ut(e.pluralIndex)?e.pluralIndex:-1;return ut(e.named?.count)?e.named.count:ut(e.named?.n)?e.named.n:t}function S1(e={}){const t=e.locale,r=C1(e),o=_e(t)&&Je(e.pluralRules?.[t])?e.pluralRules[t]:os,a=o===os?void 0:os,l=g=>g[o(r,g.length,a)],i=e.list||[],s=g=>i[g],c=e.named||je();ut(e.pluralIndex)&&(c.count||=e.pluralIndex,c.n||=e.pluralIndex);const u=g=>c[g];function d(g,v){const _=Je(e.messages)?e.messages(g,!!v):Me(e.messages)?e.messages[g]:!1;return _||(e.parent?e.parent.message(g):w1)}const f=g=>e.modifiers?e.modifiers[g]:_1,m=Je(e.processor?.normalize)?e.processor.normalize:$1,p=Je(e.processor?.interpolate)?e.processor.interpolate:E1,h=_e(e.processor?.type)?e.processor.type:k1,b={list:s,named:u,plural:l,linked:(g,...v)=>{const[_,w]=v;let k="text",S="";v.length===1?Me(_)?(S=_.modifier||S,k=_.type||k):_e(_)&&(S=_||S):v.length===2&&(_e(_)&&(S=_||S),_e(w)&&(k=w||k));const E=d(g,!0)(b),$=E===""||E===void 0?g:E,I=k==="vnode"&&tt($)&&S?$[0]:$;return S?f(S)(I,k):I},message:d,type:h,interpolate:p,normalize:m,values:dt(je(),i,c)};return b}var tf=()=>"",tn=e=>Je(e);function nf(e,...t){const{fallbackFormat:r,postTranslation:o,unresolving:a,messageCompiler:l,fallbackLocale:i,messages:s}=e,[c,u]=rc(...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=_e(u.default)||Oe(u.default)?Oe(u.default)?l?c:()=>c:u.default:r?l?c:()=>c:null,y=r||h!=null&&(_e(h)||Je(h)),b=hu(e,u);m&&x1(u);let[g,v,_]=p?[c,b,s[b]||je()]:xh(e,c,b,i,f,d),w=g,k=c;if(!p&&!(_e(w)||sn(w)||tn(w))&&y&&(w=h,k=w),!p&&(!(_e(w)||sn(w)||tn(w))||!_e(v)))return a?-1:c;if(process.env.NODE_ENV!=="production"&&_e(w)&&e.messageCompiler==null)return`${c}`,c;let S=!1;const E=()=>{S=!0},$=tn(w)?w:Th(e,c,v,w,k,E);if(S)return w;const I=T1(e,$,S1(D1(e,v,_,u)));let D=o?o(I,c):I;if(m&&_e(D)&&(D=e_(D)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const R={timestamp:Date.now(),key:_e(c)?c:tn(w)?w.key:"",locale:v||(tn(w)?w.locale:""),format:_e(w)?w:tn(w)?w.source:"",message:D};R.meta=dt({},e.__meta,g1()||{}),K_(R)}return D}function x1(e){tt(e.list)?e.list=e.list.map(t=>_e(t)?Id(t):t):Me(e.named)&&Object.keys(e.named).forEach(t=>{_e(e.named[t])&&(e.named[t]=Id(e.named[t]))})}function xh(e,t,r,o,a,l){const{messages:i,onWarn:s,messageResolver:c,localeFallbacker:u}=e,d=u(e,o,r);let f=je(),m,p=null,h=r,y=null;const b="translate";for(let g=0;g<d.length;g++){m=y=d[g],process.env.NODE_ENV!=="production"&&r!==m&&!$h(r,m)&&wi(a,t)&&s(tr(ht.FALLBACK_TO_TRANSLATE,{key:t,target:m}));const v=process.env.NODE_ENV!=="production"?e.__v_emitter:void 0;process.env.NODE_ENV!=="production"&&r!==m&&v&&v.emit("fallback",{type:b,key:t,from:h,to:y,groupId:`${b}:${t}`}),f=i[m]||je();let _=null,w,k;if(process.env.NODE_ENV!=="production"&&bn&&v&&(_=window.performance.now(),w="intlify-message-resolve-start",k="intlify-message-resolve-end",Kt&&Kt(w)),(p=c(f,t))===null&&(p=f[t]),process.env.NODE_ENV!=="production"&&bn&&v){const S=window.performance.now();v&&_&&p&&v.emit("message-resolve",{type:"message-resolve",key:t,message:p,time:S-_,groupId:`${b}:${t}`}),w&&k&&Kt&&Rr&&(Kt(k),Rr("intlify message resolve",w,k))}if(_e(p)||sn(p)||tn(p))break;if(!b1(m,d)){const S=gu(e,t,m,l,b);S!==t&&(p=S)}h=y}return[p,m,f]}function Th(e,t,r,o,a,l){const{messageCompiler:i,warnHtmlMessage:s}=e;if(tn(o)){const p=o;return p.locale=p.locale||r,p.key=p.key||t,p}if(i==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"&&bn&&c&&(u=window.performance.now(),d="intlify-message-compilation-start",f="intlify-message-compilation-end",Kt&&Kt(d));const m=i(o,N1(e,r,a,o,s,l));if(process.env.NODE_ENV!=="production"&&bn&&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&&Kt&&Rr&&(Kt(f),Rr("intlify message compilation",d,f))}return m.locale=r,m.key=t,m.source=o,m}function T1(e,t,r){const o=process.env.NODE_ENV!=="production"?e.__v_emitter:void 0;let a=null,l,i;process.env.NODE_ENV!=="production"&&bn&&o&&(a=window.performance.now(),l="intlify-message-evaluation-start",i="intlify-message-evaluation-end",Kt&&Kt(l));const s=t(r);if(process.env.NODE_ENV!=="production"&&bn&&o){const c=window.performance.now();o&&a&&o.emit("message-evaluation",{type:"message-evaluation",value:s,time:c-a,groupId:`translate:${t.key}`}),l&&i&&Kt&&Rr&&(Kt(i),Rr("intlify message evaluation",l,i))}return s}function rc(...e){const[t,r,o]=e,a=je();if(!_e(t)&&!ut(t)&&!tn(t)&&!sn(t))throw Xn(kt.INVALID_ARGUMENT);const l=ut(t)?String(t):(tn(t),t);return ut(r)?a.plural=r:_e(r)?a.default=r:Ae(r)&&!bi(r)?a.named=r:tt(r)&&(a.list=r),ut(o)?a.plural=o:_e(o)?a.default=o:Ae(o)&&dt(a,o),[l,a]}function N1(e,t,r,o,a,l){return{locale:t,key:r,warnHtmlMessage:a,onError:i=>{if(l&&l(i),process.env.NODE_ENV!=="production"){const s=B1(o),c=i.location&&s&&o_(s,i.location.start.offset,i.location.end.offset),u=e.__v_emitter;u&&s&&u.emit("compile-error",{message:s,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${r}`});const d=`Message compilation error: ${i.message}`;throw new SyntaxError(c?`${d}
|
|
8
8
|
${c}`:d)}throw i},onCacheKey:i=>Gb(t,r,i)}}function B1(e){if(_e(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function D1(e,t,r,o){const{modifiers:a,pluralRules:l,messageResolver:i,fallbackLocale:s,fallbackWarn:c,missingWarn:u,fallbackContext:d}=e,m={locale:t,modifiers:a,pluralRules:l,messages:(p,h)=>{let y=i(r,p);if(y==null&&(d||h)){const[b,,g]=xh(d||e,p,t,s,c,u);y=b??i(g,p)}if(_e(y)||sn(y)){let b=!1;const v=Th(e,p,t,y,p,()=>{b=!0});return b?tf:v}else return tn(y)?y:tf}};return e.processor&&(m.processor=e.processor),o.list&&(m.list=o.list),o.named&&(m.named=o.named),ut(o.plural)&&(m.pluralIndex=o.plural),m}P_();function A1(){return Nh().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Nh(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const M1=typeof Proxy=="function",L1="devtools-plugin:setup",P1="plugin:settings:set";var Jr,oc;function I1(){var e;return Jr!==void 0||(typeof window<"u"&&window.performance?(Jr=!0,oc=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Jr=!0,oc=globalThis.perf_hooks.performance):Jr=!1),Jr}function V1(){return I1()?oc.now():Date.now()}var O1=class{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const r={};if(e.settings)for(const l in e.settings)r[l]=e.settings[l].defaultValue;const o=`__vue-devtools-plugin-settings__${e.id}`;let a=Object.assign({},r);try{const l=localStorage.getItem(o),i=JSON.parse(l);Object.assign(a,i)}catch{}this.fallbacks={getSettings(){return a},setSettings(l){try{localStorage.setItem(o,JSON.stringify(l))}catch{}a=l},now(){return V1()}},t&&t.on(P1,(l,i)=>{l===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(l,i)=>this.target?this.target.on[i]:(...s)=>{this.onQueue.push({method:i,args:s})}}),this.proxiedTarget=new Proxy({},{get:(l,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...s)=>(this.targetQueue.push({method:i,args:s,resolve:()=>{}}),this.fallbacks[i](...s)):(...s)=>new Promise(c=>{this.targetQueue.push({method:i,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 R1(e,t){const r=e,o=Nh(),a=A1(),l=M1&&r.enableEarlyProxy;if(a&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!l))a.emit(L1,e,t);else{const i=l?new O1(r,a):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}var F1="11.4.5";function z1(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ar().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ar().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ar().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ar().__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 Nt(e,...t){return Po(e,null,process.env.NODE_ENV!=="production"?{messages:U1,args:t}:void 0)}var U1={[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"},ac=$n("__translateVNode"),lc=$n("__datetimeParts"),ic=$n("__numberParts"),or=$n("__enableEmitter"),Fr=$n("__disableEmitter"),Bh=$n("__setPluralRules");$n("__intlifyMeta");var Dh=$n("__injectWithOption"),fo=$n("__dispose"),nn={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},H1={[nn.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[nn.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[nn.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[nn.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
9
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[nn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[nn.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 yi(H1[e],...t)}function _a(e){if(!Me(e)||sn(e))return e;for(const t in e)if(an(e,t))if(!t.includes("."))Me(e[t])&&_a(e[t]);else{const r=t.split("."),o=r.length-1;let a=e,l=!1;for(let i=0;i<o;i++){if(r[i]==="__proto__")throw new Error(`unsafe key: ${r[i]}`);if(r[i]in a||(a[r[i]]=je()),!Me(a[r[i]])){process.env.NODE_ENV!=="production"&&(So(nn.IGNORE_OBJ_FLATTEN,{key:r[i]}),void 0),l=!0;break}a=a[r[i]]}if(l||(sn(a)?gh.includes(r[o])||delete e[t]:(a[r[o]]=e[t],delete e[t])),!sn(a)){const i=a[r[o]];Me(i)&&_a(i)}}return e}function vu(e,t){const{messages:r,__i18n:o,messageResolver:a,flatJson:l}=t,i=Ae(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?(i[c]=i[c]||je(),kl(u,i[c])):kl(u,i)}else _e(s)&&kl(JSON.parse(s),i)}),a==null&&l)for(const s in i)an(i,s)&&_a(i[s]);return i}function Ah(e){return e.type}function Mh(e,t,r){let o=Me(t.messages)?t.messages:je();"__i18nGlobal"in r&&(o=vu(e.locale.value,{messages:o,__i18n:r.__i18nGlobal}));const a=Object.keys(o);if(a.length&&a.forEach(l=>{e.mergeLocaleMessage(l,o[l])}),Me(t.datetimeFormats)){const l=Object.keys(t.datetimeFormats);l.length&&l.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(Me(t.numberFormats)){const l=Object.keys(t.numberFormats);l.length&&l.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}function rf(e){return(0,n.createVNode)(n.Text,null,e,0)}function go(){const e="currentInstance";return e in n?n[e]:n.getCurrentInstance()}var of="__INTLIFY_META__",af=()=>[],W1=()=>!1,lf=0;function sf(e){return((t,r,o,a)=>e(r,o,go()||void 0,a))}var j1=()=>{const e=go();let t=null;return e&&(t=Ah(e)[of])?{[of]:t}:null};function Fl(e={}){const{__root:t,__injectWithOption:r}=e,o=t===void 0,a=e.flatJson,l=bn?n.ref:n.shallowRef;let i=Oe(e.inheritLocale)?e.inheritLocale:!0;const s=l(t&&i?t.locale.value:_e(e.locale)?e.locale:ba),c=l(t&&i?t.fallbackLocale.value:_e(e.fallbackLocale)||tt(e.fallbackLocale)||Ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=l(vu(s.value,e)),d=l(Ae(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=l(Ae(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,y=!!e.fallbackFormat,b=Je(e.missing)?e.missing:null,g=Je(e.missing)?sf(e.missing):null,v=Je(e.postTranslation)?e.postTranslation:null,_=t?t.warnHtmlMessage:Oe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const k=t?t.modifiers:Ae(e.modifiers)?e.modifiers:{};let S=e.pluralRules||t&&t.pluralRules,E;E=(()=>{o&&Yd(null);const le={version:F1,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:k,pluralRules:S,missing:g===null?void 0:g,missingWarn:m,fallbackWarn:p,fallbackFormat:y,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:_,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};le.datetimeFormats=d.value,le.numberFormats=f.value,le.__datetimeFormatters=Ae(E)?E.__datetimeFormatters:void 0,le.__numberFormatters=Ae(E)?E.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(le.__v_emitter=Ae(E)?E.__v_emitter:void 0);const me=y1(le);return o&&Yd(me),me})(),Ho(E,s.value,c.value);function I(){return[s.value,c.value,u.value,d.value,f.value]}const D=(0,n.computed)({get:()=>s.value,set:le=>{E.locale=le,s.value=le}}),R=(0,n.computed)({get:()=>c.value,set:le=>{E.fallbackLocale=le,c.value=le,Ho(E,s.value,le)}}),M=(0,n.computed)(()=>u.value),N=(0,n.computed)(()=>d.value),A=(0,n.computed)(()=>f.value);function F(){return Je(v)?v:null}function V(le){v=le,E.postTranslation=le}function B(){return b}function j(le){le!==null&&(g=sf(le)),b=le,E.missing=g}function Q(le,me){return le!=="translate"||!me.resolvedMessage}const K=(le,me,Le,Ze,Cn,Zt)=>{I();let Ct;try{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Gd(j1()),o||(E.fallbackContext=t?v1():void 0),Ct=le(E)}finally{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Gd(null),o||(E.fallbackContext=void 0)}if(Le!=="translate exists"&&ut(Ct)&&Ct===-1||Le==="translate exists"&&!Ct){const[Un,Ji]=me();if(process.env.NODE_ENV!=="production"&&t&&_e(Un)&&Q(Le,Ji)&&(h&&(wi(p,Un)||kh(m,Un))&&(So(nn.FALLBACK_TO_ROOT,{key:Un,type:Le}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:zo}=E;zo&&h&&zo.emit("fallback",{type:Le,key:Un,to:"global",groupId:`${Le}:${Un}`})}return t&&h?Ze(t):Cn(Un)}else{if(Zt(Ct))return Ct;throw Nt(Ye.UNEXPECTED_RETURN_TYPE)}};function re(...le){return K(me=>Reflect.apply(nf,null,[me,...le]),()=>rc(...le),"translate",me=>Reflect.apply(me.t,me,[...le]),me=>me,me=>_e(me))}function O(...le){const[me,Le,Ze]=le;if(Ze&&!Me(Ze))throw Nt(Ye.INVALID_ARGUMENT);return re(me,Le,dt({resolvedMessage:!0},Ze||{}))}function P(...le){return K(me=>Reflect.apply(Jd,null,[me,...le]),()=>tc(...le),"datetime format",me=>Reflect.apply(me.d,me,[...le]),()=>"",me=>_e(me)||tt(me))}function U(...le){return K(me=>Reflect.apply(Qd,null,[me,...le]),()=>nc(...le),"number format",me=>Reflect.apply(me.n,me,[...le]),()=>"",me=>_e(me)||tt(me))}function T(le){return le.map(me=>_e(me)||ut(me)||Oe(me)?rf(String(me)):me)}const W={normalize:T,interpolate:le=>le,type:"vnode"};function Y(...le){return K(me=>{let Le;const Ze=me;try{Ze.processor=W,Le=Reflect.apply(nf,null,[Ze,...le])}finally{Ze.processor=null}return Le},()=>rc(...le),"translate",me=>me[ac](...le),me=>[rf(me)],me=>tt(me))}function ne(...le){return K(me=>Reflect.apply(Qd,null,[me,...le]),()=>nc(...le),"number format",me=>me[ic](...le),af,me=>_e(me)||tt(me))}function ve(...le){return K(me=>Reflect.apply(Jd,null,[me,...le]),()=>tc(...le),"datetime format",me=>me[lc](...le),af,me=>_e(me)||tt(me))}function X(le){S=le,E.pluralRules=S}function se(le,me){return K(()=>{if(!le)return!1;const Le=_e(me)?me:s.value,Ze=_e(me)?[Le]:ec(E,c.value,Le);for(let Cn=0;Cn<Ze.length;Cn++){const Zt=we(Ze[Cn]);let Ct=E.messageResolver(Zt,le);if(Ct===null&&(Ct=Zt[le]),sn(Ct)||tn(Ct)||_e(Ct))return!0}return!1},()=>[le],"translate exists",Le=>Reflect.apply(Le.te,Le,[le,me]),W1,Le=>Oe(Le))}function ie(le){let me=null;const Le=ec(E,c.value,s.value);for(let Ze=0;Ze<Le.length;Ze++){const Cn=u.value[Le[Ze]]||{},Zt=E.messageResolver(Cn,le);if(Zt!=null){me=Zt;break}}return me}function ue(le){const me=ie(le);return me??(t?t.tm(le)||{}:{})}function we(le){return u.value[le]||{}}function ce(le,me){if(a){const Le={[le]:me};for(const Ze in Le)an(Le,Ze)&&_a(Le[Ze]);me=Le[le]}u.value[le]=me,E.messages=u.value}function ke(le,me){u.value[le]=u.value[le]||{};const Le={[le]:me};if(a)for(const Ze in Le)an(Le,Ze)&&_a(Le[Ze]);me=Le[le],kl(me,u.value[le]),E.messages=u.value}function H(le){return d.value[le]||{}}function G(le,me){d.value[le]=me,E.datetimeFormats=d.value,Zd(E,le,me)}function fe(le,me){d.value[le]=dt(d.value[le]||{},me),E.datetimeFormats=d.value,Zd(E,le,me)}function ye(le){return f.value[le]||{}}function qe(le,me){f.value[le]=me,E.numberFormats=f.value,ef(E,le,me)}function Xe(le,me){f.value[le]=dt(f.value[le]||{},me),E.numberFormats=f.value,ef(E,le,me)}lf++,t&&bn&&((0,n.watch)(t.locale,le=>{i&&(s.value=le,E.locale=le,Ho(E,s.value,c.value))}),(0,n.watch)(t.fallbackLocale,le=>{i&&(c.value=le,E.fallbackLocale=le,Ho(E,s.value,c.value))}));const Ie={id:lf,locale:D,fallbackLocale:R,get inheritLocale(){return i},set inheritLocale(le){i=le,le&&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:M,get modifiers(){return k},get pluralRules(){return S||{}},get isGlobal(){return o},get missingWarn(){return m},set missingWarn(le){m=le,E.missingWarn=m},get fallbackWarn(){return p},set fallbackWarn(le){p=le,E.fallbackWarn=p},get fallbackRoot(){return h},set fallbackRoot(le){h=le},get fallbackFormat(){return y},set fallbackFormat(le){y=le,E.fallbackFormat=y},get warnHtmlMessage(){return _},set warnHtmlMessage(le){_=le,E.warnHtmlMessage=le},get escapeParameter(){return w},set escapeParameter(le){w=le,E.escapeParameter=le},t:re,getLocaleMessage:we,setLocaleMessage:ce,mergeLocaleMessage:ke,getPostTranslationHandler:F,setPostTranslationHandler:V,getMissingHandler:B,setMissingHandler:j,[Bh]:X};return Ie.datetimeFormats=N,Ie.numberFormats=A,Ie.rt=O,Ie.te=se,Ie.tm=ue,Ie.d=P,Ie.n=U,Ie.getDateTimeFormat=H,Ie.setDateTimeFormat=G,Ie.mergeDateTimeFormat=fe,Ie.getNumberFormat=ye,Ie.setNumberFormat=qe,Ie.mergeNumberFormat=Xe,Ie[Dh]=r,Ie[ac]=Y,Ie[lc]=ve,Ie[ic]=ne,process.env.NODE_ENV!=="production"&&(Ie[or]=le=>{E.__v_emitter=le},Ie[Fr]=()=>{E.__v_emitter=void 0}),Ie}var Lh="vue-i18n: composer properties",as={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},q1={"vue-i18n-resource-inspector":"Search for scopes ..."},G1={"vue-i18n-timeline":16764185},sc;async function Y1(e,t){return new Promise((r,o)=>{try{R1({id:"vue-devtools-plugin-vue-i18n",label:as["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:[Lh],app:e},a=>{sc=a,a.on.visitComponentTree(({componentInstance:i,treeNode:s})=>{X1(i,s,t)}),a.on.inspectComponent(({componentInstance:i,instanceData:s})=>{i.__VUE_I18N__&&s&&(t.mode==="legacy"?i.__VUE_I18N__!==t.global.__composer&&cf(s,i.__VUE_I18N__):cf(s,i.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:as["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:q1["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&ew(i,t)});const l=new Map;a.on.getInspectorState(async i=>{if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),nw(i,t),i.nodeId==="global"){if(!l.has(i.app)){const[s]=await a.getComponentInstances(i.app);l.set(i.app,s)}a.highlightElement(l.get(i.app))}else{const s=tw(i.nodeId,t);s&&a.highlightElement(s)}}),a.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&ow(i,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:as["vue-i18n-timeline"],color:G1["vue-i18n-timeline"]}),r(!0)})}catch{o(!1)}})}function Ph(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function X1(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 (${Ph(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function cf(e,t){const r=Lh;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:yu(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 yu(e){const t={};return Object.keys(e).forEach(r=>{const o=e[r];Je(o)&&"source"in o?t[r]=Q1(o):sn(o)&&o.loc&&o.loc.source?t[r]=o.loc.source:Me(o)?t[r]=yu(o):t[r]=o}),t}var K1={"<":"<",">":">",'"':""","&":"&"};function J1(e){return e.replace(/[<>"&]/g,Z1)}function Z1(e){return K1[e]||e}function Q1(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${J1(e.source)}")`:"(?)"}`}}}function ew(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 l=t.mode==="composition"?a:a.__composer;r!==l&&e.rootNodes.push({id:l.id.toString(),label:`${Ph(o)} Scope`})}}function tw(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 Ih(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 nw(e,t){const r=Ih(e.nodeId,t);return r&&(e.state=rw(r)),null}function rw(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:yu(e.messages.value)}];{const a="Datetime formats info";t[a]=[{type:a,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];const l="Datetime formats info";t[l]=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}]}return t}function zr(e,t){if(sc){let r;t&&"groupId"in t&&(r=t.groupId,delete t.groupId),sc.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 ow(e,t){const r=Ih(e.nodeId,t);if(r){const[o]=e.path;o==="locale"&&_e(e.state.value)?r.locale.value=e.state.value:o==="fallbackLocale"&&(_e(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 aw(e){const t=_e(e.locale)?e.locale:ba,r=_e(e.fallbackLocale)||tt(e.fallbackLocale)||Ae(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,l=Oe(e.silentFallbackWarn)||Eo(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=Oe(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,c=Ae(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,d=Je(e.postTranslation)?e.postTranslation:void 0,f=_e(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,m=!!e.escapeParameterHtml,p=Oe(e.sync)?e.sync:!0;let h=e.messages;if(Ae(e.sharedMessages)){const k=e.sharedMessages;h=Object.keys(k).reduce((S,E)=>(dt(S[E]||(S[E]={}),k[E]),S),h||{})}const{__i18n:y,__root:b,__injectWithOption:g}=e,v=e.datetimeFormats,_=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:r,messages:h,flatJson:w,datetimeFormats:v,numberFormats:_,missing:o,missingWarn:a,fallbackWarn:l,fallbackRoot:i,fallbackFormat:s,modifiers:c,pluralRules:u,postTranslation:d,warnHtmlMessage:f,escapeParameter:m,messageResolver:e.messageResolver,inheritLocale:p,__i18n:y,__root:b,__injectWithOption:g}}function cc(e={}){const t=Fl(aw(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,l){return t.te(a,l)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,l){t.setLocaleMessage(a,l)},mergeLocaleMessage(a,l){t.mergeLocaleMessage(a,l)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,l){t.setDateTimeFormat(a,l)},mergeDateTimeFormat(a,l){t.mergeDateTimeFormat(a,l)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,l){t.setNumberFormat(a,l)},mergeNumberFormat(a,l){t.mergeNumberFormat(a,l)}};return o.__extender=r,process.env.NODE_ENV!=="production"&&(o.__enableEmitter=a=>{const l=t;l[or]&&l[or](a)},o.__disableEmitter=()=>{const a=t;a[Fr]&&a[Fr]()}),o}function lw(e,t,r){return{beforeCreate(){const o=go();if(!o)throw Nt(Ye.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const l=a.i18n;if(a.__i18n&&(l.__i18n=a.__i18n),l.__root=t,this===this.$root)this.$i18n=uf(e,l);else{l.__injectWithOption=!0,l.__extender=r.__vueI18nExtend,this.$i18n=cc(l);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=uf(e,a);else{this.$i18n=cc({__i18n:a.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:t});const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Mh(t,a,a),this.$t=(...l)=>this.$i18n.t(...l),this.$rt=(...l)=>this.$i18n.rt(...l),this.$te=(l,i)=>this.$i18n.te(l,i),this.$d=(...l)=>this.$i18n.d(...l),this.$n=(...l)=>this.$i18n.n(...l),this.$tm=l=>this.$i18n.tm(l),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 l=this.__v_emitter=_i();a.__enableEmitter&&a.__enableEmitter(l),l.on("*",zr)}},unmounted(){const o=go();if(!o)throw Nt(Ye.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&o.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",zr),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 uf(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[Bh](t.pluralizationRules||e.pluralizationRules);const r=vu(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 bu={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function iw({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 Vh(){return n.Fragment}var df=(0,n.defineComponent)({name:"i18n-t",props:dt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ut(e)||!isNaN(e)}},bu),setup(e,t){const{slots:r,attrs:o}=t,a=e.i18n||_u({useScope:e.scope,__useComponent:!0});return()=>{const l=()=>{const c=Object.keys(r).filter(f=>f[0]!=="_"),u=je();e.locale&&(u.locale=e.locale),e.plural!==void 0&&(u.plural=_e(e.plural)?+e.plural:e.plural);const d=iw(t,c);return a[ac](e.keypath,d,u)},i=dt(je(),o),s=_e(e.tag)||Me(e.tag)?e.tag:Vh();return Me(s)?(0,n.h)(s,i,{default:l}):(0,n.h)(s,i,l())}}});function sw(e){return tt(e)&&!_e(e[0])}function Oh(e,t,r,o){const{slots:a,attrs:l}=t;return()=>{const i=()=>{const u={part:!0};let d=je();e.locale&&(u.locale=e.locale),_e(e.format)?u.key=e.format:Me(e.format)&&(_e(e.format.key)&&(u.key=e.format.key),d=Object.keys(e.format).reduce((p,h)=>r.includes(h)?dt(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 y=a[p.type],b=y?y({[p.type]:p.value,index:h,parts:f}):[p.value];return sw(b)&&(b[0].key=`${p.type}-${h}`),b}):_e(f)&&(m=[f]),m},s=dt(je(),l),c=_e(e.tag)||Me(e.tag)?e.tag:Vh();return Me(c)?(0,n.h)(c,s,{default:i}):(0,n.h)(c,s,i())}}var ff=(0,n.defineComponent)({name:"i18n-n",props:dt({value:{type:Number,required:!0},format:{type:[String,Object]}},bu),setup(e,t){const r=e.i18n||_u({useScope:e.scope,__useComponent:!0});return Oh(e,t,Sh,(...o)=>r[ic](...o))}});function cw(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 uw(e){const t=i=>{process.env.NODE_ENV!=="production"&&cu(So(nn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:s,value:c}=i;if(!s||!s.$)throw Nt(Ye.UNEXPECTED_ERROR);const u=cw(e,s.$),d=mf(c);return[Reflect.apply(u.t,u,[...pf(d)]),u]};return{created:(i,s)=>{const[c,u]=t(s);bn&&(i.__i18nWatcher=(0,n.watch)(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),i.__composer=u,i.textContent=c},unmounted:i=>{bn&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:s})=>{if(i.__composer){const c=i.__composer,u=mf(s);i.textContent=Reflect.apply(c.t,c,[...pf(u)])}},getSSRProps:i=>{const[s]=t(i);return{textContent:s}}}}function mf(e){if(_e(e))return{path:e};if(Ae(e)){if(!("path"in e))throw Nt(Ye.REQUIRED_VALUE,"path");return e}else throw Nt(Ye.INVALID_VALUE)}function pf(e){const{path:t,locale:r,args:o,choice:a,plural:l}=e,i={},s=o||{};return _e(r)&&(i.locale=r),ut(a)&&(i.plural=a),ut(l)&&(i.plural=l),[t,s,i]}function dw(e,t,...r){const o=Ae(r[0])?r[0]:{};(!Oe(o.globalInstall)||o.globalInstall)&&([df.name,"I18nT"].forEach(a=>e.component(a,df)),[ff.name,"I18nN"].forEach(a=>e.component(a,ff)),[vf.name,"I18nD"].forEach(a=>e.component(a,vf))),e.directive("t",uw(t))}var fw=$n("global-vue-i18n");function mw(e={}){const t=__VUE_I18N_LEGACY_API__&&Oe(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&cu(So(nn.DEPRECATE_LEGACY_MODE));const r=Oe(e.globalInjection)?e.globalInjection:!0,o=new Map,[a,l]=pw(e,t),i=$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__=i,f.provide(f.__VUE_I18N_SYMBOL__,d),Ae(m[0])){const y=m[0];d.__composerExtend=y.__composerExtend,d.__vueI18nExtend=y.__vueI18nExtend}let p=null;!t&&r&&(p=ww(f,d.global)),__VUE_I18N_FULL_INSTALL__&&dw(f,d,...m),__VUE_I18N_LEGACY_API__&&t&&f.mixin(lw(l,l.__composer,d));const h=f.unmount;if(f.unmount=()=>{p&&p(),d.dispose(),h()},process.env.NODE_ENV!=="production"){if(!await Y1(f,d))throw Nt(Ye.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const y=_i();if(t){const b=l;b.__enableEmitter&&b.__enableEmitter(y)}else{const b=l;b[or]&&b[or](y)}y.on("*",zr)}},get global(){return l},dispose(){a.stop()},__instances:o,__getInstance:s,__setInstance:c,__deleteInstance:u};return d}function _u(e={}){const t=go();if(t==null)throw Nt(Ye.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Nt(Ye.NOT_INSTALLED);const r=hw(t),o=vw(r),a=Ah(t),l=gw(e,a);if(l==="global")return Mh(o,e,a),o;if(l==="parent"){let c=hf(r,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&(So(nn.NOT_FOUND_PARENT_SCOPE),void 0),c=o),c}if(l==="isolated"){if(r.mode!=="composition")throw Nt(Ye.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=r,u=dt({},e);u.__root=hf(r,t)||o;const d=Fl(u);c.__composerExtend&&(d[fo]=c.__composerExtend(d));let f=null;if(process.env.NODE_ENV!=="production"){f=_i();const m=d;m[or]&&m[or](f),f.on("*",zr)}return(0,n.getCurrentScope)()&&(0,n.onScopeDispose)(()=>{if(process.env.NODE_ENV!=="production"){f&&f.off("*",zr);const p=d;p[Fr]&&p[Fr]()}const m=d[fo];m&&(m(),delete d[fo])}),d}const i=r;let s=i.__getInstance(t);if(s==null){const c=dt({},e);"__i18n"in a&&(c.__i18n=a.__i18n),o&&(c.__root=o),s=Fl(c),i.__composerExtend&&(s[fo]=i.__composerExtend(s)),bw(i,t,s),i.__setInstance(t,s)}else process.env.NODE_ENV!=="production"&&l==="local"&&(So(nn.DUPLICATE_USE_I18N_CALLING),void 0);return s}function pw(e,t){const r=(0,n.effectScope)(),o=__VUE_I18N_LEGACY_API__&&t?r.run(()=>cc(e)):r.run(()=>Fl(e));if(o==null)throw Nt(Ye.UNEXPECTED_ERROR);return[r,o]}function hw(e){const t=(0,n.inject)(e.isCE?fw:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Nt(e.isCE?Ye.NOT_INSTALLED_WITH_PROVIDE:Ye.UNEXPECTED_ERROR);return t}function gw(e,t){return bi(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function vw(e){return e.mode==="composition"?e.global:e.global.__composer}function hf(e,t,r=!1){let o=null;const a=t.root;let l=yw(t,r);for(;l!=null;){const i=e;if(e.mode==="composition")o=i.__getInstance(l);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(l);s!=null&&(o=s.__composer,r&&o&&!o[Dh]&&(o=null))}if(o!=null||a===l)break;l=l.parent}return o}function yw(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function bw(e,t,r){let o=null;(0,n.onMounted)(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=r,o=_i();const a=r;a[or]&&a[or](o),o.on("*",zr)}},t),(0,n.onUnmounted)(()=>{const a=r;process.env.NODE_ENV!=="production"&&(o&&o.off("*",zr),a[Fr]&&a[Fr](),delete t.__VUE_I18N__),e.__deleteInstance(t);const l=a[fo];l&&(l(),delete a[fo])},t)}var _w=["locale","fallbackLocale","availableLocales"],gf=["t","rt","d","n","tm","te"];function ww(e,t){const r=Object.create(null);return _w.forEach(a=>{const l=Object.getOwnPropertyDescriptor(t,a);if(!l)throw Nt(Ye.UNEXPECTED_ERROR);const i=(0,n.isRef)(l.value)?{get(){return l.value.value},set(s){l.value.value=s}}:{get(){return l.get&&l.get()}};Object.defineProperty(r,a,i)}),e.config.globalProperties.$i18n=r,gf.forEach(a=>{const l=Object.getOwnPropertyDescriptor(t,a);if(!l||!l.value)throw Nt(Ye.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,l)}),()=>{delete e.config.globalProperties.$i18n,gf.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}var vf=(0,n.defineComponent)({name:"i18n-d",props:dt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},bu),setup(e,t){const r=e.i18n||_u({useScope:e.scope,__useComponent:!0});return Oh(e,t,Ch,(...o)=>r[lc](...o))}});z1();m1(G_);p1(c1);h1(ec);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ar();e.__INTLIFY__=!0,Y_(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const kw={title:"Confirm",message:"Are you sure you want to continue?",confirm:"Confirm",cancel:"Cancel"},$w={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"},Ew={of:"of",prev:"Previous",next:"Next",perPage:"Per page"},Cw={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"},Sw={veryWeak:"Very Weak",weak:"Weak",fair:"Fair",good:"Good",strong:"Strong"},xw={placeholder:"Select",search:"Search",yes:"Yes",no:"No"},Tw={loadDefault:"Load Default {label}"},Nw={item:"Item"},Bw={loading:"Loading..."},Dw={success:"Success",error:"Error",warning:"Warning",info:"Information"},Aw={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"}},Mw={previous:"Previous",next:"Next",complete:"Complete",step:"Step {current} of {total}"},Lw={placeholder:"Enter address"},Pw={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..."},Iw={year:"year",month:"month",week:"week",day:"day",hour:"hour",minute:"minute",second:"second",ago:"ago",in:"in",justNow:"Just now"},Vw={save:"Save",cancel:"Cancel",delete:"Delete",validationError:"Please fix the validation errors before submitting",errorOccurred:"An error occurred"},Ow={phoneNumber:"Phone Number",invalidPhone:"Please enter a valid phone number"},Rw={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..."},Fw={invalidFormat:"Invalid date format"},zw={wrapText:"Wrap Text",selectAll:"Select All",clearAll:"Clear All"},Uw={openFile:"Open File"},Hw={placeholder:"Enter color"},Ww={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"},jw={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..."},qw={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}"?'},Gw={content:"Content",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Newsletter",agent:"Agents",users:"Users",tenants:"Organizations"},Yw={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}?"},Xw={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"}}},Kw={today:"Today",views:{week:"Week",month:"Month",day:"Day",agenda:"Agenda"},agenda:{time:"Time",event:"Event",eventsCount:"{n} event | {n} events",noEvents:"No events"}},Jw={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)"},Zw={total:"Total",share:"Share"};var Qw={modalConfirm:kw,upload:$w,pagination:Ew,form:Cw,password:Sw,select:xw,fieldArray:Tw,arrayInput:Nw,btn:Bw,toast:Dw,filter:Aw,multiStep:Mw,addressSearch:Lw,importData:Pw,timeAgo:Iw,dialogForm:Vw,tel:Ow,email:Rw,date:Fw,spreadsheet:zw,lightbox:Uw,color:Hw,pageDesigner:Ww,collection:jw,datastores:qw,admin:Gw,userManagement:Yw,forms:Xw,calendar:Kw,addToCalendar:Jw,charts:Zw};const e2={title:"Confirmar",message:"¿Estás seguro de que quieres continuar?",confirm:"Confirmar",cancel:"Cancelar"},t2={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"},n2={of:"de",prev:"Anterior",next:"Siguiente"},r2={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"},o2={veryWeak:"Muy débil",weak:"Débil",fair:"Regular",good:"Buena",strong:"Fuerte"},a2={placeholder:"Seleccionar",search:"Buscar",yes:"Sí",no:"No"},l2={loadDefault:"Cargar {label} predeterminado"},i2={item:"Elemento"},s2={loading:"Cargando..."},c2={success:"Éxito",error:"Error",warning:"Advertencia",info:"Información"},u2={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"}},d2={previous:"Anterior",next:"Siguiente",complete:"Completar",step:"Paso {current} de {total}"},f2={placeholder:"Introduce una dirección"},m2={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..."},p2={year:"año",month:"mes",week:"semana",day:"día",hour:"hora",minute:"minuto",second:"segundo",ago:"hace",in:"en",justNow:"Justo ahora"},h2={save:"Guardar",cancel:"Cancelar",delete:"Eliminar",validationError:"Por favor corrija los errores de validación antes de enviar",errorOccurred:"Ocurrió un error"},g2={phoneNumber:"Número de teléfono",invalidPhone:"Por favor introduce un número de teléfono válido"},v2={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..."},y2={invalidFormat:"Formato de fecha inválido"},b2={wrapText:"Ajuste de texto",selectAll:"Seleccionar todo",clearAll:"Limpiar todo"},_2={openFile:"Abrir archivo"},w2={placeholder:"Introduce un color"},k2={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"},$2={content:"Contenido",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Boletín",agent:"Agentes",users:"Usuarios",tenants:"Organizaciones"},E2={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}?"},C2={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"}},S2={addTo:"Agregar a {name}",addToCalendar:"Agregar al calendario"};var x2={modalConfirm:e2,upload:t2,pagination:n2,form:r2,password:o2,select:a2,fieldArray:l2,arrayInput:i2,btn:s2,toast:c2,filter:u2,multiStep:d2,addressSearch:f2,importData:m2,timeAgo:p2,dialogForm:h2,tel:g2,email:v2,date:y2,spreadsheet:b2,lightbox:_2,color:w2,pageDesigner:k2,admin:$2,userManagement:E2,calendar:C2,addToCalendar:S2};const T2={title:"Confirmer",message:"Êtes-vous sûr de vouloir continuer ?",confirm:"Confirmer",cancel:"Annuler"},N2={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"},B2={of:"de",prev:"Précédent",next:"Suivant"},D2={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"},A2={veryWeak:"Très faible",weak:"Faible",fair:"Passable",good:"Bonne",strong:"Forte"},M2={placeholder:"Sélectionner",search:"Rechercher",yes:"Oui",no:"Non"},L2={loadDefault:"Charger {label} par défaut"},P2={item:"Élément"},I2={loading:"Chargement..."},V2={success:"Succès",error:"Erreur",warning:"Avertissement",info:"Information"},O2={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"}},R2={previous:"Précédent",next:"Suivant",complete:"Terminer",step:"Étape {current} sur {total}"},F2={placeholder:"Entrez une adresse"},z2={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..."},U2={year:"an",month:"mois",week:"semaine",day:"jour",hour:"heure",minute:"minute",second:"seconde",ago:"il y a",in:"dans",justNow:"À l'instant"},H2={save:"Enregistrer",cancel:"Annuler",delete:"Supprimer",validationError:"Veuillez corriger les erreurs de validation avant de soumettre",errorOccurred:"Une erreur est survenue"},W2={phoneNumber:"Numéro de téléphone",invalidPhone:"Veuillez entrer un numéro de téléphone valide"},j2={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..."},q2={invalidFormat:"Format de date invalide"},G2={wrapText:"Renvoyer à la ligne",selectAll:"Tout sélectionner",clearAll:"Tout effacer"},Y2={openFile:"Ouvrir le fichier"},X2={placeholder:"Entrez une couleur"},K2={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"},J2={content:"Contenu",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Newsletter",agent:"Agents",users:"Utilisateurs",tenants:"Organisations"},Z2={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} ?"},Q2={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"}},ek={addTo:"Ajouter à {name}",addToCalendar:"Ajouter au calendrier"};var tk={modalConfirm:T2,upload:N2,pagination:B2,form:D2,password:A2,select:M2,fieldArray:L2,arrayInput:P2,btn:I2,toast:V2,filter:O2,multiStep:R2,addressSearch:F2,importData:z2,timeAgo:U2,dialogForm:H2,tel:W2,email:j2,date:q2,spreadsheet:G2,lightbox:Y2,color:X2,pageDesigner:K2,admin:J2,userManagement:Z2,calendar:Q2,addToCalendar:ek};const nk={title:"אישור",message:"האם אתה בטוח שברצונך להמשיך?",confirm:"אישור",cancel:"ביטול"},rk={upload:"העלה",uploading:"מעלה {count} קבצים...",noFile:"לא נבחר קובץ",dropPlaceholder:"גרור ושחרר קבצים כאן או לחץ להעלאה",delete:"מחק",replace:"החלף",download:"הורד"},ok={of:"מתוך",prev:"הקודם",next:"הבא",perPage:"פריטים לעמוד"},ak={required:"שדה זה נדרש",invalidEmail:"הזן כתובת אימייל חוקית",invalidUrl:"הזן כתובת URL חוקית",minLength:"חייב להכיל לפחות {min} תווים",maxLength:"חייב להכיל לכל היותר {max} תווים",minValue:"חייב להיות לפחות {min}",maxValue:"חייב להיות לכל היותר {max}",pattern:"פורמט לא חוקי",passwordStrength:"חוזק סיסמה"},lk={veryWeak:"חלשה מאוד",weak:"חלשה",fair:"סבירה",good:"טובה",strong:"חזקה"},ik={placeholder:"בחר",search:"חיפוש",yes:"כן",no:"לא"},sk={loadDefault:"טען {label} ברירת מחדל"},ck={item:"פריט"},uk={loading:"טוען..."},dk={success:"הצלחה",error:"שגיאה",warning:"אזהרה",info:"מידע"},fk={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:"שמירה"}},mk={previous:"הקודם",next:"הבא",complete:"סיים",step:"שלב {current} מתוך {total}"},pk={placeholder:"הזן כתובת"},hk={close:"סגור",cancel:"ביטול",importData:"ייבא נתונים",changeFile:"החלף קובץ",selectSheet:"בחר גיליון",hasHeaders:"סמן אם לקובץ יש שורת כותרת",sourceKeyField:"שדה מפתח מקור (מהקובץ הזה)",relatedKeyField:"שדה מפתח קשור (מהקובץ הקשור)",selectSourceValue:"בחר ערך מקור",sourceValue:"ערך מקור",selectTargetValue:"בחר ערך יעד",targetValue:"ערך יעד",selectColumn:"בחר עמודה..."},gk={year:{singular:"שנה",plural:"שנים"},month:{singular:"חודש",plural:"חודשים"},week:{singular:"שבוע",plural:"שבועות"},day:{singular:"יום",plural:"ימים"},hour:{singular:"שעה",plural:"שעות"},minute:{singular:"דקה",plural:"דקות"},second:{singular:"שנייה",plural:"שניות"},ago:"לפני",in:"בעוד",justNow:"זה עתה"},vk={save:"שמור",cancel:"ביטול",delete:"מחק",validationError:"אנא תקן את שגיאות האימות לפני השליחה",errorOccurred:"אירעה שגיאה"},yk={phoneNumber:"מספר טלפון",invalidPhone:"אנא הזן מספר טלפון תקין"},bk={invalidEmail:"הזן כתובת אימייל חוקית",invalidDomain:"נראה שדומיין האימייל אינו חוקי",disposableEmail:"אנא השתמש בכתובת אימייל שאינה חד-פעמית",didYouMean:"האם התכוונת ל-{suggestion}?",validating:"מאמת כתובת אימייל..."},_k={invalidFormat:"פורמט תאריך לא חוקי"},wk={wrapText:"גלישת טקסט",selectAll:"בחר הכל",clearAll:"נקה הכל"},kk={openFile:"פתח קובץ"},$k={placeholder:"הזן צבע"},Ek={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:"פרסום נכשל"},Ck={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:"שומר סדר..."},Sk={selectCollection:"בחרו קולקציה מהרשימה",fieldName:"שם",fieldStore:"Store",fieldStoreHint:"לדוגמה: default",fieldCollection:"Collection",fieldCollectionHint:"לדוגמה: my_collection",fieldDescription:"תיאור",createTitle:"יצירת Datastore חדש",createSubmit:"יצירה",editTitle:"עריכת {name}",saveSubmit:"שמירה",addBtn:"הוספת Datastore",empty:"אין Datastores עדיין",deleteConfirm:'למחוק את "{name}"?'},xk={content:"תוכן",blox:"בלוקס",whatsapp:"וואטסאפ",newsletter:"ניוזלטר",agent:"סוכנים",users:"משתמשים",tenants:"ארגונים"},Tk={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}?"},Nk={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:"טלפון"}}},Bk={today:"היום",views:{week:"שבוע",month:"חודש",day:"יום",agenda:"סדר יום"},agenda:{time:"שעה",event:"אירוע",eventsCount:"אירוע אחד | {n} אירועים",noEvents:"אין אירועים"}},Dk={addTo:"הוסף ל{name}",addToCalendar:"הוסף ליומן",google:"יומן Google",apple:"יומן Apple",outlook:"Outlook",office365:"Office 365",yahoo:"יומן Yahoo",ics:"יומן (קובץ ICS)"},Ak={total:"סה״כ",share:"חלק"};var Mk={modalConfirm:nk,upload:rk,pagination:ok,form:ak,password:lk,select:ik,fieldArray:sk,arrayInput:ck,btn:uk,toast:dk,filter:fk,multiStep:mk,addressSearch:pk,importData:hk,timeAgo:gk,dialogForm:vk,tel:yk,email:bk,date:_k,spreadsheet:wk,lightbox:kk,color:$k,pageDesigner:Ek,collection:Ck,datastores:Sk,admin:xk,userManagement:Tk,forms:Nk,calendar:Bk,addToCalendar:Dk,charts:Ak};const Lk={title:"Conferma",message:"Sei sicuro di voler continuare?",confirm:"Conferma",cancel:"Annulla"},Pk={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"},Ik={of:"di",prev:"Precedente",next:"Successivo"},Vk={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"},Ok={veryWeak:"Molto debole",weak:"Debole",fair:"Discreta",good:"Buona",strong:"Forte"},Rk={placeholder:"Seleziona",search:"Cerca",yes:"Sì",no:"No"},Fk={loadDefault:"Carica {label} predefinito"},zk={item:"Elemento"},Uk={loading:"Caricamento..."},Hk={success:"Successo",error:"Errore",warning:"Avviso",info:"Informazione"},Wk={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"}},jk={previous:"Precedente",next:"Successivo",complete:"Completa",step:"Passo {current} di {total}"},qk={placeholder:"Inserisci un indirizzo"},Gk={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..."},Yk={year:"anno",month:"mese",week:"settimana",day:"giorno",hour:"ora",minute:"minuto",second:"secondo",ago:"fa",in:"tra",justNow:"Poco fa"},Xk={save:"Salva",cancel:"Annulla",delete:"Elimina",validationError:"Correggi gli errori di validazione prima di inviare",errorOccurred:"Si è verificato un errore"},Kk={phoneNumber:"Numero di telefono",invalidPhone:"Inserisci un numero di telefono valido"},Jk={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..."},Zk={invalidFormat:"Formato data non valido"},Qk={wrapText:"A capo automatico",selectAll:"Seleziona tutto",clearAll:"Cancella tutto"},e$={openFile:"Apri file"},t$={placeholder:"Inserisci un colore"},n$={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"},r$={content:"Contenuto",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Newsletter",agent:"Agenti",users:"Utenti",tenants:"Organizzazioni"},o$={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}?"},a$={today:"Oggi",views:{week:"Settimana",month:"Mese",day:"Giorno",agenda:"Agenda"},agenda:{time:"Ora",event:"Evento",eventsCount:"{n} evento | {n} eventi",noEvents:"Nessun evento"}},l$={addTo:"Aggiungi a {name}",addToCalendar:"Aggiungi al calendario"};var i$={modalConfirm:Lk,upload:Pk,pagination:Ik,form:Vk,password:Ok,select:Rk,fieldArray:Fk,arrayInput:zk,btn:Uk,toast:Hk,filter:Wk,multiStep:jk,addressSearch:qk,importData:Gk,timeAgo:Yk,dialogForm:Xk,tel:Kk,email:Jk,date:Zk,spreadsheet:Qk,lightbox:e$,color:t$,pageDesigner:n$,admin:r$,userManagement:o$,calendar:a$,addToCalendar:l$};const s$={title:"Подтвердить",message:"Вы уверены, что хотите продолжить?",confirm:"Подтвердить",cancel:"Отмена"},c$={upload:"Загрузить",uploading:"Загрузка {count} файл{plural}...",noFile:"Файл не выбран",dropPlaceholder:"Перетащите файлы сюда или нажмите для загрузки",delete:"Удалить",replace:"Заменить",download:"Скачать"},u$={of:"из",prev:"Предыдущая",next:"Следующая"},d$={required:"Это поле обязательно для заполнения",invalidEmail:"Введите действительный адрес электронной почты",invalidUrl:"Введите действительный URL",minLength:"Должно содержать не менее {min} символов",maxLength:"Должно содержать не более {max} символов",minValue:"Должно быть не менее {min}",maxValue:"Должно быть не более {max}",pattern:"Неверный формат",passwordStrength:"Надежность пароля"},f$={veryWeak:"Очень слабый",weak:"Слабый",fair:"Средний",good:"Хороший",strong:"Надёжный"},m$={placeholder:"Выбрать",search:"Поиск",yes:"Да",no:"Нет"},p$={loadDefault:"Загрузить {label} по умолчанию"},h$={item:"Элемент"},g$={loading:"Загрузка..."},v$={success:"Успешно",error:"Ошибка",warning:"Предупреждение",info:"Информация"},y$={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:"Сохранить"}},b$={previous:"Назад",next:"Далее",complete:"Завершить",step:"Шаг {current} из {total}"},_$={placeholder:"Введите адрес"},w$={close:"Закрыть",cancel:"Отмена",importData:"Импорт данных",changeFile:"Изменить файл",selectSheet:"Выбрать лист",hasHeaders:"Отметьте, если файл содержит строку заголовка",sourceKeyField:"Ключевое поле источника (из этого файла)",relatedKeyField:"Ключевое поле связанного (из связанного файла)",selectSourceValue:"Выберите исходное значение",sourceValue:"Исходное значение",selectTargetValue:"Выберите целевое значение",targetValue:"Целевое значение",selectColumn:"Выберите столбец..."},k$={year:"год",month:"месяц",week:"неделя",day:"день",hour:"час",minute:"минута",second:"секунда",ago:"назад",in:"через",justNow:"Только что"},$$={save:"Сохранить",cancel:"Отмена",delete:"Удалить",validationError:"Пожалуйста, исправьте ошибки валидации перед отправкой",errorOccurred:"Произошла ошибка"},E$={phoneNumber:"Номер телефона",invalidPhone:"Пожалуйста, введите действительный номер телефона"},C$={invalidEmail:"Введите действительный адрес электронной почты",invalidDomain:"Домен этого адреса электронной почты, похоже, недействителен",disposableEmail:"Пожалуйста, используйте постоянный адрес электронной почты",didYouMean:"Вы имели в виду {suggestion}?",validating:"Проверка адреса электронной почты..."},S$={invalidFormat:"Неверный формат даты"},x$={wrapText:"Перенос текста",selectAll:"Выбрать всё",clearAll:"Очистить всё"},T$={openFile:"Открыть файл"},N$={placeholder:"Введите цвет"},B$={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:"Ошибка публикации"},D$={content:"Контент",blox:"Блокс",whatsapp:"WhatsApp",newsletter:"Рассылка",agent:"Агенты",users:"Пользователи",tenants:"Организации"},A$={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}?"},M$={today:"Сегодня",views:{week:"Неделя",month:"Месяц",day:"День",agenda:"Повестка"},agenda:{time:"Время",event:"Событие",eventsCount:"{n} событие | {n} события | {n} событий",noEvents:"Нет событий"}},L$={addTo:"Добавить в {name}",addToCalendar:"Добавить в календарь"};var P$={modalConfirm:s$,upload:c$,pagination:u$,form:d$,password:f$,select:m$,fieldArray:p$,arrayInput:h$,btn:g$,toast:v$,filter:y$,multiStep:b$,addressSearch:_$,importData:w$,timeAgo:k$,dialogForm:$$,tel:E$,email:C$,date:S$,spreadsheet:x$,lightbox:T$,color:N$,pageDesigner:B$,admin:D$,userManagement:A$,calendar:M$,addToCalendar:L$},uc={en:Qw,he:Mk,it:i$,es:x2,fr:tk,ru:P$},zl=null;function Rh(e={}){const{locale:t="en",fallbackLocale:r="en",messages:o={}}=e,a=Object.keys(uc),l={};for(const i of a)l[i]={...uc[i]||{},...o[i]||{}};for(const i of Object.keys(o))l[i]||(l[i]=o[i]);return zl=mw({locale:t,fallbackLocale:r,messages:l,legacy:!1,globalInjection:!0}),zl}function ir(){if(!zl)throw new Error("i18n not initialized. Call createI18n() first.");return zl}function nt(){const e=ir().global;return{$t:e.t,t:e.t,locale:e.locale,availableLocales:e.availableLocales,fallbackLocale:e.fallbackLocale,n:e.n,d:e.d}}function $e(e){if(e!=null)return e.startsWith("$t:")?ir().global.t(e.slice(3)):e}function Fh(){try{const e=ir().global.locale,t=e?.value??e;if(typeof t=="string"&&t)return t}catch{}return typeof document<"u"&&(document.documentElement.lang||navigator?.language)||"en"}function $t(e,t={}){const r=Fh();let o;try{t.currency?o=new Intl.NumberFormat(r,{style:"currency",currency:t.currency,notation:t.compact?"compact":"standard",maximumFractionDigits:t.maximumFractionDigits??(t.compact?1:0)}).format(e):o=new Intl.NumberFormat(r,{notation:t.compact?"compact":"standard",maximumFractionDigits:t.maximumFractionDigits??(t.compact?1:2)}).format(e)}catch{o=String(e)}return`${t.prefix??""}${o}${t.suffix??""}`}function Ul(e){if(/[-/]/.test(e)){const t=new Date(e);if(!Number.isNaN(t.getTime()))try{return t.toLocaleDateString(Fh(),{month:"short",day:"numeric"})}catch{}}return e}var I$={top:8,right:8,bottom:22,left:36};function zh(e,t){const r=(0,n.ref)(0),o=(0,n.computed)(()=>typeof t.height=="number"?t.height:t.height.value),a=(0,n.computed)(()=>({...I$,...t.padding})),l=(0,n.computed)(()=>Math.max(0,r.value-a.value.left-a.value.right)),i=(0,n.computed)(()=>Math.max(0,o.value-a.value.top-a.value.bottom)),s=(0,n.ref)(!1);function c(){typeof document>"u"||(s.value=(e.value?.closest("[dir]")?.getAttribute("dir")||document.documentElement.dir)==="rtl"||document.documentElement.lang==="he")}let u=null;return(0,n.onMounted)(()=>{c(),e.value&&(r.value=e.value.clientWidth||0,u=new ResizeObserver(f=>{for(const m of f)r.value=m.contentRect.width}),u.observe(e.value))}),(0,n.onUnmounted)(()=>u?.disconnect()),{width:r,height:o,pad:a,innerWidth:l,innerHeight:i,isRTL:s,flipX:f=>s.value?l.value-f:f}}var V$={key:0,class:"bgl-tip__label m-0"},O$={key:1,class:"bgl-tip__hero m-0 tabular-nums"},R$={key:1,class:"bgl-tip__name"},F$={class:"bgl-tip__val tabular-nums"},z$={key:2,class:"bgl-tip__row bgl-tip__total flex align-items-center m-0"},U$={class:"bgl-tip__name"},H$={class:"bgl-tip__val tabular-nums"},W$={key:3,class:"bgl-tip__stats flex column"},j$={class:"bgl-tip__name"},q$={class:"bgl-tip__val tabular-nums"},G$=(0,n.defineComponent)({name:"BglChartTooltip",__name:"ChartTooltip",props:{label:{},hero:{},rows:{default:()=>[]},total:{},stats:{default:()=>[]},above:{type:Boolean}},setup(e){const{$t:t}=nt();return(r,o)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["bgl-tip absolute pointer-events-none nowrap z-5 color-white line-height-13",{"bgl-tip--above":e.above}])},[e.label?((0,n.openBlock)(),(0,n.createElementBlock)("p",V$,(0,n.toDisplayString)(e.label),1)):(0,n.createCommentVNode)("",!0),e.hero?((0,n.openBlock)(),(0,n.createElementBlock)("p",O$,(0,n.toDisplayString)(e.hero),1)):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.rows,(a,l)=>((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:l,class:"bgl-tip__row flex align-items-center m-0"},[a.color?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:0,class:"bgl-tip__dot flex-shrink-0",style:(0,n.normalizeStyle)({background:a.color})},null,4)):(0,n.createCommentVNode)("",!0),e.rows.length>1?((0,n.openBlock)(),(0,n.createElementBlock)("span",R$,(0,n.toDisplayString)(a.name),1)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",F$,(0,n.toDisplayString)(a.value),1)]))),128)),e.total?((0,n.openBlock)(),(0,n.createElementBlock)("p",z$,[(0,n.createElementVNode)("span",U$,(0,n.toDisplayString)((0,n.unref)(t)("charts.total")),1),(0,n.createElementVNode)("span",H$,(0,n.toDisplayString)(e.total),1)])):(0,n.createCommentVNode)("",!0),e.stats.length?((0,n.openBlock)(),(0,n.createElementBlock)("div",W$,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.stats,(a,l)=>((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:l,class:"bgl-tip__row flex align-items-center m-0"},[(0,n.createElementVNode)("span",j$,(0,n.toDisplayString)(a.label),1),(0,n.createElementVNode)("span",q$,(0,n.toDisplayString)(a.value),1)]))),128))])):(0,n.createCommentVNode)("",!0)],2))}}),ki=ge(G$,[["__scopeId","data-v-8a82cd70"]]),Y$=["width","height"],X$={key:0},K$=["id","y2"],J$=["stop-color","stop-opacity"],Z$=["stop-color","stop-opacity"],Q$=["transform"],eE={key:0,class:"bgl-chart__grid"},tE=["x2","y1","y2"],nE=["y"],rE=["d","fill","opacity"],oE=["d","stroke","stroke-dasharray","stroke-dashoffset"],aE=["cx","cy","fill","opacity"],lE={class:"bgl-chart__xlabels"},iE=["x","y"],sE={key:3,class:"bgl-chart__hover","pointer-events":"none"},cE=["x1","x2","y2"],uE=["cx","cy","fill"],dE=(0,n.defineComponent)({__name:"LineChart",props:{data:{},series:{},labels:{},color:{},area:{type:Boolean},gradient:{type:Boolean},stacked:{type:Boolean},height:{default:220},grid:{type:Boolean,default:!0},points:{type:Boolean,default:!1},currency:{},prefix:{},suffix:{},maxLabels:{default:7},animated:{type:Boolean,default:!0}},setup(e){const t=e,r=(0,n.ref)(),{width:o,height:a,pad:l,innerWidth:i,innerHeight:s,flipX:c,isRTL:u}=zh(r,{height:(0,n.computed)(()=>t.height)}),{progress:d}=Yr({el:r,enabled:t.animated,duration:800}),f=(0,n.computed)(()=>iu(t.data,t.series,{labels:t.labels,defaultColor:t.color})),m=(0,n.computed)(()=>nh(f.value)),p=(0,n.computed)(()=>({currency:t.currency,prefix:t.prefix,suffix:t.suffix})),h=(0,n.computed)(()=>({...p.value,compact:!0})),y=(0,n.computed)(()=>t.stacked&&f.value.length>1),b=(0,n.computed)(()=>m.value.map((U,T)=>f.value.reduce((z,W)=>z+(W.points[T]?.y??0),0))),g=(0,n.computed)(()=>rh(y.value?Math.max(0,...b.value):Math.max(0,...Js(f.value)))),v=(0,n.computed)(()=>y.value?0:Math.min(0,...Js(f.value))),_=(0,n.computed)(()=>ga(0,Math.max(1,m.value.length-1),0,i.value)),w=(0,n.computed)(()=>ga(v.value,g.value,s.value,0)),k=(0,n.computed)(()=>t.grid?oh(v.value,g.value,4):[]),S=(0,n.computed)(()=>{const U=s.value,T=m.value.map(()=>0);return f.value.map((z,W)=>{const Y=Et(z.color,W);if(y.value){const se=m.value.map((H,G)=>T[G]),ie=m.value.map((H,G)=>T[G]+(z.points[G]?.y??0));ie.forEach((H,G)=>{T[G]=H});const ue=ie.map((H,G)=>({x:c(_.value(G)),y:w.value(H),p:z.points[G]??{label:m.value[G],y:H}})),we=ue.map((H,G)=>`${G===0?"M":"L"} ${H.x.toFixed(1)} ${H.y.toFixed(1)}`).join(" "),ce=[...se.map((H,G)=>({x:c(_.value(G)),y:w.value(H)}))].reverse().map(H=>`L ${H.x.toFixed(1)} ${H.y.toFixed(1)}`).join(" "),ke=ue.length?`${we} ${ce} Z`:"";return{name:z.name,color:Y,coords:ue,line:we,areaPath:ke}}const ne=z.points.map((se,ie)=>({x:c(_.value(ie)),y:w.value(se.y),p:se})),ve=ne.map((se,ie)=>`${ie===0?"M":"L"} ${se.x.toFixed(1)} ${se.y.toFixed(1)}`).join(" "),X=ne.length?`${ve} L ${ne[ne.length-1].x.toFixed(1)} ${U} L ${ne[0].x.toFixed(1)} ${U} Z`:"";return{name:z.name,color:Y,coords:ne,line:ve,areaPath:X}})}),E=(0,n.computed)(()=>t.area||y.value),$=(0,n.computed)(()=>E.value&&t.gradient!==!1),I=vi(),D=U=>`${I}-grad-${U}`,R=(0,n.computed)(()=>Math.max(1,Math.ceil(m.value.length/t.maxLabels))),M=(0,n.computed)(()=>(i.value+s.value)*2),N=(0,n.computed)(()=>M.value*(1-d.value)),A=(0,n.ref)(null),F=(0,n.ref)(0);function V(U){const T=r.value;if(!T||!m.value.length)return;const z=T.getBoundingClientRect();let W=U.clientX-z.left-l.value.left;u.value&&(W=i.value-W);const Y=Math.round(W/Math.max(1,i.value)*(m.value.length-1));A.value=Math.min(m.value.length-1,Math.max(0,Y)),F.value=U.clientX-z.left}function B(){A.value=null}const j=(0,n.computed)(()=>A.value==null?0:c(_.value(A.value))),Q=(0,n.computed)(()=>A.value==null?[]:S.value.map(U=>U.coords[A.value]).filter(Boolean).map((U,T)=>({x:U.x,y:U.y,color:S.value[T].color}))),K=(0,n.computed)(()=>A.value==null?[]:f.value.map((U,T)=>({name:U.name,color:Et(U.color,T),value:$t(U.points[A.value]?.y??0,p.value)}))),re=(0,n.computed)(()=>A.value==null?"":Ul(m.value[A.value])),O=(0,n.computed)(()=>A.value==null||!y.value?null:$t(f.value.reduce((U,T)=>U+(T.points[A.value]?.y??0),0),p.value)),P=(0,n.computed)(()=>({left:`${Math.min(Math.max(F.value,70),Math.max(70,o.value-70))}px`}));return(U,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"el",ref:r,class:"bgl-chart w-100p relative",style:(0,n.normalizeStyle)({height:`${(0,n.unref)(a)}px`}),onMousemove:V,onMouseleave:B},[(0,n.unref)(o)?((0,n.openBlock)(),(0,n.createElementBlock)("svg",{key:0,width:(0,n.unref)(o),height:(0,n.unref)(a),class:"display-block overflow-hidden"},[$.value?((0,n.openBlock)(),(0,n.createElementBlock)("defs",X$,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(S.value,(z,W)=>((0,n.openBlock)(),(0,n.createElementBlock)("linearGradient",{id:D(W),key:W,gradientUnits:"userSpaceOnUse",x1:0,y1:0,x2:0,y2:(0,n.unref)(s)},[(0,n.createElementVNode)("stop",{offset:"0%","stop-color":z.color,"stop-opacity":y.value?.9:.32},null,8,J$),(0,n.createElementVNode)("stop",{offset:"100%","stop-color":z.color,"stop-opacity":y.value?.15:.02},null,8,Z$)],8,K$))),128))])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("g",{transform:`translate(${(0,n.unref)(l).left}, ${(0,n.unref)(l).top})`},[e.grid?((0,n.openBlock)(),(0,n.createElementBlock)("g",eE,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(k.value,(z,W)=>((0,n.openBlock)(),(0,n.createElementBlock)("g",{key:W},[(0,n.createElementVNode)("line",{x1:0,x2:(0,n.unref)(i),y1:w.value(z),y2:w.value(z)},null,8,tE),(0,n.createElementVNode)("text",{class:"bgl-chart__ytick",x:-8,y:w.value(z)+3},(0,n.toDisplayString)((0,n.unref)($t)(z,h.value)),9,nE)]))),128))])):(0,n.createCommentVNode)("",!0),E.value?((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:1},(0,n.renderList)(S.value,(z,W)=>((0,n.openBlock)(),(0,n.createElementBlock)("path",{key:`a${W}`,d:z.areaPath,fill:$.value?`url(#${D(W)})`:(0,n.unref)(gi)(z.color,y.value?78:14),stroke:"none",opacity:(0,n.unref)(d)},null,8,rE))),128)):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(S.value,(z,W)=>((0,n.openBlock)(),(0,n.createElementBlock)("path",{key:`l${W}`,d:z.line,stroke:z.color,"stroke-width":"2.5",fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-dasharray":M.value,"stroke-dashoffset":N.value},null,8,oE))),128)),e.points?((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:2},(0,n.renderList)(S.value,(z,W)=>((0,n.openBlock)(),(0,n.createElementBlock)("g",{key:`p${W}`},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(z.coords,(Y,ne)=>((0,n.openBlock)(),(0,n.createElementBlock)("circle",{key:ne,cx:Y.x,cy:Y.y,r:"3.5",fill:z.color,class:"bgl-chart__pt",opacity:(0,n.unref)(d)},null,8,aE))),128))]))),128)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("g",lE,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(m.value,(z,W)=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:W,x:(0,n.unref)(c)(_.value(W)),y:(0,n.unref)(s)+16,"text-anchor":"middle"},(0,n.toDisplayString)((0,n.unref)(Ul)(z)),9,iE)),[[n.vShow,W%R.value===0]])),128))]),A.value!=null?((0,n.openBlock)(),(0,n.createElementBlock)("g",sE,[(0,n.createElementVNode)("line",{x1:j.value,x2:j.value,y1:0,y2:(0,n.unref)(s),class:"bgl-chart__crosshair"},null,8,cE),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(Q.value,(z,W)=>((0,n.openBlock)(),(0,n.createElementBlock)("circle",{key:W,cx:z.x,cy:z.y,r:"4",fill:z.color,class:"bgl-chart__hoverpt"},null,8,uE))),128))])):(0,n.createCommentVNode)("",!0)],8,Q$)],8,Y$)):(0,n.createCommentVNode)("",!0),A.value!=null?((0,n.openBlock)(),(0,n.createBlock)(ki,{key:1,style:(0,n.normalizeStyle)(P.value),label:re.value,rows:K.value,total:O.value},null,8,["style","label","rows","total"])):(0,n.createCommentVNode)("",!0)],36))}}),fE=ge(dE,[["__scopeId","data-v-81691af8"]]),mE={class:"bgl-chart-scroll w-100p overflow-x"},pE=["width","height"],hE={key:0},gE=["id"],vE=["stop-color"],yE=["stop-color"],bE=["transform"],_E={key:0,class:"bgl-chart__grid"},wE=["x2","y1","y2"],kE=["y"],$E=["x","y","width","height","rx","fill"],EE={class:"bgl-chart__xlabels"},CE=["x","y"],SE=(0,n.defineComponent)({__name:"BarChart",props:{data:{},series:{},labels:{},color:{},stacked:{type:Boolean},gradient:{type:Boolean},height:{default:220},grid:{type:Boolean,default:!0},radius:{default:4},currency:{},prefix:{},suffix:{},maxLabels:{default:12},minBarWidth:{default:28},animated:{type:Boolean,default:!0}},setup(e){const t=e,r=(0,n.ref)(),{width:o,height:a,pad:l,innerWidth:i,innerHeight:s,flipX:c}=zh(r,{height:(0,n.computed)(()=>t.height)}),{progress:u}=Yr({el:r,enabled:t.animated,duration:700}),d=(0,n.computed)(()=>iu(t.data,t.series,{labels:t.labels,defaultColor:t.color})),f=(0,n.computed)(()=>nh(d.value)),m=(0,n.computed)(()=>t.minBarWidth>0&&f.value.length?Math.ceil(f.value.length*t.minBarWidth+l.value.left+l.value.right):0),p=(0,n.computed)(()=>({currency:t.currency,prefix:t.prefix,suffix:t.suffix})),h=(0,n.computed)(()=>({...p.value,compact:!0})),y=(0,n.computed)(()=>f.value.map((j,Q)=>d.value.reduce((K,re)=>K+(re.points[Q]?.y??0),0))),b=(0,n.computed)(()=>rh(t.stacked?Math.max(0,...y.value):Math.max(0,...Js(d.value)))),g=(0,n.computed)(()=>ga(0,b.value,s.value,0)),v=(0,n.computed)(()=>t.grid?oh(0,b.value,4):[]),_=(0,n.computed)(()=>Lb(f.value.length,i.value,.3)),w=(0,n.computed)(()=>{const j=t.stacked?1:d.value.length,Q=_.value.bandWidth/j;return{width:Q,at:K=>K*Q}}),k=(0,n.computed)(()=>{const j=[];return f.value.forEach((Q,K)=>{const re=_.value.start(K);let O=s.value;d.value.forEach((P,U)=>{const T=P.points[K]?.y??0,z=Et(P.color,U),W=s.value-g.value(T),Y=W*u.value,ne=w.value.width,ve=t.stacked?re:re+w.value.at(U),X=t.stacked?O-Y:s.value-Y;t.stacked&&(O-=W),j.push({x:c(ve+ne/2)-ne/2,y:X,w:ne,h:Y,color:z,cat:K})})}),j}),S=(0,n.computed)(()=>Math.max(1,Math.ceil(f.value.length/t.maxLabels))),E=vi("bar"),$=(0,n.computed)(()=>[...new Set(k.value.map(j=>j.color))]),I=j=>`${E}-${$.value.indexOf(j)}`,D=(0,n.ref)(null),R=(0,n.ref)(0);function M(j){const Q=r.value;if(!Q||!f.value.length)return;const K=Q.getBoundingClientRect();let re=j.clientX-K.left-l.value.left;c(0)!==0&&(re=i.value-re);const O=Math.floor(re/Math.max(1,i.value)*f.value.length);D.value=Math.min(f.value.length-1,Math.max(0,O)),R.value=j.clientX-K.left}function N(){D.value=null}const A=(0,n.computed)(()=>D.value==null?"":Ul(f.value[D.value])),F=(0,n.computed)(()=>D.value==null?[]:d.value.map((j,Q)=>({name:j.name,color:Et(j.color,Q),value:$t(j.points[D.value]?.y??0,p.value)}))),V=(0,n.computed)(()=>D.value==null||!t.stacked?null:$t(y.value[D.value]??0,p.value)),B=(0,n.computed)(()=>({left:`${Math.min(Math.max(R.value,70),Math.max(70,o.value-70))}px`}));return(j,Q)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",mE,[(0,n.createElementVNode)("div",{ref_key:"el",ref:r,class:"bgl-chart relative",style:(0,n.normalizeStyle)({height:`${(0,n.unref)(a)}px`,minWidth:m.value?`${m.value}px`:void 0}),onMousemove:M,onMouseleave:N},[(0,n.unref)(o)?((0,n.openBlock)(),(0,n.createElementBlock)("svg",{key:0,width:(0,n.unref)(o),height:(0,n.unref)(a),class:"display-block overflow-hidden"},[e.gradient?((0,n.openBlock)(),(0,n.createElementBlock)("defs",hE,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)($.value,K=>((0,n.openBlock)(),(0,n.createElementBlock)("linearGradient",{id:I(K),key:K,x1:"0",y1:"0",x2:"0",y2:"1"},[(0,n.createElementVNode)("stop",{offset:"0%","stop-color":K,"stop-opacity":"1"},null,8,vE),(0,n.createElementVNode)("stop",{offset:"100%","stop-color":K,"stop-opacity":"0.55"},null,8,yE)],8,gE))),128))])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("g",{transform:`translate(${(0,n.unref)(l).left}, ${(0,n.unref)(l).top})`},[e.grid?((0,n.openBlock)(),(0,n.createElementBlock)("g",_E,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(v.value,(K,re)=>((0,n.openBlock)(),(0,n.createElementBlock)("g",{key:re},[(0,n.createElementVNode)("line",{x1:0,x2:(0,n.unref)(i),y1:g.value(K),y2:g.value(K)},null,8,wE),(0,n.createElementVNode)("text",{class:"bgl-chart__ytick",x:-8,y:g.value(K)+3},(0,n.toDisplayString)((0,n.unref)($t)(K,h.value)),9,kE)]))),128))])):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(k.value,(K,re)=>((0,n.openBlock)(),(0,n.createElementBlock)("rect",{key:re,x:K.x,y:K.y,width:Math.max(0,K.w),height:Math.max(0,K.h),rx:Math.min(e.radius,K.w/2),fill:e.gradient?`url(#${I(K.color)})`:K.color,class:(0,n.normalizeClass)(["bgl-chart__bar",{"is-dim opacity-5":D.value!=null&&D.value!==K.cat}])},null,10,$E))),128)),(0,n.createElementVNode)("g",EE,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(f.value,(K,re)=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:re,x:(0,n.unref)(c)(_.value.center(re)),y:(0,n.unref)(s)+16,"text-anchor":"middle"},(0,n.toDisplayString)((0,n.unref)(Ul)(K)),9,CE)),[[n.vShow,re%S.value===0]])),128))])],8,bE)],8,pE)):(0,n.createCommentVNode)("",!0),D.value!=null?((0,n.openBlock)(),(0,n.createBlock)(ki,{key:1,style:(0,n.normalizeStyle)(B.value),label:A.value,rows:F.value,total:V.value},null,8,["style","label","rows","total"])):(0,n.createCommentVNode)("",!0)],36)]))}}),xE=ge(SE,[["__scopeId","data-v-4c147136"]]),TE=["width","height","viewBox"],NE=["d","fill","onMouseenter"],BE=["x","y"],DE=["x"],AE=["x","dy"],ME=["x","dy"],LE={key:0,class:"absolute-fill flex-center column pointer-events-none gap-025"},PE={key:0,class:"semibold txt20 line-height-1"},IE={key:1,class:"color-gray txt12"},VE={key:0,class:"bgl-donut__legend grid gap-025"},OE={class:"bgl-donut__legname ms-0 me-auto my-0 p-0"},RE={key:0,class:"semibold tabular-nums"},FE={key:1,class:"bgl-donut__legpct color-gray tabular-nums txt-end"},zE=(0,n.defineComponent)({name:"BglDonut",__name:"Donut",props:{data:{},size:{default:180},thickness:{default:.38},pie:{type:Boolean},legend:{type:Boolean,default:!0},legendValue:{type:Boolean,default:!0},legendPct:{type:Boolean,default:!0},color:{default:"primary"},mode:{default:"shades"},centerLabel:{},centerValue:{},showTotal:{type:Boolean,default:!1},currency:{},labels:{type:[Boolean,String],default:!1},labelMinShare:{default:.05},animated:{type:Boolean,default:!0}},setup(e){const t=e,{$t:r}=nt(),o=(0,n.ref)(),{progress:a}=Yr({el:o,enabled:t.animated,duration:800}),l=(0,n.computed)(()=>({currency:t.currency,compact:!0}));function i(S){return $t(S,{currency:t.currency,compact:!0})}const s=(0,n.computed)(()=>t.data.reduce((S,E)=>S+Math.max(0,E.value),0)||1),c=(0,n.computed)(()=>t.size/2),u=(0,n.computed)(()=>t.pie?0:c.value*(1-t.thickness)),d=(0,n.computed)(()=>{const S=c.value,E=u.value,$=S,I=S,D=E+(S-E)*.68;let R=-Math.PI/2;return t.data.map((M,N)=>{const A=Math.max(0,M.value)/s.value,F=A*Math.PI*2*a.value,V=R,B=R+F;R=B;const j=(V+B)/2,Q=F>Math.PI?1:0,K=$+S*Math.cos(V),re=I+S*Math.sin(V),O=$+S*Math.cos(B),P=I+S*Math.sin(B);let U;E>0?U=`M ${K} ${re} A ${S} ${S} 0 ${Q} 1 ${O} ${P} L ${$+E*Math.cos(B)} ${I+E*Math.sin(B)} A ${E} ${E} 0 ${Q} 0 ${$+E*Math.cos(V)} ${I+E*Math.sin(V)} Z`:U=`M ${$} ${I} L ${K} ${re} A ${S} ${S} 0 ${Q} 1 ${O} ${P} Z`;const T=M.color?Et(M.color):t.mode==="multi"?Et(void 0,N):su(t.color,t.data.length,N),z=A*100,W=!!t.labels&&A>=t.labelMinShare;return{d:U,color:T,label:M.label,value:M.value,pct:z,lx:$+D*Math.cos(j),ly:I+D*Math.sin(j),tagged:W,tagName:W&&t.labels==="full"?M.label:"",tagValue:W&&t.labels!=="pct"?i(M.value):"",tagPct:W&&t.labels!=="value"?`${z.toFixed(0)}%`:""}})}),f=(0,n.computed)(()=>t.centerValue!==void 0?String(t.centerValue):t.showTotal?$t(s.value,l.value):""),m=(0,n.ref)(null),p=(0,n.ref)(0),h=(0,n.ref)(0);function y(S){m.value=S}function b(){m.value=null}function g(S){const E=S.currentTarget.getBoundingClientRect();p.value=S.clientX-E.left,h.value=S.clientY-E.top}const v=(0,n.computed)(()=>m.value==null?null:d.value[m.value]),_=(0,n.computed)(()=>v.value?i(v.value.value):""),w=(0,n.computed)(()=>v.value?[{label:r("charts.share"),value:`${v.value.pct.toFixed(0)}%`}]:[]),k=(0,n.computed)(()=>({left:`${p.value}px`,top:`${h.value}px`}));return(S,E)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"el",ref:o,class:(0,n.normalizeClass)(["bgl-donut w-100p inline-flex gap-1",e.legend?"row flex-wrap justify-content-center":"column"])},[(0,n.createElementVNode)("div",{class:"bgl-donut__chart relative flex-shrink-0",style:(0,n.normalizeStyle)({width:`${e.size}px`,height:`${e.size}px`}),onMousemove:g,onMouseleave:b},[((0,n.openBlock)(),(0,n.createElementBlock)("svg",{width:e.size,height:e.size,viewBox:`0 0 ${e.size} ${e.size}`},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(d.value,($,I)=>((0,n.openBlock)(),(0,n.createElementBlock)("path",{key:I,d:$.d,fill:$.color,class:(0,n.normalizeClass)(["bgl-donut__slice cursor-pointer",{"opacity-5":m.value!=null&&m.value!==I}]),onMouseenter:D=>y(I)},null,42,NE))),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(d.value,($,I)=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:`t${I}`,x:$.lx,y:$.ly,class:"bgl-donut__tag pointer-events-none","text-anchor":"middle","dominant-baseline":"central"},[$.tagName?((0,n.openBlock)(),(0,n.createElementBlock)("tspan",{key:0,x:$.lx,dy:"-0.7em",class:"bgl-donut__tag-name opacity-9 txt-medium txt-0625rem"},(0,n.toDisplayString)($.tagName),9,DE)):(0,n.createCommentVNode)("",!0),$.tagValue?((0,n.openBlock)(),(0,n.createElementBlock)("tspan",{key:1,x:$.lx,dy:$.tagName?"1.15em":"0",class:"bgl-donut__tag-val txt-bold txt-0875rem"},(0,n.toDisplayString)($.tagValue),9,AE)):(0,n.createCommentVNode)("",!0),$.tagPct?((0,n.openBlock)(),(0,n.createElementBlock)("tspan",{key:2,x:$.lx,dy:$.tagName||$.tagValue?"1.5em":"0",class:"bgl-donut__tag-pct opacity-9 txt-05rem"},(0,n.toDisplayString)($.tagPct),9,ME)):(0,n.createCommentVNode)("",!0)],8,BE)),[[n.vShow,$.tagged]])),128))],8,TE)),!e.pie&&(f.value||e.centerLabel)?((0,n.openBlock)(),(0,n.createElementBlock)("div",LE,[f.value?((0,n.openBlock)(),(0,n.createElementBlock)("span",PE,(0,n.toDisplayString)(f.value),1)):(0,n.createCommentVNode)("",!0),e.centerLabel?((0,n.openBlock)(),(0,n.createElementBlock)("span",IE,(0,n.toDisplayString)(e.centerLabel),1)):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),v.value?((0,n.openBlock)(),(0,n.createBlock)(ki,{key:1,above:"",style:(0,n.normalizeStyle)(k.value),label:v.value.label,hero:_.value,stats:w.value},null,8,["style","label","hero","stats"])):(0,n.createCommentVNode)("",!0)],36),e.legend?((0,n.openBlock)(),(0,n.createElementBlock)("ul",VE,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(d.value,($,I)=>((0,n.openBlock)(),(0,n.createElementBlock)("li",{key:I,class:"flex gap-05 txt13"},[(0,n.createElementVNode)("span",{class:"bgl-donut__dot flex-shrink-0",style:(0,n.normalizeStyle)({background:$.color})},null,4),(0,n.createElementVNode)("span",OE,(0,n.toDisplayString)($.label),1),e.legendValue?((0,n.openBlock)(),(0,n.createElementBlock)("span",RE,(0,n.toDisplayString)(i($.value)),1)):(0,n.createCommentVNode)("",!0),e.legendPct?((0,n.openBlock)(),(0,n.createElementBlock)("span",FE,(0,n.toDisplayString)($.pct.toFixed(0))+"%",1)):(0,n.createCommentVNode)("",!0)]))),128))])):(0,n.createCommentVNode)("",!0)],2))}}),UE=ge(zE,[["__scopeId","data-v-cc8ed2e8"]]),HE=["viewBox"],WE={key:0},jE=["id","x2","y2"],qE=["stop-color"],GE=["stop-color"],YE=["d","fill","onMouseenter"],XE=["d","fill"],KE=["d","onMouseenter"],JE={class:"bgl-funnel__axis"},ZE=["title"],QE={class:"bgl-funnel__val txt13"},eC={key:1,class:"bgl-funnel__legend flex flex-wrap justify-content-center"},tC=["title"],nC={class:"bgl-funnel__bar-wrap flex justify-content-center"},rC={class:"bgl-funnel__val semibold"},ol=100,oC=1,aC=(0,n.defineComponent)({name:"BglFunnel",__name:"Funnel",props:{data:{},stages:{},series:{},flow:{type:Boolean,default:!0},orientation:{default:"vertical"},color:{default:"primary"},mode:{default:"shades"},gradient:{type:Boolean,default:!0},bandHeight:{default:52},fromPrev:{type:Boolean,default:!0},fromTop:{type:Boolean,default:!0},currency:{},prefix:{},suffix:{},animated:{type:Boolean,default:!0}},setup(e){const t=e,r=(0,n.ref)(),{progress:o}=Yr({el:r,enabled:t.animated,duration:700}),a=(0,n.computed)(()=>({currency:t.currency,prefix:t.prefix,suffix:t.suffix})),l=vi("funnel"),i=(0,n.computed)(()=>!!t.series?.length),s=(0,n.computed)(()=>(t.series??[]).map((N,A)=>({name:N.name,color:Et(N.color,A)}))),c=(0,n.computed)(()=>i.value?(t.stages??[]).map((N,A)=>({label:String(N),value:(t.series??[]).reduce((F,V)=>F+(V.data[A]??0),0)})):t.data??[]),u=(0,n.computed)(()=>{const N=c.value[0]?.value||1;return c.value.map((A,F)=>{const V=c.value[F-1]?.value,B=A.color?Et(A.color):t.mode==="multi"?Et(void 0,F):su(t.color,c.value.length,F),j=A.value/N*100,Q=V?A.value/V*100:100,K=F===0,re=[`<b>${$t(A.value,a.value)}</b>`];!K&&t.fromTop&&re.push(`${j.toFixed(1)}% of top`),!K&&t.fromPrev&&re.push(`${Q.toFixed(1)}% from previous`),i.value&&(t.series??[]).forEach(P=>{const U=P.data[F]??0;U>0&&re.push(`<span style="opacity:.7">${P.name}:</span> ${$t(U,a.value)}`)});const O=i.value?(t.series??[]).map((P,U)=>({name:P.name,color:s.value[U].color,value:$t(P.data[F]??0,a.value),raw:P.data[F]??0})).filter(P=>P.raw>0):[{name:A.label,color:B,value:$t(A.value,a.value),raw:A.value}];return{label:A.label,value:A.value,display:$t(A.value,a.value),frac:A.value/N,fromTop:j,fromPrev:Q,isFirst:K,color:B,rows:O,tip:`<div style="text-align:center">${A.label}<br>${re.join("<br>")}</div>`,barFill:t.gradient?`linear-gradient(90deg, color-mix(in srgb, ${B} 82%, black), ${B})`:B}})}),d=(0,n.computed)(()=>t.orientation==="horizontal"),f=(0,n.computed)(()=>u.value.length*t.bandHeight),m=(0,n.computed)(()=>d.value?f.value:ol),p=(0,n.computed)(()=>d.value?ol:f.value);function h(N,A){const F=ol/2+A;return d.value?`${N} ${F}`:`${F} ${N}`}function y(N){return(ol/2-oC)*N*o.value+.4}function b(N,A,F,V,B,j){const Q=(N+A)/2;return`M ${h(N,F)} L ${h(N,V)} C ${h(Q,V)} ${h(Q,j)} ${h(A,j)} L ${h(A,B)} C ${h(Q,B)} ${h(Q,F)} ${h(N,F)} Z`}const g=(0,n.computed)(()=>{const N=t.bandHeight;return u.value.map((A,F)=>{const V=u.value[F+1]??A,B=F*N,j=(F+1)*N,Q=y(A.frac),K=y(V.frac);return{...A,path:b(B,j,-Q,Q,-K,K),gradId:`${l}-${F}`}})}),v=(0,n.computed)(()=>{if(!i.value)return[];const N=t.bandHeight,A=t.series??[],F=[];return u.value.forEach((V,B)=>{const j=B===u.value.length-1,Q=u.value[B+1]??V,K=B*N,re=(B+1)*N,O=V.value||1,P=Q.value||1,U=-y(V.frac),T=y(V.frac)*2,z=-y(Q.frac),W=y(Q.frac)*2;let Y=0,ne=0;A.forEach((ve,X)=>{const se=(ve.data[B]??0)/O,ie=j?se:(ve.data[B+1]??0)/P,ue=U+Y*T,we=U+(Y+se)*T,ce=z+ne*W,ke=z+(ne+ie)*W;Y+=se,ne+=ie,F.push({path:b(K,re,ue,we,ce,ke),color:s.value[X].color,key:`${B}-${X}`})})}),F}),_=(0,n.ref)(null),w=(0,n.ref)(0),k=(0,n.ref)(0);function S(N){_.value=N}function E(){_.value=null}function $(N){const A=N.currentTarget.getBoundingClientRect();w.value=N.clientX-A.left,k.value=N.clientY-A.top}const I=(0,n.computed)(()=>_.value==null?null:u.value[_.value]),D=(0,n.computed)(()=>{const N=I.value;if(!N)return[];const A=[];return!N.isFirst&&t.fromPrev&&A.push({label:"From previous",value:`${N.fromPrev.toFixed(1)}%`}),!N.isFirst&&t.fromTop&&A.push({label:"Of top",value:`${N.fromTop.toFixed(1)}%`}),A}),R=(0,n.computed)(()=>{const N=I.value;return N&&i.value?N.display:null}),M=(0,n.computed)(()=>({left:`${w.value}px`,top:`${k.value}px`}));return(N,A)=>{const F=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"el",ref:r,class:(0,n.normalizeClass)(["bgl-funnel w-100p relative",[{"bgl-funnel--bars":!e.flow},e.flow?`bgl-funnel--${e.orientation}`:""]])},[e.flow?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"bgl-funnel__flow relative",onMousemove:$,onMouseleave:E},[((0,n.openBlock)(),(0,n.createElementBlock)("svg",{class:"bgl-funnel__svg display-block",viewBox:`0 0 ${m.value} ${p.value}`,style:(0,n.normalizeStyle)(d.value?{height:`${e.bandHeight*3}px`}:{height:`${p.value}px`}),preserveAspectRatio:"none"},[e.gradient&&!i.value?((0,n.openBlock)(),(0,n.createElementBlock)("defs",WE,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(g.value,(V,B)=>((0,n.openBlock)(),(0,n.createElementBlock)("linearGradient",{id:V.gradId,key:B,x1:0,y1:0,x2:d.value?0:1,y2:d.value?1:0},[(0,n.createElementVNode)("stop",{offset:"0%","stop-color":`color-mix(in srgb, ${V.color} 78%, black)`},null,8,qE),(0,n.createElementVNode)("stop",{offset:"100%","stop-color":V.color},null,8,GE)],8,jE))),128))])):(0,n.createCommentVNode)("",!0),i.value?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:2},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(v.value,V=>((0,n.openBlock)(),(0,n.createElementBlock)("path",{key:V.key,d:V.path,fill:V.color,class:"bgl-funnel__sub"},null,8,XE))),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(g.value,(V,B)=>((0,n.openBlock)(),(0,n.createElementBlock)("path",{key:`hit${B}`,d:V.path,fill:"transparent",class:"bgl-funnel__hit",onMouseenter:j=>S(B)},null,40,KE))),128))],64)):((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:1},(0,n.renderList)(g.value,(V,B)=>((0,n.openBlock)(),(0,n.createElementBlock)("path",{key:B,d:V.path,fill:e.gradient?`url(#${V.gradId})`:V.color,class:(0,n.normalizeClass)(["bgl-funnel__seg",{"is-dim opacity-5":_.value!=null&&_.value!==B}]),onMouseenter:j=>S(B)},null,42,YE))),128))],12,HE)),I.value?((0,n.openBlock)(),(0,n.createBlock)(ki,{key:0,above:"",style:(0,n.normalizeStyle)(M.value),label:I.value.label,hero:i.value?void 0:I.value.display,rows:i.value?I.value.rows:[],total:i.value?R.value:null,stats:D.value},null,8,["style","label","hero","rows","total","stats"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",JE,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(g.value,(V,B)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:B,class:"bgl-funnel__tick",style:(0,n.normalizeStyle)(d.value?{flex:"1 1 0"}:{height:`${e.bandHeight}px`})},[(0,n.createElementVNode)("span",{class:"bgl-funnel__name ellipsis-1 txt14",title:V.label},(0,n.toDisplayString)(V.label),9,ZE),(0,n.createElementVNode)("span",QE,(0,n.toDisplayString)(V.display),1)],4))),128))])],32)):(0,n.createCommentVNode)("",!0),e.flow&&i.value?((0,n.openBlock)(),(0,n.createElementBlock)("ul",eC,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(s.value,(V,B)=>((0,n.openBlock)(),(0,n.createElementBlock)("li",{key:B,class:"flex align-items-center"},[(0,n.createElementVNode)("span",{class:"bgl-funnel__dot",style:(0,n.normalizeStyle)({background:V.color})},null,4),(0,n.createTextVNode)((0,n.toDisplayString)(V.name),1)]))),128))])):(0,n.createCommentVNode)("",!0),e.flow?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:2},(0,n.renderList)(u.value,(V,B)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:B,class:"bgl-funnel__stage"},[(0,n.createElementVNode)("span",{class:"bgl-funnel__name txt-0875rem ellipsis-1",title:V.label},(0,n.toDisplayString)(V.label),9,tC),(0,n.createElementVNode)("div",nC,[(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"bgl-funnel__bar flex flex-center",style:(0,n.normalizeStyle)({width:`${Math.max(4,V.fromTop)}%`,background:V.barFill})},[(0,n.createElementVNode)("span",rC,(0,n.toDisplayString)(V.display),1)],4)),[[F,{content:V.tip,html:!0}]])])]))),128))],2)}}}),lC=ge(aC,[["__scopeId","data-v-29102f34"]]),iC=["width","height","viewBox"],sC=["d","stroke","stroke-width"],cC=["d","stroke","stroke-width"],uC={key:0,class:"absolute-fill flex-center column pointer-events-none gap-025"},dC={key:0,class:"semibold txt24 line-height-1"},fC={key:1,class:"color-gray txt12"},mC=(0,n.defineComponent)({name:"BglGauge",__name:"Gauge",props:{value:{},max:{default:100},min:{default:0},size:{default:160},thickness:{default:12},color:{},label:{},full:{type:Boolean},showValue:{type:Boolean,default:!0},prefix:{},suffix:{},animated:{type:Boolean,default:!0}},setup(e){const t=e,r=(0,n.ref)(),{progress:o}=Yr({el:r,enabled:t.animated,duration:900}),a=(0,n.computed)(()=>Et(t.color)),l=(0,n.computed)(()=>(t.size-t.thickness)/2),i=(0,n.computed)(()=>t.size/2),s=(0,n.computed)(()=>t.full?360:270),c=(0,n.computed)(()=>t.full?-90:135),u=(0,n.computed)(()=>{const y=t.max-t.min||1;return Math.min(1,Math.max(0,(t.value-t.min)/y))});function d(y){const b=y*Math.PI/180;return{x:i.value+l.value*Math.cos(b),y:i.value+l.value*Math.sin(b)}}function f(y){const b=s.value*y;if(b<=0)return"";const g=c.value,v=c.value+b,_=d(g),w=d(v),k=b>180?1:0;return`M ${_.x} ${_.y} A ${l.value} ${l.value} 0 ${k} 1 ${w.x} ${w.y}`}const m=(0,n.computed)(()=>f(1)),p=(0,n.computed)(()=>f(u.value*o.value)),h=(0,n.computed)(()=>$t(t.value,{prefix:t.prefix,suffix:t.suffix}));return(y,b)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"el",ref:r,class:"bgl-gauge relative inline-block",style:(0,n.normalizeStyle)({width:`${e.size}px`,height:`${e.size}px`})},[((0,n.openBlock)(),(0,n.createElementBlock)("svg",{width:e.size,height:e.size,viewBox:`0 0 ${e.size} ${e.size}`,class:"display-block"},[(0,n.createElementVNode)("path",{d:m.value,stroke:(0,n.unref)(gi)(a.value,14),"stroke-width":e.thickness,fill:"none","stroke-linecap":"round"},null,8,sC),(0,n.createElementVNode)("path",{d:p.value,stroke:a.value,"stroke-width":e.thickness,fill:"none","stroke-linecap":"round"},null,8,cC)],8,iC)),e.showValue||e.label?((0,n.openBlock)(),(0,n.createElementBlock)("div",uC,[e.showValue?((0,n.openBlock)(),(0,n.createElementBlock)("span",dC,(0,n.toDisplayString)(h.value),1)):(0,n.createCommentVNode)("",!0),e.label?((0,n.openBlock)(),(0,n.createElementBlock)("span",fC,(0,n.toDisplayString)(e.label),1)):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0)],4))}}),pC=ge(mC,[["__scopeId","data-v-3400bb99"]]),hC=["width","height","viewBox"],gC=["d","stroke","stroke-width"],vC=["d","stroke","stroke-width","stroke-dasharray","transform"],yC={key:0,class:"bgl-radial__legend grid gap-05 m-0 min-w-0"},bC={class:"bgl-radial__val semibold tabular-nums ms-auto"},_C=(0,n.defineComponent)({__name:"RadialBars",props:{data:{},max:{default:100},size:{default:180},thickness:{default:14},gap:{default:6},legend:{type:Boolean,default:!0},suffix:{default:"%"},animated:{type:Boolean,default:!0}},setup(e){const t=e,r=(0,n.ref)(),{progress:o}=Yr({el:r,enabled:t.animated,duration:900}),a=(0,n.computed)(()=>t.size/2);function l(s){const c=a.value;return`M ${c} ${c-s} A ${s} ${s} 0 1 1 ${c-.001} ${c-s} Z`}const i=(0,n.computed)(()=>t.data.map((s,c)=>{const u=a.value-t.thickness/2-c*(t.thickness+t.gap),d=s.max??t.max,f=Math.min(1,Math.max(0,s.value/(d||1))),m=2*Math.PI*u;return{path:l(u),color:Et(s.color,c),label:s.label,display:`${s.value}${t.suffix}`,circ:m,filled:m*f*o.value}}));return(s,c)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"el",ref:r,class:(0,n.normalizeClass)(["bgl-radial inline-flex gap-1",e.legend?"row":"column"])},[((0,n.openBlock)(),(0,n.createElementBlock)("svg",{width:e.size,height:e.size,viewBox:`0 0 ${e.size} ${e.size}`,class:"bgl-radial__svg flex-shrink-0"},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(i.value,(u,d)=>((0,n.openBlock)(),(0,n.createElementBlock)("g",{key:d},[(0,n.createElementVNode)("path",{d:u.path,stroke:(0,n.unref)(gi)(u.color,14),"stroke-width":e.thickness,fill:"none","stroke-linecap":"round"},null,8,gC),(0,n.createElementVNode)("path",{d:u.path,stroke:u.color,"stroke-width":e.thickness,fill:"none","stroke-linecap":"round","stroke-dasharray":`${u.filled} ${u.circ}`,transform:`rotate(-90 ${a.value} ${a.value})`},null,8,vC)]))),128))],8,hC)),e.legend?((0,n.openBlock)(),(0,n.createElementBlock)("ul",yC,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(i.value,(u,d)=>((0,n.openBlock)(),(0,n.createElementBlock)("li",{key:d,class:"flex align-items-center gap-05 txt13"},[(0,n.createElementVNode)("span",{class:"bgl-radial__dot flex-shrink-0",style:(0,n.normalizeStyle)({background:u.color})},null,4),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(u.label),1),(0,n.createElementVNode)("span",bC,(0,n.toDisplayString)(u.display),1)]))),128))])):(0,n.createCommentVNode)("",!0)],2))}}),wC=ge(_C,[["__scopeId","data-v-74f89de2"]]),kC={class:"bgl-rank grid w-100p gap-05"},$C=["title"],EC={class:"bgl-rank__track overflow-hidden round"},CC={class:"txt13 tabular-nums semibold"},SC=(0,n.defineComponent)({__name:"RankBars",props:{data:{},color:{default:"primary"},mode:{default:"shades"},maxRows:{},sort:{type:Boolean,default:!0},currency:{},prefix:{},suffix:{}},setup(e){const t=e,r=(0,n.computed)(()=>({currency:t.currency,prefix:t.prefix,suffix:t.suffix})),o=(0,n.computed)(()=>{let a=[...t.data];t.sort&&a.sort((i,s)=>s.value-i.value),t.maxRows&&(a=a.slice(0,t.maxRows));const l=Math.max(1,...a.map(i=>i.value));return a.map((i,s)=>({label:i.label,value:i.value,display:$t(i.value,r.value),pct:i.value/l*100,color:i.color?Et(i.color):t.mode==="multi"?Et(void 0,s):su(t.color,a.length,s)}))});return(a,l)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",kC,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(o.value,(i,s)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:s,class:"bgl-rank__row align-items-center grid gap-075"},[(0,n.createElementVNode)("span",{class:"bgl-rank__label ellipsis-1 txt14",title:i.label},(0,n.toDisplayString)(i.label),9,$C),(0,n.createElementVNode)("span",EC,[(0,n.createElementVNode)("span",{class:"bgl-rank__bar display-block round",style:(0,n.normalizeStyle)({width:`${i.pct}%`,background:i.color})},null,4)]),(0,n.createElementVNode)("span",CC,(0,n.toDisplayString)(i.display),1)]))),128))]))}}),xC=ge(SC,[["__scopeId","data-v-3602f07a"]]),TC={key:0,class:"card_label block label"},NC={key:1,class:"card_header flex space-between align-items-center w-100p"},BC={key:0,class:"card_header_start flex align-items-center gap-05"},DC={class:"card_header_main flex-grow w-100p"},AC={class:"card_header_title"},MC={key:1,class:"card_header_action flex align-items-center gap-05"},LC={key:2,class:"card_footer flex space-between align-items-center"},PC={key:0,class:"card_footer_start flex align-items-center gap-05"},IC={class:"card_footer_main flex-grow"},VC={key:1,class:"card_footer_end flex align-items-center gap-05"},OC=(0,n.defineComponent)({name:"BglCard",__name:"Card",props:{label:{},title:{},thin:{type:Boolean},outline:{type:Boolean},h100:{type:Boolean},to:{},href:{},overflowX:{type:Boolean},overflowY:{type:Boolean},frame:{type:Boolean},color:{},gradient:{type:[Boolean,String]},gradientDir:{},bg:{}},setup(e){const t=(0,n.useSlots)(),r=e,{isGradient:o,gradientStyle:a}=zi({gradient:()=>r.gradient,gradientDir:()=>r.gradientDir,color:()=>r.color}),l=(0,n.computed)(()=>o.value?`pair-${r.color||"primary"}`:void 0),i=(0,n.computed)(()=>{const d={};return r.href!==void 0&&r.href!==""?d.href=r.href:r.to!==void 0&&r.to!==""&&(d.to=r.to),d}),s=(0,n.computed)(()=>r.href!==void 0&&r.href!==""?"a":r.to!==void 0&&r.to!==""?"router-link":"div"),c=(0,n.computed)(()=>!!(r.title||t.header||t["header-action"]||t["top-start"]||t["top-end"])),u=(0,n.computed)(()=>!!(t.footer||t["bottom-start"]||t["bottom-end"]));return(d,f)=>{const m=(0,n.resolveDirective)("ripple");return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(s.value),(0,n.mergeProps)(i.value,{class:["bgl_card",[{thin:e.thin,"border bg-transparent":e.outline,"h-100":e.h100,[e.bg||""]:e.bg,"overflow-x":e.overflowX,"overflow-y":e.overflowY,card_frame:e.frame,gradient:(0,n.unref)(o)},l.value]],style:(0,n.unref)(a)}),{default:(0,n.withCtx)(()=>[e.label?((0,n.openBlock)(),(0,n.createElementBlock)("span",TC,(0,n.toDisplayString)(e.label),1)):(0,n.createCommentVNode)("",!0),c.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",NC,[d.$slots["top-start"]?((0,n.openBlock)(),(0,n.createElementBlock)("span",BC,[(0,n.renderSlot)(d.$slots,"top-start")])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",DC,[(0,n.renderSlot)(d.$slots,"header",{},()=>[(0,n.createElementVNode)("span",AC,(0,n.toDisplayString)(e.title),1)])]),d.$slots["top-end"]||d.$slots["header-action"]?((0,n.openBlock)(),(0,n.createElementBlock)("span",MC,[(0,n.renderSlot)(d.$slots,"top-end",{},()=>[(0,n.renderSlot)(d.$slots,"header-action")])])):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(d.$slots,"default"),u.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",LC,[d.$slots["bottom-start"]?((0,n.openBlock)(),(0,n.createElementBlock)("span",PC,[(0,n.renderSlot)(d.$slots,"bottom-start")])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",IC,[(0,n.renderSlot)(d.$slots,"footer")]),d.$slots["bottom-end"]?((0,n.openBlock)(),(0,n.createElementBlock)("span",VC,[(0,n.renderSlot)(d.$slots,"bottom-end")])):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0)]),_:3},16,["class","style"])),[[m,!!e.to]])}}}),sr=OC;const dc=["trash-can","message","file-lines","calendar-days","hand-point-right","face-smile-beam","face-grin-stars","address-book","comments","paste","face-grin-tongue-squint","face-flushed","square-caret-right","square-minus","compass","square-caret-down","face-kiss-beam","lightbulb","flag","square-check","circle-dot","face-dizzy","futbol","pen-to-square","hourglass-half","eye-slash","hand","hand-spock","face-kiss","face-grin-tongue","chess-bishop","face-grin-wink","face-grin-wide","face-frown-open","hand-point-up","bookmark","hand-point-down","folder","user","square-caret-left","star","chess-knight","face-laugh-squint","face-laugh","folder-open","clipboard","chess-queen","hand-back-fist","square-caret-up","chart-bar","window-restore","square-plus","image","folder-closed","lemon","handshake","gem","circle-play","circle-check","circle-stop","id-badge","face-laugh-beam","registered","address-card","face-tired","font-awesome","face-smile-wink","file-word","file-powerpoint","envelope-open","file-zipper","square","snowflake","newspaper","face-kiss-wink-heart","star-half-stroke","file-excel","face-grin-beam","object-ungroup","circle-right","face-rolling-eyes","object-group","heart","face-surprise","circle-pause","circle","circle-up","file-audio","file-image","circle-question","face-meh-blank","eye","face-sad-cry","file-code","window-maximize","face-frown","floppy-disk","comment-dots","face-grin-squint","hand-pointer","hand-scissors","face-grin-tears","calendar-xmark","file-video","file-pdf","comment","envelope","hourglass","calendar-check","hard-drive","face-grin-squint-tears","rectangle-list","calendar-plus","circle-left","money-bill-1","clock","keyboard","closed-captioning","images","face-grin","face-meh","id-card","sun","face-laugh-wink","circle-down","thumbs-down","chess-pawn","credit-card","bell","file","hospital","chess-rook","star-half","chess-king","circle-user","copy","share-from-square","copyright","map","bell-slash","hand-lizard","face-smile","hand-peace","face-grin-hearts","building","face-grin-beam-sweat","moon","calendar","face-grin-tongue-wink","clone","face-angry","rectangle-xmark","paper-plane","life-ring","face-grimace","calendar-minus","circle-xmark","thumbs-up","window-minimize","square-full","note-sticky","face-sad-tear","hand-point-left"],$l=["monero","hooli","yelp","cc-visa","lastfm","shopware","creative-commons-nc","aws","redhat","yoast","cloudflare","ups","pixiv","wpexplorer","dyalog","bity","stackpath","buysellads","first-order","modx","guilded","vnv","square-js","microsoft","qq","orcid","java","invision","creative-commons-pd-alt","centercode","glide-g","drupal","jxl","dart-lang","hire-a-helper","creative-commons-by","unity","whmcs","rocketchat","vk","untappd","mailchimp","css3-alt","square-reddit","vimeo-v","contao","square-font-awesome","deskpro","brave","sistrix","square-instagram","battle-net","the-red-yeti","square-hacker-news","edge","threads","napster","square-snapchat","google-plus-g","artstation","markdown","sourcetree","google-plus","diaspora","foursquare","stack-overflow","github-alt","phoenix-squadron","pagelines","algolia","red-river","creative-commons-sa","safari","google","square-font-awesome-stroke","atlassian","linkedin-in","digital-ocean","nimblr","chromecast","evernote","hacker-news","creative-commons-sampling","adversal","creative-commons","watchman-monitoring","fonticons","weixin","shirtsinbulk","codepen","git-alt","lyft","rev","windows","wizards-of-the-coast","square-viadeo","meetup","centos","adn","cloudsmith","opensuse","pied-piper-alt","square-dribbble","codiepie","node","mix","steam","cc-apple-pay","scribd","debian","openid","instalod","files-pinwheel","expeditedssl","sellcast","square-twitter","r-project","delicious","freebsd","vuejs","accusoft","ioxhost","fonticons-fi","app-store","cc-mastercard","itunes-note","golang","kickstarter","grav","weibo","uncharted","firstdraft","square-youtube","wikipedia-w","wpressr","angellist","galactic-republic","nfc-directional","skype","joget","fedora","stripe-s","meta","laravel","hotjar","bluetooth-b","square-letterboxd","sticker-mule","creative-commons-zero","hips","css","behance","reddit","discord","chrome","app-store-ios","cc-discover","wpbeginner","confluence","shoelace","mdb","dochub","accessible-icon","ebay","amazon","unsplash","yarn","square-steam","500px","square-vimeo","asymmetrik","font-awesome","gratipay","apple","hive","gitkraken","keybase","apple-pay","padlet","amazon-pay","square-github","stumbleupon","fedex","phoenix-framework","shopify","neos","square-threads","hackerrank","researchgate","swift","angular","speakap","angrycreative","y-combinator","empire","envira","google-scholar","square-gitlab","studiovinari","pied-piper","wordpress","product-hunt","firefox","linode","goodreads","square-odnoklassniki","jsfiddle","sith","themeisle","page4","hashnode","react","cc-paypal","squarespace","cc-stripe","creative-commons-share","bitcoin","keycdn","opera","itch-io","umbraco","galactic-senate","ubuntu","draft2digital","stripe","houzz","gg","dhl","square-pinterest","xing","blackberry","creative-commons-pd","playstation","quinscape","less","blogger-b","opencart","vine","signal-messenger","paypal","gitlab","typo3","reddit-alien","yahoo","dailymotion","affiliatetheme","pied-piper-pp","bootstrap","odnoklassniki","nfc-symbol","mintbit","ethereum","speaker-deck","creative-commons-nc-eu","patreon","avianex","ello","gofore","bimobject","brave-reverse","facebook-f","square-google-plus","web-awesome","mandalorian","first-order-alt","osi","google-wallet","d-and-d-beyond","periscope","fulcrum","cloudscale","forumbee","mizuni","schlix","square-xing","bandcamp","wpforms","cloudversify","usps","megaport","magento","spotify","optin-monster","fly","square-bluesky","aviato","itunes","cuttlefish","blogger","flickr","viber","soundcloud","digg","tencent-weibo","letterboxd","symfony","maxcdn","etsy","facebook-messenger","audible","think-peaks","bilibili","erlang","x-twitter","cotton-bureau","dashcube","42-group","stack-exchange","elementor","square-pied-piper","creative-commons-nd","palfed","superpowers","resolving","xbox","square-web-awesome-stroke","searchengin","tiktok","square-facebook","renren","linux","glide","linkedin","hubspot","deploydog","twitch","flutter","ravelry","mixer","square-lastfm","vimeo","mendeley","uniregistry","figma","creative-commons-remix","cc-amazon-pay","dropbox","instagram","cmplid","upwork","facebook","gripfire","jedi-order","uikit","fort-awesome-alt","phabricator","ussunnah","earlybirds","trade-federation","autoprefixer","whatsapp","square-upwork","slideshare","google-play","viadeo","line","google-drive","servicestack","simplybuilt","bitbucket","imdb","deezer","raspberry-pi","jira","docker","screenpal","bluetooth","gitter","d-and-d","microblog","cc-diners-club","gg-circle","pied-piper-hat","kickstarter-k","yandex","readme","html5","sellsy","square-web-awesome","sass","wirsindhandwerk","buromobelexperte","salesforce","octopus-deploy","medapps","ns8","pinterest-p","apper","fort-awesome","waze","bluesky","cc-jcb","snapchat","fantasy-flight-games","rust","wix","square-behance","supple","webflow","rebel","css3","staylinked","kaggle","space-awesome","deviantart","cpanel","goodreads-g","square-git","square-tumblr","trello","creative-commons-nc-jp","get-pocket","perbyte","grunt","weebly","connectdevelop","leanpub","black-tie","themeco","python","android","bots","free-code-camp","hornbill","js","ideal","git","dev","sketch","yandex-international","cc-amex","uber","github","php","alipay","youtube","skyatlas","firefox-browser","replyd","suse","jenkins","twitter","rockrms","pinterest","buffer","npm","yammer","btc","dribbble","stumbleupon-circle","internet-explorer","stubber","telegram","old-republic","odysee","square-whatsapp","node-js","edge-legacy","slack","medrt","usb","tumblr","vaadin","quora","square-x-twitter","reacteurope","medium","amilia","mixcloud","flipboard","viacoin","critical-role","sitrox","discourse","joomla","mastodon","airbnb","wolf-pack-battalion","buy-n-large","gulp","creative-commons-sampling-plus","strava","ember","canadian-maple-leaf","teamspeak","pushed","wordpress-simple","nutritionix","wodu","google-pay","intercom","zhihu","korvue","pix","steam-symbol"],Uh=["10k","10mp","11mp","123","12mp","13mp","14mp","15mp","16mp","17mp","18_up_rating","18mp","19mp","1k","1k_plus","1x_mobiledata","1x_mobiledata_badge","20mp","21mp","22mp","23mp","24fps_select","24mp","2d","2k","2k_plus","2mp","30fps","30fps_select","360","3d_rotation","3g_mobiledata","3g_mobiledata_badge","3k","3k_plus","3mp","3p","4g_mobiledata","4g_mobiledata_badge","4g_plus_mobiledata","4k","4k_plus","4mp","50mp","5g","5g_mobiledata_badge","5k","5k_plus","5mp","60fps","60fps_select","6_ft_apart","6k","6k_plus","6mp","7k","7k_plus","7mp","8k","8k_plus","8mp","9k","9k_plus","9mp","abc","ac_unit","access_alarm","access_alarms","access_time","access_time_filled","accessibility","accessibility_new","accessible","accessible_forward","account_balance","account_balance_wallet","account_box","account_child","account_child_invert","account_circle","account_circle_off","account_tree","action_key","activity_zone","acute","ad","ad_group","ad_group_off","ad_off","ad_units","adaptive_audio_mic","adaptive_audio_mic_off","adb","add","add_2","add_a_photo","add_ad","add_alarm","add_alert","add_box","add_business","add_call","add_card","add_chart","add_circle","add_circle_outline","add_column_left","add_column_right","add_comment","add_diamond","add_home","add_home_work","add_ic_call","add_link","add_location","add_location_alt","add_moderator","add_notes","add_photo_alternate","add_reaction","add_road","add_row_above","add_row_below","add_shopping_cart","add_task","add_to_drive","add_to_home_screen","add_to_photos","add_to_queue","add_triangle","addchart","adf_scanner","adjust","admin_meds","admin_panel_settings","ads_click","agender","agriculture","air","air_freshener","air_purifier","air_purifier_gen","airline_seat_flat","airline_seat_flat_angled","airline_seat_individual_suite","airline_seat_legroom_extra","airline_seat_legroom_normal","airline_seat_legroom_reduced","airline_seat_recline_extra","airline_seat_recline_normal","airline_stops","airlines","airplane_ticket","airplanemode_active","airplanemode_inactive","airplay","airport_shuttle","airware","airwave","alarm","alarm_add","alarm_off","alarm_on","alarm_smart_wake","album","align_center","align_end","align_flex_center","align_flex_end","align_flex_start","align_horizontal_center","align_horizontal_left","align_horizontal_right","align_items_stretch","align_justify_center","align_justify_flex_end","align_justify_flex_start","align_justify_space_around","align_justify_space_between","align_justify_space_even","align_justify_stretch","align_self_stretch","align_space_around","align_space_between","align_space_even","align_start","align_stretch","align_vertical_bottom","align_vertical_center","align_vertical_top","all_inbox","all_inclusive","all_match","all_out","allergies","allergy","alt_route","alternate_email","altitude","ambulance","amend","amp_stories","analytics","anchor","android","animated_images","animation","announcement","aod","aod_tablet","aod_watch","apartment","api","apk_document","apk_install","app_badging","app_blocking","app_promo","app_registration","app_settings_alt","app_shortcut","apparel","approval","approval_delegation","apps","apps_outage","aq","aq_indoor","ar_on_you","ar_stickers","architecture","archive","area_chart","arming_countdown","arrow_and_edge","arrow_back","arrow_back_2","arrow_back_ios","arrow_back_ios_new","arrow_circle_down","arrow_circle_left","arrow_circle_right","arrow_circle_up","arrow_cool_down","arrow_downward","arrow_downward_alt","arrow_drop_down","arrow_drop_down_circle","arrow_drop_up","arrow_forward","arrow_forward_ios","arrow_insert","arrow_left","arrow_left_alt","arrow_menu_close","arrow_menu_open","arrow_or_edge","arrow_outward","arrow_range","arrow_right","arrow_right_alt","arrow_selector_tool","arrow_split","arrow_top_left","arrow_top_right","arrow_upload_progress","arrow_upload_ready","arrow_upward","arrow_upward_alt","arrow_warm_up","arrows_input","arrows_more_down","arrows_more_up","arrows_output","arrows_outward","art_track","article","article_shortcut","artist","aspect_ratio","assessment","assignment","assignment_add","assignment_ind","assignment_late","assignment_return","assignment_returned","assignment_turned_in","assist_walker","assistant","assistant_device","assistant_direction","assistant_navigation","assistant_on_hub","assistant_photo","assured_workload","asterisk","atm","atr","attach_email","attach_file","attach_file_add","attach_file_off","attach_money","attachment","attractions","attribution","audio_description","audio_file","audio_video_receiver","audiotrack","auto_awesome","auto_awesome_mosaic","auto_awesome_motion","auto_delete","auto_fix_high","auto_fix_normal","auto_fix_off","auto_graph","auto_mode","auto_read_pause","auto_read_play","auto_stories","auto_towing","auto_transmission","autofps_select","automation","autopause","autoplay","autorenew","autostop","av1","av_timer","avc","avg_pace","avg_time","award_star","azm","baby_changing_station","back_hand","back_to_tab","background_dot_large","background_dot_small","background_grid_small","background_replace","backlight_high","backlight_high_off","backlight_low","backpack","backspace","backup","backup_table","badge","badge_critical_battery","bakery_dining","balance","balcony","ballot","bar_chart","bar_chart_4_bars","bar_chart_off","barcode","barcode_reader","barcode_scanner","barefoot","batch_prediction","bath_outdoor","bath_private","bath_public_large","bathroom","bathtub","battery_0_bar","battery_1_bar","battery_20","battery_2_bar","battery_30","battery_3_bar","battery_4_bar","battery_50","battery_5_bar","battery_60","battery_6_bar","battery_80","battery_90","battery_alert","battery_change","battery_charging_20","battery_charging_30","battery_charging_50","battery_charging_60","battery_charging_80","battery_charging_90","battery_charging_full","battery_error","battery_full","battery_full_alt","battery_horiz_000","battery_horiz_050","battery_horiz_075","battery_low","battery_plus","battery_profile","battery_saver","battery_share","battery_status_good","battery_std","battery_unknown","battery_very_low","beach_access","bed","bedroom_baby","bedroom_child","bedroom_parent","bedtime","bedtime_off","beenhere","bento","bia","bid_landscape","bid_landscape_disabled","bigtop_updates","bike_dock","bike_lane","bike_scooter","biotech","blanket","blender","blind","blinds","blinds_closed","block","block_flipped","blood_pressure","bloodtype","bluetooth","bluetooth_audio","bluetooth_connected","bluetooth_disabled","bluetooth_drive","bluetooth_searching","blur_circular","blur_linear","blur_medium","blur_off","blur_on","blur_short","body_fat","body_system","bolt","bomb","book","book_2","book_3","book_4","book_4_spark","book_5","book_6","book_online","book_ribbon","bookmark","bookmark_add","bookmark_added","bookmark_bag","bookmark_border","bookmark_check","bookmark_flag","bookmark_heart","bookmark_manager","bookmark_remove","bookmark_star","bookmarks","books_movies_and_music","border_all","border_bottom","border_clear","border_color","border_horizontal","border_inner","border_left","border_outer","border_right","border_style","border_top","border_vertical","borg","bottom_app_bar","bottom_drawer","bottom_navigation","bottom_panel_close","bottom_panel_open","bottom_right_click","bottom_sheets","box","box_add","box_edit","boy","brand_awareness","brand_family","branding_watermark","breakfast_dining","breaking_news","breaking_news_alt_1","breastfeeding","brick","brightness_1","brightness_2","brightness_3","brightness_4","brightness_5","brightness_6","brightness_7","brightness_alert","brightness_auto","brightness_empty","brightness_high","brightness_low","brightness_medium","bring_your_own_ip","broadcast_on_home","broadcast_on_personal","broken_image","browse","browse_activity","browse_gallery","browser_not_supported","browser_updated","brunch_dining","brush","bubble","bubble_chart","bubbles","bug_report","build","build_circle","bungalow","burst_mode","bus_alert","business","business_center","business_chip","business_messages","buttons_alt","cabin","cable","cable_car","cached","cadence","cake","cake_add","calculate","calendar_add_on","calendar_apps_script","calendar_clock","calendar_month","calendar_today","calendar_view_day","calendar_view_month","calendar_view_week","call","call_end","call_log","call_made","call_merge","call_missed","call_missed_outgoing","call_quality","call_received","call_split","call_to_action","camera","camera_alt","camera_enhance","camera_front","camera_indoor","camera_outdoor","camera_rear","camera_roll","camera_video","cameraswitch","campaign","camping","cancel","cancel_presentation","cancel_schedule_send","candle","candlestick_chart","captive_portal","capture","car_crash","car_rental","car_repair","car_tag","card_giftcard","card_membership","card_travel","cardio_load","cardiology","cards","cards_star","carpenter","carry_on_bag","carry_on_bag_checked","carry_on_bag_inactive","carry_on_bag_question","cases","casino","cast","cast_connected","cast_for_education","cast_pause","cast_warning","castle","catching_pokemon","category","category_search","celebration","cell_merge","cell_tower","cell_wifi","center_focus_strong","center_focus_weak","chair","chair_alt","chalet","change_circle","change_history","charger","charging_station","chart_data","chat","chat_add_on","chat_apps_script","chat_bubble","chat_bubble_outline","chat_error","chat_info","chat_paste_go","chat_paste_go_2","check","check_box","check_box_outline_blank","check_circle","check_circle_outline","check_in_out","check_indeterminate_small","check_small","checkbook","checked_bag","checked_bag_question","checklist","checklist_rtl","checkroom","cheer","chess","chess_pawn","chevron_backward","chevron_forward","chevron_left","chevron_right","child_care","child_friendly","chip_extraction","chips","chrome_reader_mode","chromecast_2","chromecast_device","chronic","church","cinematic_blur","circle","circle_notifications","circles","circles_ext","clarify","class","clean_hands","cleaning","cleaning_bucket","cleaning_services","clear","clear_all","clear_day","climate_mini_split","clinical_notes","clock_arrow_down","clock_arrow_up","clock_loader_10","clock_loader_20","clock_loader_40","clock_loader_60","clock_loader_80","clock_loader_90","close","close_fullscreen","close_small","closed_caption","closed_caption_add","closed_caption_disabled","closed_caption_off","cloud","cloud_alert","cloud_circle","cloud_done","cloud_download","cloud_lock","cloud_off","cloud_queue","cloud_sync","cloud_upload","cloudy_snowing","co2","co_present","code","code_blocks","code_off","coffee","coffee_maker","cognition","cognition_2","collapse_all","collapse_content","collections","collections_bookmark","color_lens","colorize","colors","combine_columns","comedy_mask","comic_bubble","comment","comment_bank","comments_disabled","commit","communication","communities","commute","compare","compare_arrows","compass_calibration","component_exchange","compost","compress","computer","concierge","conditions","confirmation_number","congenital","connect_without_contact","connected_tv","connecting_airports","construction","contact_emergency","contact_mail","contact_page","contact_phone","contact_support","contactless","contactless_off","contacts","contacts_product","content_copy","content_cut","content_paste","content_paste_go","content_paste_off","content_paste_search","contextual_token","contextual_token_add","contract","contract_delete","contract_edit","contrast","contrast_circle","contrast_rtl_off","contrast_square","control_camera","control_point","control_point_duplicate","controller_gen","conversion_path","conversion_path_off","convert_to_text","conveyor_belt","cookie","cookie_off","cooking","cool_to_dry","copy_all","copyright","coronavirus","corporate_fare","cottage","counter_0","counter_1","counter_2","counter_3","counter_4","counter_5","counter_6","counter_7","counter_8","counter_9","countertops","create","create_new_folder","credit_card","credit_card_clock","credit_card_gear","credit_card_heart","credit_card_off","credit_score","crib","crisis_alert","crop","crop_16_9","crop_3_2","crop_5_4","crop_7_5","crop_9_16","crop_din","crop_free","crop_landscape","crop_original","crop_portrait","crop_rotate","crop_square","crossword","crowdsource","cruelty_free","css","csv","currency_bitcoin","currency_exchange","currency_franc","currency_lira","currency_pound","currency_ruble","currency_rupee","currency_rupee_circle","currency_yen","currency_yuan","curtains","curtains_closed","custom_typography","cycle","cyclone","dangerous","dark_mode","dashboard","dashboard_2","dashboard_customize","data_alert","data_array","data_check","data_exploration","data_info_alert","data_loss_prevention","data_object","data_saver_off","data_saver_on","data_table","data_thresholding","data_usage","database","database_off","database_search","database_upload","dataset","dataset_linked","date_range","deblur","deceased","decimal_decrease","decimal_increase","deck","dehaze","delete","delete_forever","delete_history","delete_outline","delete_sweep","delivery_dining","delivery_truck_bolt","delivery_truck_speed","demography","density_large","density_medium","density_small","dentistry","departure_board","deployed_code","deployed_code_account","deployed_code_alert","deployed_code_history","deployed_code_update","dermatology","description","deselect","design_services","desk","deskphone","desktop_access_disabled","desktop_cloud","desktop_cloud_stack","desktop_landscape","desktop_landscape_add","desktop_mac","desktop_portrait","desktop_windows","destruction","details","detection_and_zone","detector","detector_alarm","detector_battery","detector_co","detector_offline","detector_smoke","detector_status","developer_board","developer_board_off","developer_guide","developer_mode","developer_mode_tv","device_hub","device_thermostat","device_unknown","devices","devices_fold","devices_fold_2","devices_off","devices_other","devices_wearables","dew_point","diagnosis","diagonal_line","dialer_sip","dialogs","dialpad","diamond","dictionary","difference","digital_out_of_home","digital_wellbeing","dining","dinner_dining","directions","directions_alt","directions_alt_off","directions_bike","directions_boat","directions_boat_filled","directions_bus","directions_bus_filled","directions_car","directions_car_filled","directions_off","directions_railway","directions_railway_2","directions_railway_filled","directions_run","directions_subway","directions_subway_filled","directions_transit","directions_transit_filled","directions_walk","directory_sync","dirty_lens","disabled_by_default","disabled_visible","disc_full","discount","discover_tune","dishwasher","dishwasher_gen","display_external_input","display_settings","distance","diversity_1","diversity_2","diversity_3","diversity_4","dns","do_disturb","do_disturb_alt","do_disturb_off","do_disturb_on","do_not_disturb","do_not_disturb_alt","do_not_disturb_off","do_not_disturb_on","do_not_disturb_on_total_silence","do_not_step","do_not_touch","dock","dock_to_bottom","dock_to_left","dock_to_right","docs","docs_add_on","docs_apps_script","document_scanner","document_search","domain","domain_add","domain_disabled","domain_verification","domain_verification_off","domino_mask","done","done_all","done_outline","donut_large","donut_small","door_back","door_front","door_open","door_sensor","door_sliding","doorbell","doorbell_3p","doorbell_chime","double_arrow","downhill_skiing","download","download_2","download_done","download_for_offline","downloading","draft","draft_orders","drafts","drag_click","drag_handle","drag_indicator","drag_pan","draw","draw_abstract","draw_collage","dresser","drive_eta","drive_export","drive_file_move","drive_file_move_outline","drive_file_move_rtl","drive_file_rename_outline","drive_folder_upload","dropdown","dry","dry_cleaning","dual_screen","duo","dvr","dynamic_feed","dynamic_form","e911_avatar","e911_emergency","e_mobiledata","e_mobiledata_badge","earbuds","earbuds_battery","early_on","earthquake","east","ecg","ecg_heart","eco","eda","edgesensor_high","edgesensor_low","edit","edit_arrow_down","edit_arrow_up","edit_attributes","edit_audio","edit_calendar","edit_document","edit_location","edit_location_alt","edit_note","edit_notifications","edit_off","edit_road","edit_square","editor_choice","egg","egg_alt","eject","elderly","elderly_woman","electric_bike","electric_bolt","electric_car","electric_meter","electric_moped","electric_rickshaw","electric_scooter","electrical_services","elevation","elevator","email","emergency","emergency_heat","emergency_heat_2","emergency_home","emergency_recording","emergency_share","emergency_share_off","emoji_emotions","emoji_events","emoji_food_beverage","emoji_language","emoji_nature","emoji_objects","emoji_people","emoji_symbols","emoji_transportation","emoticon","empty_dashboard","enable","encrypted","encrypted_add","encrypted_add_circle","encrypted_minus_circle","encrypted_off","endocrinology","energy","energy_program_saving","energy_program_time_used","energy_savings_leaf","engineering","enhanced_encryption","ent","enterprise","enterprise_off","equal","equalizer","eraser_size_1","eraser_size_2","eraser_size_3","eraser_size_4","eraser_size_5","error","error_med","error_outline","escalator","escalator_warning","euro","euro_symbol","ev_mobiledata_badge","ev_shadow","ev_shadow_add","ev_shadow_minus","ev_station","event","event_available","event_busy","event_list","event_note","event_repeat","event_seat","event_upcoming","exclamation","exercise","exit_to_app","expand","expand_all","expand_circle_down","expand_circle_right","expand_circle_up","expand_content","expand_less","expand_more","expansion_panels","experiment","explicit","explore","explore_nearby","explore_off","explosion","export_notes","exposure","exposure_neg_1","exposure_neg_2","exposure_plus_1","exposure_plus_2","exposure_zero","extension","extension_off","eye_tracking","eyeglasses","face","face_2","face_3","face_4","face_5","face_6","face_down","face_left","face_nod","face_retouching_natural","face_retouching_off","face_right","face_shake","face_unlock","face_up","fact_check","factory","falling","familiar_face_and_zone","family_history","family_home","family_link","family_restroom","family_star","farsight_digital","fast_forward","fast_rewind","fastfood","faucet","favorite","favorite_border","fax","feature_search","featured_play_list","featured_seasonal_and_gifts","featured_video","feed","feedback","female","femur","femur_alt","fence","fertile","festival","fiber_dvr","fiber_manual_record","fiber_new","fiber_pin","fiber_smart_record","file_copy","file_copy_off","file_download","file_download_done","file_download_off","file_export","file_json","file_map","file_map_stack","file_open","file_png","file_present","file_save","file_save_off","file_upload","file_upload_off","files","filter","filter_1","filter_2","filter_3","filter_4","filter_5","filter_6","filter_7","filter_8","filter_9","filter_9_plus","filter_alt","filter_alt_off","filter_arrow_right","filter_b_and_w","filter_center_focus","filter_drama","filter_frames","filter_hdr","filter_list","filter_list_alt","filter_list_off","filter_none","filter_retrolux","filter_tilt_shift","filter_vintage","finance","finance_chip","finance_mode","find_in_page","find_replace","fingerprint","fingerprint_off","fire_extinguisher","fire_hydrant","fire_hydrant_alt","fire_truck","fireplace","first_page","fit_page","fit_page_height","fit_page_width","fit_screen","fit_width","fitbit","fitness_center","fitness_tracker","flag","flag_2","flag_check","flag_circle","flaky","flare","flash_auto","flash_off","flash_on","flashlight_off","flashlight_on","flatware","flex_direction","flex_no_wrap","flex_wrap","flight","flight_class","flight_land","flight_takeoff","flights_and_hotels","flip","flip_camera_android","flip_camera_ios","flip_to_back","flip_to_front","float_landscape_2","float_portrait_2","flood","floor","floor_lamp","flowchart","flowsheet","fluid","fluid_balance","fluid_med","fluorescent","flutter","flutter_dash","flyover","fmd_bad","fmd_good","foggy","folded_hands","folder","folder_check","folder_check_2","folder_code","folder_copy","folder_data","folder_delete","folder_eye","folder_info","folder_limited","folder_managed","folder_match","folder_off","folder_open","folder_shared","folder_special","folder_supervised","folder_zip","follow_the_signs","font_download","font_download_off","food_bank","foot_bones","footprint","for_you","forest","fork_left","fork_right","fork_spoon","forklift","format_align_center","format_align_justify","format_align_left","format_align_right","format_bold","format_clear","format_color_fill","format_color_reset","format_color_text","format_h1","format_h2","format_h3","format_h4","format_h5","format_h6","format_image_left","format_image_right","format_indent_decrease","format_indent_increase","format_ink_highlighter","format_italic","format_letter_spacing","format_letter_spacing_2","format_letter_spacing_standard","format_letter_spacing_wide","format_letter_spacing_wider","format_line_spacing","format_list_bulleted","format_list_bulleted_add","format_list_numbered","format_list_numbered_rtl","format_overline","format_paint","format_paragraph","format_quote","format_quote_off","format_shapes","format_size","format_strikethrough","format_text_clip","format_text_overflow","format_text_wrap","format_textdirection_l_to_r","format_textdirection_r_to_l","format_textdirection_vertical","format_underlined","format_underlined_squiggle","forms_add_on","forms_apps_script","fort","forum","forward","forward_10","forward_30","forward_5","forward_circle","forward_media","forward_to_inbox","foundation","frame_inspect","frame_person","frame_person_mic","frame_person_off","frame_reload","frame_source","free_breakfast","free_cancellation","front_hand","front_loader","full_coverage","full_hd","full_stacked_bar_chart","fullscreen","fullscreen_exit","fullscreen_portrait","function","functions","funicular","g_mobiledata","g_mobiledata_badge","g_translate","gallery_thumbnail","gamepad","games","garage","garage_door","garage_home","garden_cart","gas_meter","gastroenterology","gate","gavel","general_device","generating_tokens","genetics","genres","gesture","gesture_select","get_app","gif","gif_2","gif_box","girl","gite","glass_cup","globe","globe_asia","globe_book","globe_uk","glucose","glyphs","go_to_line","golf_course","gondola_lift","google_home_devices","google_tv_remote","google_wifi","gpp_bad","gpp_good","gpp_maybe","gps_fixed","gps_not_fixed","gps_off","grade","gradient","grading","grain","graph_1","graph_2","graph_3","graph_4","graph_5","graph_6","graphic_eq","grass","grid_3x3","grid_3x3_off","grid_4x4","grid_goldenratio","grid_guides","grid_off","grid_on","grid_view","grocery","group","group_add","group_off","group_remove","group_search","group_work","grouped_bar_chart","groups","groups_2","groups_3","guardian","gynecology","h_mobiledata","h_mobiledata_badge","h_plus_mobiledata","h_plus_mobiledata_badge","hail","hallway","hand_bones","hand_gesture","hand_gesture_off","handheld_controller","handshake","handyman","hangout_video","hangout_video_off","hard_disk","hard_drive","hard_drive_2","hardware","hd","hdr_auto","hdr_auto_select","hdr_enhanced_select","hdr_off","hdr_off_select","hdr_on","hdr_on_select","hdr_plus","hdr_plus_off","hdr_strong","hdr_weak","head_mounted_device","headphones","headphones_battery","headset","headset_mic","headset_off","healing","health_and_beauty","health_and_safety","health_metrics","heap_snapshot_large","heap_snapshot_multiple","heap_snapshot_thumbnail","hearing","hearing_aid","hearing_aid_disabled","hearing_disabled","heart_broken","heart_check","heart_minus","heart_plus","heat","heat_pump","heat_pump_balance","height","helicopter","help","help_center","help_clinic","help_outline","hematology","hevc","hexagon","hide","hide_image","hide_source","high_density","high_quality","high_res","highlight","highlight_alt","highlight_keyboard_focus","highlight_mouse_cursor","highlight_off","highlight_text_cursor","highlighter_size_1","highlighter_size_2","highlighter_size_3","highlighter_size_4","highlighter_size_5","hiking","history","history_2","history_edu","history_off","history_toggle_off","hive","hls","hls_off","holiday_village","home","home_and_garden","home_app_logo","home_filled","home_health","home_improvement_and_tools","home_iot_device","home_max","home_max_dots","home_mini","home_pin","home_repair_service","home_speaker","home_storage","home_work","horizontal_distribute","horizontal_rule","horizontal_split","host","hot_tub","hotel","hotel_class","hourglass","hourglass_arrow_down","hourglass_arrow_up","hourglass_bottom","hourglass_disabled","hourglass_empty","hourglass_full","hourglass_pause","hourglass_top","house","house_siding","house_with_shield","houseboat","household_supplies","hov","how_to_reg","how_to_vote","hr_resting","html","http","https","hub","humerus","humerus_alt","humidity_high","humidity_indoor","humidity_low","humidity_mid","humidity_percentage","hvac","ice_skating","icecream","id_card","identity_aware_proxy","identity_platform","ifl","iframe","iframe_off","image","image_aspect_ratio","image_not_supported","image_search","imagesearch_roller","imagesmode","immunology","import_contacts","import_export","important_devices","in_home_mode","inactive_order","inbox","inbox_customize","inbox_text","incomplete_circle","indeterminate_check_box","indeterminate_question_box","info","info_i","info_outline","infrared","ink_eraser","ink_eraser_off","ink_highlighter","ink_highlighter_move","ink_marker","ink_pen","ink_selection","inpatient","input","input_circle","insert_chart","insert_chart_outlined","insert_comment","insert_drive_file","insert_emoticon","insert_invitation","insert_link","insert_page_break","insert_photo","insert_text","insights","install_desktop","install_mobile","instant_mix","integration_instructions","interactive_space","interests","interpreter_mode","inventory","inventory_2","invert_colors","invert_colors_off","ios","ios_share","iron","iso","jamboard_kiosk","javascript","join","join_full","join_inner","join_left","join_right","joystick","jump_to_element","kayaking","kebab_dining","keep","keep_off","keep_public","kettle","key","key_off","key_vertical","key_visualizer","keyboard","keyboard_alt","keyboard_arrow_down","keyboard_arrow_left","keyboard_arrow_right","keyboard_arrow_up","keyboard_backspace","keyboard_capslock","keyboard_capslock_badge","keyboard_command_key","keyboard_control_key","keyboard_double_arrow_down","keyboard_double_arrow_left","keyboard_double_arrow_right","keyboard_double_arrow_up","keyboard_external_input","keyboard_full","keyboard_hide","keyboard_keys","keyboard_lock","keyboard_lock_off","keyboard_off","keyboard_onscreen","keyboard_option_key","keyboard_previous_language","keyboard_return","keyboard_tab","keyboard_tab_rtl","keyboard_voice","kid_star","king_bed","kitchen","kitesurfing","lab_panel","lab_profile","lab_research","label","label_important","label_important_outline","label_off","labs","lan","landscape","landscape_2","landscape_2_off","landslide","language","language_chinese_array","language_chinese_cangjie","language_chinese_dayi","language_chinese_pinyin","language_chinese_quick","language_chinese_wubi","language_french","language_gb_english","language_international","language_japanese_kana","language_korean_latin","language_pinyin","language_spanish","language_us","language_us_colemak","language_us_dvorak","laps","laptop","laptop_car","laptop_chromebook","laptop_mac","laptop_windows","lasso_select","last_page","launch","laundry","layers","layers_clear","lda","leaderboard","leak_add","leak_remove","left_click","left_panel_close","left_panel_open","legend_toggle","lens","lens_blur","letter_switch","library_add","library_add_check","library_books","library_music","license","lift_to_talk","light","light_group","light_mode","light_off","lightbulb","lightbulb_2","lightbulb_circle","lightbulb_outline","lightning_stand","line_axis","line_curve","line_end","line_end_arrow","line_end_arrow_notch","line_end_circle","line_end_diamond","line_end_square","line_start","line_start_arrow","line_start_arrow_notch","line_start_circle","line_start_diamond","line_start_square","line_style","line_weight","linear_scale","link","link_off","linked_camera","linked_services","liquor","list","list_alt","list_alt_add","list_alt_check","lists","live_help","live_tv","living","local_activity","local_airport","local_atm","local_bar","local_cafe","local_car_wash","local_convenience_store","local_dining","local_drink","local_fire_department","local_florist","local_gas_station","local_grocery_store","local_hospital","local_hotel","local_laundry_service","local_library","local_mall","local_movies","local_offer","local_parking","local_pharmacy","local_phone","local_pizza","local_play","local_police","local_post_office","local_printshop","local_see","local_shipping","local_taxi","location_away","location_chip","location_city","location_disabled","location_home","location_off","location_on","location_pin","location_searching","lock","lock_clock","lock_open","lock_open_right","lock_outline","lock_person","lock_reset","login","logo_dev","logout","looks","looks_3","looks_4","looks_5","looks_6","looks_one","looks_two","loop","loupe","low_density","low_priority","lowercase","loyalty","lte_mobiledata","lte_mobiledata_badge","lte_plus_mobiledata","lte_plus_mobiledata_badge","luggage","lunch_dining","lyrics","macro_auto","macro_off","magnification_large","magnification_small","magnify_docked","magnify_fullscreen","mail","mail_lock","mail_off","mail_outline","male","man","man_2","man_3","man_4","manage_accounts","manage_history","manage_search","manga","manufacturing","map","map_search","maps_home_work","maps_ugc","margin","mark_as_unread","mark_chat_read","mark_chat_unread","mark_email_read","mark_email_unread","mark_unread_chat_alt","markdown","markdown_copy","markdown_paste","markunread","markunread_mailbox","masked_transitions","masked_transitions_add","masks","match_case","match_case_off","match_word","matter","maximize","measuring_tape","media_bluetooth_off","media_bluetooth_on","media_link","media_output","media_output_off","mediation","medical_information","medical_mask","medical_services","medication","medication_liquid","meeting_room","memory","memory_alt","menstrual_health","menu","menu_book","menu_open","merge","merge_type","message","metabolism","metro","mfg_nest_yale_lock","mic","mic_alert","mic_double","mic_external_off","mic_external_on","mic_none","mic_off","microbiology","microwave","microwave_gen","military_tech","mimo","mimo_disconnect","mindfulness","minimize","minor_crash","mintmark","miscellaneous_services","missed_video_call","missing_controller","mist","mitre","mixture_med","mms","mobile_friendly","mobile_off","mobile_screen_share","mobiledata_off","mode","mode_comment","mode_cool","mode_cool_off","mode_dual","mode_edit","mode_edit_outline","mode_fan","mode_fan_off","mode_heat","mode_heat_cool","mode_heat_off","mode_night","mode_of_travel","mode_off_on","mode_standby","model_training","modeling","monetization_on","money","money_bag","money_off","money_off_csred","monitor","monitor_heart","monitor_weight","monitor_weight_gain","monitor_weight_loss","monitoring","monochrome_photos","monorail","mood","mood_bad","mop","moped","more","more_down","more_horiz","more_time","more_up","more_vert","mosque","motion_blur","motion_mode","motion_photos_auto","motion_photos_off","motion_photos_on","motion_photos_pause","motion_photos_paused","motion_play","motion_sensor_active","motion_sensor_alert","motion_sensor_idle","motion_sensor_urgent","motorcycle","mountain_flag","mouse","mouse_lock","mouse_lock_off","move","move_down","move_group","move_item","move_location","move_selection_down","move_selection_left","move_selection_right","move_selection_up","move_to_inbox","move_up","moved_location","movie","movie_creation","movie_edit","movie_filter","movie_info","movie_off","moving","moving_beds","moving_ministry","mp","multicooker","multiline_chart","multimodal_hand_eye","multiple_airports","multiple_stop","museum","music_cast","music_note","music_note_add","music_off","music_video","my_location","mystery","nat","nature","nature_people","navigate_before","navigate_next","navigation","near_me","near_me_disabled","nearby","nearby_error","nearby_off","nephrology","nest_audio","nest_cam_floodlight","nest_cam_indoor","nest_cam_iq","nest_cam_iq_outdoor","nest_cam_magnet_mount","nest_cam_outdoor","nest_cam_stand","nest_cam_wall_mount","nest_cam_wired_stand","nest_clock_farsight_analog","nest_clock_farsight_digital","nest_connect","nest_detect","nest_display","nest_display_max","nest_doorbell_visitor","nest_eco_leaf","nest_farsight_weather","nest_found_savings","nest_gale_wifi","nest_heat_link_e","nest_heat_link_gen_3","nest_hello_doorbell","nest_mini","nest_multi_room","nest_protect","nest_remote","nest_remote_comfort_sensor","nest_secure_alarm","nest_sunblock","nest_tag","nest_thermostat","nest_thermostat_e_eu","nest_thermostat_gen_3","nest_thermostat_sensor","nest_thermostat_sensor_eu","nest_thermostat_zirconium_eu","nest_true_radiant","nest_wake_on_approach","nest_wake_on_press","nest_wifi_point","nest_wifi_pro","nest_wifi_pro_2","nest_wifi_router","network_cell","network_check","network_intel_node","network_intelligence","network_intelligence_history","network_intelligence_update","network_locked","network_manage","network_node","network_ping","network_wifi","network_wifi_1_bar","network_wifi_1_bar_locked","network_wifi_2_bar","network_wifi_2_bar_locked","network_wifi_3_bar","network_wifi_3_bar_locked","network_wifi_locked","neurology","new_label","new_releases","new_window","news","newsmode","newspaper","newsstand","next_plan","next_week","nfc","night_shelter","night_sight_auto","night_sight_auto_off","night_sight_max","nightlife","nightlight","nightlight_round","nights_stay","no_accounts","no_adult_content","no_backpack","no_cell","no_crash","no_drinks","no_encryption","no_encryption_gmailerrorred","no_flash","no_food","no_luggage","no_meals","no_meals_ouline","no_meeting_room","no_photography","no_sim","no_sound","no_stroller","no_transfer","noise_aware","noise_control_off","noise_control_on","nordic_walking","north","north_east","north_west","not_accessible","not_accessible_forward","not_interested","not_listed_location","not_started","note","note_add","note_alt","note_stack","note_stack_add","notes","notification_add","notification_important","notification_multiple","notifications","notifications_active","notifications_none","notifications_off","notifications_paused","notifications_unread","numbers","nutrition","ods","odt","offline_bolt","offline_pin","offline_pin_off","offline_share","oil_barrel","on_device_training","on_hub_device","oncology","ondemand_video","online_prediction","onsen","opacity","open_in_browser","open_in_full","open_in_new","open_in_new_down","open_in_new_off","open_in_phone","open_jam","open_run","open_with","ophthalmology","oral_disease","orbit","order_approve","order_play","orders","orthopedics","other_admission","other_houses","outbound","outbox","outbox_alt","outdoor_garden","outdoor_grill","outgoing_mail","outlet","outlined_flag","outpatient","outpatient_med","output","output_circle","oven","oven_gen","overview","overview_key","owl","oxygen_saturation","p2p","pace","pacemaker","package","package_2","padding","page_control","page_footer","page_header","page_info","pageless","pages","pageview","paid","palette","pallet","pan_tool","pan_tool_alt","pan_zoom","panorama","panorama_fish_eye","panorama_horizontal","panorama_horizontal_select","panorama_photosphere","panorama_photosphere_select","panorama_vertical","panorama_vertical_select","panorama_wide_angle","panorama_wide_angle_select","paragliding","park","partly_cloudy_day","partly_cloudy_night","partner_exchange","partner_reports","party_mode","passkey","password","password_2","password_2_off","patient_list","pattern","pause","pause_circle","pause_circle_filled","pause_circle_outline","pause_presentation","payment","payments","pedal_bike","pediatrics","pen_size_1","pen_size_2","pen_size_3","pen_size_4","pen_size_5","pending","pending_actions","pentagon","people","people_alt","people_outline","percent","pergola","perm_camera_mic","perm_contact_calendar","perm_data_setting","perm_device_information","perm_identity","perm_media","perm_phone_msg","perm_scan_wifi","person","person_2","person_3","person_4","person_add","person_add_alt","person_add_alt_1","person_add_disabled","person_alert","person_apron","person_book","person_cancel","person_celebrate","person_check","person_edit","person_off","person_outline","person_pin","person_pin_circle","person_play","person_raised_hand","person_remove","person_remove_alt_1","person_search","personal_bag","personal_bag_off","personal_bag_question","personal_injury","personal_places","personal_video","pest_control","pest_control_rodent","pet_supplies","pets","phishing","phone","phone_android","phone_bluetooth_speaker","phone_callback","phone_disabled","phone_enabled","phone_forwarded","phone_in_talk","phone_iphone","phone_locked","phone_missed","phone_paused","phonelink","phonelink_erase","phonelink_lock","phonelink_off","phonelink_ring","phonelink_ring_off","phonelink_setup","photo","photo_album","photo_auto_merge","photo_camera","photo_camera_back","photo_camera_front","photo_filter","photo_frame","photo_library","photo_prints","photo_size_select_actual","photo_size_select_large","photo_size_select_small","php","physical_therapy","piano","piano_off","picture_as_pdf","picture_in_picture","picture_in_picture_alt","picture_in_picture_center","picture_in_picture_large","picture_in_picture_medium","picture_in_picture_mobile","picture_in_picture_off","picture_in_picture_small","pie_chart","pie_chart_outline","pie_chart_outlined","pill","pill_off","pin","pin_drop","pin_end","pin_invoke","pinboard","pinboard_unread","pinch","pinch_zoom_in","pinch_zoom_out","pip","pip_exit","pivot_table_chart","pix","place","place_item","plagiarism","planet","planner_banner_ad_pt","planner_review","play_arrow","play_circle","play_circle_filled","play_circle_outline","play_disabled","play_for_work","play_lesson","play_pause","playing_cards","playlist_add","playlist_add_check","playlist_add_check_circle","playlist_add_circle","playlist_play","playlist_remove","plumbing","plus_one","podcasts","podiatry","podium","point_of_sale","point_scan","poker_chip","policy","policy_alert","poll","polyline","polymer","pool","portable_wifi_off","portrait","position_bottom_left","position_bottom_right","position_top_right","post","post_add","potted_plant","power","power_input","power_off","power_settings_circle","power_settings_new","prayer_times","precision_manufacturing","pregnancy","pregnant_woman","preliminary","prescriptions","present_to_all","preview","preview_off","price_change","price_check","print","print_add","print_connect","print_disabled","print_error","print_lock","priority","priority_high","privacy","privacy_tip","private_connectivity","problem","procedure","process_chart","production_quantity_limits","productivity","progress_activity","prompt_suggestion","propane","propane_tank","psychiatry","psychology","psychology_alt","public","public_off","publish","published_with_changes","pulmonology","pulse_alert","punch_clock","push_pin","qr_code","qr_code_2","qr_code_2_add","qr_code_scanner","query_builder","query_stats","question_answer","question_exchange","question_mark","queue","queue_music","queue_play_next","quick_phrases","quick_reference","quick_reference_all","quick_reorder","quickreply","quiz","r_mobiledata","radar","radio","radio_button_checked","radio_button_partial","radio_button_unchecked","radiology","railway_alert","railway_alert_2","rainy","rainy_heavy","rainy_light","rainy_snow","ramen_dining","ramp_left","ramp_right","range_hood","rate_review","raven","raw_off","raw_on","read_more","readiness_score","real_estate_agent","rear_camera","rebase","rebase_edit","receipt","receipt_long","receipt_long_off","recent_actors","recent_patient","recenter","recommend","record_voice_over","rectangle","recycling","redeem","redo","reduce_capacity","refresh","regular_expression","relax","release_alert","remember_me","reminder","remote_gen","remove","remove_circle","remove_circle_outline","remove_done","remove_from_queue","remove_moderator","remove_red_eye","remove_road","remove_selection","remove_shopping_cart","reopen_window","reorder","repartition","repeat","repeat_on","repeat_one","repeat_one_on","replace_audio","replace_image","replace_video","replay","replay_10","replay_30","replay_5","replay_circle_filled","reply","reply_all","report","report_gmailerrorred","report_off","report_problem","request_page","request_quote","reset_brightness","reset_focus","reset_image","reset_iso","reset_settings","reset_shadow","reset_shutter_speed","reset_tv","reset_white_balance","reset_wrench","resize","respiratory_rate","responsive_layout","restart_alt","restaurant","restaurant_menu","restore","restore_from_trash","restore_page","resume","reviews","rewarded_ads","rheumatology","rib_cage","rice_bowl","right_click","right_panel_close","right_panel_open","ring_volume","ripples","road","robot","robot_2","rocket","rocket_launch","roller_shades","roller_shades_closed","roller_skating","roofing","room","room_preferences","room_service","rotate_90_degrees_ccw","rotate_90_degrees_cw","rotate_auto","rotate_left","rotate_right","roundabout_left","roundabout_right","rounded_corner","route","router","routine","rowing","rss_feed","rsvp","rtt","rubric","rule","rule_folder","rule_settings","run_circle","running_with_errors","rv_hookup","safety_check","safety_check_off","safety_divider","sailing","salinity","sanitizer","satellite","satellite_alt","sauna","save","save_alt","save_as","save_clock","saved_search","savings","scale","scan","scan_delete","scanner","scatter_plot","scene","schedule","schedule_send","schema","school","science","science_off","scooter","score","scoreboard","screen_lock_landscape","screen_lock_portrait","screen_lock_rotation","screen_record","screen_rotation","screen_rotation_alt","screen_rotation_up","screen_search_desktop","screen_share","screenshot","screenshot_frame","screenshot_frame_2","screenshot_keyboard","screenshot_monitor","screenshot_region","screenshot_tablet","script","scrollable_header","scuba_diving","sd","sd_card","sd_card_alert","sd_storage","sdk","search","search_activity","search_check","search_check_2","search_hands_free","search_insights","search_off","security","security_key","security_update","security_update_good","security_update_warning","segment","select","select_all","select_check_box","select_to_speak","select_window","select_window_2","select_window_off","self_care","self_improvement","sell","send","send_and_archive","send_money","send_time_extension","send_to_mobile","sensor_door","sensor_occupied","sensor_window","sensors","sensors_krx","sensors_krx_off","sensors_off","sentiment_calm","sentiment_content","sentiment_dissatisfied","sentiment_excited","sentiment_extremely_dissatisfied","sentiment_frustrated","sentiment_neutral","sentiment_sad","sentiment_satisfied","sentiment_satisfied_alt","sentiment_stressed","sentiment_very_dissatisfied","sentiment_very_satisfied","sentiment_worried","serif","server_person","service_toolbox","set_meal","settings","settings_accessibility","settings_account_box","settings_alert","settings_applications","settings_b_roll","settings_backup_restore","settings_bluetooth","settings_brightness","settings_cell","settings_cinematic_blur","settings_ethernet","settings_heart","settings_input_antenna","settings_input_component","settings_input_composite","settings_input_hdmi","settings_input_svideo","settings_motion_mode","settings_night_sight","settings_overscan","settings_panorama","settings_phone","settings_photo_camera","settings_power","settings_remote","settings_slow_motion","settings_suggest","settings_system_daydream","settings_timelapse","settings_video_camera","settings_voice","settop_component","severe_cold","shadow","shadow_add","shadow_minus","shape_line","shapes","share","share_eta","share_location","share_off","share_reviews","share_windows","sheets_rtl","shelf_auto_hide","shelf_position","shelves","shield","shield_lock","shield_locked","shield_moon","shield_person","shield_question","shield_with_heart","shield_with_house","shift","shift_lock","shift_lock_off","shop","shop_2","shop_two","shopping_bag","shopping_bag_speed","shopping_basket","shopping_cart","shopping_cart_checkout","shopping_cart_off","shoppingmode","short_stay","short_text","shortcut","show_chart","shower","shuffle","shuffle_on","shutter_speed","shutter_speed_add","shutter_speed_minus","sick","side_navigation","sign_language","signal_cellular_0_bar","signal_cellular_1_bar","signal_cellular_2_bar","signal_cellular_3_bar","signal_cellular_4_bar","signal_cellular_add","signal_cellular_alt","signal_cellular_alt_1_bar","signal_cellular_alt_2_bar","signal_cellular_connected_no_internet_0_bar","signal_cellular_connected_no_internet_1_bar","signal_cellular_connected_no_internet_2_bar","signal_cellular_connected_no_internet_3_bar","signal_cellular_connected_no_internet_4_bar","signal_cellular_no_sim","signal_cellular_nodata","signal_cellular_null","signal_cellular_off","signal_cellular_pause","signal_disconnected","signal_wifi_0_bar","signal_wifi_1_bar","signal_wifi_1_bar_lock","signal_wifi_2_bar","signal_wifi_2_bar_lock","signal_wifi_3_bar","signal_wifi_3_bar_lock","signal_wifi_4_bar","signal_wifi_4_bar_lock","signal_wifi_bad","signal_wifi_connected_no_internet_0","signal_wifi_connected_no_internet_1","signal_wifi_connected_no_internet_2","signal_wifi_connected_no_internet_3","signal_wifi_connected_no_internet_4","signal_wifi_off","signal_wifi_statusbar_1_bar","signal_wifi_statusbar_2_bar","signal_wifi_statusbar_3_bar","signal_wifi_statusbar_4_bar","signal_wifi_statusbar_connected_no_internet","signal_wifi_statusbar_connected_no_internet_1","signal_wifi_statusbar_connected_no_internet_2","signal_wifi_statusbar_connected_no_internet_3","signal_wifi_statusbar_connected_no_internet_4","signal_wifi_statusbar_not_connected","signal_wifi_statusbar_null","signature","signpost","sim_card","sim_card_alert","sim_card_download","simulation","single_bed","sip","siren","siren_check","siren_open","siren_question","skateboarding","skeleton","skillet","skillet_cooktop","skip_next","skip_previous","skull","skull_list","slab_serif","sledding","sleep_score","slide_library","sliders","slideshow","slow_motion_video","smart_button","smart_card_reader","smart_card_reader_off","smart_display","smart_outlet","smart_screen","smart_toy","smartphone","smartphone_camera","smb_share","smoke_free","smoking_rooms","sms","sms_failed","snippet_folder","snooze","snowboarding","snowing","snowing_heavy","snowmobile","snowshoeing","soap","social_distance","social_leaderboard","solar_power","sort","sort_by_alpha","sos","sound_detection_dog_barking","sound_detection_glass_break","sound_detection_loud_sound","sound_sampler","soup_kitchen","source","source_environment","source_notes","south","south_america","south_east","south_west","spa","space_bar","space_dashboard","spatial_audio","spatial_audio_off","spatial_speaker","spatial_tracking","speaker","speaker_group","speaker_notes","speaker_notes_off","speaker_phone","special_character","specific_gravity","speech_to_text","speed","speed_0_25","speed_0_2x","speed_0_5","speed_0_5x","speed_0_75","speed_0_7x","speed_1_2","speed_1_25","speed_1_2x","speed_1_5","speed_1_5x","speed_1_75","speed_1_7x","speed_2x","speed_camera","spellcheck","split_scene","splitscreen","splitscreen_add","splitscreen_bottom","splitscreen_landscape","splitscreen_left","splitscreen_portrait","splitscreen_right","splitscreen_top","splitscreen_vertical_add","spo2","spoke","sports","sports_and_outdoors","sports_bar","sports_baseball","sports_basketball","sports_cricket","sports_esports","sports_football","sports_golf","sports_gymnastics","sports_handball","sports_hockey","sports_kabaddi","sports_martial_arts","sports_mma","sports_motorsports","sports_rugby","sports_score","sports_soccer","sports_tennis","sports_volleyball","sprinkler","sprint","square","square_dot","square_foot","ssid_chart","stack","stack_hexagon","stack_off","stack_star","stacked_bar_chart","stacked_email","stacked_inbox","stacked_line_chart","stacks","stadia_controller","stadium","stairs","stairs_2","star","star_border","star_border_purple500","star_half","star_outline","star_purple500","star_rate","star_rate_half","stars","start","stat_0","stat_1","stat_2","stat_3","stat_minus_1","stat_minus_2","stat_minus_3","stay_current_landscape","stay_current_portrait","stay_primary_landscape","stay_primary_portrait","step","step_into","step_out","step_over","steppers","steps","stethoscope","stethoscope_arrow","stethoscope_check","sticky_note","sticky_note_2","stock_media","stockpot","stop","stop_circle","stop_screen_share","storage","store","store_mall_directory","storefront","storm","straight","straighten","strategy","stream","stream_apps","streetview","stress_management","strikethrough_s","stroke_full","stroke_partial","stroller","style","styler","stylus","stylus_laser_pointer","stylus_note","subdirectory_arrow_left","subdirectory_arrow_right","subheader","subject","subscript","subscriptions","subtitles","subtitles_off","subway","summarize","sunny","sunny_snowing","superscript","supervised_user_circle","supervised_user_circle_off","supervisor_account","support","support_agent","surfing","surgical","surround_sound","swap_calls","swap_driving_apps","swap_driving_apps_wheel","swap_horiz","swap_horizontal_circle","swap_vert","swap_vertical_circle","sweep","swipe","swipe_down","swipe_down_alt","swipe_left","swipe_left_alt","swipe_right","swipe_right_alt","swipe_up","swipe_up_alt","swipe_vertical","switch","switch_access","switch_access_2","switch_access_shortcut","switch_access_shortcut_add","switch_account","switch_camera","switch_left","switch_right","switch_video","switches","sword_rose","swords","symptoms","synagogue","sync","sync_alt","sync_arrow_down","sync_arrow_up","sync_desktop","sync_disabled","sync_lock","sync_problem","sync_saved_locally","syringe","system_security_update","system_security_update_good","system_security_update_warning","system_update","system_update_alt","tab","tab_close","tab_close_inactive","tab_close_right","tab_duplicate","tab_group","tab_inactive","tab_move","tab_new_right","tab_recent","tab_unselected","table","table_bar","table_chart","table_chart_view","table_convert","table_edit","table_eye","table_lamp","table_restaurant","table_rows","table_rows_narrow","table_view","tablet","tablet_android","tablet_camera","tablet_mac","tabs","tactic","tag","tag_faces","takeout_dining","tamper_detection_off","tamper_detection_on","tap_and_play","tapas","target","task","task_alt","taunt","taxi_alert","team_dashboard","temp_preferences_eco","temple_buddhist","temple_hindu","tenancy","terminal","terrain","text_ad","text_compare","text_decrease","text_fields","text_fields_alt","text_format","text_increase","text_rotate_up","text_rotate_vertical","text_rotation_angledown","text_rotation_angleup","text_rotation_down","text_rotation_none","text_select_end","text_select_jump_to_beginning","text_select_jump_to_end","text_select_move_back_character","text_select_move_back_word","text_select_move_down","text_select_move_forward_character","text_select_move_forward_word","text_select_move_up","text_select_start","text_snippet","text_to_speech","text_up","textsms","texture","texture_add","texture_minus","theater_comedy","theaters","thermometer","thermometer_add","thermometer_gain","thermometer_loss","thermometer_minus","thermostat","thermostat_arrow_down","thermostat_arrow_up","thermostat_auto","thermostat_carbon","things_to_do","thread_unread","threat_intelligence","thumb_down","thumb_down_alt","thumb_down_off_alt","thumb_up","thumb_up_alt","thumb_up_off_alt","thumbnail_bar","thumbs_up_down","thunderstorm","tibia","tibia_alt","tile_large","tile_medium","tile_small","time_auto","time_to_leave","timelapse","timeline","timer","timer_10","timer_10_alt_1","timer_10_select","timer_3","timer_3_alt_1","timer_3_select","timer_5","timer_5_shutter","timer_arrow_down","timer_arrow_up","timer_off","timer_pause","timer_play","tips_and_updates","tire_repair","title","titlecase","toast","toc","today","toggle_off","toggle_on","token","toll","tonality","toolbar","tools_flat_head","tools_installation_kit","tools_ladder","tools_level","tools_phillips","tools_pliers_wire_stripper","tools_power_drill","tooltip","tooltip_2","top_panel_close","top_panel_open","topic","tornado","total_dissolved_solids","touch_app","touch_double","touch_long","touch_triple","touchpad_mouse","touchpad_mouse_off","tour","toys","toys_and_games","toys_fan","track_changes","trackpad_input","trackpad_input_2","trackpad_input_3","traffic","traffic_jam","trail_length","trail_length_medium","trail_length_short","train","tram","transcribe","transfer_within_a_station","transform","transgender","transit_enterexit","transit_ticket","transition_chop","transition_dissolve","transition_fade","transition_push","transition_slide","translate","transportation","travel","travel_explore","travel_luggage_and_bags","trending_down","trending_flat","trending_up","trip","trip_origin","trolley","trolley_cable_car","trophy","troubleshoot","try","tsunami","tsv","tty","tune","tungsten","turn_left","turn_right","turn_sharp_left","turn_sharp_right","turn_slight_left","turn_slight_right","turned_in","turned_in_not","tv","tv_displays","tv_gen","tv_guide","tv_next","tv_off","tv_options_edit_channels","tv_options_input_settings","tv_remote","tv_signin","tv_with_assistant","two_pager","two_pager_store","two_wheeler","type_specimen","u_turn_left","u_turn_right","ulna_radius","ulna_radius_alt","umbrella","unarchive","undo","unfold_less","unfold_less_double","unfold_more","unfold_more_double","ungroup","universal_currency","universal_currency_alt","universal_local","unknown_2","unknown_5","unknown_7","unknown_document","unknown_med","unlicense","unpaved_road","unpublished","unsubscribe","upcoming","update","update_disabled","upgrade","upi_pay","upload","upload_2","upload_file","uppercase","urology","usb","usb_off","user_attributes","vaccines","vacuum","valve","vape_free","vaping_rooms","variable_add","variable_insert","variable_remove","variables","ventilator","verified","verified_user","vertical_align_bottom","vertical_align_center","vertical_align_top","vertical_distribute","vertical_shades","vertical_shades_closed","vertical_split","vibration","video_call","video_camera_back","video_camera_back_add","video_camera_front","video_camera_front_off","video_chat","video_file","video_label","video_library","video_search","video_settings","video_stable","videocam","videocam_alert","videocam_off","videogame_asset","videogame_asset_off","view_agenda","view_apps","view_array","view_carousel","view_column","view_column_2","view_comfy","view_comfy_alt","view_compact","view_compact_alt","view_cozy","view_day","view_headline","view_in_ar","view_in_ar_off","view_kanban","view_list","view_module","view_object_track","view_quilt","view_real_size","view_sidebar","view_stream","view_timeline","view_week","vignette","villa","visibility","visibility_lock","visibility_off","vital_signs","vo2_max","voice_chat","voice_over_off","voice_selection","voice_selection_off","voicemail","volcano","volume_down","volume_down_alt","volume_mute","volume_off","volume_up","volunteer_activism","voting_chip","vpn_key","vpn_key_alert","vpn_key_off","vpn_lock","vr180_create2d","vr180_create2d_off","vrpano","wall_art","wall_lamp","wallet","wallpaper","wallpaper_slideshow","ward","warehouse","warning","warning_amber","warning_off","wash","watch","watch_button_press","watch_check","watch_later","watch_off","watch_screentime","watch_vibration","watch_wake","water","water_bottle","water_bottle_large","water_damage","water_do","water_drop","water_ec","water_full","water_heater","water_lock","water_loss","water_lux","water_medium","water_orp","water_ph","water_pump","water_voc","waterfall_chart","waves","waving_hand","wb_auto","wb_cloudy","wb_incandescent","wb_iridescent","wb_shade","wb_sunny","wb_twighlight","wb_twilight","wc","weather_hail","weather_mix","weather_snowy","web","web_asset","web_asset_off","web_stories","web_traffic","webhook","weekend","weight","west","whatshot","wheelchair_pickup","where_to_vote","widget_medium","widget_small","widget_width","widgets","width_full","width_normal","width_wide","wifi","wifi_1_bar","wifi_2_bar","wifi_add","wifi_calling","wifi_calling_1","wifi_calling_2","wifi_calling_3","wifi_calling_bar_1","wifi_calling_bar_2","wifi_calling_bar_3","wifi_channel","wifi_find","wifi_home","wifi_lock","wifi_notification","wifi_off","wifi_password","wifi_protected_setup","wifi_proxy","wifi_tethering","wifi_tethering_error","wifi_tethering_off","wind_power","window","window_closed","window_open","window_sensor","wine_bar","woman","woman_2","work","work_alert","work_history","work_off","work_outline","work_update","workspace_premium","workspaces","workspaces_filled","workspaces_outline","wounds_injuries","wrap_text","wrist","wrong_location","wysiwyg","yard","your_trips","youtube_activity","youtube_searched_for","zone_person_alert","zone_person_idle","zone_person_urgent","zoom_in","zoom_in_map","zoom_out","zoom_out_map"];var RC=(0,n.defineComponent)({__name:"Icon",props:{icon:{},name:{},size:{default:1},mobileSize:{},color:{},round:{type:Boolean},weight:{},fontAwesome:{type:Boolean},fill:{type:Boolean},animate:{},animateSpeed:{},animateOnce:{type:Boolean},transition:{type:[Boolean,String],default:!0}},setup(e){const t=e,r=(0,n.computed)(()=>t.icon??t.name),{isMobile:o}=Ja(),a=(0,n.computed)(()=>o.value&&t.mobileSize!==void 0?t.mobileSize:t.size),l=(0,n.computed)(()=>t.fontAwesome&&(dc.includes(r.value)||$l.includes(r.value))?"font-awesome":Uh.includes(r.value)?"material":dc.includes(r.value)||$l.includes(r.value)?"font-awesome":"material"),i=(0,n.computed)(()=>$l.includes(r.value)),s=(0,n.ref)(!0),c=(0,n.ref)(!0),u=(0,n.ref)(!0);function d(){return typeof document>"u"?null:document.fonts??null}function f(){const w=d();return w!==null&&typeof w.load=="function"}async function m(w){if(!f())return!0;try{const k=d();return!k||k.check(`1em "${w}"`)?!0:(await k.load(`1em "${w}"`),k.check(`1em "${w}"`))}catch{return!1}}async function p(){s.value=await m("Material Symbols Outlined")}async function h(){c.value=await m("Font Awesome 6 Free")}async function y(){u.value=await m("Font Awesome 6 Brands")}(0,n.onMounted)(()=>{if(f())if(l.value==="material"){const w=d();s.value=w?w.check('1em "Material Symbols Outlined"'):!0,p()}else if(i.value){const w=d();u.value=w?w.check('1em "Font Awesome 6 Brands"'):!0,y()}else{const w=d();c.value=w?w.check('1em "Font Awesome 6 Free"'):!0,h()}}),(0,n.watchEffect)(()=>{f()&&(l.value==="material"?p():i.value?y():h())});const b=(0,n.computed)(()=>l.value==="material"?s.value:i.value?u.value:c.value),g=(0,n.computed)(()=>t.animate?`bgl_icon--${t.animate}`:null),v=(0,n.computed)(()=>{if(!t.animate)return;const w={};return t.animateSpeed!==void 0&&(w.animationDuration=`${t.animateSpeed}s`),t.animateOnce&&(w.animationIterationCount="1"),w}),_=(0,n.computed)(()=>t.transition===!1?"bgl-icon-x-none":`bgl-icon-x-${t.transition===!0?"slide-up":t.transition}`);return(w,k)=>((0,n.openBlock)(),(0,n.createBlock)(n.Transition,{name:_.value,mode:"out-in"},{default:(0,n.withCtx)(()=>[l.value==="material"?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:r.value,class:(0,n.normalizeClass)(["bgl_icon-font notranslate",[g.value,{"round flex aspect-ratio-1 justify-content-center":e.round}]]),style:(0,n.normalizeStyle)({fontSize:`${a.value}rem`,color:e.color,"font-variation-settings":`'FILL' ${e.fill?1:0}, 'wght' ${e.weight||400}`,width:e.round?`calc(${a.value}rem * 2)`:"auto",height:e.round?`calc(${a.value}rem * 2)`:"auto",visibility:b.value?"visible":"hidden",...v.value}),translate:"no"},(0,n.toDisplayString)(r.value),7)):l.value==="font-awesome"?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:r.value,class:(0,n.normalizeClass)(["fa bgl_icon-font notranslate",[`fa-${r.value}`,g.value,{"fa-brands":i.value,"fa-solid":e.fill,far:!e.fill&&!i.value}]]),style:(0,n.normalizeStyle)({fontSize:`${a.value}rem`,color:e.color,"font-variation-settings":`'wght' ${e.weight||400}`,visibility:b.value?"visible":"hidden",...v.value}),translate:"no"},null,6)):(0,n.createCommentVNode)("",!0)]),_:1},8,["name"]))}}),be=RC,FC={class:"flex space-between w-100p align-items-start gap-05"},zC={class:"flex gap-05 align-items-center min-w-0"},UC={class:"min-w-0"},HC={class:"txt13 opacity-6 m-0 ellipsis-1"},WC={key:0,class:"txt12 color-gray m-0 ellipsis-1"},jC={class:"flex space-between w-100p align-items-end gap-1"},qC=(0,n.defineComponent)({__name:"StatCard",props:{label:{},value:{},icon:{},color:{default:"primary"},change:{},invertChange:{type:Boolean},trend:{},currency:{},prefix:{},suffix:{},subtitle:{},loading:{type:Boolean},outline:{type:Boolean},frame:{type:Boolean}},setup(e){const t=e,r=(0,n.computed)(()=>Et(t.color)),o=(0,n.computed)(()=>typeof t.value=="number"?$t(t.value,{currency:t.currency,prefix:t.prefix,suffix:t.suffix}):`${t.prefix??""}${t.value}${t.suffix??""}`),a=(0,n.computed)(()=>t.change!==void 0&&t.change!==0),l=(0,n.computed)(()=>(t.change??0)>0),i=(0,n.computed)(()=>t.invertChange?!l.value:l.value);return(s,c)=>((0,n.openBlock)(),(0,n.createBlock)(sr,{thin:"",outline:e.outline,frame:e.frame,class:"bgl-stat flex column gap-1"},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("div",FC,[(0,n.createElementVNode)("div",zC,[e.icon?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:0,class:"bgl-stat__icon grid place-items-center flex-shrink-0",style:(0,n.normalizeStyle)({color:r.value,background:`color-mix(in srgb, ${r.value} 12%, transparent)`})},[(0,n.createVNode)(be,{name:e.icon,size:1.1},null,8,["name"])],4)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",UC,[(0,n.createElementVNode)("p",HC,(0,n.toDisplayString)(e.label),1),e.subtitle?((0,n.openBlock)(),(0,n.createElementBlock)("p",WC,(0,n.toDisplayString)(e.subtitle),1)):(0,n.createCommentVNode)("",!0)])]),a.value?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:0,class:(0,n.normalizeClass)(["bgl-stat__delta inline-flex align-items-center flex-shrink-0 semibold",i.value?"bgl-stat__delta--up":"bgl-stat__delta--down"])},[(0,n.createVNode)(be,{name:l.value?"trending_up":"trending_down",size:.9},null,8,["name"]),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(Math.abs(e.change).toFixed(1))+"% ",1)],2)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",jC,[(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(["txt28 m_txt24 semibold line-height-1 tabular-nums",{"opacity-4":e.loading}])},(0,n.toDisplayString)(e.loading?"…":o.value),3),e.trend?.length?((0,n.openBlock)(),(0,n.createBlock)(ah,{key:0,data:e.trend,color:e.color,area:"",class:"flex-shrink-0 opacity-9",width:96,height:32},null,8,["data","color"])):(0,n.createCommentVNode)("",!0)])]),_:1},8,["outline","frame"]))}}),GC=ge(qC,[["__scopeId","data-v-f367e664"]]),YC=["src","alt"],XC={key:2,class:"flex-center absolute-fill error-image"},KC={key:1},JC=["src","alt","width","height"],ZC=["src","alt","width","height"],QC=(0,n.defineComponent)({name:"BglImage",inheritAttrs:!0,__name:"Image",props:{src:{},pathKey:{},alt:{},width:{},height:{},caption:{},modelValue:{},ratio:{},gradient:{},fit:{},blend:{},rounded:{type:[Boolean,Number]}},setup(e){const t=e,{imageSrc:r,loadingError:o}=id(()=>t.src??t.pathKey??t.modelValue),a=(0,n.useSlots)(),l=(0,n.computed)(()=>!!a.default?.({})?.some(p=>p.type!==n.Comment&&!(typeof p.children=="string"&&p.children.trim()===""))),i=(0,n.computed)(()=>t.ratio!==void 0||t.gradient!==void 0||t.blend!==void 0||t.rounded!==void 0||l.value);function s(p){return/^(--|#|rgb|hsl|var\(|linear|radial|conic)/.test(p)?p:`var(--bgl-${p})`}const c=(0,n.computed)(()=>{const p=t.gradient;if(!p)return;if(Array.isArray(p))return`linear-gradient(150deg, ${s(p[0])}, ${s(p[1])})`;if(/^(linear|radial|conic)-gradient/.test(p))return p;const h=s(p);return`linear-gradient(150deg, ${h}, color-mix(in srgb, ${h} 55%, #000))`}),u=(0,n.computed)(()=>t.ratio?`ratio-${t.ratio}`:""),d=(0,n.computed)(()=>t.ratio!==void 0||t.height!==void 0),f=(0,n.computed)(()=>{if(!(t.rounded===void 0||t.rounded===!1))return typeof t.rounded=="number"?`${t.rounded}px`:"var(--bgl-card-radius, 12px)"}),m=(0,n.computed)(()=>t.fit??(t.ratio||t.gradient?"cover":void 0));return(p,h)=>i.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["bgl-image-frame relative overflow-hidden",u.value]),style:(0,n.normalizeStyle)({width:(0,n.unref)(Wt)(e.width),height:e.ratio?void 0:(0,n.unref)(Wt)(e.height),background:c.value,borderRadius:f.value})},[(0,n.unref)(r)?((0,n.openBlock)(),(0,n.createElementBlock)("img",{key:0,src:(0,n.unref)(r),alt:e.alt,class:(0,n.normalizeClass)(["bgl-image-frame-img",d.value?"absolute-fill":"bgl-image-frame-img--flow"]),style:(0,n.normalizeStyle)({objectFit:m.value,mixBlendMode:e.blend})},null,14,YC)):!c.value&&!(0,n.unref)(o)?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(da),{key:1,class:"absolute-fill"})):(0,n.unref)(o)&&!c.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",XC,[(0,n.createVNode)((0,n.unref)(be),{name:"broken_image"})])):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(p.$slots,"default",{},void 0,!0)],6)):e.caption?((0,n.openBlock)(),(0,n.createElementBlock)("figcaption",KC,[(0,n.unref)(r)?((0,n.openBlock)(),(0,n.createElementBlock)("img",(0,n.mergeProps)({key:0,src:(0,n.unref)(r)},p.$attrs,{alt:e.alt,width:(0,n.unref)(Wt)(e.width),height:(0,n.unref)(Wt)(e.height)}),null,16,JC)):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(da),{key:1,class:"img-web-kit",width:(0,n.unref)(Wt)(e.width),height:(0,n.unref)(Wt)(e.height)},null,8,["width","height"]))])):(0,n.unref)(r)?((0,n.openBlock)(),(0,n.createElementBlock)("img",(0,n.mergeProps)({key:2,src:(0,n.unref)(r)},p.$attrs,{alt:e.alt,width:(0,n.unref)(Wt)(e.width),height:(0,n.unref)(Wt)(e.height)}),null,16,ZC)):(0,n.unref)(o)?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:3,class:"flex-center error-image",style:(0,n.normalizeStyle)({width:(0,n.unref)(Wt)(e.width),height:(0,n.unref)(Wt)(e.height)})},[(0,n.createVNode)((0,n.unref)(be),{name:"broken_image"})],4)):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(da),{key:4,class:"img-web-kit",width:(0,n.unref)(Wt)(e.width),height:(0,n.unref)(Wt)(e.height)},null,8,["width","height"]))}}),wa=ge(QC,[["__scopeId","data-v-76f29e7b"]]),eS=["title"],tS=(0,n.defineComponent)({name:"BglAvatar",__name:"Avatar",props:{fallback:{},src:{},name:{},icon:{},alt:{},size:{default:50},square:{type:[Boolean,Number]},color:{},status:{type:[Boolean,String]},statusTitle:{},innerClass:{}},setup(e){const t=e,r=(0,n.computed)(()=>t.status===!0?"green":t.status||null),o=(0,n.computed)(()=>Math.max(7,Math.min(14,Math.round(t.size*.28)))),a=(0,n.computed)(()=>t.square?t.square===!0?"var(--bgl-btn-border-radius)":`${t.square}px`:"1000px"),l=(0,n.computed)(()=>t.color?{background:`color-mix(in srgb, var(--bgl-${t.color}) 14%, transparent)`,color:`var(--bgl-${t.color})`,border:"none"}:{});return(i,s)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"avatar-wrap",style:(0,n.normalizeStyle)({width:`${e.size}px`,height:`${e.size}px`})},[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["overflow-hidden txt-center p-0 avatar flex justify-content-center align-items-center",e.innerClass]),style:(0,n.normalizeStyle)({width:`${e.size}px`,height:`${e.size}px`,borderRadius:a.value,...l.value})},[e.src?((0,n.openBlock)(),(0,n.createBlock)(wa,{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)(be),{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)(hv)(e.name||"")).toUpperCase()),5))],6),r.value?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:0,class:"avatar-status",title:e.statusTitle,style:(0,n.normalizeStyle)({width:`${o.value}px`,height:`${o.value}px`,background:`var(--bgl-${r.value})`})},null,12,eS)):(0,n.createCommentVNode)("",!0)],4))}}),Hh=ge(tS,[["__scopeId","data-v-1d880a58"]]),nS=["disabled"],rS={class:"flex h-100 justify-content-center relative"},oS={key:0,class:"loading absolute inset-0 mx-auto"},aS={key:1,class:"bgl_pill-dot"},lS=(0,n.defineComponent)({name:"BglBadge",__name:"Badge",props:{disabled:{type:Boolean},icon:{},iconEnd:{},color:{},variant:{},flat:{type:Boolean},outline:{type:Boolean},soft:{type:Boolean},frost:{type:Boolean},gradient:{type:[Boolean,String]},gradientDir:{},frame:{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},mobileSize:{},uppercase:{type:Boolean}},setup(e){const t=e,r=(0,n.useSlots)(),o=(0,n.computed)(()=>t.disabled?"gray-light":t.color),{isGradient:a,gradientStyle:l}=zi({gradient:()=>t.gradient,gradientDir:()=>t.gradientDir,color:()=>t.color}),i=(0,n.computed)(()=>{const f=o.value;return f?`pair-${f}`:u.value==="frost"?"pair-white":"pair-primary"}),s=(0,n.computed)(()=>t.size?t.size:t.sm?"sm":t.lg?"lg":"md"),c=(0,n.computed)(()=>t.mobileSize),u=(0,n.computed)(()=>t.variant?t.variant:a.value?"gradient":t.frost?"frost":t.glass?"glass":t.soft?"soft":t.flat?"flat":t.outline||t.border?"outline":"solid"),d=(0,n.computed)(()=>{const f={bgl_pill:!t.icon||!!r.default||!!t.value,round:t.round,bgl_flatPill:u.value==="flat","bgl_pill-border":u.value==="outline","bgl_pill-frame":t.frame,bgl_glassPill:u.value==="glass",soft:u.value==="soft",frost:u.value==="frost",gradient:u.value==="gradient",pillLarge:s.value==="lg",pillSmall:s.value==="sm",m_pillLarge:c.value==="lg",m_pillMd:c.value==="md",m_pillSmall:c.value==="sm"};return f[i.value]=!0,f});return(f,m)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["bgl_pill",d.value]),style:(0,n.normalizeStyle)([{height:"var(--bgl-pill-height)"},(0,n.unref)(l)]),disabled:e.disabled},[(0,n.createElementVNode)("div",rS,[e.loading?((0,n.openBlock)(),(0,n.createElementBlock)("div",oS)):(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)(oe),(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",aS)):(0,n.createCommentVNode)("",!0),e.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{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)(f.$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)(be),{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)(oe),(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)])],14,nS))}}),mo=ge(lS,[["__scopeId","data-v-4ea15aa0"]]);function wu(e){return(0,n.getCurrentScope)()?((0,n.onScopeDispose)(e),!0):!1}var Ua=typeof window<"u"&&typeof document<"u",$U=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,iS=e=>e!=null,sS=Object.prototype.toString,cS=e=>sS.call(e)==="[object Object]",yf=()=>+Date.now(),Gt=()=>{},uS=dS();function dS(){var e,t;return Ua&&((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 ku(e,t){function r(...o){return new Promise((a,l)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(a).catch(l)})}return r}var fS=e=>e();function Wh(e,t={}){let r,o,a=Gt;const l=c=>{clearTimeout(c),a(),a=Gt};let i;return c=>{const u=(0,n.toValue)(e),d=(0,n.toValue)(t.maxWait);return r&&l(r),u<=0||d!==void 0&&d<=0?(o&&(l(o),o=void 0),Promise.resolve(c())):new Promise((f,m)=>{a=t.rejectOnCancel?m:f,i=c,d&&!o&&(o=setTimeout(()=>{r&&l(r),o=void 0,f(i())},d)),r=setTimeout(()=>{o&&l(o),o=void 0,f(c())},u)})}}function mS(...e){let t=0,r,o=!0,a=Gt,l,i,s,c,u;!(0,n.isRef)(e[0])&&typeof e[0]=="object"?{delay:i,trailing:s=!0,leading:c=!0,rejectOnCancel:u=!1}=e[0]:[i,s=!0,c=!0,u=!1]=e;const d=()=>{r&&(clearTimeout(r),r=void 0,a(),a=Gt)};return m=>{const p=(0,n.toValue)(i),h=Date.now()-t,y=()=>l=m();return d(),p<=0?(t=Date.now(),y()):(h>p&&(c||!o)?(t=Date.now(),y()):s&&(l=new Promise((b,g)=>{a=u?g:b,r=setTimeout(()=>{t=Date.now(),o=!0,b(y()),d()},Math.max(0,p-h))})),!c&&!r&&(r=setTimeout(()=>o=!0,p)),o=!1,l)}}function bf(e,t=!1,r="Timeout"){return new Promise((o,a)=>{setTimeout(t?()=>a(r):o,e)})}function oa(e){return Array.isArray(e)?e:[e]}function jh(e){const t=Object.create(null);return r=>t[r]||(t[r]=e(r))}var pS=/\B([A-Z])/g,EU=jh(e=>e.replace(pS,"-$1").toLowerCase()),hS=/-(\w)/g,CU=jh(e=>e.replace(hS,(t,r)=>r?r.toUpperCase():""));function gS(e){return e||(0,n.getCurrentInstance)()}function Ur(e,t=200,r={}){return ku(Wh(t,r),e)}function vS(e,t,r={}){const{eventFilter:o=fS,...a}=r;return(0,n.watch)(e,ku(o,t),a)}function yS(e,t=!0,r){gS(r)?(0,n.onMounted)(e,r):t?e():(0,n.nextTick)(e)}function fc(e,t=!1){function r(f,{flush:m="sync",deep:p=!1,timeout:h,throwOnTimeout:y}={}){let b=null;const g=[new Promise(v=>{b=(0,n.watch)(e,_=>{f(_)!==t&&(b?b():(0,n.nextTick)(()=>b?.()),v(_))},{flush:m,deep:p,immediate:!0})})];return h!=null&&g.push(bf(h,y).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:y,throwOnTimeout:b}=m??{};let g=null;const v=[new Promise(_=>{g=(0,n.watch)([e,f],([w,k])=>{t!==(w===k)&&(g?g():(0,n.nextTick)(()=>g?.()),_(w))},{flush:p,deep:h,immediate:!0})})];return y!=null&&v.push(bf(y,b).then(()=>(0,n.toValue)(e)).finally(()=>(g?.(),(0,n.toValue)(e)))),Promise.race(v)}function a(f){return r(m=>!!m,f)}function l(f){return o(null,f)}function i(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 fc(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:a,toBeNull:l,toBeNaN:s,toBeUndefined:i,changed:u,changedTimes:d,get not(){return fc(e,!t)}}}function bS(e){return fc(e)}function _S(e,t,r={}){const{debounce:o=0,maxWait:a=void 0,...l}=r;return vS(e,t,{...l,eventFilter:Wh(o,{maxWait:a})})}function wS(e,t,r){return(0,n.watch)(e,t,{...r,immediate:!0})}var Io=Ua?window:void 0,SU=Ua?window.document:void 0,xU=Ua?window.navigator:void 0,TU=Ua?window.location:void 0;function Rt(e){var t;const r=(0,n.toValue)(e);return(t=r?.$el)!=null?t:r}function vo(...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=oa((0,n.toValue)(e[0])).filter(c=>c!=null);return s.every(c=>typeof c!="string")?s:void 0}),l=wS(()=>{var s,c;return[(c=(s=a.value)==null?void 0:s.map(u=>Rt(u)))!=null?c:[Io].filter(u=>u!=null),oa((0,n.toValue)(a.value?e[1]:e[0])),oa((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=cS(d)?{...d}:d;t.push(...s.flatMap(m=>c.flatMap(p=>u.map(h=>o(m,p,h,f)))))},{flush:"post"}),i=()=>{l(),r()};return wu(r),i}var _f=!1;function kS(e,t,r={}){const{window:o=Io,ignore:a=[],capture:l=!0,detectIframe:i=!1,controls:s=!1}=r;if(!o)return s?{stop:Gt,cancel:Gt,trigger:Gt}:Gt;if(uS&&!_f){_f=!0;const b={passive:!0};Array.from(o.document.body.children).forEach(g=>g.addEventListener("click",Gt,b)),o.document.documentElement.addEventListener("click",Gt,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(v=>v===b.target||b.composedPath().includes(v));{const v=Rt(g);return v&&(b.target===v||b.composedPath().includes(v))}});function d(b){const g=(0,n.toValue)(b);return g&&g.$.subTree.shapeFlag===16}function f(b,g){const v=(0,n.toValue)(b),_=v.$.subTree&&v.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(w=>w.el===g.target||g.composedPath().includes(w.el))}const m=b=>{const g=Rt(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=[vo(o,"click",b=>{p||(p=!0,setTimeout(()=>{p=!1},0),m(b))},{passive:!0,capture:l}),vo(o,"pointerdown",b=>{const g=Rt(e);c=!u(b)&&!!(g&&!b.composedPath().includes(g))},{passive:!0}),i&&vo(o,"blur",b=>{setTimeout(()=>{var g;const v=Rt(e);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!v?.contains(o.document.activeElement)&&t(b)},0)},{passive:!0})].filter(Boolean),y=()=>h.forEach(b=>b());return s?{stop:y,cancel:()=>{c=!1},trigger:b=>{c=!0,m(b),c=!1}}:y}function $S(){const e=(0,n.shallowRef)(!1),t=(0,n.getCurrentInstance)();return t&&(0,n.onMounted)(()=>{e.value=!0},t),e}function qh(e){const t=$S();return(0,n.computed)(()=>(t.value,!!e()))}function Gh(e,t,r={}){const{window:o=Io,...a}=r;let l;const i=qh(()=>o&&"ResizeObserver"in o),s=()=>{l&&(l.disconnect(),l=void 0)},c=(0,n.watch)((0,n.computed)(()=>{const d=(0,n.toValue)(e);return Array.isArray(d)?d.map(f=>Rt(f)):[Rt(d)]}),d=>{if(s(),i.value&&o){l=new ResizeObserver(t);for(const f of d)f&&l.observe(f,a)}},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return wu(u),{isSupported:i,stop:u}}function ES(e,t={width:0,height:0},r={}){const{window:o=Io,box:a="content-box"}=r,l=(0,n.computed)(()=>{var f,m;return(m=(f=Rt(e))==null?void 0:f.namespaceURI)==null?void 0:m.includes("svg")}),i=(0,n.shallowRef)(t.width),s=(0,n.shallowRef)(t.height),{stop:c}=Gh(e,([f])=>{const m=a==="border-box"?f.borderBoxSize:a==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&l.value){const p=Rt(e);if(p){const h=p.getBoundingClientRect();i.value=h.width,s.value=h.height}}else if(m){const p=oa(m);i.value=p.reduce((h,{inlineSize:y})=>h+y,0),s.value=p.reduce((h,{blockSize:y})=>h+y,0)}else i.value=f.contentRect.width,s.value=f.contentRect.height},r);yS(()=>{const f=Rt(e);f&&(i.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=(0,n.watch)(()=>Rt(e),f=>{i.value=f?t.width:0,s.value=f?t.height:0});function d(){c(),u()}return{width:i,height:s,stop:d}}function Yh(e,t,r={}){const{root:o,rootMargin:a="0px",threshold:l=0,window:i=Io,immediate:s=!0}=r,c=qh(()=>i&&"IntersectionObserver"in i),u=(0,n.computed)(()=>oa((0,n.toValue)(e)).map(Rt).filter(iS));let d=Gt;const f=(0,n.shallowRef)(s),m=c.value?(0,n.watch)(()=>[u.value,Rt(o),f.value],([h,y])=>{if(d(),!f.value||!h.length)return;const b=new IntersectionObserver(t,{root:Rt(y),rootMargin:a,threshold:l});h.forEach(g=>g&&b.observe(g)),d=()=>{b.disconnect(),d=Gt}},{immediate:s,flush:"post"}):Gt,p=()=>{d(),m(),f.value=!1};return wu(p),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:p}}var CS=["mousemove","mousedown","resize","keydown","touchstart","wheel"],SS=6e4;function xS(e=SS,t={}){const{initialState:r=!1,listenForVisibilityChange:o=!0,events:a=CS,window:l=Io,eventFilter:i=mS(50)}=t,s=(0,n.shallowRef)(r),c=(0,n.shallowRef)(yf());let u;const d=()=>{s.value=!1,clearTimeout(u),u=setTimeout(()=>s.value=!0,e)},f=ku(i,()=>{c.value=yf(),d()});if(l){const m=l.document,p={passive:!0};for(const h of a)vo(l,h,f,p);o&&vo(m,"visibilitychange",()=>{m.hidden||f()},p),r||d()}return{idle:s,lastActive:c,reset:d}}var NU=[{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 TS(e,t){const{containerStyle:r,wrapperProps:o,scrollTo:a,calculateRange:l,currentList:i,containerRef:s}="itemHeight"in t?DS(t,e):BS(t,e);return{list:i,scrollTo:a,containerProps:{ref:s,onScroll:()=>{l()},style:r},wrapperProps:o}}function Xh(e){const t=(0,n.shallowRef)(null),r=ES(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 Kh(e,t,r){return o=>{if(typeof r=="number")return Math.ceil(o/r);const{start:a=0}=e.value;let l=0,i=0;for(let s=a;s<t.value.length;s++){const c=r(s);if(l+=c,i=s,l>o)break}return i-a}}function Jh(e,t){return r=>{if(typeof t=="number")return Math.floor(r/t)+1;let o=0,a=0;for(let l=0;l<e.value.length;l++){const i=t(l);if(o+=i,o>=r){a=l;break}}return a+1}}function Zh(e,t,r,o,{containerRef:a,state:l,currentList:i,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;l.value={start:f<0?0:f,end:m>s.value.length?s.value.length:m},i.value=s.value.slice(l.value.start,l.value.end).map((p,h)=>({data:p,index:h+l.value.start}))}}}function Qh(e,t){return r=>typeof e=="number"?r*e:t.value.slice(0,r).reduce((o,a,l)=>o+e(l),0)}function e0(e,t,r,o){(0,n.watch)([e.width,e.height,()=>(0,n.toValue)(t),r],()=>{o()})}function t0(e,t){return(0,n.computed)(()=>typeof e=="number"?t.value.length*e:t.value.reduce((r,o,a)=>r+e(a),0))}var NS={horizontal:"scrollLeft",vertical:"scrollTop"};function n0(e,t,r,o){return a=>{o.value&&(o.value[NS[e]]=r(a),t())}}function BS(e,t){const r=Xh(t),{state:o,source:a,currentList:l,size:i,containerRef:s}=r,c={overflowX:"auto"},{itemWidth:u,overscan:d=5}=e,f=Kh(o,a,u),m=Zh("horizontal",d,Jh(a,u),f,r),p=Qh(u,a),h=(0,n.computed)(()=>p(o.value.start)),y=t0(u,a);return e0(i,t,s,m),{scrollTo:n0("horizontal",m,p,s),calculateRange:m,wrapperProps:(0,n.computed)(()=>({style:{height:"100%",width:`${y.value-h.value}px`,marginLeft:`${h.value}px`,display:"flex"}})),containerStyle:c,currentList:l,containerRef:s}}function DS(e,t){const r=Xh(t),{state:o,source:a,currentList:l,size:i,containerRef:s}=r,c={overflowY:"auto"},{itemHeight:u,overscan:d=5}=e,f=Kh(o,a,u),m=Zh("vertical",d,Jh(a,u),f,r),p=Qh(u,a),h=(0,n.computed)(()=>p(o.value.start)),y=t0(u,a);return e0(i,t,s,m),{calculateRange:m,scrollTo:n0("vertical",m,p,s),containerStyle:c,wrapperProps:(0,n.computed)(()=>({style:{width:"100%",height:`${y.value-h.value}px`,marginTop:`${h.value}px`}})),currentList:l,containerRef:s}}var AS=["src"],MS=["autoplay","muted","loop","controls","playsinline"],LS=["src","type"],PS=(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)(),l=(0,n.computed)(()=>r.src?.includes("youtube.com/shorts/")??!1),i=(0,n.computed)(()=>l.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"&&Yh(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,y=r.src?.match(p)??null;return`https://player.vimeo.com/video/${h?.[1]??y?.[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:l.value}])},[d.value?((0,n.openBlock)(),(0,n.createElementBlock)("iframe",{key:0,src:f.value,style:(0,n.normalizeStyle)({aspectRatio:i.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,AS)):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:i.value}),controls:e.controls,playsinline:e.playsinline},[(0,n.createElementVNode)("source",{src:e.src,type:`video/${o.value}`},null,8,LS)],12,MS)):(0,n.createCommentVNode)("",!0)],2))}}),$u=ge(PS,[["__scopeId","data-v-acc6c65e"]]),IS=(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:l,innerHeight:i,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,i.value+a.value-150-10)),h=Math.max(l.value+10,Math.min(h,s.value+l.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,y=p.left+l.value+p.width+10;return h=Math.max(a.value+10,Math.min(h,i.value+a.value-150-10)),y+400>s.value+l.value&&(y=p.left+l.value-400+p.width-10),y<l.value&&(y=p.right+l.value+10),{top:h,left:y,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)(sr),{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)}}}),VS=ge(IS,[["__scopeId","data-v-291fefea"]]),OS={key:0,class:"flex h-100p justify-content-center column gap-1 opacity-3"},RS=["data-date","data-today"],FS={class:"bg-white border line-height-12 radius-1 grid align-items-center px-05 py-025 txt-center"},zS={class:"txt18"},US={class:"txt12"},HS={class:"line-height-12"},WS={class:"txt12 opacity-6"},jS={key:0,class:"ms-auto"},qS=["onClick"],GS={class:"agenda-event-time txt-center pt-1 txt14 opacity-6 bold relative"},YS={class:"flex space-between"},XS={class:"txt16 m-0 semi"},KS={class:"txt12 opacity-6"},JS={key:0,class:"txt12 opacity-6"},ZS=(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:l}=nt(),i=(0,n.ref)(null);function s(){try{return ir().global.locale.value}catch{return"en"}}function c(y){if(y<60)return`${y} min`;const b=Math.floor(y/60),g=y%60;return g?`${b}h ${g}m`:`${b}h`}const u=(0,n.computed)(()=>{const y=s(),b=new Date().toDateString(),g=[...r.events].sort((_,w)=>new Date(_.start_time).getTime()-new Date(w.start_time).getTime()),v=new Map;for(const _ of g){const w=new Date(_.start_time),k=w.toDateString();v.has(k)||v.set(k,{dateKey:k,date:w,dayNumber:w.toLocaleDateString(y,{day:"2-digit"}),monthShort:w.toLocaleDateString(y,{month:"short"}),weekdayLong:w.toLocaleDateString(y,{weekday:"long"}),isToday:k===b,events:[]});const S=Math.round((new Date(_.end_time).getTime()-new Date(_.start_time).getTime())/6e4);v.get(k).events.push({..._,durationMin:S})}return Array.from(v.values())}),d=(0,n.ref)(!1);function f(){if(!i.value)return;const y=i.value,b=y.querySelectorAll(".agenda-day-group"),g=y.getBoundingClientRect().top;let v=null,_=1/0;if(b.forEach(w=>{const k=Math.abs(w.getBoundingClientRect().top-g);k<_&&(_=k,v=w)}),v){const w=v.dataset.date;w&&o("dateChange",new Date(w))}}function m(y,b){if(!a.eventContent){o("eventClick",y);return}if(b){const g=b.currentTarget.getBoundingClientRect();o("openPopover",y,{top:g.top+window.scrollY+g.height/2,left:g.left+window.scrollX+g.width+10})}else o("openPopover",y)}function p(y){const b=new Date(y);return b.setHours(0,0,0,0),b.getTime()}function h(y,b="instant",g="nearest"){if(!i.value)return;const v=Array.from(i.value.querySelectorAll(".agenda-day-group"));if(!v.length)return;const _=p(y);let w=null,k=1/0;if(g==="forward")for(const S of v){const E=S.dataset.date;if(!E)continue;const $=p(new Date(E));$>=_&&$-_<k&&(k=$-_,w=S)}else if(g==="backward")for(const S of v){const E=S.dataset.date;if(!E)continue;const $=p(new Date(E));$<=_&&_-$<k&&(k=_-$,w=S)}if(!w)for(const S of v){const E=S.dataset.date;if(!E)continue;const $=Math.abs(p(new Date(E))-_);$<k&&(k=$,w=S)}w?.scrollIntoView({block:"start",behavior:b})}return(0,n.watch)(()=>r.startDate,(y,b)=>{const g=!b||p(y)>=p(b)?"forward":"backward";(0,n.nextTick)(()=>h(y,"smooth",g))}),(0,n.watchEffect)(()=>{if(d.value||!u.value.length)return;const y=new Date().getTime();u.value.some(b=>b.date.getTime()>=y-864e5)&&(d.value=!0,(0,n.nextTick)(()=>h(new Date,"instant","nearest")))}),(0,n.onMounted)(()=>{i.value?.addEventListener("scroll",f)}),(0,n.onUnmounted)(()=>{i.value?.removeEventListener("scroll",f)}),(y,b)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"containerRef",ref:i,class:"display-flex column h-100p overflow gap-0"},[u.value.length===0?((0,n.openBlock)(),(0,n.createElementBlock)("div",OS,[(0,n.createVNode)((0,n.unref)(be),{icon:"calendar",size:"4",weight:"200"}),(0,n.createTextVNode)(" "+(0,n.toDisplayString)((0,n.unref)(l)("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",FS,[(0,n.createElementVNode)("p",zS,(0,n.toDisplayString)(g.dayNumber),1),(0,n.createElementVNode)("p",US,(0,n.toDisplayString)(g.monthShort),1)]),(0,n.createElementVNode)("div",null,[(0,n.createElementVNode)("p",HS,(0,n.toDisplayString)(g.weekdayLong),1),(0,n.createElementVNode)("p",WS,(0,n.toDisplayString)((0,n.unref)(l)("calendar.agenda.eventsCount",g.events.length,{named:{n:g.events.length}})),1)]),g.isToday?((0,n.openBlock)(),(0,n.createElementBlock)("p",jS,(0,n.toDisplayString)((0,n.unref)(l)("calendar.today")),1)):(0,n.createCommentVNode)("",!0)],2),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(g.events,v=>((0,n.openBlock)(),(0,n.createElementBlock)("article",{key:v.id,class:"agenda-event-row grid gap-05 hover pe-1",onClick:(0,n.withModifiers)(_=>m(v,_),["stop"])},[(0,n.createElementVNode)("div",GS,(0,n.toDisplayString)((0,n.unref)(ct)(v.start_time,{format:"HH:mm"})),1),(0,n.createVNode)((0,n.unref)(sr),{class:"agenda-event-card overflow-hidden transition py-025 px-075 my-025",frame:"",style:(0,n.normalizeStyle)({"--event-color":v.color||"var(--bgl-primary)"})},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("div",YS,[(0,n.createElementVNode)("h3",XS,(0,n.toDisplayString)(v.title),1),(0,n.createElementVNode)("p",KS,(0,n.toDisplayString)(c(v.durationMin)),1)]),v.description?((0,n.openBlock)(),(0,n.createElementBlock)("p",JS,(0,n.toDisplayString)(v.description),1)):(0,n.createCommentVNode)("",!0)]),_:2},1032,["style"])],8,qS))),128))],8,RS))),128))],512))}}),QS=ge(ZS,[["__scopeId","data-v-9aafb2d8"]]),e3={class:"w-100p overflow-hidden m_overflow h-100p grid"},t3={class:"border-bottom me-1 txt-center p-05 dayGrid"},n3={class:"overflow h-100p pe-05"},r3={class:"time-column"},o3={class:"events-column"},a3=["onClick"],l3={class:"event-content"},i3={class:"white-space ellipsis-1"},s3={class:"event-time opacity-8"},c3={class:"color-primary txt-12 p-025"},Wo=60,jo=60,u3=(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)(),l={start:0,end:24},i=(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 v=[];for(let _=l.start;_<l.end;_++)for(let w=0;w<60;w+=jo)v.push({hour:_,minute:w,time:`${_.toString().padStart(2,"0")}:${w.toString().padStart(2,"0")}`});return v}),f=(0,n.computed)(()=>r.events.filter(v=>new Date(v.start_time).toDateString()===r.startDate.toDateString()).map(v=>{const _=new Date(v.start_time),w=new Date(v.end_time),k=_.getHours()*60+_.getMinutes(),S=w.getHours()*60+w.getMinutes(),E=k/jo*Wo,$=Math.max((S-k)/jo*Wo,30);return{...v,top:E,height:$}}));function m(){const v=new Date;c.value=v.toDateString()===r.startDate.toDateString(),s.value=(v.getHours()*60+v.getMinutes())/jo*Wo}function p(v){v.target.closest(".time-slot")&&(i.value.isDragging=!0,i.value.start={x:v.clientX,y:v.clientY},i.value.startTime=b(v.clientY),document.addEventListener("mousemove",h),document.addEventListener("mouseup",y))}function h(v){i.value.isDragging&&(i.value.end={x:v.clientX,y:v.clientY},i.value.endTime=b(v.clientY))}function y(){if(!i.value.isDragging||!i.value.startTime||!i.value.endTime)return;let v=new Date(i.value.startTime),_=new Date(i.value.endTime);_<v&&([v,_]=[_,v]),o("eventCreate",{start_time:v,end_time:_}),i.value={isDragging:!1,start:null,end:null,startTime:null,endTime:null},document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",y)}function b(v){const _=document.querySelector(".time-slots")?.getBoundingClientRect();if(!_)return new Date;const w=v-_.top,k=jo,S=w/Wo,E=Math.floor(S*k),$=new Date(r.startDate);return $.setHours(Math.floor(E/60)),$.setMinutes(E%60),$.setSeconds(0),$.setMilliseconds(0),$}function g(v,_){if(!a.eventContent){o("eventClick",v);return}if(_){const w=_.currentTarget.getBoundingClientRect();o("openPopover",v,{top:w.top+window.scrollY+w.height/2,left:w.left+window.scrollX+w.width+10})}else o("openPopover",v)}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",y),u.value&&clearInterval(u.value)}),(v,_)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",e3,[(0,n.createElementVNode)("div",t3,[_[0]||(_[0]=(0,n.createElementVNode)("div",null,null,-1)),(0,n.createElementVNode)("div",null,(0,n.toDisplayString)((0,n.unref)(ct)(e.startDate)),1)]),(0,n.createElementVNode)("div",n3,[(0,n.createElementVNode)("div",{class:"time-slots dayGrid border-end relative",onMousedown:p},[(0,n.createElementVNode)("div",r3,[((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:`${Wo}px`})},(0,n.toDisplayString)(w.time),5))),128))]),(0,n.createElementVNode)("div",o3,[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)(k=>g(w,k),["stop"])},[(0,n.createElementVNode)("div",l3,[(0,n.createElementVNode)("div",i3,(0,n.toDisplayString)(w.title),1),(0,n.createElementVNode)("div",s3,(0,n.toDisplayString)((0,n.unref)(ct)(new Date(w.start_time),{format:"HH:mm"}))+" - "+(0,n.toDisplayString)((0,n.unref)(ct)(new Date(w.end_time),{format:"HH:mm"})),1)])],12,a3))),128))]),i.value.isDragging&&i.value.start&&i.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(i.value.start.y,i.value.end.y)}px`,height:`${Math.abs(i.value.end.y-i.value.start.y)}px`,left:"10px",right:"10px"})},[(0,n.createElementVNode)("div",c3,(0,n.toDisplayString)(i.value.startTime?(0,n.unref)(ct)(i.value.startTime,{format:"HH:mm"}):"")+" - "+(0,n.toDisplayString)(i.value.endTime?(0,n.unref)(ct)(i.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))]))}}),d3=ge(u3,[["__scopeId","data-v-f2670028"]]),f3={class:"month-view"},m3={class:"month-header"},p3={class:"month-grid"},h3={class:"day-number"},g3={class:"day-events"},v3={key:0,class:"event-dot"},y3=["onClick"],b3={class:"event-title"},_3={class:"event-time"},w3=(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:l}=Ja(),i=(0,n.computed)(()=>{let u="en";try{u=ir().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(),y=[],b=new Date(u,d,0).getDate();for(let v=p-1;v>=0;v--){const _=new Date(u,d-1,b-v);y.push({date:_,events:[],isToday:!1,isCurrentMonth:!1})}for(let v=1;v<=m;v++){const _=new Date(u,d,v),w=r.events.filter(k=>{const S=new Date(k.start_time);return S.getDate()===v&&S.getMonth()===d&&S.getFullYear()===u});y.push({date:_,events:w,isToday:_.toDateString()===h,isCurrentMonth:!0})}const g=42-y.length;for(let v=1;v<=g;v++){const _=new Date(u,d+1,v);y.push({date:_,events:[],isToday:!1,isCurrentMonth:!1})}return y});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",f3,[(0,n.createElementVNode)("div",m3,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(i.value,f=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:f,class:"weekday"},(0,n.toDisplayString)(f),1))),128))]),(0,n.createElementVNode)("div",p3,[((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",h3,(0,n.toDisplayString)((0,n.unref)(ct)(f.date,{format:"DD"})),1),(0,n.createElementVNode)("div",g3,[(0,n.unref)(l)?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[f.events.length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",v3)):(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",b3,(0,n.toDisplayString)(m.title),1),(0,n.createElementVNode)("div",_3,(0,n.toDisplayString)((0,n.unref)(ct)(m.start_time,"HH:mm")),1)],12,y3))),128))])],2))),128))])]))}}),k3=ge(w3,[["__scopeId","data-v-0abf6d19"]]),$3={class:"w-100p overflow-hidden m_overflow h-100p grid"},E3=["onMousedown"],C3=["onClick"],S3={class:"overflow-hidden color-white p-025 txt12 h-100p flex gap-1 flex-wrap"},x3={class:"white-space ellipsis-1"},T3={class:"txt10 opacity-8 user-select-none"},N3={class:"color-primary txt-12 p-025"},pt=60,Qt=60,al=30,B3=(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)(),l={start:0,end:24},i=(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,O=>{c.value=O.map(P=>({start_time:new Date(P.start_time),end_time:new Date(P.end_time)}))},{immediate:!0});const d=(0,n.computed)(()=>{const O=[],P=new Date(r.startDate),U=r.weekStart==="Sunday"?0:1,T=P.getDay();P.setDate(P.getDate()-T+U),P.setHours(0,0,0,0);for(let z=0;z<7;z++){const W=new Date(P);W.setDate(P.getDate()+z),O.push(W)}return O});function f(O){return Math.round(O/al)*al}function m(O){return c.value.filter(P=>{const U=new Date(P.start_time);return U.getFullYear()===O.getFullYear()&&U.getMonth()===O.getMonth()&&U.getDate()===O.getDate()}).map(P=>{const U=new Date(P.start_time).getHours()*60+new Date(P.start_time).getMinutes(),T=new Date(P.end_time).getHours()*60+new Date(P.end_time).getMinutes();return{top:U/Qt*pt,height:(T-U)/Qt*pt,slot:P}})}function p(O){if(!u.value.isDragging||u.value.dayIndex!==O)return null;const P=Math.min(u.value.startMinute,u.value.currentMinute),U=Math.max(u.value.startMinute,u.value.currentMinute);return{top:P/Qt*pt,height:(U-P)/Qt*pt,mode:u.value.mode}}function h(O,P){return c.value.some(U=>{const T=new Date(U.start_time);if(T.getFullYear()!==O.getFullYear()||T.getMonth()!==O.getMonth()||T.getDate()!==O.getDate())return!1;const z=T.getHours()*60+T.getMinutes(),W=new Date(U.end_time).getHours()*60+new Date(U.end_time).getMinutes();return P>=z&&P<W})}function y(O,P){if(!r.availabilityEditable)return;O.preventDefault(),O.stopPropagation();const U=d.value[P],T=f(D(O.clientY));u.value={isDragging:!0,mode:h(U,T)?"remove":"add",dayIndex:P,startMinute:T,currentMinute:T+al},document.addEventListener("mousemove",b),document.addEventListener("mouseup",g)}function b(O){if(!u.value.isDragging)return;const P=f(D(O.clientY));u.value.currentMinute=P}function g(){if(!u.value.isDragging)return;const{dayIndex:O,startMinute:P,currentMinute:U,mode:T}=u.value,z=d.value[O],W=Math.min(P,U),Y=Math.max(P,U);if(Y-W<al){u.value.isDragging=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",g);return}const ne=new Date(z);ne.setHours(Math.floor(W/60),W%60,0,0);const ve=new Date(z);if(ve.setHours(Math.floor(Y/60),Y%60,0,0),T==="add"){const X=c.value.filter(ue=>{const we=new Date(ue.start_time);return we.getFullYear()!==z.getFullYear()||we.getMonth()!==z.getMonth()||we.getDate()!==z.getDate()}),se=c.value.filter(ue=>{const we=new Date(ue.start_time);return we.getFullYear()===z.getFullYear()&&we.getMonth()===z.getMonth()&&we.getDate()===z.getDate()});se.push({start_time:ne,end_time:ve}),se.sort((ue,we)=>new Date(ue.start_time).getTime()-new Date(we.start_time).getTime());const ie=[];for(const ue of se)if(ie.length===0)ie.push({start_time:new Date(ue.start_time),end_time:new Date(ue.end_time)});else{const we=ie[ie.length-1];new Date(ue.start_time).getTime()<=new Date(we.end_time).getTime()?we.end_time=new Date(Math.max(new Date(we.end_time).getTime(),new Date(ue.end_time).getTime())):ie.push({start_time:new Date(ue.start_time),end_time:new Date(ue.end_time)})}c.value=[...X,...ie]}else{const X=[];for(const se of c.value){const ie=new Date(se.start_time);if(ie.getFullYear()!==z.getFullYear()||ie.getMonth()!==z.getMonth()||ie.getDate()!==z.getDate()){X.push(se);continue}const ue=new Date(se.start_time).getTime(),we=new Date(se.end_time).getTime(),ce=ne.getTime(),ke=ve.getTime();if(we<=ce||ue>=ke){X.push(se);continue}ue<ce&&X.push({start_time:new Date(ue),end_time:new Date(ce)}),we>ke&&X.push({start_time:new Date(ke),end_time:new Date(we)})}c.value=X}o("availabilityChange",c.value),u.value.isDragging=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",g)}const v=(0,n.ref)(0),_=(0,n.ref)(!1),w=(0,n.ref)(),k=(0,n.ref)(),S=(0,n.ref)(),E=(0,n.ref)([]),$=(0,n.ref)(),I=(0,n.ref)();function D(O){if(!$.value)return 0;const P=O-$.value.getBoundingClientRect().top;return Math.max(0,Math.min(P/pt*Qt,1440))}const R=(0,n.computed)(()=>{const O=[];for(let P=l.start;P<l.end;P++)for(let U=0;U<60;U+=Qt)O.push({hour:P,minute:U,time:`${P.toString().padStart(2,"0")}:${U.toString().padStart(2,"0")}`});return O}),M=(0,n.computed)(()=>{if(!s.value.isDragging||!s.value.startTime||!s.value.endTime)return null;const O=s.value.startTime.getHours()*60+s.value.startTime.getMinutes(),P=s.value.endTime.getHours()*60+s.value.endTime.getMinutes();return{top:O/Qt*pt,height:Math.max((P-O)/Qt*pt,30)}}),N=(0,n.computed)(()=>{const O=[],P={};return r.events.forEach(U=>{const T=new Date(U.start_time),z=new Date(U.end_time),W=d.value.findIndex(ie=>ie.getDate()===T.getDate()&&ie.getMonth()===T.getMonth()&&ie.getFullYear()===T.getFullYear());if(W===-1)return;const Y=T.getHours()*60+T.getMinutes(),ne=z.getHours()*60+z.getMinutes(),ve=Y/Qt*pt,X=Math.max((ne-Y)/Qt*pt,30),se={...U,top:ve,height:X,left:0,width:100,overlappingEvents:0,position:0};P[W]||(P[W]=[]),P[W].push(se)}),Object.entries(P).forEach(([U,T])=>{T.sort((Y,ne)=>new Date(Y.start_time).getTime()-new Date(ne.start_time).getTime());const z=[];let W=[];T.forEach(Y=>{W.length===0?W=[Y]:W.some(ne=>{const ve=new Date(Y.start_time).getTime(),X=new Date(Y.end_time).getTime(),se=new Date(ne.start_time).getTime(),ie=new Date(ne.end_time).getTime();return!(X<=se||ve>=ie)})?W.push(Y):(W.length>0&&z.push([...W]),W=[Y])}),W.length>0&&z.push(W),z.forEach(Y=>{if(Y.length>1){const ve=(100-2*(Y.length-1))/Y.length;Y.forEach((X,se)=>{X.overlappingEvents=Y.length,X.position=se,X.width=ve,X.left=se*(ve+2)})}O.push(...Y)})}),O});function A(O,P){if(!i.value||!S.value||!$.value)return;let U=-1;for(let Y=0;Y<E.value.length;Y++){const ne=E.value[Y];if(!ne)continue;const ve=ne.getBoundingClientRect();if(O.clientX>=ve.left&&O.clientX<=ve.right){U=Y;break}}if(U===-1)return;const T=E.value[U].getBoundingClientRect(),z=$.value.getBoundingClientRect();s.value.isDragging=!0,s.value.startDay=U,s.value.endDay=U,s.value.start={x:T.left-z.left,y:O.clientY-z.top},s.value.end={x:T.right-z.left,y:O.clientY-z.top};const W=B(O.clientY,P);s.value.startTime=W,document.addEventListener("mousemove",F),document.addEventListener("mouseup",V)}function F(O){if(!i.value||!s.value.isDragging||!s.value.start||!E.value.length||!S.value||!$.value)return;let P=-1;for(let U=0;U<E.value.length;U++){const T=E.value[U];if(!T)continue;const z=T.getBoundingClientRect();if(O.clientX>=z.left&&O.clientX<=z.right){P=U;break}}if(P!==-1&&(s.value.endDay=P,s.value.end={x:s.value.start.x,y:O.clientY-$.value.getBoundingClientRect().top},P>=0&&P<d.value.length)){const U=new Date(d.value[s.value.startDay]);U.setHours(0,0,0,0);const T=B(O.clientY,U);s.value.endTime=T}}function V(){if(!i.value||!s.value.isDragging||!s.value.startTime||!s.value.endTime)return;let O=new Date(s.value.startTime),P=new Date(s.value.endTime);P<O&&([O,P]=[P,O]),o("eventCreate",{start_time:O,end_time:P}),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",V)}function B(O,P){if(!$.value)return new Date(P);const U=O-$.value.getBoundingClientRect().top,T=Qt,z=U/pt,W=Math.floor(z*T),Y=new Date(P);Y.setHours(Math.floor(W/60));const ne=Math.round(W%60/5)*5;return Y.setMinutes(ne),Y.setSeconds(0),Y.setMilliseconds(0),Y}function j(){const O=new Date;_.value=d.value.some(P=>P.getDate()===O.getDate()&&P.getMonth()===O.getMonth()&&P.getFullYear()===O.getFullYear()),v.value=(O.getHours()*60+O.getMinutes())/Qt*pt}function Q(O,P){if(!a.eventContent){o("eventClick",O);return}if(P){const U=P.currentTarget.getBoundingClientRect();o("openPopover",O,{top:U.top+window.scrollY+U.height/2,left:U.left+window.scrollX+U.width+10})}else o("openPopover",O)}function K(O,P){for(;E.value.length<=P;)E.value.push(null);O?E.value[P]=O instanceof Element?O:O.$el:E.value[P]=null}function re(O){I.value&&(I.value.scrollTop=O*pt)}return(0,n.onMounted)(()=>{j(),w.value=setInterval(j,6e4),(0,n.nextTick)(()=>{re(6)})}),(0,n.onUnmounted)(()=>{document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",V),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",g),w.value&&clearInterval(w.value)}),(O,P)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",$3,[(0,n.createElementVNode)("div",{ref_key:"calendarGrid",ref:S,class:"weekGrid border-bottom me-1"},[P[1]||(P[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)(ct)(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)(ct)(U,{format:"DD"})),3)]))),128))],512),(0,n.createElementVNode)("div",{ref_key:"scrollableContainer",ref:I,class:"overflow h-100p pe-05"},[(0,n.createElementVNode)("div",{ref_key:"dayColumnsContainer",ref:$,class:"weekGrid border-end relative"},[(0,n.createElementVNode)("div",{ref_key:"timeSlotsContainer",ref:k},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(R.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:`${v.value}px`})},[...P[2]||(P[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,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:U.toISOString(),ref_for:!0,ref:z=>K(z,T),class:"day-column top bottom border-start relative",onMousedown:z=>r.availabilityEditable?y(z,T):A(z,U)},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(R.value,z=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:`line-${z.time}`},[(0,n.createElementVNode)("div",{class:"hour-line absolute start end pointer-events-none",style:(0,n.normalizeStyle)({top:`${z.hour*pt}px`})},null,4),(0,n.createElementVNode)("div",{class:"sub-hour-line absolute start end pointer-events-none",style:(0,n.normalizeStyle)({top:`${z.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:`${z.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),(z,W)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:`avail-${W}`,class:(0,n.normalizeClass)(["availability-block absolute start end",{"availability-editable":r.availabilityEditable}]),style:(0,n.normalizeStyle)({top:`${z.top}px`,height:`${z.height}px`})},null,6))),128)),p(T)?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["availability-preview absolute start end pointer-events-none",{"avail-remove":p(T).mode==="remove"}]),style:(0,n.normalizeStyle)({top:`${p(T).top}px`,height:`${p(T).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)(N.value.filter(z=>new Date(z.start_time).toDateString()===U.toDateString()),z=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:z.id,class:"event absolute radius-05 overflow-hidden pointer transition z-1 opacity-8 border",style:(0,n.normalizeStyle)({top:`${z.top}px`,height:`${z.height}px`,left:`${z.left}%`,width:`${z.width}%`,backgroundColor:z.color||"var(--bgl-primary)"}),onMousedown:P[0]||(P[0]=(0,n.withModifiers)(()=>{},["stop"])),onClick:(0,n.withModifiers)(W=>Q(z,W),["stop"])},[(0,n.createElementVNode)("div",S3,[(0,n.createElementVNode)("div",x3,(0,n.toDisplayString)(z.title),1),(0,n.createElementVNode)("div",T3,(0,n.toDisplayString)((0,n.unref)(ct)(z.start_time,{format:"HH:mm"}))+" - "+(0,n.toDisplayString)((0,n.unref)(ct)(z.end_time,{format:"HH:mm"})),1)])],44,C3))),128))],40,E3))),128)),i.value&&s.value.isDragging&&s.value.start&&s.value.end&&M.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:`${M.value.top}px`,width:`${E.value[s.value.startDay]?.offsetWidth||100}px`,height:`${M.value.height}px`})},[(0,n.createElementVNode)("div",N3,(0,n.toDisplayString)(s.value.startTime?(0,n.unref)(ct)(s.value.startTime,{format:"HH:mm"}):"")+" - "+(0,n.toDisplayString)(s.value.endTime?(0,n.unref)(ct)(s.value.endTime,{format:"HH:mm"}):""),1)],4)):(0,n.createCommentVNode)("",!0)],512)],512),P[3]||(P[3]=(0,n.createElementVNode)("div",{class:"border-bottom me-1"},null,-1))]))}}),D3=ge(B3,[["__scopeId","data-v-0850fe4c"]]),A3={class:"calendar"},M3={class:"flex m_block p-1"},L3={class:"txt-light my-0 m_pb-05"},P3={class:"ms-auto flex gap-025 m_flex-wrap"},I3={class:"flex gap-025"},V3=(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:l}=nt(),i=(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:D3,Month:k3,Day:d3,Agenda:QS},m=(0,n.computed)(()=>Object.keys(f).map(I=>({label:l(`calendar.views.${I.toLowerCase()}`),value:I}))),p={Week:"weeks",Month:"months",Day:"days",Agenda:"days"},h=(0,n.computed)(()=>{const I=new Date(i.value);let D=new Date(i.value);const R=o.weekStart==="Sunday"?0:1;switch(s.value){case"Week":I.setDate(I.getDate()-I.getDay()+R),D.setDate(I.getDate()+6);break;case"Month":case"Agenda":I.setDate(-6),D=new Date(I.getFullYear(),I.getMonth()+2,7);break;case"Day":D.setDate(D.getDate()+1);break;default:break}return{start:I,end:D}}),y=(0,n.computed)(()=>({visibleDateRange:h.value,currentDate:i.value,currentView:s.value}));function b(I){i.value=new Date(I),a("dateChange",y.value)}function g(I){a("dateChange",{visibleDateRange:h.value,currentDate:I,currentView:s.value})}function v(I){s.value=I,a("viewChange",y.value)}function _(I){a("eventClick",I)}function w(I){a("eventCreate",I)}function k(I){a("eventUpdate",I)}function S(I){a("eventDelete",I)}function E(I,D){c.value=I,d.value=D,u.value=!0}function $(){u.value=!1,c.value=void 0,d.value=void 0}return t({visibleDateRange:h,currentView:s,currentDate:i,openPopover:E,closePopover:$}),(0,n.onMounted)(()=>{a("ready",y.value)}),(I,D)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",A3,[(0,n.createElementVNode)("div",M3,[(0,n.createElementVNode)("h3",L3,[(0,n.createElementVNode)("b",null,(0,n.toDisplayString)((0,n.unref)(ct)(i.value,"MMMM")),1),(0,n.createTextVNode)(" "+(0,n.toDisplayString)((0,n.unref)(ct)(i.value,"YYYY")),1)]),(0,n.createElementVNode)("div",P3,[e.viewSwitcher==="tabs"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Ri),{key:0,size:"sm","model-value":s.value,tabs:m.value,group:"calendar-view","onUpdate:modelValue":D[0]||(D[0]=R=>v(R)),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)(Bt),{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,(R,M)=>(0,n.createVNode)((0,n.unref)(An),{key:M,thin:"",title:(0,n.unref)(l)(`calendar.views.${M.toLowerCase()}`),onClick:N=>v(M)},null,8,["title","onClick"])),64))]),_:1},8,["value"])),(0,n.createElementVNode)("div",I3,[(0,n.createVNode)((0,n.unref)(oe),{icon:"calendar",size:"sm",class:"txt12",color:"gray",value:(0,n.unref)(l)("calendar.today"),onClick:D[1]||(D[1]=R=>b(new Date))},null,8,["value"]),(0,n.createVNode)((0,n.unref)(oe),{icon:"chevron_left",color:"gray",size:"sm",class:"",disabled:s.value==="Agenda",onClick:D[2]||(D[2]=R=>b((0,n.unref)(mn)(i.value,{[p[s.value]]:-1})))},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(oe),{icon:"chevron_right",color:"gray",size:"sm",class:"",disabled:s.value==="Agenda",onClick:D[3]||(D[3]=R=>b((0,n.unref)(mn)(i.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":i.value,"week-start":e.weekStart,"availability-mode":o.availabilityMode,"availability-editable":o.availabilityEditable,"availability-slots":o.availabilitySlots,onEventClick:_,onEventCreate:w,onEventUpdate:k,onEventDelete:S,onDateChange:D[4]||(D[4]=R=>s.value==="Agenda"?g(R):b(R)),onOpenPopover:E,onAvailabilityChange:D[5]||(D[5]=R=>a("availabilityChange",R))},{eventContent:(0,n.withCtx)(({event:R,close:M})=>[(0,n.renderSlot)(I.$slots,"eventContent",{event:R,close:M},void 0,!0)]),_:3},40,["events","start-date","week-start","availability-mode","availability-editable","availability-slots"])),(0,n.createVNode)(VS,{event:c.value,position:d.value,show:u.value,"has-event-content-slot":!!I.$slots.eventContent,onClose:$,onEventClick:_},{eventContent:(0,n.withCtx)(({event:R,close:M})=>[(0,n.renderSlot)(I.$slots,"eventContent",{event:R,close:M},void 0,!0)]),_:3},8,["event","position","show","has-event-content-slot"])]))}}),O3=ge(V3,[["__scopeId","data-v-91aaf448"]]),R3=new Set(["div","span","p"]),F3=new Set(["img","iframe"]);function r0(e){const{mode:t="form",getFormData:r,onUpdateModelValue:o,includeUnset:a=!1}=e;function l(u,d=0){if(u==null)return"";if(typeof u!="object")return String(u);if(Array.isArray(u))return u.map(h=>l(h,d+1)).join(", ");const f=d>0?" ".repeat(d):"",m=" ".repeat(d+1),p=Object.entries(u);return p.length===0?"{}":d>0?`{
|
|
9
|
+
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[nn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[nn.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 yi(H1[e],...t)}function _a(e){if(!Me(e)||sn(e))return e;for(const t in e)if(an(e,t))if(!t.includes("."))Me(e[t])&&_a(e[t]);else{const r=t.split("."),o=r.length-1;let a=e,l=!1;for(let i=0;i<o;i++){if(r[i]==="__proto__")throw new Error(`unsafe key: ${r[i]}`);if(r[i]in a||(a[r[i]]=je()),!Me(a[r[i]])){process.env.NODE_ENV!=="production"&&(So(nn.IGNORE_OBJ_FLATTEN,{key:r[i]}),void 0),l=!0;break}a=a[r[i]]}if(l||(sn(a)?gh.includes(r[o])||delete e[t]:(a[r[o]]=e[t],delete e[t])),!sn(a)){const i=a[r[o]];Me(i)&&_a(i)}}return e}function vu(e,t){const{messages:r,__i18n:o,messageResolver:a,flatJson:l}=t,i=Ae(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?(i[c]=i[c]||je(),kl(u,i[c])):kl(u,i)}else _e(s)&&kl(JSON.parse(s),i)}),a==null&&l)for(const s in i)an(i,s)&&_a(i[s]);return i}function Ah(e){return e.type}function Mh(e,t,r){let o=Me(t.messages)?t.messages:je();"__i18nGlobal"in r&&(o=vu(e.locale.value,{messages:o,__i18n:r.__i18nGlobal}));const a=Object.keys(o);if(a.length&&a.forEach(l=>{e.mergeLocaleMessage(l,o[l])}),Me(t.datetimeFormats)){const l=Object.keys(t.datetimeFormats);l.length&&l.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(Me(t.numberFormats)){const l=Object.keys(t.numberFormats);l.length&&l.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}function rf(e){return(0,n.createVNode)(n.Text,null,e,0)}function go(){const e="currentInstance";return e in n?n[e]:n.getCurrentInstance()}var of="__INTLIFY_META__",af=()=>[],W1=()=>!1,lf=0;function sf(e){return((t,r,o,a)=>e(r,o,go()||void 0,a))}var j1=()=>{const e=go();let t=null;return e&&(t=Ah(e)[of])?{[of]:t}:null};function Fl(e={}){const{__root:t,__injectWithOption:r}=e,o=t===void 0,a=e.flatJson,l=bn?n.ref:n.shallowRef;let i=Oe(e.inheritLocale)?e.inheritLocale:!0;const s=l(t&&i?t.locale.value:_e(e.locale)?e.locale:ba),c=l(t&&i?t.fallbackLocale.value:_e(e.fallbackLocale)||tt(e.fallbackLocale)||Ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=l(vu(s.value,e)),d=l(Ae(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=l(Ae(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,y=!!e.fallbackFormat,b=Je(e.missing)?e.missing:null,g=Je(e.missing)?sf(e.missing):null,v=Je(e.postTranslation)?e.postTranslation:null,_=t?t.warnHtmlMessage:Oe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const k=t?t.modifiers:Ae(e.modifiers)?e.modifiers:{};let S=e.pluralRules||t&&t.pluralRules,E;E=(()=>{o&&Yd(null);const le={version:F1,locale:s.value,fallbackLocale:c.value,messages:u.value,modifiers:k,pluralRules:S,missing:g===null?void 0:g,missingWarn:m,fallbackWarn:p,fallbackFormat:y,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:_,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};le.datetimeFormats=d.value,le.numberFormats=f.value,le.__datetimeFormatters=Ae(E)?E.__datetimeFormatters:void 0,le.__numberFormatters=Ae(E)?E.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(le.__v_emitter=Ae(E)?E.__v_emitter:void 0);const me=y1(le);return o&&Yd(me),me})(),Ho(E,s.value,c.value);function I(){return[s.value,c.value,u.value,d.value,f.value]}const D=(0,n.computed)({get:()=>s.value,set:le=>{E.locale=le,s.value=le}}),R=(0,n.computed)({get:()=>c.value,set:le=>{E.fallbackLocale=le,c.value=le,Ho(E,s.value,le)}}),M=(0,n.computed)(()=>u.value),N=(0,n.computed)(()=>d.value),A=(0,n.computed)(()=>f.value);function F(){return Je(v)?v:null}function V(le){v=le,E.postTranslation=le}function B(){return b}function j(le){le!==null&&(g=sf(le)),b=le,E.missing=g}function Q(le,me){return le!=="translate"||!me.resolvedMessage}const K=(le,me,Le,Ze,Cn,Zt)=>{I();let Ct;try{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Gd(j1()),o||(E.fallbackContext=t?v1():void 0),Ct=le(E)}finally{(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Gd(null),o||(E.fallbackContext=void 0)}if(Le!=="translate exists"&&ut(Ct)&&Ct===-1||Le==="translate exists"&&!Ct){const[Un,Ji]=me();if(process.env.NODE_ENV!=="production"&&t&&_e(Un)&&Q(Le,Ji)&&(h&&(wi(p,Un)||kh(m,Un))&&(So(nn.FALLBACK_TO_ROOT,{key:Un,type:Le}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:zo}=E;zo&&h&&zo.emit("fallback",{type:Le,key:Un,to:"global",groupId:`${Le}:${Un}`})}return t&&h?Ze(t):Cn(Un)}else{if(Zt(Ct))return Ct;throw Nt(Ye.UNEXPECTED_RETURN_TYPE)}};function re(...le){return K(me=>Reflect.apply(nf,null,[me,...le]),()=>rc(...le),"translate",me=>Reflect.apply(me.t,me,[...le]),me=>me,me=>_e(me))}function O(...le){const[me,Le,Ze]=le;if(Ze&&!Me(Ze))throw Nt(Ye.INVALID_ARGUMENT);return re(me,Le,dt({resolvedMessage:!0},Ze||{}))}function P(...le){return K(me=>Reflect.apply(Jd,null,[me,...le]),()=>tc(...le),"datetime format",me=>Reflect.apply(me.d,me,[...le]),()=>"",me=>_e(me)||tt(me))}function U(...le){return K(me=>Reflect.apply(Qd,null,[me,...le]),()=>nc(...le),"number format",me=>Reflect.apply(me.n,me,[...le]),()=>"",me=>_e(me)||tt(me))}function T(le){return le.map(me=>_e(me)||ut(me)||Oe(me)?rf(String(me)):me)}const W={normalize:T,interpolate:le=>le,type:"vnode"};function Y(...le){return K(me=>{let Le;const Ze=me;try{Ze.processor=W,Le=Reflect.apply(nf,null,[Ze,...le])}finally{Ze.processor=null}return Le},()=>rc(...le),"translate",me=>me[ac](...le),me=>[rf(me)],me=>tt(me))}function ne(...le){return K(me=>Reflect.apply(Qd,null,[me,...le]),()=>nc(...le),"number format",me=>me[ic](...le),af,me=>_e(me)||tt(me))}function ve(...le){return K(me=>Reflect.apply(Jd,null,[me,...le]),()=>tc(...le),"datetime format",me=>me[lc](...le),af,me=>_e(me)||tt(me))}function X(le){S=le,E.pluralRules=S}function se(le,me){return K(()=>{if(!le)return!1;const Le=_e(me)?me:s.value,Ze=_e(me)?[Le]:ec(E,c.value,Le);for(let Cn=0;Cn<Ze.length;Cn++){const Zt=we(Ze[Cn]);let Ct=E.messageResolver(Zt,le);if(Ct===null&&(Ct=Zt[le]),sn(Ct)||tn(Ct)||_e(Ct))return!0}return!1},()=>[le],"translate exists",Le=>Reflect.apply(Le.te,Le,[le,me]),W1,Le=>Oe(Le))}function ie(le){let me=null;const Le=ec(E,c.value,s.value);for(let Ze=0;Ze<Le.length;Ze++){const Cn=u.value[Le[Ze]]||{},Zt=E.messageResolver(Cn,le);if(Zt!=null){me=Zt;break}}return me}function ue(le){const me=ie(le);return me??(t?t.tm(le)||{}:{})}function we(le){return u.value[le]||{}}function ce(le,me){if(a){const Le={[le]:me};for(const Ze in Le)an(Le,Ze)&&_a(Le[Ze]);me=Le[le]}u.value[le]=me,E.messages=u.value}function ke(le,me){u.value[le]=u.value[le]||{};const Le={[le]:me};if(a)for(const Ze in Le)an(Le,Ze)&&_a(Le[Ze]);me=Le[le],kl(me,u.value[le]),E.messages=u.value}function H(le){return d.value[le]||{}}function G(le,me){d.value[le]=me,E.datetimeFormats=d.value,Zd(E,le,me)}function fe(le,me){d.value[le]=dt(d.value[le]||{},me),E.datetimeFormats=d.value,Zd(E,le,me)}function ye(le){return f.value[le]||{}}function qe(le,me){f.value[le]=me,E.numberFormats=f.value,ef(E,le,me)}function Xe(le,me){f.value[le]=dt(f.value[le]||{},me),E.numberFormats=f.value,ef(E,le,me)}lf++,t&&bn&&((0,n.watch)(t.locale,le=>{i&&(s.value=le,E.locale=le,Ho(E,s.value,c.value))}),(0,n.watch)(t.fallbackLocale,le=>{i&&(c.value=le,E.fallbackLocale=le,Ho(E,s.value,c.value))}));const Ie={id:lf,locale:D,fallbackLocale:R,get inheritLocale(){return i},set inheritLocale(le){i=le,le&&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:M,get modifiers(){return k},get pluralRules(){return S||{}},get isGlobal(){return o},get missingWarn(){return m},set missingWarn(le){m=le,E.missingWarn=m},get fallbackWarn(){return p},set fallbackWarn(le){p=le,E.fallbackWarn=p},get fallbackRoot(){return h},set fallbackRoot(le){h=le},get fallbackFormat(){return y},set fallbackFormat(le){y=le,E.fallbackFormat=y},get warnHtmlMessage(){return _},set warnHtmlMessage(le){_=le,E.warnHtmlMessage=le},get escapeParameter(){return w},set escapeParameter(le){w=le,E.escapeParameter=le},t:re,getLocaleMessage:we,setLocaleMessage:ce,mergeLocaleMessage:ke,getPostTranslationHandler:F,setPostTranslationHandler:V,getMissingHandler:B,setMissingHandler:j,[Bh]:X};return Ie.datetimeFormats=N,Ie.numberFormats=A,Ie.rt=O,Ie.te=se,Ie.tm=ue,Ie.d=P,Ie.n=U,Ie.getDateTimeFormat=H,Ie.setDateTimeFormat=G,Ie.mergeDateTimeFormat=fe,Ie.getNumberFormat=ye,Ie.setNumberFormat=qe,Ie.mergeNumberFormat=Xe,Ie[Dh]=r,Ie[ac]=Y,Ie[lc]=ve,Ie[ic]=ne,process.env.NODE_ENV!=="production"&&(Ie[or]=le=>{E.__v_emitter=le},Ie[Fr]=()=>{E.__v_emitter=void 0}),Ie}var Lh="vue-i18n: composer properties",as={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},q1={"vue-i18n-resource-inspector":"Search for scopes ..."},G1={"vue-i18n-timeline":16764185},sc;async function Y1(e,t){return new Promise((r,o)=>{try{R1({id:"vue-devtools-plugin-vue-i18n",label:as["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:[Lh],app:e},a=>{sc=a,a.on.visitComponentTree(({componentInstance:i,treeNode:s})=>{X1(i,s,t)}),a.on.inspectComponent(({componentInstance:i,instanceData:s})=>{i.__VUE_I18N__&&s&&(t.mode==="legacy"?i.__VUE_I18N__!==t.global.__composer&&cf(s,i.__VUE_I18N__):cf(s,i.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:as["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:q1["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&ew(i,t)});const l=new Map;a.on.getInspectorState(async i=>{if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),nw(i,t),i.nodeId==="global"){if(!l.has(i.app)){const[s]=await a.getComponentInstances(i.app);l.set(i.app,s)}a.highlightElement(l.get(i.app))}else{const s=tw(i.nodeId,t);s&&a.highlightElement(s)}}),a.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&ow(i,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:as["vue-i18n-timeline"],color:G1["vue-i18n-timeline"]}),r(!0)})}catch{o(!1)}})}function Ph(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function X1(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 (${Ph(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function cf(e,t){const r=Lh;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:yu(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 yu(e){const t={};return Object.keys(e).forEach(r=>{const o=e[r];Je(o)&&"source"in o?t[r]=Q1(o):sn(o)&&o.loc&&o.loc.source?t[r]=o.loc.source:Me(o)?t[r]=yu(o):t[r]=o}),t}var K1={"<":"<",">":">",'"':""","&":"&"};function J1(e){return e.replace(/[<>"&]/g,Z1)}function Z1(e){return K1[e]||e}function Q1(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${J1(e.source)}")`:"(?)"}`}}}function ew(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 l=t.mode==="composition"?a:a.__composer;r!==l&&e.rootNodes.push({id:l.id.toString(),label:`${Ph(o)} Scope`})}}function tw(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 Ih(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 nw(e,t){const r=Ih(e.nodeId,t);return r&&(e.state=rw(r)),null}function rw(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:yu(e.messages.value)}];{const a="Datetime formats info";t[a]=[{type:a,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];const l="Datetime formats info";t[l]=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}]}return t}function zr(e,t){if(sc){let r;t&&"groupId"in t&&(r=t.groupId,delete t.groupId),sc.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 ow(e,t){const r=Ih(e.nodeId,t);if(r){const[o]=e.path;o==="locale"&&_e(e.state.value)?r.locale.value=e.state.value:o==="fallbackLocale"&&(_e(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 aw(e){const t=_e(e.locale)?e.locale:ba,r=_e(e.fallbackLocale)||tt(e.fallbackLocale)||Ae(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,l=Oe(e.silentFallbackWarn)||Eo(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=Oe(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,c=Ae(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,d=Je(e.postTranslation)?e.postTranslation:void 0,f=_e(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,m=!!e.escapeParameterHtml,p=Oe(e.sync)?e.sync:!0;let h=e.messages;if(Ae(e.sharedMessages)){const k=e.sharedMessages;h=Object.keys(k).reduce((S,E)=>(dt(S[E]||(S[E]={}),k[E]),S),h||{})}const{__i18n:y,__root:b,__injectWithOption:g}=e,v=e.datetimeFormats,_=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:r,messages:h,flatJson:w,datetimeFormats:v,numberFormats:_,missing:o,missingWarn:a,fallbackWarn:l,fallbackRoot:i,fallbackFormat:s,modifiers:c,pluralRules:u,postTranslation:d,warnHtmlMessage:f,escapeParameter:m,messageResolver:e.messageResolver,inheritLocale:p,__i18n:y,__root:b,__injectWithOption:g}}function cc(e={}){const t=Fl(aw(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,l){return t.te(a,l)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,l){t.setLocaleMessage(a,l)},mergeLocaleMessage(a,l){t.mergeLocaleMessage(a,l)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,l){t.setDateTimeFormat(a,l)},mergeDateTimeFormat(a,l){t.mergeDateTimeFormat(a,l)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,l){t.setNumberFormat(a,l)},mergeNumberFormat(a,l){t.mergeNumberFormat(a,l)}};return o.__extender=r,process.env.NODE_ENV!=="production"&&(o.__enableEmitter=a=>{const l=t;l[or]&&l[or](a)},o.__disableEmitter=()=>{const a=t;a[Fr]&&a[Fr]()}),o}function lw(e,t,r){return{beforeCreate(){const o=go();if(!o)throw Nt(Ye.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const l=a.i18n;if(a.__i18n&&(l.__i18n=a.__i18n),l.__root=t,this===this.$root)this.$i18n=uf(e,l);else{l.__injectWithOption=!0,l.__extender=r.__vueI18nExtend,this.$i18n=cc(l);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=uf(e,a);else{this.$i18n=cc({__i18n:a.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:t});const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Mh(t,a,a),this.$t=(...l)=>this.$i18n.t(...l),this.$rt=(...l)=>this.$i18n.rt(...l),this.$te=(l,i)=>this.$i18n.te(l,i),this.$d=(...l)=>this.$i18n.d(...l),this.$n=(...l)=>this.$i18n.n(...l),this.$tm=l=>this.$i18n.tm(l),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 l=this.__v_emitter=_i();a.__enableEmitter&&a.__enableEmitter(l),l.on("*",zr)}},unmounted(){const o=go();if(!o)throw Nt(Ye.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&o.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",zr),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 uf(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[Bh](t.pluralizationRules||e.pluralizationRules);const r=vu(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 bu={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function iw({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 Vh(){return n.Fragment}var df=(0,n.defineComponent)({name:"i18n-t",props:dt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ut(e)||!isNaN(e)}},bu),setup(e,t){const{slots:r,attrs:o}=t,a=e.i18n||_u({useScope:e.scope,__useComponent:!0});return()=>{const l=()=>{const c=Object.keys(r).filter(f=>f[0]!=="_"),u=je();e.locale&&(u.locale=e.locale),e.plural!==void 0&&(u.plural=_e(e.plural)?+e.plural:e.plural);const d=iw(t,c);return a[ac](e.keypath,d,u)},i=dt(je(),o),s=_e(e.tag)||Me(e.tag)?e.tag:Vh();return Me(s)?(0,n.h)(s,i,{default:l}):(0,n.h)(s,i,l())}}});function sw(e){return tt(e)&&!_e(e[0])}function Oh(e,t,r,o){const{slots:a,attrs:l}=t;return()=>{const i=()=>{const u={part:!0};let d=je();e.locale&&(u.locale=e.locale),_e(e.format)?u.key=e.format:Me(e.format)&&(_e(e.format.key)&&(u.key=e.format.key),d=Object.keys(e.format).reduce((p,h)=>r.includes(h)?dt(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 y=a[p.type],b=y?y({[p.type]:p.value,index:h,parts:f}):[p.value];return sw(b)&&(b[0].key=`${p.type}-${h}`),b}):_e(f)&&(m=[f]),m},s=dt(je(),l),c=_e(e.tag)||Me(e.tag)?e.tag:Vh();return Me(c)?(0,n.h)(c,s,{default:i}):(0,n.h)(c,s,i())}}var ff=(0,n.defineComponent)({name:"i18n-n",props:dt({value:{type:Number,required:!0},format:{type:[String,Object]}},bu),setup(e,t){const r=e.i18n||_u({useScope:e.scope,__useComponent:!0});return Oh(e,t,Sh,(...o)=>r[ic](...o))}});function cw(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 uw(e){const t=i=>{process.env.NODE_ENV!=="production"&&cu(So(nn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:s,value:c}=i;if(!s||!s.$)throw Nt(Ye.UNEXPECTED_ERROR);const u=cw(e,s.$),d=mf(c);return[Reflect.apply(u.t,u,[...pf(d)]),u]};return{created:(i,s)=>{const[c,u]=t(s);bn&&(i.__i18nWatcher=(0,n.watch)(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),i.__composer=u,i.textContent=c},unmounted:i=>{bn&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:s})=>{if(i.__composer){const c=i.__composer,u=mf(s);i.textContent=Reflect.apply(c.t,c,[...pf(u)])}},getSSRProps:i=>{const[s]=t(i);return{textContent:s}}}}function mf(e){if(_e(e))return{path:e};if(Ae(e)){if(!("path"in e))throw Nt(Ye.REQUIRED_VALUE,"path");return e}else throw Nt(Ye.INVALID_VALUE)}function pf(e){const{path:t,locale:r,args:o,choice:a,plural:l}=e,i={},s=o||{};return _e(r)&&(i.locale=r),ut(a)&&(i.plural=a),ut(l)&&(i.plural=l),[t,s,i]}function dw(e,t,...r){const o=Ae(r[0])?r[0]:{};(!Oe(o.globalInstall)||o.globalInstall)&&([df.name,"I18nT"].forEach(a=>e.component(a,df)),[ff.name,"I18nN"].forEach(a=>e.component(a,ff)),[vf.name,"I18nD"].forEach(a=>e.component(a,vf))),e.directive("t",uw(t))}var fw=$n("global-vue-i18n");function mw(e={}){const t=__VUE_I18N_LEGACY_API__&&Oe(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&cu(So(nn.DEPRECATE_LEGACY_MODE));const r=Oe(e.globalInjection)?e.globalInjection:!0,o=new Map,[a,l]=pw(e,t),i=$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__=i,f.provide(f.__VUE_I18N_SYMBOL__,d),Ae(m[0])){const y=m[0];d.__composerExtend=y.__composerExtend,d.__vueI18nExtend=y.__vueI18nExtend}let p=null;!t&&r&&(p=ww(f,d.global)),__VUE_I18N_FULL_INSTALL__&&dw(f,d,...m),__VUE_I18N_LEGACY_API__&&t&&f.mixin(lw(l,l.__composer,d));const h=f.unmount;if(f.unmount=()=>{p&&p(),d.dispose(),h()},process.env.NODE_ENV!=="production"){if(!await Y1(f,d))throw Nt(Ye.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const y=_i();if(t){const b=l;b.__enableEmitter&&b.__enableEmitter(y)}else{const b=l;b[or]&&b[or](y)}y.on("*",zr)}},get global(){return l},dispose(){a.stop()},__instances:o,__getInstance:s,__setInstance:c,__deleteInstance:u};return d}function _u(e={}){const t=go();if(t==null)throw Nt(Ye.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Nt(Ye.NOT_INSTALLED);const r=hw(t),o=vw(r),a=Ah(t),l=gw(e,a);if(l==="global")return Mh(o,e,a),o;if(l==="parent"){let c=hf(r,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&(So(nn.NOT_FOUND_PARENT_SCOPE),void 0),c=o),c}if(l==="isolated"){if(r.mode!=="composition")throw Nt(Ye.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=r,u=dt({},e);u.__root=hf(r,t)||o;const d=Fl(u);c.__composerExtend&&(d[fo]=c.__composerExtend(d));let f=null;if(process.env.NODE_ENV!=="production"){f=_i();const m=d;m[or]&&m[or](f),f.on("*",zr)}return(0,n.getCurrentScope)()&&(0,n.onScopeDispose)(()=>{if(process.env.NODE_ENV!=="production"){f&&f.off("*",zr);const p=d;p[Fr]&&p[Fr]()}const m=d[fo];m&&(m(),delete d[fo])}),d}const i=r;let s=i.__getInstance(t);if(s==null){const c=dt({},e);"__i18n"in a&&(c.__i18n=a.__i18n),o&&(c.__root=o),s=Fl(c),i.__composerExtend&&(s[fo]=i.__composerExtend(s)),bw(i,t,s),i.__setInstance(t,s)}else process.env.NODE_ENV!=="production"&&l==="local"&&(So(nn.DUPLICATE_USE_I18N_CALLING),void 0);return s}function pw(e,t){const r=(0,n.effectScope)(),o=__VUE_I18N_LEGACY_API__&&t?r.run(()=>cc(e)):r.run(()=>Fl(e));if(o==null)throw Nt(Ye.UNEXPECTED_ERROR);return[r,o]}function hw(e){const t=(0,n.inject)(e.isCE?fw:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Nt(e.isCE?Ye.NOT_INSTALLED_WITH_PROVIDE:Ye.UNEXPECTED_ERROR);return t}function gw(e,t){return bi(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function vw(e){return e.mode==="composition"?e.global:e.global.__composer}function hf(e,t,r=!1){let o=null;const a=t.root;let l=yw(t,r);for(;l!=null;){const i=e;if(e.mode==="composition")o=i.__getInstance(l);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(l);s!=null&&(o=s.__composer,r&&o&&!o[Dh]&&(o=null))}if(o!=null||a===l)break;l=l.parent}return o}function yw(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function bw(e,t,r){let o=null;(0,n.onMounted)(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=r,o=_i();const a=r;a[or]&&a[or](o),o.on("*",zr)}},t),(0,n.onUnmounted)(()=>{const a=r;process.env.NODE_ENV!=="production"&&(o&&o.off("*",zr),a[Fr]&&a[Fr](),delete t.__VUE_I18N__),e.__deleteInstance(t);const l=a[fo];l&&(l(),delete a[fo])},t)}var _w=["locale","fallbackLocale","availableLocales"],gf=["t","rt","d","n","tm","te"];function ww(e,t){const r=Object.create(null);return _w.forEach(a=>{const l=Object.getOwnPropertyDescriptor(t,a);if(!l)throw Nt(Ye.UNEXPECTED_ERROR);const i=(0,n.isRef)(l.value)?{get(){return l.value.value},set(s){l.value.value=s}}:{get(){return l.get&&l.get()}};Object.defineProperty(r,a,i)}),e.config.globalProperties.$i18n=r,gf.forEach(a=>{const l=Object.getOwnPropertyDescriptor(t,a);if(!l||!l.value)throw Nt(Ye.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,l)}),()=>{delete e.config.globalProperties.$i18n,gf.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}var vf=(0,n.defineComponent)({name:"i18n-d",props:dt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},bu),setup(e,t){const r=e.i18n||_u({useScope:e.scope,__useComponent:!0});return Oh(e,t,Ch,(...o)=>r[lc](...o))}});z1();m1(G_);p1(c1);h1(ec);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ar();e.__INTLIFY__=!0,Y_(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const kw={title:"Confirm",message:"Are you sure you want to continue?",confirm:"Confirm",cancel:"Cancel"},$w={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"},Ew={of:"of",prev:"Previous",next:"Next",perPage:"Per page"},Cw={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"},Sw={veryWeak:"Very Weak",weak:"Weak",fair:"Fair",good:"Good",strong:"Strong"},xw={placeholder:"Select",search:"Search",yes:"Yes",no:"No"},Tw={loadDefault:"Load Default {label}"},Nw={item:"Item"},Bw={loading:"Loading..."},Dw={success:"Success",error:"Error",warning:"Warning",info:"Information"},Aw={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"}},Mw={previous:"Previous",next:"Next",complete:"Complete",step:"Step {current} of {total}"},Lw={placeholder:"Enter address"},Pw={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..."},Iw={year:"year",month:"month",week:"week",day:"day",hour:"hour",minute:"minute",second:"second",ago:"ago",in:"in",justNow:"Just now"},Vw={save:"Save",cancel:"Cancel",delete:"Delete",validationError:"Please fix the validation errors before submitting",errorOccurred:"An error occurred"},Ow={phoneNumber:"Phone Number",invalidPhone:"Please enter a valid phone number"},Rw={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..."},Fw={invalidFormat:"Invalid date format"},zw={wrapText:"Wrap Text",selectAll:"Select All",clearAll:"Clear All"},Uw={openFile:"Open File"},Hw={placeholder:"Enter color"},Ww={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"},jw={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..."},qw={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}"?'},Gw={content:"Content",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Newsletter",agent:"Agents",users:"Users",tenants:"Organizations"},Yw={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}?"},Xw={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"}}},Kw={today:"Today",views:{week:"Week",month:"Month",day:"Day",agenda:"Agenda"},agenda:{time:"Time",event:"Event",eventsCount:"{n} event | {n} events",noEvents:"No events"}},Jw={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)"},Zw={total:"Total",share:"Share"};var Qw={modalConfirm:kw,upload:$w,pagination:Ew,form:Cw,password:Sw,select:xw,fieldArray:Tw,arrayInput:Nw,btn:Bw,toast:Dw,filter:Aw,multiStep:Mw,addressSearch:Lw,importData:Pw,timeAgo:Iw,dialogForm:Vw,tel:Ow,email:Rw,date:Fw,spreadsheet:zw,lightbox:Uw,color:Hw,pageDesigner:Ww,collection:jw,datastores:qw,admin:Gw,userManagement:Yw,forms:Xw,calendar:Kw,addToCalendar:Jw,charts:Zw};const e2={title:"Confirmar",message:"¿Estás seguro de que quieres continuar?",confirm:"Confirmar",cancel:"Cancelar"},t2={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"},n2={of:"de",prev:"Anterior",next:"Siguiente"},r2={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"},o2={veryWeak:"Muy débil",weak:"Débil",fair:"Regular",good:"Buena",strong:"Fuerte"},a2={placeholder:"Seleccionar",search:"Buscar",yes:"Sí",no:"No"},l2={loadDefault:"Cargar {label} predeterminado"},i2={item:"Elemento"},s2={loading:"Cargando..."},c2={success:"Éxito",error:"Error",warning:"Advertencia",info:"Información"},u2={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"}},d2={previous:"Anterior",next:"Siguiente",complete:"Completar",step:"Paso {current} de {total}"},f2={placeholder:"Introduce una dirección"},m2={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..."},p2={year:"año",month:"mes",week:"semana",day:"día",hour:"hora",minute:"minuto",second:"segundo",ago:"hace",in:"en",justNow:"Justo ahora"},h2={save:"Guardar",cancel:"Cancelar",delete:"Eliminar",validationError:"Por favor corrija los errores de validación antes de enviar",errorOccurred:"Ocurrió un error"},g2={phoneNumber:"Número de teléfono",invalidPhone:"Por favor introduce un número de teléfono válido"},v2={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..."},y2={invalidFormat:"Formato de fecha inválido"},b2={wrapText:"Ajuste de texto",selectAll:"Seleccionar todo",clearAll:"Limpiar todo"},_2={openFile:"Abrir archivo"},w2={placeholder:"Introduce un color"},k2={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"},$2={content:"Contenido",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Boletín",agent:"Agentes",users:"Usuarios",tenants:"Organizaciones"},E2={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}?"},C2={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"}},S2={addTo:"Agregar a {name}",addToCalendar:"Agregar al calendario"};var x2={modalConfirm:e2,upload:t2,pagination:n2,form:r2,password:o2,select:a2,fieldArray:l2,arrayInput:i2,btn:s2,toast:c2,filter:u2,multiStep:d2,addressSearch:f2,importData:m2,timeAgo:p2,dialogForm:h2,tel:g2,email:v2,date:y2,spreadsheet:b2,lightbox:_2,color:w2,pageDesigner:k2,admin:$2,userManagement:E2,calendar:C2,addToCalendar:S2};const T2={title:"Confirmer",message:"Êtes-vous sûr de vouloir continuer ?",confirm:"Confirmer",cancel:"Annuler"},N2={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"},B2={of:"de",prev:"Précédent",next:"Suivant"},D2={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"},A2={veryWeak:"Très faible",weak:"Faible",fair:"Passable",good:"Bonne",strong:"Forte"},M2={placeholder:"Sélectionner",search:"Rechercher",yes:"Oui",no:"Non"},L2={loadDefault:"Charger {label} par défaut"},P2={item:"Élément"},I2={loading:"Chargement..."},V2={success:"Succès",error:"Erreur",warning:"Avertissement",info:"Information"},O2={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"}},R2={previous:"Précédent",next:"Suivant",complete:"Terminer",step:"Étape {current} sur {total}"},F2={placeholder:"Entrez une adresse"},z2={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..."},U2={year:"an",month:"mois",week:"semaine",day:"jour",hour:"heure",minute:"minute",second:"seconde",ago:"il y a",in:"dans",justNow:"À l'instant"},H2={save:"Enregistrer",cancel:"Annuler",delete:"Supprimer",validationError:"Veuillez corriger les erreurs de validation avant de soumettre",errorOccurred:"Une erreur est survenue"},W2={phoneNumber:"Numéro de téléphone",invalidPhone:"Veuillez entrer un numéro de téléphone valide"},j2={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..."},q2={invalidFormat:"Format de date invalide"},G2={wrapText:"Renvoyer à la ligne",selectAll:"Tout sélectionner",clearAll:"Tout effacer"},Y2={openFile:"Ouvrir le fichier"},X2={placeholder:"Entrez une couleur"},K2={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"},J2={content:"Contenu",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Newsletter",agent:"Agents",users:"Utilisateurs",tenants:"Organisations"},Z2={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} ?"},Q2={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"}},ek={addTo:"Ajouter à {name}",addToCalendar:"Ajouter au calendrier"};var tk={modalConfirm:T2,upload:N2,pagination:B2,form:D2,password:A2,select:M2,fieldArray:L2,arrayInput:P2,btn:I2,toast:V2,filter:O2,multiStep:R2,addressSearch:F2,importData:z2,timeAgo:U2,dialogForm:H2,tel:W2,email:j2,date:q2,spreadsheet:G2,lightbox:Y2,color:X2,pageDesigner:K2,admin:J2,userManagement:Z2,calendar:Q2,addToCalendar:ek};const nk={title:"אישור",message:"האם אתה בטוח שברצונך להמשיך?",confirm:"אישור",cancel:"ביטול"},rk={upload:"העלה",uploading:"מעלה {count} קבצים...",noFile:"לא נבחר קובץ",dropPlaceholder:"גרור ושחרר קבצים כאן או לחץ להעלאה",delete:"מחק",replace:"החלף",download:"הורד"},ok={of:"מתוך",prev:"הקודם",next:"הבא",perPage:"פריטים לעמוד"},ak={required:"שדה זה נדרש",invalidEmail:"הזן כתובת אימייל חוקית",invalidUrl:"הזן כתובת URL חוקית",minLength:"חייב להכיל לפחות {min} תווים",maxLength:"חייב להכיל לכל היותר {max} תווים",minValue:"חייב להיות לפחות {min}",maxValue:"חייב להיות לכל היותר {max}",pattern:"פורמט לא חוקי",passwordStrength:"חוזק סיסמה"},lk={veryWeak:"חלשה מאוד",weak:"חלשה",fair:"סבירה",good:"טובה",strong:"חזקה"},ik={placeholder:"בחר",search:"חיפוש",yes:"כן",no:"לא"},sk={loadDefault:"טען {label} ברירת מחדל"},ck={item:"פריט"},uk={loading:"טוען..."},dk={success:"הצלחה",error:"שגיאה",warning:"אזהרה",info:"מידע"},fk={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:"שמירה"}},mk={previous:"הקודם",next:"הבא",complete:"סיים",step:"שלב {current} מתוך {total}"},pk={placeholder:"הזן כתובת"},hk={close:"סגור",cancel:"ביטול",importData:"ייבא נתונים",changeFile:"החלף קובץ",selectSheet:"בחר גיליון",hasHeaders:"סמן אם לקובץ יש שורת כותרת",sourceKeyField:"שדה מפתח מקור (מהקובץ הזה)",relatedKeyField:"שדה מפתח קשור (מהקובץ הקשור)",selectSourceValue:"בחר ערך מקור",sourceValue:"ערך מקור",selectTargetValue:"בחר ערך יעד",targetValue:"ערך יעד",selectColumn:"בחר עמודה..."},gk={year:{singular:"שנה",plural:"שנים"},month:{singular:"חודש",plural:"חודשים"},week:{singular:"שבוע",plural:"שבועות"},day:{singular:"יום",plural:"ימים"},hour:{singular:"שעה",plural:"שעות"},minute:{singular:"דקה",plural:"דקות"},second:{singular:"שנייה",plural:"שניות"},ago:"לפני",in:"בעוד",justNow:"זה עתה"},vk={save:"שמור",cancel:"ביטול",delete:"מחק",validationError:"אנא תקן את שגיאות האימות לפני השליחה",errorOccurred:"אירעה שגיאה"},yk={phoneNumber:"מספר טלפון",invalidPhone:"אנא הזן מספר טלפון תקין"},bk={invalidEmail:"הזן כתובת אימייל חוקית",invalidDomain:"נראה שדומיין האימייל אינו חוקי",disposableEmail:"אנא השתמש בכתובת אימייל שאינה חד-פעמית",didYouMean:"האם התכוונת ל-{suggestion}?",validating:"מאמת כתובת אימייל..."},_k={invalidFormat:"פורמט תאריך לא חוקי"},wk={wrapText:"גלישת טקסט",selectAll:"בחר הכל",clearAll:"נקה הכל"},kk={openFile:"פתח קובץ"},$k={placeholder:"הזן צבע"},Ek={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:"פרסום נכשל"},Ck={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:"שומר סדר..."},Sk={selectCollection:"בחרו קולקציה מהרשימה",fieldName:"שם",fieldStore:"Store",fieldStoreHint:"לדוגמה: default",fieldCollection:"Collection",fieldCollectionHint:"לדוגמה: my_collection",fieldDescription:"תיאור",createTitle:"יצירת Datastore חדש",createSubmit:"יצירה",editTitle:"עריכת {name}",saveSubmit:"שמירה",addBtn:"הוספת Datastore",empty:"אין Datastores עדיין",deleteConfirm:'למחוק את "{name}"?'},xk={content:"תוכן",blox:"בלוקס",whatsapp:"וואטסאפ",newsletter:"ניוזלטר",agent:"סוכנים",users:"משתמשים",tenants:"ארגונים"},Tk={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}?"},Nk={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:"טלפון"}}},Bk={today:"היום",views:{week:"שבוע",month:"חודש",day:"יום",agenda:"סדר יום"},agenda:{time:"שעה",event:"אירוע",eventsCount:"אירוע אחד | {n} אירועים",noEvents:"אין אירועים"}},Dk={addTo:"הוסף ל{name}",addToCalendar:"הוסף ליומן",google:"יומן Google",apple:"יומן Apple",outlook:"Outlook",office365:"Office 365",yahoo:"יומן Yahoo",ics:"יומן (קובץ ICS)"},Ak={total:"סה״כ",share:"חלק"};var Mk={modalConfirm:nk,upload:rk,pagination:ok,form:ak,password:lk,select:ik,fieldArray:sk,arrayInput:ck,btn:uk,toast:dk,filter:fk,multiStep:mk,addressSearch:pk,importData:hk,timeAgo:gk,dialogForm:vk,tel:yk,email:bk,date:_k,spreadsheet:wk,lightbox:kk,color:$k,pageDesigner:Ek,collection:Ck,datastores:Sk,admin:xk,userManagement:Tk,forms:Nk,calendar:Bk,addToCalendar:Dk,charts:Ak};const Lk={title:"Conferma",message:"Sei sicuro di voler continuare?",confirm:"Conferma",cancel:"Annulla"},Pk={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"},Ik={of:"di",prev:"Precedente",next:"Successivo"},Vk={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"},Ok={veryWeak:"Molto debole",weak:"Debole",fair:"Discreta",good:"Buona",strong:"Forte"},Rk={placeholder:"Seleziona",search:"Cerca",yes:"Sì",no:"No"},Fk={loadDefault:"Carica {label} predefinito"},zk={item:"Elemento"},Uk={loading:"Caricamento..."},Hk={success:"Successo",error:"Errore",warning:"Avviso",info:"Informazione"},Wk={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"}},jk={previous:"Precedente",next:"Successivo",complete:"Completa",step:"Passo {current} di {total}"},qk={placeholder:"Inserisci un indirizzo"},Gk={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..."},Yk={year:"anno",month:"mese",week:"settimana",day:"giorno",hour:"ora",minute:"minuto",second:"secondo",ago:"fa",in:"tra",justNow:"Poco fa"},Xk={save:"Salva",cancel:"Annulla",delete:"Elimina",validationError:"Correggi gli errori di validazione prima di inviare",errorOccurred:"Si è verificato un errore"},Kk={phoneNumber:"Numero di telefono",invalidPhone:"Inserisci un numero di telefono valido"},Jk={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..."},Zk={invalidFormat:"Formato data non valido"},Qk={wrapText:"A capo automatico",selectAll:"Seleziona tutto",clearAll:"Cancella tutto"},e$={openFile:"Apri file"},t$={placeholder:"Inserisci un colore"},n$={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"},r$={content:"Contenuto",blox:"Blox",whatsapp:"WhatsApp",newsletter:"Newsletter",agent:"Agenti",users:"Utenti",tenants:"Organizzazioni"},o$={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}?"},a$={today:"Oggi",views:{week:"Settimana",month:"Mese",day:"Giorno",agenda:"Agenda"},agenda:{time:"Ora",event:"Evento",eventsCount:"{n} evento | {n} eventi",noEvents:"Nessun evento"}},l$={addTo:"Aggiungi a {name}",addToCalendar:"Aggiungi al calendario"};var i$={modalConfirm:Lk,upload:Pk,pagination:Ik,form:Vk,password:Ok,select:Rk,fieldArray:Fk,arrayInput:zk,btn:Uk,toast:Hk,filter:Wk,multiStep:jk,addressSearch:qk,importData:Gk,timeAgo:Yk,dialogForm:Xk,tel:Kk,email:Jk,date:Zk,spreadsheet:Qk,lightbox:e$,color:t$,pageDesigner:n$,admin:r$,userManagement:o$,calendar:a$,addToCalendar:l$};const s$={title:"Подтвердить",message:"Вы уверены, что хотите продолжить?",confirm:"Подтвердить",cancel:"Отмена"},c$={upload:"Загрузить",uploading:"Загрузка {count} файл{plural}...",noFile:"Файл не выбран",dropPlaceholder:"Перетащите файлы сюда или нажмите для загрузки",delete:"Удалить",replace:"Заменить",download:"Скачать"},u$={of:"из",prev:"Предыдущая",next:"Следующая"},d$={required:"Это поле обязательно для заполнения",invalidEmail:"Введите действительный адрес электронной почты",invalidUrl:"Введите действительный URL",minLength:"Должно содержать не менее {min} символов",maxLength:"Должно содержать не более {max} символов",minValue:"Должно быть не менее {min}",maxValue:"Должно быть не более {max}",pattern:"Неверный формат",passwordStrength:"Надежность пароля"},f$={veryWeak:"Очень слабый",weak:"Слабый",fair:"Средний",good:"Хороший",strong:"Надёжный"},m$={placeholder:"Выбрать",search:"Поиск",yes:"Да",no:"Нет"},p$={loadDefault:"Загрузить {label} по умолчанию"},h$={item:"Элемент"},g$={loading:"Загрузка..."},v$={success:"Успешно",error:"Ошибка",warning:"Предупреждение",info:"Информация"},y$={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:"Сохранить"}},b$={previous:"Назад",next:"Далее",complete:"Завершить",step:"Шаг {current} из {total}"},_$={placeholder:"Введите адрес"},w$={close:"Закрыть",cancel:"Отмена",importData:"Импорт данных",changeFile:"Изменить файл",selectSheet:"Выбрать лист",hasHeaders:"Отметьте, если файл содержит строку заголовка",sourceKeyField:"Ключевое поле источника (из этого файла)",relatedKeyField:"Ключевое поле связанного (из связанного файла)",selectSourceValue:"Выберите исходное значение",sourceValue:"Исходное значение",selectTargetValue:"Выберите целевое значение",targetValue:"Целевое значение",selectColumn:"Выберите столбец..."},k$={year:"год",month:"месяц",week:"неделя",day:"день",hour:"час",minute:"минута",second:"секунда",ago:"назад",in:"через",justNow:"Только что"},$$={save:"Сохранить",cancel:"Отмена",delete:"Удалить",validationError:"Пожалуйста, исправьте ошибки валидации перед отправкой",errorOccurred:"Произошла ошибка"},E$={phoneNumber:"Номер телефона",invalidPhone:"Пожалуйста, введите действительный номер телефона"},C$={invalidEmail:"Введите действительный адрес электронной почты",invalidDomain:"Домен этого адреса электронной почты, похоже, недействителен",disposableEmail:"Пожалуйста, используйте постоянный адрес электронной почты",didYouMean:"Вы имели в виду {suggestion}?",validating:"Проверка адреса электронной почты..."},S$={invalidFormat:"Неверный формат даты"},x$={wrapText:"Перенос текста",selectAll:"Выбрать всё",clearAll:"Очистить всё"},T$={openFile:"Открыть файл"},N$={placeholder:"Введите цвет"},B$={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:"Ошибка публикации"},D$={content:"Контент",blox:"Блокс",whatsapp:"WhatsApp",newsletter:"Рассылка",agent:"Агенты",users:"Пользователи",tenants:"Организации"},A$={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}?"},M$={today:"Сегодня",views:{week:"Неделя",month:"Месяц",day:"День",agenda:"Повестка"},agenda:{time:"Время",event:"Событие",eventsCount:"{n} событие | {n} события | {n} событий",noEvents:"Нет событий"}},L$={addTo:"Добавить в {name}",addToCalendar:"Добавить в календарь"};var P$={modalConfirm:s$,upload:c$,pagination:u$,form:d$,password:f$,select:m$,fieldArray:p$,arrayInput:h$,btn:g$,toast:v$,filter:y$,multiStep:b$,addressSearch:_$,importData:w$,timeAgo:k$,dialogForm:$$,tel:E$,email:C$,date:S$,spreadsheet:x$,lightbox:T$,color:N$,pageDesigner:B$,admin:D$,userManagement:A$,calendar:M$,addToCalendar:L$},uc={en:Qw,he:Mk,it:i$,es:x2,fr:tk,ru:P$},zl=null;function Rh(e={}){const{locale:t="en",fallbackLocale:r="en",messages:o={}}=e,a=Object.keys(uc),l={};for(const i of a)l[i]={...uc[i]||{},...o[i]||{}};for(const i of Object.keys(o))l[i]||(l[i]=o[i]);return zl=mw({locale:t,fallbackLocale:r,messages:l,legacy:!1,globalInjection:!0}),zl}function ir(){if(!zl)throw new Error("i18n not initialized. Call createI18n() first.");return zl}function nt(){const e=ir().global;return{$t:e.t,t:e.t,locale:e.locale,availableLocales:e.availableLocales,fallbackLocale:e.fallbackLocale,n:e.n,d:e.d}}function $e(e){if(e!=null)return e.startsWith("$t:")?ir().global.t(e.slice(3)):e}function Fh(){try{const e=ir().global.locale,t=e?.value??e;if(typeof t=="string"&&t)return t}catch{}return typeof document<"u"&&(document.documentElement.lang||navigator?.language)||"en"}function $t(e,t={}){const r=Fh();let o;try{t.currency?o=new Intl.NumberFormat(r,{style:"currency",currency:t.currency,notation:t.compact?"compact":"standard",maximumFractionDigits:t.maximumFractionDigits??(t.compact?1:0)}).format(e):o=new Intl.NumberFormat(r,{notation:t.compact?"compact":"standard",maximumFractionDigits:t.maximumFractionDigits??(t.compact?1:2)}).format(e)}catch{o=String(e)}return`${t.prefix??""}${o}${t.suffix??""}`}function Ul(e){if(/[-/]/.test(e)){const t=new Date(e);if(!Number.isNaN(t.getTime()))try{return t.toLocaleDateString(Fh(),{month:"short",day:"numeric"})}catch{}}return e}var I$={top:8,right:8,bottom:22,left:36};function zh(e,t){const r=(0,n.ref)(0),o=(0,n.computed)(()=>typeof t.height=="number"?t.height:t.height.value),a=(0,n.computed)(()=>({...I$,...t.padding})),l=(0,n.computed)(()=>Math.max(0,r.value-a.value.left-a.value.right)),i=(0,n.computed)(()=>Math.max(0,o.value-a.value.top-a.value.bottom)),s=(0,n.ref)(!1);function c(){typeof document>"u"||(s.value=(e.value?.closest("[dir]")?.getAttribute("dir")||document.documentElement.dir)==="rtl"||document.documentElement.lang==="he")}let u=null;return(0,n.onMounted)(()=>{c(),e.value&&(r.value=e.value.clientWidth||0,u=new ResizeObserver(f=>{for(const m of f)r.value=m.contentRect.width}),u.observe(e.value))}),(0,n.onUnmounted)(()=>u?.disconnect()),{width:r,height:o,pad:a,innerWidth:l,innerHeight:i,isRTL:s,flipX:f=>s.value?l.value-f:f}}var V$={key:0,class:"bgl-tip__label m-0"},O$={key:1,class:"bgl-tip__hero m-0 tabular-nums"},R$={key:1,class:"bgl-tip__name"},F$={class:"bgl-tip__val tabular-nums"},z$={key:2,class:"bgl-tip__row bgl-tip__total flex align-items-center m-0"},U$={class:"bgl-tip__name"},H$={class:"bgl-tip__val tabular-nums"},W$={key:3,class:"bgl-tip__stats flex column"},j$={class:"bgl-tip__name"},q$={class:"bgl-tip__val tabular-nums"},G$=(0,n.defineComponent)({name:"BglChartTooltip",__name:"ChartTooltip",props:{label:{},hero:{},rows:{default:()=>[]},total:{},stats:{default:()=>[]},above:{type:Boolean}},setup(e){const{$t:t}=nt();return(r,o)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["bgl-tip absolute pointer-events-none nowrap z-5 color-white line-height-13",{"bgl-tip--above":e.above}])},[e.label?((0,n.openBlock)(),(0,n.createElementBlock)("p",V$,(0,n.toDisplayString)(e.label),1)):(0,n.createCommentVNode)("",!0),e.hero?((0,n.openBlock)(),(0,n.createElementBlock)("p",O$,(0,n.toDisplayString)(e.hero),1)):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.rows,(a,l)=>((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:l,class:"bgl-tip__row flex align-items-center m-0"},[a.color?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:0,class:"bgl-tip__dot flex-shrink-0",style:(0,n.normalizeStyle)({background:a.color})},null,4)):(0,n.createCommentVNode)("",!0),e.rows.length>1?((0,n.openBlock)(),(0,n.createElementBlock)("span",R$,(0,n.toDisplayString)(a.name),1)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",F$,(0,n.toDisplayString)(a.value),1)]))),128)),e.total?((0,n.openBlock)(),(0,n.createElementBlock)("p",z$,[(0,n.createElementVNode)("span",U$,(0,n.toDisplayString)((0,n.unref)(t)("charts.total")),1),(0,n.createElementVNode)("span",H$,(0,n.toDisplayString)(e.total),1)])):(0,n.createCommentVNode)("",!0),e.stats.length?((0,n.openBlock)(),(0,n.createElementBlock)("div",W$,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.stats,(a,l)=>((0,n.openBlock)(),(0,n.createElementBlock)("p",{key:l,class:"bgl-tip__row flex align-items-center m-0"},[(0,n.createElementVNode)("span",j$,(0,n.toDisplayString)(a.label),1),(0,n.createElementVNode)("span",q$,(0,n.toDisplayString)(a.value),1)]))),128))])):(0,n.createCommentVNode)("",!0)],2))}}),ki=ge(G$,[["__scopeId","data-v-8a82cd70"]]),Y$=["width","height"],X$={key:0},K$=["id","y2"],J$=["stop-color","stop-opacity"],Z$=["stop-color","stop-opacity"],Q$=["transform"],eE={key:0,class:"bgl-chart__grid"},tE=["x2","y1","y2"],nE=["y"],rE=["d","fill","opacity"],oE=["d","stroke","stroke-dasharray","stroke-dashoffset"],aE=["cx","cy","fill","opacity"],lE={class:"bgl-chart__xlabels"},iE=["x","y"],sE={key:3,class:"bgl-chart__hover","pointer-events":"none"},cE=["x1","x2","y2"],uE=["cx","cy","fill"],dE=(0,n.defineComponent)({__name:"LineChart",props:{data:{},series:{},labels:{},color:{},area:{type:Boolean},gradient:{type:Boolean},stacked:{type:Boolean},height:{default:220},grid:{type:Boolean,default:!0},points:{type:Boolean,default:!1},currency:{},prefix:{},suffix:{},maxLabels:{default:7},animated:{type:Boolean,default:!0}},setup(e){const t=e,r=(0,n.ref)(),{width:o,height:a,pad:l,innerWidth:i,innerHeight:s,flipX:c,isRTL:u}=zh(r,{height:(0,n.computed)(()=>t.height)}),{progress:d}=Yr({el:r,enabled:t.animated,duration:800}),f=(0,n.computed)(()=>iu(t.data,t.series,{labels:t.labels,defaultColor:t.color})),m=(0,n.computed)(()=>nh(f.value)),p=(0,n.computed)(()=>({currency:t.currency,prefix:t.prefix,suffix:t.suffix})),h=(0,n.computed)(()=>({...p.value,compact:!0})),y=(0,n.computed)(()=>t.stacked&&f.value.length>1),b=(0,n.computed)(()=>m.value.map((U,T)=>f.value.reduce((z,W)=>z+(W.points[T]?.y??0),0))),g=(0,n.computed)(()=>rh(y.value?Math.max(0,...b.value):Math.max(0,...Js(f.value)))),v=(0,n.computed)(()=>y.value?0:Math.min(0,...Js(f.value))),_=(0,n.computed)(()=>ga(0,Math.max(1,m.value.length-1),0,i.value)),w=(0,n.computed)(()=>ga(v.value,g.value,s.value,0)),k=(0,n.computed)(()=>t.grid?oh(v.value,g.value,4):[]),S=(0,n.computed)(()=>{const U=s.value,T=m.value.map(()=>0);return f.value.map((z,W)=>{const Y=Et(z.color,W);if(y.value){const se=m.value.map((H,G)=>T[G]),ie=m.value.map((H,G)=>T[G]+(z.points[G]?.y??0));ie.forEach((H,G)=>{T[G]=H});const ue=ie.map((H,G)=>({x:c(_.value(G)),y:w.value(H),p:z.points[G]??{label:m.value[G],y:H}})),we=ue.map((H,G)=>`${G===0?"M":"L"} ${H.x.toFixed(1)} ${H.y.toFixed(1)}`).join(" "),ce=[...se.map((H,G)=>({x:c(_.value(G)),y:w.value(H)}))].reverse().map(H=>`L ${H.x.toFixed(1)} ${H.y.toFixed(1)}`).join(" "),ke=ue.length?`${we} ${ce} Z`:"";return{name:z.name,color:Y,coords:ue,line:we,areaPath:ke}}const ne=z.points.map((se,ie)=>({x:c(_.value(ie)),y:w.value(se.y),p:se})),ve=ne.map((se,ie)=>`${ie===0?"M":"L"} ${se.x.toFixed(1)} ${se.y.toFixed(1)}`).join(" "),X=ne.length?`${ve} L ${ne[ne.length-1].x.toFixed(1)} ${U} L ${ne[0].x.toFixed(1)} ${U} Z`:"";return{name:z.name,color:Y,coords:ne,line:ve,areaPath:X}})}),E=(0,n.computed)(()=>t.area||y.value),$=(0,n.computed)(()=>E.value&&t.gradient!==!1),I=vi(),D=U=>`${I}-grad-${U}`,R=(0,n.computed)(()=>Math.max(1,Math.ceil(m.value.length/t.maxLabels))),M=(0,n.computed)(()=>(i.value+s.value)*2),N=(0,n.computed)(()=>M.value*(1-d.value)),A=(0,n.ref)(null),F=(0,n.ref)(0);function V(U){const T=r.value;if(!T||!m.value.length)return;const z=T.getBoundingClientRect();let W=U.clientX-z.left-l.value.left;u.value&&(W=i.value-W);const Y=Math.round(W/Math.max(1,i.value)*(m.value.length-1));A.value=Math.min(m.value.length-1,Math.max(0,Y)),F.value=U.clientX-z.left}function B(){A.value=null}const j=(0,n.computed)(()=>A.value==null?0:c(_.value(A.value))),Q=(0,n.computed)(()=>A.value==null?[]:S.value.map(U=>U.coords[A.value]).filter(Boolean).map((U,T)=>({x:U.x,y:U.y,color:S.value[T].color}))),K=(0,n.computed)(()=>A.value==null?[]:f.value.map((U,T)=>({name:U.name,color:Et(U.color,T),value:$t(U.points[A.value]?.y??0,p.value)}))),re=(0,n.computed)(()=>A.value==null?"":Ul(m.value[A.value])),O=(0,n.computed)(()=>A.value==null||!y.value?null:$t(f.value.reduce((U,T)=>U+(T.points[A.value]?.y??0),0),p.value)),P=(0,n.computed)(()=>({left:`${Math.min(Math.max(F.value,70),Math.max(70,o.value-70))}px`}));return(U,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"el",ref:r,class:"bgl-chart w-100p relative",style:(0,n.normalizeStyle)({height:`${(0,n.unref)(a)}px`}),onMousemove:V,onMouseleave:B},[(0,n.unref)(o)?((0,n.openBlock)(),(0,n.createElementBlock)("svg",{key:0,width:(0,n.unref)(o),height:(0,n.unref)(a),class:"display-block overflow-hidden"},[$.value?((0,n.openBlock)(),(0,n.createElementBlock)("defs",X$,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(S.value,(z,W)=>((0,n.openBlock)(),(0,n.createElementBlock)("linearGradient",{id:D(W),key:W,gradientUnits:"userSpaceOnUse",x1:0,y1:0,x2:0,y2:(0,n.unref)(s)},[(0,n.createElementVNode)("stop",{offset:"0%","stop-color":z.color,"stop-opacity":y.value?.9:.32},null,8,J$),(0,n.createElementVNode)("stop",{offset:"100%","stop-color":z.color,"stop-opacity":y.value?.15:.02},null,8,Z$)],8,K$))),128))])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("g",{transform:`translate(${(0,n.unref)(l).left}, ${(0,n.unref)(l).top})`},[e.grid?((0,n.openBlock)(),(0,n.createElementBlock)("g",eE,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(k.value,(z,W)=>((0,n.openBlock)(),(0,n.createElementBlock)("g",{key:W},[(0,n.createElementVNode)("line",{x1:0,x2:(0,n.unref)(i),y1:w.value(z),y2:w.value(z)},null,8,tE),(0,n.createElementVNode)("text",{class:"bgl-chart__ytick",x:-8,y:w.value(z)+3},(0,n.toDisplayString)((0,n.unref)($t)(z,h.value)),9,nE)]))),128))])):(0,n.createCommentVNode)("",!0),E.value?((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:1},(0,n.renderList)(S.value,(z,W)=>((0,n.openBlock)(),(0,n.createElementBlock)("path",{key:`a${W}`,d:z.areaPath,fill:$.value?`url(#${D(W)})`:(0,n.unref)(gi)(z.color,y.value?78:14),stroke:"none",opacity:(0,n.unref)(d)},null,8,rE))),128)):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(S.value,(z,W)=>((0,n.openBlock)(),(0,n.createElementBlock)("path",{key:`l${W}`,d:z.line,stroke:z.color,"stroke-width":"2.5",fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-dasharray":M.value,"stroke-dashoffset":N.value},null,8,oE))),128)),e.points?((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:2},(0,n.renderList)(S.value,(z,W)=>((0,n.openBlock)(),(0,n.createElementBlock)("g",{key:`p${W}`},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(z.coords,(Y,ne)=>((0,n.openBlock)(),(0,n.createElementBlock)("circle",{key:ne,cx:Y.x,cy:Y.y,r:"3.5",fill:z.color,class:"bgl-chart__pt",opacity:(0,n.unref)(d)},null,8,aE))),128))]))),128)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("g",lE,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(m.value,(z,W)=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:W,x:(0,n.unref)(c)(_.value(W)),y:(0,n.unref)(s)+16,"text-anchor":"middle"},(0,n.toDisplayString)((0,n.unref)(Ul)(z)),9,iE)),[[n.vShow,W%R.value===0]])),128))]),A.value!=null?((0,n.openBlock)(),(0,n.createElementBlock)("g",sE,[(0,n.createElementVNode)("line",{x1:j.value,x2:j.value,y1:0,y2:(0,n.unref)(s),class:"bgl-chart__crosshair"},null,8,cE),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(Q.value,(z,W)=>((0,n.openBlock)(),(0,n.createElementBlock)("circle",{key:W,cx:z.x,cy:z.y,r:"4",fill:z.color,class:"bgl-chart__hoverpt"},null,8,uE))),128))])):(0,n.createCommentVNode)("",!0)],8,Q$)],8,Y$)):(0,n.createCommentVNode)("",!0),A.value!=null?((0,n.openBlock)(),(0,n.createBlock)(ki,{key:1,style:(0,n.normalizeStyle)(P.value),label:re.value,rows:K.value,total:O.value},null,8,["style","label","rows","total"])):(0,n.createCommentVNode)("",!0)],36))}}),fE=ge(dE,[["__scopeId","data-v-81691af8"]]),mE={class:"bgl-chart-scroll w-100p overflow-x"},pE=["width","height"],hE={key:0},gE=["id"],vE=["stop-color"],yE=["stop-color"],bE=["transform"],_E={key:0,class:"bgl-chart__grid"},wE=["x2","y1","y2"],kE=["y"],$E=["x","y","width","height","rx","fill"],EE={class:"bgl-chart__xlabels"},CE=["x","y"],SE=(0,n.defineComponent)({__name:"BarChart",props:{data:{},series:{},labels:{},color:{},stacked:{type:Boolean},gradient:{type:Boolean},height:{default:220},grid:{type:Boolean,default:!0},radius:{default:4},currency:{},prefix:{},suffix:{},maxLabels:{default:12},minBarWidth:{default:28},animated:{type:Boolean,default:!0}},setup(e){const t=e,r=(0,n.ref)(),{width:o,height:a,pad:l,innerWidth:i,innerHeight:s,flipX:c}=zh(r,{height:(0,n.computed)(()=>t.height)}),{progress:u}=Yr({el:r,enabled:t.animated,duration:700}),d=(0,n.computed)(()=>iu(t.data,t.series,{labels:t.labels,defaultColor:t.color})),f=(0,n.computed)(()=>nh(d.value)),m=(0,n.computed)(()=>t.minBarWidth>0&&f.value.length?Math.ceil(f.value.length*t.minBarWidth+l.value.left+l.value.right):0),p=(0,n.computed)(()=>({currency:t.currency,prefix:t.prefix,suffix:t.suffix})),h=(0,n.computed)(()=>({...p.value,compact:!0})),y=(0,n.computed)(()=>f.value.map((j,Q)=>d.value.reduce((K,re)=>K+(re.points[Q]?.y??0),0))),b=(0,n.computed)(()=>rh(t.stacked?Math.max(0,...y.value):Math.max(0,...Js(d.value)))),g=(0,n.computed)(()=>ga(0,b.value,s.value,0)),v=(0,n.computed)(()=>t.grid?oh(0,b.value,4):[]),_=(0,n.computed)(()=>Lb(f.value.length,i.value,.3)),w=(0,n.computed)(()=>{const j=t.stacked?1:d.value.length,Q=_.value.bandWidth/j;return{width:Q,at:K=>K*Q}}),k=(0,n.computed)(()=>{const j=[];return f.value.forEach((Q,K)=>{const re=_.value.start(K);let O=s.value;d.value.forEach((P,U)=>{const T=P.points[K]?.y??0,z=Et(P.color,U),W=s.value-g.value(T),Y=W*u.value,ne=w.value.width,ve=t.stacked?re:re+w.value.at(U),X=t.stacked?O-Y:s.value-Y;t.stacked&&(O-=W),j.push({x:c(ve+ne/2)-ne/2,y:X,w:ne,h:Y,color:z,cat:K})})}),j}),S=(0,n.computed)(()=>Math.max(1,Math.ceil(f.value.length/t.maxLabels))),E=vi("bar"),$=(0,n.computed)(()=>[...new Set(k.value.map(j=>j.color))]),I=j=>`${E}-${$.value.indexOf(j)}`,D=(0,n.ref)(null),R=(0,n.ref)(0);function M(j){const Q=r.value;if(!Q||!f.value.length)return;const K=Q.getBoundingClientRect();let re=j.clientX-K.left-l.value.left;c(0)!==0&&(re=i.value-re);const O=Math.floor(re/Math.max(1,i.value)*f.value.length);D.value=Math.min(f.value.length-1,Math.max(0,O)),R.value=j.clientX-K.left}function N(){D.value=null}const A=(0,n.computed)(()=>D.value==null?"":Ul(f.value[D.value])),F=(0,n.computed)(()=>D.value==null?[]:d.value.map((j,Q)=>({name:j.name,color:Et(j.color,Q),value:$t(j.points[D.value]?.y??0,p.value)}))),V=(0,n.computed)(()=>D.value==null||!t.stacked?null:$t(y.value[D.value]??0,p.value)),B=(0,n.computed)(()=>({left:`${Math.min(Math.max(R.value,70),Math.max(70,o.value-70))}px`}));return(j,Q)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",mE,[(0,n.createElementVNode)("div",{ref_key:"el",ref:r,class:"bgl-chart relative",style:(0,n.normalizeStyle)({height:`${(0,n.unref)(a)}px`,minWidth:m.value?`${m.value}px`:void 0}),onMousemove:M,onMouseleave:N},[(0,n.unref)(o)?((0,n.openBlock)(),(0,n.createElementBlock)("svg",{key:0,width:(0,n.unref)(o),height:(0,n.unref)(a),class:"display-block overflow-hidden"},[e.gradient?((0,n.openBlock)(),(0,n.createElementBlock)("defs",hE,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)($.value,K=>((0,n.openBlock)(),(0,n.createElementBlock)("linearGradient",{id:I(K),key:K,x1:"0",y1:"0",x2:"0",y2:"1"},[(0,n.createElementVNode)("stop",{offset:"0%","stop-color":K,"stop-opacity":"1"},null,8,vE),(0,n.createElementVNode)("stop",{offset:"100%","stop-color":K,"stop-opacity":"0.55"},null,8,yE)],8,gE))),128))])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("g",{transform:`translate(${(0,n.unref)(l).left}, ${(0,n.unref)(l).top})`},[e.grid?((0,n.openBlock)(),(0,n.createElementBlock)("g",_E,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(v.value,(K,re)=>((0,n.openBlock)(),(0,n.createElementBlock)("g",{key:re},[(0,n.createElementVNode)("line",{x1:0,x2:(0,n.unref)(i),y1:g.value(K),y2:g.value(K)},null,8,wE),(0,n.createElementVNode)("text",{class:"bgl-chart__ytick",x:-8,y:g.value(K)+3},(0,n.toDisplayString)((0,n.unref)($t)(K,h.value)),9,kE)]))),128))])):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(k.value,(K,re)=>((0,n.openBlock)(),(0,n.createElementBlock)("rect",{key:re,x:K.x,y:K.y,width:Math.max(0,K.w),height:Math.max(0,K.h),rx:Math.min(e.radius,K.w/2),fill:e.gradient?`url(#${I(K.color)})`:K.color,class:(0,n.normalizeClass)(["bgl-chart__bar",{"is-dim opacity-5":D.value!=null&&D.value!==K.cat}])},null,10,$E))),128)),(0,n.createElementVNode)("g",EE,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(f.value,(K,re)=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:re,x:(0,n.unref)(c)(_.value.center(re)),y:(0,n.unref)(s)+16,"text-anchor":"middle"},(0,n.toDisplayString)((0,n.unref)(Ul)(K)),9,CE)),[[n.vShow,re%S.value===0]])),128))])],8,bE)],8,pE)):(0,n.createCommentVNode)("",!0),D.value!=null?((0,n.openBlock)(),(0,n.createBlock)(ki,{key:1,style:(0,n.normalizeStyle)(B.value),label:A.value,rows:F.value,total:V.value},null,8,["style","label","rows","total"])):(0,n.createCommentVNode)("",!0)],36)]))}}),xE=ge(SE,[["__scopeId","data-v-4c147136"]]),TE=["width","height","viewBox"],NE=["d","fill","onMouseenter"],BE=["x","y"],DE=["x"],AE=["x","dy"],ME=["x","dy"],LE={key:0,class:"absolute-fill flex-center column pointer-events-none gap-025"},PE={key:0,class:"semibold txt20 line-height-1"},IE={key:1,class:"color-gray txt12"},VE={key:0,class:"bgl-donut__legend grid gap-025"},OE={class:"bgl-donut__legname ms-0 me-auto my-0 p-0"},RE={key:0,class:"semibold tabular-nums"},FE={key:1,class:"bgl-donut__legpct color-gray tabular-nums txt-end"},zE=(0,n.defineComponent)({name:"BglDonut",__name:"Donut",props:{data:{},size:{default:180},thickness:{default:.38},pie:{type:Boolean},legend:{type:Boolean,default:!0},legendValue:{type:Boolean,default:!0},legendPct:{type:Boolean,default:!0},color:{default:"primary"},mode:{default:"shades"},centerLabel:{},centerValue:{},showTotal:{type:Boolean,default:!1},currency:{},labels:{type:[Boolean,String],default:!1},labelMinShare:{default:.05},animated:{type:Boolean,default:!0}},setup(e){const t=e,{$t:r}=nt(),o=(0,n.ref)(),{progress:a}=Yr({el:o,enabled:t.animated,duration:800}),l=(0,n.computed)(()=>({currency:t.currency,compact:!0}));function i(S){return $t(S,{currency:t.currency,compact:!0})}const s=(0,n.computed)(()=>t.data.reduce((S,E)=>S+Math.max(0,E.value),0)||1),c=(0,n.computed)(()=>t.size/2),u=(0,n.computed)(()=>t.pie?0:c.value*(1-t.thickness)),d=(0,n.computed)(()=>{const S=c.value,E=u.value,$=S,I=S,D=E+(S-E)*.68;let R=-Math.PI/2;return t.data.map((M,N)=>{const A=Math.max(0,M.value)/s.value,F=A*Math.PI*2*a.value,V=R,B=R+F;R=B;const j=(V+B)/2,Q=F>Math.PI?1:0,K=$+S*Math.cos(V),re=I+S*Math.sin(V),O=$+S*Math.cos(B),P=I+S*Math.sin(B);let U;E>0?U=`M ${K} ${re} A ${S} ${S} 0 ${Q} 1 ${O} ${P} L ${$+E*Math.cos(B)} ${I+E*Math.sin(B)} A ${E} ${E} 0 ${Q} 0 ${$+E*Math.cos(V)} ${I+E*Math.sin(V)} Z`:U=`M ${$} ${I} L ${K} ${re} A ${S} ${S} 0 ${Q} 1 ${O} ${P} Z`;const T=M.color?Et(M.color):t.mode==="multi"?Et(void 0,N):su(t.color,t.data.length,N),z=A*100,W=!!t.labels&&A>=t.labelMinShare;return{d:U,color:T,label:M.label,value:M.value,pct:z,lx:$+D*Math.cos(j),ly:I+D*Math.sin(j),tagged:W,tagName:W&&t.labels==="full"?M.label:"",tagValue:W&&t.labels!=="pct"?i(M.value):"",tagPct:W&&t.labels!=="value"?`${z.toFixed(0)}%`:""}})}),f=(0,n.computed)(()=>t.centerValue!==void 0?String(t.centerValue):t.showTotal?$t(s.value,l.value):""),m=(0,n.ref)(null),p=(0,n.ref)(0),h=(0,n.ref)(0);function y(S){m.value=S}function b(){m.value=null}function g(S){const E=S.currentTarget.getBoundingClientRect();p.value=S.clientX-E.left,h.value=S.clientY-E.top}const v=(0,n.computed)(()=>m.value==null?null:d.value[m.value]),_=(0,n.computed)(()=>v.value?i(v.value.value):""),w=(0,n.computed)(()=>v.value?[{label:r("charts.share"),value:`${v.value.pct.toFixed(0)}%`}]:[]),k=(0,n.computed)(()=>({left:`${p.value}px`,top:`${h.value}px`}));return(S,E)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"el",ref:o,class:(0,n.normalizeClass)(["bgl-donut w-100p inline-flex gap-1",e.legend?"row flex-wrap justify-content-center":"column"])},[(0,n.createElementVNode)("div",{class:"bgl-donut__chart relative flex-shrink-0",style:(0,n.normalizeStyle)({width:`${e.size}px`,height:`${e.size}px`}),onMousemove:g,onMouseleave:b},[((0,n.openBlock)(),(0,n.createElementBlock)("svg",{width:e.size,height:e.size,viewBox:`0 0 ${e.size} ${e.size}`},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(d.value,($,I)=>((0,n.openBlock)(),(0,n.createElementBlock)("path",{key:I,d:$.d,fill:$.color,class:(0,n.normalizeClass)(["bgl-donut__slice cursor-pointer",{"opacity-5":m.value!=null&&m.value!==I}]),onMouseenter:D=>y(I)},null,42,NE))),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(d.value,($,I)=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("text",{key:`t${I}`,x:$.lx,y:$.ly,class:"bgl-donut__tag pointer-events-none","text-anchor":"middle","dominant-baseline":"central"},[$.tagName?((0,n.openBlock)(),(0,n.createElementBlock)("tspan",{key:0,x:$.lx,dy:"-0.7em",class:"bgl-donut__tag-name opacity-9 txt-medium txt-0625rem"},(0,n.toDisplayString)($.tagName),9,DE)):(0,n.createCommentVNode)("",!0),$.tagValue?((0,n.openBlock)(),(0,n.createElementBlock)("tspan",{key:1,x:$.lx,dy:$.tagName?"1.15em":"0",class:"bgl-donut__tag-val txt-bold txt-0875rem"},(0,n.toDisplayString)($.tagValue),9,AE)):(0,n.createCommentVNode)("",!0),$.tagPct?((0,n.openBlock)(),(0,n.createElementBlock)("tspan",{key:2,x:$.lx,dy:$.tagName||$.tagValue?"1.5em":"0",class:"bgl-donut__tag-pct opacity-9 txt-05rem"},(0,n.toDisplayString)($.tagPct),9,ME)):(0,n.createCommentVNode)("",!0)],8,BE)),[[n.vShow,$.tagged]])),128))],8,TE)),!e.pie&&(f.value||e.centerLabel)?((0,n.openBlock)(),(0,n.createElementBlock)("div",LE,[f.value?((0,n.openBlock)(),(0,n.createElementBlock)("span",PE,(0,n.toDisplayString)(f.value),1)):(0,n.createCommentVNode)("",!0),e.centerLabel?((0,n.openBlock)(),(0,n.createElementBlock)("span",IE,(0,n.toDisplayString)(e.centerLabel),1)):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),v.value?((0,n.openBlock)(),(0,n.createBlock)(ki,{key:1,above:"",style:(0,n.normalizeStyle)(k.value),label:v.value.label,hero:_.value,stats:w.value},null,8,["style","label","hero","stats"])):(0,n.createCommentVNode)("",!0)],36),e.legend?((0,n.openBlock)(),(0,n.createElementBlock)("ul",VE,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(d.value,($,I)=>((0,n.openBlock)(),(0,n.createElementBlock)("li",{key:I,class:"flex gap-05 txt13"},[(0,n.createElementVNode)("span",{class:"bgl-donut__dot flex-shrink-0",style:(0,n.normalizeStyle)({background:$.color})},null,4),(0,n.createElementVNode)("span",OE,(0,n.toDisplayString)($.label),1),e.legendValue?((0,n.openBlock)(),(0,n.createElementBlock)("span",RE,(0,n.toDisplayString)(i($.value)),1)):(0,n.createCommentVNode)("",!0),e.legendPct?((0,n.openBlock)(),(0,n.createElementBlock)("span",FE,(0,n.toDisplayString)($.pct.toFixed(0))+"%",1)):(0,n.createCommentVNode)("",!0)]))),128))])):(0,n.createCommentVNode)("",!0)],2))}}),UE=ge(zE,[["__scopeId","data-v-cc8ed2e8"]]),HE=["viewBox"],WE={key:0},jE=["id","x2","y2"],qE=["stop-color"],GE=["stop-color"],YE=["d","fill","onMouseenter"],XE=["d","fill"],KE=["d","onMouseenter"],JE={class:"bgl-funnel__axis"},ZE=["title"],QE={class:"bgl-funnel__val txt13"},eC={key:1,class:"bgl-funnel__legend flex flex-wrap justify-content-center"},tC=["title"],nC={class:"bgl-funnel__bar-wrap flex justify-content-center"},rC={class:"bgl-funnel__val semibold"},ol=100,oC=1,aC=(0,n.defineComponent)({name:"BglFunnel",__name:"Funnel",props:{data:{},stages:{},series:{},flow:{type:Boolean,default:!0},orientation:{default:"vertical"},color:{default:"primary"},mode:{default:"shades"},gradient:{type:Boolean,default:!0},bandHeight:{default:52},fromPrev:{type:Boolean,default:!0},fromTop:{type:Boolean,default:!0},currency:{},prefix:{},suffix:{},animated:{type:Boolean,default:!0}},setup(e){const t=e,r=(0,n.ref)(),{progress:o}=Yr({el:r,enabled:t.animated,duration:700}),a=(0,n.computed)(()=>({currency:t.currency,prefix:t.prefix,suffix:t.suffix})),l=vi("funnel"),i=(0,n.computed)(()=>!!t.series?.length),s=(0,n.computed)(()=>(t.series??[]).map((N,A)=>({name:N.name,color:Et(N.color,A)}))),c=(0,n.computed)(()=>i.value?(t.stages??[]).map((N,A)=>({label:String(N),value:(t.series??[]).reduce((F,V)=>F+(V.data[A]??0),0)})):t.data??[]),u=(0,n.computed)(()=>{const N=c.value[0]?.value||1;return c.value.map((A,F)=>{const V=c.value[F-1]?.value,B=A.color?Et(A.color):t.mode==="multi"?Et(void 0,F):su(t.color,c.value.length,F),j=A.value/N*100,Q=V?A.value/V*100:100,K=F===0,re=[`<b>${$t(A.value,a.value)}</b>`];!K&&t.fromTop&&re.push(`${j.toFixed(1)}% of top`),!K&&t.fromPrev&&re.push(`${Q.toFixed(1)}% from previous`),i.value&&(t.series??[]).forEach(P=>{const U=P.data[F]??0;U>0&&re.push(`<span style="opacity:.7">${P.name}:</span> ${$t(U,a.value)}`)});const O=i.value?(t.series??[]).map((P,U)=>({name:P.name,color:s.value[U].color,value:$t(P.data[F]??0,a.value),raw:P.data[F]??0})).filter(P=>P.raw>0):[{name:A.label,color:B,value:$t(A.value,a.value),raw:A.value}];return{label:A.label,value:A.value,display:$t(A.value,a.value),frac:A.value/N,fromTop:j,fromPrev:Q,isFirst:K,color:B,rows:O,tip:`<div style="text-align:center">${A.label}<br>${re.join("<br>")}</div>`,barFill:t.gradient?`linear-gradient(90deg, color-mix(in srgb, ${B} 82%, black), ${B})`:B}})}),d=(0,n.computed)(()=>t.orientation==="horizontal"),f=(0,n.computed)(()=>u.value.length*t.bandHeight),m=(0,n.computed)(()=>d.value?f.value:ol),p=(0,n.computed)(()=>d.value?ol:f.value);function h(N,A){const F=ol/2+A;return d.value?`${N} ${F}`:`${F} ${N}`}function y(N){return(ol/2-oC)*N*o.value+.4}function b(N,A,F,V,B,j){const Q=(N+A)/2;return`M ${h(N,F)} L ${h(N,V)} C ${h(Q,V)} ${h(Q,j)} ${h(A,j)} L ${h(A,B)} C ${h(Q,B)} ${h(Q,F)} ${h(N,F)} Z`}const g=(0,n.computed)(()=>{const N=t.bandHeight;return u.value.map((A,F)=>{const V=u.value[F+1]??A,B=F*N,j=(F+1)*N,Q=y(A.frac),K=y(V.frac);return{...A,path:b(B,j,-Q,Q,-K,K),gradId:`${l}-${F}`}})}),v=(0,n.computed)(()=>{if(!i.value)return[];const N=t.bandHeight,A=t.series??[],F=[];return u.value.forEach((V,B)=>{const j=B===u.value.length-1,Q=u.value[B+1]??V,K=B*N,re=(B+1)*N,O=V.value||1,P=Q.value||1,U=-y(V.frac),T=y(V.frac)*2,z=-y(Q.frac),W=y(Q.frac)*2;let Y=0,ne=0;A.forEach((ve,X)=>{const se=(ve.data[B]??0)/O,ie=j?se:(ve.data[B+1]??0)/P,ue=U+Y*T,we=U+(Y+se)*T,ce=z+ne*W,ke=z+(ne+ie)*W;Y+=se,ne+=ie,F.push({path:b(K,re,ue,we,ce,ke),color:s.value[X].color,key:`${B}-${X}`})})}),F}),_=(0,n.ref)(null),w=(0,n.ref)(0),k=(0,n.ref)(0);function S(N){_.value=N}function E(){_.value=null}function $(N){const A=N.currentTarget.getBoundingClientRect();w.value=N.clientX-A.left,k.value=N.clientY-A.top}const I=(0,n.computed)(()=>_.value==null?null:u.value[_.value]),D=(0,n.computed)(()=>{const N=I.value;if(!N)return[];const A=[];return!N.isFirst&&t.fromPrev&&A.push({label:"From previous",value:`${N.fromPrev.toFixed(1)}%`}),!N.isFirst&&t.fromTop&&A.push({label:"Of top",value:`${N.fromTop.toFixed(1)}%`}),A}),R=(0,n.computed)(()=>{const N=I.value;return N&&i.value?N.display:null}),M=(0,n.computed)(()=>({left:`${w.value}px`,top:`${k.value}px`}));return(N,A)=>{const F=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"el",ref:r,class:(0,n.normalizeClass)(["bgl-funnel w-100p relative",[{"bgl-funnel--bars":!e.flow},e.flow?`bgl-funnel--${e.orientation}`:""]])},[e.flow?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"bgl-funnel__flow relative",onMousemove:$,onMouseleave:E},[((0,n.openBlock)(),(0,n.createElementBlock)("svg",{class:"bgl-funnel__svg display-block",viewBox:`0 0 ${m.value} ${p.value}`,style:(0,n.normalizeStyle)(d.value?{height:`${e.bandHeight*3}px`}:{height:`${p.value}px`}),preserveAspectRatio:"none"},[e.gradient&&!i.value?((0,n.openBlock)(),(0,n.createElementBlock)("defs",WE,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(g.value,(V,B)=>((0,n.openBlock)(),(0,n.createElementBlock)("linearGradient",{id:V.gradId,key:B,x1:0,y1:0,x2:d.value?0:1,y2:d.value?1:0},[(0,n.createElementVNode)("stop",{offset:"0%","stop-color":`color-mix(in srgb, ${V.color} 78%, black)`},null,8,qE),(0,n.createElementVNode)("stop",{offset:"100%","stop-color":V.color},null,8,GE)],8,jE))),128))])):(0,n.createCommentVNode)("",!0),i.value?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:2},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(v.value,V=>((0,n.openBlock)(),(0,n.createElementBlock)("path",{key:V.key,d:V.path,fill:V.color,class:"bgl-funnel__sub"},null,8,XE))),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(g.value,(V,B)=>((0,n.openBlock)(),(0,n.createElementBlock)("path",{key:`hit${B}`,d:V.path,fill:"transparent",class:"bgl-funnel__hit",onMouseenter:j=>S(B)},null,40,KE))),128))],64)):((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:1},(0,n.renderList)(g.value,(V,B)=>((0,n.openBlock)(),(0,n.createElementBlock)("path",{key:B,d:V.path,fill:e.gradient?`url(#${V.gradId})`:V.color,class:(0,n.normalizeClass)(["bgl-funnel__seg",{"is-dim opacity-5":_.value!=null&&_.value!==B}]),onMouseenter:j=>S(B)},null,42,YE))),128))],12,HE)),I.value?((0,n.openBlock)(),(0,n.createBlock)(ki,{key:0,above:"",style:(0,n.normalizeStyle)(M.value),label:I.value.label,hero:i.value?void 0:I.value.display,rows:i.value?I.value.rows:[],total:i.value?R.value:null,stats:D.value},null,8,["style","label","hero","rows","total","stats"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",JE,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(g.value,(V,B)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:B,class:"bgl-funnel__tick",style:(0,n.normalizeStyle)(d.value?{flex:"1 1 0"}:{height:`${e.bandHeight}px`})},[(0,n.createElementVNode)("span",{class:"bgl-funnel__name ellipsis-1 txt14",title:V.label},(0,n.toDisplayString)(V.label),9,ZE),(0,n.createElementVNode)("span",QE,(0,n.toDisplayString)(V.display),1)],4))),128))])],32)):(0,n.createCommentVNode)("",!0),e.flow&&i.value?((0,n.openBlock)(),(0,n.createElementBlock)("ul",eC,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(s.value,(V,B)=>((0,n.openBlock)(),(0,n.createElementBlock)("li",{key:B,class:"flex align-items-center"},[(0,n.createElementVNode)("span",{class:"bgl-funnel__dot",style:(0,n.normalizeStyle)({background:V.color})},null,4),(0,n.createTextVNode)((0,n.toDisplayString)(V.name),1)]))),128))])):(0,n.createCommentVNode)("",!0),e.flow?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:2},(0,n.renderList)(u.value,(V,B)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:B,class:"bgl-funnel__stage"},[(0,n.createElementVNode)("span",{class:"bgl-funnel__name txt-0875rem ellipsis-1",title:V.label},(0,n.toDisplayString)(V.label),9,tC),(0,n.createElementVNode)("div",nC,[(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"bgl-funnel__bar flex flex-center",style:(0,n.normalizeStyle)({width:`${Math.max(4,V.fromTop)}%`,background:V.barFill})},[(0,n.createElementVNode)("span",rC,(0,n.toDisplayString)(V.display),1)],4)),[[F,{content:V.tip,html:!0}]])])]))),128))],2)}}}),lC=ge(aC,[["__scopeId","data-v-29102f34"]]),iC=["width","height","viewBox"],sC=["d","stroke","stroke-width"],cC=["d","stroke","stroke-width"],uC={key:0,class:"absolute-fill flex-center column pointer-events-none gap-025"},dC={key:0,class:"semibold txt24 line-height-1"},fC={key:1,class:"color-gray txt12"},mC=(0,n.defineComponent)({name:"BglGauge",__name:"Gauge",props:{value:{},max:{default:100},min:{default:0},size:{default:160},thickness:{default:12},color:{},label:{},full:{type:Boolean},showValue:{type:Boolean,default:!0},prefix:{},suffix:{},animated:{type:Boolean,default:!0}},setup(e){const t=e,r=(0,n.ref)(),{progress:o}=Yr({el:r,enabled:t.animated,duration:900}),a=(0,n.computed)(()=>Et(t.color)),l=(0,n.computed)(()=>(t.size-t.thickness)/2),i=(0,n.computed)(()=>t.size/2),s=(0,n.computed)(()=>t.full?360:270),c=(0,n.computed)(()=>t.full?-90:135),u=(0,n.computed)(()=>{const y=t.max-t.min||1;return Math.min(1,Math.max(0,(t.value-t.min)/y))});function d(y){const b=y*Math.PI/180;return{x:i.value+l.value*Math.cos(b),y:i.value+l.value*Math.sin(b)}}function f(y){const b=s.value*y;if(b<=0)return"";const g=c.value,v=c.value+b,_=d(g),w=d(v),k=b>180?1:0;return`M ${_.x} ${_.y} A ${l.value} ${l.value} 0 ${k} 1 ${w.x} ${w.y}`}const m=(0,n.computed)(()=>f(1)),p=(0,n.computed)(()=>f(u.value*o.value)),h=(0,n.computed)(()=>$t(t.value,{prefix:t.prefix,suffix:t.suffix}));return(y,b)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"el",ref:r,class:"bgl-gauge relative inline-block",style:(0,n.normalizeStyle)({width:`${e.size}px`,height:`${e.size}px`})},[((0,n.openBlock)(),(0,n.createElementBlock)("svg",{width:e.size,height:e.size,viewBox:`0 0 ${e.size} ${e.size}`,class:"display-block"},[(0,n.createElementVNode)("path",{d:m.value,stroke:(0,n.unref)(gi)(a.value,14),"stroke-width":e.thickness,fill:"none","stroke-linecap":"round"},null,8,sC),(0,n.createElementVNode)("path",{d:p.value,stroke:a.value,"stroke-width":e.thickness,fill:"none","stroke-linecap":"round"},null,8,cC)],8,iC)),e.showValue||e.label?((0,n.openBlock)(),(0,n.createElementBlock)("div",uC,[e.showValue?((0,n.openBlock)(),(0,n.createElementBlock)("span",dC,(0,n.toDisplayString)(h.value),1)):(0,n.createCommentVNode)("",!0),e.label?((0,n.openBlock)(),(0,n.createElementBlock)("span",fC,(0,n.toDisplayString)(e.label),1)):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0)],4))}}),pC=ge(mC,[["__scopeId","data-v-3400bb99"]]),hC=["width","height","viewBox"],gC=["d","stroke","stroke-width"],vC=["d","stroke","stroke-width","stroke-dasharray","transform"],yC={key:0,class:"bgl-radial__legend grid gap-05 m-0 min-w-0"},bC={class:"bgl-radial__val semibold tabular-nums ms-auto"},_C=(0,n.defineComponent)({__name:"RadialBars",props:{data:{},max:{default:100},size:{default:180},thickness:{default:14},gap:{default:6},legend:{type:Boolean,default:!0},suffix:{default:"%"},animated:{type:Boolean,default:!0}},setup(e){const t=e,r=(0,n.ref)(),{progress:o}=Yr({el:r,enabled:t.animated,duration:900}),a=(0,n.computed)(()=>t.size/2);function l(s){const c=a.value;return`M ${c} ${c-s} A ${s} ${s} 0 1 1 ${c-.001} ${c-s} Z`}const i=(0,n.computed)(()=>t.data.map((s,c)=>{const u=a.value-t.thickness/2-c*(t.thickness+t.gap),d=s.max??t.max,f=Math.min(1,Math.max(0,s.value/(d||1))),m=2*Math.PI*u;return{path:l(u),color:Et(s.color,c),label:s.label,display:`${s.value}${t.suffix}`,circ:m,filled:m*f*o.value}}));return(s,c)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"el",ref:r,class:(0,n.normalizeClass)(["bgl-radial inline-flex gap-1",e.legend?"row":"column"])},[((0,n.openBlock)(),(0,n.createElementBlock)("svg",{width:e.size,height:e.size,viewBox:`0 0 ${e.size} ${e.size}`,class:"bgl-radial__svg flex-shrink-0"},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(i.value,(u,d)=>((0,n.openBlock)(),(0,n.createElementBlock)("g",{key:d},[(0,n.createElementVNode)("path",{d:u.path,stroke:(0,n.unref)(gi)(u.color,14),"stroke-width":e.thickness,fill:"none","stroke-linecap":"round"},null,8,gC),(0,n.createElementVNode)("path",{d:u.path,stroke:u.color,"stroke-width":e.thickness,fill:"none","stroke-linecap":"round","stroke-dasharray":`${u.filled} ${u.circ}`,transform:`rotate(-90 ${a.value} ${a.value})`},null,8,vC)]))),128))],8,hC)),e.legend?((0,n.openBlock)(),(0,n.createElementBlock)("ul",yC,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(i.value,(u,d)=>((0,n.openBlock)(),(0,n.createElementBlock)("li",{key:d,class:"flex align-items-center gap-05 txt13"},[(0,n.createElementVNode)("span",{class:"bgl-radial__dot flex-shrink-0",style:(0,n.normalizeStyle)({background:u.color})},null,4),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(u.label),1),(0,n.createElementVNode)("span",bC,(0,n.toDisplayString)(u.display),1)]))),128))])):(0,n.createCommentVNode)("",!0)],2))}}),wC=ge(_C,[["__scopeId","data-v-74f89de2"]]),kC={class:"bgl-rank grid w-100p gap-05"},$C=["title"],EC={class:"bgl-rank__track overflow-hidden round"},CC={class:"txt13 tabular-nums semibold"},SC=(0,n.defineComponent)({__name:"RankBars",props:{data:{},color:{default:"primary"},mode:{default:"shades"},maxRows:{},sort:{type:Boolean,default:!0},currency:{},prefix:{},suffix:{}},setup(e){const t=e,r=(0,n.computed)(()=>({currency:t.currency,prefix:t.prefix,suffix:t.suffix})),o=(0,n.computed)(()=>{let a=[...t.data];t.sort&&a.sort((i,s)=>s.value-i.value),t.maxRows&&(a=a.slice(0,t.maxRows));const l=Math.max(1,...a.map(i=>i.value));return a.map((i,s)=>({label:i.label,value:i.value,display:$t(i.value,r.value),pct:i.value/l*100,color:i.color?Et(i.color):t.mode==="multi"?Et(void 0,s):su(t.color,a.length,s)}))});return(a,l)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",kC,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(o.value,(i,s)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:s,class:"bgl-rank__row align-items-center grid gap-075"},[(0,n.createElementVNode)("span",{class:"bgl-rank__label ellipsis-1 txt14",title:i.label},(0,n.toDisplayString)(i.label),9,$C),(0,n.createElementVNode)("span",EC,[(0,n.createElementVNode)("span",{class:"bgl-rank__bar display-block round",style:(0,n.normalizeStyle)({width:`${i.pct}%`,background:i.color})},null,4)]),(0,n.createElementVNode)("span",CC,(0,n.toDisplayString)(i.display),1)]))),128))]))}}),xC=ge(SC,[["__scopeId","data-v-3602f07a"]]),TC={key:0,class:"card_label block label"},NC={key:1,class:"card_header flex space-between align-items-center w-100p"},BC={key:0,class:"card_header_start flex align-items-center gap-05"},DC={class:"card_header_main flex-grow w-100p"},AC={class:"card_header_title"},MC={key:1,class:"card_header_action flex align-items-center gap-05"},LC={key:2,class:"card_footer flex space-between align-items-center"},PC={key:0,class:"card_footer_start flex align-items-center gap-05"},IC={class:"card_footer_main flex-grow"},VC={key:1,class:"card_footer_end flex align-items-center gap-05"},OC=(0,n.defineComponent)({name:"BglCard",__name:"Card",props:{label:{},title:{},thin:{type:Boolean},outline:{type:Boolean},h100:{type:Boolean},to:{},href:{},overflowX:{type:Boolean},overflowY:{type:Boolean},frame:{type:Boolean},color:{},gradient:{type:[Boolean,String]},gradientDir:{},bg:{}},setup(e){const t=(0,n.useSlots)(),r=e,{isGradient:o,gradientStyle:a}=zi({gradient:()=>r.gradient,gradientDir:()=>r.gradientDir,color:()=>r.color}),l=(0,n.computed)(()=>o.value?`pair-${r.color||"primary"}`:void 0),i=(0,n.computed)(()=>{const d={};return r.href!==void 0&&r.href!==""?d.href=r.href:r.to!==void 0&&r.to!==""&&(d.to=r.to),d}),s=(0,n.computed)(()=>r.href!==void 0&&r.href!==""?"a":r.to!==void 0&&r.to!==""?"router-link":"div"),c=(0,n.computed)(()=>!!(r.title||t.header||t["header-action"]||t["top-start"]||t["top-end"])),u=(0,n.computed)(()=>!!(t.footer||t["bottom-start"]||t["bottom-end"]));return(d,f)=>{const m=(0,n.resolveDirective)("ripple");return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(s.value),(0,n.mergeProps)(i.value,{class:["bgl_card",[{thin:e.thin,"border bg-transparent":e.outline,"h-100":e.h100,[e.bg||""]:e.bg,"overflow-x":e.overflowX,"overflow-y":e.overflowY,card_frame:e.frame,gradient:(0,n.unref)(o)},l.value]],style:(0,n.unref)(a)}),{default:(0,n.withCtx)(()=>[e.label?((0,n.openBlock)(),(0,n.createElementBlock)("span",TC,(0,n.toDisplayString)(e.label),1)):(0,n.createCommentVNode)("",!0),c.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",NC,[d.$slots["top-start"]?((0,n.openBlock)(),(0,n.createElementBlock)("span",BC,[(0,n.renderSlot)(d.$slots,"top-start")])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",DC,[(0,n.renderSlot)(d.$slots,"header",{},()=>[(0,n.createElementVNode)("span",AC,(0,n.toDisplayString)(e.title),1)])]),d.$slots["top-end"]||d.$slots["header-action"]?((0,n.openBlock)(),(0,n.createElementBlock)("span",MC,[(0,n.renderSlot)(d.$slots,"top-end",{},()=>[(0,n.renderSlot)(d.$slots,"header-action")])])):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(d.$slots,"default"),u.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",LC,[d.$slots["bottom-start"]?((0,n.openBlock)(),(0,n.createElementBlock)("span",PC,[(0,n.renderSlot)(d.$slots,"bottom-start")])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",IC,[(0,n.renderSlot)(d.$slots,"footer")]),d.$slots["bottom-end"]?((0,n.openBlock)(),(0,n.createElementBlock)("span",VC,[(0,n.renderSlot)(d.$slots,"bottom-end")])):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0)]),_:3},16,["class","style"])),[[m,!!e.to]])}}}),sr=OC;const dc=["trash-can","message","file-lines","calendar-days","hand-point-right","face-smile-beam","face-grin-stars","address-book","comments","paste","face-grin-tongue-squint","face-flushed","square-caret-right","square-minus","compass","square-caret-down","face-kiss-beam","lightbulb","flag","square-check","circle-dot","face-dizzy","futbol","pen-to-square","hourglass-half","eye-slash","hand","hand-spock","face-kiss","face-grin-tongue","chess-bishop","face-grin-wink","face-grin-wide","face-frown-open","hand-point-up","bookmark","hand-point-down","folder","user","square-caret-left","star","chess-knight","face-laugh-squint","face-laugh","folder-open","clipboard","chess-queen","hand-back-fist","square-caret-up","chart-bar","window-restore","square-plus","image","folder-closed","lemon","handshake","gem","circle-play","circle-check","circle-stop","id-badge","face-laugh-beam","registered","address-card","face-tired","font-awesome","face-smile-wink","file-word","file-powerpoint","envelope-open","file-zipper","square","snowflake","newspaper","face-kiss-wink-heart","star-half-stroke","file-excel","face-grin-beam","object-ungroup","circle-right","face-rolling-eyes","object-group","heart","face-surprise","circle-pause","circle","circle-up","file-audio","file-image","circle-question","face-meh-blank","eye","face-sad-cry","file-code","window-maximize","face-frown","floppy-disk","comment-dots","face-grin-squint","hand-pointer","hand-scissors","face-grin-tears","calendar-xmark","file-video","file-pdf","comment","envelope","hourglass","calendar-check","hard-drive","face-grin-squint-tears","rectangle-list","calendar-plus","circle-left","money-bill-1","clock","keyboard","closed-captioning","images","face-grin","face-meh","id-card","sun","face-laugh-wink","circle-down","thumbs-down","chess-pawn","credit-card","bell","file","hospital","chess-rook","star-half","chess-king","circle-user","copy","share-from-square","copyright","map","bell-slash","hand-lizard","face-smile","hand-peace","face-grin-hearts","building","face-grin-beam-sweat","moon","calendar","face-grin-tongue-wink","clone","face-angry","rectangle-xmark","paper-plane","life-ring","face-grimace","calendar-minus","circle-xmark","thumbs-up","window-minimize","square-full","note-sticky","face-sad-tear","hand-point-left"],$l=["monero","hooli","yelp","cc-visa","lastfm","shopware","creative-commons-nc","aws","redhat","yoast","cloudflare","ups","pixiv","wpexplorer","dyalog","bity","stackpath","buysellads","first-order","modx","guilded","vnv","square-js","microsoft","qq","orcid","java","invision","creative-commons-pd-alt","centercode","glide-g","drupal","jxl","dart-lang","hire-a-helper","creative-commons-by","unity","whmcs","rocketchat","vk","untappd","mailchimp","css3-alt","square-reddit","vimeo-v","contao","square-font-awesome","deskpro","brave","sistrix","square-instagram","battle-net","the-red-yeti","square-hacker-news","edge","threads","napster","square-snapchat","google-plus-g","artstation","markdown","sourcetree","google-plus","diaspora","foursquare","stack-overflow","github-alt","phoenix-squadron","pagelines","algolia","red-river","creative-commons-sa","safari","google","square-font-awesome-stroke","atlassian","linkedin-in","digital-ocean","nimblr","chromecast","evernote","hacker-news","creative-commons-sampling","adversal","creative-commons","watchman-monitoring","fonticons","weixin","shirtsinbulk","codepen","git-alt","lyft","rev","windows","wizards-of-the-coast","square-viadeo","meetup","centos","adn","cloudsmith","opensuse","pied-piper-alt","square-dribbble","codiepie","node","mix","steam","cc-apple-pay","scribd","debian","openid","instalod","files-pinwheel","expeditedssl","sellcast","square-twitter","r-project","delicious","freebsd","vuejs","accusoft","ioxhost","fonticons-fi","app-store","cc-mastercard","itunes-note","golang","kickstarter","grav","weibo","uncharted","firstdraft","square-youtube","wikipedia-w","wpressr","angellist","galactic-republic","nfc-directional","skype","joget","fedora","stripe-s","meta","laravel","hotjar","bluetooth-b","square-letterboxd","sticker-mule","creative-commons-zero","hips","css","behance","reddit","discord","chrome","app-store-ios","cc-discover","wpbeginner","confluence","shoelace","mdb","dochub","accessible-icon","ebay","amazon","unsplash","yarn","square-steam","500px","square-vimeo","asymmetrik","font-awesome","gratipay","apple","hive","gitkraken","keybase","apple-pay","padlet","amazon-pay","square-github","stumbleupon","fedex","phoenix-framework","shopify","neos","square-threads","hackerrank","researchgate","swift","angular","speakap","angrycreative","y-combinator","empire","envira","google-scholar","square-gitlab","studiovinari","pied-piper","wordpress","product-hunt","firefox","linode","goodreads","square-odnoklassniki","jsfiddle","sith","themeisle","page4","hashnode","react","cc-paypal","squarespace","cc-stripe","creative-commons-share","bitcoin","keycdn","opera","itch-io","umbraco","galactic-senate","ubuntu","draft2digital","stripe","houzz","gg","dhl","square-pinterest","xing","blackberry","creative-commons-pd","playstation","quinscape","less","blogger-b","opencart","vine","signal-messenger","paypal","gitlab","typo3","reddit-alien","yahoo","dailymotion","affiliatetheme","pied-piper-pp","bootstrap","odnoklassniki","nfc-symbol","mintbit","ethereum","speaker-deck","creative-commons-nc-eu","patreon","avianex","ello","gofore","bimobject","brave-reverse","facebook-f","square-google-plus","web-awesome","mandalorian","first-order-alt","osi","google-wallet","d-and-d-beyond","periscope","fulcrum","cloudscale","forumbee","mizuni","schlix","square-xing","bandcamp","wpforms","cloudversify","usps","megaport","magento","spotify","optin-monster","fly","square-bluesky","aviato","itunes","cuttlefish","blogger","flickr","viber","soundcloud","digg","tencent-weibo","letterboxd","symfony","maxcdn","etsy","facebook-messenger","audible","think-peaks","bilibili","erlang","x-twitter","cotton-bureau","dashcube","42-group","stack-exchange","elementor","square-pied-piper","creative-commons-nd","palfed","superpowers","resolving","xbox","square-web-awesome-stroke","searchengin","tiktok","square-facebook","renren","linux","glide","linkedin","hubspot","deploydog","twitch","flutter","ravelry","mixer","square-lastfm","vimeo","mendeley","uniregistry","figma","creative-commons-remix","cc-amazon-pay","dropbox","instagram","cmplid","upwork","facebook","gripfire","jedi-order","uikit","fort-awesome-alt","phabricator","ussunnah","earlybirds","trade-federation","autoprefixer","whatsapp","square-upwork","slideshare","google-play","viadeo","line","google-drive","servicestack","simplybuilt","bitbucket","imdb","deezer","raspberry-pi","jira","docker","screenpal","bluetooth","gitter","d-and-d","microblog","cc-diners-club","gg-circle","pied-piper-hat","kickstarter-k","yandex","readme","html5","sellsy","square-web-awesome","sass","wirsindhandwerk","buromobelexperte","salesforce","octopus-deploy","medapps","ns8","pinterest-p","apper","fort-awesome","waze","bluesky","cc-jcb","snapchat","fantasy-flight-games","rust","wix","square-behance","supple","webflow","rebel","css3","staylinked","kaggle","space-awesome","deviantart","cpanel","goodreads-g","square-git","square-tumblr","trello","creative-commons-nc-jp","get-pocket","perbyte","grunt","weebly","connectdevelop","leanpub","black-tie","themeco","python","android","bots","free-code-camp","hornbill","js","ideal","git","dev","sketch","yandex-international","cc-amex","uber","github","php","alipay","youtube","skyatlas","firefox-browser","replyd","suse","jenkins","twitter","rockrms","pinterest","buffer","npm","yammer","btc","dribbble","stumbleupon-circle","internet-explorer","stubber","telegram","old-republic","odysee","square-whatsapp","node-js","edge-legacy","slack","medrt","usb","tumblr","vaadin","quora","square-x-twitter","reacteurope","medium","amilia","mixcloud","flipboard","viacoin","critical-role","sitrox","discourse","joomla","mastodon","airbnb","wolf-pack-battalion","buy-n-large","gulp","creative-commons-sampling-plus","strava","ember","canadian-maple-leaf","teamspeak","pushed","wordpress-simple","nutritionix","wodu","google-pay","intercom","zhihu","korvue","pix","steam-symbol"],Uh=["10k","10mp","11mp","123","12mp","13mp","14mp","15mp","16mp","17mp","18_up_rating","18mp","19mp","1k","1k_plus","1x_mobiledata","1x_mobiledata_badge","20mp","21mp","22mp","23mp","24fps_select","24mp","2d","2k","2k_plus","2mp","30fps","30fps_select","360","3d_rotation","3g_mobiledata","3g_mobiledata_badge","3k","3k_plus","3mp","3p","4g_mobiledata","4g_mobiledata_badge","4g_plus_mobiledata","4k","4k_plus","4mp","50mp","5g","5g_mobiledata_badge","5k","5k_plus","5mp","60fps","60fps_select","6_ft_apart","6k","6k_plus","6mp","7k","7k_plus","7mp","8k","8k_plus","8mp","9k","9k_plus","9mp","abc","ac_unit","access_alarm","access_alarms","access_time","access_time_filled","accessibility","accessibility_new","accessible","accessible_forward","account_balance","account_balance_wallet","account_box","account_child","account_child_invert","account_circle","account_circle_off","account_tree","action_key","activity_zone","acute","ad","ad_group","ad_group_off","ad_off","ad_units","adaptive_audio_mic","adaptive_audio_mic_off","adb","add","add_2","add_a_photo","add_ad","add_alarm","add_alert","add_box","add_business","add_call","add_card","add_chart","add_circle","add_circle_outline","add_column_left","add_column_right","add_comment","add_diamond","add_home","add_home_work","add_ic_call","add_link","add_location","add_location_alt","add_moderator","add_notes","add_photo_alternate","add_reaction","add_road","add_row_above","add_row_below","add_shopping_cart","add_task","add_to_drive","add_to_home_screen","add_to_photos","add_to_queue","add_triangle","addchart","adf_scanner","adjust","admin_meds","admin_panel_settings","ads_click","agender","agriculture","air","air_freshener","air_purifier","air_purifier_gen","airline_seat_flat","airline_seat_flat_angled","airline_seat_individual_suite","airline_seat_legroom_extra","airline_seat_legroom_normal","airline_seat_legroom_reduced","airline_seat_recline_extra","airline_seat_recline_normal","airline_stops","airlines","airplane_ticket","airplanemode_active","airplanemode_inactive","airplay","airport_shuttle","airware","airwave","alarm","alarm_add","alarm_off","alarm_on","alarm_smart_wake","album","align_center","align_end","align_flex_center","align_flex_end","align_flex_start","align_horizontal_center","align_horizontal_left","align_horizontal_right","align_items_stretch","align_justify_center","align_justify_flex_end","align_justify_flex_start","align_justify_space_around","align_justify_space_between","align_justify_space_even","align_justify_stretch","align_self_stretch","align_space_around","align_space_between","align_space_even","align_start","align_stretch","align_vertical_bottom","align_vertical_center","align_vertical_top","all_inbox","all_inclusive","all_match","all_out","allergies","allergy","alt_route","alternate_email","altitude","ambulance","amend","amp_stories","analytics","anchor","android","animated_images","animation","announcement","aod","aod_tablet","aod_watch","apartment","api","apk_document","apk_install","app_badging","app_blocking","app_promo","app_registration","app_settings_alt","app_shortcut","apparel","approval","approval_delegation","apps","apps_outage","aq","aq_indoor","ar_on_you","ar_stickers","architecture","archive","area_chart","arming_countdown","arrow_and_edge","arrow_back","arrow_back_2","arrow_back_ios","arrow_back_ios_new","arrow_circle_down","arrow_circle_left","arrow_circle_right","arrow_circle_up","arrow_cool_down","arrow_downward","arrow_downward_alt","arrow_drop_down","arrow_drop_down_circle","arrow_drop_up","arrow_forward","arrow_forward_ios","arrow_insert","arrow_left","arrow_left_alt","arrow_menu_close","arrow_menu_open","arrow_or_edge","arrow_outward","arrow_range","arrow_right","arrow_right_alt","arrow_selector_tool","arrow_split","arrow_top_left","arrow_top_right","arrow_upload_progress","arrow_upload_ready","arrow_upward","arrow_upward_alt","arrow_warm_up","arrows_input","arrows_more_down","arrows_more_up","arrows_output","arrows_outward","art_track","article","article_shortcut","artist","aspect_ratio","assessment","assignment","assignment_add","assignment_ind","assignment_late","assignment_return","assignment_returned","assignment_turned_in","assist_walker","assistant","assistant_device","assistant_direction","assistant_navigation","assistant_on_hub","assistant_photo","assured_workload","asterisk","atm","atr","attach_email","attach_file","attach_file_add","attach_file_off","attach_money","attachment","attractions","attribution","audio_description","audio_file","audio_video_receiver","audiotrack","auto_awesome","auto_awesome_mosaic","auto_awesome_motion","auto_delete","auto_fix_high","auto_fix_normal","auto_fix_off","auto_graph","auto_mode","auto_read_pause","auto_read_play","auto_stories","auto_towing","auto_transmission","autofps_select","automation","autopause","autoplay","autorenew","autostop","av1","av_timer","avc","avg_pace","avg_time","award_star","azm","baby_changing_station","back_hand","back_to_tab","background_dot_large","background_dot_small","background_grid_small","background_replace","backlight_high","backlight_high_off","backlight_low","backpack","backspace","backup","backup_table","badge","badge_critical_battery","bakery_dining","balance","balcony","ballot","bar_chart","bar_chart_4_bars","bar_chart_off","barcode","barcode_reader","barcode_scanner","barefoot","batch_prediction","bath_outdoor","bath_private","bath_public_large","bathroom","bathtub","battery_0_bar","battery_1_bar","battery_20","battery_2_bar","battery_30","battery_3_bar","battery_4_bar","battery_50","battery_5_bar","battery_60","battery_6_bar","battery_80","battery_90","battery_alert","battery_change","battery_charging_20","battery_charging_30","battery_charging_50","battery_charging_60","battery_charging_80","battery_charging_90","battery_charging_full","battery_error","battery_full","battery_full_alt","battery_horiz_000","battery_horiz_050","battery_horiz_075","battery_low","battery_plus","battery_profile","battery_saver","battery_share","battery_status_good","battery_std","battery_unknown","battery_very_low","beach_access","bed","bedroom_baby","bedroom_child","bedroom_parent","bedtime","bedtime_off","beenhere","bento","bia","bid_landscape","bid_landscape_disabled","bigtop_updates","bike_dock","bike_lane","bike_scooter","biotech","blanket","blender","blind","blinds","blinds_closed","block","block_flipped","blood_pressure","bloodtype","bluetooth","bluetooth_audio","bluetooth_connected","bluetooth_disabled","bluetooth_drive","bluetooth_searching","blur_circular","blur_linear","blur_medium","blur_off","blur_on","blur_short","body_fat","body_system","bolt","bomb","book","book_2","book_3","book_4","book_4_spark","book_5","book_6","book_online","book_ribbon","bookmark","bookmark_add","bookmark_added","bookmark_bag","bookmark_border","bookmark_check","bookmark_flag","bookmark_heart","bookmark_manager","bookmark_remove","bookmark_star","bookmarks","books_movies_and_music","border_all","border_bottom","border_clear","border_color","border_horizontal","border_inner","border_left","border_outer","border_right","border_style","border_top","border_vertical","borg","bottom_app_bar","bottom_drawer","bottom_navigation","bottom_panel_close","bottom_panel_open","bottom_right_click","bottom_sheets","box","box_add","box_edit","boy","brand_awareness","brand_family","branding_watermark","breakfast_dining","breaking_news","breaking_news_alt_1","breastfeeding","brick","brightness_1","brightness_2","brightness_3","brightness_4","brightness_5","brightness_6","brightness_7","brightness_alert","brightness_auto","brightness_empty","brightness_high","brightness_low","brightness_medium","bring_your_own_ip","broadcast_on_home","broadcast_on_personal","broken_image","browse","browse_activity","browse_gallery","browser_not_supported","browser_updated","brunch_dining","brush","bubble","bubble_chart","bubbles","bug_report","build","build_circle","bungalow","burst_mode","bus_alert","business","business_center","business_chip","business_messages","buttons_alt","cabin","cable","cable_car","cached","cadence","cake","cake_add","calculate","calendar_add_on","calendar_apps_script","calendar_clock","calendar_month","calendar_today","calendar_view_day","calendar_view_month","calendar_view_week","call","call_end","call_log","call_made","call_merge","call_missed","call_missed_outgoing","call_quality","call_received","call_split","call_to_action","camera","camera_alt","camera_enhance","camera_front","camera_indoor","camera_outdoor","camera_rear","camera_roll","camera_video","cameraswitch","campaign","camping","cancel","cancel_presentation","cancel_schedule_send","candle","candlestick_chart","captive_portal","capture","car_crash","car_rental","car_repair","car_tag","card_giftcard","card_membership","card_travel","cardio_load","cardiology","cards","cards_star","carpenter","carry_on_bag","carry_on_bag_checked","carry_on_bag_inactive","carry_on_bag_question","cases","casino","cast","cast_connected","cast_for_education","cast_pause","cast_warning","castle","catching_pokemon","category","category_search","celebration","cell_merge","cell_tower","cell_wifi","center_focus_strong","center_focus_weak","chair","chair_alt","chalet","change_circle","change_history","charger","charging_station","chart_data","chat","chat_add_on","chat_apps_script","chat_bubble","chat_bubble_outline","chat_error","chat_info","chat_paste_go","chat_paste_go_2","check","check_box","check_box_outline_blank","check_circle","check_circle_outline","check_in_out","check_indeterminate_small","check_small","checkbook","checked_bag","checked_bag_question","checklist","checklist_rtl","checkroom","cheer","chess","chess_pawn","chevron_backward","chevron_forward","chevron_left","chevron_right","child_care","child_friendly","chip_extraction","chips","chrome_reader_mode","chromecast_2","chromecast_device","chronic","church","cinematic_blur","circle","circle_notifications","circles","circles_ext","clarify","class","clean_hands","cleaning","cleaning_bucket","cleaning_services","clear","clear_all","clear_day","climate_mini_split","clinical_notes","clock_arrow_down","clock_arrow_up","clock_loader_10","clock_loader_20","clock_loader_40","clock_loader_60","clock_loader_80","clock_loader_90","close","close_fullscreen","close_small","closed_caption","closed_caption_add","closed_caption_disabled","closed_caption_off","cloud","cloud_alert","cloud_circle","cloud_done","cloud_download","cloud_lock","cloud_off","cloud_queue","cloud_sync","cloud_upload","cloudy_snowing","co2","co_present","code","code_blocks","code_off","coffee","coffee_maker","cognition","cognition_2","collapse_all","collapse_content","collections","collections_bookmark","color_lens","colorize","colors","combine_columns","comedy_mask","comic_bubble","comment","comment_bank","comments_disabled","commit","communication","communities","commute","compare","compare_arrows","compass_calibration","component_exchange","compost","compress","computer","concierge","conditions","confirmation_number","congenital","connect_without_contact","connected_tv","connecting_airports","construction","contact_emergency","contact_mail","contact_page","contact_phone","contact_support","contactless","contactless_off","contacts","contacts_product","content_copy","content_cut","content_paste","content_paste_go","content_paste_off","content_paste_search","contextual_token","contextual_token_add","contract","contract_delete","contract_edit","contrast","contrast_circle","contrast_rtl_off","contrast_square","control_camera","control_point","control_point_duplicate","controller_gen","conversion_path","conversion_path_off","convert_to_text","conveyor_belt","cookie","cookie_off","cooking","cool_to_dry","copy_all","copyright","coronavirus","corporate_fare","cottage","counter_0","counter_1","counter_2","counter_3","counter_4","counter_5","counter_6","counter_7","counter_8","counter_9","countertops","create","create_new_folder","credit_card","credit_card_clock","credit_card_gear","credit_card_heart","credit_card_off","credit_score","crib","crisis_alert","crop","crop_16_9","crop_3_2","crop_5_4","crop_7_5","crop_9_16","crop_din","crop_free","crop_landscape","crop_original","crop_portrait","crop_rotate","crop_square","crossword","crowdsource","cruelty_free","css","csv","currency_bitcoin","currency_exchange","currency_franc","currency_lira","currency_pound","currency_ruble","currency_rupee","currency_rupee_circle","currency_yen","currency_yuan","curtains","curtains_closed","custom_typography","cycle","cyclone","dangerous","dark_mode","dashboard","dashboard_2","dashboard_customize","data_alert","data_array","data_check","data_exploration","data_info_alert","data_loss_prevention","data_object","data_saver_off","data_saver_on","data_table","data_thresholding","data_usage","database","database_off","database_search","database_upload","dataset","dataset_linked","date_range","deblur","deceased","decimal_decrease","decimal_increase","deck","dehaze","delete","delete_forever","delete_history","delete_outline","delete_sweep","delivery_dining","delivery_truck_bolt","delivery_truck_speed","demography","density_large","density_medium","density_small","dentistry","departure_board","deployed_code","deployed_code_account","deployed_code_alert","deployed_code_history","deployed_code_update","dermatology","description","deselect","design_services","desk","deskphone","desktop_access_disabled","desktop_cloud","desktop_cloud_stack","desktop_landscape","desktop_landscape_add","desktop_mac","desktop_portrait","desktop_windows","destruction","details","detection_and_zone","detector","detector_alarm","detector_battery","detector_co","detector_offline","detector_smoke","detector_status","developer_board","developer_board_off","developer_guide","developer_mode","developer_mode_tv","device_hub","device_thermostat","device_unknown","devices","devices_fold","devices_fold_2","devices_off","devices_other","devices_wearables","dew_point","diagnosis","diagonal_line","dialer_sip","dialogs","dialpad","diamond","dictionary","difference","digital_out_of_home","digital_wellbeing","dining","dinner_dining","directions","directions_alt","directions_alt_off","directions_bike","directions_boat","directions_boat_filled","directions_bus","directions_bus_filled","directions_car","directions_car_filled","directions_off","directions_railway","directions_railway_2","directions_railway_filled","directions_run","directions_subway","directions_subway_filled","directions_transit","directions_transit_filled","directions_walk","directory_sync","dirty_lens","disabled_by_default","disabled_visible","disc_full","discount","discover_tune","dishwasher","dishwasher_gen","display_external_input","display_settings","distance","diversity_1","diversity_2","diversity_3","diversity_4","dns","do_disturb","do_disturb_alt","do_disturb_off","do_disturb_on","do_not_disturb","do_not_disturb_alt","do_not_disturb_off","do_not_disturb_on","do_not_disturb_on_total_silence","do_not_step","do_not_touch","dock","dock_to_bottom","dock_to_left","dock_to_right","docs","docs_add_on","docs_apps_script","document_scanner","document_search","domain","domain_add","domain_disabled","domain_verification","domain_verification_off","domino_mask","done","done_all","done_outline","donut_large","donut_small","door_back","door_front","door_open","door_sensor","door_sliding","doorbell","doorbell_3p","doorbell_chime","double_arrow","downhill_skiing","download","download_2","download_done","download_for_offline","downloading","draft","draft_orders","drafts","drag_click","drag_handle","drag_indicator","drag_pan","draw","draw_abstract","draw_collage","dresser","drive_eta","drive_export","drive_file_move","drive_file_move_outline","drive_file_move_rtl","drive_file_rename_outline","drive_folder_upload","dropdown","dry","dry_cleaning","dual_screen","duo","dvr","dynamic_feed","dynamic_form","e911_avatar","e911_emergency","e_mobiledata","e_mobiledata_badge","earbuds","earbuds_battery","early_on","earthquake","east","ecg","ecg_heart","eco","eda","edgesensor_high","edgesensor_low","edit","edit_arrow_down","edit_arrow_up","edit_attributes","edit_audio","edit_calendar","edit_document","edit_location","edit_location_alt","edit_note","edit_notifications","edit_off","edit_road","edit_square","editor_choice","egg","egg_alt","eject","elderly","elderly_woman","electric_bike","electric_bolt","electric_car","electric_meter","electric_moped","electric_rickshaw","electric_scooter","electrical_services","elevation","elevator","email","emergency","emergency_heat","emergency_heat_2","emergency_home","emergency_recording","emergency_share","emergency_share_off","emoji_emotions","emoji_events","emoji_food_beverage","emoji_language","emoji_nature","emoji_objects","emoji_people","emoji_symbols","emoji_transportation","emoticon","empty_dashboard","enable","encrypted","encrypted_add","encrypted_add_circle","encrypted_minus_circle","encrypted_off","endocrinology","energy","energy_program_saving","energy_program_time_used","energy_savings_leaf","engineering","enhanced_encryption","ent","enterprise","enterprise_off","equal","equalizer","eraser_size_1","eraser_size_2","eraser_size_3","eraser_size_4","eraser_size_5","error","error_med","error_outline","escalator","escalator_warning","euro","euro_symbol","ev_mobiledata_badge","ev_shadow","ev_shadow_add","ev_shadow_minus","ev_station","event","event_available","event_busy","event_list","event_note","event_repeat","event_seat","event_upcoming","exclamation","exercise","exit_to_app","expand","expand_all","expand_circle_down","expand_circle_right","expand_circle_up","expand_content","expand_less","expand_more","expansion_panels","experiment","explicit","explore","explore_nearby","explore_off","explosion","export_notes","exposure","exposure_neg_1","exposure_neg_2","exposure_plus_1","exposure_plus_2","exposure_zero","extension","extension_off","eye_tracking","eyeglasses","face","face_2","face_3","face_4","face_5","face_6","face_down","face_left","face_nod","face_retouching_natural","face_retouching_off","face_right","face_shake","face_unlock","face_up","fact_check","factory","falling","familiar_face_and_zone","family_history","family_home","family_link","family_restroom","family_star","farsight_digital","fast_forward","fast_rewind","fastfood","faucet","favorite","favorite_border","fax","feature_search","featured_play_list","featured_seasonal_and_gifts","featured_video","feed","feedback","female","femur","femur_alt","fence","fertile","festival","fiber_dvr","fiber_manual_record","fiber_new","fiber_pin","fiber_smart_record","file_copy","file_copy_off","file_download","file_download_done","file_download_off","file_export","file_json","file_map","file_map_stack","file_open","file_png","file_present","file_save","file_save_off","file_upload","file_upload_off","files","filter","filter_1","filter_2","filter_3","filter_4","filter_5","filter_6","filter_7","filter_8","filter_9","filter_9_plus","filter_alt","filter_alt_off","filter_arrow_right","filter_b_and_w","filter_center_focus","filter_drama","filter_frames","filter_hdr","filter_list","filter_list_alt","filter_list_off","filter_none","filter_retrolux","filter_tilt_shift","filter_vintage","finance","finance_chip","finance_mode","find_in_page","find_replace","fingerprint","fingerprint_off","fire_extinguisher","fire_hydrant","fire_hydrant_alt","fire_truck","fireplace","first_page","fit_page","fit_page_height","fit_page_width","fit_screen","fit_width","fitbit","fitness_center","fitness_tracker","flag","flag_2","flag_check","flag_circle","flaky","flare","flash_auto","flash_off","flash_on","flashlight_off","flashlight_on","flatware","flex_direction","flex_no_wrap","flex_wrap","flight","flight_class","flight_land","flight_takeoff","flights_and_hotels","flip","flip_camera_android","flip_camera_ios","flip_to_back","flip_to_front","float_landscape_2","float_portrait_2","flood","floor","floor_lamp","flowchart","flowsheet","fluid","fluid_balance","fluid_med","fluorescent","flutter","flutter_dash","flyover","fmd_bad","fmd_good","foggy","folded_hands","folder","folder_check","folder_check_2","folder_code","folder_copy","folder_data","folder_delete","folder_eye","folder_info","folder_limited","folder_managed","folder_match","folder_off","folder_open","folder_shared","folder_special","folder_supervised","folder_zip","follow_the_signs","font_download","font_download_off","food_bank","foot_bones","footprint","for_you","forest","fork_left","fork_right","fork_spoon","forklift","format_align_center","format_align_justify","format_align_left","format_align_right","format_bold","format_clear","format_color_fill","format_color_reset","format_color_text","format_h1","format_h2","format_h3","format_h4","format_h5","format_h6","format_image_left","format_image_right","format_indent_decrease","format_indent_increase","format_ink_highlighter","format_italic","format_letter_spacing","format_letter_spacing_2","format_letter_spacing_standard","format_letter_spacing_wide","format_letter_spacing_wider","format_line_spacing","format_list_bulleted","format_list_bulleted_add","format_list_numbered","format_list_numbered_rtl","format_overline","format_paint","format_paragraph","format_quote","format_quote_off","format_shapes","format_size","format_strikethrough","format_text_clip","format_text_overflow","format_text_wrap","format_textdirection_l_to_r","format_textdirection_r_to_l","format_textdirection_vertical","format_underlined","format_underlined_squiggle","forms_add_on","forms_apps_script","fort","forum","forward","forward_10","forward_30","forward_5","forward_circle","forward_media","forward_to_inbox","foundation","frame_inspect","frame_person","frame_person_mic","frame_person_off","frame_reload","frame_source","free_breakfast","free_cancellation","front_hand","front_loader","full_coverage","full_hd","full_stacked_bar_chart","fullscreen","fullscreen_exit","fullscreen_portrait","function","functions","funicular","g_mobiledata","g_mobiledata_badge","g_translate","gallery_thumbnail","gamepad","games","garage","garage_door","garage_home","garden_cart","gas_meter","gastroenterology","gate","gavel","general_device","generating_tokens","genetics","genres","gesture","gesture_select","get_app","gif","gif_2","gif_box","girl","gite","glass_cup","globe","globe_asia","globe_book","globe_uk","glucose","glyphs","go_to_line","golf_course","gondola_lift","google_home_devices","google_tv_remote","google_wifi","gpp_bad","gpp_good","gpp_maybe","gps_fixed","gps_not_fixed","gps_off","grade","gradient","grading","grain","graph_1","graph_2","graph_3","graph_4","graph_5","graph_6","graphic_eq","grass","grid_3x3","grid_3x3_off","grid_4x4","grid_goldenratio","grid_guides","grid_off","grid_on","grid_view","grocery","group","group_add","group_off","group_remove","group_search","group_work","grouped_bar_chart","groups","groups_2","groups_3","guardian","gynecology","h_mobiledata","h_mobiledata_badge","h_plus_mobiledata","h_plus_mobiledata_badge","hail","hallway","hand_bones","hand_gesture","hand_gesture_off","handheld_controller","handshake","handyman","hangout_video","hangout_video_off","hard_disk","hard_drive","hard_drive_2","hardware","hd","hdr_auto","hdr_auto_select","hdr_enhanced_select","hdr_off","hdr_off_select","hdr_on","hdr_on_select","hdr_plus","hdr_plus_off","hdr_strong","hdr_weak","head_mounted_device","headphones","headphones_battery","headset","headset_mic","headset_off","healing","health_and_beauty","health_and_safety","health_metrics","heap_snapshot_large","heap_snapshot_multiple","heap_snapshot_thumbnail","hearing","hearing_aid","hearing_aid_disabled","hearing_disabled","heart_broken","heart_check","heart_minus","heart_plus","heat","heat_pump","heat_pump_balance","height","helicopter","help","help_center","help_clinic","help_outline","hematology","hevc","hexagon","hide","hide_image","hide_source","high_density","high_quality","high_res","highlight","highlight_alt","highlight_keyboard_focus","highlight_mouse_cursor","highlight_off","highlight_text_cursor","highlighter_size_1","highlighter_size_2","highlighter_size_3","highlighter_size_4","highlighter_size_5","hiking","history","history_2","history_edu","history_off","history_toggle_off","hive","hls","hls_off","holiday_village","home","home_and_garden","home_app_logo","home_filled","home_health","home_improvement_and_tools","home_iot_device","home_max","home_max_dots","home_mini","home_pin","home_repair_service","home_speaker","home_storage","home_work","horizontal_distribute","horizontal_rule","horizontal_split","host","hot_tub","hotel","hotel_class","hourglass","hourglass_arrow_down","hourglass_arrow_up","hourglass_bottom","hourglass_disabled","hourglass_empty","hourglass_full","hourglass_pause","hourglass_top","house","house_siding","house_with_shield","houseboat","household_supplies","hov","how_to_reg","how_to_vote","hr_resting","html","http","https","hub","humerus","humerus_alt","humidity_high","humidity_indoor","humidity_low","humidity_mid","humidity_percentage","hvac","ice_skating","icecream","id_card","identity_aware_proxy","identity_platform","ifl","iframe","iframe_off","image","image_aspect_ratio","image_not_supported","image_search","imagesearch_roller","imagesmode","immunology","import_contacts","import_export","important_devices","in_home_mode","inactive_order","inbox","inbox_customize","inbox_text","incomplete_circle","indeterminate_check_box","indeterminate_question_box","info","info_i","info_outline","infrared","ink_eraser","ink_eraser_off","ink_highlighter","ink_highlighter_move","ink_marker","ink_pen","ink_selection","inpatient","input","input_circle","insert_chart","insert_chart_outlined","insert_comment","insert_drive_file","insert_emoticon","insert_invitation","insert_link","insert_page_break","insert_photo","insert_text","insights","install_desktop","install_mobile","instant_mix","integration_instructions","interactive_space","interests","interpreter_mode","inventory","inventory_2","invert_colors","invert_colors_off","ios","ios_share","iron","iso","jamboard_kiosk","javascript","join","join_full","join_inner","join_left","join_right","joystick","jump_to_element","kayaking","kebab_dining","keep","keep_off","keep_public","kettle","key","key_off","key_vertical","key_visualizer","keyboard","keyboard_alt","keyboard_arrow_down","keyboard_arrow_left","keyboard_arrow_right","keyboard_arrow_up","keyboard_backspace","keyboard_capslock","keyboard_capslock_badge","keyboard_command_key","keyboard_control_key","keyboard_double_arrow_down","keyboard_double_arrow_left","keyboard_double_arrow_right","keyboard_double_arrow_up","keyboard_external_input","keyboard_full","keyboard_hide","keyboard_keys","keyboard_lock","keyboard_lock_off","keyboard_off","keyboard_onscreen","keyboard_option_key","keyboard_previous_language","keyboard_return","keyboard_tab","keyboard_tab_rtl","keyboard_voice","kid_star","king_bed","kitchen","kitesurfing","lab_panel","lab_profile","lab_research","label","label_important","label_important_outline","label_off","labs","lan","landscape","landscape_2","landscape_2_off","landslide","language","language_chinese_array","language_chinese_cangjie","language_chinese_dayi","language_chinese_pinyin","language_chinese_quick","language_chinese_wubi","language_french","language_gb_english","language_international","language_japanese_kana","language_korean_latin","language_pinyin","language_spanish","language_us","language_us_colemak","language_us_dvorak","laps","laptop","laptop_car","laptop_chromebook","laptop_mac","laptop_windows","lasso_select","last_page","launch","laundry","layers","layers_clear","lda","leaderboard","leak_add","leak_remove","left_click","left_panel_close","left_panel_open","legend_toggle","lens","lens_blur","letter_switch","library_add","library_add_check","library_books","library_music","license","lift_to_talk","light","light_group","light_mode","light_off","lightbulb","lightbulb_2","lightbulb_circle","lightbulb_outline","lightning_stand","line_axis","line_curve","line_end","line_end_arrow","line_end_arrow_notch","line_end_circle","line_end_diamond","line_end_square","line_start","line_start_arrow","line_start_arrow_notch","line_start_circle","line_start_diamond","line_start_square","line_style","line_weight","linear_scale","link","link_off","linked_camera","linked_services","liquor","list","list_alt","list_alt_add","list_alt_check","lists","live_help","live_tv","living","local_activity","local_airport","local_atm","local_bar","local_cafe","local_car_wash","local_convenience_store","local_dining","local_drink","local_fire_department","local_florist","local_gas_station","local_grocery_store","local_hospital","local_hotel","local_laundry_service","local_library","local_mall","local_movies","local_offer","local_parking","local_pharmacy","local_phone","local_pizza","local_play","local_police","local_post_office","local_printshop","local_see","local_shipping","local_taxi","location_away","location_chip","location_city","location_disabled","location_home","location_off","location_on","location_pin","location_searching","lock","lock_clock","lock_open","lock_open_right","lock_outline","lock_person","lock_reset","login","logo_dev","logout","looks","looks_3","looks_4","looks_5","looks_6","looks_one","looks_two","loop","loupe","low_density","low_priority","lowercase","loyalty","lte_mobiledata","lte_mobiledata_badge","lte_plus_mobiledata","lte_plus_mobiledata_badge","luggage","lunch_dining","lyrics","macro_auto","macro_off","magnification_large","magnification_small","magnify_docked","magnify_fullscreen","mail","mail_lock","mail_off","mail_outline","male","man","man_2","man_3","man_4","manage_accounts","manage_history","manage_search","manga","manufacturing","map","map_search","maps_home_work","maps_ugc","margin","mark_as_unread","mark_chat_read","mark_chat_unread","mark_email_read","mark_email_unread","mark_unread_chat_alt","markdown","markdown_copy","markdown_paste","markunread","markunread_mailbox","masked_transitions","masked_transitions_add","masks","match_case","match_case_off","match_word","matter","maximize","measuring_tape","media_bluetooth_off","media_bluetooth_on","media_link","media_output","media_output_off","mediation","medical_information","medical_mask","medical_services","medication","medication_liquid","meeting_room","memory","memory_alt","menstrual_health","menu","menu_book","menu_open","merge","merge_type","message","metabolism","metro","mfg_nest_yale_lock","mic","mic_alert","mic_double","mic_external_off","mic_external_on","mic_none","mic_off","microbiology","microwave","microwave_gen","military_tech","mimo","mimo_disconnect","mindfulness","minimize","minor_crash","mintmark","miscellaneous_services","missed_video_call","missing_controller","mist","mitre","mixture_med","mms","mobile_friendly","mobile_off","mobile_screen_share","mobiledata_off","mode","mode_comment","mode_cool","mode_cool_off","mode_dual","mode_edit","mode_edit_outline","mode_fan","mode_fan_off","mode_heat","mode_heat_cool","mode_heat_off","mode_night","mode_of_travel","mode_off_on","mode_standby","model_training","modeling","monetization_on","money","money_bag","money_off","money_off_csred","monitor","monitor_heart","monitor_weight","monitor_weight_gain","monitor_weight_loss","monitoring","monochrome_photos","monorail","mood","mood_bad","mop","moped","more","more_down","more_horiz","more_time","more_up","more_vert","mosque","motion_blur","motion_mode","motion_photos_auto","motion_photos_off","motion_photos_on","motion_photos_pause","motion_photos_paused","motion_play","motion_sensor_active","motion_sensor_alert","motion_sensor_idle","motion_sensor_urgent","motorcycle","mountain_flag","mouse","mouse_lock","mouse_lock_off","move","move_down","move_group","move_item","move_location","move_selection_down","move_selection_left","move_selection_right","move_selection_up","move_to_inbox","move_up","moved_location","movie","movie_creation","movie_edit","movie_filter","movie_info","movie_off","moving","moving_beds","moving_ministry","mp","multicooker","multiline_chart","multimodal_hand_eye","multiple_airports","multiple_stop","museum","music_cast","music_note","music_note_add","music_off","music_video","my_location","mystery","nat","nature","nature_people","navigate_before","navigate_next","navigation","near_me","near_me_disabled","nearby","nearby_error","nearby_off","nephrology","nest_audio","nest_cam_floodlight","nest_cam_indoor","nest_cam_iq","nest_cam_iq_outdoor","nest_cam_magnet_mount","nest_cam_outdoor","nest_cam_stand","nest_cam_wall_mount","nest_cam_wired_stand","nest_clock_farsight_analog","nest_clock_farsight_digital","nest_connect","nest_detect","nest_display","nest_display_max","nest_doorbell_visitor","nest_eco_leaf","nest_farsight_weather","nest_found_savings","nest_gale_wifi","nest_heat_link_e","nest_heat_link_gen_3","nest_hello_doorbell","nest_mini","nest_multi_room","nest_protect","nest_remote","nest_remote_comfort_sensor","nest_secure_alarm","nest_sunblock","nest_tag","nest_thermostat","nest_thermostat_e_eu","nest_thermostat_gen_3","nest_thermostat_sensor","nest_thermostat_sensor_eu","nest_thermostat_zirconium_eu","nest_true_radiant","nest_wake_on_approach","nest_wake_on_press","nest_wifi_point","nest_wifi_pro","nest_wifi_pro_2","nest_wifi_router","network_cell","network_check","network_intel_node","network_intelligence","network_intelligence_history","network_intelligence_update","network_locked","network_manage","network_node","network_ping","network_wifi","network_wifi_1_bar","network_wifi_1_bar_locked","network_wifi_2_bar","network_wifi_2_bar_locked","network_wifi_3_bar","network_wifi_3_bar_locked","network_wifi_locked","neurology","new_label","new_releases","new_window","news","newsmode","newspaper","newsstand","next_plan","next_week","nfc","night_shelter","night_sight_auto","night_sight_auto_off","night_sight_max","nightlife","nightlight","nightlight_round","nights_stay","no_accounts","no_adult_content","no_backpack","no_cell","no_crash","no_drinks","no_encryption","no_encryption_gmailerrorred","no_flash","no_food","no_luggage","no_meals","no_meals_ouline","no_meeting_room","no_photography","no_sim","no_sound","no_stroller","no_transfer","noise_aware","noise_control_off","noise_control_on","nordic_walking","north","north_east","north_west","not_accessible","not_accessible_forward","not_interested","not_listed_location","not_started","note","note_add","note_alt","note_stack","note_stack_add","notes","notification_add","notification_important","notification_multiple","notifications","notifications_active","notifications_none","notifications_off","notifications_paused","notifications_unread","numbers","nutrition","ods","odt","offline_bolt","offline_pin","offline_pin_off","offline_share","oil_barrel","on_device_training","on_hub_device","oncology","ondemand_video","online_prediction","onsen","opacity","open_in_browser","open_in_full","open_in_new","open_in_new_down","open_in_new_off","open_in_phone","open_jam","open_run","open_with","ophthalmology","oral_disease","orbit","order_approve","order_play","orders","orthopedics","other_admission","other_houses","outbound","outbox","outbox_alt","outdoor_garden","outdoor_grill","outgoing_mail","outlet","outlined_flag","outpatient","outpatient_med","output","output_circle","oven","oven_gen","overview","overview_key","owl","oxygen_saturation","p2p","pace","pacemaker","package","package_2","padding","page_control","page_footer","page_header","page_info","pageless","pages","pageview","paid","palette","pallet","pan_tool","pan_tool_alt","pan_zoom","panorama","panorama_fish_eye","panorama_horizontal","panorama_horizontal_select","panorama_photosphere","panorama_photosphere_select","panorama_vertical","panorama_vertical_select","panorama_wide_angle","panorama_wide_angle_select","paragliding","park","partly_cloudy_day","partly_cloudy_night","partner_exchange","partner_reports","party_mode","passkey","password","password_2","password_2_off","patient_list","pattern","pause","pause_circle","pause_circle_filled","pause_circle_outline","pause_presentation","payment","payments","pedal_bike","pediatrics","pen_size_1","pen_size_2","pen_size_3","pen_size_4","pen_size_5","pending","pending_actions","pentagon","people","people_alt","people_outline","percent","pergola","perm_camera_mic","perm_contact_calendar","perm_data_setting","perm_device_information","perm_identity","perm_media","perm_phone_msg","perm_scan_wifi","person","person_2","person_3","person_4","person_add","person_add_alt","person_add_alt_1","person_add_disabled","person_alert","person_apron","person_book","person_cancel","person_celebrate","person_check","person_edit","person_off","person_outline","person_pin","person_pin_circle","person_play","person_raised_hand","person_remove","person_remove_alt_1","person_search","personal_bag","personal_bag_off","personal_bag_question","personal_injury","personal_places","personal_video","pest_control","pest_control_rodent","pet_supplies","pets","phishing","phone","phone_android","phone_bluetooth_speaker","phone_callback","phone_disabled","phone_enabled","phone_forwarded","phone_in_talk","phone_iphone","phone_locked","phone_missed","phone_paused","phonelink","phonelink_erase","phonelink_lock","phonelink_off","phonelink_ring","phonelink_ring_off","phonelink_setup","photo","photo_album","photo_auto_merge","photo_camera","photo_camera_back","photo_camera_front","photo_filter","photo_frame","photo_library","photo_prints","photo_size_select_actual","photo_size_select_large","photo_size_select_small","php","physical_therapy","piano","piano_off","picture_as_pdf","picture_in_picture","picture_in_picture_alt","picture_in_picture_center","picture_in_picture_large","picture_in_picture_medium","picture_in_picture_mobile","picture_in_picture_off","picture_in_picture_small","pie_chart","pie_chart_outline","pie_chart_outlined","pill","pill_off","pin","pin_drop","pin_end","pin_invoke","pinboard","pinboard_unread","pinch","pinch_zoom_in","pinch_zoom_out","pip","pip_exit","pivot_table_chart","pix","place","place_item","plagiarism","planet","planner_banner_ad_pt","planner_review","play_arrow","play_circle","play_circle_filled","play_circle_outline","play_disabled","play_for_work","play_lesson","play_pause","playing_cards","playlist_add","playlist_add_check","playlist_add_check_circle","playlist_add_circle","playlist_play","playlist_remove","plumbing","plus_one","podcasts","podiatry","podium","point_of_sale","point_scan","poker_chip","policy","policy_alert","poll","polyline","polymer","pool","portable_wifi_off","portrait","position_bottom_left","position_bottom_right","position_top_right","post","post_add","potted_plant","power","power_input","power_off","power_settings_circle","power_settings_new","prayer_times","precision_manufacturing","pregnancy","pregnant_woman","preliminary","prescriptions","present_to_all","preview","preview_off","price_change","price_check","print","print_add","print_connect","print_disabled","print_error","print_lock","priority","priority_high","privacy","privacy_tip","private_connectivity","problem","procedure","process_chart","production_quantity_limits","productivity","progress_activity","prompt_suggestion","propane","propane_tank","psychiatry","psychology","psychology_alt","public","public_off","publish","published_with_changes","pulmonology","pulse_alert","punch_clock","push_pin","qr_code","qr_code_2","qr_code_2_add","qr_code_scanner","query_builder","query_stats","question_answer","question_exchange","question_mark","queue","queue_music","queue_play_next","quick_phrases","quick_reference","quick_reference_all","quick_reorder","quickreply","quiz","r_mobiledata","radar","radio","radio_button_checked","radio_button_partial","radio_button_unchecked","radiology","railway_alert","railway_alert_2","rainy","rainy_heavy","rainy_light","rainy_snow","ramen_dining","ramp_left","ramp_right","range_hood","rate_review","raven","raw_off","raw_on","read_more","readiness_score","real_estate_agent","rear_camera","rebase","rebase_edit","receipt","receipt_long","receipt_long_off","recent_actors","recent_patient","recenter","recommend","record_voice_over","rectangle","recycling","redeem","redo","reduce_capacity","refresh","regular_expression","relax","release_alert","remember_me","reminder","remote_gen","remove","remove_circle","remove_circle_outline","remove_done","remove_from_queue","remove_moderator","remove_red_eye","remove_road","remove_selection","remove_shopping_cart","reopen_window","reorder","repartition","repeat","repeat_on","repeat_one","repeat_one_on","replace_audio","replace_image","replace_video","replay","replay_10","replay_30","replay_5","replay_circle_filled","reply","reply_all","report","report_gmailerrorred","report_off","report_problem","request_page","request_quote","reset_brightness","reset_focus","reset_image","reset_iso","reset_settings","reset_shadow","reset_shutter_speed","reset_tv","reset_white_balance","reset_wrench","resize","respiratory_rate","responsive_layout","restart_alt","restaurant","restaurant_menu","restore","restore_from_trash","restore_page","resume","reviews","rewarded_ads","rheumatology","rib_cage","rice_bowl","right_click","right_panel_close","right_panel_open","ring_volume","ripples","road","robot","robot_2","rocket","rocket_launch","roller_shades","roller_shades_closed","roller_skating","roofing","room","room_preferences","room_service","rotate_90_degrees_ccw","rotate_90_degrees_cw","rotate_auto","rotate_left","rotate_right","roundabout_left","roundabout_right","rounded_corner","route","router","routine","rowing","rss_feed","rsvp","rtt","rubric","rule","rule_folder","rule_settings","run_circle","running_with_errors","rv_hookup","safety_check","safety_check_off","safety_divider","sailing","salinity","sanitizer","satellite","satellite_alt","sauna","save","save_alt","save_as","save_clock","saved_search","savings","scale","scan","scan_delete","scanner","scatter_plot","scene","schedule","schedule_send","schema","school","science","science_off","scooter","score","scoreboard","screen_lock_landscape","screen_lock_portrait","screen_lock_rotation","screen_record","screen_rotation","screen_rotation_alt","screen_rotation_up","screen_search_desktop","screen_share","screenshot","screenshot_frame","screenshot_frame_2","screenshot_keyboard","screenshot_monitor","screenshot_region","screenshot_tablet","script","scrollable_header","scuba_diving","sd","sd_card","sd_card_alert","sd_storage","sdk","search","search_activity","search_check","search_check_2","search_hands_free","search_insights","search_off","security","security_key","security_update","security_update_good","security_update_warning","segment","select","select_all","select_check_box","select_to_speak","select_window","select_window_2","select_window_off","self_care","self_improvement","sell","send","send_and_archive","send_money","send_time_extension","send_to_mobile","sensor_door","sensor_occupied","sensor_window","sensors","sensors_krx","sensors_krx_off","sensors_off","sentiment_calm","sentiment_content","sentiment_dissatisfied","sentiment_excited","sentiment_extremely_dissatisfied","sentiment_frustrated","sentiment_neutral","sentiment_sad","sentiment_satisfied","sentiment_satisfied_alt","sentiment_stressed","sentiment_very_dissatisfied","sentiment_very_satisfied","sentiment_worried","serif","server_person","service_toolbox","set_meal","settings","settings_accessibility","settings_account_box","settings_alert","settings_applications","settings_b_roll","settings_backup_restore","settings_bluetooth","settings_brightness","settings_cell","settings_cinematic_blur","settings_ethernet","settings_heart","settings_input_antenna","settings_input_component","settings_input_composite","settings_input_hdmi","settings_input_svideo","settings_motion_mode","settings_night_sight","settings_overscan","settings_panorama","settings_phone","settings_photo_camera","settings_power","settings_remote","settings_slow_motion","settings_suggest","settings_system_daydream","settings_timelapse","settings_video_camera","settings_voice","settop_component","severe_cold","shadow","shadow_add","shadow_minus","shape_line","shapes","share","share_eta","share_location","share_off","share_reviews","share_windows","sheets_rtl","shelf_auto_hide","shelf_position","shelves","shield","shield_lock","shield_locked","shield_moon","shield_person","shield_question","shield_with_heart","shield_with_house","shift","shift_lock","shift_lock_off","shop","shop_2","shop_two","shopping_bag","shopping_bag_speed","shopping_basket","shopping_cart","shopping_cart_checkout","shopping_cart_off","shoppingmode","short_stay","short_text","shortcut","show_chart","shower","shuffle","shuffle_on","shutter_speed","shutter_speed_add","shutter_speed_minus","sick","side_navigation","sign_language","signal_cellular_0_bar","signal_cellular_1_bar","signal_cellular_2_bar","signal_cellular_3_bar","signal_cellular_4_bar","signal_cellular_add","signal_cellular_alt","signal_cellular_alt_1_bar","signal_cellular_alt_2_bar","signal_cellular_connected_no_internet_0_bar","signal_cellular_connected_no_internet_1_bar","signal_cellular_connected_no_internet_2_bar","signal_cellular_connected_no_internet_3_bar","signal_cellular_connected_no_internet_4_bar","signal_cellular_no_sim","signal_cellular_nodata","signal_cellular_null","signal_cellular_off","signal_cellular_pause","signal_disconnected","signal_wifi_0_bar","signal_wifi_1_bar","signal_wifi_1_bar_lock","signal_wifi_2_bar","signal_wifi_2_bar_lock","signal_wifi_3_bar","signal_wifi_3_bar_lock","signal_wifi_4_bar","signal_wifi_4_bar_lock","signal_wifi_bad","signal_wifi_connected_no_internet_0","signal_wifi_connected_no_internet_1","signal_wifi_connected_no_internet_2","signal_wifi_connected_no_internet_3","signal_wifi_connected_no_internet_4","signal_wifi_off","signal_wifi_statusbar_1_bar","signal_wifi_statusbar_2_bar","signal_wifi_statusbar_3_bar","signal_wifi_statusbar_4_bar","signal_wifi_statusbar_connected_no_internet","signal_wifi_statusbar_connected_no_internet_1","signal_wifi_statusbar_connected_no_internet_2","signal_wifi_statusbar_connected_no_internet_3","signal_wifi_statusbar_connected_no_internet_4","signal_wifi_statusbar_not_connected","signal_wifi_statusbar_null","signature","signpost","sim_card","sim_card_alert","sim_card_download","simulation","single_bed","sip","siren","siren_check","siren_open","siren_question","skateboarding","skeleton","skillet","skillet_cooktop","skip_next","skip_previous","skull","skull_list","slab_serif","sledding","sleep_score","slide_library","sliders","slideshow","slow_motion_video","smart_button","smart_card_reader","smart_card_reader_off","smart_display","smart_outlet","smart_screen","smart_toy","smartphone","smartphone_camera","smb_share","smoke_free","smoking_rooms","sms","sms_failed","snippet_folder","snooze","snowboarding","snowing","snowing_heavy","snowmobile","snowshoeing","soap","social_distance","social_leaderboard","solar_power","sort","sort_by_alpha","sos","sound_detection_dog_barking","sound_detection_glass_break","sound_detection_loud_sound","sound_sampler","soup_kitchen","source","source_environment","source_notes","south","south_america","south_east","south_west","spa","space_bar","space_dashboard","spatial_audio","spatial_audio_off","spatial_speaker","spatial_tracking","speaker","speaker_group","speaker_notes","speaker_notes_off","speaker_phone","special_character","specific_gravity","speech_to_text","speed","speed_0_25","speed_0_2x","speed_0_5","speed_0_5x","speed_0_75","speed_0_7x","speed_1_2","speed_1_25","speed_1_2x","speed_1_5","speed_1_5x","speed_1_75","speed_1_7x","speed_2x","speed_camera","spellcheck","split_scene","splitscreen","splitscreen_add","splitscreen_bottom","splitscreen_landscape","splitscreen_left","splitscreen_portrait","splitscreen_right","splitscreen_top","splitscreen_vertical_add","spo2","spoke","sports","sports_and_outdoors","sports_bar","sports_baseball","sports_basketball","sports_cricket","sports_esports","sports_football","sports_golf","sports_gymnastics","sports_handball","sports_hockey","sports_kabaddi","sports_martial_arts","sports_mma","sports_motorsports","sports_rugby","sports_score","sports_soccer","sports_tennis","sports_volleyball","sprinkler","sprint","square","square_dot","square_foot","ssid_chart","stack","stack_hexagon","stack_off","stack_star","stacked_bar_chart","stacked_email","stacked_inbox","stacked_line_chart","stacks","stadia_controller","stadium","stairs","stairs_2","star","star_border","star_border_purple500","star_half","star_outline","star_purple500","star_rate","star_rate_half","stars","start","stat_0","stat_1","stat_2","stat_3","stat_minus_1","stat_minus_2","stat_minus_3","stay_current_landscape","stay_current_portrait","stay_primary_landscape","stay_primary_portrait","step","step_into","step_out","step_over","steppers","steps","stethoscope","stethoscope_arrow","stethoscope_check","sticky_note","sticky_note_2","stock_media","stockpot","stop","stop_circle","stop_screen_share","storage","store","store_mall_directory","storefront","storm","straight","straighten","strategy","stream","stream_apps","streetview","stress_management","strikethrough_s","stroke_full","stroke_partial","stroller","style","styler","stylus","stylus_laser_pointer","stylus_note","subdirectory_arrow_left","subdirectory_arrow_right","subheader","subject","subscript","subscriptions","subtitles","subtitles_off","subway","summarize","sunny","sunny_snowing","superscript","supervised_user_circle","supervised_user_circle_off","supervisor_account","support","support_agent","surfing","surgical","surround_sound","swap_calls","swap_driving_apps","swap_driving_apps_wheel","swap_horiz","swap_horizontal_circle","swap_vert","swap_vertical_circle","sweep","swipe","swipe_down","swipe_down_alt","swipe_left","swipe_left_alt","swipe_right","swipe_right_alt","swipe_up","swipe_up_alt","swipe_vertical","switch","switch_access","switch_access_2","switch_access_shortcut","switch_access_shortcut_add","switch_account","switch_camera","switch_left","switch_right","switch_video","switches","sword_rose","swords","symptoms","synagogue","sync","sync_alt","sync_arrow_down","sync_arrow_up","sync_desktop","sync_disabled","sync_lock","sync_problem","sync_saved_locally","syringe","system_security_update","system_security_update_good","system_security_update_warning","system_update","system_update_alt","tab","tab_close","tab_close_inactive","tab_close_right","tab_duplicate","tab_group","tab_inactive","tab_move","tab_new_right","tab_recent","tab_unselected","table","table_bar","table_chart","table_chart_view","table_convert","table_edit","table_eye","table_lamp","table_restaurant","table_rows","table_rows_narrow","table_view","tablet","tablet_android","tablet_camera","tablet_mac","tabs","tactic","tag","tag_faces","takeout_dining","tamper_detection_off","tamper_detection_on","tap_and_play","tapas","target","task","task_alt","taunt","taxi_alert","team_dashboard","temp_preferences_eco","temple_buddhist","temple_hindu","tenancy","terminal","terrain","text_ad","text_compare","text_decrease","text_fields","text_fields_alt","text_format","text_increase","text_rotate_up","text_rotate_vertical","text_rotation_angledown","text_rotation_angleup","text_rotation_down","text_rotation_none","text_select_end","text_select_jump_to_beginning","text_select_jump_to_end","text_select_move_back_character","text_select_move_back_word","text_select_move_down","text_select_move_forward_character","text_select_move_forward_word","text_select_move_up","text_select_start","text_snippet","text_to_speech","text_up","textsms","texture","texture_add","texture_minus","theater_comedy","theaters","thermometer","thermometer_add","thermometer_gain","thermometer_loss","thermometer_minus","thermostat","thermostat_arrow_down","thermostat_arrow_up","thermostat_auto","thermostat_carbon","things_to_do","thread_unread","threat_intelligence","thumb_down","thumb_down_alt","thumb_down_off_alt","thumb_up","thumb_up_alt","thumb_up_off_alt","thumbnail_bar","thumbs_up_down","thunderstorm","tibia","tibia_alt","tile_large","tile_medium","tile_small","time_auto","time_to_leave","timelapse","timeline","timer","timer_10","timer_10_alt_1","timer_10_select","timer_3","timer_3_alt_1","timer_3_select","timer_5","timer_5_shutter","timer_arrow_down","timer_arrow_up","timer_off","timer_pause","timer_play","tips_and_updates","tire_repair","title","titlecase","toast","toc","today","toggle_off","toggle_on","token","toll","tonality","toolbar","tools_flat_head","tools_installation_kit","tools_ladder","tools_level","tools_phillips","tools_pliers_wire_stripper","tools_power_drill","tooltip","tooltip_2","top_panel_close","top_panel_open","topic","tornado","total_dissolved_solids","touch_app","touch_double","touch_long","touch_triple","touchpad_mouse","touchpad_mouse_off","tour","toys","toys_and_games","toys_fan","track_changes","trackpad_input","trackpad_input_2","trackpad_input_3","traffic","traffic_jam","trail_length","trail_length_medium","trail_length_short","train","tram","transcribe","transfer_within_a_station","transform","transgender","transit_enterexit","transit_ticket","transition_chop","transition_dissolve","transition_fade","transition_push","transition_slide","translate","transportation","travel","travel_explore","travel_luggage_and_bags","trending_down","trending_flat","trending_up","trip","trip_origin","trolley","trolley_cable_car","trophy","troubleshoot","try","tsunami","tsv","tty","tune","tungsten","turn_left","turn_right","turn_sharp_left","turn_sharp_right","turn_slight_left","turn_slight_right","turned_in","turned_in_not","tv","tv_displays","tv_gen","tv_guide","tv_next","tv_off","tv_options_edit_channels","tv_options_input_settings","tv_remote","tv_signin","tv_with_assistant","two_pager","two_pager_store","two_wheeler","type_specimen","u_turn_left","u_turn_right","ulna_radius","ulna_radius_alt","umbrella","unarchive","undo","unfold_less","unfold_less_double","unfold_more","unfold_more_double","ungroup","universal_currency","universal_currency_alt","universal_local","unknown_2","unknown_5","unknown_7","unknown_document","unknown_med","unlicense","unpaved_road","unpublished","unsubscribe","upcoming","update","update_disabled","upgrade","upi_pay","upload","upload_2","upload_file","uppercase","urology","usb","usb_off","user_attributes","vaccines","vacuum","valve","vape_free","vaping_rooms","variable_add","variable_insert","variable_remove","variables","ventilator","verified","verified_user","vertical_align_bottom","vertical_align_center","vertical_align_top","vertical_distribute","vertical_shades","vertical_shades_closed","vertical_split","vibration","video_call","video_camera_back","video_camera_back_add","video_camera_front","video_camera_front_off","video_chat","video_file","video_label","video_library","video_search","video_settings","video_stable","videocam","videocam_alert","videocam_off","videogame_asset","videogame_asset_off","view_agenda","view_apps","view_array","view_carousel","view_column","view_column_2","view_comfy","view_comfy_alt","view_compact","view_compact_alt","view_cozy","view_day","view_headline","view_in_ar","view_in_ar_off","view_kanban","view_list","view_module","view_object_track","view_quilt","view_real_size","view_sidebar","view_stream","view_timeline","view_week","vignette","villa","visibility","visibility_lock","visibility_off","vital_signs","vo2_max","voice_chat","voice_over_off","voice_selection","voice_selection_off","voicemail","volcano","volume_down","volume_down_alt","volume_mute","volume_off","volume_up","volunteer_activism","voting_chip","vpn_key","vpn_key_alert","vpn_key_off","vpn_lock","vr180_create2d","vr180_create2d_off","vrpano","wall_art","wall_lamp","wallet","wallpaper","wallpaper_slideshow","ward","warehouse","warning","warning_amber","warning_off","wash","watch","watch_button_press","watch_check","watch_later","watch_off","watch_screentime","watch_vibration","watch_wake","water","water_bottle","water_bottle_large","water_damage","water_do","water_drop","water_ec","water_full","water_heater","water_lock","water_loss","water_lux","water_medium","water_orp","water_ph","water_pump","water_voc","waterfall_chart","waves","waving_hand","wb_auto","wb_cloudy","wb_incandescent","wb_iridescent","wb_shade","wb_sunny","wb_twighlight","wb_twilight","wc","weather_hail","weather_mix","weather_snowy","web","web_asset","web_asset_off","web_stories","web_traffic","webhook","weekend","weight","west","whatshot","wheelchair_pickup","where_to_vote","widget_medium","widget_small","widget_width","widgets","width_full","width_normal","width_wide","wifi","wifi_1_bar","wifi_2_bar","wifi_add","wifi_calling","wifi_calling_1","wifi_calling_2","wifi_calling_3","wifi_calling_bar_1","wifi_calling_bar_2","wifi_calling_bar_3","wifi_channel","wifi_find","wifi_home","wifi_lock","wifi_notification","wifi_off","wifi_password","wifi_protected_setup","wifi_proxy","wifi_tethering","wifi_tethering_error","wifi_tethering_off","wind_power","window","window_closed","window_open","window_sensor","wine_bar","woman","woman_2","work","work_alert","work_history","work_off","work_outline","work_update","workspace_premium","workspaces","workspaces_filled","workspaces_outline","wounds_injuries","wrap_text","wrist","wrong_location","wysiwyg","yard","your_trips","youtube_activity","youtube_searched_for","zone_person_alert","zone_person_idle","zone_person_urgent","zoom_in","zoom_in_map","zoom_out","zoom_out_map"];var RC=(0,n.defineComponent)({__name:"Icon",props:{icon:{},name:{},size:{default:1},mobileSize:{},color:{},round:{type:Boolean},weight:{},fontAwesome:{type:Boolean},fill:{type:Boolean},animate:{},animateSpeed:{},animateOnce:{type:Boolean},transition:{type:[Boolean,String],default:!0}},setup(e){const t=e,r=(0,n.computed)(()=>t.icon??t.name),{isMobile:o}=Ja(),a=(0,n.computed)(()=>o.value&&t.mobileSize!==void 0?t.mobileSize:t.size),l=(0,n.computed)(()=>t.fontAwesome&&(dc.includes(r.value)||$l.includes(r.value))?"font-awesome":Uh.includes(r.value)?"material":dc.includes(r.value)||$l.includes(r.value)?"font-awesome":"material"),i=(0,n.computed)(()=>$l.includes(r.value)),s=(0,n.ref)(!0),c=(0,n.ref)(!0),u=(0,n.ref)(!0);function d(){return typeof document>"u"?null:document.fonts??null}function f(){const w=d();return w!==null&&typeof w.load=="function"}async function m(w){if(!f())return!0;try{const k=d();return!k||k.check(`1em "${w}"`)?!0:(await k.load(`1em "${w}"`),k.check(`1em "${w}"`))}catch{return!1}}async function p(){s.value=await m("Material Symbols Outlined")}async function h(){c.value=await m("Font Awesome 6 Free")}async function y(){u.value=await m("Font Awesome 6 Brands")}(0,n.onMounted)(()=>{if(f())if(l.value==="material"){const w=d();s.value=w?w.check('1em "Material Symbols Outlined"'):!0,p()}else if(i.value){const w=d();u.value=w?w.check('1em "Font Awesome 6 Brands"'):!0,y()}else{const w=d();c.value=w?w.check('1em "Font Awesome 6 Free"'):!0,h()}}),(0,n.watchEffect)(()=>{f()&&(l.value==="material"?p():i.value?y():h())});const b=(0,n.computed)(()=>l.value==="material"?s.value:i.value?u.value:c.value),g=(0,n.computed)(()=>t.animate?`bgl_icon--${t.animate}`:null),v=(0,n.computed)(()=>{if(!t.animate)return;const w={};return t.animateSpeed!==void 0&&(w.animationDuration=`${t.animateSpeed}s`),t.animateOnce&&(w.animationIterationCount="1"),w}),_=(0,n.computed)(()=>t.transition===!1?"bgl-icon-x-none":`bgl-icon-x-${t.transition===!0?"slide-up":t.transition}`);return(w,k)=>((0,n.openBlock)(),(0,n.createBlock)(n.Transition,{name:_.value,mode:"out-in"},{default:(0,n.withCtx)(()=>[l.value==="material"?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:r.value,class:(0,n.normalizeClass)(["bgl_icon-font notranslate",[g.value,{"round flex aspect-ratio-1 justify-content-center":e.round}]]),style:(0,n.normalizeStyle)({fontSize:`${a.value}rem`,color:e.color,"font-variation-settings":`'FILL' ${e.fill?1:0}, 'wght' ${e.weight||400}`,width:e.round?`calc(${a.value}rem * 2)`:"auto",height:e.round?`calc(${a.value}rem * 2)`:"auto",visibility:b.value?"visible":"hidden",...v.value}),translate:"no"},(0,n.toDisplayString)(r.value),7)):l.value==="font-awesome"?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:r.value,class:(0,n.normalizeClass)(["fa bgl_icon-font notranslate",[`fa-${r.value}`,g.value,{"fa-brands":i.value,"fa-solid":e.fill,far:!e.fill&&!i.value}]]),style:(0,n.normalizeStyle)({fontSize:`${a.value}rem`,color:e.color,"font-variation-settings":`'wght' ${e.weight||400}`,visibility:b.value?"visible":"hidden",...v.value}),translate:"no"},null,6)):(0,n.createCommentVNode)("",!0)]),_:1},8,["name"]))}}),be=RC,FC={class:"flex space-between w-100p align-items-start gap-05"},zC={class:"flex gap-05 align-items-center min-w-0"},UC={class:"min-w-0"},HC={class:"txt13 opacity-6 m-0 ellipsis-1"},WC={key:0,class:"txt12 color-gray m-0 ellipsis-1"},jC={class:"flex space-between w-100p align-items-end gap-1"},qC=(0,n.defineComponent)({__name:"StatCard",props:{label:{},value:{},icon:{},color:{default:"primary"},change:{},invertChange:{type:Boolean},trend:{},currency:{},prefix:{},suffix:{},subtitle:{},loading:{type:Boolean},outline:{type:Boolean},frame:{type:Boolean}},setup(e){const t=e,r=(0,n.computed)(()=>Et(t.color)),o=(0,n.computed)(()=>typeof t.value=="number"?$t(t.value,{currency:t.currency,prefix:t.prefix,suffix:t.suffix}):`${t.prefix??""}${t.value}${t.suffix??""}`),a=(0,n.computed)(()=>t.change!==void 0&&t.change!==0),l=(0,n.computed)(()=>(t.change??0)>0),i=(0,n.computed)(()=>t.invertChange?!l.value:l.value);return(s,c)=>((0,n.openBlock)(),(0,n.createBlock)(sr,{thin:"",outline:e.outline,frame:e.frame,class:"bgl-stat flex column gap-1"},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("div",FC,[(0,n.createElementVNode)("div",zC,[e.icon?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:0,class:"bgl-stat__icon grid place-items-center flex-shrink-0",style:(0,n.normalizeStyle)({color:r.value,background:`color-mix(in srgb, ${r.value} 12%, transparent)`})},[(0,n.createVNode)(be,{name:e.icon,size:1.1},null,8,["name"])],4)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",UC,[(0,n.createElementVNode)("p",HC,(0,n.toDisplayString)(e.label),1),e.subtitle?((0,n.openBlock)(),(0,n.createElementBlock)("p",WC,(0,n.toDisplayString)(e.subtitle),1)):(0,n.createCommentVNode)("",!0)])]),a.value?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:0,class:(0,n.normalizeClass)(["bgl-stat__delta inline-flex align-items-center flex-shrink-0 semibold",i.value?"bgl-stat__delta--up":"bgl-stat__delta--down"])},[(0,n.createVNode)(be,{name:l.value?"trending_up":"trending_down",size:.9},null,8,["name"]),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(Math.abs(e.change).toFixed(1))+"% ",1)],2)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",jC,[(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(["txt28 m_txt24 semibold line-height-1 tabular-nums",{"opacity-4":e.loading}])},(0,n.toDisplayString)(e.loading?"…":o.value),3),e.trend?.length?((0,n.openBlock)(),(0,n.createBlock)(ah,{key:0,data:e.trend,color:e.color,area:"",class:"flex-shrink-0 opacity-9",width:96,height:32},null,8,["data","color"])):(0,n.createCommentVNode)("",!0)])]),_:1},8,["outline","frame"]))}}),GC=ge(qC,[["__scopeId","data-v-f367e664"]]),YC=["src","alt"],XC={key:2,class:"flex-center absolute-fill error-image"},KC={key:1},JC=["src","alt","width","height"],ZC=["src","alt","width","height"],QC=(0,n.defineComponent)({name:"BglImage",inheritAttrs:!0,__name:"Image",props:{src:{},pathKey:{},alt:{},width:{},height:{},caption:{},modelValue:{},ratio:{},gradient:{},fit:{},blend:{},rounded:{type:[Boolean,Number]}},setup(e){const t=e,{imageSrc:r,loadingError:o}=id(()=>t.src??t.pathKey??t.modelValue),a=(0,n.useSlots)(),l=(0,n.computed)(()=>!!a.default?.({})?.some(p=>p.type!==n.Comment&&!(typeof p.children=="string"&&p.children.trim()===""))),i=(0,n.computed)(()=>t.ratio!==void 0||t.gradient!==void 0||t.blend!==void 0||t.rounded!==void 0||l.value);function s(p){return/^(--|#|rgb|hsl|var\(|linear|radial|conic)/.test(p)?p:`var(--bgl-${p})`}const c=(0,n.computed)(()=>{const p=t.gradient;if(!p)return;if(Array.isArray(p))return`linear-gradient(150deg, ${s(p[0])}, ${s(p[1])})`;if(/^(linear|radial|conic)-gradient/.test(p))return p;const h=s(p);return`linear-gradient(150deg, ${h}, color-mix(in srgb, ${h} 55%, #000))`}),u=(0,n.computed)(()=>t.ratio?`ratio-${t.ratio}`:""),d=(0,n.computed)(()=>t.ratio!==void 0||t.height!==void 0),f=(0,n.computed)(()=>{if(!(t.rounded===void 0||t.rounded===!1))return typeof t.rounded=="number"?`${t.rounded}px`:"var(--bgl-card-radius, 12px)"}),m=(0,n.computed)(()=>t.fit??(t.ratio||t.gradient?"cover":void 0));return(p,h)=>i.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["bgl-image-frame relative overflow-hidden",u.value]),style:(0,n.normalizeStyle)({width:(0,n.unref)(Wt)(e.width),height:e.ratio?void 0:(0,n.unref)(Wt)(e.height),background:c.value,borderRadius:f.value})},[(0,n.unref)(r)?((0,n.openBlock)(),(0,n.createElementBlock)("img",{key:0,src:(0,n.unref)(r),alt:e.alt,class:(0,n.normalizeClass)(["bgl-image-frame-img",d.value?"absolute-fill":"bgl-image-frame-img--flow"]),style:(0,n.normalizeStyle)({objectFit:m.value,mixBlendMode:e.blend})},null,14,YC)):!c.value&&!(0,n.unref)(o)?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(da),{key:1,class:"absolute-fill"})):(0,n.unref)(o)&&!c.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",XC,[(0,n.createVNode)((0,n.unref)(be),{name:"broken_image"})])):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(p.$slots,"default",{},void 0,!0)],6)):e.caption?((0,n.openBlock)(),(0,n.createElementBlock)("figcaption",KC,[(0,n.unref)(r)?((0,n.openBlock)(),(0,n.createElementBlock)("img",(0,n.mergeProps)({key:0,src:(0,n.unref)(r)},p.$attrs,{alt:e.alt,width:(0,n.unref)(Wt)(e.width),height:(0,n.unref)(Wt)(e.height)}),null,16,JC)):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(da),{key:1,class:"img-web-kit",width:(0,n.unref)(Wt)(e.width),height:(0,n.unref)(Wt)(e.height)},null,8,["width","height"]))])):(0,n.unref)(r)?((0,n.openBlock)(),(0,n.createElementBlock)("img",(0,n.mergeProps)({key:2,src:(0,n.unref)(r)},p.$attrs,{alt:e.alt,width:(0,n.unref)(Wt)(e.width),height:(0,n.unref)(Wt)(e.height)}),null,16,ZC)):(0,n.unref)(o)?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:3,class:"flex-center error-image",style:(0,n.normalizeStyle)({width:(0,n.unref)(Wt)(e.width),height:(0,n.unref)(Wt)(e.height)})},[(0,n.createVNode)((0,n.unref)(be),{name:"broken_image"})],4)):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(da),{key:4,class:"img-web-kit",width:(0,n.unref)(Wt)(e.width),height:(0,n.unref)(Wt)(e.height)},null,8,["width","height"]))}}),wa=ge(QC,[["__scopeId","data-v-76f29e7b"]]),eS=["title"],tS=(0,n.defineComponent)({name:"BglAvatar",__name:"Avatar",props:{fallback:{},src:{},name:{},icon:{},alt:{},size:{default:50},square:{type:[Boolean,Number]},color:{},status:{type:[Boolean,String]},statusTitle:{},innerClass:{}},setup(e){const t=e,r=(0,n.computed)(()=>t.status===!0?"green":t.status||null),o=(0,n.computed)(()=>Math.max(7,Math.min(14,Math.round(t.size*.28)))),a=(0,n.computed)(()=>t.square?t.square===!0?"var(--bgl-btn-border-radius)":`${t.square}px`:"1000px"),l=(0,n.computed)(()=>t.color?{background:`color-mix(in srgb, var(--bgl-${t.color}) 14%, transparent)`,color:`var(--bgl-${t.color})`,border:"none"}:{});return(i,s)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"avatar-wrap",style:(0,n.normalizeStyle)({width:`${e.size}px`,height:`${e.size}px`})},[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["overflow-hidden txt-center p-0 avatar flex justify-content-center align-items-center",e.innerClass]),style:(0,n.normalizeStyle)({width:`${e.size}px`,height:`${e.size}px`,borderRadius:a.value,...l.value})},[e.src?((0,n.openBlock)(),(0,n.createBlock)(wa,{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)(be),{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)(hv)(e.name||"")).toUpperCase()),5))],6),r.value?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:0,class:"avatar-status",title:e.statusTitle,style:(0,n.normalizeStyle)({width:`${o.value}px`,height:`${o.value}px`,background:`var(--bgl-${r.value})`})},null,12,eS)):(0,n.createCommentVNode)("",!0)],4))}}),Hh=ge(tS,[["__scopeId","data-v-1d880a58"]]),nS=["disabled"],rS={class:"flex h-100 justify-content-center relative"},oS={key:0,class:"loading absolute inset-0 mx-auto"},aS={key:1,class:"bgl_pill-dot"},lS=(0,n.defineComponent)({name:"BglBadge",__name:"Badge",props:{disabled:{type:Boolean},icon:{},iconEnd:{},color:{},variant:{},flat:{type:Boolean},outline:{type:Boolean},soft:{type:Boolean},frost:{type:Boolean},gradient:{type:[Boolean,String]},gradientDir:{},frame:{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},mobileSize:{},uppercase:{type:Boolean}},setup(e){const t=e,r=(0,n.useSlots)(),o=(0,n.computed)(()=>t.disabled?"gray-light":t.color),{isGradient:a,gradientStyle:l}=zi({gradient:()=>t.gradient,gradientDir:()=>t.gradientDir,color:()=>t.color}),i=(0,n.computed)(()=>{const f=o.value;return f?`pair-${f}`:u.value==="frost"?"pair-white":"pair-primary"}),s=(0,n.computed)(()=>t.size?t.size:t.sm?"sm":t.lg?"lg":"md"),c=(0,n.computed)(()=>t.mobileSize),u=(0,n.computed)(()=>t.variant?t.variant:a.value?"gradient":t.frost?"frost":t.glass?"glass":t.soft?"soft":t.flat?"flat":t.outline||t.border?"outline":"solid"),d=(0,n.computed)(()=>{const f={bgl_pill:!t.icon||!!r.default||!!t.value,round:t.round,bgl_flatPill:u.value==="flat","bgl_pill-border":u.value==="outline","bgl_pill-frame":t.frame,bgl_glassPill:u.value==="glass",soft:u.value==="soft",frost:u.value==="frost",gradient:u.value==="gradient",pillLarge:s.value==="lg",pillSmall:s.value==="sm",m_pillLarge:c.value==="lg",m_pillMd:c.value==="md",m_pillSmall:c.value==="sm"};return f[i.value]=!0,f});return(f,m)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["bgl_pill",d.value]),style:(0,n.normalizeStyle)([{height:"var(--bgl-pill-height)"},(0,n.unref)(l)]),disabled:e.disabled},[(0,n.createElementVNode)("div",rS,[e.loading?((0,n.openBlock)(),(0,n.createElementBlock)("div",oS)):(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)(oe),(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",aS)):(0,n.createCommentVNode)("",!0),e.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{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)(f.$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)(be),{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)(oe),(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)])],14,nS))}}),mo=ge(lS,[["__scopeId","data-v-4ea15aa0"]]);function wu(e){return(0,n.getCurrentScope)()?((0,n.onScopeDispose)(e),!0):!1}var Ua=typeof window<"u"&&typeof document<"u",kU=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,iS=e=>e!=null,sS=Object.prototype.toString,cS=e=>sS.call(e)==="[object Object]",yf=()=>+Date.now(),Gt=()=>{},uS=dS();function dS(){var e,t;return Ua&&((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 ku(e,t){function r(...o){return new Promise((a,l)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(a).catch(l)})}return r}var fS=e=>e();function Wh(e,t={}){let r,o,a=Gt;const l=c=>{clearTimeout(c),a(),a=Gt};let i;return c=>{const u=(0,n.toValue)(e),d=(0,n.toValue)(t.maxWait);return r&&l(r),u<=0||d!==void 0&&d<=0?(o&&(l(o),o=void 0),Promise.resolve(c())):new Promise((f,m)=>{a=t.rejectOnCancel?m:f,i=c,d&&!o&&(o=setTimeout(()=>{r&&l(r),o=void 0,f(i())},d)),r=setTimeout(()=>{o&&l(o),o=void 0,f(c())},u)})}}function mS(...e){let t=0,r,o=!0,a=Gt,l,i,s,c,u;!(0,n.isRef)(e[0])&&typeof e[0]=="object"?{delay:i,trailing:s=!0,leading:c=!0,rejectOnCancel:u=!1}=e[0]:[i,s=!0,c=!0,u=!1]=e;const d=()=>{r&&(clearTimeout(r),r=void 0,a(),a=Gt)};return m=>{const p=(0,n.toValue)(i),h=Date.now()-t,y=()=>l=m();return d(),p<=0?(t=Date.now(),y()):(h>p&&(c||!o)?(t=Date.now(),y()):s&&(l=new Promise((b,g)=>{a=u?g:b,r=setTimeout(()=>{t=Date.now(),o=!0,b(y()),d()},Math.max(0,p-h))})),!c&&!r&&(r=setTimeout(()=>o=!0,p)),o=!1,l)}}function bf(e,t=!1,r="Timeout"){return new Promise((o,a)=>{setTimeout(t?()=>a(r):o,e)})}function oa(e){return Array.isArray(e)?e:[e]}function jh(e){const t=Object.create(null);return r=>t[r]||(t[r]=e(r))}var pS=/\B([A-Z])/g,$U=jh(e=>e.replace(pS,"-$1").toLowerCase()),hS=/-(\w)/g,EU=jh(e=>e.replace(hS,(t,r)=>r?r.toUpperCase():""));function gS(e){return e||(0,n.getCurrentInstance)()}function Ur(e,t=200,r={}){return ku(Wh(t,r),e)}function vS(e,t,r={}){const{eventFilter:o=fS,...a}=r;return(0,n.watch)(e,ku(o,t),a)}function yS(e,t=!0,r){gS(r)?(0,n.onMounted)(e,r):t?e():(0,n.nextTick)(e)}function fc(e,t=!1){function r(f,{flush:m="sync",deep:p=!1,timeout:h,throwOnTimeout:y}={}){let b=null;const g=[new Promise(v=>{b=(0,n.watch)(e,_=>{f(_)!==t&&(b?b():(0,n.nextTick)(()=>b?.()),v(_))},{flush:m,deep:p,immediate:!0})})];return h!=null&&g.push(bf(h,y).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:y,throwOnTimeout:b}=m??{};let g=null;const v=[new Promise(_=>{g=(0,n.watch)([e,f],([w,k])=>{t!==(w===k)&&(g?g():(0,n.nextTick)(()=>g?.()),_(w))},{flush:p,deep:h,immediate:!0})})];return y!=null&&v.push(bf(y,b).then(()=>(0,n.toValue)(e)).finally(()=>(g?.(),(0,n.toValue)(e)))),Promise.race(v)}function a(f){return r(m=>!!m,f)}function l(f){return o(null,f)}function i(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 fc(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:a,toBeNull:l,toBeNaN:s,toBeUndefined:i,changed:u,changedTimes:d,get not(){return fc(e,!t)}}}function bS(e){return fc(e)}function _S(e,t,r={}){const{debounce:o=0,maxWait:a=void 0,...l}=r;return vS(e,t,{...l,eventFilter:Wh(o,{maxWait:a})})}function wS(e,t,r){return(0,n.watch)(e,t,{...r,immediate:!0})}var Io=Ua?window:void 0,CU=Ua?window.document:void 0,SU=Ua?window.navigator:void 0,xU=Ua?window.location:void 0;function Rt(e){var t;const r=(0,n.toValue)(e);return(t=r?.$el)!=null?t:r}function vo(...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=oa((0,n.toValue)(e[0])).filter(c=>c!=null);return s.every(c=>typeof c!="string")?s:void 0}),l=wS(()=>{var s,c;return[(c=(s=a.value)==null?void 0:s.map(u=>Rt(u)))!=null?c:[Io].filter(u=>u!=null),oa((0,n.toValue)(a.value?e[1]:e[0])),oa((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=cS(d)?{...d}:d;t.push(...s.flatMap(m=>c.flatMap(p=>u.map(h=>o(m,p,h,f)))))},{flush:"post"}),i=()=>{l(),r()};return wu(r),i}var _f=!1;function kS(e,t,r={}){const{window:o=Io,ignore:a=[],capture:l=!0,detectIframe:i=!1,controls:s=!1}=r;if(!o)return s?{stop:Gt,cancel:Gt,trigger:Gt}:Gt;if(uS&&!_f){_f=!0;const b={passive:!0};Array.from(o.document.body.children).forEach(g=>g.addEventListener("click",Gt,b)),o.document.documentElement.addEventListener("click",Gt,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(v=>v===b.target||b.composedPath().includes(v));{const v=Rt(g);return v&&(b.target===v||b.composedPath().includes(v))}});function d(b){const g=(0,n.toValue)(b);return g&&g.$.subTree.shapeFlag===16}function f(b,g){const v=(0,n.toValue)(b),_=v.$.subTree&&v.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(w=>w.el===g.target||g.composedPath().includes(w.el))}const m=b=>{const g=Rt(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=[vo(o,"click",b=>{p||(p=!0,setTimeout(()=>{p=!1},0),m(b))},{passive:!0,capture:l}),vo(o,"pointerdown",b=>{const g=Rt(e);c=!u(b)&&!!(g&&!b.composedPath().includes(g))},{passive:!0}),i&&vo(o,"blur",b=>{setTimeout(()=>{var g;const v=Rt(e);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!v?.contains(o.document.activeElement)&&t(b)},0)},{passive:!0})].filter(Boolean),y=()=>h.forEach(b=>b());return s?{stop:y,cancel:()=>{c=!1},trigger:b=>{c=!0,m(b),c=!1}}:y}function $S(){const e=(0,n.shallowRef)(!1),t=(0,n.getCurrentInstance)();return t&&(0,n.onMounted)(()=>{e.value=!0},t),e}function qh(e){const t=$S();return(0,n.computed)(()=>(t.value,!!e()))}function Gh(e,t,r={}){const{window:o=Io,...a}=r;let l;const i=qh(()=>o&&"ResizeObserver"in o),s=()=>{l&&(l.disconnect(),l=void 0)},c=(0,n.watch)((0,n.computed)(()=>{const d=(0,n.toValue)(e);return Array.isArray(d)?d.map(f=>Rt(f)):[Rt(d)]}),d=>{if(s(),i.value&&o){l=new ResizeObserver(t);for(const f of d)f&&l.observe(f,a)}},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return wu(u),{isSupported:i,stop:u}}function ES(e,t={width:0,height:0},r={}){const{window:o=Io,box:a="content-box"}=r,l=(0,n.computed)(()=>{var f,m;return(m=(f=Rt(e))==null?void 0:f.namespaceURI)==null?void 0:m.includes("svg")}),i=(0,n.shallowRef)(t.width),s=(0,n.shallowRef)(t.height),{stop:c}=Gh(e,([f])=>{const m=a==="border-box"?f.borderBoxSize:a==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&l.value){const p=Rt(e);if(p){const h=p.getBoundingClientRect();i.value=h.width,s.value=h.height}}else if(m){const p=oa(m);i.value=p.reduce((h,{inlineSize:y})=>h+y,0),s.value=p.reduce((h,{blockSize:y})=>h+y,0)}else i.value=f.contentRect.width,s.value=f.contentRect.height},r);yS(()=>{const f=Rt(e);f&&(i.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=(0,n.watch)(()=>Rt(e),f=>{i.value=f?t.width:0,s.value=f?t.height:0});function d(){c(),u()}return{width:i,height:s,stop:d}}function Yh(e,t,r={}){const{root:o,rootMargin:a="0px",threshold:l=0,window:i=Io,immediate:s=!0}=r,c=qh(()=>i&&"IntersectionObserver"in i),u=(0,n.computed)(()=>oa((0,n.toValue)(e)).map(Rt).filter(iS));let d=Gt;const f=(0,n.shallowRef)(s),m=c.value?(0,n.watch)(()=>[u.value,Rt(o),f.value],([h,y])=>{if(d(),!f.value||!h.length)return;const b=new IntersectionObserver(t,{root:Rt(y),rootMargin:a,threshold:l});h.forEach(g=>g&&b.observe(g)),d=()=>{b.disconnect(),d=Gt}},{immediate:s,flush:"post"}):Gt,p=()=>{d(),m(),f.value=!1};return wu(p),{isSupported:c,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:p}}var CS=["mousemove","mousedown","resize","keydown","touchstart","wheel"],SS=6e4;function xS(e=SS,t={}){const{initialState:r=!1,listenForVisibilityChange:o=!0,events:a=CS,window:l=Io,eventFilter:i=mS(50)}=t,s=(0,n.shallowRef)(r),c=(0,n.shallowRef)(yf());let u;const d=()=>{s.value=!1,clearTimeout(u),u=setTimeout(()=>s.value=!0,e)},f=ku(i,()=>{c.value=yf(),d()});if(l){const m=l.document,p={passive:!0};for(const h of a)vo(l,h,f,p);o&&vo(m,"visibilitychange",()=>{m.hidden||f()},p),r||d()}return{idle:s,lastActive:c,reset:d}}var TU=[{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 TS(e,t){const{containerStyle:r,wrapperProps:o,scrollTo:a,calculateRange:l,currentList:i,containerRef:s}="itemHeight"in t?DS(t,e):BS(t,e);return{list:i,scrollTo:a,containerProps:{ref:s,onScroll:()=>{l()},style:r},wrapperProps:o}}function Xh(e){const t=(0,n.shallowRef)(null),r=ES(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 Kh(e,t,r){return o=>{if(typeof r=="number")return Math.ceil(o/r);const{start:a=0}=e.value;let l=0,i=0;for(let s=a;s<t.value.length;s++){const c=r(s);if(l+=c,i=s,l>o)break}return i-a}}function Jh(e,t){return r=>{if(typeof t=="number")return Math.floor(r/t)+1;let o=0,a=0;for(let l=0;l<e.value.length;l++){const i=t(l);if(o+=i,o>=r){a=l;break}}return a+1}}function Zh(e,t,r,o,{containerRef:a,state:l,currentList:i,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;l.value={start:f<0?0:f,end:m>s.value.length?s.value.length:m},i.value=s.value.slice(l.value.start,l.value.end).map((p,h)=>({data:p,index:h+l.value.start}))}}}function Qh(e,t){return r=>typeof e=="number"?r*e:t.value.slice(0,r).reduce((o,a,l)=>o+e(l),0)}function e0(e,t,r,o){(0,n.watch)([e.width,e.height,()=>(0,n.toValue)(t),r],()=>{o()})}function t0(e,t){return(0,n.computed)(()=>typeof e=="number"?t.value.length*e:t.value.reduce((r,o,a)=>r+e(a),0))}var NS={horizontal:"scrollLeft",vertical:"scrollTop"};function n0(e,t,r,o){return a=>{o.value&&(o.value[NS[e]]=r(a),t())}}function BS(e,t){const r=Xh(t),{state:o,source:a,currentList:l,size:i,containerRef:s}=r,c={overflowX:"auto"},{itemWidth:u,overscan:d=5}=e,f=Kh(o,a,u),m=Zh("horizontal",d,Jh(a,u),f,r),p=Qh(u,a),h=(0,n.computed)(()=>p(o.value.start)),y=t0(u,a);return e0(i,t,s,m),{scrollTo:n0("horizontal",m,p,s),calculateRange:m,wrapperProps:(0,n.computed)(()=>({style:{height:"100%",width:`${y.value-h.value}px`,marginLeft:`${h.value}px`,display:"flex"}})),containerStyle:c,currentList:l,containerRef:s}}function DS(e,t){const r=Xh(t),{state:o,source:a,currentList:l,size:i,containerRef:s}=r,c={overflowY:"auto"},{itemHeight:u,overscan:d=5}=e,f=Kh(o,a,u),m=Zh("vertical",d,Jh(a,u),f,r),p=Qh(u,a),h=(0,n.computed)(()=>p(o.value.start)),y=t0(u,a);return e0(i,t,s,m),{calculateRange:m,scrollTo:n0("vertical",m,p,s),containerStyle:c,wrapperProps:(0,n.computed)(()=>({style:{width:"100%",height:`${y.value-h.value}px`,marginTop:`${h.value}px`}})),currentList:l,containerRef:s}}var AS=["src"],MS=["autoplay","muted","loop","controls","playsinline"],LS=["src","type"],PS=(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)(),l=(0,n.computed)(()=>r.src?.includes("youtube.com/shorts/")??!1),i=(0,n.computed)(()=>l.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"&&Yh(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,y=r.src?.match(p)??null;return`https://player.vimeo.com/video/${h?.[1]??y?.[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:l.value}])},[d.value?((0,n.openBlock)(),(0,n.createElementBlock)("iframe",{key:0,src:f.value,style:(0,n.normalizeStyle)({aspectRatio:i.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,AS)):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:i.value}),controls:e.controls,playsinline:e.playsinline},[(0,n.createElementVNode)("source",{src:e.src,type:`video/${o.value}`},null,8,LS)],12,MS)):(0,n.createCommentVNode)("",!0)],2))}}),$u=ge(PS,[["__scopeId","data-v-acc6c65e"]]),IS=(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:l,innerHeight:i,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,i.value+a.value-150-10)),h=Math.max(l.value+10,Math.min(h,s.value+l.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,y=p.left+l.value+p.width+10;return h=Math.max(a.value+10,Math.min(h,i.value+a.value-150-10)),y+400>s.value+l.value&&(y=p.left+l.value-400+p.width-10),y<l.value&&(y=p.right+l.value+10),{top:h,left:y,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)(sr),{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)}}}),VS=ge(IS,[["__scopeId","data-v-291fefea"]]),OS={key:0,class:"flex h-100p justify-content-center column gap-1 opacity-3"},RS=["data-date","data-today"],FS={class:"bg-white border line-height-12 radius-1 grid align-items-center px-05 py-025 txt-center"},zS={class:"txt18"},US={class:"txt12"},HS={class:"line-height-12"},WS={class:"txt12 opacity-6"},jS={key:0,class:"ms-auto"},qS=["onClick"],GS={class:"agenda-event-time txt-center pt-1 txt14 opacity-6 bold relative"},YS={class:"flex space-between"},XS={class:"txt16 m-0 semi"},KS={class:"txt12 opacity-6"},JS={key:0,class:"txt12 opacity-6"},ZS=(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:l}=nt(),i=(0,n.ref)(null);function s(){try{return ir().global.locale.value}catch{return"en"}}function c(y){if(y<60)return`${y} min`;const b=Math.floor(y/60),g=y%60;return g?`${b}h ${g}m`:`${b}h`}const u=(0,n.computed)(()=>{const y=s(),b=new Date().toDateString(),g=[...r.events].sort((_,w)=>new Date(_.start_time).getTime()-new Date(w.start_time).getTime()),v=new Map;for(const _ of g){const w=new Date(_.start_time),k=w.toDateString();v.has(k)||v.set(k,{dateKey:k,date:w,dayNumber:w.toLocaleDateString(y,{day:"2-digit"}),monthShort:w.toLocaleDateString(y,{month:"short"}),weekdayLong:w.toLocaleDateString(y,{weekday:"long"}),isToday:k===b,events:[]});const S=Math.round((new Date(_.end_time).getTime()-new Date(_.start_time).getTime())/6e4);v.get(k).events.push({..._,durationMin:S})}return Array.from(v.values())}),d=(0,n.ref)(!1);function f(){if(!i.value)return;const y=i.value,b=y.querySelectorAll(".agenda-day-group"),g=y.getBoundingClientRect().top;let v=null,_=1/0;if(b.forEach(w=>{const k=Math.abs(w.getBoundingClientRect().top-g);k<_&&(_=k,v=w)}),v){const w=v.dataset.date;w&&o("dateChange",new Date(w))}}function m(y,b){if(!a.eventContent){o("eventClick",y);return}if(b){const g=b.currentTarget.getBoundingClientRect();o("openPopover",y,{top:g.top+window.scrollY+g.height/2,left:g.left+window.scrollX+g.width+10})}else o("openPopover",y)}function p(y){const b=new Date(y);return b.setHours(0,0,0,0),b.getTime()}function h(y,b="instant",g="nearest"){if(!i.value)return;const v=Array.from(i.value.querySelectorAll(".agenda-day-group"));if(!v.length)return;const _=p(y);let w=null,k=1/0;if(g==="forward")for(const S of v){const E=S.dataset.date;if(!E)continue;const $=p(new Date(E));$>=_&&$-_<k&&(k=$-_,w=S)}else if(g==="backward")for(const S of v){const E=S.dataset.date;if(!E)continue;const $=p(new Date(E));$<=_&&_-$<k&&(k=_-$,w=S)}if(!w)for(const S of v){const E=S.dataset.date;if(!E)continue;const $=Math.abs(p(new Date(E))-_);$<k&&(k=$,w=S)}w?.scrollIntoView({block:"start",behavior:b})}return(0,n.watch)(()=>r.startDate,(y,b)=>{const g=!b||p(y)>=p(b)?"forward":"backward";(0,n.nextTick)(()=>h(y,"smooth",g))}),(0,n.watchEffect)(()=>{if(d.value||!u.value.length)return;const y=new Date().getTime();u.value.some(b=>b.date.getTime()>=y-864e5)&&(d.value=!0,(0,n.nextTick)(()=>h(new Date,"instant","nearest")))}),(0,n.onMounted)(()=>{i.value?.addEventListener("scroll",f)}),(0,n.onUnmounted)(()=>{i.value?.removeEventListener("scroll",f)}),(y,b)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"containerRef",ref:i,class:"display-flex column h-100p overflow gap-0"},[u.value.length===0?((0,n.openBlock)(),(0,n.createElementBlock)("div",OS,[(0,n.createVNode)((0,n.unref)(be),{icon:"calendar",size:"4",weight:"200"}),(0,n.createTextVNode)(" "+(0,n.toDisplayString)((0,n.unref)(l)("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",FS,[(0,n.createElementVNode)("p",zS,(0,n.toDisplayString)(g.dayNumber),1),(0,n.createElementVNode)("p",US,(0,n.toDisplayString)(g.monthShort),1)]),(0,n.createElementVNode)("div",null,[(0,n.createElementVNode)("p",HS,(0,n.toDisplayString)(g.weekdayLong),1),(0,n.createElementVNode)("p",WS,(0,n.toDisplayString)((0,n.unref)(l)("calendar.agenda.eventsCount",g.events.length,{named:{n:g.events.length}})),1)]),g.isToday?((0,n.openBlock)(),(0,n.createElementBlock)("p",jS,(0,n.toDisplayString)((0,n.unref)(l)("calendar.today")),1)):(0,n.createCommentVNode)("",!0)],2),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(g.events,v=>((0,n.openBlock)(),(0,n.createElementBlock)("article",{key:v.id,class:"agenda-event-row grid gap-05 hover pe-1",onClick:(0,n.withModifiers)(_=>m(v,_),["stop"])},[(0,n.createElementVNode)("div",GS,(0,n.toDisplayString)((0,n.unref)(ct)(v.start_time,{format:"HH:mm"})),1),(0,n.createVNode)((0,n.unref)(sr),{class:"agenda-event-card overflow-hidden transition py-025 px-075 my-025",frame:"",style:(0,n.normalizeStyle)({"--event-color":v.color||"var(--bgl-primary)"})},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("div",YS,[(0,n.createElementVNode)("h3",XS,(0,n.toDisplayString)(v.title),1),(0,n.createElementVNode)("p",KS,(0,n.toDisplayString)(c(v.durationMin)),1)]),v.description?((0,n.openBlock)(),(0,n.createElementBlock)("p",JS,(0,n.toDisplayString)(v.description),1)):(0,n.createCommentVNode)("",!0)]),_:2},1032,["style"])],8,qS))),128))],8,RS))),128))],512))}}),QS=ge(ZS,[["__scopeId","data-v-9aafb2d8"]]),e3={class:"w-100p overflow-hidden m_overflow h-100p grid"},t3={class:"border-bottom me-1 txt-center p-05 dayGrid"},n3={class:"overflow h-100p pe-05"},r3={class:"time-column"},o3={class:"events-column"},a3=["onClick"],l3={class:"event-content"},i3={class:"white-space ellipsis-1"},s3={class:"event-time opacity-8"},c3={class:"color-primary txt-12 p-025"},Wo=60,jo=60,u3=(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)(),l={start:0,end:24},i=(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 v=[];for(let _=l.start;_<l.end;_++)for(let w=0;w<60;w+=jo)v.push({hour:_,minute:w,time:`${_.toString().padStart(2,"0")}:${w.toString().padStart(2,"0")}`});return v}),f=(0,n.computed)(()=>r.events.filter(v=>new Date(v.start_time).toDateString()===r.startDate.toDateString()).map(v=>{const _=new Date(v.start_time),w=new Date(v.end_time),k=_.getHours()*60+_.getMinutes(),S=w.getHours()*60+w.getMinutes(),E=k/jo*Wo,$=Math.max((S-k)/jo*Wo,30);return{...v,top:E,height:$}}));function m(){const v=new Date;c.value=v.toDateString()===r.startDate.toDateString(),s.value=(v.getHours()*60+v.getMinutes())/jo*Wo}function p(v){v.target.closest(".time-slot")&&(i.value.isDragging=!0,i.value.start={x:v.clientX,y:v.clientY},i.value.startTime=b(v.clientY),document.addEventListener("mousemove",h),document.addEventListener("mouseup",y))}function h(v){i.value.isDragging&&(i.value.end={x:v.clientX,y:v.clientY},i.value.endTime=b(v.clientY))}function y(){if(!i.value.isDragging||!i.value.startTime||!i.value.endTime)return;let v=new Date(i.value.startTime),_=new Date(i.value.endTime);_<v&&([v,_]=[_,v]),o("eventCreate",{start_time:v,end_time:_}),i.value={isDragging:!1,start:null,end:null,startTime:null,endTime:null},document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",y)}function b(v){const _=document.querySelector(".time-slots")?.getBoundingClientRect();if(!_)return new Date;const w=v-_.top,k=jo,S=w/Wo,E=Math.floor(S*k),$=new Date(r.startDate);return $.setHours(Math.floor(E/60)),$.setMinutes(E%60),$.setSeconds(0),$.setMilliseconds(0),$}function g(v,_){if(!a.eventContent){o("eventClick",v);return}if(_){const w=_.currentTarget.getBoundingClientRect();o("openPopover",v,{top:w.top+window.scrollY+w.height/2,left:w.left+window.scrollX+w.width+10})}else o("openPopover",v)}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",y),u.value&&clearInterval(u.value)}),(v,_)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",e3,[(0,n.createElementVNode)("div",t3,[_[0]||(_[0]=(0,n.createElementVNode)("div",null,null,-1)),(0,n.createElementVNode)("div",null,(0,n.toDisplayString)((0,n.unref)(ct)(e.startDate)),1)]),(0,n.createElementVNode)("div",n3,[(0,n.createElementVNode)("div",{class:"time-slots dayGrid border-end relative",onMousedown:p},[(0,n.createElementVNode)("div",r3,[((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:`${Wo}px`})},(0,n.toDisplayString)(w.time),5))),128))]),(0,n.createElementVNode)("div",o3,[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)(k=>g(w,k),["stop"])},[(0,n.createElementVNode)("div",l3,[(0,n.createElementVNode)("div",i3,(0,n.toDisplayString)(w.title),1),(0,n.createElementVNode)("div",s3,(0,n.toDisplayString)((0,n.unref)(ct)(new Date(w.start_time),{format:"HH:mm"}))+" - "+(0,n.toDisplayString)((0,n.unref)(ct)(new Date(w.end_time),{format:"HH:mm"})),1)])],12,a3))),128))]),i.value.isDragging&&i.value.start&&i.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(i.value.start.y,i.value.end.y)}px`,height:`${Math.abs(i.value.end.y-i.value.start.y)}px`,left:"10px",right:"10px"})},[(0,n.createElementVNode)("div",c3,(0,n.toDisplayString)(i.value.startTime?(0,n.unref)(ct)(i.value.startTime,{format:"HH:mm"}):"")+" - "+(0,n.toDisplayString)(i.value.endTime?(0,n.unref)(ct)(i.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))]))}}),d3=ge(u3,[["__scopeId","data-v-f2670028"]]),f3={class:"month-view"},m3={class:"month-header"},p3={class:"month-grid"},h3={class:"day-number"},g3={class:"day-events"},v3={key:0,class:"event-dot"},y3=["onClick"],b3={class:"event-title"},_3={class:"event-time"},w3=(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:l}=Ja(),i=(0,n.computed)(()=>{let u="en";try{u=ir().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(),y=[],b=new Date(u,d,0).getDate();for(let v=p-1;v>=0;v--){const _=new Date(u,d-1,b-v);y.push({date:_,events:[],isToday:!1,isCurrentMonth:!1})}for(let v=1;v<=m;v++){const _=new Date(u,d,v),w=r.events.filter(k=>{const S=new Date(k.start_time);return S.getDate()===v&&S.getMonth()===d&&S.getFullYear()===u});y.push({date:_,events:w,isToday:_.toDateString()===h,isCurrentMonth:!0})}const g=42-y.length;for(let v=1;v<=g;v++){const _=new Date(u,d+1,v);y.push({date:_,events:[],isToday:!1,isCurrentMonth:!1})}return y});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",f3,[(0,n.createElementVNode)("div",m3,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(i.value,f=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:f,class:"weekday"},(0,n.toDisplayString)(f),1))),128))]),(0,n.createElementVNode)("div",p3,[((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",h3,(0,n.toDisplayString)((0,n.unref)(ct)(f.date,{format:"DD"})),1),(0,n.createElementVNode)("div",g3,[(0,n.unref)(l)?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[f.events.length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",v3)):(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",b3,(0,n.toDisplayString)(m.title),1),(0,n.createElementVNode)("div",_3,(0,n.toDisplayString)((0,n.unref)(ct)(m.start_time,"HH:mm")),1)],12,y3))),128))])],2))),128))])]))}}),k3=ge(w3,[["__scopeId","data-v-0abf6d19"]]),$3={class:"w-100p overflow-hidden m_overflow h-100p grid"},E3=["onMousedown"],C3=["onClick"],S3={class:"overflow-hidden color-white p-025 txt12 h-100p flex gap-1 flex-wrap"},x3={class:"white-space ellipsis-1"},T3={class:"txt10 opacity-8 user-select-none"},N3={class:"color-primary txt-12 p-025"},pt=60,Qt=60,al=30,B3=(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)(),l={start:0,end:24},i=(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,O=>{c.value=O.map(P=>({start_time:new Date(P.start_time),end_time:new Date(P.end_time)}))},{immediate:!0});const d=(0,n.computed)(()=>{const O=[],P=new Date(r.startDate),U=r.weekStart==="Sunday"?0:1,T=P.getDay();P.setDate(P.getDate()-T+U),P.setHours(0,0,0,0);for(let z=0;z<7;z++){const W=new Date(P);W.setDate(P.getDate()+z),O.push(W)}return O});function f(O){return Math.round(O/al)*al}function m(O){return c.value.filter(P=>{const U=new Date(P.start_time);return U.getFullYear()===O.getFullYear()&&U.getMonth()===O.getMonth()&&U.getDate()===O.getDate()}).map(P=>{const U=new Date(P.start_time).getHours()*60+new Date(P.start_time).getMinutes(),T=new Date(P.end_time).getHours()*60+new Date(P.end_time).getMinutes();return{top:U/Qt*pt,height:(T-U)/Qt*pt,slot:P}})}function p(O){if(!u.value.isDragging||u.value.dayIndex!==O)return null;const P=Math.min(u.value.startMinute,u.value.currentMinute),U=Math.max(u.value.startMinute,u.value.currentMinute);return{top:P/Qt*pt,height:(U-P)/Qt*pt,mode:u.value.mode}}function h(O,P){return c.value.some(U=>{const T=new Date(U.start_time);if(T.getFullYear()!==O.getFullYear()||T.getMonth()!==O.getMonth()||T.getDate()!==O.getDate())return!1;const z=T.getHours()*60+T.getMinutes(),W=new Date(U.end_time).getHours()*60+new Date(U.end_time).getMinutes();return P>=z&&P<W})}function y(O,P){if(!r.availabilityEditable)return;O.preventDefault(),O.stopPropagation();const U=d.value[P],T=f(D(O.clientY));u.value={isDragging:!0,mode:h(U,T)?"remove":"add",dayIndex:P,startMinute:T,currentMinute:T+al},document.addEventListener("mousemove",b),document.addEventListener("mouseup",g)}function b(O){if(!u.value.isDragging)return;const P=f(D(O.clientY));u.value.currentMinute=P}function g(){if(!u.value.isDragging)return;const{dayIndex:O,startMinute:P,currentMinute:U,mode:T}=u.value,z=d.value[O],W=Math.min(P,U),Y=Math.max(P,U);if(Y-W<al){u.value.isDragging=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",g);return}const ne=new Date(z);ne.setHours(Math.floor(W/60),W%60,0,0);const ve=new Date(z);if(ve.setHours(Math.floor(Y/60),Y%60,0,0),T==="add"){const X=c.value.filter(ue=>{const we=new Date(ue.start_time);return we.getFullYear()!==z.getFullYear()||we.getMonth()!==z.getMonth()||we.getDate()!==z.getDate()}),se=c.value.filter(ue=>{const we=new Date(ue.start_time);return we.getFullYear()===z.getFullYear()&&we.getMonth()===z.getMonth()&&we.getDate()===z.getDate()});se.push({start_time:ne,end_time:ve}),se.sort((ue,we)=>new Date(ue.start_time).getTime()-new Date(we.start_time).getTime());const ie=[];for(const ue of se)if(ie.length===0)ie.push({start_time:new Date(ue.start_time),end_time:new Date(ue.end_time)});else{const we=ie[ie.length-1];new Date(ue.start_time).getTime()<=new Date(we.end_time).getTime()?we.end_time=new Date(Math.max(new Date(we.end_time).getTime(),new Date(ue.end_time).getTime())):ie.push({start_time:new Date(ue.start_time),end_time:new Date(ue.end_time)})}c.value=[...X,...ie]}else{const X=[];for(const se of c.value){const ie=new Date(se.start_time);if(ie.getFullYear()!==z.getFullYear()||ie.getMonth()!==z.getMonth()||ie.getDate()!==z.getDate()){X.push(se);continue}const ue=new Date(se.start_time).getTime(),we=new Date(se.end_time).getTime(),ce=ne.getTime(),ke=ve.getTime();if(we<=ce||ue>=ke){X.push(se);continue}ue<ce&&X.push({start_time:new Date(ue),end_time:new Date(ce)}),we>ke&&X.push({start_time:new Date(ke),end_time:new Date(we)})}c.value=X}o("availabilityChange",c.value),u.value.isDragging=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",g)}const v=(0,n.ref)(0),_=(0,n.ref)(!1),w=(0,n.ref)(),k=(0,n.ref)(),S=(0,n.ref)(),E=(0,n.ref)([]),$=(0,n.ref)(),I=(0,n.ref)();function D(O){if(!$.value)return 0;const P=O-$.value.getBoundingClientRect().top;return Math.max(0,Math.min(P/pt*Qt,1440))}const R=(0,n.computed)(()=>{const O=[];for(let P=l.start;P<l.end;P++)for(let U=0;U<60;U+=Qt)O.push({hour:P,minute:U,time:`${P.toString().padStart(2,"0")}:${U.toString().padStart(2,"0")}`});return O}),M=(0,n.computed)(()=>{if(!s.value.isDragging||!s.value.startTime||!s.value.endTime)return null;const O=s.value.startTime.getHours()*60+s.value.startTime.getMinutes(),P=s.value.endTime.getHours()*60+s.value.endTime.getMinutes();return{top:O/Qt*pt,height:Math.max((P-O)/Qt*pt,30)}}),N=(0,n.computed)(()=>{const O=[],P={};return r.events.forEach(U=>{const T=new Date(U.start_time),z=new Date(U.end_time),W=d.value.findIndex(ie=>ie.getDate()===T.getDate()&&ie.getMonth()===T.getMonth()&&ie.getFullYear()===T.getFullYear());if(W===-1)return;const Y=T.getHours()*60+T.getMinutes(),ne=z.getHours()*60+z.getMinutes(),ve=Y/Qt*pt,X=Math.max((ne-Y)/Qt*pt,30),se={...U,top:ve,height:X,left:0,width:100,overlappingEvents:0,position:0};P[W]||(P[W]=[]),P[W].push(se)}),Object.entries(P).forEach(([U,T])=>{T.sort((Y,ne)=>new Date(Y.start_time).getTime()-new Date(ne.start_time).getTime());const z=[];let W=[];T.forEach(Y=>{W.length===0?W=[Y]:W.some(ne=>{const ve=new Date(Y.start_time).getTime(),X=new Date(Y.end_time).getTime(),se=new Date(ne.start_time).getTime(),ie=new Date(ne.end_time).getTime();return!(X<=se||ve>=ie)})?W.push(Y):(W.length>0&&z.push([...W]),W=[Y])}),W.length>0&&z.push(W),z.forEach(Y=>{if(Y.length>1){const ve=(100-2*(Y.length-1))/Y.length;Y.forEach((X,se)=>{X.overlappingEvents=Y.length,X.position=se,X.width=ve,X.left=se*(ve+2)})}O.push(...Y)})}),O});function A(O,P){if(!i.value||!S.value||!$.value)return;let U=-1;for(let Y=0;Y<E.value.length;Y++){const ne=E.value[Y];if(!ne)continue;const ve=ne.getBoundingClientRect();if(O.clientX>=ve.left&&O.clientX<=ve.right){U=Y;break}}if(U===-1)return;const T=E.value[U].getBoundingClientRect(),z=$.value.getBoundingClientRect();s.value.isDragging=!0,s.value.startDay=U,s.value.endDay=U,s.value.start={x:T.left-z.left,y:O.clientY-z.top},s.value.end={x:T.right-z.left,y:O.clientY-z.top};const W=B(O.clientY,P);s.value.startTime=W,document.addEventListener("mousemove",F),document.addEventListener("mouseup",V)}function F(O){if(!i.value||!s.value.isDragging||!s.value.start||!E.value.length||!S.value||!$.value)return;let P=-1;for(let U=0;U<E.value.length;U++){const T=E.value[U];if(!T)continue;const z=T.getBoundingClientRect();if(O.clientX>=z.left&&O.clientX<=z.right){P=U;break}}if(P!==-1&&(s.value.endDay=P,s.value.end={x:s.value.start.x,y:O.clientY-$.value.getBoundingClientRect().top},P>=0&&P<d.value.length)){const U=new Date(d.value[s.value.startDay]);U.setHours(0,0,0,0);const T=B(O.clientY,U);s.value.endTime=T}}function V(){if(!i.value||!s.value.isDragging||!s.value.startTime||!s.value.endTime)return;let O=new Date(s.value.startTime),P=new Date(s.value.endTime);P<O&&([O,P]=[P,O]),o("eventCreate",{start_time:O,end_time:P}),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",V)}function B(O,P){if(!$.value)return new Date(P);const U=O-$.value.getBoundingClientRect().top,T=Qt,z=U/pt,W=Math.floor(z*T),Y=new Date(P);Y.setHours(Math.floor(W/60));const ne=Math.round(W%60/5)*5;return Y.setMinutes(ne),Y.setSeconds(0),Y.setMilliseconds(0),Y}function j(){const O=new Date;_.value=d.value.some(P=>P.getDate()===O.getDate()&&P.getMonth()===O.getMonth()&&P.getFullYear()===O.getFullYear()),v.value=(O.getHours()*60+O.getMinutes())/Qt*pt}function Q(O,P){if(!a.eventContent){o("eventClick",O);return}if(P){const U=P.currentTarget.getBoundingClientRect();o("openPopover",O,{top:U.top+window.scrollY+U.height/2,left:U.left+window.scrollX+U.width+10})}else o("openPopover",O)}function K(O,P){for(;E.value.length<=P;)E.value.push(null);O?E.value[P]=O instanceof Element?O:O.$el:E.value[P]=null}function re(O){I.value&&(I.value.scrollTop=O*pt)}return(0,n.onMounted)(()=>{j(),w.value=setInterval(j,6e4),(0,n.nextTick)(()=>{re(6)})}),(0,n.onUnmounted)(()=>{document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",V),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",g),w.value&&clearInterval(w.value)}),(O,P)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",$3,[(0,n.createElementVNode)("div",{ref_key:"calendarGrid",ref:S,class:"weekGrid border-bottom me-1"},[P[1]||(P[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)(ct)(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)(ct)(U,{format:"DD"})),3)]))),128))],512),(0,n.createElementVNode)("div",{ref_key:"scrollableContainer",ref:I,class:"overflow h-100p pe-05"},[(0,n.createElementVNode)("div",{ref_key:"dayColumnsContainer",ref:$,class:"weekGrid border-end relative"},[(0,n.createElementVNode)("div",{ref_key:"timeSlotsContainer",ref:k},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(R.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:`${v.value}px`})},[...P[2]||(P[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,T)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:U.toISOString(),ref_for:!0,ref:z=>K(z,T),class:"day-column top bottom border-start relative",onMousedown:z=>r.availabilityEditable?y(z,T):A(z,U)},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(R.value,z=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:`line-${z.time}`},[(0,n.createElementVNode)("div",{class:"hour-line absolute start end pointer-events-none",style:(0,n.normalizeStyle)({top:`${z.hour*pt}px`})},null,4),(0,n.createElementVNode)("div",{class:"sub-hour-line absolute start end pointer-events-none",style:(0,n.normalizeStyle)({top:`${z.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:`${z.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),(z,W)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:`avail-${W}`,class:(0,n.normalizeClass)(["availability-block absolute start end",{"availability-editable":r.availabilityEditable}]),style:(0,n.normalizeStyle)({top:`${z.top}px`,height:`${z.height}px`})},null,6))),128)),p(T)?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(["availability-preview absolute start end pointer-events-none",{"avail-remove":p(T).mode==="remove"}]),style:(0,n.normalizeStyle)({top:`${p(T).top}px`,height:`${p(T).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)(N.value.filter(z=>new Date(z.start_time).toDateString()===U.toDateString()),z=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:z.id,class:"event absolute radius-05 overflow-hidden pointer transition z-1 opacity-8 border",style:(0,n.normalizeStyle)({top:`${z.top}px`,height:`${z.height}px`,left:`${z.left}%`,width:`${z.width}%`,backgroundColor:z.color||"var(--bgl-primary)"}),onMousedown:P[0]||(P[0]=(0,n.withModifiers)(()=>{},["stop"])),onClick:(0,n.withModifiers)(W=>Q(z,W),["stop"])},[(0,n.createElementVNode)("div",S3,[(0,n.createElementVNode)("div",x3,(0,n.toDisplayString)(z.title),1),(0,n.createElementVNode)("div",T3,(0,n.toDisplayString)((0,n.unref)(ct)(z.start_time,{format:"HH:mm"}))+" - "+(0,n.toDisplayString)((0,n.unref)(ct)(z.end_time,{format:"HH:mm"})),1)])],44,C3))),128))],40,E3))),128)),i.value&&s.value.isDragging&&s.value.start&&s.value.end&&M.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:`${M.value.top}px`,width:`${E.value[s.value.startDay]?.offsetWidth||100}px`,height:`${M.value.height}px`})},[(0,n.createElementVNode)("div",N3,(0,n.toDisplayString)(s.value.startTime?(0,n.unref)(ct)(s.value.startTime,{format:"HH:mm"}):"")+" - "+(0,n.toDisplayString)(s.value.endTime?(0,n.unref)(ct)(s.value.endTime,{format:"HH:mm"}):""),1)],4)):(0,n.createCommentVNode)("",!0)],512)],512),P[3]||(P[3]=(0,n.createElementVNode)("div",{class:"border-bottom me-1"},null,-1))]))}}),D3=ge(B3,[["__scopeId","data-v-0850fe4c"]]),A3={class:"calendar"},M3={class:"flex m_block p-1"},L3={class:"txt-light my-0 m_pb-05"},P3={class:"ms-auto flex gap-025 m_flex-wrap"},I3={class:"flex gap-025"},V3=(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:l}=nt(),i=(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:D3,Month:k3,Day:d3,Agenda:QS},m=(0,n.computed)(()=>Object.keys(f).map(I=>({label:l(`calendar.views.${I.toLowerCase()}`),value:I}))),p={Week:"weeks",Month:"months",Day:"days",Agenda:"days"},h=(0,n.computed)(()=>{const I=new Date(i.value);let D=new Date(i.value);const R=o.weekStart==="Sunday"?0:1;switch(s.value){case"Week":I.setDate(I.getDate()-I.getDay()+R),D.setDate(I.getDate()+6);break;case"Month":case"Agenda":I.setDate(-6),D=new Date(I.getFullYear(),I.getMonth()+2,7);break;case"Day":D.setDate(D.getDate()+1);break;default:break}return{start:I,end:D}}),y=(0,n.computed)(()=>({visibleDateRange:h.value,currentDate:i.value,currentView:s.value}));function b(I){i.value=new Date(I),a("dateChange",y.value)}function g(I){a("dateChange",{visibleDateRange:h.value,currentDate:I,currentView:s.value})}function v(I){s.value=I,a("viewChange",y.value)}function _(I){a("eventClick",I)}function w(I){a("eventCreate",I)}function k(I){a("eventUpdate",I)}function S(I){a("eventDelete",I)}function E(I,D){c.value=I,d.value=D,u.value=!0}function $(){u.value=!1,c.value=void 0,d.value=void 0}return t({visibleDateRange:h,currentView:s,currentDate:i,openPopover:E,closePopover:$}),(0,n.onMounted)(()=>{a("ready",y.value)}),(I,D)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",A3,[(0,n.createElementVNode)("div",M3,[(0,n.createElementVNode)("h3",L3,[(0,n.createElementVNode)("b",null,(0,n.toDisplayString)((0,n.unref)(ct)(i.value,"MMMM")),1),(0,n.createTextVNode)(" "+(0,n.toDisplayString)((0,n.unref)(ct)(i.value,"YYYY")),1)]),(0,n.createElementVNode)("div",P3,[e.viewSwitcher==="tabs"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Ri),{key:0,size:"sm","model-value":s.value,tabs:m.value,group:"calendar-view","onUpdate:modelValue":D[0]||(D[0]=R=>v(R)),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)(Bt),{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,(R,M)=>(0,n.createVNode)((0,n.unref)(An),{key:M,thin:"",title:(0,n.unref)(l)(`calendar.views.${M.toLowerCase()}`),onClick:N=>v(M)},null,8,["title","onClick"])),64))]),_:1},8,["value"])),(0,n.createElementVNode)("div",I3,[(0,n.createVNode)((0,n.unref)(oe),{icon:"calendar",size:"sm",class:"txt12",color:"gray",value:(0,n.unref)(l)("calendar.today"),onClick:D[1]||(D[1]=R=>b(new Date))},null,8,["value"]),(0,n.createVNode)((0,n.unref)(oe),{icon:"chevron_left",color:"gray",size:"sm",class:"",disabled:s.value==="Agenda",onClick:D[2]||(D[2]=R=>b((0,n.unref)(mn)(i.value,{[p[s.value]]:-1})))},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(oe),{icon:"chevron_right",color:"gray",size:"sm",class:"",disabled:s.value==="Agenda",onClick:D[3]||(D[3]=R=>b((0,n.unref)(mn)(i.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":i.value,"week-start":e.weekStart,"availability-mode":o.availabilityMode,"availability-editable":o.availabilityEditable,"availability-slots":o.availabilitySlots,onEventClick:_,onEventCreate:w,onEventUpdate:k,onEventDelete:S,onDateChange:D[4]||(D[4]=R=>s.value==="Agenda"?g(R):b(R)),onOpenPopover:E,onAvailabilityChange:D[5]||(D[5]=R=>a("availabilityChange",R))},{eventContent:(0,n.withCtx)(({event:R,close:M})=>[(0,n.renderSlot)(I.$slots,"eventContent",{event:R,close:M},void 0,!0)]),_:3},40,["events","start-date","week-start","availability-mode","availability-editable","availability-slots"])),(0,n.createVNode)(VS,{event:c.value,position:d.value,show:u.value,"has-event-content-slot":!!I.$slots.eventContent,onClose:$,onEventClick:_},{eventContent:(0,n.withCtx)(({event:R,close:M})=>[(0,n.renderSlot)(I.$slots,"eventContent",{event:R,close:M},void 0,!0)]),_:3},8,["event","position","show","has-event-content-slot"])]))}}),O3=ge(V3,[["__scopeId","data-v-91aaf448"]]),R3=new Set(["div","span","p"]),F3=new Set(["img","iframe"]);function r0(e){const{mode:t="form",getFormData:r,onUpdateModelValue:o,includeUnset:a=!1}=e;function l(u,d=0){if(u==null)return"";if(typeof u!="object")return String(u);if(Array.isArray(u))return u.map(h=>l(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
10
|
${p.map(([h,y])=>`${m}${h}: ${l(y,d+1)}`).join(`,
|
|
11
11
|
`)}
|
|
12
12
|
${f}}`:p.map(([h,y])=>`${h}: ${typeof y=="object"&&y!==null?l(y,d+1):String(y)}`).join(`
|
|
@@ -21,13 +21,13 @@ ${f}}`:p.map(([h,y])=>`${h}: ${typeof y=="object"&&y!==null?l(y,d+1):String(y)}`
|
|
|
21
21
|
])(${t})(?!${t})`,"g")}match({password:t}){const r=[];if(t.length===0)return r;const o=wc.getMostUsedSeparatorChar(t);if(o===void 0)return r;const a=wc.getSeparatorRegex(o);for(const l of t.matchAll(a)){if(l.index===void 0)continue;const i=l.index+1;r.push({pattern:"separator",token:o,i,j:i})}return r}},m8=class{constructor(){this.matchers={date:DN,dictionary:HN,regex:WN,repeat:s8,sequence:c8,spatial:u8,separator:f8}}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(l=>{yc(t,l)}),r.push(a)):yc(t,a)}),r.length>0?new Promise((o,a)=>{Promise.all(r).then(()=>{o(To(t))}).catch(l=>{a(l)})}):To(t)}},L0=1,P0=L0*60,I0=P0*60,V0=I0*24,O0=V0*31,Uf=O0*12,cs={second:L0,minute:P0,hour:I0,day:V0,month:O0,year:Uf,century:Uf*100},p8=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(cs),a=o.findIndex(l=>e<cs[l]);return a>-1&&(t=o[a-1],a!==0?r=Math.round(e/cs[t]):t="ltSecond"),this.translate(t,r)}},h8=(()=>null),g8=(()=>({warning:Ee.translations.warnings.dates,suggestions:[Ee.translations.suggestions.dates]})),v8=(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},y8=(e,t)=>{let r=null;return t&&(r=Ee.translations.warnings.wordByItself),r},b8=(e,t)=>t?Ee.translations.warnings.namesByThemselves:Ee.translations.warnings.commonNames,_8=(e,t)=>{let r=null;const o=e.dictionaryName,a=o==="lastnames"||o.toLowerCase().includes("firstnames");return o==="passwords"?r=v8(e,t):o.includes("wikipedia")?r=y8(e,t):a?r=b8(e,t):o==="userInputs"&&(r=Ee.translations.warnings.userInputs),r},w8=((e,t)=>{const r=_8(e,t),o=[],a=e.token;return a.match(D0)?o.push(Ee.translations.suggestions.capitalization):a.match(A0)&&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}}),k8=(e=>e.regexName==="recentYear"?{warning:Ee.translations.warnings.recentYears,suggestions:[Ee.translations.suggestions.recentYears,Ee.translations.suggestions.associatedYears]}:{warning:null,suggestions:[]}),$8=(e=>{let t=Ee.translations.warnings.extendedRepeat;return e.baseToken.length===1&&(t=Ee.translations.warnings.simpleRepeat),{warning:t,suggestions:[Ee.translations.suggestions.repeated]}}),E8=(()=>({warning:Ee.translations.warnings.sequences,suggestions:[Ee.translations.suggestions.sequences]})),C8=(e=>{let t=Ee.translations.warnings.keyPattern;return e.turns===1&&(t=Ee.translations.warnings.straightRow),{warning:t,suggestions:[Ee.translations.suggestions.longerKeyboardPattern]}}),S8=(()=>null),Hf={warning:null,suggestions:[]},x8=class{constructor(){this.matchers={bruteforce:h8,date:g8,dictionary:w8,regex:k8,repeat:$8,sequence:E8,spatial:C8,separator:S8},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 Hf;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):Hf}},R0=()=>new Date().getTime(),T8=(e,t,r)=>{const o=new x8,a=new p8,l=_c.mostGuessableMatchSequence(t,e),i=R0()-r,s=a.estimateAttackTimes(l.guesses);return{calcTime:i,...l,...s,feedback:o.getFeedback(s.score,l.sequence)}},N8=(e,t)=>(t&&Ee.extendUserInputsDictionary(t),new m8().match(e)),B8=(e,t)=>{const r=R0(),o=N8(e,t);if(o instanceof Promise)throw new Error("You are using a Promised matcher, please use `zxcvbnAsync` for it.");return T8(o,e,r)},D8={class:"m-password position-bottom-end flex column justify-content-center"},A8={key:0,class:"password-strength-container absolute start end -bottom-1-5"},M8={class:"password-strength-bar pointer overflow-hidden round"},L8=(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}=nt(),o=(0,n.computed)(()=>{const{strengthMeter:h,modelValue:y,...b}=t;return b}),a=(0,n.useModel)(e,"modelValue"),l=(0,n.useModel)(e,"showPwd"),i=(0,n.computed)(()=>l.value?"visibility_off":"visibility"),s=(0,n.computed)(()=>l.value?"text":"password"),c=(0,n.computed)(()=>{const h=a.value;return!t.strengthMeter||h==null||h.length===0?null:B8(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:y,suggestions:b}}=h;return[...y?[y]:[],...b].join(" ")});return(h,y)=>{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":y[0]||(y[0]=g=>a.value=g)},o.value,{type:s.value,class:"mb-0"}),null,16,["modelValue","type"]),(0,n.createElementVNode)("div",D8,[(0,n.createVNode)((0,n.unref)(oe),{flat:"",thin:"",class:"mx-05",icon:i.value,onClick:y[1]||(y[1]=g=>l.value=!l.value)},null,8,["icon"])]),t.strengthMeter?((0,n.openBlock)(),(0,n.createElementBlock)("div",A8,[(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",M8,[(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)}}}),F0=L8;function aa(e){return e==null?"":typeof e=="object"?e.label??String(e.value??""):String(e)}function gr(e){if(e!=null)return typeof e=="object"?e.value:e}function Sa(e){if(!(e==null||typeof e!="object"))return e.icon}function z0(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 P8={key:0,class:"group-label"},I8={key:0},V8=["for"],O8=["id","disabled","name","value","required"],R8=["src","alt"],F8={class:""},z8=["innerHTML"],U8={key:1,class:"txt-gray txt-12 m-0 pt-025"},H8=(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:{},wrapperClass:{},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=>({v8157b510:b.activeBgColor||"var(--bgl-primary-light)",v2fc0d208:b.activeTextColor||null}));const r=e,o=t,{shellClass:a,shellStyle:l}=it(r),i=(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=>z0(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 y(){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)(l))},[e.label?((0,n.openBlock)(),(0,n.createElementBlock)("p",P8,[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)($e)(e.label))+" ",1),e.required?((0,n.openBlock)(),(0,n.createElementBlock)("span",I8,"*")):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["radio-group-wrap",e.wrapperClass])},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(u.value,(v,_)=>((0,n.openBlock)(),(0,n.createElementBlock)("label",{key:v.id||`${i.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:v.id||`${i.value}-${_}`,style:(0,n.normalizeStyle)({backgroundColor:e.bgColor,borderColor:e.borderColor})},[(0,n.withDirectives)((0,n.createElementVNode)("input",{id:v.id||`${i.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:i.value,value:v.value,required:e.required,onFocus:p,onBlur:h,onChange:y},null,42,O8),[[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})},[v.imgSrc?((0,n.openBlock)(),(0,n.createElementBlock)("img",{key:0,class:"py-025 radius-05 m_w40 object-fit",height:"40",width:"40",src:v.imgSrc,alt:v.imgAlt},null,8,R8)):v.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:1,icon:v.icon,size:1},null,8,["icon"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",F8,[v.label?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"m-0 m_txt-14 line-height-14",innerHTML:(0,n.unref)(gv)(v.label)},null,8,z8)):(0,n.createCommentVNode)("",!0),v.subLabel?((0,n.openBlock)(),(0,n.createElementBlock)("p",U8,(0,n.toDisplayString)(v.subLabel),1)):(0,n.createCommentVNode)("",!0)]),(0,n.renderSlot)(b.$slots,"radioItem",(0,n.mergeProps)({ref_for:!0},v),void 0,!0)],6),e.deletable?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{key:0,class:"ms-auto",flat:"",thin:"",icon:"delete",onClick:w=>b.$emit("delete",v)},null,8,["onClick"])):(0,n.createCommentVNode)("",!0)],14,V8))),128))],2)],6))}}),U0=ge(H8,[["__scopeId","data-v-4746e87d"]]),W8=["dir"],j8={key:0,class:"label"},q8={class:"range-slider relative w-100"},G8=["id","value","min","max","step","required","disabled","aria-label"],Y8=["value","min","max","step","required","disabled"],X8={key:1,class:"txt-center txt-14 user-select-none range-slider-txt flex space-between opacity-4 mx-05"},K8=(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:{},size:{},hideMinMax:{type:Boolean},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:l=100,step:i=1,multiRange:s=!1,formatValue:c=k=>k.toString()}=r,u=(0,n.ref)(null),d=(0,n.ref)(!1);(0,n.onMounted)(()=>{r.rtl===void 0&&u.value&&(d.value=getComputedStyle(u.value).direction==="rtl")});const f=(0,n.ref)(Array.isArray(r.modelValue)?r.modelValue[0]:r.modelValue??a),m=(0,n.ref)(Array.isArray(r.modelValue)?r.modelValue[1]:l),p=(0,n.computed)(()=>Math.min(Math.max(f.value,a),s?m.value:l)),h=(0,n.computed)(()=>Math.max(Math.min(m.value,l),f.value)),y=(0,n.computed)(()=>(p.value-a)/(l-a)*100),b=(0,n.computed)(()=>(h.value-a)/(l-a)*100);(0,n.watch)(()=>r.modelValue,k=>{Array.isArray(k)&&s?(f.value=k[0]??a,m.value=k[1]??l):Array.isArray(k)||(f.value=k??a,m.value=l)},{immediate:!0});function g(k,S){S?f.value=k:m.value=k,o("update:modelValue",s?[p.value,h.value]:p.value)}const v=(0,n.computed)(()=>s?{insetInlineStart:`${y.value}%`,width:`${b.value-y.value}%`}:{insetInlineStart:"0",width:`${y.value}%`}),_=(0,n.computed)(()=>c(p.value)),w=(0,n.computed)(()=>c(h.value));return(k,S)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"rootEl",ref:u,dir:e.rtl===void 0?void 0:e.rtl?"rtl":"ltr",class:(0,n.normalizeClass)({"range-sm":e.size==="sm"}),style:(0,n.normalizeStyle)([e.minWidth?{minWidth:e.minWidth}:{},e.maxWidth?{maxWidth:e.maxWidth}:{},e.activeColor?{"--bgl-range-thumb-color":e.activeColor}:{},e.activeColor?{"--bgl-input-label-active-color":e.activeColor}:{},e.labelActiveColor?{"--bgl-input-label-active-color":e.labelActiveColor}:{}])},[r.label?((0,n.openBlock)(),(0,n.createElementBlock)("label",j8,(0,n.toDisplayString)((0,n.unref)($e)(r.label)),1)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",q8,[(0,n.createElementVNode)("input",{id:e.id,value:p.value,class:"from",type:"range",min:(0,n.unref)(a),max:(0,n.unref)(l),step:(0,n.unref)(i),required:e.required,disabled:e.disabled,"aria-label":(0,n.unref)(s)?"Minimum value":"Value",onInput:S[0]||(S[0]=E=>g(+E.target.value,!0))},null,40,G8),(0,n.unref)(s)?((0,n.openBlock)(),(0,n.createElementBlock)("input",{key:0,value:h.value,class:"to",type:"range",min:(0,n.unref)(a),max:(0,n.unref)(l),step:(0,n.unref)(i),required:e.required,disabled:e.disabled,"aria-label":"Maximum value",onInput:S[1]||(S[1]=E=>g(+E.target.value,!1))},null,40,Y8)):(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)({...v.value,background:e.activeColor||"var(--bgl-input-label-active-color, var(--bgl-primary))"})},null,4)],4),p.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":`${y.value}`})},[(0,n.unref)(s)?(0,n.createCommentVNode)("",!0):(0,n.renderSlot)(k.$slots,"progress",{key:0,progress:_.value,min:(0,n.unref)(c)((0,n.unref)(a)),max:(0,n.unref)(c)((0,n.unref)(l))},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(_.value),1)],!0),(0,n.unref)(s)?(0,n.renderSlot)(k.$slots,"from",{key:1,from:_.value,to:w.value,min:(0,n.unref)(c)((0,n.unref)(a)),max:(0,n.unref)(c)((0,n.unref)(l))},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(_.value),1)],!0):(0,n.createCommentVNode)("",!0)],4)):(0,n.createCommentVNode)("",!0),(0,n.unref)(s)&&h.value!==(0,n.unref)(l)?((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":`${b.value}`})},[(0,n.renderSlot)(k.$slots,"to",{to:w.value,from:_.value,min:(0,n.unref)(c)((0,n.unref)(a)),max:(0,n.unref)(c)((0,n.unref)(l))},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(w.value),1)],!0)],4)):(0,n.createCommentVNode)("",!0)]),e.hideMinMax?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("p",X8,[(0,n.renderSlot)(k.$slots,"min",{max:(0,n.unref)(c)((0,n.unref)(l)),min:(0,n.unref)(c)((0,n.unref)(a)),from:_.value,to:w.value,progress:_.value},()=>[(0,n.createElementVNode)("span",null,(0,n.toDisplayString)((0,n.unref)(c)((0,n.unref)(a))),1)],!0),(0,n.renderSlot)(k.$slots,"max",{max:(0,n.unref)(c)((0,n.unref)(l)),min:(0,n.unref)(c)((0,n.unref)(a)),from:_.value,to:w.value,progress:_.value},()=>[(0,n.createElementVNode)("span",null,(0,n.toDisplayString)((0,n.unref)(c)((0,n.unref)(l))),1)],!0)]))],14,W8))}}),Du=ge(K8,[["__scopeId","data-v-38ba2d44"]]),J8={key:0,class:"label-text"},Z8={key:0},Q8={class:"flex gap-05"},eB=["disabled"],tB={key:2,class:"ms-auto ps-05 me-05"},nB=["value"],rB={key:1,class:"error-message"},oB={key:0,class:"opacity-7 txt-small light"},aB=["aria-selected","onClick","onKeydown"],lB={class:"flex gap-05"},iB={class:"block"},sB={key:0,class:"selectinput-option opacity-3 pointer-events-none"},cB=(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}=nt(),{shellClass:l,shellStyle:i}=it(r),s=V=>typeof V=="function",c=(0,n.ref)(),u=(0,n.ref)(),d=(0,n.ref)([]),f=V=>gr(V),m=(0,n.computed)(()=>d.value.length),p=(0,n.ref)(""),h=(0,n.ref)(),y=(0,n.ref)(!1),b=(0,n.ref)(!1),g=(0,n.computed)(()=>$e(r.placeholder)??a("select.placeholder")),v=(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(V=>aa(V)).join(", ")}... +${m.value-4}`:d.value.map(V=>aa(V)).join(", ")),w=(0,n.computed)(()=>r.searchPlaceholder??_.value??a("select.search")),{results:k,isLoading:S}=Oy({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),$=(0,n.ref)();function I(V){if(!b.value){b.value=!0,setTimeout(()=>{I(V)},210);return}V==="up"?E.value=E.value>0?E.value-1:k.value.length-1:V==="down"&&(E.value=E.value<k.value.length-1?E.value+1:0),setTimeout(()=>{const B=$.value?.children[E.value];B?B.focus():E.value=-1},10)}const D=V=>d.value.find(B=>f(V)===f(B))!==void 0;function R(){if(!$.value||m.value===0)return;const V=k.value.findIndex(j=>D(j));if(V===-1)return;const B=$.value.children[V];B&&B.scrollIntoView({block:"center",behavior:"instant"})}function M(){b.value=!0}function N(V){y.value=!0;const B=d.value.findIndex(Q=>f(Q)===f(V));if(B>-1)d.value.splice(B,1);else if(r.multiselect){const Q=[...d.value];Q.push(V),d.value=Q}else d.value.splice(0,m.value,V);const j=document.activeElement;j&&$.value?.contains(j)&&j.blur(),r.multiselect||(b.value=!1,setTimeout(()=>{u.value?.focus()},0)),A()}function A(){if(r.multiselect)o("update:modelValue",d.value.map(f).filter(V=>V!=null));else{const[V]=d.value;o("update:modelValue",f(V))}}function F(V,B){if(V.length!==B.length)return!1;const j=V.map(f).filter(K=>K!=null).map(String).sort(),Q=B.map(f).filter(K=>K!=null).map(String).sort();return j.every((K,re)=>K===Q[re])}return(0,n.watch)(()=>r.modelValue,V=>{if(r.multiselect){const B=Array.isArray(V)?V:V!=null?[V]:[];F(B,d.value)||d.value.splice(0,m.value,...B)}else if(V==null)d.value.length>0&&(d.value=[]);else{const B=Array.isArray(V)?V[0]:V,j=Array.isArray(r.options)?r.options.find(Q=>f(Q)===f(B))??B:B;j!=null&&!D(j)&&(d.value=[j])}},{immediate:!0}),(0,n.watch)(()=>b.value,V=>{V&&(E.value=-1,setTimeout(()=>{R()},10))}),(0,n.watch)(()=>r.options,()=>{const V=r.options;Array.isArray(V)&&d.value.forEach((B,j)=>{const Q=V.find(K=>f(K)===f(B));Q===void 0?d.value.splice(j,1):d.value.splice(j,1,Q)})},{deep:!0,immediate:!0}),(0,n.watch)(()=>k.value,V=>{s(r.options)&&V.length>0&&d.value.forEach((B,j)=>{const Q=f(B);if(typeof B!="object"||!B.label){const K=V.find(re=>f(re)===Q);K!==void 0&&d.value.splice(j,1,K)}})},{deep:!0,immediate:!0}),(0,n.onMounted)(()=>{const V=r.options;if(r.modelValue==null&&r.defaultValue!==void 0&&Array.isArray(V)){const B=V.find(j=>f(j)===f(r.defaultValue));if(B===void 0)return;d.value=[B]}}),(V,B)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Bt),{ref_key:"dropdown",ref:h,shown:b.value,"onUpdate:shown":B[11]||(B[11]=j=>b.value=j),placement:e.placement,class:(0,n.normalizeClass)(["bagel-input selectinput",[(0,n.unref)(l),{"has-error":!!e.error,underlined:e.underlined,open:b.value,"has-value":m.value>0}]]),style:(0,n.normalizeStyle)((0,n.unref)(i)),"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",J8,[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)($e)(e.label)||(0,n.unref)($e)(e.placeholder)),1),e.required?((0,n.openBlock)(),(0,n.createElementBlock)("span",Z8," *")):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",Q8,[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]=j=>p.value=j),class:"mb-0",placeholder:w.value,icon:"search",onInput:B[1]||(B[1]=j=>y.value=!1),onClick:M,onKeydown:[B[2]||(B[2]=(0,n.withKeys)((0,n.withModifiers)(j=>I("down"),["prevent"]),["down"])),B[3]||(B[3]=(0,n.withKeys)((0,n.withModifiers)(j=>I("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},v.value]]),onClick:B[5]||(B[5]=j=>b.value=!b.value),onKeydown:[B[6]||(B[6]=(0,n.withKeys)((0,n.withModifiers)(j=>I("down"),["prevent"]),["down"])),B[7]||(B[7]=(0,n.withKeys)((0,n.withModifiers)(j=>I("up"),["prevent"]),["up"]))]},[e.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{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)($e)(e.placeholder)||"Select..."),3)),e.clearable&&m.value>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",tB,[(0,n.createVNode)((0,n.unref)(oe),{flat:"",thin:"",icon:"clear",class:"color-gray",onClick:B[4]||(B[4]=j=>{d.value=[],A()})})])):(0,n.createCommentVNode)("",!0),e.disabled?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:3,thin:"",transition:"rotate",icon:b.value?e.underlined?"expand_less":"unfold_less":e.underlined?"expand_more":"unfold_more"},null,8,["icon"]))],42,eB)),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,nB)):(0,n.createCommentVNode)("",!0)]),e.error?((0,n.openBlock)(),(0,n.createElementBlock)("div",rB,(0,n.toDisplayString)(e.error),1)):(0,n.createCommentVNode)("",!0)]),e.helpText?((0,n.openBlock)(),(0,n.createElementBlock)("p",oB,(0,n.toDisplayString)(e.helpText),1)):(0,n.createCommentVNode)("",!0)]),default:(0,n.withCtx)(()=>[(0,n.unref)(S)?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(da),{key:0,count:6,width:"200px",height:"25px",class:"mx-1 my-1"})):(0,n.createCommentVNode)("",!0),(0,n.createVNode)((0,n.unref)(sr),{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:$,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)(k),(j,Q)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:`${String(f(j))}-${Q}`,class:(0,n.normalizeClass)(["selectinput-option hover gap-1 align-items-center",{selected:D(j)}]),role:"option",tabindex:"0","aria-selected":D(j),onClick:K=>N(j),onKeydown:[(0,n.withKeys)(K=>N(j),["enter"]),B[8]||(B[8]=(0,n.withKeys)((0,n.withModifiers)(K=>I("down"),["prevent"]),["down"])),B[9]||(B[9]=(0,n.withKeys)((0,n.withModifiers)(K=>I("up"),["prevent"]),["up"]))]},[e.multiselect?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[D(j)?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:0,size:1.1,icon:"select_check_box"})):(0,n.createCommentVNode)("",!0),D(j)?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:1,class:"opacity-3",icon:"check_box_outline_blank",size:1.1}))],64)):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",lB,[(0,n.unref)(Sa)(j)?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:0,icon:(0,n.unref)(Sa)(j),size:1},null,8,["icon"])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("span",iB,(0,n.toDisplayString)((0,n.unref)(aa)(j)),1)])],42,aB))),128)),(0,n.unref)(k).length===0?((0,n.openBlock)(),(0,n.createElementBlock)("p",sB," No options found ")):(0,n.createCommentVNode)("",!0)],2),(0,n.renderSlot)(V.$slots,"last",{},void 0,!0)]),_:3},8,["style"])]),_:3},8,["shown","placement","class","style"]))}}),Vt=ge(cB,[["__scopeId","data-v-bb079e6e"]]),uB=["title"],dB=["for"],fB={key:0,class:"label-text"},mB={key:0},pB=["id","name","title","autocomplete","type","placeholder","disabled","required","pattern"],hB=["id","name","title","type","rows","placeholder","disabled","required","pattern"],gB={key:3,class:"opacity-7 light"},vB={key:0,class:"error-message"},yB=(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:l,shellStyle:i}=it(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)();kv(()=>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(`
|
|
22
22
|
`).length)),(o.multiline||o.code)&&(g=Math.max(g,4)),g}),f=Ur(()=>{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,v)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["bagel-input text-input",[(0,n.unref)(l),{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)(i)),title:e.title},[(0,n.createElementVNode)("label",{for:e.id},[e.label||e.underlined&&e.placeholder?((0,n.openBlock)(),(0,n.createElementBlock)("span",fB,[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)($e)(e.label)||(0,n.unref)($e)(e.placeholder)),1),e.required?((0,n.openBlock)(),(0,n.createElementBlock)("span",mB," *")):(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":v[0]||(v[0]=_=>c.value=_),name:e.name,title:e.title,autocomplete:e.autocomplete,type:e.type,rows:1,placeholder:e.underlined?" ":(0,n.unref)($e)(e.placeholder)||(0,n.unref)($e)(e.label),disabled:e.disabled,required:e.required},e.nativeInputAttrs,{pattern:s.value,onFocusout:v[1]||(v[1]=(..._)=>e.onFocusout&&e.onFocusout(..._)),onFocus:v[2]||(v[2]=(..._)=>e.onFocus&&e.onFocus(..._)),onInput:p}),null,16,pB)),[[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":v[3]||(v[3]=_=>c.value=_),name:e.name,title:e.title,type:e.type,rows:d.value,placeholder:e.underlined?" ":(0,n.unref)($e)(e.placeholder)||(0,n.unref)($e)(e.label),disabled:e.disabled,required:e.required},e.nativeInputAttrs,{pattern:s.value,onInput:p,onFocusout:v[4]||(v[4]=(..._)=>e.onFocusout&&e.onFocusout(..._))}),null,16,hB)),[[n.vModelText,c.value]]),e.helptext?((0,n.openBlock)(),(0,n.createElementBlock)("p",gB,(0,n.toDisplayString)(e.helptext),1)):(0,n.createCommentVNode)("",!0),e.iconStart?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{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)(be),{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,dB),e.error?((0,n.openBlock)(),(0,n.createElementBlock)("div",vB,(0,n.toDisplayString)(e.error),1)):(0,n.createCommentVNode)("",!0)],14,uB))}}),Fe=ge(yB,[["__scopeId","data-v-bd50d813"]]);function H0(e,t){return function(){return e.apply(t,arguments)}}var{toString:bB}=Object.prototype,{getPrototypeOf:xi}=Object,{iterator:Ti,toStringTag:W0}=Symbol,Ni=(e=>t=>{const r=bB.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),En=e=>(e=e.toLowerCase(),t=>Ni(t)===e),Bi=e=>t=>typeof t===e,{isArray:jr}=Array,No=Bi("undefined");function Oo(e){return e!==null&&!No(e)&&e.constructor!==null&&!No(e.constructor)&&Ft(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var j0=En("ArrayBuffer");function _B(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&j0(e.buffer),t}var wB=Bi("string"),Ft=Bi("function"),q0=Bi("number"),ja=e=>e!==null&&typeof e=="object",kB=e=>e===!0||e===!1,El=e=>{if(Ni(e)!=="object")return!1;const t=xi(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(W0 in e)&&!(Ti in e)},$B=e=>{if(!ja(e)||Oo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},EB=En("Date"),CB=En("File"),SB=e=>!!(e&&typeof e.uri<"u"),xB=e=>e&&typeof e.getParts<"u",TB=En("Blob"),NB=En("FileList"),BB=e=>ja(e)&&Ft(e.pipe);function DB(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var Wf=DB(),jf=typeof Wf.FormData<"u"?Wf.FormData:void 0,AB=e=>{if(!e)return!1;if(jf&&e instanceof jf)return!0;const t=xi(e);if(!t||t===Object.prototype||!Ft(e.append))return!1;const r=Ni(e);return r==="formdata"||r==="object"&&Ft(e.toString)&&e.toString()==="[object FormData]"},MB=En("URLSearchParams"),[LB,PB,IB,VB]=["ReadableStream","Request","Response","Headers"].map(En),OB=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qa(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,a;if(typeof e!="object"&&(e=[e]),jr(e))for(o=0,a=e.length;o<a;o++)t.call(null,e[o],o,e);else{if(Oo(e))return;const l=r?Object.getOwnPropertyNames(e):Object.keys(e),i=l.length;let s;for(o=0;o<i;o++)s=l[o],t.call(null,e[s],s,e)}}function G0(e,t){if(Oo(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 Lr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Y0=e=>!No(e)&&e!==Lr;function kc(...e){const{caseless:t,skipUndefined:r}=Y0(this)&&this||{},o={},a=(l,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const s=t&&typeof i=="string"&&G0(o,i)||i,c=$c(o,s)?o[s]:void 0;El(c)&&El(l)?o[s]=kc(c,l):El(l)?o[s]=kc({},l):jr(l)?o[s]=l.slice():(!r||!No(l))&&(o[s]=l)};for(let l=0,i=e.length;l<i;l++){const s=e[l];if(!s||Oo(s)||(qa(s,a),typeof s!="object"||jr(s)))continue;const c=Object.getOwnPropertySymbols(s);for(let u=0;u<c.length;u++){const d=c[u];KB.call(s,d)&&a(s[d],d)}}return o}var RB=(e,t,r,{allOwnKeys:o}={})=>(qa(t,(a,l)=>{r&&Ft(a)?Object.defineProperty(e,l,{__proto__:null,value:H0(a,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),FB=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zB=(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)},UB=(e,t,r,o)=>{let a,l,i;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),l=a.length;l-- >0;)i=a[l],(!o||o(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=r!==!1&&xi(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},HB=(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},WB=e=>{if(!e)return null;if(jr(e))return e;let t=e.length;if(!q0(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},jB=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xi(Uint8Array)),qB=(e,t)=>{const r=(e&&e[Ti]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},GB=(e,t)=>{let r;const o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},YB=En("HTMLFormElement"),XB=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,a){return o.toUpperCase()+a}),$c=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),{propertyIsEnumerable:KB}=Object.prototype,JB=En("RegExp"),X0=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};qa(r,(a,l)=>{let i;(i=t(a,l,e))!==!1&&(o[l]=i||a)}),Object.defineProperties(e,o)},ZB=e=>{X0(e,(t,r)=>{if(Ft(e)&&["arguments","caller","callee"].includes(r))return!1;const o=e[r];if(Ft(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+"'")})}})},QB=(e,t)=>{const r={},o=a=>{a.forEach(l=>{r[l]=!0})};return jr(e)?o(e):o(String(e).split(t)),r},e5=()=>{},t5=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function n5(e){return!!(e&&Ft(e.append)&&e[W0]==="FormData"&&e[Ti])}var r5=e=>{const t=new WeakSet,r=o=>{if(ja(o)){if(t.has(o))return;if(Oo(o))return o;if(!("toJSON"in o)){t.add(o);const a=jr(o)?[]:{};return qa(o,(l,i)=>{const s=r(l);!No(s)&&(a[i]=s)}),t.delete(o),a}}return o};return r(e)},o5=En("AsyncFunction"),a5=e=>e&&(ja(e)||Ft(e))&&Ft(e.then)&&Ft(e.catch),K0=((e,t)=>e?setImmediate:t?((r,o)=>(Lr.addEventListener("message",({source:a,data:l})=>{a===Lr&&l===r&&o.length&&o.shift()()},!1),a=>{o.push(a),Lr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ft(Lr.postMessage)),l5=typeof queueMicrotask<"u"?queueMicrotask.bind(Lr):typeof process<"u"&&process.nextTick||K0,i5=e=>e!=null&&Ft(e[Ti]),Z={isArray:jr,isArrayBuffer:j0,isBuffer:Oo,isFormData:AB,isArrayBufferView:_B,isString:wB,isNumber:q0,isBoolean:kB,isObject:ja,isPlainObject:El,isEmptyObject:$B,isReadableStream:LB,isRequest:PB,isResponse:IB,isHeaders:VB,isUndefined:No,isDate:EB,isFile:CB,isReactNativeBlob:SB,isReactNative:xB,isBlob:TB,isRegExp:JB,isFunction:Ft,isStream:BB,isURLSearchParams:MB,isTypedArray:jB,isFileList:NB,forEach:qa,merge:kc,extend:RB,trim:OB,stripBOM:FB,inherits:zB,toFlatObject:UB,kindOf:Ni,kindOfTest:En,endsWith:HB,toArray:WB,forEachEntry:qB,matchAll:GB,isHTMLForm:YB,hasOwnProperty:$c,hasOwnProp:$c,reduceDescriptors:X0,freezeMethods:ZB,toObjectSet:QB,toCamelCase:XB,noop:e5,toFiniteNumber:t5,findKey:G0,global:Lr,isContextDefined:Y0,isSpecCompliantForm:n5,toJSONObject:r5,isAsyncFn:o5,isThenable:a5,setImmediate:K0,asap:l5,isIterable:i5},s5=Z.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"]),c5=e=>{const t={};let r,o,a;return e&&e.split(`
|
|
23
23
|
`).forEach(function(i){a=i.indexOf(":"),r=i.substring(0,a).trim().toLowerCase(),o=i.substring(a+1).trim(),!(!r||t[r]&&s5[r])&&(r==="set-cookie"?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)}),t};function u5(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 d5=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),f5=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Au(e,t){return Z.isArray(e)?e.map(r=>Au(r,t)):u5(String(e).replace(t,""))}const m5=e=>Au(e,d5),p5=e=>Au(e,f5);function J0(e){const t=Object.create(null);return Z.forEach(e.toJSON(),(r,o)=>{t[o]=p5(r)}),t}var qf=Symbol("internals");function qo(e){return e&&String(e).trim().toLowerCase()}function Cl(e){return e===!1||e==null?e:Z.isArray(e)?e.map(Cl):m5(String(e))}function h5(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 g5=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function us(e,t,r,o,a){if(Z.isFunction(o))return o.call(this,t,r);if(a&&(t=r),!!Z.isString(t)){if(Z.isString(o))return t.indexOf(o)!==-1;if(Z.isRegExp(o))return o.test(t)}}function v5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,o)=>r.toUpperCase()+o)}function y5(e,t){const r=Z.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+r,{__proto__:null,value:function(a,l,i){return this[o].call(this,t,a,l,i)},configurable:!0})})}var Di=class{constructor(e){e&&this.set(e)}set(e,t,r){const o=this;function a(i,s,c){const u=qo(s);if(!u)return;const d=Z.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||s]=Cl(i))}const l=(i,s)=>Z.forEach(i,(c,u)=>a(c,u,s));if(Z.isPlainObject(e)||e instanceof this.constructor)l(e,t);else if(Z.isString(e)&&(e=e.trim())&&!g5(e))l(c5(e),t);else if(Z.isObject(e)&&Z.isIterable(e)){let i={},s,c;for(const u of e){if(!Z.isArray(u))throw new TypeError("Object iterator must return a key-value pair");i[c=u[0]]=(s=i[c])?Z.isArray(s)?[...s,u[1]]:[s,u[1]]:u[1]}l(i,t)}else e!=null&&a(t,e,r);return this}get(e,t){if(e=qo(e),e){const r=Z.findKey(this,e);if(r){const o=this[r];if(!t)return o;if(t===!0)return h5(o);if(Z.isFunction(t))return t.call(this,o,r);if(Z.isRegExp(t))return t.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=qo(e),e){const r=Z.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||us(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let o=!1;function a(l){if(l=qo(l),l){const i=Z.findKey(r,l);i&&(!t||us(r,r[i],i,t))&&(delete r[i],o=!0)}}return Z.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||us(this,this[a],a,e,!0))&&(delete this[a],o=!0)}return o}normalize(e){const t=this,r={};return Z.forEach(this,(o,a)=>{const l=Z.findKey(r,a);if(l){t[l]=Cl(o),delete t[a];return}const i=e?v5(a):String(a).trim();i!==a&&delete t[a],t[i]=Cl(o),r[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Z.forEach(this,(r,o)=>{r!=null&&r!==!1&&(t[o]=e&&Z.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(`
|
|
24
|
-
`)}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[qf]=this[qf]={accessors:{}}).accessors,r=this.prototype;function o(a){const l=qo(a);t[l]||(y5(r,a),t[l]=!0)}return Z.isArray(e)?e.forEach(o):o(e),this}};Di.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.reduceDescriptors(Di.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}});Z.freezeMethods(Di);var cn=Di,b5="[REDACTED ****]";function _5(e){if(Z.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Z.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function w5(e,t){const r=new Set(t.map(l=>String(l).toLowerCase())),o=[],a=l=>{if(l===null||typeof l!="object"||Z.isBuffer(l))return l;if(o.indexOf(l)!==-1)return;l instanceof cn&&(l=l.toJSON()),o.push(l);let i;if(Z.isArray(l))i=[],l.forEach((s,c)=>{const u=a(s);Z.isUndefined(u)||(i[c]=u)});else{if(!Z.isPlainObject(l)&&_5(l))return o.pop(),l;i=Object.create(null);for(const[s,c]of Object.entries(l)){const u=r.has(s.toLowerCase())?b5:a(c);Z.isUndefined(u)||(i[s]=u)}}return o.pop(),i};return a(e)}var Dt=class Z0 extends Error{static from(t,r,o,a,l,i){const s=new Z0(t.message,r||t.code,o,a,l);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),i&&Object.assign(s,i),s}constructor(t,r,o,a,l){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),l&&(this.response=l,this.status=l.status)}toJSON(){const t=this.config,r=t&&Z.hasOwnProp(t,"redact")?t.redact:void 0,o=Z.isArray(r)&&r.length>0?w5(t,r):Z.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}}};Dt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Dt.ERR_BAD_OPTION="ERR_BAD_OPTION";Dt.ECONNABORTED="ECONNABORTED";Dt.ETIMEDOUT="ETIMEDOUT";Dt.ECONNREFUSED="ECONNREFUSED";Dt.ERR_NETWORK="ERR_NETWORK";Dt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Dt.ERR_DEPRECATED="ERR_DEPRECATED";Dt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Dt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Dt.ERR_CANCELED="ERR_CANCELED";Dt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Dt.ERR_INVALID_URL="ERR_INVALID_URL";Dt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var Ce=Dt;function Ec(e){return Z.isPlainObject(e)||Z.isArray(e)}function Q0(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function ds(e,t,r){return e?e.concat(t).map(function(a,l){return a=Q0(a),!r&&l?"["+a+"]":a}).join(r?".":""):t}function k5(e){return Z.isArray(e)&&!e.some(Ec)}var $5=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function E5(e,t,r){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,g){return!Z.isUndefined(g[b])});const o=r.metaTokens,a=r.visitor||f,l=r.dots,i=r.indexes,s=r.Blob||typeof Blob<"u"&&Blob,c=r.maxDepth===void 0?100:r.maxDepth,u=s&&Z.isSpecCompliantForm(t);if(!Z.isFunction(a))throw new TypeError("visitor must be a function");function d(y){if(y===null)return"";if(Z.isDate(y))return y.toISOString();if(Z.isBoolean(y))return y.toString();if(!u&&Z.isBlob(y))throw new Ce("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(y)||Z.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,b,g){let v=y;if(Z.isReactNative(t)&&Z.isReactNativeBlob(y))return t.append(ds(g,b,l),d(y)),!1;if(y&&!g&&typeof y=="object"){if(Z.endsWith(b,"{}"))b=o?b:b.slice(0,-2),y=JSON.stringify(y);else if(Z.isArray(y)&&k5(y)||(Z.isFileList(y)||Z.endsWith(b,"[]"))&&(v=Z.toArray(y)))return b=Q0(b),v.forEach(function(w,k){!(Z.isUndefined(w)||w===null)&&t.append(i===!0?ds([b],k,l):i===null?b:b+"[]",d(w))}),!1}return Ec(y)?!0:(t.append(ds(g,b,l),d(y)),!1)}const m=[],p=Object.assign($5,{defaultVisitor:f,convertValue:d,isVisitable:Ec});function h(y,b,g=0){if(!Z.isUndefined(y)){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(y)!==-1)throw new Error("Circular reference detected in "+b.join("."));m.push(y),Z.forEach(y,function(_,w){(!(Z.isUndefined(_)||_===null)&&a.call(t,_,Z.isString(w)?w.trim():w,b,p))===!0&&h(_,b?b.concat(w):[w],g+1)}),m.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return h(e),t}var Ai=E5;function Gf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(o){return t[o]})}function eg(e,t){this._pairs=[],e&&Ai(e,this,t)}var tg=eg.prototype;tg.append=function(t,r){this._pairs.push([t,r])};tg.toString=function(t){const r=t?function(o){return t.call(this,o,Gf)}:Gf;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};var ng=eg;function C5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rg(e,t,r){if(!t)return e;const o=r&&r.encode||C5,a=Z.isFunction(r)?{serialize:r}:r,l=a&&a.serialize;let i;if(l?i=l(t,a):i=Z.isURLSearchParams(t)?t.toString():new ng(t,a).toString(o),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}var S5=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){Z.forEach(this.handlers,function(r){r!==null&&e(r)})}},Yf=S5,Mu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},x5=typeof URLSearchParams<"u"?URLSearchParams:ng,T5=typeof FormData<"u"?FormData:null,N5=typeof Blob<"u"?Blob:null,B5={isBrowser:!0,classes:{URLSearchParams:x5,FormData:T5,Blob:N5},protocols:["http","https","file","blob","url","data"]},D5=th({hasBrowserEnv:()=>Lu,hasStandardBrowserEnv:()=>A5,hasStandardBrowserWebWorkerEnv:()=>M5,navigator:()=>Cc,origin:()=>L5},1),Lu=typeof window<"u"&&typeof document<"u",Cc=typeof navigator=="object"&&navigator||void 0,A5=Lu&&(!Cc||["ReactNative","NativeScript","NS"].indexOf(Cc.product)<0),M5=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",L5=Lu&&window.location.href||"http://localhost",bt={...D5,...B5};function P5(e,t){return Ai(e,new bt.classes.URLSearchParams,{visitor:function(r,o,a,l){return bt.isNode&&Z.isBuffer(r)?(this.append(o,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function I5(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function V5(e){const t={},r=Object.keys(e);let o;const a=r.length;let l;for(o=0;o<a;o++)l=r[o],t[l]=e[l];return t}function O5(e){function t(r,o,a,l){let i=r[l++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),c=l>=r.length;return i=!i&&Z.isArray(a)?a.length:i,c?(Z.hasOwnProp(a,i)?a[i]=Z.isArray(a[i])?a[i].concat(o):[a[i],o]:a[i]=o,!s):((!Z.hasOwnProp(a,i)||!Z.isObject(a[i]))&&(a[i]=[]),t(r,o,a[i],l)&&Z.isArray(a[i])&&(a[i]=V5(a[i])),!s)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const r={};return Z.forEachEntry(e,(o,a)=>{t(I5(o),a,r,0)}),r}return null}var og=O5,Zr=(e,t)=>e!=null&&Z.hasOwnProp(e,t)?e[t]:void 0;function R5(e,t,r){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}var Pu={transitional:Mu,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const o=r.getContentType()||"",a=o.indexOf("application/json")>-1,l=Z.isObject(t);if(l&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return a?JSON.stringify(og(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(l){const s=Zr(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return P5(t,s).toString();if((i=Z.isFileList(t))||o.indexOf("multipart/form-data")>-1){const c=Zr(this,"env"),u=c&&c.FormData;return Ai(i?{"files[]":t}:t,u&&new u,s)}}return l||a?(r.setContentType("application/json",!1),R5(t)):t}],transformResponse:[function(t){const r=Zr(this,"transitional")||Pu.transitional,o=r&&r.forcedJSONParsing,a=Zr(this,"responseType"),l=a==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(o&&!a||l)){const i=!(r&&r.silentJSONParsing)&&l;try{return JSON.parse(t,Zr(this,"parseReviver"))}catch(s){if(i)throw s.name==="SyntaxError"?Ce.from(s,Ce.ERR_BAD_RESPONSE,this,null,Zr(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}}};Z.forEach(["delete","get","head","post","put","patch","query"],e=>{Pu.headers[e]={}});var Iu=Pu;function fs(e,t){const r=this||Iu,o=t||r,a=cn.from(o.headers);let l=o.data;return Z.forEach(e,function(s){l=s.call(r,l,a.normalize(),t?t.status:void 0)}),a.normalize(),l}function ag(e){return!!(e&&e.__CANCEL__)}var F5=class extends Ce{constructor(e,t,r){super(e??"canceled",Ce.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}},Ga=F5;function lg(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 z5(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function U5(e,t){e=e||10;const r=new Array(e),o=new Array(e);let a=0,l=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=o[l];i||(i=u),r[a]=c,o[a]=u;let f=l,m=0;for(;f!==a;)m+=r[f++],f=f%e;if(a=(a+1)%e,a===l&&(l=(l+1)%e),u-i<t)return;const p=d&&u-d;return p?Math.round(m*1e3/p):void 0}}var H5=U5;function W5(e,t){let r=0,o=1e3/t,a,l;const i=(u,d=Date.now())=>{r=d,a=null,l&&(clearTimeout(l),l=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-r;f>=o?i(u,d):(a=u,l||(l=setTimeout(()=>{l=null,i(a)},o-f)))},()=>a&&i(a)]}var j5=W5;const Yl=(e,t,r=3)=>{let o=0;const a=H5(50,250);return j5(l=>{if(!l||typeof l.loaded!="number")return;const i=l.loaded,s=l.lengthComputable?l.total:void 0,c=s!=null?Math.min(i,s):i,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:l,lengthComputable:s!=null,[t?"download":"upload"]:!0})},r)},Xf=(e,t)=>{const r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},Kf=e=>(...t)=>Z.asap(()=>e(...t));var q5=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,G5=bt.hasStandardBrowserEnv?{write(e,t,r,o,a,l,i){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];Z.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),Z.isString(o)&&s.push(`path=${o}`),Z.isString(a)&&s.push(`domain=${a}`),l===!0&&s.push("secure"),Z.isString(i)&&s.push(`SameSite=${i}`),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 Y5(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function X5(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ig(e,t,r){let o=!Y5(t);return e&&(o||r===!1)?X5(e,t):t}var Jf=e=>e instanceof cn?{...e}:e;function qr(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 Z.isPlainObject(u)&&Z.isPlainObject(d)?Z.merge.call({caseless:m},u,d):Z.isPlainObject(d)?Z.merge({},d):Z.isArray(d)?d.slice():d}function a(u,d,f,m){if(Z.isUndefined(d)){if(!Z.isUndefined(u))return o(void 0,u,f,m)}else return o(u,d,f,m)}function l(u,d){if(!Z.isUndefined(d))return o(void 0,d)}function i(u,d){if(Z.isUndefined(d)){if(!Z.isUndefined(u))return o(void 0,u)}else return o(void 0,d)}function s(u,d,f){if(Z.hasOwnProp(t,f))return o(u,d);if(Z.hasOwnProp(e,f))return o(void 0,u)}const c={url:l,method:l,data:l,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:s,headers:(u,d,f)=>a(Jf(u),Jf(d),f,!0)};return Z.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=Z.hasOwnProp(c,d)?c[d]:a,m=f(Z.hasOwnProp(e,d)?e[d]:void 0,Z.hasOwnProp(t,d)?t[d]:void 0,d);Z.isUndefined(m)&&f!==s||(r[d]=m)}),r}var K5=["content-type","content-length"];function J5(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([o,a])=>{K5.includes(o.toLowerCase())&&e.set(o,a)})}var Z5=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16)));function Q5(e){const t=qr({},e),r=m=>Z.hasOwnProp(t,m)?t[m]:void 0,o=r("data");let a=r("withXSRFToken");const l=r("xsrfHeaderName"),i=r("xsrfCookieName");let s=r("headers");const c=r("auth"),u=r("baseURL"),d=r("allowAbsoluteUrls"),f=r("url");if(t.headers=s=cn.from(s),t.url=rg(ig(u,f,d),r("params"),r("paramsSerializer")),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?Z5(c.password):""))),Z.isFormData(o)&&(bt.hasStandardBrowserEnv||bt.hasStandardBrowserWebWorkerEnv||Z.isReactNative(o)?s.setContentType(void 0):Z.isFunction(o.getHeaders)&&J5(s,o.getHeaders(),r("formDataHeaderPolicy"))),bt.hasStandardBrowserEnv&&(Z.isFunction(a)&&(a=a(t)),a===!0||a==null&&q5(t.url))){const m=l&&i&&G5.read(i);m&&s.set(l,m)}return t}var sg=Q5,eD=typeof XMLHttpRequest<"u",tD=eD&&function(e){return new Promise(function(r,o){const a=sg(e);let l=a.data;const i=cn.from(a.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:u}=a,d,f,m,p,h;function y(){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 _=cn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());lg(function(k){r(k),y()},function(k){o(k),y()},{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)),y(),b=null)},b.onerror=function(w){const k=new Ce(w&&w.message?w.message:"Network Error",Ce.ERR_NETWORK,e,b);k.event=w||null,o(k),y(),b=null},b.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const k=a.transitional||Mu;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),o(new Ce(w,k.clarifyTimeoutError?Ce.ETIMEDOUT:Ce.ECONNABORTED,e,b)),y(),b=null},l===void 0&&i.setContentType(null),"setRequestHeader"in b&&Z.forEach(J0(i),function(w,k){b.setRequestHeader(k,w)}),Z.isUndefined(a.withCredentials)||(b.withCredentials=!!a.withCredentials),s&&s!=="json"&&(b.responseType=a.responseType),u&&([m,h]=Yl(u,!0),b.addEventListener("progress",m)),c&&b.upload&&([f,p]=Yl(c),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(d=_=>{b&&(o(!_||_.type?new Ga(null,e,b):_),b.abort(),y(),b=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const v=z5(a.url);if(v&&!bt.protocols.includes(v)){o(new Ce("Unsupported protocol "+v+":",Ce.ERR_BAD_REQUEST,e));return}b.send(l||null)})},nD=(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,i();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Ce?u:new Ga(u instanceof Error?u.message:u))}};let l=t&&setTimeout(()=>{l=null,a(new Ce(`timeout of ${t}ms exceeded`,Ce.ETIMEDOUT))},t);const i=()=>{e&&(l&&clearTimeout(l),l=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=()=>Z.asap(i),s},rD=nD;const oD=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},aD=async function*(e,t){for await(const r of lD(e))yield*oD(r,t)};var lD=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 Zf=(e,t,r,o)=>{const a=aD(e,t);let l=0,i,s=c=>{i||(i=!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(l+=f),c.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(c){return s(c),a.return()}},{highWaterMark:2})};function iD(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 l=o.length;const i=o.length;for(let f=0;f<i;f++)if(o.charCodeAt(f)===37&&f+2<i){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)&&(l-=2,f+=2)}let s=0,c=i-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(l/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 l=0,i=o.length;l<i;l++){const s=o.charCodeAt(l);if(s<128)a+=1;else if(s<2048)a+=2;else if(s>=55296&&s<=56319&&l+1<i){const c=o.charCodeAt(l+1);c>=56320&&c<=57343?(a+=4,l++):a+=3}else a+=3}return a}const Vu="1.17.0";var Qf=64*1024,{isFunction:ll}=Z,sD=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),em=e=>{if(!Z.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},tm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},cD=e=>{const t=e.indexOf("://");let r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},uD=e=>{const t=Z.global!==void 0&&Z.global!==null?Z.global:globalThis,{ReadableStream:r,TextEncoder:o}=t;e=Z.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:l,Response:i}=e,s=a?ll(a):typeof fetch=="function",c=ll(l),u=ll(i);if(!s)return!1;const d=s&&ll(r),f=s&&(typeof o=="function"?(g=>v=>g.encode(v))(new o):async g=>new Uint8Array(await new l(g).arrayBuffer())),m=c&&d&&tm(()=>{let g=!1;const v=new l(bt.origin,{body:new r,method:"POST",get duplex(){return g=!0,"half"}}),_=v.headers.has("Content-Type");return v.body!=null&&v.body.cancel(),g&&!_}),p=u&&d&&tm(()=>Z.isReadableStream(new i("").body)),h={stream:p&&(g=>g.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(v,_)=>{let w=v&&v[g];if(w)return w.call(v);throw new Ce(`Response type '${g}' is not supported`,Ce.ERR_NOT_SUPPORT,_)})});const y=async g=>{if(g==null)return 0;if(Z.isBlob(g))return g.size;if(Z.isSpecCompliantForm(g))return(await new l(bt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(g)||Z.isArrayBuffer(g))return g.byteLength;if(Z.isURLSearchParams(g)&&(g=g+""),Z.isString(g))return(await f(g)).byteLength},b=async(g,v)=>{const _=Z.toFiniteNumber(g.getContentLength());return _??y(v)};return async g=>{let{url:v,method:_,data:w,signal:k,cancelToken:S,timeout:E,onDownloadProgress:$,onUploadProgress:I,responseType:D,headers:R,withCredentials:M="same-origin",fetchOptions:N,maxContentLength:A,maxBodyLength:F}=sg(g);const V=Z.isNumber(A)&&A>-1,B=Z.isNumber(F)&&F>-1,j=U=>Z.hasOwnProp(g,U)?g[U]:void 0;let Q=a||fetch;D=D?(D+"").toLowerCase():"text";let K=rD([k,S&&S.toAbortSignal()],E),re=null;const O=K&&K.unsubscribe&&(()=>{K.unsubscribe()});let P;try{let U;const T=j("auth");if(T&&(U={username:T.username||"",password:T.password||""}),cD(v)){const X=new URL(v,bt.origin);!U&&(X.username||X.password)&&(U={username:em(X.username),password:em(X.password)}),(X.username||X.password)&&(X.username="",X.password="",v=X.href)}if(U&&(R.delete("authorization"),R.set("Authorization","Basic "+btoa(sD((U.username||"")+":"+(U.password||""))))),V&&typeof v=="string"&&v.startsWith("data:")&&iD(v)>A)throw new Ce("maxContentLength size of "+A+" exceeded",Ce.ERR_BAD_RESPONSE,g,re);if(B&&_!=="get"&&_!=="head"){const X=await b(R,w);if(typeof X=="number"&&isFinite(X)&&X>F)throw new Ce("Request body larger than maxBodyLength limit",Ce.ERR_BAD_REQUEST,g,re)}if(I&&m&&_!=="get"&&_!=="head"&&(P=await b(R,w))!==0){let X=new l(v,{method:"POST",body:w,duplex:"half"}),se;if(Z.isFormData(w)&&(se=X.headers.get("content-type"))&&R.setContentType(se),X.body){const[ie,ue]=Xf(P,Yl(Kf(I)));w=Zf(X.body,Qf,ie,ue)}}Z.isString(M)||(M=M?"include":"omit");const z=c&&"credentials"in l.prototype;if(Z.isFormData(w)){const X=R.getContentType();X&&/^multipart\/form-data/i.test(X)&&!/boundary=/i.test(X)&&R.delete("content-type")}R.set("User-Agent","axios/"+Vu,!1);const W={...N,signal:K,method:_.toUpperCase(),headers:J0(R.normalize()),body:w,duplex:"half",credentials:z?M:void 0};re=c&&new l(v,W);let Y=await(c?Q(re,N):Q(v,W));if(V){const X=Z.toFiniteNumber(Y.headers.get("content-length"));if(X!=null&&X>A)throw new Ce("maxContentLength size of "+A+" exceeded",Ce.ERR_BAD_RESPONSE,g,re)}const ne=p&&(D==="stream"||D==="response");if(p&&Y.body&&($||V||ne&&O)){const X={};["status","statusText","headers"].forEach(ke=>{X[ke]=Y[ke]});const se=Z.toFiniteNumber(Y.headers.get("content-length")),[ie,ue]=$&&Xf(se,Yl(Kf($),!0))||[];let we=0;const ce=ke=>{if(V&&(we=ke,we>A))throw new Ce("maxContentLength size of "+A+" exceeded",Ce.ERR_BAD_RESPONSE,g,re);ie&&ie(ke)};Y=new i(Zf(Y.body,Qf,ce,()=>{ue&&ue(),O&&O()}),X)}D=D||"text";let ve=await h[Z.findKey(h,D)||"text"](Y,g);if(V&&!p&&!ne){let X;if(ve!=null&&(typeof ve.byteLength=="number"?X=ve.byteLength:typeof ve.size=="number"?X=ve.size:typeof ve=="string"&&(X=typeof o=="function"?new o().encode(ve).byteLength:ve.length)),typeof X=="number"&&X>A)throw new Ce("maxContentLength size of "+A+" exceeded",Ce.ERR_BAD_RESPONSE,g,re)}return!ne&&O&&O(),await new Promise((X,se)=>{lg(X,se,{data:ve,headers:cn.from(Y.headers),status:Y.status,statusText:Y.statusText,config:g,request:re})})}catch(U){if(O&&O(),K&&K.aborted&&K.reason instanceof Ce){const T=K.reason;throw T.config=g,re&&(T.request=re),U!==T&&(T.cause=U),T}throw U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new Ce("Network Error",Ce.ERR_NETWORK,g,re,U&&U.response),{cause:U.cause||U}):Ce.from(U,U&&U.code,g,re,U&&U.response)}}},dD=new Map;const cg=e=>{let t=e&&e.env||{};const{fetch:r,Request:o,Response:a}=t,l=[o,a,r];let i=l.length,s,c,u=dD;for(;i--;)s=l[i],c=u.get(s),c===void 0&&u.set(s,c=i?new Map:uD(t)),u=c;return c};var BU=cg(),Ou={http:null,xhr:tD,fetch:{get:cg}};Z.forEach(Ou,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var nm=e=>`- ${e}`,fD=e=>Z.isFunction(e)||e===null||e===!1;function mD(e,t){e=Z.isArray(e)?e:[e];const{length:r}=e;let o,a;const l={};for(let i=0;i<r;i++){o=e[i];let s;if(a=o,!fD(o)&&(a=Ou[(s=String(o)).toLowerCase()],a===void 0))throw new Ce(`Unknown adapter '${s}'`);if(a&&(Z.isFunction(a)||(a=a.get(t))))break;l[s||"#"+i]=a}if(!a){const i=Object.entries(l).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?i.length>1?`since :
|
|
24
|
+
`)}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[qf]=this[qf]={accessors:{}}).accessors,r=this.prototype;function o(a){const l=qo(a);t[l]||(y5(r,a),t[l]=!0)}return Z.isArray(e)?e.forEach(o):o(e),this}};Di.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Z.reduceDescriptors(Di.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}});Z.freezeMethods(Di);var cn=Di,b5="[REDACTED ****]";function _5(e){if(Z.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Z.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function w5(e,t){const r=new Set(t.map(l=>String(l).toLowerCase())),o=[],a=l=>{if(l===null||typeof l!="object"||Z.isBuffer(l))return l;if(o.indexOf(l)!==-1)return;l instanceof cn&&(l=l.toJSON()),o.push(l);let i;if(Z.isArray(l))i=[],l.forEach((s,c)=>{const u=a(s);Z.isUndefined(u)||(i[c]=u)});else{if(!Z.isPlainObject(l)&&_5(l))return o.pop(),l;i=Object.create(null);for(const[s,c]of Object.entries(l)){const u=r.has(s.toLowerCase())?b5:a(c);Z.isUndefined(u)||(i[s]=u)}}return o.pop(),i};return a(e)}var Dt=class Z0 extends Error{static from(t,r,o,a,l,i){const s=new Z0(t.message,r||t.code,o,a,l);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),i&&Object.assign(s,i),s}constructor(t,r,o,a,l){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),l&&(this.response=l,this.status=l.status)}toJSON(){const t=this.config,r=t&&Z.hasOwnProp(t,"redact")?t.redact:void 0,o=Z.isArray(r)&&r.length>0?w5(t,r):Z.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}}};Dt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Dt.ERR_BAD_OPTION="ERR_BAD_OPTION";Dt.ECONNABORTED="ECONNABORTED";Dt.ETIMEDOUT="ETIMEDOUT";Dt.ECONNREFUSED="ECONNREFUSED";Dt.ERR_NETWORK="ERR_NETWORK";Dt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Dt.ERR_DEPRECATED="ERR_DEPRECATED";Dt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Dt.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Dt.ERR_CANCELED="ERR_CANCELED";Dt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Dt.ERR_INVALID_URL="ERR_INVALID_URL";Dt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var Ce=Dt;function Ec(e){return Z.isPlainObject(e)||Z.isArray(e)}function Q0(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function ds(e,t,r){return e?e.concat(t).map(function(a,l){return a=Q0(a),!r&&l?"["+a+"]":a}).join(r?".":""):t}function k5(e){return Z.isArray(e)&&!e.some(Ec)}var $5=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function E5(e,t,r){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,g){return!Z.isUndefined(g[b])});const o=r.metaTokens,a=r.visitor||f,l=r.dots,i=r.indexes,s=r.Blob||typeof Blob<"u"&&Blob,c=r.maxDepth===void 0?100:r.maxDepth,u=s&&Z.isSpecCompliantForm(t);if(!Z.isFunction(a))throw new TypeError("visitor must be a function");function d(y){if(y===null)return"";if(Z.isDate(y))return y.toISOString();if(Z.isBoolean(y))return y.toString();if(!u&&Z.isBlob(y))throw new Ce("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(y)||Z.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function f(y,b,g){let v=y;if(Z.isReactNative(t)&&Z.isReactNativeBlob(y))return t.append(ds(g,b,l),d(y)),!1;if(y&&!g&&typeof y=="object"){if(Z.endsWith(b,"{}"))b=o?b:b.slice(0,-2),y=JSON.stringify(y);else if(Z.isArray(y)&&k5(y)||(Z.isFileList(y)||Z.endsWith(b,"[]"))&&(v=Z.toArray(y)))return b=Q0(b),v.forEach(function(w,k){!(Z.isUndefined(w)||w===null)&&t.append(i===!0?ds([b],k,l):i===null?b:b+"[]",d(w))}),!1}return Ec(y)?!0:(t.append(ds(g,b,l),d(y)),!1)}const m=[],p=Object.assign($5,{defaultVisitor:f,convertValue:d,isVisitable:Ec});function h(y,b,g=0){if(!Z.isUndefined(y)){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(y)!==-1)throw new Error("Circular reference detected in "+b.join("."));m.push(y),Z.forEach(y,function(_,w){(!(Z.isUndefined(_)||_===null)&&a.call(t,_,Z.isString(w)?w.trim():w,b,p))===!0&&h(_,b?b.concat(w):[w],g+1)}),m.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return h(e),t}var Ai=E5;function Gf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(o){return t[o]})}function eg(e,t){this._pairs=[],e&&Ai(e,this,t)}var tg=eg.prototype;tg.append=function(t,r){this._pairs.push([t,r])};tg.toString=function(t){const r=t?function(o){return t.call(this,o,Gf)}:Gf;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};var ng=eg;function C5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rg(e,t,r){if(!t)return e;const o=r&&r.encode||C5,a=Z.isFunction(r)?{serialize:r}:r,l=a&&a.serialize;let i;if(l?i=l(t,a):i=Z.isURLSearchParams(t)?t.toString():new ng(t,a).toString(o),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}var S5=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){Z.forEach(this.handlers,function(r){r!==null&&e(r)})}},Yf=S5,Mu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},x5=typeof URLSearchParams<"u"?URLSearchParams:ng,T5=typeof FormData<"u"?FormData:null,N5=typeof Blob<"u"?Blob:null,B5={isBrowser:!0,classes:{URLSearchParams:x5,FormData:T5,Blob:N5},protocols:["http","https","file","blob","url","data"]},D5=th({hasBrowserEnv:()=>Lu,hasStandardBrowserEnv:()=>A5,hasStandardBrowserWebWorkerEnv:()=>M5,navigator:()=>Cc,origin:()=>L5},1),Lu=typeof window<"u"&&typeof document<"u",Cc=typeof navigator=="object"&&navigator||void 0,A5=Lu&&(!Cc||["ReactNative","NativeScript","NS"].indexOf(Cc.product)<0),M5=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",L5=Lu&&window.location.href||"http://localhost",bt={...D5,...B5};function P5(e,t){return Ai(e,new bt.classes.URLSearchParams,{visitor:function(r,o,a,l){return bt.isNode&&Z.isBuffer(r)?(this.append(o,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function I5(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function V5(e){const t={},r=Object.keys(e);let o;const a=r.length;let l;for(o=0;o<a;o++)l=r[o],t[l]=e[l];return t}function O5(e){function t(r,o,a,l){let i=r[l++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),c=l>=r.length;return i=!i&&Z.isArray(a)?a.length:i,c?(Z.hasOwnProp(a,i)?a[i]=Z.isArray(a[i])?a[i].concat(o):[a[i],o]:a[i]=o,!s):((!Z.hasOwnProp(a,i)||!Z.isObject(a[i]))&&(a[i]=[]),t(r,o,a[i],l)&&Z.isArray(a[i])&&(a[i]=V5(a[i])),!s)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const r={};return Z.forEachEntry(e,(o,a)=>{t(I5(o),a,r,0)}),r}return null}var og=O5,Zr=(e,t)=>e!=null&&Z.hasOwnProp(e,t)?e[t]:void 0;function R5(e,t,r){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}var Pu={transitional:Mu,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const o=r.getContentType()||"",a=o.indexOf("application/json")>-1,l=Z.isObject(t);if(l&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return a?JSON.stringify(og(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(l){const s=Zr(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return P5(t,s).toString();if((i=Z.isFileList(t))||o.indexOf("multipart/form-data")>-1){const c=Zr(this,"env"),u=c&&c.FormData;return Ai(i?{"files[]":t}:t,u&&new u,s)}}return l||a?(r.setContentType("application/json",!1),R5(t)):t}],transformResponse:[function(t){const r=Zr(this,"transitional")||Pu.transitional,o=r&&r.forcedJSONParsing,a=Zr(this,"responseType"),l=a==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(o&&!a||l)){const i=!(r&&r.silentJSONParsing)&&l;try{return JSON.parse(t,Zr(this,"parseReviver"))}catch(s){if(i)throw s.name==="SyntaxError"?Ce.from(s,Ce.ERR_BAD_RESPONSE,this,null,Zr(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}}};Z.forEach(["delete","get","head","post","put","patch","query"],e=>{Pu.headers[e]={}});var Iu=Pu;function fs(e,t){const r=this||Iu,o=t||r,a=cn.from(o.headers);let l=o.data;return Z.forEach(e,function(s){l=s.call(r,l,a.normalize(),t?t.status:void 0)}),a.normalize(),l}function ag(e){return!!(e&&e.__CANCEL__)}var F5=class extends Ce{constructor(e,t,r){super(e??"canceled",Ce.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}},Ga=F5;function lg(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 z5(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function U5(e,t){e=e||10;const r=new Array(e),o=new Array(e);let a=0,l=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=o[l];i||(i=u),r[a]=c,o[a]=u;let f=l,m=0;for(;f!==a;)m+=r[f++],f=f%e;if(a=(a+1)%e,a===l&&(l=(l+1)%e),u-i<t)return;const p=d&&u-d;return p?Math.round(m*1e3/p):void 0}}var H5=U5;function W5(e,t){let r=0,o=1e3/t,a,l;const i=(u,d=Date.now())=>{r=d,a=null,l&&(clearTimeout(l),l=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-r;f>=o?i(u,d):(a=u,l||(l=setTimeout(()=>{l=null,i(a)},o-f)))},()=>a&&i(a)]}var j5=W5;const Yl=(e,t,r=3)=>{let o=0;const a=H5(50,250);return j5(l=>{if(!l||typeof l.loaded!="number")return;const i=l.loaded,s=l.lengthComputable?l.total:void 0,c=s!=null?Math.min(i,s):i,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:l,lengthComputable:s!=null,[t?"download":"upload"]:!0})},r)},Xf=(e,t)=>{const r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},Kf=e=>(...t)=>Z.asap(()=>e(...t));var q5=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,G5=bt.hasStandardBrowserEnv?{write(e,t,r,o,a,l,i){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];Z.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),Z.isString(o)&&s.push(`path=${o}`),Z.isString(a)&&s.push(`domain=${a}`),l===!0&&s.push("secure"),Z.isString(i)&&s.push(`SameSite=${i}`),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 Y5(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function X5(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ig(e,t,r){let o=!Y5(t);return e&&(o||r===!1)?X5(e,t):t}var Jf=e=>e instanceof cn?{...e}:e;function qr(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 Z.isPlainObject(u)&&Z.isPlainObject(d)?Z.merge.call({caseless:m},u,d):Z.isPlainObject(d)?Z.merge({},d):Z.isArray(d)?d.slice():d}function a(u,d,f,m){if(Z.isUndefined(d)){if(!Z.isUndefined(u))return o(void 0,u,f,m)}else return o(u,d,f,m)}function l(u,d){if(!Z.isUndefined(d))return o(void 0,d)}function i(u,d){if(Z.isUndefined(d)){if(!Z.isUndefined(u))return o(void 0,u)}else return o(void 0,d)}function s(u,d,f){if(Z.hasOwnProp(t,f))return o(u,d);if(Z.hasOwnProp(e,f))return o(void 0,u)}const c={url:l,method:l,data:l,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:s,headers:(u,d,f)=>a(Jf(u),Jf(d),f,!0)};return Z.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=Z.hasOwnProp(c,d)?c[d]:a,m=f(Z.hasOwnProp(e,d)?e[d]:void 0,Z.hasOwnProp(t,d)?t[d]:void 0,d);Z.isUndefined(m)&&f!==s||(r[d]=m)}),r}var K5=["content-type","content-length"];function J5(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([o,a])=>{K5.includes(o.toLowerCase())&&e.set(o,a)})}var Z5=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16)));function Q5(e){const t=qr({},e),r=m=>Z.hasOwnProp(t,m)?t[m]:void 0,o=r("data");let a=r("withXSRFToken");const l=r("xsrfHeaderName"),i=r("xsrfCookieName");let s=r("headers");const c=r("auth"),u=r("baseURL"),d=r("allowAbsoluteUrls"),f=r("url");if(t.headers=s=cn.from(s),t.url=rg(ig(u,f,d),r("params"),r("paramsSerializer")),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?Z5(c.password):""))),Z.isFormData(o)&&(bt.hasStandardBrowserEnv||bt.hasStandardBrowserWebWorkerEnv||Z.isReactNative(o)?s.setContentType(void 0):Z.isFunction(o.getHeaders)&&J5(s,o.getHeaders(),r("formDataHeaderPolicy"))),bt.hasStandardBrowserEnv&&(Z.isFunction(a)&&(a=a(t)),a===!0||a==null&&q5(t.url))){const m=l&&i&&G5.read(i);m&&s.set(l,m)}return t}var sg=Q5,eD=typeof XMLHttpRequest<"u",tD=eD&&function(e){return new Promise(function(r,o){const a=sg(e);let l=a.data;const i=cn.from(a.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:u}=a,d,f,m,p,h;function y(){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 _=cn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());lg(function(k){r(k),y()},function(k){o(k),y()},{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)),y(),b=null)},b.onerror=function(w){const k=new Ce(w&&w.message?w.message:"Network Error",Ce.ERR_NETWORK,e,b);k.event=w||null,o(k),y(),b=null},b.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const k=a.transitional||Mu;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),o(new Ce(w,k.clarifyTimeoutError?Ce.ETIMEDOUT:Ce.ECONNABORTED,e,b)),y(),b=null},l===void 0&&i.setContentType(null),"setRequestHeader"in b&&Z.forEach(J0(i),function(w,k){b.setRequestHeader(k,w)}),Z.isUndefined(a.withCredentials)||(b.withCredentials=!!a.withCredentials),s&&s!=="json"&&(b.responseType=a.responseType),u&&([m,h]=Yl(u,!0),b.addEventListener("progress",m)),c&&b.upload&&([f,p]=Yl(c),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(d=_=>{b&&(o(!_||_.type?new Ga(null,e,b):_),b.abort(),y(),b=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const v=z5(a.url);if(v&&!bt.protocols.includes(v)){o(new Ce("Unsupported protocol "+v+":",Ce.ERR_BAD_REQUEST,e));return}b.send(l||null)})},nD=(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,i();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Ce?u:new Ga(u instanceof Error?u.message:u))}};let l=t&&setTimeout(()=>{l=null,a(new Ce(`timeout of ${t}ms exceeded`,Ce.ETIMEDOUT))},t);const i=()=>{e&&(l&&clearTimeout(l),l=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=()=>Z.asap(i),s},rD=nD;const oD=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},aD=async function*(e,t){for await(const r of lD(e))yield*oD(r,t)};var lD=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 Zf=(e,t,r,o)=>{const a=aD(e,t);let l=0,i,s=c=>{i||(i=!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(l+=f),c.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(c){return s(c),a.return()}},{highWaterMark:2})};function iD(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 l=o.length;const i=o.length;for(let f=0;f<i;f++)if(o.charCodeAt(f)===37&&f+2<i){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)&&(l-=2,f+=2)}let s=0,c=i-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(l/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 l=0,i=o.length;l<i;l++){const s=o.charCodeAt(l);if(s<128)a+=1;else if(s<2048)a+=2;else if(s>=55296&&s<=56319&&l+1<i){const c=o.charCodeAt(l+1);c>=56320&&c<=57343?(a+=4,l++):a+=3}else a+=3}return a}const Vu="1.17.0";var Qf=64*1024,{isFunction:ll}=Z,sD=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),em=e=>{if(!Z.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},tm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},cD=e=>{const t=e.indexOf("://");let r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},uD=e=>{const t=Z.global!==void 0&&Z.global!==null?Z.global:globalThis,{ReadableStream:r,TextEncoder:o}=t;e=Z.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:l,Response:i}=e,s=a?ll(a):typeof fetch=="function",c=ll(l),u=ll(i);if(!s)return!1;const d=s&&ll(r),f=s&&(typeof o=="function"?(g=>v=>g.encode(v))(new o):async g=>new Uint8Array(await new l(g).arrayBuffer())),m=c&&d&&tm(()=>{let g=!1;const v=new l(bt.origin,{body:new r,method:"POST",get duplex(){return g=!0,"half"}}),_=v.headers.has("Content-Type");return v.body!=null&&v.body.cancel(),g&&!_}),p=u&&d&&tm(()=>Z.isReadableStream(new i("").body)),h={stream:p&&(g=>g.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(v,_)=>{let w=v&&v[g];if(w)return w.call(v);throw new Ce(`Response type '${g}' is not supported`,Ce.ERR_NOT_SUPPORT,_)})});const y=async g=>{if(g==null)return 0;if(Z.isBlob(g))return g.size;if(Z.isSpecCompliantForm(g))return(await new l(bt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(g)||Z.isArrayBuffer(g))return g.byteLength;if(Z.isURLSearchParams(g)&&(g=g+""),Z.isString(g))return(await f(g)).byteLength},b=async(g,v)=>{const _=Z.toFiniteNumber(g.getContentLength());return _??y(v)};return async g=>{let{url:v,method:_,data:w,signal:k,cancelToken:S,timeout:E,onDownloadProgress:$,onUploadProgress:I,responseType:D,headers:R,withCredentials:M="same-origin",fetchOptions:N,maxContentLength:A,maxBodyLength:F}=sg(g);const V=Z.isNumber(A)&&A>-1,B=Z.isNumber(F)&&F>-1,j=U=>Z.hasOwnProp(g,U)?g[U]:void 0;let Q=a||fetch;D=D?(D+"").toLowerCase():"text";let K=rD([k,S&&S.toAbortSignal()],E),re=null;const O=K&&K.unsubscribe&&(()=>{K.unsubscribe()});let P;try{let U;const T=j("auth");if(T&&(U={username:T.username||"",password:T.password||""}),cD(v)){const X=new URL(v,bt.origin);!U&&(X.username||X.password)&&(U={username:em(X.username),password:em(X.password)}),(X.username||X.password)&&(X.username="",X.password="",v=X.href)}if(U&&(R.delete("authorization"),R.set("Authorization","Basic "+btoa(sD((U.username||"")+":"+(U.password||""))))),V&&typeof v=="string"&&v.startsWith("data:")&&iD(v)>A)throw new Ce("maxContentLength size of "+A+" exceeded",Ce.ERR_BAD_RESPONSE,g,re);if(B&&_!=="get"&&_!=="head"){const X=await b(R,w);if(typeof X=="number"&&isFinite(X)&&X>F)throw new Ce("Request body larger than maxBodyLength limit",Ce.ERR_BAD_REQUEST,g,re)}if(I&&m&&_!=="get"&&_!=="head"&&(P=await b(R,w))!==0){let X=new l(v,{method:"POST",body:w,duplex:"half"}),se;if(Z.isFormData(w)&&(se=X.headers.get("content-type"))&&R.setContentType(se),X.body){const[ie,ue]=Xf(P,Yl(Kf(I)));w=Zf(X.body,Qf,ie,ue)}}Z.isString(M)||(M=M?"include":"omit");const z=c&&"credentials"in l.prototype;if(Z.isFormData(w)){const X=R.getContentType();X&&/^multipart\/form-data/i.test(X)&&!/boundary=/i.test(X)&&R.delete("content-type")}R.set("User-Agent","axios/"+Vu,!1);const W={...N,signal:K,method:_.toUpperCase(),headers:J0(R.normalize()),body:w,duplex:"half",credentials:z?M:void 0};re=c&&new l(v,W);let Y=await(c?Q(re,N):Q(v,W));if(V){const X=Z.toFiniteNumber(Y.headers.get("content-length"));if(X!=null&&X>A)throw new Ce("maxContentLength size of "+A+" exceeded",Ce.ERR_BAD_RESPONSE,g,re)}const ne=p&&(D==="stream"||D==="response");if(p&&Y.body&&($||V||ne&&O)){const X={};["status","statusText","headers"].forEach(ke=>{X[ke]=Y[ke]});const se=Z.toFiniteNumber(Y.headers.get("content-length")),[ie,ue]=$&&Xf(se,Yl(Kf($),!0))||[];let we=0;const ce=ke=>{if(V&&(we=ke,we>A))throw new Ce("maxContentLength size of "+A+" exceeded",Ce.ERR_BAD_RESPONSE,g,re);ie&&ie(ke)};Y=new i(Zf(Y.body,Qf,ce,()=>{ue&&ue(),O&&O()}),X)}D=D||"text";let ve=await h[Z.findKey(h,D)||"text"](Y,g);if(V&&!p&&!ne){let X;if(ve!=null&&(typeof ve.byteLength=="number"?X=ve.byteLength:typeof ve.size=="number"?X=ve.size:typeof ve=="string"&&(X=typeof o=="function"?new o().encode(ve).byteLength:ve.length)),typeof X=="number"&&X>A)throw new Ce("maxContentLength size of "+A+" exceeded",Ce.ERR_BAD_RESPONSE,g,re)}return!ne&&O&&O(),await new Promise((X,se)=>{lg(X,se,{data:ve,headers:cn.from(Y.headers),status:Y.status,statusText:Y.statusText,config:g,request:re})})}catch(U){if(O&&O(),K&&K.aborted&&K.reason instanceof Ce){const T=K.reason;throw T.config=g,re&&(T.request=re),U!==T&&(T.cause=U),T}throw U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new Ce("Network Error",Ce.ERR_NETWORK,g,re,U&&U.response),{cause:U.cause||U}):Ce.from(U,U&&U.code,g,re,U&&U.response)}}},dD=new Map;const cg=e=>{let t=e&&e.env||{};const{fetch:r,Request:o,Response:a}=t,l=[o,a,r];let i=l.length,s,c,u=dD;for(;i--;)s=l[i],c=u.get(s),c===void 0&&u.set(s,c=i?new Map:uD(t)),u=c;return c};var NU=cg(),Ou={http:null,xhr:tD,fetch:{get:cg}};Z.forEach(Ou,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var nm=e=>`- ${e}`,fD=e=>Z.isFunction(e)||e===null||e===!1;function mD(e,t){e=Z.isArray(e)?e:[e];const{length:r}=e;let o,a;const l={};for(let i=0;i<r;i++){o=e[i];let s;if(a=o,!fD(o)&&(a=Ou[(s=String(o)).toLowerCase()],a===void 0))throw new Ce(`Unknown adapter '${s}'`);if(a&&(Z.isFunction(a)||(a=a.get(t))))break;l[s||"#"+i]=a}if(!a){const i=Object.entries(l).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?i.length>1?`since :
|
|
25
25
|
`+i.map(nm).join(`
|
|
26
26
|
`):" "+nm(i[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a}var ug={getAdapter:mD,adapters:Ou};function ms(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ga(null,e)}function rm(e){return ms(e),e.headers=cn.from(e.headers),e.data=fs.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ug.getAdapter(e.adapter||Iu.adapter,e)(e).then(function(r){ms(e),e.response=r;try{r.data=fs.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=cn.from(r.headers),r},function(r){if(!ag(r)&&(ms(e),r&&r.response)){e.response=r.response;try{r.response.data=fs.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=cn.from(r.response.headers)}return Promise.reject(r)})}var Mi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Mi[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});var om={};Mi.transitional=function(t,r,o){function a(l,i){return"[Axios v"+Vu+"] Transitional option '"+l+"'"+i+(o?". "+o:"")}return(l,i,s)=>{if(t===!1)throw new Ce(a(i," has been removed"+(r?" in "+r:"")),Ce.ERR_DEPRECATED);return r&&!om[i]&&(om[i]=!0),t?t(l,i,s):!0}};Mi.spelling=function(t){return(r,o)=>!0};function pD(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 l=o[a],i=Object.prototype.hasOwnProperty.call(t,l)?t[l]:void 0;if(i){const s=e[l],c=s===void 0||i(s,l,e);if(c!==!0)throw new Ce("option "+l+" must be "+c,Ce.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ce("Unknown option "+l,Ce.ERR_BAD_OPTION)}}var Sl={assertOptions:pD,validators:Mi},Pt=Sl.validators,Xl=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Yf,response:new Yf}}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 l=o.stack.indexOf(`
|
|
27
27
|
`);return l===-1?"":o.stack.slice(l+1)})();try{if(!r.stack)r.stack=a;else if(a){const l=a.indexOf(`
|
|
28
28
|
`),i=l===-1?-1:a.indexOf(`
|
|
29
29
|
`,l+1),s=i===-1?"":a.slice(i+1);String(r.stack).endsWith(s)||(r.stack+=`
|
|
30
|
-
`+a)}}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=qr(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:a}=t;r!==void 0&&Sl.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean),legacyInterceptorReqResOrdering:Pt.transitional(Pt.boolean),advertiseZstdAcceptEncoding:Pt.transitional(Pt.boolean)},!1),o!=null&&(Z.isFunction(o)?t.paramsSerializer={serialize:o}:Sl.assertOptions(o,{encode:Pt.function,serialize:Pt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Sl.assertOptions(t,{baseUrl:Pt.spelling("baseURL"),withXsrfToken:Pt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let l=a&&Z.merge(a.common,a[t.method]);a&&Z.forEach(["delete","get","head","post","put","patch","query","common"],p=>{delete a[p]}),t.headers=cn.concat(l,a);const i=[];let s=!0;this.interceptors.request.forEach(function(h){if(typeof h.runWhen=="function"&&h.runWhen(t)===!1)return;s=s&&h.synchronous;const y=t.transitional||Mu;y&&y.legacyInterceptorReqResOrdering?i.unshift(h.fulfilled,h.rejected):i.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=[rm.bind(this),void 0];for(p.unshift(...i),p.push(...c),f=p.length,u=Promise.resolve(t);d<f;)u=u.then(p[d++],p[d++]);return u}f=i.length;let m=t;for(;d<f;){const p=i[d++],h=i[d++];try{m=p(m)}catch(y){h.call(this,y);break}}try{u=rm.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=qr(this.defaults,e),rg(ig(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Z.forEach(["delete","get","head","options"],function(t){Xl.prototype[t]=function(r,o){return this.request(qr(o||{},{method:t,url:r,data:(o||{}).data}))}});Z.forEach(["post","put","patch","query"],function(t){function r(o){return function(l,i,s){return this.request(qr(s||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:l,data:i}))}}Xl.prototype[t]=r(),t!=="query"&&(Xl.prototype[t+"Form"]=r(!0))});var xl=Xl,hD=class dg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const o=this;this.promise.then(a=>{if(!o._listeners)return;let l=o._listeners.length;for(;l-- >0;)o._listeners[l](a);o._listeners=null}),this.promise.then=a=>{let l;const i=new Promise(s=>{o.subscribe(s),l=s}).then(a);return i.cancel=function(){o.unsubscribe(l)},i},t(function(l,i,s){o.reason||(o.reason=new Ga(l,i,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 dg(function(o){t=o}),cancel:t}}},gD=hD;function vD(e){return function(r){return e.apply(null,r)}}function yD(e){return Z.isObject(e)&&e.isAxiosError===!0}var Sc={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(Sc).forEach(([e,t])=>{Sc[t]=e});var bD=Sc;function fg(e){const t=new xl(e),r=H0(xl.prototype.request,t);return Z.extend(r,xl.prototype,t,{allOwnKeys:!0}),Z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return fg(qr(e,a))},r}var ft=fg(Iu);ft.Axios=xl;ft.CanceledError=Ga;ft.CancelToken=gD;ft.isCancel=ag;ft.VERSION=Vu;ft.toFormData=Ai;ft.AxiosError=Ce;ft.Cancel=ft.CanceledError;ft.all=function(t){return Promise.all(t)};ft.spread=vD;ft.isAxiosError=yD;ft.mergeConfig=qr;ft.AxiosHeaders=cn;ft.formToJSON=e=>og(Z.isHTMLForm(e)?new FormData(e):e);ft.getAdapter=ug.getAdapter;ft.HttpStatusCode=bD;ft.default=ft;var Ru=ft,so=Ru;function _D(e={}){e.baseURL!==void 0&&(so=Ru.create({baseURL:e.baseURL}))}const ps={get:async e=>so.get("/files",{params:{path_key:e}}),put:async(e,t)=>so.put("/files",e,{params:{path_key:t}}),delete:async e=>so.delete(`/files/${e}`,{params:{path_key:e}}),upload:async(e,t)=>{const r=new FormData;return r.append("file",e),r.append("upload",e),so.post("/files/upload",r,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:t?.onUploadProgress,params:{dir_path:t?.dirPath,tags:t?.tags}})},list:async e=>so.get("/files/list",{params:{dir_path:e}})};function mg(e={}){const t=e.namespace||"default",r=(0,n.ref)([]),o=(0,n.ref)([]),a=(0,n.ref)([]),l=(0,n.computed)(()=>{const f=o.value.map(m=>m.path_key);return[...a.value,...f]}),i=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:i(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 ps.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 ps.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&&ps.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:l,fileToUrl:i,removeFile:c,flushQueue:u,addFile:s,browse:d,namespace:t}}var wD=["data-field"],kD={key:0},$D={key:0},ED=["name"],CD={key:1,class:"flex align-items-center gap-1 p-05"},SD={class:"txt-gray txt-12"},xD={class:"m-05 flex opacity-8 z-99 gap-025"},TD={class:"flex gap-025 rounded pe-1 ps-05 py-025 -my-1"},ND={class:"ellipsis-1 word-break-all h-20 m-0 color-black txt16"},BD={key:2,class:"txt-gray txt-12"},DD={key:0,class:"bgl-multi-preview"},AD={class:"m-0"},MD=["src"],LD={class:"no-margin multi-preview-txt"},PD={key:0,class:"progress"},ID={key:1,class:"bgl-single-preview"},VD={key:0,class:"h-100"},OD=["src"],RD={class:"p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05"},FD={class:"pretty balance user-select-none"},zD={key:4,class:"error-message"},UD=(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}=nt(),l=(0,n.useSlots)(),{fileQueue:i,pathKeys:s,removeFile:c,flushQueue:u,addFile:d,browse:f,pk:m}=mg({disabled:r.disabled,dirPath:r.dirPath,multiple:r.multiple,accept:r.accept,capture:r.capture,namespace:r.id||"upload",onFileQueued:async()=>{await u(),k()},onChange:k});(0,n.watch)(()=>r.modelValue,$=>m.value=$?[$].flat().filter(Boolean):[],{immediate:!0});const{shellClass:p,shellStyle:h}=it(r),y=(0,n.computed)(()=>s.value.length>0||i.value.length>0),b=(0,n.computed)(()=>{const $=r.dropPlaceholder??r.placeholder;if($==null)return a("upload.dropPlaceholder");const I=$e($);return I!=null&&I!==""?I:a("upload.dropPlaceholder")}),g=(0,n.computed)(()=>!s.value.length&&!i.value.length||!!r.multiple),v=$=>Gl.test($),_=(0,n.ref)(!1);function w($,I=!1){$.preventDefault(),$.stopPropagation(),r.disabled||(_.value=I)}function k(){r.multiple?o("update:modelValue",s.value):o("update:modelValue",s.value[0]||void 0)}async function S($){r.disabled||($.preventDefault(),$.stopPropagation(),o("addFileStart"),d($.dataTransfer?.files),_.value=!1)}function E($){return!$||typeof $!="string"?"file":$.split("/").pop()||"file"}return($,I)=>{const D=(0,n.resolveDirective)("tooltip"),R=(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":y.value}]]),style:(0,n.normalizeStyle)((0,n.unref)(h)),"data-field":e.name||e.id},[e.label?((0,n.openBlock)(),(0,n.createElementBlock)("label",kD,[(0,n.createTextVNode)((0,n.toDisplayString)(e.label),1),e.required?((0,n.openBlock)(),(0,n.createElementBlock)("span",$D," *")):(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,ED)):(0,n.createCommentVNode)("",!0),e.theme==="basic"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(sr),{key:2,outline:"",class:"flex p-05 gap-1",onDragover:I[2]||(I[2]=M=>w(M,!0)),onDrop:S},{default:(0,n.withCtx)(()=>[!(0,n.unref)(s).length&&!(0,n.unref)(i).length?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{key:0,class:"px-1-5",icon:"upload",outline:"",value:e.btnPlaceholder||(0,n.unref)(a)("upload.upload"),onClick:I[0]||(I[0]=M=>(0,n.unref)(f)())},null,8,["value"])):(0,n.createCommentVNode)("",!0),(0,n.unref)(i).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",CD,[(0,n.createVNode)((0,n.unref)(Wr),{size:"20"}),(0,n.createElementVNode)("span",SD,(0,n.toDisplayString)((0,n.unref)(a)("upload.uploading",{count:(0,n.unref)(i).length,plural:(0,n.unref)(i).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),M=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:M,class:"txt-gray txt-12 flex"},[(0,n.createElementVNode)("div",xD,[(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(oe),{color:"gray",thin:"",icon:"delete",onClick:N=>(0,n.unref)(c)(M)},null,8,["onClick"]),[[D,"Delete"]]),(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(oe),{color:"gray",thin:"",icon:"autorenew",onClick:I[1]||(I[1]=N=>(0,n.unref)(f)())},null,512),[[D,"Replace"]]),(0,n.createVNode)((0,n.unref)(oe),{icon:"download",color:"gray",thin:"",target:"_blank",href:(0,n.unref)(pn)(M),download:E(M)},null,8,["href","download"]),(0,n.createElementVNode)("div",TD,[(0,n.createVNode)((0,n.unref)(be),{icon:"draft",size:1.5}),(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("p",ND,[(0,n.createTextVNode)((0,n.toDisplayString)(E(M)),1)])),[[R,{src:(0,n.unref)(pn)(M),download:!0}]])])])]))),128)),!(0,n.unref)(s).length&&!(0,n.unref)(i).length?((0,n.openBlock)(),(0,n.createElementBlock)("span",BD,(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)(i).length,dragover:_.value,"bgl_oval-upload":e.oval}]),style:(0,n.normalizeStyle)({width:e.width,height:e.height}),onClick:I[4]||(I[4]=M=>(0,n.unref)(f)()),onDragover:I[5]||(I[5]=M=>w(M,!0)),onDrop:S,onDragleave:I[6]||(I[6]=M=>w(M))},[(0,n.renderSlot)($.$slots,"files",{files:(0,n.unref)(s),fileQueue:(0,n.unref)(i)},()=>[e.multiple?((0,n.openBlock)(),(0,n.createElementBlock)("div",DD,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(s),M=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:M,class:(0,n.normalizeClass)(["multi-image-item-preview",{"bgl_fill-image":e.fill}])},[v(M)?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(wa),{key:0,pathKey:M,class:"multi-preview"},null,8,["pathKey"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:1,icon:"description",class:"multi-preview"})),(0,n.createElementVNode)("p",AD,(0,n.toDisplayString)(E(M)),1),(0,n.createVNode)((0,n.unref)(oe),{thin:"",flat:"",icon:"delete",color:"red",onClick:N=>(0,n.unref)(c)(M)},null,8,["onClick"])],2)),[[R,{src:(0,n.unref)(pn)(M),download:!0}]])),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(i),M=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:M.name,class:(0,n.normalizeClass)(["multi-image-item-preview",{"bgl_fill-image":e.fill}])},[v(M.file.type)?((0,n.openBlock)(),(0,n.createElementBlock)("img",{key:0,class:"multi-preview",src:M.url,alt:""},null,8,MD)):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:1,icon:"description",class:"multi-preview"})),(0,n.createElementVNode)("p",LD,(0,n.toDisplayString)(M.name),1),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["pie",{complete:M.progress===100}]),style:(0,n.normalizeStyle)([{"--p":M.progress},{"--b":"2px"}])},[M.progress<100?((0,n.openBlock)(),(0,n.createElementBlock)("span",PD,(0,n.toDisplayString)(M.progress.toFixed(0)),1)):(0,n.createCommentVNode)("",!0),(0,n.createVNode)((0,n.unref)(be),{class:"success",icon:"check_circle"})],6)],2))),128))])):(0,n.unref)(s).length>0||(0,n.unref)(i).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",ID,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(s),M=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:M,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)(oe),{color:"white",frame:"",thin:"",icon:"delete",onClick:N=>(0,n.unref)(c)(M)},null,8,["onClick"]),[[D,"Delete"]]),(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(oe),{color:"white",frame:"",thin:"",icon:"autorenew",onClick:I[3]||(I[3]=N=>(0,n.unref)(f)())},null,512),[[D,"Replace"]]),(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(oe),{color:"white",frame:"",thin:"",target:"_blank",icon:"download",href:(0,n.unref)(pn)(M),download:E(M)},null,8,["href","download"]),[[D,"Download"]])],2),v(M)?((0,n.openBlock)(),(0,n.createElementBlock)("div",VD,[(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(wa),{class:"single-preview",pathKey:M,alt:""},null,8,["pathKey"]),[[R,{src:(0,n.unref)(pn)(M),download:!0}]])])):(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:1,size:4,weight:"2",icon:"description",class:"color-primary w-100"},null,512)),[[R,{src:(0,n.unref)(pn)(M),download:!0}]])],2))),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(i),M=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:M.name,class:(0,n.normalizeClass)(["single-image-item-preview",{"bgl_fill-image":e.fill}])},[(0,n.createVNode)((0,n.unref)(Wr),{type:"bar",progress:M.progress,class:"absolute bottom-05 end start w-100px mx-auto rounded overflow-hidden"},null,8,["progress"]),v(M.file.type)?((0,n.openBlock)(),(0,n.createElementBlock)("img",{key:0,class:"single-preview opacity-5",src:M.url,alt:""},null,8,OD)):(0,n.createCommentVNode)("",!0)],2))),128))])):(0,n.createCommentVNode)("",!0)],!0),g.value&&(0,n.unref)(l)["drop-placeholder"]?(0,n.renderSlot)($.$slots,"drop-placeholder",{key:0,files:(0,n.unref)(s),fileQueue:(0,n.unref)(i),browse:(0,n.unref)(f)},void 0,!0):g.value?(0,n.renderSlot)($.$slots,"placeholder",{key:1,files:(0,n.unref)(s),fileQueue:(0,n.unref)(i),browse:(0,n.unref)(f)},()=>[(0,n.createElementVNode)("p",RD,[e.showIcon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{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",FD,(0,n.toDisplayString)(b.value),1)])],!0):(0,n.createCommentVNode)("",!0)],38)),e.error?((0,n.openBlock)(),(0,n.createElementBlock)("div",zD,(0,n.toDisplayString)(e.error),1)):(0,n.createCommentVNode)("",!0)],14,wD)}}}),xa=ge(UD,[["__scopeId","data-v-04d7cdbf"]]);const HD=["mergeCells","splitCells","addRowBefore","addRowAfter","deleteRow","insertColumnLeft","insertColumnRight","deleteColumn","tableAlignLeft","tableAlignCenter","tableAlignRight","tableAlignJustify","deleteTable"],WD=["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"],DU=["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",...HD,"separator","undo","redo","fullScreen"],jD=[{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 qD={class:"table-grid-selector p-075"},GD={class:"txt-center mb-075"},YD={style:{"font-size":"14px","font-weight":"500",color:"#333","margin-bottom":"4px"}},XD=["onFocus","onMouseenter","onClick"],KD={class:"border-top pt-075"},JD=10,ZD=10,QD=(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),l=(0,n.computed)(()=>{const f=[];for(let m=1;m<=JD;m++)for(let p=1;p<=ZD;p++)f.push({row:m,col:p,isActive:m<=o.value&&p<=a.value});return f}),i=(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)(Bt),{placement:"bottom-start",thin:"",flat:"",icon:"table"},{default:(0,n.withCtx)(({hide:p})=>[(0,n.createElementVNode)("div",qD,[(0,n.createElementVNode)("div",GD,[(0,n.createElementVNode)("div",YD,(0,n.toDisplayString)(i.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)(l.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:y=>s(h.row,h.col),onMouseenter:y=>s(h.row,h.col),onClick:y=>c(h.row,h.col,p)},null,44,XD))),128))],32),(0,n.createElementVNode)("div",KD,[(0,n.createVNode)((0,n.unref)(oe),{value:"Advanced Settings",icon:"settings",class:"bg-gray-30 color-black",onClick:h=>u(p)},null,8,["onClick"])])])]),_:1}))}}),eA=QD,tA={class:"toolbar flex gap-025 pb-05 flex-wrap",role:"toolbar",style:{position:"relative"}},nA={class:"flex flex-column p-025"},rA=(0,n.defineComponent)({__name:"EditorToolbar",props:{config:{default:()=>WD},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 l(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 i=f=>jD.find(m=>m.name===f);function s(f){const m=e.config.map(i).filter(Boolean);let p=-1;for(let y=f-1;y>=0;y--){const b=m[y];if(b&&b.name!=="separator"&&!l(b.name)){p=y;break}}let h=-1;for(let y=f+1;y<m.length;y++){const b=m[y];if(b&&b.name!=="separator"&&!l(b.name)){h=y;break}}if(p===-1||h===-1)return!1;for(let y=p+1;y<f;y++){const b=m[y];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"),y=h.insertRow();for(let g=0;g<m;g++){const v=document.createElement("th");v.innerHTML=`Header ${g+1}`,v.style.padding="8px",v.style.border="1px solid #ddd",v.style.backgroundColor="#f4f4f4",y.appendChild(v)}p.appendChild(h);const b=document.createElement("tbody");for(let g=0;g<f;g++){const v=b.insertRow();for(let _=0;_<m;_++){const w=v.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",tA,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.config.map(i).filter(Boolean),(h,y)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:y},[h.name==="insertTable"&&!l("insertTable")?((0,n.openBlock)(),(0,n.createBlock)(eA,{key:0,onInsert:u,onOpenAdvanced:d})):h.name==="insertImage"&&!l("insertImage")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{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"&&!l("insertVideo")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{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"&&!l("insertEmbed")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{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"&&!l("alignMenu")?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Bt),{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",nA,[(0,n.createVNode)((0,n.unref)(oe),{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)(oe),{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)(oe),{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)(oe),{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"&&!l("textDirection")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{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")&&!l(h.name)?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{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"&&!l(h.name)?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{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(y)?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:`separator-${y}`,class:"opacity-2 mb-025"},"|")):(0,n.createCommentVNode)("",!0)],64))),128))])}}}),oA=ge(rA,[["__scopeId","data-v-2af54422"]]);function aA(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(!lA(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 l=a.commonAncestorContainer,i=(l.nodeType===Node.TEXT_NODE?l.parentElement:l)?.closest("a");if(t.openLinkModal){t.openLinkModal(o,a,i);return}alert("Link functionality requires proper modal setup")}function lA(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 l=o,i=o;const s=/[\u0590-\u05FF\u0600-\u06FF\w]/;for(;l>0&&s.test(a[l-1]);)l--;for(;i<a.length&&s.test(a[i]);)i++;if(l<i){t.setStart(r,l),t.setEnd(r,i);const c=e.getSelection();return c&&(c.removeAllRanges(),c.addRange(t)),!0}return!1}function am(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"),l=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)",l.appendChild(u)}o.appendChild(a);const i=r.doc.createElement("tbody");for(let c=0;c<e;c++){const u=i.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(i);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 iA(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(l=>l.innerHTML).join(" "),r.slice(1).forEach(l=>{t.getElementById(l.id)?.remove()});const a=t.editorState;a&&(a.content=t.body.innerHTML)}function sA(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 l=t.createElement("td");return l.style.border="1px solid var(--bgl-border-color)",l.style.padding="8px",l.innerHTML=" ",l});r.colSpan=1,r.insertAdjacentElement("afterend",o[0]),o.slice(1).forEach(l=>{o[0].insertAdjacentElement("afterend",l)});const a=t.editorState;a&&(a.content=t.body.innerHTML)}function lm(e,t,r){const o=t.startContainer.parentElement?.closest("td");if(!o)return;const a=o.parentElement,l=a?.parentElement;if(!a||!l)return;const i=a.cloneNode(!0);Array.from(i.cells).forEach(c=>c.innerHTML=" "),a.insertAdjacentElement(e==="before"?"beforebegin":"afterend",i);const s=r.editorState;s&&(s.content=r.body.innerHTML)}function cA(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 uA(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 im(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:l}=o;for(let s=0;s<l.length;s++){const c=l[s].insertCell(e==="after"?a+1:a);c.innerHTML=" ",c.style.border="1px solid var(--bgl-border-color)",c.style.padding="8px"}const i=o.ownerDocument.editorState;i&&(i.content=o.ownerDocument.body.innerHTML)}function dA(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,l=r.ownerDocument;for(let s=0;s<a.length;s++)a[s].deleteCell(o);a[0].cells.length===0&&r.remove();const i=l.editorState;i&&(i.content=l.body.innerHTML)}function fA(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:l}=o;for(let s=0;s<l.length;s++){const c=l[s].cells[a];c&&(c.style.textAlign=t)}const i=o.ownerDocument.editorState;i&&(i.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 hs(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:l}=o,i=l?.closest(r.toLowerCase());if(i)try{const f=i.parentNode;if(f){for(;i.firstChild;)f.insertBefore(i.firstChild,i);f.removeChild(i);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 y=o.parentNode;if(y){if(f){const v=e.createTextNode(f);y.insertBefore(v,o)}if(y.insertBefore(h,o),p){const v=e.createTextNode(p);y.insertBefore(v,o)}y.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 mA(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 Go(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 De(e,t,r){return{name:e,execute:(o,a)=>{o.doc&&(t(o,a),mA(o))},isActive:r}}function pA(e){const t={undo:De("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:De("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:De("Bold",m=>{const p=We(m);if(!p)return;let{range:h,selection:y}=p;if(h.collapsed)return hs(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 v=g.parentNode;for(;g.firstChild;)v?.insertBefore(g.firstChild,g);v?.removeChild(g),y.removeAllRanges(),y.addRange(h)}catch{}else try{const v=m.doc.createElement("b");try{h.surroundContents(v)}catch{const _=h.extractContents();v.appendChild(_),h.insertNode(v)}h.selectNodeContents(v),y.removeAllRanges(),y.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:De("Italic",m=>{const p=We(m);if(!p)return;let{range:h,selection:y}=p;if(h.collapsed)return hs(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 v=g.parentNode;for(;g.firstChild;)v?.insertBefore(g.firstChild,g);v?.removeChild(g),y.removeAllRanges(),y.addRange(h)}catch{}else try{const v=m.doc.createElement("i");try{h.surroundContents(v)}catch{const _=h.extractContents();v.appendChild(_),h.insertNode(v)}h.selectNodeContents(v),y.removeAllRanges(),y.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:De("Underline",m=>{const p=We(m);if(!p)return;let{range:h,selection:y}=p;if(h.collapsed)return hs(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 v=g.parentNode;for(;g.firstChild;)v?.insertBefore(g.firstChild,g);v?.removeChild(g),y.removeAllRanges(),y.addRange(h)}catch{}else try{const v=m.doc.createElement("u");try{h.surroundContents(v)}catch{const _=h.extractContents();v.appendChild(_),h.insertNode(v)}h.selectNodeContents(v),y.removeAllRanges(),y.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:De("Link",m=>{const{openLinkModal:p}=m;p&&aA(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]:De(`Heading ${p}`,h=>{const y=We(h);if(!y)return;const{range:b,selection:g}=y,v=Go(b.commonAncestorContainer);if(!v)return;const{startContainer:_}=b,{endContainer:w}=b,{startOffset:k}=b,{endOffset:S}=b,E=b.collapsed,$=v.tagName.toLowerCase()===p.toLowerCase(),I=$?"p":p;try{const D=h.doc.createElement(I);for(;v.firstChild;)D.appendChild(v.firstChild);v.parentNode?.replaceChild(D,v);try{const R=h.doc.createRange(),M=(F,V,B)=>{if(F===V)return B;if(F.nodeType===Node.TEXT_NODE){const j=h.doc.createTreeWalker(B,NodeFilter.SHOW_TEXT,null);let Q=0;const K=h.doc.createTreeWalker(V,NodeFilter.SHOW_TEXT,null);let re=K.nextNode();for(;re&&re!==F;)Q++,re=K.nextNode();let O=j.nextNode(),P=0;for(;O&&P<Q;)P++,O=j.nextNode();return O}return B.firstChild},N=M(_,v,D),A=M(w,v,D);if(N&&A){if(N.nodeType===Node.TEXT_NODE){const F=Math.min(k,N.textContent?.length||0);R.setStart(N,F)}else R.setStart(N,0);if(E)R.collapse(!0);else if(A.nodeType===Node.TEXT_NODE){const F=Math.min(S,A.textContent?.length||0);R.setEnd(A,F)}else R.setEnd(A,0);g.removeAllRanges(),g.addRange(R)}else R.selectNodeContents(D),E&&R.collapse(!0),g.removeAllRanges(),g.addRange(R)}catch{const M=h.doc.createRange();M.selectNodeContents(D),M.collapse(!0),g.removeAllRanges(),g.addRange(M)}if(!$&&!D.nextElementSibling){const R=h.doc.createElement("p");R.dir=D.dir||h.doc.body.dir,D.parentNode?.insertBefore(R,D.nextSibling)}}catch{}})}),{}),a={p:De("Paragraph",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=Go(h.commonAncestorContainer);if(y&&y.tagName.toLowerCase()!=="p")try{const b=m.doc.createElement("p");for(;y.firstChild;)b.appendChild(y.firstChild);y.parentNode?.replaceChild(b,y),h.selectNodeContents(b),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}}),blockquote:De("Blockquote",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=Go(h.commonAncestorContainer);if(!y)return;const b=y.tagName.toLowerCase()==="blockquote"?"p":"blockquote";try{const g=m.doc.createElement(b);for(;y.firstChild;)g.appendChild(y.firstChild);y.parentNode?.replaceChild(g,y),h.selectNodeContents(g),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}})},l={orderedList:De("Ordered List",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=Go(h.commonAncestorContainer);if(!y)return;const b=y.closest("li");if(b){const g=b.parentElement;if(!g)return;if(g.tagName.toLowerCase()==="ol"){const v=m.doc.createElement("p");for(;b.firstChild;)v.appendChild(b.firstChild);g.parentNode?.insertBefore(v,g),b.remove(),g.querySelector("li")||g.remove(),h.selectNodeContents(v),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h);return}if(g.tagName.toLowerCase()==="ul"){const v=m.doc.createElement("ol"),_=h.startOffset,w=h.startContainer;for(;g.firstChild;)v.appendChild(g.firstChild);g.parentNode?.replaceChild(v,g);try{const k=m.doc.createRange();k.setStart(w,_),k.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange(k)}catch{const k=v.querySelector("li");if(k){const S=m.doc.createRange();S.selectNodeContents(k),S.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange(S)}}return}}try{const g=m.doc.createElement("ol"),v=m.doc.createElement("li");for(;y.firstChild;)v.appendChild(y.firstChild);g.appendChild(v),y.parentNode?.replaceChild(g,y),h.selectNodeContents(v),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}}),unorderedList:De("Unordered List",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=Go(h.commonAncestorContainer);if(!y)return;const b=y.closest("li");if(b){const g=b.parentElement;if(!g)return;if(g.tagName.toLowerCase()==="ul"){const v=m.doc.createElement("p");for(;b.firstChild;)v.appendChild(b.firstChild);g.parentNode?.insertBefore(v,g),b.remove(),g.querySelector("li")||g.remove(),h.selectNodeContents(v),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h);return}if(g.tagName.toLowerCase()==="ol"){const v=m.doc.createElement("ul"),_=h.startOffset,w=h.startContainer;for(;g.firstChild;)v.appendChild(g.firstChild);g.parentNode?.replaceChild(v,g);try{const k=m.doc.createRange();k.setStart(w,_),k.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange(k)}catch{const S=v.querySelector("li");if(S){const E=m.doc.createRange();E.selectNodeContents(S),E.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange(E)}}return}}try{const g=m.doc.createElement("ul"),v=m.doc.createElement("li");for(;y.firstChild;)v.appendChild(y.firstChild);g.appendChild(v),y.parentNode?.replaceChild(g,y),h.selectNodeContents(v),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}})},i={clear:De("Clear Formatting",m=>{const p=We(m);if(!p)return;const{range:h,selection:y}=p;try{let v=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 k=v(w.textContent||"");return m.doc.createTextNode(k)}if(w.nodeType===Node.ELEMENT_NODE){const k=w,S=k.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(S)){const $=v(k.textContent||"");return m.doc.createTextNode($)}if(E.includes(S)){const $=m.doc.createElement(S);return S==="a"&&k.hasAttribute("href")?($.setAttribute("href",k.getAttribute("href")||""),k.hasAttribute("target")&&$.setAttribute("target",k.getAttribute("target")||""),k.hasAttribute("rel")&&$.setAttribute("rel",k.getAttribute("rel")||"")):S==="img"?(k.hasAttribute("src")&&$.setAttribute("src",k.getAttribute("src")||""),k.hasAttribute("alt")&&$.setAttribute("alt",k.getAttribute("alt")||""),k.hasAttribute("width")&&$.setAttribute("width",k.getAttribute("width")||""),k.hasAttribute("height")&&$.setAttribute("height",k.getAttribute("height")||"")):S==="iframe"?(k.hasAttribute("src")&&$.setAttribute("src",k.getAttribute("src")||""),k.hasAttribute("width")&&$.setAttribute("width",k.getAttribute("width")||""),k.hasAttribute("height")&&$.setAttribute("height",k.getAttribute("height")||""),k.hasAttribute("frameborder")&&$.setAttribute("frameborder",k.getAttribute("frameborder")||""),k.hasAttribute("allowfullscreen")&&$.setAttribute("allowfullscreen",k.getAttribute("allowfullscreen")||"")):(S==="video"||S==="audio")&&(k.hasAttribute("src")&&$.setAttribute("src",k.getAttribute("src")||""),k.hasAttribute("controls")&&$.setAttribute("controls",k.getAttribute("controls")||""),k.hasAttribute("width")&&$.setAttribute("width",k.getAttribute("width")||""),k.hasAttribute("height")&&$.setAttribute("height",k.getAttribute("height")||"")),Array.from(k.childNodes).forEach(I=>{const D=_(I);(D.textContent?.trim()||D.nodeType===Node.ELEMENT_NODE)&&$.appendChild(D)}),$}}return m.doc.createTextNode("")};var b=v,g=_;if(h.collapsed){const{body:w}=m.doc,k=m.doc.createDocumentFragment();if(Array.from(w.childNodes).forEach(S=>{const E=_(S);(E.textContent?.trim()||E.nodeType===Node.ELEMENT_NODE)&&k.appendChild(E)}),w.innerHTML="",w.appendChild(k),!w.firstElementChild){const S=m.doc.createElement("p");w.appendChild(S);const E=m.doc.createRange();E.selectNodeContents(S),E.collapse(!0),y.removeAllRanges(),y.addRange(E)}}else{const w=h.cloneContents(),k=m.doc.createElement("div");k.appendChild(w);const S=m.doc.createDocumentFragment();Array.from(k.childNodes).forEach(E=>{const $=_(E);($.textContent?.trim()||$.nodeType===Node.ELEMENT_NODE)&&S.appendChild($)}),h.deleteContents(),h.insertNode(S),h.collapse(!1),y.removeAllRanges(),y.addRange(h)}}catch{}})},s={insertTable:De("Insert Table",(m,p)=>{if(m.openTableEditor&&!p){m.openTableEditor(null);return}if(!p){const[h,y]=[3,3];am(h,y,m);return}if(p.includes("<table")){const h=We(m);if(!h||!m.doc)return;const{range:y}=h;try{const b=m.doc.createElement("div");b.innerHTML=p;const g=b.querySelector("table");if(g){const v=g.cloneNode(!0);y.insertNode(v),y.setStartAfter(v),y.collapse(!0);const _=m.doc.getSelection();_&&(_.removeAllRanges(),_.addRange(y))}}catch{}}else{const[h,y]=p.split("x").map(Number)||[3,3];am(h,y,m)}}),deleteTable:De("Delete Table",m=>m.range&&uA(m.range)),mergeCells:De("Merge Cells",m=>m.range&&m.doc&&iA(m.range,m.doc)),splitCells:De("Split Cells",m=>m.range&&m.doc&&sA(m.range,m.doc)),addRowBefore:De("Add Row Before",m=>m.range&&m.doc&&lm("before",m.range,m.doc)),addRowAfter:De("Add Row After",m=>m.range&&m.doc&&lm("after",m.range,m.doc)),deleteRow:De("Delete Row",m=>m.range&&cA(m.range)),insertColumnLeft:De("Insert Column Left",m=>m.range&&im("before",m.range)),insertColumnRight:De("Insert Column Right",m=>m.range&&im("after",m.range)),deleteColumn:De("Delete Column",m=>m.range&&dA(m.range))},c=["Left","Center","Right","Justify"].reduce((m,p)=>({...m,[`tableAlign${p}`]:De(`Table Align ${p}`,h=>{if(h.range){const y=p==="Left"?"start":p==="Right"?"end":p.toLowerCase();fA(h.range,y)}})}),{}),u={alignLeft:De("Align Left",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=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");y&&(y.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:De("Align Center",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=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");y&&(y.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:De("Align Right",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=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");y&&(y.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:De("Align Justify",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=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");y&&(y.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:De("Toggle Text Direction",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=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");y&&(y.dir=(y.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:De("Set Left to Right Direction",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=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");y&&(y.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:De("Set Right to Left Direction",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=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");y&&(y.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:De("Full Screen",m=>{m.isFullscreen=!m.isFullscreen},m=>m.isFullscreen),splitView:De("Split View",m=>{m.isSplitView=!m.isSplitView},m=>m.isSplitView),codeView:De("Code View",m=>{m.isCodeView=!m.isCodeView},m=>m.isCodeView)},f={image:De("Insert Image",m=>{const{openImageModal:p}=m;p&&p()}),video:De("Insert Video",m=>{const{openVideoModal:p}=m;p&&p()}),embed:De("Insert Embed",m=>{const{openEmbedModal:p}=m;p&&p()})};return{...t,...r,...o,...a,...l,...i,...s,...c,...u,...d,...f}}function hA(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 pg(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 l=(c,u)=>c?u(c)?!0:l(c.parentElement,u):!1,i={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=i[e];return s?l(a,s):l(a,c=>c.tagName?.toLowerCase()===e.toLowerCase())}function gA(e,t){const r=hA(e,pA(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(l=>{pg(l,e.doc)&&a.add(l)}),e.selectedStyles=a};return{execute:(a,l)=>{if(!e.doc)return;if(t?.logCommand(a,l),["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 i=e.doc.getSelection();i?.rangeCount&&(e.selection=i,e.range=i.getRangeAt(0).cloneRange(),e.rangeCount=i.rangeCount);try{r.execute(a,l),["splitView","codeView","fullScreen"].includes(a)||o()}catch{}},isActive:r.isActive,getValue:r.getValue}}var vA=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 sm(e){const t=document.createElement("div");t.innerHTML=e;const r=[],o=[];return t.querySelectorAll("iframe").forEach((a,l)=>{const i=`<!--iframe-${l}-->`;r.push(a.cloneNode(!0)),o.push(i),a.replaceWith(i)}),{html:t.innerHTML,iframes:r}}function cm(e,t,r){const o=/<!--iframe-(\d+)-->/g;e.body.innerHTML=t.replace(o,(a,l)=>{const i=r[Number(l)];return i?i.outerHTML:""})}function yA(){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&&pg(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=sm(t.content);t.doc.body.innerHTML=f.html,setTimeout(()=>{if(t.doc&&(cm(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/>",y=p===" "||m===" ",b=!m&&!p,g=f.parentElement===c.body;(b||y||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 l(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 i(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=sm(t.content);c.body.innerHTML=u.html,setTimeout(()=>{t.doc&&cm(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=l(c)}function s(){if(!t.debug){const c=new vA;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:i,updateState:r,history:o,initDebugger:s,cleanup:()=>{e&&(e(),e=null)}}}var bA=[{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 _A(e,t){e.addEventListener("keydown",r=>{if(!r.ctrlKey&&!r.metaKey)return;const o=bA.find(a=>{const l=a.key===r.key,i=!a.modifiers||(!a.modifiers.ctrl||r.ctrlKey||r.metaKey)&&(!a.modifiers.alt||r.altKey)&&(!a.modifiers.shift||r.shiftKey);return l&&i});o&&(r.preventDefault(),t.execute(o.command))})}var wA={key:0},kA={key:1,class:"flex pt-05"},$A={class:"inline-toolbar-content"},EA={class:"menu-header"},CA={class:"px-025"},SA={key:3,class:"context-menu-separator"},xA={class:"flex gap-05 align-items-end"},TA={class:"flex gap-1"},NA={class:"flex gap-05 w-100"},BA={class:"flex gap-1"},DA={class:"flex gap-05 w-100"},AA={class:"grid gap-0"},MA={key:0,class:"flex gap-025 opacity-5 -mt-05"},LA={key:1,class:"grid grid-wrap-2 gap-05"},PA={class:"grid grid-wrap-2 gap-05 py-1"},IA={class:"overflow-hidden flex justify-content-center"},VA={class:"flex gap-05 w-100"},OA={class:"grid grid-wrap-4 m_grid-wrap-2 gap-col-1 table-editor testMe1"},RA={class:"grid-span-1"},FA={class:"flex gap-025 mt-025 radius-1 p-05 w-fit",style:{height:"var(--bgl-input-height)",background:"var(--bgl-input-bg)"}},zA={class:"grid-span-1"},UA={class:"flex gap-025 mt-025 radius-1 p-025 w-fit",style:{height:"var(--bgl-input-height)",background:"var(--bgl-input-bg)"}},HA={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"},WA={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"},jA=["innerHTML"],qA=(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:l,shellStyle:i}=it(o),s=(0,n.computed)(()=>!!o.modelValue?.trim()),c=(0,n.useAttrs)(),u=(0,n.ref)(),d=yA(),f=(0,n.ref)(!1),m=(0,n.ref)(!1),p=gA(d.state,d.state.debug),h=(0,n.ref)(0),y=(0,n.computed)(()=>(h.value,typeof document<"u"&&getComputedStyle(document.documentElement).getPropertyValue("--bgl-input-color").trim()||"#000")),b=(0,n.computed)(()=>{const L=y.value;return o.textColor||(L&&L.length>0&&L!=="#000"?L:"inherit")}),g=(0,n.computed)(()=>(h.value,typeof document<"u"&&getComputedStyle(document.documentElement).getPropertyValue("--bgl-font").trim()||"sans-serif"));let v=null;(0,n.onMounted)(()=>{typeof document<"u"&&(v=new MutationObserver(L=>{let C=!1;L.forEach(x=>{if(x.type==="attributes"){const{attributeName:ae}=x;(ae==="data-theme"||ae==="class"||ae==="style")&&(C=!0)}}),C&&(h.value++,m.value&&setTimeout(()=>{Qi()},50))}),v.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","class","style"]}),document.body&&v.observe(document.body,{attributes:!0,attributeFilter:["class","data-theme"]}))}),(0,n.onBeforeUnmount)(()=>{v?.disconnect()}),o.debug&&typeof window<"u"&&(window.forceRichTextUpdate=()=>{h.value++},window.debugRichText=we);const _=(0,n.computed)(()=>!(o.hideToolbar||o.basic)),w=(0,n.computed)(()=>!o.hideInlineToolbar),k=(0,n.computed)(()=>o.toolbarConfig),S=(0,n.computed)(()=>{const L=[...o.hide||[]];return o.simple&&["h1","h2","h3","h4","h5","h6","image","video","embed","ul","ol","blockquote","direction","table","alignment"].forEach(C=>{L.includes(C)||L.push(C)}),L}),E=(0,n.ref)(!1),$=(0,n.ref)({url:"",openInNewTab:!0}),I=(0,n.ref)(!1),D=(0,n.ref)({message:"",x:0,y:0});let R=null;const M=(0,n.ref)(!1),N=(0,n.ref)({src:"",alt:"",width:"",height:"",credit:"",figcaption:!1});let A=null;const F=(0,n.ref)(!1),V=(0,n.ref)({src:"",width:"560",height:"315",alt:""});let B=null;const j=(0,n.ref)(!1),Q=(0,n.ref)({top:0,left:0}),K=(0,n.ref)(null),re=(0,n.ref)(!1),O=(0,n.ref)({src:"",width:"",autoplay:!1,mute:!1,controls:!0,loop:!1,aspectRatio:"16:9",customWidth:"",customHeight:"",caption:"",showCaption:!1});let P=null;const U=(0,n.ref)(!1),T=(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"}),z=(0,n.ref)(!1),W=(0,n.ref)({x:0,y:0}),Y=(0,n.ref)(null);let ne=null;const ve=(0,n.computed)(()=>{const L=T.value;let C=`<table style="${`
|
|
30
|
+
`+a)}}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=qr(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:a}=t;r!==void 0&&Sl.assertOptions(r,{silentJSONParsing:Pt.transitional(Pt.boolean),forcedJSONParsing:Pt.transitional(Pt.boolean),clarifyTimeoutError:Pt.transitional(Pt.boolean),legacyInterceptorReqResOrdering:Pt.transitional(Pt.boolean),advertiseZstdAcceptEncoding:Pt.transitional(Pt.boolean)},!1),o!=null&&(Z.isFunction(o)?t.paramsSerializer={serialize:o}:Sl.assertOptions(o,{encode:Pt.function,serialize:Pt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Sl.assertOptions(t,{baseUrl:Pt.spelling("baseURL"),withXsrfToken:Pt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let l=a&&Z.merge(a.common,a[t.method]);a&&Z.forEach(["delete","get","head","post","put","patch","query","common"],p=>{delete a[p]}),t.headers=cn.concat(l,a);const i=[];let s=!0;this.interceptors.request.forEach(function(h){if(typeof h.runWhen=="function"&&h.runWhen(t)===!1)return;s=s&&h.synchronous;const y=t.transitional||Mu;y&&y.legacyInterceptorReqResOrdering?i.unshift(h.fulfilled,h.rejected):i.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=[rm.bind(this),void 0];for(p.unshift(...i),p.push(...c),f=p.length,u=Promise.resolve(t);d<f;)u=u.then(p[d++],p[d++]);return u}f=i.length;let m=t;for(;d<f;){const p=i[d++],h=i[d++];try{m=p(m)}catch(y){h.call(this,y);break}}try{u=rm.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=qr(this.defaults,e),rg(ig(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Z.forEach(["delete","get","head","options"],function(t){Xl.prototype[t]=function(r,o){return this.request(qr(o||{},{method:t,url:r,data:(o||{}).data}))}});Z.forEach(["post","put","patch","query"],function(t){function r(o){return function(l,i,s){return this.request(qr(s||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:l,data:i}))}}Xl.prototype[t]=r(),t!=="query"&&(Xl.prototype[t+"Form"]=r(!0))});var xl=Xl,hD=class dg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const o=this;this.promise.then(a=>{if(!o._listeners)return;let l=o._listeners.length;for(;l-- >0;)o._listeners[l](a);o._listeners=null}),this.promise.then=a=>{let l;const i=new Promise(s=>{o.subscribe(s),l=s}).then(a);return i.cancel=function(){o.unsubscribe(l)},i},t(function(l,i,s){o.reason||(o.reason=new Ga(l,i,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 dg(function(o){t=o}),cancel:t}}},gD=hD;function vD(e){return function(r){return e.apply(null,r)}}function yD(e){return Z.isObject(e)&&e.isAxiosError===!0}var Sc={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(Sc).forEach(([e,t])=>{Sc[t]=e});var bD=Sc;function fg(e){const t=new xl(e),r=H0(xl.prototype.request,t);return Z.extend(r,xl.prototype,t,{allOwnKeys:!0}),Z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return fg(qr(e,a))},r}var ft=fg(Iu);ft.Axios=xl;ft.CanceledError=Ga;ft.CancelToken=gD;ft.isCancel=ag;ft.VERSION=Vu;ft.toFormData=Ai;ft.AxiosError=Ce;ft.Cancel=ft.CanceledError;ft.all=function(t){return Promise.all(t)};ft.spread=vD;ft.isAxiosError=yD;ft.mergeConfig=qr;ft.AxiosHeaders=cn;ft.formToJSON=e=>og(Z.isHTMLForm(e)?new FormData(e):e);ft.getAdapter=ug.getAdapter;ft.HttpStatusCode=bD;ft.default=ft;var Ru=ft,so=Ru;function _D(e={}){e.baseURL!==void 0&&(so=Ru.create({baseURL:e.baseURL}))}const ps={get:async e=>so.get("/files",{params:{path_key:e}}),put:async(e,t)=>so.put("/files",e,{params:{path_key:t}}),delete:async e=>so.delete(`/files/${e}`,{params:{path_key:e}}),upload:async(e,t)=>{const r=new FormData;return r.append("file",e),r.append("upload",e),so.post("/files/upload",r,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:t?.onUploadProgress,params:{dir_path:t?.dirPath,tags:t?.tags}})},list:async e=>so.get("/files/list",{params:{dir_path:e}})};function mg(e={}){const t=e.namespace||"default",r=(0,n.ref)([]),o=(0,n.ref)([]),a=(0,n.ref)([]),l=(0,n.computed)(()=>{const f=o.value.map(m=>m.path_key);return[...a.value,...f]}),i=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:i(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 ps.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 ps.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&&ps.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:l,fileToUrl:i,removeFile:c,flushQueue:u,addFile:s,browse:d,namespace:t}}var wD=["data-field"],kD={key:0},$D={key:0},ED=["name"],CD={key:1,class:"flex align-items-center gap-1 p-05"},SD={class:"txt-gray txt-12"},xD={class:"m-05 flex opacity-8 z-99 gap-025"},TD={class:"flex gap-025 rounded pe-1 ps-05 py-025 -my-1"},ND={class:"ellipsis-1 word-break-all h-20 m-0 color-black txt16"},BD={key:2,class:"txt-gray txt-12"},DD={key:0,class:"bgl-multi-preview"},AD={class:"m-0"},MD=["src"],LD={class:"no-margin multi-preview-txt"},PD={key:0,class:"progress"},ID={key:1,class:"bgl-single-preview"},VD={key:0,class:"h-100"},OD=["src"],RD={class:"p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05"},FD={class:"pretty balance user-select-none"},zD={key:4,class:"error-message"},UD=(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}=nt(),l=(0,n.useSlots)(),{fileQueue:i,pathKeys:s,removeFile:c,flushQueue:u,addFile:d,browse:f,pk:m}=mg({disabled:r.disabled,dirPath:r.dirPath,multiple:r.multiple,accept:r.accept,capture:r.capture,namespace:r.id||"upload",onFileQueued:async()=>{await u(),k()},onChange:k});(0,n.watch)(()=>r.modelValue,$=>m.value=$?[$].flat().filter(Boolean):[],{immediate:!0});const{shellClass:p,shellStyle:h}=it(r),y=(0,n.computed)(()=>s.value.length>0||i.value.length>0),b=(0,n.computed)(()=>{const $=r.dropPlaceholder??r.placeholder;if($==null)return a("upload.dropPlaceholder");const I=$e($);return I!=null&&I!==""?I:a("upload.dropPlaceholder")}),g=(0,n.computed)(()=>!s.value.length&&!i.value.length||!!r.multiple),v=$=>Gl.test($),_=(0,n.ref)(!1);function w($,I=!1){$.preventDefault(),$.stopPropagation(),r.disabled||(_.value=I)}function k(){r.multiple?o("update:modelValue",s.value):o("update:modelValue",s.value[0]||void 0)}async function S($){r.disabled||($.preventDefault(),$.stopPropagation(),o("addFileStart"),d($.dataTransfer?.files),_.value=!1)}function E($){return!$||typeof $!="string"?"file":$.split("/").pop()||"file"}return($,I)=>{const D=(0,n.resolveDirective)("tooltip"),R=(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":y.value}]]),style:(0,n.normalizeStyle)((0,n.unref)(h)),"data-field":e.name||e.id},[e.label?((0,n.openBlock)(),(0,n.createElementBlock)("label",kD,[(0,n.createTextVNode)((0,n.toDisplayString)(e.label),1),e.required?((0,n.openBlock)(),(0,n.createElementBlock)("span",$D," *")):(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,ED)):(0,n.createCommentVNode)("",!0),e.theme==="basic"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(sr),{key:2,outline:"",class:"flex p-05 gap-1",onDragover:I[2]||(I[2]=M=>w(M,!0)),onDrop:S},{default:(0,n.withCtx)(()=>[!(0,n.unref)(s).length&&!(0,n.unref)(i).length?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{key:0,class:"px-1-5",icon:"upload",outline:"",value:e.btnPlaceholder||(0,n.unref)(a)("upload.upload"),onClick:I[0]||(I[0]=M=>(0,n.unref)(f)())},null,8,["value"])):(0,n.createCommentVNode)("",!0),(0,n.unref)(i).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",CD,[(0,n.createVNode)((0,n.unref)(Wr),{size:"20"}),(0,n.createElementVNode)("span",SD,(0,n.toDisplayString)((0,n.unref)(a)("upload.uploading",{count:(0,n.unref)(i).length,plural:(0,n.unref)(i).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),M=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:M,class:"txt-gray txt-12 flex"},[(0,n.createElementVNode)("div",xD,[(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(oe),{color:"gray",thin:"",icon:"delete",onClick:N=>(0,n.unref)(c)(M)},null,8,["onClick"]),[[D,"Delete"]]),(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(oe),{color:"gray",thin:"",icon:"autorenew",onClick:I[1]||(I[1]=N=>(0,n.unref)(f)())},null,512),[[D,"Replace"]]),(0,n.createVNode)((0,n.unref)(oe),{icon:"download",color:"gray",thin:"",target:"_blank",href:(0,n.unref)(pn)(M),download:E(M)},null,8,["href","download"]),(0,n.createElementVNode)("div",TD,[(0,n.createVNode)((0,n.unref)(be),{icon:"draft",size:1.5}),(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("p",ND,[(0,n.createTextVNode)((0,n.toDisplayString)(E(M)),1)])),[[R,{src:(0,n.unref)(pn)(M),download:!0}]])])])]))),128)),!(0,n.unref)(s).length&&!(0,n.unref)(i).length?((0,n.openBlock)(),(0,n.createElementBlock)("span",BD,(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)(i).length,dragover:_.value,"bgl_oval-upload":e.oval}]),style:(0,n.normalizeStyle)({width:e.width,height:e.height}),onClick:I[4]||(I[4]=M=>(0,n.unref)(f)()),onDragover:I[5]||(I[5]=M=>w(M,!0)),onDrop:S,onDragleave:I[6]||(I[6]=M=>w(M))},[(0,n.renderSlot)($.$slots,"files",{files:(0,n.unref)(s),fileQueue:(0,n.unref)(i)},()=>[e.multiple?((0,n.openBlock)(),(0,n.createElementBlock)("div",DD,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(s),M=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:M,class:(0,n.normalizeClass)(["multi-image-item-preview",{"bgl_fill-image":e.fill}])},[v(M)?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(wa),{key:0,pathKey:M,class:"multi-preview"},null,8,["pathKey"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:1,icon:"description",class:"multi-preview"})),(0,n.createElementVNode)("p",AD,(0,n.toDisplayString)(E(M)),1),(0,n.createVNode)((0,n.unref)(oe),{thin:"",flat:"",icon:"delete",color:"red",onClick:N=>(0,n.unref)(c)(M)},null,8,["onClick"])],2)),[[R,{src:(0,n.unref)(pn)(M),download:!0}]])),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(i),M=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:M.name,class:(0,n.normalizeClass)(["multi-image-item-preview",{"bgl_fill-image":e.fill}])},[v(M.file.type)?((0,n.openBlock)(),(0,n.createElementBlock)("img",{key:0,class:"multi-preview",src:M.url,alt:""},null,8,MD)):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:1,icon:"description",class:"multi-preview"})),(0,n.createElementVNode)("p",LD,(0,n.toDisplayString)(M.name),1),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(["pie",{complete:M.progress===100}]),style:(0,n.normalizeStyle)([{"--p":M.progress},{"--b":"2px"}])},[M.progress<100?((0,n.openBlock)(),(0,n.createElementBlock)("span",PD,(0,n.toDisplayString)(M.progress.toFixed(0)),1)):(0,n.createCommentVNode)("",!0),(0,n.createVNode)((0,n.unref)(be),{class:"success",icon:"check_circle"})],6)],2))),128))])):(0,n.unref)(s).length>0||(0,n.unref)(i).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",ID,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(s),M=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:M,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)(oe),{color:"white",frame:"",thin:"",icon:"delete",onClick:N=>(0,n.unref)(c)(M)},null,8,["onClick"]),[[D,"Delete"]]),(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(oe),{color:"white",frame:"",thin:"",icon:"autorenew",onClick:I[3]||(I[3]=N=>(0,n.unref)(f)())},null,512),[[D,"Replace"]]),(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(oe),{color:"white",frame:"",thin:"",target:"_blank",icon:"download",href:(0,n.unref)(pn)(M),download:E(M)},null,8,["href","download"]),[[D,"Download"]])],2),v(M)?((0,n.openBlock)(),(0,n.createElementBlock)("div",VD,[(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(wa),{class:"single-preview",pathKey:M,alt:""},null,8,["pathKey"]),[[R,{src:(0,n.unref)(pn)(M),download:!0}]])])):(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:1,size:4,weight:"2",icon:"description",class:"color-primary w-100"},null,512)),[[R,{src:(0,n.unref)(pn)(M),download:!0}]])],2))),128)),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(i),M=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:M.name,class:(0,n.normalizeClass)(["single-image-item-preview",{"bgl_fill-image":e.fill}])},[(0,n.createVNode)((0,n.unref)(Wr),{type:"bar",progress:M.progress,class:"absolute bottom-05 end start w-100px mx-auto rounded overflow-hidden"},null,8,["progress"]),v(M.file.type)?((0,n.openBlock)(),(0,n.createElementBlock)("img",{key:0,class:"single-preview opacity-5",src:M.url,alt:""},null,8,OD)):(0,n.createCommentVNode)("",!0)],2))),128))])):(0,n.createCommentVNode)("",!0)],!0),g.value&&(0,n.unref)(l)["drop-placeholder"]?(0,n.renderSlot)($.$slots,"drop-placeholder",{key:0,files:(0,n.unref)(s),fileQueue:(0,n.unref)(i),browse:(0,n.unref)(f)},void 0,!0):g.value?(0,n.renderSlot)($.$slots,"placeholder",{key:1,files:(0,n.unref)(s),fileQueue:(0,n.unref)(i),browse:(0,n.unref)(f)},()=>[(0,n.createElementVNode)("p",RD,[e.showIcon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{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",FD,(0,n.toDisplayString)(b.value),1)])],!0):(0,n.createCommentVNode)("",!0)],38)),e.error?((0,n.openBlock)(),(0,n.createElementBlock)("div",zD,(0,n.toDisplayString)(e.error),1)):(0,n.createCommentVNode)("",!0)],14,wD)}}}),xa=ge(UD,[["__scopeId","data-v-04d7cdbf"]]);const HD=["mergeCells","splitCells","addRowBefore","addRowAfter","deleteRow","insertColumnLeft","insertColumnRight","deleteColumn","tableAlignLeft","tableAlignCenter","tableAlignRight","tableAlignJustify","deleteTable"],WD=["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"],BU=["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",...HD,"separator","undo","redo","fullScreen"],jD=[{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 qD={class:"table-grid-selector p-075"},GD={class:"txt-center mb-075"},YD={style:{"font-size":"14px","font-weight":"500",color:"#333","margin-bottom":"4px"}},XD=["onFocus","onMouseenter","onClick"],KD={class:"border-top pt-075"},JD=10,ZD=10,QD=(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),l=(0,n.computed)(()=>{const f=[];for(let m=1;m<=JD;m++)for(let p=1;p<=ZD;p++)f.push({row:m,col:p,isActive:m<=o.value&&p<=a.value});return f}),i=(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)(Bt),{placement:"bottom-start",thin:"",flat:"",icon:"table"},{default:(0,n.withCtx)(({hide:p})=>[(0,n.createElementVNode)("div",qD,[(0,n.createElementVNode)("div",GD,[(0,n.createElementVNode)("div",YD,(0,n.toDisplayString)(i.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)(l.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:y=>s(h.row,h.col),onMouseenter:y=>s(h.row,h.col),onClick:y=>c(h.row,h.col,p)},null,44,XD))),128))],32),(0,n.createElementVNode)("div",KD,[(0,n.createVNode)((0,n.unref)(oe),{value:"Advanced Settings",icon:"settings",class:"bg-gray-30 color-black",onClick:h=>u(p)},null,8,["onClick"])])])]),_:1}))}}),eA=QD,tA={class:"toolbar flex gap-025 pb-05 flex-wrap",role:"toolbar",style:{position:"relative"}},nA={class:"flex flex-column p-025"},rA=(0,n.defineComponent)({__name:"EditorToolbar",props:{config:{default:()=>WD},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 l(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 i=f=>jD.find(m=>m.name===f);function s(f){const m=e.config.map(i).filter(Boolean);let p=-1;for(let y=f-1;y>=0;y--){const b=m[y];if(b&&b.name!=="separator"&&!l(b.name)){p=y;break}}let h=-1;for(let y=f+1;y<m.length;y++){const b=m[y];if(b&&b.name!=="separator"&&!l(b.name)){h=y;break}}if(p===-1||h===-1)return!1;for(let y=p+1;y<f;y++){const b=m[y];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"),y=h.insertRow();for(let g=0;g<m;g++){const v=document.createElement("th");v.innerHTML=`Header ${g+1}`,v.style.padding="8px",v.style.border="1px solid #ddd",v.style.backgroundColor="#f4f4f4",y.appendChild(v)}p.appendChild(h);const b=document.createElement("tbody");for(let g=0;g<f;g++){const v=b.insertRow();for(let _=0;_<m;_++){const w=v.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",tA,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.config.map(i).filter(Boolean),(h,y)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:y},[h.name==="insertTable"&&!l("insertTable")?((0,n.openBlock)(),(0,n.createBlock)(eA,{key:0,onInsert:u,onOpenAdvanced:d})):h.name==="insertImage"&&!l("insertImage")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{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"&&!l("insertVideo")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{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"&&!l("insertEmbed")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{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"&&!l("alignMenu")?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(Bt),{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",nA,[(0,n.createVNode)((0,n.unref)(oe),{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)(oe),{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)(oe),{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)(oe),{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"&&!l("textDirection")?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{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")&&!l(h.name)?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{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"&&!l(h.name)?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{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(y)?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:`separator-${y}`,class:"opacity-2 mb-025"},"|")):(0,n.createCommentVNode)("",!0)],64))),128))])}}}),oA=ge(rA,[["__scopeId","data-v-2af54422"]]);function aA(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(!lA(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 l=a.commonAncestorContainer,i=(l.nodeType===Node.TEXT_NODE?l.parentElement:l)?.closest("a");if(t.openLinkModal){t.openLinkModal(o,a,i);return}alert("Link functionality requires proper modal setup")}function lA(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 l=o,i=o;const s=/[\u0590-\u05FF\u0600-\u06FF\w]/;for(;l>0&&s.test(a[l-1]);)l--;for(;i<a.length&&s.test(a[i]);)i++;if(l<i){t.setStart(r,l),t.setEnd(r,i);const c=e.getSelection();return c&&(c.removeAllRanges(),c.addRange(t)),!0}return!1}function am(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"),l=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)",l.appendChild(u)}o.appendChild(a);const i=r.doc.createElement("tbody");for(let c=0;c<e;c++){const u=i.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(i);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 iA(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(l=>l.innerHTML).join(" "),r.slice(1).forEach(l=>{t.getElementById(l.id)?.remove()});const a=t.editorState;a&&(a.content=t.body.innerHTML)}function sA(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 l=t.createElement("td");return l.style.border="1px solid var(--bgl-border-color)",l.style.padding="8px",l.innerHTML=" ",l});r.colSpan=1,r.insertAdjacentElement("afterend",o[0]),o.slice(1).forEach(l=>{o[0].insertAdjacentElement("afterend",l)});const a=t.editorState;a&&(a.content=t.body.innerHTML)}function lm(e,t,r){const o=t.startContainer.parentElement?.closest("td");if(!o)return;const a=o.parentElement,l=a?.parentElement;if(!a||!l)return;const i=a.cloneNode(!0);Array.from(i.cells).forEach(c=>c.innerHTML=" "),a.insertAdjacentElement(e==="before"?"beforebegin":"afterend",i);const s=r.editorState;s&&(s.content=r.body.innerHTML)}function cA(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 uA(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 im(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:l}=o;for(let s=0;s<l.length;s++){const c=l[s].insertCell(e==="after"?a+1:a);c.innerHTML=" ",c.style.border="1px solid var(--bgl-border-color)",c.style.padding="8px"}const i=o.ownerDocument.editorState;i&&(i.content=o.ownerDocument.body.innerHTML)}function dA(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,l=r.ownerDocument;for(let s=0;s<a.length;s++)a[s].deleteCell(o);a[0].cells.length===0&&r.remove();const i=l.editorState;i&&(i.content=l.body.innerHTML)}function fA(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:l}=o;for(let s=0;s<l.length;s++){const c=l[s].cells[a];c&&(c.style.textAlign=t)}const i=o.ownerDocument.editorState;i&&(i.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 hs(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:l}=o,i=l?.closest(r.toLowerCase());if(i)try{const f=i.parentNode;if(f){for(;i.firstChild;)f.insertBefore(i.firstChild,i);f.removeChild(i);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 y=o.parentNode;if(y){if(f){const v=e.createTextNode(f);y.insertBefore(v,o)}if(y.insertBefore(h,o),p){const v=e.createTextNode(p);y.insertBefore(v,o)}y.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 mA(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 Go(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 De(e,t,r){return{name:e,execute:(o,a)=>{o.doc&&(t(o,a),mA(o))},isActive:r}}function pA(e){const t={undo:De("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:De("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:De("Bold",m=>{const p=We(m);if(!p)return;let{range:h,selection:y}=p;if(h.collapsed)return hs(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 v=g.parentNode;for(;g.firstChild;)v?.insertBefore(g.firstChild,g);v?.removeChild(g),y.removeAllRanges(),y.addRange(h)}catch{}else try{const v=m.doc.createElement("b");try{h.surroundContents(v)}catch{const _=h.extractContents();v.appendChild(_),h.insertNode(v)}h.selectNodeContents(v),y.removeAllRanges(),y.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:De("Italic",m=>{const p=We(m);if(!p)return;let{range:h,selection:y}=p;if(h.collapsed)return hs(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 v=g.parentNode;for(;g.firstChild;)v?.insertBefore(g.firstChild,g);v?.removeChild(g),y.removeAllRanges(),y.addRange(h)}catch{}else try{const v=m.doc.createElement("i");try{h.surroundContents(v)}catch{const _=h.extractContents();v.appendChild(_),h.insertNode(v)}h.selectNodeContents(v),y.removeAllRanges(),y.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:De("Underline",m=>{const p=We(m);if(!p)return;let{range:h,selection:y}=p;if(h.collapsed)return hs(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 v=g.parentNode;for(;g.firstChild;)v?.insertBefore(g.firstChild,g);v?.removeChild(g),y.removeAllRanges(),y.addRange(h)}catch{}else try{const v=m.doc.createElement("u");try{h.surroundContents(v)}catch{const _=h.extractContents();v.appendChild(_),h.insertNode(v)}h.selectNodeContents(v),y.removeAllRanges(),y.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:De("Link",m=>{const{openLinkModal:p}=m;p&&aA(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]:De(`Heading ${p}`,h=>{const y=We(h);if(!y)return;const{range:b,selection:g}=y,v=Go(b.commonAncestorContainer);if(!v)return;const{startContainer:_}=b,{endContainer:w}=b,{startOffset:k}=b,{endOffset:S}=b,E=b.collapsed,$=v.tagName.toLowerCase()===p.toLowerCase(),I=$?"p":p;try{const D=h.doc.createElement(I);for(;v.firstChild;)D.appendChild(v.firstChild);v.parentNode?.replaceChild(D,v);try{const R=h.doc.createRange(),M=(F,V,B)=>{if(F===V)return B;if(F.nodeType===Node.TEXT_NODE){const j=h.doc.createTreeWalker(B,NodeFilter.SHOW_TEXT,null);let Q=0;const K=h.doc.createTreeWalker(V,NodeFilter.SHOW_TEXT,null);let re=K.nextNode();for(;re&&re!==F;)Q++,re=K.nextNode();let O=j.nextNode(),P=0;for(;O&&P<Q;)P++,O=j.nextNode();return O}return B.firstChild},N=M(_,v,D),A=M(w,v,D);if(N&&A){if(N.nodeType===Node.TEXT_NODE){const F=Math.min(k,N.textContent?.length||0);R.setStart(N,F)}else R.setStart(N,0);if(E)R.collapse(!0);else if(A.nodeType===Node.TEXT_NODE){const F=Math.min(S,A.textContent?.length||0);R.setEnd(A,F)}else R.setEnd(A,0);g.removeAllRanges(),g.addRange(R)}else R.selectNodeContents(D),E&&R.collapse(!0),g.removeAllRanges(),g.addRange(R)}catch{const M=h.doc.createRange();M.selectNodeContents(D),M.collapse(!0),g.removeAllRanges(),g.addRange(M)}if(!$&&!D.nextElementSibling){const R=h.doc.createElement("p");R.dir=D.dir||h.doc.body.dir,D.parentNode?.insertBefore(R,D.nextSibling)}}catch{}})}),{}),a={p:De("Paragraph",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=Go(h.commonAncestorContainer);if(y&&y.tagName.toLowerCase()!=="p")try{const b=m.doc.createElement("p");for(;y.firstChild;)b.appendChild(y.firstChild);y.parentNode?.replaceChild(b,y),h.selectNodeContents(b),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}}),blockquote:De("Blockquote",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=Go(h.commonAncestorContainer);if(!y)return;const b=y.tagName.toLowerCase()==="blockquote"?"p":"blockquote";try{const g=m.doc.createElement(b);for(;y.firstChild;)g.appendChild(y.firstChild);y.parentNode?.replaceChild(g,y),h.selectNodeContents(g),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}})},l={orderedList:De("Ordered List",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=Go(h.commonAncestorContainer);if(!y)return;const b=y.closest("li");if(b){const g=b.parentElement;if(!g)return;if(g.tagName.toLowerCase()==="ol"){const v=m.doc.createElement("p");for(;b.firstChild;)v.appendChild(b.firstChild);g.parentNode?.insertBefore(v,g),b.remove(),g.querySelector("li")||g.remove(),h.selectNodeContents(v),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h);return}if(g.tagName.toLowerCase()==="ul"){const v=m.doc.createElement("ol"),_=h.startOffset,w=h.startContainer;for(;g.firstChild;)v.appendChild(g.firstChild);g.parentNode?.replaceChild(v,g);try{const k=m.doc.createRange();k.setStart(w,_),k.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange(k)}catch{const k=v.querySelector("li");if(k){const S=m.doc.createRange();S.selectNodeContents(k),S.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange(S)}}return}}try{const g=m.doc.createElement("ol"),v=m.doc.createElement("li");for(;y.firstChild;)v.appendChild(y.firstChild);g.appendChild(v),y.parentNode?.replaceChild(g,y),h.selectNodeContents(v),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}}),unorderedList:De("Unordered List",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=Go(h.commonAncestorContainer);if(!y)return;const b=y.closest("li");if(b){const g=b.parentElement;if(!g)return;if(g.tagName.toLowerCase()==="ul"){const v=m.doc.createElement("p");for(;b.firstChild;)v.appendChild(b.firstChild);g.parentNode?.insertBefore(v,g),b.remove(),g.querySelector("li")||g.remove(),h.selectNodeContents(v),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h);return}if(g.tagName.toLowerCase()==="ol"){const v=m.doc.createElement("ul"),_=h.startOffset,w=h.startContainer;for(;g.firstChild;)v.appendChild(g.firstChild);g.parentNode?.replaceChild(v,g);try{const k=m.doc.createRange();k.setStart(w,_),k.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange(k)}catch{const S=v.querySelector("li");if(S){const E=m.doc.createRange();E.selectNodeContents(S),E.collapse(!0),p.selection.removeAllRanges(),p.selection.addRange(E)}}return}}try{const g=m.doc.createElement("ul"),v=m.doc.createElement("li");for(;y.firstChild;)v.appendChild(y.firstChild);g.appendChild(v),y.parentNode?.replaceChild(g,y),h.selectNodeContents(v),h.collapse(!1),p.selection.removeAllRanges(),p.selection.addRange(h)}catch{}})},i={clear:De("Clear Formatting",m=>{const p=We(m);if(!p)return;const{range:h,selection:y}=p;try{let v=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 k=v(w.textContent||"");return m.doc.createTextNode(k)}if(w.nodeType===Node.ELEMENT_NODE){const k=w,S=k.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(S)){const $=v(k.textContent||"");return m.doc.createTextNode($)}if(E.includes(S)){const $=m.doc.createElement(S);return S==="a"&&k.hasAttribute("href")?($.setAttribute("href",k.getAttribute("href")||""),k.hasAttribute("target")&&$.setAttribute("target",k.getAttribute("target")||""),k.hasAttribute("rel")&&$.setAttribute("rel",k.getAttribute("rel")||"")):S==="img"?(k.hasAttribute("src")&&$.setAttribute("src",k.getAttribute("src")||""),k.hasAttribute("alt")&&$.setAttribute("alt",k.getAttribute("alt")||""),k.hasAttribute("width")&&$.setAttribute("width",k.getAttribute("width")||""),k.hasAttribute("height")&&$.setAttribute("height",k.getAttribute("height")||"")):S==="iframe"?(k.hasAttribute("src")&&$.setAttribute("src",k.getAttribute("src")||""),k.hasAttribute("width")&&$.setAttribute("width",k.getAttribute("width")||""),k.hasAttribute("height")&&$.setAttribute("height",k.getAttribute("height")||""),k.hasAttribute("frameborder")&&$.setAttribute("frameborder",k.getAttribute("frameborder")||""),k.hasAttribute("allowfullscreen")&&$.setAttribute("allowfullscreen",k.getAttribute("allowfullscreen")||"")):(S==="video"||S==="audio")&&(k.hasAttribute("src")&&$.setAttribute("src",k.getAttribute("src")||""),k.hasAttribute("controls")&&$.setAttribute("controls",k.getAttribute("controls")||""),k.hasAttribute("width")&&$.setAttribute("width",k.getAttribute("width")||""),k.hasAttribute("height")&&$.setAttribute("height",k.getAttribute("height")||"")),Array.from(k.childNodes).forEach(I=>{const D=_(I);(D.textContent?.trim()||D.nodeType===Node.ELEMENT_NODE)&&$.appendChild(D)}),$}}return m.doc.createTextNode("")};var b=v,g=_;if(h.collapsed){const{body:w}=m.doc,k=m.doc.createDocumentFragment();if(Array.from(w.childNodes).forEach(S=>{const E=_(S);(E.textContent?.trim()||E.nodeType===Node.ELEMENT_NODE)&&k.appendChild(E)}),w.innerHTML="",w.appendChild(k),!w.firstElementChild){const S=m.doc.createElement("p");w.appendChild(S);const E=m.doc.createRange();E.selectNodeContents(S),E.collapse(!0),y.removeAllRanges(),y.addRange(E)}}else{const w=h.cloneContents(),k=m.doc.createElement("div");k.appendChild(w);const S=m.doc.createDocumentFragment();Array.from(k.childNodes).forEach(E=>{const $=_(E);($.textContent?.trim()||$.nodeType===Node.ELEMENT_NODE)&&S.appendChild($)}),h.deleteContents(),h.insertNode(S),h.collapse(!1),y.removeAllRanges(),y.addRange(h)}}catch{}})},s={insertTable:De("Insert Table",(m,p)=>{if(m.openTableEditor&&!p){m.openTableEditor(null);return}if(!p){const[h,y]=[3,3];am(h,y,m);return}if(p.includes("<table")){const h=We(m);if(!h||!m.doc)return;const{range:y}=h;try{const b=m.doc.createElement("div");b.innerHTML=p;const g=b.querySelector("table");if(g){const v=g.cloneNode(!0);y.insertNode(v),y.setStartAfter(v),y.collapse(!0);const _=m.doc.getSelection();_&&(_.removeAllRanges(),_.addRange(y))}}catch{}}else{const[h,y]=p.split("x").map(Number)||[3,3];am(h,y,m)}}),deleteTable:De("Delete Table",m=>m.range&&uA(m.range)),mergeCells:De("Merge Cells",m=>m.range&&m.doc&&iA(m.range,m.doc)),splitCells:De("Split Cells",m=>m.range&&m.doc&&sA(m.range,m.doc)),addRowBefore:De("Add Row Before",m=>m.range&&m.doc&&lm("before",m.range,m.doc)),addRowAfter:De("Add Row After",m=>m.range&&m.doc&&lm("after",m.range,m.doc)),deleteRow:De("Delete Row",m=>m.range&&cA(m.range)),insertColumnLeft:De("Insert Column Left",m=>m.range&&im("before",m.range)),insertColumnRight:De("Insert Column Right",m=>m.range&&im("after",m.range)),deleteColumn:De("Delete Column",m=>m.range&&dA(m.range))},c=["Left","Center","Right","Justify"].reduce((m,p)=>({...m,[`tableAlign${p}`]:De(`Table Align ${p}`,h=>{if(h.range){const y=p==="Left"?"start":p==="Right"?"end":p.toLowerCase();fA(h.range,y)}})}),{}),u={alignLeft:De("Align Left",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=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");y&&(y.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:De("Align Center",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=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");y&&(y.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:De("Align Right",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=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");y&&(y.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:De("Align Justify",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=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");y&&(y.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:De("Toggle Text Direction",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=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");y&&(y.dir=(y.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:De("Set Left to Right Direction",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=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");y&&(y.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:De("Set Right to Left Direction",m=>{const p=We(m);if(!p)return;const{range:h}=p,y=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");y&&(y.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:De("Full Screen",m=>{m.isFullscreen=!m.isFullscreen},m=>m.isFullscreen),splitView:De("Split View",m=>{m.isSplitView=!m.isSplitView},m=>m.isSplitView),codeView:De("Code View",m=>{m.isCodeView=!m.isCodeView},m=>m.isCodeView)},f={image:De("Insert Image",m=>{const{openImageModal:p}=m;p&&p()}),video:De("Insert Video",m=>{const{openVideoModal:p}=m;p&&p()}),embed:De("Insert Embed",m=>{const{openEmbedModal:p}=m;p&&p()})};return{...t,...r,...o,...a,...l,...i,...s,...c,...u,...d,...f}}function hA(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 pg(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 l=(c,u)=>c?u(c)?!0:l(c.parentElement,u):!1,i={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=i[e];return s?l(a,s):l(a,c=>c.tagName?.toLowerCase()===e.toLowerCase())}function gA(e,t){const r=hA(e,pA(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(l=>{pg(l,e.doc)&&a.add(l)}),e.selectedStyles=a};return{execute:(a,l)=>{if(!e.doc)return;if(t?.logCommand(a,l),["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 i=e.doc.getSelection();i?.rangeCount&&(e.selection=i,e.range=i.getRangeAt(0).cloneRange(),e.rangeCount=i.rangeCount);try{r.execute(a,l),["splitView","codeView","fullScreen"].includes(a)||o()}catch{}},isActive:r.isActive,getValue:r.getValue}}var vA=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 sm(e){const t=document.createElement("div");t.innerHTML=e;const r=[],o=[];return t.querySelectorAll("iframe").forEach((a,l)=>{const i=`<!--iframe-${l}-->`;r.push(a.cloneNode(!0)),o.push(i),a.replaceWith(i)}),{html:t.innerHTML,iframes:r}}function cm(e,t,r){const o=/<!--iframe-(\d+)-->/g;e.body.innerHTML=t.replace(o,(a,l)=>{const i=r[Number(l)];return i?i.outerHTML:""})}function yA(){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&&pg(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=sm(t.content);t.doc.body.innerHTML=f.html,setTimeout(()=>{if(t.doc&&(cm(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/>",y=p===" "||m===" ",b=!m&&!p,g=f.parentElement===c.body;(b||y||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 l(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 i(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=sm(t.content);c.body.innerHTML=u.html,setTimeout(()=>{t.doc&&cm(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=l(c)}function s(){if(!t.debug){const c=new vA;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:i,updateState:r,history:o,initDebugger:s,cleanup:()=>{e&&(e(),e=null)}}}var bA=[{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 _A(e,t){e.addEventListener("keydown",r=>{if(!r.ctrlKey&&!r.metaKey)return;const o=bA.find(a=>{const l=a.key===r.key,i=!a.modifiers||(!a.modifiers.ctrl||r.ctrlKey||r.metaKey)&&(!a.modifiers.alt||r.altKey)&&(!a.modifiers.shift||r.shiftKey);return l&&i});o&&(r.preventDefault(),t.execute(o.command))})}var wA={key:0},kA={key:1,class:"flex pt-05"},$A={class:"inline-toolbar-content"},EA={class:"menu-header"},CA={class:"px-025"},SA={key:3,class:"context-menu-separator"},xA={class:"flex gap-05 align-items-end"},TA={class:"flex gap-1"},NA={class:"flex gap-05 w-100"},BA={class:"flex gap-1"},DA={class:"flex gap-05 w-100"},AA={class:"grid gap-0"},MA={key:0,class:"flex gap-025 opacity-5 -mt-05"},LA={key:1,class:"grid grid-wrap-2 gap-05"},PA={class:"grid grid-wrap-2 gap-05 py-1"},IA={class:"overflow-hidden flex justify-content-center"},VA={class:"flex gap-05 w-100"},OA={class:"grid grid-wrap-4 m_grid-wrap-2 gap-col-1 table-editor testMe1"},RA={class:"grid-span-1"},FA={class:"flex gap-025 mt-025 radius-1 p-05 w-fit",style:{height:"var(--bgl-input-height)",background:"var(--bgl-input-bg)"}},zA={class:"grid-span-1"},UA={class:"flex gap-025 mt-025 radius-1 p-025 w-fit",style:{height:"var(--bgl-input-height)",background:"var(--bgl-input-bg)"}},HA={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"},WA={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"},jA=["innerHTML"],qA=(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:l,shellStyle:i}=it(o),s=(0,n.computed)(()=>!!o.modelValue?.trim()),c=(0,n.useAttrs)(),u=(0,n.ref)(),d=yA(),f=(0,n.ref)(!1),m=(0,n.ref)(!1),p=gA(d.state,d.state.debug),h=(0,n.ref)(0),y=(0,n.computed)(()=>(h.value,typeof document<"u"&&getComputedStyle(document.documentElement).getPropertyValue("--bgl-input-color").trim()||"#000")),b=(0,n.computed)(()=>{const L=y.value;return o.textColor||(L&&L.length>0&&L!=="#000"?L:"inherit")}),g=(0,n.computed)(()=>(h.value,typeof document<"u"&&getComputedStyle(document.documentElement).getPropertyValue("--bgl-font").trim()||"sans-serif"));let v=null;(0,n.onMounted)(()=>{typeof document<"u"&&(v=new MutationObserver(L=>{let C=!1;L.forEach(x=>{if(x.type==="attributes"){const{attributeName:ae}=x;(ae==="data-theme"||ae==="class"||ae==="style")&&(C=!0)}}),C&&(h.value++,m.value&&setTimeout(()=>{Qi()},50))}),v.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","class","style"]}),document.body&&v.observe(document.body,{attributes:!0,attributeFilter:["class","data-theme"]}))}),(0,n.onBeforeUnmount)(()=>{v?.disconnect()}),o.debug&&typeof window<"u"&&(window.forceRichTextUpdate=()=>{h.value++},window.debugRichText=we);const _=(0,n.computed)(()=>!(o.hideToolbar||o.basic)),w=(0,n.computed)(()=>!o.hideInlineToolbar),k=(0,n.computed)(()=>o.toolbarConfig),S=(0,n.computed)(()=>{const L=[...o.hide||[]];return o.simple&&["h1","h2","h3","h4","h5","h6","image","video","embed","ul","ol","blockquote","direction","table","alignment"].forEach(C=>{L.includes(C)||L.push(C)}),L}),E=(0,n.ref)(!1),$=(0,n.ref)({url:"",openInNewTab:!0}),I=(0,n.ref)(!1),D=(0,n.ref)({message:"",x:0,y:0});let R=null;const M=(0,n.ref)(!1),N=(0,n.ref)({src:"",alt:"",width:"",height:"",credit:"",figcaption:!1});let A=null;const F=(0,n.ref)(!1),V=(0,n.ref)({src:"",width:"560",height:"315",alt:""});let B=null;const j=(0,n.ref)(!1),Q=(0,n.ref)({top:0,left:0}),K=(0,n.ref)(null),re=(0,n.ref)(!1),O=(0,n.ref)({src:"",width:"",autoplay:!1,mute:!1,controls:!0,loop:!1,aspectRatio:"16:9",customWidth:"",customHeight:"",caption:"",showCaption:!1});let P=null;const U=(0,n.ref)(!1),T=(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"}),z=(0,n.ref)(!1),W=(0,n.ref)({x:0,y:0}),Y=(0,n.ref)(null);let ne=null;const ve=(0,n.computed)(()=>{const L=T.value;let C=`<table style="${`
|
|
31
31
|
width: ${L.width}%;
|
|
32
32
|
border-collapse: collapse;
|
|
33
33
|
margin-bottom: 1rem;
|
|
@@ -289,7 +289,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
289
289
|
translate3d(${g}, ${v}, ${_}px)
|
|
290
290
|
rotateZ(${c.rotate?s?-k:k:0}deg)
|
|
291
291
|
scale(${D})
|
|
292
|
-
`;if(c.slideShadows){let N=p.querySelector(".swiper-slide-shadow");N||(N=Da("cards",p)),N&&(N.style.opacity=Math.min(Math.max((Math.abs(y)-.5)/.5,0),1))}p.style.zIndex=-Math.abs(Math.round(h))+l.length;const M=Fi(c,p);M.style.transform=R}},setTransition:l=>{const i=e.slides.map(s=>Ro(s));i.forEach(s=>{s.style.transitionDuration=`${l}ms`,s.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${l}ms`})}),ed({swiper:e,duration:l,transformElements:i})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:e.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!e.params.cssMode})})}var Ns;function TV(){const e=Mt(),t=In();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 Ns||(Ns=TV()),Ns}var Bs;function NV({userAgent:e}={}){const t=Kg(),r=Mt(),o=r.navigator.platform,a=e||r.navigator.userAgent,l={ios:!1,android:!1},i=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(`${i}x${s}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),p=!1),c&&!m&&(l.os="android",l.android=!0),(u||f||d)&&(l.os="ios",l.ios=!0),l}function Jg(e={}){return Bs||(Bs=NV(e)),Bs}var Ds;function BV(){const e=Mt(),t=Jg();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),l=o(),i=l||a&&t.ios;return{isSafari:r||l,needPerspectiveFix:r,need3dFix:i,isWebView:a}}function Zg(){return Ds||(Ds=BV()),Ds}function DV({swiper:e,on:t,emit:r}){const o=Mt();let a=null,l=null;const i=()=>{!e||e.destroyed||!e.initialized||(r("beforeResize"),r("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(d=>{l=o.requestAnimationFrame(()=>{const{width:f,height:m}=e;let p=f,h=m;d.forEach(({contentBoxSize:y,contentRect:b,target:g})=>{g&&g!==e.el||(p=b?b.width:(y[0]||y).inlineSize,h=b?b.height:(y[0]||y).blockSize)}),(p!==f||h!==m)&&i()})}),a.observe(e.el))},c=()=>{l&&o.cancelAnimationFrame(l),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",i),o.addEventListener("orientationchange",u)}),t("destroy",()=>{c(),o.removeEventListener("resize",i),o.removeEventListener("orientationchange",u)})}function AV({swiper:e,extendParams:t,on:r,emit:o}){const a=[],l=Mt(),i=(u,d={})=>{const f=new(l.MutationObserver||l.WebkitMutationObserver)(m=>{if(e.__preventObserver__)return;if(m.length===1){o("observerUpdate",m[0]);return}const p=function(){o("observerUpdate",m[0])};l.requestAnimationFrame?l.requestAnimationFrame(p):l.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=Yg(e.hostEl);for(let d=0;d<u.length;d+=1)i(u[d])}i(e.hostEl,{childList:e.params.observeSlideChildren}),i(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 MV={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(l=>{o.eventsListeners[l]||(o.eventsListeners[l]=[]),o.eventsListeners[l][a](t)}),o},once(e,t,r){const o=this;if(!o.eventsListeners||o.destroyed||typeof t!="function")return o;function a(...l){o.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(o,l)}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,l)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&r.eventsListeners[o].splice(l,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(l=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(i=>{i.apply(a,[l,...o])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(i=>{i.apply(a,o)})}),t}};function LV(){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(yr(o,"padding-left")||0,10)-parseInt(yr(o,"padding-right")||0,10),r=r-parseInt(yr(o,"padding-top")||0,10)-parseInt(yr(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 PV(){const e=this;function t(D,R){return parseFloat(D.getPropertyValue(e.getDirectionLabel(R))||0)}const r=e.params,{wrapperEl:o,slidesEl:a,rtlTranslate:l,wrongRTL:i}=e,s=e.virtual&&r.virtual.enabled,c=s?e.virtual.slides.length:e.slides.length,u=Mn(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 y=r.slidesOffsetAfter;typeof y=="function"&&(y=r.slidesOffsetAfter.call(e));const b=e.snapGrid.length,g=e.slidesGrid.length,v=e.size-h-y;let _=r.spaceBetween,w=-h,k=0,S=0;if(typeof v>"u")return;typeof _=="string"&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*v:typeof _=="string"&&(_=parseFloat(_)),e.virtualSize=-_-h-y,u.forEach(D=>{l?D.style.marginLeft="":D.style.marginRight="",D.style.marginBottom="",D.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(no(o,"--swiper-centered-offset-before",""),no(o,"--swiper-centered-offset-after","")),r.cssMode&&(no(o,"--swiper-slides-offset-before",`${h}px`),no(o,"--swiper-slides-offset-after",`${y}px`));const E=r.grid&&r.grid.rows>1&&e.grid;E?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();let $;const I=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(D=>typeof r.breakpoints[D].slidesPerView<"u").length>0;for(let D=0;D<d;D+=1){$=0;const R=u[D];if(!(R&&(E&&e.grid.updateSlide(D,R,u),yr(R,"display")==="none"))){if(s&&r.slidesPerView==="auto")r.virtual.slidesPerViewAutoSlideSize&&($=r.virtual.slidesPerViewAutoSlideSize),$&&R&&(r.roundLengths&&($=Math.floor($)),R.style[e.getDirectionLabel("width")]=`${$}px`);else if(r.slidesPerView==="auto"){I&&(R.style[e.getDirectionLabel("width")]="");const M=getComputedStyle(R),N=R.style.transform,A=R.style.webkitTransform;if(N&&(R.style.transform="none"),A&&(R.style.webkitTransform="none"),r.roundLengths)$=e.isHorizontal()?Uc(R,"width",!0):Uc(R,"height",!0);else{const F=t(M,"width"),V=t(M,"padding-left"),B=t(M,"padding-right"),j=t(M,"margin-left"),Q=t(M,"margin-right"),K=M.getPropertyValue("box-sizing");if(K&&K==="border-box")$=F+j+Q;else{const{clientWidth:re,offsetWidth:O}=R;$=F+V+B+j+Q+(O-re)}}N&&(R.style.transform=N),A&&(R.style.webkitTransform=A),r.roundLengths&&($=Math.floor($))}else $=(v-(r.slidesPerView-1)*_)/r.slidesPerView,r.roundLengths&&($=Math.floor($)),R&&(R.style[e.getDirectionLabel("width")]=`${$}px`);R&&(R.swiperSlideSize=$),p.push($),r.centeredSlides?(w=w+$/2+k/2+_,k===0&&D!==0&&(w=w-v/2-_),D===0&&(w=w-v/2-_),Math.abs(w)<1/1e3&&(w=0),r.roundLengths&&(w=Math.floor(w)),S%r.slidesPerGroup===0&&f.push(w),m.push(w)):(r.roundLengths&&(w=Math.floor(w)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&f.push(w),m.push(w),w=w+$+_),e.virtualSize+=$+_,k=$,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,v)+y,l&&i&&(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($,f),!r.centeredSlides){const D=r.slidesPerView!=="auto"&&r.slidesPerView%1!==0,R=r.snapToSlideEdge&&!r.loop&&(r.slidesPerView==="auto"||D);let M=f.length;if(R){let A;if(r.slidesPerView==="auto"){A=1;let F=0;for(let V=p.length-1;V>=0&&(F+=p[V]+(V<p.length-1?_:0),F<=v);V-=1)A=p.length-V}else A=Math.floor(r.slidesPerView);M=Math.max(d-A,0)}const N=[];for(let A=0;A<f.length;A+=1){let F=f[A];r.roundLengths&&(F=Math.floor(F)),R?A<=M&&N.push(F):f[A]<=e.virtualSize-v&&N.push(F)}f=N,Math.floor(e.virtualSize-v)-Math.floor(f[f.length-1])>1&&(R||f.push(e.virtualSize-v))}if(s&&r.loop){const D=p[0]+_;if(r.slidesPerGroup>1){const R=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),M=D*r.slidesPerGroup;for(let N=0;N<R;N+=1)f.push(f[f.length-1]+M)}for(let R=0;R<e.virtual.slidesBefore+e.virtual.slidesAfter;R+=1)r.slidesPerGroup===1&&f.push(f[f.length-1]+D),m.push(m[m.length-1]+D),e.virtualSize+=D}if(f.length===0&&(f=[0]),_!==0){const D=e.isHorizontal()&&l?"marginLeft":e.getDirectionLabel("marginRight");u.filter((R,M)=>!r.cssMode||r.loop?!0:M!==u.length-1).forEach(R=>{R.style[D]=`${_}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let D=0;p.forEach(M=>{D+=M+(_||0)}),D-=_;const R=D>v?D-v:0;f=f.map(M=>M<=0?-h:M>R?R+y:M)}if(r.centerInsufficientSlides){let D=0;if(p.forEach(R=>{D+=R+(_||0)}),D-=_,D<v){const R=(v-D)/2;f.forEach((M,N)=>{f[N]=M-R}),m.forEach((M,N)=>{m[N]=M+R})}}if(Object.assign(e,{slides:u,snapGrid:f,slidesGrid:m,slidesSizesGrid:p}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){no(o,"--swiper-centered-offset-before",`${-f[0]}px`),no(o,"--swiper-centered-offset-after",`${e.size/2-p[p.length-1]/2}px`);const D=-e.snapGrid[0],R=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(M=>M+D),e.slidesGrid=e.slidesGrid.map(M=>M+R)}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 D=`${r.containerModifierClass}backface-hidden`,R=e.el.classList.contains(D);d<=r.maxBackfaceHiddenSlides?R||e.el.classList.add(D):R&&e.el.classList.remove(D)}}function IV(e){const t=this,r=[],o=t.virtual&&t.params.virtual.enabled;let a=0,l;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const i=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(l=0;l<Math.ceil(t.params.slidesPerView);l+=1){const s=t.activeIndex+l;if(s>t.slides.length&&!o)break;r.push(i(s))}else r.push(i(t.activeIndex));for(l=0;l<r.length;l+=1)if(typeof r[l]<"u"){const s=r[l].offsetHeight;a=s>a?s:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)}function VV(){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 tp=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};function OV(e=this&&this.translate||0){const t=this,r=t.params,{slides:o,rtlTranslate:a,snapGrid:l}=t;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let i=-e;a&&(i=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=(i+(r.centeredSlides?t.minTranslate():0)-d)/(u.swiperSlideSize+s),m=(i-l[0]+(r.centeredSlides?t.minTranslate():0)-d)/(u.swiperSlideSize+s),p=-(i-d),h=p+t.slidesSizesGrid[c],y=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)),tp(u,b,r.slideVisibleClass),tp(u,y,r.slideFullyVisibleClass),u.progress=a?-f:f,u.originalProgress=a?-m:m}}function RV(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:l,isEnd:i,progressLoop:s}=t;const c=l,u=i;if(o===0)a=0,l=!0,i=!0;else{a=(e-t.minTranslate())/o;const d=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;l=d||a<=0,i=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],y=Math.abs(e);y>=m?s=(y-m)/h:s=(y+h-p)/h,s>1&&(s-=1)}Object.assign(t,{progress:a,progressLoop:s,isBeginning:l,isEnd:i}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),l&&!c&&t.emit("reachBeginning toEdge"),i&&!u&&t.emit("reachEnd toEdge"),(c&&!l||u&&!i)&&t.emit("fromEdge"),t.emit("progress",a)}var As=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};function FV(){const e=this,{slides:t,params:r,slidesEl:o,activeIndex:a}=e,l=e.virtual&&r.virtual.enabled,i=e.grid&&r.grid&&r.grid.rows>1,s=f=>Mn(o,`.${r.slideClass}${f}, swiper-slide${f}`)[0];let c,u,d;if(l)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 i?(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&&(i||(d=yV(c,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!d&&(d=t[0]),u=vV(c,`.${r.slideClass}, swiper-slide`)[0],r.loop)),t.forEach(f=>{As(f,f===c,r.slideActiveClass),As(f,f===d,r.slideNextClass),As(f,f===u,r.slidePrevClass)}),e.emitSlidesClasses()}var Ll=(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()}},Ms=(e,t)=>{if(!e.slides[t])return;const r=e.slides[t].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},Hc=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 i=a,s=[i-t];s.push(...Array.from({length:t}).map((c,u)=>i+o+u)),e.slides.forEach((c,u)=>{s.includes(c.column)&&Ms(e,u)});return}const l=a+o-1;if(e.params.rewind||e.params.loop)for(let i=a-t;i<=l+t;i+=1){const s=(i%r+r)%r;(s<a||s>l)&&Ms(e,s)}else for(let i=Math.max(a-t,0);i<=Math.min(l+t,r-1);i+=1)i!==a&&(i>l||i<a)&&Ms(e,i)};function zV(e){const{slidesGrid:t,params:r}=e,o=e.rtlTranslate?e.translate:-e.translate;let a;for(let l=0;l<t.length;l+=1)typeof t[l+1]<"u"?o>=t[l]&&o<t[l+1]-(t[l+1]-t[l])/2?a=l:o>=t[l]&&o<t[l+1]&&(a=l+1):o>=t[l]&&(a=l);return r.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function UV(e){const t=this,r=t.rtlTranslate?t.translate:-t.translate,{snapGrid:o,params:a,activeIndex:l,realIndex:i,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=zV(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===l&&!t.params.loop){u!==s&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(c===l&&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(y=>y.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:i,realIndex:m,previousIndex:l,activeIndex:c}),t.initialized&&Hc(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(i!==m&&t.emit("realIndexChange"),t.emit("slideChange"))}function HV(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 l=!1,i;if(a){for(let s=0;s<r.slides.length;s+=1)if(r.slides[s]===a){l=!0,i=s;break}}if(a&&l)r.clickedSlide=a,r.virtual&&r.params.virtual.enabled?r.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):r.clickedIndex=i;else{r.clickedSlide=void 0,r.clickedIndex=void 0;return}o.slideToClickedSlide&&r.clickedIndex!==void 0&&r.clickedIndex!==r.activeIndex&&r.slideToClickedSlide()}var WV={updateSize:LV,updateSlides:PV,updateAutoHeight:IV,updateSlidesOffset:VV,updateSlidesProgress:OV,updateProgress:RV,updateSlidesClasses:FV,updateActiveIndex:UV,updateClickedSlide:HV};function jV(e=this.isHorizontal()?"x":"y"){const t=this,{params:r,rtlTranslate:o,translate:a,wrapperEl:l}=t;if(r.virtualTranslate)return o?-a:a;if(r.cssMode)return a;let i=mV(l,e);return i+=t.cssOverflowAdjustment(),o&&(i=-i),i||0}function qV(e,t){const r=this,{rtlTranslate:o,params:a,wrapperEl:l,progress:i}=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?l[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-s:-c:a.virtualTranslate||(r.isHorizontal()?s-=r.cssOverflowAdjustment():c-=r.cssOverflowAdjustment(),l.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!==i&&r.updateProgress(e),r.emit("setTranslate",r.translate,t)}function GV(){return-this.snapGrid[0]}function YV(){return-this.snapGrid[this.snapGrid.length-1]}function XV(e=0,t=this.params.speed,r=!0,o=!0,a){const l=this,{params:i,wrapperEl:s}=l;if(l.animating&&i.preventInteractionOnTransition)return!1;const c=l.minTranslate(),u=l.maxTranslate();let d;if(o&&e>c?d=c:o&&e<u?d=u:d=e,l.updateProgress(d),i.cssMode){const f=l.isHorizontal();if(t===0)s[f?"scrollLeft":"scrollTop"]=-d;else{if(!l.support.smoothScroll)return Gg({swiper:l,targetPosition:-d,side:f?"left":"top"}),!0;s.scrollTo({[f?"left":"top"]:-d,behavior:"smooth"})}return!0}return t===0?(l.setTransition(0),l.setTranslate(d),r&&(l.emit("beforeTransitionStart",t,a),l.emit("transitionEnd"))):(l.setTransition(t),l.setTranslate(d),r&&(l.emit("beforeTransitionStart",t,a),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(m){!l||l.destroyed||m.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,l.animating=!1,r&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var KV={getTranslate:jV,setTranslate:qV,minTranslate:GV,maxTranslate:YV,translateTo:XV};function JV(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 Qg({swiper:e,runCallbacks:t,direction:r,step:o}){const{activeIndex:a,previousIndex:l}=e;let i=r;i||(a>l?i="next":a<l?i="prev":i="reset"),e.emit(`transition${o}`),t&&i==="reset"?e.emit(`slideResetTransition${o}`):t&&a!==l&&(e.emit(`slideChangeTransition${o}`),i==="next"?e.emit(`slideNextTransition${o}`):e.emit(`slidePrevTransition${o}`))}function ZV(e=!0,t){const r=this,{params:o}=r;o.cssMode||(o.autoHeight&&r.updateAutoHeight(),Qg({swiper:r,runCallbacks:e,direction:t,step:"Start"}))}function QV(e=!0,t){const r=this,{params:o}=r;r.animating=!1,!o.cssMode&&(r.setTransition(0),Qg({swiper:r,runCallbacks:e,direction:t,step:"End"}))}var e7={setTransition:JV,transitionStart:ZV,transitionEnd:QV};function t7(e=0,t,r=!0,o,a){typeof e=="string"&&(e=parseInt(e,10));const l=this;let i=e;i<0&&(i=0);const{params:s,snapGrid:c,slidesGrid:u,previousIndex:d,activeIndex:f,rtlTranslate:m,wrapperEl:p,enabled:h}=l;if(!h&&!o&&!a||l.destroyed||l.animating&&s.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=l.params.speed);const y=Math.min(l.params.slidesPerGroupSkip,i);let b=y+Math.floor((i-y)/l.params.slidesPerGroup);b>=c.length&&(b=c.length-1);const g=-c[b];if(s.normalizeSlideIndex)for(let k=0;k<u.length;k+=1){const S=-Math.floor(g*100),E=Math.floor(u[k]*100),$=Math.floor(u[k+1]*100);typeof u[k+1]<"u"?S>=E&&S<$-($-E)/2?i=k:S>=E&&S<$&&(i=k+1):S>=E&&(i=k)}if(l.initialized&&i!==f&&(!l.allowSlideNext&&(m?g>l.translate&&g>l.minTranslate():g<l.translate&&g<l.minTranslate())||!l.allowSlidePrev&&g>l.translate&&g>l.maxTranslate()&&(f||0)!==i))return!1;i!==(d||0)&&r&&l.emit("beforeSlideChangeStart"),l.updateProgress(g);let v;i>f?v="next":i<f?v="prev":v="reset";const _=l.virtual&&l.params.virtual.enabled;if(!(_&&a)&&(m&&-g===l.translate||!m&&g===l.translate))return l.updateActiveIndex(i),s.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),s.effect!=="slide"&&l.setTranslate(g),v!=="reset"&&(l.transitionStart(r,v),l.transitionEnd(r,v)),!1;if(s.cssMode){const k=l.isHorizontal(),S=m?g:-g;if(t===0)_&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),_&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[k?"scrollLeft":"scrollTop"]=S})):p[k?"scrollLeft":"scrollTop"]=S,_&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1});else{if(!l.support.smoothScroll)return Gg({swiper:l,targetPosition:S,side:k?"left":"top"}),!0;p.scrollTo({[k?"left":"top"]:S,behavior:"smooth"})}return!0}const w=Zg().isSafari;return _&&!a&&w&&l.isElement&&l.virtual.update(!1,!1,i),l.setTransition(t),l.setTranslate(g),l.updateActiveIndex(i),l.updateSlidesClasses(),l.emit("beforeTransitionStart",t,o),l.transitionStart(r,v),t===0?l.transitionEnd(r,v):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(S){!l||l.destroyed||S.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(r,v))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function n7(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 l=a.grid&&a.params.grid&&a.params.grid.rows>1;let i=e;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)i=i+a.virtual.slidesBefore;else{let s;if(l){const y=i*a.params.grid.rows;s=a.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===y).column}else s=a.getSlideIndexByData(i);const c=l?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"&&!l&&(h=!1),h){const y=m?s<a.activeIndex?"prev":"next":s-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:y,slideTo:!0,activeSlideIndex:y==="next"?s+1:s-c+1,slideRealIndex:y==="next"?a.realIndex:void 0})}if(l){const y=i*a.params.grid.rows;i=a.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===y).column}else i=a.getSlideIndexByData(i)}return requestAnimationFrame(()=>{a.slideTo(i,t,r,o)}),a}function r7(e,t=!0,r){const o=this,{enabled:a,params:l,animating:i}=o;if(!a||o.destroyed)return o;typeof e>"u"&&(e=o.params.speed);let s=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(s=Math.max(o.slidesPerViewDynamic("current",!0),1));const c=o.activeIndex<l.slidesPerGroupSkip?1:s,u=o.virtual&&l.virtual.enabled;if(l.loop){if(i&&!u&&l.loopPreventsSliding)return!1;if(o.loopFix({direction:"next"}),o._clientLeft=o.wrapperEl.clientLeft,o.activeIndex===o.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{o.slideTo(o.activeIndex+c,e,t,r)}),!0}return l.rewind&&o.isEnd?o.slideTo(0,e,t,r):o.slideTo(o.activeIndex+c,e,t,r)}function o7(e,t=!0,r){const o=this,{params:a,snapGrid:l,slidesGrid:i,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(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const p=m(f),h=l.map(v=>m(v)),y=a.freeMode&&a.freeMode.enabled;let b=l[h.indexOf(p)-1];if(typeof b>"u"&&(a.cssMode||y)){let v;l.forEach((_,w)=>{p>=_&&(v=w)}),typeof v<"u"&&(b=y?l[v]:l[v>0?v-1:v])}let g=0;if(typeof b<"u"&&(g=i.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 v=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(v,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 a7(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 l7(e,t=!0,r,o=.5){const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);let l=a.activeIndex;const i=Math.min(a.params.slidesPerGroupSkip,l),s=i+Math.floor((l-i)/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&&(l+=a.params.slidesPerGroup)}else{const u=a.snapGrid[s-1],d=a.snapGrid[s];c-u<=(d-u)*o&&(l-=a.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,a.slidesGrid.length-1),a.slideTo(l,e,t,r)}function i7(){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),l;const i=e.isElement?"swiper-slide":`.${t.slideClass}`,s=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;l=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(l):a>(s?(e.slides.length-o)/2-(e.params.grid.rows-1):e.slides.length-o)?(e.loopFix(),a=e.getSlideIndex(Mn(r,`${i}[data-swiper-slide-index="${l}"]`)[0]),qg(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}var s7={slideTo:t7,slideToLoop:n7,slideNext:r7,slidePrev:o7,slideReset:a7,slideToClosest:l7,slideToClickedSlide:i7};function c7(e,t){const r=this,{params:o,slidesEl:a}=r;if(!o.loop||r.virtual&&r.params.virtual.enabled)return;const l=()=>{Mn(a,`.${o.slideClass}, swiper-slide`).forEach((p,h)=>{p.setAttribute("data-swiper-slide-index",h)})},i=()=>{const p=Mn(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)&&i();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 y=r.isElement?Jn("swiper-slide",[o.slideBlankClass]):Jn("div",[o.slideClass,o.slideBlankClass]);r.slidesEl.append(y)}};u?(o.loopAddBlankSlides?(f(c-r.slides.length%c),r.recalcSlides(),r.updateSlides()):ai("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)"),l()):(d&&(o.loopAddBlankSlides?(f(o.grid.rows-r.slides.length%o.grid.rows),r.recalcSlides(),r.updateSlides()):ai("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)")),l());const m=o.centeredSlides||!!o.slidesOffsetBefore||!!o.slidesOffsetAfter;r.loopFix({slideRealIndex:e,direction:m?void 0:"next",initial:t})}function u7({slideRealIndex:e,slideTo:t=!0,direction:r,setTranslate:o,activeSlideIndex:a,initial:l,byController:i,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:y,slidesOffsetAfter:b,initialSlide:g}=p,v=h||!!y||!!b;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&p.virtual.enabled){t&&(!v&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):v&&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)),v&&_%2===0&&(_=_+1));const w=p.slidesPerGroupAuto?_:p.slidesPerGroup;let k=v?Math.max(w,Math.ceil(_/2)):w;k%w!==0&&(k+=w-k%w),k+=p.loopAdditionalSlides,c.loopedSlides=k;const S=c.grid&&p.grid&&p.grid.rows>1;u.length<_+k||c.params.effect==="cards"&&u.length<_+k*2?ai("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"):S&&p.grid.fill==="row"&&ai("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const E=[],$=[],I=S?Math.ceil(u.length/p.grid.rows):u.length,D=l&&I-g<_&&!v;let R=D?g:c.activeIndex;typeof a>"u"?a=c.getSlideIndex(u.find(B=>B.classList.contains(p.slideActiveClass))):R=a;const M=r==="next"||!r,N=r==="prev"||!r;let A=0,F=0;const V=(S?u[a].column:a)+(v&&typeof o>"u"?-_/2+.5:0);if(V<k){A=Math.max(k-V,w);for(let B=0;B<k-V;B+=1){const j=B-Math.floor(B/I)*I;if(S){const Q=I-j-1;for(let K=u.length-1;K>=0;K-=1)u[K].column===Q&&E.push(K)}else E.push(I-j-1)}}else if(V+_>I-k){F=Math.max(V-(I-k*2),w),D&&(F=Math.max(F,_-I+g+1));for(let B=0;B<F;B+=1){const j=B-Math.floor(B/I)*I;S?u.forEach((Q,K)=>{Q.column===j&&$.push(K)}):$.push(j)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect==="cards"&&u.length<_+k*2&&($.includes(a)&&$.splice($.indexOf(a),1),E.includes(a)&&E.splice(E.indexOf(a),1)),N&&E.forEach(B=>{u[B].swiperLoopMoveDOM=!0,m.prepend(u[B]),u[B].swiperLoopMoveDOM=!1}),M&&$.forEach(B=>{u[B].swiperLoopMoveDOM=!0,m.append(u[B]),u[B].swiperLoopMoveDOM=!1}),c.recalcSlides(),p.slidesPerView==="auto"?c.updateSlides():S&&(E.length>0&&N||$.length>0&&M)&&c.slides.forEach((B,j)=>{c.grid.updateSlide(j,B,c.slides)}),p.watchSlidesProgress&&c.updateSlidesOffset(),t){if(E.length>0&&N){if(typeof e>"u"){const B=c.slidesGrid[R],j=c.slidesGrid[R+A]-B;s?c.setTranslate(c.translate-j):(c.slideTo(R+Math.ceil(A),0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-j,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-j))}else if(o){const B=S?E.length/p.grid.rows:E.length;c.slideTo(c.activeIndex+B,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if($.length>0&&M)if(typeof e>"u"){const B=c.slidesGrid[R],j=c.slidesGrid[R-F]-B;s?c.setTranslate(c.translate-j):(c.slideTo(R-F,0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-j,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-j))}else{const B=S?$.length/p.grid.rows:$.length;c.slideTo(c.activeIndex-B,0,!1,!0)}}if(c.allowSlidePrev=d,c.allowSlideNext=f,c.controller&&c.controller.control&&!i){const B={slideRealIndex:e,direction:r,setTranslate:o,activeSlideIndex:a,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(j=>{!j.destroyed&&j.params.loop&&j.loopFix({...B,slideTo:j.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 d7(){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 l=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;o[l]=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 f7={loopCreate:c7,loopFix:u7,loopDestroy:d7};function m7(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 p7(){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 h7={setGrabCursor:m7,unsetGrabCursor:p7};function g7(e,t=this){function r(o){if(!o||o===In()||o===Mt())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 np(e,t,r){const o=Mt(),{params:a}=e,l=a.edgeSwipeDetection,i=a.edgeSwipeThreshold;return l&&(r<=i||r>=o.innerWidth-i)?l==="prevent"?(t.preventDefault(),!0):!1:!0}function v7(e){const t=this;if(t.destroyed)return;const r=In();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"){np(t,o,o.targetTouches[0].pageX);return}const{params:l,touches:i,enabled:s}=t;if(!s||!l.simulateTouch&&o.pointerType==="mouse"||t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let c=o.target;if(l.touchEventsTarget==="wrapper"&&!gV(c,t.wrapperEl)||"which"in o&&o.which===3||"button"in o&&o.button>0||a.isTouched&&a.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",d=o.composedPath?o.composedPath():o.path;u&&o.target&&o.target.shadowRoot&&d&&(c=d[0]);const f=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,m=!!(o.target&&o.target.shadowRoot);if(l.noSwiping&&(m?g7(f,c):c.closest(f))){t.allowClick=!0;return}if(l.swipeHandler&&!c.closest(l.swipeHandler))return;i.currentX=o.pageX,i.currentY=o.pageY;const p=i.currentX,h=i.currentY;if(!np(t,o,p))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=p,i.startY=h,a.touchStartTime=oi(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let y=!0;c.matches(a.focusableElements)&&(y=!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=y&&t.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||b)&&!c.isContentEditable&&o.preventDefault(),l.freeMode&&l.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",o)}function y7(e){const t=In(),r=this;if(r.destroyed)return;const o=r.touchEventsData,{params:a,touches:l,rtlTranslate:i,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(k=>k.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){l.startX=d,l.startY=f;return}if(!r.allowTouchMove){c.target.matches(o.focusableElements)||(r.allowClick=!1),o.isTouched&&(Object.assign(l,{startX:d,startY:f,currentX:d,currentY:f}),o.touchStartTime=oi());return}if(a.touchReleaseOnEdges&&!a.loop)if(r.isVertical()){if(f<l.startY&&r.translate<=r.maxTranslate()||f>l.startY&&r.translate>=r.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else{if(i&&(d>l.startX&&-r.translate<=r.maxTranslate()||d<l.startX&&-r.translate>=r.minTranslate()))return;if(!i&&(d<l.startX&&r.translate<=r.maxTranslate()||d>l.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),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=d,l.currentY=f;const m=l.currentX-l.startX,p=l.currentY-l.startY;if(r.params.threshold&&Math.sqrt(m**2+p**2)<r.params.threshold)return;if(typeof o.isScrolling>"u"){let k;r.isHorizontal()&&l.currentY===l.startY||r.isVertical()&&l.currentX===l.startX?o.isScrolling=!1:m*m+p*p>=25&&(k=Math.atan2(Math.abs(p),Math.abs(m))*180/Math.PI,o.isScrolling=r.isHorizontal()?k>a.touchAngle:90-k>a.touchAngle)}if(o.isScrolling&&r.emit("touchMoveOpposite",c),typeof o.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.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,y=r.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(h=Math.abs(h)*(i?1:-1),y=Math.abs(y)*(i?1:-1)),l.diff=h,h*=a.touchRatio,i&&(h=-h,y=-y);const b=r.touchesDirection;r.swipeDirection=h>0?"prev":"next",r.touchesDirection=y>0?"prev":"next";const g=r.params.loop&&!a.cssMode,v=r.touchesDirection==="next"&&r.allowSlideNext||r.touchesDirection==="prev"&&r.allowSlidePrev;if(!o.isMoved){if(g&&v&&r.loopFix({direction:r.swipeDirection}),o.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const k=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});r.wrapperEl.dispatchEvent(k)}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&&v&&Math.abs(h)>=1){Object.assign(l,{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&&v&&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&&v&&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,l.startX=l.currentX,l.startY=l.currentY,o.currentTranslate=o.startTranslate,l.diff=r.isHorizontal()?l.currentX-l.startX:l.currentY-l.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 b7(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:l,touches:i,rtlTranslate:s,slidesGrid:c,enabled:u}=t;if(!u||!l.simulateTouch&&o.pointerType==="mouse")return;if(r.allowTouchCallbacks&&t.emit("touchEnd",o),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&l.grabCursor&&t.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}l.grabCursor&&r.isMoved&&r.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=oi(),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=oi(),qg(()=>{t.destroyed||(t.allowClick=!0)}),!r.isTouched||!r.isMoved||!t.swipeDirection||i.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(l.followFinger?m=s?t.translate:-t.translate:m=-r.currentTranslate,l.cssMode)return;if(l.freeMode&&l.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:m});return}const p=m>=-t.maxTranslate()&&!t.params.loop;let h=0,y=t.slidesSizesGrid[0];for(let w=0;w<c.length;w+=w<l.slidesPerGroupSkip?1:l.slidesPerGroup){const k=w<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;typeof c[w+k]<"u"?(p||m>=c[w]&&m<c[w+k])&&(h=w,y=c[w+k]-c[w]):(p||m>=c[w])&&(h=w,y=c[c.length-1]-c[c.length-2])}let b=null,g=null;l.rewind&&(t.isBeginning?g=l.virtual&&l.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const v=(m-c[h])/y,_=h<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;if(f>l.longSwipesMs){if(!l.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(v>=l.longSwipesRatio?t.slideTo(l.rewind&&t.isEnd?b:h+_):t.slideTo(h)),t.swipeDirection==="prev"&&(v>1-l.longSwipesRatio?t.slideTo(h+_):g!==null&&v<0&&Math.abs(v)>l.longSwipesRatio?t.slideTo(g):t.slideTo(h))}else{if(!l.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 rp(){const e=this,{params:t,el:r}=e;if(r&&r.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:a,snapGrid:l}=e,i=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=i&&t.loop;if((t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s){const c=i?e.virtual.slides:e.slides;e.slideTo(c.length-1,0,!1,!0)}else e.params.loop&&!i?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&&l!==e.snapGrid&&e.checkOverflow()}function _7(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 w7(){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 l=e.maxTranslate()-e.minTranslate();l===0?a=0:a=(e.translate-e.minTranslate())/l,a!==e.progress&&e.updateProgress(r?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function k7(e){const t=this;t.destroyed||(Ll(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update())}function $7(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}var ev=(e,t)=>{const r=In(),{params:o,el:a,wrapperEl:l,device:i}=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&&l[c]("scroll",e.onScroll),o.updateOnWindowResize?e[u](i.ios||i.android?"resize orientationchange observerUpdate":"resize observerUpdate",rp,!0):e[u]("observerUpdate",rp,!0),a[c]("load",e.onLoad,{capture:!0}))};function E7(){const e=this,{params:t}=e;e.onTouchStart=v7.bind(e),e.onTouchMove=y7.bind(e),e.onTouchEnd=b7.bind(e),e.onDocumentTouchStart=$7.bind(e),t.cssMode&&(e.onScroll=w7.bind(e)),e.onClick=_7.bind(e),e.onLoad=k7.bind(e),ev(e,"on")}function C7(){ev(this,"off")}var S7={attachEvents:E7,detachEvents:C7},op=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function x7(){const e=this,{realIndex:t,initialized:r,params:o,el:a}=e,l=o.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const i=In(),s=o.breakpointsBase==="window"||!o.breakpointsBase?o.breakpointsBase:"container",c=["window","container"].includes(o.breakpointsBase)||!o.breakpointsBase?e.el:i.querySelector(o.breakpointsBase),u=e.getBreakpoint(l,s,c);if(!u||e.currentBreakpoint===u)return;const d=(u in l?l[u]:void 0)||e.originalParams,f=op(e,o),m=op(e,d),p=e.params.grabCursor,h=d.grabCursor,y=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(k=>{if(typeof d[k]>"u")return;const S=o[k]&&o[k].enabled,E=d[k]&&d[k].enabled;S&&!E&&e[k].disable(),!S&&E&&e[k].enable()});const b=d.direction&&d.direction!==o.direction,g=o.loop&&(d.slidesPerView!==o.slidesPerView||b),v=o.loop;b&&r&&e.changeDirection(),qt(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}),y&&!_?e.disable():!y&&_&&e.enable(),e.currentBreakpoint=u,e.emit("_beforeBreakpoint",d),r&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!v&&w?(e.loopCreate(t),e.updateSlides()):v&&!w&&e.loopDestroy()),e.emit("breakpoint",d)}function T7(e,t="window",r){if(!e||t==="container"&&!r)return;let o=!1;const a=Mt(),l=t==="window"?a.innerHeight:r.clientHeight,i=Object.keys(e).map(s=>typeof s=="string"&&s.indexOf("@")===0?{value:l*parseFloat(s.substr(1)),point:s}:{value:s,point:s});i.sort((s,c)=>parseInt(s.value,10)-parseInt(c.value,10));for(let s=0;s<i.length;s+=1){const{point:c,value:u}=i[s];t==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(o=c):u<=r.clientWidth&&(o=c)}return o||"max"}var N7={setBreakpoint:x7,getBreakpoint:T7};function B7(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 D7(){const e=this,{classNames:t,params:r,rtl:o,el:a,device:l}=e,i=B7(["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:l.android},{ios:l.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);t.push(...i),a.classList.add(...t),e.emitContainerClasses()}function A7(){const e=this,{el:t,classNames:r}=e;!t||typeof t=="string"||(t.classList.remove(...r),e.emitContainerClasses())}var M7={addClasses:D7,removeClasses:A7};function L7(){const e=this,{isLocked:t,params:r}=e,{slidesOffsetBefore:o}=r;if(o){const a=e.slides.length-1,l=e.slidesGrid[a]+e.slidesSizesGrid[a]+o*2;e.isLocked=e.size>l}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 P7={checkOverflow:L7},Wc={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 I7(e,t){return function(o={}){const a=Object.keys(o)[0],l=o[a];if(typeof l!="object"||l===null){qt(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 l)){qt(t,o);return}typeof e[a]=="object"&&!("enabled"in e[a])&&(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),qt(t,o)}}var Ls={eventsEmitter:MV,update:WV,translate:KV,transition:e7,slide:s7,loop:f7,grabCursor:h7,events:S7,breakpoints:N7,checkOverflow:P7,classes:M7},Ps={},td=class jn{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=qt({},o),r&&!o.el&&(o.el=r);const a=In();if(o.el&&typeof o.el=="string"&&a.querySelectorAll(o.el).length>1){const s=[];return a.querySelectorAll(o.el).forEach(c=>{const u=qt({},o,{el:c});s.push(new jn(u))}),s}const l=this;l.__swiper__=!0,l.support=Kg(),l.device=Jg({userAgent:o.userAgent}),l.browser=Zg(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],o.modules&&Array.isArray(o.modules)&&o.modules.forEach(s=>{typeof s=="function"&&l.modules.indexOf(s)<0&&l.modules.push(s)});const i={};return l.modules.forEach(s=>{s({params:o,swiper:l,extendParams:I7(o,i),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}),l.params=qt({},qt({},Wc,i),Ps,o),l.originalParams=qt({},l.params),l.passedParams=qt({},o),l.params&&l.params.on&&Object.keys(l.params.on).forEach(s=>{l.on(s,l.params.on[s])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:r,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.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:l.params.allowSlideNext,allowSlidePrev:l.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:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}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=li(Mn(r,`.${o.slideClass}, swiper-slide`)[0]);return li(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=Mn(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(),l=(o.maxTranslate()-a)*t+a;o.translateTo(l,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:l,slidesSizesGrid:i,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?l[d]+i[d]-l[c]<s:l[d]-l[c]<s)&&(u+=1);else for(let d=c-1;d>=0;d-=1)l[c]-l[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(i=>{i.complete&&Ll(t,i)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const i=t.rtlTranslate?t.translate*-1:t.translate,s=Math.min(Math.max(i,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()}let l;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 i=t.virtual&&o.virtual.enabled?t.virtual.slides:t.slides;l=t.slideTo(i.length-1,0,!1,!0)}else l=t.slideTo(t.activeIndex,0,!1,!0);l||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(l=>{t==="vertical"?l.style.width="":l.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 i=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(a()):Mn(o,a())[0];return!i&&r.params.createElements&&(i=Jn("div",r.params.wrapperClass),o.append(i),Mn(o,`.${r.params.slideClass}`).forEach(s=>{i.append(s)})),Object.assign(r,{el:o,wrapperEl:i,slidesEl:r.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:i,hostEl:r.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||yr(o,"direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||yr(o,"direction")==="rtl"),wrongRTL:yr(i,"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?Ll(r,a):a.addEventListener("load",l=>{Ll(r,l.target)})}),Hc(r),r.initialized=!0,Hc(r),r.emit("init"),r.emit("afterInit"),r}destroy(t=!0,r=!0){const o=this,{params:a,el:l,wrapperEl:i,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(),l&&typeof l!="string"&&l.removeAttribute("style"),i&&i.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),dV(o)),o.destroyed=!0),null}static extendDefaults(t){qt(Ps,t)}static get extendedDefaults(){return Ps}static get defaults(){return Wc}static installModule(t){jn.prototype.__modules__||(jn.prototype.__modules__=[]);const r=jn.prototype.__modules__;typeof t=="function"&&r.indexOf(t)<0&&r.push(t)}static use(t){return Array.isArray(t)?(t.forEach(r=>jn.installModule(r)),jn):(jn.installModule(t),jn)}};Object.keys(Ls).forEach(e=>{Object.keys(Ls[e]).forEach(t=>{td.prototype[t]=Ls[e][t]})});td.use([DV,AV]);var tv=["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 Gr(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function wo(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]:Gr(t[o])&&Gr(e[o])&&Object.keys(t[o]).length>0?t[o].__swiper__?e[o]=t[o]:wo(e[o],t[o]):e[o]=t[o]})}function nv(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function rv(e={}){return e.pagination&&typeof e.pagination.el>"u"}function ov(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function av(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 V7(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function O7({swiper:e,slides:t,passedParams:r,changedParams:o,nextEl:a,prevEl:l,scrollbarEl:i,paginationEl:s}){const c=o.filter($=>$!=="children"&&$!=="direction"&&$!=="wrapperClass"),{params:u,pagination:d,navigation:f,scrollbar:m,virtual:p,thumbs:h}=e;let y,b,g,v,_,w,k,S;o.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&u.thumbs&&(!u.thumbs.swiper||u.thumbs.swiper.destroyed)&&(y=!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||i)&&(u.scrollbar||u.scrollbar===!1)&&m&&!m.el&&(v=!0),o.includes("navigation")&&r.navigation&&(r.navigation.prevEl||l)&&(r.navigation.nextEl||a)&&(u.navigation||u.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(_=!0);const E=$=>{e[$]&&(e[$].destroy(),$==="navigation"?(e.isElement&&(e[$].prevEl.remove(),e[$].nextEl.remove()),u[$].prevEl=void 0,u[$].nextEl=void 0,e[$].prevEl=void 0,e[$].nextEl=void 0):(e.isElement&&e[$].el.remove(),u[$].el=void 0,e[$].el=void 0))};o.includes("loop")&&e.isElement&&(u.loop&&!r.loop?w=!0:!u.loop&&r.loop?k=!0:S=!0),c.forEach($=>{if(Gr(u[$])&&Gr(r[$]))Object.assign(u[$],r[$]),($==="navigation"||$==="pagination"||$==="scrollbar")&&"enabled"in r[$]&&!r[$].enabled&&E($);else{const I=r[$];(I===!0||I===!1)&&($==="navigation"||$==="pagination"||$==="scrollbar")?I===!1&&E($):u[$]=r[$]}}),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&&(S=!0),y&&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()),v&&(e.isElement&&(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-scrollbar"),i.part.add("scrollbar"),e.el.appendChild(i)),i&&(u.scrollbar.el=i),m.init(),m.updateSize(),m.setTranslate()),_&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),Ba(a,e.navigation.arrowSvg),a.part.add("button-next"),e.el.appendChild(a)),(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-prev"),Ba(l,e.navigation.arrowSvg),l.part.add("button-prev"),e.el.appendChild(l))),a&&(u.navigation.nextEl=a),l&&(u.navigation.prevEl=l),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||S)&&e.loopDestroy(),(k||S)&&e.loopCreate(),e.update()}function ap(e={},t=!0){const r={on:{}},o={},a={};wo(r,Wc),r._emitClasses=!0,r.init=!1;const l={},i=tv.map(c=>c.replace(/_/,"")),s=Object.assign({},e);return Object.keys(s).forEach(c=>{typeof e[c]>"u"||(i.indexOf(c)>=0?Gr(e[c])?(r[c]={},a[c]={},wo(r[c],e[c]),wo(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]:l[c]=e[c])}),["navigation","pagination","scrollbar"].forEach(c=>{r[c]===!0&&(r[c]={}),r[c]===!1&&delete r[c]}),{params:r,passedParams:a,rest:l,events:o}}function R7({el:e,nextEl:t,prevEl:r,paginationEl:o,scrollbarEl:a,swiper:l},i){nv(i)&&t&&r&&(l.params.navigation.nextEl=t,l.originalParams.navigation.nextEl=t,l.params.navigation.prevEl=r,l.originalParams.navigation.prevEl=r),rv(i)&&o&&(l.params.pagination.el=o,l.originalParams.pagination.el=o),ov(i)&&a&&(l.params.scrollbar.el=a,l.originalParams.scrollbar.el=a),l.init(e)}function F7(e,t,r,o,a){const l=[];if(!t)return l;const i=s=>{l.indexOf(s)<0&&l.push(s)};if(r&&o){const s=o.map(a),c=r.map(a);s.join("")!==c.join("")&&i("children"),o.length!==r.length&&i("children")}return tv.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in e&&s in t)if(Gr(e[s])&&Gr(t[s])){const c=Object.keys(e[s]),u=Object.keys(t[s]);c.length!==u.length?i(s):(c.forEach(d=>{e[s][d]!==t[s][d]&&i(s)}),u.forEach(d=>{e[s][d]!==t[s][d]&&i(s)}))}else e[s]!==t[s]&&i(s)}),l}var z7=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 Is(e={},t,r){const o=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},l=(i,s)=>{Array.isArray(i)&&i.forEach(c=>{const u=typeof c.type=="symbol";s==="default"&&(s="container-end"),u&&c.children?l(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(i=>{typeof e[i]=="function"&&l(e[i](),i)}),r.value=t.value,t.value=o,{slides:o,slots:a}}function U7(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:l,to:i}=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>=l&&d<=i&&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 H7={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,l=(0,n.ref)("swiper"),i=(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),y=(0,n.ref)(null),b=(0,n.ref)(null),g=(0,n.ref)(null),{params:v,passedParams:_}=ap(e,!1);Is(t,m,p),f.value=_,p.value=m.value;const w=()=>{Is(t,m,p),s.value=!0};v.onAny=(E,...$)=>{r(E,...$)},Object.assign(v.on,{_beforeBreakpoint:w,_containerClasses(E,$){l.value=$}});const k={...v};if(delete k.wrapperClass,d.value=new td(k),d.value.virtual&&d.value.params.virtual.enabled){d.value.virtual.slides=m.value;const E={cache:!1,slides:m.value,renderExternal:$=>{i.value=$},renderExternalUpdate:!1};wo(d.value.params.virtual,E),wo(d.value.originalParams.virtual,E)}(0,n.onUpdated)(()=>{!c.value&&d.value&&(d.value.emitSlidesClasses(),c.value=!0);const{passedParams:E}=ap(e,!1),$=F7(E,f.value,m.value,p.value,I=>I.props&&I.props.key);f.value=E,($.length||s.value)&&d.value&&!d.value.destroyed&&O7({swiper:d.value,slides:m.value,passedParams:E,changedParams:$,nextEl:h.value,prevEl:y.value,scrollbarEl:g.value,paginationEl:b.value}),s.value=!1}),(0,n.provide)("swiper",d),(0,n.watch)(i,()=>{(0,n.nextTick)(()=>{z7(d.value)})}),(0,n.onMounted)(()=>{u.value&&(R7({el:u.value,nextEl:h.value,prevEl:y.value,paginationEl:b.value,scrollbarEl:g.value,swiper:d.value},v),r("swiper",d.value))}),(0,n.onBeforeUnmount)(()=>{d.value&&!d.value.destroyed&&d.value.destroy(!0,!1)});function S(E){return v.virtual?U7(d,E,i.value):(E.forEach(($,I)=>{$.props||($.props={}),$.props.swiperRef=d,$.props.swiperSlideIndex=I}),E)}return()=>{const{slides:E,slots:$}=Is(t,m,p);return(0,n.h)(o,{ref:u,class:av(l.value)},[$["container-start"],(0,n.h)(a,{class:V7(v.wrapperClass)},[$["wrapper-start"],S(E),$["wrapper-end"]]),nv(e)&&[(0,n.h)("div",{ref:y,class:"swiper-button-prev"}),(0,n.h)("div",{ref:h,class:"swiper-button-next"})],ov(e)&&(0,n.h)("div",{ref:g,class:"swiper-scrollbar"}),rv(e)&&(0,n.h)("div",{ref:b,class:"swiper-pagination"}),$["container-end"]])}}},W7={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),l=(0,n.ref)("swiper-slide"),i=(0,n.ref)(!1);function s(d,f,m){f===a.value&&(l.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&&l.value!=="swiper-slide"&&(l.value="swiper-slide"))}),(0,n.onBeforeUnmount)(()=>{!o||!o.value||o.value.off("_slideClass",s)});const c=(0,n.computed)(()=>({isActive:l.value.indexOf("swiper-slide-active")>=0,isVisible:l.value.indexOf("swiper-slide-visible")>=0,isPrev:l.value.indexOf("swiper-slide-prev")>=0,isNext:l.value.indexOf("swiper-slide-next")>=0}));(0,n.provide)("swiperSlide",c);const u=()=>{i.value=!0};return()=>(0,n.h)(e.tag,{class:av(`${l.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&&!i.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&&!i.value&&(0,n.h)("div",{class:"swiper-lazy-preloader",onVnodeMounted:d=>{d.el&&(d.el.lazyPreloaderManaged=!0)}})])}},j7={class:"swi-wrap"},q7={key:0,class:"swi-ctrl"},G7=(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,l={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"}},i=(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 k={};return o.slideWidth!==void 0&&(k.width=typeof o.slideWidth=="number"?`${o.slideWidth}px`:o.slideWidth),k}),m=(0,n.computed)(()=>l[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 k=(D,R,M)=>D!==void 0?D:m.value[R]!==void 0?m.value[R]:M,S={modules:[_V,wV,kV,$V,SV,EV,CV,xV],effect:k(o.effect,"effect","slide"),direction:o.direction??"horizontal",speed:k(o.speed,"speed",300),loop:k(o.loop,"loop",!1),initialSlide:o.index??o.initialSlide,slidesPerView:p.value,spaceBetween:k(o.spaceBetween,"spaceBetween",0),centeredSlides:k(o.centeredSlides,"centeredSlides",!1),grabCursor:o.grabCursor,keyboard:o.keyboard,mousewheel:o.mousewheel,autoHeight:o.autoHeight},E=k(o.pagination,"pagination",!1);S.pagination=E?typeof E=="boolean"?{clickable:!0}:E:!1;const $=k(o.autoplay,"autoplay",!1);S.autoplay=$?typeof $=="boolean"?{delay:3e3}:$:!1,(S.effect||"slide")==="coverflow"&&(S.coverflowEffect={rotate:0,stretch:0,depth:100,modifier:1,slideShadows:!0,...m.value.coverflowEffect,...o.coverflowEffect});const I=k(o.breakpoints,"breakpoints",void 0);return I&&(S.breakpoints=I),o.advancedOptions?{...S,...o.advancedOptions}:S}),y=(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)(()=>i.value);function g(){if(i.value&&!d){s.value=i.value.isBeginning,c.value=i.value.isEnd;const k=o.loop?i.value.realIndex:i.value.activeIndex;u.value=k,a("update:index",k)}}function v(k){i.value&&i.value.slideTo(k)}function _(k){i.value&&(k==="next"?i.value.slideNext():i.value.slidePrev())}function w(k){i.value=k,g()}return(0,n.watch)(()=>o.initialSlide,k=>{k!==void 0&&i.value&&setTimeout(()=>{i.value&&i.value.slideTo(k)},1)},{immediate:!0}),(0,n.watch)(()=>o.index,k=>{k!==void 0&&(u.value=k,i.value&&k!==(o.loop?i.value.realIndex:i.value.activeIndex)&&(d=!0,i.value.slideTo(k),setTimeout(()=>{d=!1},50)))}),(0,n.watch)(h,k=>{i.value&&(Object.assign(i.value.params,k),i.value.update())},{deep:!0}),t({swiper:b,slideNext:()=>{_("next")},slidePrev:()=>{_("prev")},slideTo:v,update:()=>i.value?.update(),isFirst:s,isLast:c,currentIndex:u}),(k,S)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",j7,[(0,n.createVNode)((0,n.unref)(H7),(0,n.mergeProps)(y.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,$)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(W7),{key:$,style:(0,n.normalizeStyle)(f.value)},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(k.$slots,"default",{item:E,index:$,currentIndex:u.value})]),_:2},1032,["style"]))),128))]),_:3},16),(0,n.renderSlot)(k.$slots,"navigation",{items:e.items||[],currentIndex:u.value,slideTo:v,prev:()=>_("prev"),next:()=>_("next"),isFirst:s.value,isLast:c.value},()=>[e.navigation?((0,n.openBlock)(),(0,n.createElementBlock)("div",q7,[(0,n.createElementVNode)("div",{class:"swi-prev hover",onClick:S[0]||(S[0]=E=>_("prev"))},[(0,n.renderSlot)(k.$slots,"prev-button",{prev:()=>_("prev")},()=>[(0,n.createVNode)((0,n.unref)(be),{name:"chevron_left",class:"user-select-none hover z-99 color-primary",size:2})])]),(0,n.createElementVNode)("div",{class:"swi-next hover",onClick:S[1]||(S[1]=E=>_("next"))},[(0,n.renderSlot)(k.$slots,"next-button",{next:()=>_("next")},()=>[(0,n.createVNode)((0,n.unref)(be),{name:"chevron_right",class:"user-select-none hover z-99 color-primary",size:2})])])])):(0,n.createCommentVNode)("",!0)]),e.pagination?(0,n.renderSlot)(k.$slots,"pagination",{key:0}):(0,n.createCommentVNode)("",!0)]))}}),lv=G7,Y7={},X7={class:"flex space-between"};function K7(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",X7,[(0,n.renderSlot)(e.$slots,"default")])}var J7=ge(Y7,[["render",K7]]),Z7=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}},Q7=(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)(),l=(0,n.ref)(1),i=(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:ce=>{p.value=ce,o("update:zoom",p.value)}}),y=(0,n.ref)(1),b=(0,n.ref)(0),g=(0,n.ref)(0),v=(0,n.ref)("y"),_=(0,n.ref)(!1),w=(0,n.ref)(-1),k=(0,n.ref)(-1),S=(0,n.ref)(0),E=(0,n.ref)(!0),$=(0,n.ref)(),I=(0,n.ref)(),D=(0,n.ref)(0),R=(0,n.ref)(0),M=(0,n.ref)(0),N=(0,n.ref)(),A=(0,n.computed)(()=>({transform:[`translate(${l.value*d.value}px, ${i.value*m.value}px)`,`scale(${y.value})`].join(" "),transformOrigin:"50% 50%"}));(0,n.watch)(()=>h.value,ce=>{const{x:ke,y:H}=O();u.value=Math.max(-ke,Math.min(ke,u.value)),f.value=Math.max(-H,Math.min(H,f.value)),ce!==1&&(E.value=!1)});function F(){h.value=1,E.value=!0,u.value=0,f.value=0}t({reset:F});function V(ce){if(e.disabled)return;let ke=h.value*ce;if(e.zoomingElastic){if(ke<e.minScale||ke>e.maxScale){let H=Math.log2(ce);H*=.2,ce=2**H,ke=h.value*ce}}else ke<e.minScale?ke=e.minScale:ke>e.maxScale&&(ke=e.maxScale);if(ce=ke/h.value,h.value=ke,e.pivot!=="image-center"){const H=(w.value-s.value)/l.value,G=(k.value-c.value)/i.value;u.value=(.5+u.value-H)*ce+H-.5,f.value=(.5+f.value-G)*ce+G-.5}}function B(){w.value=s.value+l.value/2,k.value=c.value+i.value/2}function j(ce,ke){if(_.value){const H=Date.now(),G=ce-w.value,fe=ke-k.value;if(!E.value){const ye=H-M.value;ye>0&&(D.value=G/ye,R.value=fe/ye);const qe=O(),Xe=qe.x,Ie=qe.y,le=u.value+G/l.value,me=f.value+fe/i.value;u.value=Math.max(-Xe,Math.min(Xe,le)),f.value=Math.max(-Ie,Math.min(Ie,me)),M.value=H}}w.value=ce,k.value=ke}function Q(){if(Math.abs(D.value)<.01&&Math.abs(R.value)<.01){D.value=0,R.value=0,N.value&&(cancelAnimationFrame(N.value),N.value=void 0);return}const ce=O(),ke=u.value+D.value*16/l.value,H=f.value+R.value*16/i.value;u.value=Math.max(-ce.x,Math.min(ce.x,ke)),f.value=Math.max(-ce.y,Math.min(ce.y,H)),D.value*=.95,R.value*=.95,N.value=requestAnimationFrame(Q)}const K=Ur(()=>{re(),E.value=h.value===1,!E.value&&(Math.abs(D.value)>.1||Math.abs(R.value)>.1)?(N.value&&cancelAnimationFrame(N.value),Q()):(D.value=0,R.value=0)},50);function re(){if(h.value<e.minScale?h.value=e.minScale:h.value>e.maxScale&&V(e.maxScale/h.value),e.limitTranslation){const ce=O();Math.abs(u.value)>ce.x&&(u.value*=ce.x/Math.abs(u.value)),Math.abs(f.value)>ce.y&&(f.value*=ce.y/Math.abs(f.value))}}function O(){const ce=Math.max(0,(h.value-1)/2);return{x:ce,y:ce}}function P(ce){if(!e.mouseWheelToZoom)return;ce.preventDefault();const ke=Date.now();Math.abs(ce.deltaY)===120?ke-b.value>50&&(U(ce.deltaY),b.value=ke):(ke-g.value>50&&(v.value=ce.deltaX>ce.deltaY?"x":"y",v.value==="y"&&U(ce.deltaY)),g.value=ke)}function U(ce){V(1.15**(ce/120)),K()}function T(ce){X(),_.value=!0,w.value=ce.clientX,k.value=ce.clientY,M.value=Date.now(),D.value=0,R.value=0,N.value&&(cancelAnimationFrame(N.value),N.value=void 0),document.addEventListener("mousemove",W),document.addEventListener("mouseup",z)}function z(){_.value=!1,K(),document.removeEventListener("mouseup",z),document.removeEventListener("mousemove",W)}function W(ce){!E.value&&h.value>1&&ce.stopPropagation(),j(ce.clientX,ce.clientY)}function Y(ce){if(ce.touches.length===1)X(),w.value=ce.touches[0].clientX,k.value=ce.touches[0].clientY,M.value=Date.now(),D.value=0,R.value=0,N.value&&(cancelAnimationFrame(N.value),N.value=void 0),_.value=!0;else if(ce.touches.length===2){N.value&&(cancelAnimationFrame(N.value),N.value=void 0),D.value=0,R.value=0,_.value=!0,w.value=(ce.touches[0].clientX+ce.touches[1].clientX)/2,k.value=(ce.touches[0].clientY+ce.touches[1].clientY)/2;const ke=ce.touches[0].clientX-ce.touches[1].clientX,H=ce.touches[0].clientY-ce.touches[1].clientY;S.value=Math.sqrt(ke*ke+H*H)}document.addEventListener("touchend",ne)}function ne(ce){ce.touches.length===0?(_.value=!1,Math.abs(h.value-1)<.1&&(h.value=1),K()):ce.touches.length===1&&(w.value=ce.touches[0].clientX,k.value=ce.touches[0].clientY),document.removeEventListener("touchend",ne)}function ve(ce){if(ce.touches.length===1)!E.value&&h.value>1&&ce.stopPropagation(),j(ce.touches[0].clientX,ce.touches[0].clientY);else if(ce.touches.length===2){ce.stopPropagation();const ke=ce.touches[0].clientX-ce.touches[1].clientX,H=ce.touches[0].clientY-ce.touches[1].clientY,G=Math.sqrt(ke*ke+H*H);V(G/S.value),S.value=G}}function X(){if(a.value){const ce=a.value.getBoundingClientRect();s.value=ce.left,c.value=ce.top}}function se(){y.value=ie(y.value,h.value),d.value=ie(d.value,u.value),m.value=ie(m.value,f.value),$.value=window.requestAnimationFrame(se)}function ie(ce,ke){const H=(ke-ce)*.4;return Math.abs(H)>1e-5?ce+H:ke}(0,n.onMounted)(()=>{I.value=new Z7,a.value&&I.value.attach(a.value),e.doubleClickToZoom&&(I.value.onDoubleTap(ue),a.value&&a.value.addEventListener("dblclick",ue)),window.addEventListener("resize",we),we(),X(),se()}),(0,n.onUnmounted)(()=>{a.value&&(I.value?.detach(a.value),e.doubleClickToZoom&&a.value.removeEventListener("dblclick",ue)),window.removeEventListener("resize",we),$.value&&window.cancelAnimationFrame($.value),N.value&&window.cancelAnimationFrame(N.value)});function ue(ce){ce.clientX>0&&(w.value=ce.clientX,k.value=ce.clientY);const ke=Math.min(2.5,e.maxScale/2+.5),H=e.maxScale;h.value===1?V(ke):h.value<H-.1?V(H/h.value):F()}function we(){if(a.value){const ce=window.getComputedStyle(a.value);l.value=Number.parseFloat(ce.width),i.value=Number.parseFloat(ce.height),B(),re()}}return(ce,ke)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"zoomElement",ref:a,class:"vue-zoomer",style:(0,n.normalizeStyle)({backgroundColor:e.backgroundColor}),onMousewheel:P,"on:DOMMouseScroll":P,onMousedown:T,onMouseout:B,onFocusout:B,onTouchstart:Y,onTouchmove:ve},[(0,n.createElementVNode)("div",{class:"zoomer",style:(0,n.normalizeStyle)(A.value)},[(0,n.renderSlot)(ce.$slots,"default",{},void 0,!0)],4)],36))}}),iv=ge(Q7,[["__scopeId","data-v-f6a534bc"]]);function eO(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})(),i=(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),v=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:${v}`,`SUMMARY:${e.title}`];if(e.description&&e.description.length>0){const k=e.description.replace(/\n/g,"\\n");w.push(`DESCRIPTION:${k}`)}return e.location&&e.location.length>0&&(w.push(`LOCATION:${e.location}`),i&&w.push(`URL:${e.location}`)),w.push("STATUS:CONFIRMED","SEQUENCE:0","END:VEVENT","END:VCALENDAR"),w.join(`\r
|
|
292
|
+
`;if(c.slideShadows){let N=p.querySelector(".swiper-slide-shadow");N||(N=Da("cards",p)),N&&(N.style.opacity=Math.min(Math.max((Math.abs(y)-.5)/.5,0),1))}p.style.zIndex=-Math.abs(Math.round(h))+l.length;const M=Fi(c,p);M.style.transform=R}},setTransition:l=>{const i=e.slides.map(s=>Ro(s));i.forEach(s=>{s.style.transitionDuration=`${l}ms`,s.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${l}ms`})}),ed({swiper:e,duration:l,transformElements:i})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:e.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!e.params.cssMode})})}var Ns;function TV(){const e=Mt(),t=In();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 Ns||(Ns=TV()),Ns}var Bs;function NV({userAgent:e}={}){const t=Kg(),r=Mt(),o=r.navigator.platform,a=e||r.navigator.userAgent,l={ios:!1,android:!1},i=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(`${i}x${s}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),p=!1),c&&!m&&(l.os="android",l.android=!0),(u||f||d)&&(l.os="ios",l.ios=!0),l}function Jg(e={}){return Bs||(Bs=NV(e)),Bs}var Ds;function BV(){const e=Mt(),t=Jg();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),l=o(),i=l||a&&t.ios;return{isSafari:r||l,needPerspectiveFix:r,need3dFix:i,isWebView:a}}function Zg(){return Ds||(Ds=BV()),Ds}function DV({swiper:e,on:t,emit:r}){const o=Mt();let a=null,l=null;const i=()=>{!e||e.destroyed||!e.initialized||(r("beforeResize"),r("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(d=>{l=o.requestAnimationFrame(()=>{const{width:f,height:m}=e;let p=f,h=m;d.forEach(({contentBoxSize:y,contentRect:b,target:g})=>{g&&g!==e.el||(p=b?b.width:(y[0]||y).inlineSize,h=b?b.height:(y[0]||y).blockSize)}),(p!==f||h!==m)&&i()})}),a.observe(e.el))},c=()=>{l&&o.cancelAnimationFrame(l),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",i),o.addEventListener("orientationchange",u)}),t("destroy",()=>{c(),o.removeEventListener("resize",i),o.removeEventListener("orientationchange",u)})}function AV({swiper:e,extendParams:t,on:r,emit:o}){const a=[],l=Mt(),i=(u,d={})=>{const f=new(l.MutationObserver||l.WebkitMutationObserver)(m=>{if(e.__preventObserver__)return;if(m.length===1){o("observerUpdate",m[0]);return}const p=function(){o("observerUpdate",m[0])};l.requestAnimationFrame?l.requestAnimationFrame(p):l.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=Yg(e.hostEl);for(let d=0;d<u.length;d+=1)i(u[d])}i(e.hostEl,{childList:e.params.observeSlideChildren}),i(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 MV={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(l=>{o.eventsListeners[l]||(o.eventsListeners[l]=[]),o.eventsListeners[l][a](t)}),o},once(e,t,r){const o=this;if(!o.eventsListeners||o.destroyed||typeof t!="function")return o;function a(...l){o.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(o,l)}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,l)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&r.eventsListeners[o].splice(l,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(l=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(i=>{i.apply(a,[l,...o])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(i=>{i.apply(a,o)})}),t}};function LV(){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(yr(o,"padding-left")||0,10)-parseInt(yr(o,"padding-right")||0,10),r=r-parseInt(yr(o,"padding-top")||0,10)-parseInt(yr(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 PV(){const e=this;function t(D,R){return parseFloat(D.getPropertyValue(e.getDirectionLabel(R))||0)}const r=e.params,{wrapperEl:o,slidesEl:a,rtlTranslate:l,wrongRTL:i}=e,s=e.virtual&&r.virtual.enabled,c=s?e.virtual.slides.length:e.slides.length,u=Mn(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 y=r.slidesOffsetAfter;typeof y=="function"&&(y=r.slidesOffsetAfter.call(e));const b=e.snapGrid.length,g=e.slidesGrid.length,v=e.size-h-y;let _=r.spaceBetween,w=-h,k=0,S=0;if(typeof v>"u")return;typeof _=="string"&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*v:typeof _=="string"&&(_=parseFloat(_)),e.virtualSize=-_-h-y,u.forEach(D=>{l?D.style.marginLeft="":D.style.marginRight="",D.style.marginBottom="",D.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(no(o,"--swiper-centered-offset-before",""),no(o,"--swiper-centered-offset-after","")),r.cssMode&&(no(o,"--swiper-slides-offset-before",`${h}px`),no(o,"--swiper-slides-offset-after",`${y}px`));const E=r.grid&&r.grid.rows>1&&e.grid;E?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();let $;const I=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(D=>typeof r.breakpoints[D].slidesPerView<"u").length>0;for(let D=0;D<d;D+=1){$=0;const R=u[D];if(!(R&&(E&&e.grid.updateSlide(D,R,u),yr(R,"display")==="none"))){if(s&&r.slidesPerView==="auto")r.virtual.slidesPerViewAutoSlideSize&&($=r.virtual.slidesPerViewAutoSlideSize),$&&R&&(r.roundLengths&&($=Math.floor($)),R.style[e.getDirectionLabel("width")]=`${$}px`);else if(r.slidesPerView==="auto"){I&&(R.style[e.getDirectionLabel("width")]="");const M=getComputedStyle(R),N=R.style.transform,A=R.style.webkitTransform;if(N&&(R.style.transform="none"),A&&(R.style.webkitTransform="none"),r.roundLengths)$=e.isHorizontal()?Uc(R,"width",!0):Uc(R,"height",!0);else{const F=t(M,"width"),V=t(M,"padding-left"),B=t(M,"padding-right"),j=t(M,"margin-left"),Q=t(M,"margin-right"),K=M.getPropertyValue("box-sizing");if(K&&K==="border-box")$=F+j+Q;else{const{clientWidth:re,offsetWidth:O}=R;$=F+V+B+j+Q+(O-re)}}N&&(R.style.transform=N),A&&(R.style.webkitTransform=A),r.roundLengths&&($=Math.floor($))}else $=(v-(r.slidesPerView-1)*_)/r.slidesPerView,r.roundLengths&&($=Math.floor($)),R&&(R.style[e.getDirectionLabel("width")]=`${$}px`);R&&(R.swiperSlideSize=$),p.push($),r.centeredSlides?(w=w+$/2+k/2+_,k===0&&D!==0&&(w=w-v/2-_),D===0&&(w=w-v/2-_),Math.abs(w)<1/1e3&&(w=0),r.roundLengths&&(w=Math.floor(w)),S%r.slidesPerGroup===0&&f.push(w),m.push(w)):(r.roundLengths&&(w=Math.floor(w)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&f.push(w),m.push(w),w=w+$+_),e.virtualSize+=$+_,k=$,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,v)+y,l&&i&&(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($,f),!r.centeredSlides){const D=r.slidesPerView!=="auto"&&r.slidesPerView%1!==0,R=r.snapToSlideEdge&&!r.loop&&(r.slidesPerView==="auto"||D);let M=f.length;if(R){let A;if(r.slidesPerView==="auto"){A=1;let F=0;for(let V=p.length-1;V>=0&&(F+=p[V]+(V<p.length-1?_:0),F<=v);V-=1)A=p.length-V}else A=Math.floor(r.slidesPerView);M=Math.max(d-A,0)}const N=[];for(let A=0;A<f.length;A+=1){let F=f[A];r.roundLengths&&(F=Math.floor(F)),R?A<=M&&N.push(F):f[A]<=e.virtualSize-v&&N.push(F)}f=N,Math.floor(e.virtualSize-v)-Math.floor(f[f.length-1])>1&&(R||f.push(e.virtualSize-v))}if(s&&r.loop){const D=p[0]+_;if(r.slidesPerGroup>1){const R=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),M=D*r.slidesPerGroup;for(let N=0;N<R;N+=1)f.push(f[f.length-1]+M)}for(let R=0;R<e.virtual.slidesBefore+e.virtual.slidesAfter;R+=1)r.slidesPerGroup===1&&f.push(f[f.length-1]+D),m.push(m[m.length-1]+D),e.virtualSize+=D}if(f.length===0&&(f=[0]),_!==0){const D=e.isHorizontal()&&l?"marginLeft":e.getDirectionLabel("marginRight");u.filter((R,M)=>!r.cssMode||r.loop?!0:M!==u.length-1).forEach(R=>{R.style[D]=`${_}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let D=0;p.forEach(M=>{D+=M+(_||0)}),D-=_;const R=D>v?D-v:0;f=f.map(M=>M<=0?-h:M>R?R+y:M)}if(r.centerInsufficientSlides){let D=0;if(p.forEach(R=>{D+=R+(_||0)}),D-=_,D<v){const R=(v-D)/2;f.forEach((M,N)=>{f[N]=M-R}),m.forEach((M,N)=>{m[N]=M+R})}}if(Object.assign(e,{slides:u,snapGrid:f,slidesGrid:m,slidesSizesGrid:p}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){no(o,"--swiper-centered-offset-before",`${-f[0]}px`),no(o,"--swiper-centered-offset-after",`${e.size/2-p[p.length-1]/2}px`);const D=-e.snapGrid[0],R=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(M=>M+D),e.slidesGrid=e.slidesGrid.map(M=>M+R)}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 D=`${r.containerModifierClass}backface-hidden`,R=e.el.classList.contains(D);d<=r.maxBackfaceHiddenSlides?R||e.el.classList.add(D):R&&e.el.classList.remove(D)}}function IV(e){const t=this,r=[],o=t.virtual&&t.params.virtual.enabled;let a=0,l;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const i=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(l=0;l<Math.ceil(t.params.slidesPerView);l+=1){const s=t.activeIndex+l;if(s>t.slides.length&&!o)break;r.push(i(s))}else r.push(i(t.activeIndex));for(l=0;l<r.length;l+=1)if(typeof r[l]<"u"){const s=r[l].offsetHeight;a=s>a?s:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)}function VV(){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 tp=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};function OV(e=this&&this.translate||0){const t=this,r=t.params,{slides:o,rtlTranslate:a,snapGrid:l}=t;if(o.length===0)return;typeof o[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let i=-e;a&&(i=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=(i+(r.centeredSlides?t.minTranslate():0)-d)/(u.swiperSlideSize+s),m=(i-l[0]+(r.centeredSlides?t.minTranslate():0)-d)/(u.swiperSlideSize+s),p=-(i-d),h=p+t.slidesSizesGrid[c],y=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)),tp(u,b,r.slideVisibleClass),tp(u,y,r.slideFullyVisibleClass),u.progress=a?-f:f,u.originalProgress=a?-m:m}}function RV(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:l,isEnd:i,progressLoop:s}=t;const c=l,u=i;if(o===0)a=0,l=!0,i=!0;else{a=(e-t.minTranslate())/o;const d=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;l=d||a<=0,i=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],y=Math.abs(e);y>=m?s=(y-m)/h:s=(y+h-p)/h,s>1&&(s-=1)}Object.assign(t,{progress:a,progressLoop:s,isBeginning:l,isEnd:i}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),l&&!c&&t.emit("reachBeginning toEdge"),i&&!u&&t.emit("reachEnd toEdge"),(c&&!l||u&&!i)&&t.emit("fromEdge"),t.emit("progress",a)}var As=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)};function FV(){const e=this,{slides:t,params:r,slidesEl:o,activeIndex:a}=e,l=e.virtual&&r.virtual.enabled,i=e.grid&&r.grid&&r.grid.rows>1,s=f=>Mn(o,`.${r.slideClass}${f}, swiper-slide${f}`)[0];let c,u,d;if(l)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 i?(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&&(i||(d=yV(c,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!d&&(d=t[0]),u=vV(c,`.${r.slideClass}, swiper-slide`)[0],r.loop)),t.forEach(f=>{As(f,f===c,r.slideActiveClass),As(f,f===d,r.slideNextClass),As(f,f===u,r.slidePrevClass)}),e.emitSlidesClasses()}var Ll=(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()}},Ms=(e,t)=>{if(!e.slides[t])return;const r=e.slides[t].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},Hc=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 i=a,s=[i-t];s.push(...Array.from({length:t}).map((c,u)=>i+o+u)),e.slides.forEach((c,u)=>{s.includes(c.column)&&Ms(e,u)});return}const l=a+o-1;if(e.params.rewind||e.params.loop)for(let i=a-t;i<=l+t;i+=1){const s=(i%r+r)%r;(s<a||s>l)&&Ms(e,s)}else for(let i=Math.max(a-t,0);i<=Math.min(l+t,r-1);i+=1)i!==a&&(i>l||i<a)&&Ms(e,i)};function zV(e){const{slidesGrid:t,params:r}=e,o=e.rtlTranslate?e.translate:-e.translate;let a;for(let l=0;l<t.length;l+=1)typeof t[l+1]<"u"?o>=t[l]&&o<t[l+1]-(t[l+1]-t[l])/2?a=l:o>=t[l]&&o<t[l+1]&&(a=l+1):o>=t[l]&&(a=l);return r.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function UV(e){const t=this,r=t.rtlTranslate?t.translate:-t.translate,{snapGrid:o,params:a,activeIndex:l,realIndex:i,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=zV(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===l&&!t.params.loop){u!==s&&(t.snapIndex=u,t.emit("snapIndexChange"));return}if(c===l&&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(y=>y.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:i,realIndex:m,previousIndex:l,activeIndex:c}),t.initialized&&Hc(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(i!==m&&t.emit("realIndexChange"),t.emit("slideChange"))}function HV(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 l=!1,i;if(a){for(let s=0;s<r.slides.length;s+=1)if(r.slides[s]===a){l=!0,i=s;break}}if(a&&l)r.clickedSlide=a,r.virtual&&r.params.virtual.enabled?r.clickedIndex=parseInt(a.getAttribute("data-swiper-slide-index"),10):r.clickedIndex=i;else{r.clickedSlide=void 0,r.clickedIndex=void 0;return}o.slideToClickedSlide&&r.clickedIndex!==void 0&&r.clickedIndex!==r.activeIndex&&r.slideToClickedSlide()}var WV={updateSize:LV,updateSlides:PV,updateAutoHeight:IV,updateSlidesOffset:VV,updateSlidesProgress:OV,updateProgress:RV,updateSlidesClasses:FV,updateActiveIndex:UV,updateClickedSlide:HV};function jV(e=this.isHorizontal()?"x":"y"){const t=this,{params:r,rtlTranslate:o,translate:a,wrapperEl:l}=t;if(r.virtualTranslate)return o?-a:a;if(r.cssMode)return a;let i=mV(l,e);return i+=t.cssOverflowAdjustment(),o&&(i=-i),i||0}function qV(e,t){const r=this,{rtlTranslate:o,params:a,wrapperEl:l,progress:i}=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?l[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-s:-c:a.virtualTranslate||(r.isHorizontal()?s-=r.cssOverflowAdjustment():c-=r.cssOverflowAdjustment(),l.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!==i&&r.updateProgress(e),r.emit("setTranslate",r.translate,t)}function GV(){return-this.snapGrid[0]}function YV(){return-this.snapGrid[this.snapGrid.length-1]}function XV(e=0,t=this.params.speed,r=!0,o=!0,a){const l=this,{params:i,wrapperEl:s}=l;if(l.animating&&i.preventInteractionOnTransition)return!1;const c=l.minTranslate(),u=l.maxTranslate();let d;if(o&&e>c?d=c:o&&e<u?d=u:d=e,l.updateProgress(d),i.cssMode){const f=l.isHorizontal();if(t===0)s[f?"scrollLeft":"scrollTop"]=-d;else{if(!l.support.smoothScroll)return Gg({swiper:l,targetPosition:-d,side:f?"left":"top"}),!0;s.scrollTo({[f?"left":"top"]:-d,behavior:"smooth"})}return!0}return t===0?(l.setTransition(0),l.setTranslate(d),r&&(l.emit("beforeTransitionStart",t,a),l.emit("transitionEnd"))):(l.setTransition(t),l.setTranslate(d),r&&(l.emit("beforeTransitionStart",t,a),l.emit("transitionStart")),l.animating||(l.animating=!0,l.onTranslateToWrapperTransitionEnd||(l.onTranslateToWrapperTransitionEnd=function(m){!l||l.destroyed||m.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onTranslateToWrapperTransitionEnd),l.onTranslateToWrapperTransitionEnd=null,delete l.onTranslateToWrapperTransitionEnd,l.animating=!1,r&&l.emit("transitionEnd"))}),l.wrapperEl.addEventListener("transitionend",l.onTranslateToWrapperTransitionEnd))),!0}var KV={getTranslate:jV,setTranslate:qV,minTranslate:GV,maxTranslate:YV,translateTo:XV};function JV(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 Qg({swiper:e,runCallbacks:t,direction:r,step:o}){const{activeIndex:a,previousIndex:l}=e;let i=r;i||(a>l?i="next":a<l?i="prev":i="reset"),e.emit(`transition${o}`),t&&i==="reset"?e.emit(`slideResetTransition${o}`):t&&a!==l&&(e.emit(`slideChangeTransition${o}`),i==="next"?e.emit(`slideNextTransition${o}`):e.emit(`slidePrevTransition${o}`))}function ZV(e=!0,t){const r=this,{params:o}=r;o.cssMode||(o.autoHeight&&r.updateAutoHeight(),Qg({swiper:r,runCallbacks:e,direction:t,step:"Start"}))}function QV(e=!0,t){const r=this,{params:o}=r;r.animating=!1,!o.cssMode&&(r.setTransition(0),Qg({swiper:r,runCallbacks:e,direction:t,step:"End"}))}var e7={setTransition:JV,transitionStart:ZV,transitionEnd:QV};function t7(e=0,t,r=!0,o,a){typeof e=="string"&&(e=parseInt(e,10));const l=this;let i=e;i<0&&(i=0);const{params:s,snapGrid:c,slidesGrid:u,previousIndex:d,activeIndex:f,rtlTranslate:m,wrapperEl:p,enabled:h}=l;if(!h&&!o&&!a||l.destroyed||l.animating&&s.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=l.params.speed);const y=Math.min(l.params.slidesPerGroupSkip,i);let b=y+Math.floor((i-y)/l.params.slidesPerGroup);b>=c.length&&(b=c.length-1);const g=-c[b];if(s.normalizeSlideIndex)for(let k=0;k<u.length;k+=1){const S=-Math.floor(g*100),E=Math.floor(u[k]*100),$=Math.floor(u[k+1]*100);typeof u[k+1]<"u"?S>=E&&S<$-($-E)/2?i=k:S>=E&&S<$&&(i=k+1):S>=E&&(i=k)}if(l.initialized&&i!==f&&(!l.allowSlideNext&&(m?g>l.translate&&g>l.minTranslate():g<l.translate&&g<l.minTranslate())||!l.allowSlidePrev&&g>l.translate&&g>l.maxTranslate()&&(f||0)!==i))return!1;i!==(d||0)&&r&&l.emit("beforeSlideChangeStart"),l.updateProgress(g);let v;i>f?v="next":i<f?v="prev":v="reset";const _=l.virtual&&l.params.virtual.enabled;if(!(_&&a)&&(m&&-g===l.translate||!m&&g===l.translate))return l.updateActiveIndex(i),s.autoHeight&&l.updateAutoHeight(),l.updateSlidesClasses(),s.effect!=="slide"&&l.setTranslate(g),v!=="reset"&&(l.transitionStart(r,v),l.transitionEnd(r,v)),!1;if(s.cssMode){const k=l.isHorizontal(),S=m?g:-g;if(t===0)_&&(l.wrapperEl.style.scrollSnapType="none",l._immediateVirtual=!0),_&&!l._cssModeVirtualInitialSet&&l.params.initialSlide>0?(l._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[k?"scrollLeft":"scrollTop"]=S})):p[k?"scrollLeft":"scrollTop"]=S,_&&requestAnimationFrame(()=>{l.wrapperEl.style.scrollSnapType="",l._immediateVirtual=!1});else{if(!l.support.smoothScroll)return Gg({swiper:l,targetPosition:S,side:k?"left":"top"}),!0;p.scrollTo({[k?"left":"top"]:S,behavior:"smooth"})}return!0}const w=Zg().isSafari;return _&&!a&&w&&l.isElement&&l.virtual.update(!1,!1,i),l.setTransition(t),l.setTranslate(g),l.updateActiveIndex(i),l.updateSlidesClasses(),l.emit("beforeTransitionStart",t,o),l.transitionStart(r,v),t===0?l.transitionEnd(r,v):l.animating||(l.animating=!0,l.onSlideToWrapperTransitionEnd||(l.onSlideToWrapperTransitionEnd=function(S){!l||l.destroyed||S.target===this&&(l.wrapperEl.removeEventListener("transitionend",l.onSlideToWrapperTransitionEnd),l.onSlideToWrapperTransitionEnd=null,delete l.onSlideToWrapperTransitionEnd,l.transitionEnd(r,v))}),l.wrapperEl.addEventListener("transitionend",l.onSlideToWrapperTransitionEnd)),!0}function n7(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 l=a.grid&&a.params.grid&&a.params.grid.rows>1;let i=e;if(a.params.loop)if(a.virtual&&a.params.virtual.enabled)i=i+a.virtual.slidesBefore;else{let s;if(l){const y=i*a.params.grid.rows;s=a.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===y).column}else s=a.getSlideIndexByData(i);const c=l?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"&&!l&&(h=!1),h){const y=m?s<a.activeIndex?"prev":"next":s-a.activeIndex-1<a.params.slidesPerView?"next":"prev";a.loopFix({direction:y,slideTo:!0,activeSlideIndex:y==="next"?s+1:s-c+1,slideRealIndex:y==="next"?a.realIndex:void 0})}if(l){const y=i*a.params.grid.rows;i=a.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===y).column}else i=a.getSlideIndexByData(i)}return requestAnimationFrame(()=>{a.slideTo(i,t,r,o)}),a}function r7(e,t=!0,r){const o=this,{enabled:a,params:l,animating:i}=o;if(!a||o.destroyed)return o;typeof e>"u"&&(e=o.params.speed);let s=l.slidesPerGroup;l.slidesPerView==="auto"&&l.slidesPerGroup===1&&l.slidesPerGroupAuto&&(s=Math.max(o.slidesPerViewDynamic("current",!0),1));const c=o.activeIndex<l.slidesPerGroupSkip?1:s,u=o.virtual&&l.virtual.enabled;if(l.loop){if(i&&!u&&l.loopPreventsSliding)return!1;if(o.loopFix({direction:"next"}),o._clientLeft=o.wrapperEl.clientLeft,o.activeIndex===o.slides.length-1&&l.cssMode)return requestAnimationFrame(()=>{o.slideTo(o.activeIndex+c,e,t,r)}),!0}return l.rewind&&o.isEnd?o.slideTo(0,e,t,r):o.slideTo(o.activeIndex+c,e,t,r)}function o7(e,t=!0,r){const o=this,{params:a,snapGrid:l,slidesGrid:i,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(v){return v<0?-Math.floor(Math.abs(v)):Math.floor(v)}const p=m(f),h=l.map(v=>m(v)),y=a.freeMode&&a.freeMode.enabled;let b=l[h.indexOf(p)-1];if(typeof b>"u"&&(a.cssMode||y)){let v;l.forEach((_,w)=>{p>=_&&(v=w)}),typeof v<"u"&&(b=y?l[v]:l[v>0?v-1:v])}let g=0;if(typeof b<"u"&&(g=i.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 v=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(v,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 a7(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 l7(e,t=!0,r,o=.5){const a=this;if(a.destroyed)return;typeof e>"u"&&(e=a.params.speed);let l=a.activeIndex;const i=Math.min(a.params.slidesPerGroupSkip,l),s=i+Math.floor((l-i)/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&&(l+=a.params.slidesPerGroup)}else{const u=a.snapGrid[s-1],d=a.snapGrid[s];c-u<=(d-u)*o&&(l-=a.params.slidesPerGroup)}return l=Math.max(l,0),l=Math.min(l,a.slidesGrid.length-1),a.slideTo(l,e,t,r)}function i7(){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),l;const i=e.isElement?"swiper-slide":`.${t.slideClass}`,s=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;l=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?e.slideToLoop(l):a>(s?(e.slides.length-o)/2-(e.params.grid.rows-1):e.slides.length-o)?(e.loopFix(),a=e.getSlideIndex(Mn(r,`${i}[data-swiper-slide-index="${l}"]`)[0]),qg(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}var s7={slideTo:t7,slideToLoop:n7,slideNext:r7,slidePrev:o7,slideReset:a7,slideToClosest:l7,slideToClickedSlide:i7};function c7(e,t){const r=this,{params:o,slidesEl:a}=r;if(!o.loop||r.virtual&&r.params.virtual.enabled)return;const l=()=>{Mn(a,`.${o.slideClass}, swiper-slide`).forEach((p,h)=>{p.setAttribute("data-swiper-slide-index",h)})},i=()=>{const p=Mn(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)&&i();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 y=r.isElement?Jn("swiper-slide",[o.slideBlankClass]):Jn("div",[o.slideClass,o.slideBlankClass]);r.slidesEl.append(y)}};u?(o.loopAddBlankSlides?(f(c-r.slides.length%c),r.recalcSlides(),r.updateSlides()):ai("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)"),l()):(d&&(o.loopAddBlankSlides?(f(o.grid.rows-r.slides.length%o.grid.rows),r.recalcSlides(),r.updateSlides()):ai("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)")),l());const m=o.centeredSlides||!!o.slidesOffsetBefore||!!o.slidesOffsetAfter;r.loopFix({slideRealIndex:e,direction:m?void 0:"next",initial:t})}function u7({slideRealIndex:e,slideTo:t=!0,direction:r,setTranslate:o,activeSlideIndex:a,initial:l,byController:i,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:y,slidesOffsetAfter:b,initialSlide:g}=p,v=h||!!y||!!b;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&p.virtual.enabled){t&&(!v&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):v&&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)),v&&_%2===0&&(_=_+1));const w=p.slidesPerGroupAuto?_:p.slidesPerGroup;let k=v?Math.max(w,Math.ceil(_/2)):w;k%w!==0&&(k+=w-k%w),k+=p.loopAdditionalSlides,c.loopedSlides=k;const S=c.grid&&p.grid&&p.grid.rows>1;u.length<_+k||c.params.effect==="cards"&&u.length<_+k*2?ai("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"):S&&p.grid.fill==="row"&&ai("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const E=[],$=[],I=S?Math.ceil(u.length/p.grid.rows):u.length,D=l&&I-g<_&&!v;let R=D?g:c.activeIndex;typeof a>"u"?a=c.getSlideIndex(u.find(B=>B.classList.contains(p.slideActiveClass))):R=a;const M=r==="next"||!r,N=r==="prev"||!r;let A=0,F=0;const V=(S?u[a].column:a)+(v&&typeof o>"u"?-_/2+.5:0);if(V<k){A=Math.max(k-V,w);for(let B=0;B<k-V;B+=1){const j=B-Math.floor(B/I)*I;if(S){const Q=I-j-1;for(let K=u.length-1;K>=0;K-=1)u[K].column===Q&&E.push(K)}else E.push(I-j-1)}}else if(V+_>I-k){F=Math.max(V-(I-k*2),w),D&&(F=Math.max(F,_-I+g+1));for(let B=0;B<F;B+=1){const j=B-Math.floor(B/I)*I;S?u.forEach((Q,K)=>{Q.column===j&&$.push(K)}):$.push(j)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect==="cards"&&u.length<_+k*2&&($.includes(a)&&$.splice($.indexOf(a),1),E.includes(a)&&E.splice(E.indexOf(a),1)),N&&E.forEach(B=>{u[B].swiperLoopMoveDOM=!0,m.prepend(u[B]),u[B].swiperLoopMoveDOM=!1}),M&&$.forEach(B=>{u[B].swiperLoopMoveDOM=!0,m.append(u[B]),u[B].swiperLoopMoveDOM=!1}),c.recalcSlides(),p.slidesPerView==="auto"?c.updateSlides():S&&(E.length>0&&N||$.length>0&&M)&&c.slides.forEach((B,j)=>{c.grid.updateSlide(j,B,c.slides)}),p.watchSlidesProgress&&c.updateSlidesOffset(),t){if(E.length>0&&N){if(typeof e>"u"){const B=c.slidesGrid[R],j=c.slidesGrid[R+A]-B;s?c.setTranslate(c.translate-j):(c.slideTo(R+Math.ceil(A),0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-j,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-j))}else if(o){const B=S?E.length/p.grid.rows:E.length;c.slideTo(c.activeIndex+B,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if($.length>0&&M)if(typeof e>"u"){const B=c.slidesGrid[R],j=c.slidesGrid[R-F]-B;s?c.setTranslate(c.translate-j):(c.slideTo(R-F,0,!1,!0),o&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-j,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-j))}else{const B=S?$.length/p.grid.rows:$.length;c.slideTo(c.activeIndex-B,0,!1,!0)}}if(c.allowSlidePrev=d,c.allowSlideNext=f,c.controller&&c.controller.control&&!i){const B={slideRealIndex:e,direction:r,setTranslate:o,activeSlideIndex:a,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(j=>{!j.destroyed&&j.params.loop&&j.loopFix({...B,slideTo:j.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 d7(){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 l=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;o[l]=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 f7={loopCreate:c7,loopFix:u7,loopDestroy:d7};function m7(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 p7(){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 h7={setGrabCursor:m7,unsetGrabCursor:p7};function g7(e,t=this){function r(o){if(!o||o===In()||o===Mt())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 np(e,t,r){const o=Mt(),{params:a}=e,l=a.edgeSwipeDetection,i=a.edgeSwipeThreshold;return l&&(r<=i||r>=o.innerWidth-i)?l==="prevent"?(t.preventDefault(),!0):!1:!0}function v7(e){const t=this;if(t.destroyed)return;const r=In();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"){np(t,o,o.targetTouches[0].pageX);return}const{params:l,touches:i,enabled:s}=t;if(!s||!l.simulateTouch&&o.pointerType==="mouse"||t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let c=o.target;if(l.touchEventsTarget==="wrapper"&&!gV(c,t.wrapperEl)||"which"in o&&o.which===3||"button"in o&&o.button>0||a.isTouched&&a.isMoved)return;const u=!!l.noSwipingClass&&l.noSwipingClass!=="",d=o.composedPath?o.composedPath():o.path;u&&o.target&&o.target.shadowRoot&&d&&(c=d[0]);const f=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,m=!!(o.target&&o.target.shadowRoot);if(l.noSwiping&&(m?g7(f,c):c.closest(f))){t.allowClick=!0;return}if(l.swipeHandler&&!c.closest(l.swipeHandler))return;i.currentX=o.pageX,i.currentY=o.pageY;const p=i.currentX,h=i.currentY;if(!np(t,o,p))return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),i.startX=p,i.startY=h,a.touchStartTime=oi(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(a.allowThresholdMove=!1);let y=!0;c.matches(a.focusableElements)&&(y=!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=y&&t.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||b)&&!c.isContentEditable&&o.preventDefault(),l.freeMode&&l.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",o)}function y7(e){const t=In(),r=this;if(r.destroyed)return;const o=r.touchEventsData,{params:a,touches:l,rtlTranslate:i,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(k=>k.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){l.startX=d,l.startY=f;return}if(!r.allowTouchMove){c.target.matches(o.focusableElements)||(r.allowClick=!1),o.isTouched&&(Object.assign(l,{startX:d,startY:f,currentX:d,currentY:f}),o.touchStartTime=oi());return}if(a.touchReleaseOnEdges&&!a.loop)if(r.isVertical()){if(f<l.startY&&r.translate<=r.maxTranslate()||f>l.startY&&r.translate>=r.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else{if(i&&(d>l.startX&&-r.translate<=r.maxTranslate()||d<l.startX&&-r.translate>=r.minTranslate()))return;if(!i&&(d<l.startX&&r.translate<=r.maxTranslate()||d>l.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),l.previousX=l.currentX,l.previousY=l.currentY,l.currentX=d,l.currentY=f;const m=l.currentX-l.startX,p=l.currentY-l.startY;if(r.params.threshold&&Math.sqrt(m**2+p**2)<r.params.threshold)return;if(typeof o.isScrolling>"u"){let k;r.isHorizontal()&&l.currentY===l.startY||r.isVertical()&&l.currentX===l.startX?o.isScrolling=!1:m*m+p*p>=25&&(k=Math.atan2(Math.abs(p),Math.abs(m))*180/Math.PI,o.isScrolling=r.isHorizontal()?k>a.touchAngle:90-k>a.touchAngle)}if(o.isScrolling&&r.emit("touchMoveOpposite",c),typeof o.startMoving>"u"&&(l.currentX!==l.startX||l.currentY!==l.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,y=r.isHorizontal()?l.currentX-l.previousX:l.currentY-l.previousY;a.oneWayMovement&&(h=Math.abs(h)*(i?1:-1),y=Math.abs(y)*(i?1:-1)),l.diff=h,h*=a.touchRatio,i&&(h=-h,y=-y);const b=r.touchesDirection;r.swipeDirection=h>0?"prev":"next",r.touchesDirection=y>0?"prev":"next";const g=r.params.loop&&!a.cssMode,v=r.touchesDirection==="next"&&r.allowSlideNext||r.touchesDirection==="prev"&&r.allowSlidePrev;if(!o.isMoved){if(g&&v&&r.loopFix({direction:r.swipeDirection}),o.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const k=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});r.wrapperEl.dispatchEvent(k)}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&&v&&Math.abs(h)>=1){Object.assign(l,{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&&v&&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&&v&&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,l.startX=l.currentX,l.startY=l.currentY,o.currentTranslate=o.startTranslate,l.diff=r.isHorizontal()?l.currentX-l.startX:l.currentY-l.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 b7(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:l,touches:i,rtlTranslate:s,slidesGrid:c,enabled:u}=t;if(!u||!l.simulateTouch&&o.pointerType==="mouse")return;if(r.allowTouchCallbacks&&t.emit("touchEnd",o),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&l.grabCursor&&t.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}l.grabCursor&&r.isMoved&&r.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=oi(),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=oi(),qg(()=>{t.destroyed||(t.allowClick=!0)}),!r.isTouched||!r.isMoved||!t.swipeDirection||i.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(l.followFinger?m=s?t.translate:-t.translate:m=-r.currentTranslate,l.cssMode)return;if(l.freeMode&&l.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:m});return}const p=m>=-t.maxTranslate()&&!t.params.loop;let h=0,y=t.slidesSizesGrid[0];for(let w=0;w<c.length;w+=w<l.slidesPerGroupSkip?1:l.slidesPerGroup){const k=w<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;typeof c[w+k]<"u"?(p||m>=c[w]&&m<c[w+k])&&(h=w,y=c[w+k]-c[w]):(p||m>=c[w])&&(h=w,y=c[c.length-1]-c[c.length-2])}let b=null,g=null;l.rewind&&(t.isBeginning?g=l.virtual&&l.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const v=(m-c[h])/y,_=h<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;if(f>l.longSwipesMs){if(!l.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(v>=l.longSwipesRatio?t.slideTo(l.rewind&&t.isEnd?b:h+_):t.slideTo(h)),t.swipeDirection==="prev"&&(v>1-l.longSwipesRatio?t.slideTo(h+_):g!==null&&v<0&&Math.abs(v)>l.longSwipesRatio?t.slideTo(g):t.slideTo(h))}else{if(!l.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 rp(){const e=this,{params:t,el:r}=e;if(r&&r.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:a,snapGrid:l}=e,i=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=i&&t.loop;if((t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s){const c=i?e.virtual.slides:e.slides;e.slideTo(c.length-1,0,!1,!0)}else e.params.loop&&!i?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&&l!==e.snapGrid&&e.checkOverflow()}function _7(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 w7(){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 l=e.maxTranslate()-e.minTranslate();l===0?a=0:a=(e.translate-e.minTranslate())/l,a!==e.progress&&e.updateProgress(r?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function k7(e){const t=this;t.destroyed||(Ll(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update())}function $7(){const e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}var ev=(e,t)=>{const r=In(),{params:o,el:a,wrapperEl:l,device:i}=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&&l[c]("scroll",e.onScroll),o.updateOnWindowResize?e[u](i.ios||i.android?"resize orientationchange observerUpdate":"resize observerUpdate",rp,!0):e[u]("observerUpdate",rp,!0),a[c]("load",e.onLoad,{capture:!0}))};function E7(){const e=this,{params:t}=e;e.onTouchStart=v7.bind(e),e.onTouchMove=y7.bind(e),e.onTouchEnd=b7.bind(e),e.onDocumentTouchStart=$7.bind(e),t.cssMode&&(e.onScroll=w7.bind(e)),e.onClick=_7.bind(e),e.onLoad=k7.bind(e),ev(e,"on")}function C7(){ev(this,"off")}var S7={attachEvents:E7,detachEvents:C7},op=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function x7(){const e=this,{realIndex:t,initialized:r,params:o,el:a}=e,l=o.breakpoints;if(!l||l&&Object.keys(l).length===0)return;const i=In(),s=o.breakpointsBase==="window"||!o.breakpointsBase?o.breakpointsBase:"container",c=["window","container"].includes(o.breakpointsBase)||!o.breakpointsBase?e.el:i.querySelector(o.breakpointsBase),u=e.getBreakpoint(l,s,c);if(!u||e.currentBreakpoint===u)return;const d=(u in l?l[u]:void 0)||e.originalParams,f=op(e,o),m=op(e,d),p=e.params.grabCursor,h=d.grabCursor,y=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(k=>{if(typeof d[k]>"u")return;const S=o[k]&&o[k].enabled,E=d[k]&&d[k].enabled;S&&!E&&e[k].disable(),!S&&E&&e[k].enable()});const b=d.direction&&d.direction!==o.direction,g=o.loop&&(d.slidesPerView!==o.slidesPerView||b),v=o.loop;b&&r&&e.changeDirection(),qt(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}),y&&!_?e.disable():!y&&_&&e.enable(),e.currentBreakpoint=u,e.emit("_beforeBreakpoint",d),r&&(g?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!v&&w?(e.loopCreate(t),e.updateSlides()):v&&!w&&e.loopDestroy()),e.emit("breakpoint",d)}function T7(e,t="window",r){if(!e||t==="container"&&!r)return;let o=!1;const a=Mt(),l=t==="window"?a.innerHeight:r.clientHeight,i=Object.keys(e).map(s=>typeof s=="string"&&s.indexOf("@")===0?{value:l*parseFloat(s.substr(1)),point:s}:{value:s,point:s});i.sort((s,c)=>parseInt(s.value,10)-parseInt(c.value,10));for(let s=0;s<i.length;s+=1){const{point:c,value:u}=i[s];t==="window"?a.matchMedia(`(min-width: ${u}px)`).matches&&(o=c):u<=r.clientWidth&&(o=c)}return o||"max"}var N7={setBreakpoint:x7,getBreakpoint:T7};function B7(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 D7(){const e=this,{classNames:t,params:r,rtl:o,el:a,device:l}=e,i=B7(["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:l.android},{ios:l.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);t.push(...i),a.classList.add(...t),e.emitContainerClasses()}function A7(){const e=this,{el:t,classNames:r}=e;!t||typeof t=="string"||(t.classList.remove(...r),e.emitContainerClasses())}var M7={addClasses:D7,removeClasses:A7};function L7(){const e=this,{isLocked:t,params:r}=e,{slidesOffsetBefore:o}=r;if(o){const a=e.slides.length-1,l=e.slidesGrid[a]+e.slidesSizesGrid[a]+o*2;e.isLocked=e.size>l}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 P7={checkOverflow:L7},Wc={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 I7(e,t){return function(o={}){const a=Object.keys(o)[0],l=o[a];if(typeof l!="object"||l===null){qt(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 l)){qt(t,o);return}typeof e[a]=="object"&&!("enabled"in e[a])&&(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),qt(t,o)}}var Ls={eventsEmitter:MV,update:WV,translate:KV,transition:e7,slide:s7,loop:f7,grabCursor:h7,events:S7,breakpoints:N7,checkOverflow:P7,classes:M7},Ps={},td=class jn{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=qt({},o),r&&!o.el&&(o.el=r);const a=In();if(o.el&&typeof o.el=="string"&&a.querySelectorAll(o.el).length>1){const s=[];return a.querySelectorAll(o.el).forEach(c=>{const u=qt({},o,{el:c});s.push(new jn(u))}),s}const l=this;l.__swiper__=!0,l.support=Kg(),l.device=Jg({userAgent:o.userAgent}),l.browser=Zg(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],o.modules&&Array.isArray(o.modules)&&o.modules.forEach(s=>{typeof s=="function"&&l.modules.indexOf(s)<0&&l.modules.push(s)});const i={};return l.modules.forEach(s=>{s({params:o,swiper:l,extendParams:I7(o,i),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}),l.params=qt({},qt({},Wc,i),Ps,o),l.originalParams=qt({},l.params),l.passedParams=qt({},o),l.params&&l.params.on&&Object.keys(l.params.on).forEach(s=>{l.on(s,l.params.on[s])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:r,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.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:l.params.allowSlideNext,allowSlidePrev:l.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:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}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=li(Mn(r,`.${o.slideClass}, swiper-slide`)[0]);return li(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=Mn(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(),l=(o.maxTranslate()-a)*t+a;o.translateTo(l,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:l,slidesSizesGrid:i,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?l[d]+i[d]-l[c]<s:l[d]-l[c]<s)&&(u+=1);else for(let d=c-1;d>=0;d-=1)l[c]-l[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(i=>{i.complete&&Ll(t,i)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const i=t.rtlTranslate?t.translate*-1:t.translate,s=Math.min(Math.max(i,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()}let l;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 i=t.virtual&&o.virtual.enabled?t.virtual.slides:t.slides;l=t.slideTo(i.length-1,0,!1,!0)}else l=t.slideTo(t.activeIndex,0,!1,!0);l||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(l=>{t==="vertical"?l.style.width="":l.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 i=o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(a()):Mn(o,a())[0];return!i&&r.params.createElements&&(i=Jn("div",r.params.wrapperClass),o.append(i),Mn(o,`.${r.params.slideClass}`).forEach(s=>{i.append(s)})),Object.assign(r,{el:o,wrapperEl:i,slidesEl:r.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:i,hostEl:r.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||yr(o,"direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||yr(o,"direction")==="rtl"),wrongRTL:yr(i,"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?Ll(r,a):a.addEventListener("load",l=>{Ll(r,l.target)})}),Hc(r),r.initialized=!0,Hc(r),r.emit("init"),r.emit("afterInit"),r}destroy(t=!0,r=!0){const o=this,{params:a,el:l,wrapperEl:i,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(),l&&typeof l!="string"&&l.removeAttribute("style"),i&&i.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),dV(o)),o.destroyed=!0),null}static extendDefaults(t){qt(Ps,t)}static get extendedDefaults(){return Ps}static get defaults(){return Wc}static installModule(t){jn.prototype.__modules__||(jn.prototype.__modules__=[]);const r=jn.prototype.__modules__;typeof t=="function"&&r.indexOf(t)<0&&r.push(t)}static use(t){return Array.isArray(t)?(t.forEach(r=>jn.installModule(r)),jn):(jn.installModule(t),jn)}};Object.keys(Ls).forEach(e=>{Object.keys(Ls[e]).forEach(t=>{td.prototype[t]=Ls[e][t]})});td.use([DV,AV]);var tv=["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 Gr(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"&&!e.__swiper__}function wo(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]:Gr(t[o])&&Gr(e[o])&&Object.keys(t[o]).length>0?t[o].__swiper__?e[o]=t[o]:wo(e[o],t[o]):e[o]=t[o]})}function nv(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function rv(e={}){return e.pagination&&typeof e.pagination.el>"u"}function ov(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function av(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 V7(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function O7({swiper:e,slides:t,passedParams:r,changedParams:o,nextEl:a,prevEl:l,scrollbarEl:i,paginationEl:s}){const c=o.filter($=>$!=="children"&&$!=="direction"&&$!=="wrapperClass"),{params:u,pagination:d,navigation:f,scrollbar:m,virtual:p,thumbs:h}=e;let y,b,g,v,_,w,k,S;o.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&u.thumbs&&(!u.thumbs.swiper||u.thumbs.swiper.destroyed)&&(y=!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||i)&&(u.scrollbar||u.scrollbar===!1)&&m&&!m.el&&(v=!0),o.includes("navigation")&&r.navigation&&(r.navigation.prevEl||l)&&(r.navigation.nextEl||a)&&(u.navigation||u.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(_=!0);const E=$=>{e[$]&&(e[$].destroy(),$==="navigation"?(e.isElement&&(e[$].prevEl.remove(),e[$].nextEl.remove()),u[$].prevEl=void 0,u[$].nextEl=void 0,e[$].prevEl=void 0,e[$].nextEl=void 0):(e.isElement&&e[$].el.remove(),u[$].el=void 0,e[$].el=void 0))};o.includes("loop")&&e.isElement&&(u.loop&&!r.loop?w=!0:!u.loop&&r.loop?k=!0:S=!0),c.forEach($=>{if(Gr(u[$])&&Gr(r[$]))Object.assign(u[$],r[$]),($==="navigation"||$==="pagination"||$==="scrollbar")&&"enabled"in r[$]&&!r[$].enabled&&E($);else{const I=r[$];(I===!0||I===!1)&&($==="navigation"||$==="pagination"||$==="scrollbar")?I===!1&&E($):u[$]=r[$]}}),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&&(S=!0),y&&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()),v&&(e.isElement&&(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-scrollbar"),i.part.add("scrollbar"),e.el.appendChild(i)),i&&(u.scrollbar.el=i),m.init(),m.updateSize(),m.setTranslate()),_&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),Ba(a,e.navigation.arrowSvg),a.part.add("button-next"),e.el.appendChild(a)),(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-prev"),Ba(l,e.navigation.arrowSvg),l.part.add("button-prev"),e.el.appendChild(l))),a&&(u.navigation.nextEl=a),l&&(u.navigation.prevEl=l),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||S)&&e.loopDestroy(),(k||S)&&e.loopCreate(),e.update()}function ap(e={},t=!0){const r={on:{}},o={},a={};wo(r,Wc),r._emitClasses=!0,r.init=!1;const l={},i=tv.map(c=>c.replace(/_/,"")),s=Object.assign({},e);return Object.keys(s).forEach(c=>{typeof e[c]>"u"||(i.indexOf(c)>=0?Gr(e[c])?(r[c]={},a[c]={},wo(r[c],e[c]),wo(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]:l[c]=e[c])}),["navigation","pagination","scrollbar"].forEach(c=>{r[c]===!0&&(r[c]={}),r[c]===!1&&delete r[c]}),{params:r,passedParams:a,rest:l,events:o}}function R7({el:e,nextEl:t,prevEl:r,paginationEl:o,scrollbarEl:a,swiper:l},i){nv(i)&&t&&r&&(l.params.navigation.nextEl=t,l.originalParams.navigation.nextEl=t,l.params.navigation.prevEl=r,l.originalParams.navigation.prevEl=r),rv(i)&&o&&(l.params.pagination.el=o,l.originalParams.pagination.el=o),ov(i)&&a&&(l.params.scrollbar.el=a,l.originalParams.scrollbar.el=a),l.init(e)}function F7(e,t,r,o,a){const l=[];if(!t)return l;const i=s=>{l.indexOf(s)<0&&l.push(s)};if(r&&o){const s=o.map(a),c=r.map(a);s.join("")!==c.join("")&&i("children"),o.length!==r.length&&i("children")}return tv.filter(s=>s[0]==="_").map(s=>s.replace(/_/,"")).forEach(s=>{if(s in e&&s in t)if(Gr(e[s])&&Gr(t[s])){const c=Object.keys(e[s]),u=Object.keys(t[s]);c.length!==u.length?i(s):(c.forEach(d=>{e[s][d]!==t[s][d]&&i(s)}),u.forEach(d=>{e[s][d]!==t[s][d]&&i(s)}))}else e[s]!==t[s]&&i(s)}),l}var z7=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 Is(e={},t,r){const o=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},l=(i,s)=>{Array.isArray(i)&&i.forEach(c=>{const u=typeof c.type=="symbol";s==="default"&&(s="container-end"),u&&c.children?l(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(i=>{typeof e[i]=="function"&&l(e[i](),i)}),r.value=t.value,t.value=o,{slides:o,slots:a}}function U7(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:l,to:i}=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>=l&&d<=i&&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 H7={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,l=(0,n.ref)("swiper"),i=(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),y=(0,n.ref)(null),b=(0,n.ref)(null),g=(0,n.ref)(null),{params:v,passedParams:_}=ap(e,!1);Is(t,m,p),f.value=_,p.value=m.value;const w=()=>{Is(t,m,p),s.value=!0};v.onAny=(E,...$)=>{r(E,...$)},Object.assign(v.on,{_beforeBreakpoint:w,_containerClasses(E,$){l.value=$}});const k={...v};if(delete k.wrapperClass,d.value=new td(k),d.value.virtual&&d.value.params.virtual.enabled){d.value.virtual.slides=m.value;const E={cache:!1,slides:m.value,renderExternal:$=>{i.value=$},renderExternalUpdate:!1};wo(d.value.params.virtual,E),wo(d.value.originalParams.virtual,E)}(0,n.onUpdated)(()=>{!c.value&&d.value&&(d.value.emitSlidesClasses(),c.value=!0);const{passedParams:E}=ap(e,!1),$=F7(E,f.value,m.value,p.value,I=>I.props&&I.props.key);f.value=E,($.length||s.value)&&d.value&&!d.value.destroyed&&O7({swiper:d.value,slides:m.value,passedParams:E,changedParams:$,nextEl:h.value,prevEl:y.value,scrollbarEl:g.value,paginationEl:b.value}),s.value=!1}),(0,n.provide)("swiper",d),(0,n.watch)(i,()=>{(0,n.nextTick)(()=>{z7(d.value)})}),(0,n.onMounted)(()=>{u.value&&(R7({el:u.value,nextEl:h.value,prevEl:y.value,paginationEl:b.value,scrollbarEl:g.value,swiper:d.value},v),r("swiper",d.value))}),(0,n.onBeforeUnmount)(()=>{d.value&&!d.value.destroyed&&d.value.destroy(!0,!1)});function S(E){return v.virtual?U7(d,E,i.value):(E.forEach(($,I)=>{$.props||($.props={}),$.props.swiperRef=d,$.props.swiperSlideIndex=I}),E)}return()=>{const{slides:E,slots:$}=Is(t,m,p);return(0,n.h)(o,{ref:u,class:av(l.value)},[$["container-start"],(0,n.h)(a,{class:V7(v.wrapperClass)},[$["wrapper-start"],S(E),$["wrapper-end"]]),nv(e)&&[(0,n.h)("div",{ref:y,class:"swiper-button-prev"}),(0,n.h)("div",{ref:h,class:"swiper-button-next"})],ov(e)&&(0,n.h)("div",{ref:g,class:"swiper-scrollbar"}),rv(e)&&(0,n.h)("div",{ref:b,class:"swiper-pagination"}),$["container-end"]])}}},W7={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),l=(0,n.ref)("swiper-slide"),i=(0,n.ref)(!1);function s(d,f,m){f===a.value&&(l.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&&l.value!=="swiper-slide"&&(l.value="swiper-slide"))}),(0,n.onBeforeUnmount)(()=>{!o||!o.value||o.value.off("_slideClass",s)});const c=(0,n.computed)(()=>({isActive:l.value.indexOf("swiper-slide-active")>=0,isVisible:l.value.indexOf("swiper-slide-visible")>=0,isPrev:l.value.indexOf("swiper-slide-prev")>=0,isNext:l.value.indexOf("swiper-slide-next")>=0}));(0,n.provide)("swiperSlide",c);const u=()=>{i.value=!0};return()=>(0,n.h)(e.tag,{class:av(`${l.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&&!i.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&&!i.value&&(0,n.h)("div",{class:"swiper-lazy-preloader",onVnodeMounted:d=>{d.el&&(d.el.lazyPreloaderManaged=!0)}})])}},j7={key:0,class:"swi-ctrl"},q7=(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},pillDots:{type:Boolean,default:!1},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,l={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"}},i=(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 k={};return o.slideWidth!==void 0&&(k.width=typeof o.slideWidth=="number"?`${o.slideWidth}px`:o.slideWidth),k}),m=(0,n.computed)(()=>l[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 k=(D,R,M)=>D!==void 0?D:m.value[R]!==void 0?m.value[R]:M,S={modules:[_V,wV,kV,$V,SV,EV,CV,xV],effect:k(o.effect,"effect","slide"),direction:o.direction??"horizontal",speed:k(o.speed,"speed",300),loop:k(o.loop,"loop",!1),initialSlide:o.index??o.initialSlide,slidesPerView:p.value,spaceBetween:k(o.spaceBetween,"spaceBetween",0),centeredSlides:k(o.centeredSlides,"centeredSlides",!1),grabCursor:o.grabCursor,keyboard:o.keyboard,mousewheel:o.mousewheel,autoHeight:o.autoHeight},E=k(o.pagination,"pagination",!1);S.pagination=E?typeof E=="boolean"?{clickable:!0}:E:!1;const $=k(o.autoplay,"autoplay",!1);S.autoplay=$?typeof $=="boolean"?{delay:3e3}:$:!1,(S.effect||"slide")==="coverflow"&&(S.coverflowEffect={rotate:0,stretch:0,depth:100,modifier:1,slideShadows:!0,...m.value.coverflowEffect,...o.coverflowEffect});const I=k(o.breakpoints,"breakpoints",void 0);return I&&(S.breakpoints=I),o.advancedOptions?{...S,...o.advancedOptions}:S}),y=(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)(()=>i.value);function g(){if(i.value&&!d){s.value=i.value.isBeginning,c.value=i.value.isEnd;const k=o.loop?i.value.realIndex:i.value.activeIndex;u.value=k,a("update:index",k)}}function v(k){i.value&&i.value.slideTo(k)}function _(k){i.value&&(k==="next"?i.value.slideNext():i.value.slidePrev())}function w(k){i.value=k,g()}return(0,n.watch)(()=>o.initialSlide,k=>{k!==void 0&&i.value&&setTimeout(()=>{i.value&&i.value.slideTo(k)},1)},{immediate:!0}),(0,n.watch)(()=>o.index,k=>{k!==void 0&&(u.value=k,i.value&&k!==(o.loop?i.value.realIndex:i.value.activeIndex)&&(d=!0,i.value.slideTo(k),setTimeout(()=>{d=!1},50)))}),(0,n.watch)(h,k=>{i.value&&(Object.assign(i.value.params,k),i.value.update())},{deep:!0}),t({swiper:b,slideNext:()=>{_("next")},slidePrev:()=>{_("prev")},slideTo:v,update:()=>i.value?.update(),isFirst:s,isLast:c,currentIndex:u}),(k,S)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["swi-wrap",{"pill-dots":e.pillDots}])},[(0,n.createVNode)((0,n.unref)(H7),(0,n.mergeProps)(y.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,$)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(W7),{key:$,style:(0,n.normalizeStyle)(f.value)},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(k.$slots,"default",{item:E,index:$,currentIndex:u.value})]),_:2},1032,["style"]))),128))]),_:3},16),(0,n.renderSlot)(k.$slots,"navigation",{items:e.items||[],currentIndex:u.value,slideTo:v,prev:()=>_("prev"),next:()=>_("next"),isFirst:s.value,isLast:c.value},()=>[e.navigation?((0,n.openBlock)(),(0,n.createElementBlock)("div",j7,[(0,n.createElementVNode)("div",{class:"swi-prev hover",onClick:S[0]||(S[0]=E=>_("prev"))},[(0,n.renderSlot)(k.$slots,"prev-button",{prev:()=>_("prev")},()=>[(0,n.createVNode)((0,n.unref)(be),{name:"chevron_left",class:"user-select-none hover z-99 color-primary",size:2})])]),(0,n.createElementVNode)("div",{class:"swi-next hover",onClick:S[1]||(S[1]=E=>_("next"))},[(0,n.renderSlot)(k.$slots,"next-button",{next:()=>_("next")},()=>[(0,n.createVNode)((0,n.unref)(be),{name:"chevron_right",class:"user-select-none hover z-99 color-primary",size:2})])])])):(0,n.createCommentVNode)("",!0)]),e.pagination?(0,n.renderSlot)(k.$slots,"pagination",{key:0}):(0,n.createCommentVNode)("",!0)],2))}}),lv=q7,G7={},Y7={class:"flex space-between"};function X7(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",Y7,[(0,n.renderSlot)(e.$slots,"default")])}var K7=ge(G7,[["render",X7]]),J7=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}},Z7=(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)(),l=(0,n.ref)(1),i=(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:ce=>{p.value=ce,o("update:zoom",p.value)}}),y=(0,n.ref)(1),b=(0,n.ref)(0),g=(0,n.ref)(0),v=(0,n.ref)("y"),_=(0,n.ref)(!1),w=(0,n.ref)(-1),k=(0,n.ref)(-1),S=(0,n.ref)(0),E=(0,n.ref)(!0),$=(0,n.ref)(),I=(0,n.ref)(),D=(0,n.ref)(0),R=(0,n.ref)(0),M=(0,n.ref)(0),N=(0,n.ref)(),A=(0,n.computed)(()=>({transform:[`translate(${l.value*d.value}px, ${i.value*m.value}px)`,`scale(${y.value})`].join(" "),transformOrigin:"50% 50%"}));(0,n.watch)(()=>h.value,ce=>{const{x:ke,y:H}=O();u.value=Math.max(-ke,Math.min(ke,u.value)),f.value=Math.max(-H,Math.min(H,f.value)),ce!==1&&(E.value=!1)});function F(){h.value=1,E.value=!0,u.value=0,f.value=0}t({reset:F});function V(ce){if(e.disabled)return;let ke=h.value*ce;if(e.zoomingElastic){if(ke<e.minScale||ke>e.maxScale){let H=Math.log2(ce);H*=.2,ce=2**H,ke=h.value*ce}}else ke<e.minScale?ke=e.minScale:ke>e.maxScale&&(ke=e.maxScale);if(ce=ke/h.value,h.value=ke,e.pivot!=="image-center"){const H=(w.value-s.value)/l.value,G=(k.value-c.value)/i.value;u.value=(.5+u.value-H)*ce+H-.5,f.value=(.5+f.value-G)*ce+G-.5}}function B(){w.value=s.value+l.value/2,k.value=c.value+i.value/2}function j(ce,ke){if(_.value){const H=Date.now(),G=ce-w.value,fe=ke-k.value;if(!E.value){const ye=H-M.value;ye>0&&(D.value=G/ye,R.value=fe/ye);const qe=O(),Xe=qe.x,Ie=qe.y,le=u.value+G/l.value,me=f.value+fe/i.value;u.value=Math.max(-Xe,Math.min(Xe,le)),f.value=Math.max(-Ie,Math.min(Ie,me)),M.value=H}}w.value=ce,k.value=ke}function Q(){if(Math.abs(D.value)<.01&&Math.abs(R.value)<.01){D.value=0,R.value=0,N.value&&(cancelAnimationFrame(N.value),N.value=void 0);return}const ce=O(),ke=u.value+D.value*16/l.value,H=f.value+R.value*16/i.value;u.value=Math.max(-ce.x,Math.min(ce.x,ke)),f.value=Math.max(-ce.y,Math.min(ce.y,H)),D.value*=.95,R.value*=.95,N.value=requestAnimationFrame(Q)}const K=Ur(()=>{re(),E.value=h.value===1,!E.value&&(Math.abs(D.value)>.1||Math.abs(R.value)>.1)?(N.value&&cancelAnimationFrame(N.value),Q()):(D.value=0,R.value=0)},50);function re(){if(h.value<e.minScale?h.value=e.minScale:h.value>e.maxScale&&V(e.maxScale/h.value),e.limitTranslation){const ce=O();Math.abs(u.value)>ce.x&&(u.value*=ce.x/Math.abs(u.value)),Math.abs(f.value)>ce.y&&(f.value*=ce.y/Math.abs(f.value))}}function O(){const ce=Math.max(0,(h.value-1)/2);return{x:ce,y:ce}}function P(ce){if(!e.mouseWheelToZoom)return;ce.preventDefault();const ke=Date.now();Math.abs(ce.deltaY)===120?ke-b.value>50&&(U(ce.deltaY),b.value=ke):(ke-g.value>50&&(v.value=ce.deltaX>ce.deltaY?"x":"y",v.value==="y"&&U(ce.deltaY)),g.value=ke)}function U(ce){V(1.15**(ce/120)),K()}function T(ce){X(),_.value=!0,w.value=ce.clientX,k.value=ce.clientY,M.value=Date.now(),D.value=0,R.value=0,N.value&&(cancelAnimationFrame(N.value),N.value=void 0),document.addEventListener("mousemove",W),document.addEventListener("mouseup",z)}function z(){_.value=!1,K(),document.removeEventListener("mouseup",z),document.removeEventListener("mousemove",W)}function W(ce){!E.value&&h.value>1&&ce.stopPropagation(),j(ce.clientX,ce.clientY)}function Y(ce){if(ce.touches.length===1)X(),w.value=ce.touches[0].clientX,k.value=ce.touches[0].clientY,M.value=Date.now(),D.value=0,R.value=0,N.value&&(cancelAnimationFrame(N.value),N.value=void 0),_.value=!0;else if(ce.touches.length===2){N.value&&(cancelAnimationFrame(N.value),N.value=void 0),D.value=0,R.value=0,_.value=!0,w.value=(ce.touches[0].clientX+ce.touches[1].clientX)/2,k.value=(ce.touches[0].clientY+ce.touches[1].clientY)/2;const ke=ce.touches[0].clientX-ce.touches[1].clientX,H=ce.touches[0].clientY-ce.touches[1].clientY;S.value=Math.sqrt(ke*ke+H*H)}document.addEventListener("touchend",ne)}function ne(ce){ce.touches.length===0?(_.value=!1,Math.abs(h.value-1)<.1&&(h.value=1),K()):ce.touches.length===1&&(w.value=ce.touches[0].clientX,k.value=ce.touches[0].clientY),document.removeEventListener("touchend",ne)}function ve(ce){if(ce.touches.length===1)!E.value&&h.value>1&&ce.stopPropagation(),j(ce.touches[0].clientX,ce.touches[0].clientY);else if(ce.touches.length===2){ce.stopPropagation();const ke=ce.touches[0].clientX-ce.touches[1].clientX,H=ce.touches[0].clientY-ce.touches[1].clientY,G=Math.sqrt(ke*ke+H*H);V(G/S.value),S.value=G}}function X(){if(a.value){const ce=a.value.getBoundingClientRect();s.value=ce.left,c.value=ce.top}}function se(){y.value=ie(y.value,h.value),d.value=ie(d.value,u.value),m.value=ie(m.value,f.value),$.value=window.requestAnimationFrame(se)}function ie(ce,ke){const H=(ke-ce)*.4;return Math.abs(H)>1e-5?ce+H:ke}(0,n.onMounted)(()=>{I.value=new J7,a.value&&I.value.attach(a.value),e.doubleClickToZoom&&(I.value.onDoubleTap(ue),a.value&&a.value.addEventListener("dblclick",ue)),window.addEventListener("resize",we),we(),X(),se()}),(0,n.onUnmounted)(()=>{a.value&&(I.value?.detach(a.value),e.doubleClickToZoom&&a.value.removeEventListener("dblclick",ue)),window.removeEventListener("resize",we),$.value&&window.cancelAnimationFrame($.value),N.value&&window.cancelAnimationFrame(N.value)});function ue(ce){ce.clientX>0&&(w.value=ce.clientX,k.value=ce.clientY);const ke=Math.min(2.5,e.maxScale/2+.5),H=e.maxScale;h.value===1?V(ke):h.value<H-.1?V(H/h.value):F()}function we(){if(a.value){const ce=window.getComputedStyle(a.value);l.value=Number.parseFloat(ce.width),i.value=Number.parseFloat(ce.height),B(),re()}}return(ce,ke)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"zoomElement",ref:a,class:"vue-zoomer",style:(0,n.normalizeStyle)({backgroundColor:e.backgroundColor}),onMousewheel:P,"on:DOMMouseScroll":P,onMousedown:T,onMouseout:B,onFocusout:B,onTouchstart:Y,onTouchmove:ve},[(0,n.createElementVNode)("div",{class:"zoomer",style:(0,n.normalizeStyle)(A.value)},[(0,n.renderSlot)(ce.$slots,"default",{},void 0,!0)],4)],36))}}),iv=ge(Z7,[["__scopeId","data-v-f6a534bc"]]);function Q7(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})(),i=(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),v=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:${v}`,`SUMMARY:${e.title}`];if(e.description&&e.description.length>0){const k=e.description.replace(/\n/g,"\\n");w.push(`DESCRIPTION:${k}`)}return e.location&&e.location.length>0&&(w.push(`LOCATION:${e.location}`),i&&w.push(`URL:${e.location}`)),w.push("STATUS:CONFIRMED","SEQUENCE:0","END:VEVENT","END:VCALENDAR"),w.join(`\r
|
|
293
293
|
`)},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),v=new URLSearchParams({v:"60",title:e.title,st:c(r),dur:g.toString()});return e.description&&e.description.length>0&&v.append("desc",e.description),e.location&&e.location.length>0&&v.append("in_loc",e.location),`https://calendar.yahoo.com/?${v.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""}},y=(g="event.ics")=>{const v=u(),_=new Blob([v],{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:y,getCalendarUrl:h,addToCalendar:g=>{if(g==="apple"||g==="ics")y();else{const v=h(g);v&&window.open(v,"_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),l=(0,n.ref)(null),i=(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?l.value="down":r.value<s.value-d&&(l.value="up"),o.value>c.value+d?i.value="right":o.value<c.value-d&&(i.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:l,dirX:i}}var sv={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},lp={},q={helper:{},subParser:((e,t)=>{if(t!==void 0)lp[e]=t;else return lp[e]}),Converter:void 0};q.helper.isString=function(e){return typeof e=="string"||e instanceof String};q.helper.isFunction=function(e){return e&&{}.toString.call(e)==="[object Function]"};q.helper.isArray=function(e){return Array.isArray(e)};q.helper.isUndefined=function(e){return typeof e>"u"};q.helper.forEach=function(e,t){if(q.helper.isUndefined(e))throw new TypeError("obj param is required");if(q.helper.isUndefined(t))throw new TypeError("callback param is required");if(!q.helper.isFunction(t))throw new TypeError("callback param must be a function/closure");if(typeof e.forEach=="function")e.forEach(t);else if(q.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 cv(e,t){return`¨E${t.charCodeAt(0)}E`}q.helper.escapeCharactersCallback=cv;q.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,cv),e};q.helper.unescapeHTMLEntities=function(e){return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")};var uv=function(e,t,r,o){let a=o||"",l=a.includes("g"),i=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=i.exec(e);)if(s.test(f[0]))u++||(d=i.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),!l)return c}while(u&&(i.lastIndex=d));return c};q.helper.matchRecursiveRegExp=function(e,t,r,o){let a=uv(e,t,r,o),l=[];for(let i=0;i<a.length;++i)l.push([e.slice(a[i].wholeMatch.start,a[i].wholeMatch.end),e.slice(a[i].match.start,a[i].match.end),e.slice(a[i].left.start,a[i].left.end),e.slice(a[i].right.start,a[i].right.end)]);return l};q.helper.replaceRecursiveRegExp=function(e,t,r,o,a){let l;if(q.helper.isFunction(t))l=t;else{let u=t;l=function(){return u}}let i=uv(e,r,o,a),s=e,c=i.length;if(c>0){let u=[];i[0].wholeMatch.start!==0&&u.push(e.slice(0,i[0].wholeMatch.start));for(let d=0;d<c;++d)u.push(l(e.slice(i[d].wholeMatch.start,i[d].wholeMatch.end),e.slice(i[d].match.start,i[d].match.end),e.slice(i[d].left.start,i[d].left.end),e.slice(i[d].right.start,i[d].right.end))),d<c-1&&u.push(e.slice(i[d].wholeMatch.end,i[d+1].wholeMatch.start));i[c-1].wholeMatch.end<e.length&&u.push(e.slice(i[c-1].wholeMatch.end)),s=u.join("")}return s};q.helper.regexIndexOf=function(e,t,r){if(!q.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};q.helper.splitAtIndex=function(e,t){if(!q.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]};q.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};q.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}});q.helper.regexes={asteriskDashAndColon:/([*_:~])/g};q.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={...sv,...e}}function o(a){let l=a.match(/^\s*/)?.[0].length||0,i=new RegExp(`^\\s{0,${l}}`,"gm");return a.replace(i,"")}this.makeHtml=function(a){if(!a)return a;let l={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,`
|
|
294
294
|
`),a=a.replace(/\r/g,`
|
|
295
295
|
`),a=a.replace(/\u00A0/g," "),t.smartIndentationFix&&(a=o(a)),a=`
|
|
@@ -299,7 +299,7 @@ ${a}
|
|
|
299
299
|
`,a=q.subParser("detab")(a,t,l),a=a.replace(/^[ \t]+$/gm,""),a=q.subParser("metadata")(a,t,l),a=q.subParser("hashPreCodeTags")(a,t,l),a=q.subParser("githubCodeBlocks")(a,t,l),a=q.subParser("hashHTMLBlocks")(a,t,l),a=q.subParser("hashCodeTags")(a,t,l),a=q.subParser("stripLinkDefinitions")(a,t,l),a=q.subParser("blockGamut")(a,t,l),a=q.subParser("unhashHTMLSpans")(a,t,l),a=q.subParser("unescapeSpecialChars")(a,t,l),a=a.replace(/¨D/g,"$$"),a=a.replace(/¨T/g,"¨"),a=q.subParser("completeHTMLDocument")(a,t,l),a},this.makeMarkdown=this.makeMd=function(a,l){if(a=a.replace(/\r\n/g,`
|
|
300
300
|
`),a=a.replace(/\r/g,`
|
|
301
301
|
`),a=a.replace(/>[ \t]+</,">¨NBSP;<"),!l)if(typeof window<"u"&&window.document)l=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 i=l.createElement("div");i.innerHTML=a;let s={preList:f(i)};d(i);let c=i.childNodes,u="";for(let m=0;m<c.length;m++)u+=q.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(`
|
|
302
|
-
`).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 y=0;y<p.length;++y)if(p[y].childElementCount===1&&p[y].firstChild.tagName.toLowerCase()==="code"){let b=p[y].firstChild.innerHTML.trim(),g=p[y].firstChild.getAttribute("data-language")||"";if(g===""){let v=p[y].firstChild.className.split(" ");for(let _=0;_<v.length;++_){let w=v[_].match(/^language-(.+)$/);if(w!==null){g=w[1];break}}}b=q.helper.unescapeHTMLEntities(b),h.push(b),p[y].outerHTML=`<precode language="${g}" precodenum="${y.toString()}"></precode>`}else h.push(p[y].innerHTML),p[y].innerHTML="",p[y].setAttribute("prenum",y.toString());return h}return u}};q.subParser("anchors",(e,t,r)=>{let o=function(a,l,i,s,c,u,d){if(q.helper.isUndefined(d)&&(d=""),i=i.toLowerCase(),a.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)s="";else if(!s)if(i||(i=l.toLowerCase().replace(/ ?\n/g," ")),s=`#${i}`,!q.helper.isUndefined(r.gUrls[i]))s=r.gUrls[i],q.helper.isUndefined(r.gTitles[i])||(d=r.gTitles[i]);else return a;s=s.replace(q.helper.regexes.asteriskDashAndColon,q.helper.escapeCharactersCallback);let f=`<a href="${s}"`;return d!==""&&d!==null&&d!==void 0&&(d=d.replace(/"/g,"""),d=d.replace(q.helper.regexes.asteriskDashAndColon,q.helper.escapeCharactersCallback),f+=` title="${d}"`),t.openLinksInNewWindow&&!/^#/.test(s)&&(f+=' rel="noopener noreferrer" target="¨E95Eblank"'),f+=`>${l}</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,l,i,s,c)=>{if(i==="\\")return l+s;if(!q.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"'),`${l}<a href="${u}"${d}>${s}</a>`})),e});var
|
|
302
|
+
`).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 y=0;y<p.length;++y)if(p[y].childElementCount===1&&p[y].firstChild.tagName.toLowerCase()==="code"){let b=p[y].firstChild.innerHTML.trim(),g=p[y].firstChild.getAttribute("data-language")||"";if(g===""){let v=p[y].firstChild.className.split(" ");for(let _=0;_<v.length;++_){let w=v[_].match(/^language-(.+)$/);if(w!==null){g=w[1];break}}}b=q.helper.unescapeHTMLEntities(b),h.push(b),p[y].outerHTML=`<precode language="${g}" precodenum="${y.toString()}"></precode>`}else h.push(p[y].innerHTML),p[y].innerHTML="",p[y].setAttribute("prenum",y.toString());return h}return u}};q.subParser("anchors",(e,t,r)=>{let o=function(a,l,i,s,c,u,d){if(q.helper.isUndefined(d)&&(d=""),i=i.toLowerCase(),a.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)s="";else if(!s)if(i||(i=l.toLowerCase().replace(/ ?\n/g," ")),s=`#${i}`,!q.helper.isUndefined(r.gUrls[i]))s=r.gUrls[i],q.helper.isUndefined(r.gTitles[i])||(d=r.gTitles[i]);else return a;s=s.replace(q.helper.regexes.asteriskDashAndColon,q.helper.escapeCharactersCallback);let f=`<a href="${s}"`;return d!==""&&d!==null&&d!==void 0&&(d=d.replace(/"/g,"""),d=d.replace(q.helper.regexes.asteriskDashAndColon,q.helper.escapeCharactersCallback),f+=` title="${d}"`),t.openLinksInNewWindow&&!/^#/.test(s)&&(f+=' rel="noopener noreferrer" target="¨E95Eblank"'),f+=`>${l}</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,l,i,s,c)=>{if(i==="\\")return l+s;if(!q.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"'),`${l}<a href="${u}"${d}>${s}</a>`})),e});var eO=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,tO=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()[\]])?(\1)?(?=\s|$)(?!["<>])/gi,nO=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,rO=/(^|\s)(?:mailto:)?([\w!#$%&'*+-/=?^`{|}~]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,oO=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,jc=function(e){return function(t,r,o,a,l,i,s){o=o.replace(q.helper.regexes.asteriskDashAndColon,q.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&&i&&(u=i),e.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),`${f}<a href="${o}"${d}>${c}</a>${u}${m}`}},dv=function(e,t){return function(r,o,a){let l="mailto:";return o=o||"",a=q.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(l=q.helper.encodeEmailAddress(l+a),a=q.helper.encodeEmailAddress(a)):l=l+a,`${o}<a href="${l}">${a}</a>`}};q.subParser("autoLinks",(e,t,r)=>(e=e.replace(nO,jc(t)),e=e.replace(oO,dv(t,r)),e));q.subParser("simplifiedAutoLinks",(e,t,r)=>(t.simplifiedAutoLink&&(t.excludeTrailingPunctuationFromURLs?e=e.replace(tO,jc(t)):e=e.replace(eO,jc(t)),e=e.replace(rO,dv(t,r))),e));q.subParser("blockGamut",(e,t,r)=>(e=q.subParser("blockQuotes")(e,t,r),e=q.subParser("headers")(e,t,r),e=q.subParser("horizontalRule")(e,t,r),e=q.subParser("lists")(e,t,r),e=q.subParser("codeBlocks")(e,t,r),e=q.subParser("tables")(e,t,r),e=q.subParser("hashHTMLBlocks")(e,t,r),e=q.subParser("paragraphs")(e,t,r),e));q.subParser("blockQuotes",(e,t,r)=>{e=`${e}
|
|
303
303
|
|
|
304
304
|
`;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=q.subParser("githubCodeBlocks")(a,t,r),a=q.subParser("blockGamut")(a,t,r),a=a.replace(/(^|\n)/g,"$1 "),a=a.replace(/(\s*<pre>[^\r]+?<\/pre>)/g,(l,i)=>{let s=i;return s=s.replace(/^ {2}/gm,"¨0"),s=s.replace(/¨0/g,""),s}),q.subParser("hashBlock")(`<blockquote>
|
|
305
305
|
${a}
|
|
@@ -420,8 +420,8 @@ ${t.preList[o]}
|
|
|
420
420
|
`);break;case"code":o=q.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":o=q.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":o=q.subParser("makeMarkdown.strong")(e,t);break;case"del":o=q.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":o=q.subParser("makeMarkdown.links")(e,t);break;case"img":o=q.subParser("makeMarkdown.image")(e,t);break;default:o=`${e.outerHTML}
|
|
421
421
|
|
|
422
422
|
`}return o});q.subParser("makeMarkdown.paragraph",(e,t)=>{let r="";if(e.hasChildNodes()){let o=e.childNodes,a=o.length;for(let l=0;l<a;++l)r+=q.subParser("makeMarkdown.node")(o[l],t)}return r=r.trim(),r});q.subParser("makeMarkdown.pre",(e,t)=>{let r=e.getAttribute("prenum");return`<pre>${t.preList[r]}</pre>`});q.subParser("makeMarkdown.strikethrough",(e,t)=>{let r="";if(e.hasChildNodes()){r+="~~";let o=e.childNodes,a=o.length;for(let l=0;l<a;++l)r+=q.subParser("makeMarkdown.node")(o[l],t);r+="~~"}return r});q.subParser("makeMarkdown.strong",(e,t)=>{let r="";if(e.hasChildNodes()){r+="**";let o=e.childNodes,a=o.length;for(let l=0;l<a;++l)r+=q.subParser("makeMarkdown.node")(o[l],t);r+="**"}return r});q.subParser("makeMarkdown.table",(e,t)=>{let r="",o=[[],[]],a=e.querySelectorAll("thead>tr>th"),l=e.querySelectorAll("tbody>tr");for(let s=0;s<a.length;++s){let c=q.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<l.length;++s){let c=o.push([])-1,u=l[s].getElementsByTagName("td");for(let d=0;d<a.length;++d){let f=" ";typeof u[d]<"u"&&(f=q.subParser("makeMarkdown.tableCell")(u[d],t)),o[c].push(f)}}let i=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>i&&(i=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]=`${q.helper.padEnd(o[s][c].slice(-1),i-1,"-")}:`:o[s][c]=q.helper.padEnd(o[s][c],i,"-"):o[s][c]=q.helper.padEnd(o[s][c],i);r+=`| ${o[s].join(" | ")} |
|
|
423
|
-
`}return r.trim()});q.subParser("makeMarkdown.tableCell",(e,t)=>{let r="";if(!e.hasChildNodes())return"";let o=e.childNodes,a=o.length;for(let l=0;l<a;++l)r+=q.subParser("makeMarkdown.node")(o[l],t,!0);return r.trim()});q.subParser("makeMarkdown.txt",e=>{let t=e.nodeValue;return t=t.replace(/ +/g," "),t=t.replace(/¨NBSP;/g," "),t=q.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 lO(){try{const{locale:e}=ir().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 pl(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 iO=Object.assign(pl,{iso(e){return pl(e).toISOString()},date(e){return pl(e).toISOString().slice(0,10)},ms(e){return pl(e).getTime()}});function fv(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 sO(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")}${fv(e)}`}const cO={iso(e=new Date){return sO(e)},offset(e=new Date){return fv(e)}},Fo={SECOND:1e3,MINUTE:6e4,HOUR:36e5,DAY:864e5,WEEK:6048e5},{SECOND:uO}=Fo,{MINUTE:dO}=Fo,{HOUR:fO}=Fo,{DAY:mO}=Fo,{WEEK:pO}=Fo;function mn(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 hO={seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:0};function nd(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())/hO[r])}var yt=class qc{_date;constructor(t){this._date=new Date(t)}add(t,r="days"){return new qc(mn(this._date,{[r]:t}))}subtract(t,r="days"){return new qc(mn(this._date,{[r]:-t}))}diff(t,r="days"){return nd(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 gO(e){return new yt(e!==void 0?e:new Date)}const vO=Object.assign(gO,{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(mn(new Date,{days:1}))},get yesterday(){return new yt(mn(new Date,{days:-1}))},get nextWeek(){return new yt(mn(new Date,{weeks:1}))},get lastWeek(){return new yt(mn(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(mn(new Date,{[t]:e})),ago:(e,t="days")=>new yt(mn(new Date,{[t]:-e})),diff:(e,t,r="days")=>nd(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 mv(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 rd(e,t,r){const o=r?.timeZone?mv(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 yO=rd(new Date,"en-US"),bO=Object.keys(yO).sort((e,t)=>t.length-e.length),_O=new RegExp(bO.join("|"),"g");function ct(e,t){if(!e)return"";let r,o,a,l={};if(typeof t=="string"?r=t:t&&typeof t=="object"&&(r=t.format,o=t.locale,a=t.tz,l=t),r==="ISO"||r==="ISO8601"){const i=new Date(e);return Number.isNaN(i.getTime())?"":i.toISOString()}r=r||"DD.MM.YY",o=o||lO();try{let i=new Date(e);if(typeof e=="string"&&Number.isNaN(i.getTime())){const f=e.split(/[/.-]/);if(f.length===3){const[m,p,h]=f.map(y=>Number.parseInt(y,10));if(!Number.isNaN(m)&&!Number.isNaN(p)&&!Number.isNaN(h)){const y=h<100?2e3+h:h;i=new Date(y,p-1,m)}}}if(Number.isNaN(i.getTime()))return"";const s={day:"numeric",hour:"2-digit",hour12:l.hour12===void 0?!0:l.hour12,minute:"2-digit",month:"long",second:"2-digit",timeZone:a,weekday:"long",year:"numeric"},c=rd(i,o,s),u=new Intl.DateTimeFormat(o,s).formatToParts(i),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(i),c.DDDD=d.weekday),d.dayPeriod&&(c.AmPm=d.dayPeriod),r.replace(_O,f=>c[f])}catch{return""}}const wO=ct;function Pl(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),l=r.split(/\s+/);let i=0;for(const f of a)l.some(m=>m.includes(f))&&i++;if(i===a.length)return{matches:!0,score:100+i*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 kO(...e){return e.filter(Boolean).join(", ")}function $O(){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 EO(e){const t=e;return t.label??t.name??t.title??String(t.id??"")}function CO(e){const t=e;return t.value??t.key??t.id??""}function SO(e){if(Array.isArray(e))return e.map(r=>({...r,label:EO(r),value:CO(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 xO(e){return Array.isArray(e)?e:"data"in e?e.data:"items"in e?e.items:[]}function TO(e,t,r){const o=r?.timeout??1e4,a=e.length>0;let l=null;async function i(c){const u=a?e(c??""):e();return t(xO(await Promise.race([u,new Promise((d,f)=>setTimeout(()=>{f(new Error("Request timeout"))},o))])))}const s=async c=>{try{return a?await i(c):(l||(l=await i()),c?l.filter(u=>{const{label:d}=u;return typeof d!="string"?!0:Pl(d,c).matches}).sort((u,d)=>{const f=u.label??"";return Pl(d.label??"",c).score-Pl(f,c).score}):l)}catch{return[]}};return s.clearCache=()=>{l=null},s}function Gc(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 Vs=new Map;function NO(e,t=500){clearTimeout(Vs.get(e));const r=setTimeout(()=>{e(),Vs.delete(e)},t);Vs.set(e,r)}function BO(e){return e.toLowerCase().replace(/[^a-z0-9-\s]/g,"").split(/[\s-]+/).join("-")}function Za(e){return e===void 0?e:e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")||e}async function pv(e,t){await navigator.clipboard.writeText(e),t&&t("Copied to clipboard")}function hv(...e){return e=e.flatMap(t=>t.split(/\s/)),e.map(t=>t.charAt(0)).join("")}function gv(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 l=a.tagName.toLowerCase();if(["script","iframe","object","embed","link","meta","base","form"].includes(l)){a.remove();continue}for(const i of Array.from(a.attributes)){const s=i.name.toLowerCase(),c=i.value.trim().toLowerCase();(s.startsWith("on")||(s==="href"||s==="src"||s==="xlink:href")&&(c.startsWith("javascript:")||c.startsWith("data:")))&&a.removeAttribute(i.name)}r(a)}};return r(t.content),t.innerHTML}function DO(e,t){e.key==="Escape"&&t()}function vv(e,t,...r){return r.map(o=>typeof o=="function"?o(e,t):o).join(" ")}function Yc(e,t,r){if(!e)return{};const o=["class","onClick","$el"],a=Object.entries(e).filter(([i])=>!o.includes(i)).map(([i,s])=>[i,typeof s=="function"?s(t,r):s]),l=Object.fromEntries(a);for(const i of o.slice(1))e[i]&&(l[i]=e[i]);return l}function AO(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 MO(e,t){if(t)return e?e[t]:void 0}const Xc=e=>!Number.isNaN(Date.parse(e));function yv(e,t){const r=Array.from(new Set((e??[]).flatMap(Object.keys))).map(o=>({id:o,label:Za(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 od(e=100){return new Promise(t=>setTimeout(t,e))}var Xo=new Map;async function Qa(e,t){const r=t?.id||e;if(await od(1),Xo.has(r)){const a=Xo.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,l)=>{const i=document.createElement("script");i.src=e,t?.id&&(i.id=t.id),i.onload=()=>{a(),Xo.delete(r)},i.onerror=s=>{l(new Error(String(s))),Xo.delete(r)},document.head.append(i)});return Xo.set(r,o),o}async function Aa(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 od(r)}return window[e]}function Kc(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 ad(e){return e.startsWith("https://")?e:(e=e.replace(/http:\/\//,""),`https://${e}`)}function Wt(e,t="px"){return typeof e=="number"?`${e}${t}`:e}var LO=/^https?:\/\/|^\/\/|^blob:|^data:/;function pn(e){if(!(e==null||e===""))return LO.test(e)||e.startsWith("/")?e:e.startsWith("static/")||e.startsWith("images/")?`/${e}`:`https://files.bagel.design/${e}`}function fa(e,t,r=void 0){if(!t)return e;const o=t.split(/[.[]/);let a=e;for(const l of o){if(!a||typeof a!="object"||!(l in a))return r;a=a[l]}return a??r}var PO=e=>e.replace(/http:\/\//,"//");function bv(e,t){try{return e()}catch(r){t&&t(r)}}function ld(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=PO(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(()=>bv(()=>{URL.revokeObjectURL(a)}),0)}document.body.appendChild(r),r.click(),document.body.removeChild(r)}var IO=e=>Object.keys(e),ip=e=>e?.split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");function sp(e,t){return t?e.map(r=>{const o={};return t.forEach(a=>{const{id:l,transform:i,label:s}=a;if(l){const c=fa(r,l),u=s||l;o[u]=i?.(c,r)||c||""}}),o}):e}function VO(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 OO(){const e=(0,n.ref)(!1);async function t(){return e.value||(await Qa("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)||VO(f),y=await t(),b=sp(f,h),g=h.length>0?h.map(w=>{const{id:k,label:S}=w;return{v:S||k,t:"s"}}):[],v=y.utils.json_to_sheet(b);g.length>0&&y.utils.sheet_add_aoa(v,[g.map(w=>w.v)],{origin:"A1"});const _=y.utils.book_new();y.utils.book_append_sheet(_,v,"Sheet1"),m=m.endsWith(".xlsx")?m:`${m}.xlsx`,y.writeFile(_,m)}async function o(f,m="data",p){const h=p?p.map(v=>v.id).filter(Boolean):[...new Set(f.flatMap(IO))],y=p?p.map(v=>{const{label:_,id:w}=v;return _||ip(w)}):h.map(ip),b=sp(f,p),g=[y.join(","),...b.map(v=>h.map(_=>{const w=v[_]!==void 0?v[_]:"";return`"${String(w).replace(/"/g,'""')}"`}).join(","))].join(`
|
|
424
|
-
`);m=m.endsWith(".csv")?m:`${m}.csv`,ld(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 l(f){return(await a(f)).SheetNames}async function i(f,m,p=!0){const h=await t(),y=(await a(f)).Sheets[m],b=h.utils.sheet_to_json(y,{header:1});if(b.length===0)return{headers:[],data:[]};let g=[],v=0;p?(g=b[0].map(w=>String(w||"").trim()),v=1):g=b[0].map((w,k)=>String.fromCharCode(65+k));const _=[];for(let w=v;w<b.length;w++){const k=b[w],S={};for(let E=0;E<g.length;E++)E<k.length?S[g[E]]=k[E]:S[g[E]]="";_.push(S)}return{headers:g,data:_}}async function s(f){const m=await t();return new Promise((p,h)=>{const y=new FileReader;y.onload=b=>{try{const g=new Uint8Array(b.target?.result),v=m.read(g,{type:"array"}),_=v.SheetNames[0],w=v.Sheets[_];p(m.utils.sheet_to_json(w))}catch(g){h(g)}},y.onerror=()=>{h(new Error("Failed to read file"))},y.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"),y=String(f.getDate()).padStart(2,"0");return m?`${p}-${h}-${y}T${String(f.getHours()).padStart(2,"0")}:${String(f.getMinutes()).padStart(2,"0")}:${String(f.getSeconds()).padStart(2,"0")}`:`${p}-${h}-${y}`}return{downloadExcel:r,downloadCSV:o,readExcelFile:s,ensureXLSXLoaded:t,getSheetNames:l,readSheetData:i,getWorkbook:a,isExcelSerialDate:c,excelSerialDateToJSDate:u,formatDate:d}}var cp={"to-t":"to top","to-b":"to bottom","to-l":"to left","to-r":"to right","to-tl":"to top left","to-tr":"to top right","to-bl":"to bottom left","to-br":"to bottom right"};function RO(e){if(e==null||e==="")return;if(typeof e=="string"&&e in cp)return cp[e];const t=Number(e);return Number.isFinite(t)?`${t}deg`:void 0}function FO(e){return typeof e!="string"?[]:e.trim().split(/\s+/).filter(Boolean)}function Os(e){const t=e.trim();return t.startsWith("var(")||t.startsWith("#")||/^(rgb|hsl|color-mix|linear-gradient)\(/.test(t)?t:t.startsWith("--")?`var(${t})`:`var(--bgl-${t})`}function zi({gradient:e,gradientDir:t,color:r}){const o=(0,n.computed)(()=>{const l=(0,n.toValue)(e);return l===!0||typeof l=="string"&&l.trim()!==""}),a=(0,n.computed)(()=>[(0,n.toValue)(r),...FO((0,n.toValue)(e))].filter(Boolean));return{isGradient:o,gradientStyle:(0,n.computed)(()=>{if(!o.value)return{};const l={},i=RO((0,n.toValue)(t));i&&(l["--bgl-grad-angle"]=i);const s=a.value;if(s.length<2)return l;l["--bgl-grad-from"]=Os(s[0]),l["--bgl-grad-to"]=Os(s[s.length-1]);const c=s.slice(1,-1);return c.length&&(l["--bgl-grad-via"]=`${c.map(Os).join(", ")}, `),l}),stops:a}}async function zO(e){if("caches"in window)try{const t=await(await window.caches.open("img-cache")).match(e);if(t)return URL.createObjectURL(await t.blob())}catch{}}async function UO(e,t){if("caches"in window)try{await(await window.caches.open("img-cache")).put(e,new Response(t))}catch{}}async function HO(e){await Qa("https://cdnjs.cloudflare.com/ajax/libs/heic2any/0.0.1/index.min.js");const t=await(await Aa("heic2any"))({blob:await(await fetch(ad(e))).blob()});return await UO(e,t),URL.createObjectURL(t)}function id(e){const t=(0,n.ref)(void 0),r=(0,n.ref)(!1);async function o(){r.value=!1;const a=pn((0,n.toValue)(e));if(a===void 0||a===""){t.value=void 0;return}try{if(a.split(".").pop()?.toLowerCase().split("?")[0]==="heic"){const l=await zO(a);if(l!==void 0&&l!==""){t.value=l;return}t.value=await HO(a)}else t.value=a}catch{r.value=!0,t.value=void 0}}return(0,n.watch)(()=>(0,n.toValue)(e),o,{immediate:!0}),{imageSrc:t,loadingError:r}}var ho={},up=!1,Jc=typeof window<"u";function WO(){!Jc||up||(up=!0,window.addEventListener("storage",e=>{e.key!==null&&e.key in ho&&(ho[e.key].value=e.newValue!==null?JSON.parse(e.newValue):null)}))}function jO(e,t=null){if(!(e in ho)){const r=Jc?localStorage.getItem(e):null;ho[e]=(0,n.ref)(r!==null?JSON.parse(r):t),(0,n.watch)(ho[e],o=>{Jc&&localStorage.setItem(e,JSON.stringify(o))})}return ho[e]}function _v(e){return WO(),new Proxy({},{get(t,r){return jO(r,e?.[r]??null)}})}var wv=1e3,qO=60*wv;function GO(e,t={}){const{interval:r=30*wv,inactivityThreshold:o=5*qO,pauseInBackground:a=!0}=t,{idle:l}=xS(o),i=(0,n.ref)(!0),s=(0,n.ref)(null),c=()=>!a||document.visibilityState==="visible",u=()=>{i.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(i.value&&c()&&!l.value)try{await e()}catch{}i.value&&(s.value=window.setTimeout(h,r))};h()},m=()=>{i.value&&f()};function p(){document.visibilityState==="visible"?i.value&&f():a&&d()}return(0,n.onMounted)(()=>{document.addEventListener("visibilitychange",p),f()}),(0,n.onUnmounted)(()=>{document.removeEventListener("visibilitychange",p),u()}),{isPolling:i,pausePolling:d,resumePolling:m,startPolling:f,stopPolling:u}}function YO(e,t,r){const o={...e};return r===void 0?delete o[t]:o[t]=r,o}function XO(e){const t=(0,$o.useRoute)(),r=(0,$o.useRouter)(),o={};return new Proxy({},{get(a,l){if(!(l in o)){const i=e?.[l];o[l]=(0,n.computed)({get:()=>t.query[l]??i,set:s=>r.replace({query:YO(t.query,l,s)})})}return o[l]}})}function KO(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 l of a)t.value=l.contentRect.width,r.value=l.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 gn=(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"}]),dp="color-mode",Zn=(0,n.ref)("system"),Zc=(0,n.ref)(!1),sd=(0,n.ref)(!1),cd=typeof window<"u";function JO(){return sd.value&&cd&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}function fp(e){return gn.value.find(t=>t.value===e)}function Il(e){if(!cd)return;const t=document.documentElement;if(gn.value.forEach(r=>{r.class!=="system"&&t.classList.remove(r.class)}),e==="system"){const r=JO();Zc.value=r;const o=gn.value.find(i=>i.value==="dark"),a=gn.value.find(i=>i.value==="light"),l=r?o:a;l&&t.classList.add(l.class)}else{const r=fp(e),o=r&&r.isDark&&!sd.value?fp("light"):r;o&&(t.classList.add(o.class),Zc.value=o.isDark??!1)}}function ZO(){const e=gn.value.filter(t=>t.value!=="system");e.length!==0&&(Zn.value=e[(e.findIndex(t=>t.value===Zn.value)+1)%e.length].value)}function QO(e={}){e.allowDark!==void 0&&(sd.value=e.allowDark),Il(Zn.value)}function eR(e){if(!gn.value.some(t=>t.value===e.value)){const t=gn.value.findIndex(r=>r.value==="system");t>-1?gn.value.splice(t,0,e):gn.value.push(e)}}var mp=!1;function tR(){if(mp||!cd)return;mp=!0;const e=window.localStorage.getItem(dp);gn.value.some(t=>t.value===e)&&(Zn.value=e),Il(Zn.value),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{Zn.value==="system"&&Il("system")}),(0,n.watch)(Zn,t=>{localStorage.setItem(dp,t),Il(t)})}function nR(){return tR(),{isDark:Zc,theme:(0,n.computed)(()=>Zn.value),themeOptions:gn,toggleTheme:ZO,addTheme:eR,setTheme:e=>{Zn.value=e}}}function kv(e,t,r,o){_S(e,(a,l)=>{if(t?.()?.setCustomValidity(""),!r||a===l||!a)return;const i=r(a,o?.());typeof i=="string"&&t?.()?.setCustomValidity(i)},{debounce:500})}function $v({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(l=>a.value?.includes(l.id)):o.value:yv(r,a.value)}const rR={s:"400px",m:"540px",l:"720px",xl:"960px",full:"100%"};var oR={key:0,class:"dialog-grip","aria-hidden":"true"},aR={key:2,class:"flex-grow-1"},lR=(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"},grip:{type:Boolean,default:void 0}},emits:["update:open","close"],setup(e,{expose:t,emit:r}){const o=e,a=(0,n.computed)(()=>o.grip??o.position==="bottom"),l=r,i=(0,n.ref)(null),s=(0,n.ref)(!1),c=(0,n.ref)(!0),u=(0,n.computed)(()=>rR[o.width]),d=(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,b=>{b?(i.value?.showModal(),s.value=!1,c.value=!1,setTimeout(()=>{c.value=!0},250)):f()}),(0,n.onMounted)(()=>{o.open&&i.value?.showModal()});function f(){s.value||(s.value=!0)}function m(){s.value&&(i.value?.close(),s.value=!1,l("close"))}function p(b){b.target===i.value&&o.dismissable&&l("update:open",!1)}function h(b){if(!o.dismissable){b.preventDefault();return}l("update:open",!1)}function y(){c.value=!1,l("update:open",!1)}return t({close:y}),(b,g)=>((0,n.openBlock)(),(0,n.createElementBlock)("dialog",{ref_key:"dialogRef",ref:i,class:(0,n.normalizeClass)([[d.value,{"is-closing":s.value}],"border-none shadow-30 p-0 testMe1"]),style:(0,n.normalizeStyle)({"--dialog-width":u.value}),onClick:p,onCancel:h,onAnimationend:m},[(0,n.createElementVNode)("div",{class:"grid grid-dialog max-height-100-2",onClick:g[0]||(g[0]=(0,n.withModifiers)(()=>{},["stop"]))},[a.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",oR)):(0,n.createCommentVNode)("",!0),e.title||e.dismissable?((0,n.openBlock)(),(0,n.createElementBlock)("header",{key:1,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)(oe),{key:0,flat:"",icon:"close","aria-label":"Close",class:"dialog-close relative z-2",thin:"",onClick:y})):(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",aR)),e.dismissable&&e.closePlacement==="header-end"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{key:3,flat:"",icon:"close","aria-label":"Close",class:"dialog-close relative z-2",thin:"",onClick:y})):(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)(b.$slots,"default",{},void 0,!0)],2),b.$slots.footer?((0,n.openBlock)(),(0,n.createElementBlock)("footer",{key:2,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)(b.$slots,"footer",{},void 0,!0)],2)):(0,n.createCommentVNode)("",!0)]),e.dismissable&&e.closePlacement==="overlay-start"&&c.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{key:0,icon:"close","aria-label":"Close",class:"fixed top-1 start-1 z-999 overlay-btn",onClick:y})):(0,n.createCommentVNode)("",!0),e.dismissable&&e.closePlacement==="overlay-end"&&c.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{key:1,icon:"close","aria-label":"Close",class:"fixed top-1 end-1 z-999 overlay-btn",onClick:y})):(0,n.createCommentVNode)("",!0)],38))}}),Yn=ge(lR,[["__scopeId","data-v-4d56079e"]]),iR=(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}=nt(),l=(0,n.computed)(()=>r.title||a("modalConfirm.title")),i=(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)(Yn,{open:e.open,title:l.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)(oe,{flat:"",onClick:u},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(s.value),1)]),_:1}),(0,n.createVNode)(oe,{color:e.confirmColor,onClick:c},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(i.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"]))}}),Ev=iR,sR=(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:l}=nt();function i(N,A){const F=A.split(".");let V=N;for(const B of F)V=V?.[B];return V}function s(N,A,F){const V=A.split(".");let B=N;for(let j=0;j<V.length-1;j++){const Q=V[j];(B[Q]==null||typeof B[Q]!="object")&&(B[Q]={}),B=B[Q]}B[V[V.length-1]]=F}function c(N){const A={...N??{}};for(const[F,V]of Object.entries(o.schema._fields)){const B=V._config.default;B!==void 0&&i(A,F)===void 0&&s(A,F,B)}return A}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,N=>{h||(u.value=c(N))},{deep:!0}),(0,n.watch)(u,N=>{h=!0,a("update:modelValue",N),(0,n.nextTick)(()=>{h=!1})},{deep:!0});function y(N){return N._condition==null?!0:E0(N._condition,u.value)}const b=(0,n.computed)(()=>{const N=[];for(const[A,F]of Object.entries(o.schema._fields))y(F)&&N.push({key:A,field:F});return N});function g(N,A,F){s(u.value,N,A),(m.value==="success"||m.value==="error")&&(m.value="idle"),f.value&&_(N,F)}function v(N,A){return N==null||N===""||Array.isArray(N)&&N.length===0||A._type==="tel"&&typeof N=="string"&&/^\+\d+$/.test(N)}function _(N,A){const F=w(N);if(A._config.required===!0&&v(F,A))return d.value={...d.value,[N]:A._config.requiredMessage??l("form.required")},!1;if(A._type==="email"&&F&&!Mr.test(F))return d.value={...d.value,[N]:l("form.invalidEmail")},!1;if(A._validations!=null)for(const V of A._validations){const B=V(F);if(B!==!0)return d.value={...d.value,[N]:B},!1}return d.value=Object.fromEntries(Object.entries(d.value).filter(([V])=>V!==N)),!0}function w(N){return i(u.value,N)}function k(N,A){return A._config.label!=null?A._config.label:N.split(/[._-]/).map(F=>F.charAt(0).toUpperCase()+F.slice(1)).join(" ")}function S(N){if(typeof N!="string"&&(N._type==="select"||N._type==="multiselect")&&N._config.display==="btn")return hg;const A=typeof N=="string"?N:N._type;return{text:Fe,email:Nu,password:F0,number:Dn,tel:Yu,url:Fe,date:Ca,time:Fe,datetime:Ca,textarea:Fe,richtext:Fu,json:Tu,checkbox:Tt,toggle:Vi,radio:U0,select:Vt,multiselect:Vt,array:io,upload:xa,color:Nn,range:Du}[A]??Fe}const E=(0,n.computed)(()=>{const N={...d.value,...o.errors||{}},A={};for(const[F,V]of Object.entries(N))A[F]=$e(V)??V;return A});function $(N,A){const F={label:k(A,N),modelValue:w(A),"onUpdate:modelValue":V=>{g(A,V,N)},error:E.value[A],...N._config,name:N._config.name??A};if(N._type==="textarea"&&(F.multiline=!0),N._type==="multiselect"&&(F.multiselect=!0),N._type==="json"&&(F.language=F.language??"json"),N._type==="array"){const V=Object.fromEntries(Object.entries(N._config).filter(([B])=>B!=="schema"&&B!=="itemType"));Object.assign(F,V),F.allowAdd=F.allowAdd??!0,F.allowDelete=F.allowDelete??!0}return F}function I(N){return typeof N=="string"&&o.components?.[N]!=null?o.components[N]:N}function D(N){return N._component!=null}function R(){let N=!0;const A={};for(const{key:F,field:V}of b.value){const B=w(F);if(V._config.required===!0&&v(B,V)){A[F]=V._config.requiredMessage??l("form.required"),N=!1;continue}if(V._type==="email"&&B&&!Mr.test(B)){A[F]=l("form.invalidEmail"),N=!1;continue}if(V._validations!=null)for(const j of V._validations){const Q=j(B);if(Q!==!0){A[F]=Q,N=!1;break}}}return d.value=A,N}async function M(N){N&&N.preventDefault(),f.value=!0;const A=R();if(A){if(o.onSubmit){m.value="submitting";try{await o.onSubmit(u.value),m.value="success"}catch{m.value="error"}}}else{N?.stopPropagation();const F=b.value.find(({key:V})=>d.value[V])?.key;if(F!=null&&p.value){const V=p.value.querySelector(`[name="${F}"]`)||p.value.querySelector(`[id="${F}"]`)||p.value.querySelector(`[data-field="${F}"]`)||p.value.querySelector("input, select, textarea");V&&(V.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(()=>{V instanceof HTMLElement&&V.focus()},300))}}return A}return t({validate:R,submit:M,formState:m}),(N,A)=>{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:M},[m.value==="success"?(0,n.renderSlot)(N.$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:V,field:B})=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:V,class:(0,n.normalizeClass)([B._class,B._config.class])},[(0,n.renderSlot)(N.$slots,`field:${V}`,{value:w(V),field:B,formData:u.value,error:d.value[V],onChange:j=>{g(V,j,B)}},()=>[B._type==="array"&&B._config.schema?._isSchema?((0,n.openBlock)(),(0,n.createBlock)(io,(0,n.mergeProps)({key:0,ref_for:!0},$(B,V)),{default:(0,n.withCtx)(({item:j})=>[(0,n.createVNode)(F,{"model-value":j.value,schema:B._config.schema,components:e.components,"onUpdate:modelValue":Q=>{j.value=Q}},null,8,["model-value","schema","components","onUpdate:modelValue"])]),_:2},1040)):B._type==="array"&&typeof B._config.schema=="string"?((0,n.openBlock)(),(0,n.createBlock)(io,(0,n.mergeProps)({key:1,ref_for:!0},$(B,V)),{default:(0,n.withCtx)(({item:j})=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(S(B._config.schema)),{"model-value":j.value,"onUpdate:modelValue":Q=>{j.value=Q}},null,8,["model-value","onUpdate:modelValue"]))]),_:2},1040)):B._type==="array"&&B._config.schema?((0,n.openBlock)(),(0,n.createBlock)(io,(0,n.mergeProps)({key:2,ref_for:!0},$(B,V)),{default:(0,n.withCtx)(({item:j})=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(I(B._config.schema)),{modelValue:j.value,"onUpdate:modelValue":Q=>j.value=Q},null,8,["modelValue","onUpdate:modelValue"]))]),_:2},1040)):B._type==="array"&&B._config.itemType?((0,n.openBlock)(),(0,n.createBlock)(io,(0,n.mergeProps)({key:3,ref_for:!0},$(B,V)),{default:(0,n.withCtx)(({item:j})=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(S(B._config.itemType)),{"model-value":j.value,"onUpdate:modelValue":Q=>{j.value=Q}},null,8,["model-value","onUpdate:modelValue"]))]),_:2},1040)):D(B)?((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(I(B._component.component)),(0,n.mergeProps)({key:4,"model-value":w(V)},{ref_for:!0},B._component.props,{"onUpdate:modelValue":j=>g(V,j,B)}),null,16,["model-value","onUpdate:modelValue"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(S(B)),(0,n.mergeProps)({key:5,ref_for:!0},$(B,V)),null,16))])],2))),128)),(0,n.renderSlot)(N.$slots,"errors",{errors:E.value,errorCount:Object.keys(E.value).filter(V=>E.value[V]).length,visibleFields:b.value}),m.value==="error"?(0,n.renderSlot)(N.$slots,"error",{key:0,formData:u.value}):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(N.$slots,"submit",{submit:M,validate:R,formData:u.value,errors:E.value,formState:m.value})],64))],34)}}}),ud=sR,cR={key:0,class:"dialog-form-error bg-red-30 color-red radius-1 mb-1 txt14 px-1 py-075"},uR=(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}=nt(),l=(0,n.ref)({...r.modelValue||{}}),i=(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(!i.value){if(!u.value?.validate()){c.value=a("dialogForm.validationError");return}c.value=null,i.value=!0;try{r.onSubmit&&await r.onSubmit(l.value),o("resolve",{action:"submit",data:l.value}),o("update:open",!1)}catch(y){c.value=y instanceof Error?y.message:a("dialogForm.errorOccurred")}finally{i.value=!1}}}async function m(){if(!(s.value||!r.onDelete)){c.value=null,s.value=!0;try{await r.onDelete(l.value),o("resolve",{action:"delete",data:l.value}),o("update:open",!1)}catch(y){c.value=y instanceof Error?y.message:a("dialogForm.errorOccurred")}finally{s.value=!1}}}function p(){o("resolve",{action:"cancel",data:l.value}),o("update:open",!1)}function h(){o("resolve",{action:"cancel",data:l.value})}return(y,b)=>((0,n.openBlock)(),(0,n.createBlock)(Yn,{open:e.open,title:e.title,width:e.width,position:e.position,dismissable:e.dismissable,"onUpdate:open":b[1]||(b[1]=g=>y.$emit("update:open",g)),onClose:h},{footer:(0,n.withCtx)(()=>[d.value?((0,n.openBlock)(),(0,n.createBlock)(oe,{key:0,color:"red",flat:"",loading:s.value,disabled:i.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)(oe,{flat:"",disabled:i.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)(oe,{color:"primary",loading:i.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",cR,(0,n.toDisplayString)(c.value),1)):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(ud,{ref_key:"formFlowRef",ref:u,modelValue:l.value,"onUpdate:modelValue":b[0]||(b[0]=g=>l.value=g),schema:e.schema,onSubmit:f},null,8,["modelValue","schema"])]),_:1},8,["open","title","width","position","dismissable"]))}}),Cv=uR;const dd=Symbol("dialog");var ii=null;function Sv(){const e=(0,n.inject)(dd,null);if(!e){if(ii)return ii;throw new Error("Dialog API not provided. Make sure DialogPlugin is installed via app.use(DialogPlugin)")}return e}const xv={install:e=>{let t=0;const r=(0,n.reactive)([]),o={form:l=>new Promise(i=>{const s=++t;r.push({id:s,type:"form",options:l,resolve:i,open:!0})}),confirm:l=>new Promise(i=>{const s=++t,c=typeof l=="string"?{message:l}:l;r.push({id:s,type:"confirm",options:c,resolve:i,open:!0})}),open:l=>{const i=++t,s={id:i,type:"open",options:l,resolve:()=>{},open:!0};return r.push(s),{close:()=>{const c=r.findIndex(u=>u.id===i);c!==-1&&(r[c].open=!1,setTimeout(()=>{const u=r.findIndex(d=>d.id===i);u!==-1&&r.splice(u,1)},200))}}}};ii||(ii=o),e.provide(dd,o);const a=(0,n.defineComponent)({name:"DialogContainer",setup(){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 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 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:l,handleConfirmResolve:i,handleOpenUpdate:s}},render(){return this.dialogStack.map(l=>{if(l.type==="form")return(0,n.h)(Cv,{key:l.id,open:l.open,...l.options,"onUpdate:open":i=>{i||this.handleFormResolve(l,{action:"cancel",data:l.options.modelValue||{}})},onResolve:i=>{this.handleFormResolve(l,i)}});if(l.type==="confirm")return(0,n.h)(Ev,{key:l.id,open:l.open,...l.options,"onUpdate:open":i=>{i||this.handleConfirmResolve(l,!1)},onResolve:i=>{this.handleConfirmResolve(l,i)}});if(l.type==="open"){const i=l.options;return(0,n.h)(Yn,{key:l.id,open:l.open,title:i.title,width:i.width,position:i.position,dismissable:i.dismissable,class:i.class,"onUpdate:open":s=>{this.handleOpenUpdate(l,s)}},{default:()=>(0,n.h)((typeof i.component=="string",i.component),i.props||{})})}return null})}});if(e.component("DialogContainer",a),typeof document<"u"&&typeof window<"u"){const l=()=>{if(!document.getElementById("bagelink-dialog-root")){const i=document.createElement("div");i.id="bagelink-dialog-root",document.body.appendChild(i);const s=(0,n.createApp)(a);Object.assign(s._context,e._context),s.mount(i)}};document.body&&l(),e.mixin({mounted(){this.$root===this&&l()}})}}};var fd={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,"_")}},hl=new WeakMap;function Rs(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 pp(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!==""?fd[e.modifier]?.pattern??/./:/./}function hp(e,t,r){r.keydownEvent=(o=>{fR(o,t,r)}),r.inputEvent=(o=>{Nv(o,t,r)}),r.compositionStartEvent=(()=>{mR(r)}),r.compositionEndEvent=(o=>{pR(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 gp(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 dR(e){const t=["Tab","Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"];return e.ctrlKey||e.altKey||e.metaKey?!0:t.includes(e.key)}function fR(e,t,r){if(r.composing===!0||dR(e)||r.modifier!=null&&r.modifier!==""&&typeof fd[r.modifier]?.transform=="function")return;const o=Tv(r),a=e.key;o.test(a)||e.preventDefault()}function mR(e){e.composing=!0}function pR(e,t,r){r.composing=!1,Nv(e,t,r)}function vp(e,t){const r=Tv(t);let o;if(t.modifier!=null&&t.modifier!==""){const l=fd[t.modifier]?.transform;o=l?l(e):e}else o=e;let a="";for(let l=0;l<o.length;l++){const i=o[l];r.test(i)&&(a+=i)}return a}function Nv(e,t,r){if(r.reformatting===!0||r.composing===!0)return;const o=t.value,a=t.selectionEnd??o.length,l=o.slice(0,a),i=vp(o,r);if(i===o)return;const s=vp(l,r).length;r.reformatting=!0,t.value=i,t.setSelectionRange(s,s),r.reformatting=!1}var hR={beforeMount(e,t){const r=Rs(e);if(r===null)return;const o={modifier:pp(t)};typeof t.value=="object"&&t.value!==null&&(o.pattern=t.value.pattern??/./,o.validateOnly=t.value.validateOnly===!0),hl.set(e,o),hp(e,r,o)},updated(e,t){const r=Rs(e);if(r===null)return;const o=hl.get(e);o!==void 0&&(gp(r,o),o.modifier=pp(t),typeof t.value=="object"&&t.value!==null&&(o.pattern=t.value.pattern??/./,o.validateOnly=t.value.validateOnly===!0),hp(e,r,o))},unmounted(e){const t=Rs(e),r=hl.get(e);t!==null&&r!==void 0&&gp(t,r),hl.delete(e)},getSSRProps(){return{}}},Bv=hR,gR=()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;function vR(e){const t={y:"up",delay:0,once:!0,threshold:.12};return e?typeof e=="string"?{...t,y:e}:{...t,...e}:t}var Fs=new WeakMap,yR={mounted(e,t){const r=vR(t.value);if(gR())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 l of a)l.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),Fs.set(e,o)},unmounted(e){Fs.get(e)?.disconnect(),Fs.delete(e)},getSSRProps(){return{}}},Dv=yR;function bR(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 _R={mounted(e,t){const r=o=>{const a=e.getBoundingClientRect(),l=Math.max(a.width,a.height),i=document.createElement("span");i.className="ripple",Object.assign(i.style,{width:`${l}px`,height:`${l}px`,left:`${o.clientX-a.left-l/2}px`,top:`${o.clientY-a.top-l/2}px`,position:"absolute",borderRadius:"50%",transform:"scale(0)",background:"rgba(0, 0, 0, 0.3)",pointerEvents:"none",animation:"rippleEffect 0.6s ease-out"}),bR(e).appendChild(i),setTimeout(()=>{i.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=_R,na=Symbol("resize");function yp(e,t){const r=t.value||{};let o=!1,a=0,l=0,i=null;r.handle?(i=e.querySelector(r.handle),i||(i=document.createElement("div"),i.className=r.handle.replace(".","")+(r.handleClass?` ${r.handleClass}`:""),i.style.cssText=`
|
|
423
|
+
`}return r.trim()});q.subParser("makeMarkdown.tableCell",(e,t)=>{let r="";if(!e.hasChildNodes())return"";let o=e.childNodes,a=o.length;for(let l=0;l<a;++l)r+=q.subParser("makeMarkdown.node")(o[l],t,!0);return r.trim()});q.subParser("makeMarkdown.txt",e=>{let t=e.nodeValue;return t=t.replace(/ +/g," "),t=t.replace(/¨NBSP;/g," "),t=q.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 aO(){try{const{locale:e}=ir().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 pl(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 lO=Object.assign(pl,{iso(e){return pl(e).toISOString()},date(e){return pl(e).toISOString().slice(0,10)},ms(e){return pl(e).getTime()}});function fv(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 iO(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")}${fv(e)}`}const sO={iso(e=new Date){return iO(e)},offset(e=new Date){return fv(e)}},Fo={SECOND:1e3,MINUTE:6e4,HOUR:36e5,DAY:864e5,WEEK:6048e5},{SECOND:cO}=Fo,{MINUTE:uO}=Fo,{HOUR:dO}=Fo,{DAY:fO}=Fo,{WEEK:mO}=Fo;function mn(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 pO={seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:0};function nd(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())/pO[r])}var yt=class qc{_date;constructor(t){this._date=new Date(t)}add(t,r="days"){return new qc(mn(this._date,{[r]:t}))}subtract(t,r="days"){return new qc(mn(this._date,{[r]:-t}))}diff(t,r="days"){return nd(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 hO(e){return new yt(e!==void 0?e:new Date)}const gO=Object.assign(hO,{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(mn(new Date,{days:1}))},get yesterday(){return new yt(mn(new Date,{days:-1}))},get nextWeek(){return new yt(mn(new Date,{weeks:1}))},get lastWeek(){return new yt(mn(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(mn(new Date,{[t]:e})),ago:(e,t="days")=>new yt(mn(new Date,{[t]:-e})),diff:(e,t,r="days")=>nd(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 mv(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 rd(e,t,r){const o=r?.timeZone?mv(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 vO=rd(new Date,"en-US"),yO=Object.keys(vO).sort((e,t)=>t.length-e.length),bO=new RegExp(yO.join("|"),"g");function ct(e,t){if(!e)return"";let r,o,a,l={};if(typeof t=="string"?r=t:t&&typeof t=="object"&&(r=t.format,o=t.locale,a=t.tz,l=t),r==="ISO"||r==="ISO8601"){const i=new Date(e);return Number.isNaN(i.getTime())?"":i.toISOString()}r=r||"DD.MM.YY",o=o||aO();try{let i=new Date(e);if(typeof e=="string"&&Number.isNaN(i.getTime())){const f=e.split(/[/.-]/);if(f.length===3){const[m,p,h]=f.map(y=>Number.parseInt(y,10));if(!Number.isNaN(m)&&!Number.isNaN(p)&&!Number.isNaN(h)){const y=h<100?2e3+h:h;i=new Date(y,p-1,m)}}}if(Number.isNaN(i.getTime()))return"";const s={day:"numeric",hour:"2-digit",hour12:l.hour12===void 0?!0:l.hour12,minute:"2-digit",month:"long",second:"2-digit",timeZone:a,weekday:"long",year:"numeric"},c=rd(i,o,s),u=new Intl.DateTimeFormat(o,s).formatToParts(i),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(i),c.DDDD=d.weekday),d.dayPeriod&&(c.AmPm=d.dayPeriod),r.replace(bO,f=>c[f])}catch{return""}}const _O=ct;function Pl(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),l=r.split(/\s+/);let i=0;for(const f of a)l.some(m=>m.includes(f))&&i++;if(i===a.length)return{matches:!0,score:100+i*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 wO(...e){return e.filter(Boolean).join(", ")}function kO(){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 $O(e){const t=e;return t.label??t.name??t.title??String(t.id??"")}function EO(e){const t=e;return t.value??t.key??t.id??""}function CO(e){if(Array.isArray(e))return e.map(r=>({...r,label:$O(r),value:EO(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 SO(e){return Array.isArray(e)?e:"data"in e?e.data:"items"in e?e.items:[]}function xO(e,t,r){const o=r?.timeout??1e4,a=e.length>0;let l=null;async function i(c){const u=a?e(c??""):e();return t(SO(await Promise.race([u,new Promise((d,f)=>setTimeout(()=>{f(new Error("Request timeout"))},o))])))}const s=async c=>{try{return a?await i(c):(l||(l=await i()),c?l.filter(u=>{const{label:d}=u;return typeof d!="string"?!0:Pl(d,c).matches}).sort((u,d)=>{const f=u.label??"";return Pl(d.label??"",c).score-Pl(f,c).score}):l)}catch{return[]}};return s.clearCache=()=>{l=null},s}function Gc(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 Vs=new Map;function TO(e,t=500){clearTimeout(Vs.get(e));const r=setTimeout(()=>{e(),Vs.delete(e)},t);Vs.set(e,r)}function NO(e){return e.toLowerCase().replace(/[^a-z0-9-\s]/g,"").split(/[\s-]+/).join("-")}function Za(e){return e===void 0?e:e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")||e}async function pv(e,t){await navigator.clipboard.writeText(e),t&&t("Copied to clipboard")}function hv(...e){return e=e.flatMap(t=>t.split(/\s/)),e.map(t=>t.charAt(0)).join("")}function gv(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 l=a.tagName.toLowerCase();if(["script","iframe","object","embed","link","meta","base","form"].includes(l)){a.remove();continue}for(const i of Array.from(a.attributes)){const s=i.name.toLowerCase(),c=i.value.trim().toLowerCase();(s.startsWith("on")||(s==="href"||s==="src"||s==="xlink:href")&&(c.startsWith("javascript:")||c.startsWith("data:")))&&a.removeAttribute(i.name)}r(a)}};return r(t.content),t.innerHTML}function BO(e,t){e.key==="Escape"&&t()}function vv(e,t,...r){return r.map(o=>typeof o=="function"?o(e,t):o).join(" ")}function Yc(e,t,r){if(!e)return{};const o=["class","onClick","$el"],a=Object.entries(e).filter(([i])=>!o.includes(i)).map(([i,s])=>[i,typeof s=="function"?s(t,r):s]),l=Object.fromEntries(a);for(const i of o.slice(1))e[i]&&(l[i]=e[i]);return l}function DO(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 AO(e,t){if(t)return e?e[t]:void 0}const Xc=e=>!Number.isNaN(Date.parse(e));function yv(e,t){const r=Array.from(new Set((e??[]).flatMap(Object.keys))).map(o=>({id:o,label:Za(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 od(e=100){return new Promise(t=>setTimeout(t,e))}var Xo=new Map;async function Qa(e,t){const r=t?.id||e;if(await od(1),Xo.has(r)){const a=Xo.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,l)=>{const i=document.createElement("script");i.src=e,t?.id&&(i.id=t.id),i.onload=()=>{a(),Xo.delete(r)},i.onerror=s=>{l(new Error(String(s))),Xo.delete(r)},document.head.append(i)});return Xo.set(r,o),o}async function Aa(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 od(r)}return window[e]}function Kc(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 ad(e){return e.startsWith("https://")?e:(e=e.replace(/http:\/\//,""),`https://${e}`)}function Wt(e,t="px"){return typeof e=="number"?`${e}${t}`:e}var MO=/^https?:\/\/|^\/\/|^blob:|^data:/;function pn(e){if(!(e==null||e===""))return MO.test(e)||e.startsWith("/")?e:e.startsWith("static/")||e.startsWith("images/")?`/${e}`:`https://files.bagel.design/${e}`}function fa(e,t,r=void 0){if(!t)return e;const o=t.split(/[.[]/);let a=e;for(const l of o){if(!a||typeof a!="object"||!(l in a))return r;a=a[l]}return a??r}var LO=e=>e.replace(/http:\/\//,"//");function bv(e,t){try{return e()}catch(r){t&&t(r)}}function ld(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=LO(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(()=>bv(()=>{URL.revokeObjectURL(a)}),0)}document.body.appendChild(r),r.click(),document.body.removeChild(r)}var PO=e=>Object.keys(e),ip=e=>e?.split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");function sp(e,t){return t?e.map(r=>{const o={};return t.forEach(a=>{const{id:l,transform:i,label:s}=a;if(l){const c=fa(r,l),u=s||l;o[u]=i?.(c,r)||c||""}}),o}):e}function IO(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 VO(){const e=(0,n.ref)(!1);async function t(){return e.value||(await Qa("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)||IO(f),y=await t(),b=sp(f,h),g=h.length>0?h.map(w=>{const{id:k,label:S}=w;return{v:S||k,t:"s"}}):[],v=y.utils.json_to_sheet(b);g.length>0&&y.utils.sheet_add_aoa(v,[g.map(w=>w.v)],{origin:"A1"});const _=y.utils.book_new();y.utils.book_append_sheet(_,v,"Sheet1"),m=m.endsWith(".xlsx")?m:`${m}.xlsx`,y.writeFile(_,m)}async function o(f,m="data",p){const h=p?p.map(v=>v.id).filter(Boolean):[...new Set(f.flatMap(PO))],y=p?p.map(v=>{const{label:_,id:w}=v;return _||ip(w)}):h.map(ip),b=sp(f,p),g=[y.join(","),...b.map(v=>h.map(_=>{const w=v[_]!==void 0?v[_]:"";return`"${String(w).replace(/"/g,'""')}"`}).join(","))].join(`
|
|
424
|
+
`);m=m.endsWith(".csv")?m:`${m}.csv`,ld(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 l(f){return(await a(f)).SheetNames}async function i(f,m,p=!0){const h=await t(),y=(await a(f)).Sheets[m],b=h.utils.sheet_to_json(y,{header:1});if(b.length===0)return{headers:[],data:[]};let g=[],v=0;p?(g=b[0].map(w=>String(w||"").trim()),v=1):g=b[0].map((w,k)=>String.fromCharCode(65+k));const _=[];for(let w=v;w<b.length;w++){const k=b[w],S={};for(let E=0;E<g.length;E++)E<k.length?S[g[E]]=k[E]:S[g[E]]="";_.push(S)}return{headers:g,data:_}}async function s(f){const m=await t();return new Promise((p,h)=>{const y=new FileReader;y.onload=b=>{try{const g=new Uint8Array(b.target?.result),v=m.read(g,{type:"array"}),_=v.SheetNames[0],w=v.Sheets[_];p(m.utils.sheet_to_json(w))}catch(g){h(g)}},y.onerror=()=>{h(new Error("Failed to read file"))},y.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"),y=String(f.getDate()).padStart(2,"0");return m?`${p}-${h}-${y}T${String(f.getHours()).padStart(2,"0")}:${String(f.getMinutes()).padStart(2,"0")}:${String(f.getSeconds()).padStart(2,"0")}`:`${p}-${h}-${y}`}return{downloadExcel:r,downloadCSV:o,readExcelFile:s,ensureXLSXLoaded:t,getSheetNames:l,readSheetData:i,getWorkbook:a,isExcelSerialDate:c,excelSerialDateToJSDate:u,formatDate:d}}var cp={"to-t":"to top","to-b":"to bottom","to-l":"to left","to-r":"to right","to-tl":"to top left","to-tr":"to top right","to-bl":"to bottom left","to-br":"to bottom right"};function OO(e){if(e==null||e==="")return;if(typeof e=="string"&&e in cp)return cp[e];const t=Number(e);return Number.isFinite(t)?`${t}deg`:void 0}function RO(e){return typeof e!="string"?[]:e.trim().split(/\s+/).filter(Boolean)}function Os(e){const t=e.trim();return t.startsWith("var(")||t.startsWith("#")||/^(rgb|hsl|color-mix|linear-gradient)\(/.test(t)?t:t.startsWith("--")?`var(${t})`:`var(--bgl-${t})`}function zi({gradient:e,gradientDir:t,color:r}){const o=(0,n.computed)(()=>{const l=(0,n.toValue)(e);return l===!0||typeof l=="string"&&l.trim()!==""}),a=(0,n.computed)(()=>[(0,n.toValue)(r),...RO((0,n.toValue)(e))].filter(Boolean));return{isGradient:o,gradientStyle:(0,n.computed)(()=>{if(!o.value)return{};const l={},i=OO((0,n.toValue)(t));i&&(l["--bgl-grad-angle"]=i);const s=a.value;if(s.length<2)return l;l["--bgl-grad-from"]=Os(s[0]),l["--bgl-grad-to"]=Os(s[s.length-1]);const c=s.slice(1,-1);return c.length&&(l["--bgl-grad-via"]=`${c.map(Os).join(", ")}, `),l}),stops:a}}async function FO(e){if("caches"in window)try{const t=await(await window.caches.open("img-cache")).match(e);if(t)return URL.createObjectURL(await t.blob())}catch{}}async function zO(e,t){if("caches"in window)try{await(await window.caches.open("img-cache")).put(e,new Response(t))}catch{}}async function UO(e){await Qa("https://cdnjs.cloudflare.com/ajax/libs/heic2any/0.0.1/index.min.js");const t=await(await Aa("heic2any"))({blob:await(await fetch(ad(e))).blob()});return await zO(e,t),URL.createObjectURL(t)}function id(e){const t=(0,n.ref)(void 0),r=(0,n.ref)(!1);async function o(){r.value=!1;const a=pn((0,n.toValue)(e));if(a===void 0||a===""){t.value=void 0;return}try{if(a.split(".").pop()?.toLowerCase().split("?")[0]==="heic"){const l=await FO(a);if(l!==void 0&&l!==""){t.value=l;return}t.value=await UO(a)}else t.value=a}catch{r.value=!0,t.value=void 0}}return(0,n.watch)(()=>(0,n.toValue)(e),o,{immediate:!0}),{imageSrc:t,loadingError:r}}var ho={},up=!1,Jc=typeof window<"u";function HO(){!Jc||up||(up=!0,window.addEventListener("storage",e=>{e.key!==null&&e.key in ho&&(ho[e.key].value=e.newValue!==null?JSON.parse(e.newValue):null)}))}function WO(e,t=null){if(!(e in ho)){const r=Jc?localStorage.getItem(e):null;ho[e]=(0,n.ref)(r!==null?JSON.parse(r):t),(0,n.watch)(ho[e],o=>{Jc&&localStorage.setItem(e,JSON.stringify(o))})}return ho[e]}function _v(e){return HO(),new Proxy({},{get(t,r){return WO(r,e?.[r]??null)}})}var wv=1e3,jO=60*wv;function qO(e,t={}){const{interval:r=30*wv,inactivityThreshold:o=5*jO,pauseInBackground:a=!0}=t,{idle:l}=xS(o),i=(0,n.ref)(!0),s=(0,n.ref)(null),c=()=>!a||document.visibilityState==="visible",u=()=>{i.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(i.value&&c()&&!l.value)try{await e()}catch{}i.value&&(s.value=window.setTimeout(h,r))};h()},m=()=>{i.value&&f()};function p(){document.visibilityState==="visible"?i.value&&f():a&&d()}return(0,n.onMounted)(()=>{document.addEventListener("visibilitychange",p),f()}),(0,n.onUnmounted)(()=>{document.removeEventListener("visibilitychange",p),u()}),{isPolling:i,pausePolling:d,resumePolling:m,startPolling:f,stopPolling:u}}function GO(e,t,r){const o={...e};return r===void 0?delete o[t]:o[t]=r,o}function YO(e){const t=(0,$o.useRoute)(),r=(0,$o.useRouter)(),o={};return new Proxy({},{get(a,l){if(!(l in o)){const i=e?.[l];o[l]=(0,n.computed)({get:()=>t.query[l]??i,set:s=>r.replace({query:GO(t.query,l,s)})})}return o[l]}})}function XO(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 l of a)t.value=l.contentRect.width,r.value=l.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 gn=(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"}]),dp="color-mode",Zn=(0,n.ref)("system"),Zc=(0,n.ref)(!1),sd=(0,n.ref)(!1),cd=typeof window<"u";function KO(){return sd.value&&cd&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}function fp(e){return gn.value.find(t=>t.value===e)}function Il(e){if(!cd)return;const t=document.documentElement;if(gn.value.forEach(r=>{r.class!=="system"&&t.classList.remove(r.class)}),e==="system"){const r=KO();Zc.value=r;const o=gn.value.find(i=>i.value==="dark"),a=gn.value.find(i=>i.value==="light"),l=r?o:a;l&&t.classList.add(l.class)}else{const r=fp(e),o=r&&r.isDark&&!sd.value?fp("light"):r;o&&(t.classList.add(o.class),Zc.value=o.isDark??!1)}}function JO(){const e=gn.value.filter(t=>t.value!=="system");e.length!==0&&(Zn.value=e[(e.findIndex(t=>t.value===Zn.value)+1)%e.length].value)}function ZO(e={}){e.allowDark!==void 0&&(sd.value=e.allowDark),Il(Zn.value)}function QO(e){if(!gn.value.some(t=>t.value===e.value)){const t=gn.value.findIndex(r=>r.value==="system");t>-1?gn.value.splice(t,0,e):gn.value.push(e)}}var mp=!1;function eR(){if(mp||!cd)return;mp=!0;const e=window.localStorage.getItem(dp);gn.value.some(t=>t.value===e)&&(Zn.value=e),Il(Zn.value),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{Zn.value==="system"&&Il("system")}),(0,n.watch)(Zn,t=>{localStorage.setItem(dp,t),Il(t)})}function tR(){return eR(),{isDark:Zc,theme:(0,n.computed)(()=>Zn.value),themeOptions:gn,toggleTheme:JO,addTheme:QO,setTheme:e=>{Zn.value=e}}}function kv(e,t,r,o){_S(e,(a,l)=>{if(t?.()?.setCustomValidity(""),!r||a===l||!a)return;const i=r(a,o?.());typeof i=="string"&&t?.()?.setCustomValidity(i)},{debounce:500})}function $v({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(l=>a.value?.includes(l.id)):o.value:yv(r,a.value)}const nR={s:"400px",m:"540px",l:"720px",xl:"960px",full:"100%"};var rR={key:0,class:"dialog-grip","aria-hidden":"true"},oR={key:2,class:"flex-grow-1"},aR=(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"},grip:{type:Boolean,default:void 0}},emits:["update:open","close"],setup(e,{expose:t,emit:r}){const o=e,a=(0,n.computed)(()=>o.grip??o.position==="bottom"),l=r,i=(0,n.ref)(null),s=(0,n.ref)(!1),c=(0,n.ref)(!0),u=(0,n.computed)(()=>nR[o.width]),d=(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,b=>{b?(i.value?.showModal(),s.value=!1,c.value=!1,setTimeout(()=>{c.value=!0},250)):f()}),(0,n.onMounted)(()=>{o.open&&i.value?.showModal()});function f(){s.value||(s.value=!0)}function m(){s.value&&(i.value?.close(),s.value=!1,l("close"))}function p(b){b.target===i.value&&o.dismissable&&l("update:open",!1)}function h(b){if(!o.dismissable){b.preventDefault();return}l("update:open",!1)}function y(){c.value=!1,l("update:open",!1)}return t({close:y}),(b,g)=>((0,n.openBlock)(),(0,n.createElementBlock)("dialog",{ref_key:"dialogRef",ref:i,class:(0,n.normalizeClass)([[d.value,{"is-closing":s.value}],"border-none shadow-30 p-0 testMe1"]),style:(0,n.normalizeStyle)({"--dialog-width":u.value}),onClick:p,onCancel:h,onAnimationend:m},[(0,n.createElementVNode)("div",{class:"grid grid-dialog max-height-100-2",onClick:g[0]||(g[0]=(0,n.withModifiers)(()=>{},["stop"]))},[a.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",rR)):(0,n.createCommentVNode)("",!0),e.title||e.dismissable?((0,n.openBlock)(),(0,n.createElementBlock)("header",{key:1,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)(oe),{key:0,flat:"",icon:"close","aria-label":"Close",class:"dialog-close relative z-2",thin:"",onClick:y})):(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",oR)),e.dismissable&&e.closePlacement==="header-end"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{key:3,flat:"",icon:"close","aria-label":"Close",class:"dialog-close relative z-2",thin:"",onClick:y})):(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)(b.$slots,"default",{},void 0,!0)],2),b.$slots.footer?((0,n.openBlock)(),(0,n.createElementBlock)("footer",{key:2,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)(b.$slots,"footer",{},void 0,!0)],2)):(0,n.createCommentVNode)("",!0)]),e.dismissable&&e.closePlacement==="overlay-start"&&c.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{key:0,icon:"close","aria-label":"Close",class:"fixed top-1 start-1 z-999 overlay-btn",onClick:y})):(0,n.createCommentVNode)("",!0),e.dismissable&&e.closePlacement==="overlay-end"&&c.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{key:1,icon:"close","aria-label":"Close",class:"fixed top-1 end-1 z-999 overlay-btn",onClick:y})):(0,n.createCommentVNode)("",!0)],38))}}),Yn=ge(aR,[["__scopeId","data-v-4d56079e"]]),lR=(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}=nt(),l=(0,n.computed)(()=>r.title||a("modalConfirm.title")),i=(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)(Yn,{open:e.open,title:l.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)(oe,{flat:"",onClick:u},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(s.value),1)]),_:1}),(0,n.createVNode)(oe,{color:e.confirmColor,onClick:c},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(i.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"]))}}),Ev=lR,iR=(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:l}=nt();function i(N,A){const F=A.split(".");let V=N;for(const B of F)V=V?.[B];return V}function s(N,A,F){const V=A.split(".");let B=N;for(let j=0;j<V.length-1;j++){const Q=V[j];(B[Q]==null||typeof B[Q]!="object")&&(B[Q]={}),B=B[Q]}B[V[V.length-1]]=F}function c(N){const A={...N??{}};for(const[F,V]of Object.entries(o.schema._fields)){const B=V._config.default;B!==void 0&&i(A,F)===void 0&&s(A,F,B)}return A}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,N=>{h||(u.value=c(N))},{deep:!0}),(0,n.watch)(u,N=>{h=!0,a("update:modelValue",N),(0,n.nextTick)(()=>{h=!1})},{deep:!0});function y(N){return N._condition==null?!0:E0(N._condition,u.value)}const b=(0,n.computed)(()=>{const N=[];for(const[A,F]of Object.entries(o.schema._fields))y(F)&&N.push({key:A,field:F});return N});function g(N,A,F){s(u.value,N,A),(m.value==="success"||m.value==="error")&&(m.value="idle"),f.value&&_(N,F)}function v(N,A){return N==null||N===""||Array.isArray(N)&&N.length===0||A._type==="tel"&&typeof N=="string"&&/^\+\d+$/.test(N)}function _(N,A){const F=w(N);if(A._config.required===!0&&v(F,A))return d.value={...d.value,[N]:A._config.requiredMessage??l("form.required")},!1;if(A._type==="email"&&F&&!Mr.test(F))return d.value={...d.value,[N]:l("form.invalidEmail")},!1;if(A._validations!=null)for(const V of A._validations){const B=V(F);if(B!==!0)return d.value={...d.value,[N]:B},!1}return d.value=Object.fromEntries(Object.entries(d.value).filter(([V])=>V!==N)),!0}function w(N){return i(u.value,N)}function k(N,A){return A._config.label!=null?A._config.label:N.split(/[._-]/).map(F=>F.charAt(0).toUpperCase()+F.slice(1)).join(" ")}function S(N){if(typeof N!="string"&&(N._type==="select"||N._type==="multiselect")&&N._config.display==="btn")return hg;const A=typeof N=="string"?N:N._type;return{text:Fe,email:Nu,password:F0,number:Dn,tel:Yu,url:Fe,date:Ca,time:Fe,datetime:Ca,textarea:Fe,richtext:Fu,json:Tu,checkbox:Tt,toggle:Vi,radio:U0,select:Vt,multiselect:Vt,array:io,upload:xa,color:Nn,range:Du}[A]??Fe}const E=(0,n.computed)(()=>{const N={...d.value,...o.errors||{}},A={};for(const[F,V]of Object.entries(N))A[F]=$e(V)??V;return A});function $(N,A){const F={label:k(A,N),modelValue:w(A),"onUpdate:modelValue":V=>{g(A,V,N)},error:E.value[A],...N._config,name:N._config.name??A};if(N._type==="textarea"&&(F.multiline=!0),N._type==="multiselect"&&(F.multiselect=!0),N._type==="json"&&(F.language=F.language??"json"),N._type==="array"){const V=Object.fromEntries(Object.entries(N._config).filter(([B])=>B!=="schema"&&B!=="itemType"));Object.assign(F,V),F.allowAdd=F.allowAdd??!0,F.allowDelete=F.allowDelete??!0}return F}function I(N){return typeof N=="string"&&o.components?.[N]!=null?o.components[N]:N}function D(N){return N._component!=null}function R(){let N=!0;const A={};for(const{key:F,field:V}of b.value){const B=w(F);if(V._config.required===!0&&v(B,V)){A[F]=V._config.requiredMessage??l("form.required"),N=!1;continue}if(V._type==="email"&&B&&!Mr.test(B)){A[F]=l("form.invalidEmail"),N=!1;continue}if(V._validations!=null)for(const j of V._validations){const Q=j(B);if(Q!==!0){A[F]=Q,N=!1;break}}}return d.value=A,N}async function M(N){N&&N.preventDefault(),f.value=!0;const A=R();if(A){if(o.onSubmit){m.value="submitting";try{await o.onSubmit(u.value),m.value="success"}catch{m.value="error"}}}else{N?.stopPropagation();const F=b.value.find(({key:V})=>d.value[V])?.key;if(F!=null&&p.value){const V=p.value.querySelector(`[name="${F}"]`)||p.value.querySelector(`[id="${F}"]`)||p.value.querySelector(`[data-field="${F}"]`)||p.value.querySelector("input, select, textarea");V&&(V.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(()=>{V instanceof HTMLElement&&V.focus()},300))}}return A}return t({validate:R,submit:M,formState:m}),(N,A)=>{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:M},[m.value==="success"?(0,n.renderSlot)(N.$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:V,field:B})=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:V,class:(0,n.normalizeClass)([B._class,B._config.class])},[(0,n.renderSlot)(N.$slots,`field:${V}`,{value:w(V),field:B,formData:u.value,error:d.value[V],onChange:j=>{g(V,j,B)}},()=>[B._type==="array"&&B._config.schema?._isSchema?((0,n.openBlock)(),(0,n.createBlock)(io,(0,n.mergeProps)({key:0,ref_for:!0},$(B,V)),{default:(0,n.withCtx)(({item:j})=>[(0,n.createVNode)(F,{"model-value":j.value,schema:B._config.schema,components:e.components,"onUpdate:modelValue":Q=>{j.value=Q}},null,8,["model-value","schema","components","onUpdate:modelValue"])]),_:2},1040)):B._type==="array"&&typeof B._config.schema=="string"?((0,n.openBlock)(),(0,n.createBlock)(io,(0,n.mergeProps)({key:1,ref_for:!0},$(B,V)),{default:(0,n.withCtx)(({item:j})=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(S(B._config.schema)),{"model-value":j.value,"onUpdate:modelValue":Q=>{j.value=Q}},null,8,["model-value","onUpdate:modelValue"]))]),_:2},1040)):B._type==="array"&&B._config.schema?((0,n.openBlock)(),(0,n.createBlock)(io,(0,n.mergeProps)({key:2,ref_for:!0},$(B,V)),{default:(0,n.withCtx)(({item:j})=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(I(B._config.schema)),{modelValue:j.value,"onUpdate:modelValue":Q=>j.value=Q},null,8,["modelValue","onUpdate:modelValue"]))]),_:2},1040)):B._type==="array"&&B._config.itemType?((0,n.openBlock)(),(0,n.createBlock)(io,(0,n.mergeProps)({key:3,ref_for:!0},$(B,V)),{default:(0,n.withCtx)(({item:j})=>[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(S(B._config.itemType)),{"model-value":j.value,"onUpdate:modelValue":Q=>{j.value=Q}},null,8,["model-value","onUpdate:modelValue"]))]),_:2},1040)):D(B)?((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(I(B._component.component)),(0,n.mergeProps)({key:4,"model-value":w(V)},{ref_for:!0},B._component.props,{"onUpdate:modelValue":j=>g(V,j,B)}),null,16,["model-value","onUpdate:modelValue"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(S(B)),(0,n.mergeProps)({key:5,ref_for:!0},$(B,V)),null,16))])],2))),128)),(0,n.renderSlot)(N.$slots,"errors",{errors:E.value,errorCount:Object.keys(E.value).filter(V=>E.value[V]).length,visibleFields:b.value}),m.value==="error"?(0,n.renderSlot)(N.$slots,"error",{key:0,formData:u.value}):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(N.$slots,"submit",{submit:M,validate:R,formData:u.value,errors:E.value,formState:m.value})],64))],34)}}}),ud=iR,sR={key:0,class:"dialog-form-error bg-red-30 color-red radius-1 mb-1 txt14 px-1 py-075"},cR=(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}=nt(),l=(0,n.ref)({...r.modelValue||{}}),i=(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(!i.value){if(!u.value?.validate()){c.value=a("dialogForm.validationError");return}c.value=null,i.value=!0;try{r.onSubmit&&await r.onSubmit(l.value),o("resolve",{action:"submit",data:l.value}),o("update:open",!1)}catch(y){c.value=y instanceof Error?y.message:a("dialogForm.errorOccurred")}finally{i.value=!1}}}async function m(){if(!(s.value||!r.onDelete)){c.value=null,s.value=!0;try{await r.onDelete(l.value),o("resolve",{action:"delete",data:l.value}),o("update:open",!1)}catch(y){c.value=y instanceof Error?y.message:a("dialogForm.errorOccurred")}finally{s.value=!1}}}function p(){o("resolve",{action:"cancel",data:l.value}),o("update:open",!1)}function h(){o("resolve",{action:"cancel",data:l.value})}return(y,b)=>((0,n.openBlock)(),(0,n.createBlock)(Yn,{open:e.open,title:e.title,width:e.width,position:e.position,dismissable:e.dismissable,"onUpdate:open":b[1]||(b[1]=g=>y.$emit("update:open",g)),onClose:h},{footer:(0,n.withCtx)(()=>[d.value?((0,n.openBlock)(),(0,n.createBlock)(oe,{key:0,color:"red",flat:"",loading:s.value,disabled:i.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)(oe,{flat:"",disabled:i.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)(oe,{color:"primary",loading:i.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",sR,(0,n.toDisplayString)(c.value),1)):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(ud,{ref_key:"formFlowRef",ref:u,modelValue:l.value,"onUpdate:modelValue":b[0]||(b[0]=g=>l.value=g),schema:e.schema,onSubmit:f},null,8,["modelValue","schema"])]),_:1},8,["open","title","width","position","dismissable"]))}}),Cv=cR;const dd=Symbol("dialog");var ii=null;function Sv(){const e=(0,n.inject)(dd,null);if(!e){if(ii)return ii;throw new Error("Dialog API not provided. Make sure DialogPlugin is installed via app.use(DialogPlugin)")}return e}const xv={install:e=>{let t=0;const r=(0,n.reactive)([]),o={form:l=>new Promise(i=>{const s=++t;r.push({id:s,type:"form",options:l,resolve:i,open:!0})}),confirm:l=>new Promise(i=>{const s=++t,c=typeof l=="string"?{message:l}:l;r.push({id:s,type:"confirm",options:c,resolve:i,open:!0})}),open:l=>{const i=++t,s={id:i,type:"open",options:l,resolve:()=>{},open:!0};return r.push(s),{close:()=>{const c=r.findIndex(u=>u.id===i);c!==-1&&(r[c].open=!1,setTimeout(()=>{const u=r.findIndex(d=>d.id===i);u!==-1&&r.splice(u,1)},200))}}}};ii||(ii=o),e.provide(dd,o);const a=(0,n.defineComponent)({name:"DialogContainer",setup(){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 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 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:l,handleConfirmResolve:i,handleOpenUpdate:s}},render(){return this.dialogStack.map(l=>{if(l.type==="form")return(0,n.h)(Cv,{key:l.id,open:l.open,...l.options,"onUpdate:open":i=>{i||this.handleFormResolve(l,{action:"cancel",data:l.options.modelValue||{}})},onResolve:i=>{this.handleFormResolve(l,i)}});if(l.type==="confirm")return(0,n.h)(Ev,{key:l.id,open:l.open,...l.options,"onUpdate:open":i=>{i||this.handleConfirmResolve(l,!1)},onResolve:i=>{this.handleConfirmResolve(l,i)}});if(l.type==="open"){const i=l.options;return(0,n.h)(Yn,{key:l.id,open:l.open,title:i.title,width:i.width,position:i.position,dismissable:i.dismissable,class:i.class,"onUpdate:open":s=>{this.handleOpenUpdate(l,s)}},{default:()=>(0,n.h)((typeof i.component=="string",i.component),i.props||{})})}return null})}});if(e.component("DialogContainer",a),typeof document<"u"&&typeof window<"u"){const l=()=>{if(!document.getElementById("bagelink-dialog-root")){const i=document.createElement("div");i.id="bagelink-dialog-root",document.body.appendChild(i);const s=(0,n.createApp)(a);Object.assign(s._context,e._context),s.mount(i)}};document.body&&l(),e.mixin({mounted(){this.$root===this&&l()}})}}};var fd={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,"_")}},hl=new WeakMap;function Rs(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 pp(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!==""?fd[e.modifier]?.pattern??/./:/./}function hp(e,t,r){r.keydownEvent=(o=>{dR(o,t,r)}),r.inputEvent=(o=>{Nv(o,t,r)}),r.compositionStartEvent=(()=>{fR(r)}),r.compositionEndEvent=(o=>{mR(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 gp(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 uR(e){const t=["Tab","Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"];return e.ctrlKey||e.altKey||e.metaKey?!0:t.includes(e.key)}function dR(e,t,r){if(r.composing===!0||uR(e)||r.modifier!=null&&r.modifier!==""&&typeof fd[r.modifier]?.transform=="function")return;const o=Tv(r),a=e.key;o.test(a)||e.preventDefault()}function fR(e){e.composing=!0}function mR(e,t,r){r.composing=!1,Nv(e,t,r)}function vp(e,t){const r=Tv(t);let o;if(t.modifier!=null&&t.modifier!==""){const l=fd[t.modifier]?.transform;o=l?l(e):e}else o=e;let a="";for(let l=0;l<o.length;l++){const i=o[l];r.test(i)&&(a+=i)}return a}function Nv(e,t,r){if(r.reformatting===!0||r.composing===!0)return;const o=t.value,a=t.selectionEnd??o.length,l=o.slice(0,a),i=vp(o,r);if(i===o)return;const s=vp(l,r).length;r.reformatting=!0,t.value=i,t.setSelectionRange(s,s),r.reformatting=!1}var pR={beforeMount(e,t){const r=Rs(e);if(r===null)return;const o={modifier:pp(t)};typeof t.value=="object"&&t.value!==null&&(o.pattern=t.value.pattern??/./,o.validateOnly=t.value.validateOnly===!0),hl.set(e,o),hp(e,r,o)},updated(e,t){const r=Rs(e);if(r===null)return;const o=hl.get(e);o!==void 0&&(gp(r,o),o.modifier=pp(t),typeof t.value=="object"&&t.value!==null&&(o.pattern=t.value.pattern??/./,o.validateOnly=t.value.validateOnly===!0),hp(e,r,o))},unmounted(e){const t=Rs(e),r=hl.get(e);t!==null&&r!==void 0&&gp(t,r),hl.delete(e)},getSSRProps(){return{}}},Bv=pR,hR=()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;function gR(e){const t={y:"up",delay:0,once:!0,threshold:.12};return e?typeof e=="string"?{...t,y:e}:{...t,...e}:t}var Fs=new WeakMap,vR={mounted(e,t){const r=gR(t.value);if(hR())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 l of a)l.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),Fs.set(e,o)},unmounted(e){Fs.get(e)?.disconnect(),Fs.delete(e)},getSSRProps(){return{}}},Dv=vR;function yR(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 bR={mounted(e,t){const r=o=>{const a=e.getBoundingClientRect(),l=Math.max(a.width,a.height),i=document.createElement("span");i.className="ripple",Object.assign(i.style,{width:`${l}px`,height:`${l}px`,left:`${o.clientX-a.left-l/2}px`,top:`${o.clientY-a.top-l/2}px`,position:"absolute",borderRadius:"50%",transform:"scale(0)",background:"rgba(0, 0, 0, 0.3)",pointerEvents:"none",animation:"rippleEffect 0.6s ease-out"}),yR(e).appendChild(i),setTimeout(()=>{i.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=bR,na=Symbol("resize");function yp(e,t){const r=t.value||{};let o=!1,a=0,l=0,i=null;r.handle?(i=e.querySelector(r.handle),i||(i=document.createElement("div"),i.className=r.handle.replace(".","")+(r.handleClass?` ${r.handleClass}`:""),i.style.cssText=`
|
|
425
425
|
position: absolute;
|
|
426
426
|
bottom: 0;
|
|
427
427
|
left: 0;
|
|
@@ -430,7 +430,7 @@ ${t.preList[o]}
|
|
|
430
430
|
background: rgba(0, 0, 0, 0.1);
|
|
431
431
|
cursor: ns-resize;
|
|
432
432
|
transition: background 0.2s;
|
|
433
|
-
`,e.appendChild(i))):i=e,i.addEventListener("mouseenter",()=>{i!==e&&(i.style.background="rgba(0, 0, 0, 0.2)")}),i.addEventListener("mouseleave",()=>{i!==e&&!o&&(i.style.background="rgba(0, 0, 0, 0.1)")}),i.style.cursor="ns-resize",i.style.userSelect="none";function s(m){return{clientY:m,deltaY:m-a,initialHeight:l}}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=l+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),i!==e&&(i.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="",i!==e&&(i.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,l=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))}i.addEventListener("mousedown",f),i.addEventListener("touchstart",f,{passive:!1}),e[na]=()=>{i!==e&&e.removeChild(i),i.removeEventListener("mousedown",f),i.removeEventListener("touchstart",f),i.removeEventListener("mouseenter",f),i.removeEventListener("mouseleave",f),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d),document.removeEventListener("touchcancel",d)}}const wR={mounted(e,t){yp(e,t)},unmounted(e){const t=e[na];typeof t=="function"&&(t(),delete e[na])},updated(e,t){if(t.value!==t.oldValue){const r=e[na];typeof r=="function"&&(r(),delete e[na]),yp(e,t)}},getSSRProps(){return{}}};function md(e){return e==="richtext"?3:e==="textarea"||e==="json"||e==="radio"||e==="file"||e==="signature"?2:1}function pd(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 Mv(e){if(!e?.properties)return[];const t=new Set(e.required??[]),r=[];for(const[o,a]of Object.entries(e.properties)){const l=a["x-field-type"]??pd(a),i={};a.minLength!==void 0&&(i.minLength=a.minLength),a.maxLength!==void 0&&(i.maxLength=a.maxLength),a.minimum!==void 0&&(i.min=a.minimum),a.maximum!==void 0&&(i.max=a.maximum),a.multipleOf!==void 0&&(i.step=a.multipleOf),a.pattern!==void 0&&(i.pattern=a.pattern),a["x-options"]?i.options=a["x-options"]:a.enum&&(i.options=a.enum.map(c=>({label:String(c),value:String(c)})));const s={id:crypto.randomUUID(),key:o,type:l,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"]??md(l),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(i).length>0?i:void 0,defaultValue:a.default,content:a["x-field-type"]==="heading"?a.title:void 0};r.push(s)}return r}function kR(e,t){const r={},o=[];for(const l of e){const i={};if(l.type==="heading"||l.type==="divider")i.type="string",i.title=l.content||l.label,i["x-field-type"]=l.type;else{switch(l.type){case"text":case"textarea":case"richtext":case"markdown":case"email":case"phone":case"url":case"date":case"file":case"signature":case"color":i.type="string";break;case"number":case"range":i.type="number";break;case"checkbox":case"toggle":i.type="boolean";break;case"json":i.type="object";break;case"select":case"radio":i.type="string",l.validation?.options&&(i.enum=l.validation.options.map(s=>s.value));break}l.type==="email"&&(i.format="email"),l.type==="phone"&&(i.format="tel"),l.type==="url"&&(i.format="uri"),l.type==="date"&&(i.format=l.dateEnableTime?"date-time":"date"),l.type==="color"&&(i.format="color"),i.title=l.label,l.description&&(i.description=l.description),l.defaultValue!==void 0&&(i.default=l.defaultValue),l.type!=="text"&&(i["x-field-type"]=l.type),l.validation?.minLength!==void 0&&(i.minLength=l.validation.minLength),l.validation?.maxLength!==void 0&&(i.maxLength=l.validation.maxLength),l.validation?.min!==void 0&&(i.minimum=l.validation.min),l.validation?.max!==void 0&&(i.maximum=l.validation.max),l.validation?.step!==void 0&&(i.multipleOf=l.validation.step),l.validation?.pattern!==void 0&&(i.pattern=l.validation.pattern),l.required&&o.push(l.key)}l.placeholder&&(i["x-placeholder"]=l.placeholder),l.validation?.options&&(i["x-options"]=l.validation.options),l.colSpan!==void 0&&l.colSpan!==12&&(i["x-col-span"]=l.colSpan),l.colStart!==void 0&&(i["x-col-start"]=l.colStart),l.rowSpan!==void 0&&l.rowSpan!==md(l.type)&&(i["x-row-span"]=l.rowSpan),l.rowStart!==void 0&&(i["x-row-start"]=l.rowStart),l.mColSpan!==void 0&&l.mColSpan!==12&&(i["x-m-col-span"]=l.mColSpan),l.mColStart!==void 0&&(i["x-m-col-start"]=l.mColStart),l.mRowSpan!==void 0&&(i["x-m-row-span"]=l.mRowSpan),l.mRowStart!==void 0&&(i["x-m-row-start"]=l.mRowStart),l.hideLabel===!0&&(i["x-hide-label"]=!0),l.richTextVariant&&(i["x-rich-text-variant"]=l.richTextVariant),l.markdownShowFormatting===!0&&(i["x-markdown-show-formatting"]=!0),l.textareaRows!==void 0&&(i["x-textarea-rows"]=l.textareaRows),l.textareaAutoHeight===!0&&(i["x-textarea-autoheight"]=!0),l.numberLayout&&l.numberLayout!=="default"&&(i["x-number-layout"]=l.numberLayout),l.numberSpinner===!1&&(i["x-number-spinner"]=!1),l.phoneOnlyCountries&&(i["x-phone-only-countries"]=l.phoneOnlyCountries),l.selectMultiselect===!0&&(i["x-select-multiselect"]=!0),l.fileMultiple===!0&&(i["x-file-multiple"]=!0),l.fileHeight!==void 0&&(i["x-file-height"]=l.fileHeight),l.fileAccept&&(i["x-file-accept"]=l.fileAccept),l.fileTheme&&(i["x-file-theme"]=l.fileTheme),l.fileShowIcon===!1&&(i["x-file-show-icon"]=!1),l.fileIcon&&(i["x-file-icon"]=l.fileIcon),l.dateEnableTime===!0&&(i["x-date-enable-time"]=!0),l.dateMin&&(i["x-date-min"]=l.dateMin),l.dateMax&&(i["x-date-max"]=l.dateMax),l.rangeMulti===!0&&(i["x-range-multi"]=!0),l.radioThin===!0&&(i["x-radio-thin"]=!0),l.radioHideRadio===!0&&(i["x-radio-hide-radio"]=!0),l.radioAlign&&(i["x-radio-align"]=l.radioAlign),l.textIcon&&(i["x-text-icon"]=l.textIcon),l.textIconStart&&(i["x-text-icon-start"]=l.textIconStart),r[l.key]=i}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 $R(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 ER(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 l=o.validation;if(typeof a=="string"){if(l?.minLength!==void 0&&a.length<l.minLength){r[o.key]=`${o.label} must be at least ${l.minLength} characters`;continue}if(l?.maxLength!==void 0&&a.length>l.maxLength){r[o.key]=`${o.label} must be at most ${l.maxLength} characters`;continue}if(l?.pattern&&!new RegExp(l.pattern).test(a)){r[o.key]=`${o.label} format is invalid`;continue}}if(typeof a=="number"){if(l?.min!==void 0&&a<l.min){r[o.key]=`${o.label} must be at least ${l.min}`;continue}if(l?.max!==void 0&&a>l.max){r[o.key]=`${o.label} must be at most ${l.max}`;continue}}}return r}function CR(e){return{fields:(0,n.computed)(()=>Mv(e.value))}}const SR=!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 at(e,t){return typeof e=="string"?{...t,label:e}:e??{}}const lt={text(e,t){return new Ge("text",at(e,t))},email(e,t){return new Ge("email",at(e,t))},password(e,t){return new Ge("password",at(e,t))},number(e,t){return new Ge("number",at(e,t))},tel(e,t){return new Ge("tel",at(e,t))},url(e,t){return new Ge("url",at(e,t))},date(e,t){return new Ge("date",at(e,t))},time(e,t){return new Ge("time",at(e,t))},datetime(e,t){return new Ge("datetime",at(e,t))},textarea(e,t){return new Ge("textarea",at(e,t))},richtext(e,t){return new Ge("richtext",at(e,t))},json(e,t){const r=at(e,t);return r.language||(r.language="json"),new Ge("json",r)},checkbox(e,t){return new Ge("checkbox",at(e,t))},toggle(e,t){return new Ge("toggle",at(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",{...at(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",{...at(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",{...at(t,r),options:e})},color(e,t){return new Ge("color",at(e,t))},range(e,t){return new Ge("range",at(e,t))},upload(e,t){return new Ge("upload",at(e,t))},array(e,t,r){if(typeof e=="string"){const a=e,l=t;return new Ge("array",{...r??{},label:a,schema:l})}const o=e;return new Ge("array",{...at(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 Qc=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[l,i]of Object.entries(this._fields)){const s=i._config,c=Lv.getJSONSchemaType(i._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=>gr(m)??m);i._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),i._type==="email"&&(u.format="email"),i._type==="url"&&(u.format="uri"),i._type==="date"&&(u.format="date"),i._type==="time"&&(u.format="time"),i._type==="datetime"&&(u.format="date-time");const d={};i._type!=="text"&&(d.fieldType=i._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),i._class&&(d.class=i._class),i._condition&&(d.condition=i._condition),i._type==="array"&&(s.allowAdd!==void 0&&(d.allowAdd=s.allowAdd),s.allowDelete!==void 0&&(d.allowDelete=s.allowDelete)),i._component&&(d.component=typeof i._component.component=="string"?i._component.component:i._component.component.name||"CustomComponent",i._component.props&&(d.componentProps=i._component.props)),Object.keys(d).length>0&&(u["x-ui"]=d),t[l]=u,s.required===!0&&r.push(l)}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 xR(e,t){if(typeof e=="string"){if(!t)throw new Error("Fields are required when providing a label");return new Qc(t,e)}return new Qc(e)}function TR(e){return e}function NR(e){const t={},r=new Set(e.required||[]);if(e.properties)for(const[a,l]of Object.entries(e.properties))t[a]=AR(a,l,r.has(a),e);const o=new Qc(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 BR(e,t){const r=e.match(/^#\/(\$defs|definitions)\/(.+)$/);if(!r)return;const[,o,a]=r,l=o==="$defs"?t.$defs:t.definitions;return a?l?.[a]:void 0}function DR(e,t){const r=e.anyOf||e.oneOf;if(!r||r.length===0)return e;const o=r.filter(i=>i.type!=="null");if(o.length===1){const i=o[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"]}}}const a=["object","array","string","number","integer","boolean"],l=o.sort((i,s)=>a.indexOf(i.type||"string")-a.indexOf(s.type||"string"))[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"]}}}function AR(e,t,r,o){let a=t;if(t.$ref){const u=BR(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=DR(a,o));const l=a["x-ui"]||{},i=l.fieldType||bp(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),l.placeholder&&(s.placeholder=l.placeholder),l.disabled&&(s.disabled=l.disabled),l.readonly&&(s.readonly=l.readonly),l.autoheight&&(s.autoheight=l.autoheight),l.rows&&(s.rows=l.rows),l.cols&&(s.cols=l.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(i){case"email":c=lt.email(s);break;case"password":c=lt.password(s);break;case"number":c=lt.number(s);break;case"tel":c=lt.tel(s);break;case"url":c=lt.url(s);break;case"date":c=lt.date(s);break;case"time":c=lt.time(s);break;case"datetime":c=lt.datetime(s);break;case"textarea":c=lt.textarea(s);break;case"richtext":c=lt.richtext(s);break;case"json":c=lt.json(s);break;case"checkbox":c=lt.checkbox(s);break;case"toggle":c=lt.toggle(s);break;case"radio":c=lt.radio(a.enum||[],s);break;case"select":c=lt.select(a.enum||[],s);break;case"multiselect":c=lt.multiselect(a.enum||[],s);break;case"array":{const u={...s};l.allowAdd!==void 0&&(u.allowAdd=l.allowAdd),l.allowDelete!==void 0&&(u.allowDelete=l.allowDelete),a.items?.type&&(u.itemType=bp(a.items)),c=lt.array(a.title||e,void 0,u);break}case"display":c=lt.display(l.component||"div",l.componentProps||{});break;case"component":c=lt.component(l.component||"div",l.componentProps||{});break;default:c=lt.text(s)}return l.class&&c.class(l.class),l.condition&&c.if(l.condition),c}function bp(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 MR={class:"multi-step-form"},LR={class:"step-progress"},PR=["onClick"],IR={class:"step-number"},VR={class:"step-label"},OR={key:0},RR={key:0,class:"step-title"},FR={key:1,class:"validation-errors"},zR={class:"step-navigation"},UR=["disabled"],HR={class:"step-counter"},WR=(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:l}=nt(),i=(0,n.useSlots)(),s=(0,n.computed)(()=>Object.keys(i)),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,M=>{d||(c.value={...M||{}})},{deep:!0}),(0,n.watch)(c,M=>{d=!0,a("update:modelValue",M),setTimeout(()=>{d=!1},0)},{deep:!0}),(0,n.watch)(()=>o.currentStep,M=>{M!=null&&(u.value=M)}),(0,n.watch)(u,M=>{a("update:currentStep",M),a("stepChange",M)});function f(M,N){const A=N.split(".");let F=M;for(const V of A)F=F?.[V];return F}function m(M,N){if(!M)return!0;try{const A=Ea(M);if(A.length===0)return!0;let F=!0,V=null;for(let B=0;B<A.length;B++){const j=A[B],Q=f(N,j.field),{op:K,value:re,connector:O}=j;let P=!1;switch(K){case"eq":P=Q===re;break;case"ne":P=Q!==re;break;case"gt":P=re!=null&&Q>re;break;case"ge":P=re!=null&&Q>=re;break;case"lt":P=re!=null&&Q<re;break;case"le":P=re!=null&&Q<=re;break;case"co":P=re!=null&&String(Q).includes(String(re));break;case"sw":P=re!=null&&String(Q).startsWith(String(re));break;case"ew":P=re!=null&&String(Q).endsWith(String(re));break;case"pr":P=Q!=null;break;default:P=!1}B===0?(F=P,V=P):(O==="or"?F=(V??!1)||P:O==="and"&&(F=(V??!1)&&P),V=F)}return F}catch{return!0}}function p(M){return M._condition==null?!0:m(M._condition,c.value)}const h=(0,n.computed)(()=>Object.entries(o.schema).filter(([,M])=>p(M)).map(([M,N])=>({key:M,schema:N}))),y=(0,n.computed)(()=>h.value.findIndex(M=>M.key===u.value)),b=(0,n.computed)(()=>y.value===0),g=(0,n.computed)(()=>y.value===h.value.length-1),v=(0,n.computed)(()=>h.value[y.value]?.schema),_=(0,n.ref)({});function w(M){return M._condition==null?!0:m(M._condition,c.value)}function k(M){const N=M.replace(/\[(\d+)\]/g,".$1");return f(c.value,N)}function S(M){return!!(M==null||typeof M=="string"&&M.trim()===""||Array.isArray(M)&&M.length===0)}function E(){if(!o.validateOnNext||v.value==null)return!0;const M={},N=v.value._fields;for(const[A,F]of Object.entries(N)){if(F._type==="display"||!w(F))continue;const V=k(A),B=F._config;if(B.required===!0&&S(V)){M[A]=`${typeof B.label=="string"?B.label:A} is required`;continue}if(F._validations&&!S(V))for(const j of F._validations){const Q=j(V);if(Q!==!0){M[A]=Q;break}}}return _.value=M,Object.keys(M).length>0?(a("validationError",M),!1):!0}function $(M,N){return N._label!=null?N._label:M.split(/[._-]/).map(A=>A.charAt(0).toUpperCase()+A.slice(1)).join(" ")}function I(M){const N=h.value.findIndex(A=>A.key===M);if(N!==-1){if(N<y.value){u.value=M,_.value={};return}N>y.value&&!E()||(u.value=M)}}function D(){if(E())if(g.value)a("complete");else{const M=y.value+1;u.value=h.value[M].key,_.value={}}}function R(){if(!b.value){const M=y.value-1;u.value=h.value[M].key,_.value={}}}return t({validateCurrentStep:E,stepErrors:_,nextStep:D,prevStep:R,goToStep:I,visibleSteps:h,activeStep:u,currentStepIndex:y,isFirstStep:b,isLastStep:g}),(M,N)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",MR,[(0,n.createElementVNode)("div",LR,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(h.value,(A,F)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:A.key,class:(0,n.normalizeClass)(["step-indicator",{active:A.key===u.value,completed:F<y.value}]),onClick:V=>I(A.key)},[(0,n.createElementVNode)("div",IR,(0,n.toDisplayString)(F+1),1),(0,n.createElementVNode)("div",VR,(0,n.toDisplayString)($(A.key,A.schema)),1)],10,PR))),128))]),v.value!=null?((0,n.openBlock)(),(0,n.createElementBlock)("div",OR,[v.value._label?((0,n.openBlock)(),(0,n.createElementBlock)("h2",RR,(0,n.toDisplayString)(v.value._label),1)):(0,n.createCommentVNode)("",!0),Object.keys(_.value).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",FR,[(0,n.createElementVNode)("ul",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value,(A,F)=>((0,n.openBlock)(),(0,n.createElementBlock)("li",{key:F},(0,n.toDisplayString)(A),1))),128))])])):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(M.$slots,`step:${u.value}`,{schema:v.value,formData:c.value,stepKey:u.value,errors:_.value},()=>[(0,n.createVNode)(ud,{modelValue:c.value,"onUpdate:modelValue":N[0]||(N[0]=A=>c.value=A),schema:v.value,components:e.components,errors:_.value},(0,n.createSlots)({_:2},[(0,n.renderList)(s.value,A=>({name:A,fn:(0,n.withCtx)(F=>[(0,n.renderSlot)(M.$slots,A,(0,n.normalizeProps)((0,n.guardReactiveProps)(F)),void 0,!0)])}))]),1032,["modelValue","schema","components","errors"])],!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",zR,[(0,n.createElementVNode)("button",{type:"button",class:"btn-secondary",disabled:b.value,onClick:R},(0,n.toDisplayString)((0,n.unref)(l)("multiStep.previous")),9,UR),(0,n.createElementVNode)("div",HR,(0,n.toDisplayString)((0,n.unref)(l)("multiStep.step",{current:y.value+1,total:h.value.length})),1),(0,n.createElementVNode)("button",{type:"button",class:"btn-primary",onClick:D},(0,n.toDisplayString)(g.value?(0,n.unref)(l)("multiStep.complete"):(0,n.unref)(l)("multiStep.next")),1)])]))}}),jR=ge(WR,[["__scopeId","data-v-94c284dc"]]);function ln(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vn(e){return ln(e).getComputedStyle(e)}var _p=Math.min,ma=Math.max,si=Math.round;function Pv(e){const t=Vn(e);let r=parseFloat(t.width),o=parseFloat(t.height);const a=e.offsetWidth,l=e.offsetHeight,i=si(r)!==a||si(o)!==l;return i&&(r=a,o=l),{width:r,height:o,fallback:i}}function $r(e){return Vv(e)?(e.nodeName||"").toLowerCase():""}var gl;function Iv(){if(gl)return gl;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(gl=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),gl):navigator.userAgent}function On(e){return e instanceof ln(e).HTMLElement}function _r(e){return e instanceof ln(e).Element}function Vv(e){return e instanceof ln(e).Node}function wp(e){return typeof ShadowRoot>"u"?!1:e instanceof ln(e).ShadowRoot||e instanceof ShadowRoot}function Ui(e){const{overflow:t,overflowX:r,overflowY:o,display:a}=Vn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(a)}function qR(e){return["table","td","th"].includes($r(e))}function eu(e){const t=/firefox/i.test(Iv()),r=Vn(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 l=r.contain;return l!=null&&l.includes(a)}))}function Ov(){return!/^((?!chrome|android).)*safari/i.test(Iv())}function hd(e){return["html","body","#document"].includes($r(e))}function Rv(e){return _r(e)?e:e.contextElement}var Fv={x:1,y:1};function ko(e){const t=Rv(e);if(!On(t))return Fv;const r=t.getBoundingClientRect(),{width:o,height:a,fallback:l}=Pv(t);let i=(l?si(r.width):r.width)/o,s=(l?si(r.height):r.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}function Ma(e,t,r,o){var a,l;t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),s=Rv(e);let c=Fv;t&&(o?_r(o)&&(c=ko(o)):c=ko(e));const u=s?ln(s):window,d=!Ov()&&r;let f=(i.left+(d&&((a=u.visualViewport)==null?void 0:a.offsetLeft)||0))/c.x,m=(i.top+(d&&((l=u.visualViewport)==null?void 0:l.offsetTop)||0))/c.y,p=i.width/c.x,h=i.height/c.y;if(s){const y=ln(s),b=o&&_r(o)?ln(o):o;let g=y.frameElement;for(;g&&o&&b!==y;){const v=ko(g),_=g.getBoundingClientRect(),w=getComputedStyle(g);_.x+=(g.clientLeft+parseFloat(w.paddingLeft))*v.x,_.y+=(g.clientTop+parseFloat(w.paddingTop))*v.y,f*=v.x,m*=v.y,p*=v.x,h*=v.y,f+=_.x,m+=_.y,g=ln(g).frameElement}}return{width:p,height:h,top:m,right:f+p,bottom:m+h,left:f,x:f,y:m}}function wr(e){return((Vv(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hi(e){return _r(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function zv(e){return Ma(wr(e)).left+Hi(e).scrollLeft}function La(e){if($r(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wp(e)&&e.host||wr(e);return wp(t)?t.host:t}function Uv(e){const t=La(e);return hd(t)?t.ownerDocument.body:On(t)&&Ui(t)?t:Uv(t)}function ci(e,t){var r;t===void 0&&(t=[]);const o=Uv(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),l=ln(o);return a?t.concat(l,l.visualViewport||[],Ui(o)?o:[]):t.concat(o,ci(o))}function kp(e,t,r){return t==="viewport"?Ir((function(o,a){const l=ln(o),i=wr(o),s=l.visualViewport;let c=i.clientWidth,u=i.clientHeight,d=0,f=0;if(s){c=s.width,u=s.height;const m=Ov();(m||!m&&a==="fixed")&&(d=s.offsetLeft,f=s.offsetTop)}return{width:c,height:u,x:d,y:f}})(e,r)):_r(t)?Ir((function(o,a){const l=Ma(o,!0,a==="fixed"),i=l.top+o.clientTop,s=l.left+o.clientLeft,c=On(o)?ko(o):{x:1,y:1};return{width:o.clientWidth*c.x,height:o.clientHeight*c.y,x:s*c.x,y:i*c.y}})(t,r)):Ir((function(o){const a=wr(o),l=Hi(o),i=o.ownerDocument.body,s=ma(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),c=ma(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let u=-l.scrollLeft+zv(o);const d=-l.scrollTop;return Vn(i).direction==="rtl"&&(u+=ma(a.clientWidth,i.clientWidth)-s),{width:s,height:c,x:u,y:d}})(wr(e)))}function $p(e){return On(e)&&Vn(e).position!=="fixed"?e.offsetParent:null}function Ep(e){const t=ln(e);let r=$p(e);for(;r&&qR(r)&&Vn(r).position==="static";)r=$p(r);return r&&($r(r)==="html"||$r(r)==="body"&&Vn(r).position==="static"&&!eu(r))?t:r||(function(o){let a=La(o);for(;On(a)&&!hd(a);){if(eu(a))return a;a=La(a)}return null})(e)||t}function GR(e,t,r){const o=On(t),a=wr(t),l=Ma(e,!0,r==="fixed",t);let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&r!=="fixed")if(($r(t)!=="body"||Ui(a))&&(i=Hi(t)),On(t)){const c=Ma(t,!0);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else a&&(s.x=zv(a));return{x:l.left+i.scrollLeft-s.x,y:l.top+i.scrollTop-s.y,width:l.width,height:l.height}}var YR={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:a}=e;const l=[...r==="clippingAncestors"?(function(c,u){const d=u.get(c);if(d)return d;let f=ci(c).filter((y=>_r(y)&&$r(y)!=="body")),m=null;const p=Vn(c).position==="fixed";let h=p?La(c):c;for(;_r(h)&&!hd(h);){const y=Vn(h),b=eu(h);(p?b||m:b||y.position!=="static"||!m||!["absolute","fixed"].includes(m.position))?m=y:f=f.filter((g=>g!==h)),h=La(h)}return u.set(c,f),f})(t,this._c):[].concat(r),o],i=l[0],s=l.reduce(((c,u)=>{const d=kp(t,u,a);return c.top=ma(d.top,c.top),c.right=_p(d.right,c.right),c.bottom=_p(d.bottom,c.bottom),c.left=ma(d.left,c.left),c}),kp(t,i,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=On(r),l=wr(r);if(r===l)return t;let i={scrollLeft:0,scrollTop:0},s={x:1,y:1};const c={x:0,y:0};if((a||!a&&o!=="fixed")&&(($r(r)!=="body"||Ui(l))&&(i=Hi(r)),On(r))){const u=Ma(r);s=ko(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-i.scrollLeft*s.x+c.x,y:t.y*s.y-i.scrollTop*s.y+c.y}},isElement:_r,getDimensions:function(e){return On(e)?Pv(e):e.getBoundingClientRect()},getOffsetParent:Ep,getDocumentElement:wr,getScale:ko,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const a=this.getOffsetParent||Ep,l=this.getDimensions;return{reference:GR(t,await a(r),o),floating:{x:0,y:0,...await l(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Vn(e).direction==="rtl"},XR=(e,t,r)=>{const o=new Map,a={platform:YR,...r},l={...a.platform,_c:o};return u0(e,t,{...a,platform:l})};function Hv(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?Hv(e[r],t[r]):e[r]=t[r])}var yn={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 Pa(e,t){let r=yn.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=yn.themes[r.$extend]||{}:(r=null,o=yn[t]):r=null;while(r);return o}function KR(e){const t=[e];let r=yn.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=yn.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Cp(e){const t=[e];let r=yn.themes[e]||{};do r.$extend?(t.push(r.$extend),r=yn.themes[r.$extend]||{}):r=null;while(r);return t}var Do=!1;if(typeof window<"u"){Do=!1;try{const e=Object.defineProperty({},"passive",{get(){Do=!0}});window.addEventListener("test",null,e)}catch{}}var Wv=!1;typeof window<"u"&&typeof navigator<"u"&&(Wv=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var jv=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Sp={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},xp={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Tp(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function zs(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var hn=[],Nr=null,Np={};function Bp(e){let t=Np[e];return t||(t=Np[e]=[]),t}var tu=function(){};typeof window<"u"&&(tu=window.Element);function Pe(e){return function(t){return Pa(t.theme,e)}}var Us="__floating-vue__popper",qv=()=>(0,n.defineComponent)({name:"VPopper",provide(){return{[Us]:{parentPopper:this}}},inject:{[Us]:{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=>jv.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,tu,Boolean],default:Pe("container")},boundary:{type:[String,tu],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[Us])==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(m0({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(d0({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(p0({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(f0({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(kx({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:a,middlewareData:l})=>{let i;const{centerOffset:s}=l.arrow;return o.startsWith("top")||o.startsWith("bottom")?i=Math.abs(s)>a.reference.width/2:i=Math.abs(s)>a.reference.height/2,{data:{overflow:i}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:a,placement:l,middlewareData:i})=>{var s;if((s=i.autoSize)!=null&&s.skip)return{};let c,u;return l.startsWith("top")||l.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(Sx({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 XR(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),Nr&&this.instantMove&&Nr.instantMove&&Nr!==this.parentPopper){Nr.$_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&&(Nr=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 zs(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ci(this.$_referenceNode),...ci(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),l=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${a}px ${l}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<hn.length;r++)t=hn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}hn.push(this),document.body.classList.add("v-popper--some-open");for(const t of Cp(this.theme))Bp(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 zs(),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,Tp(hn,this),hn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Cp(this.theme)){const o=Bp(r);Tp(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Nr===this&&(Nr=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 zs(),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,Sp,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Sp,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,xp,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],xp,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,Do?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,a){let l=r;o!=null&&(l=typeof o=="function"?o(l):o),l.forEach(i=>{const s=t[i];s&&this.$_registerEventListeners(e,s,a)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:a,handler:l}=r;!e||e===a?o.forEach(i=>i.removeEventListener(a,l)):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(pa>=e.left&&pa<=e.right&&ha>=e.top&&ha<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=pa-fr,o=ha-mr,a=t.left+t.width/2-fr+(t.top+t.height/2)-mr+t.width+t.height,l=fr+r*a,i=mr+o*a;return vl(fr,mr,l,i,t.left,t.top,t.left,t.bottom)||vl(fr,mr,l,i,t.left,t.top,t.right,t.top)||vl(fr,mr,l,i,t.right,t.top,t.right,t.bottom)||vl(fr,mr,l,i,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(Wv){const e=Do?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Dp(t,!0),e),document.addEventListener("touchend",t=>Ap(t,!0),e)}else window.addEventListener("mousedown",e=>Dp(e,!1),!0),window.addEventListener("click",e=>Ap(e,!1),!0);window.addEventListener("resize",ZR)}function Dp(e,t){if(yn.autoHideOnMousedown)Gv(e,t);else for(let r=0;r<hn.length;r++){const o=hn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Ap(e,t){yn.autoHideOnMousedown||Gv(e,t)}function Gv(e,t){const r={};for(let o=hn.length-1;o>=0;o--){const a=hn[o];try{const l=a.containsGlobalTarget=a.mouseDownContains||a.popperNode().contains(e.target);a.pendingHide=!1,requestAnimationFrame(()=>{if(a.pendingHide=!1,!r[a.randomId]&&Mp(a,l,e)){if(a.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let s=a.parentPopper;for(;s;)r[s.randomId]=!0,s=s.parentPopper;return}let i=a.parentPopper;for(;i&&Mp(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function Mp(e,t,r){return r.closeAllPopover||r.closePopover&&t||JR(e,r)&&!t}function JR(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function ZR(){for(let e=0;e<hn.length;e++)hn[e].$_computePosition()}var fr=0,mr=0,pa=0,ha=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{fr=pa,mr=ha,pa=e.clientX,ha=e.clientY},Do?{passive:!0}:void 0);function vl(e,t,r,o,a,l,i,s){const c=((i-a)*(t-l)-(s-l)*(e-a))/((s-l)*(r-e)-(i-a)*(o-t)),u=((r-e)*(t-l)-(o-t)*(e-a))/((s-l)*(r-e)-(i-a)*(o-t));return c>=0&&c<=1&&u>=0&&u<=1}var QR={extends:qv()},Wi=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r};function eF(e,t,r,o,a,l){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 tF=Wi(QR,[["render",eF]]);function nF(){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 Vl;function nu(){nu.init||(nu.init=!0,Vl=nF()!==-1)}var ji={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){nu(),(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",Vl&&this.$el.appendChild(e),e.data="about:blank",Vl||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&&(!Vl&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},rF=(0,n.withScopeId)("data-v-b329ee4c");(0,n.pushScopeId)("data-v-b329ee4c");var oF={class:"resize-observer",tabindex:"-1"};(0,n.popScopeId)();ji.render=rF((e,t,r,o,a,l)=>((0,n.openBlock)(),(0,n.createBlock)("div",oF)));ji.__scopeId="data-v-b329ee4c";ji.__file="src/components/ResizeObserver.vue";var Yv=(e="theme")=>({computed:{themeClass(){return KR(this[e])}}}),aF=(0,n.defineComponent)({name:"VPopperContent",components:{ResizeObserver:ji},mixins:[Yv()],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}}}),lF=["id","aria-hidden","tabindex","data-popper-placement"],iF={ref:"inner",class:"v-popper__inner"},sF=[(0,n.createElementVNode)("div",{class:"v-popper__arrow-outer"},null,-1),(0,n.createElementVNode)("div",{class:"v-popper__arrow-inner"},null,-1)];function cF(e,t,r,o,a,l){const i=(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",iF,[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)(i,{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)},sF,4)],4)],46,lF)}var Xv=Wi(aF,[["render",cF]]),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)}}},ru=function(){};typeof window<"u"&&(ru=window.Element);var uF=(0,n.defineComponent)({name:"VPopperWrapper",components:{Popper:tF,PopperContent:Xv},mixins:[Kv,Yv("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,ru,Boolean],default:void 0},boundary:{type:[String,ru],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 dF(e,t,r,o,a,l){const i=(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:y,onResize:b,classes:g,result:v})=>[(0,n.renderSlot)(e.$slots,"default",{shown:u,show:p,hide:h}),(0,n.createVNode)(i,{ref:"popperContent","popper-id":c,theme:e.finalTheme,shown:u,mounted:d,"skip-transition":f,"auto-hide":m,"handle-resize":y,classes:g,result:v,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 gd=Wi(uF,[["render",dF]]),fF={...gd,name:"VDropdown",vPopperTheme:"dropdown"},mF={...gd,name:"VMenu",vPopperTheme:"menu"},pF={...gd,name:"VTooltip",vPopperTheme:"tooltip"},hF=(0,n.defineComponent)({name:"VTooltipDirective",components:{Popper:qv(),PopperContent:Xv},mixins:[Kv],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Pa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Pa(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}}}),gF=["innerHTML"],vF=["textContent"];function yF(e,t,r,o,a,l){const i=(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:y,classes:b,result:g})=>[(0,n.createVNode)(i,{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:y},{default:(0,n.withCtx)(()=>[e.html?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,innerHTML:e.finalContent},null,8,gF)):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,textContent:(0,n.toDisplayString)(e.finalContent)},null,8,vF))]),_: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 bF=Wi(hF,[["render",yF]]),Jv="v-popper--has-tooltip";function _F(e,t){let r=e.placement;if(!r&&t)for(const o of jv)t[o]&&(r=o);return r||(r=Pa(e.theme||"tooltip","placement")),r}function Zv(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=_F(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}var Hs,Ia,wF=0;function kF(){if(Hs)return;Ia=(0,n.ref)([]),Hs=(0,n.createApp)({name:"VTooltipDirectiveApp",setup(){return{directives:Ia}},render(){return this.directives.map(t=>(0,n.h)(bF,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Hs.mount(e)}function $F(e,t,r){kF();const o=(0,n.ref)(Zv(e,t,r)),a=(0,n.ref)(!1),l={id:wF++,options:o,shown:a};return Ia.value.push(l),e.classList&&e.classList.add(Jv),e.$_popper={options:o,item:l,show(){a.value=!0},hide(){a.value=!1}}}function Qv(e){if(e.$_popper){const t=Ia.value.indexOf(e.$_popper.item);t!==-1&&Ia.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Jv)}function Lp(e,{value:t,modifiers:r}){const o=Zv(e,t,r);if(!o.content||Pa(o.theme||"tooltip","disabled"))Qv(e);else{let a;e.$_popper?(a=e.$_popper,a.options.value=o):a=$F(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?a.show():a.hide())}}var EF={beforeMount:Lp,updated:Lp,beforeUnmount(e){Qv(e)}};function Pp(e){e.addEventListener("mousedown",ui),e.addEventListener("click",ui),e.addEventListener("touchstart",ey,Do?{passive:!0}:!1)}function Ip(e){e.removeEventListener("mousedown",ui),e.removeEventListener("click",ui),e.removeEventListener("touchstart",ey),e.removeEventListener("touchend",ty),e.removeEventListener("touchcancel",ny)}function ui(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function ey(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener("touchend",ty),t.addEventListener("touchcancel",ny)}}function ty(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 ny(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var CF={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&Pp(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?Pp(e):Ip(e))},beforeUnmount(e){Ip(e)}};function SF(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Hv(yn,t),e.directive("tooltip",EF),e.directive("close-popper",CF),e.component("VTooltip",pF),e.component("VDropdown",fF),e.component("VMenu",mF))}var xF={version:"5.2.2",install:SF,options:yn},TF=["src"],NF=(0,n.defineComponent)({__name:"LightboxImage",props:{src:{}},setup(e){const t=e,{imageSrc:r}=id(()=>t.src);return(o,a)=>((0,n.openBlock)(),(0,n.createElementBlock)("img",{draggable:!1,src:(0,n.unref)(r),alt:"Preview",class:"lightbox-image"},null,8,TF))}}),BF=NF,DF={key:0,class:"center"},AF={key:3},MF={class:"bgl-lightbox-item"},LF={key:2,class:"lightbox-pdf"},PF=["src","title"],IF={key:3,class:"lightbox-file"},VF={class:"file-info txt-white flex m_block align-items-start gap-025"},OF={class:"txt-start"},RF={class:"mx-0 light"},FF={class:"semi word-break-all"},zF={class:"mx-0"},UF={class:"semi"},HF=(0,n.defineComponent)({__name:"Lightbox",setup(e,{expose:t}){const r=(0,n.ref)(!1),o=(0,n.ref)([]),a=(0,n.ref)(0),l=(0,n.computed)(()=>o.value[a.value]),i=(0,n.ref)(1),s=(0,n.computed)(()=>i.value===1),c=(0,n.computed)(()=>({allowTouchMove:i.value===1,touchRatio:i.value===1?1:0,simulateTouch:i.value===1}));function u(m,p){r.value=!0,o.value=p||[m],a.value=o.value.findIndex(h=>{const y=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 y||b}),a.value===-1&&(a.value=0),i.value=1}function d(){r.value=!1}Oi(d,r);function f(m){a.value=m,i.value=1}return(0,n.watch)(()=>r.value,m=>{m?document.body.style.overflow="hidden":document.body.style.overflow=""}),(0,n.watch)(()=>a.value,()=>{i.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)(oe),{flat:"",class:"color-white",icon:"close",onClick:d}),l.value?.enableZoom&&l.value?.type==="image"?((0,n.openBlock)(),(0,n.createElementBlock)("div",DF,[(0,n.createVNode)((0,n.unref)(oe),{flat:"",class:"color-white",icon:"remove",disabled:i.value===1,onClick:p[0]||(p[0]=h=>i.value--)},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(oe),{flat:"",class:"color-white",icon:"zoom_in",disabled:i.value===1,onClick:p[1]||(p[1]=h=>i.value=1)},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(oe),{flat:"",class:"color-white",icon:"add",disabled:i.value===3,onClick:p[2]||(p[2]=h=>i.value++)},null,8,["disabled"])])):(0,n.createCommentVNode)("",!0),l.value?.openFile&&l.value?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{key:1,class:"color-white",round:"",thin:"",flat:"",iconEnd:"arrow_outward",value:"$t:lightbox.openFile",href:l.value?.src,target:"_blank"},null,8,["href"])):(0,n.createCommentVNode)("",!0),l.value?.download&&l.value?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{key:2,class:"color-white",round:"",thin:"",flat:"",icon:"download",value:"Download File",onClick:p[3]||(p[3]=h=>(0,n.unref)(ld)(l.value?.src))})):(0,n.createCommentVNode)("",!0),!l.value?.openFile&&!l.value?.download?((0,n.openBlock)(),(0,n.createElementBlock)("div",AF)):(0,n.createCommentVNode)("",!0)]),o.value&&o.value.length>0?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(lv),{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:i.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",MF,[h.type==="image"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(iv),{key:0,zoom:i.value,"onUpdate:zoom":p[4]||(p[4]=y=>i.value=y),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)(BF,{src:h?.src},null,8,["src"])]),_:2},1032,["zoom","disabled"])):h?.type==="video"&&h?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)($u),{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",LF,[(0,n.createElementVNode)("embed",{src:(0,n.unref)(ad)(h?.src),type:"application/pdf",title:h?.name},null,8,PF)])):((0,n.openBlock)(),(0,n.createElementBlock)("div",IF,[(0,n.createElementVNode)("div",VF,[(0,n.createVNode)((0,n.unref)(be),{class:"m-0 m_none",icon:"draft",size:10,weight:"12"}),(0,n.createVNode)((0,n.unref)(be),{class:"m-0 none m_block m_-mb-1",icon:"draft",size:4,weight:"2"}),(0,n.createElementVNode)("div",OF,[(0,n.createElementVNode)("p",RF,[p[9]||(p[9]=(0,n.createTextVNode)(" File: ",-1)),(0,n.createElementVNode)("span",FF,(0,n.toDisplayString)(h?.name),1)]),(0,n.createElementVNode)("p",zF,[p[10]||(p[10]=(0,n.createTextVNode)(" Type: ",-1)),(0,n.createElementVNode)("span",UF,(0,n.toDisplayString)(h?.type),1)]),(0,n.createVNode)((0,n.unref)(oe),{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)(oe),{icon:"arrow_back",color:"black",onClick:h},null,8,["onClick"])]),"next-button":(0,n.withCtx)(({next:h})=>[(0,n.createVNode)((0,n.unref)(oe),{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,y)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:y},[h.type==="image"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(wa),{key:0,class:(0,n.normalizeClass)(["thumbnail",{active:a.value===y}]),src:h.src,alt:"",onClick:(0,n.withModifiers)(b=>f(y),["stop"])},null,8,["src","class","onClick"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:1,class:(0,n.normalizeClass)(["thumbnail thumbnail-icon",{active:a.value===y}]),icon:"description",onClick:(0,n.withModifiers)(b=>f(y),["stop"])},null,8,["class","onClick"]))],64))),128))])):(0,n.createCommentVNode)("",!0)],32)):(0,n.createCommentVNode)("",!0)]),_:1}))}}),WF=HF,ra={},ro=e=>{},jF={mounted(e,t){Vp(ou(t,e)),ro=r=>{Op(r,e,t)},e.addEventListener("click",ro)},updated(e,t){Vp(ou(t,e)),e.removeEventListener("click",ro),ro=r=>{Op(r,e,t)},e.addEventListener("click",ro)},unmounted(e){e.removeEventListener("click",ro)},getSSRProps(){return{}}};function Vp(e){e.group&&(ra[e.group]||(ra[e.group]=[]),ra[e.group].findIndex(t=>t.src===e.src)===-1&&ra[e.group].push(e))}function Op(e,t,r){e.stopPropagation();const o=ou(r,t),a=KF();if(!a||!a.open)return;const l=a.open;l(o,o&&o.group?ra[o.group]:void 0)}function ou(e,t){let{group:r,src:o,type:a,name:l,thumbnail:i,enableZoom:s,openFile:c,download:u,pathKey:d}=e.value||{};return o=pn(o||d)||e.value||t.getAttribute("src")||"",a=a||XF(o),l=l||YF(o)||t.getAttribute("alt")||"",{src:o,type:a,name:l,thumbnail:i,group:r,enableZoom:s,openFile:c,download:u}}var qF=/youtube\.com|youtu\.be/,GF=/vimeo\.com/;function YF(e){return!e||typeof e!="string"?"":(e.split("/").pop()||"").replace(/\.[^/.]+$/,"")}function XF(e){if(typeof e!="string"||!e)return"unknown";if(e.startsWith("blob:")||/^data:image\//i.test(e))return"image";if(/^data:video\//i.test(e))return"video";const t=(e.split(".").pop()||"").toLowerCase(),r=e.split("?")[0].split(".").pop()?.toLowerCase()||"";return Gl.test(t)||Gl.test(r)?"image":B0.test(t)||qF.test(e)||GF.test(e)?"video":["pdf"].includes(t)?"pdf":t??"unknown"}var Ws;function KF(){if(!(typeof document>"u")){if(!Ws){const e=document.createElement("div");document.body.prepend(e),Ws=(0,n.createApp)(WF).mount(e)}return Ws}}var JF={install(e){e.directive("lightbox",jF)}},ZF=JF,QF={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)}},ry=th({EventBus:()=>Yi,POSITION:()=>Oa,TYPE:()=>Ot,createToastInterface:()=>Ra,default:()=>_y,globalEventBus:()=>vd,provideToast:()=>Fz,toastInjectionKey:()=>Xi,useToast:()=>by},1),ez=Object.defineProperty,Rp=Object.getOwnPropertySymbols,tz=Object.prototype.hasOwnProperty,nz=Object.prototype.propertyIsEnumerable,Fp=(e,t,r)=>t in e?ez(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oy=(e,t)=>{for(var r in t||(t={}))tz.call(t,r)&&Fp(e,r,t[r]);if(Rp)for(var r of Rp(t))nz.call(t,r)&&Fp(e,r,t[r]);return e},qi=e=>typeof e=="function",Gi=e=>typeof e=="string",ay=e=>Gi(e)&&e.trim().length>0,rz=e=>typeof e=="number",Pr=e=>typeof e>"u",Va=e=>typeof e=="object"&&e!==null,oz=e=>Rn(e,"tag")&&ay(e.tag),ly=e=>window.TouchEvent&&e instanceof TouchEvent,iy=e=>Rn(e,"component")&&sy(e.component),az=e=>qi(e)||Va(e),sy=e=>!Pr(e)&&(Gi(e)||az(e)||iy(e)),zp=e=>Va(e)&&["height","width","right","left","top","bottom"].every(t=>rz(e[t])),Rn=(e,t)=>(Va(e)||qi(e))&&t in e,lz=(e=>()=>e++)(0);function js(e){return ly(e)?e.targetTouches[0].clientX:e.clientX}function Up(e){return ly(e)?e.targetTouches[0].clientY:e.clientY}var iz=e=>{Pr(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},el=e=>iy(e)?el(e.component):oz(e)?(0,n.defineComponent)({render(){return e}}):typeof e=="string"?e:(0,n.toRaw)((0,n.unref)(e)),sz=e=>{if(typeof e=="string")return e;const t=Rn(e,"props")&&Va(e.props)?e.props:{},r=Rn(e,"listeners")&&Va(e.listeners)?e.listeners:{};return{component:el(e),props:t,listeners:r}},cz=()=>typeof window<"u",Yi=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))}},uz=e=>["on","off","emit"].every(t=>Rn(e,t)&&qi(e[t])),Ot;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(Ot||(Ot={}));var Oa;(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"})(Oa||(Oa={}));var Xt;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(Xt||(Xt={}));var Qn="Vue-Toastification",fn={type:{type:String,default:Ot.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Hp={type:fn.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},yl={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:fn.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},qs={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},Wp={transition:{type:[Object,String],default:`${Qn}__bounce`}},rr={CORE_TOAST:{position:{type:String,default:Oa.TOP_RIGHT},draggable:fn.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:fn.trueBoolean,pauseOnHover:fn.trueBoolean,closeOnClick:fn.trueBoolean,timeout:qs.timeout,hideProgressBar:qs.hideProgressBar,toastClassName:fn.classNames,bodyClassName:fn.classNames,icon:Hp.customIcon,closeButton:yl.component,closeButtonClassName:yl.classNames,showCloseButtonOnHover:yl.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new Yi}},TOAST:{id:{type:[String,Number],required:!0,default:0},type:fn.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:fn.trueBoolean,maxToasts:{type:Number,default:20},transition:Wp.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:fn.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},PROGRESS_BAR:qs,ICON:Hp,TRANSITION:Wp,CLOSE_BUTTON:yl},cy=(0,n.defineComponent)({name:"VtProgressBar",props:rr.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?`${Qn}__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 dz(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{style:(0,n.normalizeStyle)(e.style),class:(0,n.normalizeClass)(e.cpClass)},null,6)}cy.render=dz;var fz=cy,uy=(0,n.defineComponent)({name:"VtCloseButton",props:rr.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?el(this.component):"button"},classes(){const e=[`${Qn}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),mz=(0,n.createTextVNode)(" × ");function pz(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)(()=>[mz]),_:1},16,["aria-label","class"])}uy.render=pz;var hz=uy,dy={},gz={"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"},vz=[(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 yz(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",gz,vz)}dy.render=yz;var bz=dy,fy={},_z={"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"},wz=[(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 kz(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",_z,wz)}fy.render=kz;var jp=fy,my={},$z={"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"},Ez=[(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 Cz(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",$z,Ez)}my.render=Cz;var Sz=my,py={},xz={"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"},Tz=[(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 Nz(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",xz,Tz)}py.render=Nz;var Bz=py,hy=(0,n.defineComponent)({name:"VtIcon",props:rr.ICON,computed:{customIconChildren(){return Rn(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return Gi(this.customIcon)?this.trimValue(this.customIcon):Rn(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return Rn(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:sy(this.customIcon)?el(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[Ot.DEFAULT]:jp,[Ot.INFO]:jp,[Ot.SUCCESS]:bz,[Ot.ERROR]:Bz,[Ot.WARNING]:Sz}[this.type]},iconClasses(){const e=[`${Qn}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return ay(e)?e.trim():t}}});function Dz(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"])}hy.render=Dz;var gy=(0,n.defineComponent)({name:"VtToast",components:{ProgressBar:fz,CloseButton:hz,Icon:hy},inheritAttrs:!1,props:Object.assign({},rr.CORE_TOAST,rr.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${Qn}__toast`,`${Qn}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${Qn}__toast--rtl`),e},bodyClasses(){return[`${Qn}__toast-${Gi(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 zp(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:Rn,getVueComponentFromObj:el,closeToast(){this.eventBus.emit(Xt.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:js(e),y:Up(e)},this.dragStart=js(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:js(e),y:Up(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,zp(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}))}}}),Az=["role"];function Mz(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]=(...l)=>e.clickHandler&&e.clickHandler(...l)),onMouseenter:t[1]||(t[1]=(...l)=>e.hoverPause&&e.hoverPause(...l)),onMouseleave:t[2]||(t[2]=(...l)=>e.hoverPlay&&e.hoverPlay(...l))},[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,Az),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)}gy.render=Mz;var Lz=gy,vy=(0,n.defineComponent)({name:"VtTransition",props:rr.TRANSITION,emits:["leave"],methods:{hasProp:Rn,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 Pz(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"])}vy.render=Pz;var yy=(0,n.defineComponent)({name:"VueToastification",devtools:{hide:!0},components:{Toast:Lz,VtTransition:vy},props:Object.assign({},rr.CORE_TOAST,rr.CONTAINER,rr.TRANSITION),data(){return{count:0,positions:Object.values(Oa),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(Xt.ADD,this.addToast),e.on(Xt.CLEAR,this.clearToasts),e.on(Xt.DISMISS,this.dismissToast),e.on(Xt.UPDATE,this.updateToast),e.on(Xt.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){qi(e)&&(e=await e()),iz(this.$el),e.appendChild(this.$el)},setToast(e){Pr(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=sz(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];!Pr(t)&&!Pr(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){Pr(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[`${Qn}__container`,e].concat(this.defaults.containerClassName)}}});function Iz(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),l=>((0,n.openBlock)(),(0,n.createBlock)(r,(0,n.mergeProps)({key:l.id},l),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}yy.render=Iz;var Vz=yy,qp=(e={},t=!0)=>{const r=e.eventBus=e.eventBus||new Yi;t&&(0,n.nextTick)(()=>{const l=(0,n.createApp)(Vz,oy({},e)),i=l.mount(document.createElement("div")),s=e.onMounted;if(Pr(s)||s(i,l),e.shareAppContext){const c=e.shareAppContext;c===!0||(l._context.components=c._context.components,l._context.directives=c._context.directives,l._context.mixins=c._context.mixins,l._context.provides=c._context.provides,l.config.globalProperties=c.config.globalProperties)}});const o=(l,i)=>{const s=Object.assign({},{id:lz(),type:Ot.DEFAULT},i,{content:l});return r.emit(Xt.ADD,s),s.id};o.clear=()=>r.emit(Xt.CLEAR,void 0),o.updateDefaults=l=>{r.emit(Xt.UPDATE_DEFAULTS,l)},o.dismiss=l=>{r.emit(Xt.DISMISS,l)};function a(l,{content:i,options:s},c=!1){const u=Object.assign({},s,{content:i});r.emit(Xt.UPDATE,{id:l,options:u,create:c})}return o.update=a,o.success=(l,i)=>o(l,Object.assign({},i,{type:Ot.SUCCESS})),o.info=(l,i)=>o(l,Object.assign({},i,{type:Ot.INFO})),o.error=(l,i)=>o(l,Object.assign({},i,{type:Ot.ERROR})),o.warning=(l,i)=>o(l,Object.assign({},i,{type:Ot.WARNING})),o},Oz=()=>{const e=()=>{};return new Proxy(e,{get(){return e}})};function Ra(e){return cz()?uz(e)?qp({eventBus:e},!1):qp(e,!0):Oz()}var Xi=Symbol("VueToastification"),vd=new Yi,Rz=(e,t)=>{t?.shareAppContext===!0&&(t.shareAppContext=e);const r=Ra(oy({eventBus:vd},t));e.provide(Xi,r)},Fz=e=>{const t=Ra(e);(0,n.getCurrentInstance)()&&(0,n.provide)(Xi,t)},by=e=>{if(e)return Ra(e);const t=(0,n.getCurrentInstance)()?(0,n.inject)(Xi,void 0):void 0;return t||Ra(vd)},_y=Rz,zz={key:0,class:"custom-toast__icon"},Uz={class:"custom-toast__content"},Hz=(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",zz,[r.value==="success"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:0,icon:"check_circle"})):(0,n.createCommentVNode)("",!0),r.value==="error"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:1,icon:"dangerous"})):(0,n.createCommentVNode)("",!0),r.value==="warning"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:2,icon:"report"})):(0,n.createCommentVNode)("",!0),r.value==="info"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:3,icon:"info"})):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",Uz,(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]=(...l)=>e.closeToast&&e.closeToast(...l))},[(0,n.createVNode)((0,n.unref)(be),{icon:"close"})])):(0,n.createCommentVNode)("",!0)],2))}}),Ko=Hz,Wz=_y||ry,{POSITION:jz}=ry,oo=by;const wy=Symbol("toast");var di=null;function qz(){const e=(0,n.inject)(wy,null);if(!e){if(di)return di;throw new Error("Toast API not provided. Make sure ToastPlugin is installed via app.use(ToastPlugin)")}return e}function Gz(){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 ky={install:(e,t={})=>{const r=Gz(),o={position:jz.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(Wz,o);function a(){const i=typeof document<"u"?document.getElementById("bgl-toast-container"):null;if(i){try{i.hidePopover()}catch{}try{i.showPopover()}catch{}}}const l={success:(i,s)=>(a(),oo()({component:Ko,props:{message:i,type:"success"}},s)),error:(i,s)=>(a(),oo()({component:Ko,props:{message:i,type:"error"}},s)),info:(i,s)=>(a(),oo()({component:Ko,props:{message:i,type:"info"}},s)),warning:(i,s)=>(a(),oo()({component:Ko,props:{message:i,type:"warning"}},s)),show:(i,s)=>(a(),oo()({component:Ko,props:{message:i,type:"info"}},s)),clear:()=>{oo().clear()}};di||(di=l),e.provide(wy,l)}};var Ki=class extends Event{oldState;newState;constructor(e,{oldState:t="",newState:r="",...o}={}){super(e,o),this.oldState=String(t||""),this.newState=String(r||"")}},Gp=new WeakMap;function $y(e,t,r){Gp.set(e,setTimeout(()=>{Gp.has(e)&&e.dispatchEvent(new Ki("toggle",{cancelable:!1,oldState:t,newState:r}))},0))}var yd=globalThis.ShadowRoot||function(){},Yz=globalThis.HTMLDialogElement||function(){},Ol=new WeakMap,er=new WeakMap,on=new WeakMap,Ao=new WeakMap;function fi(e){return Ao.get(e)||"hidden"}var mi=new WeakMap;function Fa(e){return[...e].pop()}function Xz(e){const t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;const r=fi(t);e.popoverTargetAction==="show"&&r==="showing"||e.popoverTargetAction==="hide"&&r==="hidden"||(r==="showing"?Lo(t,!0,!0):Vr(t,!1)&&(mi.set(t,e),au(t)))}function Vr(e,t){return!(e.popover!=="auto"&&e.popover!=="manual"&&e.popover!=="hint"||!e.isConnected||t&&fi(e)!=="showing"||!t&&fi(e)!=="hidden"||e instanceof Yz&&e.hasAttribute("open")||document.fullscreenElement===e)}function Yp(e){if(!e)return 0;const t=er.get(document)||new Set,r=on.get(document)||new Set;return r.has(e)?[...r].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function Kz(e){const t=Ey(e),r=Jz(e);return Yp(t)>Yp(r)?t:r}function za(e){let t;const r=on.get(e)||new Set,o=er.get(e)||new Set,a=r.size>0?r:o.size>0?o:null;return a?(t=Fa(a),t.isConnected?t:(a.delete(t),za(e))):null}function Xp(e){for(const t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function Mo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.parentNode?Mo(e.parentNode):e}function Ey(e){for(;e;){if(e instanceof HTMLElement&&e.popover==="auto"&&Ao.get(e)==="showing")return e;if(e=e instanceof Element&&e.assignedSlot||e.parentElement||Mo(e),e instanceof yd&&(e=e.host),e instanceof Document)return}}function Jz(e){for(;e;){const t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if(e=e.parentElement||Mo(e),e instanceof yd&&(e=e.host),e instanceof Document)return}}function Kp(e,t){const r=new Map;let o=0;for(const i of t||[])r.set(i,o),o+=1;r.set(e,o),o+=1;let a=null;function l(i){if(!i)return;let s=!1,c=null,u=null;for(;!s;){if(c=Ey(i)||null,c===null||!r.has(c))return;(e.popover==="hint"||c.popover==="auto")&&(s=!0),s||(i=c.parentElement)}u=r.get(c),(a===null||r.get(a)<u)&&(a=c)}return l(e.parentElement||Mo(e)),a}function Zz(e){return e.hidden||e instanceof yd||(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 Qz(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 l=t.querySelectorAll("slot");for(const i of l){const s=i.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(Zz(a))return a;a=o.nextNode()}}function eU(e){var t;(t=Qz(e))==null||t.focus()}var pi=new WeakMap;function au(e){if(!Vr(e,!1))return;const t=e.ownerDocument;if(!e.dispatchEvent(new Ki("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!Vr(e,!1))return;let r=!1;const o=e.popover;let a=null;const l=Kp(e,er.get(t)||new Set),i=Kp(e,on.get(t)||new Set);if(o==="auto"&&(lu(on.get(t)||new Set,r,!0),Or(l||t,r,!0),a="auto"),o==="hint"&&(i?(Or(i,r,!0),a="hint"):(lu(on.get(t)||new Set,r,!0),l?(Or(l,r,!0),a="auto"):a="hint")),o==="auto"||o==="hint"){if(o!==e.popover||!Vr(e,!1))return;za(t)||(r=!0),a==="auto"?(er.has(t)||er.set(t,new Set),er.get(t).add(e)):a==="hint"&&(on.has(t)||on.set(t,new Set),on.get(t).add(e))}pi.delete(e);const s=t.activeElement;e.classList.add(":popover-open"),Ao.set(e,"showing"),Ol.has(t)||Ol.set(t,new Set),Ol.get(t).add(e),Cy(mi.get(e),!0),eU(e),r&&s&&e.popover==="auto"&&pi.set(e,s),$y(e,"closed","open")}function Lo(e,t=!1,r=!1){var o,a;if(!Vr(e,!0))return;const l=e.ownerDocument;if(["auto","hint"].includes(e.popover)&&(Or(e,t,r),!Vr(e,!0)))return;const i=er.get(l)||new Set,s=i.has(e)&&Fa(i)===e;if(Cy(mi.get(e),!1),mi.delete(e),r&&(e.dispatchEvent(new Ki("beforetoggle",{oldState:"open",newState:"closed"})),s&&Fa(i)!==e&&Or(e,t,r),!Vr(e,!0)))return;(o=Ol.get(l))==null||o.delete(e),i.delete(e),(a=on.get(l))==null||a.delete(e),e.classList.remove(":popover-open"),Ao.set(e,"hidden"),r&&$y(e,"open","closed");const c=pi.get(e);c&&(pi.delete(e),t&&c.focus())}function tU(e,t=!1,r=!1){let o=za(e);for(;o;)Lo(o,t,r),o=za(e)}function lu(e,t=!1,r=!1){let o=Xp(e);for(;o;)Lo(o,t,r),o=Xp(e)}function Jp(e,t,r,o){let a=!1,l=!1;for(;a||!l;){l=!0;let i=null,s=!1;for(const c of t)if(c===e)s=!0;else if(s){i=c;break}if(!i)return;for(;fi(i)==="showing"&&t.size;)Lo(Fa(t),r,o);t.has(e)&&Fa(t)!==e&&(a=!0),a&&(o=!1)}}function Or(e,t,r){var o,a;const l=e.ownerDocument||e;if(e instanceof Document)return tU(l,t,r);if((o=on.get(l))!=null&&o.has(e)){Jp(e,on.get(l),t,r);return}lu(on.get(l)||new Set,t,r),(a=er.get(l))!=null&&a.has(e)&&Jp(e,er.get(l),t,r)}var Gs=new WeakMap;function Zp(e){if(!e.isTrusted)return;const t=e.composedPath()[0];if(!t)return;const r=t.ownerDocument;if(!za(r))return;const o=Kz(t);if(o&&e.type==="pointerdown")Gs.set(r,o);else if(e.type==="pointerup"){const a=Gs.get(r)===o;Gs.delete(r),a&&Or(o||r,!1,!0)}}var Ys=new WeakMap;function Cy(e,t=!1){if(!e)return;Ys.has(e)||Ys.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=Ys.get(e);o?e.setAttribute("aria-expanded",o):e.removeAttribute("aria-expanded")}}var Qp=globalThis.ShadowRoot||function(){};function nU(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype=="object"&&"popover"in HTMLElement.prototype}function Br(e,t,r){const o=e[t];Object.defineProperty(e,t,{value(a){return o.call(this,r(a))}})}var rU=/(^|[^\\]):popover-open\b/g;function oU(){return typeof globalThis.CSSLayerBlockRule=="function"}function aU(){const e=oU();return`
|
|
433
|
+
`,e.appendChild(i))):i=e,i.addEventListener("mouseenter",()=>{i!==e&&(i.style.background="rgba(0, 0, 0, 0.2)")}),i.addEventListener("mouseleave",()=>{i!==e&&!o&&(i.style.background="rgba(0, 0, 0, 0.1)")}),i.style.cursor="ns-resize",i.style.userSelect="none";function s(m){return{clientY:m,deltaY:m-a,initialHeight:l}}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=l+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),i!==e&&(i.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="",i!==e&&(i.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,l=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))}i.addEventListener("mousedown",f),i.addEventListener("touchstart",f,{passive:!1}),e[na]=()=>{i!==e&&e.removeChild(i),i.removeEventListener("mousedown",f),i.removeEventListener("touchstart",f),i.removeEventListener("mouseenter",f),i.removeEventListener("mouseleave",f),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",d),document.removeEventListener("touchmove",u),document.removeEventListener("touchend",d),document.removeEventListener("touchcancel",d)}}const _R={mounted(e,t){yp(e,t)},unmounted(e){const t=e[na];typeof t=="function"&&(t(),delete e[na])},updated(e,t){if(t.value!==t.oldValue){const r=e[na];typeof r=="function"&&(r(),delete e[na]),yp(e,t)}},getSSRProps(){return{}}};function md(e){return e==="richtext"?3:e==="textarea"||e==="json"||e==="radio"||e==="file"||e==="signature"?2:1}function pd(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 Mv(e){if(!e?.properties)return[];const t=new Set(e.required??[]),r=[];for(const[o,a]of Object.entries(e.properties)){const l=a["x-field-type"]??pd(a),i={};a.minLength!==void 0&&(i.minLength=a.minLength),a.maxLength!==void 0&&(i.maxLength=a.maxLength),a.minimum!==void 0&&(i.min=a.minimum),a.maximum!==void 0&&(i.max=a.maximum),a.multipleOf!==void 0&&(i.step=a.multipleOf),a.pattern!==void 0&&(i.pattern=a.pattern),a["x-options"]?i.options=a["x-options"]:a.enum&&(i.options=a.enum.map(c=>({label:String(c),value:String(c)})));const s={id:crypto.randomUUID(),key:o,type:l,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"]??md(l),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(i).length>0?i:void 0,defaultValue:a.default,content:a["x-field-type"]==="heading"?a.title:void 0};r.push(s)}return r}function wR(e,t){const r={},o=[];for(const l of e){const i={};if(l.type==="heading"||l.type==="divider")i.type="string",i.title=l.content||l.label,i["x-field-type"]=l.type;else{switch(l.type){case"text":case"textarea":case"richtext":case"markdown":case"email":case"phone":case"url":case"date":case"file":case"signature":case"color":i.type="string";break;case"number":case"range":i.type="number";break;case"checkbox":case"toggle":i.type="boolean";break;case"json":i.type="object";break;case"select":case"radio":i.type="string",l.validation?.options&&(i.enum=l.validation.options.map(s=>s.value));break}l.type==="email"&&(i.format="email"),l.type==="phone"&&(i.format="tel"),l.type==="url"&&(i.format="uri"),l.type==="date"&&(i.format=l.dateEnableTime?"date-time":"date"),l.type==="color"&&(i.format="color"),i.title=l.label,l.description&&(i.description=l.description),l.defaultValue!==void 0&&(i.default=l.defaultValue),l.type!=="text"&&(i["x-field-type"]=l.type),l.validation?.minLength!==void 0&&(i.minLength=l.validation.minLength),l.validation?.maxLength!==void 0&&(i.maxLength=l.validation.maxLength),l.validation?.min!==void 0&&(i.minimum=l.validation.min),l.validation?.max!==void 0&&(i.maximum=l.validation.max),l.validation?.step!==void 0&&(i.multipleOf=l.validation.step),l.validation?.pattern!==void 0&&(i.pattern=l.validation.pattern),l.required&&o.push(l.key)}l.placeholder&&(i["x-placeholder"]=l.placeholder),l.validation?.options&&(i["x-options"]=l.validation.options),l.colSpan!==void 0&&l.colSpan!==12&&(i["x-col-span"]=l.colSpan),l.colStart!==void 0&&(i["x-col-start"]=l.colStart),l.rowSpan!==void 0&&l.rowSpan!==md(l.type)&&(i["x-row-span"]=l.rowSpan),l.rowStart!==void 0&&(i["x-row-start"]=l.rowStart),l.mColSpan!==void 0&&l.mColSpan!==12&&(i["x-m-col-span"]=l.mColSpan),l.mColStart!==void 0&&(i["x-m-col-start"]=l.mColStart),l.mRowSpan!==void 0&&(i["x-m-row-span"]=l.mRowSpan),l.mRowStart!==void 0&&(i["x-m-row-start"]=l.mRowStart),l.hideLabel===!0&&(i["x-hide-label"]=!0),l.richTextVariant&&(i["x-rich-text-variant"]=l.richTextVariant),l.markdownShowFormatting===!0&&(i["x-markdown-show-formatting"]=!0),l.textareaRows!==void 0&&(i["x-textarea-rows"]=l.textareaRows),l.textareaAutoHeight===!0&&(i["x-textarea-autoheight"]=!0),l.numberLayout&&l.numberLayout!=="default"&&(i["x-number-layout"]=l.numberLayout),l.numberSpinner===!1&&(i["x-number-spinner"]=!1),l.phoneOnlyCountries&&(i["x-phone-only-countries"]=l.phoneOnlyCountries),l.selectMultiselect===!0&&(i["x-select-multiselect"]=!0),l.fileMultiple===!0&&(i["x-file-multiple"]=!0),l.fileHeight!==void 0&&(i["x-file-height"]=l.fileHeight),l.fileAccept&&(i["x-file-accept"]=l.fileAccept),l.fileTheme&&(i["x-file-theme"]=l.fileTheme),l.fileShowIcon===!1&&(i["x-file-show-icon"]=!1),l.fileIcon&&(i["x-file-icon"]=l.fileIcon),l.dateEnableTime===!0&&(i["x-date-enable-time"]=!0),l.dateMin&&(i["x-date-min"]=l.dateMin),l.dateMax&&(i["x-date-max"]=l.dateMax),l.rangeMulti===!0&&(i["x-range-multi"]=!0),l.radioThin===!0&&(i["x-radio-thin"]=!0),l.radioHideRadio===!0&&(i["x-radio-hide-radio"]=!0),l.radioAlign&&(i["x-radio-align"]=l.radioAlign),l.textIcon&&(i["x-text-icon"]=l.textIcon),l.textIconStart&&(i["x-text-icon-start"]=l.textIconStart),r[l.key]=i}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 kR(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 $R(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 l=o.validation;if(typeof a=="string"){if(l?.minLength!==void 0&&a.length<l.minLength){r[o.key]=`${o.label} must be at least ${l.minLength} characters`;continue}if(l?.maxLength!==void 0&&a.length>l.maxLength){r[o.key]=`${o.label} must be at most ${l.maxLength} characters`;continue}if(l?.pattern&&!new RegExp(l.pattern).test(a)){r[o.key]=`${o.label} format is invalid`;continue}}if(typeof a=="number"){if(l?.min!==void 0&&a<l.min){r[o.key]=`${o.label} must be at least ${l.min}`;continue}if(l?.max!==void 0&&a>l.max){r[o.key]=`${o.label} must be at most ${l.max}`;continue}}}return r}function ER(e){return{fields:(0,n.computed)(()=>Mv(e.value))}}const CR=!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 at(e,t){return typeof e=="string"?{...t,label:e}:e??{}}const lt={text(e,t){return new Ge("text",at(e,t))},email(e,t){return new Ge("email",at(e,t))},password(e,t){return new Ge("password",at(e,t))},number(e,t){return new Ge("number",at(e,t))},tel(e,t){return new Ge("tel",at(e,t))},url(e,t){return new Ge("url",at(e,t))},date(e,t){return new Ge("date",at(e,t))},time(e,t){return new Ge("time",at(e,t))},datetime(e,t){return new Ge("datetime",at(e,t))},textarea(e,t){return new Ge("textarea",at(e,t))},richtext(e,t){return new Ge("richtext",at(e,t))},json(e,t){const r=at(e,t);return r.language||(r.language="json"),new Ge("json",r)},checkbox(e,t){return new Ge("checkbox",at(e,t))},toggle(e,t){return new Ge("toggle",at(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",{...at(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",{...at(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",{...at(t,r),options:e})},color(e,t){return new Ge("color",at(e,t))},range(e,t){return new Ge("range",at(e,t))},upload(e,t){return new Ge("upload",at(e,t))},array(e,t,r){if(typeof e=="string"){const a=e,l=t;return new Ge("array",{...r??{},label:a,schema:l})}const o=e;return new Ge("array",{...at(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 Qc=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[l,i]of Object.entries(this._fields)){const s=i._config,c=Lv.getJSONSchemaType(i._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=>gr(m)??m);i._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),i._type==="email"&&(u.format="email"),i._type==="url"&&(u.format="uri"),i._type==="date"&&(u.format="date"),i._type==="time"&&(u.format="time"),i._type==="datetime"&&(u.format="date-time");const d={};i._type!=="text"&&(d.fieldType=i._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),i._class&&(d.class=i._class),i._condition&&(d.condition=i._condition),i._type==="array"&&(s.allowAdd!==void 0&&(d.allowAdd=s.allowAdd),s.allowDelete!==void 0&&(d.allowDelete=s.allowDelete)),i._component&&(d.component=typeof i._component.component=="string"?i._component.component:i._component.component.name||"CustomComponent",i._component.props&&(d.componentProps=i._component.props)),Object.keys(d).length>0&&(u["x-ui"]=d),t[l]=u,s.required===!0&&r.push(l)}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 SR(e,t){if(typeof e=="string"){if(!t)throw new Error("Fields are required when providing a label");return new Qc(t,e)}return new Qc(e)}function xR(e){return e}function TR(e){const t={},r=new Set(e.required||[]);if(e.properties)for(const[a,l]of Object.entries(e.properties))t[a]=DR(a,l,r.has(a),e);const o=new Qc(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 NR(e,t){const r=e.match(/^#\/(\$defs|definitions)\/(.+)$/);if(!r)return;const[,o,a]=r,l=o==="$defs"?t.$defs:t.definitions;return a?l?.[a]:void 0}function BR(e,t){const r=e.anyOf||e.oneOf;if(!r||r.length===0)return e;const o=r.filter(i=>i.type!=="null");if(o.length===1){const i=o[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"]}}}const a=["object","array","string","number","integer","boolean"],l=o.sort((i,s)=>a.indexOf(i.type||"string")-a.indexOf(s.type||"string"))[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"]}}}function DR(e,t,r,o){let a=t;if(t.$ref){const u=NR(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=BR(a,o));const l=a["x-ui"]||{},i=l.fieldType||bp(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),l.placeholder&&(s.placeholder=l.placeholder),l.disabled&&(s.disabled=l.disabled),l.readonly&&(s.readonly=l.readonly),l.autoheight&&(s.autoheight=l.autoheight),l.rows&&(s.rows=l.rows),l.cols&&(s.cols=l.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(i){case"email":c=lt.email(s);break;case"password":c=lt.password(s);break;case"number":c=lt.number(s);break;case"tel":c=lt.tel(s);break;case"url":c=lt.url(s);break;case"date":c=lt.date(s);break;case"time":c=lt.time(s);break;case"datetime":c=lt.datetime(s);break;case"textarea":c=lt.textarea(s);break;case"richtext":c=lt.richtext(s);break;case"json":c=lt.json(s);break;case"checkbox":c=lt.checkbox(s);break;case"toggle":c=lt.toggle(s);break;case"radio":c=lt.radio(a.enum||[],s);break;case"select":c=lt.select(a.enum||[],s);break;case"multiselect":c=lt.multiselect(a.enum||[],s);break;case"array":{const u={...s};l.allowAdd!==void 0&&(u.allowAdd=l.allowAdd),l.allowDelete!==void 0&&(u.allowDelete=l.allowDelete),a.items?.type&&(u.itemType=bp(a.items)),c=lt.array(a.title||e,void 0,u);break}case"display":c=lt.display(l.component||"div",l.componentProps||{});break;case"component":c=lt.component(l.component||"div",l.componentProps||{});break;default:c=lt.text(s)}return l.class&&c.class(l.class),l.condition&&c.if(l.condition),c}function bp(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 AR={class:"multi-step-form"},MR={class:"step-progress"},LR=["onClick"],PR={class:"step-number"},IR={class:"step-label"},VR={key:0},OR={key:0,class:"step-title"},RR={key:1,class:"validation-errors"},FR={class:"step-navigation"},zR=["disabled"],UR={class:"step-counter"},HR=(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:l}=nt(),i=(0,n.useSlots)(),s=(0,n.computed)(()=>Object.keys(i)),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,M=>{d||(c.value={...M||{}})},{deep:!0}),(0,n.watch)(c,M=>{d=!0,a("update:modelValue",M),setTimeout(()=>{d=!1},0)},{deep:!0}),(0,n.watch)(()=>o.currentStep,M=>{M!=null&&(u.value=M)}),(0,n.watch)(u,M=>{a("update:currentStep",M),a("stepChange",M)});function f(M,N){const A=N.split(".");let F=M;for(const V of A)F=F?.[V];return F}function m(M,N){if(!M)return!0;try{const A=Ea(M);if(A.length===0)return!0;let F=!0,V=null;for(let B=0;B<A.length;B++){const j=A[B],Q=f(N,j.field),{op:K,value:re,connector:O}=j;let P=!1;switch(K){case"eq":P=Q===re;break;case"ne":P=Q!==re;break;case"gt":P=re!=null&&Q>re;break;case"ge":P=re!=null&&Q>=re;break;case"lt":P=re!=null&&Q<re;break;case"le":P=re!=null&&Q<=re;break;case"co":P=re!=null&&String(Q).includes(String(re));break;case"sw":P=re!=null&&String(Q).startsWith(String(re));break;case"ew":P=re!=null&&String(Q).endsWith(String(re));break;case"pr":P=Q!=null;break;default:P=!1}B===0?(F=P,V=P):(O==="or"?F=(V??!1)||P:O==="and"&&(F=(V??!1)&&P),V=F)}return F}catch{return!0}}function p(M){return M._condition==null?!0:m(M._condition,c.value)}const h=(0,n.computed)(()=>Object.entries(o.schema).filter(([,M])=>p(M)).map(([M,N])=>({key:M,schema:N}))),y=(0,n.computed)(()=>h.value.findIndex(M=>M.key===u.value)),b=(0,n.computed)(()=>y.value===0),g=(0,n.computed)(()=>y.value===h.value.length-1),v=(0,n.computed)(()=>h.value[y.value]?.schema),_=(0,n.ref)({});function w(M){return M._condition==null?!0:m(M._condition,c.value)}function k(M){const N=M.replace(/\[(\d+)\]/g,".$1");return f(c.value,N)}function S(M){return!!(M==null||typeof M=="string"&&M.trim()===""||Array.isArray(M)&&M.length===0)}function E(){if(!o.validateOnNext||v.value==null)return!0;const M={},N=v.value._fields;for(const[A,F]of Object.entries(N)){if(F._type==="display"||!w(F))continue;const V=k(A),B=F._config;if(B.required===!0&&S(V)){M[A]=`${typeof B.label=="string"?B.label:A} is required`;continue}if(F._validations&&!S(V))for(const j of F._validations){const Q=j(V);if(Q!==!0){M[A]=Q;break}}}return _.value=M,Object.keys(M).length>0?(a("validationError",M),!1):!0}function $(M,N){return N._label!=null?N._label:M.split(/[._-]/).map(A=>A.charAt(0).toUpperCase()+A.slice(1)).join(" ")}function I(M){const N=h.value.findIndex(A=>A.key===M);if(N!==-1){if(N<y.value){u.value=M,_.value={};return}N>y.value&&!E()||(u.value=M)}}function D(){if(E())if(g.value)a("complete");else{const M=y.value+1;u.value=h.value[M].key,_.value={}}}function R(){if(!b.value){const M=y.value-1;u.value=h.value[M].key,_.value={}}}return t({validateCurrentStep:E,stepErrors:_,nextStep:D,prevStep:R,goToStep:I,visibleSteps:h,activeStep:u,currentStepIndex:y,isFirstStep:b,isLastStep:g}),(M,N)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",AR,[(0,n.createElementVNode)("div",MR,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(h.value,(A,F)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:A.key,class:(0,n.normalizeClass)(["step-indicator",{active:A.key===u.value,completed:F<y.value}]),onClick:V=>I(A.key)},[(0,n.createElementVNode)("div",PR,(0,n.toDisplayString)(F+1),1),(0,n.createElementVNode)("div",IR,(0,n.toDisplayString)($(A.key,A.schema)),1)],10,LR))),128))]),v.value!=null?((0,n.openBlock)(),(0,n.createElementBlock)("div",VR,[v.value._label?((0,n.openBlock)(),(0,n.createElementBlock)("h2",OR,(0,n.toDisplayString)(v.value._label),1)):(0,n.createCommentVNode)("",!0),Object.keys(_.value).length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",RR,[(0,n.createElementVNode)("ul",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(_.value,(A,F)=>((0,n.openBlock)(),(0,n.createElementBlock)("li",{key:F},(0,n.toDisplayString)(A),1))),128))])])):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(M.$slots,`step:${u.value}`,{schema:v.value,formData:c.value,stepKey:u.value,errors:_.value},()=>[(0,n.createVNode)(ud,{modelValue:c.value,"onUpdate:modelValue":N[0]||(N[0]=A=>c.value=A),schema:v.value,components:e.components,errors:_.value},(0,n.createSlots)({_:2},[(0,n.renderList)(s.value,A=>({name:A,fn:(0,n.withCtx)(F=>[(0,n.renderSlot)(M.$slots,A,(0,n.normalizeProps)((0,n.guardReactiveProps)(F)),void 0,!0)])}))]),1032,["modelValue","schema","components","errors"])],!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",FR,[(0,n.createElementVNode)("button",{type:"button",class:"btn-secondary",disabled:b.value,onClick:R},(0,n.toDisplayString)((0,n.unref)(l)("multiStep.previous")),9,zR),(0,n.createElementVNode)("div",UR,(0,n.toDisplayString)((0,n.unref)(l)("multiStep.step",{current:y.value+1,total:h.value.length})),1),(0,n.createElementVNode)("button",{type:"button",class:"btn-primary",onClick:D},(0,n.toDisplayString)(g.value?(0,n.unref)(l)("multiStep.complete"):(0,n.unref)(l)("multiStep.next")),1)])]))}}),WR=ge(HR,[["__scopeId","data-v-94c284dc"]]);function ln(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Vn(e){return ln(e).getComputedStyle(e)}var _p=Math.min,ma=Math.max,si=Math.round;function Pv(e){const t=Vn(e);let r=parseFloat(t.width),o=parseFloat(t.height);const a=e.offsetWidth,l=e.offsetHeight,i=si(r)!==a||si(o)!==l;return i&&(r=a,o=l),{width:r,height:o,fallback:i}}function $r(e){return Vv(e)?(e.nodeName||"").toLowerCase():""}var gl;function Iv(){if(gl)return gl;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(gl=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),gl):navigator.userAgent}function On(e){return e instanceof ln(e).HTMLElement}function _r(e){return e instanceof ln(e).Element}function Vv(e){return e instanceof ln(e).Node}function wp(e){return typeof ShadowRoot>"u"?!1:e instanceof ln(e).ShadowRoot||e instanceof ShadowRoot}function Ui(e){const{overflow:t,overflowX:r,overflowY:o,display:a}=Vn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(a)}function jR(e){return["table","td","th"].includes($r(e))}function eu(e){const t=/firefox/i.test(Iv()),r=Vn(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 l=r.contain;return l!=null&&l.includes(a)}))}function Ov(){return!/^((?!chrome|android).)*safari/i.test(Iv())}function hd(e){return["html","body","#document"].includes($r(e))}function Rv(e){return _r(e)?e:e.contextElement}var Fv={x:1,y:1};function ko(e){const t=Rv(e);if(!On(t))return Fv;const r=t.getBoundingClientRect(),{width:o,height:a,fallback:l}=Pv(t);let i=(l?si(r.width):r.width)/o,s=(l?si(r.height):r.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}function Ma(e,t,r,o){var a,l;t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),s=Rv(e);let c=Fv;t&&(o?_r(o)&&(c=ko(o)):c=ko(e));const u=s?ln(s):window,d=!Ov()&&r;let f=(i.left+(d&&((a=u.visualViewport)==null?void 0:a.offsetLeft)||0))/c.x,m=(i.top+(d&&((l=u.visualViewport)==null?void 0:l.offsetTop)||0))/c.y,p=i.width/c.x,h=i.height/c.y;if(s){const y=ln(s),b=o&&_r(o)?ln(o):o;let g=y.frameElement;for(;g&&o&&b!==y;){const v=ko(g),_=g.getBoundingClientRect(),w=getComputedStyle(g);_.x+=(g.clientLeft+parseFloat(w.paddingLeft))*v.x,_.y+=(g.clientTop+parseFloat(w.paddingTop))*v.y,f*=v.x,m*=v.y,p*=v.x,h*=v.y,f+=_.x,m+=_.y,g=ln(g).frameElement}}return{width:p,height:h,top:m,right:f+p,bottom:m+h,left:f,x:f,y:m}}function wr(e){return((Vv(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hi(e){return _r(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function zv(e){return Ma(wr(e)).left+Hi(e).scrollLeft}function La(e){if($r(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wp(e)&&e.host||wr(e);return wp(t)?t.host:t}function Uv(e){const t=La(e);return hd(t)?t.ownerDocument.body:On(t)&&Ui(t)?t:Uv(t)}function ci(e,t){var r;t===void 0&&(t=[]);const o=Uv(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),l=ln(o);return a?t.concat(l,l.visualViewport||[],Ui(o)?o:[]):t.concat(o,ci(o))}function kp(e,t,r){return t==="viewport"?Ir((function(o,a){const l=ln(o),i=wr(o),s=l.visualViewport;let c=i.clientWidth,u=i.clientHeight,d=0,f=0;if(s){c=s.width,u=s.height;const m=Ov();(m||!m&&a==="fixed")&&(d=s.offsetLeft,f=s.offsetTop)}return{width:c,height:u,x:d,y:f}})(e,r)):_r(t)?Ir((function(o,a){const l=Ma(o,!0,a==="fixed"),i=l.top+o.clientTop,s=l.left+o.clientLeft,c=On(o)?ko(o):{x:1,y:1};return{width:o.clientWidth*c.x,height:o.clientHeight*c.y,x:s*c.x,y:i*c.y}})(t,r)):Ir((function(o){const a=wr(o),l=Hi(o),i=o.ownerDocument.body,s=ma(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),c=ma(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let u=-l.scrollLeft+zv(o);const d=-l.scrollTop;return Vn(i).direction==="rtl"&&(u+=ma(a.clientWidth,i.clientWidth)-s),{width:s,height:c,x:u,y:d}})(wr(e)))}function $p(e){return On(e)&&Vn(e).position!=="fixed"?e.offsetParent:null}function Ep(e){const t=ln(e);let r=$p(e);for(;r&&jR(r)&&Vn(r).position==="static";)r=$p(r);return r&&($r(r)==="html"||$r(r)==="body"&&Vn(r).position==="static"&&!eu(r))?t:r||(function(o){let a=La(o);for(;On(a)&&!hd(a);){if(eu(a))return a;a=La(a)}return null})(e)||t}function qR(e,t,r){const o=On(t),a=wr(t),l=Ma(e,!0,r==="fixed",t);let i={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&r!=="fixed")if(($r(t)!=="body"||Ui(a))&&(i=Hi(t)),On(t)){const c=Ma(t,!0);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else a&&(s.x=zv(a));return{x:l.left+i.scrollLeft-s.x,y:l.top+i.scrollTop-s.y,width:l.width,height:l.height}}var GR={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:a}=e;const l=[...r==="clippingAncestors"?(function(c,u){const d=u.get(c);if(d)return d;let f=ci(c).filter((y=>_r(y)&&$r(y)!=="body")),m=null;const p=Vn(c).position==="fixed";let h=p?La(c):c;for(;_r(h)&&!hd(h);){const y=Vn(h),b=eu(h);(p?b||m:b||y.position!=="static"||!m||!["absolute","fixed"].includes(m.position))?m=y:f=f.filter((g=>g!==h)),h=La(h)}return u.set(c,f),f})(t,this._c):[].concat(r),o],i=l[0],s=l.reduce(((c,u)=>{const d=kp(t,u,a);return c.top=ma(d.top,c.top),c.right=_p(d.right,c.right),c.bottom=_p(d.bottom,c.bottom),c.left=ma(d.left,c.left),c}),kp(t,i,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=On(r),l=wr(r);if(r===l)return t;let i={scrollLeft:0,scrollTop:0},s={x:1,y:1};const c={x:0,y:0};if((a||!a&&o!=="fixed")&&(($r(r)!=="body"||Ui(l))&&(i=Hi(r)),On(r))){const u=Ma(r);s=ko(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-i.scrollLeft*s.x+c.x,y:t.y*s.y-i.scrollTop*s.y+c.y}},isElement:_r,getDimensions:function(e){return On(e)?Pv(e):e.getBoundingClientRect()},getOffsetParent:Ep,getDocumentElement:wr,getScale:ko,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const a=this.getOffsetParent||Ep,l=this.getDimensions;return{reference:qR(t,await a(r),o),floating:{x:0,y:0,...await l(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Vn(e).direction==="rtl"},YR=(e,t,r)=>{const o=new Map,a={platform:GR,...r},l={...a.platform,_c:o};return u0(e,t,{...a,platform:l})};function Hv(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?Hv(e[r],t[r]):e[r]=t[r])}var yn={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 Pa(e,t){let r=yn.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=yn.themes[r.$extend]||{}:(r=null,o=yn[t]):r=null;while(r);return o}function XR(e){const t=[e];let r=yn.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=yn.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Cp(e){const t=[e];let r=yn.themes[e]||{};do r.$extend?(t.push(r.$extend),r=yn.themes[r.$extend]||{}):r=null;while(r);return t}var Do=!1;if(typeof window<"u"){Do=!1;try{const e=Object.defineProperty({},"passive",{get(){Do=!0}});window.addEventListener("test",null,e)}catch{}}var Wv=!1;typeof window<"u"&&typeof navigator<"u"&&(Wv=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var jv=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Sp={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},xp={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Tp(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function zs(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var hn=[],Nr=null,Np={};function Bp(e){let t=Np[e];return t||(t=Np[e]=[]),t}var tu=function(){};typeof window<"u"&&(tu=window.Element);function Pe(e){return function(t){return Pa(t.theme,e)}}var Us="__floating-vue__popper",qv=()=>(0,n.defineComponent)({name:"VPopper",provide(){return{[Us]:{parentPopper:this}}},inject:{[Us]:{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=>jv.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,tu,Boolean],default:Pe("container")},boundary:{type:[String,tu],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[Us])==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(m0({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(d0({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(p0({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(f0({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(kx({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:a,middlewareData:l})=>{let i;const{centerOffset:s}=l.arrow;return o.startsWith("top")||o.startsWith("bottom")?i=Math.abs(s)>a.reference.width/2:i=Math.abs(s)>a.reference.height/2,{data:{overflow:i}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:a,placement:l,middlewareData:i})=>{var s;if((s=i.autoSize)!=null&&s.skip)return{};let c,u;return l.startsWith("top")||l.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(Sx({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 YR(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),Nr&&this.instantMove&&Nr.instantMove&&Nr!==this.parentPopper){Nr.$_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&&(Nr=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 zs(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ci(this.$_referenceNode),...ci(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),l=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${a}px ${l}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<hn.length;r++)t=hn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}hn.push(this),document.body.classList.add("v-popper--some-open");for(const t of Cp(this.theme))Bp(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 zs(),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,Tp(hn,this),hn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Cp(this.theme)){const o=Bp(r);Tp(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Nr===this&&(Nr=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 zs(),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,Sp,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Sp,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,xp,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],xp,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,Do?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,a){let l=r;o!=null&&(l=typeof o=="function"?o(l):o),l.forEach(i=>{const s=t[i];s&&this.$_registerEventListeners(e,s,a)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:a,handler:l}=r;!e||e===a?o.forEach(i=>i.removeEventListener(a,l)):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(pa>=e.left&&pa<=e.right&&ha>=e.top&&ha<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=pa-fr,o=ha-mr,a=t.left+t.width/2-fr+(t.top+t.height/2)-mr+t.width+t.height,l=fr+r*a,i=mr+o*a;return vl(fr,mr,l,i,t.left,t.top,t.left,t.bottom)||vl(fr,mr,l,i,t.left,t.top,t.right,t.top)||vl(fr,mr,l,i,t.right,t.top,t.right,t.bottom)||vl(fr,mr,l,i,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(Wv){const e=Do?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Dp(t,!0),e),document.addEventListener("touchend",t=>Ap(t,!0),e)}else window.addEventListener("mousedown",e=>Dp(e,!1),!0),window.addEventListener("click",e=>Ap(e,!1),!0);window.addEventListener("resize",JR)}function Dp(e,t){if(yn.autoHideOnMousedown)Gv(e,t);else for(let r=0;r<hn.length;r++){const o=hn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Ap(e,t){yn.autoHideOnMousedown||Gv(e,t)}function Gv(e,t){const r={};for(let o=hn.length-1;o>=0;o--){const a=hn[o];try{const l=a.containsGlobalTarget=a.mouseDownContains||a.popperNode().contains(e.target);a.pendingHide=!1,requestAnimationFrame(()=>{if(a.pendingHide=!1,!r[a.randomId]&&Mp(a,l,e)){if(a.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&l){let s=a.parentPopper;for(;s;)r[s.randomId]=!0,s=s.parentPopper;return}let i=a.parentPopper;for(;i&&Mp(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function Mp(e,t,r){return r.closeAllPopover||r.closePopover&&t||KR(e,r)&&!t}function KR(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function JR(){for(let e=0;e<hn.length;e++)hn[e].$_computePosition()}var fr=0,mr=0,pa=0,ha=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{fr=pa,mr=ha,pa=e.clientX,ha=e.clientY},Do?{passive:!0}:void 0);function vl(e,t,r,o,a,l,i,s){const c=((i-a)*(t-l)-(s-l)*(e-a))/((s-l)*(r-e)-(i-a)*(o-t)),u=((r-e)*(t-l)-(o-t)*(e-a))/((s-l)*(r-e)-(i-a)*(o-t));return c>=0&&c<=1&&u>=0&&u<=1}var ZR={extends:qv()},Wi=(e,t)=>{const r=e.__vccOpts||e;for(const[o,a]of t)r[o]=a;return r};function QR(e,t,r,o,a,l){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 eF=Wi(ZR,[["render",QR]]);function tF(){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 Vl;function nu(){nu.init||(nu.init=!0,Vl=tF()!==-1)}var ji={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){nu(),(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",Vl&&this.$el.appendChild(e),e.data="about:blank",Vl||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&&(!Vl&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},nF=(0,n.withScopeId)("data-v-b329ee4c");(0,n.pushScopeId)("data-v-b329ee4c");var rF={class:"resize-observer",tabindex:"-1"};(0,n.popScopeId)();ji.render=nF((e,t,r,o,a,l)=>((0,n.openBlock)(),(0,n.createBlock)("div",rF)));ji.__scopeId="data-v-b329ee4c";ji.__file="src/components/ResizeObserver.vue";var Yv=(e="theme")=>({computed:{themeClass(){return XR(this[e])}}}),oF=(0,n.defineComponent)({name:"VPopperContent",components:{ResizeObserver:ji},mixins:[Yv()],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}}}),aF=["id","aria-hidden","tabindex","data-popper-placement"],lF={ref:"inner",class:"v-popper__inner"},iF=[(0,n.createElementVNode)("div",{class:"v-popper__arrow-outer"},null,-1),(0,n.createElementVNode)("div",{class:"v-popper__arrow-inner"},null,-1)];function sF(e,t,r,o,a,l){const i=(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",lF,[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)(i,{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)},iF,4)],4)],46,aF)}var Xv=Wi(oF,[["render",sF]]),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)}}},ru=function(){};typeof window<"u"&&(ru=window.Element);var cF=(0,n.defineComponent)({name:"VPopperWrapper",components:{Popper:eF,PopperContent:Xv},mixins:[Kv,Yv("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,ru,Boolean],default:void 0},boundary:{type:[String,ru],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 uF(e,t,r,o,a,l){const i=(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:y,onResize:b,classes:g,result:v})=>[(0,n.renderSlot)(e.$slots,"default",{shown:u,show:p,hide:h}),(0,n.createVNode)(i,{ref:"popperContent","popper-id":c,theme:e.finalTheme,shown:u,mounted:d,"skip-transition":f,"auto-hide":m,"handle-resize":y,classes:g,result:v,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 gd=Wi(cF,[["render",uF]]),dF={...gd,name:"VDropdown",vPopperTheme:"dropdown"},fF={...gd,name:"VMenu",vPopperTheme:"menu"},mF={...gd,name:"VTooltip",vPopperTheme:"tooltip"},pF=(0,n.defineComponent)({name:"VTooltipDirective",components:{Popper:qv(),PopperContent:Xv},mixins:[Kv],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Pa(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Pa(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}}}),hF=["innerHTML"],gF=["textContent"];function vF(e,t,r,o,a,l){const i=(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:y,classes:b,result:g})=>[(0,n.createVNode)(i,{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:y},{default:(0,n.withCtx)(()=>[e.html?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,innerHTML:e.finalContent},null,8,hF)):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,textContent:(0,n.toDisplayString)(e.finalContent)},null,8,gF))]),_: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 yF=Wi(pF,[["render",vF]]),Jv="v-popper--has-tooltip";function bF(e,t){let r=e.placement;if(!r&&t)for(const o of jv)t[o]&&(r=o);return r||(r=Pa(e.theme||"tooltip","placement")),r}function Zv(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=bF(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}var Hs,Ia,_F=0;function wF(){if(Hs)return;Ia=(0,n.ref)([]),Hs=(0,n.createApp)({name:"VTooltipDirectiveApp",setup(){return{directives:Ia}},render(){return this.directives.map(t=>(0,n.h)(yF,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Hs.mount(e)}function kF(e,t,r){wF();const o=(0,n.ref)(Zv(e,t,r)),a=(0,n.ref)(!1),l={id:_F++,options:o,shown:a};return Ia.value.push(l),e.classList&&e.classList.add(Jv),e.$_popper={options:o,item:l,show(){a.value=!0},hide(){a.value=!1}}}function Qv(e){if(e.$_popper){const t=Ia.value.indexOf(e.$_popper.item);t!==-1&&Ia.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Jv)}function Lp(e,{value:t,modifiers:r}){const o=Zv(e,t,r);if(!o.content||Pa(o.theme||"tooltip","disabled"))Qv(e);else{let a;e.$_popper?(a=e.$_popper,a.options.value=o):a=kF(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?a.show():a.hide())}}var $F={beforeMount:Lp,updated:Lp,beforeUnmount(e){Qv(e)}};function Pp(e){e.addEventListener("mousedown",ui),e.addEventListener("click",ui),e.addEventListener("touchstart",ey,Do?{passive:!0}:!1)}function Ip(e){e.removeEventListener("mousedown",ui),e.removeEventListener("click",ui),e.removeEventListener("touchstart",ey),e.removeEventListener("touchend",ty),e.removeEventListener("touchcancel",ny)}function ui(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function ey(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener("touchend",ty),t.addEventListener("touchcancel",ny)}}function ty(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 ny(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var EF={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&Pp(e)},updated(e,{value:t,oldValue:r,modifiers:o}){e.$_closePopoverModifiers=o,t!==r&&(typeof t>"u"||t?Pp(e):Ip(e))},beforeUnmount(e){Ip(e)}};function CF(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Hv(yn,t),e.directive("tooltip",$F),e.directive("close-popper",EF),e.component("VTooltip",mF),e.component("VDropdown",dF),e.component("VMenu",fF))}var SF={version:"5.2.2",install:CF,options:yn},xF=["src"],TF=(0,n.defineComponent)({__name:"LightboxImage",props:{src:{}},setup(e){const t=e,{imageSrc:r}=id(()=>t.src);return(o,a)=>((0,n.openBlock)(),(0,n.createElementBlock)("img",{draggable:!1,src:(0,n.unref)(r),alt:"Preview",class:"lightbox-image"},null,8,xF))}}),NF=TF,BF={key:0,class:"center"},DF={key:3},AF={class:"bgl-lightbox-item"},MF={key:2,class:"lightbox-pdf"},LF=["src","title"],PF={key:3,class:"lightbox-file"},IF={class:"file-info txt-white flex m_block align-items-start gap-025"},VF={class:"txt-start"},OF={class:"mx-0 light"},RF={class:"semi word-break-all"},FF={class:"mx-0"},zF={class:"semi"},UF=(0,n.defineComponent)({__name:"Lightbox",setup(e,{expose:t}){const r=(0,n.ref)(!1),o=(0,n.ref)([]),a=(0,n.ref)(0),l=(0,n.computed)(()=>o.value[a.value]),i=(0,n.ref)(1),s=(0,n.computed)(()=>i.value===1),c=(0,n.computed)(()=>({allowTouchMove:i.value===1,touchRatio:i.value===1?1:0,simulateTouch:i.value===1}));function u(m,p){r.value=!0,o.value=p||[m],a.value=o.value.findIndex(h=>{const y=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 y||b}),a.value===-1&&(a.value=0),i.value=1}function d(){r.value=!1}Oi(d,r);function f(m){a.value=m,i.value=1}return(0,n.watch)(()=>r.value,m=>{m?document.body.style.overflow="hidden":document.body.style.overflow=""}),(0,n.watch)(()=>a.value,()=>{i.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)(oe),{flat:"",class:"color-white",icon:"close",onClick:d}),l.value?.enableZoom&&l.value?.type==="image"?((0,n.openBlock)(),(0,n.createElementBlock)("div",BF,[(0,n.createVNode)((0,n.unref)(oe),{flat:"",class:"color-white",icon:"remove",disabled:i.value===1,onClick:p[0]||(p[0]=h=>i.value--)},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(oe),{flat:"",class:"color-white",icon:"zoom_in",disabled:i.value===1,onClick:p[1]||(p[1]=h=>i.value=1)},null,8,["disabled"]),(0,n.createVNode)((0,n.unref)(oe),{flat:"",class:"color-white",icon:"add",disabled:i.value===3,onClick:p[2]||(p[2]=h=>i.value++)},null,8,["disabled"])])):(0,n.createCommentVNode)("",!0),l.value?.openFile&&l.value?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{key:1,class:"color-white",round:"",thin:"",flat:"",iconEnd:"arrow_outward",value:"$t:lightbox.openFile",href:l.value?.src,target:"_blank"},null,8,["href"])):(0,n.createCommentVNode)("",!0),l.value?.download&&l.value?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(oe),{key:2,class:"color-white",round:"",thin:"",flat:"",icon:"download",value:"Download File",onClick:p[3]||(p[3]=h=>(0,n.unref)(ld)(l.value?.src))})):(0,n.createCommentVNode)("",!0),!l.value?.openFile&&!l.value?.download?((0,n.openBlock)(),(0,n.createElementBlock)("div",DF)):(0,n.createCommentVNode)("",!0)]),o.value&&o.value.length>0?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(lv),{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:i.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",AF,[h.type==="image"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(iv),{key:0,zoom:i.value,"onUpdate:zoom":p[4]||(p[4]=y=>i.value=y),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)(NF,{src:h?.src},null,8,["src"])]),_:2},1032,["zoom","disabled"])):h?.type==="video"&&h?.src?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)($u),{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",MF,[(0,n.createElementVNode)("embed",{src:(0,n.unref)(ad)(h?.src),type:"application/pdf",title:h?.name},null,8,LF)])):((0,n.openBlock)(),(0,n.createElementBlock)("div",PF,[(0,n.createElementVNode)("div",IF,[(0,n.createVNode)((0,n.unref)(be),{class:"m-0 m_none",icon:"draft",size:10,weight:"12"}),(0,n.createVNode)((0,n.unref)(be),{class:"m-0 none m_block m_-mb-1",icon:"draft",size:4,weight:"2"}),(0,n.createElementVNode)("div",VF,[(0,n.createElementVNode)("p",OF,[p[9]||(p[9]=(0,n.createTextVNode)(" File: ",-1)),(0,n.createElementVNode)("span",RF,(0,n.toDisplayString)(h?.name),1)]),(0,n.createElementVNode)("p",FF,[p[10]||(p[10]=(0,n.createTextVNode)(" Type: ",-1)),(0,n.createElementVNode)("span",zF,(0,n.toDisplayString)(h?.type),1)]),(0,n.createVNode)((0,n.unref)(oe),{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)(oe),{icon:"arrow_back",color:"black",onClick:h},null,8,["onClick"])]),"next-button":(0,n.withCtx)(({next:h})=>[(0,n.createVNode)((0,n.unref)(oe),{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,y)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:y},[h.type==="image"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(wa),{key:0,class:(0,n.normalizeClass)(["thumbnail",{active:a.value===y}]),src:h.src,alt:"",onClick:(0,n.withModifiers)(b=>f(y),["stop"])},null,8,["src","class","onClick"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:1,class:(0,n.normalizeClass)(["thumbnail thumbnail-icon",{active:a.value===y}]),icon:"description",onClick:(0,n.withModifiers)(b=>f(y),["stop"])},null,8,["class","onClick"]))],64))),128))])):(0,n.createCommentVNode)("",!0)],32)):(0,n.createCommentVNode)("",!0)]),_:1}))}}),HF=UF,ra={},ro=e=>{},WF={mounted(e,t){Vp(ou(t,e)),ro=r=>{Op(r,e,t)},e.addEventListener("click",ro)},updated(e,t){Vp(ou(t,e)),e.removeEventListener("click",ro),ro=r=>{Op(r,e,t)},e.addEventListener("click",ro)},unmounted(e){e.removeEventListener("click",ro)},getSSRProps(){return{}}};function Vp(e){e.group&&(ra[e.group]||(ra[e.group]=[]),ra[e.group].findIndex(t=>t.src===e.src)===-1&&ra[e.group].push(e))}function Op(e,t,r){e.stopPropagation();const o=ou(r,t),a=XF();if(!a||!a.open)return;const l=a.open;l(o,o&&o.group?ra[o.group]:void 0)}function ou(e,t){let{group:r,src:o,type:a,name:l,thumbnail:i,enableZoom:s,openFile:c,download:u,pathKey:d}=e.value||{};return o=pn(o||d)||e.value||t.getAttribute("src")||"",a=a||YF(o),l=l||GF(o)||t.getAttribute("alt")||"",{src:o,type:a,name:l,thumbnail:i,group:r,enableZoom:s,openFile:c,download:u}}var jF=/youtube\.com|youtu\.be/,qF=/vimeo\.com/;function GF(e){return!e||typeof e!="string"?"":(e.split("/").pop()||"").replace(/\.[^/.]+$/,"")}function YF(e){if(typeof e!="string"||!e)return"unknown";if(e.startsWith("blob:")||/^data:image\//i.test(e))return"image";if(/^data:video\//i.test(e))return"video";const t=(e.split(".").pop()||"").toLowerCase(),r=e.split("?")[0].split(".").pop()?.toLowerCase()||"";return Gl.test(t)||Gl.test(r)?"image":B0.test(t)||jF.test(e)||qF.test(e)?"video":["pdf"].includes(t)?"pdf":t??"unknown"}var Ws;function XF(){if(!(typeof document>"u")){if(!Ws){const e=document.createElement("div");document.body.prepend(e),Ws=(0,n.createApp)(HF).mount(e)}return Ws}}var KF={install(e){e.directive("lightbox",WF)}},JF=KF,ZF={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)}},ry=th({EventBus:()=>Yi,POSITION:()=>Oa,TYPE:()=>Ot,createToastInterface:()=>Ra,default:()=>_y,globalEventBus:()=>vd,provideToast:()=>Rz,toastInjectionKey:()=>Xi,useToast:()=>by},1),QF=Object.defineProperty,Rp=Object.getOwnPropertySymbols,ez=Object.prototype.hasOwnProperty,tz=Object.prototype.propertyIsEnumerable,Fp=(e,t,r)=>t in e?QF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oy=(e,t)=>{for(var r in t||(t={}))ez.call(t,r)&&Fp(e,r,t[r]);if(Rp)for(var r of Rp(t))tz.call(t,r)&&Fp(e,r,t[r]);return e},qi=e=>typeof e=="function",Gi=e=>typeof e=="string",ay=e=>Gi(e)&&e.trim().length>0,nz=e=>typeof e=="number",Pr=e=>typeof e>"u",Va=e=>typeof e=="object"&&e!==null,rz=e=>Rn(e,"tag")&&ay(e.tag),ly=e=>window.TouchEvent&&e instanceof TouchEvent,iy=e=>Rn(e,"component")&&sy(e.component),oz=e=>qi(e)||Va(e),sy=e=>!Pr(e)&&(Gi(e)||oz(e)||iy(e)),zp=e=>Va(e)&&["height","width","right","left","top","bottom"].every(t=>nz(e[t])),Rn=(e,t)=>(Va(e)||qi(e))&&t in e,az=(e=>()=>e++)(0);function js(e){return ly(e)?e.targetTouches[0].clientX:e.clientX}function Up(e){return ly(e)?e.targetTouches[0].clientY:e.clientY}var lz=e=>{Pr(e.remove)?e.parentNode&&e.parentNode.removeChild(e):e.remove()},el=e=>iy(e)?el(e.component):rz(e)?(0,n.defineComponent)({render(){return e}}):typeof e=="string"?e:(0,n.toRaw)((0,n.unref)(e)),iz=e=>{if(typeof e=="string")return e;const t=Rn(e,"props")&&Va(e.props)?e.props:{},r=Rn(e,"listeners")&&Va(e.listeners)?e.listeners:{};return{component:el(e),props:t,listeners:r}},sz=()=>typeof window<"u",Yi=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))}},cz=e=>["on","off","emit"].every(t=>Rn(e,t)&&qi(e[t])),Ot;(function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.DEFAULT="default"})(Ot||(Ot={}));var Oa;(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"})(Oa||(Oa={}));var Xt;(function(e){e.ADD="add",e.DISMISS="dismiss",e.UPDATE="update",e.CLEAR="clear",e.UPDATE_DEFAULTS="update_defaults"})(Xt||(Xt={}));var Qn="Vue-Toastification",fn={type:{type:String,default:Ot.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Hp={type:fn.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},yl={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:fn.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},qs={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},Wp={transition:{type:[Object,String],default:`${Qn}__bounce`}},rr={CORE_TOAST:{position:{type:String,default:Oa.TOP_RIGHT},draggable:fn.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:fn.trueBoolean,pauseOnHover:fn.trueBoolean,closeOnClick:fn.trueBoolean,timeout:qs.timeout,hideProgressBar:qs.hideProgressBar,toastClassName:fn.classNames,bodyClassName:fn.classNames,icon:Hp.customIcon,closeButton:yl.component,closeButtonClassName:yl.classNames,showCloseButtonOnHover:yl.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new Yi}},TOAST:{id:{type:[String,Number],required:!0,default:0},type:fn.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:fn.trueBoolean,maxToasts:{type:Number,default:20},transition:Wp.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:e=>e},filterToasts:{type:Function,default:e=>e},containerClassName:fn.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},PROGRESS_BAR:qs,ICON:Hp,TRANSITION:Wp,CLOSE_BUTTON:yl},cy=(0,n.defineComponent)({name:"VtProgressBar",props:rr.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?`${Qn}__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 uz(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{style:(0,n.normalizeStyle)(e.style),class:(0,n.normalizeClass)(e.cpClass)},null,6)}cy.render=uz;var dz=cy,uy=(0,n.defineComponent)({name:"VtCloseButton",props:rr.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?el(this.component):"button"},classes(){const e=[`${Qn}__close-button`];return this.showOnHover&&e.push("show-on-hover"),e.concat(this.classNames)}}}),fz=(0,n.createTextVNode)(" × ");function mz(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)(()=>[fz]),_:1},16,["aria-label","class"])}uy.render=mz;var pz=uy,dy={},hz={"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"},gz=[(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 vz(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",hz,gz)}dy.render=vz;var yz=dy,fy={},bz={"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"},_z=[(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 wz(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",bz,_z)}fy.render=wz;var jp=fy,my={},kz={"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"},$z=[(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 Ez(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",kz,$z)}my.render=Ez;var Cz=my,py={},Sz={"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"},xz=[(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 Tz(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",Sz,xz)}py.render=Tz;var Nz=py,hy=(0,n.defineComponent)({name:"VtIcon",props:rr.ICON,computed:{customIconChildren(){return Rn(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return Gi(this.customIcon)?this.trimValue(this.customIcon):Rn(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return Rn(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:sy(this.customIcon)?el(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[Ot.DEFAULT]:jp,[Ot.INFO]:jp,[Ot.SUCCESS]:yz,[Ot.ERROR]:Nz,[Ot.WARNING]:Cz}[this.type]},iconClasses(){const e=[`${Qn}__icon`];return this.hasCustomIcon?e.concat(this.customIconClass):e}},methods:{trimValue(e,t=""){return ay(e)?e.trim():t}}});function Bz(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"])}hy.render=Bz;var gy=(0,n.defineComponent)({name:"VtToast",components:{ProgressBar:dz,CloseButton:pz,Icon:hy},inheritAttrs:!1,props:Object.assign({},rr.CORE_TOAST,rr.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const e=[`${Qn}__toast`,`${Qn}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&e.push("disable-transition"),this.rtl&&e.push(`${Qn}__toast--rtl`),e},bodyClasses(){return[`${Qn}__toast-${Gi(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 zp(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:Rn,getVueComponentFromObj:el,closeToast(){this.eventBus.emit(Xt.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:js(e),y:Up(e)},this.dragStart=js(e),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(e){this.beingDragged&&(e.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:js(e),y:Up(e)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,zp(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}))}}}),Dz=["role"];function Az(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]=(...l)=>e.clickHandler&&e.clickHandler(...l)),onMouseenter:t[1]||(t[1]=(...l)=>e.hoverPause&&e.hoverPause(...l)),onMouseleave:t[2]||(t[2]=(...l)=>e.hoverPlay&&e.hoverPlay(...l))},[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,Dz),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)}gy.render=Az;var Mz=gy,vy=(0,n.defineComponent)({name:"VtTransition",props:rr.TRANSITION,emits:["leave"],methods:{hasProp:Rn,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 Lz(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"])}vy.render=Lz;var yy=(0,n.defineComponent)({name:"VueToastification",devtools:{hide:!0},components:{Toast:Mz,VtTransition:vy},props:Object.assign({},rr.CORE_TOAST,rr.CONTAINER,rr.TRANSITION),data(){return{count:0,positions:Object.values(Oa),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const e=this.eventBus;e.on(Xt.ADD,this.addToast),e.on(Xt.CLEAR,this.clearToasts),e.on(Xt.DISMISS,this.dismissToast),e.on(Xt.UPDATE,this.updateToast),e.on(Xt.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(e){qi(e)&&(e=await e()),lz(this.$el),e.appendChild(this.$el)},setToast(e){Pr(e.id)||(this.toasts[e.id]=e)},addToast(e){e.content=iz(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];!Pr(t)&&!Pr(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){Pr(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[`${Qn}__container`,e].concat(this.defaults.containerClassName)}}});function Pz(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),l=>((0,n.openBlock)(),(0,n.createBlock)(r,(0,n.mergeProps)({key:l.id},l),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}yy.render=Pz;var Iz=yy,qp=(e={},t=!0)=>{const r=e.eventBus=e.eventBus||new Yi;t&&(0,n.nextTick)(()=>{const l=(0,n.createApp)(Iz,oy({},e)),i=l.mount(document.createElement("div")),s=e.onMounted;if(Pr(s)||s(i,l),e.shareAppContext){const c=e.shareAppContext;c===!0||(l._context.components=c._context.components,l._context.directives=c._context.directives,l._context.mixins=c._context.mixins,l._context.provides=c._context.provides,l.config.globalProperties=c.config.globalProperties)}});const o=(l,i)=>{const s=Object.assign({},{id:az(),type:Ot.DEFAULT},i,{content:l});return r.emit(Xt.ADD,s),s.id};o.clear=()=>r.emit(Xt.CLEAR,void 0),o.updateDefaults=l=>{r.emit(Xt.UPDATE_DEFAULTS,l)},o.dismiss=l=>{r.emit(Xt.DISMISS,l)};function a(l,{content:i,options:s},c=!1){const u=Object.assign({},s,{content:i});r.emit(Xt.UPDATE,{id:l,options:u,create:c})}return o.update=a,o.success=(l,i)=>o(l,Object.assign({},i,{type:Ot.SUCCESS})),o.info=(l,i)=>o(l,Object.assign({},i,{type:Ot.INFO})),o.error=(l,i)=>o(l,Object.assign({},i,{type:Ot.ERROR})),o.warning=(l,i)=>o(l,Object.assign({},i,{type:Ot.WARNING})),o},Vz=()=>{const e=()=>{};return new Proxy(e,{get(){return e}})};function Ra(e){return sz()?cz(e)?qp({eventBus:e},!1):qp(e,!0):Vz()}var Xi=Symbol("VueToastification"),vd=new Yi,Oz=(e,t)=>{t?.shareAppContext===!0&&(t.shareAppContext=e);const r=Ra(oy({eventBus:vd},t));e.provide(Xi,r)},Rz=e=>{const t=Ra(e);(0,n.getCurrentInstance)()&&(0,n.provide)(Xi,t)},by=e=>{if(e)return Ra(e);const t=(0,n.getCurrentInstance)()?(0,n.inject)(Xi,void 0):void 0;return t||Ra(vd)},_y=Oz,Fz={key:0,class:"custom-toast__icon"},zz={class:"custom-toast__content"},Uz=(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",Fz,[r.value==="success"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:0,icon:"check_circle"})):(0,n.createCommentVNode)("",!0),r.value==="error"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:1,icon:"dangerous"})):(0,n.createCommentVNode)("",!0),r.value==="warning"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:2,icon:"report"})):(0,n.createCommentVNode)("",!0),r.value==="info"?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(be),{key:3,icon:"info"})):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",zz,(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]=(...l)=>e.closeToast&&e.closeToast(...l))},[(0,n.createVNode)((0,n.unref)(be),{icon:"close"})])):(0,n.createCommentVNode)("",!0)],2))}}),Ko=Uz,Hz=_y||ry,{POSITION:Wz}=ry,oo=by;const wy=Symbol("toast");var di=null;function jz(){const e=(0,n.inject)(wy,null);if(!e){if(di)return di;throw new Error("Toast API not provided. Make sure ToastPlugin is installed via app.use(ToastPlugin)")}return e}function qz(){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 ky={install:(e,t={})=>{const r=qz(),o={position:Wz.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(Hz,o);function a(){const i=typeof document<"u"?document.getElementById("bgl-toast-container"):null;if(i){try{i.hidePopover()}catch{}try{i.showPopover()}catch{}}}const l={success:(i,s)=>(a(),oo()({component:Ko,props:{message:i,type:"success"}},s)),error:(i,s)=>(a(),oo()({component:Ko,props:{message:i,type:"error"}},s)),info:(i,s)=>(a(),oo()({component:Ko,props:{message:i,type:"info"}},s)),warning:(i,s)=>(a(),oo()({component:Ko,props:{message:i,type:"warning"}},s)),show:(i,s)=>(a(),oo()({component:Ko,props:{message:i,type:"info"}},s)),clear:()=>{oo().clear()}};di||(di=l),e.provide(wy,l)}};var Ki=class extends Event{oldState;newState;constructor(e,{oldState:t="",newState:r="",...o}={}){super(e,o),this.oldState=String(t||""),this.newState=String(r||"")}},Gp=new WeakMap;function $y(e,t,r){Gp.set(e,setTimeout(()=>{Gp.has(e)&&e.dispatchEvent(new Ki("toggle",{cancelable:!1,oldState:t,newState:r}))},0))}var yd=globalThis.ShadowRoot||function(){},Gz=globalThis.HTMLDialogElement||function(){},Ol=new WeakMap,er=new WeakMap,on=new WeakMap,Ao=new WeakMap;function fi(e){return Ao.get(e)||"hidden"}var mi=new WeakMap;function Fa(e){return[...e].pop()}function Yz(e){const t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;const r=fi(t);e.popoverTargetAction==="show"&&r==="showing"||e.popoverTargetAction==="hide"&&r==="hidden"||(r==="showing"?Lo(t,!0,!0):Vr(t,!1)&&(mi.set(t,e),au(t)))}function Vr(e,t){return!(e.popover!=="auto"&&e.popover!=="manual"&&e.popover!=="hint"||!e.isConnected||t&&fi(e)!=="showing"||!t&&fi(e)!=="hidden"||e instanceof Gz&&e.hasAttribute("open")||document.fullscreenElement===e)}function Yp(e){if(!e)return 0;const t=er.get(document)||new Set,r=on.get(document)||new Set;return r.has(e)?[...r].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function Xz(e){const t=Ey(e),r=Kz(e);return Yp(t)>Yp(r)?t:r}function za(e){let t;const r=on.get(e)||new Set,o=er.get(e)||new Set,a=r.size>0?r:o.size>0?o:null;return a?(t=Fa(a),t.isConnected?t:(a.delete(t),za(e))):null}function Xp(e){for(const t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function Mo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.parentNode?Mo(e.parentNode):e}function Ey(e){for(;e;){if(e instanceof HTMLElement&&e.popover==="auto"&&Ao.get(e)==="showing")return e;if(e=e instanceof Element&&e.assignedSlot||e.parentElement||Mo(e),e instanceof yd&&(e=e.host),e instanceof Document)return}}function Kz(e){for(;e;){const t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if(e=e.parentElement||Mo(e),e instanceof yd&&(e=e.host),e instanceof Document)return}}function Kp(e,t){const r=new Map;let o=0;for(const i of t||[])r.set(i,o),o+=1;r.set(e,o),o+=1;let a=null;function l(i){if(!i)return;let s=!1,c=null,u=null;for(;!s;){if(c=Ey(i)||null,c===null||!r.has(c))return;(e.popover==="hint"||c.popover==="auto")&&(s=!0),s||(i=c.parentElement)}u=r.get(c),(a===null||r.get(a)<u)&&(a=c)}return l(e.parentElement||Mo(e)),a}function Jz(e){return e.hidden||e instanceof yd||(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 Zz(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 l=t.querySelectorAll("slot");for(const i of l){const s=i.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(Jz(a))return a;a=o.nextNode()}}function Qz(e){var t;(t=Zz(e))==null||t.focus()}var pi=new WeakMap;function au(e){if(!Vr(e,!1))return;const t=e.ownerDocument;if(!e.dispatchEvent(new Ki("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!Vr(e,!1))return;let r=!1;const o=e.popover;let a=null;const l=Kp(e,er.get(t)||new Set),i=Kp(e,on.get(t)||new Set);if(o==="auto"&&(lu(on.get(t)||new Set,r,!0),Or(l||t,r,!0),a="auto"),o==="hint"&&(i?(Or(i,r,!0),a="hint"):(lu(on.get(t)||new Set,r,!0),l?(Or(l,r,!0),a="auto"):a="hint")),o==="auto"||o==="hint"){if(o!==e.popover||!Vr(e,!1))return;za(t)||(r=!0),a==="auto"?(er.has(t)||er.set(t,new Set),er.get(t).add(e)):a==="hint"&&(on.has(t)||on.set(t,new Set),on.get(t).add(e))}pi.delete(e);const s=t.activeElement;e.classList.add(":popover-open"),Ao.set(e,"showing"),Ol.has(t)||Ol.set(t,new Set),Ol.get(t).add(e),Cy(mi.get(e),!0),Qz(e),r&&s&&e.popover==="auto"&&pi.set(e,s),$y(e,"closed","open")}function Lo(e,t=!1,r=!1){var o,a;if(!Vr(e,!0))return;const l=e.ownerDocument;if(["auto","hint"].includes(e.popover)&&(Or(e,t,r),!Vr(e,!0)))return;const i=er.get(l)||new Set,s=i.has(e)&&Fa(i)===e;if(Cy(mi.get(e),!1),mi.delete(e),r&&(e.dispatchEvent(new Ki("beforetoggle",{oldState:"open",newState:"closed"})),s&&Fa(i)!==e&&Or(e,t,r),!Vr(e,!0)))return;(o=Ol.get(l))==null||o.delete(e),i.delete(e),(a=on.get(l))==null||a.delete(e),e.classList.remove(":popover-open"),Ao.set(e,"hidden"),r&&$y(e,"open","closed");const c=pi.get(e);c&&(pi.delete(e),t&&c.focus())}function eU(e,t=!1,r=!1){let o=za(e);for(;o;)Lo(o,t,r),o=za(e)}function lu(e,t=!1,r=!1){let o=Xp(e);for(;o;)Lo(o,t,r),o=Xp(e)}function Jp(e,t,r,o){let a=!1,l=!1;for(;a||!l;){l=!0;let i=null,s=!1;for(const c of t)if(c===e)s=!0;else if(s){i=c;break}if(!i)return;for(;fi(i)==="showing"&&t.size;)Lo(Fa(t),r,o);t.has(e)&&Fa(t)!==e&&(a=!0),a&&(o=!1)}}function Or(e,t,r){var o,a;const l=e.ownerDocument||e;if(e instanceof Document)return eU(l,t,r);if((o=on.get(l))!=null&&o.has(e)){Jp(e,on.get(l),t,r);return}lu(on.get(l)||new Set,t,r),(a=er.get(l))!=null&&a.has(e)&&Jp(e,er.get(l),t,r)}var Gs=new WeakMap;function Zp(e){if(!e.isTrusted)return;const t=e.composedPath()[0];if(!t)return;const r=t.ownerDocument;if(!za(r))return;const o=Xz(t);if(o&&e.type==="pointerdown")Gs.set(r,o);else if(e.type==="pointerup"){const a=Gs.get(r)===o;Gs.delete(r),a&&Or(o||r,!1,!0)}}var Ys=new WeakMap;function Cy(e,t=!1){if(!e)return;Ys.has(e)||Ys.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=Ys.get(e);o?e.setAttribute("aria-expanded",o):e.removeAttribute("aria-expanded")}}var Qp=globalThis.ShadowRoot||function(){};function tU(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype=="object"&&"popover"in HTMLElement.prototype}function Br(e,t,r){const o=e[t];Object.defineProperty(e,t,{value(a){return o.call(this,r(a))}})}var nU=/(^|[^\\]):popover-open\b/g;function rU(){return typeof globalThis.CSSLayerBlockRule=="function"}function oU(){const e=rU();return`
|
|
434
434
|
${e?"@layer popover-polyfill {":""}
|
|
435
435
|
:where([popover]) {
|
|
436
436
|
position: fixed;
|
|
@@ -492,4 +492,4 @@ ${e?"@layer popover-polyfill {":""}
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
${e?"}":""}
|
|
495
|
-
`}var ao=null;function Xs(e){const t=aU();if(ao===null)try{ao=new CSSStyleSheet,ao.replaceSync(t)}catch{ao=!1}if(ao===!1){const r=document.createElement("style");r.textContent=t,e instanceof Document?e.head.prepend(r):e.prepend(r)}else e.adoptedStyleSheets=[ao,...e.adoptedStyleSheets]}function lU(){if(typeof window>"u")return;window.ToggleEvent=window.ToggleEvent||Ki;function e(c){return c?.includes(":popover-open")&&(c=c.replace(rU,"$1.\\:popover-open")),c}Br(Document.prototype,"querySelector",e),Br(Document.prototype,"querySelectorAll",e),Br(Element.prototype,"querySelector",e),Br(Element.prototype,"querySelectorAll",e),Br(Element.prototype,"matches",e),Br(Element.prototype,"closest",e),Br(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={}){au(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Lo(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(c={}){return typeof c=="boolean"&&(c={force:c}),Ao.get(this)==="showing"&&c.force===void 0||c.force===!1?Lo(this,!0,!0):(c.force===void 0||c.force===!0)&&au(this),Ao.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 Xs(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&&Xs(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=Mo(this),f=this.getAttribute("popovertarget");return(d instanceof Document||d instanceof Qp)&&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 l=c=>{if(c.defaultPrevented)return;const u=c.composedPath(),d=u[0];if(!(d instanceof Element)||d?.shadowRoot)return;const f=Mo(d);if(!(f instanceof Qp||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){Xz(m),c.preventDefault();return}},i=c=>{const u=c.key,d=c.target;!c.defaultPrevented&&d&&(u==="Escape"||u==="Esc")&&Or(d.ownerDocument,!0,!0)};(c=>{c.addEventListener("click",l),c.addEventListener("keydown",i),c.addEventListener("pointerdown",Zp),c.addEventListener("pointerup",Zp)})(document),Xs(document)}nU()||lU();const iU={install:(e,t={})=>{e.directive("click-outside",QF),e.directive("ripple",Av),e.directive("pattern",Bv),e.directive("reveal",Dv),e.use(ZF),e.use(xv),e.use(ky,t.toast||{}),e.use(xF,{themes:{"bgl-theme":{triggers:["click"],autoHide:!0,placement:"bottom"}}});const r=Rh(t.i18n||{});e.use(r)}};var sU=[["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 Sy=sU.map(([e,t,r,o=0,a=[]])=>({name:e,iso2:t,dialCode:r,priority:o,areaCodes:a}));function cU(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=ir().global.messages,o=(r[e]||r.en)?.timeAgo;return o?{...t,...o}:t}catch{return t}}function bl(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 uU(){try{const{locale:e}=ir().global,t=typeof e=="string"?e:e.value;return["en","es","fr","he","it","ru"].includes(t)?t:"en"}catch{return"en"}}function dU(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||uU(),o=(typeof t=="object"&&t.mode||"relative")==="relative",a=Math.floor((e.getTime()-Date.now())/1e3),l=[{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}],i=cU(r),s=c=>i[c];for(const c of l){const u=Math.floor(Math.abs(a)/c.seconds);if(u>=1){const d=o&&a<0?` ${i.ago}`:"",f=o&&a>0&&i.in!=="in"?`${i.in} `:"";if(r==="he"){const p=bl(s(c.label),u),h=o?a<0?`${i.ago} `:a>0?`${i.in} `:"":"";if(c.label==="day"&&a>0){const y=Math.floor(Math.abs(a)%86400/3600),b=bl(i.hour,y);return`${h}${u===1?p:`${u} ${p}`}${y>0?y===1?` ${b}`:` ${y} ${b}`:""}`}return`${h}${u===1?p:`${u} ${p}`}`}const m=bl(s(c.label),u);if(c.label==="day"&&a>0){const p=Math.floor(Math.abs(a)%86400/3600),h=bl(i.hour,p);return`${f}${u} ${m}${p>0?` ${p} ${h}`:""}${d}`}return`${f}${u} ${m}${d}`}}return i.justNow}function hi(e,t,r){let o,a="",l,i={};if(typeof e=="object"&&e!==null){i=e;const{id:s,text:c,icon:u}=i;o=s,a=c??"",l=u}else o=e,t!=null&&(typeof t=="string"&&t.length<=30&&!t.includes(" ")&&(t.includes("-")||t.includes("_")||t.length<=12)&&t===t.toLowerCase()?(l=t,r&&(i=r)):(a=t,r&&(i=r)));return{$el:"btn",id:o,class:i.class,vIf:i.vIf,style:i.style,onClick:i.onClick,attrs:{value:a||(i.text??"")||"",variant:i.variant,size:i.size,disabled:i.disabled,loading:i.loading,icon:l??i.icon,iconPosition:i.iconPosition,href:i.href,target:i.target}}}function xy(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?hi(e,t,r||{}):hi({id:e,icon:t,...r})}function Ny(e,t,r){let o,a={};if(typeof e=="object"&&e!==null){a=e;const{id:l}=a;o=l}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 By(e,t,r){let o,a={};if(typeof e=="object"&&e!==null){a=e;const{id:l}=a;o=l}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 fU(e){return{$el:"pill",id:e?.id,class:e?.class,vIf:e?.vIf,style:e?.style,attrs:e?.attrs||{}}}function Dy(...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)(Bt),class:t?.class,vIf:t?.vIf,style:t?.style,attrs:o,children:r}}function Ay(e,t){return{$el:(0,n.markRaw)(An),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 My(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 bd(e,t){for(const r of t){if(r.id===e)return r;if(r.children&&r.children.length>0){const o=bd(e,r.children);if(o)return o}}}function _d(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=_d;function mU(){return{btn:hi,iconBtn:Ty,txt:Ny,img:By,dropdown:Dy,listItem:Ay,container:My,findElementById:bd,getBaseElementField:xy,col:Ly,column:_d}}var pU={"":/<[^>]*>?/g," ":/ /g,'"':/"/g,"'":/'/g,"&":/&/g,"<":/</g,">":/>/g};function hU(e){return e?Object.entries(pU).reduce((t,[r,o])=>t.replace(o,r),e):""}var gU=/[\p{N}\p{L}\s]/gu;function Ks(e){return e.match(gU)?.join("").toLowerCase()??""}function vU(e,t){let r=e;for(const o of t.split(".")){if(r==null||typeof r!="object")return;r=r[o]}return r}function Py(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)?Py(o,a):[a]})}function eh(e){return e==null?"":typeof e=="string"?hU(e):typeof e=="number"||typeof e=="boolean"?String(e):e instanceof Date?e.toISOString():""}function yU(e=[],t={}){const{minChars:r=1}=t,o=(0,n.shallowReactive)({_list:e,searchTerm:""});let a=[];function l(c,u=new WeakSet){if(u.has(c))return"";u.add(c);const d=t.keys??Py(c),f=[];for(const m of d){const p=vU(c,m);if(Array.isArray(p))for(const h of p)if(h&&typeof h=="object"&&!(h instanceof Date))f.push(l(h,u));else{const y=eh(h);y&&f.push(Ks(y))}else{const h=eh(p);h&&f.push(Ks(h))}}return f.join(" ")}function i(c){a=c.map(u=>l(u))}i(e);const s=(0,n.computed)(()=>{let c=o._list;if(o.searchTerm.length>=r){const u=Ks(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,i(c)},get length(){return s.value.length},[Symbol.iterator](){return s.value[Symbol.iterator]()}}}var Jo=null;async function Iy(){const e=sessionStorage.getItem("ipapi");return e?JSON.parse(e):(Jo||(Jo=Ru.get("https://ipapi.co/json/").then(t=>{const r=JSON.stringify(t.data);return sessionStorage.setItem("ipapi",r),Jo=null,t.data}).catch(t=>{throw Jo=null,t})),Jo)}var bU={"":/<[^>]*>?/g," ":/ /g,'"':/"/g,"'":/'/g,"&":/&/g,"<":/</g,">":/>/g};function wd(e){return e?Object.entries(bU).reduce((t,[r,o])=>t.replace(o,r),e):""}var _U=/[\p{N}\p{L}\s]/gu;function uo(e){return e.match(_U)?.join("").toLowerCase()??""}function wU(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 _l(e,t){let r=0;if(e.length===0)return 0;let o=0;for(const l of t)if(e.includes(l)){const i=new RegExp(l,"g"),s=e.match(i);s&&(o+=s.length*l.length),r+=1,e.split(/\s+/).includes(l)&&(r+=.5),e.startsWith(l)&&(r+=.5)}const a=Math.min(1,o/e.length);return r*=1+a*2,r}function wl(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function kU(e){return e==null?"":typeof e=="string"?wd(e):typeof e=="number"||typeof e=="boolean"?String(e):typeof e=="object"&&e instanceof Date?e.toISOString():""}function Vy(e){const{searchTerm:t,items:r=[],keysToSearch:o,fieldWeights:a={},minChars:l=2}=e,i=(0,n.toValue)(t),s=(0,n.toValue)(r)||[];if(!i||i.length<l)return s;const c=uo(i).split(/\s+/).filter(y=>y.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(y){if(y in a){const g=a[y];if(typeof g=="number")return g}const b=y.split(".").pop()||"";return b in u?u[b]:1}function f(y,b=""){return!y||typeof y!="object"?[]:Object.keys(y).flatMap(g=>{const v=y[g],_=b?`${b}.${g}`:g;return v&&typeof v=="object"&&!Array.isArray(v)?[_,...f(v,_)]:[_]})}function m(y){let b=0;if(wl(y))return _l(uo(String(y)),c);if(Array.isArray(y)){for(const v of y)if(wl(v)){const _=uo(String(v));b+=_l(_,c)}return b}const g=o||f(y);for(const v of g){const _=wU(y,String(v));if(_==null)continue;if(Array.isArray(_)){for(const S of _)if(wl(S)){const E=_l(uo(wd(String(S))),c),$=d(String(v));b+=E*$}continue}if(typeof _=="object"&&!wl(_))continue;const w=_l(uo(kU(_)),c),k=d(String(v));b+=w*k}return b}const p=s.map(y=>[y,m(y)]).filter(([,y])=>y>0);let h=p;if(p.length>0){const y=Math.max(...p.map(([,b])=>b));if(y>5){const b=y*.25;h=p.filter(([,g])=>g>=b)}else if(y>2){const b=y*.15;h=p.filter(([,g])=>g>=b)}}return h.sort(([,y],[,b])=>b-y).map(([y])=>y)}function Oy(e,t){let r,o;const a=Array.isArray(e),l=typeof e=="function",i=typeof e=="object"&&e!==null&&"value"in e&&!("items"in e);a||l||i?(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),y=()=>{const _=h();return u&&(_&&typeof _=="string"&&_.length>=c||c===0)?m.value:Vy(r)},b=(0,n.computed)(()=>y()),g=(0,n.computed)(()=>b.value.length),v={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&&(v.searchTerm=o),v}exports.$=lt;exports.Accordion=db;exports.AccordionItem=vb;exports.AddToCalendar=kb;exports.AddressSearch=_b;exports.Alert=Db;exports.AppContent=kL;exports.AppLayout=SL;exports.AppSidebar=HL;exports.ArrayInput=io;exports.Avatar=Hh;exports.Badge=mo;exports.BagelVue=iU;exports.BarChart=xE;exports.BglVideo=$u;exports.BottomMenu=qL;exports.Btn=oe;exports.Calendar=O3;exports.Card=sr;exports.CheckInput=Tt;exports.Checkbox=l4;exports.CodeEditor=Tu;exports.ColorInput=Nn;exports.DAY=mO;exports.DataPreview=G3;exports.DataTable=a0;exports.DateChain=yt;exports.DateInput=Ca;exports.DatePicker=x0;exports.Dialog=Yn;exports.DialogConfirm=Ev;exports.DialogForm=Cv;exports.DialogPlugin=xv;exports.DialogSymbol=dd;exports.Divider=XL;exports.Donut=UE;exports.DragOver=dx;exports.Draggable=l0;exports.Dropdown=Bt;exports.EMAIL_REGEX=Mr;exports.EmailInput=Nu;exports.EmptyState=$0;exports.FONT_AWESOME_BRANDS_ICONS=$l;exports.FONT_AWESOME_ICONS=dc;exports.FieldSetVue=iT;exports.FilterQuery=qT;exports.Flag=gc;exports.FormFlow=ud;exports.Funnel=lC;exports.Gauge=pC;exports.HOUR=fO;exports.IMAGE_FORMATS=T0;exports.IMAGE_FORMATS_REGEXP=Gl;exports.Icon=be;exports.IframeVue=gL;exports.Image=wa;exports.JSONInput=Q4;exports.KanbanBoard=ST;exports.Layout=JL;exports.LineChart=fE;exports.ListItem=An;exports.ListView=Ug;exports.Loading=Wr;exports.MATERIAL_ICONS=Uh;exports.MINUTE=dO;exports.MOBILE_BREAKPOINT=O4;exports.MS=Fo;exports.MapEmbed=GP;exports.MarkdownEditor=oN;exports.Menu=eI;exports.MultiStepForm=jR;exports.NavBar=sI;exports.NumberInput=Dn;exports.OTP=vN;exports.PageTitle=Hg;exports.Pagination=_I;exports.Panel=nP;exports.PasswordInput=F0;exports.Pill=mo;exports.Progress=EI;exports.RadialBars=wC;exports.RadioGroup=U0;exports.RangeInput=Du;exports.RankBars=xC;exports.Rating=xI;exports.Resizable=oP;exports.RichText=Fu;exports.RouterWrapper=BI;exports.SECOND=uO;exports.SelectBtn=hg;exports.SelectInput=Vt;exports.SidebarMenu=iP;exports.SignaturePad=i9;exports.Skeleton=da;exports.Sparkline=ah;exports.Spreadsheet=sV;exports.StatCard=GC;exports.Swiper=lv;exports.TabbedLayout=mP;exports.TableField=J9;exports.TableSchema=a0;exports.Tabs=gP;exports.TabsBody=NP;exports.TabsNav=Ri;exports.TelInput=Yu;exports.TextInput=Fe;exports.Timeline=xP;exports.TimelineItem=zg;exports.ToastPlugin=ky;exports.ToggleInput=Vi;exports.TopBar=J7;exports.UploadInput=xa;exports.VIDEO_FORMATS=N0;exports.VIDEO_FORMATS_REGEXP=B0;exports.WEEK=pO;exports.Zoomer=iv;exports.allCountries=Sy;exports.anyOf=NT;exports.appendScript=Qa;exports.appendStyle=Kc;exports.awaitGlobal=Aa;exports.bagelinkLocales=uc;exports.bindAttrs=Yc;exports.btn=hi;exports.buildQuery=Wa;exports.classify=vv;exports.clearHtml=wd;exports.col=Ly;exports.column=_d;exports.configureTheme=QO;exports.container=My;exports.copyText=pv;exports.createI18n=Rh;exports.createUploadApi=_D;exports.d=vO;exports.dateDiff=nd;exports.debounce=NO;exports.defaultOptions=sv;exports.defaultRowSpan=md;exports.defineSchema=xR;exports.denullify=MO;exports.downloadFile=ld;exports.dropdown=Dy;exports.evaluateQuery=E0;exports.fieldsToSchema=kR;exports.filterRef=yU;exports.findElementById=bd;exports.fmtDate=wO;exports.formatDate=ct;exports.formatString=Gc;exports.fromJSONSchema=NR;exports.fuzzyMatch=Pl;exports.getBaseElementField=xy;exports.getDatePartsMap=rd;exports.getFallbackSchema=yv;exports.getI18n=ir;exports.getNestedValue=fa;exports.getOptionIcon=Sa;exports.getOptionLabel=aa;exports.getOptionValue=gr;exports.handleTimezone=mv;exports.iconBtn=Ty;exports.iffer=AO;exports.img=By;exports.inferFieldType=pd;exports.inferSchemaFieldType=pd;exports.initFormData=$R;exports.initials=hv;exports.ipapi=Iy;exports.isDate=Xc;exports.keyToLabel=Za;exports.listItem=Ay;exports.local=cO;exports.multiStepSchema=TR;exports.normalizeDimension=Wt;exports.normalizeOption=z0;exports.normalizeText=uo;exports.normalizeURL=ad;exports.normalizedFetch=TO;exports.parseQuery=Ea;exports.pathKeyToURL=pn;exports.pattern=Bv;exports.pill=fU;exports.queryFilter=TT;exports.range=BT;exports.required=SR;exports.resolveI18n=$e;exports.reveal=Dv;exports.ripple=Av;exports.sanitizeHtml=gv;exports.schemaToFields=Mv;exports.search=DT;exports.searchItems=Vy;exports.showdown=q;exports.sleep=od;exports.slugify=BO;exports.strJoin=kO;exports.timeAgo=dU;exports.timeDelta=mn;exports.toOptions=SO;exports.tryRun=bv;exports.txt=Ny;exports.useAddToCalendar=eO;exports.useAppLayout=Ku;exports.useBagelInputShell=it;exports.useBglSchema=$v;exports.useDebounceFn=Ur;exports.useDevice=Ja;exports.useDialog=Sv;exports.useDraggable=ka;exports.useElements=mU;exports.useEscape=DO;exports.useEscapeKey=Oi;exports.useExcel=OO;exports.useFileUpload=mg;exports.useGradientVariant=zi;exports.useI18n=nt;exports.useImageSrc=id;exports.useLocalStore=_v;exports.usePolling=GO;exports.useQuery=XO;exports.useResizableLayoutProvider=Fg;exports.useResizeObserver=KO;exports.useSchemaToFields=CR;exports.useSearch=Oy;exports.useTheme=nR;exports.useToast=qz;exports.useValidateFieldValue=kv;exports.utc=iO;exports.uuid4=$O;exports.vDraggable=sx;exports.vResize=wR;exports.validateFormData=ER;
|
|
495
|
+
`}var ao=null;function Xs(e){const t=oU();if(ao===null)try{ao=new CSSStyleSheet,ao.replaceSync(t)}catch{ao=!1}if(ao===!1){const r=document.createElement("style");r.textContent=t,e instanceof Document?e.head.prepend(r):e.prepend(r)}else e.adoptedStyleSheets=[ao,...e.adoptedStyleSheets]}function aU(){if(typeof window>"u")return;window.ToggleEvent=window.ToggleEvent||Ki;function e(c){return c?.includes(":popover-open")&&(c=c.replace(nU,"$1.\\:popover-open")),c}Br(Document.prototype,"querySelector",e),Br(Document.prototype,"querySelectorAll",e),Br(Element.prototype,"querySelector",e),Br(Element.prototype,"querySelectorAll",e),Br(Element.prototype,"matches",e),Br(Element.prototype,"closest",e),Br(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={}){au(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Lo(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(c={}){return typeof c=="boolean"&&(c={force:c}),Ao.get(this)==="showing"&&c.force===void 0||c.force===!1?Lo(this,!0,!0):(c.force===void 0||c.force===!0)&&au(this),Ao.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 Xs(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&&Xs(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=Mo(this),f=this.getAttribute("popovertarget");return(d instanceof Document||d instanceof Qp)&&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 l=c=>{if(c.defaultPrevented)return;const u=c.composedPath(),d=u[0];if(!(d instanceof Element)||d?.shadowRoot)return;const f=Mo(d);if(!(f instanceof Qp||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){Yz(m),c.preventDefault();return}},i=c=>{const u=c.key,d=c.target;!c.defaultPrevented&&d&&(u==="Escape"||u==="Esc")&&Or(d.ownerDocument,!0,!0)};(c=>{c.addEventListener("click",l),c.addEventListener("keydown",i),c.addEventListener("pointerdown",Zp),c.addEventListener("pointerup",Zp)})(document),Xs(document)}tU()||aU();const lU={install:(e,t={})=>{e.directive("click-outside",ZF),e.directive("ripple",Av),e.directive("pattern",Bv),e.directive("reveal",Dv),e.use(JF),e.use(xv),e.use(ky,t.toast||{}),e.use(SF,{themes:{"bgl-theme":{triggers:["click"],autoHide:!0,placement:"bottom"}}});const r=Rh(t.i18n||{});e.use(r)}};var iU=[["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 Sy=iU.map(([e,t,r,o=0,a=[]])=>({name:e,iso2:t,dialCode:r,priority:o,areaCodes:a}));function sU(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=ir().global.messages,o=(r[e]||r.en)?.timeAgo;return o?{...t,...o}:t}catch{return t}}function bl(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 cU(){try{const{locale:e}=ir().global,t=typeof e=="string"?e:e.value;return["en","es","fr","he","it","ru"].includes(t)?t:"en"}catch{return"en"}}function uU(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||cU(),o=(typeof t=="object"&&t.mode||"relative")==="relative",a=Math.floor((e.getTime()-Date.now())/1e3),l=[{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}],i=sU(r),s=c=>i[c];for(const c of l){const u=Math.floor(Math.abs(a)/c.seconds);if(u>=1){const d=o&&a<0?` ${i.ago}`:"",f=o&&a>0&&i.in!=="in"?`${i.in} `:"";if(r==="he"){const p=bl(s(c.label),u),h=o?a<0?`${i.ago} `:a>0?`${i.in} `:"":"";if(c.label==="day"&&a>0){const y=Math.floor(Math.abs(a)%86400/3600),b=bl(i.hour,y);return`${h}${u===1?p:`${u} ${p}`}${y>0?y===1?` ${b}`:` ${y} ${b}`:""}`}return`${h}${u===1?p:`${u} ${p}`}`}const m=bl(s(c.label),u);if(c.label==="day"&&a>0){const p=Math.floor(Math.abs(a)%86400/3600),h=bl(i.hour,p);return`${f}${u} ${m}${p>0?` ${p} ${h}`:""}${d}`}return`${f}${u} ${m}${d}`}}return i.justNow}function hi(e,t,r){let o,a="",l,i={};if(typeof e=="object"&&e!==null){i=e;const{id:s,text:c,icon:u}=i;o=s,a=c??"",l=u}else o=e,t!=null&&(typeof t=="string"&&t.length<=30&&!t.includes(" ")&&(t.includes("-")||t.includes("_")||t.length<=12)&&t===t.toLowerCase()?(l=t,r&&(i=r)):(a=t,r&&(i=r)));return{$el:"btn",id:o,class:i.class,vIf:i.vIf,style:i.style,onClick:i.onClick,attrs:{value:a||(i.text??"")||"",variant:i.variant,size:i.size,disabled:i.disabled,loading:i.loading,icon:l??i.icon,iconPosition:i.iconPosition,href:i.href,target:i.target}}}function xy(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?hi(e,t,r||{}):hi({id:e,icon:t,...r})}function Ny(e,t,r){let o,a={};if(typeof e=="object"&&e!==null){a=e;const{id:l}=a;o=l}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 By(e,t,r){let o,a={};if(typeof e=="object"&&e!==null){a=e;const{id:l}=a;o=l}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 dU(e){return{$el:"pill",id:e?.id,class:e?.class,vIf:e?.vIf,style:e?.style,attrs:e?.attrs||{}}}function Dy(...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)(Bt),class:t?.class,vIf:t?.vIf,style:t?.style,attrs:o,children:r}}function Ay(e,t){return{$el:(0,n.markRaw)(An),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 My(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 bd(e,t){for(const r of t){if(r.id===e)return r;if(r.children&&r.children.length>0){const o=bd(e,r.children);if(o)return o}}}function _d(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=_d;function fU(){return{btn:hi,iconBtn:Ty,txt:Ny,img:By,dropdown:Dy,listItem:Ay,container:My,findElementById:bd,getBaseElementField:xy,col:Ly,column:_d}}var mU={"":/<[^>]*>?/g," ":/ /g,'"':/"/g,"'":/'/g,"&":/&/g,"<":/</g,">":/>/g};function pU(e){return e?Object.entries(mU).reduce((t,[r,o])=>t.replace(o,r),e):""}var hU=/[\p{N}\p{L}\s]/gu;function Ks(e){return e.match(hU)?.join("").toLowerCase()??""}function gU(e,t){let r=e;for(const o of t.split(".")){if(r==null||typeof r!="object")return;r=r[o]}return r}function Py(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)?Py(o,a):[a]})}function eh(e){return e==null?"":typeof e=="string"?pU(e):typeof e=="number"||typeof e=="boolean"?String(e):e instanceof Date?e.toISOString():""}function vU(e=[],t={}){const{minChars:r=1}=t,o=(0,n.shallowReactive)({_list:e,searchTerm:""});let a=[];function l(c,u=new WeakSet){if(u.has(c))return"";u.add(c);const d=t.keys??Py(c),f=[];for(const m of d){const p=gU(c,m);if(Array.isArray(p))for(const h of p)if(h&&typeof h=="object"&&!(h instanceof Date))f.push(l(h,u));else{const y=eh(h);y&&f.push(Ks(y))}else{const h=eh(p);h&&f.push(Ks(h))}}return f.join(" ")}function i(c){a=c.map(u=>l(u))}i(e);const s=(0,n.computed)(()=>{let c=o._list;if(o.searchTerm.length>=r){const u=Ks(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,i(c)},get length(){return s.value.length},[Symbol.iterator](){return s.value[Symbol.iterator]()}}}var Jo=null;async function Iy(){const e=sessionStorage.getItem("ipapi");return e?JSON.parse(e):(Jo||(Jo=Ru.get("https://ipapi.co/json/").then(t=>{const r=JSON.stringify(t.data);return sessionStorage.setItem("ipapi",r),Jo=null,t.data}).catch(t=>{throw Jo=null,t})),Jo)}var yU={"":/<[^>]*>?/g," ":/ /g,'"':/"/g,"'":/'/g,"&":/&/g,"<":/</g,">":/>/g};function wd(e){return e?Object.entries(yU).reduce((t,[r,o])=>t.replace(o,r),e):""}var bU=/[\p{N}\p{L}\s]/gu;function uo(e){return e.match(bU)?.join("").toLowerCase()??""}function _U(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 _l(e,t){let r=0;if(e.length===0)return 0;let o=0;for(const l of t)if(e.includes(l)){const i=new RegExp(l,"g"),s=e.match(i);s&&(o+=s.length*l.length),r+=1,e.split(/\s+/).includes(l)&&(r+=.5),e.startsWith(l)&&(r+=.5)}const a=Math.min(1,o/e.length);return r*=1+a*2,r}function wl(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function wU(e){return e==null?"":typeof e=="string"?wd(e):typeof e=="number"||typeof e=="boolean"?String(e):typeof e=="object"&&e instanceof Date?e.toISOString():""}function Vy(e){const{searchTerm:t,items:r=[],keysToSearch:o,fieldWeights:a={},minChars:l=2}=e,i=(0,n.toValue)(t),s=(0,n.toValue)(r)||[];if(!i||i.length<l)return s;const c=uo(i).split(/\s+/).filter(y=>y.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(y){if(y in a){const g=a[y];if(typeof g=="number")return g}const b=y.split(".").pop()||"";return b in u?u[b]:1}function f(y,b=""){return!y||typeof y!="object"?[]:Object.keys(y).flatMap(g=>{const v=y[g],_=b?`${b}.${g}`:g;return v&&typeof v=="object"&&!Array.isArray(v)?[_,...f(v,_)]:[_]})}function m(y){let b=0;if(wl(y))return _l(uo(String(y)),c);if(Array.isArray(y)){for(const v of y)if(wl(v)){const _=uo(String(v));b+=_l(_,c)}return b}const g=o||f(y);for(const v of g){const _=_U(y,String(v));if(_==null)continue;if(Array.isArray(_)){for(const S of _)if(wl(S)){const E=_l(uo(wd(String(S))),c),$=d(String(v));b+=E*$}continue}if(typeof _=="object"&&!wl(_))continue;const w=_l(uo(wU(_)),c),k=d(String(v));b+=w*k}return b}const p=s.map(y=>[y,m(y)]).filter(([,y])=>y>0);let h=p;if(p.length>0){const y=Math.max(...p.map(([,b])=>b));if(y>5){const b=y*.25;h=p.filter(([,g])=>g>=b)}else if(y>2){const b=y*.15;h=p.filter(([,g])=>g>=b)}}return h.sort(([,y],[,b])=>b-y).map(([y])=>y)}function Oy(e,t){let r,o;const a=Array.isArray(e),l=typeof e=="function",i=typeof e=="object"&&e!==null&&"value"in e&&!("items"in e);a||l||i?(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),y=()=>{const _=h();return u&&(_&&typeof _=="string"&&_.length>=c||c===0)?m.value:Vy(r)},b=(0,n.computed)(()=>y()),g=(0,n.computed)(()=>b.value.length),v={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&&(v.searchTerm=o),v}exports.$=lt;exports.Accordion=db;exports.AccordionItem=vb;exports.AddToCalendar=kb;exports.AddressSearch=_b;exports.Alert=Db;exports.AppContent=kL;exports.AppLayout=SL;exports.AppSidebar=HL;exports.ArrayInput=io;exports.Avatar=Hh;exports.Badge=mo;exports.BagelVue=lU;exports.BarChart=xE;exports.BglVideo=$u;exports.BottomMenu=qL;exports.Btn=oe;exports.Calendar=O3;exports.Card=sr;exports.CheckInput=Tt;exports.Checkbox=l4;exports.CodeEditor=Tu;exports.ColorInput=Nn;exports.DAY=fO;exports.DataPreview=G3;exports.DataTable=a0;exports.DateChain=yt;exports.DateInput=Ca;exports.DatePicker=x0;exports.Dialog=Yn;exports.DialogConfirm=Ev;exports.DialogForm=Cv;exports.DialogPlugin=xv;exports.DialogSymbol=dd;exports.Divider=XL;exports.Donut=UE;exports.DragOver=dx;exports.Draggable=l0;exports.Dropdown=Bt;exports.EMAIL_REGEX=Mr;exports.EmailInput=Nu;exports.EmptyState=$0;exports.FONT_AWESOME_BRANDS_ICONS=$l;exports.FONT_AWESOME_ICONS=dc;exports.FieldSetVue=iT;exports.FilterQuery=qT;exports.Flag=gc;exports.FormFlow=ud;exports.Funnel=lC;exports.Gauge=pC;exports.HOUR=dO;exports.IMAGE_FORMATS=T0;exports.IMAGE_FORMATS_REGEXP=Gl;exports.Icon=be;exports.IframeVue=gL;exports.Image=wa;exports.JSONInput=Q4;exports.KanbanBoard=ST;exports.Layout=JL;exports.LineChart=fE;exports.ListItem=An;exports.ListView=Ug;exports.Loading=Wr;exports.MATERIAL_ICONS=Uh;exports.MINUTE=uO;exports.MOBILE_BREAKPOINT=O4;exports.MS=Fo;exports.MapEmbed=GP;exports.MarkdownEditor=oN;exports.Menu=eI;exports.MultiStepForm=WR;exports.NavBar=sI;exports.NumberInput=Dn;exports.OTP=vN;exports.PageTitle=Hg;exports.Pagination=_I;exports.Panel=nP;exports.PasswordInput=F0;exports.Pill=mo;exports.Progress=EI;exports.RadialBars=wC;exports.RadioGroup=U0;exports.RangeInput=Du;exports.RankBars=xC;exports.Rating=xI;exports.Resizable=oP;exports.RichText=Fu;exports.RouterWrapper=BI;exports.SECOND=cO;exports.SelectBtn=hg;exports.SelectInput=Vt;exports.SidebarMenu=iP;exports.SignaturePad=i9;exports.Skeleton=da;exports.Sparkline=ah;exports.Spreadsheet=sV;exports.StatCard=GC;exports.Swiper=lv;exports.TabbedLayout=mP;exports.TableField=J9;exports.TableSchema=a0;exports.Tabs=gP;exports.TabsBody=NP;exports.TabsNav=Ri;exports.TelInput=Yu;exports.TextInput=Fe;exports.Timeline=xP;exports.TimelineItem=zg;exports.ToastPlugin=ky;exports.ToggleInput=Vi;exports.TopBar=K7;exports.UploadInput=xa;exports.VIDEO_FORMATS=N0;exports.VIDEO_FORMATS_REGEXP=B0;exports.WEEK=mO;exports.Zoomer=iv;exports.allCountries=Sy;exports.anyOf=NT;exports.appendScript=Qa;exports.appendStyle=Kc;exports.awaitGlobal=Aa;exports.bagelinkLocales=uc;exports.bindAttrs=Yc;exports.btn=hi;exports.buildQuery=Wa;exports.classify=vv;exports.clearHtml=wd;exports.col=Ly;exports.column=_d;exports.configureTheme=ZO;exports.container=My;exports.copyText=pv;exports.createI18n=Rh;exports.createUploadApi=_D;exports.d=gO;exports.dateDiff=nd;exports.debounce=TO;exports.defaultOptions=sv;exports.defaultRowSpan=md;exports.defineSchema=SR;exports.denullify=AO;exports.downloadFile=ld;exports.dropdown=Dy;exports.evaluateQuery=E0;exports.fieldsToSchema=wR;exports.filterRef=vU;exports.findElementById=bd;exports.fmtDate=_O;exports.formatDate=ct;exports.formatString=Gc;exports.fromJSONSchema=TR;exports.fuzzyMatch=Pl;exports.getBaseElementField=xy;exports.getDatePartsMap=rd;exports.getFallbackSchema=yv;exports.getI18n=ir;exports.getNestedValue=fa;exports.getOptionIcon=Sa;exports.getOptionLabel=aa;exports.getOptionValue=gr;exports.handleTimezone=mv;exports.iconBtn=Ty;exports.iffer=DO;exports.img=By;exports.inferFieldType=pd;exports.inferSchemaFieldType=pd;exports.initFormData=kR;exports.initials=hv;exports.ipapi=Iy;exports.isDate=Xc;exports.keyToLabel=Za;exports.listItem=Ay;exports.local=sO;exports.multiStepSchema=xR;exports.normalizeDimension=Wt;exports.normalizeOption=z0;exports.normalizeText=uo;exports.normalizeURL=ad;exports.normalizedFetch=xO;exports.parseQuery=Ea;exports.pathKeyToURL=pn;exports.pattern=Bv;exports.pill=dU;exports.queryFilter=TT;exports.range=BT;exports.required=CR;exports.resolveI18n=$e;exports.reveal=Dv;exports.ripple=Av;exports.sanitizeHtml=gv;exports.schemaToFields=Mv;exports.search=DT;exports.searchItems=Vy;exports.showdown=q;exports.sleep=od;exports.slugify=NO;exports.strJoin=wO;exports.timeAgo=uU;exports.timeDelta=mn;exports.toOptions=CO;exports.tryRun=bv;exports.txt=Ny;exports.useAddToCalendar=Q7;exports.useAppLayout=Ku;exports.useBagelInputShell=it;exports.useBglSchema=$v;exports.useDebounceFn=Ur;exports.useDevice=Ja;exports.useDialog=Sv;exports.useDraggable=ka;exports.useElements=fU;exports.useEscape=BO;exports.useEscapeKey=Oi;exports.useExcel=VO;exports.useFileUpload=mg;exports.useGradientVariant=zi;exports.useI18n=nt;exports.useImageSrc=id;exports.useLocalStore=_v;exports.usePolling=qO;exports.useQuery=YO;exports.useResizableLayoutProvider=Fg;exports.useResizeObserver=XO;exports.useSchemaToFields=ER;exports.useSearch=Oy;exports.useTheme=tR;exports.useToast=jz;exports.useValidateFieldValue=kv;exports.utc=lO;exports.uuid4=kO;exports.vDraggable=sx;exports.vResize=_R;exports.validateFormData=$R;
|