+ Disclaimer: This page uses the UIkit frontend
+ framework for styling. Consenty will work without any external
+ dependencies!
+
+
+
+
+
+
+ allowed
+ revoked
+
+
+
+
+ Note: Try reloading the page and see that the state persists!
+
+
+
+
+
Script Example
+
+
+ The example above has one caveat: If you put a script-tag inside one
+ of the <span>-tags that script would either immediately get
+ executed or if using a src-attribute load the script from the given
+ source. The idea of consenty is to prevent this, so you can simply
+ use the <template>-tag instead:
+
+
+
+
+
+
+ check your console for this example
+
+
+
+
+
+
+
+
+
+
+
+
YouTube Inline Example
+
+
+
+
YouTube Modal Example
+
+
+
+
IF on multiple elements
+
+
+
+ one
+ two
+ three
+
+
+
+
+
Callbacks
+
+
Please check the console of your browser dev tools!
`))},async connected(){const t=S(c(this.$el,this.marginProp));await O.start(c(this.$el,this.startProps),{opacity:1,[this.marginProp]:t}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(t){t.target.closest('a[href="#"],a[href=""]')&&t.preventDefault(),this.close()},[he](){this.timer&&clearTimeout(this.timer)},[Me](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(t){const e=i=>{const s=P(i);g(i,"close",[this]),at(i),s!=null&&s.hasChildNodes()||at(s)};this.timer&&clearTimeout(this.timer),t||await O.start(this.$el,this.startProps),e(this.$el)}}};function Xa(t){t.notification.closeAll=function(e,i){kt(document.body,s=>{const n=t.getComponent(s,"notification");n&&(!e||e===n.group)&&n.close(i)})}}var Si={props:{media:Boolean},data:{media:!1},connected(){const t=Ja(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,g(this.$el,Ht("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=b(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function Ja(t,e){if(N(t)){if(dt(t,"@"))t=S(c(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&vt(t)?`(min-width: ${t}px)`:""}function io(t){return Math.ceil(Math.max(0,...z("[stroke]",t).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const Ii={x:Ci,y:Ci,rotate:Ci,scale:Ci,color:Es,backgroundColor:Es,borderColor:Es,blur:Jt,hue:Jt,fopacity:Jt,grayscale:Jt,invert:Jt,saturate:Jt,sepia:Jt,opacity:Za,stroke:Qa,bgx:oo,bgy:oo},{keys:so}=Object;var no={mixins:[Si],props:ho(so(Ii),"list"),data:ho(so(Ii),void 0),computed:{props(t,e){const i={};for(const n in t)n in Ii&&!G(t[n])&&(i[n]=t[n].slice());const s={};for(const n in i)s[n]=Ii[n](n,e,i[n],i);return s}},events:{load(){this.$emit()}},methods:{reset(){for(const t in this.getCss(0))c(this.$el,t,"")},getCss(t){const e={};for(const i in this.props)this.props[i](e,tt(t));return e.willChange=Object.keys(e).map(ri).join(","),e}}};function Ci(t,e,i){let s=Ti(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",n;return t==="x"||t==="y"?(t=`translate${St(t)}`,n=o=>S(S(o).toFixed(s==="px"?0:6))):t==="scale"&&(s="",n=o=>{var r;return Ti([o])?U(o,"width",e,!0)/e[`offset${(r=o.endsWith)!=null&&r.call(o,"vh")?"Height":"Width"}`]:S(o)}),i.length===1&&i.unshift(t==="scale"?1:0),i=pe(i,n),(o,r)=>{o.transform=`${o.transform||""} ${t}(${Ge(i,r)}${s})`}}function Es(t,e,i){return i.length===1&&i.unshift(Xe(e,t,"")),i=pe(i,s=>Ka(e,s)),(s,n)=>{const[o,r,a]=lo(i,n),l=o.map((h,u)=>(h+=a*(r[u]-h),u===3?S(h):parseInt(h,10))).join(",");s[t]=`rgba(${l})`}}function Ka(t,e){return Xe(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(S)}function Jt(t,e,i){i.length===1&&i.unshift(0);const s=Ti(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=pe(i),(n,o)=>{const r=Ge(i,o);n.filter=`${n.filter||""} ${t}(${r+s})`}}function Za(t,e,i){return i.length===1&&i.unshift(Xe(e,t,"")),i=pe(i),(s,n)=>{s[t]=Ge(i,n)}}function Qa(t,e,i){i.length===1&&i.unshift(0);const s=Ti(i),n=io(e);return i=pe(i.reverse(),o=>(o=S(o),s==="%"?o*n/100:o)),i.some(([o])=>o)?(c(e,"strokeDasharray",n),(o,r)=>{o.strokeDashoffset=Ge(i,r)}):A}function oo(t,e,i,s){i.length===1&&i.unshift(0);const n=t==="bgy"?"height":"width";s[t]=pe(i,a=>U(a,n,e));const o=["bgx","bgy"].filter(a=>a in s);if(o.length===2&&t==="bgx")return A;if(Xe(e,"backgroundSize","")==="cover")return tl(t,e,i,s);const r={};for(const a of o)r[a]=ro(e,a);return ao(o,r,s)}function tl(t,e,i,s){const n=el(e);if(!n.width)return A;const o={width:e.offsetWidth,height:e.offsetHeight},r=["bgx","bgy"].filter(u=>u in s),a={};for(const u of r){const d=s[u].map(([M])=>M),f=Math.min(...d),v=Math.max(...d),x=d.indexOf(f){h(u,d),u.backgroundSize=`${l.width}px ${l.height}px`,u.backgroundRepeat="no-repeat"}}function ro(t,e){return Xe(t,`background-position-${e.substr(-1)}`,"")}function ao(t,e,i){return function(s,n){for(const o of t){const r=Ge(i[o],n);s[`background-position-${o.substr(-1)}`]=`calc(${e[o]} + ${r}px)`}}}const Ei={};function el(t){const e=c(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(Ei[e])return Ei[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth)?(i.onload=()=>{Ei[e]=Ts(i),g(t,Ht("load",!1))},Ts(i)):Ei[e]=Ts(i)}function Ts(t){return{width:t.naturalWidth,height:t.naturalHeight}}function pe(t,e=S){const i=[],{length:s}=t;let n=0;for(let o=0;o0;u--)i[o-u][1]=l+h*(n-u+1);n=0}}return i}function lo(t,e){const i=bt(t.slice(1),([,s])=>e<=s)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function Ge(t,e){const[i,s,n]=lo(t,e);return i+Math.abs(i-s)*n*(i(i[s]=e,i),{})}function co(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var sl={mixins:[no],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target:({target:t},e)=>uo(t&&J(t,e)||e),start({start:t}){return U(t,"height",this.target,!0)},end({end:t,viewport:e}){return U(t||(e=(1-e)*100)&&`${e}vh+${e}%`,"height",this.target,!0)}},observe:[gs(),Le({target:({target:t})=>t}),ct({target:({$el:t,target:e})=>[t,e,Ot(e,!0)]})],update:{read({percent:t},e){if(e.has("scroll")||(t=!1),!q(this.$el))return!1;if(!this.matchMedia)return;const i=t;return t=co(wi(this.target,this.start,this.end),this.easing),{percent:t,style:i===t?!1:this.getCss(t)}},write({style:t}){if(!this.matchMedia){this.reset();return}t&&c(this.$el,t)},events:["scroll","resize"]}};function uo(t){return t?"offsetTop"in t?t:uo(P(t)):document.documentElement}var fo={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[ct({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),Le({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&J(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=U(this.parallaxStart,"height",t,!0),i=U(this.parallaxEnd,"height",t,!0),s=co(wi(t,e,i),this.parallaxEasing),[n,o]=this.getIndexAt(s),r=this.getValidIndex(n+Math.ceil(o)),a=this.slides[n],l=this.slides[r],{triggerShow:h,triggerShown:u,triggerHide:d,triggerHidden:f}=nl(this);if(~this.prevIndex)for(const x of new Set([this.index,this.prevIndex]))m([r,n],x)||(d(this.slides[x]),f(this.slides[x]));const v=this.prevIndex!==n||this.index!==r;this.dir=1,this.prevIndex=n,this.index=r,a!==l&&d(a),h(l),v&&u(a),this._translate(a===l?1:o,a,l)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function nl(t){const{clsSlideActive:e,clsEnter:i,clsLeave:s}=t;return{triggerShow:n,triggerShown:o,triggerHide:r,triggerHidden:a};function n(l){y(l,s)&&(r(l),a(l)),y(l,e)||(g(l,"beforeitemshow",[t]),g(l,"itemshow",[t]))}function o(l){y(l,i)&&g(l,"itemshown",[t])}function r(l){y(l,e)||n(l),y(l,i)&&o(l),y(l,s)||(g(l,"beforeitemhide",[t]),g(l,"itemhide",[t]))}function a(l){y(l,s)&&g(l,"itemhidden",[t])}}var po={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},go={observe:He({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function ol(t,e,i,{center:s,easing:n,list:o}){const r=t?Je(t,o,s):Je(e,o,s)+w(e).width*i,a=e?Je(e,o,s):r+w(t).width*i*(V?-1:1);let l;return{dir:i,show(h,u=0,d){const f=d?"linear":n;return h-=Math.round(h*tt(u,-1,1)),this.translate(u),u=t?u:tt(u,0,1),Ps(this.getItemIn(),"itemin",{percent:u,duration:h,timing:f,dir:i}),t&&Ps(this.getItemIn(!0),"itemout",{percent:1-u,duration:h,timing:f,dir:i}),new Promise(v=>{l||(l=v),O.start(o,{transform:W(-a*(V?-1:1),"px")},h,f).then(l,A)})},cancel(){return O.cancel(o)},reset(){c(o,"transform","")},async forward(h,u=this.percent()){return await this.cancel(),this.show(h,u,!0)},translate(h){const u=this.getDistance()*i*(V?-1:1);c(o,"transform",W(tt(-a+(u-u*h),-ge(o),w(o).width)*(V?-1:1),"px"));const d=this.getActives(),f=this.getItemIn(),v=this.getItemIn(!0);h=t?tt(h,-1,1):0;for(const x of B(o)){const C=m(d,x),M=x===f,wt=x===v,Ze=M||!wt&&(C||i*(V?-1:1)===-1^Pi(x,o)>Pi(t||e));Ps(x,`itemtranslate${Ze?"in":"out"}`,{dir:i,percent:wt?1-h:M?h:C?1:0})}},percent(){return Math.abs((c(o,"transform").split(",")[4]*(V?-1:1)+r)/(a-r))},getDistance(){return Math.abs(a-r)},getItemIn(h=!1){let u=this.getActives(),d=vo(o,Je(e||t,o,s));if(h){const f=u;u=d,d=f}return d[bt(d,f=>!m(u,f))]},getActives(){return vo(o,Je(t||e,o,s))}}}function Je(t,e,i){const s=Pi(t,e);return i?s-rl(t,e):Math.min(s,mo(e))}function mo(t){return Math.max(0,ge(t)-w(t).width)}function ge(t,e){return zt(B(t).slice(0,e),i=>w(i).width)}function rl(t,e){return w(e).width/2-w(t).width/2}function Pi(t,e){return t&&(is(t).left+(V?w(t).width-w(e).width:0))*(V?-1:1)||0}function vo(t,e){e-=1;const i=w(t).width,s=e+i+2;return B(t).filter(n=>{const o=Pi(n,t),r=o+Math.min(w(n).width,i);return o>=e&&r<=s})}function Ps(t,e,i){g(t,Ht(e,!1,!1,i))}var al={mixins:[st,Jn,po,fo,go],props:{center:Boolean,sets:Boolean,active:String},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",active:"all",Transitioner:ol},computed:{finite({finite:t}){return t||ll(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return Bt(this.sets);let t=0;const e=mo(this.list),i=bt(this.slides,s=>{if(t>=e)return!0;t+=w(s).width});return~i?i:this.length-1},sets({sets:t}){if(!t||this.parallax)return;let e=0;const i=[],s=w(this.list).width;for(let n=0;ns&&(e=0),this.center?es/2&&(i.push(+n),e=s/2-o/2):e===0&&i.push(Math.min(+n,this.maxIndex)),e+=o}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return B(this.list).filter(q)}},connected(){j(this.$el,this.clsContainer,!k(`.${this.clsContainer}`,this.$el))},observe:ct({target:({slides:t})=>t}),update:{write(){for(const t of this.navItems){const e=$t(X(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!m(this.sets,e))}this.reorder(),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!m(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.indexthis.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let n=0;n0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,s=ge(this.list)/this.length;this.duration=Kn(s/this.velocity)*(w(this.slides[i]).width/s),this.reorder()},itemshow(){~this.prevIndex&&$(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){c(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((n,o)=>c(n,"order",this.dir>0&&o=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=w(this.list).width/2-w(e).width/2,s=0;for(;i>0;){const n=this.getIndex(--s+t,t),o=this.slides[n];c(o,"order",n>t?-2:-1),i-=w(o).width}},updateActiveClasses(t=this.index){let e=this._getTransitioner(t).getActives();this.active!=="all"&&(e=[this.slides[this.getValidIndex(t)]]);const i=[this.clsActive,!this.sets||m(this.sets,S(this.index))?this.clsActivated:""];for(const s of this.slides){const n=m(e,s);j(s,i,n),p(s,"aria-hidden",!n);for(const o of z(Ie,s))pt(o,"_tabindex")||(o._tabindex=p(o,"tabindex")),p(o,"tabindex",n?o._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(m(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=w(this.list),e=-t,i=t*2,s=w(this.slides[this.index]).width,n=this.center?t/2-s/2:0,o=new Set;for(const r of[-1,1]){let a=n+(r>0?s:0),l=0;do{const h=this.slides[this.getIndex(this.index+r+l++*r)];a+=w(h).width*r,o.add(h)}while(this.length>l&&a>e&&a=0&&ezt(s.filter(u=>!l.has(u)),u=>w(u).width))return!0}return!1}function hl(t){return Math.max(0,...B(t).map(e=>w(e).width))}var wo={mixins:[no],data:{selItem:"!li"},beforeConnect(){this.item=J(this.selItem,this.$el)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:t,detail:{percent:e,duration:i,timing:s,dir:n}}){K.read(()=>{if(!this.matchMedia)return;const o=this.getCss(xo(t,n,e)),r=this.getCss(bo(t)?.5:n>0?1:0);K.write(()=>{c(this.$el,o),O.start(this.$el,r,i,s).catch(A)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){O.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:t,detail:{percent:e,dir:i}}){K.read(()=>{if(!this.matchMedia){this.reset();return}const s=this.getCss(xo(t,i,e));K.write(()=>c(this.$el,s))})}}]};function bo(t){return te(t,"in")}function xo(t,e,i){return i/=2,bo(t)^e<0?i:1-i}var cl={...ys,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-c(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:ue(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-c(t,"opacity")},translate(t){return[{opacity:1-t,transform:ue(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:W(30),zIndex:-1},{transform:W(),zIndex:0}]:[{transform:W(-100),zIndex:0},{transform:W(),zIndex:-1}]},percent(t,e,i){return i<0?1-Re(e):Re(t)},translate(t,e){return e<0?[{transform:W(30*t),zIndex:-1},{transform:W(-100*(1-t)),zIndex:0}]:[{transform:W(-t*100),zIndex:0},{transform:W(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:W(100),zIndex:0},{transform:W(),zIndex:-1}]:[{transform:W(-30),zIndex:-1},{transform:W(),zIndex:0}]},percent(t,e,i){return i>0?1-Re(e):Re(t)},translate(t,e){return e<0?[{transform:W(t*100),zIndex:0},{transform:W(-30*(1-t)),zIndex:-1}]:[{transform:W(-30*t),zIndex:-1},{transform:W(100*(1-t)),zIndex:0}]}}},ul={mixins:[st,Zn,po,fo,go],props:{ratio:String,minHeight:String,maxHeight:String},data:{ratio:"16:9",minHeight:void 0,maxHeight:void 0,selList:".uk-slideshow-items",attrItem:"uk-slideshow-item",selNav:".uk-slideshow-nav",Animations:cl},watch:{list(t){c(t,{aspectRatio:this.ratio?this.ratio.replace(":","/"):void 0,minHeight:this.minHeight,maxHeight:this.maxHeight,minWidth:"100%",maxWidth:"100%"})}},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},dl={mixins:[st,_n],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1,pos:{}},created(){for(const t of["init","start","move","end"]){const e=this[t];this[t]=i=>{gt(this.pos,_t(i)),e(i)}}},events:{name:ft,passive:!1,handler:"init"},computed:{target:(t,e)=>(e.tBodies||[e])[0],items(){return B(this.target)},isEmpty(){return!this.items.length},handles({handle:t},e){return t?z(t,e):this.items}},watch:{isEmpty(t){j(this.target,this.clsEmpty,t)},handles(t,e){c(e,{touchAction:"",userSelect:""}),c(t,{touchAction:"none",userSelect:"none"})}},update:{write(t){if(!this.drag||!P(this.placeholder))return;const{pos:{x:e,y:i},origin:{offsetTop:s,offsetLeft:n},placeholder:o}=this;c(this.drag,{top:i-s,left:e-n});const r=this.getSortable(document.elementFromPoint(e,i));if(!r)return;const{items:a}=r;if(a.some(O.inProgress))return;const l=ml(a,{x:e,y:i});if(a.length&&(!l||l===o))return;const h=this.getSortable(o),u=vl(r.target,l,o,e,i,r===h&&t.moved!==l);u!==!1&&(u&&o===u||(r!==h?(h.remove(o),t.moved=l):delete t.moved,r.insert(o,u),this.touched.add(r)))},events:["move"]},methods:{init(t){const{target:e,button:i,defaultPrevented:s}=t,[n]=this.items.filter(o=>o.contains(e));!n||s||i>0||Ui(e)||e.closest(`.${this.clsNoDrag}`)||this.handle&&!e.closest(this.handle)||(t.preventDefault(),this.touched=new Set([this]),this.placeholder=n,this.origin={target:e,index:Tt(n),...this.pos},b(document,pi,this.move),b(document,Dt,this.end),this.threshold||this.start(t))},start(t){this.drag=gl(this.$container,this.placeholder);const{left:e,top:i}=w(this.placeholder);gt(this.origin,{offsetLeft:this.pos.x-e,offsetTop:this.pos.y-i}),$(this.drag,this.clsDrag,this.clsCustom),$(this.placeholder,this.clsPlaceholder),$(this.items,this.clsItem),$(document.documentElement,this.clsDragState),g(this.$el,"start",[this,this.placeholder]),fl(this.pos),this.move(t)},move(t){this.drag?this.$emit("move"):(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(t)},end(){if(Pt(document,pi,this.move),Pt(document,Dt,this.end),!this.drag)return;pl();const t=this.getSortable(this.placeholder);this===t?this.origin.index!==Tt(this.placeholder)&&g(this.$el,"moved",[this,this.placeholder]):(g(t.$el,"added",[t,this.placeholder]),g(this.$el,"removed",[this,this.placeholder])),g(this.$el,"stop",[this,this.placeholder]),at(this.drag),this.drag=null;for(const{clsPlaceholder:e,clsItem:i}of this.touched)for(const s of this.touched)D(s.items,e,i);this.touched=null,D(document.documentElement,this.clsDragState)},insert(t,e){$(this.items,this.clsItem);const i=()=>e?li(e,t):L(this.target,t);this.animate(i)},remove(t){this.target.contains(t)&&this.animate(()=>at(t))},getSortable(t){do{const e=this.$getComponent(t,"sortable");if(e&&(e===this||this.group!==!1&&e.group===this.group))return e}while(t=P(t))}}};let $o;function fl(t){let e=Date.now();$o=setInterval(()=>{let{x:i,y:s}=t;s+=document.scrollingElement.scrollTop;const n=(Date.now()-e)*.3;e=Date.now(),qt(document.elementFromPoint(i,t.y)).reverse().some(o=>{let{scrollTop:r,scrollHeight:a}=o;const{top:l,bottom:h,height:u}=lt(o);if(ls)r-=n;else if(h>s&&h-350&&r"),L(i,e.cloneNode(!0).children);for(const s of e.getAttributeNames())p(i,s,e.getAttribute(s))}else i=e.cloneNode(!0);return L(t,i),c(i,"margin","0","important"),c(i,{boxSizing:"border-box",width:e.offsetWidth,height:e.offsetHeight,padding:c(e,"padding")}),it(i.firstElementChild,it(e.firstElementChild)),i}function ml(t,e){return t[bt(t,i=>ii(e,w(i)))]}function vl(t,e,i,s,n,o){if(!B(t).length)return;const r=w(e);if(!o)return wl(t,i)||nr[f]-v?!1:e}function wl(t,e){const i=B(t).length===1;i&&L(t,e);const s=B(t),n=s.some((o,r)=>{const a=w(o);return s.slice(r+1).some(l=>{const h=w(l);return!yo([a.left,a.right],[h.left,h.right])})});return i&&at(e),n}function yo(t,e){return t[1]>e[0]&&e[1]>t[0]}var ko={props:{pos:String,offset:null,flip:Boolean,shift:Boolean,inset:Boolean},data:{pos:`bottom-${V?"right":"left"}`,offset:!1,flip:!0,shift:!0,inset:!1},connected(){this.pos=this.$props.pos.split("-").concat("center").slice(0,2),[this.dir,this.align]=this.pos,this.axis=m(["top","bottom"],this.dir)?"y":"x"},methods:{positionAt(t,e,i){let s=[this.getPositionOffset(t),this.getShiftOffset(t)];const n=[this.flip&&"flip",this.shift&&"shift"],o={element:[this.inset?this.dir:fi(this.dir),this.align],target:[this.dir,this.align]};if(this.axis==="y"){for(const l in o)o[l].reverse();s.reverse(),n.reverse()}const r=bl(t),a=w(t);c(t,{top:-a.height,left:-a.width}),fn(t,e,{attach:o,offset:s,boundary:i,placement:n,viewportOffset:this.getViewportOffset(t)}),r()},getPositionOffset(t=this.$el){return U(this.offset===!1?c(t,"--uk-position-offset"):this.offset,this.axis==="x"?"width":"height",t)*(m(["left","top"],this.dir)?-1:1)*(this.inset?-1:1)},getShiftOffset(t=this.$el){return this.align==="center"?0:U(c(t,"--uk-position-shift-offset"),this.axis==="y"?"width":"height",t)*(m(["left","top"],this.align)?1:-1)},getViewportOffset(t){return U(c(t,"--uk-position-viewport-offset"))}}};function bl(t){const e=Ot(t),{scrollTop:i}=e;return()=>{i!==e.scrollTop&&(e.scrollTop=i)}}var xl={mixins:[je,Vt,ko],data:{pos:"top",animation:["uk-animation-scale-up"],duration:100,cls:"uk-active"},connected(){$l(this.$el)},disconnected(){this.hide()},methods:{show(){if(this.isToggled(this.tooltip||null))return;const{delay:t=0,title:e}=kl(this.$options);if(!e)return;const i=p(this.$el,"title"),s=b(this.$el,["blur",Me],o=>!yt(o)&&this.hide());this.reset=()=>{p(this.$el,{title:i,"aria-describedby":null}),s()};const n=Xt(this);p(this.$el,{title:null,"aria-describedby":n}),clearTimeout(this.showTimer),this.showTimer=setTimeout(()=>this._show(e,n),t)},async hide(){var t;T(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&await this.toggleElement(this.tooltip,!1,!1),(t=this.reset)==null||t.call(this),at(this.tooltip),this.tooltip=null)},async _show(t,e){this.tooltip=L(this.container,`
${t}
`),b(this.tooltip,"toggled",(i,s)=>{if(!s)return;const n=()=>this.positionAt(this.tooltip,this.$el);n();const[o,r]=yl(this.tooltip,this.$el,this.pos);this.origin=this.axis==="y"?`${fi(o)}-${r}`:`${r}-${fi(o)}`;const a=[H(document,`keydown ${ft}`,this.hide,!1,l=>l.type===ft&&!this.$el.contains(l.target)||l.type==="keydown"&&l.keyCode===_.ESC),b([document,...Ut(this.$el)],"scroll",n,{passive:!0})];H(this.tooltip,"hide",()=>a.forEach(l=>l()),{self:!0})}),await this.toggleElement(this.tooltip,!0)||this.hide()}},events:{[`focus ${he} ${ft}`](t){(!yt(t)||t.type===ft)&&this.show()}}};function $l(t){ni(t)||p(t,"tabindex","0")}function yl(t,e,[i,s]){const n=I(t),o=I(e),r=[["left","right"],["top","bottom"]];for(const l of r){if(n[l[0]]>=o[l[1]]){i=l[1];break}if(n[l[1]]<=o[l[0]]){i=l[0];break}}return s=(m(r[0],i)?r[1]:r[0]).find(l=>n[l]===o[l])||"center",[i,s]}function kl(t){const{el:e,id:i,data:s}=t;return["delay","title"].reduce((n,o)=>({[o]:X(e,o),...n}),{...ce(X(e,i),["title"]),...s})}var Sl={mixins:[yi],i18n:{invalidMime:"Invalid File Type: %s",invalidName:"Invalid File Name: %s",invalidSize:"Invalid File Size: %s Kilobytes Max"},props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"uk-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,multiple:!1,name:"files[]",params:{},type:"",url:"",abort:A,beforeAll:A,beforeSend:A,complete:A,completeAll:A,error:A,fail:A,load:A,loadEnd:A,loadStart:A,progress:A},events:{change(t){T(t.target,'input[type="file"]')&&(t.preventDefault(),t.target.files&&this.upload(t.target.files),t.target.value="")},drop(t){_i(t);const e=t.dataTransfer;e!=null&&e.files&&(D(this.$el,this.clsDragover),this.upload(e.files))},dragenter(t){_i(t)},dragover(t){_i(t),$(this.$el,this.clsDragover)},dragleave(t){_i(t),D(this.$el,this.clsDragover)}},methods:{async upload(t){if(t=It(t),!t.length)return;g(this.$el,"upload",[t]);for(const s of t){if(this.maxSize&&this.maxSize*1e3{const n=new FormData;s.forEach(o=>n.append(this.name,o));for(const o in this.params)n.append(o,this.params[o]);try{const o=await Cl(this.url,{data:n,method:this.method,responseType:this.type,beforeSend:r=>{const{xhr:a}=r;b(a.upload,"progress",this.progress);for(const l of["loadStart","load","loadEnd","abort"])b(a,l.toLowerCase(),this[l]);return this.beforeSend(r)}});this.complete(o),e.length?await i(e.shift()):this.completeAll(o)}catch(o){this.error(o)}};await i(e.shift())}}};function So(t,e){return e.match(new RegExp(`^${t.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")}$`,"i"))}function Il(t,e){const i=[];for(let s=0;si.beforeSend(i)).then(()=>El(t,i))}function El(t,e){return new Promise((i,s)=>{const{xhr:n}=e;for(const o in e)if(o in n)try{n[o]=e[o]}catch{}n.open(e.method.toUpperCase(),t);for(const o in e.headers)n.setRequestHeader(o,e.headers[o]);b(n,"load",()=>{n.status===0||n.status>=200&&n.status<300||n.status===304?i(n):s(gt(Error(n.statusText),{xhr:n,status:n.status}))}),b(n,"error",()=>s(gt(Error("Network Error"),{xhr:n}))),b(n,"timeout",()=>s(gt(Error("Network Timeout"),{xhr:n}))),n.send(e.data)})}var Tl=Object.freeze({__proto__:null,Countdown:Hr,Filter:ea,Lightbox:Va,LightboxPanel:to,Notification:Ga,Parallax:sl,Slider:al,SliderParallax:wo,Slideshow:ul,SlideshowParallax:wo,Sortable:dl,Tooltip:xl,Upload:Sl});function Pl(t){re&&window.MutationObserver&&(document.body?requestAnimationFrame(()=>Io(t)):new MutationObserver((e,i)=>{document.body&&(Io(t),i.disconnect())}).observe(document.documentElement,{childList:!0}))}function Io(t){g(document,"uikit:init",t),document.body&&kt(document.body,Co),new MutationObserver(e=>e.forEach(_l)).observe(document,{subtree:!0,childList:!0}),new MutationObserver(e=>e.forEach(Al)).observe(document,{subtree:!0,attributes:!0}),t._initialized=!0}function _l({addedNodes:t,removedNodes:e}){for(const i of t)kt(i,Co);for(const i of e)kt(i,Dl)}function Al({target:t,attributeName:e}){var i;const s=Eo(e);if(s){if(Et(t,e)){Ve(s,t);return}(i=ki(t,s))==null||i.$destroy()}}function Co(t){const e=Gt(t);for(const i in Gt(t))Is(e[i]);for(const i of t.getAttributeNames()){const s=Eo(i);s&&Ve(s,t)}}function Dl(t){const e=Gt(t);for(const i in Gt(t))Cs(e[i])}function Eo(t){dt(t,"data-")&&(t=t.slice(5));const e=fe[t];return e&&(xt(e)?e:e.options).name}Wa(ut),ja(ut);var To={mixins:[st,Vt],props:{animation:Boolean,targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,offset:Number},data:{targets:"> *",active:!1,animation:!0,collapsible:!0,multiple:!1,clsOpen:"uk-open",toggle:"> .uk-accordion-title",content:"> .uk-accordion-content",offset:0},computed:{items:({targets:t},e)=>z(t,e),toggles({toggle:t}){return this.items.map(e=>k(t,e))},contents({content:t}){return this.items.map(e=>{var i;return((i=e._wrapper)==null?void 0:i.firstElementChild)||k(t,e)})}},watch:{items(t,e){if(e||y(t,this.clsOpen))return;const i=this.active!==!1&&t[Number(this.active)]||!this.collapsible&&t[0];i&&this.toggle(i,!1)},toggles(){this.$emit()},contents(t){for(const e of t){const i=y(this.items.find(s=>s.contains(e)),this.clsOpen);Ai(e,!i)}this.$emit()}},observe:He(),events:[{name:"click keydown",delegate(){return`${this.targets} ${this.$props.toggle}`},async handler(t){var e;t.type==="keydown"&&t.keyCode!==_.SPACE||(t.preventDefault(),(e=this._off)==null||e.call(this),this._off=Ml(t.target),await this.toggle(Tt(this.toggles,t.current)),this._off())}},{name:"shown hidden",self:!0,delegate(){return this.targets},handler(){this.$emit()}}],update(){const t=Ce(this.items,`.${this.clsOpen}`);for(const e in this.items){const i=this.toggles[e],s=this.contents[e];if(!i||!s)continue;i.id=Xt(this,i),s.id=Xt(this,s);const n=m(t,this.items[e]);p(i,{role:R(i,"a")?"button":null,"aria-controls":s.id,"aria-expanded":n,"aria-disabled":!this.collapsible&&t.length<2&&n}),p(s,{role:"region","aria-labelledby":i.id}),R(s,"ul")&&p(B(s),"role","presentation")}},methods:{toggle(t,e){t=this.items[ot(t,this.items)];let i=[t];const s=Ce(this.items,`.${this.clsOpen}`);if(!this.multiple&&!m(s,i[0])&&(i=i.concat(s)),!(!this.collapsible&&s.length<2&&m(s,t)))return Promise.all(i.map(n=>this.toggleElement(n,!m(s,n),(o,r)=>{if(j(o,this.clsOpen,r),e===!1||!this.animation){Ai(k(this.content,o),!r);return}return Ol(o,r,this)})))}}};function Ai(t,e){t&&(t.hidden=e)}async function Ol(t,e,{content:i,duration:s,velocity:n,transition:o}){var r;i=((r=t._wrapper)==null?void 0:r.firstElementChild)||k(i,t),t._wrapper||(t._wrapper=ui(i,"