diff --git a/assets/images/header/horizontal-center.svg b/assets/images/header/horizontal-center.svg index 619802f5..e730c2b4 100644 --- a/assets/images/header/horizontal-center.svg +++ b/assets/images/header/horizontal-center.svg @@ -1,28 +1,35 @@ - - - + + + diff --git a/assets/images/header/horizontal-left.svg b/assets/images/header/horizontal-left.svg index e8d89c8f..40caa37b 100644 --- a/assets/images/header/horizontal-left.svg +++ b/assets/images/header/horizontal-left.svg @@ -1,28 +1,35 @@ - - - + + + diff --git a/assets/images/header/horizontal-right.svg b/assets/images/header/horizontal-right.svg index 056100a6..7e0d1b0f 100644 --- a/assets/images/header/horizontal-right.svg +++ b/assets/images/header/horizontal-right.svg @@ -1,28 +1,35 @@ - - - + + + diff --git a/assets/images/header/sidebar-1.svg b/assets/images/header/sidebar-1.svg index 1f203cbb..314a6b04 100644 --- a/assets/images/header/sidebar-1.svg +++ b/assets/images/header/sidebar-1.svg @@ -1,36 +1,34 @@ - - - + + + diff --git a/assets/images/header/sidebar-2.svg b/assets/images/header/sidebar-2.svg index 864d44e8..938bddba 100644 --- a/assets/images/header/sidebar-2.svg +++ b/assets/images/header/sidebar-2.svg @@ -1,37 +1,34 @@ - - - + + + diff --git a/assets/images/header/sidebar-topbar.svg b/assets/images/header/sidebar-topbar.svg new file mode 100644 index 00000000..24f3580c --- /dev/null +++ b/assets/images/header/sidebar-topbar.svg @@ -0,0 +1,44 @@ + + + diff --git a/assets/images/header/stacked_style0.svg b/assets/images/header/stacked_style0.svg index ad9d1de8..87bf4f94 100644 --- a/assets/images/header/stacked_style0.svg +++ b/assets/images/header/stacked_style0.svg @@ -1,26 +1,35 @@ - - - + + + diff --git a/assets/images/header/stacked_style1.svg b/assets/images/header/stacked_style1.svg index 4d861479..a78bbc9e 100644 --- a/assets/images/header/stacked_style1.svg +++ b/assets/images/header/stacked_style1.svg @@ -1 +1,26 @@ - \ No newline at end of file + + + diff --git a/assets/images/header/stacked_style2.svg b/assets/images/header/stacked_style2.svg index 2f5a7be5..b0adf32b 100644 --- a/assets/images/header/stacked_style2.svg +++ b/assets/images/header/stacked_style2.svg @@ -1,26 +1,35 @@ - - - + + + diff --git a/assets/images/header/stacked_style3.svg b/assets/images/header/stacked_style3.svg index 3b2e7383..03482db1 100644 --- a/assets/images/header/stacked_style3.svg +++ b/assets/images/header/stacked_style3.svg @@ -1 +1,35 @@ - \ No newline at end of file + + + diff --git a/assets/images/header/stacked_style4.svg b/assets/images/header/stacked_style4.svg index 37275c7f..0e818f8e 100644 --- a/assets/images/header/stacked_style4.svg +++ b/assets/images/header/stacked_style4.svg @@ -1,29 +1,39 @@ - - - + + + diff --git a/assets/vendor/astroid/js/countdown_cls.js b/assets/vendor/astroid/js/countdown_cls.js new file mode 100644 index 00000000..2836ddbd --- /dev/null +++ b/assets/vendor/astroid/js/countdown_cls.js @@ -0,0 +1,27 @@ +class Countdown_cls { + constructor(el) { + this.el = jQuery(el); + this.start(); + } + start() { + moment.tz.setDefault(this.el.data('offset')); + let _timer = moment(this.el.data('date'), 'YYYY/MM/DD HH:mm:ss').tz(this.el.data('offset')); + let _timezone = moment.tz.guess(); + let _countdown = _timer.clone().tz(_timezone).format('YYYY/MM/DD HH:mm:ss'); + let _el = this.el; + this.el.countdown(_countdown).on('update.countdown', function(event) { + jQuery(this).children('.days').find('.count').html(event.strftime('%D')); + jQuery(this).children('.hours').find('.count').html(event.strftime('%H')); + jQuery(this).children('.minutes').find('.count').html(event.strftime('%M')); + jQuery(this).children('.seconds').find('.count').html(event.strftime('%S')); + }).on('finish.countdown', function(event) { + jQuery(this).html('
=q){Q(Fe,le,ye,!0);continue}let tt;if(Fe.key!=null)tt=J.get(Fe.key);else for(te=nt;te<=Ie;te++)if(ke[te-nt]===0&&Br(Fe,Y[te])){tt=te;break}tt===void 0?Q(Fe,le,ye,!0):(ke[tt-nt]=ge+1,tt>=me?me=tt:ne=!0,v(Fe,Y[tt],z,null,le,ye,Ce,Te,xe),B++)}const He=ne?mT(ke):qi;for(te=He.length-1,ge=q-1;ge>=0;ge--){const Fe=nt+ge,tt=Y[Fe],mt=Fe+1{const{el:ye,type:Ce,transition:Te,children:xe,shapeFlag:ge}=L;if(ge&6){X(L.component.subTree,Y,z,ce);return}if(ge&128){L.suspense.move(Y,z,ce);return}if(ge&64){Ce.move(L,Y,z,Ee);return}if(Ce===ae){r(ye,Y,z);for(let Ne=0;Ne Te.enter(ye),le);else{const{leave:Ne,delayLeave:Ie,afterLeave:We}=Te,nt=()=>r(ye,Y,z),J=()=>{Ne(ye,()=>{nt(),We&&We()})};Ie?Ie(ye,nt,J):J()}else r(ye,Y,z)},Q=(L,Y,z,ce=!1,le=!1)=>{const{type:ye,props:Ce,ref:Te,children:xe,dynamicChildren:ge,shapeFlag:Re,patchFlag:Ne,dirs:Ie}=L;if(Te!=null&&bc(Te,null,z,L,!0),Re&256){Y.ctx.deactivate(L);return}const We=Re&1&&Ie,nt=!Jo(L);let J;if(nt&&(J=Ce&&Ce.onVnodeBeforeUnmount)&&tr(J,Y,L),Re&6)pe(L.component,z,ce);else{if(Re&128){L.suspense.unmount(z,ce);return}We&&la(L,null,Y,"beforeUnmount"),Re&64?L.type.remove(L,Y,z,le,Ee,ce):ge&&(ye!==ae||Ne>0&&Ne&64)?fe(ge,Y,z,!1,!0):(ye===ae&&Ne&384||!le&&Re&16)&&fe(xe,Y,z),ce&&j(L)}(nt&&(J=Ce&&Ce.onVnodeUnmounted)||We)&&$n(()=>{J&&tr(J,Y,L),We&&la(L,null,Y,"unmounted")},z)},j=L=>{const{type:Y,el:z,anchor:ce,transition:le}=L;if(Y===ae){se(z,ce);return}if(Y===Qo){w(L);return}const ye=()=>{a(z),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(L.shapeFlag&1&&le&&!le.persisted){const{leave:Ce,delayLeave:Te}=le,xe=()=>Ce(z,ye);Te?Te(L.el,ye,xe):xe()}else ye()},se=(L,Y)=>{let z;for(;L!==Y;)z=f(L),a(L),L=z;a(Y)},pe=(L,Y,z)=>{const{bum:ce,scope:le,update:ye,subTree:Ce,um:Te}=L;ce&&Ki(ce),le.stop(),ye&&(ye.active=!1,Q(Ce,L,Y,z)),Te&&$n(Te,Y),$n(()=>{L.isUnmounted=!0},Y),Y&&Y.pendingBranch&&!Y.isUnmounted&&L.asyncDep&&!L.asyncResolved&&L.suspenseId===Y.pendingId&&(Y.deps--,Y.deps===0&&Y.resolve())},fe=(L,Y,z,ce=!1,le=!1,ye=0)=>{for(let Ce=ye;Ce L.shapeFlag&6?Oe(L.component.subTree):L.shapeFlag&128?L.suspense.next():f(L.anchor||L.el),be=(L,Y,z)=>{L==null?Y._vnode&&Q(Y._vnode,null,null,!0):v(Y._vnode||null,L,Y,null,null,null,z),Mv(),gc(),Y._vnode=L},Ee={p:v,um:Q,m:X,r:j,mt:k,mc:R,pc:N,pbc:S,n:Oe,o:t};let et,oe;return e&&([et,oe]=e(Ee)),{render:be,hydrate:et,createApp:sT(be,et)}}function Po({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function L0(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function rm(t,e,n=!1){const r=t.children,a=e.children;if(Ve(r)&&Ve(a))for(let o=0;o >1,t[n[s]]0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=e[i];return n}const vT=t=>t.__isTeleport,rl=t=>t&&(t.disabled||t.disabled===""),Wv=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Oh=(t,e)=>{const n=t&&t.to;return Gt(n)?e?e(n):null:n},gT={__isTeleport:!0,process(t,e,n,r,a,o,i,s,l,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:v,createComment:g}}=u,y=rl(e.props);let{shapeFlag:x,children:_,dynamicChildren:w}=e;if(t==null){const A=e.el=v(""),I=e.anchor=v("");h(A,n,r),h(I,n,r);const F=e.target=Oh(e.props,p),R=e.targetAnchor=v("");F&&(h(R,F),i=i||Wv(F));const E=(S,O)=>{x&16&&c(_,S,O,a,o,i,s,l)};y?E(n,I):F&&E(F,R)}else{e.el=t.el;const A=e.anchor=t.anchor,I=e.target=t.target,F=e.targetAnchor=t.targetAnchor,R=rl(t.props),E=R?n:I,S=R?A:F;if(i=i||Wv(I),w?(f(t.dynamicChildren,w,E,a,o,i,s),rm(t,e,!0)):l||d(t,e,E,S,a,o,i,s,!1),y)R?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Du(e,n,A,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const O=e.target=Oh(e.props,p);O&&Du(e,O,null,u,0)}else R&&Du(e,I,F,u,1)}F0(e)},remove(t,e,n,r,{um:a,o:{remove:o}},i){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:d,props:f}=t;if(d&&o(c),i&&o(u),s&16){const h=i||!rl(f);for(let p=0;p 0?nr||qi:null,U0(),si>0&&nr&&nr.push(t),t}function $(t,e,n,r,a,o){return j0(m(t,e,n,r,a,o,!0))}function Ue(t,e,n,r,a){return j0(de(t,e,n,r,a,!0))}function xo(t){return t?t.__v_isVNode===!0:!1}function Br(t,e){return t.type===e.type&&t.key===e.key}function bT(t){}const ad="__vInternal",B0=({key:t})=>t??null,Xu=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Gt(t)||an(t)||st(t)?{i:wn,r:t,k:e,f:!!n}:t:null);function m(t,e=null,n=null,r=0,a=null,o=t===ae?0:1,i=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&B0(e),ref:e&&Xu(e),scopeId:Zc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:wn};return s?(om(l,n),o&128&&t.normalize(l)):n&&(l.shapeFlag|=Gt(n)?8:16),si>0&&!i&&nr&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&nr.push(l),l}const de=wT;function wT(t,e=null,n=null,r=0,a=null,o=!1){if((!t||t===c0)&&(t=Vn),xo(t)){const s=wa(t,e,!0);return n&&om(s,n),si>0&&!o&&nr&&(s.shapeFlag&6?nr[nr.indexOf(t)]=s:nr.push(s)),s.patchFlag|=-2,s}if(OT(t)&&(t=t.__vccOpts),e){e=Gn(e);let{class:s,style:l}=e;s&&!Gt(s)&&(e.class=Se(s)),Rt(l)&&(Vp(l)&&!Ve(l)&&(l=zt({},l)),e.style=bt(l))}const i=Gt(t)?1:d0(t)?128:vT(t)?64:Rt(t)?4:st(t)?2:0;return m(t,e,n,r,a,i,o,!0)}function Gn(t){return t?Vp(t)||ad in t?zt({},t):t:null}function wa(t,e,n=!1){const{props:r,ref:a,patchFlag:o,children:i}=t,s=e?_n(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:s,key:s&&B0(s),ref:e&&e.ref?n&&a?Ve(a)?a.concat(Xu(e)):[a,Xu(e)]:Xu(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:i,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ae?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&wa(t.ssContent),ssFallback:t.ssFallback&&wa(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function gt(t=" ",e=0){return de(ii,null,t,e)}function am(t,e){const n=de(Qo,null,t);return n.staticCount=e,n}function Z(t="",e=!1){return e?(C(),Ue(Vn,null,t)):de(Vn,null,t)}function dr(t){return t==null||typeof t=="boolean"?de(Vn):Ve(t)?de(ae,null,t.slice()):typeof t=="object"?oo(t):de(ii,null,String(t))}function oo(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:wa(t)}function om(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(Ve(e))n=16;else if(typeof e=="object")if(r&65){const a=e.default;a&&(a._c&&(a._d=!1),om(t,a()),a._c&&(a._d=!0));return}else{n=32;const a=e._;!a&&!(ad in e)?e._ctx=wn:a===3&&wn&&(wn.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else st(e)?(e={default:e,_ctx:wn},n=32):(e=String(e),r&64?(n=16,e=[gt(e)]):n=8);t.children=e,t.shapeFlag|=n}function _n(...t){const e={};for(let n=0;n dn||wn;let im,Oi,zv="__VUE_INSTANCE_SETTERS__";(Oi=gh()[zv])||(Oi=gh()[zv]=[]),Oi.push(t=>dn=t),im=t=>{Oi.length>1?Oi.forEach(e=>e(t)):Oi[0](t)};const So=t=>{im(t),t.scope.on()},po=()=>{dn&&dn.scope.off(),im(null)};function H0(t){return t.vnode.shapeFlag&4}let ts=!1;function q0(t,e=!1){ts=e;const{props:n,children:r}=t.vnode,a=H0(t);uT(t,n,a,e),fT(t,r);const o=a?ST(t,e):void 0;return ts=!1,o}function ST(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=Hp(new Proxy(t.ctx,Sh));const{setup:r}=n;if(r){const a=t.setupContext=r.length>1?K0(t):null;So(t),gs();const o=Ua(r,t,0,[t.props,a]);if(ys(),po(),Mp(o)){if(o.then(po,po),e)return o.then(i=>{Ah(t,i,e)}).catch(i=>{mi(i,t,0)});t.asyncDep=o}else Ah(t,o,e)}else Y0(t,e)}function Ah(t,e,n){st(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Rt(e)&&(t.setupState=Kp(e)),Y0(t,n)}let wc,kh;function TT(t){wc=t,kh=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,BS))}}const ET=()=>!wc;function Y0(t,e,n){const r=t.type;if(!t.render){if(!e&&wc&&!r.render){const a=r.template||tm(t).template;if(a){const{isCustomElement:o,compilerOptions:i}=t.appContext.config,{delimiters:s,compilerOptions:l}=r,u=zt(zt({isCustomElement:o,delimiters:s},i),l);r.render=wc(a,u)}}t.render=r.render||Yr,kh&&kh(t)}{So(t),gs();try{tT(t)}finally{ys(),po()}}}function CT(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return or(t,"get","$attrs"),e[n]}}))}function K0(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return CT(t)},slots:t.slots,emit:t.emit,expose:e}}function od(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Kp(Hp(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in nl)return nl[n](t)},has(e,n){return n in e||n in nl}}))}function Dh(t,e=!0){return st(t)?t.displayName||t.name:t.name||e&&t.__name}function OT(t){return st(t)&&"__vccOpts"in t}const we=(t,e)=>lS(t,e,ts);function Kr(t,e,n){const r=arguments.length;return r===2?Rt(e)&&!Ve(e)?xo(e)?de(t,null,[e]):de(t,e):de(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&xo(n)&&(n=[n]),de(t,e,n))}const W0=Symbol.for("v-scx"),z0=()=>Wt(W0);function $T(){}function AT(t,e,n,r){const a=n[r];if(a&&G0(a,t))return a;const o=e();return o.memo=t.slice(),n[r]=o}function G0(t,e){const n=t.memo;if(n.length!=e.length)return!1;for(let r=0;r 0&&nr&&nr.push(t),!0}const J0="3.3.8",kT={createComponentInstance:V0,setupComponent:q0,renderComponentRoot:Ju,setCurrentRenderingInstance:xl,isVNode:xo,normalizeVNode:dr},DT=kT,NT=null,IT=null,PT="http://www.w3.org/2000/svg",Yo=typeof document<"u"?document:null,Gv=Yo&&Yo.createElement("template"),MT={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const a=e?Yo.createElementNS(PT,t):Yo.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:t=>Yo.createTextNode(t),createComment:t=>Yo.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Yo.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,a,o){const i=n?n.previousSibling:e.lastChild;if(a&&(a===o||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),n),!(a===o||!(a=a.nextSibling)););else{Gv.innerHTML=r?``:t;const s=Gv.content;if(r){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,n)}return[i?i.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},eo="transition",Ns="animation",ns=Symbol("_vtc"),kn=(t,{slots:e})=>Kr(m0,Q0(t),e);kn.displayName="Transition";const X0={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},LT=kn.props=zt({},Zp,X0),Mo=(t,e=[])=>{Ve(t)?t.forEach(n=>n(...e)):t&&t(...e)},Jv=t=>t?Ve(t)?t.some(e=>e.length>1):t.length>1:!1;function Q0(t){const e={};for(const T in t)T in X0||(e[T]=t[T]);if(t.css===!1)return e;const{name:n="v",type:r,duration:a,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=i,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,p=RT(a),v=p&&p[0],g=p&&p[1],{onBeforeEnter:y,onEnter:x,onEnterCancelled:_,onLeave:w,onLeaveCancelled:A,onBeforeAppear:I=y,onAppear:F=x,onAppearCancelled:R=_}=e,E=(T,D,k)=>{no(T,D?c:s),no(T,D?u:i),k&&k()},S=(T,D)=>{T._isLeaving=!1,no(T,d),no(T,h),no(T,f),D&&D()},O=T=>(D,k)=>{const U=T?F:x,V=()=>E(D,T,k);Mo(U,[D,V]),Xv(()=>{no(D,T?l:o),Na(D,T?c:s),Jv(U)||Qv(D,r,v,V)})};return zt(e,{onBeforeEnter(T){Mo(y,[T]),Na(T,o),Na(T,i)},onBeforeAppear(T){Mo(I,[T]),Na(T,l),Na(T,u)},onEnter:O(!1),onAppear:O(!0),onLeave(T,D){T._isLeaving=!0;const k=()=>S(T,D);Na(T,d),e1(),Na(T,f),Xv(()=>{T._isLeaving&&(no(T,d),Na(T,h),Jv(w)||Qv(T,r,g,k))}),Mo(w,[T,k])},onEnterCancelled(T){E(T,!1),Mo(_,[T])},onAppearCancelled(T){E(T,!0),Mo(R,[T])},onLeaveCancelled(T){S(T),Mo(A,[T])}})}function RT(t){if(t==null)return null;if(Rt(t))return[_f(t.enter),_f(t.leave)];{const e=_f(t);return[e,e]}}function _f(t){return pc(t)}function Na(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[ns]||(t[ns]=new Set)).add(e)}function no(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[ns];n&&(n.delete(e),n.size||(t[ns]=void 0))}function Xv(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let FT=0;function Qv(t,e,n,r){const a=t._endId=++FT,o=()=>{a===t._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:s,propCount:l}=Z0(t,e);if(!i)return r();const u=i+"end";let c=0;const d=()=>{t.removeEventListener(u,f),o()},f=h=>{h.target===t&&++c>=l&&d()};setTimeout(()=>{c (n[p]||"").split(", "),a=r(`${eo}Delay`),o=r(`${eo}Duration`),i=Zv(a,o),s=r(`${Ns}Delay`),l=r(`${Ns}Duration`),u=Zv(s,l);let c=null,d=0,f=0;e===eo?i>0&&(c=eo,d=i,f=o.length):e===Ns?u>0&&(c=Ns,d=u,f=l.length):(d=Math.max(i,u),c=d>0?i>u?eo:Ns:null,f=c?c===eo?o.length:l.length:0);const h=c===eo&&/\b(transform|all)(,|$)/.test(r(`${eo}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function Zv(t,e){for(;t.length eg(n)+eg(t[r])))}function eg(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function e1(){return document.body.offsetHeight}function UT(t,e,n){const r=t[ns];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const sm=Symbol("_vod"),xn={beforeMount(t,{value:e},{transition:n}){t[sm]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Is(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),Is(t,!0),r.enter(t)):r.leave(t,()=>{Is(t,!1)}):Is(t,e))},beforeUnmount(t,{value:e}){Is(t,e)}};function Is(t,e){t.style.display=e?t[sm]:"none"}function jT(){xn.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}function BT(t,e,n){const r=t.style,a=Gt(n);if(n&&!a){if(e&&!Gt(e))for(const o in e)n[o]==null&&Nh(r,o,"");for(const o in n)Nh(r,o,n[o])}else{const o=r.display;a?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),sm in t&&(r.display=o)}}const tg=/\s*!important$/;function Nh(t,e,n){if(Ve(n))n.forEach(r=>Nh(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=VT(t,e);tg.test(n)?t.setProperty(Tr(r),n.replace(tg,""),"important"):t[r]=n}}const ng=["Webkit","Moz","ms"],xf={};function VT(t,e){const n=xf[e];if(n)return n;let r=rr(e);if(r!=="filter"&&r in t)return xf[e]=r;r=Hl(r);for(let a=0;a Sf||(zT.then(()=>Sf=0),Sf=Date.now());function JT(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;mr(XT(r,n.value),e,5,[r])};return n.value=t,n.attached=GT(),n}function XT(t,e){if(Ve(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>a=>!a._stopped&&r&&r(a))}else return e}const ig=/^on[a-z]/,QT=(t,e,n,r,a=!1,o,i,s,l)=>{e==="class"?UT(t,r,a):e==="style"?BT(t,n,r):Vl(e)?Ip(e)||KT(t,e,n,r,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):ZT(t,e,r,a))?qT(t,e,r,o,i,s,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),HT(t,e,r,a))};function ZT(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&ig.test(e)&&st(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||ig.test(e)&&Gt(n)?!1:e in t}/*! #__NO_SIDE_EFFECTS__ */function t1(t,e){const n=Ft(t);class r extends id{constructor(o){super(n,o,e)}}return r.def=n,r}/*! #__NO_SIDE_EFFECTS__ */const eE=t=>t1(t,d1),tE=typeof HTMLElement<"u"?HTMLElement:class{};class id extends tE{constructor(e,n={},r){super(),this._def=e,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),ir(()=>{this._connected||(Cl(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r {for(const a of r)this._setAttr(a.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(r,a=!1)=>{const{props:o,styles:i}=r;let s;if(o&&!Ve(o))for(const l in o){const u=o[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=pc(this._props[l])),(s||(s=Object.create(null)))[rr(l)]=!0)}this._numberProps=s,a&&this._resolveProps(r),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(r=>e(r,!0)):e(this._def)}_resolveProps(e){const{props:n}=e,r=Ve(n)?n:Object.keys(n||{});for(const a of Object.keys(this))a[0]!=="_"&&r.includes(a)&&this._setProp(a,this[a],!0,!1);for(const a of r.map(rr))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(o){this._setProp(a,o)}})}_setAttr(e){let n=this.getAttribute(e);const r=rr(e);this._numberProps&&this._numberProps[r]&&(n=pc(n)),this._setProp(r,n,!1)}_getProp(e){return this._props[e]}_setProp(e,n,r=!0,a=!0){n!==this._props[e]&&(this._props[e]=n,a&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(Tr(e),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Tr(e),n+""):n||this.removeAttribute(Tr(e))))}_update(){Cl(this._createVNode(),this.shadowRoot)}_createVNode(){const e=de(this._def,zt({},this._props));return this._instance||(e.ce=n=>{this._instance=n,n.isCE=!0;const r=(o,i)=>{this.dispatchEvent(new CustomEvent(o,{detail:i}))};n.emit=(o,...i)=>{r(o,i),Tr(o)!==o&&r(Tr(o),i)};let a=this;for(;a=a&&(a.parentNode||a.host);)if(a instanceof id){n.parent=a._instance,n.provides=a._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function nE(t="$style"){{const e=Ya();if(!e)return Lt;const n=e.type.__cssModules;if(!n)return Lt;const r=n[t];return r||Lt}}function rE(t){const e=Ya();if(!e)return;const n=e.ut=(a=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(o=>Ph(o,a))},r=()=>{const a=t(e.proxy);Ih(e.subTree,a),n(a)};h0(r),ft(()=>{const a=new MutationObserver(r);a.observe(e.subTree.el.parentNode,{childList:!0}),Xr(()=>a.disconnect())})}function Ih(t,e){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ih(n.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)Ph(t.el,e);else if(t.type===ae)t.children.forEach(n=>Ih(n,e));else if(t.type===Qo){let{el:n,anchor:r}=t;for(;n&&(Ph(n,e),n!==r);)n=n.nextSibling}}function Ph(t,e){if(t.nodeType===1){const n=t.style;for(const r in e)n.setProperty(`--${r}`,e[r])}}const n1=new WeakMap,r1=new WeakMap,_c=Symbol("_moveCb"),sg=Symbol("_enterCb"),a1={name:"TransitionGroup",props:zt({},LT,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Ya(),r=Qp();let a,o;return Zt(()=>{if(!a.length)return;const i=t.moveClass||`${t.name||"v"}-move`;if(!uE(a[0].el,n.vnode.el,i))return;a.forEach(iE),a.forEach(sE);const s=a.filter(lE);e1(),s.forEach(l=>{const u=l.el,c=u.style;Na(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[_c]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u[_c]=null,no(u,i))};u.addEventListener("transitionend",d)})}),()=>{const i=xt(t),s=Q0(i);let l=i.tag||ae;a=o,o=e.default?td(e.default()):[];for(let u=0;u delete t.mode;a1.props;const oE=a1;function iE(t){const e=t.el;e[_c]&&e[_c](),e[sg]&&e[sg]()}function sE(t){r1.set(t,t.el.getBoundingClientRect())}function lE(t){const e=n1.get(t),n=r1.get(t),r=e.left-n.left,a=e.top-n.top;if(r||a){const o=t.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${a}px)`,o.transitionDuration="0s",t}}function uE(t,e,n){const r=t.cloneNode(),a=t[ns];a&&a.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(r);const{hasTransform:i}=Z0(r);return o.removeChild(r),i}const To=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Ve(e)?n=>Ki(e,n):e};function cE(t){t.target.composing=!0}function lg(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Or=Symbol("_assign"),Et={created(t,{modifiers:{lazy:e,trim:n,number:r}},a){t[Or]=To(a);const o=r||a.props&&a.props.type==="number";Pa(t,e?"change":"input",i=>{if(i.target.composing)return;let s=t.value;n&&(s=s.trim()),o&&(s=hc(s)),t[Or](s)}),n&&Pa(t,"change",()=>{t.value=t.value.trim()}),e||(Pa(t,"compositionstart",cE),Pa(t,"compositionend",lg),Pa(t,"change",lg))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:a}},o){if(t[Or]=To(o),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===e||(a||t.type==="number")&&hc(t.value)===e))return;const i=e??"";t.value!==i&&(t.value=i)}},vr={deep:!0,created(t,e,n){t[Or]=To(n),Pa(t,"change",()=>{const r=t._modelValue,a=rs(t),o=t.checked,i=t[Or];if(Ve(r)){const s=Kc(r,a),l=s!==-1;if(o&&!l)i(r.concat(a));else if(!o&&l){const u=[...r];u.splice(s,1),i(u)}}else if(pi(r)){const s=new Set(r);o?s.add(a):s.delete(a),i(s)}else i(o1(t,o))})},mounted:ug,beforeUpdate(t,e,n){t[Or]=To(n),ug(t,e,n)}};function ug(t,{value:e,oldValue:n},r){t._modelValue=e,Ve(e)?t.checked=Kc(e,r.props.value)>-1:pi(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=wo(e,o1(t,!0)))}const Eo={created(t,{value:e},n){t.checked=wo(e,n.props.value),t[Or]=To(n),Pa(t,"change",()=>{t[Or](rs(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t[Or]=To(r),e!==n&&(t.checked=wo(e,r.props.value))}},Rn={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const a=pi(e);Pa(t,"change",()=>{const o=Array.prototype.filter.call(t.options,i=>i.selected).map(i=>n?hc(rs(i)):rs(i));t[Or](t.multiple?a?new Set(o):o:o[0])}),t[Or]=To(r)},mounted(t,{value:e}){cg(t,e)},beforeUpdate(t,e,n){t[Or]=To(n)},updated(t,{value:e}){cg(t,e)}};function cg(t,e){const n=t.multiple;if(!(n&&!Ve(e)&&!pi(e))){for(let r=0,a=t.options.length;r-1:o.selected=e.has(i);else if(wo(rs(o),e)){t.selectedIndex!==r&&(t.selectedIndex=r);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function rs(t){return"_value"in t?t._value:t.value}function o1(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const i1={created(t,e,n){Nu(t,e,n,null,"created")},mounted(t,e,n){Nu(t,e,n,null,"mounted")},beforeUpdate(t,e,n,r){Nu(t,e,n,r,"beforeUpdate")},updated(t,e,n,r){Nu(t,e,n,r,"updated")}};function s1(t,e){switch(t){case"SELECT":return Rn;case"TEXTAREA":return Et;default:switch(e){case"checkbox":return vr;case"radio":return Eo;default:return Et}}}function Nu(t,e,n,r,a){const i=s1(t.tagName,n.props&&n.props.type)[a];i&&i(t,e,n,r)}function dE(){Et.getSSRProps=({value:t})=>({value:t}),Eo.getSSRProps=({value:t},e)=>{if(e.props&&wo(e.props.value,t))return{checked:!0}},vr.getSSRProps=({value:t},e)=>{if(Ve(t)){if(e.props&&Kc(t,e.props.value)>-1)return{checked:!0}}else if(pi(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},i1.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const n=s1(e.type.toUpperCase(),e.props&&e.props.type);if(n.getSSRProps)return n.getSSRProps(t,e)}}const fE=["ctrl","shift","alt","meta"],hE={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>fE.some(n=>t[`${n}Key`]&&!e.includes(n))},he=(t,e)=>(n,...r)=>{for(let a=0;a n=>{if(!("key"in n))return;const r=Tr(n.key);if(e.some(a=>a===r||pE[a]===r))return t(n)},l1=zt({patchProp:QT},MT);let ol,dg=!1;function u1(){return ol||(ol=I0(l1))}function c1(){return ol=dg?ol:P0(l1),dg=!0,ol}const Cl=(...t)=>{u1().render(...t)},d1=(...t)=>{c1().hydrate(...t)},Qu=(...t)=>{const e=u1().createApp(...t),{mount:n}=e;return e.mount=r=>{const a=f1(r);if(!a)return;const o=e._component;!st(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.innerHTML="";const i=n(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),i},e},mE=(...t)=>{const e=c1().createApp(...t),{mount:n}=e;return e.mount=r=>{const a=f1(r);if(a)return n(a,!0,a instanceof SVGElement)},e};function f1(t){return Gt(t)?document.querySelector(t):t}let fg=!1;const vE=()=>{fg||(fg=!0,dE(),jT())},gE=()=>{},yE=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:m0,BaseTransitionPropsValidators:Zp,Comment:Vn,EffectScope:Rp,Fragment:ae,KeepAlive:FS,ReactiveEffect:Zi,Static:Qo,Suspense:CS,Teleport:R0,Text:ii,Transition:kn,TransitionGroup:oE,VueElement:id,assertNumber:cS,callWithAsyncErrorHandling:mr,callWithErrorHandling:Ua,camelize:rr,capitalize:Hl,cloneVNode:wa,compatUtils:IT,compile:gE,computed:we,createApp:Qu,createBlock:Ue,createCommentVNode:Z,createElementBlock:$,createElementVNode:m,createHydrationRenderer:P0,createPropsRestProxy:ZS,createRenderer:I0,createSSRApp:mE,createSlots:ar,createStaticVNode:am,createTextVNode:gt,createVNode:de,customRef:aS,defineAsyncComponent:LS,defineComponent:Ft,defineCustomElement:t1,defineEmits:HS,defineExpose:qS,defineModel:WS,defineOptions:YS,defineProps:VS,defineSSRCustomElement:eE,defineSlots:KS,get devtools(){return Ii},effect:Dx,effectScope:$x,getCurrentInstance:Ya,getCurrentScope:Fp,getTransitionRawChildren:td,guardReactiveProps:Gn,h:Kr,handleError:mi,hasInjectionContext:lT,hydrate:d1,initCustomFormatter:$T,initDirectivesForSSR:vE,inject:Wt,isMemoSame:G0,isProxy:Vp,isReactive:Go,isReadonly:ai,isRef:an,isRuntimeOnly:ET,isShallow:gl,isVNode:xo,markRaw:Hp,mergeDefaults:XS,mergeModels:QS,mergeProps:_n,nextTick:ir,normalizeClass:Se,normalizeProps:vn,normalizeStyle:bt,onActivated:g0,onBeforeMount:gn,onBeforeUnmount:rd,onBeforeUpdate:em,onDeactivated:y0,onErrorCaptured:S0,onMounted:ft,onRenderTracked:x0,onRenderTriggered:_0,onScopeDispose:Vb,onServerPrefetch:w0,onUnmounted:Xr,onUpdated:Zt,openBlock:C,popScopeId:gS,provide:Xo,proxyRefs:Kp,pushScopeId:vS,queuePostFlushCb:vc,reactive:Jt,readonly:Bp,ref:G,registerRuntimeCompiler:TT,render:Cl,renderList:$e,renderSlot:qe,resolveComponent:Fr,resolveDirective:TS,resolveDynamicComponent:ed,resolveFilter:NT,resolveTransitionHooks:es,setBlockTracking:$h,setDevtoolsHook:l0,setTransitionHooks:oi,shallowReactive:t0,shallowReadonly:Qx,shallowRef:bs,ssrContextKey:W0,ssrUtils:DT,stop:Nx,toDisplayString:re,toHandlerKey:tl,toHandlers:jS,toRaw:xt,toRef:bl,toRefs:r0,toValue:tS,transformVNodeArgs:bT,triggerRef:eS,unref:K,useAttrs:GS,useCssModule:nE,useCssVars:rE,useModel:JS,useSSRContext:z0,useSlots:ws,useTransitionState:Qp,vModelCheckbox:vr,vModelDynamic:i1,vModelRadio:Eo,vModelSelect:Rn,vModelText:Et,vShow:xn,version:J0,warn:uS,watch:vt,watchEffect:NS,watchPostEffect:h0,watchSyncEffect:IS,withAsyncContext:eT,withCtx:it,withDefaults:zS,withDirectives:De,withKeys:Ze,withMemo:AT,withModifiers:he,withScopeId:yS},Symbol.toStringTag,{value:"Module"}));function h1(t,e){return function(){return t.apply(e,arguments)}}const{toString:bE}=Object.prototype,{getPrototypeOf:lm}=Object,sd=(t=>e=>{const n=bE.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Qr=t=>(t=t.toLowerCase(),e=>sd(e)===t),ld=t=>e=>typeof e===t,{isArray:_s}=Array,Ol=ld("undefined");function wE(t){return t!==null&&!Ol(t)&&t.constructor!==null&&!Ol(t.constructor)&&gr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const p1=Qr("ArrayBuffer");function _E(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&p1(t.buffer),e}const xE=ld("string"),gr=ld("function"),m1=ld("number"),ud=t=>t!==null&&typeof t=="object",SE=t=>t===!0||t===!1,Zu=t=>{if(sd(t)!=="object")return!1;const e=lm(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},TE=Qr("Date"),EE=Qr("File"),CE=Qr("Blob"),OE=Qr("FileList"),$E=t=>ud(t)&&gr(t.pipe),AE=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||gr(t.append)&&((e=sd(t))==="formdata"||e==="object"&&gr(t.toString)&&t.toString()==="[object FormData]"))},kE=Qr("URLSearchParams"),[DE,NE,IE,PE]=["ReadableStream","Request","Response","Headers"].map(Qr),ME=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kl(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,a;if(typeof t!="object"&&(t=[t]),_s(t))for(r=0,a=t.length;r0;)if(a=n[r],e===a.toLowerCase())return a;return null}const Wo=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),g1=t=>!Ol(t)&&t!==Wo;function Mh(){const{caseless:t}=g1(this)&&this||{},e={},n=(r,a)=>{const o=t&&v1(e,a)||a;Zu(e[o])&&Zu(r)?e[o]=Mh(e[o],r):Zu(r)?e[o]=Mh({},r):_s(r)?e[o]=r.slice():e[o]=r};for(let r=0,a=arguments.length;r(Kl(e,(a,o)=>{n&&gr(a)?t[o]=h1(a,n):t[o]=a},{allOwnKeys:r}),t),RE=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),FE=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},UE=(t,e,n,r)=>{let a,o,i;const s={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),o=a.length;o-- >0;)i=a[o],(!r||r(i,t,e))&&!s[i]&&(e[i]=t[i],s[i]=!0);t=n!==!1&&lm(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},jE=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},BE=t=>{if(!t)return null;if(_s(t))return t;let e=t.length;if(!m1(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},VE=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&lm(Uint8Array)),HE=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=r.next())&&!a.done;){const o=a.value;e.call(t,o[0],o[1])}},qE=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},YE=Qr("HTMLFormElement"),KE=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),hg=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),WE=Qr("RegExp"),y1=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Kl(n,(a,o)=>{let i;(i=e(a,o,t))!==!1&&(r[o]=i||a)}),Object.defineProperties(t,r)},zE=t=>{y1(t,(e,n)=>{if(gr(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(gr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},GE=(t,e)=>{const n={},r=a=>{a.forEach(o=>{n[o]=!0})};return _s(t)?r(t):r(String(t).split(e)),n},JE=()=>{},XE=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Tf="abcdefghijklmnopqrstuvwxyz",pg="0123456789",b1={DIGIT:pg,ALPHA:Tf,ALPHA_DIGIT:Tf+Tf.toUpperCase()+pg},QE=(t=16,e=b1.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function ZE(t){return!!(t&&gr(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const e2=t=>{const e=new Array(10),n=(r,a)=>{if(ud(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[a]=r;const o=_s(r)?[]:{};return Kl(r,(i,s)=>{const l=n(i,a+1);!Ol(l)&&(o[s]=l)}),e[a]=void 0,o}}return r};return n(t,0)},t2=Qr("AsyncFunction"),n2=t=>t&&(ud(t)||gr(t))&&gr(t.then)&&gr(t.catch),w1=((t,e)=>t?setImmediate:e?((n,r)=>(Wo.addEventListener("message",({source:a,data:o})=>{a===Wo&&o===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Wo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",gr(Wo.postMessage)),r2=typeof queueMicrotask<"u"?queueMicrotask.bind(Wo):typeof process<"u"&&process.nextTick||w1,ie={isArray:_s,isArrayBuffer:p1,isBuffer:wE,isFormData:AE,isArrayBufferView:_E,isString:xE,isNumber:m1,isBoolean:SE,isObject:ud,isPlainObject:Zu,isReadableStream:DE,isRequest:NE,isResponse:IE,isHeaders:PE,isUndefined:Ol,isDate:TE,isFile:EE,isBlob:CE,isRegExp:WE,isFunction:gr,isStream:$E,isURLSearchParams:kE,isTypedArray:VE,isFileList:OE,forEach:Kl,merge:Mh,extend:LE,trim:ME,stripBOM:RE,inherits:FE,toFlatObject:UE,kindOf:sd,kindOfTest:Qr,endsWith:jE,toArray:BE,forEachEntry:HE,matchAll:qE,isHTMLForm:YE,hasOwnProperty:hg,hasOwnProp:hg,reduceDescriptors:y1,freezeMethods:zE,toObjectSet:GE,toCamelCase:KE,noop:JE,toFiniteNumber:XE,findKey:v1,global:Wo,isContextDefined:g1,ALPHABET:b1,generateString:QE,isSpecCompliantForm:ZE,toJSONObject:e2,isAsyncFn:t2,isThenable:n2,setImmediate:w1,asap:r2};function dt(t,e,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}ie.inherits(dt,Error,{toJSON:function(){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:ie.toJSONObject(this.config),code:this.code,status:this.status}}});const _1=dt.prototype,x1={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{x1[t]={value:t}});Object.defineProperties(dt,x1);Object.defineProperty(_1,"isAxiosError",{value:!0});dt.from=(t,e,n,r,a,o)=>{const i=Object.create(_1);return ie.toFlatObject(t,i,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),dt.call(i,t.message,e,n,r,a),i.cause=t,i.name=t.name,o&&Object.assign(i,o),i};const a2=null;function Lh(t){return ie.isPlainObject(t)||ie.isArray(t)}function S1(t){return ie.endsWith(t,"[]")?t.slice(0,-2):t}function mg(t,e,n){return t?t.concat(e).map(function(a,o){return a=S1(a),!n&&o?"["+a+"]":a}).join(n?".":""):e}function o2(t){return ie.isArray(t)&&!t.some(Lh)}const i2=ie.toFlatObject(ie,{},null,function(e){return/^is[A-Z]/.test(e)});function cd(t,e,n){if(!ie.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,g){return!ie.isUndefined(g[v])});const r=n.metaTokens,a=n.visitor||c,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ie.isSpecCompliantForm(e);if(!ie.isFunction(a))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(ie.isDate(p))return p.toISOString();if(!l&&ie.isBlob(p))throw new dt("Blob is not supported. Use a Buffer instead.");return ie.isArrayBuffer(p)||ie.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,v,g){let y=p;if(p&&!g&&typeof p=="object"){if(ie.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(ie.isArray(p)&&o2(p)||(ie.isFileList(p)||ie.endsWith(v,"[]"))&&(y=ie.toArray(p)))return v=S1(v),y.forEach(function(_,w){!(ie.isUndefined(_)||_===null)&&e.append(i===!0?mg([v],w,o):i===null?v:v+"[]",u(_))}),!1}return Lh(p)?!0:(e.append(mg(g,v,o),u(p)),!1)}const d=[],f=Object.assign(i2,{defaultVisitor:c,convertValue:u,isVisitable:Lh});function h(p,v){if(!ie.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(p),ie.forEach(p,function(y,x){(!(ie.isUndefined(y)||y===null)&&a.call(e,y,ie.isString(x)?x.trim():x,v,f))===!0&&h(y,v?v.concat(x):[x])}),d.pop()}}if(!ie.isObject(t))throw new TypeError("data must be an object");return h(t),e}function vg(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function um(t,e){this._pairs=[],t&&cd(t,this,e)}const T1=um.prototype;T1.append=function(e,n){this._pairs.push([e,n])};T1.toString=function(e){const n=e?function(r){return e.call(this,r,vg)}:vg;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function s2(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function E1(t,e,n){if(!e)return t;const r=n&&n.encode||s2;ie.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let o;if(a?o=a(e,n):o=ie.isURLSearchParams(e)?e.toString():new um(e,n).toString(r),o){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class l2{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,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){ie.forEach(this.handlers,function(r){r!==null&&e(r)})}}const gg=l2,C1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},u2=typeof URLSearchParams<"u"?URLSearchParams:um,c2=typeof FormData<"u"?FormData:null,d2=typeof Blob<"u"?Blob:null,f2={isBrowser:!0,classes:{URLSearchParams:u2,FormData:c2,Blob:d2},protocols:["http","https","file","blob","url","data"]},cm=typeof window<"u"&&typeof document<"u",Rh=typeof navigator=="object"&&navigator||void 0,h2=cm&&(!Rh||["ReactNative","NativeScript","NS"].indexOf(Rh.product)<0),p2=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),m2=cm&&window.location.href||"http://localhost",v2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cm,hasStandardBrowserEnv:h2,hasStandardBrowserWebWorkerEnv:p2,navigator:Rh,origin:m2},Symbol.toStringTag,{value:"Module"})),Fn={...v2,...f2};function g2(t,e){return cd(t,new Fn.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,o){return Fn.isNode&&ie.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function y2(t){return ie.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function b2(t){const e={},n=Object.keys(t);let r;const a=n.length;let o;for(r=0;r=n.length;return i=!i&&ie.isArray(a)?a.length:i,l?(ie.hasOwnProp(a,i)?a[i]=[a[i],r]:a[i]=r,!s):((!a[i]||!ie.isObject(a[i]))&&(a[i]=[]),e(n,r,a[i],o)&&ie.isArray(a[i])&&(a[i]=b2(a[i])),!s)}if(ie.isFormData(t)&&ie.isFunction(t.entries)){const n={};return ie.forEachEntry(t,(r,a)=>{e(y2(r),a,n,0)}),n}return null}function w2(t,e,n){if(ie.isString(t))try{return(e||JSON.parse)(t),ie.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const dm={transitional:C1,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,o=ie.isObject(e);if(o&&ie.isHTMLForm(e)&&(e=new FormData(e)),ie.isFormData(e))return a?JSON.stringify(O1(e)):e;if(ie.isArrayBuffer(e)||ie.isBuffer(e)||ie.isStream(e)||ie.isFile(e)||ie.isBlob(e)||ie.isReadableStream(e))return e;if(ie.isArrayBufferView(e))return e.buffer;if(ie.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return g2(e,this.formSerializer).toString();if((s=ie.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return cd(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||a?(n.setContentType("application/json",!1),w2(e)):e}],transformResponse:[function(e){const n=this.transitional||dm.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(ie.isResponse(e)||ie.isReadableStream(e))return e;if(e&&ie.isString(e)&&(r&&!this.responseType||a)){const i=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?dt.from(s,dt.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fn.classes.FormData,Blob:Fn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ie.forEach(["delete","get","head","post","put","patch"],t=>{dm.headers[t]={}});const fm=dm,_2=ie.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"]),x2=t=>{const e={};let n,r,a;return t&&t.split(` +`).forEach(function(i){a=i.indexOf(":"),n=i.substring(0,a).trim().toLowerCase(),r=i.substring(a+1).trim(),!(!n||e[n]&&_2[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},yg=Symbol("internals");function Ps(t){return t&&String(t).trim().toLowerCase()}function ec(t){return t===!1||t==null?t:ie.isArray(t)?t.map(ec):String(t)}function S2(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const T2=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ef(t,e,n,r,a){if(ie.isFunction(r))return r.call(this,e,n);if(a&&(e=n),!!ie.isString(e)){if(ie.isString(r))return e.indexOf(r)!==-1;if(ie.isRegExp(r))return r.test(e)}}function E2(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function C2(t,e){const n=ie.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(a,o,i){return this[r].call(this,e,a,o,i)},configurable:!0})})}class dd{constructor(e){e&&this.set(e)}set(e,n,r){const a=this;function o(s,l,u){const c=Ps(l);if(!c)throw new Error("header name must be a non-empty string");const d=ie.findKey(a,c);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||l]=ec(s))}const i=(s,l)=>ie.forEach(s,(u,c)=>o(u,c,l));if(ie.isPlainObject(e)||e instanceof this.constructor)i(e,n);else if(ie.isString(e)&&(e=e.trim())&&!T2(e))i(x2(e),n);else if(ie.isHeaders(e))for(const[s,l]of e.entries())o(l,s,r);else e!=null&&o(n,e,r);return this}get(e,n){if(e=Ps(e),e){const r=ie.findKey(this,e);if(r){const a=this[r];if(!n)return a;if(n===!0)return S2(a);if(ie.isFunction(n))return n.call(this,a,r);if(ie.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Ps(e),e){const r=ie.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Ef(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let a=!1;function o(i){if(i=Ps(i),i){const s=ie.findKey(r,i);s&&(!n||Ef(r,r[s],s,n))&&(delete r[s],a=!0)}}return ie.isArray(e)?e.forEach(o):o(e),a}clear(e){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const o=n[r];(!e||Ef(this,this[o],o,e,!0))&&(delete this[o],a=!0)}return a}normalize(e){const n=this,r={};return ie.forEach(this,(a,o)=>{const i=ie.findKey(r,o);if(i){n[i]=ec(a),delete n[o];return}const s=e?E2(o):String(o).trim();s!==o&&delete n[o],n[s]=ec(a),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return ie.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=e&&ie.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(a=>r.set(a)),r}static accessor(e){const r=(this[yg]=this[yg]={accessors:{}}).accessors,a=this.prototype;function o(i){const s=Ps(i);r[s]||(C2(a,i),r[s]=!0)}return ie.isArray(e)?e.forEach(o):o(e),this}}dd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ie.reduceDescriptors(dd.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});ie.freezeMethods(dd);const Wr=dd;function Cf(t,e){const n=this||fm,r=e||n,a=Wr.from(r.headers);let o=r.data;return ie.forEach(t,function(s){o=s.call(n,o,a.normalize(),e?e.status:void 0)}),a.normalize(),o}function $1(t){return!!(t&&t.__CANCEL__)}function xs(t,e,n){dt.call(this,t??"canceled",dt.ERR_CANCELED,e,n),this.name="CanceledError"}ie.inherits(xs,dt,{__CANCEL__:!0});function A1(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new dt("Request failed with status code "+n.status,[dt.ERR_BAD_REQUEST,dt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function O2(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function $2(t,e){t=t||10;const n=new Array(t),r=new Array(t);let a=0,o=0,i;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=r[o];i||(i=u),n[a]=l,r[a]=u;let d=o,f=0;for(;d!==a;)f+=n[d++],d=d%t;if(a=(a+1)%t,a===o&&(o=(o+1)%t),u-i {n=c,a=null,o&&(clearTimeout(o),o=null),t.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?i(u,c):(a=u,o||(o=setTimeout(()=>{o=null,i(a)},r-d)))},()=>a&&i(a)]}const xc=(t,e,n=3)=>{let r=0;const a=$2(50,250);return A2(o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-r,u=a(l),c=i<=s;r=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-i)/u:void 0,event:o,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(d)},n)},bg=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},wg=t=>(...e)=>ie.asap(()=>t(...e)),k2=Fn.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Fn.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Fn.origin),Fn.navigator&&/(msie|trident)/i.test(Fn.navigator.userAgent)):()=>!0,D2=Fn.hasStandardBrowserEnv?{write(t,e,n,r,a,o){const i=[t+"="+encodeURIComponent(e)];ie.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),ie.isString(r)&&i.push("path="+r),ie.isString(a)&&i.push("domain="+a),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function N2(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function I2(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function k1(t,e){return t&&!N2(e)?I2(t,e):e}const _g=t=>t instanceof Wr?{...t}:t;function li(t,e){e=e||{};const n={};function r(u,c,d,f){return ie.isPlainObject(u)&&ie.isPlainObject(c)?ie.merge.call({caseless:f},u,c):ie.isPlainObject(c)?ie.merge({},c):ie.isArray(c)?c.slice():c}function a(u,c,d,f){if(ie.isUndefined(c)){if(!ie.isUndefined(u))return r(void 0,u,d,f)}else return r(u,c,d,f)}function o(u,c){if(!ie.isUndefined(c))return r(void 0,c)}function i(u,c){if(ie.isUndefined(c)){if(!ie.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,d){if(d in e)return r(u,c);if(d in t)return r(void 0,u)}const l={url:o,method:o,data:o,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,responseEncoding:i,validateStatus:s,headers:(u,c,d)=>a(_g(u),_g(c),d,!0)};return ie.forEach(Object.keys(Object.assign({},t,e)),function(c){const d=l[c]||a,f=d(t[c],e[c],c);ie.isUndefined(f)&&d!==s||(n[c]=f)}),n}const D1=t=>{const e=li({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:o,headers:i,auth:s}=e;e.headers=i=Wr.from(i),e.url=E1(k1(e.baseURL,e.url),t.params,t.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(ie.isFormData(n)){if(Fn.hasStandardBrowserEnv||Fn.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[u,...c]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Fn.hasStandardBrowserEnv&&(r&&ie.isFunction(r)&&(r=r(e)),r||r!==!1&&k2(e.url))){const u=a&&o&&D2.read(o);u&&i.set(a,u)}return e},P2=typeof XMLHttpRequest<"u",M2=P2&&function(t){return new Promise(function(n,r){const a=D1(t);let o=a.data;const i=Wr.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=a,c,d,f,h,p;function v(){h&&h(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function y(){if(!g)return;const _=Wr.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),A={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:_,config:t,request:g};A1(function(F){n(F),v()},function(F){r(F),v()},A),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(r(new dt("Request aborted",dt.ECONNABORTED,t,g)),g=null)},g.onerror=function(){r(new dt("Network Error",dt.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const A=a.transitional||C1;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),r(new dt(w,A.clarifyTimeoutError?dt.ETIMEDOUT:dt.ECONNABORTED,t,g)),g=null},o===void 0&&i.setContentType(null),"setRequestHeader"in g&&ie.forEach(i.toJSON(),function(w,A){g.setRequestHeader(A,w)}),ie.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),s&&s!=="json"&&(g.responseType=a.responseType),u&&([f,p]=xc(u,!0),g.addEventListener("progress",f)),l&&g.upload&&([d,h]=xc(l),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(c=_=>{g&&(r(!_||_.type?new xs(null,t,g):_),g.abort(),g=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const x=O2(a.url);if(x&&Fn.protocols.indexOf(x)===-1){r(new dt("Unsupported protocol "+x+":",dt.ERR_BAD_REQUEST,t));return}g.send(o||null)})},L2=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,a;const o=function(u){if(!a){a=!0,s();const c=u instanceof Error?u:this.reason;r.abort(c instanceof dt?c:new xs(c instanceof Error?c.message:c))}};let i=e&&setTimeout(()=>{i=null,o(new dt(`timeout ${e} of ms exceeded`,dt.ETIMEDOUT))},e);const s=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),t=null)};t.forEach(u=>u.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>ie.asap(s),l}},R2=L2,F2=function*(t,e){let n=t.byteLength;if(!e||n {const a=U2(t,e);let o=0,i,s=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await a.next();if(u){s(),l.close();return}let d=c.byteLength;if(n){let f=o+=d;n(f)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},fd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",N1=fd&&typeof ReadableStream=="function",B2=fd&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),I1=(t,...e)=>{try{return!!t(...e)}catch{return!1}},V2=N1&&I1(()=>{let t=!1;const e=new Request(Fn.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Sg=64*1024,Fh=N1&&I1(()=>ie.isReadableStream(new Response("").body)),Sc={stream:Fh&&(t=>t.body)};fd&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Sc[e]&&(Sc[e]=ie.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new dt(`Response type '${e}' is not supported`,dt.ERR_NOT_SUPPORT,r)})})})(new Response);const H2=async t=>{if(t==null)return 0;if(ie.isBlob(t))return t.size;if(ie.isSpecCompliantForm(t))return(await new Request(Fn.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(ie.isArrayBufferView(t)||ie.isArrayBuffer(t))return t.byteLength;if(ie.isURLSearchParams(t)&&(t=t+""),ie.isString(t))return(await B2(t)).byteLength},q2=async(t,e)=>{const n=ie.toFiniteNumber(t.getContentLength());return n??H2(e)},Y2=fd&&(async t=>{let{url:e,method:n,data:r,signal:a,cancelToken:o,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:f}=D1(t);u=u?(u+"").toLowerCase():"text";let h=R2([a,o&&o.toAbortSignal()],i),p;const v=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&V2&&n!=="get"&&n!=="head"&&(g=await q2(c,r))!==0){let A=new Request(e,{method:"POST",body:r,duplex:"half"}),I;if(ie.isFormData(r)&&(I=A.headers.get("content-type"))&&c.setContentType(I),A.body){const[F,R]=bg(g,xc(wg(l)));r=xg(A.body,Sg,F,R)}}ie.isString(d)||(d=d?"include":"omit");const y="credentials"in Request.prototype;p=new Request(e,{...f,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:y?d:void 0});let x=await fetch(p);const _=Fh&&(u==="stream"||u==="response");if(Fh&&(s||_&&v)){const A={};["status","statusText","headers"].forEach(E=>{A[E]=x[E]});const I=ie.toFiniteNumber(x.headers.get("content-length")),[F,R]=s&&bg(I,xc(wg(s),!0))||[];x=new Response(xg(x.body,Sg,F,()=>{R&&R(),v&&v()}),A)}u=u||"text";let w=await Sc[ie.findKey(Sc,u)||"text"](x,t);return!_&&v&&v(),await new Promise((A,I)=>{A1(A,I,{data:w,headers:Wr.from(x.headers),status:x.status,statusText:x.statusText,config:t,request:p})})}catch(y){throw v&&v(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new dt("Network Error",dt.ERR_NETWORK,t,p),{cause:y.cause||y}):dt.from(y,y&&y.code,t,p)}}),Uh={http:a2,xhr:M2,fetch:Y2};ie.forEach(Uh,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Tg=t=>`- ${t}`,K2=t=>ie.isFunction(t)||t===null||t===!1,P1={getAdapter:t=>{t=ie.isArray(t)?t:[t];const{length:e}=t;let n,r;const a={};for(let o=0;o `adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=e?o.length>1?`since : +`+o.map(Tg).join(` +`):" "+Tg(o[0]):"as no adapter specified";throw new dt("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Uh};function Of(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new xs(null,t)}function Eg(t){return Of(t),t.headers=Wr.from(t.headers),t.data=Cf.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),P1.getAdapter(t.adapter||fm.adapter)(t).then(function(r){return Of(t),r.data=Cf.call(t,t.transformResponse,r),r.headers=Wr.from(r.headers),r},function(r){return $1(r)||(Of(t),r&&r.response&&(r.response.data=Cf.call(t,t.transformResponse,r.response),r.response.headers=Wr.from(r.response.headers))),Promise.reject(r)})}const M1="1.7.9",hd={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{hd[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Cg={};hd.transitional=function(e,n,r){function a(o,i){return"[Axios v"+M1+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,s)=>{if(e===!1)throw new dt(a(i," has been removed"+(n?" in "+n:"")),dt.ERR_DEPRECATED);return n&&!Cg[i]&&(Cg[i]=!0,console.warn(a(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,i,s):!0}};hd.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function W2(t,e,n){if(typeof t!="object")throw new dt("options must be an object",dt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let a=r.length;for(;a-- >0;){const o=r[a],i=e[o];if(i){const s=t[o],l=s===void 0||i(s,o,t);if(l!==!0)throw new dt("option "+o+" must be "+l,dt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new dt("Unknown option "+o,dt.ERR_BAD_OPTION)}}const tc={assertOptions:W2,validators:hd},ia=tc.validators;class Tc{constructor(e){this.defaults=e,this.interceptors={request:new gg,response:new gg}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=li(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:o}=n;r!==void 0&&tc.assertOptions(r,{silentJSONParsing:ia.transitional(ia.boolean),forcedJSONParsing:ia.transitional(ia.boolean),clarifyTimeoutError:ia.transitional(ia.boolean)},!1),a!=null&&(ie.isFunction(a)?n.paramsSerializer={serialize:a}:tc.assertOptions(a,{encode:ia.function,serialize:ia.function},!0)),tc.assertOptions(n,{baseUrl:ia.spelling("baseURL"),withXsrfToken:ia.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&ie.merge(o.common,o[n.method]);o&&ie.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=Wr.concat(i,o);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,d=0,f;if(!l){const p=[Eg.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,u),f=p.length,c=Promise.resolve(n);d {if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](a);r._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(s=>{r.subscribe(s),o=s}).then(a);return i.cancel=function(){r.unsubscribe(o)},i},e(function(o,i,s){r.reason||(r.reason=new xs(o,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new hm(function(a){e=a}),cancel:e}}}const z2=hm;function G2(t){return function(n){return t.apply(null,n)}}function J2(t){return ie.isObject(t)&&t.isAxiosError===!0}const jh={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};Object.entries(jh).forEach(([t,e])=>{jh[e]=t});const X2=jh;function L1(t){const e=new nc(t),n=h1(nc.prototype.request,e);return ie.extend(n,nc.prototype,e,{allOwnKeys:!0}),ie.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return L1(li(t,a))},n}const fn=L1(fm);fn.Axios=nc;fn.CanceledError=xs;fn.CancelToken=z2;fn.isCancel=$1;fn.VERSION=M1;fn.toFormData=cd;fn.AxiosError=dt;fn.Cancel=fn.CanceledError;fn.all=function(e){return Promise.all(e)};fn.spread=G2;fn.isAxiosError=J2;fn.mergeConfig=li;fn.AxiosHeaders=Wr;fn.formToJSON=t=>O1(ie.isHTMLForm(t)?new FormData(t):t);fn.getAdapter=P1.getAdapter;fn.HttpStatusCode=X2;fn.default=fn;const Ut=fn,Q2={class:"navbar navbar-expand-lg as-navbar sticky-top"},Z2={class:"container-xxl as-gutter flex-wrap flex-lg-nowrap","aria-label":"Main navigation"},eC=m("div",{class:"as-navbar-toggle"},[m("button",{class:"navbar-toggler p-2",type:"button","data-bs-toggle":"offcanvas","data-bs-target":"#asSidebar","aria-controls":"asSidebar","aria-label":"Toggle docs navigation"},[m("i",{class:"fas fa-bars"}),m("span",{class:"d-none fs-6 pe-1"},"Browse")])],-1),tC={class:"navbar-brand p-0 me-0 me-lg-4 d-flex align-items-center",href:"javascript:void(0);","aria-label":"Astroid"},nC={class:"fa-layers fa-2x me-1","full-width":""},rC=m("svg",{class:"svg-inline--fa me-2","aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"meteor",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},[m("path",{class:"",fill:"currentColor",d:"M493.7 .9L299.4 75.6l2.3-29.3c1-12.8-12.8-21.5-24-15.1L101.3 133.4C38.6 169.7 0 236.6 0 309C0 421.1 90.9 512 203 512c72.4 0 139.4-38.6 175.7-101.3L480.8 234.3c6.5-11.1-2.2-25-15.1-24l-29.3 2.3L511.1 18.3c.6-1.5 .9-3.2 .9-4.8C512 6 506 0 498.5 0c-1.7 0-3.3 .3-4.8 .9zM192 192a128 128 0 1 1 0 256 128 128 0 1 1 0-256zm0 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm16 96a16 16 0 1 0 0-32 16 16 0 1 0 0 32z"})],-1),aC={class:"fa-layers-counter fa-layers-bottom-right"},oC=m("div",{class:"d-flex"},[m("button",{class:"navbar-toggler d-flex d-lg-none order-3 p-2",type:"button","data-bs-toggle":"offcanvas","data-bs-target":"#bdNavbar","aria-controls":"bdNavbar","aria-label":"Toggle navigation"},[m("i",{class:"fas fa-ellipsis"})])],-1),iC={class:"offcanvas-lg offcanvas-end flex-grow-1",tabindex:"-1",id:"bdNavbar","aria-labelledby":"bdNavbarOffcanvasLabel","data-bs-scroll":"true"},sC={class:"offcanvas-header px-4 pb-0"},lC={class:"offcanvas-title",id:"bdNavbarOffcanvasLabel"},uC=m("button",{type:"button",class:"btn-close","data-bs-dismiss":"offcanvas","aria-label":"Close","data-bs-target":"#bdNavbar"},null,-1),cC={class:"offcanvas-body p-4 pt-0 p-lg-0"},dC=m("hr",{class:"d-lg-none"},null,-1),fC={class:"cta-button d-lg-flex"},hC=m("div",{class:"vr d-none d-lg-flex h-100 me-lg-4"},null,-1),pC={class:"navbar-nav flex-row flex-wrap"},mC={class:"nav-item col-6 col-lg-auto d-grid"},vC=["onClick","disabled"],gC={class:"nav-item col-6 col-lg-auto d-grid"},yC=["onClick","disabled"],bC={class:"nav-item col-6 col-lg-auto d-grid"},wC=["href","aria-disabled"],_C=m("i",{class:"fas fa-up-right-from-square me-1"},null,-1),xC={class:"nav-item col-6 col-lg-auto d-grid"},SC=["href","aria-disabled"],TC=m("i",{class:"fas fa-xmark me-1"},null,-1),EC={class:"template-title m-auto d-none d-lg-block"},CC=m("hr",{class:"d-lg-none"},null,-1),OC={class:"navbar-nav flex-row flex-wrap ms-md-auto"},$C=["href","title"],AC={class:"d-lg-none ms-2"},kC={class:"astroid-color-mode d-lg-flex align-items-center ms-lg-2"},DC=m("hr",{class:"d-lg-none"},null,-1),NC={class:"form-check form-switch"},IC={class:"toast-container position-fixed bottom-0 end-0 p-3"},PC={id:"astroidMessage",class:"toast",role:"alert","aria-live":"assertive","aria-atomic":"true"},MC={class:"toast-header"},LC={class:"me-auto"},RC=m("small",null,"1 second ago",-1),FC=m("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"},null,-1),UC={class:"toast-body"},jC={__name:"Heading",props:{config:{type:Object,default:null}},emits:["update:ColorMode"],setup(t,{emit:e}){const n=e,r=t,a=Wt("theme","light"),o=r.config.astroid_lib.jtemplate_link.replace(/\&\;/g,"&"),i=G("fa-floppy-disk"),s=G("fa-eraser"),l=G(!1),u=Jt({header:"",body:"",icon:"",color:"darkviolet"}),c=G(!1);ft(()=>{c.value=a.value!=="light"}),vt(c,p=>{n("update:ColorMode",p?"dark":"light")});const d=[{title:"Astroid Website",href:r.config.astroid_lib.astroid_link,icon:"fas fa-meteor"},{title:"Docs",href:r.config.astroid_lib.document_link,icon:"fas fa-book"},{title:"GitHub",href:r.config.astroid_lib.github_link,icon:"fab fa-github"},{title:"Buy Me a Coffee",href:r.config.astroid_lib.donate_link,icon:"fa-solid fa-mug-saucer"}];function f(){const p=r.config.astroid_lib.astroid_action.replace(/\&\;/g,"&"),v=document.getElementById("astroidMessage"),g=Toast.getOrCreateInstance(v),y=new FormData(document.getElementById("astroid-form"));i.value="fa-sync fa-spin",l.value=!0,Ut.post(p,y,{headers:{"Content-Type":"multipart/form-data"}}).then(x=>{u.icon="fa-solid fa-floppy-disk",x.data.status==="success"?(u.header="Style has been saved",u.body="Style "+r.config.astroid_lib.template_name+" has been saved",u.color="darkviolet"):(u.header="Style did not saved yet",u.body=x.data.message,u.color="red"),i.value="fa-floppy-disk",l.value=!1,g.show()}).catch(x=>{console.error(x)})}function h(){const p=document.getElementById("astroidMessage"),v=Toast.getOrCreateInstance(p);s.value="fa-sync fa-spin",Ut.get(r.config.astroid_lib.base_url+"/index.php?option=com_ajax&astroid=clear-cache&template="+r.config.astroid_lib.template_name).then(function(g){g.data.status==="success"&&(u.icon="fa-solid fa-eraser",u.header="Template Clear Cache",u.body=g.data.data.message,u.color="darkviolet",v.show(),Ut.get(r.config.astroid_lib.base_url+"/index.php?option=com_ajax&astroid=clear-joomla-cache").then(function(y){y.data.status==="success"&&(s.value="fa-eraser",u.header="Joomla Clear Cache",u.body=y.data.data.message,v.show())}).catch(function(y){console.log(y)}))}).catch(function(g){console.log(g)})}return(p,v)=>(C(),$(ae,null,[m("header",Q2,[m("nav",Z2,[eC,m("a",tC,[m("div",nC,[rC,m("span",aC,"v"+re(r.config.astroid_lib.astroid_version),1)]),gt(" Astroid ")]),oC,m("div",iC,[m("div",sC,[m("h5",lC,re(r.config.astroid_lib.template_title),1),uC]),m("div",cC,[dC,m("div",fC,[hC,m("ul",pC,[m("li",mC,[m("button",{class:"btn btn-sm btn-as btn-as-primary",type:"button",onClick:he(f,["prevent"]),disabled:l.value},[m("i",{class:Se(["fas me-1",i.value])},null,2),gt(" "+re(r.config.astroid_lang.ASTROID_SAVE),1)],8,vC)]),m("li",gC,[m("button",{class:"btn btn-sm btn-as btn-as-light",type:"button",onClick:he(h,["prevent"]),disabled:l.value},[m("i",{class:Se(["fas me-1",s.value])},null,2),gt(" "+re(r.config.astroid_lang.ASTROID_TEMPLATE_CLEAR_CACHE),1)],8,yC)]),m("li",bC,[m("a",{class:Se(["btn btn-sm btn-as btn-as-light",{disabled:l.value}]),href:r.config.astroid_lib.site_url,target:"_blank",tabindex:"-1",role:"button","aria-disabled":l.value},[_C,gt(" "+re(r.config.astroid_lang.ASTROID_TEMPLATE_PREVIEW),1)],10,wC)]),m("li",xC,[m("a",{class:Se(["btn btn-sm btn-as btn-as-light",{disabled:l.value}]),href:K(o),tabindex:"-1",role:"button","aria-disabled":l.value},[TC,gt(" "+re(r.config.astroid_lang.ASTROID_TEMPLATE_CLOSE),1)],10,SC)])])]),m("div",EC,re(r.config.astroid_lib.template_title),1),CC,m("ul",OC,[(C(),$(ae,null,$e(d,g=>m("li",{class:"nav-item col-6 col-lg-auto",key:g.value},[m("a",{class:"nav-link py-2 px-0 px-lg-2",href:g.href,title:g.title,target:"_blank",rel:"noopener"},[m("i",{class:Se(g.icon)},null,2),m("small",AC,re(g.title),1)],8,$C)])),64))]),m("div",kC,[DC,m("div",NC,[De(m("input",{class:"form-check-input switcher",id:"astroid-color-mode-switcher",type:"checkbox",role:"switch","onUpdate:modelValue":v[0]||(v[0]=g=>c.value=g)},null,512),[[vr,c.value]])])])])])])]),m("div",IC,[m("div",PC,[m("div",MC,[m("i",{class:Se(["me-2",u.icon]),style:bt({color:u.color})},null,6),m("strong",LC,re(u.header),1),RC,FC]),m("div",UC,re(u.body),1)])])],64))}},BC={class:"as-sidebar"},VC={class:"offcanvas-lg offcanvas-start",tabindex:"-1",id:"asSidebar","aria-labelledby":"asSidebarOffcanvasLabel"},HC=m("div",{class:"offcanvas-header border-bottom"},[m("h5",{class:"offcanvas-title",id:"asSidebarOffcanvasLabel"},"Browse menu"),m("button",{type:"button",class:"btn-close","data-bs-dismiss":"offcanvas","aria-label":"Close","data-bs-target":"#asSidebar"})],-1),qC={class:"offcanvas-body"},YC={class:"as-links w-100",id:"as-sidebar-nav","aria-label":"Sidebar navigation"},KC={class:"as-links-nav list-unstyled mb-0 pb-3 pb-md-2 pe-lg-2"},WC=["href","onClick"],zC={class:"as-links-heading d-flex w-100 align-items-center fw-semibold"},GC=["innerHTML"],JC={key:0,class:"list-unstyled fw-normal pb-2 small"},XC=["onClick"],QC={__name:"Sidebar",props:{config:{type:Object,default:null}},setup(t){const e=t;return(n,r)=>(C(),$("aside",BC,[m("div",VC,[HC,m("div",qC,[m("nav",YC,[m("ul",KC,[(C(!0),$(ae,null,$e(e.config.astroid_content,a=>(C(),$("li",{class:"as-links-group py-2",key:a.name},[m("a",{href:"#"+a.name,class:"as-page-link",onClick:he(o=>n.$emit("sidebarActive",a.name),["prevent"])},[m("strong",zC,[m("i",{class:Se([a.icon,"me-2"])},null,2),m("span",{class:"d-flex align-items-center",innerHTML:a.label},null,8,GC)])],8,WC),Object.keys(a.childs).length>0?(C(),$("ul",JC,[(C(!0),$(ae,null,$e(a.childs,(o,i)=>(C(),$("li",{key:i},[m("a",{href:"#",onClick:he(s=>n.$emit("sidebarActive",a.name,i),["prevent"]),class:"as-links-link d-inline-block rounded"},re(o.title),9,XC)]))),128))])):Z("",!0)]))),128))])])])])]))}},ZC={class:"arrow-icon-picker"},eO={class:"icon-display mb-4"},tO={class:"row g-2 g-lg-3"},nO={class:"col-auto"},rO=["onClick"],aO=["id","name","value"],oO={__name:"BackToTopIcon",props:{field:{type:Object,default:null},modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,r=t,a=[["fas","fa-long-arrow-alt-up"],["fas","fa-arrow-up"],["fas","fa-arrow-circle-up"],["fas","fa-arrow-alt-circle-up"],["fas","fa-angle-double-up"],["fas","fa-sort-up"],["fas","fa-level-up-alt"],["fas","fa-cloud-upload-alt"],["fas","fa-chevron-up"],["fas","fa-chevron-circle-up"],["fas","fa-hand-point-up"],["fas","fa-caret-square-up"]];function o(i){n("update:modelValue",i.join(" "))}return(i,s)=>(C(),$(ae,null,[m("div",ZC,[m("div",eO,[m("i",{class:Se(["fa-3x",t.modelValue])},null,2)]),m("div",tO,[(C(),$(ae,null,$e(a,l=>m("div",nO,[m("a",{class:Se(["icon border rounded p-2 link-underline link-underline-opacity-0 link-underline-opacity-0-hover",{active:l.join(" ")===t.modelValue}]),onClick:he(u=>o(l),["prevent"])},[m("i",{class:Se(l.join(" "))},null,2)],10,rO)])),64))])]),m("input",{id:r.field.input.id,name:r.field.input.name,value:t.modelValue,type:"hidden"},null,8,aO)],64))}};function Wl(t,e,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function s(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?o(c.value):a(c.value).then(s,l)}u((r=r.apply(t,e||[])).next())})}function zl(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(n=0)),n;)try{if(r=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1] 0)&&!(a=r.next()).done;)o.push(a.value)}catch(s){i={error:s}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return o}function sO(){for(var t=[],e=0;e 0?r:t.name,writable:!1,configurable:!1,enumerable:!0})}return n}function uO(t){var e=t.name,n=e&&e.lastIndexOf(".")!==-1;if(n&&!t.type){var r=e.split(".").pop().toLowerCase(),a=lO.get(r);a&&Object.defineProperty(t,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return t}var cO=[".DS_Store","Thumbs.db"];function dO(t){return Wl(this,void 0,void 0,function(){return zl(this,function(e){return[2,fO(t)&&t.dataTransfer?mO(t.dataTransfer,t.type):hO(t)]})})}function fO(t){return!!t.dataTransfer}function hO(t){var e=pO(t.target)?t.target.files?Bh(t.target.files):[]:[];return e.map(function(n){return pd(n)})}function pO(t){return t!==null}function mO(t,e){return Wl(this,void 0,void 0,function(){var n,r;return zl(this,function(a){switch(a.label){case 0:return t.items?(n=Bh(t.items).filter(function(o){return o.kind==="file"}),e!=="drop"?[2,n]:[4,Promise.all(n.map(vO))]):[3,2];case 1:return r=a.sent(),[2,Og(R1(r))];case 2:return[2,Og(Bh(t.files).map(function(o){return pd(o)}))]}})})}function Og(t){return t.filter(function(e){return cO.indexOf(e.name)===-1})}function Bh(t){for(var e=[],n=0;n 0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]n)return[!1,rb(n)];if(e.size n)return[!1,rb(n)]}return[!0,null]}function ja(){for(var e=[],t=0;t 1||i&&o>=1&&t.length>o?!1:t.every(function(s){var l=B_(s,n)[0],u=U_(s,r,a)[0];return l&&u})}var JA={disabled:!1,getFilesFromEvent:AA,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1};function QA(e){e===void 0&&(e={});var t=Q(pr(pr({},JA),e));gt(function(){return pr({},e)},function(E){t.value=pr(pr({},t.value),E)});var n=Q(),r=Q(),a=Zt({isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]}),i=function(){r.value&&(a.isFileDialogActive=!0,r.value.value="",r.value.click())},o=function(){var E=t.value.onFileDialogCancel;a.isFileDialogActive&&setTimeout(function(){if(r.value){var A=r.value.files;A&&!A.length&&(a.isFileDialogActive=!1,typeof E=="function"&&E())}},300)};function s(){a.isFocused=!0}function l(){a.isFocused=!1}function u(){var E=t.value.noClick;E||(UA()?setTimeout(i,0):i())}var c=Q([]),d=function(E){if(n.value){var A=n.value.$el||n.value;A.contains(E.target)||(E.preventDefault(),c.value=[])}};mt(function(){window.addEventListener("focus",o,!1);var E=t.value.preventDropOnDocument;E&&(document.addEventListener("dragover",nb,!1),document.addEventListener("drop",d,!1))}),ia(function(){window.removeEventListener("focus",o,!1);var E=t.value.preventDropOnDocument;E&&(document.removeEventListener("dragover",nb),document.removeEventListener("drop",d))});function f(E){var A=t.value.noDragEventsBubbling;A&&E.stopPropagation()}function h(E){return RA(this,void 0,void 0,function(){var A,O,D,$,j;return FA(this,function(V){switch(V.label){case 0:return A=t.value,O=A.getFilesFromEvent,D=A.noDragEventsBubbling,$=A.onDragEnter,E.preventDefault(),f(E),c.value=Yp(Yp([],c.value),[E.target]),yc(E)?O?[4,O(E)]:[2]:[3,2];case 1:if(j=V.sent(),j||(j=[]),yd(E)&&!D)return[2];a.draggedFiles=j,a.isDragActive=!0,$&&$(E),V.label=2;case 2:return[2]}})})}function p(E){var A=t.value.onDragOver;if(E.preventDefault(),f(E),E.dataTransfer)try{E.dataTransfer.dropEffect="copy"}catch{}return yc(E)&&A&&A(E),!1}function v(E){E.preventDefault(),f(E);var A=c.value.filter(function($){if(!n.value)return!1;var j=n.value.$el||n.value;return j.contains($)}),O=A.indexOf(E.target);if(O!==-1&&A.splice(O,1),c.value=A,!(A.length>0)){a.draggedFiles=[],a.isDragActive=!1;var D=t.value.onDragLeave;yc(E)&&D&&D(E)}}function y(E){E.preventDefault(),f(E),c.value=[];var A=t.value,O=A.getFilesFromEvent,D=A.noDragEventsBubbling,$=A.accept,j=A.minSize,V=A.maxSize,ee=A.multiple,N=A.maxFiles,H=A.onDrop,I=A.onDropRejected,X=A.onDropAccepted;if(yc(E)){if(!O)return;Promise.resolve(O(E)).then(function(J){if(!(yd(E)&&!D)){var B=[],oe=[];J.forEach(function(he){var fe=B_(he,$),Ce=fe[0],we=fe[1],Te=U_(he,j,V),nt=Te[0],ie=Te[1];if(Ce&&nt)B.push(he);else{var F=[we,ie].filter(function(q){return q});oe.push({file:he,errors:F})}}),(!ee&&B.length>1||ee&&N>=1&&B.length>N)&&(B.forEach(function(he){oe.push({file:he,errors:[zA]})}),B.splice(0)),a.acceptedFiles=B,a.fileRejections=oe,H&&H(B,oe,E),oe.length>0&&I&&I(oe,E),B.length>0&&X&&X(B,E)}})}a.isFileDialogActive=!1,a.isDragActive=!1,a.draggedFiles=[],a.acceptedFiles=[],a.fileRejections=[]}var g=function(E){return t.value.disabled?void 0:E},_=function(E){return t.value.noKeyboard?void 0:g(E)},w=function(E){return t.value.noDrag?void 0:g(E)},S=function(E){E===void 0&&(E={});var A=E.onFocus,O=E.onBlur,D=E.onClick,$=E.onDragEnter,j=E.onDragenter,V=E.onDragOver,ee=E.onDragover,N=E.onDragLeave,H=E.onDragleave,I=E.onDrop,X=tb(E,["onFocus","onBlur","onClick","onDragEnter","onDragenter","onDragOver","onDragover","onDragLeave","onDragleave","onDrop"]);return pr(pr({onFocus:_(ja(A,s)),onBlur:_(ja(O,l)),onClick:g(ja(D,u)),onDragenter:w(ja($,j,h)),onDragover:w(ja(V,ee,p)),onDragleave:w(ja(N,H,v)),onDrop:w(ja(I,y)),ref:n},!t.value.disabled&&!t.value.noKeyboard?{tabIndex:0}:{}),X)},k=function(E){E.stopPropagation()};function P(E){E===void 0&&(E={});var A=E.onChange,O=E.onClick,D=tb(E,["onChange","onClick"]),$={accept:t.value.accept,multiple:t.value.multiple,style:"display: none",type:"file",onChange:g(ja(A,y)),onClick:g(ja(O,k)),autoComplete:"off",tabIndex:-1,ref:r};return pr(pr({},$),D)}var R=ye(function(){return a.draggedFiles?a.draggedFiles.length:0}),M=ye(function(){return R.value>0&&XA({files:a.draggedFiles,accept:t.value.accept,minSize:t.value.minSize,maxSize:t.value.maxSize,multiple:t.value.multiple,maxFiles:t.value.maxFiles})}),x=ye(function(){return R.value>0&&!M.value});return pr(pr({},iw(a)),{isDragAccept:M,isDragReject:x,isFocused:ye(function(){return a.isFocused&&!t.value.disabled}),getRootProps:S,getInputProps:P,rootRef:n,inputRef:r,open:g(i)})}const ZA={key:0,class:"files mb-3"},e$=["onClick"],t$={key:0,class:"text-center py-5"},n$=m("i",{class:"fas fa-cloud-arrow-up fa-4x mb-3"},null,-1),r$=m("div",null,"Drop the files here ...",-1),a$=[n$,r$],i$={key:1,class:"text-center py-5"},o$=m("i",{class:"fas fa-cloud-arrow-up fa-4x mb-3"},null,-1),s$=m("div",null,"Drag and drop files here, or Click to select files",-1),l$=[o$,s$],u$={__name:"DropZone",props:{url:{type:String,default:""},clickUpload:{type:Boolean,default:!1}},emits:["update:media"],setup(e,{emit:t}){const n=e,r=t,a=Zt({files:[]}),i=sn("constant",{}),{getRootProps:o,getInputProps:s,isDragActive:l,...u}=QA({onDrop:c});function c(h,p){h.forEach(v=>{a.files.push(v)})}function d(h){a.files.splice(h,1)}const f=h=>{for(var p=0;p {p===h.length&&r("update:media")}).catch(y=>{console.error(y)})}};return gn(()=>{n.clickUpload===!0&&a.files.length&&f(a.files)}),(h,p)=>(T(),C(ae,null,[a.files.length>0?(T(),C("div",ZA,[(T(!0),C(ae,null,ke(a.files,(v,y)=>(T(),C("div",{class:"file-item",key:y},[m("span",null,re(v.name),1),m("span",{class:"delete-file",onClick:g=>d(y)},"Delete",8,e$)]))),128))])):Z("",!0),m("div",On({class:"dropzone"},z(o)()),[m("div",{class:xe(["border",{isDragActive:z(l)}])},[m("input",_n(Zn(z(s)())),null,16),z(l)?(T(),C("div",t$,a$)):(T(),C("div",i$,l$))],2)],16)],64))}},c$={key:0,class:"image-preview mb-3"},d$={key:0,class:"fa-solid fa-video fa-3x"},f$=["src","alt"],h$={class:"input-group input-group-sm mb-3"},p$=["id"],m$=["value","aria-describedby"],v$={key:1,class:"astroid-media-selector"},g$=["data-bs-target"],y$={key:2,class:"astroid-media-selector btn-group",role:"group"},b$=["data-bs-target"],w$=["onClick"],_$=["id"],x$={class:"modal-dialog modal-xl modal-dialog-centered modal-dialog-scrollable"},S$={class:"modal-content"},E$={class:"modal-header"},T$={class:"modal-title"},O$=m("i",{class:"fas fa-folder"},null,-1),k$=["id"],C$={class:"modal-body p-3"},A$={key:0,class:"row row-cols-2 row-cols-lg-4 row-cols-xl-5 gx-3 gy-2"},$$=["onClick"],D$=["src","alt"],N$={key:2,class:"fa-solid fa-video fa-3x"},P$={key:0},I$={class:"form-text"},M$={key:0,class:"nav toolbox justify-content-center"},L$={class:"nav-item"},R$=["onClick","data-bs-target"],F$=m("i",{class:"fa-solid fa-pencil"},null,-1),j$=m("span",{class:"position-absolute top-100 start-50 translate-middle form-text"},"Rename",-1),B$=[F$,j$],U$={class:"nav-item"},V$=["onClick"],H$=m("i",{class:"fa-solid fa-trash"},null,-1),Y$=m("span",{class:"position-absolute top-100 start-50 translate-middle form-text"},"Delete",-1),q$=[H$,Y$],z$={key:1,class:"loading d-flex justify-content-center flex-column w-100",style:{"align-items":"center"}},W$=m("i",{class:"fa-solid fa-basketball fa-bounce fa-3x",style:{"--fa-bounce-land-scale-x":"1.2","--fa-bounce-land-scale-y":".8","--fa-bounce-rebound":"5px"}},null,-1),K$=m("div",{class:"fa-beat-fade mt-3",style:{"--fa-beat-fade-opacity":"0.1","--fa-beat-fade-scale":"1.05"}},"Loading...",-1),G$=[W$,K$],X$={key:1},J$={class:"modal-footer"},Q$={key:0,type:"button",class:"btn btn-sm btn-as btn-as-light","data-bs-dismiss":"modal"},Z$=["data-bs-target"],e3=["id"],t3={class:"modal-dialog modal-dialog-centered"},n3={class:"modal-content"},r3={class:"modal-header"},a3={class:"modal-title"},i3=m("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),o3={class:"modal-body p-3"},s3=["for"],l3=["id"],u3={class:"modal-footer"},c3=["id","data-bs-target"],d3=["onClick"],f3=["onClick"],h3=["id","name","value"],p3={__name:"MediaManager",props:{field:{type:Object,default:null},modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,r=e,a=sn("constant",{}),i=Q([]),o=Q([]),s=Q(""),l=Q("");mt(()=>{r.modelValue!==""&&u();const O=document.getElementById(r.field.input.id+"modal");O&&(O.addEventListener("show.bs.modal",D=>{f()}),O.addEventListener("hide.bs.modal",D=>{i.value=[]}))}),gn(()=>{u()});function u(){r.modelValue.search(/https*:\/\//i)!==-1?l.value=r.modelValue:r.modelValue!==""&&(l.value=a.site_url+r.field.input.mediaPath+"/"+r.modelValue)}const c=Q(!1);function d(O=null){if(!O)return!1;o.value=O.current_folder.split("/"),i.value=[],s.value!==""&&i.value.push({id:"go-back",icon:"fas fa-left-long",name:"Go back",type:"back"}),O.folders.forEach((D,$)=>{i.value.push({id:"folder"+$,icon:"fas fa-folder",name:D.name,path_relative:D.path_relative,type:"folder"})}),r.field.input.media==="images"&&O.images.forEach((D,$)=>{i.value.push({id:"image"+$,name:D.name,path_relative:D.path_relative,path:a.site_url+r.field.input.mediaPath+"/"+D.path_relative,type:"image"})}),r.field.input.media==="videos"&&O.videos.forEach((D,$)=>{i.value.push({id:"video"+$,name:D.name,path_relative:D.path_relative,path:a.site_url+r.field.input.mediaPath+"/"+D.path_relative,type:"video"})})}function f(){let O=r.field.input.ajax+"&action=library&asset=com_templates&ts="+Date.now();const D=new FormData;D.append("folder",s.value),D.append(a.astroid_admin_token,1),c.value=!0,Ut.post(O,D,{headers:{"Content-Type":"multipart/form-data"}}).then(function($){$.data.status==="success"&&(d($.data.data),c.value=!1)}).catch(function($){console.log($)})}function h(O){let D=o.value.join("/");if((O.type==="image"||O.type==="video")&&(l.value=a.site_url+r.field.input.mediaPath+"/"+O.path_relative,n("update:modelValue",O.path_relative),document.getElementById(r.field.input.id+"close").click()),O.type==="folder"&&(s.value=O.path_relative,f()),O.type==="back"){let $=D.substring(D.indexOf("/")+1);$.indexOf("/")>0?s.value=$.substring(0,$.lastIndexOf("/")):s.value="",f()}}function p(){l.value="",n("update:modelValue","")}const v=Q(!1),y=Q(!1),g=Q("Upload");function _(){v.value===!0?y.value=!0:(v.value=!0,y.value=!1,g.value="Click to Upload")}function w(){v.value=!1,y.value=!1,g.value="Upload",f()}const S=Q(""),k=Zt({name:"",type:""}),P=Q(null),R=Q("");function M(O,D=null){R.value=O,D!==null?(k.name=D.name,k.type=D.type,S.value=D.name):S.value=""}function x(){if(S.value.trim()==="")return alert("Folder Name can not empty!"),P.value.focus(),!1;let O=a.site_url+"administrator/index.php?option=com_ajax&astroid=media&action=createFolder&ts="+Date.now();const D=new FormData;D.append("name",S.value.trim()),D.append("dir","images/"+s.value),D.append(a.astroid_admin_token,1),Ut.post(O,D,{headers:{"Content-Type":"multipart/form-data"}}).then($=>{document.getElementById(r.field.input.id+"close_edit_item_dialog").click()}).catch($=>{console.error($)})}function E(){if(S.value.trim()==="")return alert("Item Name can not empty!"),P.value.focus(),!1;let O=a.site_url+"administrator/index.php?option=com_ajax&astroid=media&action=rename&ts="+Date.now();const D=new FormData;D.append("name",k.name),D.append("type",k.type),D.append("new_name",S.value.trim()),D.append("dir","images/"+s.value),D.append(a.astroid_admin_token,1),Ut.post(O,D,{headers:{"Content-Type":"multipart/form-data"}}).then($=>{document.getElementById(r.field.input.id+"close_edit_item_dialog").click()}).catch($=>{console.error($)})}function A(O){if(!confirm("This item will be deleted. You cannot undo this action. Are you sure?"))return!1;let D=a.site_url+"administrator/index.php?option=com_ajax&astroid=media&action=remove&ts="+Date.now();const $=new FormData;$.append("name",O.name),$.append("type",O.type),$.append("dir","images/"+s.value),$.append(a.astroid_admin_token,1),Ut.post(D,$,{headers:{"Content-Type":"multipart/form-data"}}).then(j=>{f()}).catch(j=>{console.error(j)})}return(O,D)=>(T(),C(ae,null,[l.value!==""?(T(),C("div",c$,[r.field.input.media==="videos"?(T(),C("i",d$)):(T(),C("img",{key:1,src:l.value,alt:r.field.name},null,8,f$))])):Z("",!0),m("div",h$,[m("span",{class:"input-group-text",id:r.field.input.id+"url"},"Url",8,p$),m("input",{type:"text",class:"form-control",value:e.modelValue,onInput:D[0]||(D[0]=$=>n("update:modelValue",$.target.value)),"aria-label":"URL","aria-describedby":r.field.input.id+"url"},null,40,m$)]),l.value===""?(T(),C("div",v$,[m("button",{class:"btn btn-sm btn-as btn-primary btn-as-primary",onClick:D[1]||(D[1]=de(()=>{},["prevent"])),"data-bs-toggle":"modal","data-bs-target":"#"+r.field.input.id+"modal"},re(r.field.input.lang.select_media),9,g$)])):(T(),C("div",y$,[m("button",{class:"btn btn-sm btn-as btn-primary btn-as-primary",onClick:D[2]||(D[2]=de(()=>{},["prevent"])),"data-bs-toggle":"modal","data-bs-target":"#"+r.field.input.id+"modal"},re(r.field.input.lang.change_media),9,b$),m("button",{class:"btn btn-sm btn-as btn-as-light",onClick:de(p,["prevent"])},re(r.field.input.lang.clear),9,w$)])),m("div",{class:"modal fade",id:r.field.input.id+"modal",tabindex:"-1"},[m("div",x$,[m("div",S$,[m("div",E$,[m("h5",T$,[O$,bt(" / "+re(o.value.join(" / ")),1)]),m("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:r.field.input.id+"close"},null,8,k$)]),m("div",C$,[v.value?(T(),C("div",X$,[ce(u$,{url:r.field.input.ajax+"&action=upload&media="+r.field.input.media+"&dir=images/"+s.value,"click-upload":y.value,"onUpdate:media":w},null,8,["url","click-upload"])])):(T(),C("div",A$,[c.value?(T(),C("div",z$,G$)):(T(!0),C(ae,{key:0},ke(i.value,$=>(T(),C("div",{key:$.id,class:"col p-4 text-center media-item"},[m("div",{class:xe(["card card-default media-icon justify-content-center align-items-center border",$.type+"-type"]),onClick:j=>h($)},[($.type==="folder"||$.type==="back")&&$.icon!==void 0&&$.icon?(T(),C("i",{key:0,class:xe([$.icon,"as-system-icon fa-3x"])},null,2)):$.type==="image"&&$.path!==void 0&&$.path?(T(),C("img",{key:1,src:$.path,class:"img-fluid",alt:$.name},null,8,D$)):$.type==="video"?(T(),C("i",N$)):Z("",!0)],10,$$),$.name!==void 0&&$.name?(T(),C("div",P$,[m("div",I$,re($.name),1),$.type!=="back"?(T(),C("ul",M$,[m("li",L$,[m("a",{class:"nav-link position-relative px-2",href:"#",title:"Rename",onClick:de(j=>M("rename",$),["prevent"]),"data-bs-target":"#"+r.field.input.id+"edit_item_dialog","data-bs-toggle":"modal"},B$,8,R$)]),m("li",U$,[m("a",{class:"nav-link position-relative px-2",href:"#",title:"Remove",onClick:de(j=>A($),["prevent"])},q$,8,V$)])])):Z("",!0)])):Z("",!0)]))),128))]))]),m("div",J$,[v.value?(T(),C("button",{key:1,type:"button",class:"btn btn-sm btn-as btn-as-light",onClick:w},"Cancel")):(T(),C("button",Q$,"Close")),v.value?Z("",!0):(T(),C("button",{key:2,class:"btn btn-sm btn-as btn-as-light",onClick:D[3]||(D[3]=de($=>M("createfolder"),["prevent"])),"data-bs-target":"#"+r.field.input.id+"edit_item_dialog","data-bs-toggle":"modal"},"Create New Folder",8,Z$)),m("button",{type:"button",class:"btn btn-sm btn-as btn-primary btn-as-primary",onClick:_},re(g.value),1)])])])],8,_$),m("div",{class:"modal fade",id:r.field.input.id+"edit_item_dialog","aria-hidden":"true",tabindex:"-1"},[m("div",t3,[m("div",n3,[m("div",r3,[m("h5",a3,re(R.value==="createfolder"?"Create New Folder":"Rename"),1),i3]),m("div",o3,[m("label",{for:r.field.input.id+"folder_name",class:"form-label"},re(R.value==="createfolder"?"Folder Name":"Enter new name"),9,s3),Ne(m("input",{type:"text",ref_key:"newFolderInput",ref:P,class:"form-control","onUpdate:modelValue":D[4]||(D[4]=$=>S.value=$),id:r.field.input.id+"folder_name",placeholder:"Enter Item name"},null,8,l3),[[kt,S.value]])]),m("div",u3,[m("button",{class:"btn btn-sm btn-as btn-as-light",id:r.field.input.id+"close_edit_item_dialog","data-bs-target":"#"+r.field.input.id+"modal",onClick:D[5]||(D[5]=de(()=>{},["prevent"])),"data-bs-toggle":"modal"},"Cancel",8,c3),R.value==="createfolder"?(T(),C("button",{key:0,class:"btn btn-sm btn-as btn-primary btn-as-primary",onClick:de(x,["prevent"])},"Create",8,d3)):(T(),C("button",{key:1,class:"btn btn-sm btn-as btn-primary btn-as-primary",onClick:de(E,["prevent"])},"Rename",8,f3))])])])],8,e3),m("input",{id:r.field.input.id,name:r.field.input.name,value:e.modelValue,type:"hidden"},null,8,h3)],64))}},m3=["data-bs-target"],v3=["data-bs-target","innerHTML"],g3=["id"],y3={class:"modal-dialog modal-xl modal-dialog-centered modal-dialog-scrollable"},b3={class:"modal-content"},w3={class:"modal-header"},_3=m("h5",{class:"modal-title"},"Select Preloader Style",-1),x3=["id"],S3={class:"modal-body"},E3={key:0,class:"row g-3"},T3=["onClick"],O3={key:0},k3=["innerHTML"],C3=["id","name","value"],A3={__name:"Preloader",props:{field:{type:Object,default:null},modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,r=e,a=Q(!1);mt(()=>{const o=document.getElementById(r.field.input.id+"modal");o&&(o.addEventListener("show.bs.modal",s=>{a.value=!0}),o.addEventListener("hide.bs.modal",s=>{a.value=!1}))});const i=o=>{n("update:modelValue",o),document.getElementById(r.field.input.id+"close").click()};return(o,s)=>(T(),C(ae,null,[r.field.input.style==="fontawesome"?(T(),C("div",{key:0,class:"select-preloader","data-bs-toggle":"modal","data-bs-target":"#"+r.field.input.id+"modal"},[m("i",{class:xe([r.modelValue,"fa-3x"])},null,2)],8,m3)):(T(),C("div",{key:1,class:"select-preloader","data-bs-toggle":"modal","data-bs-target":"#"+r.field.input.id+"modal",innerHTML:r.field.input.preloader[r.modelValue].code},null,8,v3)),m("div",{class:"modal fade",id:r.field.input.id+"modal",tabindex:"-1"},[m("div",y3,[m("div",b3,[m("div",w3,[_3,m("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:r.field.input.id+"close"},null,8,x3)]),m("div",S3,[a.value?(T(),C("div",E3,[(T(!0),C(ae,null,ke(r.field.input.preloader,(l,u)=>(T(),C("div",{class:"col col-auto",key:u},[m("div",{class:"preloader-item d-flex justify-content-center align-items-center border rounded",onClick:c=>i(l.name)},[r.field.input.style==="fontawesome"?(T(),C("div",O3,[m("i",{class:xe([l.name,"fa-3x"])},null,2)])):(T(),C("div",{key:1,class:"preloader-code",innerHTML:l.code},null,8,k3))],8,T3)]))),128))])):Z("",!0)])])])],8,g3),m("input",{id:r.field.input.id,name:r.field.input.name,value:e.modelValue,type:"hidden"},null,8,C3)],64))}},En={openOptions(e){e.$refs.input.focus(),e.showMenu=!0,e.mousedownState=!1},blurInput(e){e.mousedownState||(e.searchText="",e.closeOptions()),e.$emit("blur")},closeOptions(e){e.$refs.input.blur(),e.showMenu=!1},prevItem(e){const t=e.pointer-1,n=e.$el.offsetHeight*t;t>=0&&(e.pointer=t),e.$refs.menu.scrollTop=n},nextItem(e){const t=e.pointer+1,n=e.$el.offsetHeight*t;t<=e.filteredOptions.length-1&&(e.pointer=t);const r=e.$refs.menu.offsetHeight,a=Math.ceil((e.$refs.menu.scrollTop+e.$el.offsetHeight)/r),i=Math.ceil(n/r);a!==i&&(e.$refs.menu.scrollTop=(i-1)*e.$refs.menu.offsetHeight)},enterItem(e){const t=e.filteredOptions[e.pointer],n=t.disabled;t&&!n&&e.selectItem(t)},pointerSet(e,t){e.pointer=t},pointerAdjust(e){e.pointer>=e.filteredOptions.length-1&&(e.pointer=e.filteredOptions.length?e.filteredOptions.length-1:0)},mousedownItem(e){e.mousedownState=!0}};function $3(e){return new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const ff={props:{id:{default:null},name:{type:String,default:""},isError:{type:Boolean,default:!1},customAttr:{type:Function,default:()=>""},isDisabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},filterPredicate:{type:Function,default:(e,t)=>e.match($3(t))}}},V_=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},D3={name:"ModelSelect",mixins:[ff],emits:["blur","searchchange","update:modelValue"],props:{modelValue:{type:[String,Number,Object,Boolean]},customAttr:{type:Function,default:()=>""},options:{type:Array}},data(){return{showMenu:!1,searchText:"",mousedownState:!1,pointer:-1}},watch:{value(e){this.pointer=this.filteredOptions.findIndex(t=>t.value===this.optionValue(e))},filteredOptions(){this.pointerAdjust()},searchText(){this.$emit("searchchange",this.searchText)}},computed:{searchTextCustomAttr(){return this.selectedOption&&this.selectedOption.value?this.customAttr(this.selectedOption):""},inputText(){if(this.searchText)return"";{let e=this.placeholder;return this.selectedOption&&(e=this.selectedOption.text),e}},customAttrs(){try{if(Array.isArray(this.options))return this.options.map(e=>this.customAttr(e))}catch{}return[]},textClass(){return!this.selectedOption&&this.placeholder?"default":""},menuClass(){return{visible:this.showMenu,hidden:!this.showMenu}},menuStyle(){return{display:this.showMenu?"block":"none"}},filteredOptions(){return this.searchText?this.options.filter(e=>{try{return this.filterPredicate(e.text,this.searchText)}catch{return!0}}):this.options},selectedOption(){return this.options.find(e=>e.value===this.optionValue(this.modelValue))}},methods:{deleteTextOrItem(){!this.searchText&&this.modelValue&&(this.selectItem({}),this.openOptions())},openOptions(){En.openOptions(this)},blurInput(){En.blurInput(this)},closeOptions(){En.closeOptions(this)},prevItem(){En.prevItem(this)},nextItem(){En.nextItem(this)},enterItem(){En.enterItem(this)},pointerSet(e){En.pointerSet(this,e)},pointerAdjust(){En.pointerAdjust(this)},mousedownItem(){En.mousedownItem(this)},selectItem(e){this.searchText="",this.closeOptions(),typeof this.modelValue=="object"&&this.modelValue?this.$emit("update:modelValue",e):(this.$emit("update:modelValue",e.value),e.value!==void 0&&e.value===e.text&&(this.searchText=e.value))},optionValue(e){return typeof e=="object"&&e!==null?e.value:e}}},N3=m("i",{class:"dropdown icon"},null,-1),P3=["disabled","tabindex","id","name","value"],I3=["data-vss-custom-attr"],M3=["data-vss-custom-attr","onClick","onMouseenter"];function L3(e,t,n,r,a,i){return T(),C("div",{class:xe(["ui fluid search selection dropdown",{"active visible":a.showMenu,error:e.isError,disabled:e.isDisabled}]),onClick:t[11]||(t[11]=(...o)=>i.openOptions&&i.openOptions(...o)),onFocus:t[12]||(t[12]=(...o)=>i.openOptions&&i.openOptions(...o))},[N3,m("input",{class:"search",autocomplete:"off",disabled:e.isDisabled,tabindex:e.isDisabled?-1:0,id:e.id,name:e.name,value:a.searchText,onInput:t[0]||(t[0]=o=>a.searchText=o.target.value),ref:"input",onFocus:t[1]||(t[1]=de((...o)=>i.openOptions&&i.openOptions(...o),["prevent"])),onKeyup:[t[2]||(t[2]=tt((...o)=>i.closeOptions&&i.closeOptions(...o),["esc"])),t[7]||(t[7]=tt(de((...o)=>i.enterItem&&i.enterItem(...o),["prevent"]),["enter"]))],onBlur:t[3]||(t[3]=(...o)=>i.blurInput&&i.blurInput(...o)),onKeydown:[t[4]||(t[4]=tt((...o)=>i.prevItem&&i.prevItem(...o),["up"])),t[5]||(t[5]=tt((...o)=>i.nextItem&&i.nextItem(...o),["down"])),t[6]||(t[6]=tt(de(()=>{},["prevent"]),["enter"])),t[8]||(t[8]=tt((...o)=>i.deleteTextOrItem&&i.deleteTextOrItem(...o),["delete"]))]},null,40,P3),m("div",{class:xe(["text",i.textClass]),"data-vss-custom-attr":i.searchTextCustomAttr},re(i.inputText),11,I3),m("div",{class:xe(["menu",i.menuClass]),ref:"menu",onMousedown:t[10]||(t[10]=de(()=>{},["prevent"])),style:wt(i.menuStyle),tabindex:"-1"},[(T(!0),C(ae,null,ke(i.filteredOptions,(o,s)=>(T(),C("div",{key:s,class:xe(["item",{selected:o.selected||a.pointer===s,disabled:o.disabled}]),"data-vss-custom-attr":i.customAttrs[s]?i.customAttrs[s]:"",onClick:de(l=>i.selectItem(o),["stop"]),onMousedown:t[9]||(t[9]=(...l)=>i.mousedownItem&&i.mousedownItem(...l)),onMouseenter:l=>i.pointerSet(s)},[qe(e.$slots,"default",{option:o,idx:s},()=>[bt(re(o.text),1)])],42,M3))),128))],38)],34)}const ib=V_(D3,[["render",L3]]),R3={name:"ModelListSelect",mixins:[ff],emits:["blur","searchchange","update:modelValue"],render:function(){return Sr(ib,{id:this.id,name:this.name,options:this.options,modelValue:this.innerValue,isError:this.isError,isDisabled:this.isDisabled,placeholder:this.placeholder,filterPredicate:this.filterPredicate,onBlur:()=>this.$emit("blur"),"onUpdate:modelValue":this.onInput,onSearchchange:e=>this.$emit("searchchange",e)})},props:{modelValue:{type:[String,Number,Object,Boolean]},list:{type:Array},optionValue:{type:String},optionText:{type:String},customText:{type:Function},optionDisabled:{type:String}},computed:{options(){return this.list.map(e=>({value:e[this.optionValue],text:this.buildText(e),disabled:!!e[this.optionDisabled]}))},innerValue(){return this.modelValue?typeof this.modelValue=="object"?this.modelValue?{value:this.modelValue[this.optionValue],text:this.buildText(this.modelValue),disabled:!!this.modelValue[this.optionDisabled]}:{value:"",text:"",disabled:!1}:this.modelValue:this.modelValue}},methods:{buildText(e){return e[this.optionValue]!==void 0?this.customText?this.customText(e):e[this.optionText]:""},onInput(e){if(e===void 0)return this.$emit("update:modelValue","");if(Object.keys(e).length===0&&e.constructor===Object)this.$emit("update:modelValue",e);else if(typeof e=="object"){const t=this.list.find(n=>n[this.optionValue]===e.value);this.$emit("update:modelValue",t)}else this.$emit("update:modelValue",e)}},components:{ModelSelect:ib}},F3={name:"MultiSelect",mixins:[ff],emits:["blur","searchchange","select"],props:{customAttr:{type:Function,default:()=>""},options:{type:Array},selectedOptions:{type:Array},cleanSearch:{type:Boolean,default:!0},hideSelectedOptions:{type:Boolean,default:!1}},data(){return{showMenu:!1,searchText:"",mousedownState:!1,pointer:-1}},watch:{selectedOptions(){this.pointer=-1},filteredOptions(){this.pointerAdjust()},searchText(){this.$emit("searchchange",this.searchText)}},computed:{inputText(){return this.searchText?"":this.placeholder},textClass(){return this.placeholder?"default":""},inputWidth(){return{width:(this.searchText.length+1)*8+20+"px"}},menuClass(){return{visible:this.showMenu,hidden:!this.showMenu}},menuStyle(){return{display:this.showMenu?"block":"none"}},nonSelectOptions(){return this.options.filter(e=>this.selectedOptions.findIndex(t=>t.value===e.value)===-1)},filteredOptions(){return this.searchText?this.nonSelectOptions.filter(e=>{try{return this.cleanSearch?this.filterPredicate(this.accentsTidy(e.text),this.searchText):this.filterPredicate(e.text,this.searchText)}catch{return!0}}):this.nonSelectOptions}},methods:{deleteTextOrLastItem(){!this.searchText&&this.selectedOptions.length>0&&this.deleteItem(this.selectedOptions[this.selectedOptions.length-1])},openOptions(){En.openOptions(this)},blurInput(){En.blurInput(this)},closeOptions(){En.closeOptions(this)},prevItem(){En.prevItem(this),this.openOptions()},nextItem(){En.nextItem(this),this.openOptions()},enterItem(){En.enterItem(this)},pointerSet(e){En.pointerSet(this,e)},pointerAdjust(){En.pointerAdjust(this)},mousedownItem(){En.mousedownItem(this)},selectItem(e){const t=this.selectedOptions.concat(e),n=t.filter((r,a)=>t.indexOf(r)===a);this.closeOptions(),this.searchText="",this.$emit("select",n,e,"insert")},deleteItem(e){const t=this.selectedOptions.filter(n=>n.value!==e.value);this.$emit("select",t,e,"delete")},accentsTidy(e){let t=e.toString().toLowerCase();return t=t.replace(new RegExp("[àáâãäå]","g"),"a"),t=t.replace(new RegExp("æ","g"),"ae"),t=t.replace(new RegExp("ç","g"),"c"),t=t.replace(new RegExp("[èéêë]","g"),"e"),t=t.replace(new RegExp("[ìíîï]","g"),"i"),t=t.replace(new RegExp("ñ","g"),"n"),t=t.replace(new RegExp("[òóôõö]","g"),"o"),t=t.replace(new RegExp("œ","g"),"oe"),t=t.replace(new RegExp("[ùúûü]","g"),"u"),t=t.replace(new RegExp("[ýÿ]","g"),"y"),t}}},j3=m("i",{class:"dropdown icon"},null,-1),B3=["data-vss-custom-attr"],U3=["onClick"],V3=["disabled","tabindex","id","name"],H3=["data-vss-custom-attr","onClick","onMouseenter"];function Y3(e,t,n,r,a,i){return T(),C("div",{class:xe(["ui fluid search dropdown selection multiple",{"active visible":a.showMenu,error:e.isError,disabled:e.isDisabled}]),onClick:t[11]||(t[11]=(...o)=>i.openOptions&&i.openOptions(...o)),onFocus:t[12]||(t[12]=(...o)=>i.openOptions&&i.openOptions(...o))},[j3,n.hideSelectedOptions?Z("",!0):(T(!0),C(ae,{key:0},ke(n.selectedOptions,(o,s)=>(T(),C("a",{key:s,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":n.customAttr(o)},[qe(e.$slots,"selected",{option:o,idx:s},()=>[bt(re(o.text),1),m("i",{class:"delete icon",onClick:l=>i.deleteItem(o)},null,8,U3)])],8,B3))),128)),Ne(m("input",{class:"search",autocomplete:"off",disabled:e.isDisabled,tabindex:e.isDisabled?-1:0,id:e.id,name:e.name,"onUpdate:modelValue":t[0]||(t[0]=o=>a.searchText=o),ref:"input",style:wt(i.inputWidth),onFocus:t[1]||(t[1]=de((...o)=>i.openOptions&&i.openOptions(...o),["prevent"])),onKeyup:[t[2]||(t[2]=tt((...o)=>i.closeOptions&&i.closeOptions(...o),["esc"])),t[7]||(t[7]=tt(de((...o)=>i.enterItem&&i.enterItem(...o),["prevent"]),["enter"]))],onBlur:t[3]||(t[3]=(...o)=>i.blurInput&&i.blurInput(...o)),onKeydown:[t[4]||(t[4]=tt((...o)=>i.prevItem&&i.prevItem(...o),["up"])),t[5]||(t[5]=tt((...o)=>i.nextItem&&i.nextItem(...o),["down"])),t[6]||(t[6]=tt(de(()=>{},["prevent"]),["enter"])),t[8]||(t[8]=tt((...o)=>i.deleteTextOrLastItem&&i.deleteTextOrLastItem(...o),["delete"]))]},null,44,V3),[[kt,a.searchText]]),m("div",{class:xe(["text",i.textClass])},re(i.inputText),3),m("div",{class:xe(["menu",i.menuClass]),ref:"menu",onMousedown:t[10]||(t[10]=de(()=>{},["prevent"])),style:wt(i.menuStyle),tabindex:"-1"},[(T(!0),C(ae,null,ke(i.filteredOptions,(o,s)=>(T(),C("div",{key:s,class:xe(["item",{selected:o.selected||a.pointer===s,disabled:o.disabled}]),"data-vss-custom-attr":n.customAttr(o),onClick:de(l=>i.selectItem(o),["stop"]),onMousedown:t[9]||(t[9]=(...l)=>i.mousedownItem&&i.mousedownItem(...l)),onMouseenter:l=>i.pointerSet(s)},[qe(e.$slots,"default",{option:o,idx:s},()=>[bt(re(o.text),1)])],42,H3))),128))],38)],34)}const ob=V_(F3,[["render",Y3]]),Dv={name:"MultiListSelect",mixins:[ff],emits:["blur","searchchange","select"],render:function(){return Sr(ob,{id:this.id,name:this.name,options:this.options,selectedOptions:this.items,isError:this.isError,isDisabled:this.isDisabled,placeholder:this.placeholder,filterPredicate:this.filterPredicate,onSelect:this.onSelect,onSearchchange:e=>this.$emit("searchchange",e)})},props:{list:{type:Array},optionValue:{type:String},optionText:{type:String},customText:{type:Function},selectedItems:{type:Array},optionDisabled:{type:String}},computed:{options(){return this.list.map(e=>({value:e[this.optionValue],text:this.buildText(e),disabled:!!e[this.optionDisabled]}))},items(){return this.selectedItems.map(e=>({value:e[this.optionValue],text:this.buildText(e),disabled:!!e[this.optionDisabled]}))}},methods:{buildText(e){return e[this.optionValue]!==void 0?this.customText?this.customText(e):e[this.optionText]:""},onSelect(e,t){if(Object.keys(t).length===0&&t.constructor===Object)this.$emit("select",e,t);else{const n=this.list.filter((a,i)=>e.find((o,s)=>a[this.optionValue]===o.value)),r=this.list.find(a=>a[this.optionValue]===t.value);this.$emit("select",n,r)}}},components:{MultiSelect:ob}},q3={class:"row g-3"},z3={class:"col col-auto"},W3={class:"col"},K3={class:"row row-cols-auto g-3 justify-content-end"},G3=["onClick"],X3={class:"mt-2"},J3={class:"row align-items-center g-3 mb-2"},Q3={class:"col col-3"},Z3={class:"row gx-1 align-items-center form-text"},eD={class:"col"},tD=["id","name","onUpdate:modelValue"],nD={class:"col-auto"},rD={class:"col"},aD={class:"astroid-btn-group text-end"},iD=["onUpdate:modelValue","name","id","value"],oD=["for"],sD=["step","max","onUpdate:modelValue","id"],Ch={__name:"TypoResponsive",props:["modelValue","field","fieldname","currentDevice"],emits:["update:changeDevice"],setup(e,{emit:t}){const n=t,r=e,a=["desktop","tablet","mobile"],i=["px","em","rem","pt","%"],o=Zt({desktop:{max:100,step:1},tablet:{max:100,step:1},mobile:{max:100,step:1}});function s(u){n("update:changeDevice",u)}function l(u){["em","rem"].includes(r.modelValue[r.fieldname+"_unit"][u])&&(o[u].max=10,o[u].step=.01),["px","pt"].includes(r.modelValue[r.fieldname+"_unit"][u])&&(o[u].max=100,o[u].step=1),r.modelValue[r.fieldname+"_unit"][u]==="%"&&(o[u].max=1e3,o[u].step=1)}return mt(()=>{Object.keys(r.modelValue[r.fieldname+"_unit"]).forEach(u=>{l(u)})}),gn(()=>{l(r.currentDevice)}),(u,c)=>(T(),C(ae,null,[m("div",q3,[m("div",z3,re(r.field.input.lang[r.fieldname]),1),m("div",W3,[m("div",K3,[(T(),C(ae,null,ke(a,d=>m("div",{key:d},[m("a",{href:"#",onClick:de(f=>s(d),["prevent"]),class:xe({"link-primary":r.currentDevice===d,"link-secondary":r.currentDevice!==d})},[m("i",{class:xe(["fas","fa-"+d])},null,2)],10,G3)])),64))])])]),(T(),C(ae,null,ke(a,d=>Ne(m("div",X3,[m("div",J3,[m("div",Q3,[m("div",Z3,[m("div",eD,[Ne(m("input",{class:"form-control form-control-sm",id:r.field.input.id+"_"+r.fieldname+"_"+d,name:r.field.input.name+"["+r.fieldname+"]["+d+"]",type:"text","onUpdate:modelValue":f=>r.modelValue[r.fieldname][d]=f},null,8,tD),[[kt,r.modelValue[r.fieldname][d]]])]),m("div",nD,re(r.modelValue[r.fieldname+"_unit"][d]),1)])]),m("div",rD,[m("div",aD,[(T(),C(ae,null,ke(i,(f,h)=>m("span",{key:f},[Ne(m("input",{type:"radio",class:"btn-check","onUpdate:modelValue":p=>r.modelValue[r.fieldname+"_unit"][d]=p,name:r.field.input.name+"["+r.fieldname+"_unit]["+d+"]",id:r.field.input.id+"_"+r.fieldname+"_unit_"+d+"_"+h,value:f,autocomplete:"off"},null,8,iD),[[Bi,r.modelValue[r.fieldname+"_unit"][d]]]),m("label",{class:"btn btn-sm btn-outline-primary btn-as-outline-primary",for:r.field.input.id+"_"+r.fieldname+"_unit_"+d+"_"+h},re(f),9,oD)])),64))])])]),Ne(m("input",{type:"range",class:"form-range",min:"0",step:o[d].step,max:o[d].max,"onUpdate:modelValue":f=>r.modelValue[r.fieldname][d]=f,id:r.field.input.id+"_"+r.fieldname+"_range_"+d},null,8,sD),[[kt,r.modelValue[r.fieldname][d]]])],512),[[kn,r.currentDevice===d]])),64))],64))}};/*! +***************************************************************************** */var lr=function(){return lr=Object.assign||function(e){for(var n,r=1,a=arguments.length;r0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1] n)return[!1,Dg(n)];if(t.size n)return[!1,Dg(n)]}return[!0,null]}function ka(){for(var t=[],e=0;e 1||o&&i>=1&&e.length>i?!1:e.every(function(s){var l=B1(s,n)[0],u=V1(s,r,a)[0];return l&&u})}var IO={disabled:!1,getFilesFromEvent:dO,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1};function PO(t){t===void 0&&(t={});var e=G(lr(lr({},IO),t));vt(function(){return lr({},t)},function(S){e.value=lr(lr({},e.value),S)});var n=G(),r=G(),a=Jt({isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]}),o=function(){r.value&&(a.isFileDialogActive=!0,r.value.value="",r.value.click())},i=function(){var S=e.value.onFileDialogCancel;a.isFileDialogActive&&setTimeout(function(){if(r.value){var O=r.value.files;O&&!O.length&&(a.isFileDialogActive=!1,typeof S=="function"&&S())}},300)};function s(){a.isFocused=!0}function l(){a.isFocused=!1}function u(){var S=e.value.noClick;S||(SO()?setTimeout(o,0):o())}var c=G([]),d=function(S){if(n.value){var O=n.value.$el||n.value;O.contains(S.target)||(S.preventDefault(),c.value=[])}};ft(function(){window.addEventListener("focus",i,!1);var S=e.value.preventDropOnDocument;S&&(document.addEventListener("dragover",kg,!1),document.addEventListener("drop",d,!1))}),Xr(function(){window.removeEventListener("focus",i,!1);var S=e.value.preventDropOnDocument;S&&(document.removeEventListener("dragover",kg),document.removeEventListener("drop",d))});function f(S){var O=e.value.noDragEventsBubbling;O&&S.stopPropagation()}function h(S){return bO(this,void 0,void 0,function(){var O,T,D,k,U;return wO(this,function(V){switch(V.label){case 0:return O=e.value,T=O.getFilesFromEvent,D=O.noDragEventsBubbling,k=O.onDragEnter,S.preventDefault(),f(S),c.value=Vh(Vh([],c.value),[S.target]),Iu(S)?T?[4,T(S)]:[2]:[3,2];case 1:if(U=V.sent(),U||(U=[]),Ec(S)&&!D)return[2];a.draggedFiles=U,a.isDragActive=!0,k&&k(S),V.label=2;case 2:return[2]}})})}function p(S){var O=e.value.onDragOver;if(S.preventDefault(),f(S),S.dataTransfer)try{S.dataTransfer.dropEffect="copy"}catch{}return Iu(S)&&O&&O(S),!1}function v(S){S.preventDefault(),f(S);var O=c.value.filter(function(k){if(!n.value)return!1;var U=n.value.$el||n.value;return U.contains(k)}),T=O.indexOf(S.target);if(T!==-1&&O.splice(T,1),c.value=O,!(O.length>0)){a.draggedFiles=[],a.isDragActive=!1;var D=e.value.onDragLeave;Iu(S)&&D&&D(S)}}function g(S){S.preventDefault(),f(S),c.value=[];var O=e.value,T=O.getFilesFromEvent,D=O.noDragEventsBubbling,k=O.accept,U=O.minSize,V=O.maxSize,ee=O.multiple,N=O.maxFiles,H=O.onDrop,P=O.onDropRejected,X=O.onDropAccepted;if(Iu(S)){if(!T)return;Promise.resolve(T(S)).then(function(Q){if(!(Ec(S)&&!D)){var j=[],se=[];Q.forEach(function(pe){var fe=B1(pe,k),Oe=fe[0],be=fe[1],Ee=V1(pe,U,V),et=Ee[0],oe=Ee[1];if(Oe&&et)j.push(pe);else{var L=[be,oe].filter(function(Y){return Y});se.push({file:pe,errors:L})}}),(!ee&&j.length>1||ee&&N>=1&&j.length>N)&&(j.forEach(function(pe){se.push({file:pe,errors:[$O]})}),j.splice(0)),a.acceptedFiles=j,a.fileRejections=se,H&&H(j,se,S),se.length>0&&P&&P(se,S),j.length>0&&X&&X(j,S)}})}a.isFileDialogActive=!1,a.isDragActive=!1,a.draggedFiles=[],a.acceptedFiles=[],a.fileRejections=[]}var y=function(S){return e.value.disabled?void 0:S},x=function(S){return e.value.noKeyboard?void 0:y(S)},_=function(S){return e.value.noDrag?void 0:y(S)},w=function(S){S===void 0&&(S={});var O=S.onFocus,T=S.onBlur,D=S.onClick,k=S.onDragEnter,U=S.onDragenter,V=S.onDragOver,ee=S.onDragover,N=S.onDragLeave,H=S.onDragleave,P=S.onDrop,X=Ag(S,["onFocus","onBlur","onClick","onDragEnter","onDragenter","onDragOver","onDragover","onDragLeave","onDragleave","onDrop"]);return lr(lr({onFocus:x(ka(O,s)),onBlur:x(ka(T,l)),onClick:y(ka(D,u)),onDragenter:_(ka(k,U,h)),onDragover:_(ka(V,ee,p)),onDragleave:_(ka(N,H,v)),onDrop:_(ka(P,g)),ref:n},!e.value.disabled&&!e.value.noKeyboard?{tabIndex:0}:{}),X)},A=function(S){S.stopPropagation()};function I(S){S===void 0&&(S={});var O=S.onChange,T=S.onClick,D=Ag(S,["onChange","onClick"]),k={accept:e.value.accept,multiple:e.value.multiple,style:"display: none",type:"file",onChange:y(ka(O,g)),onClick:y(ka(T,A)),autoComplete:"off",tabIndex:-1,ref:r};return lr(lr({},k),D)}var F=we(function(){return a.draggedFiles?a.draggedFiles.length:0}),R=we(function(){return F.value>0&&NO({files:a.draggedFiles,accept:e.value.accept,minSize:e.value.minSize,maxSize:e.value.maxSize,multiple:e.value.multiple,maxFiles:e.value.maxFiles})}),E=we(function(){return F.value>0&&!R.value});return lr(lr({},r0(a)),{isDragAccept:R,isDragReject:E,isFocused:we(function(){return a.isFocused&&!e.value.disabled}),getRootProps:w,getInputProps:I,rootRef:n,inputRef:r,open:y(o)})}const MO={key:0,class:"files mb-3"},LO=["onClick"],RO={key:0,class:"text-center py-5"},FO=m("i",{class:"fas fa-cloud-arrow-up fa-4x mb-3"},null,-1),UO=m("div",null,"Drop the files here ...",-1),jO=[FO,UO],BO={key:1,class:"text-center py-5"},VO=m("i",{class:"fas fa-cloud-arrow-up fa-4x mb-3"},null,-1),HO=m("div",null,"Drag and drop files here, or Click to select files",-1),qO=[VO,HO],YO={__name:"DropZone",props:{url:{type:String,default:""},clickUpload:{type:Boolean,default:!1}},emits:["update:media"],setup(t,{emit:e}){const n=t,r=e,a=Jt({files:[]}),o=Wt("constant",{}),{getRootProps:i,getInputProps:s,isDragActive:l,...u}=PO({onDrop:c});function c(h,p){h.forEach(v=>{a.files.push(v)})}function d(h){a.files.splice(h,1)}const f=h=>{for(var p=0;p {p===h.length&&r("update:media")}).catch(g=>{console.error(g)})}};return Zt(()=>{n.clickUpload===!0&&a.files.length&&f(a.files)}),(h,p)=>(C(),$(ae,null,[a.files.length>0?(C(),$("div",MO,[(C(!0),$(ae,null,$e(a.files,(v,g)=>(C(),$("div",{class:"file-item",key:g},[m("span",null,re(v.name),1),m("span",{class:"delete-file",onClick:y=>d(g)},"Delete",8,LO)]))),128))])):Z("",!0),m("div",_n({class:"dropzone"},K(i)()),[m("div",{class:Se(["border",{isDragActive:K(l)}])},[m("input",vn(Gn(K(s)())),null,16),K(l)?(C(),$("div",RO,jO)):(C(),$("div",BO,qO))],2)],16)],64))}},KO={key:0,class:"image-preview mb-3"},WO={key:0,class:"fa-solid fa-video fa-3x"},zO=["src","alt"],GO={class:"input-group input-group-sm mb-3"},JO=["id"],XO=["value","aria-describedby"],QO={key:1,class:"astroid-media-selector"},ZO=["data-bs-target"],e$={key:2,class:"astroid-media-selector btn-group",role:"group"},t$=["data-bs-target"],n$=["onClick"],r$=["id"],a$={class:"modal-dialog modal-xl modal-dialog-centered modal-dialog-scrollable"},o$={class:"modal-content"},i$={class:"modal-header"},s$={class:"modal-title"},l$=m("i",{class:"fas fa-folder"},null,-1),u$=["id"],c$={class:"modal-body p-3"},d$={key:0,class:"row row-cols-2 row-cols-lg-4 row-cols-xl-5 gx-3 gy-2"},f$=["onClick"],h$=["src","alt"],p$={key:2,class:"fa-solid fa-video fa-3x"},m$={key:0},v$={class:"form-text"},g$={key:0,class:"nav toolbox justify-content-center"},y$={class:"nav-item"},b$=["onClick","data-bs-target"],w$=m("i",{class:"fa-solid fa-pencil"},null,-1),_$=m("span",{class:"position-absolute top-100 start-50 translate-middle form-text"},"Rename",-1),x$=[w$,_$],S$={class:"nav-item"},T$=["onClick"],E$=m("i",{class:"fa-solid fa-trash"},null,-1),C$=m("span",{class:"position-absolute top-100 start-50 translate-middle form-text"},"Delete",-1),O$=[E$,C$],$$={key:1,class:"loading d-flex justify-content-center flex-column w-100",style:{"align-items":"center"}},A$=m("i",{class:"fa-solid fa-basketball fa-bounce fa-3x",style:{"--fa-bounce-land-scale-x":"1.2","--fa-bounce-land-scale-y":".8","--fa-bounce-rebound":"5px"}},null,-1),k$=m("div",{class:"fa-beat-fade mt-3",style:{"--fa-beat-fade-opacity":"0.1","--fa-beat-fade-scale":"1.05"}},"Loading...",-1),D$=[A$,k$],N$={key:1},I$={class:"modal-footer"},P$={key:0,type:"button",class:"btn btn-sm btn-as btn-as-light","data-bs-dismiss":"modal"},M$=["data-bs-target"],L$=["id"],R$={class:"modal-dialog modal-dialog-centered"},F$={class:"modal-content"},U$={class:"modal-header"},j$={class:"modal-title"},B$=m("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),V$={class:"modal-body p-3"},H$=["for"],q$=["id"],Y$={class:"modal-footer"},K$=["id","data-bs-target"],W$=["onClick"],z$=["onClick"],G$=["id","name","value"],J$={__name:"MediaManager",props:{field:{type:Object,default:null},modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,r=t,a=Wt("constant",{}),o=G([]),i=G([]),s=G(""),l=G("");ft(()=>{r.modelValue!==""&&u();const T=document.getElementById(r.field.input.id+"modal");T&&(T.addEventListener("show.bs.modal",D=>{f()}),T.addEventListener("hide.bs.modal",D=>{o.value=[]}))}),Zt(()=>{u()});function u(){r.modelValue.search(/https*:\/\//i)!==-1?l.value=r.modelValue:r.modelValue!==""&&(l.value=a.site_url+r.field.input.mediaPath+"/"+r.modelValue)}const c=G(!1);function d(T=null){if(!T)return!1;i.value=T.current_folder.split("/"),o.value=[],s.value!==""&&o.value.push({id:"go-back",icon:"fas fa-left-long",name:"Go back",type:"back"}),T.folders.forEach((D,k)=>{o.value.push({id:"folder"+k,icon:"fas fa-folder",name:D.name,path_relative:D.path_relative,type:"folder"})}),r.field.input.media==="images"&&T.images.forEach((D,k)=>{o.value.push({id:"image"+k,name:D.name,path_relative:D.path_relative,path:a.site_url+r.field.input.mediaPath+"/"+D.path_relative,type:"image"})}),r.field.input.media==="videos"&&T.videos.forEach((D,k)=>{o.value.push({id:"video"+k,name:D.name,path_relative:D.path_relative,path:a.site_url+r.field.input.mediaPath+"/"+D.path_relative,type:"video"})})}function f(){let T=r.field.input.ajax+"&action=library&asset=com_templates&ts="+Date.now();const D=new FormData;D.append("folder",s.value),D.append(a.astroid_admin_token,1),c.value=!0,Ut.post(T,D,{headers:{"Content-Type":"multipart/form-data"}}).then(function(k){k.data.status==="success"&&(d(k.data.data),c.value=!1)}).catch(function(k){console.log(k)})}function h(T){let D=i.value.join("/");if((T.type==="image"||T.type==="video")&&(l.value=a.site_url+r.field.input.mediaPath+"/"+T.path_relative,n("update:modelValue",T.path_relative),document.getElementById(r.field.input.id+"close").click()),T.type==="folder"&&(s.value=T.path_relative,f()),T.type==="back"){let k=D.substring(D.indexOf("/")+1);k.indexOf("/")>0?s.value=k.substring(0,k.lastIndexOf("/")):s.value="",f()}}function p(){l.value="",n("update:modelValue","")}const v=G(!1),g=G(!1),y=G("Upload");function x(){v.value===!0?g.value=!0:(v.value=!0,g.value=!1,y.value="Click to Upload")}function _(){v.value=!1,g.value=!1,y.value="Upload",f()}const w=G(""),A=Jt({name:"",type:""}),I=G(null),F=G("");function R(T,D=null){F.value=T,D!==null?(A.name=D.name,A.type=D.type,w.value=D.name):w.value=""}function E(){if(w.value.trim()==="")return alert("Folder Name can not empty!"),I.value.focus(),!1;let T=a.site_url+"administrator/index.php?option=com_ajax&astroid=media&action=createFolder&ts="+Date.now();const D=new FormData;D.append("name",w.value.trim()),D.append("dir","images/"+s.value),D.append(a.astroid_admin_token,1),Ut.post(T,D,{headers:{"Content-Type":"multipart/form-data"}}).then(k=>{document.getElementById(r.field.input.id+"close_edit_item_dialog").click()}).catch(k=>{console.error(k)})}function S(){if(w.value.trim()==="")return alert("Item Name can not empty!"),I.value.focus(),!1;let T=a.site_url+"administrator/index.php?option=com_ajax&astroid=media&action=rename&ts="+Date.now();const D=new FormData;D.append("name",A.name),D.append("type",A.type),D.append("new_name",w.value.trim()),D.append("dir","images/"+s.value),D.append(a.astroid_admin_token,1),Ut.post(T,D,{headers:{"Content-Type":"multipart/form-data"}}).then(k=>{document.getElementById(r.field.input.id+"close_edit_item_dialog").click()}).catch(k=>{console.error(k)})}function O(T){if(!confirm("This item will be deleted. You cannot undo this action. Are you sure?"))return!1;let D=a.site_url+"administrator/index.php?option=com_ajax&astroid=media&action=remove&ts="+Date.now();const k=new FormData;k.append("name",T.name),k.append("type",T.type),k.append("dir","images/"+s.value),k.append(a.astroid_admin_token,1),Ut.post(D,k,{headers:{"Content-Type":"multipart/form-data"}}).then(U=>{f()}).catch(U=>{console.error(U)})}return(T,D)=>(C(),$(ae,null,[l.value!==""?(C(),$("div",KO,[r.field.input.media==="videos"?(C(),$("i",WO)):(C(),$("img",{key:1,src:l.value,alt:r.field.name},null,8,zO))])):Z("",!0),m("div",GO,[m("span",{class:"input-group-text",id:r.field.input.id+"url"},"Url",8,JO),m("input",{type:"text",class:"form-control",value:t.modelValue,onInput:D[0]||(D[0]=k=>n("update:modelValue",k.target.value)),"aria-label":"URL","aria-describedby":r.field.input.id+"url"},null,40,XO)]),l.value===""?(C(),$("div",QO,[m("button",{class:"btn btn-sm btn-as btn-primary btn-as-primary",onClick:D[1]||(D[1]=he(()=>{},["prevent"])),"data-bs-toggle":"modal","data-bs-target":"#"+r.field.input.id+"modal"},re(r.field.input.lang.select_media),9,ZO)])):(C(),$("div",e$,[m("button",{class:"btn btn-sm btn-as btn-primary btn-as-primary",onClick:D[2]||(D[2]=he(()=>{},["prevent"])),"data-bs-toggle":"modal","data-bs-target":"#"+r.field.input.id+"modal"},re(r.field.input.lang.change_media),9,t$),m("button",{class:"btn btn-sm btn-as btn-as-light",onClick:he(p,["prevent"])},re(r.field.input.lang.clear),9,n$)])),m("div",{class:"modal fade",id:r.field.input.id+"modal",tabindex:"-1"},[m("div",a$,[m("div",o$,[m("div",i$,[m("h5",s$,[l$,gt(" / "+re(i.value.join(" / ")),1)]),m("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:r.field.input.id+"close"},null,8,u$)]),m("div",c$,[v.value?(C(),$("div",N$,[de(YO,{url:r.field.input.ajax+"&action=upload&media="+r.field.input.media+"&dir=images/"+s.value,"click-upload":g.value,"onUpdate:media":_},null,8,["url","click-upload"])])):(C(),$("div",d$,[c.value?(C(),$("div",$$,D$)):(C(!0),$(ae,{key:0},$e(o.value,k=>(C(),$("div",{key:k.id,class:"col p-4 text-center media-item"},[m("div",{class:Se(["card card-default media-icon justify-content-center align-items-center border",k.type+"-type"]),onClick:U=>h(k)},[(k.type==="folder"||k.type==="back")&&k.icon!==void 0&&k.icon?(C(),$("i",{key:0,class:Se([k.icon,"as-system-icon fa-3x"])},null,2)):k.type==="image"&&k.path!==void 0&&k.path?(C(),$("img",{key:1,src:k.path,class:"img-fluid",alt:k.name},null,8,h$)):k.type==="video"?(C(),$("i",p$)):Z("",!0)],10,f$),k.name!==void 0&&k.name?(C(),$("div",m$,[m("div",v$,re(k.name),1),k.type!=="back"?(C(),$("ul",g$,[m("li",y$,[m("a",{class:"nav-link position-relative px-2",href:"#",title:"Rename",onClick:he(U=>R("rename",k),["prevent"]),"data-bs-target":"#"+r.field.input.id+"edit_item_dialog","data-bs-toggle":"modal"},x$,8,b$)]),m("li",S$,[m("a",{class:"nav-link position-relative px-2",href:"#",title:"Remove",onClick:he(U=>O(k),["prevent"])},O$,8,T$)])])):Z("",!0)])):Z("",!0)]))),128))]))]),m("div",I$,[v.value?(C(),$("button",{key:1,type:"button",class:"btn btn-sm btn-as btn-as-light",onClick:_},"Cancel")):(C(),$("button",P$,"Close")),v.value?Z("",!0):(C(),$("button",{key:2,class:"btn btn-sm btn-as btn-as-light",onClick:D[3]||(D[3]=he(k=>R("createfolder"),["prevent"])),"data-bs-target":"#"+r.field.input.id+"edit_item_dialog","data-bs-toggle":"modal"},"Create New Folder",8,M$)),m("button",{type:"button",class:"btn btn-sm btn-as btn-primary btn-as-primary",onClick:x},re(y.value),1)])])])],8,r$),m("div",{class:"modal fade",id:r.field.input.id+"edit_item_dialog","aria-hidden":"true",tabindex:"-1"},[m("div",R$,[m("div",F$,[m("div",U$,[m("h5",j$,re(F.value==="createfolder"?"Create New Folder":"Rename"),1),B$]),m("div",V$,[m("label",{for:r.field.input.id+"folder_name",class:"form-label"},re(F.value==="createfolder"?"Folder Name":"Enter new name"),9,H$),De(m("input",{type:"text",ref_key:"newFolderInput",ref:I,class:"form-control","onUpdate:modelValue":D[4]||(D[4]=k=>w.value=k),id:r.field.input.id+"folder_name",placeholder:"Enter Item name"},null,8,q$),[[Et,w.value]])]),m("div",Y$,[m("button",{class:"btn btn-sm btn-as btn-as-light",id:r.field.input.id+"close_edit_item_dialog","data-bs-target":"#"+r.field.input.id+"modal",onClick:D[5]||(D[5]=he(()=>{},["prevent"])),"data-bs-toggle":"modal"},"Cancel",8,K$),F.value==="createfolder"?(C(),$("button",{key:0,class:"btn btn-sm btn-as btn-primary btn-as-primary",onClick:he(E,["prevent"])},"Create",8,W$)):(C(),$("button",{key:1,class:"btn btn-sm btn-as btn-primary btn-as-primary",onClick:he(S,["prevent"])},"Rename",8,z$))])])])],8,L$),m("input",{id:r.field.input.id,name:r.field.input.name,value:t.modelValue,type:"hidden"},null,8,G$)],64))}},X$=["data-bs-target"],Q$=["data-bs-target","innerHTML"],Z$=["id"],eA={class:"modal-dialog modal-xl modal-dialog-centered modal-dialog-scrollable"},tA={class:"modal-content"},nA={class:"modal-header"},rA=m("h5",{class:"modal-title"},"Select Preloader Style",-1),aA=["id"],oA={class:"modal-body"},iA={key:0,class:"row g-3"},sA=["onClick"],lA={key:0},uA=["innerHTML"],cA=["id","name","value"],dA={__name:"Preloader",props:{field:{type:Object,default:null},modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,r=t,a=G(!1);ft(()=>{const i=document.getElementById(r.field.input.id+"modal");i&&(i.addEventListener("show.bs.modal",s=>{a.value=!0}),i.addEventListener("hide.bs.modal",s=>{a.value=!1}))});const o=i=>{n("update:modelValue",i),document.getElementById(r.field.input.id+"close").click()};return(i,s)=>(C(),$(ae,null,[r.field.input.style==="fontawesome"?(C(),$("div",{key:0,class:"select-preloader","data-bs-toggle":"modal","data-bs-target":"#"+r.field.input.id+"modal"},[m("i",{class:Se([r.modelValue,"fa-3x"])},null,2)],8,X$)):(C(),$("div",{key:1,class:"select-preloader","data-bs-toggle":"modal","data-bs-target":"#"+r.field.input.id+"modal",innerHTML:r.field.input.preloader[r.modelValue].code},null,8,Q$)),m("div",{class:"modal fade",id:r.field.input.id+"modal",tabindex:"-1"},[m("div",eA,[m("div",tA,[m("div",nA,[rA,m("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:r.field.input.id+"close"},null,8,aA)]),m("div",oA,[a.value?(C(),$("div",iA,[(C(!0),$(ae,null,$e(r.field.input.preloader,(l,u)=>(C(),$("div",{class:"col col-auto",key:u},[m("div",{class:"preloader-item d-flex justify-content-center align-items-center border rounded",onClick:c=>o(l.name)},[r.field.input.style==="fontawesome"?(C(),$("div",lA,[m("i",{class:Se([l.name,"fa-3x"])},null,2)])):(C(),$("div",{key:1,class:"preloader-code",innerHTML:l.code},null,8,uA))],8,sA)]))),128))])):Z("",!0)])])])],8,Z$),m("input",{id:r.field.input.id,name:r.field.input.name,value:t.modelValue,type:"hidden"},null,8,cA)],64))}},bn={openOptions(t){t.$refs.input.focus(),t.showMenu=!0,t.mousedownState=!1},blurInput(t){t.mousedownState||(t.searchText="",t.closeOptions()),t.$emit("blur")},closeOptions(t){t.$refs.input.blur(),t.showMenu=!1},prevItem(t){const e=t.pointer-1,n=t.$el.offsetHeight*e;e>=0&&(t.pointer=e),t.$refs.menu.scrollTop=n},nextItem(t){const e=t.pointer+1,n=t.$el.offsetHeight*e;e<=t.filteredOptions.length-1&&(t.pointer=e);const r=t.$refs.menu.offsetHeight,a=Math.ceil((t.$refs.menu.scrollTop+t.$el.offsetHeight)/r),o=Math.ceil(n/r);a!==o&&(t.$refs.menu.scrollTop=(o-1)*t.$refs.menu.offsetHeight)},enterItem(t){const e=t.filteredOptions[t.pointer],n=e.disabled;e&&!n&&t.selectItem(e)},pointerSet(t,e){t.pointer=e},pointerAdjust(t){t.pointer>=t.filteredOptions.length-1&&(t.pointer=t.filteredOptions.length?t.filteredOptions.length-1:0)},mousedownItem(t){t.mousedownState=!0}};function fA(t){return new RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const md={props:{id:{default:null},name:{type:String,default:""},isError:{type:Boolean,default:!1},customAttr:{type:Function,default:()=>""},isDisabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},filterPredicate:{type:Function,default:(t,e)=>t.match(fA(e))}}},H1=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},hA={name:"ModelSelect",mixins:[md],emits:["blur","searchchange","update:modelValue"],props:{modelValue:{type:[String,Number,Object,Boolean]},customAttr:{type:Function,default:()=>""},options:{type:Array}},data(){return{showMenu:!1,searchText:"",mousedownState:!1,pointer:-1}},watch:{value(t){this.pointer=this.filteredOptions.findIndex(e=>e.value===this.optionValue(t))},filteredOptions(){this.pointerAdjust()},searchText(){this.$emit("searchchange",this.searchText)}},computed:{searchTextCustomAttr(){return this.selectedOption&&this.selectedOption.value?this.customAttr(this.selectedOption):""},inputText(){if(this.searchText)return"";{let t=this.placeholder;return this.selectedOption&&(t=this.selectedOption.text),t}},customAttrs(){try{if(Array.isArray(this.options))return this.options.map(t=>this.customAttr(t))}catch{}return[]},textClass(){return!this.selectedOption&&this.placeholder?"default":""},menuClass(){return{visible:this.showMenu,hidden:!this.showMenu}},menuStyle(){return{display:this.showMenu?"block":"none"}},filteredOptions(){return this.searchText?this.options.filter(t=>{try{return this.filterPredicate(t.text,this.searchText)}catch{return!0}}):this.options},selectedOption(){return this.options.find(t=>t.value===this.optionValue(this.modelValue))}},methods:{deleteTextOrItem(){!this.searchText&&this.modelValue&&(this.selectItem({}),this.openOptions())},openOptions(){bn.openOptions(this)},blurInput(){bn.blurInput(this)},closeOptions(){bn.closeOptions(this)},prevItem(){bn.prevItem(this)},nextItem(){bn.nextItem(this)},enterItem(){bn.enterItem(this)},pointerSet(t){bn.pointerSet(this,t)},pointerAdjust(){bn.pointerAdjust(this)},mousedownItem(){bn.mousedownItem(this)},selectItem(t){this.searchText="",this.closeOptions(),typeof this.modelValue=="object"&&this.modelValue?this.$emit("update:modelValue",t):(this.$emit("update:modelValue",t.value),t.value!==void 0&&t.value===t.text&&(this.searchText=t.value))},optionValue(t){return typeof t=="object"&&t!==null?t.value:t}}},pA=m("i",{class:"dropdown icon"},null,-1),mA=["disabled","tabindex","id","name","value"],vA=["data-vss-custom-attr"],gA=["data-vss-custom-attr","onClick","onMouseenter"];function yA(t,e,n,r,a,o){return C(),$("div",{class:Se(["ui fluid search selection dropdown",{"active visible":a.showMenu,error:t.isError,disabled:t.isDisabled}]),onClick:e[11]||(e[11]=(...i)=>o.openOptions&&o.openOptions(...i)),onFocus:e[12]||(e[12]=(...i)=>o.openOptions&&o.openOptions(...i))},[pA,m("input",{class:"search",autocomplete:"off",disabled:t.isDisabled,tabindex:t.isDisabled?-1:0,id:t.id,name:t.name,value:a.searchText,onInput:e[0]||(e[0]=i=>a.searchText=i.target.value),ref:"input",onFocus:e[1]||(e[1]=he((...i)=>o.openOptions&&o.openOptions(...i),["prevent"])),onKeyup:[e[2]||(e[2]=Ze((...i)=>o.closeOptions&&o.closeOptions(...i),["esc"])),e[7]||(e[7]=Ze(he((...i)=>o.enterItem&&o.enterItem(...i),["prevent"]),["enter"]))],onBlur:e[3]||(e[3]=(...i)=>o.blurInput&&o.blurInput(...i)),onKeydown:[e[4]||(e[4]=Ze((...i)=>o.prevItem&&o.prevItem(...i),["up"])),e[5]||(e[5]=Ze((...i)=>o.nextItem&&o.nextItem(...i),["down"])),e[6]||(e[6]=Ze(he(()=>{},["prevent"]),["enter"])),e[8]||(e[8]=Ze((...i)=>o.deleteTextOrItem&&o.deleteTextOrItem(...i),["delete"]))]},null,40,mA),m("div",{class:Se(["text",o.textClass]),"data-vss-custom-attr":o.searchTextCustomAttr},re(o.inputText),11,vA),m("div",{class:Se(["menu",o.menuClass]),ref:"menu",onMousedown:e[10]||(e[10]=he(()=>{},["prevent"])),style:bt(o.menuStyle),tabindex:"-1"},[(C(!0),$(ae,null,$e(o.filteredOptions,(i,s)=>(C(),$("div",{key:s,class:Se(["item",{selected:i.selected||a.pointer===s,disabled:i.disabled}]),"data-vss-custom-attr":o.customAttrs[s]?o.customAttrs[s]:"",onClick:he(l=>o.selectItem(i),["stop"]),onMousedown:e[9]||(e[9]=(...l)=>o.mousedownItem&&o.mousedownItem(...l)),onMouseenter:l=>o.pointerSet(s)},[qe(t.$slots,"default",{option:i,idx:s},()=>[gt(re(i.text),1)])],42,gA))),128))],38)],34)}const Ig=H1(hA,[["render",yA]]),bA={name:"ModelListSelect",mixins:[md],emits:["blur","searchchange","update:modelValue"],render:function(){return Kr(Ig,{id:this.id,name:this.name,options:this.options,modelValue:this.innerValue,isError:this.isError,isDisabled:this.isDisabled,placeholder:this.placeholder,filterPredicate:this.filterPredicate,onBlur:()=>this.$emit("blur"),"onUpdate:modelValue":this.onInput,onSearchchange:t=>this.$emit("searchchange",t)})},props:{modelValue:{type:[String,Number,Object,Boolean]},list:{type:Array},optionValue:{type:String},optionText:{type:String},customText:{type:Function},optionDisabled:{type:String}},computed:{options(){return this.list.map(t=>({value:t[this.optionValue],text:this.buildText(t),disabled:!!t[this.optionDisabled]}))},innerValue(){return this.modelValue?typeof this.modelValue=="object"?this.modelValue?{value:this.modelValue[this.optionValue],text:this.buildText(this.modelValue),disabled:!!this.modelValue[this.optionDisabled]}:{value:"",text:"",disabled:!1}:this.modelValue:this.modelValue}},methods:{buildText(t){return t[this.optionValue]!==void 0?this.customText?this.customText(t):t[this.optionText]:""},onInput(t){if(t===void 0)return this.$emit("update:modelValue","");if(Object.keys(t).length===0&&t.constructor===Object)this.$emit("update:modelValue",t);else if(typeof t=="object"){const e=this.list.find(n=>n[this.optionValue]===t.value);this.$emit("update:modelValue",e)}else this.$emit("update:modelValue",t)}},components:{ModelSelect:Ig}},wA={name:"MultiSelect",mixins:[md],emits:["blur","searchchange","select"],props:{customAttr:{type:Function,default:()=>""},options:{type:Array},selectedOptions:{type:Array},cleanSearch:{type:Boolean,default:!0},hideSelectedOptions:{type:Boolean,default:!1}},data(){return{showMenu:!1,searchText:"",mousedownState:!1,pointer:-1}},watch:{selectedOptions(){this.pointer=-1},filteredOptions(){this.pointerAdjust()},searchText(){this.$emit("searchchange",this.searchText)}},computed:{inputText(){return this.searchText?"":this.placeholder},textClass(){return this.placeholder?"default":""},inputWidth(){return{width:(this.searchText.length+1)*8+20+"px"}},menuClass(){return{visible:this.showMenu,hidden:!this.showMenu}},menuStyle(){return{display:this.showMenu?"block":"none"}},nonSelectOptions(){return this.options.filter(t=>this.selectedOptions.findIndex(e=>e.value===t.value)===-1)},filteredOptions(){return this.searchText?this.nonSelectOptions.filter(t=>{try{return this.cleanSearch?this.filterPredicate(this.accentsTidy(t.text),this.searchText):this.filterPredicate(t.text,this.searchText)}catch{return!0}}):this.nonSelectOptions}},methods:{deleteTextOrLastItem(){!this.searchText&&this.selectedOptions.length>0&&this.deleteItem(this.selectedOptions[this.selectedOptions.length-1])},openOptions(){bn.openOptions(this)},blurInput(){bn.blurInput(this)},closeOptions(){bn.closeOptions(this)},prevItem(){bn.prevItem(this),this.openOptions()},nextItem(){bn.nextItem(this),this.openOptions()},enterItem(){bn.enterItem(this)},pointerSet(t){bn.pointerSet(this,t)},pointerAdjust(){bn.pointerAdjust(this)},mousedownItem(){bn.mousedownItem(this)},selectItem(t){const e=this.selectedOptions.concat(t),n=e.filter((r,a)=>e.indexOf(r)===a);this.closeOptions(),this.searchText="",this.$emit("select",n,t,"insert")},deleteItem(t){const e=this.selectedOptions.filter(n=>n.value!==t.value);this.$emit("select",e,t,"delete")},accentsTidy(t){let e=t.toString().toLowerCase();return e=e.replace(new RegExp("[àáâãäå]","g"),"a"),e=e.replace(new RegExp("æ","g"),"ae"),e=e.replace(new RegExp("ç","g"),"c"),e=e.replace(new RegExp("[èéêë]","g"),"e"),e=e.replace(new RegExp("[ìíîï]","g"),"i"),e=e.replace(new RegExp("ñ","g"),"n"),e=e.replace(new RegExp("[òóôõö]","g"),"o"),e=e.replace(new RegExp("œ","g"),"oe"),e=e.replace(new RegExp("[ùúûü]","g"),"u"),e=e.replace(new RegExp("[ýÿ]","g"),"y"),e}}},_A=m("i",{class:"dropdown icon"},null,-1),xA=["data-vss-custom-attr"],SA=["onClick"],TA=["disabled","tabindex","id","name"],EA=["data-vss-custom-attr","onClick","onMouseenter"];function CA(t,e,n,r,a,o){return C(),$("div",{class:Se(["ui fluid search dropdown selection multiple",{"active visible":a.showMenu,error:t.isError,disabled:t.isDisabled}]),onClick:e[11]||(e[11]=(...i)=>o.openOptions&&o.openOptions(...i)),onFocus:e[12]||(e[12]=(...i)=>o.openOptions&&o.openOptions(...i))},[_A,n.hideSelectedOptions?Z("",!0):(C(!0),$(ae,{key:0},$e(n.selectedOptions,(i,s)=>(C(),$("a",{key:s,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":n.customAttr(i)},[qe(t.$slots,"selected",{option:i,idx:s},()=>[gt(re(i.text),1),m("i",{class:"delete icon",onClick:l=>o.deleteItem(i)},null,8,SA)])],8,xA))),128)),De(m("input",{class:"search",autocomplete:"off",disabled:t.isDisabled,tabindex:t.isDisabled?-1:0,id:t.id,name:t.name,"onUpdate:modelValue":e[0]||(e[0]=i=>a.searchText=i),ref:"input",style:bt(o.inputWidth),onFocus:e[1]||(e[1]=he((...i)=>o.openOptions&&o.openOptions(...i),["prevent"])),onKeyup:[e[2]||(e[2]=Ze((...i)=>o.closeOptions&&o.closeOptions(...i),["esc"])),e[7]||(e[7]=Ze(he((...i)=>o.enterItem&&o.enterItem(...i),["prevent"]),["enter"]))],onBlur:e[3]||(e[3]=(...i)=>o.blurInput&&o.blurInput(...i)),onKeydown:[e[4]||(e[4]=Ze((...i)=>o.prevItem&&o.prevItem(...i),["up"])),e[5]||(e[5]=Ze((...i)=>o.nextItem&&o.nextItem(...i),["down"])),e[6]||(e[6]=Ze(he(()=>{},["prevent"]),["enter"])),e[8]||(e[8]=Ze((...i)=>o.deleteTextOrLastItem&&o.deleteTextOrLastItem(...i),["delete"]))]},null,44,TA),[[Et,a.searchText]]),m("div",{class:Se(["text",o.textClass])},re(o.inputText),3),m("div",{class:Se(["menu",o.menuClass]),ref:"menu",onMousedown:e[10]||(e[10]=he(()=>{},["prevent"])),style:bt(o.menuStyle),tabindex:"-1"},[(C(!0),$(ae,null,$e(o.filteredOptions,(i,s)=>(C(),$("div",{key:s,class:Se(["item",{selected:i.selected||a.pointer===s,disabled:i.disabled}]),"data-vss-custom-attr":n.customAttr(i),onClick:he(l=>o.selectItem(i),["stop"]),onMousedown:e[9]||(e[9]=(...l)=>o.mousedownItem&&o.mousedownItem(...l)),onMouseenter:l=>o.pointerSet(s)},[qe(t.$slots,"default",{option:i,idx:s},()=>[gt(re(i.text),1)])],42,EA))),128))],38)],34)}const Pg=H1(wA,[["render",CA]]),mm={name:"MultiListSelect",mixins:[md],emits:["blur","searchchange","select"],render:function(){return Kr(Pg,{id:this.id,name:this.name,options:this.options,selectedOptions:this.items,isError:this.isError,isDisabled:this.isDisabled,placeholder:this.placeholder,filterPredicate:this.filterPredicate,onSelect:this.onSelect,onSearchchange:t=>this.$emit("searchchange",t)})},props:{list:{type:Array},optionValue:{type:String},optionText:{type:String},customText:{type:Function},selectedItems:{type:Array},optionDisabled:{type:String}},computed:{options(){return this.list.map(t=>({value:t[this.optionValue],text:this.buildText(t),disabled:!!t[this.optionDisabled]}))},items(){return this.selectedItems.map(t=>({value:t[this.optionValue],text:this.buildText(t),disabled:!!t[this.optionDisabled]}))}},methods:{buildText(t){return t[this.optionValue]!==void 0?this.customText?this.customText(t):t[this.optionText]:""},onSelect(t,e){if(Object.keys(e).length===0&&e.constructor===Object)this.$emit("select",t,e);else{const n=this.list.filter((a,o)=>t.find((i,s)=>a[this.optionValue]===i.value)),r=this.list.find(a=>a[this.optionValue]===e.value);this.$emit("select",n,r)}}},components:{MultiSelect:Pg}},OA={class:"input-group"},$A={class:"input-group-text"},AA=["value"],kA={__name:"SelectBox",props:["modelValue","options","icons","fieldChanged"],emits:["update:modelValue","update:statusField"],setup(t,{emit:e}){const n=e,r=t,a=G({}),o=G({}),i=G(r.modelValue);ft(()=>{typeof r.options=="object"&&!Array.isArray(r.options)&&r.options!==null&&Object.keys(r.options).length&&(a.value=r.options),typeof r.icons=="object"&&!Array.isArray(r.icons)&&r.icons!==null&&Object.keys(r.icons).length&&(o.value=r.icons)}),Zt(()=>{r.fieldChanged===!0&&(i.value=r.modelValue,n("update:statusField",!1))});function s(l){(typeof r.fieldChanged>"u"||r.fieldChanged===!1)&&n("update:modelValue",l.target.value)}return(l,u)=>(C(),$("div",OA,[m("span",$A,[m("i",{class:Se(o.value[t.modelValue])},null,2)]),De(m("select",{onChange:u[0]||(u[0]=c=>s(c)),"onUpdate:modelValue":u[1]||(u[1]=c=>i.value=c),class:"form-select form-select-sm"},[(C(!0),$(ae,null,$e(a.value,(c,d)=>(C(),$("option",{value:d},re(c),9,AA))),256))],544),[[Rn,i.value]])]))}},vm={__name:"ResponsiveToggle",props:{modelValue:{type:String,default:""},options:{type:Object,default:{}},icons:{type:Object,default:{}},fieldChanged:{type:Boolean,default:!1}},emits:["update:modelValue","update:statusField"],setup(t,{emit:e}){const n=e,r=t,a=Wt("language",[]),o=G({larger_desktop:"fa-solid fa-tv",large_desktop:"fa-solid fa-desktop",desktop:"fa-solid fa-computer",tablet:"fa-solid fa-laptop",landscape_mobile:"fa-solid fa-tablet",mobile:"fa-solid fa-house-laptop"}),i=G({mobile:a.JDEFAULT,landscape_mobile:a.ASTROID_SM,tablet:a.ASTROID_LAPTOP,desktop:a.ASTROID_DESKTOP,large_desktop:a.ASTROID_XL,larger_desktop:a.ASTROID_XXL});return gn(()=>{Object.keys(r.options).length&&(i.value=r.options),Object.keys(r.icons).length&&(o.value=r.icons)}),(s,l)=>(C(),Ue(kA,{modelValue:r.modelValue,"onUpdate:modelValue":l[0]||(l[0]=u=>n("update:modelValue",u)),options:i.value,icons:o.value,fieldChanged:r.fieldChanged,"onUpdate:statusField":l[1]||(l[1]=u=>n("update:statusField",u))},null,8,["modelValue","options","icons","fieldChanged"]))}},DA={class:"row g-3 justify-content-between"},NA={class:"col col-auto"},IA={class:"col col-auto"},PA={class:"mt-2"},MA={class:"row align-items-center g-3 mb-2"},LA={class:"col col-3"},RA={class:"row gx-1 align-items-center form-text"},FA={class:"col"},UA=["id","name","onUpdate:modelValue"],jA={class:"col-auto"},BA={class:"col"},VA={class:"astroid-btn-group text-end"},HA=["onUpdate:modelValue","name","id","value"],qA=["for"],YA=["step","max","onUpdate:modelValue","id"],$f={__name:"TypoResponsive",props:["modelValue","field","fieldname","currentDevice","fieldChanged"],emits:["update:changeDevice","update:statusField"],setup(t,{emit:e}){const n=e,r=t,a=["larger_desktop","large_desktop","desktop","tablet","landscape_mobile","mobile"],o=["px","em","rem","pt","%"],i=Jt({larger_desktop:{max:100,step:1},large_desktop:{max:100,step:1},desktop:{max:100,step:1},tablet:{max:100,step:1},landscape_mobile:{max:100,step:1},mobile:{max:100,step:1}});function s(u){n("update:changeDevice",u,r.fieldname)}function l(u){["em","rem"].includes(r.modelValue[r.fieldname+"_unit"][u])&&(i[u].max=10,i[u].step=.01),["px","pt"].includes(r.modelValue[r.fieldname+"_unit"][u])&&(i[u].max=100,i[u].step=1),r.modelValue[r.fieldname+"_unit"][u]==="%"&&(i[u].max=1e3,i[u].step=1)}return ft(()=>{Object.keys(r.modelValue[r.fieldname+"_unit"]).forEach(u=>{l(u)})}),Zt(()=>{l(r.currentDevice)}),(u,c)=>(C(),$(ae,null,[m("div",DA,[m("div",NA,re(r.field.input.lang[r.fieldname]),1),m("div",IA,[de(vm,{modelValue:r.currentDevice,"onUpdate:modelValue":c[0]||(c[0]=d=>s(d)),fieldChanged:r.fieldChanged,"onUpdate:statusField":c[1]||(c[1]=d=>n("update:statusField",d))},null,8,["modelValue","fieldChanged"])])]),(C(),$(ae,null,$e(a,d=>De(m("div",PA,[m("div",MA,[m("div",LA,[m("div",RA,[m("div",FA,[De(m("input",{class:"form-control form-control-sm",id:r.field.input.id+"_"+r.fieldname+"_"+d,name:r.field.input.name+"["+r.fieldname+"]["+d+"]",type:"text","onUpdate:modelValue":f=>r.modelValue[r.fieldname][d]=f},null,8,UA),[[Et,r.modelValue[r.fieldname][d]]])]),m("div",jA,re(r.modelValue[r.fieldname+"_unit"][d]),1)])]),m("div",BA,[m("div",VA,[(C(),$(ae,null,$e(o,(f,h)=>m("span",{key:f},[De(m("input",{type:"radio",class:"btn-check","onUpdate:modelValue":p=>r.modelValue[r.fieldname+"_unit"][d]=p,name:r.field.input.name+"["+r.fieldname+"_unit]["+d+"]",id:r.field.input.id+"_"+r.fieldname+"_unit_"+d+"_"+h,value:f,autocomplete:"off"},null,8,HA),[[Eo,r.modelValue[r.fieldname+"_unit"][d]]]),m("label",{class:"btn btn-sm btn-outline-primary btn-as-outline-primary",for:r.field.input.id+"_"+r.fieldname+"_unit_"+d+"_"+h},re(f),9,qA)])),64))])])]),De(m("input",{type:"range",class:"form-range",min:"0",step:i[d].step,max:i[d].max,"onUpdate:modelValue":f=>r.modelValue[r.fieldname][d]=f,id:r.field.input.id+"_"+r.fieldname+"_range_"+d},null,8,YA),[[Et,r.modelValue[r.fieldname][d]]])],512),[[xn,r.currentDevice===d]])),64))],64))}};/*! * vue-color-kit v1.0.6 * (c) 2023 * @license MIT - */function eo(e){let t={r:0,g:0,b:0,a:1};/#/.test(e)?t=uD(e):/rgb/.test(e)?t=sb(e):typeof e=="string"?t=sb(`rgba(${e})`):Object.prototype.toString.call(e)==="[object Object]"&&(t=e);const{r:n,g:r,b:a,a:i}=t,{h:o,s,v:l}=cD(t);return{r:n,g:r,b:a,a:i===void 0?1:i,h:o,s,v:l}}function Nv(e){const t=document.createElement("canvas"),n=t.getContext("2d"),r=e*2;return t.width=r,t.height=r,n.fillStyle="#ffffff",n.fillRect(0,0,r,r),n.fillStyle="#ccd5db",n.fillRect(0,0,e,e),n.fillRect(e,e,e,e),t}function qp(e,t,n,r,a,i){const o=e==="l",s=t.createLinearGradient(0,0,o?n:0,o?0:r);s.addColorStop(.01,a),s.addColorStop(.99,i),t.fillStyle=s,t.fillRect(0,0,n,r)}function lD({r:e,g:t,b:n},r){const a=o=>("0"+Number(o).toString(16)).slice(-2),i=`#${a(e)}${a(t)}${a(n)}`;return r?i.toUpperCase():i}function uD(e){e=e.slice(1);const t=n=>parseInt(n,16)||0;return{r:t(e.slice(0,2)),g:t(e.slice(2,4)),b:t(e.slice(4,6))}}function sb(e){return typeof e=="string"?(e=(/rgba?\((.*?)\)/.exec(e)||["","0,0,0,1"])[1].split(","),{r:Number(e[0])||0,g:Number(e[1])||0,b:Number(e[2])||0,a:Number(e[3]?e[3]:1)}):e}function cD({r:e,g:t,b:n}){e=e/255,t=t/255,n=n/255;const r=Math.max(e,t,n),a=Math.min(e,t,n),i=r-a;let o=0;r===a?o=0:r===e?t>=n?o=60*(t-n)/i:o=60*(t-n)/i+360:r===t?o=60*(n-e)/i+120:r===n&&(o=60*(e-t)/i+240),o=Math.floor(o);let s=parseFloat((r===0?0:1-a/r).toFixed(2)),l=parseFloat(r.toFixed(2));return{h:o,s,v:l}}var Pv=It({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasSaturation,t=this.size,n=e.getContext("2d");e.width=t,e.height=t,n.fillStyle=this.color,n.fillRect(0,0,t,t),qp("l",n,t,t,"#FFFFFF","rgba(255,255,255,0)"),qp("p",n,t,t,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(e){const{top:t,left:n}=this.$el.getBoundingClientRect(),r=e.target.getContext("2d"),a=o=>{let s=o.clientX-n,l=o.clientY-t;s<0&&(s=0),l<0&&(l=0),s>this.size&&(s=this.size),l>this.size&&(l=this.size),this.slideSaturationStyle={left:s-5+"px",top:l-5+"px"};const u=r.getImageData(Math.min(s,this.size-1),Math.min(l,this.size-1),1,1),[c,d,f]=u.data;this.$emit("selectSaturation",{r:c,g:d,b:f})};a(e);const i=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",a),document.addEventListener("mouseup",i)}}});const dD={ref:"canvasSaturation"};function fD(e,t,n,r,a,i){return T(),Ve("div",{class:"saturation",onMousedown:t[1]||(t[1]=de((...o)=>e.selectSaturation&&e.selectSaturation(...o),["prevent","stop"]))},[ce("canvas",dD,null,512),ce("div",{style:e.slideSaturationStyle,class:"slide"},null,4)],32)}Pv.render=fD;Pv.__file="src/color/Saturation.vue";var Iv=It({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasHue,t=this.width,n=this.height,r=e.getContext("2d");e.width=t,e.height=n;const a=r.createLinearGradient(0,0,0,n);a.addColorStop(0,"#FF0000"),a.addColorStop(.17*1,"#FF00FF"),a.addColorStop(.17*2,"#0000FF"),a.addColorStop(.17*3,"#00FFFF"),a.addColorStop(.17*4,"#00FF00"),a.addColorStop(.17*5,"#FFFF00"),a.addColorStop(1,"#FF0000"),r.fillStyle=a,r.fillRect(0,0,t,n)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(e){const{top:t}=this.$el.getBoundingClientRect(),n=e.target.getContext("2d"),r=i=>{let o=i.clientY-t;o<0&&(o=0),o>this.height&&(o=this.height),this.slideHueStyle={top:o-2+"px"};const s=n.getImageData(0,Math.min(o,this.height-1),1,1),[l,u,c]=s.data;this.$emit("selectHue",{r:l,g:u,b:c})};r(e);const a=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",a)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)}}});const hD={ref:"canvasHue"};function pD(e,t,n,r,a,i){return T(),Ve("div",{class:"hue",onMousedown:t[1]||(t[1]=de((...o)=>e.selectHue&&e.selectHue(...o),["prevent","stop"]))},[ce("canvas",hD,null,512),ce("div",{style:e.slideHueStyle,class:"slide"},null,4)],32)}Iv.render=pD;Iv.__file="src/color/Hue.vue";var Mv=It({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const e=this.$refs.canvasAlpha,t=this.width,n=this.height,r=this.alphaSize,a=Nv(r),i=e.getContext("2d");e.width=t,e.height=n,i.fillStyle=i.createPattern(a,"repeat"),i.fillRect(0,0,t,n),qp("p",i,t,n,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(e){const{top:t}=this.$el.getBoundingClientRect(),n=a=>{let i=a.clientY-t;i<0&&(i=0),i>this.height&&(i=this.height);let o=parseFloat((i/this.height).toFixed(2));this.$emit("selectAlpha",o)};n(e);const r=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)}}});const mD={ref:"canvasAlpha"};function vD(e,t,n,r,a,i){return T(),Ve("div",{class:"color-alpha",onMousedown:t[1]||(t[1]=de((...o)=>e.selectAlpha&&e.selectAlpha(...o),["prevent","stop"]))},[ce("canvas",mD,null,512),ce("div",{style:e.slideAlphaStyle,class:"slide"},null,4)],32)}Mv.render=vD;Mv.__file="src/color/Alpha.vue";var Lv=It({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const e=this.$el,t=this.width,n=this.height,r=this.alphaSize,a=Nv(r),i=e.getContext("2d");e.width=t,e.height=n,i.fillStyle=i.createPattern(a,"repeat"),i.fillRect(0,0,t,n),i.fillStyle=this.color,i.fillRect(0,0,t,n)}}});function gD(e,t,n,r,a,i){return T(),Ve("canvas")}Lv.render=gD;Lv.__file="src/color/Preview.vue";var Rv=It({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(e){this.isSucking=!1,this.suckColor(e)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(e){e.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(e){const{clientX:t,clientY:n}=e,{top:r,left:a,width:i,height:o}=this.suckerCanvas.getBoundingClientRect(),s=t-a,l=n-r,c=this.suckerCanvas.getContext("2d").getImageData(Math.min(s,i-1),Math.min(l,o-1),1,1);let[d,f,h,p]=c.data;p=parseFloat((p/255).toFixed(2));const v=this.suckerPreview.style;Object.assign(v,{position:"absolute",left:t+20+"px",top:n-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${d}, ${f}, ${h}, ${p})`,zIndex:95}),this.suckerArea.length&&t>=this.suckerArea[0]&&n>=this.suckerArea[1]&&t<=this.suckerArea[2]&&n<=this.suckerArea[3]?v.display="":v.display="none"},suckColor(e){e&&e.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),e.addEventListener("click",t=>{const{clientX:n,clientY:r}=t,{top:a,left:i,width:o,height:s}=e.getBoundingClientRect(),l=n-i,u=r-a,d=e.getContext("2d").getImageData(Math.min(l,o-1),Math.min(u,s-1),1,1);let[f,h,p,v]=d.data;v=parseFloat((v/255).toFixed(2)),this.$emit("selectSucker",{r:f,g:h,b:p,a:v})}))}}});const yD=ce("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),bD={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},wD=ce("g",{fill:"none","fill-rule":"evenodd"},[ce("g",{transform:"translate(1 1)","stroke-width":"4"},[ce("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),ce("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[ce("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function _D(e,t,n,r,a,i){return T(),Ve("div",null,[e.isSucking?Z("v-if",!0):(T(),Ve("svg",{key:0,class:[{active:e.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:t[1]||(t[1]=(...o)=>e.openSucker&&e.openSucker(...o))},[yD],2)),e.isSucking?(T(),Ve("svg",bD,[wD])):Z("v-if",!0)])}Rv.render=_D;Rv.__file="src/color/Sucker.vue";var Fv=It({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(e,{emit:t}){return{modelColor:ye({get(){return e.color||""},set(i){t("inputColor",i)}}),handleFocus:i=>{t("inputFocus",i)},handleBlur:i=>{t("inputBlur",i)}}}});const xD={class:"color-type"},SD={class:"name"};function ED(e,t,n,r,a,i){return T(),Ve("div",xD,[ce("span",SD,re(e.name),1),Ne(ce("input",{"onUpdate:modelValue":t[1]||(t[1]=o=>e.modelColor=o),class:"value",onFocus:t[2]||(t[2]=(...o)=>e.handleFocus&&e.handleFocus(...o)),onBlur:t[3]||(t[3]=(...o)=>e.handleBlur&&e.handleBlur(...o))},null,544),[[kt,e.modelColor]])])}Fv.render=ED;Fv.__file="src/color/Box.vue";var jv=It({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(e,{emit:t}){const n=Q(),r=Q([]),a=Q();e.colorsHistoryKey&&localStorage&&(r.value=JSON.parse(localStorage.getItem(e.colorsHistoryKey))||[]),a.value=Nv(4).toDataURL(),ia(()=>{i(n.value)});function i(s){if(!s)return;const l=r.value||[],u=l.indexOf(s);u>=0&&l.splice(u,1),l.length>=8&&(l.length=7),l.unshift(s),r.value=l||[],localStorage&&e.colorsHistoryKey&&localStorage.setItem(e.colorsHistoryKey,JSON.stringify(l))}function o(s){t("selectColor",s)}return{setColorsHistory:i,colorsHistory:r,color:n,imgAlphaBase64:a,selectColor:o}}});const TD={class:"colors"},OD={key:0,class:"colors history"};function kD(e,t,n,r,a,i){return T(),Ve("div",null,[ce("ul",TD,[(T(!0),Ve(ae,null,ke(e.colorsDefault,o=>(T(),Ve("li",{key:o,class:"item",onClick:s=>e.selectColor(o)},[ce("div",{style:{background:`url(${e.imgAlphaBase64})`},class:"alpha"},null,4),ce("div",{style:{background:o},class:"color"},null,4)],8,["onClick"]))),128))]),e.colorsHistory.length?(T(),Ve("ul",OD,[(T(!0),Ve(ae,null,ke(e.colorsHistory,o=>(T(),Ve("li",{key:o,class:"item",onClick:s=>e.selectColor(o)},[ce("div",{style:{background:`url(${e.imgAlphaBase64})`},class:"alpha"},null,4),ce("div",{style:{background:o},class:"color"},null,4)],8,["onClick"]))),128))])):Z("v-if",!0)])}jv.render=kD;jv.__file="src/color/Colors.vue";var na=It({components:{Saturation:Pv,Hue:Iv,Alpha:Mv,Preview:Lv,Sucker:Rv,Box:Fv,Colors:jv},emits:["changeColor","openSucker","inputFocus","inputBlur"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return lD(this.rgba,!0)}},created(){Object.assign(this,eo(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(e){const{r:t,g:n,b:r,h:a,s:i,v:o}=eo(e);Object.assign(this,{r:t,g:n,b:r,h:a,s:i,v:o}),this.setText()},handleFocus(e){this.$emit("inputFocus",e)},handleBlur(e){this.$emit("inputBlur",e)},selectHue(e){const{r:t,g:n,b:r,h:a,s:i,v:o}=eo(e);Object.assign(this,{r:t,g:n,b:r,h:a,s:i,v:o}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(e){this.a=e,this.setText()},inputHex(e){const{r:t,g:n,b:r,a,h:i,s:o,v:s}=eo(e);Object.assign(this,{r:t,g:n,b:r,a,h:i,s:o,v:s}),this.modelHex=e,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(e){const{r:t,g:n,b:r,a,h:i,s:o,v:s}=eo(e);Object.assign(this,{r:t,g:n,b:r,a,h:i,s:o,v:s}),this.modelHex=this.hexString,this.modelRgba=e,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(e){this.$emit("openSucker",e)},selectSucker(e){const{r:t,g:n,b:r,a,h:i,s:o,v:s}=eo(e);Object.assign(this,{r:t,g:n,b:r,a,h:i,s:o,v:s}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(e){const{r:t,g:n,b:r,a,h:i,s:o,v:s}=eo(e);Object.assign(this,{r:t,g:n,b:r,a,h:i,s:o,v:s}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const CD={class:"color-set"};function AD(e,t,n,r,a,i){const o=gr("Saturation"),s=gr("Hue"),l=gr("Alpha"),u=gr("Preview"),c=gr("Sucker"),d=gr("Box"),f=gr("Colors");return T(),Ve("div",{class:["hu-color-picker",{light:e.isLightTheme}],style:{width:e.totalWidth+"px"}},[ce("div",CD,[ce(o,{ref:"saturation",color:e.rgbString,hsv:e.hsv,size:e.hueHeight,onSelectSaturation:e.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),ce(s,{ref:"hue",hsv:e.hsv,width:e.hueWidth,height:e.hueHeight,onSelectHue:e.selectHue},null,8,["hsv","width","height","onSelectHue"]),ce(l,{ref:"alpha",color:e.rgbString,rgba:e.rgba,width:e.hueWidth,height:e.hueHeight,onSelectAlpha:e.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),ce("div",{style:{height:e.previewHeight+"px"},class:"color-show"},[ce(u,{color:e.rgbaString,width:e.previewWidth,height:e.previewHeight},null,8,["color","width","height"]),e.suckerHide?Z("v-if",!0):(T(),Ve(c,{key:0,"sucker-canvas":e.suckerCanvas,"sucker-area":e.suckerArea,onOpenSucker:e.openSucker,onSelectSucker:e.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),ce(d,{name:"HEX",color:e.modelHex,onInputColor:e.inputHex,onInputFocus:e.handleFocus,onInputBlur:e.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),ce(d,{name:"RGBA",color:e.modelRgba,onInputColor:e.inputRgba,onInputFocus:e.handleFocus,onInputBlur:e.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),ce(f,{color:e.rgbaString,"colors-default":e.colorsDefault,"colors-history-key":e.colorsHistoryKey,onSelectColor:e.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),Z(" custom options "),qe(e.$slots,"default")],6)}na.render=AD;na.__file="src/color/ColorPicker.vue";na.install=e=>{e.component(na.name,na)};const $D={class:"row row-cols-1 g-4"},DD={key:0},ND={class:"row g-3 mb-2 justify-content-center"},PD={class:"col col-auto"},ID=["for"],MD={class:"col"},LD={class:"astroid-btn-group text-end"},RD=["id","value"],FD=["for"],jD=["id","name"],BD={key:1},UD=["for"],VD=["id","name"],HD=["value"],YD={key:2},qD=["for"],zD=["id","name"],WD=["value"],KD={class:"row row-cols-1 g-2"},GD={key:0},XD={key:1},JD={key:2},QD={class:"row row-cols-1 g-4"},ZD={key:0},eN={class:"form-label"},tN={class:"astroid-color"},nN={class:"row"},rN=["id"],aN={key:0},iN={key:0,class:"col text-center py-3"},oN=m("i",{class:"fa-solid fa-arrows-left-right"},null,-1),sN=[oN],lN={key:1,class:"col-4 text-center"},uN=["id"],cN=m("div",null,"Dark",-1),dN=["name","id"],fN={key:1},hN=["for"],pN=["id","name"],mN=["value"],vN={key:2},gN={class:"form-label"},yN={class:"btn-group",role:"group","aria-label":"Basic checkbox toggle button group"},bN=["name","id","value"],wN=["for","innerHTML"],_N={key:0,class:"typography-preview"},xN=["href"],SN=m("p",null,"Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz",-1),EN=m("p",{class:"mb-0"},"0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20",-1),TN={__name:"Typography",props:["modelValue","field"],emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=sn("theme","light"),a=sn("constant",{}),i=[{value:"bold",text:"Bold"},{value:"italic",text:"Italic"},{value:"underline",text:'Underline'}],o={"Arial, Helvetica, sans-serif":"Arial, Helvetica","Arial Black, Gadget, sans-serif":"Arial Black, Gadget","Bookman Old Style, serif":"Bookman Old Style","Comic Sans MS, cursive":"Comic Sans MS","Courier, monospace":"Courier","Garamond, serif":"Garamond","Georgia, serif":"Georgia","Impact, Charcoal, sans-serif":"Impact, Charcoal","Lucida Console, Monaco, monospace":"Lucida Console, Monaco","Lucida Sans Unicode, sans-serif":"Lucida Sans Unicode","MS Sans Serif, Geneva, sans-serif":"MS Sans Serif, Geneva","MS Serif, New York, sans-serif":"MS Serif, New York","Palatino Linotype, Book Antiqua, Palatino, serif":"Palatino Linotype, Book Antiqua, Palatino","Tahoma, Geneva, sans-serif":"Tahoma, Geneva","Times New Roman, Times, serif":"Times New Roman, Times","Trebuchet MS, Helvetica, sans-serif":"Trebuchet MS, Helvetica","Verdana, Geneva, sans-serif":"Verdana, Geneva"},s=["I love you and that's the beginning and end of everything.","I saw that you were perfect, and so I loved you. Then I saw that you were not perfect and I loved you even more.","You know you're in love when you can't fall asleep because reality is finally better than your dreams.","Love is that condition in which the happiness of another person is essential to your own.","The best thing to hold onto in life is each other.","I need you like a heart needs a beat.","I am who I am because of you. You are every reason, every hope, and every dream I've ever had.","If I had a flower for every time I thought of you.. I could walk through my garden forever.","Take my hand, take my whole life too. For I can't help falling in love with you.","If you live to be a hundred, I want to live to be a hundred minus one day so I never have to live without you.","You are the finest, loveliest, tenderest, and most beautiful person I have ever known and even that is an understatement.","In all the world, there is no heart for me like yours. In all the world, there is no love for you like mine."],l=Zt({system:[],google:[],local:[]}),u=Q({value:"",text:""}),c=Q(["system","google"]),d=Q("google"),f=Q("desktop");function h(R){R.search(/^library-font-/)!==-1?d.value="local":typeof o[R]<"u"?d.value="system":d.value="google"}mt(()=>{let R=a.site_url+"administrator/index.php?option=com_ajax&astroid=google-fonts&template="+a.template_name+"&ts="+Date.now();if(Object.keys(n.field.input.value).forEach(M=>{typeof n.modelValue[M]>"u"&&(n.modelValue[M]=n.field.input.value[M])}),h(n.modelValue.font_face?n.modelValue.font_face:n.field.input.value.font_face),Ut.get(R).then(function(M){M.status===200&&(l.system=M.data.system,l.google=M.data.google,l.local=M.data.local,l.local.length>1&&c.value.push("local"),M.data[d.value].forEach(x=>{n.modelValue.font_face===x.value&&(u.value=x)}))}).catch(function(M){console.log(M)}),n.modelValue.font_color.trim()!=="")try{const M=JSON.parse(n.modelValue.font_color);_.light=M.light,_.dark=M.dark}catch{_.light=n.modelValue.font_color,_.dark=n.modelValue.font_color}document.addEventListener("click",function(M){const x=document.getElementById(n.field.input.id+"-colorpicker"),E=document.getElementById(n.field.input.id+"-colorcircle-light"),A=document.getElementById(n.field.input.id+"-colorcircle-dark");v.value===!0&&x&&E&&!E.contains(M.target)&&!x.contains(M.target)&&(A&&!A.contains(M.target)||parseInt(a.color_mode)===0)&&(v.value=!1)})}),gn(()=>{u.value.value!==""&&u.value.value!==n.modelValue.font_face&&(h(n.modelValue.font_face),u.value=l[d.value].find(R=>R.value===n.modelValue.font_face))}),gt(u,R=>{R.value!==n.modelValue.font_face&&(n.modelValue.font_face=R.value)});function p(R){f.value=R}const v=Q(!1),y=Q(""),g=Q("light"),_=Zt({light:"",dark:""});function w(R){y.value=_[R],g.value=R,v.value=!0}function S(R){try{if(n.modelValue.font_color){let M=JSON.parse(n.modelValue.font_color);M[g.value]=R,n.modelValue.font_color=JSON.stringify(M)}else{let M={light:"",dark:""};M[g.value]=R,n.modelValue.font_color=JSON.stringify(M)}}catch{const x={light:R,dark:R};n.modelValue.font_color=JSON.stringify(x)}}function k(R){const{r:M,g:x,b:E,a:A}=R.rgba;A===0?_[g.value]="":_[g.value]=`rgba(${M}, ${x}, ${E}, ${A})`,S(_[g.value])}function P(R,M){return R=Math.ceil(R),M=Math.floor(M),Math.floor(Math.random()*(M-R+1))+R}return(R,M)=>(T(),C(ae,null,[m("div",{class:xe(["row g-4","row-cols-lg-"+Math.ceil(n.field.input.options.columns/2)+" row-cols-xl-"+n.field.input.options.columns])},[m("div",null,[m("div",$D,[n.field.input.options.fontpicker?(T(),C("div",DD,[m("div",ND,[m("div",PD,[m("label",{for:n.field.input.id+"_font_face_search",class:"form-label m-0"},re(n.field.input.lang.font_family),9,ID)]),m("div",MD,[m("div",LD,[(T(!0),C(ae,null,ke(c.value,x=>(T(),C("span",{key:x},[Ne(m("input",{type:"radio",class:"btn-check","onUpdate:modelValue":M[0]||(M[0]=E=>d.value=E),id:n.field.input.id+"_font_type_"+x,value:x,autocomplete:"off"},null,8,RD),[[Bi,d.value]]),m("label",{class:"btn btn-sm btn-outline-primary btn-as-outline-primary text-capitalize",for:n.field.input.id+"_font_type_"+x},re(x),9,FD)]))),128))])])]),ce(z(R3),{list:l[d.value],modelValue:u.value,"onUpdate:modelValue":M[1]||(M[1]=x=>u.value=x),"option-value":"value","option-text":"text",id:n.field.input.id+"_font_face_search",placeholder:n.field.input.lang.inherit},null,8,["list","modelValue","id","placeholder"]),Ne(m("input",{type:"hidden",id:n.field.input.id+"_font_face",name:n.field.input.name+"[font_face]","onUpdate:modelValue":M[2]||(M[2]=x=>u.value.value=x)},null,8,jD),[[kt,u.value.value]])])):Z("",!0),n.field.input.options.fontpicker?(T(),C("div",BD,[m("label",{for:n.field.input.id+"_alt_font_face",class:"form-label"},re(n.field.input.lang.font_family_alt),9,UD),Ne(m("select",{id:n.field.input.id+"_alt_font_face",name:n.field.input.name+"[alt_font_face]","onUpdate:modelValue":M[3]||(M[3]=x=>n.modelValue.alt_font_face=x),class:"form-select"},[(T(!0),C(ae,null,ke(n.field.input.options.system_fonts,x=>(T(),C("option",{value:x.value,key:x.value},re(x.text),9,HD))),128))],8,VD),[[Jn,n.modelValue.alt_font_face]])])):Z("",!0),n.field.input.options.weightpicker?(T(),C("div",YD,[m("label",{for:n.field.input.id+"_font_weight",class:"form-label"},re(n.field.input.lang.font_weight),9,qD),Ne(m("select",{id:n.field.input.id+"_font_weight",name:n.field.input.name+"[font_weight]","onUpdate:modelValue":M[4]||(M[4]=x=>n.modelValue.font_weight=x),class:"form-select"},[(T(),C(ae,null,ke([100,200,300,400,500,600,700,800,900],x=>m("option",{value:x,key:x},re(x),9,WD)),64))],8,zD),[[Jn,n.modelValue.font_weight]])])):Z("",!0)])]),m("div",null,[m("div",KD,[n.field.input.options.sizepicker?(T(),C("div",GD,[ce(Ch,{modelValue:n.modelValue,"onUpdate:modelValue":M[5]||(M[5]=x=>n.modelValue=x),field:n.field,fieldname:"font_size","current-device":f.value,"onUpdate:changeDevice":p},null,8,["modelValue","field","current-device"])])):Z("",!0),n.field.input.options.letterspacingpicker?(T(),C("div",XD,[ce(Ch,{modelValue:n.modelValue,"onUpdate:modelValue":M[6]||(M[6]=x=>n.modelValue=x),field:n.field,fieldname:"letter_spacing","current-device":f.value,"onUpdate:changeDevice":p},null,8,["modelValue","field","current-device"])])):Z("",!0),n.field.input.options.lineheightpicker?(T(),C("div",JD,[ce(Ch,{modelValue:n.modelValue,"onUpdate:modelValue":M[7]||(M[7]=x=>n.modelValue=x),field:n.field,fieldname:"line_height","current-device":f.value,"onUpdate:changeDevice":p},null,8,["modelValue","field","current-device"])])):Z("",!0)])]),m("div",null,[m("div",QD,[n.field.input.options.colorpicker?(T(),C("div",ZD,[m("div",eN,re(n.field.input.lang.font_color),1),m("div",tN,[m("div",nN,[m("div",{class:xe({"col-4 text-center":z(a).color_mode==="1","col-12":z(a).color_mode!=="1"})},[m("i",{class:"border astroid-color-picker fas fa-circle fa-3x",id:n.field.input.id+"-colorcircle-light",style:wt({color:_.light}),onClick:M[8]||(M[8]=x=>w("light"))},null,12,rN),z(a).color_mode==="1"?(T(),C("div",aN,"Light")):Z("",!0)],2),z(a).color_mode==="1"?(T(),C("div",iN,sN)):Z("",!0),z(a).color_mode==="1"?(T(),C("div",lN,[m("i",{class:"border astroid-color-picker fas fa-circle fa-3x",id:n.field.input.id+"-colorcircle-dark",style:wt({color:_.dark}),onClick:M[9]||(M[9]=x=>w("dark"))},null,12,uN),cN])):Z("",!0)]),Ne(m("input",{type:"hidden",name:n.field.input.name+"[font_color]",id:n.field.input.id+"_font_color","onUpdate:modelValue":M[10]||(M[10]=x=>n.modelValue.font_color=x)},null,8,dN),[[kt,n.modelValue.font_color]]),v.value?(T(),Ve(z(na),{key:0,theme:z(r),color:y.value,"sucker-hide":!0,"sucker-canvas":null,"sucker-area":[],id:n.field.input.id+"-colorpicker",onChangeColor:k},null,8,["theme","color","id"])):Z("",!0)])])):Z("",!0),n.field.input.options.transformpicker?(T(),C("div",fN,[m("label",{for:n.field.input.id+"_text_transform",class:"form-label"},re(n.field.input.lang.text_transform),9,hN),Ne(m("select",{id:n.field.input.id+"_text_transform",name:n.field.input.name+"[text_transform]","onUpdate:modelValue":M[11]||(M[11]=x=>n.modelValue.text_transform=x),class:"form-select"},[(T(!0),C(ae,null,ke(n.field.input.options.text_transform_options,(x,E)=>(T(),C("option",{value:E,key:E},re(x),9,mN))),128))],8,pN),[[Jn,n.modelValue.text_transform]])])):Z("",!0),n.field.input.options.stylepicker?(T(),C("div",vN,[m("div",gN,re(n.field.input.lang.font_style),1),m("div",yN,[(T(),C(ae,null,ke(i,(x,E)=>m("span",null,[Ne(m("input",{type:"checkbox",class:"btn-check","onUpdate:modelValue":M[12]||(M[12]=A=>n.modelValue.font_style=A),name:n.field.input.name+"[font_style]",id:n.field.input.id+"_font_style_"+E,value:x.value,autocomplete:"off"},null,8,bN),[[Er,n.modelValue.font_style]]),m("label",{class:"btn btn-sm",for:n.field.input.id+"_font_style_"+E,innerHTML:x.text},null,8,wN)])),64))])])):Z("",!0)])])],2),n.field.input.options.preview?(T(),C("div",_N,[d.value==="google"&&typeof l[d.value].find(x=>x.value===u.value.value)<"u"&&u.value.value!==""&&u.value.value!=="__default"&&u.value.value.search(/^library-font-/)===-1?(T(),C("link",{key:0,href:"https://fonts.googleapis.com/css?family="+u.value.value,rel:"stylesheet"},null,8,xN)):Z("",!0),m("div",{class:"card card-default card-body mt-4",style:wt({"font-family":u.value.text,"font-weight":n.modelValue.font_weight,"text-transform":n.modelValue.text_transform,"font-size":n.modelValue.font_size[f.value]+n.modelValue.font_size_unit[f.value],"line-height":n.modelValue.line_height[f.value]+n.modelValue.line_height_unit[f.value],"letter-spacing":n.modelValue.letter_spacing[f.value]+n.modelValue.letter_spacing_unit[f.value]})},[m("p",null,re(s[P(0,s.length-1)]),1),SN,EN],4)])):Z("",!0)],64))}},ON={key:0},kN={class:"d-grid"},CN=m("i",{class:"fas fa-expand me-1"},null,-1),AN=["id"],$N={class:"modal-dialog modal-fullscreen"},DN={class:"modal-content"},NN={class:"modal-header"},PN=["innerHTML"],IN={class:"modal-body"},MN=["id","name","textContent"],LN=["id","name","placeholder","textContent"],RN={__name:"TextArea",props:["modelValue","field"],emits:["update:modelValue"],setup(e,{emit:t}){const n=t,r=e,a=sn("theme","light"),i={automaticLayout:!0,formatOnType:!0,formatOnPaste:!0,height:"200px"},o=Q(""),s=Q(!1);function l(u){n("update:modelValue",u)}return mt(()=>{o.value=r.modelValue}),gn(()=>{o.value!==r.modelValue&&(o.value=r.modelValue)}),(u,c)=>{const d=gr("vue-monaco-editor");return typeof r.field.input.code<"u"&&r.field.input.code!==""?(T(),C("div",ON,[ce(d,{value:o.value,"onUpdate:value":c[0]||(c[0]=f=>o.value=f),theme:z(a)==="light"?"light":"vs-dark",language:r.field.input.code,height:"200px",className:"border",options:i,onChange:l},null,8,["value","theme","language"]),m("div",kN,[m("button",{type:"button",class:"btn btn-sm btn-as btn-primary btn-as-primary rounded-0",onClick:c[1]||(c[1]=de(f=>s.value=!0,["prevent"]))},[CN,bt(" Edit in Fullscreen ")])]),s.value?(T(),C("div",{key:0,class:"modal d-block",id:r.field.input.id+"_full_editor",tabindex:"-1"},[m("div",$N,[m("div",DN,[m("div",NN,[m("h5",{class:"modal-title",innerHTML:r.field.label},null,8,PN),m("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:c[2]||(c[2]=de(f=>s.value=!1,["prevent"]))})]),m("div",IN,[ce(d,{value:o.value,"onUpdate:value":c[3]||(c[3]=f=>o.value=f),theme:z(a)==="light"?"light":"vs-dark",language:r.field.input.code,height:"100%",className:"border",options:i,onChange:l},null,8,["value","theme","language"])])])])],8,AN)):Z("",!0),m("textarea",{class:"d-none",id:r.field.input.id,name:r.field.input.name,textContent:re(e.modelValue)},null,8,MN)])):(T(),C("textarea",{key:1,class:"form-control",id:r.field.input.id,name:r.field.input.name,rows:"8",placeholder:r.field.input.hint,textContent:re(e.modelValue),onInput:c[4]||(c[4]=f=>n("update:modelValue",f.target.value))},null,40,LN))}}};var H_={exports:{}};const FN=F_(QO);/**! + */function Lo(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=WA(t):/rgb/.test(t)?e=Mg(t):typeof t=="string"?e=Mg(`rgba(${t})`):Object.prototype.toString.call(t)==="[object Object]"&&(e=t);const{r:n,g:r,b:a,a:o}=e,{h:i,s,v:l}=zA(e);return{r:n,g:r,b:a,a:o===void 0?1:o,h:i,s,v:l}}function gm(t){const e=document.createElement("canvas"),n=e.getContext("2d"),r=t*2;return e.width=r,e.height=r,n.fillStyle="#ffffff",n.fillRect(0,0,r,r),n.fillStyle="#ccd5db",n.fillRect(0,0,t,t),n.fillRect(t,t,t,t),e}function Hh(t,e,n,r,a,o){const i=t==="l",s=e.createLinearGradient(0,0,i?n:0,i?0:r);s.addColorStop(.01,a),s.addColorStop(.99,o),e.fillStyle=s,e.fillRect(0,0,n,r)}function KA({r:t,g:e,b:n},r){const a=i=>("0"+Number(i).toString(16)).slice(-2),o=`#${a(t)}${a(e)}${a(n)}`;return r?o.toUpperCase():o}function WA(t){t=t.slice(1);const e=n=>parseInt(n,16)||0;return{r:e(t.slice(0,2)),g:e(t.slice(2,4)),b:e(t.slice(4,6))}}function Mg(t){return typeof t=="string"?(t=(/rgba?\((.*?)\)/.exec(t)||["","0,0,0,1"])[1].split(","),{r:Number(t[0])||0,g:Number(t[1])||0,b:Number(t[2])||0,a:Number(t[3]?t[3]:1)}):t}function zA({r:t,g:e,b:n}){t=t/255,e=e/255,n=n/255;const r=Math.max(t,e,n),a=Math.min(t,e,n),o=r-a;let i=0;r===a?i=0:r===t?e>=n?i=60*(e-n)/o:i=60*(e-n)/o+360:r===e?i=60*(n-t)/o+120:r===n&&(i=60*(t-e)/o+240),i=Math.floor(i);let s=parseFloat((r===0?0:1-a/r).toFixed(2)),l=parseFloat(r.toFixed(2));return{h:i,s,v:l}}var ym=Ft({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasSaturation,e=this.size,n=t.getContext("2d");t.width=e,t.height=e,n.fillStyle=this.color,n.fillRect(0,0,e,e),Hh("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Hh("p",n,e,e,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(t){const{top:e,left:n}=this.$el.getBoundingClientRect(),r=t.target.getContext("2d"),a=i=>{let s=i.clientX-n,l=i.clientY-e;s<0&&(s=0),l<0&&(l=0),s>this.size&&(s=this.size),l>this.size&&(l=this.size),this.slideSaturationStyle={left:s-5+"px",top:l-5+"px"};const u=r.getImageData(Math.min(s,this.size-1),Math.min(l,this.size-1),1,1),[c,d,f]=u.data;this.$emit("selectSaturation",{r:c,g:d,b:f})};a(t);const o=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",a),document.addEventListener("mouseup",o)}}});const GA={ref:"canvasSaturation"};function JA(t,e,n,r,a,o){return C(),Ue("div",{class:"saturation",onMousedown:e[1]||(e[1]=he((...i)=>t.selectSaturation&&t.selectSaturation(...i),["prevent","stop"]))},[de("canvas",GA,null,512),de("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}ym.render=JA;ym.__file="src/color/Saturation.vue";var bm=Ft({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasHue,e=this.width,n=this.height,r=t.getContext("2d");t.width=e,t.height=n;const a=r.createLinearGradient(0,0,0,n);a.addColorStop(0,"#FF0000"),a.addColorStop(.17*1,"#FF00FF"),a.addColorStop(.17*2,"#0000FF"),a.addColorStop(.17*3,"#00FFFF"),a.addColorStop(.17*4,"#00FF00"),a.addColorStop(.17*5,"#FFFF00"),a.addColorStop(1,"#FF0000"),r.fillStyle=a,r.fillRect(0,0,e,n)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(t){const{top:e}=this.$el.getBoundingClientRect(),n=t.target.getContext("2d"),r=o=>{let i=o.clientY-e;i<0&&(i=0),i>this.height&&(i=this.height),this.slideHueStyle={top:i-2+"px"};const s=n.getImageData(0,Math.min(i,this.height-1),1,1),[l,u,c]=s.data;this.$emit("selectHue",{r:l,g:u,b:c})};r(t);const a=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",a)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)}}});const XA={ref:"canvasHue"};function QA(t,e,n,r,a,o){return C(),Ue("div",{class:"hue",onMousedown:e[1]||(e[1]=he((...i)=>t.selectHue&&t.selectHue(...i),["prevent","stop"]))},[de("canvas",XA,null,512),de("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}bm.render=QA;bm.__file="src/color/Hue.vue";var wm=Ft({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasAlpha,e=this.width,n=this.height,r=this.alphaSize,a=gm(r),o=t.getContext("2d");t.width=e,t.height=n,o.fillStyle=o.createPattern(a,"repeat"),o.fillRect(0,0,e,n),Hh("p",o,e,n,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(t){const{top:e}=this.$el.getBoundingClientRect(),n=a=>{let o=a.clientY-e;o<0&&(o=0),o>this.height&&(o=this.height);let i=parseFloat((o/this.height).toFixed(2));this.$emit("selectAlpha",i)};n(t);const r=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)}}});const ZA={ref:"canvasAlpha"};function ek(t,e,n,r,a,o){return C(),Ue("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=he((...i)=>t.selectAlpha&&t.selectAlpha(...i),["prevent","stop"]))},[de("canvas",ZA,null,512),de("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}wm.render=ek;wm.__file="src/color/Alpha.vue";var _m=Ft({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const t=this.$el,e=this.width,n=this.height,r=this.alphaSize,a=gm(r),o=t.getContext("2d");t.width=e,t.height=n,o.fillStyle=o.createPattern(a,"repeat"),o.fillRect(0,0,e,n),o.fillStyle=this.color,o.fillRect(0,0,e,n)}}});function tk(t,e,n,r,a,o){return C(),Ue("canvas")}_m.render=tk;_m.__file="src/color/Preview.vue";var xm=Ft({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(t){this.isSucking=!1,this.suckColor(t)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(t){t.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(t){const{clientX:e,clientY:n}=t,{top:r,left:a,width:o,height:i}=this.suckerCanvas.getBoundingClientRect(),s=e-a,l=n-r,c=this.suckerCanvas.getContext("2d").getImageData(Math.min(s,o-1),Math.min(l,i-1),1,1);let[d,f,h,p]=c.data;p=parseFloat((p/255).toFixed(2));const v=this.suckerPreview.style;Object.assign(v,{position:"absolute",left:e+20+"px",top:n-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${d}, ${f}, ${h}, ${p})`,zIndex:95}),this.suckerArea.length&&e>=this.suckerArea[0]&&n>=this.suckerArea[1]&&e<=this.suckerArea[2]&&n<=this.suckerArea[3]?v.display="":v.display="none"},suckColor(t){t&&t.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),t.addEventListener("click",e=>{const{clientX:n,clientY:r}=e,{top:a,left:o,width:i,height:s}=t.getBoundingClientRect(),l=n-o,u=r-a,d=t.getContext("2d").getImageData(Math.min(l,i-1),Math.min(u,s-1),1,1);let[f,h,p,v]=d.data;v=parseFloat((v/255).toFixed(2)),this.$emit("selectSucker",{r:f,g:h,b:p,a:v})}))}}});const nk=de("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),rk={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},ak=de("g",{fill:"none","fill-rule":"evenodd"},[de("g",{transform:"translate(1 1)","stroke-width":"4"},[de("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),de("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[de("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function ok(t,e,n,r,a,o){return C(),Ue("div",null,[t.isSucking?Z("v-if",!0):(C(),Ue("svg",{key:0,class:[{active:t.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:e[1]||(e[1]=(...i)=>t.openSucker&&t.openSucker(...i))},[nk],2)),t.isSucking?(C(),Ue("svg",rk,[ak])):Z("v-if",!0)])}xm.render=ok;xm.__file="src/color/Sucker.vue";var Sm=Ft({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(t,{emit:e}){return{modelColor:we({get(){return t.color||""},set(o){e("inputColor",o)}}),handleFocus:o=>{e("inputFocus",o)},handleBlur:o=>{e("inputBlur",o)}}}});const ik={class:"color-type"},sk={class:"name"};function lk(t,e,n,r,a,o){return C(),Ue("div",ik,[de("span",sk,re(t.name),1),De(de("input",{"onUpdate:modelValue":e[1]||(e[1]=i=>t.modelColor=i),class:"value",onFocus:e[2]||(e[2]=(...i)=>t.handleFocus&&t.handleFocus(...i)),onBlur:e[3]||(e[3]=(...i)=>t.handleBlur&&t.handleBlur(...i))},null,544),[[Et,t.modelColor]])])}Sm.render=lk;Sm.__file="src/color/Box.vue";var Tm=Ft({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(t,{emit:e}){const n=G(),r=G([]),a=G();t.colorsHistoryKey&&localStorage&&(r.value=JSON.parse(localStorage.getItem(t.colorsHistoryKey))||[]),a.value=gm(4).toDataURL(),Xr(()=>{o(n.value)});function o(s){if(!s)return;const l=r.value||[],u=l.indexOf(s);u>=0&&l.splice(u,1),l.length>=8&&(l.length=7),l.unshift(s),r.value=l||[],localStorage&&t.colorsHistoryKey&&localStorage.setItem(t.colorsHistoryKey,JSON.stringify(l))}function i(s){e("selectColor",s)}return{setColorsHistory:o,colorsHistory:r,color:n,imgAlphaBase64:a,selectColor:i}}});const uk={class:"colors"},ck={key:0,class:"colors history"};function dk(t,e,n,r,a,o){return C(),Ue("div",null,[de("ul",uk,[(C(!0),Ue(ae,null,$e(t.colorsDefault,i=>(C(),Ue("li",{key:i,class:"item",onClick:s=>t.selectColor(i)},[de("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),de("div",{style:{background:i},class:"color"},null,4)],8,["onClick"]))),128))]),t.colorsHistory.length?(C(),Ue("ul",ck,[(C(!0),Ue(ae,null,$e(t.colorsHistory,i=>(C(),Ue("li",{key:i,class:"item",onClick:s=>t.selectColor(i)},[de("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),de("div",{style:{background:i},class:"color"},null,4)],8,["onClick"]))),128))])):Z("v-if",!0)])}Tm.render=dk;Tm.__file="src/color/Colors.vue";var zr=Ft({components:{Saturation:ym,Hue:bm,Alpha:wm,Preview:_m,Sucker:xm,Box:Sm,Colors:Tm},emits:["changeColor","openSucker","inputFocus","inputBlur"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return KA(this.rgba,!0)}},created(){Object.assign(this,Lo(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(t){const{r:e,g:n,b:r,h:a,s:o,v:i}=Lo(t);Object.assign(this,{r:e,g:n,b:r,h:a,s:o,v:i}),this.setText()},handleFocus(t){this.$emit("inputFocus",t)},handleBlur(t){this.$emit("inputBlur",t)},selectHue(t){const{r:e,g:n,b:r,h:a,s:o,v:i}=Lo(t);Object.assign(this,{r:e,g:n,b:r,h:a,s:o,v:i}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(t){this.a=t,this.setText()},inputHex(t){const{r:e,g:n,b:r,a,h:o,s:i,v:s}=Lo(t);Object.assign(this,{r:e,g:n,b:r,a,h:o,s:i,v:s}),this.modelHex=t,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(t){const{r:e,g:n,b:r,a,h:o,s:i,v:s}=Lo(t);Object.assign(this,{r:e,g:n,b:r,a,h:o,s:i,v:s}),this.modelHex=this.hexString,this.modelRgba=t,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(t){this.$emit("openSucker",t)},selectSucker(t){const{r:e,g:n,b:r,a,h:o,s:i,v:s}=Lo(t);Object.assign(this,{r:e,g:n,b:r,a,h:o,s:i,v:s}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(t){const{r:e,g:n,b:r,a,h:o,s:i,v:s}=Lo(t);Object.assign(this,{r:e,g:n,b:r,a,h:o,s:i,v:s}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const fk={class:"color-set"};function hk(t,e,n,r,a,o){const i=Fr("Saturation"),s=Fr("Hue"),l=Fr("Alpha"),u=Fr("Preview"),c=Fr("Sucker"),d=Fr("Box"),f=Fr("Colors");return C(),Ue("div",{class:["hu-color-picker",{light:t.isLightTheme}],style:{width:t.totalWidth+"px"}},[de("div",fk,[de(i,{ref:"saturation",color:t.rgbString,hsv:t.hsv,size:t.hueHeight,onSelectSaturation:t.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),de(s,{ref:"hue",hsv:t.hsv,width:t.hueWidth,height:t.hueHeight,onSelectHue:t.selectHue},null,8,["hsv","width","height","onSelectHue"]),de(l,{ref:"alpha",color:t.rgbString,rgba:t.rgba,width:t.hueWidth,height:t.hueHeight,onSelectAlpha:t.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),de("div",{style:{height:t.previewHeight+"px"},class:"color-show"},[de(u,{color:t.rgbaString,width:t.previewWidth,height:t.previewHeight},null,8,["color","width","height"]),t.suckerHide?Z("v-if",!0):(C(),Ue(c,{key:0,"sucker-canvas":t.suckerCanvas,"sucker-area":t.suckerArea,onOpenSucker:t.openSucker,onSelectSucker:t.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),de(d,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),de(d,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),de(f,{color:t.rgbaString,"colors-default":t.colorsDefault,"colors-history-key":t.colorsHistoryKey,onSelectColor:t.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),Z(" custom options "),qe(t.$slots,"default")],6)}zr.render=hk;zr.__file="src/color/ColorPicker.vue";zr.install=t=>{t.component(zr.name,zr)};const pk=["onClick"],mk=["href"],vk={class:"card card-body"},gk={class:"d-flex align-items-center justify-content-between"},yk=m("div",{class:"position-absolute top-0 start-100 ms-2 cogIcon",style:{"font-size":"0.86rem","line-height":"1"}},[m("i",{class:"fa-solid fa-gear"})],-1),bk={class:"fontProperties d-flex align-items-center"},wk={class:"fontSize"},_k={class:"form-text mt-0","aria-label":"Font Size"},xk={class:"value"},Sk=m("div",{class:"px-3 opacity-50"},"/",-1),Tk={class:"lineHeight"},Ek={class:"form-text mt-0","aria-label":"Line Height"},Ck={class:"value"},Ok={class:"row row-cols-1 g-4"},$k={key:0},Ak={class:"row g-3 mb-2 justify-content-center"},kk={class:"col col-auto"},Dk=["for"],Nk={class:"col"},Ik={class:"astroid-btn-group text-end"},Pk=["id","value"],Mk=["for"],Lk=["id","name"],Rk={key:1},Fk=["for"],Uk=["id","name"],jk=["value"],Bk={key:2},Vk=["for"],Hk=["id","name"],qk=["value"],Yk={class:"row row-cols-1 g-2"},Kk={key:0},Wk={key:1},zk={key:2},Gk={class:"row row-cols-1 g-4"},Jk={key:0},Xk={class:"form-label"},Qk={class:"astroid-color"},Zk={class:"row"},eD=["id"],tD={key:0},nD={key:0,class:"col text-center py-3"},rD=m("i",{class:"fa-solid fa-arrows-left-right"},null,-1),aD=[rD],oD={key:1,class:"col-4 text-center"},iD=["id"],sD=m("div",null,"Dark",-1),lD=["name","id"],uD={key:1},cD=["for"],dD=["id","name"],fD=["value"],hD={key:2},pD={class:"form-label"},mD={class:"btn-group",role:"group","aria-label":"Basic checkbox toggle button group"},vD=["name","id","value"],gD=["for","innerHTML"],yD={key:0,class:"typography-preview"},bD=["href"],wD=m("p",null,"Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz",-1),_D=m("p",{class:"mb-0"},"0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20",-1),xD={__name:"Typography",props:["modelValue","field"],emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=Wt("theme","light"),a=Wt("constant",{}),o=[{value:"bold",text:"Bold"},{value:"italic",text:"Italic"},{value:"underline",text:'Underline'}],i={"Arial, Helvetica, sans-serif":"Arial, Helvetica","Arial Black, Gadget, sans-serif":"Arial Black, Gadget","Bookman Old Style, serif":"Bookman Old Style","Comic Sans MS, cursive":"Comic Sans MS","Courier, monospace":"Courier","Garamond, serif":"Garamond","Georgia, serif":"Georgia","Impact, Charcoal, sans-serif":"Impact, Charcoal","Lucida Console, Monaco, monospace":"Lucida Console, Monaco","Lucida Sans Unicode, sans-serif":"Lucida Sans Unicode","MS Sans Serif, Geneva, sans-serif":"MS Sans Serif, Geneva","MS Serif, New York, sans-serif":"MS Serif, New York","Palatino Linotype, Book Antiqua, Palatino, serif":"Palatino Linotype, Book Antiqua, Palatino","Tahoma, Geneva, sans-serif":"Tahoma, Geneva","Times New Roman, Times, serif":"Times New Roman, Times","Trebuchet MS, Helvetica, sans-serif":"Trebuchet MS, Helvetica","Verdana, Geneva, sans-serif":"Verdana, Geneva"},s=["I love you and that's the beginning and end of everything.","I saw that you were perfect, and so I loved you. Then I saw that you were not perfect and I loved you even more.","You know you're in love when you can't fall asleep because reality is finally better than your dreams.","Love is that condition in which the happiness of another person is essential to your own.","The best thing to hold onto in life is each other.","I need you like a heart needs a beat.","I am who I am because of you. You are every reason, every hope, and every dream I've ever had.","If I had a flower for every time I thought of you.. I could walk through my garden forever.","Take my hand, take my whole life too. For I can't help falling in love with you.","If you live to be a hundred, I want to live to be a hundred minus one day so I never have to live without you.","You are the finest, loveliest, tenderest, and most beautiful person I have ever known and even that is an understatement.","In all the world, there is no heart for me like yours. In all the world, there is no love for you like mine."],l=Jt({system:[],google:[],local:[]}),u=G({value:"",text:""}),c=G(["system","google"]),d=G("google"),f=G("mobile"),h=G(!1);function p(S){S.search(/^library-font-/)!==-1?d.value="local":typeof i[S]<"u"?d.value="system":d.value="google"}ft(()=>{let S=a.site_url+"administrator/index.php?option=com_ajax&astroid=google-fonts&template="+a.template_name+"&ts="+Date.now();if(Object.keys(n.field.input.value).forEach(O=>{typeof n.modelValue[O]>"u"&&(n.modelValue[O]=n.field.input.value[O])}),p(n.modelValue.font_face?n.modelValue.font_face:n.field.input.value.font_face),Ut.get(S).then(function(O){O.status===200&&(l.system=O.data.system,l.google=O.data.google,l.local=O.data.local,l.local.length>1&&c.value.push("local"),O.data[d.value].forEach(T=>{n.modelValue.font_face===T.value&&(u.value=T)}))}).catch(function(O){console.log(O)}),n.modelValue.font_color.trim()!=="")try{const O=JSON.parse(n.modelValue.font_color);w.light=O.light,w.dark=O.dark}catch{w.light=n.modelValue.font_color,w.dark=n.modelValue.font_color}document.addEventListener("click",function(O){const T=document.getElementById(n.field.input.id+"-colorpicker"),D=document.getElementById(n.field.input.id+"-colorcircle-light"),k=document.getElementById(n.field.input.id+"-colorcircle-dark");y.value===!0&&T&&D&&!D.contains(O.target)&&!T.contains(O.target)&&(k&&!k.contains(O.target)||parseInt(a.color_mode)===0)&&(y.value=!1)})}),Zt(()=>{u.value.value!==""&&u.value.value!==n.modelValue.font_face&&(p(n.modelValue.font_face),u.value=l[d.value].find(S=>S.value===n.modelValue.font_face))}),vt(u,S=>{S.value!==n.modelValue.font_face&&(n.modelValue.font_face=S.value)});const v=G({font_size:!1,letter_spacing:!1,line_height:!1});function g(S,O){f.value=S,Object.keys(v.value).forEach(T=>{T!==O&&(v.value[T]=!0)})}const y=G(!1),x=G(""),_=G("light"),w=Jt({light:"",dark:""});function A(S){x.value=w[S],_.value=S,y.value=!0}function I(S){try{if(n.modelValue.font_color){let O=JSON.parse(n.modelValue.font_color);O[_.value]=S,n.modelValue.font_color=JSON.stringify(O)}else{let O={light:"",dark:""};O[_.value]=S,n.modelValue.font_color=JSON.stringify(O)}}catch{const T={light:S,dark:S};n.modelValue.font_color=JSON.stringify(T)}}function F(S){const{r:O,g:T,b:D,a:k}=S.rgba;k===0?w[_.value]="":w[_.value]=`rgba(${O}, ${T}, ${D}, ${k})`,I(w[_.value])}function R(S,O){return S=Math.ceil(S),O=Math.floor(O),Math.floor(Math.random()*(O-S+1))+S}function E(){h.value=!h.value}return(S,O)=>(C(),$(ae,null,[n.field.input.options.collapse===!0?(C(),$("div",{key:0,class:Se(["font-collapse mb-4",{active:h.value}]),onClick:he(E,["prevent"])},[d.value==="google"&&typeof l[d.value].find(T=>T.value===u.value.value)<"u"&&u.value.value!==""&&u.value.value!=="__default"&&u.value.value.search(/^library-font-/)===-1?(C(),$("link",{key:0,href:"https://fonts.googleapis.com/css?family="+u.value.value,rel:"stylesheet"},null,8,mk)):Z("",!0),m("div",vk,[m("div",gk,[m("div",{class:"fontName position-relative",style:bt({"font-family":u.value.text,"font-weight":n.modelValue.font_style.find(T=>T==="bold")!==void 0?"bold":n.modelValue.font_weight,"text-transform":n.modelValue.text_transform,"font-size":n.modelValue.font_size[f.value]+n.modelValue.font_size_unit[f.value],"line-height":n.modelValue.line_height[f.value]+n.modelValue.line_height_unit[f.value],"letter-spacing":n.modelValue.letter_spacing[f.value]+n.modelValue.letter_spacing_unit[f.value],"text-decoration":n.modelValue.font_style.find(T=>T==="underline")!==void 0?"underline":"none","font-style":n.modelValue.font_style.find(T=>T==="italic")!==void 0?"italic":"normal"})},[gt(re(u.value.text===""||u.value.text==="Default"?n.field.input.lang.inherit:u.value.text)+" ",1),yk],4),m("div",bk,[m("div",wk,[m("div",_k,re(n.field.input.lang.font_size),1),m("div",xk,re(n.modelValue.font_size[f.value]!==""?n.modelValue.font_size[f.value]+n.modelValue.font_size_unit[f.value]:n.field.input.lang.inherit),1)]),Sk,m("div",Tk,[m("div",Ek,re(n.field.input.lang.line_height),1),m("div",Ck,re(n.modelValue.line_height[f.value]!==""?n.modelValue.line_height[f.value]+n.modelValue.line_height_unit[f.value]:n.field.input.lang.inherit),1)])])])])],10,pk)):Z("",!0),de(kn,{name:"fade"},{default:it(()=>[n.field.input.options.collapse===!0&&h.value===!0||n.field.input.options.collapse===!1?(C(),$("div",{key:0,class:Se(["row g-4","row-cols-lg-"+Math.ceil(n.field.input.options.columns/2)+" row-cols-xl-"+n.field.input.options.columns])},[m("div",null,[m("div",Ok,[n.field.input.options.fontpicker?(C(),$("div",$k,[m("div",Ak,[m("div",kk,[m("label",{for:n.field.input.id+"_font_face_search",class:"form-label m-0"},re(n.field.input.lang.font_family),9,Dk)]),m("div",Nk,[m("div",Ik,[(C(!0),$(ae,null,$e(c.value,T=>(C(),$("span",{key:T},[De(m("input",{type:"radio",class:"btn-check","onUpdate:modelValue":O[0]||(O[0]=D=>d.value=D),id:n.field.input.id+"_font_type_"+T,value:T,autocomplete:"off"},null,8,Pk),[[Eo,d.value]]),m("label",{class:"btn btn-sm btn-outline-primary btn-as-outline-primary text-capitalize",for:n.field.input.id+"_font_type_"+T},re(T),9,Mk)]))),128))])])]),de(K(bA),{list:l[d.value],modelValue:u.value,"onUpdate:modelValue":O[1]||(O[1]=T=>u.value=T),"option-value":"value","option-text":"text",id:n.field.input.id+"_font_face_search",placeholder:n.field.input.lang.inherit},null,8,["list","modelValue","id","placeholder"]),De(m("input",{type:"hidden",id:n.field.input.id+"_font_face",name:n.field.input.name+"[font_face]","onUpdate:modelValue":O[2]||(O[2]=T=>u.value.value=T)},null,8,Lk),[[Et,u.value.value]])])):Z("",!0),n.field.input.options.fontpicker?(C(),$("div",Rk,[m("label",{for:n.field.input.id+"_alt_font_face",class:"form-label"},re(n.field.input.lang.font_family_alt),9,Fk),De(m("select",{id:n.field.input.id+"_alt_font_face",name:n.field.input.name+"[alt_font_face]","onUpdate:modelValue":O[3]||(O[3]=T=>n.modelValue.alt_font_face=T),class:"form-select"},[(C(!0),$(ae,null,$e(n.field.input.options.system_fonts,T=>(C(),$("option",{value:T.value,key:T.value},re(T.text),9,jk))),128))],8,Uk),[[Rn,n.modelValue.alt_font_face]])])):Z("",!0),n.field.input.options.weightpicker?(C(),$("div",Bk,[m("label",{for:n.field.input.id+"_font_weight",class:"form-label"},re(n.field.input.lang.font_weight),9,Vk),De(m("select",{id:n.field.input.id+"_font_weight",name:n.field.input.name+"[font_weight]","onUpdate:modelValue":O[4]||(O[4]=T=>n.modelValue.font_weight=T),class:"form-select"},[(C(),$(ae,null,$e([100,200,300,400,500,600,700,800,900],T=>m("option",{value:T,key:T},re(T),9,qk)),64))],8,Hk),[[Rn,n.modelValue.font_weight]])])):Z("",!0)])]),m("div",null,[m("div",Yk,[n.field.input.options.sizepicker?(C(),$("div",Kk,[de($f,{modelValue:n.modelValue,"onUpdate:modelValue":O[5]||(O[5]=T=>n.modelValue=T),field:n.field,fieldname:"font_size","current-device":f.value,"onUpdate:changeDevice":g,fieldChanged:v.value.font_size,"onUpdate:statusField":O[6]||(O[6]=T=>v.value.font_size=T)},null,8,["modelValue","field","current-device","fieldChanged"])])):Z("",!0),n.field.input.options.letterspacingpicker?(C(),$("div",Wk,[de($f,{modelValue:n.modelValue,"onUpdate:modelValue":O[7]||(O[7]=T=>n.modelValue=T),field:n.field,fieldname:"letter_spacing","current-device":f.value,"onUpdate:changeDevice":g,fieldChanged:v.value.letter_spacing,"onUpdate:statusField":O[8]||(O[8]=T=>v.value.letter_spacing=T)},null,8,["modelValue","field","current-device","fieldChanged"])])):Z("",!0),n.field.input.options.lineheightpicker?(C(),$("div",zk,[de($f,{modelValue:n.modelValue,"onUpdate:modelValue":O[9]||(O[9]=T=>n.modelValue=T),field:n.field,fieldname:"line_height","current-device":f.value,"onUpdate:changeDevice":g,fieldChanged:v.value.line_height,"onUpdate:statusField":O[10]||(O[10]=T=>v.value.line_height=T)},null,8,["modelValue","field","current-device","fieldChanged"])])):Z("",!0)])]),m("div",null,[m("div",Gk,[n.field.input.options.colorpicker?(C(),$("div",Jk,[m("div",Xk,re(n.field.input.lang.font_color),1),m("div",Qk,[m("div",Zk,[m("div",{class:Se({"col-4 text-center":K(a).color_mode==="1","col-12":K(a).color_mode!=="1"})},[m("i",{class:"border astroid-color-picker fas fa-circle fa-3x",id:n.field.input.id+"-colorcircle-light",style:bt({color:w.light}),onClick:O[11]||(O[11]=T=>A("light"))},null,12,eD),K(a).color_mode==="1"?(C(),$("div",tD,"Light")):Z("",!0)],2),K(a).color_mode==="1"?(C(),$("div",nD,aD)):Z("",!0),K(a).color_mode==="1"?(C(),$("div",oD,[m("i",{class:"border astroid-color-picker fas fa-circle fa-3x",id:n.field.input.id+"-colorcircle-dark",style:bt({color:w.dark}),onClick:O[12]||(O[12]=T=>A("dark"))},null,12,iD),sD])):Z("",!0)]),De(m("input",{type:"hidden",name:n.field.input.name+"[font_color]",id:n.field.input.id+"_font_color","onUpdate:modelValue":O[13]||(O[13]=T=>n.modelValue.font_color=T)},null,8,lD),[[Et,n.modelValue.font_color]]),y.value?(C(),Ue(K(zr),{key:0,theme:K(r),color:x.value,"sucker-hide":!0,"sucker-canvas":null,"sucker-area":[],id:n.field.input.id+"-colorpicker",onChangeColor:F},null,8,["theme","color","id"])):Z("",!0)])])):Z("",!0),n.field.input.options.transformpicker?(C(),$("div",uD,[m("label",{for:n.field.input.id+"_text_transform",class:"form-label"},re(n.field.input.lang.text_transform),9,cD),De(m("select",{id:n.field.input.id+"_text_transform",name:n.field.input.name+"[text_transform]","onUpdate:modelValue":O[14]||(O[14]=T=>n.modelValue.text_transform=T),class:"form-select"},[(C(!0),$(ae,null,$e(n.field.input.options.text_transform_options,(T,D)=>(C(),$("option",{value:D,key:D},re(T),9,fD))),128))],8,dD),[[Rn,n.modelValue.text_transform]])])):Z("",!0),n.field.input.options.stylepicker?(C(),$("div",hD,[m("div",pD,re(n.field.input.lang.font_style),1),m("div",mD,[(C(),$(ae,null,$e(o,(T,D)=>m("span",null,[De(m("input",{type:"checkbox",class:"btn-check","onUpdate:modelValue":O[15]||(O[15]=k=>n.modelValue.font_style=k),name:n.field.input.name+"[font_style]",id:n.field.input.id+"_font_style_"+D,value:T.value,autocomplete:"off"},null,8,vD),[[vr,n.modelValue.font_style]]),m("label",{class:"btn btn-sm",for:n.field.input.id+"_font_style_"+D,innerHTML:T.text},null,8,gD)])),64))])])):Z("",!0)])])],2)):Z("",!0)]),_:1}),de(kn,{name:"fade"},{default:it(()=>[n.field.input.options.preview&&n.field.input.options.collapse===!1?(C(),$("div",yD,[d.value==="google"&&typeof l[d.value].find(T=>T.value===u.value.value)<"u"&&u.value.value!==""&&u.value.value!=="__default"&&u.value.value.search(/^library-font-/)===-1?(C(),$("link",{key:0,href:"https://fonts.googleapis.com/css?family="+u.value.value,rel:"stylesheet"},null,8,bD)):Z("",!0),m("div",{class:"card card-default card-body mt-4",style:bt({"font-family":u.value.text,"font-weight":n.modelValue.font_weight,"text-transform":n.modelValue.text_transform,"font-size":n.modelValue.font_size[f.value]+n.modelValue.font_size_unit[f.value],"line-height":n.modelValue.line_height[f.value]+n.modelValue.line_height_unit[f.value],"letter-spacing":n.modelValue.letter_spacing[f.value]+n.modelValue.letter_spacing_unit[f.value]})},[m("p",null,re(s[R(0,s.length-1)]),1),wD,_D],4)])):Z("",!0)]),_:1})],64))}},SD={key:0},TD={class:"d-grid"},ED=m("i",{class:"fas fa-expand me-1"},null,-1),CD=["id"],OD={class:"modal-dialog modal-fullscreen"},$D={class:"modal-content"},AD={class:"modal-header"},kD=["innerHTML"],DD={class:"modal-body"},ND=["id","name","textContent"],ID=["id","name","placeholder","textContent"],PD={__name:"TextArea",props:["modelValue","field"],emits:["update:modelValue"],setup(t,{emit:e}){const n=e,r=t,a=Wt("theme","light"),o={automaticLayout:!0,formatOnType:!0,formatOnPaste:!0,height:"200px"},i=G(""),s=G(!1);function l(u){n("update:modelValue",u)}return ft(()=>{i.value=r.modelValue}),Zt(()=>{i.value!==r.modelValue&&(i.value=r.modelValue)}),(u,c)=>{const d=Fr("vue-monaco-editor");return typeof r.field.input.code<"u"&&r.field.input.code!==""?(C(),$("div",SD,[de(d,{value:i.value,"onUpdate:value":c[0]||(c[0]=f=>i.value=f),theme:K(a)==="light"?"light":"vs-dark",language:r.field.input.code,height:"200px",className:"border",options:o,onChange:l},null,8,["value","theme","language"]),m("div",TD,[m("button",{type:"button",class:"btn btn-sm btn-as btn-primary btn-as-primary rounded-0",onClick:c[1]||(c[1]=he(f=>s.value=!0,["prevent"]))},[ED,gt(" Edit in Fullscreen ")])]),s.value?(C(),$("div",{key:0,class:"modal d-block",id:r.field.input.id+"_full_editor",tabindex:"-1"},[m("div",OD,[m("div",$D,[m("div",AD,[m("h5",{class:"modal-title",innerHTML:r.field.label},null,8,kD),m("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:c[2]||(c[2]=he(f=>s.value=!1,["prevent"]))})]),m("div",DD,[de(d,{value:i.value,"onUpdate:value":c[3]||(c[3]=f=>i.value=f),theme:K(a)==="light"?"light":"vs-dark",language:r.field.input.code,height:"100%",className:"border",options:o,onChange:l},null,8,["value","theme","language"])])])])],8,CD)):Z("",!0),m("textarea",{class:"d-none",id:r.field.input.id,name:r.field.input.name,textContent:re(t.modelValue)},null,8,ND)])):(C(),$("textarea",{key:1,class:"form-control",id:r.field.input.id,name:r.field.input.name,rows:"8",placeholder:r.field.input.hint,textContent:re(t.modelValue),onInput:c[4]||(c[4]=f=>n("update:modelValue",f.target.value))},null,40,ID))}}};var q1={exports:{}};const MD=U1(yE);/**! * Sortable 1.14.0 * @author RubaXa * @author owenm * @license MIT - */function lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Aa(e){for(var t=1;t =0)&&(n[a]=e[a]);return n}function UN(e,t){if(e==null)return{};var n=BN(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a =0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VN(e){return HN(e)||YN(e)||qN(e)||zN()}function HN(e){if(Array.isArray(e))return zp(e)}function YN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qN(e,t){if(e){if(typeof e=="string")return zp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zp(e,t)}}function zp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n "&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function GN(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Wr(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&bd(e,t):bd(e,t))||r&&e===n)return e;if(e===n)break}while(e=GN(e))}return null}var cb=/\s+/g;function en(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(cb," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(cb," ")}}function ze(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function bo(e,t){var n="";if(typeof e=="string")n=e;else do{var r=ze(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function z_(e,t,n){if(e){var r=e.getElementsByTagName(t),a=0,i=r.length;if(n)for(;a=i:o=a<=i,!o)return r;if(r===xa())break;r=Ei(r,!1)}return!1}function As(e,t,n,r){for(var a=0,i=0,o=e.children;i 2&&arguments[2]!==void 0?arguments[2]:{},a=r.evt,i=UN(r,nP);Nu.pluginEvent.bind(ot)(t,n,Aa({dragEl:Ae,parentEl:nn,ghostEl:ft,rootEl:Kt,nextEl:ao,lastDownEl:Xc,cloneEl:rn,cloneHidden:Si,dragStarted:_l,putSortable:Nn,activeSortable:ot.active,originalEvent:a,oldIndex:us,oldDraggableIndex:Ml,newIndex:mr,newDraggableIndex:xi,hideGhostForTarget:Q_,unhideGhostForTarget:Z_,cloneNowHidden:function(){Si=!0},cloneNowShown:function(){Si=!1},dispatchSortableEvent:function(s){Xn({sortable:n,name:s,originalEvent:a})}},i))};function Xn(e){wl(Aa({putSortable:Nn,cloneEl:rn,targetEl:Ae,rootEl:Kt,oldIndex:us,oldDraggableIndex:Ml,newIndex:mr,newDraggableIndex:xi},e))}var Ae,nn,ft,Kt,ao,Xc,rn,Si,us,mr,Ml,xi,bc,Nn,ts=!1,wd=!1,_d=[],to,Vr,Nh,Ph,pb,mb,_l,Xo,Ll,Rl=!1,wc=!1,Jc,Bn,Ih=[],Wp=!1,xd=[],hf=typeof document<"u",_c=Y_,vb=Du||ii?"cssFloat":"float",rP=hf&&!KN&&!Y_&&"draggable"in document.createElement("div"),G_=function(){if(hf){if(ii)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),X_=function(t,n){var r=ze(t),a=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=As(t,0,n),o=As(t,1,n),s=i&&ze(i),l=o&&ze(o),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Gt(i).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Gt(o).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&s.float&&s.float!=="none"){var d=s.float==="left"?"left":"right";return o&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return i&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=a&&r[vb]==="none"||o&&r[vb]==="none"&&u+c>a)?"vertical":"horizontal"},aP=function(t,n,r){var a=r?t.left:t.top,i=r?t.right:t.bottom,o=r?t.width:t.height,s=r?n.left:n.top,l=r?n.right:n.bottom,u=r?n.width:n.height;return a===s||i===l||a+o/2===s+u/2},iP=function(t,n){var r;return _d.some(function(a){var i=a[Vn].options.emptyInsertThreshold;if(!(!i||Bv(a))){var o=Gt(a),s=t>=o.left-i&&t<=o.right+i,l=n>=o.top-i&&n<=o.bottom+i;if(s&&l)return r=a}}),r},J_=function(t){function n(i,o){return function(s,l,u,c){var d=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(i==null&&(o||d))return!0;if(i==null||i===!1)return!1;if(o&&i==="clone")return i;if(typeof i=="function")return n(i(s,l,u,c),o)(s,l,u,c);var f=(o?s:l).options.group.name;return i===!0||typeof i=="string"&&i===f||i.join&&i.indexOf(f)>-1}}var r={},a=t.group;(!a||Gc(a)!="object")&&(a={name:a}),r.name=a.name,r.checkPull=n(a.pull,!0),r.checkPut=n(a.put),r.revertClone=a.revertClone,t.group=r},Q_=function(){!G_&&ft&&ze(ft,"display","none")},Z_=function(){!G_&&ft&&ze(ft,"display","")};hf&&document.addEventListener("click",function(e){if(wd)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),wd=!1,!1},!0);var no=function(t){if(Ae){t=t.touches?t.touches[0]:t;var n=iP(t.clientX,t.clientY);if(n){var r={};for(var a in t)t.hasOwnProperty(a)&&(r[a]=t[a]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[Vn]._onDragOver(r)}}},oP=function(t){Ae&&Ae.parentNode[Vn]._isOutsideThisEl(t.target)};function ot(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Rr({},t),e[Vn]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return X_(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,s){o.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ot.supportPointer!==!1&&"PointerEvent"in window&&!Pl,emptyInsertThreshold:5};Nu.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);J_(t);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=t.forceFallback?!1:rP,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?_t(e,"pointerdown",this._onTapStart):(_t(e,"mousedown",this._onTapStart),_t(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(_t(e,"dragover",this),_t(e,"dragenter",this)),_d.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Rr(this,ZN())}ot.prototype={constructor:ot,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Xo=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Ae):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,a=this.options,i=a.preventOnFilter,o=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=a.filter;if(pP(r),!Ae&&!(/mousedown|pointerdown/.test(o)&&t.button!==0||a.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Pl&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Wr(l,a.draggable,r,!1),!(l&&l.animated)&&Xc!==l)){if(us=an(l),Ml=an(l,a.draggable),typeof c=="function"){if(c.call(this,t,l,this)){Xn({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:r,fromEl:r}),ar("filter",n,{evt:t}),i&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=Wr(u,d.trim(),r,!1),d)return Xn({sortable:n,rootEl:d,name:"filter",targetEl:l,fromEl:r,toEl:r}),ar("filter",n,{evt:t}),!0}),c)){i&&t.cancelable&&t.preventDefault();return}a.handle&&!Wr(u,a.handle,r,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,n,r){var a=this,i=a.el,o=a.options,s=i.ownerDocument,l;if(r&&!Ae&&r.parentNode===i){var u=Gt(r);if(Kt=i,Ae=r,nn=Ae.parentNode,ao=Ae.nextSibling,Xc=r,bc=o.group,ot.dragged=Ae,to={target:Ae,clientX:(n||t).clientX,clientY:(n||t).clientY},pb=to.clientX-u.left,mb=to.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Ae.style["will-change"]="all",l=function(){if(ar("delayEnded",a,{evt:t}),ot.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!ub&&a.nativeDraggable&&(Ae.draggable=!0),a._triggerDragStart(t,n),Xn({sortable:a,name:"choose",originalEvent:t}),en(Ae,o.chosenClass,!0)},o.ignore.split(",").forEach(function(c){z_(Ae,c.trim(),Mh)}),_t(s,"dragover",no),_t(s,"mousemove",no),_t(s,"touchmove",no),_t(s,"mouseup",a._onDrop),_t(s,"touchend",a._onDrop),_t(s,"touchcancel",a._onDrop),ub&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ae.draggable=!0),ar("delayStart",this,{evt:t}),o.delay&&(!o.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Du||ii))){if(ot.eventCanceled){this._onDrop();return}_t(s,"mouseup",a._disableDelayedDrag),_t(s,"touchend",a._disableDelayedDrag),_t(s,"touchcancel",a._disableDelayedDrag),_t(s,"mousemove",a._delayedDragTouchMoveHandler),_t(s,"touchmove",a._delayedDragTouchMoveHandler),o.supportPointer&&_t(s,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(l,o.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ae&&Mh(Ae),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;yt(t,"mouseup",this._disableDelayedDrag),yt(t,"touchend",this._disableDelayedDrag),yt(t,"touchcancel",this._disableDelayedDrag),yt(t,"mousemove",this._delayedDragTouchMoveHandler),yt(t,"touchmove",this._delayedDragTouchMoveHandler),yt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?_t(document,"pointermove",this._onTouchMove):n?_t(document,"touchmove",this._onTouchMove):_t(document,"mousemove",this._onTouchMove):(_t(Ae,"dragend",this),_t(Kt,"dragstart",this._onDragStart));try{document.selection?Qc(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(ts=!1,Kt&&Ae){ar("dragStarted",this,{evt:n}),this.nativeDraggable&&_t(document,"dragover",oP);var r=this.options;!t&&en(Ae,r.dragClass,!1),en(Ae,r.ghostClass,!0),ot.active=this,t&&this._appendGhost(),Xn({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Vr){this._lastX=Vr.clientX,this._lastY=Vr.clientY,Q_();for(var t=document.elementFromPoint(Vr.clientX,Vr.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Vr.clientX,Vr.clientY),t!==n);)n=t;if(Ae.parentNode[Vn]._isOutsideThisEl(t),n)do{if(n[Vn]){var r=void 0;if(r=n[Vn]._onDragOver({clientX:Vr.clientX,clientY:Vr.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Z_()}},_onTouchMove:function(t){if(to){var n=this.options,r=n.fallbackTolerance,a=n.fallbackOffset,i=t.touches?t.touches[0]:t,o=ft&&bo(ft,!0),s=ft&&o&&o.a,l=ft&&o&&o.d,u=_c&&Bn&&fb(Bn),c=(i.clientX-to.clientX+a.x)/(s||1)+(u?u[0]-Ih[0]:0)/(s||1),d=(i.clientY-to.clientY+a.y)/(l||1)+(u?u[1]-Ih[1]:0)/(l||1);if(!ot.active&&!ts){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY)) =0&&(Xn({rootEl:nn,name:"add",toEl:nn,fromEl:Kt,originalEvent:t}),Xn({sortable:this,name:"remove",toEl:nn,originalEvent:t}),Xn({rootEl:nn,name:"sort",toEl:nn,fromEl:Kt,originalEvent:t}),Xn({sortable:this,name:"sort",toEl:nn,originalEvent:t})),Nn&&Nn.save()):mr!==us&&mr>=0&&(Xn({sortable:this,name:"update",toEl:nn,originalEvent:t}),Xn({sortable:this,name:"sort",toEl:nn,originalEvent:t})),ot.active&&((mr==null||mr===-1)&&(mr=us,xi=Ml),Xn({sortable:this,name:"end",toEl:nn,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){ar("nulling",this),Kt=Ae=nn=ft=ao=rn=Xc=Si=to=Vr=_l=mr=xi=us=Ml=Xo=Ll=Nn=bc=ot.dragged=ot.ghost=ot.clone=ot.active=null,xd.forEach(function(t){t.checked=!0}),xd.length=Nh=Ph=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ae&&(this._onDragOver(t),sP(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,a=0,i=r.length,o=this.options;ar.right+a||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+a}function dP(e,t,n,r,a,i,o,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!o){if(s&&Jcc+u*i/2:l d-Jc)return-Ll}else if(l>c+u*(1-a)/2&&l d-u*i/2)?l>c+u/2?1:-1:0}function fP(e){return an(Ae) 1&&(dt.forEach(function(s){i.addAnimationState({target:s,rect:ir?Gt(s):o}),$h(s),s.fromRect=o,r.removeAnimationState(s)}),ir=!1,bP(!this.options.removeCloneOnHide,a))},dragOverCompleted:function(n){var r=n.sortable,a=n.isOwner,i=n.insertion,o=n.activeSortable,s=n.parentEl,l=n.putSortable,u=this.options;if(i){if(a&&o._hideClone(),ul=!1,u.animation&&dt.length>1&&(ir||!a&&!o.options.sort&&!l)){var c=Gt(Vt,!1,!0,!0);dt.forEach(function(f){f!==Vt&&(hb(f,c),s.appendChild(f))}),ir=!0}if(!a)if(ir||Ec(),dt.length>1){var d=Sc;o._showClone(r),o.options.animation&&!Sc&&d&&hr.forEach(function(f){o.addAnimationState({target:f,rect:cl}),f.fromRect=cl,f.thisAnimationDuration=null})}else o._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,a=n.isOwner,i=n.activeSortable;if(dt.forEach(function(s){s.thisAnimationDuration=null}),i.options.animation&&!a&&i.multiDrag.isMultiDrag){cl=Rr({},r);var o=bo(Vt,!0);cl.top-=o.f,cl.left-=o.e}},dragOverAnimationComplete:function(){ir&&(ir=!1,Ec())},drop:function(n){var r=n.originalEvent,a=n.rootEl,i=n.parentEl,o=n.sortable,s=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,c=u||this.sortable;if(r){var d=this.options,f=i.children;if(!Jo)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),en(Vt,d.selectedClass,!~dt.indexOf(Vt)),~dt.indexOf(Vt))dt.splice(dt.indexOf(Vt),1),ll=null,wl({sortable:o,rootEl:a,name:"deselect",targetEl:Vt,originalEvt:r});else{if(dt.push(Vt),wl({sortable:o,rootEl:a,name:"select",targetEl:Vt,originalEvt:r}),r.shiftKey&&ll&&o.el.contains(ll)){var h=an(ll),p=an(Vt);if(~h&&~p&&h!==p){var v,y;for(p>h?(y=h,v=p):(y=p,v=h+1);y 1){var g=Gt(Vt),_=an(Vt,":not(."+this.options.selectedClass+")");if(!ul&&d.animation&&(Vt.thisAnimationDuration=null),c.captureAnimationState(),!ul&&(d.animation&&(Vt.fromRect=g,dt.forEach(function(S){if(S.thisAnimationDuration=null,S!==Vt){var k=ir?Gt(S):g;S.fromRect=k,c.addAnimationState({target:S,rect:k})}})),Ec(),dt.forEach(function(S){f[_]?i.insertBefore(S,f[_]):i.appendChild(S),_++}),l===an(Vt))){var w=!1;dt.forEach(function(S){if(S.sortableIndex!==an(S)){w=!0;return}}),w&&s("update")}dt.forEach(function(S){$h(S)}),c.animateAll()}Hr=c}(a===i||u&&u.lastPutMode!=="clone")&&hr.forEach(function(S){S.parentNode&&S.parentNode.removeChild(S)})}},nullingGlobal:function(){this.isMultiDrag=Jo=!1,hr.length=0},destroyGlobal:function(){this._deselectMultiDrag(),yt(document,"pointerup",this._deselectMultiDrag),yt(document,"mouseup",this._deselectMultiDrag),yt(document,"touchend",this._deselectMultiDrag),yt(document,"keydown",this._checkKeyDown),yt(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Jo<"u"&&Jo)&&Hr===this.sortable&&!(n&&Wr(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;dt.length;){var r=dt[0];en(r,this.options.selectedClass,!1),dt.shift(),wl({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Rr(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[Vn];!r||!r.options.multiDrag||~dt.indexOf(n)||(Hr&&Hr!==r&&(Hr.multiDrag._deselectMultiDrag(),Hr=r),en(n,r.options.selectedClass,!0),dt.push(n))},deselect:function(n){var r=n.parentNode[Vn],a=dt.indexOf(n);!r||!r.options.multiDrag||!~a||(en(n,r.options.selectedClass,!1),dt.splice(a,1))}},eventProperties:function(){var n=this,r=[],a=[];return dt.forEach(function(i){r.push({multiDragElement:i,index:i.sortableIndex});var o;ir&&i!==Vt?o=-1:ir?o=an(i,":not(."+n.options.selectedClass+")"):o=an(i),a.push({multiDragElement:i,index:o})}),{items:VN(dt),clones:[].concat(hr),oldIndicies:r,newIndicies:a}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function bP(e,t){dt.forEach(function(n,r){var a=t.children[n.sortableIndex+(e?Number(r):0)];a?t.insertBefore(n,a):t.appendChild(n)})}function yb(e,t){hr.forEach(function(n,r){var a=t.children[n.sortableIndex+(e?Number(r):0)];a?t.insertBefore(n,a):t.appendChild(n)})}function Ec(){dt.forEach(function(e){e!==Vt&&e.parentNode&&e.parentNode.removeChild(e)})}ot.mount(new mP);ot.mount(Hv,Vv);const wP=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:yP,Sortable:ot,Swap:vP,default:ot},Symbol.toStringTag,{value:"Module"})),_P=F_(wP);(function(e,t){(function(r,a){e.exports=a(FN,_P)})(typeof self<"u"?self:qa,function(n,r){return function(a){var i={};function o(s){if(i[s])return i[s].exports;var l=i[s]={i:s,l:!1,exports:{}};return a[s].call(l.exports,l,l.exports,o),l.l=!0,l.exports}return o.m=a,o.c=i,o.d=function(s,l,u){o.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:u})},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},o.t=function(s,l){if(l&1&&(s=o(s)),l&8||l&4&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),l&2&&typeof s!="string")for(var c in s)o.d(u,c,(function(d){return s[d]}).bind(null,c));return u},o.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(l,"a",l),l},o.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},o.p="",o(o.s="fb15")}({"00ee":function(a,i,o){var s=o("b622"),l=s("toStringTag"),u={};u[l]="z",a.exports=String(u)==="[object z]"},"0366":function(a,i,o){var s=o("1c0b");a.exports=function(l,u,c){if(s(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(d){return l.call(u,d)};case 2:return function(d,f){return l.call(u,d,f)};case 3:return function(d,f,h){return l.call(u,d,f,h)}}return function(){return l.apply(u,arguments)}}},"057f":function(a,i,o){var s=o("fc6a"),l=o("241c").f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(f){try{return l(f)}catch{return c.slice()}};a.exports.f=function(h){return c&&u.call(h)=="[object Window]"?d(h):l(s(h))}},"06cf":function(a,i,o){var s=o("83ab"),l=o("d1e7"),u=o("5c6c"),c=o("fc6a"),d=o("c04e"),f=o("5135"),h=o("0cfb"),p=Object.getOwnPropertyDescriptor;i.f=s?p:function(y,g){if(y=c(y),g=d(g,!0),h)try{return p(y,g)}catch{}if(f(y,g))return u(!l.f.call(y,g),y[g])}},"0cfb":function(a,i,o){var s=o("83ab"),l=o("d039"),u=o("cc12");a.exports=!s&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(a,i,o){var s=o("23e7"),l=o("d58f").left,u=o("a640"),c=o("ae40"),d=u("reduce"),f=c("reduce",{1:0});s({target:"Array",proto:!0,forced:!d||!f},{reduce:function(p){return l(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(a,i,o){var s=o("c6b6"),l=o("9263");a.exports=function(u,c){var d=u.exec;if(typeof d=="function"){var f=d.call(u,c);if(typeof f!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return f}if(s(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}},"159b":function(a,i,o){var s=o("da84"),l=o("fdbc"),u=o("17c2"),c=o("9112");for(var d in l){var f=s[d],h=f&&f.prototype;if(h&&h.forEach!==u)try{c(h,"forEach",u)}catch{h.forEach=u}}},"17c2":function(a,i,o){var s=o("b727").forEach,l=o("a640"),u=o("ae40"),c=l("forEach"),d=u("forEach");a.exports=!c||!d?function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(a,i,o){var s=o("d066");a.exports=s("document","documentElement")},"1c0b":function(a,i){a.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}},"1c7e":function(a,i,o){var s=o("b622"),l=s("iterator"),u=!1;try{var c=0,d={next:function(){return{done:!!c++}},return:function(){u=!0}};d[l]=function(){return this},Array.from(d,function(){throw 2})}catch{}a.exports=function(f,h){if(!h&&!u)return!1;var p=!1;try{var v={};v[l]=function(){return{next:function(){return{done:p=!0}}}},f(v)}catch{}return p}},"1d80":function(a,i){a.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"1dde":function(a,i,o){var s=o("d039"),l=o("b622"),u=o("2d00"),c=l("species");a.exports=function(d){return u>=51||!s(function(){var f=[],h=f.constructor={};return h[c]=function(){return{foo:1}},f[d](Boolean).foo!==1})}},"23cb":function(a,i,o){var s=o("a691"),l=Math.max,u=Math.min;a.exports=function(c,d){var f=s(c);return f<0?l(f+d,0):u(f,d)}},"23e7":function(a,i,o){var s=o("da84"),l=o("06cf").f,u=o("9112"),c=o("6eeb"),d=o("ce4e"),f=o("e893"),h=o("94ca");a.exports=function(p,v){var y=p.target,g=p.global,_=p.stat,w,S,k,P,R,M;if(g?S=s:_?S=s[y]||d(y,{}):S=(s[y]||{}).prototype,S)for(k in v){if(R=v[k],p.noTargetGet?(M=l(S,k),P=M&&M.value):P=S[k],w=h(g?k:y+(_?".":"#")+k,p.forced),!w&&P!==void 0){if(typeof R==typeof P)continue;f(R,P)}(p.sham||P&&P.sham)&&u(R,"sham",!0),c(S,k,R,p)}}},"241c":function(a,i,o){var s=o("ca84"),l=o("7839"),u=l.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(d){return s(d,u)}},"25f0":function(a,i,o){var s=o("6eeb"),l=o("825a"),u=o("d039"),c=o("ad6d"),d="toString",f=RegExp.prototype,h=f[d],p=u(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),v=h.name!=d;(p||v)&&s(RegExp.prototype,d,function(){var g=l(this),_=String(g.source),w=g.flags,S=String(w===void 0&&g instanceof RegExp&&!("flags"in f)?c.call(g):w);return"/"+_+"/"+S},{unsafe:!0})},"2ca0":function(a,i,o){var s=o("23e7"),l=o("06cf").f,u=o("50c4"),c=o("5a34"),d=o("1d80"),f=o("ab13"),h=o("c430"),p="".startsWith,v=Math.min,y=f("startsWith"),g=!h&&!y&&!!function(){var _=l(String.prototype,"startsWith");return _&&!_.writable}();s({target:"String",proto:!0,forced:!g&&!y},{startsWith:function(w){var S=String(d(this));c(w);var k=u(v(arguments.length>1?arguments[1]:void 0,S.length)),P=String(w);return p?p.call(S,P,k):S.slice(k,k+P.length)===P}})},"2d00":function(a,i,o){var s=o("da84"),l=o("342f"),u=s.process,c=u&&u.versions,d=c&&c.v8,f,h;d?(f=d.split("."),h=f[0]+f[1]):l&&(f=l.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=l.match(/Chrome\/(\d+)/),f&&(h=f[1]))),a.exports=h&&+h},"342f":function(a,i,o){var s=o("d066");a.exports=s("navigator","userAgent")||""},"35a1":function(a,i,o){var s=o("f5df"),l=o("3f8c"),u=o("b622"),c=u("iterator");a.exports=function(d){if(d!=null)return d[c]||d["@@iterator"]||l[s(d)]}},"37e8":function(a,i,o){var s=o("83ab"),l=o("9bf2"),u=o("825a"),c=o("df75");a.exports=s?Object.defineProperties:function(f,h){u(f);for(var p=c(h),v=p.length,y=0,g;v>y;)l.f(f,g=p[y++],h[g]);return f}},"3bbe":function(a,i,o){var s=o("861d");a.exports=function(l){if(!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(a,i,o){var s=o("6547").charAt,l=o("69f3"),u=o("7dd0"),c="String Iterator",d=l.set,f=l.getterFor(c);u(String,"String",function(h){d(this,{type:c,string:String(h),index:0})},function(){var p=f(this),v=p.string,y=p.index,g;return y>=v.length?{value:void 0,done:!0}:(g=s(v,y),p.index+=g.length,{value:g,done:!1})})},"3f8c":function(a,i){a.exports={}},4160:function(a,i,o){var s=o("23e7"),l=o("17c2");s({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(a,i,o){var s=o("da84");a.exports=s},"44ad":function(a,i,o){var s=o("d039"),l=o("c6b6"),u="".split;a.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object},"44d2":function(a,i,o){var s=o("b622"),l=o("7c73"),u=o("9bf2"),c=s("unscopables"),d=Array.prototype;d[c]==null&&u.f(d,c,{configurable:!0,value:l(null)}),a.exports=function(f){d[c][f]=!0}},"44e7":function(a,i,o){var s=o("861d"),l=o("c6b6"),u=o("b622"),c=u("match");a.exports=function(d){var f;return s(d)&&((f=d[c])!==void 0?!!f:l(d)=="RegExp")}},4930:function(a,i,o){var s=o("d039");a.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},"4d64":function(a,i,o){var s=o("fc6a"),l=o("50c4"),u=o("23cb"),c=function(d){return function(f,h,p){var v=s(f),y=l(v.length),g=u(p,y),_;if(d&&h!=h){for(;y>g;)if(_=v[g++],_!=_)return!0}else for(;y>g;g++)if((d||g in v)&&v[g]===h)return d||g||0;return!d&&-1}};a.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(a,i,o){var s=o("23e7"),l=o("b727").filter,u=o("1dde"),c=o("ae40"),d=u("filter"),f=c("filter");s({target:"Array",proto:!0,forced:!d||!f},{filter:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(a,i,o){var s=o("0366"),l=o("7b0b"),u=o("9bdd"),c=o("e95a"),d=o("50c4"),f=o("8418"),h=o("35a1");a.exports=function(v){var y=l(v),g=typeof this=="function"?this:Array,_=arguments.length,w=_>1?arguments[1]:void 0,S=w!==void 0,k=h(y),P=0,R,M,x,E,A,O;if(S&&(w=s(w,_>2?arguments[2]:void 0,2)),k!=null&&!(g==Array&&c(k)))for(E=k.call(y),A=E.next,M=new g;!(x=A.call(E)).done;P++)O=S?u(E,w,[x.value,P],!0):x.value,f(M,P,O);else for(R=d(y.length),M=new g(R);R>P;P++)O=S?w(y[P],P):y[P],f(M,P,O);return M.length=P,M}},"4fad":function(a,i,o){var s=o("23e7"),l=o("6f53").entries;s({target:"Object",stat:!0},{entries:function(c){return l(c)}})},"50c4":function(a,i,o){var s=o("a691"),l=Math.min;a.exports=function(u){return u>0?l(s(u),9007199254740991):0}},5135:function(a,i){var o={}.hasOwnProperty;a.exports=function(s,l){return o.call(s,l)}},5319:function(a,i,o){var s=o("d784"),l=o("825a"),u=o("7b0b"),c=o("50c4"),d=o("a691"),f=o("1d80"),h=o("8aa5"),p=o("14c3"),v=Math.max,y=Math.min,g=Math.floor,_=/\$([$&'`]|\d\d?|<[^>]*>)/g,w=/\$([$&'`]|\d\d?)/g,S=function(k){return k===void 0?k:String(k)};s("replace",2,function(k,P,R,M){var x=M.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,E=M.REPLACE_KEEPS_$0,A=x?"$":"$0";return[function($,j){var V=f(this),ee=$==null?void 0:$[k];return ee!==void 0?ee.call($,V,j):P.call(String(V),$,j)},function(D,$){if(!x&&E||typeof $=="string"&&$.indexOf(A)===-1){var j=R(P,D,this,$);if(j.done)return j.value}var V=l(D),ee=String(this),N=typeof $=="function";N||($=String($));var H=V.global;if(H){var I=V.unicode;V.lastIndex=0}for(var X=[];;){var J=p(V,ee);if(J===null||(X.push(J),!H))break;var B=String(J[0]);B===""&&(V.lastIndex=h(ee,c(V.lastIndex),I))}for(var oe="",he=0,fe=0;fe =he&&(oe+=ee.slice(he,we)+q,he=we+Ce.length)}return oe+ee.slice(he)}];function O(D,$,j,V,ee,N){var H=j+D.length,I=V.length,X=w;return ee!==void 0&&(ee=u(ee),X=_),P.call(N,X,function(J,B){var oe;switch(B.charAt(0)){case"$":return"$";case"&":return D;case"`":return $.slice(0,j);case"'":return $.slice(H);case"<":oe=ee[B.slice(1,-1)];break;default:var he=+B;if(he===0)return J;if(he>I){var fe=g(he/10);return fe===0?J:fe<=I?V[fe-1]===void 0?B.charAt(1):V[fe-1]+B.charAt(1):J}oe=V[he-1]}return oe===void 0?"":oe})}})},5692:function(a,i,o){var s=o("c430"),l=o("c6cd");(a.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(a,i,o){var s=o("d066"),l=o("241c"),u=o("7418"),c=o("825a");a.exports=s("Reflect","ownKeys")||function(f){var h=l.f(c(f)),p=u.f;return p?h.concat(p(f)):h}},"5a34":function(a,i,o){var s=o("44e7");a.exports=function(l){if(s(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(a,i){a.exports=function(o,s){return{enumerable:!(o&1),configurable:!(o&2),writable:!(o&4),value:s}}},"5db7":function(a,i,o){var s=o("23e7"),l=o("a2bf"),u=o("7b0b"),c=o("50c4"),d=o("1c0b"),f=o("65f0");s({target:"Array",proto:!0},{flatMap:function(p){var v=u(this),y=c(v.length),g;return d(p),g=f(v,0),g.length=l(g,v,v,y,0,1,p,arguments.length>1?arguments[1]:void 0),g}})},6547:function(a,i,o){var s=o("a691"),l=o("1d80"),u=function(c){return function(d,f){var h=String(l(d)),p=s(f),v=h.length,y,g;return p<0||p>=v?c?"":void 0:(y=h.charCodeAt(p),y<55296||y>56319||p+1===v||(g=h.charCodeAt(p+1))<56320||g>57343?c?h.charAt(p):y:c?h.slice(p,p+2):(y-55296<<10)+(g-56320)+65536)}};a.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(a,i,o){var s=o("861d"),l=o("e8b5"),u=o("b622"),c=u("species");a.exports=function(d,f){var h;return l(d)&&(h=d.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:s(h)&&(h=h[c],h===null&&(h=void 0))),new(h===void 0?Array:h)(f===0?0:f)}},"69f3":function(a,i,o){var s=o("7f9a"),l=o("da84"),u=o("861d"),c=o("9112"),d=o("5135"),f=o("f772"),h=o("d012"),p=l.WeakMap,v,y,g,_=function(x){return g(x)?y(x):v(x,{})},w=function(x){return function(E){var A;if(!u(E)||(A=y(E)).type!==x)throw TypeError("Incompatible receiver, "+x+" required");return A}};if(s){var S=new p,k=S.get,P=S.has,R=S.set;v=function(x,E){return R.call(S,x,E),E},y=function(x){return k.call(S,x)||{}},g=function(x){return P.call(S,x)}}else{var M=f("state");h[M]=!0,v=function(x,E){return c(x,M,E),E},y=function(x){return d(x,M)?x[M]:{}},g=function(x){return d(x,M)}}a.exports={set:v,get:y,has:g,enforce:_,getterFor:w}},"6eeb":function(a,i,o){var s=o("da84"),l=o("9112"),u=o("5135"),c=o("ce4e"),d=o("8925"),f=o("69f3"),h=f.get,p=f.enforce,v=String(String).split("String");(a.exports=function(y,g,_,w){var S=w?!!w.unsafe:!1,k=w?!!w.enumerable:!1,P=w?!!w.noTargetGet:!1;if(typeof _=="function"&&(typeof g=="string"&&!u(_,"name")&&l(_,"name",g),p(_).source=v.join(typeof g=="string"?g:"")),y===s){k?y[g]=_:c(g,_);return}else S?!P&&y[g]&&(k=!0):delete y[g];k?y[g]=_:l(y,g,_)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||d(this)})},"6f53":function(a,i,o){var s=o("83ab"),l=o("df75"),u=o("fc6a"),c=o("d1e7").f,d=function(f){return function(h){for(var p=u(h),v=l(p),y=v.length,g=0,_=[],w;y>g;)w=v[g++],(!s||c.call(p,w))&&_.push(f?[w,p[w]]:p[w]);return _}};a.exports={entries:d(!0),values:d(!1)}},"73d9":function(a,i,o){var s=o("44d2");s("flatMap")},7418:function(a,i){i.f=Object.getOwnPropertySymbols},"746f":function(a,i,o){var s=o("428f"),l=o("5135"),u=o("e538"),c=o("9bf2").f;a.exports=function(d){var f=s.Symbol||(s.Symbol={});l(f,d)||c(f,d,{value:u.f(d)})}},7839:function(a,i){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(a,i,o){var s=o("1d80");a.exports=function(l){return Object(s(l))}},"7c73":function(a,i,o){var s=o("825a"),l=o("37e8"),u=o("7839"),c=o("d012"),d=o("1be4"),f=o("cc12"),h=o("f772"),p=">",v="<",y="prototype",g="script",_=h("IE_PROTO"),w=function(){},S=function(x){return v+g+p+x+v+"/"+g+p},k=function(x){x.write(S("")),x.close();var E=x.parentWindow.Object;return x=null,E},P=function(){var x=f("iframe"),E="java"+g+":",A;return x.style.display="none",d.appendChild(x),x.src=String(E),A=x.contentWindow.document,A.open(),A.write(S("document.F=Object")),A.close(),A.F},R,M=function(){try{R=document.domain&&new ActiveXObject("htmlfile")}catch{}M=R?k(R):P();for(var x=u.length;x--;)delete M[y][u[x]];return M()};c[_]=!0,a.exports=Object.create||function(E,A){var O;return E!==null?(w[y]=s(E),O=new w,w[y]=null,O[_]=E):O=M(),A===void 0?O:l(O,A)}},"7dd0":function(a,i,o){var s=o("23e7"),l=o("9ed3"),u=o("e163"),c=o("d2bb"),d=o("d44e"),f=o("9112"),h=o("6eeb"),p=o("b622"),v=o("c430"),y=o("3f8c"),g=o("ae93"),_=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,S=p("iterator"),k="keys",P="values",R="entries",M=function(){return this};a.exports=function(x,E,A,O,D,$,j){l(A,E,O);var V=function(fe){if(fe===D&&X)return X;if(!w&&fe in H)return H[fe];switch(fe){case k:return function(){return new A(this,fe)};case P:return function(){return new A(this,fe)};case R:return function(){return new A(this,fe)}}return function(){return new A(this)}},ee=E+" Iterator",N=!1,H=x.prototype,I=H[S]||H["@@iterator"]||D&&H[D],X=!w&&I||V(D),J=E=="Array"&&H.entries||I,B,oe,he;if(J&&(B=u(J.call(new x)),_!==Object.prototype&&B.next&&(!v&&u(B)!==_&&(c?c(B,_):typeof B[S]!="function"&&f(B,S,M)),d(B,ee,!0,!0),v&&(y[ee]=M))),D==P&&I&&I.name!==P&&(N=!0,X=function(){return I.call(this)}),(!v||j)&&H[S]!==X&&f(H,S,X),y[E]=X,D)if(oe={values:V(P),keys:$?X:V(k),entries:V(R)},j)for(he in oe)(w||N||!(he in H))&&h(H,he,oe[he]);else s({target:E,proto:!0,forced:w||N},oe);return oe}},"7f9a":function(a,i,o){var s=o("da84"),l=o("8925"),u=s.WeakMap;a.exports=typeof u=="function"&&/native code/.test(l(u))},"825a":function(a,i,o){var s=o("861d");a.exports=function(l){if(!s(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(a,i,o){var s=o("d039");a.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(a,i,o){var s=o("c04e"),l=o("9bf2"),u=o("5c6c");a.exports=function(c,d,f){var h=s(d);h in c?l.f(c,h,u(0,f)):c[h]=f}},"861d":function(a,i){a.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},8875:function(a,i,o){var s,l,u;(function(c,d){l=[],s=d,u=typeof s=="function"?s.apply(i,l):s,u!==void 0&&(a.exports=u)})(typeof self<"u"?self:this,function(){function c(){var d=Object.getOwnPropertyDescriptor(document,"currentScript");if(!d&&"currentScript"in document&&document.currentScript||d&&d.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(R){var f=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,p=f.exec(R.stack)||h.exec(R.stack),v=p&&p[1]||!1,y=p&&p[2]||!1,g=document.location.href.replace(document.location.hash,""),_,w,S,k=document.getElementsByTagName("script");v===g&&(_=document.documentElement.outerHTML,w=new RegExp("(?:[^\\n]+?\\n){0,"+(y-2)+"}[^<]* - - - - - - + + + + + + + Vite App + + + + + + + + + + + \ No newline at end of file diff --git a/assets/vendor/manager/src/App.vue b/assets/vendor/manager/src/App.vue index 29ec018c..9afbc2ec 100644 --- a/assets/vendor/manager/src/App.vue +++ b/assets/vendor/manager/src/App.vue @@ -1,12 +1,9 @@ + ++ + ++ + + \ No newline at end of file diff --git a/assets/vendor/manager/src/components/helpers/ResponsiveToggle.vue b/assets/vendor/manager/src/components/helpers/ResponsiveToggle.vue new file mode 100644 index 00000000..530071d6 --- /dev/null +++ b/assets/vendor/manager/src/components/helpers/ResponsiveToggle.vue @@ -0,0 +1,46 @@ + + +++emit('update:modelValue', data)" + :options="options" + :icons="icons" + :fieldChanged="props.fieldChanged" + @update:statusField="data => emit('update:statusField', data)" + /> + \ No newline at end of file diff --git a/assets/vendor/manager/src/components/helpers/SelectBox.vue b/assets/vendor/manager/src/components/helpers/SelectBox.vue new file mode 100644 index 00000000..764ac4b6 --- /dev/null +++ b/assets/vendor/manager/src/components/helpers/SelectBox.vue @@ -0,0 +1,38 @@ + + ++ + ++ \ No newline at end of file diff --git a/assets/vendor/manager/src/components/helpers/Spacing.vue b/assets/vendor/manager/src/components/helpers/Spacing.vue index b57fc8cb..a86f3852 100644 --- a/assets/vendor/manager/src/components/helpers/Spacing.vue +++ b/assets/vendor/manager/src/components/helpers/Spacing.vue @@ -1,12 +1,28 @@ -+-@@ -73,14 +97,8 @@ function updateUnit() {--+- - - --+ diff --git a/assets/vendor/manager/src/components/helpers/SwitchBox.vue b/assets/vendor/manager/src/components/helpers/SwitchBox.vue new file mode 100644 index 00000000..9923f54e --- /dev/null +++ b/assets/vendor/manager/src/components/helpers/SwitchBox.vue @@ -0,0 +1,32 @@ + + ++ + ++ \ No newline at end of file diff --git a/assets/vendor/manager/src/components/helpers/TypoResponsive.vue b/assets/vendor/manager/src/components/helpers/TypoResponsive.vue index 78b0019e..ada9b7bd 100644 --- a/assets/vendor/manager/src/components/helpers/TypoResponsive.vue +++ b/assets/vendor/manager/src/components/helpers/TypoResponsive.vue @@ -1,11 +1,20 @@ -+{{ props.field.input.lang[props.fieldname] }}---+- - - --+changeDevice(device)" + :fieldChanged="props.fieldChanged" + @update:statusField="data => emit('update:statusField', data)" + /> diff --git a/assets/vendor/manager/src/components/helpers/Typography.vue b/assets/vendor/manager/src/components/helpers/Typography.vue index 32e69abe..fce315b6 100644 --- a/assets/vendor/manager/src/components/helpers/Typography.vue +++ b/assets/vendor/manager/src/components/helpers/Typography.vue @@ -58,7 +58,8 @@ const fontSelected= ref({ }); const fonttypes = ref(['system','google']) const font_type = ref('google'); -const currentDevice = ref('desktop'); +const currentDevice = ref('mobile'); +const collapse = ref(false); function getFontType(font_face) { if (font_face.search(/^library-font-/) !== -1) { @@ -149,8 +150,18 @@ watch(fontSelected, (newFont) => { } }) -function changeDeviceStatus(device) { +const updateStatus = ref({ + font_size: false, + letter_spacing: false, + line_height: false +}); +function changeDeviceStatus(device, fieldname) { currentDevice.value = device; + Object.keys(updateStatus.value).forEach(key => { + if (key !== fieldname) { + updateStatus.value[key] = true; + } + }); } const _showColorPicker = ref(false); @@ -199,9 +210,47 @@ function getRandomInt(min, max) { max = Math.floor(max); return Math.floor(Math.random() * (max - min + 1)) + min; } + +function toggleCollapse() { + collapse.value = !collapse.value; +} --++ +++++++ {{ fontSelected.text === '' || fontSelected.text === 'Default' ? props.field.input.lang.inherit : fontSelected.text }} +++++++{{ props.field.input.lang.font_size }}+{{ props.modelValue['font_size'][currentDevice] !== '' ? props.modelValue['font_size'][currentDevice]+props.modelValue['font_size_unit'][currentDevice] : props.field.input.lang.inherit }}+/+++{{ props.field.input.lang.line_height }}+{{ props.modelValue['line_height'][currentDevice] !== '' ? props.modelValue['line_height'][currentDevice]+props.modelValue['line_height_unit'][currentDevice] : props.field.input.lang.inherit }}++ @@ -322,7 +380,8 @@ function getRandomInt(min, max) {@@ -251,7 +300,10 @@ function getRandomInt(min, max) { :field="props.field" :fieldname="'font_size'" :current-device="currentDevice" - @update:change-device="changeDeviceStatus" /> + @update:change-device="changeDeviceStatus" + :fieldChanged="updateStatus.font_size" + @update:statusField="status => (updateStatus.font_size = status)" + />+ @update:change-device="changeDeviceStatus" + :fieldChanged="updateStatus.letter_spacing" + @update:statusField="status => (updateStatus.letter_spacing = status)" + /> + @update:change-device="changeDeviceStatus" + :fieldChanged="updateStatus.line_height" + @update:statusField="status => (updateStatus.line_height = status)" + /> ++ \ No newline at end of file diff --git a/assets/vendor/manager/src/main.js b/assets/vendor/manager/src/main.js index 0cdf9557..80eba0cf 100644 --- a/assets/vendor/manager/src/main.js +++ b/assets/vendor/manager/src/main.js @@ -5,7 +5,6 @@ import Module from './Module.vue'; import "vue-search-select/dist/VueSearchSelect.css" import 'vue-color-kit/dist/vue-color-kit.css' import 'quill/dist/quill.snow.css' -import { FontAwesomeIcon, FontAwesomeLayers, FontAwesomeLayersText } from '@fortawesome/vue-fontawesome' import { install as VueMonacoEditorPlugin } from '@guolao/vue-monaco-editor' let astroid_app = document.getElementById('astroid-app'); let as_widgets = document.querySelectorAll('.as-article-widget-data'); @@ -19,9 +18,6 @@ if (typeof(astroid_app) !== 'undefined' && astroid_app !== null) vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.36.0/min/vs' }, }); - app.component('font-awesome-icon', FontAwesomeIcon); - app.component('font-awesome-layers', FontAwesomeLayers); - app.component('font-awesome-layers-text', FontAwesomeLayersText); app.mount('#astroid-app') } else if (as_widgets.length > 0) { @@ -35,13 +31,10 @@ else if (as_widgets.length > 0) { vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.36.0/min/vs' }, }); - app.component('font-awesome-icon', FontAwesomeIcon); - app.component('font-awesome-layers', FontAwesomeLayers); - app.component('font-awesome-layers-text', FontAwesomeLayersText); app.mount('#'+as_widget.id); }); } -if (typeof(as_module) !== 'undefined' && as_module !== null) +else if (typeof(as_module) !== 'undefined' && as_module !== null) { const app = createApp(Module); app.use(VueMonacoEditorPlugin, { diff --git a/astroid.xml b/astroid.xml index 565a922d..daf5cf66 100644 --- a/astroid.xml +++ b/astroid.xml @@ -3,8 +3,8 @@+0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20Astroid Framework astroid Astroid Framework Team -December 2024 -3.1.9 +Jan 2025 +3.1.10-rc5 https://astroidframe.work/ Copyright (C) 2024 TemPlaza, Inc. All rights reserved. GNU General Public License version 3 or later; see LICENSE.txt diff --git a/framework/elements/articles/articles.php b/framework/elements/articles/articles.php index 41fd6d1d..300e50ac 100644 --- a/framework/elements/articles/articles.php +++ b/framework/elements/articles/articles.php @@ -189,6 +189,7 @@ // Image Options $layout = $params->get('layout', 'classic'); +$thumbnail_only = $params->get('thumbnail_only', 0); $enable_image_cover = $params->get('enable_image_cover', 0); $min_height = $params->get('min_height', 500); $height = $params->get('height', ''); @@ -256,63 +257,67 @@ foreach ($items as $key => $item) { $link = RouteHelper::getArticleRoute($item->slug, $item->catid, $item->language); $media = ''; - switch ($item->post_format) { - case 'gallery': - $gallery = (array) $item->params->get('astroid_article_gallery_items', array()); - if (count($gallery)) { - $has_gallery = true; - $media = '