UNPKG

buefy

Version:

Lightweight UI components for Vue.js (v3) based on Bulma

2 lines 330 kB
/*! Buefy v3.0.2 | MIT License | github.com/buefy/buefy */ import{Fragment as e,Comment as t,Text as i,Static as s,defineComponent as a,h as n,resolveComponent as o,createElementBlock as l,openBlock as r,normalizeClass as d,createBlock as u,renderSlot as c,createCommentVNode as h,createTextVNode as p,toDisplayString as m,withCtx as f,createVNode as g,renderList as b,resolveDynamicComponent as v,mergeProps as y,withDirectives as k,vModelDynamic as w,vModelText as S,withKeys as C,withModifiers as D,Transition as x,createElementVNode as M,normalizeStyle as $,vShow as B,normalizeProps as V,guardReactiveProps as T,vModelCheckbox as P,resolveDirective as O,createSlots as I,vModelSelect as A,toHandlers as F,createApp as N,vModelRadio as L,toHandlerKey as E,camelize as R,toRaw as z}from"vue";var H=Object.defineProperty,j=Math.pow,U=(e,t,i)=>((e,t,i)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,t+"",i);const _=["red","green","blue","alpha"],W={transparent:"#00000000",black:"#000000",silver:"#c0c0c0",gray:"#808080",white:"#ffffff",maroon:"#800000",red:"#ff0000",purple:"#800080",fuchsia:"#ff00ff",green:"#008000",lime:"#00ff00",olive:"#808000",yellow:"#ffff00",navy:"#000080",blue:"#0000ff",teal:"#008080",aqua:"#00ffff",orange:"#ffa500",aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",oldlace:"#fdf5e6",olivedrab:"#6b8e23",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellowgreen:"#9acd32",rebeccapurple:"#663399"};class Y extends Error{constructor(){super("ColorTypeError: type must be hex(a), rgb(a) or hsl(a)")}}class K{constructor(...e){if(U(this,"$channels"),e.length>0)return K.parse(...e);this.$channels=new Uint8Array(_.length)}get red(){return this.$channels[0]}set red(e){Number.isNaN(e/1)||(this.$channels[0]=Math.min(255,Math.max(0,e)))}get green(){return this.$channels[1]}set green(e){Number.isNaN(e/1)||(this.$channels[1]=Math.min(255,Math.max(0,e)))}get blue(){return this.$channels[2]}set blue(e){Number.isNaN(e/1)||(this.$channels[2]=Math.min(255,Math.max(0,e)))}get alpha(){return this.$channels[3]}set alpha(e){Number.isNaN(e/1)||(this.$channels[3]=Math.min(255,Math.max(0,e)))}get hue(){return this.getHue()}set hue(e){Number.isNaN(e/1)||this.setHue(e)}get saturation(){return this.getSaturation()}set saturation(e){Number.isNaN(e/1)||this.setSaturation(e)}get lightness(){return this.getLightness()}set lightness(e){Number.isNaN(e/1)||this.setLightness(e)}getHue(){const[e,t,i]=Array.from(this.$channels).map((e=>e/255)),[s,a]=[Math.min(e,t,i),Math.max(e,t,i)],n=a-s;let o=0;if(0===n)return o;for(o=e===a?(t-i)/n%6:t===a?(i-e)/n+2:(e-t)/n+4,o*=60;o!==-1/0&&o<0;)o+=360;return Math.round(o%360)}setHue(e){const t=K.fromHSL(e,this.saturation,this.lightness,this.alpha/255);for(let e=0;e<this.$channels.length;e++)this.$channels[e]=Number(t.$channels[e])}getSaturation(){const[e,t,i]=Array.from(this.$channels).map((e=>e/255)),[s,a]=[Math.min(e,t,i),Math.max(e,t,i)],n=a-s;return 0!==n?Math.round(n/(1-Math.abs(2*this.lightness-1))*100)/100:0}setSaturation(e){const t=K.fromHSL(this.hue,e,this.lightness,this.alpha/255);_.forEach(((e,i)=>this.$channels[i]=t.$channels[i]))}getLightness(){const[e,t,i]=Array.from(this.$channels).map((e=>e/255)),[s,a]=[Math.min(e,t,i),Math.max(e,t,i)];return Math.round((a+s)/2*100)/100}setLightness(e){const t=K.fromHSL(this.hue,this.lightness,e,this.alpha/255);_.forEach(((e,i)=>this.$channels[i]=t.$channels[i]))}clone(){const e=new K;return _.forEach(((t,i)=>e.$channels[i]=this.$channels[i])),e}toString(e="hex"){switch(String(e).toLowerCase()){case"hex":return"#"+_.slice(0,3).map((e=>this[e].toString(16).padStart(2,"0"))).join("");case"hexa":return"#"+_.map((e=>this[e].toString(16).padStart(2,"0"))).join("");case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${Math.round(this.alpha/2.55)/100})`;case"hsl":return`hsl(${Math.round(this.hue)}deg, ${Math.round(100*this.saturation)}%, ${Math.round(100*this.lightness)}%)`;case"hsla":return`hsla(${Math.round(this.hue)}deg, ${Math.round(100*this.saturation)}%, ${Math.round(100*this.lightness)}%, ${Math.round(this.alpha/2.55)/100})`;default:throw new Y}}get[Symbol.toStringTag](){return this.toString("hex")}static parse(...e){if("object"==typeof e[0])return K.parseObject(e[0]);if(e.every((e=>!Number.isNaN(e/1)))){const t=new K;if(e.length>3)t.red=e[0],t.green=e[1],t.blue=e[2],e[3]&&(t.alpha=e[3]);else if(1===e.length){const t=Number(e[0]);return K.parseIndex(t,t>j(2,24)?3:4)}}else if("string"==typeof e[0]){let t=null;if("string"==typeof W[e[0].toLowerCase()])return K.parseHex(W[e[0].toLowerCase()]);if(null!==(t=e[0].match(/^(#|&h|0x)?(([a-f0-9]{3,4}){1,2})$/i)))return K.parseHex(t[2]);if(null!==(t=e[0].match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(\s*,\s*(\d*\.?\d+))?\s*\)$/i))){const e=[t[1],t[2],t[3],void 0!==t[5]?t[5]:1];return K.fromRGB(...e.map((e=>Number(e))))}if(e[0].match(/^(h(sl|wb)a?|lab|color|cmyk)\(/i))throw new Error("Color expression not implemented yet")}throw new Error("Invalid color expression")}static parseObject(e){const t=new K;return null===e||"object"!=typeof e?t:K.isColor(e)?e.clone():(_.forEach((i=>{Number.isNaN(e[i])||(t[i]=e[i])})),t)}static parseHex(e){if("string"!=typeof e)throw new Error("Hex expression must be a string");if(3!==(e=e.trim().replace(/^(0x|&h|#)/i,"")).length&&4!==e.length||(e=e.split("").map((e=>e.repeat(2))).join("")),6!==e.length&&8!==e.length)throw new Error("Incorrect Hex expression length");const t=e.split(/(..)/).filter((e=>e)).map((e=>Number.parseInt(e,16)));return"number"==typeof t[3]&&(t[3]/=255),K.fromRGB(...t)}static parseIndex(e,t=3){const i=new K;for(let s=0;s<4;s++)i[_[s]]=e>>8*(t-s)&&255;return i}static fromRGB(e,t,i,s=1){if([e,t,i,s].some((e=>Number.isNaN(e/1))))throw new Error("Invalid arguments");s*=255;const a=new K;return[e,t,i,s].forEach(((e,t)=>{a[_[t]]=e})),a}static fromHSL(e,t,i,s=1){if([e,t,i,s].some((e=>Number.isNaN(e))))throw new Error("Invalid arguments");for(;e<0&&e!==-1/0;)e+=360;e%=360,t=Math.max(0,Math.min(1,t)),i=Math.max(0,Math.min(1,i)),s=Math.max(0,Math.min(1,s));const a=(1-Math.abs(2*i-1))*t,n=a*(1-Math.abs(e/60%2-1)),o=i-a/2,[l,r,d]=e<60?[a,n,0]:e<120?[n,a,0]:e<180?[0,a,n]:e<240?[0,n,a]:e<300?[n,0,a]:[a,0,n];return K.fromRGB(255*(l+o),255*(r+o),255*(d+o),s)}static isColor(e){return e instanceof K}}const q=["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"];let X={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultTooltipCloseDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultDatetimeFormatter:null,defaultDatetimeParser:null,defaultDatetimeCreator:null,defaultClockpickerHoursLabel:null,defaultClockpickerMinutesLabel:null,defaultColorFormatter:null,defaultColorParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultTimepickerMobileModal:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultCompatFallthrough:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null};const G=e=>{X=e};var Q=Object.defineProperty,J=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(e,t,i)=>t in e?Q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ie=(e,t)=>{for(var i in t||(t={}))Z.call(t,i)&&te(e,i,t[i]);if(J)for(var i of J(t))ee.call(t,i)&&te(e,i,t[i]);return e};const se=Math.sign||function(e){return e<0?-1:e>0?1:0};function ae(e,t){return(e&t)===t}function ne(e,t){return(e%t+t)%t}function oe(e,t,i){return Math.max(t,Math.min(i,e))}function le(e,t){return t.split(".").reduce(((e,t)=>e?e[t]:null),e)}function re(e,t,i){if(!e)return-1;if(!i||"function"!=typeof i)return e.indexOf(t);for(let s=0;s<e.length;s++)if(i(e[s],t))return s;return-1}const de=e=>"object"==typeof e&&!Array.isArray(e),ue=(e,t,i=!1)=>{if(i||!Object.assign){const s=i=>de(t[i])&&null!==e&&Object.prototype.hasOwnProperty.call(e,i)&&de(e[i]),a=Object.getOwnPropertyNames(t).map((a=>({[a]:s(a)?ue(e[a],t[a]||{},i):t[a]}))).reduce(((e,t)=>ie(ie({},e),t)),{});return ie(ie({},e),a)}return Object.assign(e,t)},ce=ue,he={Android:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!=typeof window&&(window.navigator.userAgent.match(/iPhone|iPad|iPod/i)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1)},Opera:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return he.Android()||he.BlackBerry()||he.iOS()||he.Opera()||he.Windows()}};function pe(e){void 0!==e.remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}function me(e){const t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%";const i=document.createElement("div");return t.appendChild(i),i.appendChild(e),document.body.appendChild(t),t}function fe(e){return null!=e&&null!=e.$&&null!=e.$.vnode}function ge(e){return e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):e}function be(e){return e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function ve(e,t){return JSON.parse(JSON.stringify(e)).sort((i=t,(e,t)=>i.map((i=>{const{field:s,order:a,customSort:n}=i;if("function"==typeof n)return n(e,t,"desc"!==a);{const i=le(e,s),n=le(t,s),o=i>n?1:i<n?-1:0;return"desc"===a?-o:o}})).reduce(((e,t)=>e||t),0)));var i}function ye(e){let t;return"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event"),t.initEvent(e,!0,!0)),t}function ke(e){return void 0===e?null:isNaN(+e)?`${e}`:e+"px"}function we(e,t="long"){const i=[];for(let e=0;e<12;e++)i.push(new Date(2e3,e,15));const s=new Intl.DateTimeFormat(e,{month:t});return i.map((e=>s.format(e)))}function Se(e,t="narrow"){const i=[];for(let e=0;e<7;e++){const t=new Date(2e3,0,e+1);i[t.getDay()]=t}const s=new Intl.DateTimeFormat(e,{weekday:t});return i.map((e=>s.format(e)))}function Ce(e,t){const i=t.match(e),s=e.toString().match(/<(.+?)>/g);if(null==s)throw new RangeError("pattern must contain at least one group");return s.map((e=>e.match(/<(.+)>/)[1])).reduce(((e,t,s)=>(i&&i.length>s?e[t]=i[s+1]:e[t]=null,e)),{})}function De(){return new Promise((e=>{const t=new Image;t.onerror=()=>e(!1),t.onload=()=>e(1===t.width),t.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAwA0JaQAA3AA/vuUAAA="})).catch((()=>!1))}function xe(e){return null!=e.$root&&"shadowRoot"in e.$root.$options}const Me=e=>void 0!==e,$e=e=>null==e;function Be(t){return t.type===e}function Ve(e){return e.type!==t&&e.type!==i&&e.type!==s}function Te(e){if(!e)return;const{component:t}=e;return t?t.exposed&&t.exposeProxy||t.proxy:void 0}function Pe(e,t){const{_context:i}=e,{_context:s}=t;s.config=i.config,s.mixins=i.mixins,s.components=i.components,s.directives=i.directives,s.provides=i.provides,s.optionsCache=i.optionsCache,s.propsCache=i.propsCache,s.emitsCache=i.emitsCache,"__VUE_I18N_SYMBOL__"in e&&(t.__VUE_I18N_SYMBOL__=e.__VUE_I18N_SYMBOL__)}const Oe=(e,t)=>{const{type:i,target:s}=t;let a=0,n=0;if(null!=s&&s!==e.target){const t=e.target.getBoundingClientRect(),i=s.getBoundingClientRect();a=i.left-t.left,n=i.top-t.top}const o=e.touches[0]||e.changedTouches[0];return new DragEvent(i,{dataTransfer:new DataTransfer,bubbles:!0,screenX:o.screenX,screenY:o.screenY,clientX:o.clientX+a,clientY:o.clientY+n,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey})};var Ie={getOptions:()=>X,setOptions(e){G(ce(X,e,!0))}},Ae=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Le=a({inheritAttrs:!1,props:{compatFallthrough:{type:Boolean,default:()=>X.defaultCompatFallthrough}},computed:{rootAttrs(){return this.compatFallthrough?{class:this.$attrs.class,style:this.$attrs.style,id:this.$attrs.id}:{}},fallthroughAttrs(){if(this.compatFallthrough){const e=this.$attrs,{style:t,class:i,id:s}=e;return((e,t)=>{var i={};for(var s in e)Fe.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&Ae)for(var s of Ae(e))t.indexOf(s)<0&&Ne.call(e,s)&&(i[s]=e[s]);return i})(e,["style","class","id"])}return this.$attrs}}}),Ee=a({name:"BFieldBody",inject:{parent:{from:"BField",default:null}},props:{message:{type:[String,Array]},type:{type:[String,Object]}},render(){let s=!0,a="function"==typeof this.$slots.default?this.$slots.default():this.$slots.default;return null!=a&&1===a.length&&a[0].type===e&&(a=a[0].children),n("div",{class:"field-body"},{default:()=>null!=a&&a.map((e=>{if(e.type===t||e.type===i)return e;let a;s&&(a=this.message,s=!1);const l=this.parent;return n(l?l.$.type:o("b-field"),{type:this.type,message:a},(()=>e))}))})}});const Re=a({name:"BField",components:{BFieldBody:Ee},provide(){return{BField:this}},inject:{parent:{from:"BField",default:!1}},props:{type:{type:[String,Object],default:void 0},label:String,labelFor:String,message:{type:[String,Array,Object],default:void 0},grouped:Boolean,groupMultiline:Boolean,position:String,expanded:Boolean,horizontal:Boolean,addons:{type:Boolean,default:!0},customClass:String,labelPosition:{type:String,default:()=>X.defaultFieldLabelPosition}},data(){return{newType:this.type,newMessage:this.message,fieldLabelSize:null,numberInputClasses:[],_isField:!0}},computed:{rootClasses(){return[{"is-expanded":this.expanded,"is-horizontal":this.horizontal,"is-floating-in-label":this.hasLabel&&!this.horizontal&&"inside"===this.labelPosition,"is-floating-label":this.hasLabel&&!this.horizontal&&"on-border"===this.labelPosition},this.numberInputClasses]},innerFieldClasses(){return[this.fieldType(),this.newPosition,{"is-grouped-multiline":this.groupMultiline}]},hasInnerField(){return this.grouped||this.groupMultiline||this.hasAddons()},newPosition(){if(void 0===this.position)return;const e=this.position.split("-");if(e.length<1)return;const t=this.grouped?"is-grouped-":"has-addons-";return this.position?t+e[1]:void 0},formattedMessage(){const e=this.parent;if(e&&e.hasInnerField)return"";if("string"==typeof this.newMessage)return[this.newMessage];const t=[];if(Array.isArray(this.newMessage))this.newMessage.forEach((e=>{if("string"==typeof e)t.push(e);else for(const i in e)e[i]&&t.push(i)}));else for(const e in this.newMessage)this.newMessage[e]&&t.push(e);return t.filter((e=>!!e))},hasLabel(){return this.label||this.$slots.label},hasMessage(){const e=this.parent;return(!e||!e.hasInnerField)&&this.newMessage||this.$slots.message}},watch:{type(e){this.newType=e},message(e){JSON.stringify(e)!==JSON.stringify(this.newMessage)&&(this.newMessage=e)},newMessage(e){const t=this.parent;t&&t.hasInnerField&&(t.type||(t.newType=this.newType),t.message||(t.newMessage=e))}},methods:{fieldType(){return this.grouped?"is-grouped":this.hasAddons()?"has-addons":void 0},hasAddons(){let e=0;return this.$slots.default&&(e=this.$slots.default().reduce(((e,t)=>Ve(t)?e+1:e),0)),e>1&&this.addons&&!this.horizontal},wrapNumberinput({controlsPosition:e,size:t}){const i=["has-numberinput"];e&&i.push(`has-numberinput-${e}`),t&&i.push(`has-numberinput-${t}`),this.numberInputClasses=i}},mounted(){if(this.horizontal){this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider").length>0&&(this.fieldLabelSize="is-normal")}}});var ze=(e,t)=>{const i=e.__vccOpts||e;for(const[e,s]of t)i[e]=s;return i};const He=["for"],je=["for"],Ue={key:3,class:"field-body"};var _e=ze(Re,[["render",function(t,i,s,a,n,v){const y=o("b-field-body"),k=o("b-field");return r(),l("div",{class:d(["field",t.rootClasses])},[t.horizontal?(r(),l("div",{key:0,class:d(["field-label",[t.customClass,t.fieldLabelSize]])},[t.hasLabel?(r(),l("label",{key:0,for:t.labelFor,class:d([t.customClass,"label"])},[t.$slots.label?c(t.$slots,"label",{key:0}):(r(),l(e,{key:1},[p(m(t.label),1)],64))],10,He)):h("v-if",!0)],2)):(r(),l(e,{key:1},[t.hasLabel?(r(),l("label",{key:0,for:t.labelFor,class:d([t.customClass,"label"])},[t.$slots.label?c(t.$slots,"label",{key:0}):(r(),l(e,{key:1},[p(m(t.label),1)],64))],10,je)):h("v-if",!0)],64)),t.horizontal?(r(),u(y,{key:2,message:t.newMessage?t.formattedMessage:"",type:t.newType},{default:f((()=>[c(t.$slots,"default")])),_:3},8,["message","type"])):t.hasInnerField?(r(),l("div",Ue,[g(k,{addons:!1,type:t.type,class:d(t.innerFieldClasses)},{default:f((()=>[c(t.$slots,"default")])),_:3},8,["type","class"])])):c(t.$slots,"default",{key:4}),t.hasMessage&&!t.horizontal?(r(),l("p",{key:5,class:d(["help",t.newType])},[t.$slots.message?c(t.$slots,"message",{key:0,messages:t.formattedMessage}):(r(!0),l(e,{key:1},b(t.formattedMessage,((i,s)=>(r(),l(e,null,[p(m(i)+" ",1),s+1<t.formattedMessage.length?(r(),l("br",{key:s})):h("v-if",!0)],64)))),256))],2)):h("v-if",!0)],2)}]]);const We=a({props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>X.defaultUseHtml5Validation},validationMessage:String,locale:{type:[String,Array],default:()=>X.defaultLocale},statusIcon:{type:Boolean,default:()=>X.defaultStatusIcon}},emits:{blur:e=>!0,focus:e=>!0},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||X.defaultIconPack,_elementRef:""}},computed:{parentField(){let e=this.$parent;for(let t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType(){const{newType:e}=this.parentField||{};if(e){if("string"==typeof e)return e;for(const t in e)if(e[t])return t}},statusMessage(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus(){const e=this.getElement();void 0!==e&&this.$nextTick((()=>{e&&e.focus()}))},onBlur(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus(e){this.isFocused=!0,this.$emit("focus",e)},getElement(){let e=this.$refs[this.$data._elementRef];for(;null!=e&&"object"==typeof e&&"$refs"in e;){const t=e;e=t.$refs[t.$data._elementRef]}return e},setInvalid(){const e=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",e)},setValidity(e,t){this.$nextTick((()=>{this.parentField&&(this.parentField.type||(this.parentField.newType=e),this.parentField.message||(this.parentField.newMessage=t))}))},checkHtml5Validity(){if(!this.useHtml5Validation)return!1;const e=this.getElement();return null!=e&&(e.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid)}}}),Ye={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},Ke=()=>{const e=X&&X.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}};var qe=ze(a({name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:{type:String,required:!0},size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig(){return(()=>{let e={mdi:Ye,fa:Ke(),fas:Ke(),far:Ke(),fad:Ke(),fab:Ke(),fal:Ke(),"fa-solid":Ke(),"fa-regular":Ke(),"fa-light":Ke(),"fa-thin":Ke(),"fa-duotone":Ke(),"fa-brands":Ke()};return X&&X.customIconPacks&&(e=ce(e,X.customIconPacks,!0)),e})()[this.newPack]},iconPrefix(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon(){return`${this.iconPrefix}${this.getEquivalentIconOf(this.icon)}`},newPack(){return this.pack||X.defaultIconPack},newType(){if(!this.type)return;let e=[];if("string"==typeof this.type)e=this.type.split("-");else for(const t in this.type)if(this.type[t]){e=t.split("-");break}if(e.length<=1)return;const[,...t]=e;return`has-text-${t.join("-")}`},newCustomSize(){return this.customSize||this.customSizeByPack},customSizeByPack(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent(){return this.component||X.defaultIconComponent}},methods:{getEquivalentIconOf(e){if(!this.both)return e;if(null==this.iconConfig)return e;const t=this.iconConfig;return t&&t.internalIcons&&t.internalIcons[e]?t.internalIcons[e]:e}}}),[["render",function(e,t,i,s,a,n){return r(),l("span",{class:d(["icon",[e.newType,e.size]])},[e.useIconComponent?(r(),u(v(e.useIconComponent),{key:1,icon:[e.newPack,e.newIcon],size:e.newCustomSize,class:d([e.customClass])},null,8,["icon","size","class"])):(r(),l("i",{key:0,class:d([e.newPack,e.newIcon,e.newCustomSize,e.customClass])},null,2))],2)}]]),Xe=a({name:"BInput",components:{BIcon:qe},mixins:[Le,We],props:{modelValue:{type:[Number,String]},type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>X.defaultInputHasCounter},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String,autocomplete:String},emits:{"icon-click":e=>!0,"icon-right-click":e=>!0,"update:modelValue":e=>!0},data(){return{newValue:this.modelValue,newType:this.type,newAutocomplete:this.autocomplete||X.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get(){return this.newValue},set(e){this.newValue=e,this.$emit("update:modelValue",e)}},rootClasses(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||void 0:this.statusType},iconPosition(){let e="";return this.icon&&(e+="has-icons-left "),this.hasIconRight&&(e+="has-icons-right"),e},statusTypeIcon(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert";default:return}},hasMessage(){return!!this.statusMessage},passwordVisibleIcon(){return this.isPasswordVisible?"eye-off":"eye"},valueLength(){return"string"==typeof this.computedValue?Array.from(this.computedValue).length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{modelValue(e){const t=this.computedValue!=e;this.newValue=e,t&&this.$nextTick((()=>{!this.isValid&&this.checkHtml5Validity()}))},type(e){this.newType=e}},methods:{togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((()=>{this.focus()}))},iconClick(e,t){this.$emit(e,t),this.$nextTick((()=>{this.focus()}))},rightIconClick(e){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",e)},onInput(){this.lazy||this.revalidate()},onChange(){this.lazy&&this.revalidate()},revalidate(){!this.isValid&&this.checkHtml5Validity()}}});const Ge=["type","autocomplete","maxlength"],Qe=["maxlength"],Je=["type","autocomplete","maxlength"],Ze=["maxlength"];var et=ze(Xe,[["render",function(t,i,s,a,n,c){const p=o("b-icon");return r(),l("div",y({class:["control",t.rootClasses]},t.rootAttrs),[t.lazy?(r(),l(e,{key:0},["textarea"!==t.type?k((r(),l("input",y({key:0,ref:"input",class:["input",[t.inputClasses,t.customClass]],type:t.newType,autocomplete:t.newAutocomplete,maxlength:t.maxlength,"onUpdate:modelValue":i[0]||(i[0]=e=>t.computedValue=e)},t.fallthroughAttrs,{onInput:i[1]||(i[1]=(...e)=>t.onInput&&t.onInput(...e)),onChange:i[2]||(i[2]=(...e)=>t.onChange&&t.onChange(...e)),onBlur:i[3]||(i[3]=(...e)=>t.onBlur&&t.onBlur(...e)),onFocus:i[4]||(i[4]=(...e)=>t.onFocus&&t.onFocus(...e))}),null,16,Ge)),[[w,t.computedValue,void 0,{lazy:!0}]]):k((r(),l("textarea",y({key:1,ref:"textarea",class:["textarea",[t.inputClasses,t.customClass]],maxlength:t.maxlength,"onUpdate:modelValue":i[5]||(i[5]=e=>t.computedValue=e)},t.fallthroughAttrs,{onInput:i[6]||(i[6]=(...e)=>t.onInput&&t.onInput(...e)),onChange:i[7]||(i[7]=(...e)=>t.onChange&&t.onChange(...e)),onBlur:i[8]||(i[8]=(...e)=>t.onBlur&&t.onBlur(...e)),onFocus:i[9]||(i[9]=(...e)=>t.onFocus&&t.onFocus(...e))}),null,16,Qe)),[[S,t.computedValue,void 0,{lazy:!0}]])],64)):(r(),l(e,{key:1},["textarea"!==t.type?k((r(),l("input",y({key:0,ref:"input",class:["input",[t.inputClasses,t.customClass]],type:t.newType,autocomplete:t.newAutocomplete,maxlength:t.maxlength,"onUpdate:modelValue":i[10]||(i[10]=e=>t.computedValue=e)},t.fallthroughAttrs,{onInput:i[11]||(i[11]=(...e)=>t.onInput&&t.onInput(...e)),onChange:i[12]||(i[12]=(...e)=>t.onChange&&t.onChange(...e)),onBlur:i[13]||(i[13]=(...e)=>t.onBlur&&t.onBlur(...e)),onFocus:i[14]||(i[14]=(...e)=>t.onFocus&&t.onFocus(...e))}),null,16,Je)),[[w,t.computedValue]]):k((r(),l("textarea",y({key:1,ref:"textarea",class:["textarea",[t.inputClasses,t.customClass]],maxlength:t.maxlength,"onUpdate:modelValue":i[15]||(i[15]=e=>t.computedValue=e)},t.fallthroughAttrs,{onInput:i[16]||(i[16]=(...e)=>t.onInput&&t.onInput(...e)),onChange:i[17]||(i[17]=(...e)=>t.onChange&&t.onChange(...e)),onBlur:i[18]||(i[18]=(...e)=>t.onBlur&&t.onBlur(...e)),onFocus:i[19]||(i[19]=(...e)=>t.onFocus&&t.onFocus(...e))}),null,16,Ze)),[[S,t.computedValue]])],64)),t.icon?(r(),u(p,{key:2,class:d(["is-left",{"is-clickable":t.iconClickable}]),icon:t.icon,pack:t.iconPack,size:t.iconSize,onClick:i[20]||(i[20]=e=>t.iconClick("icon-click",e))},null,8,["class","icon","pack","size"])):h("v-if",!0),!t.loading&&t.hasIconRight&&t.rightIcon?(r(),u(p,{key:3,class:d(["is-right",{"is-clickable":t.passwordReveal||t.iconRightClickable}]),icon:t.rightIcon,pack:t.iconPack,size:t.iconSize,type:t.rightIconType,both:"",onClick:t.rightIconClick},null,8,["class","icon","pack","size","type","onClick"])):h("v-if",!0),t.maxlength&&t.hasCounter&&"number"!==t.type?(r(),l("small",{key:4,class:d(["help counter",{"is-invisible":!t.isFocused}])},m(t.valueLength)+" / "+m(t.maxlength),3)):h("v-if",!0)],16)}]]),tt=a({name:"BAutocomplete",components:{BInput:et},mixins:[Le,We],props:{modelValue:[Number,String,null],data:{type:Array,default:()=>[]},field:{type:String,default:"value"},keepFirst:Boolean,clearOnSelect:Boolean,openOnFocus:Boolean,customFormatter:{type:Function},checkInfiniteScroll:Boolean,keepOpen:Boolean,selectOnClickOutside:Boolean,clearable:Boolean,maxHeight:[String,Number],dropdownPosition:{type:String,default:"auto"},groupField:String,groupOptions:String,iconRight:String,iconRightClickable:Boolean,appendToBody:Boolean,type:{type:String,default:"text"},confirmKeys:{type:Array,default:()=>["Tab","Enter"]},selectableHeader:Boolean,selectableFooter:Boolean,autocomplete:String},emits:{active:e=>!0,blur:e=>!0,focus:e=>!0,"icon-click":e=>!0,"icon-right-click":e=>!0,"infinite-scroll":()=>!0,select:(e,t)=>!0,"select-footer":e=>!0,"select-header":e=>!0,typing:e=>!0,"update:modelValue":e=>!0},data(){return{selected:null,hovered:null,headerHovered:null,footerHovered:null,isActive:!1,newValue:this.modelValue,newAutocomplete:this.autocomplete||"off",ariaAutocomplete:this.keepFirst?"both":"list",isListInViewportVertically:!0,hasFocus:!1,style:{},_isAutocomplete:!0,_elementRef:"input",_bodyEl:void 0,timeOutID:void 0}},computed:{computedData(){const{groupField:e,groupOptions:t}=this;if(e){if(t){const i=[];return this.data.forEach((s=>{const a=le(s,e),n=le(s,t);i.push({group:a,items:n})})),i}{const t={};this.data.forEach((i=>{const s=le(i,e);t[s]||(t[s]=[]),t[s].push(i)}));const i=[];return Object.keys(t).forEach((e=>{i.push({group:e,items:t[e]})})),i}}return[{items:this.data}]},isEmpty(){return!this.computedData||!this.computedData.some((e=>e.items&&e.items.length))},whiteList(){var e;this.computedData;const t=[];if(t.push(this.$refs.input.$el.querySelector("input")),t.push(this.$refs.dropdown),null!=this.$refs.dropdown){const e=this.$refs.dropdown.querySelectorAll("*");for(const i of e)t.push(i)}if((null==(e=this.$parent)?void 0:e.$data)._isTaginput){t.push(this.$parent.$el);const e=this.$parent.$el.querySelectorAll("*");for(const i of e)t.push(i)}return t},hasDefaultSlot(){return!!this.$slots.default},hasGroupSlot(){return!!this.$slots.group},hasEmptySlot(){return!!this.$slots.empty},hasHeaderSlot(){return!!this.$slots.header},hasFooterSlot(){return!!this.$slots.footer},isOpenedTop(){return"top"===this.dropdownPosition||"auto"===this.dropdownPosition&&!this.isListInViewportVertically},newIconRight(){return this.clearable&&this.newValue?"close-circle":this.iconRight},newIconRightClickable(){return!!this.clearable||this.iconRightClickable},contentStyle(){return{maxHeight:ke(this.maxHeight)||void 0}}},watch:{isActive(e){"auto"===this.dropdownPosition&&(e?this.calcDropdownInViewportVertical():this.timeOutID=setTimeout((()=>{this.calcDropdownInViewportVertical()}),100)),this.$nextTick((()=>{this.$emit("active",e)}))},checkInfiniteScroll(e){if(!this.$refs.dropdown)return;const t=this.$refs.dropdown.querySelector(".dropdown-content");t&&(!0!==e?t.removeEventListener("scroll",this.checkIfReachedTheEndOfScroll):t.addEventListener("scroll",this.checkIfReachedTheEndOfScroll))},newValue(e){this.$emit("update:modelValue",e);const t=this.getValue(this.selected);null!=t&&t!==e&&this.setSelected(null,!1),!this.hasFocus||this.openOnFocus&&""===e||(this.isActive=""!==e&&null!=e)},modelValue(e){this.newValue=e},keepFirst(e){this.ariaAutocomplete=e?"both":"list"},data(){if(this.keepFirst)this.$nextTick((()=>{this.isActive?this.selectFirstOption(this.computedData):this.setHovered(null)}));else if(this.hovered){const e=this.getValue(this.hovered);this.computedData.map((e=>e.items)).reduce(((e,t)=>[...e,...t]),[]).some((t=>this.getValue(t)===e))||this.setHovered(null)}},appendToBody(e,t){e&&!t?this.isActive&&this.$refs.dropdown&&!this.$data._bodyEl&&(this.$data._bodyEl=me(this.$refs.dropdown),this.updateAppendToBody()):!e&&t&&this.$data._bodyEl&&(pe(this.$data._bodyEl),this.$data._bodyEl=void 0)}},methods:{setHovered(e){void 0!==e&&(this.hovered=e)},setSelected(e,t=!0,i){void 0!==e&&(this.selected=e,this.$emit("select",this.selected,i),null!==this.selected&&(this.clearOnSelect?this.newValue="":this.newValue=this.getValue(this.selected),this.setHovered(null)),t&&this.$nextTick((()=>{this.isActive=!1})),this.checkValidity())},selectFirstOption(e){this.$nextTick((()=>{const t=e.filter((e=>e.items&&e.items.length));if(t.length){const e=t[0].items[0];this.setHovered(e)}else this.setHovered(null)}))},findHoveredIndex(e){if(null===this.hovered||void 0===this.hovered)return-1;const t=e.indexOf(this.hovered);if(-1!==t)return t;const i=this.getValue(this.hovered);return null==i?-1:e.findIndex((e=>null==e?null==i:this.getValue(e)===i))},keydown(e){const{key:t}=e;if("Enter"===t&&e.preventDefault(),"Escape"!==t&&"Tab"!==t||(this.isActive=!1),this.confirmKeys.indexOf(t)>=0){","===t&&e.preventDefault();const i=!this.keepOpen||"Tab"===t;if(null===this.hovered)return void this.checkIfHeaderOrFooterSelected(e,null,i);this.setSelected(this.hovered,i,e)}},selectHeaderOrFoterByClick(e,t){this.checkIfHeaderOrFooterSelected(e,{origin:t})},checkIfHeaderOrFooterSelected(e,t,i=!0){this.selectableHeader&&(this.headerHovered||t&&"header"===t.origin)&&(this.$emit("select-header",e),this.headerHovered=!1,t&&this.setHovered(null),i&&(this.isActive=!1)),this.selectableFooter&&(this.footerHovered||t&&"footer"===t.origin)&&(this.$emit("select-footer",e),this.footerHovered=!1,t&&this.setHovered(null),i&&(this.isActive=!1))},clickedOutside(e){const t=xe(this)?e.composedPath()[0]:e.target;!this.hasFocus&&this.whiteList.indexOf(t)<0&&(this.keepFirst&&this.hovered&&this.selectOnClickOutside?this.setSelected(this.hovered,!0):this.isActive=!1)},getValue(e){if(null!==e)return void 0!==this.customFormatter?this.customFormatter(e):"object"==typeof e?le(e,this.field):e},checkIfReachedTheEndOfScroll(){const e=this.$refs.dropdown.querySelector(".dropdown-content"),t=this.hasFooterSlot?e.querySelectorAll("div.dropdown-footer")[0].clientHeight:0;e.clientHeight!==e.scrollHeight&&e.scrollTop+e.parentElement.clientHeight+t>=e.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical(){this.$nextTick((()=>{var e;if(null==this.$refs.dropdown)return;const t=this.$refs.dropdown.getBoundingClientRect();this.isListInViewportVertically=t.top>=0&&t.bottom<=((null==window?void 0:window.innerHeight)||(null==(e=null==document?void 0:document.documentElement)?void 0:e.clientHeight)),this.appendToBody&&this.updateAppendToBody()}))},keyArrows(e){const t="down"===e?1:-1;if(this.isActive){const e=this.computedData.map((e=>e.items)).reduce(((e,t)=>[...e,...t]),[]);let i;this.hasHeaderSlot&&this.selectableHeader&&e.unshift(void 0),this.hasFooterSlot&&this.selectableFooter&&e.push(void 0),i=this.headerHovered?0+t:this.footerHovered?e.length-1+t:this.findHoveredIndex(e)+t,i=i>e.length-1?e.length-1:i,i=i<0?0:i,this.footerHovered=!1,this.headerHovered=!1,this.setHovered(void 0!==e[i]?e[i]:null),this.hasFooterSlot&&this.selectableFooter&&i===e.length-1&&(this.footerHovered=!0),this.hasHeaderSlot&&this.selectableHeader&&0===i&&(this.headerHovered=!0);const s=this.$refs.dropdown.querySelector(".dropdown-content");let a="a.dropdown-item:not(.is-disabled)";this.hasHeaderSlot&&this.selectableHeader&&(a+=",div.dropdown-header"),this.hasFooterSlot&&this.selectableFooter&&(a+=",div.dropdown-footer");const n=s.querySelectorAll(a)[i];if(!n)return;const o=s.scrollTop,l=s.scrollTop+s.clientHeight-n.clientHeight;n.offsetTop<o?s.scrollTop=n.offsetTop:n.offsetTop>=l&&(s.scrollTop=n.offsetTop-s.clientHeight+n.clientHeight)}else this.isActive=!0},focused(e){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.computedData)),this.hasFocus=!0,this.$emit("focus",e)},onBlur(e){this.hasFocus=!1,this.$emit("blur",e)},onInput(){const e=this.getValue(this.selected);null!=e&&e===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick(e){this.clearable?(this.newValue="",this.setSelected(null,!1),this.openOnFocus&&this.$refs.input.$el.focus()):this.$emit("icon-right-click",e)},checkValidity(){this.useHtml5Validation&&this.$nextTick((()=>{this.checkHtml5Validity()}))},updateAppendToBody(){const e=this.$refs.dropdown,t=this.$parent.$data._isTaginput?this.$parent.$el:this.$refs.input.$el;if(e&&t){this.$data._bodyEl||(this.$data._bodyEl=me(e));const i=this.$data._bodyEl;i.classList.forEach((e=>i.classList.remove(e))),i.classList.add("autocomplete"),i.classList.add("control"),this.expanded&&i.classList.add("is-expanded");const s=t.getBoundingClientRect();let a=s.top+window.scrollY;const n=s.left+window.scrollX;this.isOpenedTop?a-=e.clientHeight:a+=t.clientHeight,this.style={position:"absolute",top:`${a}px`,left:`${n}px`,width:`${t.clientWidth}px`,maxWidth:`${t.clientWidth}px`,zIndex:"99"}}}},created(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.addEventListener("resize",this.calcDropdownInViewportVertical),this.appendToBody&&window.addEventListener("scroll",this.calcDropdownInViewportVertical))},mounted(){if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){this.$refs.dropdown.querySelector(".dropdown-content").addEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&(this.$data._bodyEl=me(this.$refs.dropdown),this.updateAppendToBody())},beforeUnmount(){if("undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.removeEventListener("resize",this.calcDropdownInViewportVertical),this.appendToBody&&window.removeEventListener("scroll",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&this.$data._bodyEl&&pe(this.$data._bodyEl),clearTimeout(this.timeOutID)}});const it={key:1,class:"has-text-weight-bold"},st=["onClick"],at={key:1},nt={key:1,class:"dropdown-item is-disabled"};var ot=ze(tt,[["render",function(t,i,s,a,n,u){const p=o("b-input");return r(),l("div",y({class:["autocomplete control",{"is-expanded":t.expanded}]},t.rootAttrs),[g(p,y({modelValue:t.newValue,"onUpdate:modelValue":i[0]||(i[0]=e=>t.newValue=e),ref:"input",type:t.type,size:t.size,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-right":t.newIconRight,"icon-right-clickable":t.newIconRightClickable,"icon-pack":t.iconPack,maxlength:t.maxlength,autocomplete:t.newAutocomplete,"use-html5-validation":!1,"aria-autocomplete":t.ariaAutocomplete},t.fallthroughAttrs,{"onUpdate:modelValue":t.onInput,onFocus:t.focused,onBlur:t.onBlur,onKeydown:[t.keydown,i[1]||(i[1]=C(D((e=>t.keyArrows("up")),["prevent"]),["up"])),i[2]||(i[2]=C(D((e=>t.keyArrows("down")),["prevent"]),["down"]))],onIconRightClick:t.rightIconClick,onIconClick:i[3]||(i[3]=e=>t.$emit("icon-click",e))}),null,16,["modelValue","type","size","loading","rounded","icon","icon-right","icon-right-clickable","icon-pack","maxlength","autocomplete","aria-autocomplete","onUpdate:modelValue","onFocus","onBlur","onKeydown","onIconRightClick"]),g(x,{name:"fade",persisted:""},{default:f((()=>[k(M("div",{class:d(["dropdown dropdown-menu",{"is-opened-top":t.isOpenedTop&&!t.appendToBody}]),style:$(t.style),ref:"dropdown"},[k(M("div",{class:"dropdown-content",style:$(t.contentStyle)},[t.hasHeaderSlot?(r(),l("div",{key:0,class:d(["dropdown-item dropdown-header",{"is-hovered":t.headerHovered}]),role:"button",tabindex:"0",onClick:i[4]||(i[4]=e=>t.selectHeaderOrFoterByClick(e,"header"))},[c(t.$slots,"header")],2)):h("v-if",!0),(r(!0),l(e,null,b(t.computedData,((i,s)=>(r(),l(e,null,[i.group?(r(),l("div",{key:s+"group",class:"dropdown-item"},[t.hasGroupSlot?c(t.$slots,"group",{key:0,group:i.group,index:s}):(r(),l("span",it,m(i.group),1))])):h("v-if",!0),(r(!0),l(e,null,b(i.items,((e,i)=>(r(),l("a",{key:s+":"+i,class:d(["dropdown-item",{"is-hovered":e===t.hovered}]),role:"button",tabindex:"0",onClick:D((i=>t.setSelected(e,!t.keepOpen,i)),["stop"])},[t.hasDefaultSlot?c(t.$slots,"default",{key:0,option:e,index:i}):(r(),l("span",at,m(t.getValue(e)),1))],10,st)))),128))],64)))),256)),t.isEmpty&&t.hasEmptySlot?(r(),l("div",nt,[c(t.$slots,"empty")])):h("v-if",!0),t.hasFooterSlot?(r(),l("div",{key:2,class:d(["dropdown-item dropdown-footer",{"is-hovered":t.footerHovered}]),role:"button",tabindex:"0",onClick:i[5]||(i[5]=e=>t.selectHeaderOrFoterByClick(e,"footer"))},[c(t.$slots,"footer")],2)):h("v-if",!0)],4),[[B,t.isActive]])],6),[[B,t.isActive&&(!t.isEmpty||t.hasEmptySlot||t.hasHeaderSlot||t.hasFooterSlot)]])])),_:3})],16)}]]);const lt=(e,t,i)=>{const s=i||t.name;if(null==s)throw new Error("Buefy.registerComponent: missing component name");e.component(s,t)},rt=(e,t,i)=>{e.config.globalProperties.$buefy||(e.config.globalProperties.$buefy={}),e.config.globalProperties.$buefy[t]=i},dt={install(e){lt(e,ot)}};var ut=ze(a({name:"BBreadcrumb",props:{align:{type:String,default:()=>X.defaultBreadcrumbAlign},separator:{type:String,default:()=>X.defaultBreadcrumbSeparator},size:{type:String,default:()=>X.defaultBreadcrumbSize}},computed:{breadcrumbClasses(){return["breadcrumb",this.align,this.separator,this.size]}}}),[["render",function(e,t,i,s,a,n){return r(),l("nav",{class:d(e.breadcrumbClasses)},[M("ul",null,[c(e.$slots,"default")])],2)}]]);var ct=ze(a({name:"BBreadcrumbItem",mixins:[Le],props:{tag:{type:[String,Object],default:()=>X.defaultBreadcrumbTag},active:Boolean}}),[["render",function(e,t,i,s,a,n){return r(),l("li",y({class:{"is-active":e.active}},e.rootAttrs),[(r(),u(v(e.tag),V(T(e.fallthroughAttrs)),{default:f((()=>[c(e.$slots,"default")])),_:3},16))],16)}]]);const ht={install(e){lt(e,ut),lt(e,ct)}},pt=["button","submit","reset"];var mt=a({name:"BButton",components:{BIcon:qe},inheritAttrs:!1,props:{type:[String,Object],size:String,label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:()=>X.defaultButtonRounded},loading:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:e=>pt.indexOf(e)>=0},tag:{type:[String,Object],default:"button",validator:e=>"object"==typeof e||X.defaultLinkTags.indexOf(e)>=0}},computed:{computedTag(){return void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled?"button":this.tag},iconSize(){return this.size&&"is-medium"!==this.size?"is-large"===this.size?"is-medium":this.size:"is-small"}}});const ft={key:1},gt={key:2};var bt=ze(mt,[["render",function(e,t,i,s,a,n){const d=o("b-icon");return r(),u(v(e.computedTag),y({class:"button"},e.$attrs,{type:"string"==typeof e.computedTag&&["button","input"].includes(e.computedTag)?e.nativeType:void 0,class:[e.size,e.type,{"is-rounded":e.rounded,"is-loading":e.loading,"is-outlined":e.outlined,"is-fullwidth":e.expanded,"is-inverted":e.inverted,"is-focused":e.focused,"is-active":e.active,"is-hovered":e.hovered,"is-selected":e.selected}]}),{default:f((()=>[e.iconLeft?(r(),u(d,{key:0,pack:e.iconPack,icon:e.iconLeft,size:e.iconSize},null,8,["pack","icon","size"])):h("v-if",!0),e.label?(r(),l("span",ft,m(e.label),1)):e.$slots.default?(r(),l("span",gt,[c(e.$slots,"default")])):h("v-if",!0),e.iconRight?(r(),u(d,{key:3,pack:e.iconPack,icon:e.iconRight,size:e.iconSize},null,8,["pack","icon","size"])):h("v-if",!0)])),_:3},16,["type","class"])}]]);const vt={install(e){lt(e,bt)}};var yt=Object.defineProperty,kt=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Ct=(e,t,i)=>t in e?yt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var Dt=(e,t)=>{const i={provide(){return{["b"+e]:this}}};return ae(t,1)&&(i.data=function(){return((e,t)=>{for(var i in t||(t={}))wt.call(t,i)&&Ct(e,i,t[i]);if(kt)for(var i of kt(t))St.call(t,i)&&Ct(e,i,t[i]);return e})({childItems:[]},ae(t,3)?{nextIndex:0}:{})},i.methods={_registerItem(e){ae(t,3)&&(e.dynamicIndex=this.nextIndex,++this.nextIndex),this.childItems.push(e)},_unregisterItem(e){this.childItems=this.childItems.filter((t=>t.uniqueValue!==e.uniqueValue))}},ae(t,3)&&(i.computed={sortedItems(){return this.childItems.slice().sort(((e,t)=>e.index-t.index))}})),i},xt=a({name:"BCarousel",components:{BIcon:qe},mixins:[Dt("carousel",3)],props:{modelValue:{type:Number,default:0},animated:{type:String,default:"slide"},interval:Number,hasDrag:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},pauseHover:{type:Boolean,default:!0},pauseInfo:{type:Boolean,default:!0},pauseInfoType:{type:String,default:"is-white"},pauseText:{type:String,default:"Pause"},arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},repeat:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:()=>X.defaultIconPrev},iconNext:{type:String,default:()=>X.defaultIconNext},indicator:{type:Boolean,default:!0},indicatorBackground:Boolean,indicatorCustom:Boolean,indicatorCustomSize:{type:String,default:"is-small"},indicatorInside:{type:Boolean,default:!0},indicatorMode:{type:String,default:"click"},indicatorPosition:{type:String,default:"is-bottom"},indicatorStyle:{type:String,default:"is-dots"},overlay:Boolean,progress:Boolean,progressType:{type:String,default:"is-primary"},withCarouselList:Boolean},emits:{change:e=>!0,click:()=>!0,"update:modelValue":e=>!0},data(){return{transition:"next",activeChild:this.modelValue||0,isPause:!1,dragX:!1,timer:void 0}},computed:{indicatorClasses(){return[{"has-background":this.indicatorBackground,"has-custom":this.indicatorCustom,"is-inside":this.indicatorInside},this.indicatorCustom&&this.indicatorCustomSize,this.indicatorInside&&this.indicatorPosition]},hasPrev(){return this.repeat||0!==this.activeChild},hasNext(){return this.repeat||this.activeChild<this.childItems.length-1},activeChildIndex(){const e=this.sortedItems[this.activeChild];return null!=e?e.index:void 0}},watch:{modelValue(e){this.changeActive(e)},sortedItems(e){this.activeChild>=e.length&&this.activeChild>0&&this.changeActive(this.activeChild-1)},autoplay(e){e?this.startTimer():this.pauseTimer()},repeat(e){e&&this.startTimer()}},methods:{startTimer(){this.autoplay&&!this.timer&&(this.isPause=!1,this.timer=setInterval((()=>{!this.repeat&&this.activeChild>=this.childItems.length-1?this.pauseTimer():this.next()}),this.interval||X.defaultCarouselInterval))},pauseTimer(){this.isPause=!0,this.timer&&(clearInterval(this.timer),this.timer=void 0)},restartTimer(){this.pauseTimer(),this.startTimer()},checkPause(){this.pauseHover&&this.autoplay&&this.pauseTimer()},changeActive(e,t=0){this.activeChild===e||isNaN(e)||(t=t||e-this.activeChild,e=this.repeat?ne(e,this.childItems.length):oe(e,0,this.childItems.length-1),this.transition=t>0?"prev":"next",this.activeChild=e,e!==this.modelValue&&this.$emit("update:modelValue",e),this.restartTimer(),this.$emit("change",e))},modeChange(e,t){if(this.indicatorMode===e)r