cleek 1.3.2 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cleek.es.js CHANGED
@@ -1,6 +1 @@
1
- import{openBlock as e,createBlock as t,renderSlot as n,withScopeId as o,pushScopeId as r,popScopeId as i,mergeProps as a,withKeys as s,withModifiers as l,createVNode as d,toDisplayString as u,createCommentVNode as c,Teleport as p,Transition as f,markRaw as m,resolveComponent as h,withCtx as v,resolveDynamicComponent as b,Fragment as y,renderList as g,withDirectives as w,vModelRadio as x,vModelCheckbox as O}from"vue";const E=o("data-v-1c97e1b3")(((o,r,i,a,s,l)=>(e(),t("button",{type:"button",class:l.buttonClassObject,title:i.title,"aria-label":i.title,disabled:i.disabled,onClick:r[1]||(r[1]=e=>l.onClick(e))},[n(o.$slots,"default",{},void 0,!0)],10,["title","aria-label","disabled"]))));const C={name:"Button",props:{label:{type:String,default:void 0},title:{type:String,default:void 0},type:{type:String,default:"outlined",validator:e=>["filled","outlined","text"].includes(e)},disabled:{type:Boolean,default:!1}},emits:["click"],computed:{buttonClassObject(){return{"is-outlined":"outlined"===this.type,"is-filled":"filled"===this.type,"is-text":"text"===this.type}}},methods:{onClick(e){this.$emit("click",e)}}};C.render=E,C.__scopeId="data-v-1c97e1b3";const k={name:"Checkbox",props:{modelValue:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],data(){return{state:this.modelValue}},computed:{checkboxAttributes(){return{"aria-disabled":this.disabled,tabindex:this.disabled?void 0:"0"}}},watch:{modelValue(e){this.state=e},state(e){this.$emit("update:modelValue",e)}},methods:{onTrigger(){this.state=!this.state}}},S=o("data-v-3a8a40ec");r("data-v-3a8a40ec");const A=d("div",{class:"c-Checkbox__element"},null,-1),T={key:0,class:"c-Checkbox__label"};i();const _=S(((n,o,r,i,p,f)=>(e(),t("label",a({class:"c-Checkbox"},f.checkboxAttributes,{onKeydown:o[2]||(o[2]=s(l((()=>{}),["prevent"]),["space"])),onKeyup:[o[3]||(o[3]=s((e=>f.onTrigger()),["enter"])),o[4]||(o[4]=s((e=>f.onTrigger()),["space"]))]}),[d("input",{"aria-hidden":"true",class:"c-Checkbox__input",type:"checkbox",disabled:r.disabled,checked:p.state,onChange:o[1]||(o[1]=e=>p.state=e.target.checked)},null,40,["disabled","checked"]),A,r.label?(e(),t("span",T,u(r.label),1)):c("",!0)],16))));k.render=_,k.__scopeId="data-v-3a8a40ec";const L={name:"Input",props:{modelValue:{type:String,required:!1,default:void 0},label:{type:String,required:!1,default:void 0},placeholder:{type:String,required:!1,default:void 0},name:{type:String,required:!1,default:void 0},required:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],data(){return{text:this.modelValue}},computed:{inputClassObject(){const e=""!==this.text&&void 0!==this.text,t=""!==this.placeholder&&void 0!==this.placeholder;return{"has-value":e||t,"has-label":""!==this.label&&void 0!==this.label}}},watch:{modelValue(e){this.text=e},text(e){this.$emit("update:modelValue",e)}},methods:{onLabelClick(){this.$refs.input.focus()}}},D=o("data-v-235d669a")(((n,o,r,i,a,s)=>(e(),t("div",{class:["c-Input",s.inputClassObject]},[d("input",{ref:"input",class:"c-Input__input",type:"text",value:a.text,name:r.name,required:r.required,disabled:r.disabled,"aria-label":r.label,placeholder:r.placeholder,onInput:o[1]||(o[1]=e=>a.text=e.target.value)},null,40,["value","name","required","disabled","aria-label","placeholder"]),d("span",{class:"c-Input__label",title:r.label,onMousedown:o[2]||(o[2]=l((e=>s.onLabelClick(e)),["prevent"]))},u(r.label),41,["title"])],2))));L.render=D,L.__scopeId="data-v-235d669a";const M={name:"Link",props:{label:{type:String,required:!0},title:{type:String,default:null,required:!1},href:{type:String,default:null,required:!1},openOnNewTab:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1}},emits:["click"],computed:{linkAttributes(){return{title:this.title?this.title:this.label,href:this.disabled?void 0:this.href,rel:this.openOnNewTab?"noopener noreferrer":void 0,target:this.openOnNewTab?"_blank":void 0,"aria-disabled":this.disabled,tabindex:this.disabled?void 0:"0"}}},methods:{onClick(){this.disabled||this.$emit("click")}}},j=o("data-v-165563c6");r("data-v-165563c6");const q={class:"c-Link__label"};i();const V=j(((n,o,r,i,c,p)=>(e(),t("a",a({class:"c-Link"},p.linkAttributes,{onClick:o[1]||(o[1]=e=>p.onClick()),onKeydown:o[2]||(o[2]=s(l((()=>{}),["prevent"]),["space"])),onKeyup:[o[3]||(o[3]=s((e=>p.onClick()),["enter"])),o[4]||(o[4]=s((e=>p.onClick()),["space"]))]}),[d("span",q,u(r.label),1)],16))));M.render=V,M.__scopeId="data-v-165563c6";
2
- /*!
3
- * tabbable 5.2.0
4
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
5
- */
6
- var I=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"].join(","),B="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,N=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName&&"DETAILS"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:t},P=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},R=function(e){return"INPUT"===e.tagName},$=function(e){return function(e){return R(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||e.ownerDocument,o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)},W=function(e,t){return!(t.disabled||function(e){return R(e)&&"hidden"===e.type}(t)||function(e,t){if("hidden"===getComputedStyle(e).visibility)return!0;var n=B.call(e,"details>summary:first-of-type")?e.parentElement:e;if(B.call(n,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){var o=e.getBoundingClientRect(),r=o.width,i=o.height;return 0===r&&0===i}}else for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(t,e.displayCheck)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t))},H=function(e,t){return!(!W(e,t)||$(t)||N(t)<0)},K=function(e,t){var n=[],o=[];return function(e,t,n){var o=Array.prototype.slice.apply(e.querySelectorAll(I));return t&&B.call(e,I)&&o.unshift(e),o.filter(n)}(e,(t=t||{}).includeContainer,H.bind(null,t)).forEach((function(e,t){var r=N(e);0===r?n.push(e):o.push({documentOrder:t,tabIndex:r,node:e})})),o.sort(P).map((function(e){return e.node})).concat(n)};let U;const z={name:"Modal",props:{isOpen:{type:Boolean,default:!1,required:!1}},emits:["close"],methods:{beforeModalOpen(){U=document.activeElement,xn()},modalOpening(){this.focusModal(),document.addEventListener("keydown",this.handleKeyDown)},beforeModalClose(){document.removeEventListener("keydown",this.handleKeyDown),null==U||U.focus()},afterModalClose(){On()},getFocusableElements(){return K(this.$refs.modal)},focusModal(){const e=this.getFocusableElements();if(!e.length)return void this.$refs.modal.focus();e[0].focus()},handleKeyDown(e){if(27!==e.keyCode){if(9===e.keyCode){const t=this.getFocusableElements();if(!t.length)return e.preventDefault(),void this.$refs.modal.focus();const n=t[0],o=t[t.length-1];e.shiftKey&&document.activeElement===n&&(e.preventDefault(),o.focus()),e.shiftKey||document.activeElement!==o||(e.preventDefault(),n.focus())}}else this.$emit("close")}}},F=o("data-v-c8e15808");r("data-v-c8e15808");const Y={key:0,ref:"modal",css:!1,class:"c-Modal",role:"dialog",tabindex:"0","aria-modal":"true"};i();const X=F(((o,r,i,a,s,l)=>(e(),t(p,{to:"body"},[d(f,{name:"fade"},{default:F((()=>[i.isOpen?(e(),t("div",{key:0,css:!1,class:"c-Modal__overlay",onClick:r[1]||(r[1]=e=>o.$emit("close"))})):c("",!0)])),_:1}),d(f,{name:"fade",onBeforeEnter:r[2]||(r[2]=e=>l.beforeModalOpen()),onEnter:r[3]||(r[3]=e=>l.modalOpening()),onBeforeLeave:r[4]||(r[4]=e=>l.beforeModalClose()),onAfterLeave:r[5]||(r[5]=e=>l.afterModalClose())},{default:F((()=>[i.isOpen?(e(),t("div",Y,[n(o.$slots,"default",{},void 0,!0)],512)):c("",!0)])),_:3})]))));z.render=X,z.__scopeId="data-v-c8e15808";const J={components:{Modal:z},data:()=>({component:null,props:null}),created(){dn.on(sn.OPEN_MODAL,(({component:e,props:t=null})=>{this.component=m(e),this.props=t})),dn.on(sn.CLOSE_MODAL,this.handleClose),document.addEventListener("keyup",this.handleKeyup)},beforeUnmount(){document.removeEventListener("keyup",this.handleKeyup)},methods:{handleClose(){this.component=null},handleKeyup(e){27===e.keyCode&&this.handleClose()}}};J.render=function(n,o,r,i,s,l){const d=h("Modal");return e(),t(d,{"is-open":Boolean(s.component),onClose:l.handleClose},{default:v((()=>[(e(),t(b(s.component),a(s.props,{onClose:l.handleClose}),null,16,["onClose"]))])),_:1},8,["is-open","onClose"])};const G={name:"Progress",props:{value:{type:[Number,String],required:!1,default:0},max:{type:[Number,String],required:!1,default:100}},computed:{progressPercentage(){const e=Number(this.value),t=Number(this.max);return Number.isNaN(e)||Number.isNaN(t)?0:Math.round(e/t*100)}}},Q=o("data-v-e36ffd7e");r("data-v-e36ffd7e");const Z=d("div",{class:"c-Progress__background"},null,-1);i();const ee=Q(((n,o,r,i,a,s)=>(e(),t("div",{class:"c-Progress",role:"progressbar",title:`${s.progressPercentage}%`,"aria-valuemin":"0","aria-valuemax":r.max,"aria-valuenow":r.value},[Z,d("div",{class:"c-Progress__fill",style:`width: ${s.progressPercentage}%`},null,4)],8,["title","aria-valuemax","aria-valuenow"]))));G.render=ee,G.__scopeId="data-v-e36ffd7e";const te={name:"Radio",props:{modelValue:{type:String,required:!1,default:void 0},name:{type:String,required:!0},items:{type:Array,required:!0,validator:e=>{let t=!0;return e.forEach((e=>{t=t&&"label"in e&&"value"in e})),t}},disabled:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],data(){return{selectedValue:this.modelValue}},computed:{radioAttributes(){return{"aria-disabled":this.disabled,tabindex:this.disabled?void 0:"0"}}},watch:{modelValue(e){this.selectedValue=e},selectedValue(e){this.$emit("update:modelValue",e)}},methods:{handleChange(e){this.selectedValue=e}}},ne=o("data-v-4e0cebba");r("data-v-4e0cebba");const oe=d("div",{class:"c-Radio__element"},null,-1),re={key:0,class:"c-Radio__label"};i();const ie=ne(((n,o,r,i,p,f)=>(e(!0),t(y,null,g(r.items,((n,i)=>(e(),t("label",a({key:`radio-${i}`,class:"c-Radio"},f.radioAttributes,{onKeydown:o[2]||(o[2]=s(l((()=>{}),["prevent"]),["space"])),onKeyup:[s((e=>f.handleChange(n.value)),["enter"]),s((e=>f.handleChange(n.value)),["space"])]}),[w(d("input",{"onUpdate:modelValue":o[1]||(o[1]=e=>p.selectedValue=e),"aria-hidden":"true",class:"c-Radio__input",type:"radio",name:r.name,value:n.value,disabled:r.disabled},null,8,["name","value","disabled"]),[[x,p.selectedValue]]),oe,n.label?(e(),t("span",re,u(n.label),1)):c("",!0)],16,["onKeyup"])))),128))));te.render=ie,te.__scopeId="data-v-4e0cebba";let ae;const se={name:"Sidebar",props:{isOpen:{type:Boolean,default:!1,required:!1},position:{type:String,required:!1,default:"right",validator:e=>["right","left"].includes(e)}},emits:["close"],computed:{sidebarClassObject(){return{"is-right":"right"===this.position,"is-left":"left"===this.position}},slideAnimation(){return"right"===this.position?"slideFromRight":"slideFromLeft"}},methods:{beforeSidebarOpen(){ae=document.activeElement,xn()},sidebarOpening(){this.focusSidebar(),document.addEventListener("keydown",this.handleKeyDown)},beforeSidebarClose(){document.removeEventListener("keydown",this.handleKeyDown),null==ae||ae.focus()},afterSidebarClose(){On()},getFocusableElements(){return K(this.$refs.sidebar)},focusSidebar(){const e=this.getFocusableElements();if(!e.length)return void this.$refs.sidebar.focus();e[0].focus()},handleKeyDown(e){if(27!==e.keyCode){if(9===e.keyCode){const t=this.getFocusableElements();if(!t.length)return e.preventDefault(),void this.$refs.sidebar.focus();const n=t[0],o=t[t.length-1];e.shiftKey&&document.activeElement===n&&(e.preventDefault(),o.focus()),e.shiftKey||document.activeElement!==o||(e.preventDefault(),n.focus())}}else this.$emit("close")}}},le=o("data-v-14025979"),de=le(((o,r,i,a,s,l)=>(e(),t(y,null,[d(f,{name:"fade"},{default:le((()=>[i.isOpen?(e(),t("div",{key:0,css:!1,class:"c-Sidebar__overlay",onClick:r[1]||(r[1]=e=>o.$emit("close"))})):c("",!0)])),_:1}),d(f,{name:l.slideAnimation,onBeforeEnter:r[2]||(r[2]=e=>l.beforeSidebarOpen()),onEnter:r[3]||(r[3]=e=>l.sidebarOpening()),onBeforeLeave:r[4]||(r[4]=e=>l.beforeSidebarClose()),onAfterLeave:r[5]||(r[5]=e=>l.afterSidebarClose())},{default:le((()=>[i.isOpen?(e(),t("div",{key:0,ref:"sidebar",css:!1,class:["c-Sidebar",l.sidebarClassObject],role:"dialog",tabindex:"0"},[n(o.$slots,"default",{},void 0,!0)],2)):c("",!0)])),_:3},8,["name"])],64))));se.render=de,se.__scopeId="data-v-14025979";const ue={components:{Sidebar:se},data:()=>({component:null,props:null}),created(){dn.on(sn.OPEN_SIDEBAR,(({component:e,props:t=null})=>{this.component=m(e),this.props=t})),dn.on(sn.CLOSE_SIDEBAR,this.handleClose),document.addEventListener("keyup",this.handleKeyup)},beforeUnmount(){document.removeEventListener("keyup",this.handleKeyup)},methods:{handleClose(){this.component=null},handleKeyup(e){27===e.keyCode&&this.handleClose()}}};ue.render=function(n,o,r,i,s,l){const d=h("Sidebar");return e(),t(d,{"is-open":Boolean(s.component),onClose:l.handleClose},{default:v((()=>[(e(),t(b(s.component),a(s.props,{onClose:l.handleClose}),null,16,["onClose"]))])),_:1},8,["is-open","onClose"])};const ce={name:"Switch",props:{modelValue:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],data(){return{state:this.modelValue}},computed:{switchAttributes(){return{"aria-disabled":this.disabled,tabindex:this.disabled?void 0:"0"}}},watch:{modelValue(e){this.state=e},state(e){this.$emit("update:modelValue",e)}},methods:{onTrigger(){this.state=!this.state}}},pe=o("data-v-26fa8abe");r("data-v-26fa8abe");const fe=d("div",{class:"c-Switch__slider"},null,-1),me={key:0,class:"c-Switch__label"};i();const he=pe(((n,o,r,i,p,f)=>(e(),t("label",a({class:"c-Switch"},f.switchAttributes,{onKeydown:o[3]||(o[3]=s(l((()=>{}),["prevent"]),["space"])),onKeyup:[o[4]||(o[4]=s((e=>f.onTrigger()),["enter"])),o[5]||(o[5]=s((e=>f.onTrigger()),["space"]))]}),[w(d("input",{"onUpdate:modelValue":o[1]||(o[1]=e=>p.state=e),"aria-hidden":"true",class:"c-Switch__input",type:"checkbox",disabled:r.disabled,onClick:o[2]||(o[2]=e=>f.onTrigger())},null,8,["disabled"]),[[O,p.state]]),fe,r.label?(e(),t("span",me,u(r.label),1)):c("",!0)],16))));ce.render=he,ce.__scopeId="data-v-26fa8abe";const ve={name:"Textarea",props:{modelValue:{type:String,required:!1,default:void 0},label:{type:String,required:!1,default:void 0},placeholder:{type:String,required:!1,default:void 0},name:{type:String,required:!1,default:void 0},autogrow:{type:Boolean,required:!1,default:!1},required:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},resize:{type:String,required:!1,default:"default",validator:e=>["default","vertical","horizontal","none"].includes(e)}},emits:["update:modelValue"],data(){return{text:this.modelValue}},computed:{textareaClassObject(){const e=""!==this.text&&void 0!==this.text,t=""!==this.placeholder&&void 0!==this.placeholder;return{"has-value":e||t,"has-label":""!==this.label&&void 0!==this.label,"has-vertical-resize":"vertical"===this.resize&&!this.autogrow,"has-horizontal-resize":"horizontal"===this.resize&&!this.autogrow,"has-no-resize":"none"===this.resize,"has-autogrow":this.autogrow}}},watch:{modelValue(e){this.text=e},text(e){this.autogrow&&(this.$el.dataset.replicatedText=e),this.$emit("update:modelValue",e)}},methods:{onLabelClick(){this.$refs.textarea.focus()}}},be=o("data-v-23109ba1")(((n,o,r,i,a,s)=>(e(),t("div",{class:["c-Textarea",s.textareaClassObject]},[d("textarea",{ref:"textarea",class:"c-Textarea__input",value:a.text,name:r.name,required:r.required,disabled:r.disabled,"aria-label":r.label,placeholder:r.placeholder,onInput:o[1]||(o[1]=e=>a.text=e.target.value)},null,40,["value","name","required","disabled","aria-label","placeholder"]),d("span",{class:"c-Textarea__label",title:r.label,onMousedown:o[2]||(o[2]=l((e=>s.onLabelClick(e)),["prevent"]))},u(r.label),41,["title"])],2))));ve.render=be,ve.__scopeId="data-v-23109ba1";var ye="top",ge="bottom",we="right",xe="left",Oe=[ye,ge,we,xe],Ee=Oe.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),Ce=[].concat(Oe,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),ke=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Se(e){return e?(e.nodeName||"").toLowerCase():null}function Ae(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Te(e){return e instanceof Ae(e).Element||e instanceof Element}function _e(e){return e instanceof Ae(e).HTMLElement||e instanceof HTMLElement}function Le(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ae(e).ShadowRoot||e instanceof ShadowRoot)}var De={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];_e(r)&&Se(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});_e(o)&&Se(o)&&(Object.assign(o.style,i),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Me(e){return e.split("-")[0]}function je(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function qe(e){var t=je(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Ve(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Le(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ie(e){return Ae(e).getComputedStyle(e)}function Be(e){return["table","td","th"].indexOf(Se(e))>=0}function Ne(e){return((Te(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return"html"===Se(e)?e:e.assignedSlot||e.parentNode||(Le(e)?e.host:null)||Ne(e)}function Re(e){return _e(e)&&"fixed"!==Ie(e).position?e.offsetParent:null}function $e(e){for(var t=Ae(e),n=Re(e);n&&Be(n)&&"static"===Ie(n).position;)n=Re(n);return n&&("html"===Se(n)||"body"===Se(n)&&"static"===Ie(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&_e(e)&&"fixed"===Ie(e).position)return null;for(var n=Pe(e);_e(n)&&["html","body"].indexOf(Se(n))<0;){var o=Ie(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function We(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var He=Math.max,Ke=Math.min,Ue=Math.round;function ze(e,t,n){return He(e,Ke(t,n))}function Fe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ye(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Xe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Je(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.offsets,a=e.position,s=e.gpuAcceleration,l=e.adaptive,d=e.roundOffsets,u=!0===d?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:Ue(Ue(t*o)/o)||0,y:Ue(Ue(n*o)/o)||0}}(i):"function"==typeof d?d(i):i,c=u.x,p=void 0===c?0:c,f=u.y,m=void 0===f?0:f,h=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),b=xe,y=ye,g=window;if(l){var w=$e(n),x="clientHeight",O="clientWidth";w===Ae(n)&&"static"!==Ie(w=Ne(n)).position&&(x="scrollHeight",O="scrollWidth"),w=w,r===ye&&(y=ge,m-=w[x]-o.height,m*=s?1:-1),r===xe&&(b=we,p-=w[O]-o.width,p*=s?1:-1)}var E,C=Object.assign({position:a},l&&Xe);return s?Object.assign({},C,((E={})[y]=v?"0":"",E[b]=h?"0":"",E.transform=(g.devicePixelRatio||1)<2?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",E)):Object.assign({},C,((t={})[y]=v?m+"px":"",t[b]=h?p+"px":"",t.transform="",t))}var Ge={passive:!0};var Qe={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e){return e.replace(/left|right|bottom|top/g,(function(e){return Qe[e]}))}var et={start:"end",end:"start"};function tt(e){return e.replace(/start|end/g,(function(e){return et[e]}))}function nt(e){var t=Ae(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ot(e){return je(Ne(e)).left+nt(e).scrollLeft}function rt(e){var t=Ie(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function it(e){return["html","body","#document"].indexOf(Se(e))>=0?e.ownerDocument.body:_e(e)&&rt(e)?e:it(Pe(e))}function at(e,t){var n;void 0===t&&(t=[]);var o=it(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=Ae(o),a=r?[i].concat(i.visualViewport||[],rt(o)?o:[]):o,s=t.concat(a);return r?s:s.concat(at(Pe(a)))}function st(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lt(e,t){return"viewport"===t?st(function(e){var t=Ae(e),n=Ne(e),o=t.visualViewport,r=n.clientWidth,i=n.clientHeight,a=0,s=0;return o&&(r=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=o.offsetLeft,s=o.offsetTop)),{width:r,height:i,x:a+ot(e),y:s}}(e)):_e(t)?function(e){var t=je(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):st(function(e){var t,n=Ne(e),o=nt(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=He(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=He(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+ot(e),l=-o.scrollTop;return"rtl"===Ie(r||n).direction&&(s+=He(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Ne(e)))}function dt(e,t,n){var o="clippingParents"===t?function(e){var t=at(Pe(e)),n=["absolute","fixed"].indexOf(Ie(e).position)>=0&&_e(e)?$e(e):e;return Te(n)?t.filter((function(e){return Te(e)&&Ve(e,n)&&"body"!==Se(e)})):[]}(e):[].concat(t),r=[].concat(o,[n]),i=r[0],a=r.reduce((function(t,n){var o=lt(e,n);return t.top=He(o.top,t.top),t.right=Ke(o.right,t.right),t.bottom=Ke(o.bottom,t.bottom),t.left=He(o.left,t.left),t}),lt(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ut(e){return e.split("-")[1]}function ct(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?Me(r):null,a=r?ut(r):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(i){case ye:t={x:s,y:n.y-o.height};break;case ge:t={x:s,y:n.y+n.height};break;case we:t={x:n.x+n.width,y:l};break;case xe:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var d=i?We(i):null;if(null!=d){var u="y"===d?"height":"width";switch(a){case"start":t[d]=t[d]-(n[u]/2-o[u]/2);break;case"end":t[d]=t[d]+(n[u]/2-o[u]/2)}}return t}function pt(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,i=n.boundary,a=void 0===i?"clippingParents":i,s=n.rootBoundary,l=void 0===s?"viewport":s,d=n.elementContext,u=void 0===d?"popper":d,c=n.altBoundary,p=void 0!==c&&c,f=n.padding,m=void 0===f?0:f,h=Fe("number"!=typeof m?m:Ye(m,Oe)),v="popper"===u?"reference":"popper",b=e.elements.reference,y=e.rects.popper,g=e.elements[p?v:u],w=dt(Te(g)?g:g.contextElement||Ne(e.elements.popper),a,l),x=je(b),O=ct({reference:x,element:y,strategy:"absolute",placement:r}),E=st(Object.assign({},y,O)),C="popper"===u?E:x,k={top:w.top-C.top+h.top,bottom:C.bottom-w.bottom+h.bottom,left:w.left-C.left+h.left,right:C.right-w.right+h.right},S=e.modifiersData.offset;if("popper"===u&&S){var A=S[r];Object.keys(k).forEach((function(e){var t=[we,ge].indexOf(e)>=0?1:-1,n=[ye,ge].indexOf(e)>=0?"y":"x";k[e]+=A[n]*t}))}return k}function ft(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function mt(e){return[ye,we,ge,xe].some((function(t){return e[t]>=0}))}function ht(e,t,n){void 0===n&&(n=!1);var o,r,i=Ne(t),a=je(e),s=_e(t),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(s||!s&&!n)&&(("body"!==Se(t)||rt(i))&&(l=(o=t)!==Ae(o)&&_e(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:nt(o)),_e(t)?((d=je(t)).x+=t.clientLeft,d.y+=t.clientTop):i&&(d.x=ot(i))),{x:a.left+l.scrollLeft-d.x,y:a.top+l.scrollTop-d.y,width:a.width,height:a.height}}function vt(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}var bt={placement:"bottom",modifiers:[],strategy:"absolute"};function yt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function gt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?bt:r;return function(e,t,n){void 0===n&&(n=i);var r,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},bt,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],d=!1,u={state:s,setOptions:function(n){c(),s.options=Object.assign({},i,s.options,n),s.scrollParents={reference:Te(e)?at(e):e.contextElement?at(e.contextElement):[],popper:at(t)};var r,a,d=function(e){var t=vt(e);return ke.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((r=[].concat(o,s.options.modifiers),a=r.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(a).map((function(e){return a[e]}))));return s.orderedModifiers=d.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var i=r({state:s,name:t,instance:u,options:o}),a=function(){};l.push(i||a)}})),u.update()},forceUpdate:function(){if(!d){var e=s.elements,t=e.reference,n=e.popper;if(yt(t,n)){s.rects={reference:ht(t,$e(n),"fixed"===s.options.strategy),popper:qe(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<s.orderedModifiers.length;o++)if(!0!==s.reset){var r=s.orderedModifiers[o],i=r.fn,a=r.options,l=void 0===a?{}:a,c=r.name;"function"==typeof i&&(s=i({state:s,options:l,name:c,instance:u})||s)}else s.reset=!1,o=-1}}},update:(r=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(r())}))}))),a}),destroy:function(){c(),d=!0}};if(!yt(e,t))return u;function c(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!d&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var wt=gt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,a=o.resize,s=void 0===a||a,l=Ae(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach((function(e){e.addEventListener("scroll",n.update,Ge)})),s&&l.addEventListener("resize",n.update,Ge),function(){i&&d.forEach((function(e){e.removeEventListener("scroll",n.update,Ge)})),s&&l.removeEventListener("resize",n.update,Ge)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ct({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,d={placement:Me(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Je(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Je(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},De,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=void 0===r?[0,0]:r,a=Ce.reduce((function(e,n){return e[n]=function(e,t,n){var o=Me(e),r=[xe,ye].indexOf(o)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*r,[xe,we].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,d=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[o]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=void 0===r||r,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,d=n.padding,u=n.boundary,c=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,h=n.allowedAutoPlacements,v=t.options.placement,b=Me(v),y=l||(b===v||!m?[Ze(v)]:function(e){if("auto"===Me(e))return[];var t=Ze(e);return[tt(e),t,tt(t)]}(v)),g=[v].concat(y).reduce((function(e,n){return e.concat("auto"===Me(n)?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,d=void 0===l?Ce:l,u=ut(o),c=u?s?Ee:Ee.filter((function(e){return ut(e)===u})):Oe,p=c.filter((function(e){return d.indexOf(e)>=0}));0===p.length&&(p=c);var f=p.reduce((function(t,n){return t[n]=pt(e,{placement:n,boundary:r,rootBoundary:i,padding:a})[Me(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:c,padding:d,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,E=!0,C=g[0],k=0;k<g.length;k++){var S=g[k],A=Me(S),T="start"===ut(S),_=[ye,ge].indexOf(A)>=0,L=_?"width":"height",D=pt(t,{placement:S,boundary:u,rootBoundary:c,altBoundary:p,padding:d}),M=_?T?we:xe:T?ge:ye;w[L]>x[L]&&(M=Ze(M));var j=Ze(M),q=[];if(i&&q.push(D[A]<=0),s&&q.push(D[M]<=0,D[j]<=0),q.every((function(e){return e}))){C=S,E=!1;break}O.set(S,q)}if(E)for(var V=function(e){var t=g.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},I=m?3:1;I>0;I--){if("break"===V(I))break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,d=n.rootBoundary,u=n.altBoundary,c=n.padding,p=n.tether,f=void 0===p||p,m=n.tetherOffset,h=void 0===m?0:m,v=pt(t,{boundary:l,rootBoundary:d,padding:c,altBoundary:u}),b=Me(t.placement),y=ut(t.placement),g=!y,w=We(b),x="x"===w?"y":"x",O=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S={x:0,y:0};if(O){if(i||s){var A="y"===w?ye:xe,T="y"===w?ge:we,_="y"===w?"height":"width",L=O[w],D=O[w]+v[A],M=O[w]-v[T],j=f?-C[_]/2:0,q="start"===y?E[_]:C[_],V="start"===y?-C[_]:-E[_],I=t.elements.arrow,B=f&&I?qe(I):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},P=N[A],R=N[T],$=ze(0,E[_],B[_]),W=g?E[_]/2-j-$-P-k:q-$-P-k,H=g?-E[_]/2+j+$+R+k:V+$+R+k,K=t.elements.arrow&&$e(t.elements.arrow),U=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,z=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,F=O[w]+W-z-U,Y=O[w]+H-z;if(i){var X=ze(f?Ke(D,F):D,L,f?He(M,Y):M);O[w]=X,S[w]=X-L}if(s){var J="x"===w?ye:xe,G="x"===w?ge:we,Q=O[x],Z=Q+v[J],ee=Q-v[G],te=ze(f?Ke(Z,F):Z,Q,f?He(ee,Y):ee);O[x]=te,S[x]=te-Q}}t.modifiersData[o]=S}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Me(n.placement),l=We(s),d=[xe,we].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Fe("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ye(e,Oe))}(r.padding,n),c=qe(i),p="y"===l?ye:xe,f="y"===l?ge:we,m=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],h=a[l]-n.rects.reference[l],v=$e(i),b=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=m/2-h/2,g=u[p],w=b-c[d]-u[f],x=b/2-c[d]/2+y,O=ze(g,x,w),E=l;n.modifiersData[o]=((t={})[E]=O,t.centerOffset=O-x,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&Ve(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=pt(t,{elementContext:"reference"}),s=pt(t,{altBoundary:!0}),l=ft(a,o),d=ft(s,r,i),u=mt(l),c=mt(d);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}}]}),xt={passive:!0,capture:!0};function Ot(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function Et(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Ct(e,t){return"function"==typeof e?e.apply(void 0,t):e}function kt(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function St(e){return[].concat(e)}function At(e,t){-1===e.indexOf(t)&&e.push(t)}function Tt(e){return[].slice.call(e)}function _t(){return document.createElement("div")}function Lt(e){return["Element","Fragment"].some((function(t){return Et(e,t)}))}function Dt(e){return Lt(e)?[e]:function(e){return Et(e,"NodeList")}(e)?Tt(e):Array.isArray(e)?e:Tt(document.querySelectorAll(e))}function Mt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function jt(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function qt(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}var Vt={isTouch:!1},It=0;function Bt(){Vt.isTouch||(Vt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Nt))}function Nt(){var e=performance.now();e-It<20&&(Vt.isTouch=!1,document.removeEventListener("mousemove",Nt)),It=e}function Pt(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Rt="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",$t=/MSIE |Trident\//.test(Rt),Wt=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Ht=Object.keys(Wt);function Kt(e){var t=(e.plugins||[]).reduce((function(t,n){var o=n.name,r=n.defaultValue;return o&&(t[o]=void 0!==e[o]?e[o]:r),t}),{});return Object.assign({},e,{},t)}function Ut(e,t){var n=Object.assign({},t,{content:Ct(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Kt(Object.assign({},Wt,{plugins:t}))):Ht).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(r){t[n]=o}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Wt.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function zt(e,t){e.innerHTML=t}function Ft(e){var t=_t();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",Lt(e)?t.appendChild(e):zt(t,e)),t}function Yt(e,t){Lt(t.content)?(zt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?zt(e,t.content):e.textContent=t.content)}function Xt(e){var t=e.firstElementChild,n=Tt(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function Jt(e){var t=_t(),n=_t();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=_t();function r(n,o){var r=Xt(t),i=r.box,a=r.content,s=r.arrow;o.theme?i.setAttribute("data-theme",o.theme):i.removeAttribute("data-theme"),"string"==typeof o.animation?i.setAttribute("data-animation",o.animation):i.removeAttribute("data-animation"),o.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?i.setAttribute("role",o.role):i.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||Yt(a,e.props),o.arrow?s?n.arrow!==o.arrow&&(i.removeChild(s),i.appendChild(Ft(o.arrow))):i.appendChild(Ft(o.arrow)):s&&i.removeChild(s)}return o.className="tippy-content",o.setAttribute("data-state","hidden"),Yt(o,e.props),t.appendChild(n),n.appendChild(o),r(e.props,e.props),{popper:t,onUpdate:r}}Jt.$$tippy=!0;var Gt=1,Qt=[],Zt=[];function en(e,t){var n,o,r,i,a,s,l,d,u,c=Ut(e,Object.assign({},Wt,{},Kt((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),p=!1,f=!1,m=!1,h=!1,v=[],b=kt(Y,c.interactiveDebounce),y=Gt++,g=(u=c.plugins).filter((function(e,t){return u.indexOf(e)===t})),w={id:y,reference:e,popper:_t(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:g,clearDelayTimeouts:function(){clearTimeout(o),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){if(w.state.isDestroyed)return;q("onBeforeUpdate",[w,t]),z();var n=w.props,o=Ut(e,Object.assign({},w.props,{},t,{ignoreAttributes:!0}));w.props=o,U(),n.interactiveDebounce!==o.interactiveDebounce&&(B(),b=kt(Y,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?St(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded");I(),j(),E&&E(n,o);w.popperInstance&&(Q(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));q("onAfterUpdate",[w,t])},setContent:function(e){w.setProps({content:e})},show:function(){var e=w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,o=Vt.isTouch&&!w.props.touch,r=Ot(w.props.duration,0,Wt.duration);if(e||t||n||o)return;if(_().hasAttribute("disabled"))return;if(q("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,T()&&(O.style.visibility="visible");j(),$(),w.state.isMounted||(O.style.transition="none");if(T()){var i=D(),a=i.box,s=i.content;Mt([a,s],0)}l=function(){var e;if(w.state.isVisible&&!h){if(h=!0,O.offsetHeight,O.style.transition=w.props.moveTransition,T()&&w.props.animation){var t=D(),n=t.box,o=t.content;Mt([n,o],r),jt([n,o],"visible")}V(),I(),At(Zt,w),null==(e=w.popperInstance)||e.forceUpdate(),w.state.isMounted=!0,q("onMount",[w]),w.props.animation&&T()&&function(e,t){H(e,t)}(r,(function(){w.state.isShown=!0,q("onShown",[w])}))}},function(){var e,t=w.props.appendTo,n=_();e=w.props.interactive&&t===Wt.appendTo||"parent"===t?n.parentNode:Ct(t,[n]);e.contains(O)||e.appendChild(O);Q()}()},hide:function(){var e=!w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,o=Ot(w.props.duration,1,Wt.duration);if(e||t||n)return;if(q("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,h=!1,p=!1,T()&&(O.style.visibility="hidden");if(B(),W(),j(),T()){var r=D(),i=r.box,a=r.content;w.props.animation&&(Mt([i,a],o),jt([i,a],"hidden"))}V(),I(),w.props.animation?T()&&function(e,t){H(e,(function(){!w.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&t()}))}(o,w.unmount):w.unmount()},hideWithInteractivity:function(e){L().addEventListener("mousemove",b),At(Qt,b),b(e)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){w.state.isVisible&&w.hide();if(!w.state.isMounted)return;Z(),ee().forEach((function(e){e._tippy.unmount()})),O.parentNode&&O.parentNode.removeChild(O);Zt=Zt.filter((function(e){return e!==w})),w.state.isMounted=!1,q("onHidden",[w])},destroy:function(){if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),z(),delete e._tippy,w.state.isDestroyed=!0,q("onDestroy",[w])}};if(!c.render)return w;var x=c.render(w),O=x.popper,E=x.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+w.id,w.popper=O,e._tippy=w,O._tippy=w;var C=g.map((function(e){return e.fn(w)})),k=e.hasAttribute("aria-expanded");return U(),I(),j(),q("onCreate",[w]),c.showOnCreate&&te(),O.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()})),O.addEventListener("mouseleave",(function(e){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(L().addEventListener("mousemove",b),b(e))})),w;function S(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function A(){return"hold"===S()[0]}function T(){var e;return!!(null==(e=w.props.render)?void 0:e.$$tippy)}function _(){return d||e}function L(){var e,t,n=_().parentNode;return n?(null==(t=St(n)[0])||null==(e=t.ownerDocument)?void 0:e.body)?t.ownerDocument:document:document}function D(){return Xt(O)}function M(e){return w.state.isMounted&&!w.state.isVisible||Vt.isTouch||a&&"focus"===a.type?0:Ot(w.props.delay,e?0:1,Wt.delay)}function j(){O.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",O.style.zIndex=""+w.props.zIndex}function q(e,t,n){var o;(void 0===n&&(n=!0),C.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(o=w.props)[e].apply(o,t)}function V(){var t=w.props.aria;if(t.content){var n="aria-"+t.content,o=O.id;St(w.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(w.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var r=t&&t.replace(o,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function I(){!k&&w.props.aria.expanded&&St(w.props.triggerTarget||e).forEach((function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===_()?"true":"false"):e.removeAttribute("aria-expanded")}))}function B(){L().removeEventListener("mousemove",b),Qt=Qt.filter((function(e){return e!==b}))}function N(e){if(!(Vt.isTouch&&(m||"mousedown"===e.type)||w.props.interactive&&O.contains(e.target))){if(_().contains(e.target)){if(Vt.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else q("onClickOutside",[w,e]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),f=!0,setTimeout((function(){f=!1})),w.state.isMounted||W())}}function P(){m=!0}function R(){m=!1}function $(){var e=L();e.addEventListener("mousedown",N,!0),e.addEventListener("touchend",N,xt),e.addEventListener("touchstart",R,xt),e.addEventListener("touchmove",P,xt)}function W(){var e=L();e.removeEventListener("mousedown",N,!0),e.removeEventListener("touchend",N,xt),e.removeEventListener("touchstart",R,xt),e.removeEventListener("touchmove",P,xt)}function H(e,t){var n=D().box;function o(e){e.target===n&&(qt(n,"remove",o),t())}if(0===e)return t();qt(n,"remove",s),qt(n,"add",o),s=o}function K(t,n,o){void 0===o&&(o=!1),St(w.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),v.push({node:e,eventType:t,handler:n,options:o})}))}function U(){var e;A()&&(K("touchstart",F,{passive:!0}),K("touchend",X,{passive:!0})),(e=w.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(K(e,F),e){case"mouseenter":K("mouseleave",X);break;case"focus":K($t?"focusout":"blur",J);break;case"focusin":K("focusout",J)}}))}function z(){v.forEach((function(e){var t=e.node,n=e.eventType,o=e.handler,r=e.options;t.removeEventListener(n,o,r)})),v=[]}function F(e){var t,n=!1;if(w.state.isEnabled&&!G(e)&&!f){var o="focus"===(null==(t=a)?void 0:t.type);a=e,d=e.currentTarget,I(),!w.state.isVisible&&Et(e,"MouseEvent")&&Qt.forEach((function(t){return t(e)})),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||p)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:te(e),"click"===e.type&&(p=!n),n&&!o&&ne(e)}}function Y(e){var t=e.target,n=_().contains(t)||O.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,i=e.props.interactiveBorder,a=r.placement.split("-")[0],s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,d="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,c="left"===a?s.right.x:0,p=t.top-o+l>i,f=o-t.bottom-d>i,m=t.left-n+u>i,h=n-t.right-c>i;return p||f||m||h}))}(ee().concat(O).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null})).filter(Boolean),e)&&(B(),ne(e))}function X(e){G(e)||w.props.trigger.indexOf("click")>=0&&p||(w.props.interactive?w.hideWithInteractivity(e):ne(e))}function J(e){w.props.trigger.indexOf("focusin")<0&&e.target!==_()||w.props.interactive&&e.relatedTarget&&O.contains(e.relatedTarget)||ne(e)}function G(e){return!!Vt.isTouch&&A()!==e.type.indexOf("touch")>=0}function Q(){Z();var t=w.props,n=t.popperOptions,o=t.placement,r=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,s=T()?Xt(O).arrow:null,d=i?{getBoundingClientRect:i,contextElement:i.contextElement||_()}:e,u=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(T()){var n=D().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];T()&&s&&u.push({name:"arrow",options:{element:s,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),w.popperInstance=wt(d,O,Object.assign({},n,{placement:o,onFirstUpdate:l,modifiers:u}))}function Z(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ee(){return Tt(O.querySelectorAll("[data-tippy-root]"))}function te(e){w.clearDelayTimeouts(),e&&q("onTrigger",[w,e]),$();var t=M(!0),n=S(),r=n[0],i=n[1];Vt.isTouch&&"hold"===r&&i&&(t=i),t?o=setTimeout((function(){w.show()}),t):w.show()}function ne(e){if(w.clearDelayTimeouts(),q("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=M(!1);t?r=setTimeout((function(){w.state.isVisible&&w.hide()}),t):i=requestAnimationFrame((function(){w.hide()}))}}else W()}}function tn(e,t){void 0===t&&(t={});var n=Wt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Bt,xt),window.addEventListener("blur",Pt);var o=Object.assign({},t,{plugins:n}),r=Dt(e).reduce((function(e,t){var n=t&&en(t,o);return n&&e.push(n),e}),[]);return Lt(e)?r[0]:r}tn.defaultProps=Wt,tn.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Wt[t]=e[t]}))},tn.currentInput=Vt,Object.assign({},De,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),tn.setDefaultProps({render:Jt});const nn={name:"Tooltip",props:{content:{type:String,required:!0}},mounted(){tn(this.$el,{content:this.content})}},on=o("data-v-21213774");r("data-v-21213774");const rn={class:"c-Tooltip",tabindex:"0"};i();const an=on(((o,r,i,a,s,l)=>(e(),t("div",rn,[n(o.$slots,"default",{},void 0,!0)]))));nn.render=an,nn.__scopeId="data-v-21213774";var sn={OPEN_MODAL:"OPEN_MODAL",CLOSE_MODAL:"CLOSE_MODAL",OPEN_SIDEBAR:"OPEN_MODAL",CLOSE_SIDEBAR:"CLOSE_MODAL"};var ln,dn={all:ln=ln||new Map,on:function(e,t){var n=ln.get(e);n?n.push(t):ln.set(e,[t])},off:function(e,t){var n=ln.get(e);n&&(t?n.splice(n.indexOf(t)>>>0,1):ln.set(e,[]))},emit:function(e,t){var n=ln.get(e);n&&n.slice().map((function(e){e(t)})),(n=ln.get("*"))&&n.slice().map((function(n){n(e,t)}))}};let un,cn,pn,fn,mn,hn,vn,bn,yn,gn;const wn=e=>{const t=e||navigator.userAgent,n=/(iPad).*OS\s([\d_]+)/.test(t),o=!n&&/(iPhone\sOS)\s([\d_]+)/.test(t);return/(Android);?[\s/]+([\d.]+)?/.test(t)||o||n},xn=()=>{wn()&&(()=>{const e=document.documentElement,t=document.body;gn=e.scrollTop||t.scrollTop,fn=e.style.height,mn=e.style.overflow,hn=t.style.top,vn=t.style.width,bn=t.style.height,yn=t.style.position,un=t.style.overflow,e.style.height="100%",e.style.overflow="hidden",t.style.top=`-${gn}px`,t.style.width="100%",t.style.height="auto",t.style.position="fixed",t.style.overflow="hidden"})(),(()=>{const e=document.body,t=window.innerWidth-e.clientWidth;un=e.style.overflow,cn=e.style.boxSizing,pn=e.style.paddingRight,e.style.overflow="hidden",e.style.boxSizing="border-box",e.style.paddingRight=`${t+e.style.paddingRight}px`})()},On=()=>{wn()&&(()=>{const e="scrollBehavior"in document.documentElement.style,t=document.documentElement,n=document.body;t.style.height=fn,t.style.overflow=mn,n.style.top=hn,n.style.width=vn,n.style.height=bn,n.style.position=yn,n.style.overflow=un,e?window.scrollTo({top:gn,behavior:"auto"}):window.scrollTo(0,gn),un="",fn="",mn="",hn="",vn="",bn="",yn="",gn=""})(),(()=>{const e=document.body;e.style.overflow=un,e.style.boxSizing=cn,e.style.paddingRight=pn,un="",cn="",pn=""})()};export{k as Checkbox,sn as EVENTS,dn as EventBus,L as Input,M as Link,z as Modal,J as ModalManager,G as Progress,te as Radio,se as Sidebar,ue as SidebarManager,ce as Switch,ve as Textarea,nn as Tooltip,C as ckButton,xn as lockScroll,On as unlockScroll};
1
+ import{pushScopeId as e,popScopeId as t,openBlock as o,createBlock as l,mergeProps as s,withKeys as n,withModifiers as i,createVNode as d,renderSlot as c,createCommentVNode as a,withScopeId as r}from"vue";const h=r("data-v-5c12ad92");e("data-v-5c12ad92");const u=d("div",{class:"ck-checkbox__element"},null,-1),p={key:0,class:"c-Checkbox__label"};t();const y=h(((e,t,r,h,y,g)=>(o(),l("label",s({class:"ck-checkbox"},g.checkboxAttributes,{onKeydown:t[2]||(t[2]=n(i((()=>{}),["prevent"]),["space"])),onKeyup:[t[3]||(t[3]=n((e=>g.onTrigger()),["enter"])),t[4]||(t[4]=n((e=>g.onTrigger()),["space"]))]}),[d("input",{class:"ck-checkbox__input","aria-hidden":"true",type:"checkbox",disabled:r.disabled,checked:g.value,onChange:t[1]||(t[1]=e=>{g.value=e.target.checked,g.onChange(e)})},null,40,["disabled","checked"]),u,e.$slots.default?(o(),l("span",p,[c(e.$slots,"default",{},void 0,!0)])):a("",!0)],16))));const g={name:"CkCheckbox",props:{modelValue:{type:Boolean,default:!1},label:{type:String,default:void 0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},checkboxAttributes(){return{"aria-disabled":this.disabled,tabindex:this.disabled?void 0:"0"}}},methods:{onChange(e){this.$emit("change",e)},onTrigger(){this.value=!this.value}}};g.render=y,g.__scopeId="data-v-5c12ad92";var b={OPEN_MODAL:"OPEN_MODAL",CLOSE_MODAL:"CLOSE_MODAL",OPEN_SIDEBAR:"OPEN_MODAL",CLOSE_SIDEBAR:"CLOSE_MODAL"};var v,m={all:v=v||new Map,on:function(e,t){var o=v.get(e);o?o.push(t):v.set(e,[t])},off:function(e,t){var o=v.get(e);o&&(t?o.splice(o.indexOf(t)>>>0,1):v.set(e,[]))},emit:function(e,t){var o=v.get(e);o&&o.slice().map((function(e){e(t)})),(o=v.get("*"))&&o.slice().map((function(o){o(e,t)}))}};let f,k,_,x,w,E,O,S,A,C;const L=e=>{const t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t),l=!o&&/(iPhone\sOS)\s([\d_]+)/.test(t);return/(Android);?[\s/]+([\d.]+)?/.test(t)||l||o},T=()=>{L()&&(()=>{const e=document.documentElement,t=document.body;C=e.scrollTop||t.scrollTop,x=e.style.height,w=e.style.overflow,E=t.style.top,O=t.style.width,S=t.style.height,A=t.style.position,f=t.style.overflow,e.style.height="100%",e.style.overflow="hidden",t.style.top=`-${C}px`,t.style.width="100%",t.style.height="auto",t.style.position="fixed",t.style.overflow="hidden"})(),(()=>{const e=document.body,t=window.innerWidth-e.clientWidth;f=e.style.overflow,k=e.style.boxSizing,_=e.style.paddingRight,e.style.overflow="hidden",e.style.boxSizing="border-box",e.style.paddingRight=`${t+e.style.paddingRight}px`})()},D=()=>{L()&&(()=>{const e="scrollBehavior"in document.documentElement.style,t=document.documentElement,o=document.body;t.style.height=x,t.style.overflow=w,o.style.top=E,o.style.width=O,o.style.height=S,o.style.position=A,o.style.overflow=f,e?window.scrollTo({top:C,behavior:"auto"}):window.scrollTo(0,C),f="",x="",w="",E="",O="",S="",A="",C=""})(),(()=>{const e=document.body;e.style.overflow=f,e.style.boxSizing=k,e.style.paddingRight=_,f="",k="",_=""})()};var M=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",ckCheckbox:g,EVENTS:b,EventBus:m,lockScroll:T,unlockScroll:D});export default function(e,t){console.log("arranco paquete"),console.log("options",t),Object.entries(M).forEach((([t,o])=>{e.component(t,o)}))}export{b as EVENTS,m as EventBus,g as ckCheckbox,T as lockScroll,D as unlockScroll};
package/dist/cleek.umd.js CHANGED
@@ -1,6 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).cleek={},e.Vue)}(this,(function(e,t){"use strict";const n=t.withScopeId("data-v-1c97e1b3")(((e,n,o,r,i,a)=>(t.openBlock(),t.createBlock("button",{type:"button",class:a.buttonClassObject,title:o.title,"aria-label":o.title,disabled:o.disabled,onClick:n[1]||(n[1]=e=>a.onClick(e))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],10,["title","aria-label","disabled"]))));const o={name:"Button",props:{label:{type:String,default:void 0},title:{type:String,default:void 0},type:{type:String,default:"outlined",validator:e=>["filled","outlined","text"].includes(e)},disabled:{type:Boolean,default:!1}},emits:["click"],computed:{buttonClassObject(){return{"is-outlined":"outlined"===this.type,"is-filled":"filled"===this.type,"is-text":"text"===this.type}}},methods:{onClick(e){this.$emit("click",e)}}};o.render=n,o.__scopeId="data-v-1c97e1b3";const r={name:"Checkbox",props:{modelValue:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],data(){return{state:this.modelValue}},computed:{checkboxAttributes(){return{"aria-disabled":this.disabled,tabindex:this.disabled?void 0:"0"}}},watch:{modelValue(e){this.state=e},state(e){this.$emit("update:modelValue",e)}},methods:{onTrigger(){this.state=!this.state}}},i=t.withScopeId("data-v-3a8a40ec");t.pushScopeId("data-v-3a8a40ec");const a=t.createVNode("div",{class:"c-Checkbox__element"},null,-1),s={key:0,class:"c-Checkbox__label"};t.popScopeId();const l=i(((e,n,o,r,i,l)=>(t.openBlock(),t.createBlock("label",t.mergeProps({class:"c-Checkbox"},l.checkboxAttributes,{onKeydown:n[2]||(n[2]=t.withKeys(t.withModifiers((()=>{}),["prevent"]),["space"])),onKeyup:[n[3]||(n[3]=t.withKeys((e=>l.onTrigger()),["enter"])),n[4]||(n[4]=t.withKeys((e=>l.onTrigger()),["space"]))]}),[t.createVNode("input",{"aria-hidden":"true",class:"c-Checkbox__input",type:"checkbox",disabled:o.disabled,checked:i.state,onChange:n[1]||(n[1]=e=>i.state=e.target.checked)},null,40,["disabled","checked"]),a,o.label?(t.openBlock(),t.createBlock("span",s,t.toDisplayString(o.label),1)):t.createCommentVNode("",!0)],16))));r.render=l,r.__scopeId="data-v-3a8a40ec";const c={name:"Input",props:{modelValue:{type:String,required:!1,default:void 0},label:{type:String,required:!1,default:void 0},placeholder:{type:String,required:!1,default:void 0},name:{type:String,required:!1,default:void 0},required:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],data(){return{text:this.modelValue}},computed:{inputClassObject(){const e=""!==this.text&&void 0!==this.text,t=""!==this.placeholder&&void 0!==this.placeholder;return{"has-value":e||t,"has-label":""!==this.label&&void 0!==this.label}}},watch:{modelValue(e){this.text=e},text(e){this.$emit("update:modelValue",e)}},methods:{onLabelClick(){this.$refs.input.focus()}}},d=t.withScopeId("data-v-235d669a")(((e,n,o,r,i,a)=>(t.openBlock(),t.createBlock("div",{class:["c-Input",a.inputClassObject]},[t.createVNode("input",{ref:"input",class:"c-Input__input",type:"text",value:i.text,name:o.name,required:o.required,disabled:o.disabled,"aria-label":o.label,placeholder:o.placeholder,onInput:n[1]||(n[1]=e=>i.text=e.target.value)},null,40,["value","name","required","disabled","aria-label","placeholder"]),t.createVNode("span",{class:"c-Input__label",title:o.label,onMousedown:n[2]||(n[2]=t.withModifiers((e=>a.onLabelClick(e)),["prevent"]))},t.toDisplayString(o.label),41,["title"])],2))));c.render=d,c.__scopeId="data-v-235d669a";const u={name:"Link",props:{label:{type:String,required:!0},title:{type:String,default:null,required:!1},href:{type:String,default:null,required:!1},openOnNewTab:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1}},emits:["click"],computed:{linkAttributes(){return{title:this.title?this.title:this.label,href:this.disabled?void 0:this.href,rel:this.openOnNewTab?"noopener noreferrer":void 0,target:this.openOnNewTab?"_blank":void 0,"aria-disabled":this.disabled,tabindex:this.disabled?void 0:"0"}}},methods:{onClick(){this.disabled||this.$emit("click")}}},p=t.withScopeId("data-v-165563c6");t.pushScopeId("data-v-165563c6");const f={class:"c-Link__label"};t.popScopeId();const h=p(((e,n,o,r,i,a)=>(t.openBlock(),t.createBlock("a",t.mergeProps({class:"c-Link"},a.linkAttributes,{onClick:n[1]||(n[1]=e=>a.onClick()),onKeydown:n[2]||(n[2]=t.withKeys(t.withModifiers((()=>{}),["prevent"]),["space"])),onKeyup:[n[3]||(n[3]=t.withKeys((e=>a.onClick()),["enter"])),n[4]||(n[4]=t.withKeys((e=>a.onClick()),["space"]))]}),[t.createVNode("span",f,t.toDisplayString(o.label),1)],16))));u.render=h,u.__scopeId="data-v-165563c6";
2
- /*!
3
- * tabbable 5.2.0
4
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
5
- */
6
- var m=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"].join(","),v="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,b=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName&&"DETAILS"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:t},y=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},g=function(e){return"INPUT"===e.tagName},w=function(e){return function(e){return g(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||e.ownerDocument,o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)},x=function(e,t){return!(t.disabled||function(e){return g(e)&&"hidden"===e.type}(t)||function(e,t){if("hidden"===getComputedStyle(e).visibility)return!0;var n=v.call(e,"details>summary:first-of-type")?e.parentElement:e;if(v.call(n,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){var o=e.getBoundingClientRect(),r=o.width,i=o.height;return 0===r&&0===i}}else for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(t,e.displayCheck)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t))},O=function(e,t){return!(!x(e,t)||w(t)||b(t)<0)},k=function(e,t){var n=[],o=[];return function(e,t,n){var o=Array.prototype.slice.apply(e.querySelectorAll(m));return t&&v.call(e,m)&&o.unshift(e),o.filter(n)}(e,(t=t||{}).includeContainer,O.bind(null,t)).forEach((function(e,t){var r=b(e);0===r?n.push(e):o.push({documentOrder:t,tabIndex:r,node:e})})),o.sort(y).map((function(e){return e.node})).concat(n)};let S;const E={name:"Modal",props:{isOpen:{type:Boolean,default:!1,required:!1}},emits:["close"],methods:{beforeModalOpen(){S=document.activeElement,ln()},modalOpening(){this.focusModal(),document.addEventListener("keydown",this.handleKeyDown)},beforeModalClose(){document.removeEventListener("keydown",this.handleKeyDown),null==S||S.focus()},afterModalClose(){cn()},getFocusableElements(){return k(this.$refs.modal)},focusModal(){const e=this.getFocusableElements();if(!e.length)return void this.$refs.modal.focus();e[0].focus()},handleKeyDown(e){if(27!==e.keyCode){if(9===e.keyCode){const t=this.getFocusableElements();if(!t.length)return e.preventDefault(),void this.$refs.modal.focus();const n=t[0],o=t[t.length-1];e.shiftKey&&document.activeElement===n&&(e.preventDefault(),o.focus()),e.shiftKey||document.activeElement!==o||(e.preventDefault(),n.focus())}}else this.$emit("close")}}},C=t.withScopeId("data-v-c8e15808");t.pushScopeId("data-v-c8e15808");const A={key:0,ref:"modal",css:!1,class:"c-Modal",role:"dialog",tabindex:"0","aria-modal":"true"};t.popScopeId();const B=C(((e,n,o,r,i,a)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"fade"},{default:C((()=>[o.isOpen?(t.openBlock(),t.createBlock("div",{key:0,css:!1,class:"c-Modal__overlay",onClick:n[1]||(n[1]=t=>e.$emit("close"))})):t.createCommentVNode("",!0)])),_:1}),t.createVNode(t.Transition,{name:"fade",onBeforeEnter:n[2]||(n[2]=e=>a.beforeModalOpen()),onEnter:n[3]||(n[3]=e=>a.modalOpening()),onBeforeLeave:n[4]||(n[4]=e=>a.beforeModalClose()),onAfterLeave:n[5]||(n[5]=e=>a.afterModalClose())},{default:C((()=>[o.isOpen?(t.openBlock(),t.createBlock("div",A,[t.renderSlot(e.$slots,"default",{},void 0,!0)],512)):t.createCommentVNode("",!0)])),_:3})]))));E.render=B,E.__scopeId="data-v-c8e15808";const T={components:{Modal:E},data:()=>({component:null,props:null}),created(){Xt.on(Ft.OPEN_MODAL,(({component:e,props:n=null})=>{this.component=t.markRaw(e),this.props=n})),Xt.on(Ft.CLOSE_MODAL,this.handleClose),document.addEventListener("keyup",this.handleKeyup)},beforeUnmount(){document.removeEventListener("keyup",this.handleKeyup)},methods:{handleClose(){this.component=null},handleKeyup(e){27===e.keyCode&&this.handleClose()}}};T.render=function(e,n,o,r,i,a){const s=t.resolveComponent("Modal");return t.openBlock(),t.createBlock(s,{"is-open":Boolean(i.component),onClose:a.handleClose},{default:t.withCtx((()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.component),t.mergeProps(i.props,{onClose:a.handleClose}),null,16,["onClose"]))])),_:1},8,["is-open","onClose"])};const D={name:"Progress",props:{value:{type:[Number,String],required:!1,default:0},max:{type:[Number,String],required:!1,default:100}},computed:{progressPercentage(){const e=Number(this.value),t=Number(this.max);return Number.isNaN(e)||Number.isNaN(t)?0:Math.round(e/t*100)}}},_=t.withScopeId("data-v-e36ffd7e");t.pushScopeId("data-v-e36ffd7e");const L=t.createVNode("div",{class:"c-Progress__background"},null,-1);t.popScopeId();const V=_(((e,n,o,r,i,a)=>(t.openBlock(),t.createBlock("div",{class:"c-Progress",role:"progressbar",title:`${a.progressPercentage}%`,"aria-valuemin":"0","aria-valuemax":o.max,"aria-valuenow":o.value},[L,t.createVNode("div",{class:"c-Progress__fill",style:`width: ${a.progressPercentage}%`},null,4)],8,["title","aria-valuemax","aria-valuenow"]))));D.render=V,D.__scopeId="data-v-e36ffd7e";const I={name:"Radio",props:{modelValue:{type:String,required:!1,default:void 0},name:{type:String,required:!0},items:{type:Array,required:!0,validator:e=>{let t=!0;return e.forEach((e=>{t=t&&"label"in e&&"value"in e})),t}},disabled:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],data(){return{selectedValue:this.modelValue}},computed:{radioAttributes(){return{"aria-disabled":this.disabled,tabindex:this.disabled?void 0:"0"}}},watch:{modelValue(e){this.selectedValue=e},selectedValue(e){this.$emit("update:modelValue",e)}},methods:{handleChange(e){this.selectedValue=e}}},M=t.withScopeId("data-v-4e0cebba");t.pushScopeId("data-v-4e0cebba");const N=t.createVNode("div",{class:"c-Radio__element"},null,-1),j={key:0,class:"c-Radio__label"};t.popScopeId();const q=M(((e,n,o,r,i,a)=>(t.openBlock(!0),t.createBlock(t.Fragment,null,t.renderList(o.items,((e,r)=>(t.openBlock(),t.createBlock("label",t.mergeProps({key:`radio-${r}`,class:"c-Radio"},a.radioAttributes,{onKeydown:n[2]||(n[2]=t.withKeys(t.withModifiers((()=>{}),["prevent"]),["space"])),onKeyup:[t.withKeys((t=>a.handleChange(e.value)),["enter"]),t.withKeys((t=>a.handleChange(e.value)),["space"])]}),[t.withDirectives(t.createVNode("input",{"onUpdate:modelValue":n[1]||(n[1]=e=>i.selectedValue=e),"aria-hidden":"true",class:"c-Radio__input",type:"radio",name:o.name,value:e.value,disabled:o.disabled},null,8,["name","value","disabled"]),[[t.vModelRadio,i.selectedValue]]),N,e.label?(t.openBlock(),t.createBlock("span",j,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)],16,["onKeyup"])))),128))));I.render=q,I.__scopeId="data-v-4e0cebba";let P;const R={name:"Sidebar",props:{isOpen:{type:Boolean,default:!1,required:!1},position:{type:String,required:!1,default:"right",validator:e=>["right","left"].includes(e)}},emits:["close"],computed:{sidebarClassObject(){return{"is-right":"right"===this.position,"is-left":"left"===this.position}},slideAnimation(){return"right"===this.position?"slideFromRight":"slideFromLeft"}},methods:{beforeSidebarOpen(){P=document.activeElement,ln()},sidebarOpening(){this.focusSidebar(),document.addEventListener("keydown",this.handleKeyDown)},beforeSidebarClose(){document.removeEventListener("keydown",this.handleKeyDown),null==P||P.focus()},afterSidebarClose(){cn()},getFocusableElements(){return k(this.$refs.sidebar)},focusSidebar(){const e=this.getFocusableElements();if(!e.length)return void this.$refs.sidebar.focus();e[0].focus()},handleKeyDown(e){if(27!==e.keyCode){if(9===e.keyCode){const t=this.getFocusableElements();if(!t.length)return e.preventDefault(),void this.$refs.sidebar.focus();const n=t[0],o=t[t.length-1];e.shiftKey&&document.activeElement===n&&(e.preventDefault(),o.focus()),e.shiftKey||document.activeElement!==o||(e.preventDefault(),n.focus())}}else this.$emit("close")}}},K=t.withScopeId("data-v-14025979"),$=K(((e,n,o,r,i,a)=>(t.openBlock(),t.createBlock(t.Fragment,null,[t.createVNode(t.Transition,{name:"fade"},{default:K((()=>[o.isOpen?(t.openBlock(),t.createBlock("div",{key:0,css:!1,class:"c-Sidebar__overlay",onClick:n[1]||(n[1]=t=>e.$emit("close"))})):t.createCommentVNode("",!0)])),_:1}),t.createVNode(t.Transition,{name:a.slideAnimation,onBeforeEnter:n[2]||(n[2]=e=>a.beforeSidebarOpen()),onEnter:n[3]||(n[3]=e=>a.sidebarOpening()),onBeforeLeave:n[4]||(n[4]=e=>a.beforeSidebarClose()),onAfterLeave:n[5]||(n[5]=e=>a.afterSidebarClose())},{default:K((()=>[o.isOpen?(t.openBlock(),t.createBlock("div",{key:0,ref:"sidebar",css:!1,class:["c-Sidebar",a.sidebarClassObject],role:"dialog",tabindex:"0"},[t.renderSlot(e.$slots,"default",{},void 0,!0)],2)):t.createCommentVNode("",!0)])),_:3},8,["name"])],64))));R.render=$,R.__scopeId="data-v-14025979";const W={components:{Sidebar:R},data:()=>({component:null,props:null}),created(){Xt.on(Ft.OPEN_SIDEBAR,(({component:e,props:n=null})=>{this.component=t.markRaw(e),this.props=n})),Xt.on(Ft.CLOSE_SIDEBAR,this.handleClose),document.addEventListener("keyup",this.handleKeyup)},beforeUnmount(){document.removeEventListener("keyup",this.handleKeyup)},methods:{handleClose(){this.component=null},handleKeyup(e){27===e.keyCode&&this.handleClose()}}};W.render=function(e,n,o,r,i,a){const s=t.resolveComponent("Sidebar");return t.openBlock(),t.createBlock(s,{"is-open":Boolean(i.component),onClose:a.handleClose},{default:t.withCtx((()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.component),t.mergeProps(i.props,{onClose:a.handleClose}),null,16,["onClose"]))])),_:1},8,["is-open","onClose"])};const H={name:"Switch",props:{modelValue:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],data(){return{state:this.modelValue}},computed:{switchAttributes(){return{"aria-disabled":this.disabled,tabindex:this.disabled?void 0:"0"}}},watch:{modelValue(e){this.state=e},state(e){this.$emit("update:modelValue",e)}},methods:{onTrigger(){this.state=!this.state}}},U=t.withScopeId("data-v-26fa8abe");t.pushScopeId("data-v-26fa8abe");const z=t.createVNode("div",{class:"c-Switch__slider"},null,-1),F={key:0,class:"c-Switch__label"};t.popScopeId();const Y=U(((e,n,o,r,i,a)=>(t.openBlock(),t.createBlock("label",t.mergeProps({class:"c-Switch"},a.switchAttributes,{onKeydown:n[3]||(n[3]=t.withKeys(t.withModifiers((()=>{}),["prevent"]),["space"])),onKeyup:[n[4]||(n[4]=t.withKeys((e=>a.onTrigger()),["enter"])),n[5]||(n[5]=t.withKeys((e=>a.onTrigger()),["space"]))]}),[t.withDirectives(t.createVNode("input",{"onUpdate:modelValue":n[1]||(n[1]=e=>i.state=e),"aria-hidden":"true",class:"c-Switch__input",type:"checkbox",disabled:o.disabled,onClick:n[2]||(n[2]=e=>a.onTrigger())},null,8,["disabled"]),[[t.vModelCheckbox,i.state]]),z,o.label?(t.openBlock(),t.createBlock("span",F,t.toDisplayString(o.label),1)):t.createCommentVNode("",!0)],16))));H.render=Y,H.__scopeId="data-v-26fa8abe";const X={name:"Textarea",props:{modelValue:{type:String,required:!1,default:void 0},label:{type:String,required:!1,default:void 0},placeholder:{type:String,required:!1,default:void 0},name:{type:String,required:!1,default:void 0},autogrow:{type:Boolean,required:!1,default:!1},required:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},resize:{type:String,required:!1,default:"default",validator:e=>["default","vertical","horizontal","none"].includes(e)}},emits:["update:modelValue"],data(){return{text:this.modelValue}},computed:{textareaClassObject(){const e=""!==this.text&&void 0!==this.text,t=""!==this.placeholder&&void 0!==this.placeholder;return{"has-value":e||t,"has-label":""!==this.label&&void 0!==this.label,"has-vertical-resize":"vertical"===this.resize&&!this.autogrow,"has-horizontal-resize":"horizontal"===this.resize&&!this.autogrow,"has-no-resize":"none"===this.resize,"has-autogrow":this.autogrow}}},watch:{modelValue(e){this.text=e},text(e){this.autogrow&&(this.$el.dataset.replicatedText=e),this.$emit("update:modelValue",e)}},methods:{onLabelClick(){this.$refs.textarea.focus()}}},J=t.withScopeId("data-v-23109ba1")(((e,n,o,r,i,a)=>(t.openBlock(),t.createBlock("div",{class:["c-Textarea",a.textareaClassObject]},[t.createVNode("textarea",{ref:"textarea",class:"c-Textarea__input",value:i.text,name:o.name,required:o.required,disabled:o.disabled,"aria-label":o.label,placeholder:o.placeholder,onInput:n[1]||(n[1]=e=>i.text=e.target.value)},null,40,["value","name","required","disabled","aria-label","placeholder"]),t.createVNode("span",{class:"c-Textarea__label",title:o.label,onMousedown:n[2]||(n[2]=t.withModifiers((e=>a.onLabelClick(e)),["prevent"]))},t.toDisplayString(o.label),41,["title"])],2))));X.render=J,X.__scopeId="data-v-23109ba1";var G="top",Q="bottom",Z="right",ee="left",te="auto",ne=[G,Q,Z,ee],oe="start",re="end",ie="viewport",ae="popper",se=ne.reduce((function(e,t){return e.concat([t+"-"+oe,t+"-"+re])}),[]),le=[].concat(ne,[te]).reduce((function(e,t){return e.concat([t,t+"-"+oe,t+"-"+re])}),[]),ce=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function de(e){return e?(e.nodeName||"").toLowerCase():null}function ue(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function pe(e){return e instanceof ue(e).Element||e instanceof Element}function fe(e){return e instanceof ue(e).HTMLElement||e instanceof HTMLElement}function he(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ue(e).ShadowRoot||e instanceof ShadowRoot)}var me={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];fe(r)&&de(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});fe(o)&&de(o)&&(Object.assign(o.style,i),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function ve(e){return e.split("-")[0]}function be(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function ye(e){var t=be(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function ge(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&he(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function we(e){return ue(e).getComputedStyle(e)}function xe(e){return["table","td","th"].indexOf(de(e))>=0}function Oe(e){return((pe(e)?e.ownerDocument:e.document)||window.document).documentElement}function ke(e){return"html"===de(e)?e:e.assignedSlot||e.parentNode||(he(e)?e.host:null)||Oe(e)}function Se(e){return fe(e)&&"fixed"!==we(e).position?e.offsetParent:null}function Ee(e){for(var t=ue(e),n=Se(e);n&&xe(n)&&"static"===we(n).position;)n=Se(n);return n&&("html"===de(n)||"body"===de(n)&&"static"===we(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&fe(e)&&"fixed"===we(e).position)return null;for(var n=ke(e);fe(n)&&["html","body"].indexOf(de(n))<0;){var o=we(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function Ce(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var Ae=Math.max,Be=Math.min,Te=Math.round;function De(e,t,n){return Ae(e,Be(t,n))}function _e(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Le(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Ve={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ie(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.offsets,a=e.position,s=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=!0===c?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:Te(Te(t*o)/o)||0,y:Te(Te(n*o)/o)||0}}(i):"function"==typeof c?c(i):i,u=d.x,p=void 0===u?0:u,f=d.y,h=void 0===f?0:f,m=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),b=ee,y=G,g=window;if(l){var w=Ee(n),x="clientHeight",O="clientWidth";w===ue(n)&&"static"!==we(w=Oe(n)).position&&(x="scrollHeight",O="scrollWidth"),w=w,r===G&&(y=Q,h-=w[x]-o.height,h*=s?1:-1),r===ee&&(b=Z,p-=w[O]-o.width,p*=s?1:-1)}var k,S=Object.assign({position:a},l&&Ve);return s?Object.assign({},S,((k={})[y]=v?"0":"",k[b]=m?"0":"",k.transform=(g.devicePixelRatio||1)<2?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",k)):Object.assign({},S,((t={})[y]=v?h+"px":"",t[b]=m?p+"px":"",t.transform="",t))}var Me={passive:!0};var Ne={left:"right",right:"left",bottom:"top",top:"bottom"};function je(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ne[e]}))}var qe={start:"end",end:"start"};function Pe(e){return e.replace(/start|end/g,(function(e){return qe[e]}))}function Re(e){var t=ue(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ke(e){return be(Oe(e)).left+Re(e).scrollLeft}function $e(e){var t=we(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function We(e){return["html","body","#document"].indexOf(de(e))>=0?e.ownerDocument.body:fe(e)&&$e(e)?e:We(ke(e))}function He(e,t){var n;void 0===t&&(t=[]);var o=We(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=ue(o),a=r?[i].concat(i.visualViewport||[],$e(o)?o:[]):o,s=t.concat(a);return r?s:s.concat(He(ke(a)))}function Ue(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ze(e,t){return t===ie?Ue(function(e){var t=ue(e),n=Oe(e),o=t.visualViewport,r=n.clientWidth,i=n.clientHeight,a=0,s=0;return o&&(r=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=o.offsetLeft,s=o.offsetTop)),{width:r,height:i,x:a+Ke(e),y:s}}(e)):fe(t)?function(e){var t=be(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Ue(function(e){var t,n=Oe(e),o=Re(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=Ae(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Ae(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+Ke(e),l=-o.scrollTop;return"rtl"===we(r||n).direction&&(s+=Ae(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Oe(e)))}function Fe(e,t,n){var o="clippingParents"===t?function(e){var t=He(ke(e)),n=["absolute","fixed"].indexOf(we(e).position)>=0&&fe(e)?Ee(e):e;return pe(n)?t.filter((function(e){return pe(e)&&ge(e,n)&&"body"!==de(e)})):[]}(e):[].concat(t),r=[].concat(o,[n]),i=r[0],a=r.reduce((function(t,n){var o=ze(e,n);return t.top=Ae(o.top,t.top),t.right=Be(o.right,t.right),t.bottom=Be(o.bottom,t.bottom),t.left=Ae(o.left,t.left),t}),ze(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ye(e){return e.split("-")[1]}function Xe(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?ve(r):null,a=r?Ye(r):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(i){case G:t={x:s,y:n.y-o.height};break;case Q:t={x:s,y:n.y+n.height};break;case Z:t={x:n.x+n.width,y:l};break;case ee:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?Ce(i):null;if(null!=c){var d="y"===c?"height":"width";switch(a){case oe:t[c]=t[c]-(n[d]/2-o[d]/2);break;case re:t[c]=t[c]+(n[d]/2-o[d]/2)}}return t}function Je(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,i=n.boundary,a=void 0===i?"clippingParents":i,s=n.rootBoundary,l=void 0===s?ie:s,c=n.elementContext,d=void 0===c?ae:c,u=n.altBoundary,p=void 0!==u&&u,f=n.padding,h=void 0===f?0:f,m=_e("number"!=typeof h?h:Le(h,ne)),v=d===ae?"reference":ae,b=e.elements.reference,y=e.rects.popper,g=e.elements[p?v:d],w=Fe(pe(g)?g:g.contextElement||Oe(e.elements.popper),a,l),x=be(b),O=Xe({reference:x,element:y,strategy:"absolute",placement:r}),k=Ue(Object.assign({},y,O)),S=d===ae?k:x,E={top:w.top-S.top+m.top,bottom:S.bottom-w.bottom+m.bottom,left:w.left-S.left+m.left,right:S.right-w.right+m.right},C=e.modifiersData.offset;if(d===ae&&C){var A=C[r];Object.keys(E).forEach((function(e){var t=[Z,Q].indexOf(e)>=0?1:-1,n=[G,Q].indexOf(e)>=0?"y":"x";E[e]+=A[n]*t}))}return E}function Ge(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Qe(e){return[G,Z,Q,ee].some((function(t){return e[t]>=0}))}function Ze(e,t,n){void 0===n&&(n=!1);var o,r,i=Oe(t),a=be(e),s=fe(t),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!n)&&(("body"!==de(t)||$e(i))&&(l=(o=t)!==ue(o)&&fe(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:Re(o)),fe(t)?((c=be(t)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Ke(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function et(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}var tt={placement:"bottom",modifiers:[],strategy:"absolute"};function nt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ot(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?tt:r;return function(e,t,n){void 0===n&&(n=i);var r,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},tt,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:s,setOptions:function(n){u(),s.options=Object.assign({},i,s.options,n),s.scrollParents={reference:pe(e)?He(e):e.contextElement?He(e.contextElement):[],popper:He(t)};var r,a,c=function(e){var t=et(e);return ce.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((r=[].concat(o,s.options.modifiers),a=r.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(a).map((function(e){return a[e]}))));return s.orderedModifiers=c.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var i=r({state:s,name:t,instance:d,options:o}),a=function(){};l.push(i||a)}})),d.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(nt(t,n)){s.rects={reference:Ze(t,Ee(n),"fixed"===s.options.strategy),popper:ye(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<s.orderedModifiers.length;o++)if(!0!==s.reset){var r=s.orderedModifiers[o],i=r.fn,a=r.options,l=void 0===a?{}:a,u=r.name;"function"==typeof i&&(s=i({state:s,options:l,name:u,instance:d})||s)}else s.reset=!1,o=-1}}},update:(r=function(){return new Promise((function(e){d.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(r())}))}))),a}),destroy:function(){u(),c=!0}};if(!nt(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var rt=ot({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,a=o.resize,s=void 0===a||a,l=ue(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,Me)})),s&&l.addEventListener("resize",n.update,Me),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Me)})),s&&l.removeEventListener("resize",n.update,Me)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Xe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:ve(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ie(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ie(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},me,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=void 0===r?[0,0]:r,a=le.reduce((function(e,n){return e[n]=function(e,t,n){var o=ve(e),r=[ee,G].indexOf(o)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*r,[ee,Z].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=void 0===r||r,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,v=t.options.placement,b=ve(v),y=l||(b===v||!h?[je(v)]:function(e){if(ve(e)===te)return[];var t=je(e);return[Pe(e),t,Pe(t)]}(v)),g=[v].concat(y).reduce((function(e,n){return e.concat(ve(n)===te?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?le:l,d=Ye(o),u=d?s?se:se.filter((function(e){return Ye(e)===d})):ne,p=u.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=u);var f=p.reduce((function(t,n){return t[n]=Je(e,{placement:n,boundary:r,rootBoundary:i,padding:a})[ve(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,O=new Map,k=!0,S=g[0],E=0;E<g.length;E++){var C=g[E],A=ve(C),B=Ye(C)===oe,T=[G,Q].indexOf(A)>=0,D=T?"width":"height",_=Je(t,{placement:C,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),L=T?B?Z:ee:B?Q:G;w[D]>x[D]&&(L=je(L));var V=je(L),I=[];if(i&&I.push(_[A]<=0),s&&I.push(_[L]<=0,_[V]<=0),I.every((function(e){return e}))){S=C,k=!1;break}O.set(C,I)}if(k)for(var M=function(e){var t=g.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},N=h?3:1;N>0;N--){if("break"===M(N))break}t.placement!==S&&(t.modifiersData[o]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,v=Je(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),b=ve(t.placement),y=Ye(t.placement),g=!y,w=Ce(b),x="x"===w?"y":"x",O=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C={x:0,y:0};if(O){if(i||s){var A="y"===w?G:ee,B="y"===w?Q:Z,T="y"===w?"height":"width",D=O[w],_=O[w]+v[A],L=O[w]-v[B],V=f?-S[T]/2:0,I=y===oe?k[T]:S[T],M=y===oe?-S[T]:-k[T],N=t.elements.arrow,j=f&&N?ye(N):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},P=q[A],R=q[B],K=De(0,k[T],j[T]),$=g?k[T]/2-V-K-P-E:I-K-P-E,W=g?-k[T]/2+V+K+R+E:M+K+R+E,H=t.elements.arrow&&Ee(t.elements.arrow),U=H?"y"===w?H.clientTop||0:H.clientLeft||0:0,z=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,F=O[w]+$-z-U,Y=O[w]+W-z;if(i){var X=De(f?Be(_,F):_,D,f?Ae(L,Y):L);O[w]=X,C[w]=X-D}if(s){var J="x"===w?G:ee,te="x"===w?Q:Z,ne=O[x],re=ne+v[J],ie=ne-v[te],ae=De(f?Be(re,F):re,ne,f?Ae(ie,Y):ie);O[x]=ae,C[x]=ae-ne}}t.modifiersData[o]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ve(n.placement),l=Ce(s),c=[ee,Z].indexOf(s)>=0?"height":"width";if(i&&a){var d=function(e,t){return _e("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Le(e,ne))}(r.padding,n),u=ye(i),p="y"===l?G:ee,f="y"===l?Q:Z,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],v=Ee(i),b=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,g=d[p],w=b-u[c]-d[f],x=b/2-u[c]/2+y,O=De(g,x,w),k=l;n.modifiersData[o]=((t={})[k]=O,t.centerOffset=O-x,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&ge(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Je(t,{elementContext:"reference"}),s=Je(t,{altBoundary:!0}),l=Ge(a,o),c=Ge(s,r,i),d=Qe(l),u=Qe(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}]}),it="tippy-content",at="tippy-arrow",st="tippy-svg-arrow",lt={passive:!0,capture:!0};function ct(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function dt(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function ut(e,t){return"function"==typeof e?e.apply(void 0,t):e}function pt(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function ft(e){return[].concat(e)}function ht(e,t){-1===e.indexOf(t)&&e.push(t)}function mt(e){return[].slice.call(e)}function vt(){return document.createElement("div")}function bt(e){return["Element","Fragment"].some((function(t){return dt(e,t)}))}function yt(e){return bt(e)?[e]:function(e){return dt(e,"NodeList")}(e)?mt(e):Array.isArray(e)?e:mt(document.querySelectorAll(e))}function gt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function wt(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function xt(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}var Ot={isTouch:!1},kt=0;function St(){Ot.isTouch||(Ot.isTouch=!0,window.performance&&document.addEventListener("mousemove",Et))}function Et(){var e=performance.now();e-kt<20&&(Ot.isTouch=!1,document.removeEventListener("mousemove",Et)),kt=e}function Ct(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var At="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",Bt=/MSIE |Trident\//.test(At),Tt=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Dt=Object.keys(Tt);function _t(e){var t=(e.plugins||[]).reduce((function(t,n){var o=n.name,r=n.defaultValue;return o&&(t[o]=void 0!==e[o]?e[o]:r),t}),{});return Object.assign({},e,{},t)}function Lt(e,t){var n=Object.assign({},t,{content:ut(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(_t(Object.assign({},Tt,{plugins:t}))):Dt).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(r){t[n]=o}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Tt.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Vt(e,t){e.innerHTML=t}function It(e){var t=vt();return!0===e?t.className=at:(t.className=st,bt(e)?t.appendChild(e):Vt(t,e)),t}function Mt(e,t){bt(t.content)?(Vt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Vt(e,t.content):e.textContent=t.content)}function Nt(e){var t=e.firstElementChild,n=mt(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(it)})),arrow:n.find((function(e){return e.classList.contains(at)||e.classList.contains(st)})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function jt(e){var t=vt(),n=vt();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=vt();function r(n,o){var r=Nt(t),i=r.box,a=r.content,s=r.arrow;o.theme?i.setAttribute("data-theme",o.theme):i.removeAttribute("data-theme"),"string"==typeof o.animation?i.setAttribute("data-animation",o.animation):i.removeAttribute("data-animation"),o.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?i.setAttribute("role",o.role):i.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||Mt(a,e.props),o.arrow?s?n.arrow!==o.arrow&&(i.removeChild(s),i.appendChild(It(o.arrow))):i.appendChild(It(o.arrow)):s&&i.removeChild(s)}return o.className=it,o.setAttribute("data-state","hidden"),Mt(o,e.props),t.appendChild(n),n.appendChild(o),r(e.props,e.props),{popper:t,onUpdate:r}}jt.$$tippy=!0;var qt=1,Pt=[],Rt=[];function Kt(e,t){var n,o,r,i,a,s,l,c,d,u=Lt(e,Object.assign({},Tt,{},_t((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),p=!1,f=!1,h=!1,m=!1,v=[],b=pt(Y,u.interactiveDebounce),y=qt++,g=(d=u.plugins).filter((function(e,t){return d.indexOf(e)===t})),w={id:y,reference:e,popper:vt(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:g,clearDelayTimeouts:function(){clearTimeout(o),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){if(w.state.isDestroyed)return;I("onBeforeUpdate",[w,t]),z();var n=w.props,o=Lt(e,Object.assign({},w.props,{},t,{ignoreAttributes:!0}));w.props=o,U(),n.interactiveDebounce!==o.interactiveDebounce&&(j(),b=pt(Y,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?ft(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded");N(),V(),k&&k(n,o);w.popperInstance&&(Q(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));I("onAfterUpdate",[w,t])},setContent:function(e){w.setProps({content:e})},show:function(){var e=w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,o=Ot.isTouch&&!w.props.touch,r=ct(w.props.duration,0,Tt.duration);if(e||t||n||o)return;if(T().hasAttribute("disabled"))return;if(I("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,B()&&(O.style.visibility="visible");V(),K(),w.state.isMounted||(O.style.transition="none");if(B()){var i=_(),a=i.box,s=i.content;gt([a,s],0)}l=function(){var e;if(w.state.isVisible&&!m){if(m=!0,O.offsetHeight,O.style.transition=w.props.moveTransition,B()&&w.props.animation){var t=_(),n=t.box,o=t.content;gt([n,o],r),wt([n,o],"visible")}M(),N(),ht(Rt,w),null==(e=w.popperInstance)||e.forceUpdate(),w.state.isMounted=!0,I("onMount",[w]),w.props.animation&&B()&&function(e,t){W(e,t)}(r,(function(){w.state.isShown=!0,I("onShown",[w])}))}},function(){var e,t=w.props.appendTo,n=T();e=w.props.interactive&&t===Tt.appendTo||"parent"===t?n.parentNode:ut(t,[n]);e.contains(O)||e.appendChild(O);Q()}()},hide:function(){var e=!w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,o=ct(w.props.duration,1,Tt.duration);if(e||t||n)return;if(I("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,m=!1,p=!1,B()&&(O.style.visibility="hidden");if(j(),$(),V(),B()){var r=_(),i=r.box,a=r.content;w.props.animation&&(gt([i,a],o),wt([i,a],"hidden"))}M(),N(),w.props.animation?B()&&function(e,t){W(e,(function(){!w.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&t()}))}(o,w.unmount):w.unmount()},hideWithInteractivity:function(e){D().addEventListener("mousemove",b),ht(Pt,b),b(e)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){w.state.isVisible&&w.hide();if(!w.state.isMounted)return;Z(),ee().forEach((function(e){e._tippy.unmount()})),O.parentNode&&O.parentNode.removeChild(O);Rt=Rt.filter((function(e){return e!==w})),w.state.isMounted=!1,I("onHidden",[w])},destroy:function(){if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),z(),delete e._tippy,w.state.isDestroyed=!0,I("onDestroy",[w])}};if(!u.render)return w;var x=u.render(w),O=x.popper,k=x.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+w.id,w.popper=O,e._tippy=w,O._tippy=w;var S=g.map((function(e){return e.fn(w)})),E=e.hasAttribute("aria-expanded");return U(),N(),V(),I("onCreate",[w]),u.showOnCreate&&te(),O.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()})),O.addEventListener("mouseleave",(function(e){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(D().addEventListener("mousemove",b),b(e))})),w;function C(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function A(){return"hold"===C()[0]}function B(){var e;return!!(null==(e=w.props.render)?void 0:e.$$tippy)}function T(){return c||e}function D(){var e,t,n=T().parentNode;return n?(null==(t=ft(n)[0])||null==(e=t.ownerDocument)?void 0:e.body)?t.ownerDocument:document:document}function _(){return Nt(O)}function L(e){return w.state.isMounted&&!w.state.isVisible||Ot.isTouch||a&&"focus"===a.type?0:ct(w.props.delay,e?0:1,Tt.delay)}function V(){O.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",O.style.zIndex=""+w.props.zIndex}function I(e,t,n){var o;(void 0===n&&(n=!0),S.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(o=w.props)[e].apply(o,t)}function M(){var t=w.props.aria;if(t.content){var n="aria-"+t.content,o=O.id;ft(w.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(w.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var r=t&&t.replace(o,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function N(){!E&&w.props.aria.expanded&&ft(w.props.triggerTarget||e).forEach((function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===T()?"true":"false"):e.removeAttribute("aria-expanded")}))}function j(){D().removeEventListener("mousemove",b),Pt=Pt.filter((function(e){return e!==b}))}function q(e){if(!(Ot.isTouch&&(h||"mousedown"===e.type)||w.props.interactive&&O.contains(e.target))){if(T().contains(e.target)){if(Ot.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else I("onClickOutside",[w,e]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),f=!0,setTimeout((function(){f=!1})),w.state.isMounted||$())}}function P(){h=!0}function R(){h=!1}function K(){var e=D();e.addEventListener("mousedown",q,!0),e.addEventListener("touchend",q,lt),e.addEventListener("touchstart",R,lt),e.addEventListener("touchmove",P,lt)}function $(){var e=D();e.removeEventListener("mousedown",q,!0),e.removeEventListener("touchend",q,lt),e.removeEventListener("touchstart",R,lt),e.removeEventListener("touchmove",P,lt)}function W(e,t){var n=_().box;function o(e){e.target===n&&(xt(n,"remove",o),t())}if(0===e)return t();xt(n,"remove",s),xt(n,"add",o),s=o}function H(t,n,o){void 0===o&&(o=!1),ft(w.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),v.push({node:e,eventType:t,handler:n,options:o})}))}function U(){var e;A()&&(H("touchstart",F,{passive:!0}),H("touchend",X,{passive:!0})),(e=w.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(H(e,F),e){case"mouseenter":H("mouseleave",X);break;case"focus":H(Bt?"focusout":"blur",J);break;case"focusin":H("focusout",J)}}))}function z(){v.forEach((function(e){var t=e.node,n=e.eventType,o=e.handler,r=e.options;t.removeEventListener(n,o,r)})),v=[]}function F(e){var t,n=!1;if(w.state.isEnabled&&!G(e)&&!f){var o="focus"===(null==(t=a)?void 0:t.type);a=e,c=e.currentTarget,N(),!w.state.isVisible&&dt(e,"MouseEvent")&&Pt.forEach((function(t){return t(e)})),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||p)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:te(e),"click"===e.type&&(p=!n),n&&!o&&ne(e)}}function Y(e){var t=e.target,n=T().contains(t)||O.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,i=e.props.interactiveBorder,a=r.placement.split("-")[0],s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,d="right"===a?s.left.x:0,u="left"===a?s.right.x:0,p=t.top-o+l>i,f=o-t.bottom-c>i,h=t.left-n+d>i,m=n-t.right-u>i;return p||f||h||m}))}(ee().concat(O).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean),e)&&(j(),ne(e))}function X(e){G(e)||w.props.trigger.indexOf("click")>=0&&p||(w.props.interactive?w.hideWithInteractivity(e):ne(e))}function J(e){w.props.trigger.indexOf("focusin")<0&&e.target!==T()||w.props.interactive&&e.relatedTarget&&O.contains(e.relatedTarget)||ne(e)}function G(e){return!!Ot.isTouch&&A()!==e.type.indexOf("touch")>=0}function Q(){Z();var t=w.props,n=t.popperOptions,o=t.placement,r=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,s=B()?Nt(O).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||T()}:e,d=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(B()){var n=_().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];B()&&s&&d.push({name:"arrow",options:{element:s,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),w.popperInstance=rt(c,O,Object.assign({},n,{placement:o,onFirstUpdate:l,modifiers:d}))}function Z(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ee(){return mt(O.querySelectorAll("[data-tippy-root]"))}function te(e){w.clearDelayTimeouts(),e&&I("onTrigger",[w,e]),K();var t=L(!0),n=C(),r=n[0],i=n[1];Ot.isTouch&&"hold"===r&&i&&(t=i),t?o=setTimeout((function(){w.show()}),t):w.show()}function ne(e){if(w.clearDelayTimeouts(),I("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=L(!1);t?r=setTimeout((function(){w.state.isVisible&&w.hide()}),t):i=requestAnimationFrame((function(){w.hide()}))}}else $()}}function $t(e,t){void 0===t&&(t={});var n=Tt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",St,lt),window.addEventListener("blur",Ct);var o=Object.assign({},t,{plugins:n}),r=yt(e).reduce((function(e,t){var n=t&&Kt(t,o);return n&&e.push(n),e}),[]);return bt(e)?r[0]:r}$t.defaultProps=Tt,$t.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Tt[t]=e[t]}))},$t.currentInput=Ot,Object.assign({},me,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),$t.setDefaultProps({render:jt});const Wt={name:"Tooltip",props:{content:{type:String,required:!0}},mounted(){$t(this.$el,{content:this.content})}},Ht=t.withScopeId("data-v-21213774");t.pushScopeId("data-v-21213774");const Ut={class:"c-Tooltip",tabindex:"0"};t.popScopeId();const zt=Ht(((e,n,o,r,i,a)=>(t.openBlock(),t.createBlock("div",Ut,[t.renderSlot(e.$slots,"default",{},void 0,!0)]))));Wt.render=zt,Wt.__scopeId="data-v-21213774";var Ft={OPEN_MODAL:"OPEN_MODAL",CLOSE_MODAL:"CLOSE_MODAL",OPEN_SIDEBAR:"OPEN_MODAL",CLOSE_SIDEBAR:"CLOSE_MODAL"};var Yt,Xt={all:Yt=Yt||new Map,on:function(e,t){var n=Yt.get(e);n?n.push(t):Yt.set(e,[t])},off:function(e,t){var n=Yt.get(e);n&&(t?n.splice(n.indexOf(t)>>>0,1):Yt.set(e,[]))},emit:function(e,t){var n=Yt.get(e);n&&n.slice().map((function(e){e(t)})),(n=Yt.get("*"))&&n.slice().map((function(n){n(e,t)}))}};let Jt,Gt,Qt,Zt,en,tn,nn,on,rn,an;const sn=e=>{const t=e||navigator.userAgent,n=/(iPad).*OS\s([\d_]+)/.test(t),o=!n&&/(iPhone\sOS)\s([\d_]+)/.test(t);return/(Android);?[\s/]+([\d.]+)?/.test(t)||o||n},ln=()=>{sn()&&(()=>{const e=document.documentElement,t=document.body;an=e.scrollTop||t.scrollTop,Zt=e.style.height,en=e.style.overflow,tn=t.style.top,nn=t.style.width,on=t.style.height,rn=t.style.position,Jt=t.style.overflow,e.style.height="100%",e.style.overflow="hidden",t.style.top=`-${an}px`,t.style.width="100%",t.style.height="auto",t.style.position="fixed",t.style.overflow="hidden"})(),(()=>{const e=document.body,t=window.innerWidth-e.clientWidth;Jt=e.style.overflow,Gt=e.style.boxSizing,Qt=e.style.paddingRight,e.style.overflow="hidden",e.style.boxSizing="border-box",e.style.paddingRight=`${t+e.style.paddingRight}px`})()},cn=()=>{sn()&&(()=>{const e="scrollBehavior"in document.documentElement.style,t=document.documentElement,n=document.body;t.style.height=Zt,t.style.overflow=en,n.style.top=tn,n.style.width=nn,n.style.height=on,n.style.position=rn,n.style.overflow=Jt,e?window.scrollTo({top:an,behavior:"auto"}):window.scrollTo(0,an),Jt="",Zt="",en="",tn="",nn="",on="",rn="",an=""})(),(()=>{const e=document.body;e.style.overflow=Jt,e.style.boxSizing=Gt,e.style.paddingRight=Qt,Jt="",Gt="",Qt=""})()};e.Checkbox=r,e.EVENTS=Ft,e.EventBus=Xt,e.Input=c,e.Link=u,e.Modal=E,e.ModalManager=T,e.Progress=D,e.Radio=I,e.Sidebar=R,e.SidebarManager=W,e.Switch=H,e.Textarea=X,e.Tooltip=Wt,e.ckButton=o,e.lockScroll=ln,e.unlockScroll=cn,Object.defineProperty(e,"__esModule",{value:!0}),e[Symbol.toStringTag]="Module"}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).cleek={},e.Vue)}(this,(function(e,t){"use strict";const o=t.withScopeId("data-v-5c12ad92");t.pushScopeId("data-v-5c12ad92");const l=t.createVNode("div",{class:"ck-checkbox__element"},null,-1),n={key:0,class:"c-Checkbox__label"};t.popScopeId();const s=o(((e,o,s,i,d,c)=>(t.openBlock(),t.createBlock("label",t.mergeProps({class:"ck-checkbox"},c.checkboxAttributes,{onKeydown:o[2]||(o[2]=t.withKeys(t.withModifiers((()=>{}),["prevent"]),["space"])),onKeyup:[o[3]||(o[3]=t.withKeys((e=>c.onTrigger()),["enter"])),o[4]||(o[4]=t.withKeys((e=>c.onTrigger()),["space"]))]}),[t.createVNode("input",{class:"ck-checkbox__input","aria-hidden":"true",type:"checkbox",disabled:s.disabled,checked:c.value,onChange:o[1]||(o[1]=e=>{c.value=e.target.checked,c.onChange(e)})},null,40,["disabled","checked"]),l,e.$slots.default?(t.openBlock(),t.createBlock("span",n,[t.renderSlot(e.$slots,"default",{},void 0,!0)])):t.createCommentVNode("",!0)],16))));const i={name:"CkCheckbox",props:{modelValue:{type:Boolean,default:!1},label:{type:String,default:void 0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},checkboxAttributes(){return{"aria-disabled":this.disabled,tabindex:this.disabled?void 0:"0"}}},methods:{onChange(e){this.$emit("change",e)},onTrigger(){this.value=!this.value}}};i.render=s,i.__scopeId="data-v-5c12ad92";var d={OPEN_MODAL:"OPEN_MODAL",CLOSE_MODAL:"CLOSE_MODAL",OPEN_SIDEBAR:"OPEN_MODAL",CLOSE_SIDEBAR:"CLOSE_MODAL"};var c,a={all:c=c||new Map,on:function(e,t){var o=c.get(e);o?o.push(t):c.set(e,[t])},off:function(e,t){var o=c.get(e);o&&(t?o.splice(o.indexOf(t)>>>0,1):c.set(e,[]))},emit:function(e,t){var o=c.get(e);o&&o.slice().map((function(e){e(t)})),(o=c.get("*"))&&o.slice().map((function(o){o(e,t)}))}};let r,u,h,p,y,g,f,b,v,m;const k=e=>{const t=e||navigator.userAgent,o=/(iPad).*OS\s([\d_]+)/.test(t),l=!o&&/(iPhone\sOS)\s([\d_]+)/.test(t);return/(Android);?[\s/]+([\d.]+)?/.test(t)||l||o},S=()=>{k()&&(()=>{const e=document.documentElement,t=document.body;m=e.scrollTop||t.scrollTop,p=e.style.height,y=e.style.overflow,g=t.style.top,f=t.style.width,b=t.style.height,v=t.style.position,r=t.style.overflow,e.style.height="100%",e.style.overflow="hidden",t.style.top=`-${m}px`,t.style.width="100%",t.style.height="auto",t.style.position="fixed",t.style.overflow="hidden"})(),(()=>{const e=document.body,t=window.innerWidth-e.clientWidth;r=e.style.overflow,u=e.style.boxSizing,h=e.style.paddingRight,e.style.overflow="hidden",e.style.boxSizing="border-box",e.style.paddingRight=`${t+e.style.paddingRight}px`})()},w=()=>{k()&&(()=>{const e="scrollBehavior"in document.documentElement.style,t=document.documentElement,o=document.body;t.style.height=p,t.style.overflow=y,o.style.top=g,o.style.width=f,o.style.height=b,o.style.position=v,o.style.overflow=r,e?window.scrollTo({top:m,behavior:"auto"}):window.scrollTo(0,m),r="",p="",y="",g="",f="",b="",v="",m=""})(),(()=>{const e=document.body;e.style.overflow=r,e.style.boxSizing=u,e.style.paddingRight=h,r="",u="",h=""})()};var _=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",ckCheckbox:i,EVENTS:d,EventBus:a,lockScroll:S,unlockScroll:w});e.EVENTS=d,e.EventBus=a,e.ckCheckbox=i,e.default=function(e,t){console.log("arranco paquete"),console.log("options",t),Object.entries(_).forEach((([t,o])=>{e.component(t,o)}))},e.lockScroll=S,e.unlockScroll=w,Object.defineProperty(e,"__esModule",{value:!0}),e[Symbol.toStringTag]="Module"}));
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- button[data-v-1c97e1b3]{cursor:pointer;display:inline-flex;align-items:center;height:32px;padding:0 16px;border-radius:4px;position:relative}button[data-v-1c97e1b3]::before{content:'';position:absolute;top:0;right:0;bottom:0;left:0;border-radius:4px;z-index:1;opacity:0;transition:opacity .15s ease-in-out;background-color:#15b0ce}button[data-v-1c97e1b3]:hover::before{opacity:.1}button[data-v-1c97e1b3]:active::before{opacity:.2}button.is-filled[data-v-1c97e1b3]{background-color:#15b0ce;border:1px solid #15b0ce;color:#fff}button.is-outlined[data-v-1c97e1b3]{background-color:transparent;border:1px solid #15b0ce;color:#15b0ce}button.is-text[data-v-1c97e1b3]{background-color:transparent;border:none;color:#15b0ce}button.is-filled[data-v-1c97e1b3]:disabled,button.is-outlined[data-v-1c97e1b3]:disabled,button.is-text[data-v-1c97e1b3]:disabled{border-color:#eee;background-color:#eee;cursor:not-allowed}button[data-v-1c97e1b3]:disabled::before{display:none}button:disabled>span[data-v-1c97e1b3]{color:#757575}.c-Checkbox[data-v-3a8a40ec]{cursor:pointer;position:relative;display:flex;align-items:center;width:-moz-fit-content;width:fit-content}.c-Checkbox input[data-v-3a8a40ec]{display:none}.c-Checkbox__element[data-v-3a8a40ec]{position:relative;display:block;width:24px;height:24px;border:2px solid;border-radius:4px;border-color:#000;transition:.15s}.c-Checkbox__element[data-v-3a8a40ec]::after{content:'';display:block;position:absolute;left:2px;top:-4px;width:8px;height:14px;border-width:0 3px 3px 0;border-style:solid;border-color:#fff;transform-origin:bottom left;transform:rotate(45deg);opacity:0}.c-Checkbox__label[data-v-3a8a40ec]{user-select:none;margin-left:8px}.c-Checkbox__input:checked+.c-Checkbox__element[data-v-3a8a40ec]{background-color:#000}.c-Checkbox__input:checked+.c-Checkbox__element[data-v-3a8a40ec]::after{opacity:1}.c-Checkbox[aria-disabled=true][data-v-3a8a40ec]{cursor:not-allowed}.c-Checkbox[aria-disabled=true] .c-Checkbox__element[data-v-3a8a40ec]{border-color:#757575;background-color:#e0e0e0}.c-Checkbox[aria-disabled=true] .c-Checkbox__input:checked+.c-Checkbox__element[data-v-3a8a40ec]{background-color:#757575}.c-Checkbox[aria-disabled=true] .c-Checkbox__element[data-v-3a8a40ec]::after{border-color:#757575}.c-Checkbox[aria-disabled=true] .c-Checkbox__input:checked+.c-Checkbox__element[data-v-3a8a40ec]::after{border-color:#e0e0e0}.c-Input[data-v-235d669a]{position:relative;width:100%;background:#fff}.c-Input__input[data-v-235d669a]{height:48px;width:100%;outline:0;border:1px solid #000;border-radius:4px;background-color:transparent;font-size:16px;color:#000;padding:8px;cursor:pointer;position:relative;transition:border 150ms ease-in-out,box-shadow 150ms ease-in-out;z-index:1}.c-Input__label[data-v-235d669a]{display:block;font-size:16px;color:#000;cursor:pointer;position:absolute;top:12px;left:9px;z-index:2;transition:150ms ease-in-out}.c-Input__input[data-v-235d669a]:focus{box-shadow:inset 0 0 0 1px #000}.c-Input__input:focus+.c-Input__label[data-v-235d669a]{top:5px;font-size:12px}.c-Input.has-value .c-Input__label[data-v-235d669a]{top:5px;font-size:12px}.c-Input.has-label .c-Input__input[data-v-235d669a]{padding:20px 8px 6px 8px}.c-Input__input[data-v-235d669a]:invalid{border-color:#e53935;color:#e53935}.c-Input__input[data-v-235d669a]:invalid:focus{box-shadow:inset 0 0 0 1px #e53935}.c-Input__input:invalid+.c-Input__label[data-v-235d669a]{color:#e53935}.c-Input__input[data-v-235d669a]:disabled{cursor:not-allowed;border-color:#757575;color:#757575;background-color:#e0e0e0}.c-Input__input:disabled+.c-Input__label[data-v-235d669a]{color:#757575}.c-Link[data-v-165563c6]{display:flex;align-items:center;color:#3843d0;font-weight:600;letter-spacing:.5px;line-height:1.5;white-space:nowrap;width:-moz-fit-content;width:fit-content;cursor:pointer}.c-Link[data-v-165563c6]:hover{text-decoration:underline}.c-Link[data-v-165563c6]:active{color:#1111a6;text-decoration:none}.c-Link[aria-disabled=true][data-v-165563c6]{color:#8d98aa;cursor:not-allowed}.c-Link[aria-disabled=true][data-v-165563c6]:hover{text-decoration:none}.c-Link__label[data-v-165563c6]{user-select:none}.fade-enter-active[data-v-c8e15808],.fade-leave-active[data-v-c8e15808]{transition:opacity .2s}.fade-enter-from[data-v-c8e15808],.fade-leave-to[data-v-c8e15808]{opacity:0}.c-Modal__overlay[data-v-c8e15808]{cursor:pointer;width:100%;height:100%;position:fixed;top:0;left:0;z-index:10;background-color:rgba(0,0,0,.5)}.c-Modal[data-v-c8e15808]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:11;background-color:#fff;border-radius:4px;box-shadow:0 10px 10px rgba(174,185,203,.26),0 14px 28px rgba(174,185,203,.25);display:flex;flex-direction:column;max-height:90%;max-width:90%}@media (max-width:768px){.c-Modal[data-v-c8e15808]{max-height:unset;max-width:unset;width:100%;height:100%}}.c-Progress[data-v-e36ffd7e]{position:relative}.c-Progress__background[data-v-e36ffd7e]{border-radius:16px;border:1px solid #000;height:16px}.c-Progress__fill[data-v-e36ffd7e]{position:absolute;top:0;left:0;background-color:#000;border:1px solid #000;border-radius:8px;height:16px;min-width:16px;transition:.2s cubic-bezier(.4, 0, .6, 1)}.c-Radio[data-v-4e0cebba]{cursor:pointer;position:relative;display:flex;align-items:center;width:-moz-fit-content;width:fit-content}.c-Radio+.c-Radio[data-v-4e0cebba]{margin-top:8px}.c-Radio input[data-v-4e0cebba]{display:none}.c-Radio__element[data-v-4e0cebba]{position:relative;display:block;width:24px;height:24px;border:1px solid;border-radius:24px;border-color:#000}.c-Radio__element[data-v-4e0cebba]::after{content:'';display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:16px;height:16px;border-radius:16px;background-color:#000;opacity:0;transition:.15s}.c-Radio__input:checked+.c-Radio__element[data-v-4e0cebba]::after{opacity:1}.c-Radio__label[data-v-4e0cebba]{user-select:none;margin-left:8px}.c-Radio[aria-disabled=true][data-v-4e0cebba]{cursor:not-allowed}.c-Radio[aria-disabled=true] .c-Radio__element[data-v-4e0cebba]{border-color:#757575;background-color:#e0e0e0}.c-Radio[aria-disabled=true] .c-Radio__element[data-v-4e0cebba]::after{background-color:#757575}.fade-enter-active[data-v-14025979],.fade-leave-active[data-v-14025979]{transition:opacity .2s}.fade-enter-from[data-v-14025979],.fade-leave-to[data-v-14025979]{opacity:0}.slideFromRight-enter-active[data-v-14025979],.slideFromRight-leave-active[data-v-14025979]{transform:unset;transition:transform .2s}.slideFromRight-enter-from[data-v-14025979],.slideFromRight-leave-to[data-v-14025979]{transform:translateX(100%)}.slideFromLeft-enter-active[data-v-14025979],.slideFromLeft-leave-active[data-v-14025979]{transform:unset;transition:transform .2s}.slideFromLeft-enter-from[data-v-14025979],.slideFromLeft-leave-to[data-v-14025979]{transform:translateX(-100%)}.c-Sidebar__overlay[data-v-14025979]{cursor:pointer;width:100%;height:100%;position:fixed;top:0;left:0;z-index:10;background-color:rgba(0,0,0,.5)}.c-Sidebar[data-v-14025979]{position:fixed;top:0;z-index:11;background-color:#fff;box-shadow:0 10px 10px rgba(174,185,203,.26),0 14px 28px rgba(174,185,203,.25);display:flex;flex-direction:column;height:100%;width:40%}.c-Sidebar.is-left[data-v-14025979]{left:0}.c-Sidebar.is-right[data-v-14025979]{right:0}@media (max-width:768px){.c-Sidebar[data-v-14025979]{width:100%}}.c-Switch[data-v-26fa8abe]{cursor:pointer;position:relative;display:flex;align-items:center;width:-moz-fit-content;width:fit-content}.c-Switch input[data-v-26fa8abe]{display:none}.c-Switch__slider[data-v-26fa8abe]{position:relative;display:block;width:48px;height:24px;border:2px solid #000;border-radius:24px;background-color:#fff;transition:.15s}.c-Switch__slider[data-v-26fa8abe]:before{content:'';border-radius:24px;position:absolute;position:absolute;height:16px;width:16px;left:2px;top:2px;background-color:#000;transition:.15s}.c-Switch__label[data-v-26fa8abe]{user-select:none;margin-left:8px}.c-Switch__input:checked+.c-Switch__slider[data-v-26fa8abe]{border-color:#101010;background-color:#101010}.c-Switch__input:focus+.c-Switch__slider[data-v-26fa8abe]{box-shadow:0 0 1px #101010}.c-Switch__input:checked+.c-Switch__slider[data-v-26fa8abe]:before{background-color:#fff;transform:translate(24px)}.c-Switch[aria-disabled=true][data-v-26fa8abe]{cursor:not-allowed}.c-Switch[aria-disabled=true] .c-Switch__slider[data-v-26fa8abe]{border:2px solid #757575;background-color:#e0e0e0}.c-Switch[aria-disabled=true] .c-Switch__input:checked+.c-Switch__slider[data-v-26fa8abe]{border:2px solid #757575;background-color:#757575}.c-Switch[aria-disabled=true] .c-Switch__slider[data-v-26fa8abe]:before{background-color:#757575}.c-Switch[aria-disabled=true] .c-Switch__input:checked+.c-Switch__slider[data-v-26fa8abe]:before{background-color:#e0e0e0;transform:translate(24px)}.c-Textarea[data-v-23109ba1]{position:relative;width:100%;height:100%}.c-Textarea__input[data-v-23109ba1]{overflow:auto;min-height:90px;min-width:240px;width:100%;height:100%;outline:0;border:1px solid #000;border-radius:4px;background-color:transparent;font-size:16px;line-height:24px;color:#000;padding:8px;cursor:pointer;position:relative;transition:border 150ms ease-in-out,box-shadow 150ms ease-in-out;z-index:1}.c-Textarea__label[data-v-23109ba1]{display:block;font-size:16;color:#000;cursor:pointer;position:absolute;top:12px;left:9px;z-index:2;transition:150ms ease-in-out;width:calc(100% - 16px)}.c-Textarea__input[data-v-23109ba1]:focus{box-shadow:inset 0 0 0 1px #000}.c-Textarea__input:focus+.c-Textarea__label[data-v-23109ba1]{top:5px;font-size:12px}.c-Textarea.has-value .c-Textarea__label[data-v-23109ba1]{top:5px;font-size:12px}.c-Textarea.has-label .c-Textarea__input[data-v-23109ba1]{padding:20px 8px 6px 8px}.c-Textarea__input[data-v-23109ba1]:invalid{border-color:#e53935;color:#e53935}.c-Textarea__input[data-v-23109ba1]:invalid:focus{box-shadow:inset 0 0 0 1px #e53935}.c-Textarea__input:invalid+.c-Textarea__label[data-v-23109ba1]{color:#e53935}.c-Textarea__input[data-v-23109ba1]:disabled{cursor:not-allowed;border-color:#757575;color:#757575;background-color:#e0e0e0}.c-Textarea__input:disabled+.c-Textarea__label[data-v-23109ba1]{cursor:not-allowed;color:#757575}.c-Textarea.has-vertical-resize .c-Textarea__input[data-v-23109ba1]{resize:vertical}.c-Textarea.has-horizontal-resize .c-Textarea__input[data-v-23109ba1]{resize:horizontal}.c-Textarea.has-no-resize .c-Textarea__input[data-v-23109ba1]{resize:none}.c-Textarea.has-autogrow[data-v-23109ba1]{display:grid}.c-Textarea.has-autogrow[data-v-23109ba1]::after{content:attr(data-replicated-text) ' ';white-space:pre-wrap;visibility:hidden;grid-area:1/1/2/2;border:1px solid transparent;font-size:16px;line-height:24px;padding:8px}.c-Textarea.has-autogrow.has-label[data-v-23109ba1]::after{padding:20px 8px 6px 8px}.c-Textarea.has-autogrow .c-Textarea__input[data-v-23109ba1]{resize:none;overflow:hidden;grid-area:1/1/2/2}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.c-Tooltip[data-v-21213774]{width:-moz-fit-content;width:fit-content}
1
+ .ck-checkbox span[data-v-5c12ad92]{margin-left:.25rem}.ck-checkbox[data-v-5c12ad92]{cursor:pointer;position:relative;display:flex;align-items:center;width:-moz-fit-content;width:fit-content}.ck-checkbox input[data-v-5c12ad92]{display:none}.ck-checkbox__element[data-v-5c12ad92]{position:relative;display:block;width:24px;height:24px;border:2px solid;border-radius:4px;border-color:#15b0ce;transition:.15s}.ck-checkbox__element[data-v-5c12ad92]::after{content:'';display:block;position:absolute;left:2px;top:-4px;width:8px;height:14px;border-width:0 3px 3px 0;border-style:solid;border-color:#fff;transform-origin:bottom left;transform:rotate(45deg);opacity:0}.ck-checkbox__label[data-v-5c12ad92]{user-select:none;margin-left:8px}.ck-checkbox__input:checked+.ck-checkbox__element[data-v-5c12ad92]{background-color:#15b0ce}.ck-checkbox__input:checked+.ck-checkbox__element[data-v-5c12ad92]::after{opacity:1}.ck-checkbox[aria-disabled=true][data-v-5c12ad92]{cursor:not-allowed}.ck-checkbox[aria-disabled=true] .ck-checkbox__element[data-v-5c12ad92]{border-color:#757575;background-color:#e0e0e0}.ck-checkbox[aria-disabled=true] .ck-checkbox__input[data-v-5c12ad92]:checked,.ck-checkbox[aria-disabled=true]+.ck-checkbox__element[data-v-5c12ad92]{background-color:#757575}.ck-checkbox[aria-disabled=true] .ck-checkbox[aria-disabled=true] .ck-checkbox__element[data-v-5c12ad92]::after{border-color:#757575}.ck-checkbox[aria-disabled=true] .ck-checkbox[aria-disabled=true] .ck-checkbox__input[data-v-5c12ad92]:checked,.ck-checkbox[aria-disabled=true] .ck-checkbox[aria-disabled=true]+.ck-checkbox__element[data-v-5c12ad92]::after{border-color:#e0e0e0}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cleek",
3
- "version": "1.3.2",
3
+ "version": "1.4.1",
4
4
  "description": "Moon based ux Vue library",
5
5
  "repository": "",
6
6
  "author": "Quantic Onion",
@@ -40,13 +40,20 @@
40
40
  "prettier": "^2.3.2",
41
41
  "rollup-plugin-visualizer": "^5.5.2",
42
42
  "vite": "^2.4.3",
43
- "vitepress": "^0.15.6"
43
+ "vitepress": "^0.21.4"
44
44
  },
45
45
  "dependencies": {
46
+ "@fortawesome/fontawesome-svg-core": "^1.2.36",
47
+ "@fortawesome/free-brands-svg-icons": "^5.15.4",
48
+ "@fortawesome/free-regular-svg-icons": "^5.15.4",
49
+ "@fortawesome/free-solid-svg-icons": "^5.15.4",
50
+ "@fortawesome/vue-fontawesome": "^3.0.0-5",
46
51
  "mitt": "^3.0.0",
47
52
  "pug": "^3.0.2",
48
53
  "stylus": "^0.56.0",
49
54
  "tabbable": "^5.2.0",
50
- "tippy.js": "^6.3.1"
55
+ "tippy.js": "^6.3.1",
56
+ "vue-perfect-scrollbar": "^0.2.1",
57
+ "vue-select": "4.0.0-beta.1"
51
58
  }
52
59
  }