PageSourceSearch

https://cloud.sebi.org/apps/viewer/js/viewer-init.mjs?v=21e0d049-116

js sebi.org collected 2026-10-05 08:41:13 UTC 392,815 bytes, 993 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('viewer', '', 'js/index-BPjrEYdF.chunk.mjs'),window.OC.filePath('viewer', '', 'js/previewUtils-Dvsw19M-.chunk.mjs'),window.OC.filePath('viewer', '', 'css/previewUtils-DsspQ6dL.chunk.css')])))=>i.map(i=>d[i]);
2import{aa as Et,a5 as so,E as gn,k as Ms,V as He,h as ot,T as _r,Q as ft,ab as Cr,ac as Di,a1 as Ft,ad as kr,f as bn,w as ln,af as lo,r as Ps,j as Fs,u as uo,ag as Zr,ah as Is,P as co,ai as Zi,a3 as Ai,a4 as Ei,aj as Xe,ak as ho,al as wn,am as $n,an as $s,ao as It,ap as Ji,aq as Bs,ar as Ns,as as zs,at as Vs,a9 as xn,B as po,au as fo,S as Rs,a8 as A,U as Be,av as Hs,W as Jr,aw as Us,Z as ji,ax as Ys,ay as Ws,az as Oi,F as qs,H as Ks,aA as Gs,p as Xs,J as Zs,R as Js,aB as Qs}from"./previewUtils-Dvsw19M-.chunk.mjs";import el from"./NcActionButton-Douq8RI8.chunk.mjs";import{N as Sr,c as tl,d as nl,b as il,e as rl}from"./NcIconSvgWrapper-Bui9PhAS-CA9pfgTc.chunk.mjs";import{r as te,S as mo,G as Dt,N as Dr,l as Ne,i as it,t as al,a as V,b as vo,c as ol,d as go,e as sl,f as ll,g as ul,h as cl,j as hl,k as dl,m as bo,C as pl,n as Qr,o as Ln,p as Qi,q as fl,s as at,v as ml,w as yo,x as vl,y as gl,z as bl,A as yl,B as wl,D as xl,E as _l,F as wo,H as Cl,I as kl,J as Sl,K as Dl,L as Al,M as El,O as jl,P as Ol,Q as xo,R as Tl,T as Ll,U as Ml,V as Pl,W as _o,X as Fl,Y as Il,Z as $l,_ as Bl,$ as Nl,a0 as Co,a1 as ko,a2 as zl,a3 as Vl,a4 as Rl,a5 as Hl,a6 as Ul,a7 as Yl,a8 as Wl,a9 as ql,aa as Kl,ab as Gl,ac as ea,ad as Xl,ae as Zl,af as Jl,ag as Ql,ah as eu,ai as tu,aj as nu,ak as iu,al as ru,am as _n}from"./NcModal-CzVcf2Cw.chunk.mjs";import{n as xe}from"./_plugin-vue2_normalizer-DU4iP6Vu-CHYf0Z4t.chunk.mjs";import au from"./NcActionLink-bEU_ka2D.chunk.mjs";import{A as So}from"./actionText-BMig9Egt-DrBqWVOB.chunk.mjs";const ao="viewer",oo="7.0.0-dev.0";function ou(){if(typeof globalThis.firstDay<"u")return globalThis.firstDay;const e=new Intl.Locale(Et()),n=e.getWeekInfo?.()??e.weekInfo;return n?n.firstDay%7:1}function su(){if(typeof globalThis.dayNames<"u")return globalThis.dayNames;const e=Et();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"long"})]}function lu(){if(typeof globalThis.dayNamesShort<"u")return globalThis.dayNamesShort;const e=Et();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"short"})]}function uu(){if(typeof globalThis.dayNamesMin<"u")return globalThis.dayNamesMin;const e=Et();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"narrow"})]}function cu(){if(typeof globalThis.monthNames<"u")return globalThis.monthNames;const e=Et();return[new Date(1970,0).toLocaleDateString(e,{month:"long"}),new Date(1970,1).toLocaleDateString(e,{month:"long"}),new Date(1970,2).toLocaleDateString(e,{month:"long"}),new Date(1970,3).toLocaleDateString(e,{month:"long"}),new Date(1970,4).toLocaleDateString(e,{month:"long"}),new Date(1970,5).toLocaleDateString(e,{month:"long"}),new Date(1970,6).toLocaleDateString(e,{month:"long"}),new Date(1970,7).toLocaleDateString(e,{month:"long"}),new Date(1970,8).toLocaleDateString(e,{month:"long"}),new Date(1970,9).toLocaleDateString(e,{month:"long"}),new Date(1970,10).toLocaleDateString(e,{month:"long"}),new Date(1970,11).toLocaleDateString(e,{month:"long"})]}function hu(){if(typeof globalThis.monthNamesShort<"u")return globalThis.monthNamesShort;const e=Et();return[new Date(1970,0).toLocaleDateString(e,{month:"short"}),new Date(1970,1).toLocaleDateString(e,{month:"short"}),new Date(1970,2).toLocaleDateString(e,{month:"short"}),new Date(1970,3).toLocaleDateString(e,{month:"short"}),new Date(1970,4).toLocaleDateString(e,{month:"short"}),new Date(1970,5).toLocaleDateString(e,{month:"short"}),new Date(1970,6).toLocaleDateString(e,{month:"short"}),new Date(1970,7).toLocaleDateString(e,{month:"short"}),new Date(1970,8).toLocaleDateString(e,{month:"short"}),new Date(1970,9).toLocaleDateString(e,{month:"short"}),new Date(1970,10).toLocaleDateString(e,{month:"short"}),new Date(1970,11).toLocaleDateString(e,{month:"short"})]}function pi(){try{return so("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}function Cn(e,n,i){e.$set(e.$data._asyncComputed[n],"state",i),e.$set(e.$data._asyncComputed[n],"updating",i==="updating"),e.$set(e.$data._asyncComputed[n],"error",i==="error"),e.$set(e.$data._asyncComputed[n],"success",i==="success")}function du(e){return typeof e=="function"?e:e.get}function er(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function Ar(e){return er(e,"lazy")&&e.lazy}function pu(e,n){return e[Er+n]}var Er="async_computed$lazy_active$",un="async_computed$lazy_data$";function fu(e,n,i){e[Er+n]=!1,e[un+n]=i}function mu(e){return{get:function(){return this[Er+e]=!0,this[un+e]},set:function(n){this[un+e]=n}}}function vu(e,n,i){e[un+n]=i}function gu(e,n){return e[un+n]}var bu=function(e){return function(){var n=this;
2return e.watch.forEach(function(i){var a=i.split(".");if(a.length===1)n[i];else try{var r=n;a.forEach(function(o){r=r[o]})}catch(o){throw console.error("AsyncComputed: bad path: ",i),o}}),e.get.call(this)}},yu=function(e){return function(){return e.watch.call(this),e.get.call(this)}};function wu(e){if(typeof e.watch=="function")return yu(e);if(Array.isArray(e.watch))return e.watch.forEach(function(n){if(typeof n!="string")throw new Error("AsyncComputed: watch elemnts must be strings")}),bu(e);throw Error("AsyncComputed: watch should be function or an array")}var Do=typeof Symbol=="function"?Symbol("did-not-update"):{},xu=function(e,n){return function(){return e.shouldUpdate.call(this)?n.call(this):Do}},_u=function(e){return Do===e},Ao="_async_computed$",fi={install:function(e,n){n=n||{},e.config.optionMergeStrategies.asyncComputed=e.config.optionMergeStrategies.computed,e.mixin({data:function(){return{_asyncComputed:{}}},computed:{$asyncComputed:function(){return this.$data._asyncComputed}},beforeCreate:function(){var i=this.$options.asyncComputed||{};if(Object.keys(i).length){for(var a in i){var r=Su(a,i[a]);this.$options.computed[Ao+a]=r}this.$options.data=ku(this.$options,n)}},created:function(){for(var i in this.$options.asyncComputed||{}){var a=this.$options.asyncComputed[i],r=Eo.call(this,a,n);Ar(a)?vu(this,i,r):this[i]=r}for(var o in this.$options.asyncComputed||{})Cu(this,o,n,e)}})}};function Cu(e,n,i,a){var r=0,o=function(l){var u=++r;_u(l)||((!l||!l.then)&&(l=Promise.resolve(l)),Cn(e,n,"updating"),l.then(function(s){u===r&&(Cn(e,n,"success"),e[n]=s)}).catch(function(s){if(u===r&&(Cn(e,n,"error"),a.set(e.$data._asyncComputed[n],"exception",s),i.errorHandler!==!1)){var h=i.errorHandler===void 0?console.error.bind(console,"Error evaluating async computed property:"):i.errorHandler;i.useRawError?h(s,e,s.stack):h(s.stack)}}))};a.set(e.$data._asyncComputed,n,{exception:null,update:function(){e._isDestroyed||o(du(e.$options.asyncComputed[n]).apply(e))}}),Cn(e,n,"updating"),e.$watch(Ao+n,o,{immediate:!0})}function ku(e,n){var i=e.data,a=e.asyncComputed||{};return function(r){var o=(typeof i=="function"?i.call(this,r):i)||{};for(var l in a){var u=this.$options.asyncComputed[l],s=Eo.call(this,u,n);Ar(u)?(fu(o,l,s),this.$options.computed[l]=mu(l)):o[l]=s}return o}}function Su(e,n){if(typeof n=="function")return n;var i=n.get;if(er(n,"watch")&&(i=wu(n)),er(n,"shouldUpdate")&&(i=xu(n,i)),Ar(n)){var a=i;i=function(){return pu(this,e)?a.call(this):gu(this,e)}}return i}function Eo(e,n){var i=null;return"default"in e?i=e.default:"default"in n&&(i=n.default),typeof i=="function"?i.call(this):i}typeof window<"u"&&window.Vue&&window.Vue.use(fi);const Du={name:"PlayCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Au=function(){var e=this,n=e._self._c;return n("span",e._b({staticClass:"material-design-icon play-circle-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M10,16.5L16,12L10,7.5V16.5Z"}},[e.title?n("title",[e._v(e._s(e.title))]):e._e()])])])},Eu=[],ju=gn(Du,Au,Eu,!1,null,null);const Ou=ju.exports;te();function jt(e,n,i=!1){const a=Ms().proxy;return i&&a.$props[e]===void 0&&a.$props.modelValue===void 0&&He.util.warn(`Missing required prop: "modelValue" or old "${e}"`),ot({get(){return a.$props[e]!==void 0?a.$props[e]:a.$props.modelValue},set(r){a.$emit("update:modelValue",r),a.$emit("update:model-value",r),a.$emit(n,r)}})}const Tu=["date","datetime-local","month","time","week"],Lu={name:"NcDateTimePickerNative",inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:Date,default:void 0},modelValue:{type:Date,default:null},id:{type:String,default:()=>"date-time-picker-"+Dt(),validator:e=>e.trim()!==""},type:{type:String,default:"date",validate:e=>Tu.includes(e)},label:{type:String,default:"Please choose a date"},min:{type:[Boolean,Date],default:null},max:{type:[Boolean,Date],default:null},hideLabel:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["input","update:modelValue","update:model-value"],setup(){return{model:jt("value","input")}},computed:{formattedValue(){return this.formatValue(this.model)},formattedMin(){return this.min?this.formatValue(this.min):!1},formattedMax(){return this.max?this.formatValue(this.max):!1}
2,listeners(){return{...this.$listeners,input:e=>{if(isNaN(e.target.valueAsNumber))this.model=null;else if(this.type==="time"){const n=e.target.value;if(this.model===""){const{yyyy:i,MM:a,dd:r}=this.getReadableDate(new Date);this.model=new Date(`${i}-${a}-${r}T${n}`)}else{const{yyyy:i,MM:a,dd:r}=this.getReadableDate(this.model);this.model=new Date(`${i}-${a}-${r}T${n}`)}}else if(this.type==="month"){const n=(new Date(e.target.value).getMonth()+1).toString().padStart(2,"0");if(this.model===""){const{yyyy:i,dd:a,hh:r,mm:o}=this.getReadableDate(new Date);this.model=new Date(`${i}-${n}-${a}T${r}:${o}`)}else{const{yyyy:i,dd:a,hh:r,mm:o}=this.getReadableDate(this.model);this.model=new Date(`${i}-${n}-${a}T${r}:${o}`)}}else{const n=new Date(e.target.valueAsNumber).getTimezoneOffset()*1e3*60,i=e.target.valueAsNumber+n;this.model=new Date(i)}}}}},methods:{getReadableDate(e){if(e instanceof Date){const n=e.getFullYear().toString().padStart(4,"0"),i=(e.getMonth()+1).toString().padStart(2,"0"),a=e.getDate().toString().padStart(2,"0"),r=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0");return{yyyy:n,MM:i,dd:a,hh:r,mm:o}}},formatValue(e){if(e instanceof Date){const{yyyy:n,MM:i,dd:a,hh:r,mm:o}=this.getReadableDate(e);if(this.type==="datetime-local")return`${n}-${i}-${a}T${r}:${o}`;if(this.type==="date")return`${n}-${i}-${a}`;if(this.type==="month")return`${n}-${i}`;if(this.type==="time")return`${r}:${o}`;if(this.type==="week"){const l=new Date(n,0,1),u=Math.floor((e-l)/(24*60*60*1e3)),s=Math.ceil(u/7);return`${n}-W${s}`}}else return""}}};var Mu=function(){var e=this,n=e._self._c;return n("div",{staticClass:"native-datetime-picker"},[n("label",{staticClass:"native-datetime-picker--label",class:{"hidden-visually":e.hideLabel},attrs:{for:e.id}},[e._v(" "+e._s(e.label)+" ")]),n("input",e._g(e._b({staticClass:"native-datetime-picker--input",class:e.inputClass,attrs:{id:e.id,type:e.type,min:e.formattedMin,max:e.formattedMax},domProps:{value:e.formattedValue}},"input",e.$attrs,!1),e.listeners))])},Pu=[],Fu=xe(Lu,Mu,Pu,!1,null,"6c1feae8");const Iu=Fu.exports;mo(Iu);function cn(e,n,i){const a=document.querySelector(`#initial-state-${e}-${n}`);if(a===null){if(i!==void 0)return i;throw new Error(`Could not find initial state ${n} of ${e}`)}try{return JSON.parse(atob(a.value))}catch{throw new Error(`Could not parse initial state ${n} of ${e}`)}}var kn={exports:{}},ta;function $u(){if(ta)return kn.exports;ta=1;function e(n,i=100,a={}){if(typeof n!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof n}\`.`);if(i<0)throw new RangeError("`wait` must not be negative.");const{immediate:r}=typeof a=="boolean"?{immediate:a}:a;let o,l,u,s,h;function c(){const v=o,y=l;return o=void 0,l=void 0,h=n.apply(v,y),h}function d(){const v=Date.now()-s;v<i&&v>=0?u=setTimeout(d,i-v):(u=void 0,r||(h=c()))}const f=function(...v){if(o&&this!==o&&Object.getPrototypeOf(this)===Object.getPrototypeOf(o))throw new Error("Debounced method called with different contexts of the same prototype.");o=this,l=v,s=Date.now();const y=r&&!u;return u||(u=setTimeout(d,i)),y&&(h=c()),h};return Object.defineProperty(f,"isPending",{get(){return u!==void 0}}),f.clear=()=>{u&&(clearTimeout(u),u=void 0)},f.flush=()=>{u&&f.trigger()},f.trigger=()=>{h=c(),f.clear()},f}return kn.exports.debounce=e,kn.exports=e,kn.exports}var Bu=$u();const jo=_r(Bu),Nu={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var zu=function(){var e=this,n=e._self._c;return n("span",e._b({staticClass:"material-design-icon alert-circle-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"}}
2,[e.title?n("title",[e._v(e._s(e.title))]):e._e()])])])},Vu=[],Ru=xe(Nu,zu,Vu,!1,null,null);const Hu=Ru.exports,Uu={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Yu=function(){var e=this,n=e._self._c;return n("span",e._b({staticClass:"material-design-icon check-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[e.title?n("title",[e._v(e._s(e.title))]):e._e()])])])},Wu=[],qu=xe(Uu,Yu,Wu,!1,null,null);const Ku=qu.exports,Gu={name:"NcInputField",components:{NcButton:Dr,AlertCircle:Hu,Check:Ku},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},type:{type:String,default:"text",validator:e=>["text","password","email","tel","url","search","number"].includes(e)},label:{type:String,default:void 0},labelOutside:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},showTrailingButton:{type:Boolean,default:!1},trailingButtonLabel:{type:String,default:""},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},helperText:{type:String,default:""},disabled:{type:Boolean,default:!1},pill:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["update:value","update:modelValue","update:model-value","trailing-button-click"],setup(){const e=jt("value","update:value",!0);return{isLegacy32:it,model:e}},computed:{computedId(){return this.$attrs.id&&this.$attrs.id!==""?this.$attrs.id:this.inputName},inputName(){return"input"+Dt()},hasTrailingIcon(){return this.success},computedPlaceholder(){if(this.placeholder)return this.placeholder;if(this.label)return it?this.label:""},isValidLabel(){const e=this.label||this.labelOutside;return e||Ne.warn("You need to add a label to the NcInputField component. Either use the prop label or use an external one, as per the example in the documentation."),e},ariaDescribedby(){const e=[];return this.helperText.length>0&&e.push(`${this.inputName}-helper-text`),this.$attrs["aria-describedby"]&&e.push(this.$attrs["aria-describedby"]),e.join(" ")||null}},methods:{focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},handleInput(e){const n=this.type==="number"&&typeof this.model=="number"?parseFloat(e.target.value,10):e.target.value;this.model=n},handleTrailingButtonClick(e){this.$emit("trailing-button-click",e)}}};var Xu=function(){var e=this,n=e._self._c;
2return n("div",{staticClass:"input-field",class:{"input-field--disabled":e.disabled,"input-field--error":e.error,"input-field--label-outside":e.labelOutside||!e.isValidLabel,"input-field--leading-icon":!!e.$scopedSlots.icon||!!e.$scopedSlots.default||!!e.$slots.default,"input-field--success":e.success,"input-field--trailing-icon":e.showTrailingButton||e.hasTrailingIcon,"input-field--pill":e.pill,"input-field--legacy":e.isLegacy32}},[n("div",{staticClass:"input-field__main-wrapper"},[n("input",e._g(e._b({ref:"input",staticClass:"input-field__input",class:[e.inputClass,{"input-field__input--success":e.success,"input-field__input--error":e.error}],attrs:{id:e.computedId,type:e.type,disabled:e.disabled,placeholder:e.computedPlaceholder,"aria-describedby":e.ariaDescribedby,"aria-live":"polite"},domProps:{value:e.model?.toString()},on:{input:e.handleInput}},"input",e.$attrs,!1),e.$listeners)),!e.labelOutside&&e.isValidLabel?n("label",{staticClass:"input-field__label",attrs:{for:e.computedId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:!!e.$scopedSlots.icon||!!e.$scopedSlots.default||!!e.$slots.default,expression:"!!$scopedSlots.icon || !!$scopedSlots.default || !!$slots.default"}],staticClass:"input-field__icon input-field__icon--leading"},[e._t("icon",function(){return[e._t("default")]})],2),e.showTrailingButton?n("NcButton",{staticClass:"input-field__trailing-button",attrs:{"aria-label":e.trailingButtonLabel,disabled:e.disabled,variant:"tertiary-no-background"},on:{click:e.handleTrailingButtonClick},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("trailing-button-icon")]},proxy:!0}],null,!0)}):e.success||e.error?n("div",{staticClass:"input-field__icon input-field__icon--trailing"},[e.success?n("Check",{staticStyle:{color:"var(--color-success-text)"},attrs:{size:20}}):e.error?n("AlertCircle",{staticStyle:{color:"var(--color-error-text)"},attrs:{size:20}}):e._e()],1):e._e()],1),e.helperText.length>0?n("p",{staticClass:"input-field__helper-text-message",class:{"input-field__helper-text-message--error":e.error,"input-field__helper-text-message--success":e.success},attrs:{id:`${e.inputName}-helper-text`}},[e.success?n("Check",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e.error?n("AlertCircle",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}
2):e._e(),e._v(" "+e._s(e.helperText)+" ")],1):e._e()])},Zu=[],Ju=xe(Gu,Xu,Zu,!1,null,"2bc46a58");const Sn=Ju.exports;te(al),cn("core","capabilities",{}).password_policy,new Set(Object.keys(Sn.props)),{...Sn.props},jo(async function(e){try{const{data:n}=await ft.post(Cr("apps/password_policy/api/v1/validate"),{password:e});if(this.isValid=n.ocs.data.passed,n.ocs.data.passed){this.internalHelpMessage=V("Password is secure"),this.$emit("valid");return}this.internalHelpMessage=n.ocs.data.reason,this.$emit("invalid")}catch(n){Ne.error("Password policy returned an error",n)}},500),te(ol,vo),new Set(Object.keys(Sn.props)),{...Sn.props},te(go),Di(()=>Ft(()=>Promise.resolve().then(()=>wm),void 0,import.meta.url)),Di(()=>Ft(()=>Promise.resolve().then(()=>v0),void 0,import.meta.url)),Di(()=>Ft(()=>Promise.resolve().then(()=>xm),void 0,import.meta.url)),V("Submit");const Qu={name:"NcActionRouter",mixins:[So],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{to:{type:[String,Object],required:!0},exact:{type:Boolean,default:!1}}};var ec=function(){var e=this,n=e._self._c;return n("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[n("RouterLink",{staticClass:"action-router focusable",attrs:{to:e.to,"aria-label":e.ariaLabel,exact:e.exact,title:e.title,rel:"nofollow noreferrer noopener",role:e.isInSemanticMenu&&"menuitem"},nativeOn:{click:function(i){return e.onClick.apply(null,arguments)}}},[e._t("icon",function(){return[n("span",{staticClass:"action-router__icon",class:[e.isIconUrl?"action-router__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}})]}),e.name?n("span",{staticClass:"action-router__longtext-wrapper"},[n("strong",{staticClass:"action-router__name"},[e._v(" "+e._s(e.name)+" ")]),n("br"),n("span",{staticClass:"action-router__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?n("span",{staticClass:"action-router__longtext",domProps:{textContent:e._s(e.text)}}):n("span",{staticClass:"action-router__text"},[e._v(e._s(e.text))]),e._e()],2)],1)},tc=[],nc=xe(Qu,ec,tc,!1,null,"4dae1ff7");const ic=nc.exports,rc={name:"NcActionText",mixins:[So],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}}};var ac=function(){var e=this,n=e._self._c;return n("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[n("span",{staticClass:"action-text",on:{click:e.onClick}},[e._t("icon",function(){return[e.icon!==""?n("span",{staticClass:"action-text__icon",class:[e.isIconUrl?"action-text__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}}):e._e()]}),e.name?n("span",{staticClass:"action-text__longtext-wrapper"},[n("strong",{staticClass:"action-text__name"},[e._v(" "+e._s(e.name)+" ")]),n("span",{staticClass:"action-text__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?n("span",{staticClass:"action-text__longtext",domProps:{textContent:e._s(e.text)}}):n("span",{staticClass:"action-text__text"},[e._v(e._s(e.text))]),e._e()],2)])},oc=[],sc=xe(rc,ac,oc,!1,null,"2fe7eb92");const lc=sc.exports;let uc="missing-app-name";try{uc=ao}catch{Ne.error("The `@nextcloud/vue` library was used without setting / replacing the `appName`.")}let cc="";try{cc=oo}catch{Ne.error("The `@nextcloud/vue` library was used without setting / replacing the `appVersion`.")}te(sl),kr("nextcloud").persist().build(),pi().theming?.name,window.OCP?.Accessibility?.disableKeyboardShortcuts?.(),te(ll),window.OCP?.Accessibility?.disableKeyboardShortcuts?.();const hc={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var dc=function(){var e=this,n=e._self._c;return n("span",e._b({staticClass:"material-design-icon chevron-down-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"}}
2,[e.title?n("title",[e._v(e._s(e.title))]):e._e()])])])},pc=[],fc=xe(hc,dc,pc,!1,null,null);const mc=fc.exports;te(ul);const vc={name:"NcLoadingIcon",props:{size:{type:Number,default:20},appearance:{type:String,validator(e){return["auto","light","dark"].includes(e)},default:"auto"},name:{type:String,default:""}},computed:{colors(){const e=["#777","#CCC"];return this.appearance==="light"?e:this.appearance==="dark"?e.reverse():["var(--color-loading-light)","var(--color-loading-dark)"]}}};var gc=function(){var e=this,n=e._self._c;return n("span",{staticClass:"material-design-icon loading-icon",attrs:{"aria-label":e.name,role:"img"}},[n("svg",{attrs:{width:e.size,height:e.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{fill:e.colors[0],d:"M12,4V2A10,10 0 1,0 22,12H20A8,8 0 1,1 12,4Z"}}),n("path",{attrs:{fill:e.colors[1],d:"M12,4V2A10,10 0 0,1 22,12H20A8,8 0 0,0 12,4Z"}},[e.name?n("title",[e._v(e._s(e.name))]):e._e()])])])},bc=[],yc=xe(vc,gc,bc,!1,null,"94ff8098");const jr=yc.exports;te(cl),te(hl,vo),te(bo,dl);V("Search …"),He.util.warn;const Oo=fl?window:void 0;function Wt(e){var n;const i=at(e);return(n=i?.$el)!=null?n:i}function Mn(...e){let n,i,a,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([i,a,r]=e,n=Oo):[n,i,a,r]=e,!n)return Ln;Array.isArray(i)||(i=[i]),Array.isArray(a)||(a=[a]);const o=[],l=()=>{o.forEach(c=>c()),o.length=0},u=(c,d,f,v)=>(c.addEventListener(d,f,v),()=>c.removeEventListener(d,f,v)),s=ln(()=>[Wt(n),at(r)],([c,d])=>{if(l(),!c)return;const f=ml(d)?{...d}:d;o.push(...i.flatMap(v=>a.map(y=>u(c,v,y,f))))},{immediate:!0,flush:"post"}),h=()=>{s(),l()};return yo(h),h}let na=!1;function ia(e,n,i={}){const{window:a=Oo,ignore:r=[],capture:o=!0,detectIframe:l=!1}=i;if(!a)return Ln;Qi&&!na&&(na=!0,Array.from(a.document.body.children).forEach(y=>y.addEventListener("click",Ln)),a.document.documentElement.addEventListener("click",Ln));let u=!0;const s=y=>at(r).some(x=>{if(typeof x=="string")return Array.from(a.document.querySelectorAll(x)).some(C=>C===y.target||y.composedPath().includes(C));{const C=Wt(x);return C&&(y.target===C||y.composedPath().includes(C))}});function h(y){const x=at(y);return x&&x.$.subTree.shapeFlag===16}function c(y,x){const C=at(y),E=C.$.subTree&&C.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(D=>D.el===x.target||x.composedPath().includes(D.el))}const d=y=>{const x=Wt(e);if(y.target!=null&&!(!(x instanceof Element)&&h(e)&&c(e,y))&&!(!x||x===y.target||y.composedPath().includes(x))){if(y.detail===0&&(u=!s(y)),!u){u=!0;return}n(y)}};let f=!1;const v=[Mn(a,"click",y=>{f||(f=!0,setTimeout(()=>{f=!1},0),d(y))},{passive:!0,capture:o}),Mn(a,"pointerdown",y=>{const x=Wt(e);u=!s(y)&&!!(x&&!y.composedPath().includes(x))},{passive:!0}),l&&Mn(a,"blur",y=>{setTimeout(()=>{var x;const C=Wt(e);((x=a.document.activeElement)==null?void 0:x.tagName)==="IFRAME"&&!C?.contains(a.document.activeElement)&&n(y)},0)})].filter(Boolean);return()=>v.forEach(y=>y())}const wc={[Qr.mounted](e,n){const i=!n.modifiers.bubble;if(typeof n.value=="function")e.__onClickOutside_stop=ia(e,n.value,{capture:i});else{const[a,r]=n.value;e.__onClickOutside_stop=ia(e,a,Object.assign({capture:i},r))}},[Qr.unmounted](e){e.__onClickOutside_stop()}};function Ti(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function To(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const i=e.parentNode;return!i||i.tagName==="BODY"?!1:To(i)}}function xc(e){const n=e||window.event,i=n.target;return To(i)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const Li=new WeakMap;function _c(e,n=!1){const i=bn(n);let a=null,r="";ln(vl(e),u=>{const s=Ti(at(u));if(s){const h=s;if(Li.get(h)||Li.set(h,h.style.overflow),h.style.overflow!=="hidden"&&(r=h.style.overflow),h.style.overflow==="hidden")return i.value=!0;if(i.value)return h.style.overflow="hidden"}},{immediate:!0});const o=()=>{const u=Ti(at(e));!u||i.value||(Qi&&(a=Mn(u,"touchmove",s=>{xc(s)},{passive:!1})),u.style.overflow="hidden",i.value=!0)},l=()=>{const u=Ti(at(e));!u||!i.value||(Qi&&a?.(),u.style.overflow=r,Li.delete(u),i.value=!1)};return yo(l),ot({get(){return i.value},set(u){u?o():l()}})}function Cc(){let e=!1;const n=bn(!1);return(i,a)=>
2{if(n.value=a.value,e)return;e=!0;const r=_c(i,a.value);ln(n,o=>r.value=o)}}Cc();var tr={exports:{}},kc=tr.exports,ra;function Sc(){return ra||(ra=1,function(e){(function(n){if(typeof i!="function"){var i=function(y){return y};i.nonNative=!0}const a=i("plaintext"),r=i("html"),o=i("comment"),l=/<(\w*)>/g,u=/<\/?([^\s\/>]+)/;function s(y,x,C){y=y||"",x=x||[],C=C||"";let E=c(x,C);return d(y,E)}function h(y,x){y=y||[],x=x||"";let C=c(y,x);return function(E){return d(E||"",C)}}s.init_streaming_mode=h;function c(y,x){return y=f(y),{allowable_tags:y,tag_replacement:x,state:a,tag_buffer:"",depth:0,in_quote_char:""}}function d(y,x){if(typeof y!="string")throw new TypeError("'html' parameter must be a string");let C=x.allowable_tags,E=x.tag_replacement,D=x.state,M=x.tag_buffer,X=x.depth,U=x.in_quote_char,F="";for(let G=0,W=y.length;G<W;G++){let R=y[G];if(D===a)switch(R){case"<":D=r,M+=R;break;default:F+=R;break}else if(D===r)switch(R){case"<":if(U)break;X++;break;case">":if(U)break;if(X){X--;break}U="",D=a,M+=">",C.has(v(M))?F+=M:F+=E,M="";break;case'"':case"'":R===U?U="":U=U||R,M+=R;break;case"-":M==="<!-"&&(D=o),M+=R;break;case" ":case`
3`:if(M==="<"){D=a,F+="< ",M="";break}M+=R;break;default:M+=R;break}else if(D===o)switch(R){case">":M.slice(-2)=="--"&&(D=a),M="";break;default:M+=R;break}}return x.state=D,x.tag_buffer=M,x.depth=X,x.in_quote_char=U,F}function f(y){let x=new Set;if(typeof y=="string"){let C;for(;C=l.exec(y);)x.add(C[1])}else!i.nonNative&&typeof y[i.iterator]=="function"?x=new Set(y):typeof y.forEach=="function"&&y.forEach(x.add,x);return x}function v(y){let x=u.exec(y);return x?x[1].toLowerCase():null}e.exports?e.exports=s:n.striptags=s})(kc)}(tr)),tr.exports}Sc();function Bn(e=document.body){const n=window.getComputedStyle(e).getPropertyValue("--background-invert-if-dark");return n!==void 0?n==="invert(100%)":!1}Bn();const Dc=Symbol.for("nc:theme:enforced");function Ac(e){const n=ot(()=>at(e)??document.body),i=bn(Bn(n.value)),a=bl();function r(){i.value=Bn(n.value)}return yl(n,r,{attributes:!0}),ln(n,r),ln(a,r,{immediate:!0}),Ps(i)}const Ec=gl(()=>Ac());function jc(){const e=Ec(),n=lo(Dc,void 0);return ot(()=>n?.value?n.value==="dark":e.value)}te(wl),V("Settings"),te(xl),te(_l),te(wo);let Oc="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Tc=(e=21)=>{let n="",i=e|0;for(;i--;)n+=Oc[Math.random()*64|0];return n};function Pn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pn=function(n){return typeof n}:Pn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pn(e)}var Lo={selector:"vue-portal-target-".concat(Tc())},Lc=function(e){return Lo.selector=e},Mi=typeof window<"u"&&(typeof document>"u"?"undefined":Pn(document))!==void 0,Mc=He.extend({abstract:!0,name:"PortalOutlet",props:["nodes","tag"],data:function(e){return{updatedNodes:e.nodes}},render:function(e){var n=this.updatedNodes&&this.updatedNodes();return n?n.length===1&&!n[0].text?n:e(this.tag||"DIV",n):e()},destroyed:function(){var e=this.$el;e&&e.parentNode.removeChild(e)}}),Pc=He.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(Lo.selector)}},tag:{type:String,default:"DIV"}},render:function(e){if(this.disabled){var n=this.$scopedSlots&&this.$scopedSlots.default();return n?n.length<2&&!n[0].text?n:e(this.tag,n):e()}return e()},created:function(){this.getTargetEl()||this.insertTargetEl()},updated:function(){var e=this;this.$nextTick(function(){!e.disabled&&e.slotFn!==e.$scopedSlots.default&&(e.container.updatedNodes=e.$scopedSlots.default),e.slotFn=e.$scopedSlots.default})},beforeDestroy:function(){this.unmount()},watch:{disabled:{immediate:!0,handler:function(e){e?this.unmount():this.$nextTick(this.mount)}}},methods:{getTargetEl:function(){if(Mi)return document.querySelector(this.selector)},insertTargetEl:function(){if(Mi){var e=document.querySelector("body"),n=document.createElement(this.tag);n.id=this.selector.substring(1),e.appendChild(n)}},mount:function(){if(Mi){var e=this.getTargetEl(),n=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),this.container=new Mc({el:n,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function Fc(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.component(n.name||"portal",Pc),n.defaultSelector&&Lc(n.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===He&&He.use(Fc);const Ic=Symbol.for("insideRadioGroup");function $c(){return lo(Ic,void 0)}const Bc="radio";te();const Mo={setup(e){const n=$c(),i=ot(()=>n?.value?Bc:e.type);Fs(()=>n?.value.register(!1));const a=jt("checked","update:checked"),r=ot({get(){return n?.value?n.value.modelValue:a.value},set(o){n?.value?n.value.onUpdate(o):a.value=o}});return{internalType:i,internalModelValue:r,labelId:Dt(),descriptionId:Dt()}}},aa=()=>{uo((e,n)=>({"1f97b3de":e.cssIconSize,be84d992:e.cssIconHeight}))},oa=Mo.setup;Mo.setup=oa?(e,n)=>(aa(),oa(e,n)):aa;const Nc="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
3ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",zc="ελ1υ2бг1ел3дети4ею2католик6ом3мÐ
3ºÐ´2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3Õ°Õ¡Õµ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1ì»´2삼성2한국2",nr="numeric",ir="ascii",rr="alpha",Gt="asciinumeric",qt="alphanumeric",ar="domain",Po="emoji",Vc="scheme",Rc="slashscheme",Pi="whitespace";function Hc(e,n){return e in n||(n[e]=[]),n[e]}function Ct(e,n,i){n[nr]&&(n[Gt]=!0,n[qt]=!0),n[ir]&&(n[Gt]=!0,n[rr]=!0),n[Gt]&&(n[qt]=!0),n[rr]&&(n[qt]=!0),n[qt]&&(n[ar]=!0),n[Po]&&(n[ar]=!0);for(const a in n){const r=Hc(a,i);r.indexOf(e)<0&&r.push(e)}}function Uc(e,n){const i={};for(const a in n)n[a].indexOf(e)>=0&&(i[a]=!0);return i}function Pe(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}Pe.groups={},Pe.prototype={accepts(){return!!this.t},go(e){const n=this,i=n.j[e];if(i)return i;for(let a=0;a<n.jr.length;a++){const r=n.jr[a][0],o=n.jr[a][1];if(o&&r.test(e))return o}return n.jd},has(e,n=!1){return n?e in this.j:!!this.go(e)},ta(e,n,i,a){for(let r=0;r<e.length;r++)this.tt(e[r],n,i,a)},tr(e,n,i,a){a=a||Pe.groups;let r;return n&&n.j?r=n:(r=new Pe(n),i&&a&&Ct(n,i,a)),this.jr.push([e,r]),r},ts(e,n,i,a){let r=this;const o=e.length;if(!o)return r;for(let l=0;l<o-1;l++)r=r.tt(e[l]);return r.tt(e[o-1],n,i,a)},tt(e,n,i,a){a=a||Pe.groups;const r=this;if(n&&n.j)return r.j[e]=n,n;const o=n;let l,u=r.go(e);if(u?(l=new Pe,Object.assign(l.j,u.j),l.jr.push.apply(l.jr,u.jr),l.jd=u.jd,l.t=u.t):l=new Pe,o){if(a)if(l.t&&typeof l.t=="string"){const s=Object.assign(Uc(l.t,a),i);Ct(o,s,a)}else i&&Ct(o,i,a);l.t=o}return r.j[e]=l,l}};const re=(e,n,i,a,r)=>e.ta(n,i,a,r),me=(e,n,i,a,r)=>e.tr(n,i,a,r),sa=(e,n,i,a,r)=>e.ts(n,i,a,r),P=(e,n,i,a,r)=>e.tt(n,i,a,r),et="WORD",or="UWORD",Fo="ASCIINUMERICAL",Io="ALPHANUMERICAL",hn="LOCALHOST",sr="TLD",lr="UTLD",Fn="SCHEME",Lt="SLASH_SCHEME",Or="NUM",ur="WS",Tr="NL",Xt="OPENBRACE",Zt="CLOSEBRACE",Nn="OPENBRACKET",zn="CLOSEBRACKET",Vn="OPENPAREN",Rn="CLOSEPAREN",Hn="OPENANGLEBRACKET",Un="CLOSEANGLEBRACKET",Yn="FULLWIDTHLEFTPAREN",Wn="FULLWIDTHRIGHTPAREN",qn="LEFTCORNERBRACKET",Kn="RIGHTCORNERBRACKET",Gn="LEFTWHITECORNERBRACKET",Xn="RIGHTWHITECORNERBRACKET",Zn="FULLWIDTHLESSTHAN",Jn="FULLWIDTHGREATERTHAN",Qn="AMPERSAND",ei="APOSTROPHE",ti="ASTERISK",ht="AT",ni="BACKSLASH",ii="BACKTICK",ri="CARET",dt="COLON",Lr="COMMA",ai="DOLLAR",qe="DOT",oi="EQUALS",Mr="EXCLAMATION",$e="HYPHEN",Jt="PERCENT",si="PIPE",li="PLUS",ui="POUND",Qt="QUERY",Pr="QUOTE",$o="FULLWIDTHMIDDLEDOT",Fr="SEMI",Ke="SLASH",en="TILDE",ci="UNDERSCORE",Bo="EMOJI",hi="SYM";var No=Object.freeze({__proto__:null,ALPHANUMERICAL:Io,AMPERSAND:Qn,APOSTROPHE:ei,ASCIINUMERICAL:Fo,ASTERISK:ti,AT:ht,BACKSLASH:ni,BACKTICK:ii,CARET:ri,CLOSEANGLEBRACKET:Un,CLOSEBRACE:Zt,CLOSEBRACKET:zn,CLOSEPAREN:Rn,COLON:dt,COMMA:Lr,DOLLAR:ai,DOT:qe,EMOJI:Bo,EQUALS:oi,EXCLAMATION:Mr,FULLWIDTHGREATERTHAN:Jn,FULLWIDTHLEFTPAREN:Yn,FULLWIDTHLESSTHAN:Zn,FULLWIDTHMIDDLEDOT:$o,FULLWIDTHRIGHTPAREN:Wn,HYPHEN:$e,LEFTCORNERBRACKET:qn,LEFTWHITECORNERBRACKET:Gn,LOCALHOST:hn,NL:Tr,NUM:Or,OPENANGLEBRACKET:Hn,OPENBRACE:Xt,OPENBRACKET:Nn,OPENPAREN:Vn,PERCENT:Jt,PIPE:si,PLUS:li,POUND:ui,QUERY:Qt,QUOTE:Pr,RIGHTCORNERBRACKET:Kn,RIGHTWHITECORNERBRACKET:Xn,SCHEME:Fn,SEMI:Fr,SLASH:Ke,SLASH_SCHEME:Lt,SYM:hi,TILDE:en,TLD:sr,UNDERSCORE:ci,UTLD:lr,UWORD:or,WORD:et,WS:ur});const Je=/[a-z]/,Yt=new RegExp("\\p{L}","u"),Fi=new RegExp("\\p{Emoji}","u"),Qe=/\d/,Ii=/\s/,la="\r",$i=`
4`,Yc="️",Wc="‍",Bi="";let Dn=null,An=null;function qc(e=[]){const n={};Pe.groups=n;const i=new Pe;Dn==null&&(Dn=ua(Nc)),An==null&&(An=ua(zc)),P(i,"'",ei),P(i,"{",Xt),P(i,"}",Zt),P(i,"[",Nn),P(i,"]",zn),P(i,"(",Vn),P(i,")",Rn),P(i,"<",Hn),P(i,">",Un),P(i,"(",Yn),P(i,")",Wn),P(i,"「",qn),P(i,"」",Kn),P(i,"『",Gn),P(i,"』",Xn),P(i,"<",Zn),P(i,">",Jn),P(i,"&",Qn),P(i,"*",ti),P(i,"@",ht),P(i,"`",ii),P(i,"^",ri),P(i,":",dt),P(i,",",Lr),P(i,"$",ai),P(i,".",qe),P(i,"=",oi),P(i,"!",Mr),P(i,"-",$e),P(i,"%",Jt),P(i,"|",si),P(i,"+",li),P(i,"#",ui),P(i,"?",Qt),P(i,'"',Pr),P(i,"/",Ke),P(i,";",Fr),P(i,"~",en),P(i,"_",ci),P(i,"\\",ni),P(i,"・",$o);const a=me(i,Qe,Or,{[nr]:!0});me(a,Qe,a);const r=me(a,Je,Fo,{[Gt]:!0}),o=me(a,Yt,Io,{[qt]:!0}),l=me(i,Je,et,{[ir]:!0});me(l,Qe,r),me(l,Je,l),me(r,Qe,r),me(r,Je,r);const u=me(i,Yt,or,{[rr]:!0});me(u,Je),me(u,Qe,o),me(u,Yt,u),me(o,Qe,o),me(o,Je),me(o,Yt,o);const s=P(i,$i,Tr,{[Pi]:!0}),h=P(i,la,ur,{[Pi]:!0}),c=me(i,Ii,ur,{[Pi]:!0});P(i,Bi,c),P(h,$i,s),P(h,Bi,c),me(h,Ii,c),P(c,la),P(c,$i),me(c,Ii,c),P(c,Bi,c);const d=me(i,Fi,Bo,{[Po]:!0});P(d,"#"),me(d,Fi,d),P(d,Yc,d);const f=P(d,Wc);P(f,"#"),me(f,Fi,d);const v=[[Je,l],[Qe,r]],y=[[Je,null],[Yt,u],[Qe,o]];for(let x=0;x<Dn.length;x++)ut(i,Dn[x],sr,et,v);for(let x=0;x<An.length;x++)ut(i,An[x],lr,or,y);
vendor: 4,322 bytes, line 4
4Ct(sr,{tld:!0,ascii:!0},n),Ct(lr,{utld:!0,alpha:!0},n),ut(i,"file",Fn,et,v),ut(i,"mailto",Fn,et,v),ut(i,"http",Lt,et,v),ut(i,"https",Lt,et,v),ut(i,"ftp",Lt,et,v),ut(i,"ftps",Lt,et,v),Ct(Fn,{scheme:!0,ascii:!0},n),Ct(Lt,{slashscheme:!0,ascii:!0},n),e=e.sort((x,C)=>x[0]>C[0]?1:-1);for(let x=0;x<e.length;x++){const C=e[x][0],E=e[x][1]?{[Vc]:!0}:{[Rc]:!0};C.indexOf("-")>=0?E[ar]=!0:Je.test(C)?Qe.test(C)?E[Gt]=!0:E[ir]=!0:E[nr]=!0,sa(i,C,C,E)}return sa(i,"localhost",hn,{ascii:!0}),i.jd=new Pe(hi),{start:i,tokens:Object.assign({groups:n},No)}}function zo(e,n){const i=Kc(n.replace(/[A-Z]/g,u=>u.toLowerCase())),a=i.length,r=[];let o=0,l=0;for(;l<a;){let u=e,s=null,h=0,c=null,d=-1,f=-1;for(;l<a&&(s=u.go(i[l]));)u=s,u.accepts()?(d=0,f=0,c=u):d>=0&&(d+=i[l].length,f++),h+=i[l].length,o+=i[l].length,l++;o-=d,l-=f,h-=d,r.push({t:c.t,v:n.slice(o-h,o),s:o-h,e:o})}return r}function Kc(e){const n=[],i=e.length;let a=0;for(;a<i;){let r=e.charCodeAt(a),o,l=r<55296||r>56319||a+1===i||(o=e.charCodeAt(a+1))<56320||o>57343?e[a]:e.slice(a,a+2);n.push(l),a+=l.length}return n}function ut(e,n,i,a,r){let o;const l=n.length;for(let u=0;u<l-1;u++){const s=n[u];e.j[s]?o=e.j[s]:(o=new Pe(a),o.jr=r.slice(),e.j[s]=o),e=o}return o=new Pe(i),o.jr=r.slice(),e.j[n[l-1]]=o,o}function ua(e){const n=[],i=[];let a=0,r="0123456789";for(;a<e.length;){let o=0;for(;r.indexOf(e[a+o])>=0;)o++;if(o>0){n.push(i.join(""));for(let l=parseInt(e.substring(a,a+o),10);l>0;l--)i.pop();a+=o}else i.push(e[a]),a++}return n}const dn={defaultProtocol:"http",events:null,format:ca,formatHref:ca,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Ir(e,n=null){let i=Object.assign({},dn);e&&(i=Object.assign(i,e instanceof Ir?e.o:e));const a=i.ignoreTags,r=[];for(let o=0;o<a.length;o++)r.push(a[o].toUpperCase());this.o=i,n&&(this.defaultRender=n),this.ignoreTags=r}Ir.prototype={o:dn,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,n,i){const a=n!=null;let r=this.o[e];return r&&(typeof r=="object"?(r=i.t in r?r[i.t]:dn[e],typeof r=="function"&&a&&(r=r(n,i))):typeof r=="function"&&a&&(r=r(n,i.t,i)),r)},getObj(e,n,i){let a=this.o[e];return typeof a=="function"&&n!=null&&(a=a(n,i.t,i)),a},render(e){const n=e.render(this);return(this.get("render",null,e)||this.defaultRender)(n,e.t,e)}};function ca(e){return e}function Vo(e,n){this.t="token",this.v=e,this.tk=n}Vo.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const n=this.toString(),i=e.get("truncate",n,this),a=e.get("format",n,this);return i&&a.length>i?a.substring(0,i)+"…":a},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=dn.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const n=this,i=this.toHref(e.get("defaultProtocol")),a=e.get("formatHref",i,this),r=e.get("tagName",i,n),o=this.toFormattedString(e),l={},u=e.get("className",i,n),s=e.get("target",i,n),h=e.get("rel",i,n),c=e.getObj("attributes",i,n),d=e.getObj("events",i,n);return l.href=a,u&&(l.class=u),s&&(l.target=s),h&&(l.rel=h),c&&Object.assign(l,c),{tagName:r,attributes:l,content:o,eventListeners:d}}};function mi(e,n){class i extends Vo{constructor(r,o){super(r,o),this.t=e}}for(const a in n)i.prototype[a]=n[a];return i.t=e,i}const ha=mi("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),da=mi("text"),Gc=mi("nl"),En=mi("url",{isLink:!0,toHref(e=dn.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==hn&&e[1].t===dt}}),Ie=e=>new Pe(e);function Xc({groups:e}){const n=e.domain.concat([Qn,ti,ht,ni,ii,ri,ai,oi,$e,Or,Jt,si,li,ui,Ke,hi,en,ci]),i=[ei,dt,Lr,qe,Mr,Jt,Qt,Pr,Fr,Hn,Un,Xt,Zt,zn,Nn,Vn,Rn,Yn,Wn,qn,Kn,Gn,Xn,Zn,Jn],a=[Qn,ei,ti,ni,ii,ri,ai,oi,$e,Xt,Zt,Jt,si,li,ui,Qt,Ke,hi,en,ci],r
4=Ie(),o=P(r,en);re(o,a,o),re(o,e.domain,o);const l=Ie(),u=Ie(),s=Ie();re(r,e.domain,l),re(r,e.scheme,u),re(r,e.slashscheme,s),re(l,a,o),re(l,e.domain,l);const h=P(l,ht);P(o,ht,h),P(u,ht,h),P(s,ht,h);const c=P(o,qe);re(c,a,o),re(c,e.domain,o);const d=Ie();re(h,e.domain,d),re(d,e.domain,d);const f=P(d,qe);re(f,e.domain,d);const v=Ie(ha);re(f,e.tld,v),re(f,e.utld,v),P(h,hn,v);const y=P(d,$e);P(y,$e,y),re(y,e.domain,d),re(v,e.domain,d),P(v,qe,f),P(v,$e,y);const x=P(v,dt);re(x,e.numeric,ha);const C=P(l,$e),E=P(l,qe);P(C,$e,C),re(C,e.domain,l),re(E,a,o),re(E,e.domain,l);const D=Ie(En);re(E,e.tld,D),re(E,e.utld,D),re(D,e.domain,l),re(D,a,o),P(D,qe,E),P(D,$e,C),P(D,ht,h);const M=P(D,dt),X=Ie(En);re(M,e.numeric,X);const U=Ie(En),F=Ie();re(U,n,U),re(U,i,F),re(F,n,U),re(F,i,F),P(D,Ke,U),P(X,Ke,U);const G=P(u,dt),W=P(s,dt),R=P(W,Ke),m=P(R,Ke);re(u,e.domain,l),P(u,qe,E),P(u,$e,C),re(s,e.domain,l),P(s,qe,E),P(s,$e,C),re(G,e.domain,U),P(G,Ke,U),P(G,Qt,U),re(m,e.domain,U),re(m,n,U),P(m,Ke,U);const S=[[Xt,Zt],[Nn,zn],[Vn,Rn],[Hn,Un],[Yn,Wn],[qn,Kn],[Gn,Xn],[Zn,Jn]];for(let j=0;j<S.length;j++){const[L,Y]=S[j],I=P(U,L);P(F,L,I),P(I,Y,U);const Z=Ie(En);re(I,n,Z);const ne=Ie();re(I,i),re(Z,n,Z),re(Z,i,ne),re(ne,n,Z),re(ne,i,ne),P(Z,Y,U),P(ne,Y,U)}return P(r,hn,D),P(r,Tr,Gc),{start:r,tokens:No}}function Zc(e,n,i){let a=i.length,r=0,o=[],l=[];for(;r<a;){let u=e,s=null,h=null,c=0,d=null,f=-1;for(;r<a&&!(s=u.go(i[r].t));)l.push(i[r++]);for(;r<a&&(h=s||u.go(i[r].t));)s=null,u=h,u.accepts()?(f=0,d=u):f>=0&&f++,r++,c++;if(f<0)r-=c,r<a&&(l.push(i[r]),r++);else{l.length>0&&(o.push(Ni(da,n,l)),l=[]),r-=f,c-=f;const v=d.t,y=i.slice(r-c,r);o.push(Ni(v,n,y))}}return l.length>0&&o.push(Ni(da,n,l)),o}function Ni(e,n,i){const a=i[0].s,r=i[i.length-1].e,o=n.slice(a,r);return new e(o,i)}const Oe={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Jc(){Oe.scanner=qc(Oe.customSchemes);for(let e=0;e<Oe.tokenQueue.length;e++)Oe.tokenQueue[e][1]({scanner:Oe.scanner});Oe.parser=Xc(Oe.scanner.tokens);for(let e=0;e<Oe.pluginQueue.length;e++)Oe.pluginQueue[e][1]({scanner:Oe.scanner,parser:Oe.parser});return Oe.initialized=!0,Oe}function Ro(e){return Oe.initialized||Jc(),Zc(Oe.parser.start,e,zo(Oe.scanner.start,e))}Ro.scan=zo;function Ho(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Qc(e){return e.replace(/"/g,"&quot;")}function eh(e){const n=[];for(const i in e){let a=e[i]+"";n.push(`${i}="${Qc(a)}"`)}return n.join(" ")}function th({tagName:e,attributes:n,content:i}){return`<${e} ${eh(n)}>${Ho(i)}</${e}>`}function nh(e,n={}){n=new Ir(n,th);const i=Ro(e),a=[];for(let r=0;r<i.length;r++){const o=i[r];o.t==="nl"&&n.get("nl2br")?a.push(`<br>
5`):!o.isLink||!n.check(o)?a.push(Ho(o.toString())):a.push(n.render(o))}return a.join("")}String.prototype.linkify||Object.defineProperty(String.prototype,"linkify",{writable:!1,value:function(e){return nh(this,e)}}),window._nc_vue_element_id=window._nc_vue_element_id??0;function Uo(){return`nc-vue-${window._nc_vue_element_id++}`}te(Cl);function ih(e,n){const i=(c,d)=>c.startsWith(d)?c.slice(d.length):c,a=(c,...d)=>d.reduce((f,v)=>i(f,v),c);if(!e)return null;const r=/^https?:\/\//.test(n),o=/^[a-z][a-z0-9+.-]*:.+/.test(n);if(!r&&o||r&&!n.startsWith(Zr())||!r&&!n.startsWith("/"))return null;const l=r?a(n,Zr(),"/index.php"):n,u=a(e.history.base,Is(),"/index.php"),s=a(l,u)||"/",h=e.resolve(s).route;return h.matched.length?h.fullPath:null}function rh(e){return window._nc_contacts_menu_hooks?Object.values(window._nc_contacts_menu_hooks).filter(n=>n.enabled(e)):[]}var pa={exports:{}},fa={exports:{}},ma;function ah(){return ma||(ma=1,function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(i,a){return i<<a|i>>>32-a},rotr:function(i,a){return i<<32-a|i>>>a},endian:function(i){if(i.constructor==Number)return n.rotl(i,8)&16711935|n.rotl(i,24)&4278255360;for(var a=0;a<i.length;a++)i[a]=n.endian(i[a]);return i},randomBytes:function(i){for(var a=[];i>0;i--)a.push(Math.floor(Math.random()*256));return a},bytesToWords:function(i){for(var a=[],r=0,o=0;r<i.length;r++,o+=8)a[o>>>5]|=i[r]<<24-o%32;return a},wordsToBytes:function(i){for(var a=[],r=0;r<i.length*32;r+=8)a.push(i[r>>>5]>>>24-r%32&255);return a},bytesToHex:function(i){for(var a=[],r=0;r<i.length;r++)a.push((i[r]>>>4).toString(16)),a.push((i[r]&15).toString(16));return a.join("")},hexToBytes:function(i){for(var a=[],r=0;r<i.length;r+=2)a.push(parseInt(i.substr(r,2),16));return a},bytesToBase64:function(i){for(var a=[],r=0;r<i.length;r+=3)for(var o=i[r]<<16|i[r+1]<<8|i[r+2],l=0;l<4;l++)r*8+l*6<=i.length*8?a.push(e.charAt(o>>>6*(3-l)&63)):a.push("=");return a.join("")},base64ToBytes:function(i){i=i.replace(/[^A-Z0-9+\/]/ig,"");for(var a=[],r=0,o=0;r<i.length;o=++r%4)o!=0&&a.push((e.indexOf(i.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<o*2|e.indexOf(i.charAt(r))>>>6-o*2);return a}};fa.exports=n}()),fa.exports}var zi,va;function ga(){if(va)return zi;va=1;var e={utf8:{stringToBytes:function(n){return e.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(e.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var i=[],a=0;a<n.length;a++)i.push(n.charCodeAt(a)&255);return i},bytesToString:function(n){for(var i=[],a=0;a<n.length;a++)i.push(String.fromCharCode(n[a]));return i.join("")}}};return zi=e,zi}var Vi,ba;
5function oh(){if(ba)return Vi;ba=1,Vi=function(i){return i!=null&&(e(i)||n(i)||!!i._isBuffer)};function e(i){return!!i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function n(i){return typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&e(i.slice(0,0))}return Vi}var ya;function sh(){return ya||(ya=1,function(){var e=ah(),n=ga().utf8,i=oh(),a=ga().bin,r=function(o,l){o.constructor==String?l&&l.encoding==="binary"?o=a.stringToBytes(o):o=n.stringToBytes(o):i(o)?o=Array.prototype.slice.call(o,0):!Array.isArray(o)&&o.constructor!==Uint8Array&&(o=o.toString());for(var u=e.bytesToWords(o),s=o.length*8,h=1732584193,c=-271733879,d=-1732584194,f=271733878,v=0;v<u.length;v++)u[v]=(u[v]<<8|u[v]>>>24)&16711935|(u[v]<<24|u[v]>>>8)&4278255360;u[s>>>5]|=128<<s%32,u[(s+64>>>9<<4)+14]=s;for(var y=r._ff,x=r._gg,C=r._hh,E=r._ii,v=0;v<u.length;v+=16){var D=h,M=c,X=d,U=f;h=y(h,c,d,f,u[v+0],7,-680876936),f=y(f,h,c,d,u[v+1],12,-389564586),d=y(d,f,h,c,u[v+2],17,606105819),c=y(c,d,f,h,u[v+3],22,-1044525330),h=y(h,c,d,f,u[v+4],7,-176418897),f=y(f,h,c,d,u[v+5],12,1200080426),d=y(d,f,h,c,u[v+6],17,-1473231341),c=y(c,d,f,h,u[v+7],22,-45705983),h=y(h,c,d,f,u[v+8],7,1770035416),f=y(f,h,c,d,u[v+9],12,-1958414417),d=y(d,f,h,c,u[v+10],17,-42063),c=y(c,d,f,h,u[v+11],22,-1990404162),h=y(h,c,d,f,u[v+12],7,1804603682),f=y(f,h,c,d,u[v+13],12,-40341101),d=y(d,f,h,c,u[v+14],17,-1502002290),c=y(c,d,f,h,u[v+15],22,1236535329),h=x(h,c,d,f,u[v+1],5,-165796510),f=x(f,h,c,d,u[v+6],9,-1069501632),d=x(d,f,h,c,u[v+11],14,643717713),c=x(c,d,f,h,u[v+0],20,-373897302),h=x(h,c,d,f,u[v+5],5,-701558691),f=x(f,h,c,d,u[v+10],9,38016083),d=x(d,f,h,c,u[v+15],14,-660478335),c=x(c,d,f,h,u[v+4],20,-405537848),h=x(h,c,d,f,u[v+9],5,568446438),f=x(f,h,c,d,u[v+14],9,-1019803690),d=x(d,f,h,c,u[v+3],14,-187363961),c=x(c,d,f,h,u[v+8],20,1163531501),h=x(h,c,d,f,u[v+13],5,-1444681467),f=x(f,h,c,d,u[v+2],9,-51403784),d=x(d,f,h,c,u[v+7],14,1735328473),c=x(c,d,f,h,u[v+12],20,-1926607734),h=C(h,c,d,f,u[v+5],4,-378558),f=C(f,h,c,d,u[v+8],11,-2022574463),d=C(d,f,h,c,u[v+11],16,1839030562),c=C(c,d,f,h,u[v+14],23,-35309556),h=C(h,c,d,f,u[v+1],4,-1530992060),f=C(f,h,c,d,u[v+4],11,1272893353),d=C(d,f,h,c,u[v+7],16,-155497632),c=C(c,d,f,h,u[v+10],23,-1094730640),h=C(h,c,d,f,u[v+13],4,681279174),f=C(f,h,c,d,u[v+0],11,-358537222),d=C(d,f,h,c,u[v+3],16,-722521979),c=C(c,d,f,h,u[v+6],23,76029189),h=C(h,c,d,f,u[v+9],4,-640364487),f=C(f,h,c,d,u[v+12],11,-421815835),d=C(d,f,h,
5c,u[v+15],16,530742520),c=C(c,d,f,h,u[v+2],23,-995338651),h=E(h,c,d,f,u[v+0],6,-198630844),f=E(f,h,c,d,u[v+7],10,1126891415),d=E(d,f,h,c,u[v+14],15,-1416354905),c=E(c,d,f,h,u[v+5],21,-57434055),h=E(h,c,d,f,u[v+12],6,1700485571),f=E(f,h,c,d,u[v+3],10,-1894986606),d=E(d,f,h,c,u[v+10],15,-1051523),c=E(c,d,f,h,u[v+1],21,-2054922799),h=E(h,c,d,f,u[v+8],6,1873313359),f=E(f,h,c,d,u[v+15],10,-30611744),d=E(d,f,h,c,u[v+6],15,-1560198380),c=E(c,d,f,h,u[v+13],21,1309151649),h=E(h,c,d,f,u[v+4],6,-145523070),f=E(f,h,c,d,u[v+11],10,-1120210379),d=E(d,f,h,c,u[v+2],15,718787259),c=E(c,d,f,h,u[v+9],21,-343485551),h=h+D>>>0,c=c+M>>>0,d=d+X>>>0,f=f+U>>>0}return e.endian([h,c,d,f])};r._ff=function(o,l,u,s,h,c,d){var f=o+(l&u|~l&s)+(h>>>0)+d;return(f<<c|f>>>32-c)+l},r._gg=function(o,l,u,s,h,c,d){var f=o+(l&s|u&~s)+(h>>>0)+d;return(f<<c|f>>>32-c)+l},r._hh=function(o,l,u,s,h,c,d){var f=o+(l^u^s)+(h>>>0)+d;return(f<<c|f>>>32-c)+l},r._ii=function(o,l,u,s,h,c,d){var f=o+(u^(l|~s))+(h>>>0)+d;return(f<<c|f>>>32-c)+l},r._blocksize=16,r._digestsize=16,pa.exports=function(o,l){if(o==null)throw new Error("Illegal argument "+o);var u=e.wordsToBytes(r(o,l));return l&&l.asBytes?u:l&&l.asString?a.bytesToString(u):e.bytesToHex(u)}}()),pa.exports}var lh=sh();const uh=_r(lh);te(kl);class ge{constructor(n,i,a,r){this.r=n,this.g=i,this.b=a,this.name=r,this.r=Math.min(n,255),this.g=Math.min(i,255),this.b=Math.min(a,255),this.name=r}get color(){const n=i=>`00${i.toString(16)}`.slice(-2);return`#${n(this.r)}${n(this.g)}${n(this.b)}`}}function ch(e,n,i){return{r:(i.r-n.r)/e,g:(i.g-n.g)/e,b:(i.b-n.b)/e}}function Ri(e,n,i){const a=[];a.push(n);const r=ch(e,n,i);for(let o=1;o<e;o++){const l=Math.floor(n.r+r.r*o),u=Math.floor(n.g+r.g*o),s=Math.floor(n.b+r.b*o);a.push(new ge(l,u,s))}return a}const cr=new ge(182,70,157,V("Purple")),hr=new ge(221,203,85,V("Gold")),dr=new ge(0,130,201,V("Nextcloud blue")),wa=new ge(0,0,0,V("Black")),xa=new ge(255,255,255,V("White")),_a=[cr,new ge(191,103,139,V("Rosy brown")),new ge(201,136,121,V("Feldspar")),new ge(211,169,103,V("Whiskey")),hr,new ge(165,184,114,V("Olivine")),new ge(110,166,143,V("Acapulco")),new ge(55,148,172,V("Boston Blue")),dr,new ge(45,115,190,V("Mariner")),new ge(91,100,
5179,V("Blue Violet")),new ge(136,85,168,V("Deluge"))];function hh(e){const n=Ri(e,cr,hr),i=Ri(e,hr,dr),a=Ri(e,dr,cr);return n.concat(i).concat(a)}function Ca(e){let n=e.toLowerCase();n.match(/^([0-9a-f]{4}-?){8}$/)===null&&(n=uh(n)),n=n.replace(/[^0-9a-f]/g,"");const i=6,a=hh(i);function r(o,l){let u=0;const s=[];for(let h=0;h<o.length;h++)s.push(parseInt(o.charAt(h),16)%16);for(const h in s)u+=s[h];return parseInt(parseInt(u,10)%l,10)}return a[r(n,i*3)]}function dh(e,n){const i=(n?.size||64)<=64?64:512,a=n?.isGuest?"/guest":"",r=n?.isDarkTheme??Bn(document.body)?"/dark":"";return co(`/avatar${a}/{user}/{size}${r}`,{user:e,size:i})}const ka=`<!--
6  - SPDX-FileCopyrightText: 2020 Google Inc.
7  - SPDX-License-Identifier: Apache-2.0
8-->
9<svg viewBox="-1 -1 18 18" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
10	<path fill="none" d="M-4-4h24v24H-4z" />
11	<path fill="var(--color-warning)" d="M6.9.1C3 .6-.1 4-.1 8c0 4.4 3.6 8 8 8 4 0 7.4-3 8-6.9-1.2 1.3-2.9 2.1-4.7 2.1-3.5 0-6.4-2.9-6.4-6.4 0-1.9.8-3.6 2.1-4.7z" />
12</svg>
13`,ph=`<!--
14  - SPDX-FileCopyrightText: 2020 Google Inc.
15  - SPDX-License-Identifier: Apache-2.0
16-->
17<svg viewBox="0 -960 960 960" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
18	<path
19		fill="var(--user-status-color-away, var(--color-warning, #C88800))"
20		d="m612-292 56-56-148-148v-184h-80v216l172 172ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/>
21</svg>
22`,fh=`<!--
23  - SPDX-FileCopyrightText: 2020 Google Inc.
24  - SPDX-License-Identifier: Apache-2.0
25-->
26<svg viewBox="0 -960 960 960" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
27	<path
28		fill="var(--user-status-color-busy, var(--color-error, #DB0606))"
29		d="M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/>
30</svg>
31`,mh=`<!--
32  - SPDX-FileCopyrightText: 2020 Google Inc.
33  - SPDX-License-Identifier: Apache-2.0
34-->
35<svg viewBox="-1 -1 18 18" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
36	<path fill="none" d="M-4-4h24v24H-4V-4z" />
37	<path fill="var(--color-border-error, var(--color-error))" d="M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8z" />
38	<path fill="#fdffff" d="M5 6.5h6c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5H5c-.8 0-1.5-.7-1.5-1.5S4.2 6.5 5 6.5z" />
39</svg>
40`,vh=`<!--
41  - SPDX-FileCopyrightText: 2020 Google Inc.
42  - SPDX-License-Identifier: Apache-2.0
43-->
44<svg viewBox="0 -960 960 960" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
45	<path
46		fill="var(--user-status-color-busy, var(--color-error, #DB0606))"
47		d="M280-440h400v-80H280v80ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/>
48</svg>
49`,Sa=`<!--
50  - SPDX-FileCopyrightText: 2020 Google Inc.
51  - SPDX-License-Identifier: Apache-2.0
52-->
53<svg viewBox="-1 -1 18 18" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
54	<path fill="none" d="M-4-4h24v24H-4V-4z" />
55	<path d="M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 3.2c2.7 0 4.8 2.1 4.8 4.8s-2.1 4.8-4.8 4.8S3.2 10.7 3.2 8 5.3 3.2 8 3.2z" />
56</svg>
57`,Da=`<!--
58  - SPDX-FileCopyrightText: 2020 Google Inc.
59  - SPDX-License-Identifier: Apache-2.0
60-->
61<svg viewBox="0 -960 960 960" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
62	<path
63		fill="var(--user-status-color-offline, var(--color-text-maxcontrast, #6B6B6B))"
64		d="M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/>
65</svg>
66`,gh=`<!--
67  - SPDX-FileCopyrightText: 2020 Google Inc.
68  - SPDX-License-Identifier: Apache-2.0
69-->
70<svg viewBox="-1 -1 18 18" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
71	<path fill="var(--color-success)" d="M4.8 11.2h6.4V4.8H4.8v6.4zM8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8z" />
72</svg>
73`,bh=`<!--
74  - SPDX-FileCopyrightText: 2020 Google Inc.
75  - SPDX-License-Identifier: Apache-2.0
76-->
77<svg viewBox="0 -960 960 960" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
78	<path
79		fill="var(--user-status-color-online, var(--color-success, #2D7B41))"
80		d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q
80-54 54-127 85.5T480-80Z"/>
81</svg>
82`;te(Sl),te(Dl);function Yo(e){switch(e){case"away":return V("away");case"busy":return V("busy");case"dnd":return V("do not disturb");case"online":return V("online");case"invisible":return V("invisible");case"offline":return V("offline");default:return e}}const yh={online:it?gh:bh,away:it?ka:ph,busy:it?ka:fh,dnd:it?mh:vh,invisible:it?Sa:Da,offline:it?Sa:Da},wh={name:"NcUserStatusIcon",props:{user:{type:String,default:null},status:{type:String,default:null,validator:e=>["online","away","busy","dnd","invisible","offline"].includes(e)},ariaHidden:{type:String,default:null,validator:e=>["true","false"].includes(e)}},data(){return{fetchedUserStatus:null}},computed:{activeStatus(){return this.status??this.fetchedUserStatus},activeSvg(){return yh[this.activeStatus]??null},ariaLabel(){return this.ariaHidden==="true"?null:V("User status: {status}",{status:Yo(this.activeStatus)})}},watch:{user:{immediate:!0,async handler(e){if(!e||!pi()?.user_status?.enabled){this.fetchedUserStatus=null;return}try{const{data:n}=await ft.get(Cr("/apps/user_status/api/v1/statuses/{user}",{user:e}));this.fetchedUserStatus=n.ocs?.data?.status}catch{this.fetchedUserStatus=null}}}}};var xh=function(){var e=this,n=e._self._c;return e.activeStatus?n("span",{staticClass:"user-status-icon",class:{"user-status-icon--invisible":["invisible","offline"].includes(e.status)},attrs:{role:"img","aria-hidden":e.ariaHidden,"aria-label":e.ariaLabel},domProps:{innerHTML:e._s(e.activeSvg)}}):e._e()},_h=[],Ch=xe(wh,xh,_h,!1,null,"86b73d39");const kh=Ch.exports;te(Al);const Wo={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(e){if(!e)return;const n=pi();if(!(!Object.hasOwn(n,"user_status")||!n.user_status.enabled)&&Zi())try{const{data:i}=await ft.get(Cr("apps/user_status/api/v1/statuses/{userId}",{userId:e}));this.setUserStatus(i.ocs.data)}catch(i){if(i.response.status===404&&i.response.data.ocs?.data?.length===0)return;Ne.error("Could not fetch user status",{error:i})}},setUserStatus({status:e,message:n,icon:i}){this.userStatus.status=e||"",this.userStatus.message=n||"",this.userStatus.icon=i||"",this.hasStatus=!!e}}},qo=kr("nextcloud").persist().build();function Sh(e){const n=qo.getItem("user-has-avatar."+e);return typeof n=="string"?!!n:null}function Aa(e,n){e&&qo.setItem("user-has-avatar."+e,n)}const Dh={name:"NcAvatar",directives:{ClickOutside:wc},components:{IconDotsHorizontal:jl,NcActions:El,NcButton:Dr,NcIconSvgWrapper:Sr,NcLoadingIcon:jr,NcUserStatusIcon:kh},mixins:[Wo],props:{url:{type:String,default:void 0},iconClass:{type:String,default:void 0},user:{type:String,default:void 0},hideStatus:{type:Boolean,default:!1},showUserStatus:{type:Boolean,default:!0},verboseStatus:{type:Boolean,default:!1},showUserStatusCompact:{type:Boolean,default:!0},preloadedUserStatus:{type:Object,default:void 0},isGuest:{type:Boolean,default:!1},displayName:{type:String,default:void 0},size:{type:Number,default:32},noPlaceholder:{type:Boolean,default:!1},allowPlaceholder:{type:Boolean,default:!0},disableTooltip:{type:Boolean,default:!1},disableMenu:{type:Boolean,default:!1},tooltipMessage:{type:String,default:null},isNoUser:{type:Boolean,default:!1},menuContainer:{type:[Boolean,String,Object,Element],default:"body"}},setup(){return{isDarkTheme:jc()}},data(){return{avatarUrlLoaded:null,avatarSrcSetLoaded:null,userDoesNotExist:!1,isAvatarLoaded:!1,isMenuLoaded:!1,contactsMenuLoading:!1,contactsMenuData:{},contactsMenuActions:[],contactsMenuOpenState:!1}},computed:{avatarAriaLabel(){if(this.hasMenu)return this.canDisplayUserStatus||this.showUserStatusIconOnAvatar?V("Avatar of {displayName}, {status}",{displayName:this.displayName??this.user,status:Yo(this.userStatus.status)}):V("Avatar of {displayName}",{displayName:this.displayName??this.user})},canDisplayUserStatus(){return!this.hideStatus&&this.showUserStatus&&this.hasStatus&&["online","away","busy","dnd"].includes(this.userStatus.status)},showUserStatusIconOnAvatar(){return!this.hideStatus&&this.showUserStatus&&!this.verboseStatus&&this.showUserStatusCompact&&this.hasStatus&&this.userStatus.status!=="dnd"&&this.userStatus.icon},userIdentifier(){return this.isDisplayNameDefined?this.displayName:this.isUserDefined?this.user:""},isUserDefined(){return typeof this.user<"u"},isDisplayNameDefined(){return typeof this.displayName<"u"},isUrlDefined(){return typeof this.url<"u"},hasMenu(){return this.disableMenu?!1:this.isMenuLoaded?this.menu.length>0:!(this.user===Zi()?.uid||this.userDoesNotExist||this.url)},showInitials(){return!this.noPlaceholder&&this.allowPlaceholder&&this.userDoesNotExist&&!(this.iconClass||this.$scopedSlots.icon)},avatarStyle(){return{"--avatar-size":this.size+"px",lineHeight:this.showInitials?this.size+"px":0,fontSize:Math.round(this.size*.45)+"px"}},initialsWrapperStyle(){const{r:e,g:n,b:i}=Ca(this.userIdentifier);return{backgroundColor:`rgba(${e}, ${n}, ${i}, 0.1)`}},initialsStyle(){const{r:e,g:n,b:i}=Ca(this.userIdentifier);return{color:`rgb(${e}, ${n}, ${i})`}},tooltip(){return this.disableTooltip?!1:this.tooltipMessage?this.tooltipMessage:this.displayName},initials(){let e="?";if(this.showInitials){const n=this.userIdentifier.trim();if(n==="")return e;const i=n.match(/[\p{L}\p{N}\s]/gu);if(!i)return e;const a=i.join(""),r=a.lastIndexOf(" ");e=String.fromCodePoint(a.codePointAt(0)),r!==-1&&(e=e.concat(String.fromCodePoint(a.codePointAt(r+1))))}return e.toLocaleUpperCase()},menu(){const e=this.contactsMenuActions.map(i=>{const a=ih(this.$router,i.hyperlink);return{ncActionComponent:a?ic:au,ncActionComponentProps:a?{to:a,icon:i.icon}:{href:i.hyperlink,icon:i.icon},text:i.title}});for(const i of rh(this.contactsMenuData))try{e.push({ncActionComponent:el,ncActionComponentProps:{},ncActionComponentHandlers:{click:()=>i.callback(this.contactsMenuData)},text:i.displayName(this.contactsMenuData),iconSvg:i.iconSvg(this.contactsMenuData)})}catch(a){Ne.error(`Failed to render ContactsMenu action ${i.id}`,{error:a,action:i})}function n(i){const a=document.createTextNode(i),r=document.createElement("p");return r.appendChild(a),r.innerHTML}if(!this.hideStatus&&this.showUserStatus&&(this.userStatus.icon||this.userStatus.message)){const i=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
83					<text x="50%" y="50%" text-anchor="middle" style="dominant-baseline: central; font-size: 85%">${n(this.userStatus.icon)}</text>
84				</svg>`;return[{ncActionComponent:lc,ncActionComponentProps:{},iconSvg:this.userStatus.icon?i:void 0,text:`${this.userStatus.message}`}].concat(e)}return e}},watch:{url(){this.userDoesNotExist=!1,this.loadAvatarUrl()},user(){this.userDoesNotExist=!1,this.isMenuLoaded=!1,this.loadAvatarUrl()}},mounted(){this.loadAvatarUrl(),Ei("settings:avatar:updated",this.loadAvatarUrl),Ei("settings:display-name:updated",this.loadAvatarUrl),!this.hideStatus&&this.showUserStatus&&this.user&&!this.isNoUser?(this.preloadedUserStatus?this.setUserStatus(this.preloadedUserStatus):this.fetchUserStatus(this.user),Ei("user_status:status.updated",this.handleUserStatusUpdated)):!this.hideStatus&&this.preloadedUserStatus&&this.setUserStatus(this.preloadedUserStatus)},beforeDestroy(){Ai("settings:avatar:updated",this.loadAvatarUrl),Ai("settings:display-name:updated",this.loadAvatarUrl),Ai("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t:V,handleUserStatusUpdated(e){this.user===e.userId&&(this.userStatus={status:e.status,icon:e.icon,message:e.message},this.hasStatus=e.status!==null)}
84,async toggleMenu(e){e.type==="keydown"&&e.key!=="Enter"||(this.contactsMenuOpenState||await this.fetchContactsMenu(),this.contactsMenuOpenState=!this.contactsMenuOpenState)},closeMenu(){this.contactsMenuOpenState=!1},async fetchContactsMenu(){this.contactsMenuLoading=!0;try{const e=encodeURIComponent(this.user),{data:n}=await ft.post(co("contactsmenu/findOne"),`shareType=0&shareWith=${e}`);this.contactsMenuData=n,this.contactsMenuActions=n.topAction?[n.topAction].concat(n.actions):n.actions}catch{this.contactsMenuOpenState=!1}this.contactsMenuLoading=!1,this.isMenuLoaded=!0},loadAvatarUrl(){if(this.isAvatarLoaded=!1,!this.isUrlDefined&&(!this.isUserDefined||this.isNoUser||this.iconClass||this.$scopedSlots.icon)){this.isAvatarLoaded=!0,this.userDoesNotExist=!0;return}if(this.isUrlDefined){this.updateImageIfValid(this.url);return}if(this.size<=64){const e=this.avatarUrlGenerator(this.user,64),n=[e+" 1x",this.avatarUrlGenerator(this.user,512)+" 8x"].join(", ");this.updateImageIfValid(e,n)}else{const e=this.avatarUrlGenerator(this.user,512);this.updateImageIfValid(e)}},avatarUrlGenerator(e,n){let i=dh(e,{size:n,isDarkTheme:this.isDarkTheme,isGuest:this.isGuest});return e===Zi()?.uid&&typeof window.oc_userconfig<"u"&&(i+="?v="+window.oc_userconfig.avatar.version),i},updateImageIfValid(e,n=null){const i=Sh(this.user);if(this.isUserDefined&&typeof i=="boolean"){this.isAvatarLoaded=!0,this.avatarUrlLoaded=e,n&&(this.avatarSrcSetLoaded=n),i===!1&&(this.userDoesNotExist=!0);return}const a=new Image;a.onload=()=>{this.avatarUrlLoaded=e,n&&(this.avatarSrcSetLoaded=n),this.isAvatarLoaded=!0,Aa(this.user,!0)},a.onerror=r=>{Ne.debug("Invalid avatar url",{error:r,url:e}),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,Aa(this.user,!1)},n&&(a.srcset=n),a.src=e}}};var Ah=function(){var e=this,n=e._self._c;return n("span",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeMenu,expression:"closeMenu"}],staticClass:"avatardiv popovermenu-wrapper",class:{"avatardiv--unknown":e.userDoesNotExist,"avatardiv--with-menu":e.hasMenu,"avatardiv--with-menu-loading":e.contactsMenuLoading},style:e.avatarStyle,attrs:{title:e.tooltip}},[e._t("icon",function(){return[e.iconClass?n("span",{staticClass:"avatar-class-icon",class:e.iconClass}):e.isAvatarLoaded&&!e.userDoesNotExist?n("img",{attrs:{src:e.avatarUrlLoaded,srcset:e.avatarSrcSetLoaded,alt:""}}):e._e()]}),e.hasMenu&&e.menu.length===0?n("NcButton",{staticClass:"action-item action-item__menutoggle",attrs:{"aria-label":e.avatarAriaLabel,variant:"tertiary-no-background"},on:{click:e.toggleMenu},scopedSlots:e._u([{key:"icon",fn:function(){return[e.contactsMenuLoading?n("NcLoadingIcon"):n("IconDotsHorizontal",{attrs:{size:20}})]},proxy:!0}],null,!1,1269954734)}):e.hasMenu?n("NcActions",{attrs:{"aria-label":e.avatarAriaLabel,container:e.menuContainer,"force-menu":"","manual-open":"",open:e.contactsMenuOpenState,variant:"tertiary-no-background"},on:{"update:open":function(i){e.contactsMenuOpenState=i},click:e.toggleMenu},scopedSlots:e._u([e.contactsMenuLoading?{key:"icon",fn:function(){return[n("NcLoadingIcon")]},proxy:!0}:null],null,!0)},e._l(e.menu,function(i,a){return n(i.ncActionComponent,e._g(e._b({key:a,tag:"component",scopedSlots:e._u([i.iconSvg?{key:"icon",fn:function(){return[n("NcIconSvgWrapper",{attrs:{svg:i.iconSvg}})]},proxy:!0}:null],null,!0)},"component",i.ncActionComponentProps,!1),i.ncActionComponentHandlers),[e._v(" "+e._s(i.text)+" ")])}),1):e._e(),e.showUserStatusIconOnAvatar?n("span",{staticClass:"avatardiv__user-status avatardiv__user-status--icon"},[e._v(" "+e._s(e.userStatus.icon)+" ")]):e.canDisplayUserStatus?n("NcUserStatusIcon",{staticClass:"avatardiv__user-status",attrs:{status:e.userStatus.status,"aria-hidden":String(e.hasMenu)}}):e._e(),e.showInitials?n("span",{staticClass:"avatardiv__initials-wrapper",style:e.initialsWrapperStyle},[n("span",{staticClass:"avatardiv__initials",style:e.initialsStyle},[e._v(" "+e._s(e.initials)+" ")])]):e._e()],2)},Eh=[],jh=xe(Dh,Ah,Eh,!1,null,"a4de1e87");const Oh=jh.exports;var Ea={exports:{}},ja;function Th(){return ja||(ja=1,function(e){var n=Object.prototype.hasOwnProperty,i="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(i=!1));function r(s,h,c){this.fn=s,this.context=h,this.once=c||!1}function o(s,h,c,d,f){if(typeof c!="function")throw new TypeError("The listener must be a function");var v=new r(c,d||s,f),y=i?i+h:h;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],v]:s._events[y].push(v):(s._events[y]=v,s._eventsCount++),s}function l(s,h){--s._eventsCount===0?s._events=new a:delete s._events[h]}function u(){this._events=new a,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],h,c;if(this._eventsCount===0)return s;for(c in h=this._events)n.call(h,c)&&s.push(i?c.slice(1):c);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(h)):s},u.prototype.listeners=function(s){var h=i?i+s:s,c=this._events[h];if(!c)return[];
vendor: 1,972 bytes, line 84
84if(c.fn)return[c.fn];for(var d=0,f=c.length,v=new Array(f);d<f;d++)v[d]=c[d].fn;return v},u.prototype.listenerCount=function(s){var h=i?i+s:s,c=this._events[h];return c?c.fn?1:c.length:0},u.prototype.emit=function(s,h,c,d,f,v){var y=i?i+s:s;if(!this._events[y])return!1;var x=this._events[y],C=arguments.length,E,D;if(x.fn){switch(x.once&&this.removeListener(s,x.fn,void 0,!0),C){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,h),!0;case 3:return x.fn.call(x.context,h,c),!0;case 4:return x.fn.call(x.context,h,c,d),!0;case 5:return x.fn.call(x.context,h,c,d,f),!0;case 6:return x.fn.call(x.context,h,c,d,f,v),!0}for(D=1,E=new Array(C-1);D<C;D++)E[D-1]=arguments[D];x.fn.apply(x.context,E)}else{var M=x.length,X;for(D=0;D<M;D++)switch(x[D].once&&this.removeListener(s,x[D].fn,void 0,!0),C){case 1:x[D].fn.call(x[D].context);break;case 2:x[D].fn.call(x[D].context,h);break;case 3:x[D].fn.call(x[D].context,h,c);break;case 4:x[D].fn.call(x[D].context,h,c,d);break;default:if(!E)for(X=1,E=new Array(C-1);X<C;X++)E[X-1]=arguments[X];x[D].fn.apply(x[D].context,E)}}return!0},u.prototype.on=function(s,h,c){return o(this,s,h,c,!1)},u.prototype.once=function(s,h,c){return o(this,s,h,c,!0)},u.prototype.removeListener=function(s,h,c,d){var f=i?i+s:s;if(!this._events[f])return this;if(!h)return l(this,f),this;var v=this._events[f];if(v.fn)v.fn===h&&(!d||v.once)&&(!c||v.context===c)&&l(this,f);else{for(var y=0,x=[],C=v.length;y<C;y++)(v[y].fn!==h||d&&!v[y].once||c&&v[y].context!==c)&&x.push(v[y]);x.length?this._events[f]=x.length===1?x[0]:x:l(this,f)}return this},u.prototype.removeAllListeners=function(s){var h;return s?(h=i?i+s:s,this._events[h]&&l(this,h)):(this._events=new a,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=i,u.EventEmitter=u,e.exports=u}(Ea)),Ea.exports}var Lh=Th();const Mh=_r(Lh);class Ko extends Error{constructor(n){super(n),this.name="TimeoutError"}}
84class Ph extends Error{constructor(n){super(),this.name="AbortError",this.message=n}}const Oa=e=>globalThis.DOMException===void 0?new Ph(e):new DOMException(e),Ta=e=>{const n=e.reason===void 0?Oa("This operation was aborted."):e.reason;return n instanceof Error?n:Oa(n)};function Fh(e,n){const{milliseconds:i,fallback:a,message:r,customTimers:o={setTimeout,clearTimeout}}=n;let l,u;const s=new Promise((h,c)=>{if(typeof i!="number"||Math.sign(i)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${i}\``);if(n.signal){const{signal:f}=n;f.aborted&&c(Ta(f)),u=()=>{c(Ta(f))},f.addEventListener("abort",u,{once:!0})}if(i===Number.POSITIVE_INFINITY){e.then(h,c);return}const d=new Ko;l=o.setTimeout.call(void 0,()=>{if(a){try{h(a())}catch(f){c(f)}return}typeof e.cancel=="function"&&e.cancel(),r===!1?h():r instanceof Error?c(r):(d.message=r??`Promise timed out after ${i} milliseconds`,c(d))},i),(async()=>{try{h(await e)}catch(f){c(f)}})()}).finally(()=>{s.clear(),u&&n.signal&&n.signal.removeEventListener("abort",u)});return s.clear=()=>{o.clearTimeout.call(void 0,l),l=void 0},s}function Ih(e,n,i){let a=0,r=e.length;for(;r>0;){const o=Math.trunc(r/2);let l=a+o;i(e[l],n)<=0?(a=++l,r-=o+1):r=o}return a}class $h{#e=[];enqueue(n,i){i={priority:0,...i};const a={priority:i.priority,id:i.id,run:n};if(this.size===0||this.#e[this.size-1].priority>=i.priority){this.#e.push(a);return}const r=Ih(this.#e,a,(o,l)=>l.priority-o.priority);this.#e.splice(r,0,a)}setPriority(n,i){const a=this.#e.findIndex(o=>o.id===n);if(a===-1)throw new ReferenceError(`No promise function with the id "${n}" exists in the queue.`);const[r]=this.#e.splice(a,1);this.enqueue(r.run,{priority:i,id:n})}dequeue(){return this.#e.shift()?.run}filter(n){return this.#e.filter(i=>i.priority===n.priority).map(i=>i.run)}get size(){return this.#e.length}}class Bh extends Mh{#e;#o;#a=0;#p;#s;#f=0;#n;#l;#t;#m;#i=0;#u;#r;#v;#y=1n;timeout;constructor(n){if(super(),n={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:$h,...n},!(typeof n.intervalCap=="number"&&n.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${n.intervalCap?.toString()??""}\` (${typeof n.intervalCap})`);if(n.interval===void 0||!(Number.isFinite(n.interval)&&n.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${n.interval?.toString()??""}\` (${typeof n.interval})`);this.#e=n.carryoverConcurrencyCount,this.#o=n.intervalCap===Number.POSITIVE_INFINITY||n.interval===0,this.#p=n.intervalCap,this.#s=n.interval,this.#t=new n.queueClass,this.#m=n.queueClass,this.concurrency=n.concurrency,this.timeout=n.timeout,this.#v=n.throwOnTimeout===!0,this.#r=n.autoStart===!1}get#w(){return this.#o||this.#a<this.#p}get#x(){return this.#i<this.#u}#_(){this.#i--,this.#c(),this.emit("next")}#C(){this.#b(),this.#g(),this.#l=void 0}get#k(){const n=Date.now();if(this.#n===void 0){const i=this.#f-n;if(i<0)this.#a=this.#e?this.#i:0;else return this.#l===void 0&&(this.#l=setTimeout(()=>{this.#C()},i)),!0}return!1}#c(){if(this.#t.size===0)return this.#n&&clearInterval(this.#n),this.#n=void 0,this.emit("empty"),this.#i===0&&this.emit("idle"),!1;if(!this.#r){const n=!this.#k;if(this.#w&&this.#x){const i=this.#t.dequeue();return i?(this.emit("active"),i(),n&&this.#g(),!0):!1}}return!1}#g(){this.#o||this.#n!==void 0||(this.#n=setInterval(()=>{this.#b()},this.#s),this.#f=Date.now()+this.#s)}#b(){this.#a===0&&this.#i===0&&this.#n&&(clearInterval(this.#n),this.#n=void 0),this.#a=this.#e?this.#i:0,this.#h()}#h(){for(;this.#c(););}get concurrency(){return this.#u}set concurrency(n){if(!(typeof n=="number"&&n>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${n}\` (${typeof n})`);this.#u=n,this.#h()}async#S(n){return new Promise((i,a)=>{n.addEventListener("abort",()=>{a(n.reason)},{once:!0})})}setPriority(n,i){this.#t.setPriority(n,i)}async add(n,i={}){return i.id??=(this.#y++).toString(),i={timeout:this.timeout,throwOnTimeout:this.#v,...i},new Promise((a,r)=>{this.#t.enqueue(async()=>{this.#i++;try{i.signal?.throwIfAborted(),this.#a++;let o=n({signal:i.signal});
84i.timeout&&(o=Fh(Promise.resolve(o),{milliseconds:i.timeout})),i.signal&&(o=Promise.race([o,this.#S(i.signal)]));const l=await o;a(l),this.emit("completed",l)}catch(o){if(o instanceof Ko&&!i.throwOnTimeout){a();return}r(o),this.emit("error",o)}finally{this.#_()}},i),this.emit("add"),this.#c()})}async addAll(n,i){return Promise.all(n.map(async a=>this.add(a,i)))}start(){return this.#r?(this.#r=!1,this.#h(),this):this}pause(){this.#r=!0}clear(){this.#t=new this.#m}async onEmpty(){this.#t.size!==0&&await this.#d("empty")}async onSizeLessThan(n){this.#t.size<n||await this.#d("next",()=>this.#t.size<n)}async onIdle(){this.#i===0&&this.#t.size===0||await this.#d("idle")}async#d(n,i){return new Promise(a=>{const r=()=>{i&&!i()||(this.off(n,r),a())};this.on(n,r)})}get size(){return this.#t.size}sizeBy(n){return this.#t.filter(n).length}get pending(){return this.#i}get isPaused(){return this.#r}}new Bh({concurrency:5});function vi(){return typeof window<"u"}function Ut(e){return Go(e)?(e.nodeName||"").toLowerCase():"#document"}function Fe(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Ze(e){var n;return(n=(Go(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function Go(e){return vi()?e instanceof Node||e instanceof Fe(e).Node:!1}function Ue(e){return vi()?e instanceof Element||e instanceof Fe(e).Element:!1}function lt(e){return vi()?e instanceof HTMLElement||e instanceof Fe(e).HTMLElement:!1}function La(e){return!vi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fe(e).ShadowRoot}function yn(e){const{overflow:n,overflowX:i,overflowY:a,display:r}=Ye(e);return/auto|scroll|overlay|hidden|clip/.test(n+a+i)&&r!=="inline"&&r!=="contents"}function Nh(e){return/^(table|td|th)$/.test(Ut(e))}function gi(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const zh=/transform|translate|scale|rotate|perspective|filter/,Vh=/paint|layout|strict|content/,bt=e=>!!e&&e!=="none";let Hi;function $r(e){const n=Ue(e)?Ye(e):e;return bt(n.transform)||bt(n.translate)||bt(n.scale)||bt(n.rotate)||bt(n.perspective)||!Br()&&(bt(n.backdropFilter)||bt(n.filter))||zh.test(n.willChange||"")||Vh.test(n.contain||"")}function Rh(e){let n=vt(e);for(;lt(n)&&!Bt(n);){if($r(n))return n;if(gi(n))return null;n=vt(n)}return null}function Br(){return Hi==null&&(Hi=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Hi}function Bt(e){return/^(html|body|#document)$/.test(Ut(e))}function Ye(e){return Fe(e).getComputedStyle(e)}function bi(e){return Ue(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function vt(e){if(Ut(e)==="html")return e;const n=e.assignedSlot||e.parentNode||La(e)&&e.host||Ze(e);return La(n)?n.host:n}function Xo(e){const n=vt(e);return Bt(n)?e.ownerDocument?e.ownerDocument.body:e.body:lt(n)&&yn(n)?n:Xo(n)}function pn(e,n,i){var a;n===void 0&&(n=[]),i===void 0&&(i=!0);const r=Xo(e),o=r===((a=e.ownerDocument)==null?void 0:a.body),l=Fe(r);if(o){const u=pr(l);return n.concat(l,l.visualViewport||[],yn(r)?r:[],u&&i?pn(u):[])}else return n.concat(r,pn(r,[],i))}function pr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zo(e){const n=Ye(e);let i=parseFloat(n.width)||0,a=parseFloat(n.height)||0;const r=lt(e),o=r?e.offsetWidth:i,l=r?e.offsetHeight:a,u=$n(i)!==o||$n(a)!==l;return u&&(i=o,a=l),{width:i,height:a,$:u}}function Nr(e){return Ue(e)?e:e.contextElement}function $t(e){const n=Nr(e);
vendor: 6,219 bytes, line 84
84if(!lt(n))return Xe(1);const i=n.getBoundingClientRect(),{width:a,height:r,$:o}=Zo(n);let l=(o?$n(i.width):i.width)/a,u=(o?$n(i.height):i.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const Hh=Xe(0);function Jo(e){const n=Fe(e);return!Br()||!n.visualViewport?Hh:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Uh(e,n,i){return n===void 0&&(n=!1),!i||n&&i!==Fe(e)?!1:n}function At(e,n,i,a){n===void 0&&(n=!1),i===void 0&&(i=!1);const r=e.getBoundingClientRect(),o=Nr(e);let l=Xe(1);n&&(a?Ue(a)&&(l=$t(a)):l=$t(e));const u=Uh(o,i,a)?Jo(o):Xe(0);let s=(r.left+u.x)/l.x,h=(r.top+u.y)/l.y,c=r.width/l.x,d=r.height/l.y;if(o){const f=Fe(o),v=a&&Ue(a)?Fe(a):a;let y=f,x=pr(y);for(;x&&a&&v!==y;){const C=$t(x),E=x.getBoundingClientRect(),D=Ye(x),M=E.left+(x.clientLeft+parseFloat(D.paddingLeft))*C.x,X=E.top+(x.clientTop+parseFloat(D.paddingTop))*C.y;s*=C.x,h*=C.y,c*=C.x,d*=C.y,s+=M,h+=X,y=Fe(x),x=pr(y)}}return ho({width:c,height:d,x:s,y:h})}function yi(e,n){const i=bi(e).scrollLeft;return n?n.left+i:At(Ze(e)).left+i}function Qo(e,n){const i=e.getBoundingClientRect(),a=i.left+n.scrollLeft-yi(e,i),r=i.top+n.scrollTop;return{x:a,y:r}}function Yh(e){let{elements:n,rect:i,offsetParent:a,strategy:r}=e;const o=r==="fixed",l=Ze(a),u=n?gi(n.floating):!1;if(a===l||u&&o)return i;let s={scrollLeft:0,scrollTop:0},h=Xe(1);const c=Xe(0),d=lt(a);if((d||!d&&!o)&&((Ut(a)!=="body"||yn(l))&&(s=bi(a)),d)){const v=At(a);h=$t(a),c.x=v.x+a.clientLeft,c.y=v.y+a.clientTop}const f=l&&!d&&!o?Qo(l,s):Xe(0);return{width:i.width*h.x,height:i.height*h.y,x:i.x*h.x-s.scrollLeft*h.x+c.x+f.x,y:i.y*h.y-s.scrollTop*h.y+c.y+f.y}}function Wh(e){return Array.from(e.getClientRects())}function qh(e){const n=Ze(e),i=bi(e),a=e.ownerDocument.body,r=It(n.scrollWidth,n.clientWidth,a.scrollWidth,a.clientWidth),o=It(n.scrollHeight,n.clientHeight,a.scrollHeight,a.clientHeight);let l=-i.scrollLeft+yi(e);const u=-i.scrollTop;return Ye(a).direction==="rtl"&&(l+=It(n.clientWidth,a.clientWidth)-r),{width:r,height:o,x:l,y:u}}const Ma=25;function Kh(e,n){const i=Fe(e),a=Ze(e),r=i.visualViewport;let o=a.clientWidth,l=a.clientHeight,u=0,s=0;if(r){o=r.width,l=r.height;const c=Br();(!c||c&&n==="fixed")&&(u=r.offsetLeft,s=r.offsetTop)}const h=yi(a);if(h<=0){const c=a.ownerDocument,d=c.body,f=getComputedStyle(d),v=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,y=Math.abs(a.clientWidth-d.clientWidth-v);y<=Ma&&(o-=y)}else h<=Ma&&(o+=h);return{width:o,height:l,x:u,y:s}}function Gh(e,n){const i=At(e,!0,n==="fixed"),a=i.top+e.clientTop,r=i.left+e.clientLeft,o=lt(e)?$t(e):Xe(1),l=e.clientWidth*o.x,u=e.clientHeight*o.y,s=r*o.x,h=a*o.y;return{width:l,height:u,x:s,y:h}}function Pa(e,n,i){let a;if(n==="viewport")a=Kh(e,i);else if(n==="document")a=qh(Ze(e));else if(Ue(n))a=Gh(n,i);else{const r=Jo(e);a={x:n.x-r.x,y:n.y-r.y,width:n.width,height:n.height}}return ho(a)}function es(e,n){const i=vt(e);return i===n||!Ue(i)||Bt(i)?!1:Ye(i).position==="fixed"||es(i,n)}function Xh(e,n){const i=n.get(e);if(i)return i;let a=pn(e,[],!1).filter(u=>Ue(u)&&Ut(u)!=="body"),r=null;const o=Ye(e).position==="fixed";let l=o?vt(e):e;for(;Ue(l)&&!Bt(l);){const u=Ye(l),s=$r(l);!s&&u.position==="fixed"&&(r=null),(o?!s&&!r:!s&&u.position==="static"&&r&&(r.position==="absolute"||r.position==="fixed")||yn(l)&&!s&&es(e,l))?a=a.filter(h=>h!==l):r=u,l=vt(l)}return n.set(e,a),a}function Zh(e){let{element:n,boundary:i,rootBoundary:a,strategy:r}=e;const o=[...i==="clippingAncestors"?gi(n)?[]:Xh(n,this._c):[].concat(i),a],l=Pa(n,o[0],r);let u=l.top,s=l.right,h=l.bottom,c=l.left;for(let d=1;d<o.length;d++){const f=Pa(n,o[d],r);u=It(f.top,u),s=Ji(f.right,s),h=Ji(f.bottom,h),c=It(f.left,c)}return{width:s-c,height:h-u,x:c,y:u}}function Jh(e){const{width:n,height:i}=Zo(e);return{width:n,height:i}}function Qh(e,n,i){const a=lt(n),r=Ze(n),o=i==="fixed",l=At(e,!0,o,n);let u={scrollLeft:0,scrollTop:0};const s=Xe(0);function h(){s.x=yi(r)}if(a||!a&&!o)if((Ut(n)!=="body"||yn(r))&&(u=bi(n)),a){const v=At(n,!0,o,n);s.x=v.x+n.clientLeft,s.y=v.y+n.clientTop}else r&&h();o&&!a&&r&&h();const c=r&&!a&&!o?Qo(r,u):Xe(0),d=l.left+u.scrollLeft-s.x-c.x,f=l.top+u.scrollTop-s.y-c.y;return{x:d,y:f,width:l.width,height:l.height}}function Ui(e){return Ye(e).position==="static"}function Fa(e,n){if(!lt(e)||Ye(e).position==="fixed")return null;if(n)return n(e);let i=e.offsetParent;return Ze(e)===i&&(i=i.ownerDocument.body),i}function ts(e,n){const i=Fe(e);if(gi(e))return i;if(!lt(e)){let r=vt(e);for(;r&&!Bt(r);){if(Ue(r)&&!Ui(r))return r;r=vt(r)}return i}let a=Fa(e,n);for(;a&&Nh(a)&&Ui(a);)a=Fa(a,n);return a&&Bt(a)&&Ui(a)&&!$r(a)?i:a||Rh(e)||i}const ed=async function(e){const n=this.getOffsetParent||ts,i=this.getDimensions,a=await i(e.floating);return{reference:Qh(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function td(e){return Ye(e).direction==="rtl"}const nd={convertOffsetParentRelativeRectToViewportRelativeRect:Yh,getDocumentElement:Ze,getClippingRect:Zh,getOffsetParent:ts,getElementRects:ed,getClientRects:Wh,getDimensions:Jh,getScale:$t,isElement:Ue,isRTL:td};function ns(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function id(e,n){let i=null,a;const r=Ze(e);function o(){var u;clearTimeout(a),(u=i)==null||u.disconnect(),i=null}function l(u,s){u===void 0&&(u=!1),s===void 0&&(s=1),o();const h=e.getBoundingClientRect(),{left:c,top:d,width:f,height:v}=h;if(u||n(),!f||!v)return;const y=wn(d),x=wn(r.clientWidth-(c+f)),C=wn(r.clientHeight-(d+v)),E=wn(c),D={rootMargin:-y+"px "+-x+"px "+-C+"px "+-E+"px",threshold:It(0,Ji(1,s))||1};let M=!0;function X(U){const F=U[0].intersectionRatio;if(F!==s){if(!M)return l();F?l(!1,F):a=setTimeout(()=>{l(!1,1e-7)},1e3)}F===1&&!ns(h,e.getBoundingClientRect())&&l(),M=!1}try{i=new IntersectionObserver(X,{...D,root:r.ownerDocument})}catch{i=new IntersectionObserver(X,D)}i.observe(e)}return l(!0),o}function rd(e,n,i,a){a===void 0&&(a={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:s=!1}=a,h=Nr(e),c=r||o?[...h?pn(h):[],...n?pn(n):[]]:[];
84c.forEach(E=>{r&&E.addEventListener("scroll",i,{passive:!0}),o&&E.addEventListener("resize",i)});const d=h&&u?id(h,i):null;let f=-1,v=null;l&&(v=new ResizeObserver(E=>{let[D]=E;D&&D.target===h&&v&&n&&(v.unobserve(n),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var M;(M=v)==null||M.observe(n)})),i()}),h&&!s&&v.observe(h),n&&v.observe(n));let y,x=s?At(e):null;s&&C();function C(){const E=At(e);x&&!ns(x,E)&&i(),x=E,y=requestAnimationFrame(C)}return i(),()=>{var E;c.forEach(D=>{r&&D.removeEventListener("scroll",i),o&&D.removeEventListener("resize",i)}),d?.(),(E=v)==null||E.disconnect(),v=null,s&&cancelAnimationFrame(y)}}const ad=Bs,od=zs,sd=Ns,ld=Vs,ud=(e,n,i)=>{const a=new Map,r={platform:nd,...i},o={...r.platform,_c:a};return $s(e,n,{...r,platform:o})};var fr={exports:{}},cd=fr.exports,Ia;function hd(){return Ia||(Ia=1,function(e,n){(function(i,a){e.exports=a()})(typeof self<"u"?self:cd,function(){return(()=>{var i={646:l=>{l.exports=function(u){if(Array.isArray(u)){for(var s=0,h=new Array(u.length);s<u.length;s++)h[s]=u[s];return h}}},713:l=>{l.exports=function(u,s,h){return s in u?Object.defineProperty(u,s,{value:h,enumerable:!0,configurable:!0,writable:!0}):u[s]=h,u}},860:l=>{l.exports=function(u){if(Symbol.iterator in Object(u)||Object.prototype.toString.call(u)==="[object Arguments]")return Array.from(u)}},206:l=>{l.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(l,u,s)=>{var h=s(646),c=s(860),d=s(206);l.exports=function(f){return h(f)||c(f)||d()}},8:l=>{function u(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l.exports=u=function(h){return typeof h}:l.exports=u=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},u(s)}l.exports=u}},a={};function r(l){var u=a[l];if(u!==void 0)return u.exports;var s=a[l]={exports:{}};return i[l](s,s.exports,r),s.exports}r.n=l=>{var u=l&&l.__esModule?()=>l.default:()=>l;return r.d(u,{a:u}),u},r.d=(l,u)=>{for(var s in u)r.o(u,s)&&!r.o(l,s)&&Object.defineProperty(l,s,{enumerable:!0,get:u[s]})},r.o=(l,u)=>Object.prototype.hasOwnProperty.call(l,u),r.r=l=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var o={};return(()=>{r.r(o),r.d(o,{VueSelect:()=>G,default:()=>R,mixins:()=>W});var l=r(319),u=r.n(l),s=r(8),h=r.n(s),c=r(713),d=r.n(c);const f={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(m){var S=this;this.autoscroll&&m&&this.$nextTick(function(){return S.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var m,S=((m=this.$refs.dropdownMenu)===null||m===void 0?void 0:m.children[this.typeAheadPointer])||!1;if(S){var j=this.getDropdownViewport(),L=S.getBoundingClientRect(),Y=L.top,I=L.bottom,Z=L.height;if(Y<j.top)return this.$refs.dropdownMenu.scrollTop=S.offsetTop;if(I>j.bottom)return this.$refs.dropdownMenu.scrollTop=S.offsetTop-(j.height-Z)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},v={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){if(this.resetFocusOnOptionsChange){for(var m=0;m<this.filteredOptions.length;m++)if(this.selectable(this.filteredOptions[m])){this.typeAheadPointer=m;break}}},open:function(m){m&&this.typeAheadToLastSelected()},selectedValue:function(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp:function(){for(var m=this.typeAheadPointer-1;m>=0;m--)if(this.selectable(this.filteredOptions[m])){this.typeAheadPointer=m;break}},typeAheadDown:function(){for(var m=this.typeAheadPointer+1;m<this.filteredOptions.length;m++)if(this.selectable(this.filteredOptions[m])){this.typeAheadPointer=m;break}},typeAheadSelect:function(){var m=this.filteredOptions[this.typeAheadPointer];m&&this.selectable(m)&&this.select(m)},typeAheadToLastSelected:function(){var m=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1;
84m!==-1&&(this.typeAheadPointer=m)}}},y={props:{loading:{type:Boolean,default:!1}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.$emit("search",this.search,this.toggleLoading)},loading:function(m){this.mutableLoading=m}},methods:{toggleLoading:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=m??!this.mutableLoading}}};function x(m,S,j,L,Y,I,Z,ne){var _e,oe=typeof m=="function"?m.options:m;return S&&(oe.render=S,oe.staticRenderFns=j,oe._compiled=!0),{exports:m,options:oe}}const C={Deselect:x({},function(){var m=this.$createElement,S=this._self._c||m;return S("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[S("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[]).exports,OpenIndicator:x({},function(){var m=this.$createElement,S=this._self._c||m;return S("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[S("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[]).exports},E={inserted:function(m,S,j){var L=j.context;if(L.appendToBody){document.body.appendChild(m);var Y=L.$refs.toggle.getBoundingClientRect(),I=Y.height,Z=Y.top,ne=Y.left,_e=Y.width,oe=window.scrollX||window.pageXOffset,le=window.scrollY||window.pageYOffset;m.unbindPosition=L.calculatePosition(m,L,{width:_e+"px",left:oe+ne+"px",top:le+Z+I+"px"})}},unbind:function(m,S,j){j.context.appendToBody&&(m.unbindPosition&&typeof m.unbindPosition=="function"&&m.unbindPosition(),m.parentNode&&m.parentNode.removeChild(m))}},D=function(m){var S={};return Object.keys(m).sort().forEach(function(j){S[j]=m[j]}),JSON.stringify(S)};var M=0;const X=function(){return++M};function U(m,S){var j=Object.keys(m);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(m);S&&(L=L.filter(function(Y){return Object.getOwnPropertyDescriptor(m,Y).enumerable})),j.push.apply(j,L)}return j}function F(m){for(var S=1;S<arguments.length;S++){var j=arguments[S]!=null?arguments[S]:{};S%2?U(Object(j),!0).forEach(function(L){d()(m,L,j[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(j)):U(Object(j)).forEach(function(L){Object.defineProperty(m,L,Object.getOwnPropertyDescriptor(j,L))})}return m}const G=x({components:F({},C),directives:{appendToBody:E},mixins:[f,v,y],props:{value:{},components:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},ariaLabelCombobox:{type:String,default:"Search for options"},ariaLabelListbox:{type:String,default:"Options"},ariaLabelClearSelected:{type:String,default:"Clear selected"},ariaLabelDeselectOption:{type:Function,default:function(m){return"Deselect ".concat(m)}},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:function(m){return m}},selectable:{type:Function,default:function(m){return!0}},getOptionLabel:{type:Function,default:function(m){return h()(m)==="object"?m.hasOwnProperty(this.label)?m[this.label]:console.warn('[vue-select warn]: Label key "option.'.concat(this.label,'" does not')+" exist in options object ".concat(JSON.stringify(m),`.
85`)+"https://vue-select.org/api/props.html#getoptionlabel"):m}},getOptionKey:{type:Function,default:function(m){if(h()(m)!=="object")return m;try{return m.hasOwnProperty("id")?m.id:D(m)}catch(S){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
86https://vue-select.org/api/props.html#getoptionkey`,m,S)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(m,S,j){return(S||"").toLocaleLowerCase().indexOf(j.toLocaleLowerCase())>-1}},filter:{type:Function,default:function(m,S){var j=this;return m.filter(function(L){var Y=j.getOptionLabel(L);return typeof Y=="number"&&(Y=Y.toString()),j.filterBy(L,Y,S)})}},createOption:{type:Function,default:function(m){return h()(this.optionList[0])==="object"?d()({},this.label,m):m}},resetFocusOnOptionsChange:{type:Boolean,default:!0},resetOnOptionsChange:{default:!1,validator:function(m){return["function","boolean"].includes(h()(m))}},clearSearchOnBlur:{type:Function,default:function(m){var S=m.clearSearchOnSelect,j=m.multiple;return S&&!j}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(m,S){return m}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(m,S,j){var L=j.width,Y=j.top,I=j.left;m.style.top=Y,m.style.left=I,m.style.width=L}},dropdownShouldOpen:{type:Function,default:function(m){var S=m.n
86oDrop,j=m.open,L=m.mutableLoading;return!S&&j&&!L}},keyboardFocusBorder:{type:Boolean,default:!1},uid:{type:[String,Number],default:function(){return X()}}},data:function(){return{search:"",open:!1,isComposing:!1,isKeyboardNavigation:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var m=this.value;return this.isTrackingValues&&(m=this.$data._value),m!=null&&m!==""?[].concat(m):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var m=this,S={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:F({id:this.inputId,disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,role:"combobox","aria-autocomplete":"list","aria-label":this.ariaLabelCombobox,"aria-controls":"vs-".concat(this.uid,"__listbox"),"aria-owns":"vs-".concat(this.uid,"__listbox"),"aria-expanded":this.dropdownOpen.toString(),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs-".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return m.isComposing=!0},compositionend:function(){return m.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(j){return m.search=j.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:S,listFooter:S,header:F({},S,{deselect:this.deselect}),footer:F({},S,{deselect:this.deselect})}},childComponents:function(){return F({},C,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var m=this,S=function(I){return m.limit!==null?I.slice(0,m.limit):I},j=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return S(j);var L=this.search.length?this.filter(j,this.search,this):j;if(this.taggable&&this.search.length)try{var Y=this.createOption(this.search);this.optionExists(Y)||L.unshift(Y)}catch{}return S(L)},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(m,S){var j=this;!this.taggable&&(typeof j.resetOnOptionsChange=="function"?j.resetOnOptionsChange(m,S,j.selectedValue):j.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(m){this.isTrackingValues&&this.setInternalValueFromOptions(m)}},multiple:function(){this.clearSelection()},open:function(m){this.$emit(m?"open":"close")},search:function(m){m.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(m){var S=this;Array.isArray(m)?this.$data._value=m.map(function(j){return S.findOptionFromReducedValue(j)}):this.$data._value=this.findOptionFromReducedValue(m)},select:function(m){this.$emit("option:selecting",m),this.isOptionSelected(m)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(m):(this.taggable&&!this.optionExists(m)&&this.$emit("option:created",m),this.multiple&&(m=this.selectedValue.concat(m)),this.updateV
86alue(m),this.$emit("option:selected",m)),this.onAfterSelect(m)},deselect:function(m){var S=this;this.$emit("option:deselecting",m),this.updateValue(this.selectedValue.filter(function(j){return!S.optionComparator(j,m)})),this.$emit("option:deselected",m)},keyboardDeselect:function(m,S){var j,L;this.deselect(m);var Y=(j=this.$refs.deselectButtons)===null||j===void 0?void 0:j[S+1],I=(L=this.$refs.deselectButtons)===null||L===void 0?void 0:L[S-1],Z=Y??I;Z?Z.focus():this.searchEl.focus()},clearSelection:function(){this.updateValue(this.multiple?[]:null),this.searchEl.focus()},onAfterSelect:function(m){var S=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick(function(){return S.$refs.search.focus()})},updateValue:function(m){var S=this;this.value===void 0&&(this.$data._value=m),m!==null&&(m=Array.isArray(m)?m.map(function(j){return S.reduce(j)}):this.reduce(m)),this.$emit("input",m)},toggleDropdown:function(m){var S=m.target!==this.searchEl;S&&m.preventDefault();var j=[].concat(u()(this.$refs.deselectButtons||[]),u()([this.$refs.clearButton]));this.searchEl===void 0||j.filter(Boolean).some(function(L){return L.contains(m.target)||L===m.target})?m.preventDefault():this.open&&S?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(m){var S=this;return this.selectedValue.some(function(j){return S.optionComparator(j,m)})},isOptionDeselectable:function(m){return this.isOptionSelected(m)&&this.deselectFromDropdown},hasKeyboardFocusBorder:function(m){return!(!this.keyboardFocusBorder||!this.isKeyboardNavigation)&&m===this.typeAheadPointer},optionComparator:function(m,S){return this.getOptionKey(m)===this.getOptionKey(S)},findOptionFromReducedValue:function(m){var S=this,j=[].concat(u()(this.options),u()(this.pushedTags)).filter(function(L){return JSON.stringify(S.reduce(L))===JSON.stringify(m)});return j.length===1?j[0]:j.find(function(L){return S.optionComparator(L,S.$data._value)})||m},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var m=null;this.multiple&&(m=u()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(m)}},optionExists:function(m){var S=this;return this.optionList.some(function(j){return S.optionComparator(j,m)})},optionAriaSelected:function(m){return this.selectable(m)?String(this.isOptionSelected(m)):null},normalizeOptionForSlot:function(m){return h()(m)==="object"?m:d()({},this.label,m)},pushTag:function(m){this.pushedTags.push(m)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var m=this.clearSearchOnSelect,S=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:m,multiple:S})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onMouseMove:function(m,S){this.isKeyboardNavigation=!1,this.selectable(m)&&(this.typeAheadPointer=S)},onSearchKeyDown:function(m){var S=this,j=function(I){if(I.preventDefault(),S.open)return!S.isComposing&&S.typeAheadSelect();S.open=!0},L={8:function(I){return S.maybeDeleteValue()},9:function(I){return S.onTab()},27:function(I){return S.onEscape()},38:function(I){if(I.preventDefault(),S.isKeyboardNavigation=!0,S.open)return S.typeAheadUp();S.open=!0},40:function(I){if(I.preventDefault(),S.isKeyboardNavigation=!0,S.open)return S.typeAheadDown();S.open=!0}};this.selectOnKeyCodes.forEach(function(I){return L[I]=j});var Y=this.mapKeydown(L,this);if(typeof Y[m.keyCode]=="function")return Y[m.keyCode](m)},onSearchKeyPress:function(m){this.open||m.keyCode!==32||(m.preventDefault(),this.open=!0)}}},function(){var m=this,S=m.$createElement,j=m._self._c||S;return j("div",{staticClass:"v-select",class:m.stateClasses,attrs:{id:"v-select-"+m.uid,dir:m.dir}},[m._t("header",null,null,m.scope.header),m._v(" "),j("div",{ref:"toggle",staticClass:"vs__dropdown-toggle"},[j("div",{ref:"selectedOptions",staticClass:"vs__selected-options",on:{mousedown:m.toggleDropdown}},[m._l(m.selectedValue,function(L,Y){return m._t("selected-option-container",[j("span",{key:m.getOptionKey(L),staticClass:"vs__selected"},[m._t("selected-option",[m._v(`
87            `+m._s(m.getOptionLabel(L))+`
88          `)],null,m.normalizeOptionForSlot(L)),m._v(" "),m.multiple?j("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:m.disabled,type:"button",title:m.ariaLabelDeselectOption(m.getOptionLabel(L)),"aria-label":m.ariaLabelDeselectOption(m.getOptionLabel(L))},on:{mousedown:function(I){return I.stopPropagation(),m.deselect(L)},keydown:function(I){return!I.type.indexOf("key")&&m._k(I.keyCode,"enter",13,I.key,"Enter")?null:m.keyboardDeselect(L,Y)}}},[j(m.childComponents.Deselect,{tag:"component"})],1):m._e()],2)],{option:m.normalizeOptionForSlot(L),deselect:m.deselect,multiple:m.multiple,disabled:m.disabled})}),m._v(" "),m._t("search",[j("input",m._g(m._b({staticClass:"vs__search"},"input",m.scope.search.attributes,!1),m.scope.search.events))],null,m.scope.search)],2),m._v(" "),j("div",{ref:"actions",staticClass:"vs__actions"},[j("button",{directives:[{name:"show",rawName:"v-show",value:m.showClearButton,expression:"showClearButton"}
88],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:m.disabled,type:"button",title:m.ariaLabelClearSelected,"aria-label":m.ariaLabelClearSelected},on:{click:m.clearSelection}},[j(m.childComponents.Deselect,{tag:"component"})],1),m._v(" "),m.noDrop?m._e():j("button",{ref:"openIndicatorButton",staticClass:"vs__open-indicator-button",attrs:{type:"button",tabindex:"-1","aria-labelledby":"vs-"+m.uid+"__listbox","aria-controls":"vs-"+m.uid+"__listbox","aria-expanded":m.dropdownOpen.toString()},on:{mousedown:m.toggleDropdown}},[m._t("open-indicator",[j(m.childComponents.OpenIndicator,m._b({tag:"component"},"component",m.scope.openIndicator.attributes,!1))],null,m.scope.openIndicator)],2),m._v(" "),m._t("spinner",[j("div",{directives:[{name:"show",rawName:"v-show",value:m.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[m._v("Loading...")])],null,m.scope.spinner)],2)]),m._v(" "),j("transition",{attrs:{name:m.transition}},[m.dropdownOpen?j("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs-"+m.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs-"+m.uid+"__listbox",role:"listbox","aria-label":m.ariaLabelListbox,"aria-multiselectable":m.multiple,tabindex:"-1"},on:{mousedown:function(L){return L.preventDefault(),m.onMousedown(L)},mouseup:m.onMouseUp}},[m._t("list-header",null,null,m.scope.listHeader),m._v(" "),m._l(m.filteredOptions,function(L,Y){return j("li",{key:m.getOptionKey(L),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":m.isOptionDeselectable(L)&&Y===m.typeAheadPointer,"vs__dropdown-option--selected":m.isOptionSelected(L),"vs__dropdown-option--highlight":Y===m.typeAheadPointer,"vs__dropdown-option--kb-focus":m.hasKeyboardFocusBorder(Y),"vs__dropdown-option--disabled":!m.selectable(L)},attrs:{id:"vs-"+m.uid+"__option-"+Y,role:"option","aria-selected":m.optionAriaSelected(L)},on:{mousemove:function(I){return m.onMouseMove(L,Y)},click:function(I){I.preventDefault(),I.stopPropagation(),m.selectable(L)&&m.select(L)}}},[m._t("option",[m._v(`
89          `+m._s(m.getOptionLabel(L))+`
90        `)],null,m.normalizeOptionForSlot(L))],2)}),m._v(" "),m.filteredOptions.length===0?j("li",{staticClass:"vs__no-options"},[m._t("no-options",[m._v(`
91          Sorry, no matching options.
92        `)],null,m.scope.noOptions)],2):m._e(),m._v(" "),m._t("list-footer",null,null,m.scope.listFooter)],2):j("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs-"+m.uid+"__listbox",role:"listbox","aria-label":m.ariaLabelListbox}})]),m._v(" "),m._t("footer",null,null,m.scope.footer)],2)},[]).exports,W={ajax:y,pointer:v,pointerScroll:f},R=G})(),o})()})}(fr)),fr.exports}var yt=hd();function is(e,n){const i=[];let a=0,r=e.toLowerCase().indexOf(n.toLowerCase(),a),o=0;for(;r>-1&&o<e.length;)a=r+n.length,i.push({start:r,end:a}),r=e.toLowerCase().indexOf(n.toLowerCase(),a),o++;return i}const dd={name:"NcHighlight",props:{text:{type:String,default:""},search:{type:String,default:""},highlight:{type:Array,default:()=>[]}},computed:{ranges(){let e=[];return!this.search&&this.highlight.length===0||(this.highlight.length>0?e=this.highlight:e=is(this.text,this.search),e.forEach((n,i)=>{n.end<n.start&&(e[i]={start:n.end,end:n.start})}),e=e.reduce((n,i)=>(i.start<this.text.length&&i.end>0&&n.push({start:i.start<0?0:i.start,end:i.end>this.text.length?this.text.length:i.end}),n),[]),e.sort((n,i)=>n.start-i.start),e=e.reduce((n,i)=>{if(!n.length)n.push(i);else{const a=n.length-1;n[a].end>=i.start?n[a]={start:n[a].start,end:Math.max(n[a].end,i.end)}:n.push(i)}return n},[])),e},chunks(){if(this.ranges.length===0)return[{start:0,end:this.text.length,highlight:!1,text:this.text}];const e=[];let n=0,i=0;for(;n<this.text.length;){const a=this.ranges[i];if(a.start===n){e.push({...a,highlight:!0,text:this.text.slice(a.start,a.end)}),i++,n=a.end,i>=this.ranges.length&&n<this.text.length&&(e.push({start:n,end:this.text.length,highlight:!1,text:this.text.slice(n)}),n=this.text.length);continue}e.push({start:n,end:a.start,highlight:!1,text:this.text.slice(n,a.start)}),n=a.start}return e}},render(e){return this.ranges.length?e("span",{},this.chunks.map(n=>n.highlight?e("strong",{},n.text):n.text)):e("span",{},this.text)}},pd=null,fd=null;var md=xe(dd,pd,fd,!1,null,null);const rs=md.exports,vd={name:"NcEllipsisedOption",components:{NcHighlight:rs},props:{name:{type:String,default:""},search:{type:String,default:""}},computed:{needsTruncate(){return this.name&&this.name.length>=10},split(){return this.name.length-Math.min(Math.floor(this.name.length/2),10)},part1(){return this.needsTruncate?this.name.slice(0,this.split):this.name},part2(){return this.needsTruncate?this.name.slice(this.split):""},highlight1(){return this.search?is(this.name,this.search):[]},highlight2(){return this.highlight1.map(e=>({start:e.start-this.split,end:e.end-this.split}))}}};var gd=function(){var e=this,n=e._self._c;return n("span",{staticClass:"name-parts",attrs:{dir:"auto",title:e.name}},[n("NcHighlight",{staticClass:"name-parts__first",attrs:{text:e.part1,search:e.search,highlight:e.highlight1}}),e.part2?n("NcHighlight",{staticClass:"name-parts__last",attrs:{text:e.part2,search:e.search,highlight:e.highlight2}}
92):e._e()],1)},bd=[],yd=xe(vd,gd,bd,!1,null,"592b8444");const wd=yd.exports,xd=8,$a=32,_d={name:"NcListItemIcon",components:{NcAvatar:Oh,NcHighlight:rs,NcIconSvgWrapper:Sr},mixins:[Wo],props:{name:{type:String,required:!0},subname:{type:String,default:""},icon:{type:String,default:""},iconSvg:{type:String,default:""},iconName:{type:String,default:""},search:{type:String,default:""},avatarSize:{type:Number,default:$a},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},setup(){return{margin:xd,defaultSize:$a}},computed:{hasIcon(){return this.icon!==""},hasIconSvg(){return this.iconSvg!==""},isValidSubname(){return this.subname?.trim?.()!==""},isSizeBigEnough(){return this.avatarSize>=26},cssVars(){const e=this.noMargin?0:this.margin;return{"--height":this.avatarSize+2*e+"px","--margin":this.margin+"px"}},searchParts(){const e=/^([^<]*)<([^>]+)>?$/,n=this.search.match(e);return this.isNoUser||!n?[this.search,this.search]:[n[1].trim(),n[2]]}},beforeMount(){!this.isNoUser&&!this.subname&&this.fetchUserStatus(this.user)}};var Cd=function(){var e=this,n=e._self._c;return n("span",e._g({staticClass:"option",class:{"option--compact":e.avatarSize<e.defaultSize},style:e.cssVars,attrs:{id:e.id}},e.$listeners),[n("NcAvatar",e._b({staticClass:"option__avatar",attrs:{"disable-menu":!0,"disable-tooltip":!0,"display-name":e.displayName||e.name,"is-no-user":e.isNoUser,size:e.avatarSize}},"NcAvatar",e.$attrs,!1)),n("div",{staticClass:"option__details"},[n("NcHighlight",{staticClass:"option__lineone",attrs:{text:e.name,search:e.searchParts[0]}}),e.isValidSubname&&e.isSizeBigEnough?n("NcHighlight",{staticClass:"option__linetwo",attrs:{text:e.subname,search:e.searchParts[1]}}):e.hasStatus?n("span",[n("span",[e._v(e._s(e.userStatus.icon))]),n("span",[e._v(e._s(e.userStatus.message))])]):e._e()],1),e._t("default",function(){return[e.hasIconSvg?n("NcIconSvgWrapper",{staticClass:"option__icon",attrs:{svg:e.iconSvg,name:e.iconName}}):e.hasIcon?n("span",{staticClass:"icon option__icon",class:e.icon,attrs:{"aria-label":e.iconName}}):e._e()]})],2)},kd=[],Sd=xe(_d,Cd,kd,!1,null,"eff1d9a4");const Dd=Sd.exports;te(xo,Ol);const Ad={name:"NcSelect",components:{ChevronDown:mc,NcEllipsisedOption:wd,NcListItemIcon:Dd,NcLoadingIcon:jr,VueSelect:yt.VueSelect},model:{prop:"modelValue",event:"update:modelValue"},props:{...yt.VueSelect.props,...yt.VueSelect.mixins.reduce((e,n)=>({...e,...n.props}),{}),ariaLabelClearSelected:{type:String,default:V("Clear selected")},ariaLabelCombobox:{type:String,default:null},ariaLabelListbox:{type:String,default:V("Options")},ariaLabelDeselectOption:{type:Function,default:e=>V("Deselect {option}",{option:e})},appendToBody:{type:Boolean,default:!0},calculatePosition:{type:Function,default:null},closeOnSelect:{type:Boolean,default:!0},keepOpen:{type:Boolean,default:!1},components:{type:Object,default:()=>({Deselect:{render:e=>e(pl,{props:{size:20,fillColor:"var(--vs-controls-color)"},style:{cursor:"pointer"}})}})},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},dropdownShouldOpen:{type:Function,default:({noDrop:e,open:n})=>e?!1:n},filterBy:{type:Function,default:null},inputClass:{type:[String,Object],default:null},inputId:{type:String,default:()=>`select-input-${Dt()}`},inputLabel:{type:String,default:null},labelOutside:{type:Boolean,default:!1},keyboardFocusBorder:{type:Boolean,default:!0},label:{type:String,default:null},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""},mapKeydown:{type:Function,default(e,n){return{...e,27:i=>{n.open&&i.stopPropagation(),e[27](i)}}}},uid:{type:String,default:()=>Dt()},placement:{type:String,default:"bottom"},resetFocusOnOptionsChange:{type:Boolean,default:!0},userSelect:{type:Boolean,default:!1},value:{type:[String,Number,Object,Array],default:void 0},modelValue:{type:[String,Number,Object,Array],default:null},required:{type:Boolean,default:!1}," ":{}},emits:[" ","input","update:modelValue","update:model-value"],setup(){const e=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-clickable-area")),n=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-grid-baseline")),i=e-2*n,a=jt("value","input");return{avatarSize:i,model:a,isLegacy:it}},data(){return{search:""}},computed:{inputRequired(){return this.required?this.model===null||Array.isArray(this.model)&&this.model.length===0:null},localCalculatePosition(){return this.calculatePosition!==null?this.calculatePosition:(e,n,{width:i})=>{e.style.width=i;const a={name:"addClass",fn(){return e.classList.add("vs__dropdown-menu--floating"),{}}},r={name:"togglePlacementClass",fn({placement:l}){return n.$el.classList.toggle("select--drop-up",l==="top"),e.classList.toggle("vs__dropdown-menu--floating-placement-top",l==="top"),{}}},o=()=>{ud(n.$refs.toggle,e,{placement:this.placement,middleware:[ad(-1),a,r,sd(),od({limiter:ld()})]}).then(({x:l,y:u})=>{Object.assign(e.style,{left:`${l}px`,top:`${u}px`,width:`${n.$refs.toggle.getBoundingClientRect().width}px`})})};return rd(n.$refs.toggle,e,o)}},localFilterBy(){const e=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(n,i,a)=>{const r=a.match(e);return r&&n.subname?.toLocaleLowerCase?.()?.indexOf(r[1].toLocaleLowerCase())>-1||`${i} ${n.subname}`.toLocaleLowerCase().indexOf(a.toLocaleLowerCase())>-1}:yt.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":yt.VueSelect.props.label.default},propsToForward(){const e=[...Object.keys(yt.VueSelect.props),...yt.VueSelect.mixins.flatMap(n=>Object.keys(n.props??{}))];return{...Object.fromEntries(Object.entries(this.$props).filter(([n])=>e.includes(n))),value:this.model,calculatePosition:this.localCalculatePosition,closeOnSelect:this.closeOnSelect&&!this.keepOpen,filterBy:this.localFilterBy,label:this.localLabel}}
92,listenersToForward(){return{...this.$listeners,input:e=>{this.model=e}}}},mounted(){!this.labelOutside&&!this.inputLabel&&!this.ariaLabelCombobox&&He.util.warn("[NcSelect] An `inputLabel` or `ariaLabelCombobox` should be set. If an external label is used, `labelOutside` should be set to `true`."),this.inputLabel&&this.ariaLabelCombobox&&He.util.warn("[NcSelect] Only one of `inputLabel` or `ariaLabelCombobox` should to be set.")},methods:{t:V}};var Ed=function(){var e=this,n=e._self._c;return n("VueSelect",e._g(e._b({staticClass:"select",class:{"select--legacy":e.isLegacy,"select--no-wrap":e.noWrap,"user-select":e.userSelect},on:{search:i=>e.search=i},scopedSlots:e._u([!e.labelOutside&&e.inputLabel?{key:"header",fn:function(){return[n("label",{staticClass:"select__label",attrs:{for:e.inputId}},[e._v(" "+e._s(e.inputLabel)+" ")])]},proxy:!0}:null,{key:"search",fn:function({attributes:i,events:a}){return[n("input",e._g(e._b({staticClass:"vs__search",class:e.inputClass,attrs:{required:e.inputRequired,dir:"auto"}},"input",i,!1),a))]}},{key:"open-indicator",fn:function({attributes:i}){return[n("ChevronDown",e._b({style:{cursor:e.disabled?null:"pointer"},attrs:{"fill-color":"var(--vs-controls-color)",size:26}},"ChevronDown",i,!1))]}},{key:"option",fn:function(i){return[e._t("option",function(){return[e.userSelect?n("NcListItemIcon",e._b({attrs:{"avatar-size":32,name:i[e.localLabel],search:e.search}},"NcListItemIcon",i,!1)):n("NcEllipsisedOption",{attrs:{name:String(i[e.localLabel]),search:e.search}})]},null,i)]}},{key:"selected-option",fn:function(i){return[e._t("selected-option",function(){return[e.userSelect?n("NcListItemIcon",e._b({attrs:{"avatar-size":e.avatarSize,name:i[e.localLabel],"no-margin":"",search:e.search}},"NcListItemIcon",i,!1)):n("NcEllipsisedOption",{attrs:{name:String(i[e.localLabel]),search:e.search}})]},{vBind:i})]}},{key:"spinner",fn:function(i){return[i.loading?n("NcLoadingIcon"):e._e()]}},{key:"no-options",fn:function(){return[e._v(" "+e._s(e.t("No results"))+" ")]},proxy:!0},e._l(e.$scopedSlots,function(i,a){return{key:a,fn:function(r){return[e._t(a,null,null,r)]}}})],null,!0)},"VueSelect",e.propsToForward,!1),e.listenersToForward))},jd=[],Od=xe(Ad,Ed,jd,!1,null,null);const zr=Od.exports;te(Tl),te(Ll);var mr={exports:{}},Td=mr.exports,Ba;function Ld(){return Ba||(Ba=1,function(e,n){(function(i,a){e.exports=a()})(typeof self<"u"?self:Td,function(){return function(i){function a(o){if(r[o])return r[o].exports;var l=r[o]={i:o,l:!1,exports:{}};return i[o].call(l.exports,l,l.exports,a),l.l=!0,l.exports}var r={};return a.m=i,a.c=r,a.d=function(o,l,u){a.o(o,l)||Object.defineProperty(o,l,{configurable:!1,enumerable:!0,get:u})},a.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(l,"a",l),l},a.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},a.p="",a(a.s=59)}([function(i,a){function r(l,u){var s=l[1]||"",h=l[3];if(!h)return s;if(u&&typeof btoa=="function"){var c=o(h);return[s].concat(h.sources.map(function(d){return"/*# sourceURL="+h.sourceRoot+d+" */"})).concat([c]).join(`
93`)}return[s].join(`
94`)}function o(l){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(l))))+" */"}i.exports=function(l){var u=[];return u.toString=function(){return this.map(function(s){var h=r(s,l);return s[2]?"@media "+s[2]+"{"+h+"}":h}).join("")},u.i=function(s,h){typeof s=="string"&&(s=[[null,s,""]]);for(var c={},d=0;d<this.length;d++){var f=this[d][0];typeof f=="number"&&(c[f]=!0)}for(d=0;d<s.length;d++){var v=s[d];typeof v[0]=="number"&&c[v[0]]||(h&&!v[2]?v[2]=h:h&&(v[2]="("+v[2]+") and ("+h+")"),u.push(v))}},u}},function(i,a,r){function o(F){for(var G=0;G<F.length;G++){var W=F[G],R=f[W.id];if(R){R.refs++;for(var m=0;m<R.parts.length;m++)R.parts[m](W.parts[m]);for(;m<W.parts.length;m++)R.parts.push(u(W.parts[m]));R.parts.length>W.parts.length&&(R.parts.length=W.parts.length)}else{for(var S=[],m=0;m<W.parts.length;m++)S.push(u(W.parts[m]));f[W.id]={id:W.id,refs:1,parts:S}}}}function l(){var F=document.createElement("style");return F.type="text/css",v.appendChild(F),F}function u(F){var G,W,R=document.querySelector("style["+M+'~="'+F.id+'"]');if(R){if(C)return E;R.parentNode.removeChild(R)}if(X){var m=x++;R=y||(y=l()),G=s.bind(null,R,m,!1),W=s.bind(null,R,m,!0)}else R=l(),G=h.bind(null,R),W=function(){R.parentNode.removeChild(R)};return G(F),function(S){if(S){if(S.css===F.css&&S.media===F.media&&S.sourceMap===F.sourceMap)return;G(F=S)}else W()}}function s(F,G,W,R){var m=W?"":R.css;if(F.styleSheet)F.styleSheet.cssText=U(G,m);else{var S=document.createTextNode(m),j=F.childNodes;j[G]&&F.removeChild(j[G]),j.length?F.insertBefore(S,j[G]):F.appendChild(S)}}function h(F,G){var W=G.css,R=G.media,m=G.sourceMap;if(R&&F.setAttribute("media",R),D.ssrId&&F.setAttribute(M,G.id),m&&(W+=`
95/*# sourceURL=`+m.sources[0]+" */",W+=`
96/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(m))))+" */"),F.styleSheet)F.styleSheet.cssText=W;else{for(;F.firstChild;)F.removeChild(F.firstChild);F.appendChild(document.createTextNode(W))}}var c=typeof document<"u";if(typeof DEBUG<"u"&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var d=r(63),f={},v=c&&(document.head||document.getElementsByTagName("head")[0]),y=null,x=0,C=!1,E=function(){},D=null,M="data-vue-ssr-id",X=typeof navigator<"u"&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());i.exports=function(F,G,W,R){C=W,D=R||{};var m=d(F,G);return o(m),function(S){for(var j=[],L=0;L<m.length;L++){var Y=m[L],I=f[Y.id];I.refs--,j.push(I)}S?(m=d(F,S),o(m)):m=[];for(var L=0;L<j.length;L++){var I=j[L];if(I.refs===0){for(var Z=0;Z<I.parts.length;Z++)I.parts[Z]();delete f[I.id]}}}};var U=function(){var F=[];
96return function(G,W){return F[G]=W,F.filter(Boolean).join(`
97`)}}()},function(i,a){i.exports=function(r,o,l,u,s,h){var c,d=r=r||{},f=typeof r.default;f!=="object"&&f!=="function"||(c=r,d=r.default);var v=typeof d=="function"?d.options:d;o&&(v.render=o.render,v.staticRenderFns=o.staticRenderFns,v._compiled=!0),l&&(v.functional=!0),s&&(v._scopeId=s);var y;if(h?(y=function(E){E=E||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,E||typeof __VUE_SSR_CONTEXT__>"u"||(E=__VUE_SSR_CONTEXT__),u&&u.call(this,E),E&&E._registeredComponents&&E._registeredComponents.add(h)},v._ssrRegister=y):u&&(y=u),y){var x=v.functional,C=x?v.render:v.beforeCreate;x?(v._injectStyles=y,v.render=function(E,D){return y.call(D),C(E,D)}):v.beforeCreate=C?[].concat(C,y):[y]}return{esModule:c,exports:d,options:v}}},function(i,a,r){function o(s,h){var c,d=s&&s.a;!(c=s&&s.hsl?(0,u.default)(s.hsl):s&&s.hex&&s.hex.length>0?(0,u.default)(s.hex):s&&s.hsv?(0,u.default)(s.hsv):s&&s.rgba?(0,u.default)(s.rgba):s&&s.rgb?(0,u.default)(s.rgb):(0,u.default)(s))||c._a!==void 0&&c._a!==null||c.setAlpha(d||1);var f=c.toHsl(),v=c.toHsv();return f.s===0&&(v.h=f.h=s.h||s.hsl&&s.hsl.h||h||0),{hsl:f,hex:c.toHexString().toUpperCase(),hex8:c.toHex8String().toUpperCase(),rgba:c.toRgb(),hsv:v,oldHue:s.h||h||f.h,source:s.source,a:s.a||c.getAlpha()}}Object.defineProperty(a,"__esModule",{value:!0});var l=r(64),u=function(s){return s&&s.__esModule?s:{default:s}}(l);a.default={props:["value"],data:function(){return{val:o(this.value)}},computed:{colors:{get:function(){return this.val},set:function(s){this.val=s,this.$emit("input",s)}}},watch:{value:function(s){this.val=o(s)}},methods:{colorChange:function(s,h){this.oldHue=this.colors.hsl.h,this.colors=o(s,h||this.oldHue)},isValidHex:function(s){return(0,u.default)(s).isValid()},simpleCheckForValidColor:function(s){for(var h=["r","g","b","a","h","s","l","v"],c=0,d=0,f=0;f<h.length;f++){var v=h[f];s[v]&&(c++,isNaN(s[v])||d++)}if(c===d)return s},paletteUpperCase:function(s){return s.map(function(h){return h.toUpperCase()})},isTransparent:function(s){return(0,u.default)(s).getAlpha()===0}}}},function(i,a){var r=i.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=r)},function(i,a,r){function o(v){r(65)}Object.defineProperty(a,"__esModule",{value:!0});var l=r(36),u=r.n(l);for(var s in l)s!=="default"&&function(v){r.d(a,v,function(){return l[v]})}(s);var h=r(67),c=r(2),d=o,f=c(u.a,h.a,!1,d,null,null);f.options.__file="src/components/common/EditableInput.vue",a.default=f.exports},function(i,a){var r={}.hasOwnProperty;i.exports=function(o,l){return r.call(o,l)}},function(i,a,r){var o=r(8),l=r(16);i.exports=r(9)?function(u,s,h){return o.f(u,s,l(1,h))}:function(u,s,h){return u[s]=h,u}},function(i,a,r){var o=r(13),l=r(42),u=r(25),s=Object.defineProperty;a.f=r(9)?Object.defineProperty:function(h,c,d){if(o(h),c=u(c,!0),o(d),l)try{return s(h,c,d)}catch{}if("get"in d||"set"in d)throw TypeError("Accessors not supported!");return"value"in d&&(h[c]=d.value),h}},function(i,a,r){i.exports=!r(15)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(i,a,r){var o=r(89),l=r(22);i.exports=function(u){return o(l(u))}},function(i,a,r){var o=r(29)("wks"),l=r(17),u=r(4).Symbol,s=typeof u=="function";(i.exports=function(h){return o[h]||(o[h]=s&&u[h]||(s?u:l)("Symbol."+h))}).store=o},function(i,a,r){function o(v){r(111)}Object.defineProperty(a,"__esModule",{value:!0});var l=r(50),u=r.n(l);for(var s in l)s!=="default"&&function(v){r.d(a,v,function(){return l[v]})}(s);var h=r(113),c=r(2),d=o,f=c(u.a,h.a,!1,d,null,null);f.options.__file="src/components/common/Hue.vue",a.default=f.exports},function(i,a,r){var o=r(14);i.exports=function(l){if(!o(l))throw TypeError(l+" is not an object!");return l}},function(i,a){i.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},function(i,a){i.exports=function(r){try{return!!r()}catch{return!0}}},function(i,a){i.exports=function(r,o){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:o}}},function(i,a){var r=0,o=Math.random();i.exports=function(l){return"Symbol(".concat(l===void 0?"":l,")_",(++r+
97o).toString(36))}},function(i,a,r){function o(v){r(123)}Object.defineProperty(a,"__esModule",{value:!0});var l=r(53),u=r.n(l);for(var s in l)s!=="default"&&function(v){r.d(a,v,function(){return l[v]})}(s);var h=r(127),c=r(2),d=o,f=c(u.a,h.a,!1,d,null,null);f.options.__file="src/components/common/Saturation.vue",a.default=f.exports},function(i,a,r){function o(v){r(128)}Object.defineProperty(a,"__esModule",{value:!0});var l=r(54),u=r.n(l);for(var s in l)s!=="default"&&function(v){r.d(a,v,function(){return l[v]})}(s);var h=r(133),c=r(2),d=o,f=c(u.a,h.a,!1,d,null,null);f.options.__file="src/components/common/Alpha.vue",a.default=f.exports},function(i,a,r){function o(v){r(130)}Object.defineProperty(a,"__esModule",{value:!0});var l=r(55),u=r.n(l);for(var s in l)s!=="default"&&function(v){r.d(a,v,function(){return l[v]})}(s);var h=r(132),c=r(2),d=o,f=c(u.a,h.a,!1,d,null,null);f.options.__file="src/components/common/Checkboard.vue",a.default=f.exports},function(i,a){var r=Math.ceil,o=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?o:r)(l)}},function(i,a){i.exports=function(r){if(r==null)throw TypeError("Can't call method on  "+r);return r}},function(i,a){i.exports=!0},function(i,a){var r=i.exports={version:"2.5.1"};typeof __e=="number"&&(__e=r)},function(i,a,r){var o=r(14);i.exports=function(l,u){if(!o(l))return l;var s,h;if(u&&typeof(s=l.toString)=="function"&&!o(h=s.call(l))||typeof(s=l.valueOf)=="function"&&!o(h=s.call(l))||!u&&typeof(s=l.toString)=="function"&&!o(h=s.call(l)))return h;throw TypeError("Can't convert object to primitive value")}},function(i,a){i.exports={}},function(i,a,r){var o=r(46),l=r(30);i.exports=Object.keys||function(u){return o(u,l)}},function(i,a,r){var o=r(29)("keys"),l=r(17);i.exports=function(u){return o[u]||(o[u]=l(u))}},function(i,a,r){var o=r(4),l=o["__core-js_shared__"]||(o["__core-js_shared__"]={});i.exports=function(u){return l[u]||(l[u]={})}},function(i,a){i.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(i,a,r){var o=r(8).f,l=r(6),u=r(11)("toStringTag");i.exports=function(s,h,c){s&&!l(s=c?s:s.prototype,u)&&o(s,u,{configurable:!0,value:h})}},function(i,a,r){a.f=r(11)},function(i,a,r){var o=r(4),l=r(24),u=r(23),s=r(32),h=r(8).f;i.exports=function(c){var d=l.Symbol||(l.Symbol=u?{}:o.Symbol||{});c.charAt(0)=="_"||c in d||h(d,c,{value:s.f(c)})}},function(i,a){a.f={}.propertyIsEnumerable},function(i,a,r){function o(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(a,"__esModule",{value:!0});var l=r(3),u=o(l),s=r(5),h=o(s),c=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#CCCCCC","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];a.default={name:"Compact",mixins:[u.default],props:{palette:{type:Array,default:function(){return c}}},components:{"ed-in":h.default},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(d){this.colorChange({hex:d,source:"hex"})}}}},function(i,a,r){Object.defineProperty(a,"__esModule",{value:!0}),a.default={name:"editableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get:function(){return this.value},set:function(o){if(!(this.max!==void 0&&+o>this.max))return o;this.$refs.input.value=this.max}},labelId:function(){return"input__label__"+this.label+"__"+Math.random().toString().slice(2,5)},labelSpanText:function(){return this.labelText||this.label}},methods:{update:function(o){this.handleChange(o.target.value)},handleChange:function(o){var l={};l[this.label]=o,l.hex===void 0&&l["#"]===void 0?this.$emit("change",l):o.length>5&&this.$emit("change",l)},handleKeyDown:function(o){var l=this.val,u=Number(l);if(u){var s=this.arrowOffset||1;o.keyCode===38&&(l=u+s,this.handleChange(l),o.preventDefault()),o.keyCode===40&&(l=u-s,this.handleChange(l),o.preventDefault())}}}}},function(i,a,r){Object.defineProperty(a,"__esModule",{value:!0});var o=r(3),l=function(s){return s&&s.__esModule?s:{default:s}}
97(o),u=["#FFFFFF","#F2F2F2","#E6E6E6","#D9D9D9","#CCCCCC","#BFBFBF","#B3B3B3","#A6A6A6","#999999","#8C8C8C","#808080","#737373","#666666","#595959","#4D4D4D","#404040","#333333","#262626","#0D0D0D","#000000"];a.default={name:"Grayscale",mixins:[l.default],props:{palette:{type:Array,default:function(){return u}}},components:{},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(s){this.colorChange({hex:s,source:"hex"})}}}},function(i,a,r){function o(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(a,"__esModule",{value:!0});var l=r(5),u=o(l),s=r(3),h=o(s);a.default={name:"Material",mixins:[h.default],components:{"ed-in":u.default},methods:{onChange:function(c){c&&(c.hex?this.isValidHex(c.hex)&&this.colorChange({hex:c.hex,source:"hex"}):(c.r||c.g||c.b)&&this.colorChange({r:c.r||this.colors.rgba.r,g:c.g||this.colors.rgba.g,b:c.b||this.colors.rgba.b,a:c.a||this.colors.rgba.a,source:"rgba"}))}}}},function(i,a,r){function o(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(a,"__esModule",{value:!0});var l=r(80),u=o(l),s=r(3),h=o(s),c=r(12),d=o(c);a.default={name:"Slider",mixins:[h.default],props:{swatches:{type:Array,default:function(){return[{s:.5,l:.8},{s:.5,l:.65},{s:.5,l:.5},{s:.5,l:.35},{s:.5,l:.2}]}}},components:{hue:d.default},computed:{normalizedSwatches:function(){return this.swatches.map(function(f){return(f===void 0?"undefined":(0,u.default)(f))!=="object"?{s:.5,l:f}:f})}},methods:{isActive:function(f,v){var y=this.colors.hsl;return y.l===1&&f.l===1||y.l===0&&f.l===0||Math.abs(y.l-f.l)<.01&&Math.abs(y.s-f.s)<.01},hueChange:function(f){this.colorChange(f)},handleSwClick:function(f,v){this.colorChange({h:this.colors.hsl.h,s:v.s,l:v.l,source:"hsl"})}}}},function(i,a,r){var o=r(23),l=r(41),u=r(44),s=r(7),h=r(6),c=r(26),d=r(87),f=r(31),v=r(94),y=r(11)("iterator"),x=!([].keys&&"next"in[].keys()),C=function(){return this};i.exports=function(E,D,M,X,U,F,G){d(M,D,X);var W,R,m,S=function(le){if(!x&&le in I)return I[le];switch(le){case"keys":case"values":return function(){return new M(this,le)}}return function(){return new M(this,le)}},j=D+" Iterator",L=U=="values",Y=!1,I=E.prototype,Z=I[y]||I["@@iterator"]||U&&I[U],ne=Z||S(U),_e=U?L?S("entries"):ne:void 0,oe=D=="Array"&&I.entries||Z;if(oe&&(m=v(oe.call(new E)))!==Object.prototype&&m.next&&(f(m,j,!0),o||h(m,y)||s(m,y,C)),L&&Z&&Z.name!=="values"&&(Y=!0,ne=function(){return Z.call(this)}),o&&!G||!x&&!Y&&I[y]||s(I,y,ne),c[D]=ne,c[j]=C,U)if(W={values:L?ne:S("values"),keys:F?ne:S("keys"),entries:_e},G)for(R in W)R in I||u(I,R,W[R]);else l(l.P+l.F*(x||Y),D,W);return W}},function(i,a,r){var o=r(4),l=r(24),u=r(85),s=r(7),h=function(c,d,f){var v,y,x,C=c&h.F,E=c&h.G,D=c&h.S,M=c&h.P,X=c&h.B,U=c&h.W,F=E?l:l[d]||(l[d]={}),G=F.prototype,W=E?o:D?o[d]:(o[d]||{}).prototype;E&&(f=d);for(v in f)(y=!C&&W&&W[v]!==void 0)&&v in F||(x=y?W[v]:f[v],F[v]=E&&typeof W[v]!="function"?f[v]:X&&y?u(x,o):U&&W[v]==x?function(R){var m=function(S,j,L){if(this instanceof R){switch(arguments.length){case 0:return new R;case 1:return new R(S);case 2:return new R(S,j)}return new R(S,j,L)}return R.apply(this,arguments)};return m.prototype=R.prototype,m}(x):M&&typeof x=="function"?u(Function.call,x):x,M&&((F.virtual||(F.virtual={}))[v]=x,c&h.R&&G&&!G[v]&&s(G,v,x)))};h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128,i.exports=h},function(i,a,r){i.exports=!r(9)&&!r(15)(function(){return Object.defineProperty(r(43)("div"),"a",{get:function(){return 7}}).a!=7})},function(i,a,r){var o=r(14),l=r(4).document,u=o(l)&&o(l.createElement);i.exports=function(s){return u?l.createElement(s):{}}},function(i,a,r){i.exports=r(7)},function(i,a,r){var o=r(13),l=r(88),u=r(30),s=r(28)("IE_PROTO"),h=function(){},c=function(){var d,f=r(43)("iframe"),v=u.length;for(f.style.display="none",r(93).appendChild(f),f.src="javascript:",d=f.contentWindow.document,d.open(),d.write("<script>document.F=Object<\/script>"),d.close(),c=d.F;v--;)delete c.prototype[u[v]];return c()};i.exports=Object.create||function(d,f){var v;return d!==null?(h.prototype=o(d),v=new h,h.prototype=null,v[s]=d):v=c(),f===void 0?v:l(v,f)}},function(i,a,r){var o=r(6),l=r(10),u=r(90)(!1),s=r(28)("IE_PROTO");i.exports=function(h,c){var d,f=l(h),v=0,y=[];for(d in f)d!=s&&o(f,d)&&y.push(d);for(;c.length>v;)o(f,d=c[v++])&&(~u(y,d)||y.push(d));return y}},function(i,a){var r={}.toString;i.exports=function(o){return r.call(o).slice(8,-1)}},function(i,a){a.f=Object.getOwnPropertySymbols},function(i,a,r){var o=r(46),l=r(30).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(u){return o(u,l)}},function(i,a,r){Object.defineProperty(a,"__esModule",{value:!0}),a.default={name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data:function(){return{oldHue:0,pullDirection:""}},computed:{colors:function(){var o=this.value.hsl.h;return o!==0&&o-this.oldHue>0&&(this.pullDirection="right"),o!==0&&o-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=o,this.value},directionClass:function(){return{"vc-hue--horizontal":this.direction==="horizontal","vc-hue--vert
97ical":this.direction==="vertical"}},pointerTop:function(){return this.direction==="vertical"?this.colors.hsl.h===0&&this.pullDirection==="right"?0:-100*this.colors.hsl.h/360+100+"%":0},pointerLeft:function(){return this.direction==="vertical"?0:this.colors.hsl.h===0&&this.pullDirection==="right"?"100%":100*this.colors.hsl.h/360+"%"}},methods:{handleChange:function(o,l){!l&&o.preventDefault();var u=this.$refs.container;if(u){var s,h,c=u.clientWidth,d=u.clientHeight,f=u.getBoundingClientRect().left+window.pageXOffset,v=u.getBoundingClientRect().top+window.pageYOffset,y=o.pageX||(o.touches?o.touches[0].pageX:0),x=o.pageY||(o.touches?o.touches[0].pageY:0),C=y-f,E=x-v;this.direction==="vertical"?(E<0?s=360:E>d?s=0:(h=-100*E/d+100,s=360*h/100),this.colors.hsl.h!==s&&this.$emit("change",{h:s,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(C<0?s=0:C>c?s=360:(h=100*C/c,s=360*h/100),this.colors.hsl.h!==s&&this.$emit("change",{h:s,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))}},handleMouseDown:function(o){this.handleChange(o,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(o){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(i,a,r){function o(v){return v&&v.__esModule?v:{default:v}}Object.defineProperty(a,"__esModule",{value:!0});var l=r(118),u=o(l),s=r(3),h=o(s),c=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","blueGrey","black"],d=["900","700","500","300","100"],f=function(){var v=[];return c.forEach(function(y){var x=[];y.toLowerCase()==="black"||y.toLowerCase()==="white"?x=x.concat(["#000000","#FFFFFF"]):d.forEach(function(C){var E=u.default[y][C];x.push(E.toUpperCase())}),v.push(x)}),v}();a.default={name:"Swatches",mixins:[h.default],props:{palette:{type:Array,default:function(){return f}}},computed:{pick:function(){return this.colors.hex}},methods:{equal:function(v){return v.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick:function(v){this.colorChange({hex:v,source:"hex"})}}}},function(i,a,r){function o(C){return C&&C.__esModule?C:{default:C}}Object.defineProperty(a,"__esModule",{value:!0});var l=r(3),u=o(l),s=r(5),h=o(s),c=r(18),d=o(c),f=r(12),v=o(f),y=r(19),x=o(y);a.default={name:"Photoshop",mixins:[u.default],props:{head:{type:String,default:"Color Picker"},disableFields:{type:Boolean,default:!1},hasResetButton:{type:Boolean,default:!1},acceptLabel:{type:String,default:"OK"},cancelLabel:{type:String,default:"Cancel"},resetLabel:{type:String,default:"Reset"},newLabel:{type:String,default:"new"},currentLabel:{type:String,default:"current"}},components:{saturation:d.default,hue:v.default,alpha:x.default,"ed-in":h.default},data:function(){return{currentColor:"#FFF"}},computed:{hsv:function(){var C=this.colors.hsv;return{h:C.h.toFixed(),s:(100*C.s).toFixed(),v:(100*C.v).toFixed()}},hex:function(){var C=this.colors.hex;return C&&C.replace("#","")}},created:function(){this.currentColor=this.colors.hex},methods:{childChange:function(C){this.colorChange(C)},inputChange:function(C){C&&(C["#"]?this.isValidHex(C["#"])&&this.colorChange({hex:C["#"],source:"hex"}):C.r||C.g||C.b||C.a?this.colorChange({r:C.r||this.colors.rgba.r,g:C.g||this.colors.rgba.g,b:C.b||this.colors.rgba.b,a:C.a||this.colors.rgba.a,source:"rgba"}):(C.h||C.s||C.v)&&this.colorChange({h:C.h||this.colors.hsv.h,s:C.s/100||this.colors.hsv.s,v:C.v/100||this.colors.hsv.v,source:"hsv"}))},clickCurrentColor:function(){this.colorChange({hex:this.currentColor,source:"hex"})},handleAccept:function(){this.$emit("ok")},handleCancel:function(){this.$emit("cancel")},handleReset:function(){this.$emit("reset")}}}},function(i,a,r){function o(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(a,"__esModule",{value:!0});var l=r(125),u=o(l),s=r(126),h=o(s);a.default={name:"Saturation",props:{value:Object},computed:{colors:function(){return this.value},bgColor:function(){return"hsl("+this.colors.hsv.h+", 100%, 50%)"},pointerTop:function(){return-100*this.colors.hsv.v+1+100+"%"},pointerLeft:function(){return 100*this.colors.hsv.s+"%"}},beforeDestroy:function(){this.unbindEventListeners()},methods:{throttle:(0,h.default)(function(c,d){c(d)},20,{leading:!0,trailing:!1}),handleChange:function(c,d){!d&&c.preventDefault();var f=this.$refs.container;if(f){var v=f.clientWidth,y=f.clientHeight,x=f.getBoundingClientRect().left+window.pageXOffset,C=f.getBoundingClientRect().top+window.pageYOffset,E=c.pageX||(c.touches?c.touches[0].pageX:0),D=c.pageY||(c.touches?c.touches[0].pageY:0),M=(0,u.default)(E-x,0,v),X=(0,u.default)(D-C,0,y),U=M/v,F=(0,u.default)(-X/y+1,0,1);this.throttle(this.onChange,{h:this.colors.hsv.h,s:U,v:F,a:this.colors.hsv.a,source:"hsva"})}},onChange:function(c){this.$emit("change",c)},handleMouseDown:function(c){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(c){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(i,a,r){Object.defineProperty(a,"__esModule",{value:!0});
97var o=r(20),l=function(u){return u&&u.__esModule?u:{default:u}}(o);a.default={name:"Alpha",props:{value:Object,onChange:Function},components:{checkboard:l.default},computed:{colors:function(){return this.value},gradientColor:function(){var u=this.colors.rgba,s=[u.r,u.g,u.b].join(",");return"linear-gradient(to right, rgba("+s+", 0) 0%, rgba("+s+", 1) 100%)"}},methods:{handleChange:function(u,s){!s&&u.preventDefault();var h=this.$refs.container;if(h){var c,d=h.clientWidth,f=h.getBoundingClientRect().left+window.pageXOffset,v=u.pageX||(u.touches?u.touches[0].pageX:0),y=v-f;c=y<0?0:y>d?1:Math.round(100*y/d)/100,this.colors.a!==c&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:c,source:"rgba"})}},handleMouseDown:function(u){this.handleChange(u,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(i,a,r){function o(s,h,c){if(typeof document>"u")return null;var d=document.createElement("canvas");d.width=d.height=2*c;var f=d.getContext("2d");return f?(f.fillStyle=s,f.fillRect(0,0,d.width,d.height),f.fillStyle=h,f.fillRect(0,0,c,c),f.translate(c,c),f.fillRect(0,0,c,c),d.toDataURL()):null}function l(s,h,c){var d=s+","+h+","+c;if(u[d])return u[d];var f=o(s,h,c);return u[d]=f,f}Object.defineProperty(a,"__esModule",{value:!0});var u={};a.default={name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle:function(){return{"background-image":"url("+l(this.white,this.grey,this.size)+")"}}}}},function(i,a,r){function o(M){return M&&M.__esModule?M:{default:M}}Object.defineProperty(a,"__esModule",{value:!0});var l=r(3),u=o(l),s=r(5),h=o(s),c=r(18),d=o(c),f=r(12),v=o(f),y=r(19),x=o(y),C=r(20),E=o(C),D=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF","rgba(0,0,0,0)"];a.default={name:"Sketch",mixins:[u.default],components:{saturation:d.default,hue:v.default,alpha:x.default,"ed-in":h.default,checkboard:E.default},props:{presetColors:{type:Array,default:function(){return D}},disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},computed:{hex:function(){var M=void 0;return M=this.colors.a<1?this.colors.hex8:this.colors.hex,M.replace("#","")},activeColor:function(){var M=this.colors.rgba;return"rgba("+[M.r,M.g,M.b,M.a].join(",")+")"}},methods:{handlePreset:function(M){this.colorChange({hex:M,source:"hex"})},childChange:function(M){this.colorChange(M)},inputChange:function(M){M&&(M.hex?this.isValidHex(M.hex)&&this.colorChange({hex:M.hex,source:"hex"}):(M.r||M.g||M.b||M.a)&&this.colorChange({r:M.r||this.colors.rgba.r,g:M.g||this.colors.rgba.g,b:M.b||this.colors.rgba.b,a:M.a||this.colors.rgba.a,source:"rgba"}))}}}},function(i,a,r){function o(D){return D&&D.__esModule?D:{default:D}}Object.defineProperty(a,"__esModule",{value:!0});var l=r(3),u=o(l),s=r(5),h=o(s),c=r(18),d=o(c),f=r(12),v=o(f),y=r(19),x=o(y),C=r(20),E=o(C);a.default={name:"Chrome",mixins:[u.default],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},components:{saturation:d.default,hue:v.default,alpha:x.default,"ed-in":h.default,checkboard:E.default},data:function(){return{fieldsIndex:0,highlight:!1}},computed:{hsl:function(){var D=this.colors.hsl,M=D.h,X=D.s,U=D.l;return{h:M.toFixed(),s:(100*X).toFixed()+"%",l:(100*U).toFixed()+"%"}},activeColor:function(){var D=this.colors.rgba;return"rgba("+[D.r,D.g,D.b,D.a].join(",")+")"},hasAlpha:function(){return this.colors.a<1}},methods:{childChange:function(D){this.colorChange(D)},inputChange:function(D){if(D){if(D.hex)this.isValidHex(D.hex)&&this.colorChange({hex:D.hex,source:"hex"});else if(D.r||D.g||D.b||D.a)this.colorChange({r:D.r||this.colors.rgba.r,g:D.g||this.colors.rgba.g,b:D.b||this.colors.rgba.b,a:D.a||this.colors.rgba.a,source:"rgba"});else if(D.h||D.s||D.l){var M=D.s?D.s.replace("%","")/100:this.colors.hsl.s,X=D.l?D.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:D.h||this.colors.hsl.h,s:M,l:X,source:"hsl"})}}},toggleViews:function(){if(this.fieldsIndex>=2)return void(this.fieldsIndex=0);this.fieldsIndex++},showHighlight:function(){this.highlight=!0},hideHighlight:function(){this.highlight=!1}}}},function(i,a,r){function o(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(a,"__esModule",{value:!0});var l=r(5),u=o(l),s=r(3),h=o(s),c=["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"];a.default={name:"Twitter",mixins:[h.default],components:{editableInput:u.default},props:{width:{type:[String,Number],default:276},defaultColors:{type:Array,default:function(){return c}},triangle:{default:"top-left",validator:function(d){return["hide","to
97p-left","top-right"].includes(d)}}},computed:{hsv:function(){var d=this.colors.hsv;return{h:d.h.toFixed(),s:(100*d.s).toFixed(),v:(100*d.v).toFixed()}},hex:function(){var d=this.colors.hex;return d&&d.replace("#","")}},methods:{equal:function(d){return d.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick:function(d){this.colorChange({hex:d,source:"hex"})},inputChange:function(d){d&&(d["#"]?this.isValidHex(d["#"])&&this.colorChange({hex:d["#"],source:"hex"}):d.r||d.g||d.b||d.a?this.colorChange({r:d.r||this.colors.rgba.r,g:d.g||this.colors.rgba.g,b:d.b||this.colors.rgba.b,a:d.a||this.colors.rgba.a,source:"rgba"}):(d.h||d.s||d.v)&&this.colorChange({h:d.h||this.colors.hsv.h,s:d.s/100||this.colors.hsv.s,v:d.v/100||this.colors.hsv.v,source:"hsv"}))}}}},function(i,a,r){function o(ye){return ye&&ye.__esModule?ye:{default:ye}}var l=r(60),u=o(l),s=r(69),h=o(s),c=r(73),d=o(c),f=r(77),v=o(f),y=r(115),x=o(y),C=r(120),E=o(C),D=r(135),M=o(D),X=r(139),U=o(X),F=r(143),G=o(F),W=r(19),R=o(W),m=r(20),S=o(m),j=r(5),L=o(j),Y=r(12),I=o(Y),Z=r(18),ne=o(Z),_e=r(3),oe=o(_e),le={version:"2.8.2",Compact:u.default,Grayscale:h.default,Twitter:G.default,Material:d.default,Slider:v.default,Swatches:x.default,Photoshop:E.default,Sketch:M.default,Chrome:U.default,Alpha:R.default,Checkboard:S.default,EditableInput:L.default,Hue:I.default,Saturation:ne.default,ColorMixin:oe.default};i.exports=le},function(i,a,r){function o(v){r(61)}Object.defineProperty(a,"__esModule",{value:!0});var l=r(35),u=r.n(l);for(var s in l)s!=="default"&&function(v){r.d(a,v,function(){return l[v]})}(s);var h=r(68),c=r(2),d=o,f=c(u.a,h.a,!1,d,null,null);f.options.__file="src/components/Compact.vue",a.default=f.exports},function(i,a,r){var o=r(62);typeof o=="string"&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals),r(1)("6ce8a5a8",o,!1,{})},function(i,a,r){a=i.exports=r(0)(!1),a.push([i.i,`
98.vc-compact {
99  padding-top: 5px;
100  padding-left: 5px;
101  width: 245px;
102  border-radius: 2px;
103  box-sizing: border-box;
104  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);
105  background-color: #fff;
106}
107.vc-compact-colors {
108  overflow: hidden;
109  padding: 0;
110  margin: 0;
111}
112.vc-compact-color-item {
113  list-style: none;
114  width: 15px;
115  height: 15px;
116  float: left;
117  margin-right: 5px;
118  margin-bottom: 5px;
119  position: relative;
120  cursor: pointer;
121}
122.vc-compact-color-item--white {
123  box-shadow: inset 0 0 0 1px #ddd;
124}
125.vc-compact-color-item--white .vc-compact-dot {
126  background: #000;
127}
128.vc-compact-dot {
129  position: absolute;
130  top: 5px;
131  right: 5px;
132  bottom: 5px;
133  left: 5px;
134  border-radius: 50%;
135  opacity: 1;
136  background: #fff;
137}
138`,""])},function(i,a){i.exports=function(r,o){for(var l=[],u={},s=0;s<o.length;s++){var h=o[s],c=h[0],d=h[1],f=h[2],v=h[3],y={id:r+":"+s,css:d,media:f,sourceMap:v};u[c]?u[c].parts.push(y):l.push(u[c]={id:c,parts:[y]})}return l}},function(i,a,r){var o;(function(l){function u(g,k){if(g=g||"",k=k||{},g instanceof u)return g;if(!(this instanceof u))return new u(g,k);var w=s(g);this._originalInput=g,this._r=w.r,this._g=w.g,this._b=w.b,this._a=w.a,this._roundA=Q(100*this._a)/100,this._format=k.format||w.format,this._gradientType=k.gradientType,this._r<1&&(this._r=Q(this._r)),this._g<1&&(this._g=Q(this._g)),this._b<1&&(this._b=Q(this._b)),this._ok=w.ok,this._tc_id=Ve++}function s(g){var k={r:0,g:0,b:0},w=1,$=null,q=null,H=null,T=!1,B=!1;return typeof g=="string"&&(g=he(g)),typeof g=="object"&&(pe(g.r)&&pe(g.g)&&pe(g.b)?(k=h(g.r,g.g,g.b),T=!0,B=String(g.r).substr(-1)==="%"?"prgb":"rgb"):pe(g.h)&&pe(g.s)&&pe(g.v)?($=ye(g.s),q=ye(g.v),k=v(g.h,$,q),T=!0,B="hsv"):pe(g.h)&&pe(g.s)&&pe(g.l)&&($=ye(g.s),H=ye(g.l),k=d(g.h,$,H),T=!0,B="hsl"),g.hasOwnProperty("a")&&(w=g.a)),w=Y(w),{ok:T,format:g.format||B,r:be(255,ae(k.r,0)),g:be(255,ae(k.g,0)),b:be(255,ae(k.b,0)),a:w}}function h(g,k,w){return{r:255*I(g,255),g:255*I(k,255),b:255*I(w,255)}}function c(g,k,w){g=I(g,255),k=I(k,255),w=I(w,255);var $,q,H=ae(g,k,w),T=be(g,k,w),B=(H+T)/2;if(H==T)$=q=0;else{var J=H-T;switch(q=B>.5?J/(2-H-T):J/(H+T),H){case g:$=(k-w)/J+(k<w?6:0);break;case k:$=(w-g)/J+2;break;case w:$=(g-k)/J+4}$/=6}return{h:$,s:q,l:B}}function d(g,k,w){function $(se,Ee,Se){return Se<0&&(Se+=1),Se>1&&(Se-=1),Se<1/6?se+6*(Ee-se)*Se:Se<.5?Ee:Se<2/3?se+(Ee-se)*(2/3-Se)*6:se}var q,H,T;
vendor: 9,455 bytes, line 138
138if(g=I(g,360),k=I(k,100),w=I(w,100),k===0)q=H=T=w;else{var B=w<.5?w*(1+k):w+k-w*k,J=2*w-B;q=$(J,B,g+1/3),H=$(J,B,g),T=$(J,B,g-1/3)}return{r:255*q,g:255*H,b:255*T}}function f(g,k,w){g=I(g,255),k=I(k,255),w=I(w,255);var $,q,H=ae(g,k,w),T=be(g,k,w),B=H,J=H-T;if(q=H===0?0:J/H,H==T)$=0;else{switch(H){case g:$=(k-w)/J+(k<w?6:0);break;case k:$=(w-g)/J+2;break;case w:$=(g-k)/J+4}$/=6}return{h:$,s:q,v:B}}function v(g,k,w){g=6*I(g,360),k=I(k,100),w=I(w,100);var $=l.floor(g),q=g-$,H=w*(1-k),T=w*(1-q*k),B=w*(1-(1-q)*k),J=$%6;return{r:255*[w,T,H,H,B,w][J],g:255*[B,w,w,T,H,H][J],b:255*[H,H,B,w,w,T][J]}}function y(g,k,w,$){var q=[le(Q(g).toString(16)),le(Q(k).toString(16)),le(Q(w).toString(16))];return $&&q[0].charAt(0)==q[0].charAt(1)&&q[1].charAt(0)==q[1].charAt(1)&&q[2].charAt(0)==q[2].charAt(1)?q[0].charAt(0)+q[1].charAt(0)+q[2].charAt(0):q.join("")}function x(g,k,w,$,q){var H=[le(Q(g).toString(16)),le(Q(k).toString(16)),le(Q(w).toString(16)),le(Ce($))];return q&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)&&H[3].charAt(0)==H[3].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0)+H[3].charAt(0):H.join("")}function C(g,k,w,$){return[le(Ce($)),le(Q(g).toString(16)),le(Q(k).toString(16)),le(Q(w).toString(16))].join("")}function E(g,k){k=k===0?0:k||10;var w=u(g).toHsl();return w.s-=k/100,w.s=Z(w.s),u(w)}function D(g,k){k=k===0?0:k||10;var w=u(g).toHsl();return w.s+=k/100,w.s=Z(w.s),u(w)}function M(g){return u(g).desaturate(100)}function X(g,k){k=k===0?0:k||10;var w=u(g).toHsl();return w.l+=k/100,w.l=Z(w.l),u(w)}function U(g,k){k=k===0?0:k||10;var w=u(g).toRgb();return w.r=ae(0,be(255,w.r-Q(-k/100*255))),w.g=ae(0,be(255,w.g-Q(-k/100*255))),w.b=ae(0,be(255,w.b-Q(-k/100*255))),u(w)}function F(g,k){k=k===0?0:k||10;var w=u(g).toHsl();return w.l-=k/100,w.l=Z(w.l),u(w)}function G(g,k){var w=u(g).toHsl(),$=(w.h+k)%360;return w.h=$<0?360+$:$,u(w)}function W(g){var k=u(g).toHsl();return k.h=(k.h+180)%360,u(k)}function R(g){var k=u(g).toHsl(),w=k.h;return[u(g),u({h:(w+120)%360,s:k.s,l:k.l}),u({h:(w+240)%360,s:k.s,l:k.l})]}function m(g){var k=u(g).toHsl(),w=k.h;return[u(g),u({h:(w+90)%360,s:k.s,l:k.l}),u({h:(w+180)%360,s:k.s,l:k.l}),u({h:(w+270)%360,s:k.s,l:k.l})]}function S(g){var k=u(g).toHsl(),w=k.h;return[u(g),u({h:(w+72)%360,s:k.s,l:k.l}),u({h:(w+216)%360,s:k.s,l:k.l})]}function j(g,k,w){k=k||6,w=w||30;var $=u(g).toHsl(),q=360/w,H=[u(g)];for($.h=($.h-(q*k>>1)+720)%360;--k;)$.h=($.h+q)%360,H.push(u($));return H}function L(g,k){k=k||6;for(var w=u(g).toHsv(),$=w.h,q=w.s,H=w.v,T=[],B=1/k;k--;)T.push(u({h:$,s:q,v:H})),H=(H+B)%1;return T}function Y(g){return g=parseFloat(g),(isNaN(g)||g<0||g>1)&&(g=1),g}function I(g,k){_e(g)&&(g="100%");var w=oe(g);return g=be(k,ae(0,parseFloat(g))),w&&(g=parseInt(g*k,10)/100),l.abs(g-k)<1e-6?1:g%k/parseFloat(k)}function Z(g){return be(1,ae(0,g))}function ne(g){return parseInt(g,16)}function _e(g){return typeof g=="string"&&g.indexOf(".")!=-1&&parseFloat(g)===1}function oe(g){return typeof g=="string"&&g.indexOf("%")!=-1}function le(g){return g.length==1?"0"+g:""+g}function ye(g){return g<=1&&(g=100*g+"%"),g}function Ce(g){return l.round(255*parseFloat(g)).toString(16)}function ve(g){return ne(g)/255}function pe(g){return!!Ae.CSS_UNIT.exec(g)}function he(g){g=g.replace(De,"").replace(Te,"").toLowerCase();var k=!1;if(Le[g])g=Le[g],k=!0;else if(g=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var w;return(w=Ae.rgb.exec(g))?{r:w[1],g:w[2],b:w[3]}:(w=Ae.rgba.exec(g))?{r:w[1],g:w[2],b:w[3],a:w[4]}:(w=Ae.hsl.exec(g))?{h:w[1],s:w[2],l:w[3]}:(w=Ae.hsla.exec(g))?{h:w[1],s:w[2],l:w[3],a:w[4]}:(w=Ae.hsv.exec(g))?{h:w[1],s:w[2],v:w[3]}:(w=Ae.hsva.exec(g))?{h:w[1],s:w[2],v:w[3],a:w[4]}:(w=Ae.hex8.exec(g))?{r:ne(w[1]),g:ne(w[2]),b:ne(w[3]),a:ve(w[4]),format:k?"name":"hex8"}:(w=Ae.hex6.exec(g))?{r:ne(w[1]),g:ne(w[2]),b:ne(w[3]),format:k?"name":"hex"}:(w=Ae.hex4.exec(g))?{r:ne(w[1]+""+w[1]),g:ne(w[2]+""+w[2]),b:ne(w[3]+""+w[3]),a:ve(w[4]+""+w[4]),format:k?"name":"hex8"}:!!(w=Ae.hex3.exec(g))&&{r:ne(w[1]+""+w[1]),g:ne(w[2]+""+w[2]),b:ne(w[3]+""+w[3]),format:k?"name":"hex"}}function fe(g){var k,w;return g=g||{level:"AA",size:"small"},k=(g.level||"AA").toUpperCase(),w=(g.size||"small").toLowerCase(),k!=="AA"&&k!=="AAA"&&(k="AA"),w!=="small"&&w!=="large"&&(w="small"),{level:k,size:w}}var De=/^\s+/,Te=/\s+$/,Ve=0,Q=l.round,be=l.min,ae=l.max,ke=l.random;u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var g=this.toRgb();return(299*g.r+587*g.g+114*g.b)/1e3},getLuminance:function(){var g,k,w,$,q,H,T=this.toRgb();return g=T.r/255,k=T.g/255,w=T.b/255,$=g<=.03928?g/12.92:l.pow((g+.055)/1.055,2.4),q=k<=.03928?k/12.92:l.pow((k+.055)/1.055,2.4),H=w<=.03928?w/12.92:l.pow((w+.055)/1.055,2.4),.2126*$+.7152*q+.0722*H},setAlpha:function(g){return this._a=Y(g),this._roundA=Q(100*this._a)/100,this},toHsv:function(){var g=f(this._r,this._g,this._b);return{h:360*g.h,s:g.s,v:g.v,a:this._a}},toHsvString:function(){var g=f(this._r,this._g,this._b),k=Q(360*g.h),w=Q(100*g.s),$=Q(100*g.v);return this._a==1?"hsv("+k+", "+w+"%, "+$+"%)":"hsva("+k+", "+w+"%, "+$+"%, "+this._roundA+")"},toHsl:function(){var g=c(this._r,this._g,this._b);return{h:360*g.h,s:g.s,l:g.l,a:this._a}},toHslString:function(){var g=c(this._r,this._g,this._b),k=Q(360*g.h),w=Q(100*g.s),$=Q(100*g.l);return this._a==1?"hsl("+k+", "+w+"%, "+$+"%)":"hsla("+k+", "+w+"%, "+$+"%, "+this._roundA+")"},toHex:function(g){return y(this._r,this._g,this._b,g)},toHexString:function(g){return"#"+this.toHex(g)},toHex8:function(g){return x(this._r,this._g,this._b,this._a,g)},toHex8String:function(g){return"#"+this.toHex8(g)},toRgb:function(){return{r:Q(this._r),g:Q(this._g),b:Q(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Q(this._r)+", "+Q(this._g)+", "+Q(this._b)+")":"rgba("+Q(this._r)+", "+Q(this._g)+", "+Q(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Q(100*I(this._r,255))+"%",g:Q(100*I(this._g,255))+"%",b:Q(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Q(100*I(this._r,255))+"%, "+Q(100*I(this._g,255))+"%, "+Q(100*I(this._b,255))+"%)":"rgba("+Q(100*I(this._r,255))+"%, "+Q(100*I(this._g,255))+"%, "+Q(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(Re[y(this._r,this._g,this._b,!0)]||!1)},toFilter:function(g){var k="#"+C(this._r,this._g,this._b,this._a),w=k,$=this._gradientType?"GradientType = 1, ":"";if(g){var q=u(g);w="#"+C(q._r,q._g,q._b,q._a)}return"progid:DXImageTransform.Microsoft.gradient("+$+"startColorstr="+k+",endColorstr="+w+")"},toString:function(g){var k=!!g;g=g||this._format;var w=!1,$=this._a<1&&this._a>=0;return k||!$||g!=="hex"&&g!=="hex6"&&g!=="hex3"&&g!=="hex4"&&g!=="hex8"&&g!=="name"?(g==="rgb"&&(w=this.toRgbString()),g==="prgb"&&(w=this.toPercentageRgbString()),g!=="hex"&&g!=="hex6"||(w=this.toHexString()),g==="hex3"&&(w=this.toHexString(!0)),g==="hex4"&&(w=this.toHex8String(!0)),g==="hex8"&&(w=this.toHex8String()),g==="name"&&(w=this.toName()),g==="hsl"&&(w=this.toHslString()),g==="hsv"&&(w=this.toHsvString()),w||this.toHexString()):g==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return u(this.toString())},_applyModification:function(g,k){var w=g.apply(null,[this].concat([].slice.call(k)));return this._r=w._r,this._g=w._g,this._b=w._b,this.setAlpha(w._a),this},lighten:function(){return this._applyModification(X,arguments)},brighten:function(){return this._applyModification(U,arguments)},darken:function(){return this._applyModification(F,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(D,arguments)},greyscale:function(){return this._applyModification(M,arguments)},spin:function(){return this._applyModification(G,arguments)},_applyCombination:function(g,k){return g.apply(null,[this].concat([].slice.call(k)))},analogous:function(){return this._applyCombination(j,arguments)},complement:function(){return this._applyCombination(W,arguments)},monochromatic:function(){return this._applyCombination(L,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(R,arguments)},tetrad:function(){return this._applyCombination(m,arguments)}},u.fromRatio=function(g,k){if(typeof g=="object"){var w={};for(var $ in g)g.hasOwnProperty($)&&(w[$]=$==="a"?g[$]:ye(g[$]));g=w}return u(g,k)},u.equals=function(g,k){return!(!g||!k)&&u(g).toRgbString()==u(k).toRgbString()},u.random=function(){return u.fromRatio({r:ke(),g:ke(),b:ke()})},u.mix=function(g,k,w){w=w===0?0:w||50;var $=u(g).toRgb(),q=u(k).toRgb(),H=w/100;return u({r:(q.r-$.r)*H+$.r,g:(q.g-$.g)*H+$.g,b:(q.b-$.b)*H+$.b,a:(q.a-$.a)*H+$.a})},u.readability=function(g,k){var w=u(g),$=u(k);return(l.max(w.getLuminance(),$.getLuminance())+.05)/(l.min(w.getLuminance(),$.getLuminance())+.05)},u.isReadable=function(g,k,w){var $,q,H=u.readability(g,k);switch(q=!1,$=fe(w),$.level+$.size){case"AAsmall":case"AAAlarge":q=H>=4.5;break;case"AAlarge":q=H>=3;break;case"AAAsmall":q=H>=7}return q},u.mostReadable=function(g,k,w){var $,q,H,T,B=null,J=0;w=w||{},q=w.includeFallbackColors,H=w.level,T=w.size;
vendor: 1,589 bytes, line 138
138for(var se=0;se<k.length;se++)($=u.readability(g,k[se]))>J&&(J=$,B=u(k[se]));return u.isReadable(g,B,{level:H,size:T})||!q?B:(w.includeFallbackColors=!1,u.mostReadable(g,["#fff","#000"],w))};var Le=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",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:"90ee9
1380",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",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",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Re=u.hexNames=function(g){var k={};for(var w in g)g.hasOwnProperty(w)&&(k[g[w]]=w);return k}(Le),Ae=function(){var g="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",k="[\\s|\\(]+("+g+")[,|\\s]+("+g+")[,|\\s]+("+g+")\\s*\\)?",w="[\\s|\\(]+("+g+")[,|\\s]+("+g+")[,|\\s]+("+g+")[,|\\s]+("+g+")\\s*\\)?";return{CSS_UNIT:new RegExp(g),rgb:new RegExp("rgb"+k),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+k),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+k),hsva:new RegExp("hsva"
138+w),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();i!==void 0&&i.exports?i.exports=u:(o=function(){return u}.call(a,r,a,i))!==void 0&&(i.exports=o)})(Math)},function(i,a,r){var o=r(66);typeof o=="string"&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals),r(1)("0f73e73c",o,!1,{})},function(i,a,r){a=i.exports=r(0)(!1),a.push([i.i,`
139.vc-editable-input {
140  position: relative;
141}
142.vc-input__input {
143  padding: 0;
144  border: 0;
145  outline: none;
146}
147.vc-input__label {
148  text-transform: capitalize;
149}
150`,""])},function(i,a,r){var o=function(){var s=this,h=s.$createElement,c=s._self._c||h;return c("div",{staticClass:"vc-editable-input"},[c("input",{directives:[{name:"model",rawName:"v-model",value:s.val,expression:"val"}],ref:"input",staticClass:"vc-input__input",attrs:{"aria-labelledby":s.labelId},domProps:{value:s.val},on:{keydown:s.handleKeyDown,input:[function(d){d.target.composing||(s.val=d.target.value)},s.update]}}),s._v(" "),c("span",{staticClass:"vc-input__label",attrs:{for:s.label,id:s.labelId}},[s._v(s._s(s.labelSpanText))]),s._v(" "),c("span",{staticClass:"vc-input__desc"},[s._v(s._s(s.desc))])])},l=[];o._withStripped=!0;var u={render:o,staticRenderFns:l};a.a=u},function(i,a,r){var o=function(){var s=this,h=s.$createElement,c=s._self._c||h;return c("div",{staticClass:"vc-compact",attrs:{role:"application","aria-label":"Compact color picker"}},[c("ul",{staticClass:"vc-compact-colors",attrs:{role:"listbox"}},s._l(s.paletteUpperCase(s.palette),function(d){return c("li",{key:d,staticClass:"vc-compact-color-item",class:{"vc-compact-color-item--white":d==="#FFFFFF"},style:{background:d},attrs:{role:"option","aria-label":"color:"+d,"aria-selected":d===s.pick},on:{click:function(f){s.handlerClick(d)}}},[c("div",{directives:[{name:"show",rawName:"v-show",value:d===s.pick,expression:"c === pick"}],staticClass:"vc-compact-dot"})])}))])},l=[];o._withStripped=!0;var u={render:o,staticRenderFns:l};a.a=u},function(i,a,r){function o(v){r(70)}Object.defineProperty(a,"__esModule",{value:!0});var l=r(37),u=r.n(l);for(var s in l)s!=="default"&&function(v){r.d(a,v,function(){return l[v]})}(s);var h=r(72),c=r(2),d=o,f=c(u.a,h.a,!1,d,null,null);f.options.__file="src/components/Grayscale.vue",a.default=f.exports},function(i,a,r){var o=r(71);typeof o=="string"&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals),r(1)("21ddbb74",o,!1,{})},function(i,a,r){a=i.exports=r(0)(!1),a.push([i.i,`
151.vc-grayscale {
152  width: 125px;
153  border-radius: 2px;
154  box-shadow: 0 2px 15px rgba(0,0,0,.12), 0 2px 10px rgba(0,0,0,.16);
155  background-color: #fff;
156}
157.vc-grayscale-colors {
158  border-radius: 2px;
159  overflow: hidden;
160  padding: 0;
161  margin: 0;
162}
163.vc-grayscale-color-item {
164  list-style: none;
165  width: 25px;
166  height: 25px;
167  float: left;
168  position: relative;
169  cursor: pointer;
170}
171.vc-grayscale-color-item--white .vc-grayscale-dot {
172  background: #000;
173}
174.vc-grayscale-dot {
175  position: absolute;
176  top: 50%;
177  left: 50%;
178  width: 6px;
179  height: 6px;
180  margin: -3px 0 0 -2px;
181  border-radius: 50%;
182  opacity: 1;
183  background: #fff;
184}
185`,""])},function(i,a,r){var o=function(){var s=this,h=s.$createElement,c=s._self._c||h;return c("div",{staticClass:"vc-grayscale",attrs:{role:"application","aria-label":"Grayscale color picker"}},[c("ul",{staticClass:"vc-grayscale-colors",attrs:{role:"listbox"}},s._l(s.paletteUpperCase(s.palette),function(d){return c("li",{key:d,staticClass:"vc-grayscale-color-item",class:{"vc-grayscale-color-item--white":d=="#FFFFFF"},style:{background:d},attrs:{role:"option","aria-label":"Color:"+d,"aria-selected":d===s.pick},on:{click:function(f){s.handlerClick(d)}}},[c("div",{directives:[{name:"show",rawName:"v-show",value:d===s.pick,expression:"c === pick"}],staticClass:"vc-grayscale-dot"})])}))])},l=[];o._withStripped=!0;var u={render:o,staticRenderFns:l};a.a=u},function(i,a,r){function o(v){r(74)}Object.defineProperty(a,"__esModule",{value:!0});var l=r(38),u=r.n(l);for(var s in l)s!=="default"&&function(v){r.d(a,v,function(){return l[v]})}(s);
185var h=r(76),c=r(2),d=o,f=c(u.a,h.a,!1,d,null,null);f.options.__file="src/components/Material.vue",a.default=f.exports},function(i,a,r){var o=r(75);typeof o=="string"&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals),r(1)("1ff3af73",o,!1,{})},function(i,a,r){a=i.exports=r(0)(!1),a.push([i.i,`
186.vc-material {
187  width: 98px;
188  height: 98px;
189  padding: 16px;
190  font-family: "Roboto";
191  position: relative;
192  border-radius: 2px;
193  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);
194  background-color: #fff;
195}
196.vc-material .vc-input__input {
197  width: 100%;
198  margin-top: 12px;
199  font-size: 15px;
200  color: #333;
201  height: 30px;
202}
203.vc-material .vc-input__label {
204  position: absolute;
205  top: 0;
206  left: 0;
207  font-size: 11px;
208  color: #999;
209  text-transform: capitalize;
210}
211.vc-material-hex {
212  border-bottom-width: 2px;
213  border-bottom-style: solid;
214}
215.vc-material-split {
216  display: flex;
217  margin-right: -10px;
218  padding-top: 11px;
219}
220.vc-material-third {
221  flex: 1;
222  padding-right: 10px;
223}
224`,""])},function(i,a,r){var o=function(){var s=this,h=s.$createElement,c=s._self._c||h;return c("div",{staticClass:"vc-material",attrs:{role:"application","aria-label":"Material color picker"}},[c("ed-in",{staticClass:"vc-material-hex",style:{borderColor:s.colors.hex},attrs:{label:"hex"},on:{change:s.onChange},model:{value:s.colors.hex,callback:function(d){s.$set(s.colors,"hex",d)},expression:"colors.hex"}}),s._v(" "),c("div",{staticClass:"vc-material-split"},[c("div",{staticClass:"vc-material-third"},[c("ed-in",{attrs:{label:"r"},on:{change:s.onChange},model:{value:s.colors.rgba.r,callback:function(d){s.$set(s.colors.rgba,"r",d)},expression:"colors.rgba.r"}})],1),s._v(" "),c("div",{staticClass:"vc-material-third"},[c("ed-in",{attrs:{label:"g"},on:{change:s.onChange},model:{value:s.colors.rgba.g,callback:function(d){s.$set(s.colors.rgba,"g",d)},expression:"colors.rgba.g"}})],1),s._v(" "),c("div",{staticClass:"vc-material-third"},[c("ed-in",{attrs:{label:"b"},on:{change:s.onChange},model:{value:s.colors.rgba.b,callback:function(d){s.$set(s.colors.rgba,"b",d)},expression:"colors.rgba.b"}})],1)])],1)},l=[];o._withStripped=!0;var u={render:o,staticRenderFns:l};a.a=u},function(i,a,r){function o(v){r(78)}Object.defineProperty(a,"__esModule",{value:!0});var l=r(39),u=r.n(l);for(var s in l)s!=="default"&&function(v){r.d(a,v,function(){return l[v]})}(s);var h=r(114),c=r(2),d=o,f=c(u.a,h.a,!1,d,null,null);f.options.__file="src/components/Slider.vue",a.default=f.exports},function(i,a,r){var o=r(79);typeof o=="string"&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals),r(1)("7982aa43",o,!1,{})},function(i,a,r){a=i.exports=r(0)(!1),a.push([i.i,`
225.vc-slider {
226  position: relative;
227  width: 410px;
228}
229.vc-slider-hue-warp {
230  height: 12px;
231  position: relative;
232}
233.vc-slider-hue-warp .vc-hue-picker {
234  width: 14px;
235  height: 14px;
236  border-radius: 6px;
237  transform: translate(-7px, -2px);
238  background-color: rgb(248, 248, 248);
239  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
240}
241.vc-slider-swatches {
242  display: flex;
243  margin-top: 20px;
244}
245.vc-slider-swatch {
246  margin-right: 1px;
247  flex: 1;
248  width: 20%;
249}
250.vc-slider-swatch:first-child {
251  margin-right: 1px;
252}
253.vc-slider-swatch:first-child .vc-slider-swatch-picker {
254  border-radius: 2px 0px 0px 2px;
255}
256.vc-slider-swatch:last-child {
257  margin-right: 0;
258}
259.vc-slider-swatch:last-child .vc-slider-swatch-picker {
260  border-radius: 0px 2px 2px 0px;
261}
262.vc-slider-swatch-picker {
263  cursor: pointer;
264  height: 12px;
265}
266.vc-slider-swatch:nth-child(n) .vc-slider-swatch-picker.vc-slider-swatch-picker--active {
267  transform: scaleY(1.8);
268  border-radius: 3.6px/2px;
269}
270.vc-slider-swatch-picker--white {
271  box-shadow: inset 0 0 0 1px #ddd;
272}
273.vc-slider-swatch-picker--active.vc-slider-swatch-picker--white {
274  box-shadow: inset 0 0 0 0.6px #ddd;
275}
276`,""])},function(i,a,r){function o(d){return d&&d.__esModule?d:{default:d}}a.__esModule=!0;var l=r(81),u=o(l),s=r(100),h=o(s),c=typeof h.default=="function"&&typeof u.default=="symbol"?function(d){return typeof d}:function(d){return d&&typeof h.default=="function"&&d.constructor===h.default&&d!==h.default.prototype?"symbol":typeof d};a.default=typeof h.default=="function"&&c(u.default)==="symbol"?function(d){return d===void 0?"undefined":c(d)}:function(d){return d&&typeof h.default=="function"&&d.constructor===h.default&&d!==h.default.prototype?"symbol":d===void 0?"undefined":c(d)}},function(i,a,r){i.exports={default:r(82),__esModule:!0}},function(i,a,r){r(83),r(96),i.exports=r(32).f("iterator")},function(i,a,r){var o=r(84)(!0);r(40)(String,"String",function(l){this._t=String(l),this._i=0},function(){var l,u=this._t,s=this._i;return s>=u.length?{value:void 0,done:!0}:(l=o(u,s),this._i+=l.length,{value:l,done:!1})})},function(i,a,r){var o=r(21),l=r(22);i.exports=function(u){return function(s,h){var c,d,f=String(l(s)),v=o(h),y=f.length;return v<0||v>=y?u?"":void 0:(c=f.charCodeAt(v),c<55296||c>56319||v+1===y||(d=f.charCodeAt(v+1))<56320||d>57343?u?f.charAt(v):c:u?f.slice(v,v+2):d-56320+(c-55296<<10)+65536)}}},function(i,a,r){var o=r(86);i.exports=function(l,u,s){if(o(l),u===void 0)return l;switch(s){case 1:return function(h){return l.call(u,h)};case 2:return function(h,c){return l.call(u,h,c)};case 3:return function(h,c,d){return l.call(u,h,c,d)}}return function(){return l.apply(u,arguments)}}},function(i,a){i.exports=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r}},function(i,a,r){var o=r(45),l=r(16),u=r(31),s={};r(7)(s,r(11)("iterator"),function(){return this}),i.exports=function(h,c,d){h.prototype=o(s,{next:l(1,d)}),u(h,c+" Iterator")}},function(i,a,r){var o=r(8),l=r(13),u=r(27);i.exports=r(9)?Object.defineProperties:function(s,h){l(s);for(var c,d=u(h),f=d.length,v=0;f>v;)o.f(s,c=d[v++],h[c]);return s}},function(i,a,r){var o=r(47);i.exports=Object("z").propertyIsEnumerable(0)?Object:function(l){return o(l)=="String"?l.split(""):Object(l)}},function(i,a,r){var o=r(10),l=r(91),u=r(92);i.exports=function(s){return function(h,c,d){var f,v=o(h),y=l(v.length),x=u(d,y);if(s&&c!=c){for(;y>x;)if((f=v[x++])!=f)return!0}else for(;y>x;x++)if((s||x in v)&&v[x]===c)return s||x||0;return!s&&-1}}},function(i,a,r){var o=r(21),l=Math.min;i.exports=function(u){return u>0?l(o(u),9007199254740991):0}},function(i,a,r){var o=r(21),l=Math.max,u=Math.min;i.exports=function(s,h){return s=o(s),s<0?l(s+h,0):u(s,h)}},function(i,a,r){var o=r(4).document;i.exports=o&&o.documentElement},function(i,a,r){var o=r(6),l=r(95),u=r(28)("IE_PROTO"),s=Object.prototype;i.exports=Object.getPrototypeOf||function(h){return h=l(h),o(h,u)?h[u]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?s:null}},function(i,a,r){var o=r(22);i.exports=function(l){return Object(o(l))}},function(i,a,r){r(97);for(var o=r(4),l=r(7),u=r(26),s=r(11)("toStringTag"),h="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<h.length;c++){var d=h[c],f=o[d],v=f&&f.prototype;v&&!v[s]&&l(v,s,d),u[d]=u.Array}},function(i,a,r){var o=r(98),l=r(99),u=r(26),s=r(10);i.exports=r(40)(Array,"Array",function(h,c){this._t=s(h),this._i=0,this._k=c},function(){var h=this._t,c=this._k,d=this._i++;return!h||d>=h.length?(this._t=void 0,l(1)):c=="keys"?l(0,d):c=="values"?l(0,h[d]):l(0,[d,h[d]])},"values"),u.Arguments=u.Array,o("keys"),o("values"),o("entries")},function(i,a){i.exports=function(){}},function(i,a){i.exports=function(r,o){return{value:o,done:!!r}}},function(i,a,r){i.exports={default:r(101),__esModule:!0}},function(i,a,r){r(102),r(108),r(109),r(110),i.exports=r(24).Symbol},function(i,a,r){var o=r(4),l=r(6),u=r(9),s=r(41),h=r(44),c=r(103).KEY,d=r(15),f=r(29),v=r(31),y=r(17),x=r(11),C=r(32),E=r(33),D=r(104),M=r(105),X=r(13),U=r(10),F=r(25),G=r(16),W=r(45),R=r(106),m=r(107),S=r(8),j=r(27),L=m.f,Y=S.f,I=R.f,Z=o.Symbol,ne=o.JSON,_e=ne&&ne.stringify,oe=x("_hidden"),le=x("toPrimitive"),ye={}.propertyIsEnumerable,Ce=f("symbol-registry"),ve=f("symbols"),pe=f("op-symbol
276s"),he=Object.prototype,fe=typeof Z=="function",De=o.QObject,Te=!De||!De.prototype||!De.prototype.findChild,Ve=u&&d(function(){return W(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a!=7})?function(T,B,J){var se=L(he,B);se&&delete he[B],Y(T,B,J),se&&T!==he&&Y(he,B,se)}:Y,Q=function(T){var B=ve[T]=W(Z.prototype);return B._k=T,B},be=fe&&typeof Z.iterator=="symbol"?function(T){return typeof T=="symbol"}:function(T){return T instanceof Z},ae=function(T,B,J){return T===he&&ae(pe,B,J),X(T),B=F(B,!0),X(J),l(ve,B)?(J.enumerable?(l(T,oe)&&T[oe][B]&&(T[oe][B]=!1),J=W(J,{enumerable:G(0,!1)})):(l(T,oe)||Y(T,oe,G(1,{})),T[oe][B]=!0),Ve(T,B,J)):Y(T,B,J)},ke=function(T,B){X(T);for(var J,se=D(B=U(B)),Ee=0,Se=se.length;Se>Ee;)ae(T,J=se[Ee++],B[J]);return T},Le=function(T,B){return B===void 0?W(T):ke(W(T),B)},Re=function(T){var B=ye.call(this,T=F(T,!0));return!(this===he&&l(ve,T)&&!l(pe,T))&&(!(B||!l(this,T)||!l(ve,T)||l(this,oe)&&this[oe][T])||B)},Ae=function(T,B){if(T=U(T),B=F(B,!0),T!==he||!l(ve,B)||l(pe,B)){var J=L(T,B);return!J||!l(ve,B)||l(T,oe)&&T[oe][B]||(J.enumerable=!0),J}},g=function(T){for(var B,J=I(U(T)),se=[],Ee=0;J.length>Ee;)l(ve,B=J[Ee++])||B==oe||B==c||se.push(B);return se},k=function(T){for(var B,J=T===he,se=I(J?pe:U(T)),Ee=[],Se=0;se.length>Se;)!l(ve,B=se[Se++])||J&&!l(he,B)||Ee.push(ve[B]);return Ee};fe||(Z=function(){if(this instanceof Z)throw TypeError("Symbol is not a constructor!");var T=y(arguments.length>0?arguments[0]:void 0),B=function(J){this===he&&B.call(pe,J),l(this,oe)&&l(this[oe],T)&&(this[oe][T]=!1),Ve(this,T,G(1,J))};return u&&Te&&Ve(he,T,{configurable:!0,set:B}),Q(T)},h(Z.prototype,"toString",function(){return this._k}),m.f=Ae,S.f=ae,r(49).f=R.f=g,r(34).f=Re,r(48).f=k,u&&!r(23)&&h(he,"propertyIsEnumerable",Re,!0),C.f=function(T){return Q(x(T))}),s(s.G+s.W+s.F*!fe,{Symbol:Z});for(var w="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),$=0;w.length>$;)x(w[$++]);for(var q=j(x.store),H=0;q.length>H;)E(q[H++]);s(s.S+s.F*!fe,"Symbol",{for:function(T){return l(Ce,T+="")?Ce[T]:Ce[T]=Z(T)},keyFor:function(T){if(!be(T))throw TypeError(T+" is not a symbol!");for(var B in Ce)if(Ce[B]===T)return B},useSetter:function(){Te=!0},useSimple:function(){Te=!1}}),s(s.S+s.F*!fe,"Object",{create:Le,defineProperty:ae,defineProperties:ke,getOwnPropertyDescriptor:Ae,getOwnPropertyNames:g,getOwnPropertySymbols:k}),ne&&s(s.S+s.F*(!fe||d(function(){var T=Z();return _e([T])!="[null]"||_e({a:T})!="{}"||_e(Object(T))!="{}"})),"JSON",{stringify:function(T){if(T!==void 0&&!be(T)){for(var B,J,se=[T],Ee=1;arguments.length>Ee;)se.push(arguments[Ee++]);return B=se[1],typeof B=="function"&&(J=B),!J&&M(B)||(B=function(Se,p){if(J&&(p=J.call(this,Se,p)),!be(p))return p}),se[1]=B,_e.apply(ne,se)}}}),Z.prototype[le]||r(7)(Z.prototype,le,Z.prototype.valueOf),v(Z,"Symbol"),v(Math,"Math",!0),v(o.JSON,"JSON",!0)},function(i,a,r){var o=r(17)("meta"),l=r(14),u=r(6),s=r(8).f,h=0,c=Object.isExtensible||function(){return!0},d=!r(15)(function(){return c(Object.preventExtensions({}))}),f=function(E){s(E,o,{value:{i:"O"+ ++h,w:{}}})},v=function(E,D){if(!l(E))return typeof E=="symbol"?E:(typeof E=="string"?"S":"P")+E;if(!u(E,o)){if(!c(E))return"F";if(!D)return"E";f(E)}return E[o].i},y=function(E,D){if(!u(E,o)){if(!c(E))return!0;if(!D)return!1;f(E)}return E[o].w},x=function(E){return d&&C.NEED&&c(E)&&!u(E,o)&&f(E),E},C=i.exports={KEY:o,NEED:!1,fastKey:v,getWeak:y,onFreeze:x}},function(i,a,r){var o=r(27),l=r(48),u=r(34);i.exports=function(s){var h=o(s),c=l.f;if(c)for(var d,f=c(s),v=u.f,y=0;f.length>y;)v.call(s,d=f[y++])&&h.push(d);return h}},function(i,a,r){var o=r(47);i.exports=Array.isArray||function(l){return o(l)=="Array"}},function(i,a,r){var o=r(10),l=r(49).f,u={}.toString,s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h=function(c){try{return l(c)}catch{return s.slice()}};i.exports.f=function(c){return s&&u.call(c)=="[object Window]"?h(c):l(o(c))}},function(i,a,r){var o=r(34),l=r(16),u=r(10),s=r(25),h=r(6),c=r(42),d=Object.getOwnPropertyDescriptor;a.f=r(9)?d:function(f,v){if(f=u(f),v=s(v,!0),c)try{return d(f,v)}catch{}if(h(f,v))return l(!o.f.call(f,v),f[v])}},function(i,a){},function(i,a,r){r(33)("asyncIterator")},function(i,a,r){r(33)("observable")},function(i,a,r){var o=r(112);
276typeof o=="string"&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals),r(1)("7c5f1a1c",o,!1,{})},function(i,a,r){a=i.exports=r(0)(!1),a.push([i.i,`
277.vc-hue {
278  position: absolute;
279  top: 0px;
280  right: 0px;
281  bottom: 0px;
282  left: 0px;
283  border-radius: 2px;
284}
285.vc-hue--horizontal {
286  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
287}
288.vc-hue--vertical {
289  background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
290}
291.vc-hue-container {
292  cursor: pointer;
293  margin: 0 2px;
294  position: relative;
295  height: 100%;
296}
297.vc-hue-pointer {
298  z-index: 2;
299  position: absolute;
300}
301.vc-hue-picker {
302  cursor: pointer;
303  margin-top: 1px;
304  width: 4px;
305  border-radius: 1px;
306  height: 8px;
307  box-shadow: 0 0 2px rgba(0, 0, 0, .6);
308  background: #fff;
309  transform: translateX(-2px) ;
310}
311`,""])},function(i,a,r){var o=function(){var s=this,h=s.$createElement,c=s._self._c||h;return c("div",{class:["vc-hue",s.directionClass]},[c("div",{ref:"container",staticClass:"vc-hue-container",attrs:{role:"slider","aria-valuenow":s.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360"},on:{mousedown:s.handleMouseDown,touchmove:s.handleChange,touchstart:s.handleChange}},[c("div",{staticClass:"vc-hue-pointer",style:{top:s.pointerTop,left:s.pointerLeft},attrs:{role:"presentation"}},[c("div",{staticClass:"vc-hue-picker"})])])])},l=[];o._withStripped=!0;var u={render:o,staticRenderFns:l};a.a=u},function(i,a,r){var o=function(){var s=this,h=s.$createElement,c=s._self._c||h;return c("div",{staticClass:"vc-slider",attrs:{role:"application","aria-label":"Slider color picker"}},[c("div",{staticClass:"vc-slider-hue-warp"},[c("hue",{on:{change:s.hueChange},model:{value:s.colors,callback:function(d){s.colors=d},expression:"colors"}})],1),s._v(" "),c("div",{staticClass:"vc-slider-swatches",attrs:{role:"group"}},s._l(s.normalizedSwatches,function(d,f){return c("div",{key:f,staticClass:"vc-slider-swatch",attrs:{"data-index":f,"aria-label":"color:"+s.colors.hex,role:"button"},on:{click:function(v){s.handleSwClick(f,d)}}},[c("div",{staticClass:"vc-slider-swatch-picker",class:{"vc-slider-swatch-picker--active":s.isActive(d,f),"vc-slider-swatch-picker--white":d.l===1},style:{background:"hsl("+s.colors.hsl.h+", "+100*d.s+"%, "+100*d.l+"%)"}})])}))])},l=[];o._withStripped=!0;var u={render:o,staticRenderFns:l};a.a=u},function(i,a,r){function o(v){r(116)}Object.defineProperty(a,"__esModule",{value:!0});var l=r(51),u=r.n(l);for(var s in l)s!=="default"&&function(v){r.d(a,v,function(){return l[v]})}(s);var h=r(119),c=r(2),d=o,f=c(u.a,h.a,!1,d,null,null);f.options.__file="src/components/Swatches.vue",a.default=f.exports},function(i,a,r){var o=r(117);typeof o=="string"&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals),r(1)("10f839a2",o,!1,{})},function(i,a,r){a=i.exports=r(0)(!1),a.push([i.i,`
312.vc-swatches {
313  width: 320px;
314  height: 240px;
315  overflow-y: scroll;
316  background-color: #fff;
317  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);
318}
319.vc-swatches-box {
320  padding: 16px 0 6px 16px;
321  overflow: hidden;
322}
323.vc-swatches-color-group {
324  padding-bottom: 10px;
325  width: 40px;
326  float: left;
327  margin-right: 10px;
328}
329.vc-swatches-color-it {
330  box-sizing: border-box;
331  width: 40px;
332  height: 24px;
333  cursor: pointer;
334  background: #880e4f;
335  margin-bottom: 1px;
336  overflow: hidden;
337  -ms-border-radius: 2px 2px 0 0;
338  -moz-border-radius: 2px 2px 0 0;
339  -o-border-radius: 2px 2px 0 0;
340  -webkit-border-radius: 2px 2px 0 0;
341  border-radius: 2px 2px 0 0;
342}
343.vc-swatches-color--white {
344  border: 1px solid #DDD;
345}
346.vc-swatches-pick {
347  fill: rgb(255, 255, 255);
348  margin-left: 8px;
349  display: block;
350}
351.vc-swatches-color--white .vc-swatches-pick {
352  fill: rgb(51, 51, 51);
353}
354`,""])},function(i,a,r){Object.defineProperty(a,"__esModule",{value:!0}),r.d(a,"red",function(){return o}),r.d(a,"pink",function(){return l}),r.d(a,"purple",function(){return u}),r.d(a,"deepPurple",function(){return s}),r.d(a,"indigo",function(){return h}),r.d(a,"blue",function(){return c}),r.d(a,"lightBlue",function(){return d}),r.d(a,"cyan",function(){return f}),r.d(a,"teal",function(){return v}),r.d(a,"green",function(){return y}),r.d(a,"lightGreen",function(){return x}),r.d(a,"lime",function(){return C}),r.d(a,"yellow",function(){return E}),r.d(a,"amber",function(){return D}),r.d(a,"orange",function(){return M}),r.d(a,"deepOrange",function(){return X}),r.d(a,"brown",function(){return U}),r.d(a,"grey",function(){return F}),r.d(a,"blueGrey",function(){return G}),r.d(a,"darkText",function(){return W}),r.d(a,"lightText",function(){return R}),r.d(a,"darkIcons",function(){return m}),r.d(a,"lightIcons",function(){return S}),r.d(a,"white",function(){return j}),r.d(a,"black",function(){return L});var o={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},l={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a
354700:"#c51162"},u={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},s={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},h={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},c={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},d={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},f={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},v={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},x={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},C={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},E={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},D={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},M={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},X={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},U={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},F={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},G={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},W={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},R={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},m={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},S={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},j="#ffffff",L="#000000";a.default={red:o,pink:l,purple:u,deepPurple:s,indigo:h,blue:c,lightBlue:d,cyan:f,teal:v,green:y,lightGreen:x,lime:C,yellow:E,amber:D,orange:M,deepOrange:X,brown:U,grey:F,blueGrey:G,darkText:W,lightText:R,darkIcons:m,lightIcons:S,white:j,black:L}},function(i,a,r){var o=function(){var s=this,h=s.$createElement,c=s._self._c||h;return c("div",{staticClass:"vc-swatches",attrs:{role:"application","aria-label":"Swatches color picker","data-pick":s.pick}},[c("div",{staticClass:"vc-swatches-box",attrs:{role:"listbox"}},s._l(s.palette,function(d,f){return c("div",{key:f,staticClass:"vc-swatches-color-group"},s._l(d,function(v){return c("div",{key:v,class:["vc-swatches-color-it",{"vc-swatches-color--white":v==="#FFFFFF"}],style:{background:v},attrs:{role:"option","aria-label":"Color:"+v,"aria-selected":s.equal(v),"data-color":v},on:{click:function(y){s.handlerClick(v)}}},[c("div",{directives:[{name:"show",rawName:"v-show",value:s.equal(v),expression:"equal(c)"}],staticClass:"vc-swatches-pick"},[c("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"}},[c("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}})])])])}))}))])},l=[];o._withStripped=!0;
354var u={render:o,staticRenderFns:l};a.a=u},function(i,a,r){function o(v){r(121)}Object.defineProperty(a,"__esModule",{value:!0});var l=r(52),u=r.n(l);for(var s in l)s!=="default"&&function(v){r.d(a,v,function(){return l[v]})}(s);var h=r(134),c=r(2),d=o,f=c(u.a,h.a,!1,d,null,null);f.options.__file="src/components/Photoshop.vue",a.default=f.exports},function(i,a,r){var o=r(122);typeof o=="string"&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals),r(1)("080365d4",o,!1,{})},function(i,a,r){a=i.exports=r(0)(!1),a.push([i.i,`
355.vc-photoshop {
356  background: #DCDCDC;
357  border-radius: 4px;
358  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15);
359  box-sizing: initial;
360  width: 513px;
361  font-family: Roboto;
362}
363.vc-photoshop__disable-fields {
364  width: 390px;
365}
366.vc-ps-head {
367  background-image: linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%);
368  border-bottom: 1px solid #B1B1B1;
369  box-shadow: inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02);
370  height: 23px;
371  line-height: 24px;
372  border-radius: 4px 4px 0 0;
373  font-size: 13px;
374  color: #4D4D4D;
375  text-align: center;
376}
377.vc-ps-body {
378  padding: 15px;
379  display: flex;
380}
381.vc-ps-saturation-wrap {
382  width: 256px;
383  height: 256px;
384  position: relative;
385  border: 2px solid #B3B3B3;
386  border-bottom: 2px solid #F0F0F0;
387  overflow: hidden;
388}
389.vc-ps-saturation-wrap .vc-saturation-circle {
390  width: 12px;
391  height: 12px;
392}
393.vc-ps-hue-wrap {
394  position: relative;
395  height: 256px;
396  width: 19px;
397  margin-left: 10px;
398  border: 2px solid #B3B3B3;
399  border-bottom: 2px solid #F0F0F0;
400}
401.vc-ps-hue-pointer {
402  position: relative;
403}
404.vc-ps-hue-pointer--left,
405.vc-ps-hue-pointer--right {
406  position: absolute;
407  width: 0;
408  height: 0;
409  border-style: solid;
410  border-width: 5px 0 5px 8px;
411  border-color: transparent transparent transparent #555;
412}
413.vc-ps-hue-pointer--left:after,
414.vc-ps-hue-pointer--right:after {
415  content: "";
416  width: 0;
417  height: 0;
418  border-style: solid;
419  border-width: 4px 0 4px 6px;
420  border-color: transparent transparent transparent #fff;
421  position: absolute;
422  top: 1px;
423  left: 1px;
424  transform: translate(-8px, -5px);
425}
426.vc-ps-hue-pointer--left {
427  transform: translate(-13px, -4px);
428}
429.vc-ps-hue-pointer--right {
430  transform: translate(20px, -4px) rotate(180deg);
431}
432.vc-ps-controls {
433  width: 180px;
434  margin-left: 10px;
435  display: flex;
436}
437.vc-ps-controls__disable-fields {
438  width: auto;
439}
440.vc-ps-actions {
441  margin-left: 20px;
442  flex: 1;
443}
444.vc-ps-ac-btn {
445  cursor: pointer;
446  background-image: linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%);
447  border: 1px solid #878787;
448  border-radius: 2px;
449  height: 20px;
450  box-shadow: 0 1px 0 0 #EAEAEA;
451  font-size: 14px;
452  color: #000;
453  line-height: 20px;
454  text-align: center;
455  margin-bottom: 10px;
456}
457.vc-ps-previews {
458  width: 60px;
459}
460.vc-ps-previews__swatches {
461  border: 1px solid #B3B3B3;
462  border-bottom: 1px solid #F0F0F0;
463  margin-bottom: 2px;
464  margin-top: 1px;
465}
466.vc-ps-previews__pr-color {
467  height: 34px;
468  box-shadow: inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000;
469}
470.vc-ps-previews__label {
471  font-size: 14px;
472  color: #000;
473  text-align: center;
474}
475.vc-ps-fields {
476  padding-top: 5px;
477  padding-bottom: 9px;
478  width: 80px;
479  position: relative;
480}
481.vc-ps-fields .vc-input__input {
482  margin-left: 40%;
483  width: 40%;
484  height: 18px;
485  border: 1px solid #888888;
486  box-shadow: inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC;
487  margin-bottom: 5px;
488  font-size: 13px;
489  padding-left: 3px;
490  margin-right: 10px;
491}
492.vc-ps-fields .vc-input__label, .vc-ps-fields .vc-input__desc {
493  top: 0;
494  text-transform: uppercase;
495  font-size: 13px;
496  height: 18px;
497  line-height: 22px;
498  position: absolute;
499}
500.vc-ps-fields .vc-input__label {
501  left: 0;
502  width: 34px;
503}
504.vc-ps-fields .vc-input__desc {
505  right: 0;
506  width: 0;
507}
508.vc-ps-fields__divider {
509  height: 5px;
510}
511.vc-ps-fields__hex .vc-input__input {
512  margin-left: 20%;
513  width: 80%;
514  height: 18px;
515  border: 1px solid #888888;
516  box-shadow: inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC;
517  margin-bottom: 6px;
518  font-size: 13px;
519  padding-left: 3px;
520}
521.vc-ps-fields__hex .vc-input__label {
522  position: absolute;
523  top: 0;
524  left: 0;
525  width: 14px;
526  text-transform: uppercase;
527  font-size: 13px;
528  height: 18px;
529  line-height: 22px;
530}
531`,""])},function(i,a,r){var o=r(124);typeof o=="string"&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals),r(1)("b5380e52",o,!1,{})},function(i,a,r){a=i.exports=r(0)(!1),a.push([i.i,`
532.vc-saturation,
533.vc-saturation--white,
534.vc-saturation--black {
535  cursor: pointer;
536  position: absolute;
537  top: 0;
538  left: 0;
539  right: 0;
540  bottom: 0;
541}
542.vc-saturation--white {
543  background: linear-gradient(to right, #fff, rgba(255,255,255,0));
544}
545.vc-saturation--black {
546  background: linear-gradient(to top, #000, rgba(0,0,0,0));
547}
548.vc-saturation-pointer {
549  cursor: pointer;
550  position: absolute;
551}
552.vc-saturation-circle {
553  cursor: pointer;
554  width: 4px;
555  height: 4px;
556  box-shadow: 0 0 0 1.6px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), 0 0 1px 2px rgba(0,0,0,.4);
557  border-radius: 50%;
558  transform: translate(-2px, -2px);
559}
560`,""])},function(i,a){function r(o,l,u){return l<u?o<l?l:o>u?u:o:o<u?u:o>l?l:o}i.exports=r},function(i,a){function r(m,S,j){function L(ae){var ke=Ce,Le=ve;return Ce=ve=void 0,Te=ae,he=m.apply(Le,ke)}function Y(ae){return Te=ae,fe=setTimeout(ne,S),Ve?L(ae):he}function I(ae){var ke=ae-De,Le=ae-Te,Re=S-ke;return Q?W(Re,pe-Le):Re}function Z(ae){var ke=ae-De,Le=ae-Te;return De===void 0||ke>=S||ke<0||Q&&Le>=pe}function ne(){var ae=R();if(Z(ae))return _e(ae);fe=setTimeout(ne,I(ae))}function _e(ae){return fe=void 0,be&&Ce?L(ae):(Ce=ve=void 0,he)}function oe(){fe!==void 0&&clearTimeout(fe),Te=0,Ce=De=ve=fe=void 0}function le(){return fe===void 0?he:_e(R())}function ye(){var ae=R(),ke=Z(ae);if(Ce=arguments,ve=this,De=ae,ke){if(fe===void 0)return Y(De);if(Q)return fe=setTimeout(ne,S),L(De)}return fe===void 0&&(fe=setTimeout(ne,S)),he}var Ce,ve,pe,he,fe,De,Te=0,Ve=!1,Q=!1,be=!0;if(typeof m!="function")throw new TypeError(c);return S=h(S)||0,l(j)&&(Ve=!!j.leading,Q="maxWait"in j,pe=Q?G(h(j.maxWait)||0,S):pe,be="trailing"in j?!!j.trailing:be),ye.cancel=oe,ye.flush=le,ye}function o(m,S,j){var L=!0,Y=!0;if(typeof m!="function")throw new TypeError(c);return l(j)&&(L="leading"in j?!!j.leading:L,Y="trailing"in j?!!j.trailing:Y),r(m,S,{leading:L,maxWait:S,trailing:Y})}function l(m){var S=typeof m;return!!m&&(S=="object"||S=="function")}function u(m){return!!m&&typeof m=="object"}function s(m){return typeof m=="symbol"||u(m)&&F.call(m)==f}function h(m){if(typeof m=="number")return m;if(s(m))return d;if(l(m)){var S=typeof m.valueOf=="function"?m.valueOf():m;m=l(S)?S+"":S}if(typeof m!="string")return m===0?m:+m;m=m.replace(v,"");var j=x.test(m);return j||C.test(m)?E(m.slice(2),j?2:8):y.test(m)?d:+m}var c="Expected a function",d=NaN,f="[object Symbol]",v=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,C=/^0o[0-7]+$/i,E=parseInt,D=typeof xn=="object"&&xn&&xn.Object===Object&&xn,M=typeof self=="object"&&self&&self.Object===Object&&self,X=D||M||Function("return this")(),U=Object.prototype,F=U.toString,G=Math.max,W=Math.min,R=function(){return X.Date.now()};i.exports=o},function(i,a,r){var o=function(){var s=this,h=s.$createElement,c=s._self._c||h;return c("div",{ref:"container",staticClass:"vc-saturation",style:{background:s.bgColor},on:{mousedown:s.handleMouseDown,touchmove:s.handleChange,touchstart:s.handleChange}},[c("div",{staticClass:"vc-saturation--white"}),s._v(" "),c("div",{staticClass:"vc-saturation--black"}),s._v(" "),c("div",{staticClass:"vc-saturation-pointer",style:{to
560p:s.pointerTop,left:s.pointerLeft}},[c("div",{staticClass:"vc-saturation-circle"})])])},l=[];o._withStripped=!0;var u={render:o,staticRenderFns:l};a.a=u},function(i,a,r){var o=r(129);typeof o=="string"&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals),r(1)("4dc1b086",o,!1,{})},function(i,a,r){a=i.exports=r(0)(!1),a.push([i.i,`
561.vc-alpha {
562  position: absolute;
563  top: 0px;
564  right: 0px;
565  bottom: 0px;
566  left: 0px;
567}
568.vc-alpha-checkboard-wrap {
569  position: absolute;
570  top: 0px;
571  right: 0px;
572  bottom: 0px;
573  left: 0px;
574  overflow: hidden;
575}
576.vc-alpha-gradient {
577  position: absolute;
578  top: 0px;
579  right: 0px;
580  bottom: 0px;
581  left: 0px;
582}
583.vc-alpha-container {
584  cursor: pointer;
585  position: relative;
586  z-index: 2;
587  height: 100%;
588  margin: 0 3px;
589}
590.vc-alpha-pointer {
591  z-index: 2;
592  position: absolute;
593}
594.vc-alpha-picker {
595  cursor: pointer;
596  width: 4px;
597  border-radius: 1px;
598  height: 8px;
599  box-shadow: 0 0 2px rgba(0, 0, 0, .6);
600  background: #fff;
601  margin-top: 1px;
602  transform: translateX(-2px);
603}
604`,""])},function(i,a,r){var o=r(131);typeof o=="string"&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals),r(1)("7e15c05b",o,!1,{})},function(i,a,r){a=i.exports=r(0)(!1),a.push([i.i,`
605.vc-checkerboard {
606  position: absolute;
607  top: 0px;
608  right: 0px;
609  bottom: 0px;
610  left: 0px;
611  background-size: contain;
612}
613`,""])},function(i,a,r){var o=function(){var s=this,h=s.$createElement;return(s._self._c||h)("div",{staticClass:"vc-checkerboard",style:s.bgStyle})},l=[];o._withStripped=!0;var u={render:o,staticRenderFns:l};a.a=u},function(i,a,r){var o=function(){var s=this,h=s.$createElement,c=s._self._c||h;return c("div",{staticClass:"vc-alpha"},[c("div",{staticClass:"vc-alpha-checkboard-wrap"},[c("checkboard")],1),s._v(" "),c("div",{staticClass:"vc-alpha-gradient",style:{background:s.gradientColor}}),s._v(" "),c("div",{ref:"container",staticClass:"vc-alpha-container",on:{mousedown:s.handleMouseDown,touchmove:s.handleChange,touchstart:s.handleChange}},[c("div",{staticClass:"vc-alpha-pointer",style:{left:100*s.colors.a+"%"}},[c("div",{staticClass:"vc-alpha-picker"})])])])},l=[];o._withStripped=!0;var u={render:o,staticRenderFns:l};a.a=u},function(i,a,r){var o=function(){var s=this,h=s.$createElement,c=s._self._c||h;return c("div",{class:["vc-photoshop",s.disableFields?"vc-photoshop__disable-fields":""],attrs:{role:"application","aria-label":"PhotoShop color picker"}},[c("div",{staticClass:"vc-ps-head",attrs:{role:"heading"}},[s._v(s._s(s.head))]),s._v(" "),c("div",{staticClass:"vc-ps-body"},[c("div",{staticClass:"vc-ps-saturation-wrap"},[c("saturation",{on:{change:s.childChange},model:{value:s.colors,callback:function(d){s.colors=d},expression:"colors"}})],1),s._v(" "),c("div",{staticClass:"vc-ps-hue-wrap"},[c("hue",{attrs:{direction:"vertical"},on:{change:s.childChange},model:{value:s.colors,callback:function(d){s.colors=d},expression:"colors"}},[c("div",{staticClass:"vc-ps-hue-pointer"},[c("i",{staticClass:"vc-ps-hue-pointer--left"}),c("i",{staticClass:"vc-ps-hue-pointer--right"})])])],1),s._v(" "),c("div",{class:["vc-ps-controls",s.disableFields?"vc-ps-controls__disable-fields":""]},[c("div",{staticClass:"vc-ps-previews"},[c("div",{staticClass:"vc-ps-previews__label"},[s._v(s._s(s.newLabel))]),s._v(" "),c("div",{staticClass:"vc-ps-previews__swatches"},[c("div",{staticClass:"vc-ps-previews__pr-color",style:{background:s.colors.hex},attrs:{"aria-label":"New color is "+s.colors.hex}}),s._v(" "),c("div",{staticClass:"vc-ps-previews__pr-color",style:{background:s.currentColor},attrs:{"aria-label":"Current color is "+s.currentColor},on:{click:s.clickCurrentColor}})]),s._v(" "),c("div",{staticClass:"vc-ps-previews__label"},[s._v(s._s(s.currentLabel))])]),s._v(" "),s.disableFields?s._e():c("div",{staticClass:"vc-ps-actions"},[c("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":s.acceptLabel},on:{click:s.handleAccept}},[s._v(s._s(s.acceptLabel))]),s._v(" "),c("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":s.cancelLabel},on:{click:s.handleCancel}},[s._v(s._s(s.cancelLabel))]),s._v(" "),c("div",{staticClass:"vc-ps-fields"}
613,[c("ed-in",{attrs:{label:"h",desc:"°",value:s.hsv.h},on:{change:s.inputChange}}),s._v(" "),c("ed-in",{attrs:{label:"s",desc:"%",value:s.hsv.s,max:100},on:{change:s.inputChange}}),s._v(" "),c("ed-in",{attrs:{label:"v",desc:"%",value:s.hsv.v,max:100},on:{change:s.inputChange}}),s._v(" "),c("div",{staticClass:"vc-ps-fields__divider"}),s._v(" "),c("ed-in",{attrs:{label:"r",value:s.colors.rgba.r},on:{change:s.inputChange}}),s._v(" "),c("ed-in",{attrs:{label:"g",value:s.colors.rgba.g},on:{change:s.inputChange}}),s._v(" "),c("ed-in",{attrs:{label:"b",value:s.colors.rgba.b},on:{change:s.inputChange}}),s._v(" "),c("div",{staticClass:"vc-ps-fields__divider"}),s._v(" "),c("ed-in",{staticClass:"vc-ps-fields__hex",attrs:{label:"#",value:s.hex},on:{change:s.inputChange}})],1),s._v(" "),s.hasResetButton?c("div",{staticClass:"vc-ps-ac-btn",attrs:{"aria-label":"reset"},on:{click:s.handleReset}},[s._v(s._s(s.resetLabel))]):s._e()])])])])},l=[];o._withStripped=!0;var u={render:o,staticRenderFns:l};a.a=u},function(i,a,r){function o(v){r(136)}Object.defineProperty(a,"__esModule",{value:!0});var l=r(56),u=r.n(l);for(var s in l)s!=="default"&&function(v){r.d(a,v,function(){return l[v]})}(s);var h=r(138),c=r(2),d=o,f=c(u.a,h.a,!1,d,null,null);f.options.__file="src/components/Sketch.vue",a.default=f.exports},function(i,a,r){var o=r(137);typeof o=="string"&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals),r(1)("612c6604",o,!1,{})},function(i,a,r){a=i.exports=r(0)(!1),a.push([i.i,`
614.vc-sketch {
615  position: relative;
616  width: 200px;
617  padding: 10px 10px 0;
618  box-sizing: initial;
619  background: #fff;
620  border-radius: 4px;
621  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 8px 16px rgba(0, 0, 0, .15);
622}
623.vc-sketch-saturation-wrap {
624  width: 100%;
625  padding-bottom: 75%;
626  position: relative;
627  overflow: hidden;
628}
629.vc-sketch-controls {
630  display: flex;
631}
632.vc-sketch-sliders {
633  padding: 4px 0;
634  flex: 1;
635}
636.vc-sketch-sliders .vc-hue,
637.vc-sketch-sliders .vc-alpha-gradient {
638  border-radius: 2px;
639}
640.vc-sketch-hue-wrap {
641  position: relative;
642  height: 10px;
643}
644.vc-sketch-alpha-wrap {
645  position: relative;
646  height: 10px;
647  margin-top: 4px;
648  overflow: hidden;
649}
650.vc-sketch-color-wrap {
651  width: 24px;
652  height: 24px;
653  position: relative;
654  margin-top: 4px;
655  margin-left: 4px;
656  border-radius: 3px;
657}
658.vc-sketch-active-color {
659  position: absolute;
660  top: 0;
661  left: 0;
662  right: 0;
663  bottom: 0;
664  border-radius: 2px;
665  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), inset 0 0 4px rgba(0, 0, 0, .25);
666  z-index: 2;
667}
668.vc-sketch-color-wrap .vc-checkerboard {
669  background-size: auto;
670}
671.vc-sketch-field {
672  display: flex;
673  padding-top: 4px;
674}
675.vc-sketch-field .vc-input__input {
676  width: 90%;
677  padding: 4px 0 3px 10%;
678  border: none;
679  box-shadow: inset 0 0 0 1px #ccc;
680  font-size: 10px;
681}
682.vc-sketch-field .vc-input__label {
683  display: block;
684  text-align: center;
685  font-size: 11px;
686  color: #222;
687  padding-top: 3px;
688  padding-bottom: 4px;
689  text-transform: capitalize;
690}
691.vc-sketch-field--single {
692  flex: 1;
693  padding-left: 6px;
694}
695.vc-sketch-field--double {
696  flex: 2;
697}
698.vc-sketch-presets {
699  margin-right: -10px;
700  margin-left: -10px;
701  padding-left: 10px;
702  padding-top: 10px;
703  border-top: 1px solid #eee;
704}
705.vc-sketch-presets-color {
706  border-radius: 3px;
707  overflow: hidden;
708  position: relative;
709  display: inline-block;
710  margin: 0 10px 10px 0;
711  vertical-align: top;
712  cursor: pointer;
713  width: 16px;
714  height: 16px;
715  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
716}
717.vc-sketch-presets-color .vc-checkerboard {
718  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
719  border-radius: 3px;
720}
721.vc-sketch__disable-alpha .vc-sketch-color-wrap {
722  height: 10px;
723}
724`,""])},function(i,a,r){var o=function(){var s=this,h=s.$createElement,c=s._self._c||h;return c("div",{class:["vc-sketch",s.disableAlpha?"vc-sketch__disable-alpha":""],attrs:{role:"application","aria-label":"Sketch color picker"}},[c("div",{staticClass:"vc-sketch-saturation-wrap"},[c("saturation",{on:{change:s.childChange},model:{value:s.colors,callback:function(d){s.colors=d},expression:"colors"}})],1),s._v(" "),c("div",{staticClass:"vc-sketch-controls"},[c("div",{staticClass:"vc-sketch-sliders"},[c("div",{staticClass:"vc-sketch-hue-wrap"}
724,[c("hue",{on:{change:s.childChange},model:{value:s.colors,callback:function(d){s.colors=d},expression:"colors"}})],1),s._v(" "),s.disableAlpha?s._e():c("div",{staticClass:"vc-sketch-alpha-wrap"},[c("alpha",{on:{change:s.childChange},model:{value:s.colors,callback:function(d){s.colors=d},expression:"colors"}})],1)]),s._v(" "),c("div",{staticClass:"vc-sketch-color-wrap"},[c("div",{staticClass:"vc-sketch-active-color",style:{background:s.activeColor},attrs:{"aria-label":"Current color is "+s.activeColor}}),s._v(" "),c("checkboard")],1)]),s._v(" "),s.disableFields?s._e():c("div",{staticClass:"vc-sketch-field"},[c("div",{staticClass:"vc-sketch-field--double"},[c("ed-in",{attrs:{label:"hex",value:s.hex},on:{change:s.inputChange}})],1),s._v(" "),c("div",{staticClass:"vc-sketch-field--single"},[c("ed-in",{attrs:{label:"r",value:s.colors.rgba.r},on:{change:s.inputChange}})],1),s._v(" "),c("div",{staticClass:"vc-sketch-field--single"},[c("ed-in",{attrs:{label:"g",value:s.colors.rgba.g},on:{change:s.inputChange}})],1),s._v(" "),c("div",{staticClass:"vc-sketch-field--single"},[c("ed-in",{attrs:{label:"b",value:s.colors.rgba.b},on:{change:s.inputChange}})],1),s._v(" "),s.disableAlpha?s._e():c("div",{staticClass:"vc-sketch-field--single"},[c("ed-in",{attrs:{label:"a",value:s.colors.a,"arrow-offset":.01,max:1},on:{change:s.inputChange}})],1)]),s._v(" "),c("div",{staticClass:"vc-sketch-presets",attrs:{role:"group","aria-label":"A color preset, pick one to set as current color"}},[s._l(s.presetColors,function(d){return[s.isTransparent(d)?c("div",{key:d,staticClass:"vc-sketch-presets-color",attrs:{"aria-label":"Color:"+d},on:{click:function(f){s.handlePreset(d)}}},[c("checkboard")],1):c("div",{key:d,staticClass:"vc-sketch-presets-color",style:{background:d},attrs:{"aria-label":"Color:"+d},on:{click:function(f){s.handlePreset(d)}}})]})],2)])},l=[];o._withStripped=!0;var u={render:o,staticRenderFns:l};a.a=u},function(i,a,r){function o(v){r(140)}Object.defineProperty(a,"__esModule",{value:!0});var l=r(57),u=r.n(l);for(var s in l)s!=="default"&&function(v){r.d(a,v,function(){return l[v]})}(s);var h=r(142),c=r(2),d=o,f=c(u.a,h.a,!1,d,null,null);f.options.__file="src/components/Chrome.vue",a.default=f.exports},function(i,a,r){var o=r(141);typeof o=="string"&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals),r(1)("1cd16048",o,!1,{})},function(i,a,r){a=i.exports=r(0)(!1),a.push([i.i,`
725.vc-chrome {
726  background: #fff;
727  border-radius: 2px;
728  box-shadow: 0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3);
729  box-sizing: initial;
730  width: 225px;
731  font-family: Menlo, monospace;
732  background-color: #fff;
733}
734.vc-chrome-controls {
735  display: flex;
736}
737.vc-chrome-color-wrap {
738  position: relative;
739  width: 36px;
740}
741.vc-chrome-active-color {
742  position: relative;
743  width: 30px;
744  height: 30px;
745  border-radius: 15px;
746  overflow: hidden;
747  z-index: 1;
748}
749.vc-chrome-color-wrap .vc-checkerboard {
750  width: 30px;
751  height: 30px;
752  border-radius: 15px;
753  background-size: auto;
754}
755.vc-chrome-sliders {
756  flex: 1;
757}
758.vc-chrome-fields-wrap {
759  display: flex;
760  padding-top: 16px;
761}
762.vc-chrome-fields {
763  display: flex;
764  margin-left: -6px;
765  flex: 1;
766}
767.vc-chrome-field {
768  padding-left: 6px;
769  width: 100%;
770}
771.vc-chrome-toggle-btn {
772  width: 32px;
773  text-align: right;
774  position: relative;
775}
776.vc-chrome-toggle-icon {
777  margin-right: -4px;
778  margin-top: 12px;
779  cursor: pointer;
780  position: relative;
781  z-index: 2;
782}
783.vc-chrome-toggle-icon-highlight {
784  position: absolute;
785  width: 24px;
786  height: 28px;
787  background: #eee;
788  border-radius: 4px;
789  top: 10px;
790  left: 12px;
791}
792.vc-chrome-hue-wrap {
793  position: relative;
794  height: 10px;
795  margin-bottom: 8px;
796}
797.vc-chrome-alpha-wrap {
798  position: relative;
799  height: 10px;
800}
801.vc-chrome-hue-wrap .vc-hue {
802  border-radius: 2px;
803}
804.vc-chrome-alpha-wrap .vc-alpha-gradient {
805  border-radius: 2px;
806}
807.vc-chrome-hue-wrap .vc-hue-picker, .vc-chrome-alpha-wrap .vc-alpha-picker {
808  width: 12px;
809  height: 12px;
810  border-radius: 6px;
811  transform: translate(-6px, -2px);
812  background-color: rgb(248, 248, 248);
813  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
814}
815.vc-chrome-body {
816  padding: 16px 16px 12px;
817  background-color: #fff;
818}
819.vc-chrome-saturation-wrap {
820  width: 100%;
821  padding-bottom: 55%;
822  position: relative;
823  border-radius: 2px 2px 0 0;
824  overflow: hidden;
825}
826.vc-chrome-saturation-wrap .vc-saturation-circle {
827  width: 12px;
828  height: 12px;
829}
830.vc-chrome-fields .vc-input__input {
831  font-size: 11px;
832  color: #333;
833  width: 100%;
834  border-radius: 2px;
835  border: none;
836  box-shadow: inset 0 0 0 1px #dadada;
837  height: 21px;
838  text-align: center;
839}
840.vc-chrome-fields .vc-input__label {
841  text-transform: uppercase;
842  font-size: 11px;
843  line-height: 11px;
844  color: #969696;
845  text-align: center;
846  display: block;
847  margin-top: 12px;
848}
849.vc-chrome__disable-alpha .vc-chrome-active-color {
850  width: 18px;
851  height: 18px;
852}
853.vc-chrome__disable-alpha .vc-chrome-color-wrap {
854  width: 30px;
855}
856.vc-chrome__disable-alpha .vc-chrome-hue-wrap {
857  margin-top: 4px;
858  margin-bottom: 4px;
859}
860`,""])},function(i,a,r){var o=function(){var s=this,h=s.$createElement,c=s._self._c||h;return c("div",{class:["vc-chrome",s.disableAlpha?"vc-chrome__disable-alpha":""],attrs:{role:"application","aria-label":"Chrome color picker"}},[c("div",{staticClass:"vc-chrome-saturation-wrap"}
860,[c("saturation",{on:{change:s.childChange},model:{value:s.colors,callback:function(d){s.colors=d},expression:"colors"}})],1),s._v(" "),c("div",{staticClass:"vc-chrome-body"},[c("div",{staticClass:"vc-chrome-controls"},[c("div",{staticClass:"vc-chrome-color-wrap"},[c("div",{staticClass:"vc-chrome-active-color",style:{background:s.activeColor},attrs:{"aria-label":"current color is "+s.colors.hex}}),s._v(" "),s.disableAlpha?s._e():c("checkboard")],1),s._v(" "),c("div",{staticClass:"vc-chrome-sliders"},[c("div",{staticClass:"vc-chrome-hue-wrap"},[c("hue",{on:{change:s.childChange},model:{value:s.colors,callback:function(d){s.colors=d},expression:"colors"}})],1),s._v(" "),s.disableAlpha?s._e():c("div",{staticClass:"vc-chrome-alpha-wrap"},[c("alpha",{on:{change:s.childChange},model:{value:s.colors,callback:function(d){s.colors=d},expression:"colors"}})],1)])]),s._v(" "),s.disableFields?s._e():c("div",{staticClass:"vc-chrome-fields-wrap"},[c("div",{directives:[{name:"show",rawName:"v-show",value:s.fieldsIndex===0,expression:"fieldsIndex === 0"}],staticClass:"vc-chrome-fields"},[c("div",{staticClass:"vc-chrome-field"},[s.hasAlpha?s._e():c("ed-in",{attrs:{label:"hex",value:s.colors.hex},on:{change:s.inputChange}}),s._v(" "),s.hasAlpha?c("ed-in",{attrs:{label:"hex",value:s.colors.hex8},on:{change:s.inputChange}}):s._e()],1)]),s._v(" "),c("div",{directives:[{name:"show",rawName:"v-show",value:s.fieldsIndex===1,expression:"fieldsIndex === 1"}],staticClass:"vc-chrome-fields"},[c("div",{staticClass:"vc-chrome-field"},[c("ed-in",{attrs:{label:"r",value:s.colors.rgba.r},on:{change:s.inputChange}})],1),s._v(" "),c("div",{staticClass:"vc-chrome-field"},[c("ed-in",{attrs:{label:"g",value:s.colors.rgba.g},on:{change:s.inputChange}})],1),s._v(" "),c("div",{staticClass:"vc-chrome-field"},[c("ed-in",{attrs:{label:"b",value:s.colors.rgba.b},on:{change:s.inputChange}})],1),s._v(" "),s.disableAlpha?s._e():c("div",{staticClass:"vc-chrome-field"},[c("ed-in",{attrs:{label:"a",value:s.colors.a,"arrow-offset":.01,max:1},on:{change:s.inputChange}})],1)]),s._v(" "),c("div",{directives:[{name:"show",rawName:"v-show",value:s.fieldsIndex===2,expression:"fieldsIndex === 2"}],staticClass:"vc-chrome-fields"},[c("div",{staticClass:"vc-chrome-field"},[c("ed-in",{attrs:{label:"h",value:s.hsl.h},on:{change:s.inputChange}})],1),s._v(" "),c("div",{staticClass:"vc-chrome-field"},[c("ed-in",{attrs:{label:"s",value:s.hsl.s},on:{change:s.inputChange}})],1),s._v(" "),c("div",{staticClass:"vc-chrome-field"},[c("ed-in",{attrs:{label:"l",value:s.hsl.l},on:{change:s.inputChange}})],1),s._v(" "),s.disableAlpha?s._e():c("div",{staticClass:"vc-chrome-field"},[c("ed-in",{attrs:{label:"a",value:s.colors.a,"arrow-offset":.01,max:1},on:{change:s.inputChange}})],1)]),s._v(" "),c("div",{staticClass:"vc-chrome-toggle-btn",attrs:{role:"button","aria-label":"Change another color definition"},on:{click:s.toggleViews}},[c("div",{staticClass:"vc-chrome-toggle-icon"},[c("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"},on:{mouseover:s.showHighlight,mouseenter:s.showHighlight,mouseout:s.hideHighlight}},[c("path",{attrs:{fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}})])]),s._v(" "),c("div",{directives:[{name:"show",rawName:"v-show",value:s.highlight,expression:"highlight"}],staticClass:"vc-chrome-toggle-icon-highlight"})])])])])},l=[];o._withStripped=!0;var u={render:o,staticRenderFns:l};a.a=u},function(i,a,r){function o(v){r(144)}Object.defineProperty(a,"__esModule",{value:!0});var l=r(58),u=r.n(l);for(var s in l)s!=="default"&&function(v){r.d(a,v,function(){return l[v]})}(s);var h=r(146),c=r(2),d=o,f=c(u.a,h.a,!1,d,null,null);f.options.__file="src/components/Twitter.vue",a.default=f.exports},function(i,a,r){var o=r(145);typeof o=="string"&&(o=[[i.i,o,""]]),o.locals&&(i.exports=o.locals),r(1)("669a48a5",o,!1,{})},function(i,a,r){a=i.exports=r(0)(!1),a.push([i.i,`
861.vc-twitter {
862  background: #fff;
863  border: 0 solid rgba(0,0,0,0.25);
864  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
865  border-radius: 4px;
866  position: relative;
867}
868.vc-twitter-triangle {
869  width: 0px;
870  height: 0px;
871  border-style: solid;
872  border-width: 0 9px 10px 9px;
873  border-color: transparent transparent #fff transparent;
874  position: absolute;
875}
876.vc-twitter-triangle-shadow {
877  width: 0px;
878  height: 0px;
879  border-style: solid;
880  border-width: 0 9px 10px 9px;
881  border-color: transparent transparent rgba(0, 0, 0, .1) transparent;
882  position: absolute;
883}
884.vc-twitter-body {
885  padding: 15px 9px 9px 15px;
886}
887.vc-twitter .vc-editable-input {
888  position: relative;
889}
890.vc-twitter .vc-editable-input input {
891  width: 100px;
892  font-size: 14px;
893  color: #666;
894  border: 0px;
895  outline: none;
896  height: 28px;
897  box-shadow: inset 0 0 0 1px #F0F0F0;
898  box-sizing: content-box;
899  border-radius: 0 4px 4px 0;
900  float: left;
901  padding: 1px;
902  padding-left: 8px;
903}
904.vc-twitter .vc-editable-input span {
905  display: none;
906}
907.vc-twitter-hash {
908  background: #F0F0F0;
909  height: 30px;
910  width: 30px;
911  border-radius: 4px 0 0 4px;
912  float: left;
913  color: #98A1A4;
914  display: flex;
915  align-items: center;
916  justify-content: center;
917}
918.vc-twitter-swatch {
919  width: 30px;
920  height: 30px;
921  float: left;
922  border-radius: 4px;
923  margin: 0 6px 6px 0;
924  cursor: pointer;
925  position: relative;
926  outline: none;
927}
928.vc-twitter-clear {
929  clear: both;
930}
931.vc-twitter-hide-triangle .vc-twitter-triangle {
932  display: none;
933}
934.vc-twitter-hide-triangle .vc-twitter-triangle-shadow {
935  display: none;
936}
937.vc-twitter-top-left-triangle .vc-twitter-triangle{
938  top: -10px;
939  left: 12px;
940}
941.vc-twitter-top-left-triangle .vc-twitter-triangle-shadow{
942  top: -11px;
943  left: 12px;
944}
945.vc-twitter-top-right-triangle .vc-twitter-triangle{
946  top: -10px;
947  right: 12px;
948}
949.vc-twitter-top-right-triangle .vc-twitter-triangle-shadow{
950  top: -11px;
951  right: 12px;
952}
953`,""])},function(i,a,r){var o=function(){var s=this,h=s.$createElement,c=s._self._c||h;return c("div",{staticClass:"vc-twitter",class:{"vc-twitter-hide-triangle ":s.tri
953angle==="hide","vc-twitter-top-left-triangle ":s.triangle==="top-left","vc-twitter-top-right-triangle ":s.triangle==="top-right"},style:{width:typeof s.width=="number"?s.width+"px":s.width}},[c("div",{staticClass:"vc-twitter-triangle-shadow"}),s._v(" "),c("div",{staticClass:"vc-twitter-triangle"}),s._v(" "),c("div",{staticClass:"vc-twitter-body"},[s._l(s.defaultColors,function(d,f){return c("span",{key:f,staticClass:"vc-twitter-swatch",style:{background:d,boxShadow:"0 0 4px "+(s.equal(d)?d:"transparent")},on:{click:function(v){s.handlerClick(d)}}})}),s._v(" "),c("div",{staticClass:"vc-twitter-hash"},[s._v("#")]),s._v(" "),c("editable-input",{attrs:{label:"#",value:s.hex},on:{change:s.inputChange}}),s._v(" "),c("div",{staticClass:"vc-twitter-clear"})],2)])},l=[];o._withStripped=!0;var u={render:o,staticRenderFns:l};a.a=u}])})}(mr)),mr.exports}var Md=Ld();te(Ml);const Pd={model:{event:"update:modelValue",prop:"modelValue"}},Fd=po({...Pd,__name:"NcColorPicker",props:{advancedFields:{type:Boolean},clearable:{type:Boolean},container:{default:"body"},modelValue:{default:""},value:{default:void 0},open:{type:Boolean},palette:{default:()=>[]},paletteOnly:{type:Boolean}},emits:["submit","close","update:modelValue","update:value"],setup(e,{emit:n}){const i=e,a=jt("value","update:value",!0),r=Pl(i,"open",n,{passive:!0,eventName:"update:open"}),o=/^#([a-f0-9]{3}|[a-f0-9]{6})$/i,l=Uo(),u=bn(!1),s=ot(()=>{let x=i.palette;for(const C of x)if(typeof C=="string"&&!C.match(o)||typeof C=="object"&&!C.color?.match(o)){Ne.error("[NcColorPicker] Invalid palette passed",{color:C}),x=[];break}return x.length===0&&(x=i.clearable?[..._a,wa,xa]:[..._a]),x.map(C=>({color:typeof C=="object"?C.color:C,name:typeof C=="object"&&C.name?C.name:V("A color with a HEX value {hex}",{hex:typeof C=="string"?C:C.color})}))});function h(x){n("submit",a.value),x(),u.value=!1}function c(x){x=typeof x=="string"?x:x.color,i.clearable&&a.value===x?a.value=void 0:a.value=x}function d(x){a.value=x.hex}function f(x){return v(x)>.5?wa.color:xa.color}function v(x){const[C,E,D]=y(x);return(.2126*C+.7152*E+.0722*D)/255}function y(x){const C=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(x);return C?[parseInt(C[1],16),parseInt(C[2],16),parseInt(C[3],16)]:[0,0,0]}return{__sfc:!0,props:i,emit:n,currentColor:a,modelOpen:r,HEX_REGEX:o,id:l,advanced:u,normalizedPalette:s,handleConfirm:h,toggleColor:c,pickCustomColor:d,getContrastColor:f,calculateLuma:v,hexToRGB:y,mdiArrowLeft:rl,mdiCheck:il,mdiCloseCircleOutline:nl,mdiDotsHorizontal:tl,Chrome:Md.Chrome,NcButton:Dr,NcIconSvgWrapper:Sr,NcPopover:_o,t:V}}});var Id=function(){var e=this,n=e._self._c,i=e._self._setupProxy;return n(i.NcPopover,e._g(e._b({attrs:{shown:i.modelOpen,container:e.container,"popup-role":"dialog"},on:{"update:shown":function(a){i.modelOpen=a},"apply-hide":function(a){return i.emit("close")}},scopedSlots:e._u([{key:"trigger",fn:function(a){return[e._t("default",null,null,a)]}},{key:"default",fn:function(a){return[n("div",{staticClass:"color-picker",class:{"color-picker--advanced-fields":i.advanced&&e.advancedFields,"color-picker--clearable":e.clearable},attrs:{role:"dialog","aria-modal":"true","aria-label":i.t("Color picker")}},[n("Transition",{attrs:{name:"slide",mode:"out-in"}},[i.advanced?n(i.Chrome,{staticClass:"color-picker__advanced",attrs:{"disable-alpha":!0,"disable-fields":!e.advancedFields,value:i.currentColor??"#000000"},on:{input:i.pickCustomColor}}):n("div",{staticClass:"color-picker__simple"},[e._l(i.normalizedPalette,function({color:r,name:o},l){return n("label",{key:l,staticClass:"color-picker__simple-color-circle",class:{"color-picker__simple-color-circle--active":r===i.currentColor},style:{backgroundColor:r,color:i.getContrastColor(r)}},[n("span",{staticClass:"hidden-visually"},[e._v(" "+e._s(r)+" -- "+e._s(i.currentColor)+" ")]),r===i.currentColor?n(i.NcIconSvgWrapper,{attrs:{path:i.mdiCheck}}):e._e(),n("input",{staticClass:"hidden-visually",attrs:{type:"radio","aria-label":o,name:`color-picker-${i.id}`},domProps:{checked:r===i.currentColor},on:{click:function(u){return i.toggleColor(r)}}})],1)}),e.clearable?n("label",{staticClass:"color-picker__clear",attrs:{title:i.t("No color")}},[n(i.NcIconSvgWrapper,{attrs:{size:i.currentColor?28:34,path:i.mdiCloseCircleOutline}}),n("input",{staticClass:"hidden-visually",attrs:{type:"radio","aria-label":i.t("No color"),name:`color-picker-${i.id}`},domProps:{checked:!i.currentColor},on:{click:function(r){i.currentColor=void 0}}}
953)],1):e._e()],2)],1),e.paletteOnly?e._e():n("div",{staticClass:"color-picker__navigation"},[i.advanced?n(i.NcButton,{attrs:{"aria-label":i.t("Back"),title:i.t("Back"),variant:"tertiary"},on:{click:function(r){i.advanced=!1}},scopedSlots:e._u([{key:"icon",fn:function(){return[n(i.NcIconSvgWrapper,{attrs:{directional:"",path:i.mdiArrowLeft}})]},proxy:!0}],null,!0)}):n(i.NcButton,{attrs:{"aria-label":i.t("More options"),title:i.t("More options"),variant:"tertiary"},on:{click:function(r){i.advanced=!0}},scopedSlots:e._u([{key:"icon",fn:function(){return[n(i.NcIconSvgWrapper,{attrs:{path:i.mdiDotsHorizontal}})]},proxy:!0}],null,!0)}),n(i.NcButton,{attrs:{variant:"primary"},on:{click:function(r){return i.handleConfirm(a.hide)}}},[e._v(" "+e._s(i.t("Choose"))+" ")])],1)],1)]}}],null,!0)},"NcPopover",e.$attrs,!1),e.$listeners))},$d=[],Bd=xe(Fd,Id,$d,!1,null,"01d41e75");const Nd=Bd.exports;te(Fl),te(Il),V("More items …"),te($l),V("a few seconds ago"),V("seconds ago"),V("sec. ago");function as(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function wi(e){return as(e)?new Date(e.getTime()):e==null?new Date(NaN):new Date(e)}function zd(e){return as(e)&&!isNaN(e.getTime())}function os(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!(n>=0&&n<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var i=wi(e),a=i.getDay(),r=(a+7-n)%7;return i.setDate(i.getDate()-r),i.setHours(0,0,0,0),i}function ss(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.firstDayOfWeek,a=i===void 0?0:i,r=n.firstWeekContainsDate,o=r===void 0?1:r;if(!(o>=1&&o<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var l=wi(e),u=l.getFullYear(),s=new Date(0),h=u+1;h>=u-1&&(s.setFullYear(h,0,o),s.setHours(0,0,0,0),s=os(s,a),!(l.getTime()>=s.getTime()));h--);return s}function Vr(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.firstDayOfWeek,a=i===void 0?0:i,r=n.firstWeekContainsDate,o=r===void 0?1:r,l=wi(e),u=os(l,a),s=ss(l,{firstDayOfWeek:a,firstWeekContainsDate:o}),h=u.getTime()-s.getTime();return Math.round(h/(7*24*3600*1e3))+1}var ls={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},Vd=/\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;function Me(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,i="".concat(Math.abs(e)),a=e<0?"-":"";i.length<n;)i="0".concat(i);return a+i}function Na(e){return Math.round(e.getTimezoneOffset()/15)*15}function za(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=e>0?"-":"+",a=Math.abs(e),r=Math.floor(a/60),o=a%60;return i+Me(r,2)+n+Me(o,2)}var Va=function(e,n,i){var a=e<12?"AM":"PM";return i?a.toLocaleLowerCase():a},tn={Y:function(e){var n=e.getFullYear();return n<=9999?"".concat(n):"+".concat(n)},YY:function(e){return Me(e.getFullYear(),4).substr(2)},YYYY:function(e){return Me(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return Me(e.getMonth()+1,2)},MMM:function(e,n){return n.monthsShort[e.getMonth()]},MMMM:function(e,n){return n.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return Me(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return Me(e.getHours(),2)},h:function(e){var n=e.getHours();return n===0?12:n>12?n%12:n},hh:function(){var e=tn.h.apply(tn,arguments);return Me(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return Me(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return Me(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return Me(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return Me(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,n){return n.weekdaysMin[e.getDay()]},ddd:function(e,n){return n.weekdaysShort[e.getDay()]},dddd:function(e,n){return n.weekdays[e.getDay()]},A:function(e,n){var i=n.meridiem||Va;return i(e.getHours(),e.getMinutes(),!1)},a:function(e,n){var i=n.meridiem||Va;return i(e.getHours(),e.getMinutes(),!0)},Z:function(e){return za(Na(e),":")},ZZ:function(e){return za(Na(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,n){return Vr(e,{firstDayOfWeek:n.firstDayOfWeek,firstWeekContainsDate:n.firstWeekContainsDate})},ww:function(e,n){return Me(tn.w(e,n),2)}};function xi(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n?String(n):"YYYY-MM-DDTHH:mm:ss.SSSZ",r=wi(e);if(!zd(r))return"Invalid Date";var o=i.locale||ls;return a.replace(Vd,function(l,u){return u||(typeof tn[l]=="function"?"".concat(tn[l](r,o)):l)})}function Ra(e){return Ud(e)||Hd(e)||Rd()}function Rd(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Hd(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Ud(e){if(Array.isArray(e)){for(var n=0,i=new Array(e.length);n<e.length;n++)i[n]=e[n];return i}}function Ha(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,a)}return i}function Yd(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};
vendor: 5,962 bytes, line 953
953n%2?Ha(i,!0).forEach(function(a){pt(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ha(i).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}function Wd(e,n){return Gd(e)||Kd(e,n)||qd()}function qd(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Kd(e,n){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var i=[],a=!0,r=!1,o=void 0;try{for(var l=e[Symbol.iterator](),u;!(a=(u=l.next()).done)&&(i.push(u.value),!(n&&i.length===n));a=!0);}catch(s){r=!0,o=s}finally{try{!a&&l.return!=null&&l.return()}finally{if(r)throw o}}return i}}function Gd(e){if(Array.isArray(e))return e}function pt(e,n,i){return n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}var Xd=/(\[[^\[]*\])|(MM?M?M?|Do|DD?|ddd?d?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|S{1,3}|x|X|ZZ?|.)/g,us=/\d/,ct=/\d\d/,Zd=/\d{3}/,Jd=/\d{4}/,Mt=/\d\d?/,Qd=/[+-]\d\d:?\d\d/,cs=/[+-]?\d+/,ep=/[+-]?\d+(\.\d{1,3})?/,Yi="year",jn="month",Ua="day",Ya="hour",Wa="minute",qa="second",Wi="millisecond",hs={},ue=function(e,n,i){var a=Array.isArray(e)?e:[e],r;typeof i=="string"?r=function(o){var l=parseInt(o,10);return pt({},i,l)}:r=i,a.forEach(function(o){hs[o]=[n,r]})},tp=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},nn=function(e){return function(n){var i=n[e];if(!Array.isArray(i))throw new Error("Locale[".concat(e,"] need an array"));return new RegExp(i.map(tp).join("|"))}},rn=function(e,n){return function(i,a){var r=a[e];if(!Array.isArray(r))throw new Error("Locale[".concat(e,"] need an array"));var o=r.indexOf(i);if(o<0)throw new Error("Invalid Word");return pt({},n,o)}};ue("Y",cs,Yi),ue("YY",ct,function(e){var n=new Date().getFullYear(),i=Math.floor(n/100),a=parseInt(e,10);return a=(a>68?i-1:i)*100+a,pt({},Yi,a)}),ue("YYYY",Jd,Yi),ue("M",Mt,function(e){return pt({},jn,parseInt(e,10)-1)}),ue("MM",ct,function(e){return pt({},jn,parseInt(e,10)-1)}),ue("MMM",nn("monthsShort"),rn("monthsShort",jn)),ue("MMMM",nn("months"),rn("months",jn)),ue("D",Mt,Ua),ue("DD",ct,Ua),ue(["H","h"],Mt,Ya),ue(["HH","hh"],ct,Ya),ue("m",Mt,Wa),ue("mm",ct,Wa),ue("s",Mt,qa),ue("ss",ct,qa),ue("S",us,function(e){return pt({},Wi,parseInt(e,10)*100)}),ue("SS",ct,function(e){return pt({},Wi,parseInt(e,10)*10)}),ue("SSS",Zd,Wi);function np(e){return e.meridiemParse||/[ap]\.?m?\.?/i}function ip(e){return"".concat(e).toLowerCase().charAt(0)==="p"}ue(["A","a"],np,function(e,n){var i=typeof n.isPM=="function"?n.isPM(e):ip(e);return{isPM:i}});function rp(e){var n=e.match(/([+-]|\d\d)/g)||["-","0","0"],i=Wd(n,3),a=i[0],r=i[1],o=i[2],l=parseInt(r,10)*60+parseInt(o,10);return l===0?0:a==="+"?-l:+l}ue(["Z","ZZ"],Qd,function(e){return{offset:rp(e)}}),ue("x",cs,function(e){return{date:new Date(parseInt(e,10))}}),ue("X",ep,function(e){return{date:new Date(parseFloat(e)*1e3)}}),ue("d",us,"weekday"),ue("dd",nn("weekdaysMin"),rn("weekdaysMin","weekday")),ue("ddd",nn("weekdaysShort"),rn("weekdaysShort","weekday")),ue("dddd",nn("weekdays"),rn("weekdays","weekday")),ue("w",Mt,"week"),ue("ww",ct,"week");function ap(e,n){if(e!==void 0&&n!==void 0){if(n){if(e<12)return e+12}else if(e===12)return 0}return e}function op(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,i=[0,0,1,0,0,0,0],a=[n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()],r=!0,o=0;o<7;o++)e[o]===void 0?i[o]=r?a[o]:i[o]:(i[o]=e[o],r=!1);return i}function sp(e,n,i,a,r,o,l){var u;return e<100&&e>=0?(u=new Date(e+400,n,i,a,r,o,l),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,n,i,a,r,o,l),u}function lp(){for(var e,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var r=i[0];return r<100&&r>=0?(i[0]+=400,e=new Date(Date.UTC.apply(Date,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(r)):e=new Date(Date.UTC.apply(Date,i)),e}function up(e,n,i){var a=n.match(Xd);if(!a)throw new Error;for(var r=a.length,o={},l=0;l<r;l+=1){var u=a[l],s=hs[u];if(s){var h=typeof s[0]=="function"?s[0](i):s[0],c=s[1],d=(h.exec(e)||[])[0],f=c(d,i);o=Yd({},o,{},f),e=e.replace(d,"")}else{var v=u.replace(/^\[|\]$/g,"");if(e.indexOf(v)===0)e=e.substr(v.length);else throw new Error("not match")}}return o}function cp(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{var a=i.locale,r=a===void 0?ls:a,o=i.backupDate,l=o===void 0?new Date:o,u=up(e,n,r),s=u.year,h=u.month,c=u.day,d=u.hour,f=u.minute,v=u.second,y=u.millisecond,x=u.isPM,C=u.date,E=u.offset,D=u.weekday,M=u.week;if(C)return C;var X=[s,h,c,d,f,v,y];if(X[3]=ap(X[3],x),M!==void 0&&h===void 0&&c===void 0){var U=ss(s===void 0?l:new Date(s,3),{firstDayOfWeek:r.firstDayOfWeek,firstWeekContainsDate:r.firstWeekContainsDate});return new Date(U.getTime()+(M-1)*7*24*3600*1e3)}var F,G=op(X,l);return E!==void 0?(G[6]+=E*60*1e3,F=lp.apply(void 0,Ra(G))):F=sp.apply(void 0,Ra(G)),D!==void 0&&F.getDay()!==D?new Date(NaN):F}catch{return new Date(NaN)}}function In(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?In=function(n){return typeof n}:In=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},In(e)}function kt(e,n,i){return n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function vr(){return vr=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},vr.apply(this,arguments)}function Ka(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),i.push.apply(i,a)}return i}function ce(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};
953n%2?Ka(Object(i),!0).forEach(function(a){kt(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ka(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}function hp(e,n){if(e==null)return{};var i={},a=Object.keys(e),r,o;for(o=0;o<a.length;o++)r=a[o],!(n.indexOf(r)>=0)&&(i[r]=e[r]);return i}function dp(e,n){if(e==null)return{};var i=hp(e,n),a,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)a=o[r],!(n.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}function an(e,n){return pp(e)||fp(e,n)||mp(e,n)||vp()}function pp(e){if(Array.isArray(e))return e}function fp(e,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var i=[],a=!0,r=!1,o=void 0;try{for(var l=e[Symbol.iterator](),u;!(a=(u=l.next()).done)&&(i.push(u.value),!(n&&i.length===n));a=!0);}catch(s){r=!0,o=s}finally{try{!a&&l.return!=null&&l.return()}finally{if(r)throw o}}return i}}function mp(e,n){if(e){if(typeof e=="string")return Ga(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Ga(e,n)}}function Ga(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,a=new Array(n);i<n;i++)a[i]=e[i];return a}function vp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
954In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gr(){return gr=Object.assign||function(e){for(var n,i=1;i<arguments.length;i++)for(var a in n=arguments[i],n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},gr.apply(this,arguments)}var gp=["attrs","props","domProps"],bp=["class","style","directives"],yp=["on","nativeOn"],wp=function(e){return e.reduce(function(n,i){for(var a in i)if(!n[a])n[a]=i[a];else if(gp.indexOf(a)!==-1)n[a]=gr({},n[a],i[a]);else if(bp.indexOf(a)!==-1){var r=n[a]instanceof Array?n[a]:[n[a]],o=i[a]instanceof Array?i[a]:[i[a]];n[a]=r.concat(o)}else if(yp.indexOf(a)!==-1)for(var l in i[a])if(n[a][l]){var u=n[a][l]instanceof Array?n[a][l]:[n[a][l]],s=i[a][l]instanceof Array?i[a][l]:[i[a][l]];n[a][l]=u.concat(s)}else n[a][l]=i[a][l];else if(a=="hook")for(var h in i[a])n[a][h]=n[a][h]?xp(n[a][h],i[a][h]):i[a][h];else n[a]=i[a];return n},{})},xp=function(e,n){return function(){e&&e.apply(this,arguments),n&&n.apply(this,arguments)}},fn=wp;function rt(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,u=new Date(e,n,i,a,r,o,l);return e<100&&e>=0&&u.setFullYear(e),u}function st(e){return e instanceof Date&&!isNaN(e)}function _i(e){return Array.isArray(e)&&e.length===2&&e.every(st)&&e[0]<=e[1]}function _p(e){return Array.isArray(e)&&e.every(st)}function Nt(e){var n=new Date(e);if(st(n))return n;for(var i=arguments.length,a=new Array(i>1?i-1:0),r=1;r<i;r++)a[r-1]=arguments[r];return a.length?Nt.apply(void 0,a):new Date}function Cp(e){var n=new Date(e);return n.setMonth(0,1),n.setHours(0,0,0,0),n}function br(e){var n=new Date(e);return n.setDate(1),n.setHours(0,0,0,0),n}function kp(e){var n=new Date(e);return n.setHours(0,0,0,0),n}function Sp(e){for(var n=e.firstDayOfWeek,i=e.year,a=e.month,r=[],o=rt(i,a,0),l=o.getDate(),u=l-(o.getDay()+7-n)%7,s=u;s<=l;s++)r.push(rt(i,a,s-l));o.setMonth(a+1,0);for(var h=o.getDate(),c=1;c<=h;c++)r.push(rt(i,a,c));for(var d=l-u+1,f=6*7-d-h,v=1;v<=f;v++)r.push(rt(i,a,h+v));return r}function yr(e,n){var i=new Date(e),a=typeof n=="function"?n(i.getMonth()):Number(n),r=i.getFullYear(),o=rt(r,a+1,0).getDate(),l=i.getDate();return i.setMonth(a,Math.min(l,o)),i}function zt(e,n){var i=new Date(e),a=typeof n=="function"?n(i.getFullYear()):n;return i.setFullYear(a),i}function di(e,n){var i=new Date(e),a=new Date(n);return i.setHours(a.getHours(),a.getMinutes(),a.getSeconds()),i}function Rr(e,n){if(!Array.isArray(e))return[];var i=[],a=e.length,r=0;for(n=n||a;r<a;)i.push(e.slice(r,r+=n));return i}function Ge(e){return Object.prototype.toString.call(e)==="[object Object]"}function Vt(e,n){if(!Ge(e))return{};Array.isArray(n)||(n=[n]);var i={};
954return n.forEach(function(a){a in e&&(i[a]=e[a])}),i}function ds(e,n){if(!Ge(e))return{};var i=e;return Ge(n)&&Object.keys(n).forEach(function(a){var r=n[a];Ge(r)&&Ge(e[a])&&(r=ds(e[a],r)),i=ce({},i,kt({},a,r))}),i}function Dp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ap(e,n){return n={exports:{}},e(n,n.exports),n.exports}var Ep=Ap(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},a=i;n.default=a,e.exports=n.default}),jp=Dp(Ep),Op={formatLocale:jp,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0},Kt="en",Pt={};Pt[Kt]=Op;function ps(e,n,i){if(typeof e!="string")return Pt[Kt];var a=Kt;return Pt[e]&&(a=e),n&&(Pt[e]=n,a=e),i||(Kt=a),Pt[e]||Pt[Kt]}function Rt(e){return ps(e,null,!0)}function Tp(e){var n=!1;return function(){for(var i=this,a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];n||(n=!0,requestAnimationFrame(function(){n=!1,e.apply(i,r)}))}}function Lp(e){var n=e.style.display,i=e.style.visibility;e.style.display="block",e.style.visibility="hidden";var a=window.getComputedStyle(e),r=e.offsetWidth+parseInt(a.marginLeft,10)+parseInt(a.marginRight,10),o=e.offsetHeight+parseInt(a.marginTop,10)+parseInt(a.marginBottom,10);return e.style.display=n,e.style.visibility=i,{width:r,height:o}}function Mp(e,n,i,a){var r=0,o=0,l=0,u=0,s=e.getBoundingClientRect(),h=document.documentElement.clientWidth,c=document.documentElement.clientHeight;return a&&(l=window.pageXOffset+s.left,u=window.pageYOffset+s.top),h-s.left<n&&s.right<n?r=l-s.left+1:s.left+s.width/2<=h/2?r=l:r=l+s.width-n,s.top<=i&&c-s.bottom<=i?o=u+c-s.top-i:s.top+s.height/2<=c/2?o=u+s.height:o=u-i,{left:"".concat(r,"px"),top:"".concat(o,"px")}}function Ci(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body;if(!e||e===n)return null;var i=function(o,l){return getComputedStyle(o,null).getPropertyValue(l)},a=/(auto|scroll)/,r=a.test(i(e,"overflow")+i(e,"overflow-y")+i(e,"overflow-x"));return r?e:Ci(e.parentNode,n)}var Pp={name:"Popup",inject:{prefixClass:{default:"mx"}},props:{visible:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},data:function(){return{top:"",left:""}},watch:{visible:{immediate:!0,handler:function(e){var n=this;this.$nextTick(function(){e&&n.displayPopup()})}}},mounted:function(){var e=this;this.appendToBody&&document.body.appendChild(this.$el),this._clickoutEvent="ontouchend"in document?"touchstart":"mousedown",document.addEventListener(this._clickoutEvent,this.handleClickOutside);var n=this.$parent.$el;this._displayPopup=Tp(function(){return e.displayPopup()}),this._scrollParent=Ci(n)||window,this._scrollParent.addEventListener("scroll",this._displayPopup),window.addEventListener("resize",this._displayPopup)},beforeDestroy:function(){this.appendToBody&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),document.removeEventListener(this._clickoutEvent,this.handleClickOutside),this._scrollParent.removeEventListener("scroll",this._displayPopup),window.removeEventListener("resize",this._displayPopup)},methods:{handleClickOutside:function(e){if(this.visible){var n=e.target,i=this.$el;i&&!i.contains(n)&&this.$emit("clickoutside",e)}},displayPopup:function(){if(this.visible){var e=this.$el,n=this.$parent.$el,i=this.appendToBody;this._popupRect||(this._popupRect=Lp(e));var a=this._popupRect,r=a.width,o=a.height,l=Mp(n,r,o,i),u=l.left,s=l.top;this.left=u,this.top=s}}}};function ze(e,n,i,a,r,o,l,u,s,h){var c=typeof i=="function"?i.options:i;return e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),i}var Fp=Pp,Ip=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("transition",{attrs:{name:e.prefixClass+"-zoom-in-down"}}
954,[e.visible?i("div",{class:e.prefixClass+"-datepicker-main "+e.prefixClass+"-datepicker-popup",style:{top:e.top,left:e.left,position:"absolute"}},[e._t("default")],2):e._e()])},$p=[],Bp=void 0,Np=ze({render:Ip,staticRenderFns:$p},Bp,Fp),zp=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[i("path",{attrs:{d:"M940.218182 107.054545h-209.454546V46.545455h-65.163636v60.50909H363.054545V46.545455H297.890909v60.50909H83.781818c-18.618182 0-32.581818 13.963636-32.581818 32.581819v805.236363c0 18.618182 13.963636 32.581818 32.581818 32.581818h861.090909c18.618182 0 32.581818-13.963636 32.581818-32.581818V139.636364c-4.654545-18.618182-18.618182-32.581818-37.236363-32.581819zM297.890909 172.218182V232.727273h65.163636V172.218182h307.2V232.727273h65.163637V172.218182h176.872727v204.8H116.363636V172.218182h181.527273zM116.363636 912.290909V442.181818h795.927273v470.109091H116.363636z"}})])},Vp=[],Rp=void 0,Hp=ze({render:zp,staticRenderFns:Vp},Rp,{}),Up=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"}},[i("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),i("path",{attrs:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}),e._v(" "),i("path",{attrs:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}})])},Yp=[],Wp=void 0,qp=ze({render:Up,staticRenderFns:Yp},Wp,{}),Kp=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[i("path",{attrs:{d:"M810.005333 274.005333l-237.994667 237.994667 237.994667 237.994667-60.010667 60.010667-237.994667-237.994667-237.994667 237.994667-60.010667-60.010667 237.994667-237.994667-237.994667-237.994667 60.010667-60.010667 237.994667 237.994667 237.994667-237.994667z"}})])},Gp=[],Xp=void 0,Zp=ze({render:Kp,staticRenderFns:Gp},Xp,{}),Jp={props:{type:String,disabled:Boolean},inject:{prefixClass:{default:"mx"}}},Qp=Jp,ef=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("button",e._g({class:[e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-icon-"+e.type,{disabled:e.disabled}],attrs:{type:"button",disabled:e.disabled}},e.$listeners),[i("i",{class:e.prefixClass+"-icon-"+e.type})])},tf=[],nf=void 0,Hr=ze({render:ef,staticRenderFns:tf},nf,Qp),rf={name:"TableDate",components:{IconButton:Hr},inject:{getLocale:{default:function(){return Rt}},getWeek:{default:function(){return Vr}},prefixClass:{default:"mx"},onDateMouseEnter:{default:void 0},onDateMouseLeave:{default:void 0}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},showWeekNumber:{type:Boolean,default:!1},titleFormat:{type:String,default:"YYYY-MM-DD"},getRowClasses:{type:Function,default:function(){return[]}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{firstDayOfWeek:function(){return this.getLocale().formatLocale.firstDayOfWeek||0},yearMonth:function(){var e=this.getLocale(),n=e.yearFormat,i=e.monthBeforeYear,a=e.monthFormat,r=a===void 0?"MMM":a,o={panel:"year",label:this.formatDate(this.calendar,n)},l={panel:"month",label:this.formatDate(this.calendar,r)};return i?[l,o]:[o,l]},days:function(){var e=this.getLocale(),n=e.days||e.formatLocale.weekdaysMin;return n.concat(n).slice(this.firstDayOfWeek,this.firstDayOfWeek+7)},dates:function(){var e=this.calendar.getFullYear(),n=this.calendar.getMonth(),i=Sp({firstDayOfWeek:this.firstDayOfWeek,year:e,month:n});return Rr(i,7)}},methods:{isDisabledArrows:function(e){var n=new Date(this.calendar);switch(e){case"last-year":n.setFullYear(n.getFullYear()-1,n.getMonth()+1,0),n.setHours(23,59,59,999);break;case"next-year":n.setFullYear(n.getFullYear()+1);break;case"last-month":n.setMonth(n.getMonth(),0),n.setHours(23,59,59,999);break;case"next-month":n.setMonth(n.getMonth()+1);break}return this.disabledCalendarChanger(n,e)},handleIconLeftClick:function(){this.$emit("changecalendar",yr(this.calendar,function(e){return e-1}),"last-month")},handleIconRightClick:function(){this.$emit("changecalendar",yr(this.calendar,function(e){return e+1}),"next-month")},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",zt(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",zt(this.calendar,function(e){return e+1}),"next-year")},handlePanelChange:function(e){this.$emit("changepanel",e)},handleMouseEnter:function(e){typeof this.onDateMouseEnter=="function"&&this.onDateMouseEnter(e)},handleMouseLeave:function(e){typeof this.onDateMouseLeave=="function"&&this.onDateMouseLeave(e)},handleCellClick:function(e){var n=e.target;n.tagName.toUpperCase()==="DIV"&&(n=n.parentNode);var i=n.getAttribute("data-row-col");if(i){var a=i.split(",").map(function(s){return parseInt(s,10)}
954),r=an(a,2),o=r[0],l=r[1],u=this.dates[o][l];this.$emit("select",new Date(u))}},formatDate:function(e,n){return xi(e,n,{locale:this.getLocale().formatLocale})},getCellTitle:function(e){var n=this.titleFormat;return this.formatDate(e,n)},getWeekNumber:function(e){return this.getWeek(e,this.getLocale().formatLocale)}}},af=rf,of=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-date"},[i("div",{class:e.prefixClass+"-calendar-header"},[i("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),i("icon-button",{attrs:{type:"left",disabled:e.isDisabledArrows("last-month")},on:{click:e.handleIconLeftClick}}),e._v(" "),i("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),i("icon-button",{attrs:{type:"right",disabled:e.isDisabledArrows("next-month")},on:{click:e.handleIconRightClick}}),e._v(" "),i("span",{class:e.prefixClass+"-calendar-header-label"},e._l(e.yearMonth,function(a){return i("button",{key:a.panel,class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-current-"+a.panel,attrs:{type:"button"},on:{click:function(r){return e.handlePanelChange(a.panel)}}},[e._v(`
955        `+e._s(a.label)+`
956      `)])}),0)],1),e._v(" "),i("div",{class:e.prefixClass+"-calendar-content"},[i("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-date"},[i("thead",[i("tr",[e.showWeekNumber?i("th",{class:e.prefixClass+"-week-number-header"}):e._e(),e._v(" "),e._l(e.days,function(a){return i("th",{key:a},[e._v(e._s(a))])})],2)]),e._v(" "),i("tbody",{on:{click:e.handleCellClick}},e._l(e.dates,function(a,r){return i("tr",{key:r,class:[e.prefixClass+"-date-row",e.getRowClasses(a)]},[e.showWeekNumber?i("td",{class:e.prefixClass+"-week-number",attrs:{"data-row-col":r+",0"}},[e._v(`
957            `+e._s(e.getWeekNumber(a[0]))+`
958          `)]):e._e(),e._v(" "),e._l(a,function(o,l){return i("td",{key:l,staticClass:"cell",class:e.getCellClasses(o),attrs:{"data-row-col":r+","+l,title:e.getCellTitle(o)},on:{mouseenter:function(u){return e.handleMouseEnter(o)},mouseleave:function(u){return e.handleMouseLeave(o)}}},[i("div",[e._v(e._s(o.getDate()))])])})],2)}),0)])])])},sf=[],lf=void 0,uf=ze({render:of,staticRenderFns:sf},lf,af),cf={name:"TableMonth",components:{IconButton:Hr},inject:{getLocale:{default:function(){return Rt}},prefixClass:{default:"mx"}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{calendarYear:function(){return this.calendar.getFullYear()},months:function(){var e=this.getLocale(),n=e.months||e.formatLocale.monthsShort,i=n.map(function(a,r){return{text:a,month:r}});return Rr(i,3)}},methods:{isDisabledArrows:function(e){var n=new Date(this.calendar);switch(e){case"last-year":n.setFullYear(n.getFullYear()-1,11,31),n.setHours(23,59,59,999);break;case"next-year":n.setFullYear(n.getFullYear()+1,0,1);break}return this.disabledCalendarChanger(n,e)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",zt(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",zt(this.calendar,function(e){return e+1}),"next-year")},handlePanelChange:function(){this.$emit("changepanel","year")},handleClick:function(e){var n=e.target;n.tagName.toUpperCase()==="DIV"&&(n=n.parentNode);var i=n.getAttribute("data-month");i&&!n.classList.contains("disabled")&&this.$emit("select",parseInt(i,10))}}},hf=cf,df=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-month"},[i("div",{class:e.prefixClass+"-calendar-header"},[i("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),i("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),i("span",{class:e.prefixClass+"-calendar-header-label"},[i("button",{class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text",attrs:{type:"button"},on:{click:e.handlePanelChange}},[e._v(`
959        `+e._s(e.calendarYear)+`
960      `)])])],1),e._v(" "),i("div",{class:e.prefixClass+"-calendar-content"},[i("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-month",on:{click:e.handleClick}},e._l(e.months,function(a,r){return i("tr",{key:r},e._l(a,function(o,l){return i("td",{key:l,staticClass:"cell",class:e.getCellClasses(o.month),attrs:{"data-month":o.month}},[i("div",[e._v(e._s(o.text))])])}),0)}),0)])])},pf=[],ff=void 0,mf=ze({render:df,staticRenderFns:pf},ff,hf),vf={name:"TableYear",components:{IconButton:Hr},inject:{prefixClass:{default:"mx"}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},getCellClasses:{type:Function,default:function(){return[]}},getYearPanel:{type:Function}},computed:{years:function(){var e=new Date(this.calendar);return typeof this.getYearPanel=="function"?this.getYearPanel(e):this.getYears(e)},firstYear:function(){return this.years[0][0]},lastYear:function(){var e=function(n){return n[n.length-1]};return e(e(this.years))}},methods:{isDisabledArrows:function(e){var n=new Date(this.calendar);switch(e){case"last-decade":n.setFullYear(this.firstYear-1,11,31),n.setHours(23,59,59,999);break;case"next-decade":n.setFullYear(this.lastYear+1,0,1);break}return this.disabledCalendarChanger(n,e)},getYears:function(e){for(var n=Math.floor(e.getFullYear()/10)*10,i=[],a=0;a<10;a++)i.push(n+a);return Rr(i,2)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",zt(this.calendar,function(e){return e-10}),"last-decade")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",zt(this.calendar,function(e){return e+10}),"next-decade")},handleClick:function(e){var n=e.target;n.tagName.toUpperCase()==="DIV"&&(n=n.parentNode);var i=n.getAttribute("data-year");i&&!n.classList.contains("disabled")&&this.$emit("select",parseInt(i,10))}}},gf=vf,bf=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-year"},[i("div",{class:e.prefixClass+"-calendar-header"},[i("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-decade")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),i("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-decade")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),i("span",{class:e.prefixClass+"-calendar-header-label"},[i("span",[e._v(e._s(e.firstYear))]),e._v(" "),i("span",{class:e.prefixClass+"-calendar-decade-separator"}
960),e._v(" "),i("span",[e._v(e._s(e.lastYear))])])],1),e._v(" "),i("div",{class:e.prefixClass+"-calendar-content"},[i("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-year",on:{click:e.handleClick}},e._l(e.years,function(a,r){return i("tr",{key:r},e._l(a,function(o,l){return i("td",{key:l,staticClass:"cell",class:e.getCellClasses(o),attrs:{"data-year":o}},[i("div",[e._v(e._s(o))])])}),0)}),0)])])},yf=[],wf=void 0,xf=ze({render:bf,staticRenderFns:yf},wf,gf),St={name:"CalendarPanel",inject:{prefixClass:{default:"mx"},dispatchDatePicker:{default:function(){return function(){}}}},props:{value:{},defaultValue:{default:function(){var e=new Date;return e.setHours(0,0,0,0),e}},defaultPanel:{type:String},disabledCalendarChanger:{type:Function,default:function(){return!1}},disabledDate:{type:Function,default:function(){return!1}},type:{type:String,default:"date"},getClasses:{type:Function,default:function(){return[]}},showWeekNumber:{type:Boolean,default:void 0},getYearPanel:{type:Function},titleFormat:{type:String,default:"YYYY-MM-DD"},calendar:Date,partialUpdate:{type:Boolean,default:!1}},data:function(){var e=["date","month","year"],n=Math.max(e.indexOf(this.type),e.indexOf(this.defaultPanel)),i=n!==-1?e[n]:"date";return{panel:i,innerCalendar:new Date}},computed:{innerValue:function(){var e=Array.isArray(this.value)?this.value:[this.value],n={year:Cp,month:br,date:kp},i=n[this.type]||n.date;return e.filter(st).map(function(a){return i(a)})},calendarYear:function(){return this.innerCalendar.getFullYear()},calendarMonth:function(){return this.innerCalendar.getMonth()}},watch:{value:{immediate:!0,handler:"initCalendar"},calendar:{handler:"initCalendar"},defaultValue:{handler:"initCalendar"}},methods:{initCalendar:function(){var e=this.calendar;if(!st(e)){var n=this.innerValue.length;e=Nt(n>0?this.innerValue[n-1]:this.defaultValue)}this.innerCalendar=br(e)},isDisabled:function(e){return this.disabledDate(new Date(e),this.innerValue)},emitDate:function(e,n){this.isDisabled(e)||(this.$emit("select",e,n,this.innerValue),this.dispatchDatePicker("pick",e,n))},handleCalendarChange:function(e,n){var i=new Date(this.innerCalendar);this.innerCalendar=e,this.$emit("update:calendar",e),this.dispatchDatePicker("calendar-change",e,i,n)},handelPanelChange:function(e){var n=this.panel;this.panel=e,this.dispatchDatePicker("panel-change",e,n)},handleSelectYear:function(e){if(this.type==="year"){var n=this.getYearCellDate(e);this.emitDate(n,"year")}else if(this.handleCalendarChange(rt(e,this.calendarMonth),"year"),this.handelPanelChange("month"),this.partialUpdate&&this.innerValue.length===1){var i=new Date(this.innerValue[0]);i.setFullYear(e),this.emitDate(i,"year")}},handleSelectMonth:function(e){if(this.type==="month"){var n=this.getMonthCellDate(e);this.emitDate(n,"month")}else if(this.handleCalendarChange(rt(this.calendarYear,e),"month"),this.handelPanelChange("date"),this.partialUpdate&&this.innerValue.length===1){var i=new Date(this.innerValue[0]);i.setFullYear(this.calendarYear),this.emitDate(yr(i,e),"month")}},handleSelectDate:function(e){this.emitDate(e,this.type==="week"?"week":"date")},getMonthCellDate:function(e){return rt(this.calendarYear,e)},getYearCellDate:function(e){return rt(e,0)},getDateClasses:function(e){var n=e.getMonth()!==this.calendarMonth,i=[];e.getTime()===new Date().setHours(0,0,0,0)&&i.push("today"),n&&i.push("not-current-month");var a=this.getStateClass(e);return a==="active"&&n||i.push(a),i.concat(this.getClasses(e,this.innerValue,i.join(" ")))},getMonthClasses:function(e){var n=[];if(this.type!=="month"){this.calendarMonth===e&&n.push("active");var i=this.getMonthCellDate(e);return this.disabledCalendarChanger(i,"month")&&n.push("disabled"),n}var a=this.getMonthCellDate(e);return n.push(this.getStateClass(a)),n.concat(this.getClasses(a,this.innerValue,n.join(" ")))},getYearClasses:function(e){var n=[];if(this.type!=="year"){this.calendarYear===e&&n.push("active");var i=this.getYearCellDate(e);return this.disabledCalendarChanger(i,"year")&&n.push("disabled"),n}var a=this.getYearCellDate(e);return n.push(this.getStateClass(a)),n.concat(this.getClasses(a,this.innerValue,n.join(" ")))},getStateClass:function(e){return this.isDisabled(e)?"disabled":this.innerValue.some(function(n){return n.getTime()===e.getTime()})?"active":""}
960,getWeekState:function(e){if(this.type!=="week")return"";var n=e[0].getTime(),i=e[6].getTime(),a=this.innerValue.some(function(r){var o=r.getTime();return o>=n&&o<=i});return a?"".concat(this.prefixClass,"-active-week"):""}},render:function(){var e=arguments[0],n=this.panel,i=this.innerCalendar;return n==="year"?e(xf,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:i,getCellClasses:this.getYearClasses,getYearPanel:this.getYearPanel},on:{select:this.handleSelectYear,changecalendar:this.handleCalendarChange}}):n==="month"?e(mf,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:i,getCellClasses:this.getMonthClasses},on:{select:this.handleSelectMonth,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}}):e(uf,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:i,getCellClasses:this.getDateClasses,getRowClasses:this.getWeekState,titleFormat:this.titleFormat,showWeekNumber:typeof this.showWeekNumber=="boolean"?this.showWeekNumber:this.type==="week"},class:kt({},"".concat(this.prefixClass,"-calendar-week-mode"),this.type==="week"),on:{select:this.handleSelectDate,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}})}},on={name:"CalendarRange",components:{CalendarPanel:St},provide:function(){return{onDateMouseEnter:this.onDateMouseEnter,onDateMouseLeave:this.onDateMouseLeave}},inject:{prefixClass:{default:"mx"}},props:ce({},St.props),data:function(){return{innerValue:[],calendars:[],hoveredValue:null}},computed:{calendarMinDiff:function(){var e={date:1,month:12,year:120};return e[this.type]||e.date},calendarMaxDiff:function(){return 1/0},defaultValues:function(){return Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue]}},watch:{value:{immediate:!0,handler:function(){var e=this;this.innerValue=_i(this.value)?this.value:[new Date(NaN),new Date(NaN)];var n=this.innerValue.map(function(i,a){return br(Nt(i,e.defaultValues[a]))});this.updateCalendars(n)}}},methods:{handleSelect:function(e,n){var i=an(this.innerValue,2),a=i[0],r=i[1];st(a)&&!st(r)?(a.getTime()>e.getTime()?this.innerValue=[e,a]:this.innerValue=[a,e],this.emitDate(this.innerValue,n)):this.innerValue=[e,new Date(NaN)]},onDateMouseEnter:function(e){this.hoveredValue=e},onDateMouseLeave:function(){this.hoveredValue=null},emitDate:function(e,n){this.$emit("select",e,n)},updateStartCalendar:function(e){this.updateCalendars([e,this.calendars[1]],1)},updateEndCalendar:function(e){this.updateCalendars([this.calendars[0],e],0)},updateCalendars:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,i=this.getCalendarGap(e);if(i){var a=new Date(e[n]);a.setMonth(a.getMonth()+(n===0?-i:i)),e[n]=a}this.calendars=e},getCalendarGap:function(e){var n=an(e,2),i=n[0],a=n[1],r=a.getFullYear()-i.getFullYear(),o=a.getMonth()-i.getMonth(),l=r*12+o,u=this.calendarMinDiff,s=this.calendarMaxDiff;return l<u?u-l:l>s?s-l:0},getRangeClasses:function(e,n,i){var a=[].concat(this.getClasses(e,n,i));if(/disabled|active/.test(i))return a;var r=function(o,l){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(y){return y.getTime()},s=u(o),h=l.map(u),c=an(h,2),d=c[0],f=c[1];if(d>f){var v=[f,d];d=v[0],f=v[1]}return s>d&&s<f};return n.length===2&&r(e,n)?a.concat("in-range"):n.length===1&&this.hoveredValue&&r(e,[n[0],this.hoveredValue])?a.concat("hover-in-range"):a}},render:function(){var e=this,n=arguments[0],i=this.calendars.map(function(r,o){var l=ce({},e.$props,{calendar:r,value:e.innerValue,defaultValue:e.defaultValues[o],getClasses:e.getRangeClasses,partialUpdate:!1}),u={select:e.handleSelect,"update:calendar":o===0?e.updateStartCalendar:e.updateEndCalendar};return n("calendar-panel",{props:ce({},l),on:ce({},u)})}),a=this.prefixClass;return n("div",{class:"".concat(a,"-range-wrapper")},[i])}},On;function _f(){if(typeof window>"u")return 0;if(On!==void 0)return On;var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var n=document.createElement("div");return n.style.width="100%",e.appendChild(n),On=e.offsetWidth-n.offsetWidth,e.parentNode.removeChild(e),On}var Cf={inject:{prefixClass:{default:"mx"}},data:function(){return{scrollbarWidth:0,thumbTop:"",thumbHeight:""}},created:function(){this.scrollbarWidth=_f(),document.addEventListener("mouseup",this.handleDragend)},beforeDestroy:function(){document.addEventListener("mouseup",this.handleDragend)},mounted:function(){this.$nextTick(this.getThumbSize)},methods:{getThumbSize:function(){var e=this.$refs.wrap;if(e){var n=e.clientHeight*100/e.scrollHeight;
960this.thumbHeight=n<100?"".concat(n,"%"):""}},handleScroll:function(e){var n=e.currentTarget,i=n.scrollHeight,a=n.scrollTop;this.thumbTop="".concat(a*100/i,"%")},handleDragstart:function(e){e.stopImmediatePropagation(),this._draggable=!0;var n=this.$refs.thumb.offsetTop;this._prevY=e.clientY-n,document.addEventListener("mousemove",this.handleDraging)},handleDraging:function(e){if(this._draggable){var n=e.clientY,i=this.$refs.wrap,a=i.scrollHeight,r=i.clientHeight,o=n-this._prevY,l=o*a/r;i.scrollTop=l}},handleDragend:function(){this._draggable&&(this._draggable=!1,document.removeEventListener("mousemove",this.handleDraging))}}},kf=Cf,Sf=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{class:e.prefixClass+"-scrollbar",style:{position:"relative",overflow:"hidden"}},[i("div",{ref:"wrap",class:e.prefixClass+"-scrollbar-wrap",style:{marginRight:"-"+e.scrollbarWidth+"px"},on:{scroll:e.handleScroll}},[e._t("default")],2),e._v(" "),i("div",{class:e.prefixClass+"-scrollbar-track"},[i("div",{ref:"thumb",class:e.prefixClass+"-scrollbar-thumb",style:{height:e.thumbHeight,top:e.thumbTop},on:{mousedown:e.handleDragstart}})])])},Df=[],Af=void 0,fs=ze({render:Sf,staticRenderFns:Df},Af,kf),qi=function(e){return e=parseInt(e,10),e<10?"0".concat(e):"".concat(e)},Ki=function(e,n,i){if(Array.isArray(i))return i.filter(function(o){return o>=0&&o<e});n<=0&&(n=1);for(var a=[],r=0;r<e;r+=n)a.push(r);return a},Ef=function e(n,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(a<=0){requestAnimationFrame(function(){n.scrollTop=i});return}var r=i-n.scrollTop,o=r/a*10;requestAnimationFrame(function(){var l=n.scrollTop+o;if(l>=i){n.scrollTop=i;return}n.scrollTop=l,e(n,i,a-10)})},jf={name:"ListColumns",components:{ScrollbarVertical:fs},inject:{prefixClass:{default:"mx"}},props:{date:Date,scrollDuration:{type:Number,default:100},getClasses:{type:Function,default:function(){return[]}},hourOptions:Array,minuteOptions:Array,secondOptions:Array,showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1},use12h:{type:Boolean,default:!1}},computed:{columns:function(){var e=[];return this.showHour&&e.push({type:"hour",list:this.getHoursList()}),this.showMinute&&e.push({type:"minute",list:this.getMinutesList()}),this.showSecond&&e.push({type:"second",list:this.getSecondsList()}),this.use12h&&e.push({type:"ampm",list:this.getAMPMList()}),e.filter(function(n){return n.list.length>0})}},watch:{date:{handler:function(){var e=this;this.$nextTick(function(){e.scrollToSelected(e.scrollDuration)})}}},mounted:function(){this.scrollToSelected(0)},methods:{getHoursList:function(){var e=this;return Ki(this.use12h?12:24,this.hourStep,this.hourOptions).map(function(n){var i=new Date(e.date),a=qi(n);e.use12h&&(n===0&&(a="12"),i.getHours()>=12&&(n+=12));var r=i.setHours(n);return{value:r,text:a}})},getMinutesList:function(){var e=this;return Ki(60,this.minuteStep,this.minuteOptions).map(function(n){var i=new Date(e.date).setMinutes(n);return{value:i,text:qi(n)}})},getSecondsList:function(){var e=this;return Ki(60,this.secondStep,this.secondOptions).map(function(n){var i=new Date(e.date).setSeconds(n);return{value:i,text:qi(n)}})},getAMPMList:function(){var e=this;return["AM","PM"].map(function(n,i){var a=new Date(e.date),r=a.setHours(a.getHours()%12+i*12);return{text:n,value:r}})},scrollToSelected:function(e){for(var n=this.$el.querySelectorAll(".active"),i=0;i<n.length;i++){var a=n[i],r=Ci(a,this.$el);if(r){var o=a.offsetTop;Ef(r,o,e)}}},handleSelect:function(e){var n=e.target,i=e.currentTarget;if(n.tagName.toUpperCase()==="LI"){var a=i.getAttribute("data-type"),r=parseInt(i.getAttribute("data-index"),10),o=parseInt(n.getAttribute("data-index"),10),l=this.columns[r].list[o].value;this.$emit("select",l,a)}}}},Of=jf,Tf=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{class:e.prefixClass+"-time-columns"},e._l(e.columns,function(a,r){return i("scrollbar-vertical",{key:r,class:e.prefixClass+"-time-column"},[i("ul",{class:e.prefixClass+"-time-list",attrs:{"data-type":a.type,"data-index":r},on:{click:e.handleSelect}},e._l(a.list,function(o,l){return i("li",{key:o.value,class:[e.prefixClass+"-time-item",e.getClasses(o.value,a.type)],attrs:{"data-index":l}},[e._v(`
961        `+e._s(o.text)+`
962      `)])}),0)])}),1)},Lf=[],Mf=void 0,Pf=ze({render:Tf,staticRenderFns:Lf},Mf,Of);function Gi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=e.split(":");if(n.length>=2){var i=parseInt(n[0],10),a=parseInt(n[1],10);return{hours:i,minutes:a}}return null}var Ff=function(e,n){e&&(e.scrollTop=n)},If={name:"ListOptions",components:{ScrollbarVertical:fs},inject:{getLocale:{default:function(){return Rt}},prefixClass:{default:"mx"}},props:{date:Date,options:{type:[Object,Function],default:function(){return[]}},format:{type:String,default:"HH:mm:ss"},getClasses:{type:Function,default:function(){return[]}}},computed:{list:function(){var e=[],n=this.options;if(typeof n=="function")return n()||[];var i=Gi(n.start),a=Gi(n.end),r=Gi(n.step),o=n.format||this.format;if(i&&a&&r)for(var l=i.minutes+i.hours*60,u=a.minutes+a.hours*60,s=r.minutes+r.hours*60,h=Math.floor((u-l)/s),c=0;c<=h;c++){var d=l+c*s,f=Math.floor(d/60),v=d%60,y=new Date(this.date).setHours(f,v,0);e.push({value:y,text:this.formatDate(y,o)})}return e}}
962,mounted:function(){this.scrollToSelected()},methods:{formatDate:function(e,n){return xi(e,n,{locale:this.getLocale().formatLocale})},scrollToSelected:function(){var e=this.$el.querySelector(".active");if(e){var n=Ci(e,this.$el);if(n){var i=e.offsetTop;Ff(n,i)}}},handleSelect:function(e){this.$emit("select",e,"time")}}},$f=If,Bf=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("scrollbar-vertical",e._l(e.list,function(a){return i("div",{key:a.value,class:[e.prefixClass+"-time-option",e.getClasses(a.value)],on:{click:function(r){return e.handleSelect(a.value)}}},[e._v(`
963    `+e._s(a.text)+`
964  `)])}),0)},Nf=[],zf=void 0,Vf=ze({render:Bf,staticRenderFns:Nf},zf,$f),Rf={name:"TimePanel",components:{ListColumns:Pf,ListOptions:Vf},inject:{getLocale:{default:function(){return Rt}},prefixClass:{default:"mx"}},props:{value:{},defaultValue:{default:function(){var e=new Date;return e.setHours(0,0,0,0),e}},format:{default:"HH:mm:ss"},timeTitleFormat:{type:String,default:"YYYY-MM-DD"},showTimeHeader:{type:Boolean,default:!1},disabledTime:{type:Function,default:function(){return!1}},timePickerOptions:{type:[Object,Function],default:function(){return null}},hourOptions:Array,minuteOptions:Array,secondOptions:Array,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1},showHour:{type:Boolean,default:void 0},showMinute:{type:Boolean,default:void 0},showSecond:{type:Boolean,default:void 0},use12h:{type:Boolean,default:void 0},scrollDuration:{type:Number,default:100}},data:function(){return{innerValue:Nt(this.value,this.defaultValue)}},computed:{title:function(){var e=this.timeTitleFormat,n=new Date(this.innerValue);return this.formatDate(n,e)},innerForamt:function(){return typeof this.format=="string"?this.format:"HH:mm:ss"},ShowHourMinuteSecondAMPM:function(){var e=this,n=this.innerForamt,i={showHour:/[HhKk]/.test(n),showMinute:/m/.test(n),showSecond:/s/.test(n),use12h:/a/i.test(n)},a={};
964return Object.keys(i).forEach(function(r){a[r]=typeof e[r]=="boolean"?e[r]:i[r]}),a}},watch:{value:{immediate:!0,handler:function(){this.innerValue=Nt(this.value,this.defaultValue)}}},methods:{formatDate:function(e,n){return xi(e,n,{locale:this.getLocale().formatLocale})},isDisabledTime:function(e){return this.disabledTime(new Date(e))},isDisabledHour:function(e){var n=new Date(e);return this.isDisabledTime(n)&&this.isDisabledTime(n.setMinutes(0,0,0))&&this.isDisabledTime(n.setMinutes(59,59,999))},isDisabledMinute:function(e){var n=new Date(e);return this.isDisabledTime(n)&&this.isDisabledTime(n.setSeconds(0,0))&&this.isDisabledTime(n.setSeconds(59,999))},isDisabledAMPM:function(e){var n=new Date(e),i=n.getHours()<12?0:12,a=i+11;return this.isDisabledTime(n)&&this.isDisabledTime(n.setHours(i,0,0,0))&&this.isDisabledTime(n.setHours(a,59,59,999))},isDisabled:function(e,n){return n==="hour"?this.isDisabledHour(e):n==="minute"?this.isDisabledMinute(e):n==="ampm"?this.isDisabledAMPM(e):this.isDisabledTime(e)},handleSelect:function(e,n){var i=new Date(e);this.isDisabled(e,n)||(this.innerValue=i,this.isDisabledTime(i)||this.$emit("select",i,n))},handleClickTitle:function(){this.$emit("clicktitle")},getClasses:function(e,n){var i=new Date(e);return this.isDisabled(e,n)?"disabled":i.getTime()===this.innerValue.getTime()?"active":""}}},Hf=Rf,Uf=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{class:e.prefixClass+"-time"},[e.showTimeHeader?i("div",{class:e.prefixClass+"-time-header"},[i("button",{class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-time-header-title",attrs:{type:"button"},on:{click:e.handleClickTitle}},[e._v(`
965      `+e._s(e.title)+`
966    `)])]):e._e(),e._v(" "),i("div",{class:e.prefixClass+"-time-content"},[e.timePickerOptions?i("list-options",{attrs:{date:e.innerValue,"get-classes":e.getClasses,options:e.timePickerOptions,format:e.innerForamt},on:{select:e.handleSelect}}):i("list-columns",e._b({attrs:{date:e.innerValue,"get-classes":e.getClasses,"hour-options":e.hourOptions,"minute-options":e.minuteOptions,"second-options":e.secondOptions,"hour-step":e.hourStep,"minute-step":e.minuteStep,"second-step":e.secondStep,"scroll-duration":e.scrollDuration},on:{select:e.handleSelect}},"list-columns",e.ShowHourMinuteSecondAMPM,!1))],1)])},Yf=[],Wf=void 0,mt=ze({render:Uf,staticRenderFns:Yf},Wf,Hf),sn={name:"TimeRange",inject:{prefixClass:{default:"mx"}},props:ce({},mt.props),data:function(){return{startValue:new Date(NaN),endValue:new Date(NaN)}},watch:{value:{immediate:!0,handler:function(){if(_i(this.value)){var e=an(this.value,2),n=e[0],i=e[1];this.startValue=n,this.endValue=i}else this.startValue=new Date(NaN),this.endValue=new Date(NaN)}}},methods:{emitChange:function(e,n){var i=[this.startValue,this.endValue];this.$emit("select",i,e==="time"?"time-range":e,n)},handleSelectStart:function(e,n){this.startValue=e,this.endValue.getTime()>=e.getTime()||(this.endValue=e),this.emitChange(n,0)},handleSelectEnd:function(e,n){this.endValue=e,this.startValue.getTime()<=e.getTime()||(this.startValue=e),this.emitChange(n,1)},disabledStartTime:function(e){return this.disabledTime(e,0)},disabledEndTime:function(e){return e.getTime()<this.startValue.getTime()||this.disabledTime(e,1)}},render:function(){var e=arguments[0],n=Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue],i=this.prefixClass;return e("div",{class:"".concat(i,"-range-wrapper")},[e(mt,{props:ce({},ce({},this.$props,{value:this.startValue,defaultValue:n[0],disabledTime:this.disabledStartTime})),on:ce({},ce({},this.$listeners,{select:this.handleSelectStart}))}),e(mt,{props:ce({},ce({},this.$props,{value:this.endValue,defaultValue:n[1],disabledTime:this.disabledEndTime})),on:ce({},ce({},this.$listeners,{select:this.handleSelectEnd}))})])}},Ur={name:"DatetimePanel",inject:{prefixClass:{default:"mx"}},emits:["select","update:show-time-panel"],props:ce({},St.props,{},mt.props,{showTimePanel:{type:Boolean,default:void 0}}),data:function(){return{defaultTimeVisible:!1,currentValue:this.value}},computed:{timeVisible:function(){return typeof this.showTimePanel=="boolean"?this.showTimePanel:this.defaultTimeVisible}},watch:{value:function(e){this.currentValue=e}},methods:{closeTimePanel:function(){this.defaultTimeVisible=!1,this.$emit("update:show-time-panel",!1)},openTimePanel:function(){this.defaultTimeVisible=!0,this.$emit("update:show-time-panel",!0)},emitDate:function(e,n){this.$emit("select",e,n)}
966,handleSelect:function(e,n){n==="date"&&this.openTimePanel();var i=di(e,Nt(this.value,this.defaultValue));if(this.disabledTime(new Date(i))&&(i=di(e,this.defaultValue),this.disabledTime(new Date(i)))){this.currentValue=i;return}this.emitDate(i,n)}},render:function(){var e=arguments[0],n={props:ce({},Vt(this.$props,Object.keys(St.props)),{type:"date",value:this.currentValue}),on:{select:this.handleSelect}},i={props:ce({},Vt(this.$props,Object.keys(mt.props)),{showTimeHeader:!0,value:this.currentValue}),on:{select:this.emitDate,clicktitle:this.closeTimePanel}},a=this.prefixClass;return e("div",[e(St,fn([{},n])),this.timeVisible&&e(mt,fn([{class:"".concat(a,"-calendar-time")},i]))])}},ms={name:"DatetimeRange",inject:{prefixClass:{default:"mx"}},emits:["select","update:show-time-panel"],props:ce({},on.props,{},sn.props,{showTimePanel:{type:Boolean,default:void 0}}),data:function(){return{defaultTimeVisible:!1,currentValue:this.value}},computed:{timeVisible:function(){return typeof this.showTimePanel=="boolean"?this.showTimePanel:this.defaultTimeVisible}},watch:{value:function(e){this.currentValue=e}},methods:{closeTimePanel:function(){this.defaultTimeVisible=!1,this.$emit("update:show-time-panel",!1)},openTimePanel:function(){this.defaultTimeVisible=!0,this.$emit("update:show-time-panel",!0)},emitDate:function(e,n){this.$emit("select",e,n)},handleSelect:function(e,n){var i=this;n==="date"&&this.openTimePanel();var a=Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue],r=e.map(function(o,l){var u=_i(i.value)?i.value[l]:a[l];return di(o,u)});if(r[1].getTime()<r[0].getTime()&&(r=[r[0],r[0]]),r.some(this.disabledTime)&&(r=e.map(function(o,l){return di(o,a[l])}),r.some(this.disabledTime))){this.currentValue=r;return}this.emitDate(r,n)}},render:function(){var e=arguments[0],n={props:ce({},Vt(this.$props,Object.keys(on.props)),{type:"date",value:this.currentValue}),on:{select:this.handleSelect}},i={props:ce({},Vt(this.$props,Object.keys(sn.props)),{value:this.currentValue,showTimeHeader:!0}),on:{select:this.emitDate,clicktitle:this.closeTimePanel}},a=this.prefixClass;return e("div",[e(on,fn([{},n])),this.timeVisible&&e(sn,fn([{class:"".concat(a,"-calendar-time")},i]))])}},qf={default:St,time:mt,datetime:Ur},Kf={default:on,time:sn,datetime:ms},_t={name:"DatePicker",provide:function(){var e=this;return{getLocale:function(){return e.locale},getWeek:this.getWeek,prefixClass:this.prefixClass,dispatchDatePicker:this.$emit.bind(this)}},props:ce({},Ur.props,{value:{},valueType:{type:String,default:"date"},type:{type:String,default:"date"},format:{type:String},formatter:{type:Object},range:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},rangeSeparator:{type:String},lang:{type:[String,Object]},placeholder:{type:String,default:""},editable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},prefixClass:{type:String,default:"mx"},inputClass:{},inputAttr:{type:Object,default:function(){return{}}},appendToBody:{type:Boolean,default:!0},open:{type:Boolean,default:void 0},popupClass:{},popupStyle:{type:Object,default:function(){return{}}},inline:{type:Boolean,default:!1},confirm:{type:Boolean,default:!1},confirmText:{type:String,default:"OK"},renderInputText:{type:Function},shortcuts:{type:Array,validator:function(e){return Array.isArray(e)&&e.every(function(n){return Ge(n)&&typeof n.text=="string"&&typeof n.onClick=="function"})},default:function(){return[]}}}),data:function(){return{currentValue:null,userInput:null,defaultOpen:!1,mouseInInput:!1}},computed:{popupVisible:function(){return!this.disabled&&(typeof this.open=="boolean"?this.open:this.defaultOpen)},innerRangeSeparator:function(){return this.rangeSeparator||(this.multiple?",":" ~ ")},innerFormat:function(){var e={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",year:"YYYY",month:"YYYY-MM",time:"HH:mm:ss",week:"w"};return this.format||e[this.type]||e.date},innerValue:function(){var e=this.value;return this.validMultipleType?(e=Array.isArray(e)?e:[],e.map(this.value2date)):this.range?(e=Array.isArray(e)?e.slice(0,2):[null,null],e.map(this.value2date)):this.value2date(e)},text:function(){var e=this;return this.userInput!==null?this.userInput:typeof this.renderInputText=="function"?this.renderInputText(this.innerValue):this.isValidValue(this.innerValue)?Array.isArray(this.innerValue)?this.innerValue.map(function(n){return e.formatDate(n)}).join(this.innerRangeSeparator):this.formatDate(this.innerValue):""},showClearIcon:function(){return!this.disabled&&this.clearable&&this.text&&this.mouseInInput},locale:function(){return Ge(this.lang)?ds(Rt(),this.lang):Rt(this.lang)},validMultipleType:function(){var e=["date","month","year"];return this.multiple&&!this.range&&e.indexOf(this.type)!==-1}},watch:{innerValue:{immediate:!0,handler:function(e){this.currentValue=e}},popupVisible:{handler:function(e){e&&(this.currentValue=this.innerValue)}}},created:function(){In(this.format)==="object"&&console.warn("[vue2-datepicker]: The prop `format` don't support Object any more. You can use the new prop `formatter` to replace it")},methods:{handleMouseEnter:function(){this.mouseInInput=!0},handleMouseLeave:function(){this.mouseInInput=!1},handleClickOutSide:function(e){var n=e.target;this.$el.contains(n)||this.closePopup()},getFormatter:function(e){return Ge(this.formatter)&&this.formatter[e]||Ge(this.format)&&this.format[e]},getWeek:function(e,n){return typeof this.getFormatter("getWeek")=="function"?this.getFormatter("getWeek")(e,n):Vr(e,n)},parseDate:function(e,n){if(n=n||this.innerFormat,typeof this.getFormatter("parse")=="function")return this.getFormatter("parse")(e,n);var i=new Date;return cp(e,n,{locale:this.locale.formatLocale,backupDate:i})},formatDate:function(e,n){return n=n||this.innerFormat,typeof this.getFormatter("stringify")=="function"?this.getFormatter("stringify")(e,n):xi(e,n,{locale:this.locale.formatLocale})},value2date:function(e){switch(this.valueType){case"date":return e instanceof Date?new Date(e.getTime()):new Date(NaN);case"timestamp":return typeof e=="number"?new Date(e):new Date(NaN);case"format":return typeof e=="string"?this.parseDate(e):new Date(NaN);default:return typeof e=="string"?this.parseDate(e,this.valueType):new Date(NaN)}},date2value:function(e){if(!st(e))return null;switch(this.valueType){case"date":return e;case"timestamp":return e.getTime();case"format":return this.formatDate(e);default:return this.formatDate(e,this.valueType)}},emitValue:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;this.userInput=null;var a=Array.isArray(e)?e.map(this.date2value):this.date2value(e);return this.$emit("input",a),this.$emit("change",a,n),i&&this.closePopup(),a},isValidValue:function(e){return this.validMultipleType?_p(e):this.range?_i(e):st(e)},isValidValueAndNotDisabled:function(e){if(!this.isValidValue(e))return!1;var n=typeof this.disabledDate=="function"?this.disabledDate:function(){return!1},i=typeof this.disabledTime=="function"?this.disabledTime:function(){return!1};return Array.isArray(e)||(e=[e]),e.every(function(a){return!n(a)&&!i(a)})},handleMultipleDates:function(e,n){if(this.validMultipleType&&n){var i=n.filter(function(a){return a.getTime()!==e.getTime()});return i.length===n.length&&i.push(e),i}return e},handleSelectDate:function(e,n,i){e=this.handleMultipleDates(e,i),this.confirm?this.currentValue=e:this.emitValue(e,n,!this.validMultipleType&&(n===this.type||n==="time"))},clear:function(){this.emitValue(this.range?[null,null]:null),this.$emit("clear")},handleClear:function(e){e.stopPropagation(),this.clear()},handleConfirmDate:function(){var e=this.emitValue(this.currentValue);this.$emit("confirm",e)},handleSelectShortcut:function(e){var n=e.currentTarget.getAttribute("data-index"),i=this.shortcuts[parseInt(n,10)];if(Ge(i)&&typeof i.onClick=="function"){var a=i.onClick(this);a&&this.emitValue(a)}},openPopup:function(e){this.popupVisible||this.disabled||(this.defaultOpen=!0,this.$emit("open",e),this.$emit("update:open",!0))},closePopup:function(){this.popupVisible&&(this.defaultOpen=!1,this.$emit("close"),this.$emit("update:open",!1))},blur:function(){this.$refs.input&&this.$refs.input.blur()},focus:function(){this.$refs.input&&this.$refs.input.focus()},handleInputChange:function(){var e=this;if(!(!this.editable||this.userInput===null)){var n=this.userInput.trim();if(this.userInput=null,n===""){this.clear();return}var i;if(this.validMultipleType)i=n.split(this.innerRangeSeparator).map(function(r){return e.parseDate(r.trim())});else if(this.range){var a=n.split(this.innerRangeSeparator);
966a.length!==2&&(a=n.split(this.innerRangeSeparator.trim())),i=a.map(function(r){return e.parseDate(r.trim())})}else i=this.parseDate(n);this.isValidValueAndNotDisabled(i)?(this.emitValue(i),this.blur()):this.$emit("input-error",n)}},handleInputInput:function(e){this.userInput=typeof e=="string"?e:e.target.value},handleInputKeydown:function(e){var n=e.keyCode;n===9?this.closePopup():n===13&&this.handleInputChange()},handleInputBlur:function(e){this.$emit("blur",e)},handleInputFocus:function(e){this.openPopup(e),this.$emit("focus",e)},hasSlot:function(e){return!!(this.$slots[e]||this.$scopedSlots[e])},renderSlot:function(e,n,i){var a=this.$scopedSlots[e];return a?a(i)||n:this.$slots[e]||n},renderInput:function(){var e=this.$createElement,n=this.prefixClass,i=ce({name:"date",type:"text",autocomplete:"off",value:this.text,class:this.inputClass||"".concat(this.prefixClass,"-input"),readonly:!this.editable,disabled:this.disabled,placeholder:this.placeholder},this.inputAttr),a=i.value,r=i.class,o=dp(i,["value","class"]),l={keydown:this.handleInputKeydown,focus:this.handleInputFocus,blur:this.handleInputBlur,input:this.handleInputInput,change:this.handleInputChange},u=this.renderSlot("input",e("input",{domProps:{value:a},class:r,attrs:ce({},o),on:ce({},l),ref:"input"}),{props:i,events:l}),s=this.type==="time"?e(qp):e(Hp);return e("div",{class:"".concat(n,"-input-wrapper"),on:{mouseenter:this.handleMouseEnter,mouseleave:this.handleMouseLeave,click:this.openPopup},ref:"inputWrapper"},[u,this.showClearIcon?e("i",{class:"".concat(n,"-icon-clear"),on:{click:this.handleClear}},[this.renderSlot("icon-clear",e(Zp))]):e("i",{class:"".concat(n,"-icon-calendar")},[this.renderSlot("icon-calendar",s)])])},renderContent:function(){var e=this.$createElement,n=this.range?Kf:qf,i=n[this.type]||n.default,a=ce({},Vt(this.$props,Object.keys(i.props)),{value:this.currentValue}),r=ce({},Vt(this.$listeners,i.emits||[]),{select:this.handleSelectDate}),o=e(i,fn([{},{props:a,on:r,ref:"picker"}]));return e("div",{class:"".concat(this.prefixClass,"-datepicker-body")},[this.renderSlot("content",o,{value:this.currentValue,emit:this.handleSelectDate})])},renderSidebar:function(){var e=this,n=this.$createElement,i=this.prefixClass;return n("div",{class:"".concat(i,"-datepicker-sidebar")},[this.renderSlot("sidebar",null,{value:this.currentValue,emit:this.handleSelectDate}),this.shortcuts.map(function(a,r){return n("button",{key:r,attrs:{"data-index":r,type:"button"},class:"".concat(i,"-btn ").concat(i,"-btn-text ").concat(i,"-btn-shortcut"),on:{click:e.handleSelectShortcut}},[a.text])})])},renderHeader:function(){var e=this.$createElement;return e("div",{class:"".concat(this.prefixClass,"-datepicker-header")},[this.renderSlot("header",null,{value:this.currentValue,emit:this.handleSelectDate})])},renderFooter:function(){var e=this.$createElement,n=this.prefixClass;return e("div",{class:"".concat(n,"-datepicker-footer")},[this.renderSlot("footer",null,{value:this.currentValue,emit:this.handleSelectDate}),this.confirm?e("button",{attrs:{type:"button"},class:"".concat(n,"-btn ").concat(n,"-datepicker-btn-confirm"),on:{click:this.handleConfirmDate}},[this.confirmText]):null])}},render:function(){var e,n=arguments[0],i=this.prefixClass,a=this.inline,r=this.disabled,o=this.hasSlot("sidebar")||this.shortcuts.length?this.renderSidebar():null,l=n("div",{class:"".concat(i,"-datepicker-content")},[this.hasSlot("header")?this.renderHeader():null,this.renderContent(),this.hasSlot("footer")||this.confirm?this.renderFooter():null]);return n("div",{class:(e={},kt(e,"".concat(i,"-datepicker"),!0),kt(e,"".concat(i,"-datepicker-range"),this.range),kt(e,"".concat(i,"-datepicker-inline"),a),kt(e,"disabled",r),e)},[a?null:this.renderInput(),a?n("div",{class:"".concat(i,"-datepicker-main")},[o,l]):n(Np,{ref:"popup",class:this.popupClass,style:this.popupStyle,attrs:{visible:this.popupVisible,appendToBody:this.appendToBody},on:{clickoutside:this.handleClickOutSide}},[o,l])])}};_t.locale=ps,_t.install=function(e){e.component(_t.name,_t)},typeof window<"u"&&window.Vue&&_t.install(window.Vue),vr(_t,{CalendarPanel:St,CalendarRange:on,TimePanel:mt,TimeRange:sn,DatetimePanel:Ur,DatetimeRange:ms}),te(Bl);function Gf(e){return e.slice(e.indexOf("/")+1).replaceAll("/"," - ").replaceAll("_"," ")}function Xf(){return Intl.supportedValuesOf("timeZone").filter(e=>!e.startsWith("Etc/")).map(e=>({timezoneId:e,label:Gf(e)})).sort((e,n)=>e.timezoneId.localeCompare(n.timezoneId))}
966const Zf=po({__name:"NcTimezonePicker",props:{additionalTimezones:{default:()=>[]},value:{default:void 0},modelValue:{default:"floating"},uid:{default:Uo()}},emits:["input","update:modelValue","update:model-value"],setup(e){const n=e,i=jt("value","input"),a=ot(()=>n.additionalTimezones.map(({timezoneId:l,label:u})=>({timezoneId:l,label:u}))),r=ot(()=>{const l=Xf();return l.unshift(...a.value),l});function o(l,u,s){const h=s.trim().split(/\s+/),c=Object.values(l);return h.every(d=>c.some(f=>f.toLowerCase().includes(d.toLowerCase())))}return{__sfc:!0,props:n,model:i,formattedAdditionalTimezones:a,options:r,filterBy:o,t:V,NcSelect:zr}}});var Jf=function(){var e=this,n=e._self._c,i=e._self._setupProxy;return n(i.NcSelect,{attrs:{"aria-label-combobox":i.t("Search for time zone"),clearable:!1,"filter-by":i.filterBy,multiple:!1,options:i.options,placeholder:i.t("Type to search time zone"),uid:e.uid,reduce:a=>a.timezoneId,label:"label"},model:{value:i.model,callback:function(a){i.model=a},expression:"model"}})},Qf=[],e0=xe(Zf,Jf,Qf,!1,null,null);const t0=e0.exports,n0={name:"CalendarBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var i0=function(){var e=this,n=e._self._c;return n("span",e._b({staticClass:"material-design-icon calendar-blank-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1"}},[e.title?n("title",[e._v(e._s(e.title))]):e._e()])])])},r0=[],a0=xe(n0,i0,r0,!1,null,null);const o0=a0.exports,s0={name:"WebIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var l0=function(){var e=this,n=e._self._c;return n("span",e._b({staticClass:"material-design-icon web-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,
96610.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?n("title",[e._v(e._s(e.title))]):e._e()])])])},u0=[],c0=xe(s0,l0,u0,!1,null,null);const h0=c0.exports;te(Nl);const Xa={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD H:mm:ss",year:"YYYY",month:"YYYY-MM",time:"H:mm:ss",week:"w"},d0={name:"NcDateTimePicker",components:{CalendarBlank:o0,DatePicker:_t,NcPopover:_o,NcTimezonePicker:t0,Web:h0},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{clearable:{type:Boolean,default:!1},minuteStep:{type:Number,default:10},type:{type:String,default:"date",validator:e=>["date","time","datetime","week","month","year","date-range","time-range","datetime-range"].includes(e)},format:{type:[String,Function],default:null},formatter:{type:Object,default:null},lang:{type:Object,default:null},value:{default:void 0},modelValue:{default:()=>new Date},timezoneId:{type:String,default:"UTC"},showTimezoneSelect:{type:Boolean,default:!1},highlightTimezone:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},showWeekNumber:{type:Boolean,default:!1},placeholder:{type:String,default:null},range:{type:Boolean,default:!1}},emits:["update:value","update:modelValue","update:model-value","update:timezone-id"],setup(){return{model:jt("value","update:value"),timezoneDialogHeaderId:`timezone-dialog-header-${Dt()}`}},data(){return{showTimezonePopover:!1,tzVal:this.timezoneId}},computed:{realType(){return this.type.split("-")[0]},defaultLang(){return{formatLocale:{months:cu(),monthsShort:hu(),weekdays:su(),weekdaysShort:lu(),weekdaysMin:uu(),firstDayOfWeek:ou()},monthFormat:"MMMM"}},defaultPlaceholder(){return this.realType==="time"?V("Pick a time"):this.realType==="month"?V("Pick a month"):this.realType==="year"?V("Pick a year"):this.realType==="week"?V("Pick a week"):this.realType==="date"?V("Pick a date"):V("Pick a date and a time")},internalRange(){return this.range||this.type.endsWith("-range")},internalFormat(){return this.format&&typeof this.format=="string"?this.format:Xa[this.realType]||Xa.date},internalFormatter(){return{getWeek:e=>{const n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()));n.setUTCDate(n.getUTCDate()+4-(n.getUTCDay()||7));const i=new Date(Date.UTC(n.getUTCFullYear(),0,1));return Math.ceil(((n-i)/864e5+1)/7)},...typeof this.format=="function"?{stringify:this.format}:{},...this.formatter??{}}}},methods:{t:V,handleSelectYear(e){const n=this.$refs.datepicker.currentValue;if(n)try{const i=new Date(new Date(n).setFullYear(e));this.$refs.datepicker.selectDate(i)}catch{Ne.error("Invalid value",{value:n,year:e})}},handleSelectMonth(e){const n=this.$refs.datepicker.currentValue;if(n)try{const i=new Date(new Date(n).setMonth(e));this.$refs.datepicker.selectDate(i)}catch{Ne.error("Invalid value",{value:n,month:e})}},toggleTimezonePopover(){this.showTimezoneSelect&&(this.showTimezonePopover=!this.showTimezonePopover)}}};var p0=function(){var e=this,n=e._self._c;return n("DatePicker",e._g(e._b({ref:"datepicker",attrs:{"append-to-body":e.appendToBody,clearable:e.clearable,format:e.internalFormat,formatter:e.internalFormatter,lang:e.lang?e.lang:e.defaultLang,"minute-step":e.minuteStep,placeholder:e.placeholder?e.placeholder:e.defaultPlaceholder,"popup-class":{"show-week-number":e.showWeekNumber},range:e.internalRange,"show-week-number":e.showWeekNumber,type:e.realType,value:e.model},on:{"select-year":e.handleSelectYear,"select-month":e.handleSelectMonth,input:function(i){e.model=i}},scopedSlots:e._u([{key:"icon-calendar",fn:function(){return[e.showTimezoneSelect?n("NcPopover",{attrs:{"popup-role":"dialog",shown:e.showTimezonePopover,"popover-base-class":"timezone-select__popper"},on:{"update:shown":function(i){e.showTimezonePopover=i}},scopedSlots:e._u([{key:"trigger",fn:function({attrs:i}){return[n("button",e._b({staticClass:"datetime-picker-inline-icon",class:{"datetime-picker-inline-icon--highlighted":e.highlightTimezone},on:{mousedown:function(a){return a.stopPropagation(),a.preventDefault(),(()=>{}).apply(null,arguments)}}},"button",i,!1),[n("Web",{attrs:{size:20}})],1)]}}],null,!1,3026992387)},[n("div",{attrs:{role:"dialog","aria-labelledby":e.timezoneDialogHeaderId}},[n("div",{staticClass:"timezone-popover-wrapper__label"},[n("strong",{attrs:{id:e.timezoneDialogHeaderId}},[e._v(" "+e._s(e.t("Please select a time zone:"))+" ")])]),n("NcTimezonePicker",{staticClass:"timezone-popover-wrapper__timezone-select",on:{input:function(i){return e.$emit("update:timezone-id",arguments[0])}},model:{value:e.tzVal,callback:function(i){e.tzVal=i},expression:"tzVal"}}
966)],1)]):n("CalendarBlank",{attrs:{size:20}})]},proxy:!0},e._l(e.$scopedSlots,function(i,a){return{key:a,fn:function(r){return[e._t(a,null,null,r)]}}})],null,!0)},"DatePicker",e.$attrs,!1),e.$listeners))},f0=[],m0=xe(d0,p0,f0,!1,null,"ecb9b537");const vs=m0.exports;mo(vs);const v0=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"}));var wr={exports:{}},g0=wr.exports,Za;function b0(){return Za||(Za=1,function(e,n){(function(i,a){e.exports=a()})(typeof self<"u"?self:g0,function(){return function(){var i={537:function(){typeof window<"u"&&function(){for(var l=0,u=["ms","moz","webkit","o"],s=0;s<u.length&&!window.requestAnimationFrame;++s)window.requestAnimationFrame=window[u[s]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[u[s]+"CancelAnimationFrame"]||window[u[s]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(h,c){var d=new Date().getTime(),f=Math.max(0,16-(d-l)),v=window.setTimeout(function(){h(d+f)},f);return l=d+f,v}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(h){clearTimeout(h)})}()}},a={};function r(l){var u=a[l];if(u!==void 0)return u.exports;var s=a[l]={exports:{}};return i[l](s,s.exports,r),s.exports}r.d=function(l,u){for(var s in u)r.o(u,s)&&!r.o(l,s)&&Object.defineProperty(l,s,{enumerable:!0,get:u[s]})},r.o=function(l,u){return Object.prototype.hasOwnProperty.call(l,u)},r.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var o={};return function(){r.r(o),r.d(o,{Anchors:function(){return j},Category:function(){return Ae},Emoji:function(){return Re},EmojiData:function(){return De},EmojiIndex:function(){return fe},EmojiView:function(){return Te},Picker:function(){return Se},Preview:function(){return k},Search:function(){return $},Skins:function(){return g},frequently:function(){return W},sanitize:function(){return Ve},store:function(){return f},uncompress:function(){return X}});var l,u,s="emoji-mart",h=JSON,c=typeof window<"u"&&"localStorage"in window;function d(p,b){if(u)u(p,b);else{if(!c)return;try{window.localStorage["".concat(s,".").concat(p)]=h.stringify(b)}catch{}}}var f={update:function(p){for(var b in p)d(b,p[b])},set:d,get:function(p){if(l)return l(p);if(c){try{var b=window.localStorage["".concat(s,".").concat(p)]}catch{return}return b?JSON.parse(b):void 0}},setNamespace:function(p){s=p},setHandlers:function(p){p||(p={}),l=p.getter,u=p.setter}};function v(p){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},v(p)}function y(p,b){(b==null||b>p.length)&&(b=p.length);for(var _=0,O=new Array(b);_<b;_++)O[_]=p[_];return O}var x={name:"a",unified:"b",non_qualified:"c",has_img_apple:"d",has_img_google:"e",has_img_twitter:"f",has_img_facebook:"h",keywords:"j",sheet:"k",emoticons:"l",text:"m",short_names:"n",added_in:"o"},C=function(p){var b=[],_=function(O,N){O&&(Array.isArray(O)?O:[O]).forEach(function(z){(N?z.split(/[-|_|\s]+/):[z]).forEach(function(K){K=K.toLowerCase(),b.indexOf(K)==-1&&b.push(K)})})};return _(p.short_names,!0),_(p.name,!0),_(p.keywords,!1),_(p.emoticons,!1),b.join(",")};function E(p){var b,_=function(z,K){var ie=typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(!ie){if(Array.isArray(z)||(ie=function(we,gt){if(we){if(typeof we=="string")return y(we,gt);var We=Object.prototype.toString.call(we).slice(8,-1);return We==="Object"&&we.constructor&&(We=we.constructor.name),We==="Map"||We==="Set"?Array.from(we):We==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(We)?y(we,gt):void 0}}(z))||K){ie&&(z=ie);var ee=0,de=function(){};return{s:de,n:function(){return ee>=z.length?{done:!0}:{done:!1,value:z[ee++]}},e:function(we){throw we},f:de}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
967In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var je,Ot=!0,Tt=!1;return{s:function(){ie=ie.call(z)},n:function(){var we=ie.next();return Ot=we.done,we},e:function(we){Tt=!0,je=we},f:function(){try{Ot||ie.return==null||ie.return()}finally{if(Tt)throw je}}}}(Object.getOwnPropertyNames(p));try{for(_.s();!(b=_.n()).done;){var O=b.value,N=p[O];p[O]=N&&v(N)==="object"?E(N):N}}catch(z){_.e(z)}finally{_.f()}return Object.freeze(p)}var D,M,X=function(p){if(!p.compressed)return p;for(var b in p.compressed=!1,p.emojis){var _=p.emojis[b];for(var O in x)_[O]=_[x[O]],delete _[x[O]];_.short_names||(_.short_names=[]),_.short_names.unshift(b),_.sheet_x=_.sheet[0],_.sheet_y=_.sheet[1],delete _.sheet,_.text||(_.text=""),_.added_in||(_.added_in=6),_.added_in=_.added_in.toFixed(1),_.search=C(_)}return E(p)},U=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart","hankey"],F={};function G(){M=!0,D=f.get("frequently")}var W={add:function(p){M||G();var b=p.id;D||(D=F),D[b]||(D[b]=0),D[b]+=1,f.set("last",b),f.set("frequently",D)},get:function(p){if(M||G(),!D){F={};for(var b=[],_=Math.min(p,U.length),O=0;O<_;O++)F[U[O]]=parseInt((_-O)/4,10)+1,b.push(U[O]);return b}var N=p,z=[];for(var K in D)D.hasOwnProperty(K)&&z.push(K);var ie=z.sort(function(de,je){return D[de]-D[je]}).reverse().slice(0,N),ee=f.get("last");return ee&&ie.indexOf(ee)==-1&&(ie.pop(),ie.push(ee)),ie}},R={activity:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
967<path d="M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"/></svg>',custom:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><g transform="translate(2.000000, 1.000000)"><rect id="Rectangle" x="8" y="0" width="3" height="21" rx="1.5"></rect><rect id="Rectangle" transform="translate(9.843, 10.549) rotate(60) translate(-9.843, -10.549) " x="8.343" y="0.049" width="3" height="21" rx="1.5"></rect><rect id="Rectangle" transform="translate(9.843, 10.549) rotate(-60) translate(-9.843, -10.549) " x="8.343" y="0.049" width="3" height="21" rx="1.5"></rect></g></svg>',flags:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"/></svg>',foods:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"/></svg>',nature:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"/><path d="M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.87
9677 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"/></svg>',objects:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"/><path d="M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"/></svg>',smileys:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"/><path d="M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"/></svg>',people:'<svg xmlns:svg="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24"> <path id="path3814" d="m 3.3591089,21.17726 c 0.172036,0.09385 4.265994,2.29837 8.8144451,2.29837 4.927767,0 8.670894,-2.211883 8.82782,-2.306019 0.113079,-0.06785 0.182268,-0.190051 0.182267,-0.321923 0,-3.03119 -0.929494,-5.804936 -2.617196,-7.810
967712 -1.180603,-1.403134 -2.661918,-2.359516 -4.295699,-2.799791 4.699118,-2.236258 3.102306,-9.28617162 -2.097191,-9.28617162 -5.1994978,0 -6.7963103,7.04991362 -2.097192,9.28617162 -1.6337821,0.440275 -3.1150971,1.396798 -4.2956991,2.799791 -1.687703,2.005776 -2.617196,4.779522 -2.617196,7.810712 1.2e-6,0.137378 0.075039,0.263785 0.195641,0.329572 z M 8.0439319,5.8308783 C 8.0439309,2.151521 12.492107,0.30955811 15.093491,2.9109411 17.694874,5.5123241 15.852911,9.9605006 12.173554,9.9605 9.8938991,9.9579135 8.0465186,8.1105332 8.0439319,5.8308783 Z m -1.688782,7.6894977 c 1.524535,-1.811449 3.5906601,-2.809035 5.8184041,-2.809035 2.227744,0 4.293869,0.997586 5.818404,2.809035 1.533639,1.822571 2.395932,4.339858 2.439152,7.108301 -0.803352,0.434877 -4.141636,2.096112 -8.257556,2.096112 -3.8062921,0 -7.3910861,-1.671043 -8.2573681,-2.104981 0.04505,-2.765017 0.906968,-5.278785 2.438964,-7.099432 z" /> <path id="path3816" d="M 12.173828 0.38867188 C 9.3198513 0.38867187 7.3770988 2.3672285 6.8652344 4.6308594 C 6.4218608 6.5916015 7.1153562 8.7676117 8.9648438 10.126953 C 7.6141249 10.677376 6.3550511 11.480944 5.3496094 12.675781 C 3.5629317 14.799185 2.6015625 17.701475 2.6015625 20.847656 C 2.6015654 21.189861 2.7894276 21.508002 3.0898438 21.671875 C 3.3044068 21.788925 7.4436239 24.039062 12.173828 24.039062 C 17.269918 24.039062 21.083568 21.776786 21.291016 21.652344 C 21.57281 21.483266 21.746097 21.176282 21.746094 20.847656 C 21.746094 17.701475 20.78277 14.799185 18.996094 12.675781 C 17.990455 11.480591 16.733818 10.675362 15.382812 10.125 C 17.231132 8.7655552 17.925675 6.5910701 17.482422 4.6308594 C 16.970557 2.3672285 15.027805 0.38867188 12.173828 0.38867188 z M 12.792969 2.3007812 C 13.466253 2.4161792 14.125113 2.7383941 14.695312 3.3085938 C 15.835712 4.4489931 15.985604 5.9473549 15.46875 7.1953125 C 14.951896 8.4432701 13.786828 9.3984378 12.173828 9.3984375 C 10.197719 9.3961954 8.607711 7.806187 8.6054688 5.8300781 C 8.6054683 4.2170785 9.5606362 3.0520102 10.808594 2.5351562 C 11.432573 2.2767293 12.119685 2.1853833 12.792969 2.3007812 z M 12.173828 11.273438 C 14.233647 11.273438 16.133674 12.185084 17.5625 13.882812 C 18.93069 15.508765 19.698347 17.776969 19.808594 20.283203 C 18.807395 20.800235 15.886157 22.162109 12.173828 22.162109 C 8.7614632 22.162109 5.6245754 20.787069 4.5390625 20.265625 C 4.6525896 17.766717 5.4203315 15.504791 6.7851562 13.882812 C 8.2139827 12.185084 10.11401 11.273438 12.173828 11.273438 z " /> </svg>',places:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"/><path d="M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"/></svg>',recent:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"/><path d="M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"/></svg>',symbols:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.8
96713-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"/></svg>'};function m(p,b,_,O,N,z,K,ie){var ee,de=typeof p=="function"?p.options:p;return b&&(de.render=b,de.staticRenderFns=_,de._compiled=!0),{exports:p,options:de}}var S=m({props:{i18n:{type:Object,required:!0},color:{type:String},categories:{type:Array,required:!0},activeCategory:{type:Object,default:function(){return{}}}},emits:["click"],created:function(){this.svgs=R}},function(){var p=this,b=p._self._c;return b("div",{staticClass:"emoji-mart-anchors",attrs:{role:"tablist"}},p._l(p.categories,function(_){return b("button",{key:_.id,class:{"emoji-mart-anchor":!0,"emoji-mart-anchor-selected":_.id==p.activeCategory.id},style:{color:_.id==p.activeCategory.id?p.color:""},attrs:{role:"tab",type:"button","aria-label":_.name,"aria-selected":_.id==p.activeCategory.id,"data-title":p.i18n.categories[_.id]},on:{click:function(O){return p.$emit("click",_)}}},[b("div",{attrs:{"aria-hidden":"true"},domProps:{innerHTML:p._s(p.svgs[_.id])}}),p._v(" "),b("span",{staticClass:"emoji-mart-anchor-bar",style:{backgroundColor:p.color},attrs:{"aria-hidden":"true"}})])}),0)},[]),j=S.exports;function L(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function Y(p){var b=function(_,O){if(v(_)!="object"||!_)return _;var N=_[Symbol.toPrimitive];if(N!==void 0){var z=N.call(_,"string");if(v(z)!="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(_)}(p);return v(b)=="symbol"?b:b+""}function I(p,b){for(var _=0;_<b.length;_++){var O=b[_];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(p,Y(O.key),O)}}function Z(p,b,_){return b&&I(p.prototype,b),Object.defineProperty(p,"prototype",{writable:!1}),p}var ne=String.fromCodePoint||function(){var p,b,_=[],O=-1,N=arguments.length;if(!N)return"";for(var z="";++O<N;){var K=Number(arguments[O]);if(!isFinite(K)||K<0||K>1114111||Math.floor(K)!=K)throw RangeError("Invalid code point: "+K);K<=65535?_.push(K):(p=55296+((K-=65536)>>10),b=K%1024+56320,_.push(p,b)),(O+1===N||_.length>16384)&&(z+=String.fromCharCode.apply(null,_),_.length=0)}return z};function _e(p){var b=p.split("-").map(function(_){return"0x".concat(_)});return ne.apply(null,b)}function oe(p){return p.reduce(function(b,_){return b.indexOf(_)===-1&&b.push(_),b},[])}function le(p,b){var _=oe(p),O=oe(b);return _.filter(function(N){return O.indexOf(N)>=0})}function ye(p,b){var _={};for(var O in p){var N=p[O],z=N;Object.prototype.hasOwnProperty.call(b,O)&&(z=b[O]),v(z)==="object"&&(z=ye(N,z)),_[O]=z}return _}function Ce(p,b){var _=typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(!_){if(Array.isArray(p)||(_=function(ee,de){if(ee){if(typeof ee=="string")return ve(ee,de);var je=Object.prototype.toString.call(ee).slice(8,-1);return je==="Object"&&ee.constructor&&(je=ee.constructor.name),je==="Map"||je==="Set"?Array.from(ee):je==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(je)?ve(ee,de):void 0}}(p))||b){_&&(p=_);var O=0,N=function(){};return{s:N,n:function(){return O>=p.length?{done:!0}:{done:!1,value:p[O++]}},e:function(ee){throw ee},f:N}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
968In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z,K=!0,ie=!1;return{s:function(){_=_.call(p)},n:function(){var ee=_.next();return K=ee.done,ee},e:function(ee){ie=!0,z=ee},f:function(){try{K||_.return==null||_.return()}finally{if(ie)throw z}}}}function ve(p,b){(b==null||b>p.length)&&(b=p.length);for(var _=0,O=new Array(b);_<b;_++)O[_]=p[_];return O}var pe=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/,he=["1F3FA","1F3FB","1F3FC","1F3FD","1F3FE","1F3FF"],fe=function(){return Z(function p(b){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=_.emojisToShowFilter,N=_.include,z=_.exclude,K=_.custom,ie=_.recent,ee=_.recentLength,de=ee===void 0?20:ee;L(this,p),this._data=X(b),this._emojisFilter=O||null,this._include=N||null,this._exclude=z||null,this._custom=K||[],this._recent=ie||W.get(de),this._emojis={},this._nativeEmojis={},this._emoticons={},this._categories=[],this._recentCategory={id:"recent",name:"Recent",emojis:[]}
968,this._customCategory={id:"custom",name:"Custom",emojis:[]},this._searchIndex={},this.buildIndex(),Object.freeze(this)},[{key:"buildIndex",value:function(){var p=this,b=this._data.categories;if(this._include&&(b=(b=b.filter(function(z){return p._include.includes(z.id)})).sort(function(z,K){var ie=p._include.indexOf(z.id),ee=p._include.indexOf(K.id);return ie<ee?-1:ie>ee?1:0})),b.forEach(function(z){if(p.isCategoryNeeded(z.id)){var K={id:z.id,name:z.name,emojis:[]};z.emojis.forEach(function(ie){var ee=p.addEmoji(ie);ee&&K.emojis.push(ee)}),K.emojis.length&&p._categories.push(K)}}),this.isCategoryNeeded("custom")){if(this._custom.length>0){var _,O=Ce(this._custom);try{for(O.s();!(_=O.n()).done;){var N=_.value;this.addCustomEmoji(N)}}catch(z){O.e(z)}finally{O.f()}}this._customCategory.emojis.length&&this._categories.push(this._customCategory)}this.isCategoryNeeded("recent")&&(this._recent.length&&this._recent.map(function(z){var K,ie=Ce(p._customCategory.emojis);try{for(ie.s();!(K=ie.n()).done;){var ee=K.value;if(ee.id===z)return void p._recentCategory.emojis.push(ee)}}catch(de){ie.e(de)}finally{ie.f()}p.hasEmoji(z)&&p._recentCategory.emojis.push(p.emoji(z))}),this._recentCategory.emojis.length&&this._categories.unshift(this._recentCategory))}},{key:"findEmoji",value:function(p,b){var _=p.match(pe);if(_&&(p=_[1],_[2]&&(b=parseInt(_[2],10))),this._data.aliases.hasOwnProperty(p)&&(p=this._data.aliases[p]),this._emojis.hasOwnProperty(p)){var O=this._emojis[p];return b?O.getSkin(b):O}return this._nativeEmojis.hasOwnProperty(p)?this._nativeEmojis[p]:null}},{key:"categories",value:function(){return this._categories}},{key:"emoji",value:function(p){this._data.aliases.hasOwnProperty(p)&&(p=this._data.aliases[p]);var b=this._emojis[p];if(!b)throw new Error("Can not find emoji by id: "+p);return b}},{key:"firstEmoji",value:function(){var p=this._emojis[Object.keys(this._emojis)[0]];if(!p)throw new Error("Can not get first emoji");return p}},{key:"hasEmoji",value:function(p){return this._data.aliases.hasOwnProperty(p)&&(p=this._data.aliases[p]),!!this._emojis[p]}},{key:"nativeEmoji",value:function(p){return this._nativeEmojis.hasOwnProperty(p)?this._nativeEmojis[p]:null}},{key:"search",value:function(p,b){var _=this;if(b||(b=75),!p.length)return null;if(p=="-"||p=="-1")return[this.emoji("-1")];var O,N=p.toLowerCase().split(/[\s|,|\-|_]+/);N.length>2&&(N=[N[0],N[1]]),O=N.map(function(K){for(var ie=_._emojis,ee=_._searchIndex,de=0,je=function(){var Tt=K[Ot];if(de++,ee[Tt]||(ee[Tt]={}),!(ee=ee[Tt]).results){var we={};for(var gt in ee.results=[],ee.emojis={},ie){var We=ie[gt],Os=We._data.search,Kr=K.substr(0,de),Gr=Os.indexOf(Kr);if(Gr!=-1){var Xr=Gr+1;Kr==gt&&(Xr=0),ee.results.push(We),ee.emojis[gt]=We,we[gt]=Xr}}ee.results.sort(function(Ts,Ls){return we[Ts.id]-we[Ls.id]})}ie=ee.emojis},Ot=0;Ot<K.length;Ot++)je();return ee.results}).filter(function(K){return K});var z=null;return(z=O.length>1?le.apply(null,O):O.length?O[0]:[])&&z.length>b&&(z=z.slice(0,b)),z}},{key:"addCustomEmoji",value:function(p){var b=Object.assign({},p,{id:p.short_names[0],custom:!0});b.search||(b.search=C(b));var _=new De(b);return this._emojis[_.id]=_,this._customCategory.emojis.push(_),_}},{key:"addEmoji",value:function(p){var b=this,_=this._data.emojis[p];if(!this.isEmojiNeeded(_))return!1;var O=new De(_);if(this._emojis[p]=O,O.native&&(this._nativeEmojis[O.native]=O),O._skins)for(var N in O._skins){var z=O._skins[N];z.native&&(this._nativeEmojis[z.native]=z)}return O.emoticons&&O.emoticons.forEach(function(K){b._emoticons[K]||(b._emoticons[K]=p)}),O}},{key:"isCategoryNeeded",value:function(p){var b=!this._include||!this._include.length||this._include.indexOf(p)>-1,_=!(!this._exclude||!this._exclude.length)&&this._exclude.indexOf(p)>-1;return!(!b||_)}},{key:"isEmojiNeeded",value:function(p){return!this._emojisFilter||this._emojisFilter(p)}}])}(),De=function(){return Z(function p(b){if(L(this,p),this._data=Object.assign({},b),this._skins=null,this._data.skin_variations)for(var _ in this._skins=[],he){var O=he[_],N=this._data.skin_variations[O],z=Object.assign({},b);for(var K in N)z[K]=N[K];
968delete z.skin_variations,z.skin_tone=parseInt(_)+1,this._skins.push(new p(z))}for(var ie in this._sanitized=Ve(this._data),this._sanitized)this[ie]=this._sanitized[ie];this.short_names=this._data.short_names,this.short_name=this._data.short_names[0],Object.freeze(this)},[{key:"getSkin",value:function(p){return p&&p!="native"&&this._skins?this._skins[p-1]:this}},{key:"getPosition",value:function(){var p=+(1.6666666666666667*this._data.sheet_x).toFixed(2),b=+(100/60*this._data.sheet_y).toFixed(2);return"".concat(p,"% ").concat(b,"%")}},{key:"ariaLabel",value:function(){return[this.native].concat(this.short_names).filter(Boolean).join(", ")}}])}(),Te=function(){return Z(function p(b,_,O,N,z,K,ie){L(this,p),this._emoji=b,this._native=N,this._skin=_,this._set=O,this._fallback=z,this.canRender=this._canRender(),this.cssClass=this._cssClass(),this.cssStyle=this._cssStyle(ie),this.content=this._content(),this.title=K===!0?b.short_name:null,this.ariaLabel=b.ariaLabel(),Object.freeze(this)},[{key:"getEmoji",value:function(){return this._emoji.getSkin(this._skin)}},{key:"_canRender",value:function(){return this._isCustom()||this._isNative()||this._hasEmoji()||this._fallback}},{key:"_cssClass",value:function(){return["emoji-set-"+this._set,"emoji-type-"+this._emojiType()]}},{key:"_cssStyle",value:function(p){var b={};return this._isCustom()?b={backgroundImage:"url("+this.getEmoji()._data.imageUrl+")",backgroundSize:"100%",width:p+"px",height:p+"px"}:this._hasEmoji()&&!this._isNative()&&(b={backgroundPosition:this.getEmoji().getPosition()}),p&&(b=this._isNative()?Object.assign(b,{fontSize:Math.round(.95*p*10)/10+"px"}):Object.assign(b,{width:p+"px",height:p+"px"})),b}},{key:"_content",value:function(){return this._isCustom()?"":this._isNative()?this.getEmoji().native:this._hasEmoji()?"":this._fallback?this._fallback(this.getEmoji()):null}},{key:"_isNative",value:function(){return this._native}},{key:"_isCustom",value:function(){return this.getEmoji().custom}},{key:"_hasEmoji",value:function(){if(!this.getEmoji()._data)return!1;var p=this.getEmoji()._data["has_img_"+this._set];return p===void 0||p}},{key:"_emojiType",value:function(){return this._isCustom()?"custom":this._isNative()?"native":this._hasEmoji()?"image":"fallback"}}])}();function Ve(p){var b=p.name,_=p.short_names,O=p.skin_tone,N=p.skin_variations,z=p.emoticons,K=p.unified,ie=p.custom,ee=p.imageUrl,de=p.id||_[0],je=":".concat(de,":");return ie?{id:de,name:b,colons:je,emoticons:z,custom:ie,imageUrl:ee}:(O&&(je+=":skin-tone-".concat(O,":")),{id:de,name:b,colons:je,emoticons:z,unified:K.toLowerCase(),skin:O||(N?1:null),native:_e(K)})}function Q(p,b,_){return(b=Y(b))in p?Object.defineProperty(p,b,{value:_,enumerable:!0,configurable:!0,writable:!0}):p[b]=_,p}var be={native:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!1},fallback:{type:Function},skin:{type:Number,default:1},set:{type:String,default:"apple"},emoji:{type:[String,Object],required:!0},size:{type:Number,default:null},tag:{type:String,default:"span"}},ae={perLine:{type:Number,default:9},maxSearchResults:{type:Number,default:75},emojiSize:{type:Number,default:24},title:{type:String,default:"Emoji Mart™"},emoji:{type:String,default:"department_store"},color:{type:String,default:"#ae65c5"},set:{type:String,default:"apple"},skin:{type:Number,default:null},defaultSkin:{type:Number,default:1},native:{type:Boolean,default:!1},emojiTooltip:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},i18n:{type:Object,default:function(){return{}}},showPreview:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},showCategories:{type:Boolean,default:!0},showSkinTones:{type:Boolean,default:!0},infiniteScroll:{type:Boolean,default:!0},pickerStyles:{type:Object,default:function(){return{}}}};function ke(p,b){var _=Object.keys(p);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(p);b&&(O=O.filter(function(N){return Object.getOwnPropertyDescriptor(p,N).enumerable})),_.push.apply(_,O)}return _}function Le(p){for(var b=1;b<arguments.length;b++){var _=arguments[b]!=null?arguments[b]:{};
968b%2?ke(Object(_),!0).forEach(function(O){Q(p,O,_[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(_)):ke(Object(_)).forEach(function(O){Object.defineProperty(p,O,Object.getOwnPropertyDescriptor(_,O))})}return p}var Re=m({props:Le(Le({},be),{},{data:{type:Object,required:!0}}),emits:["click","mouseenter","mouseleave"],computed:{view:function(){return new Te(this.emojiObject,this.skin,this.set,this.native,this.fallback,this.tooltip,this.size)},sanitizedData:function(){return this.emojiObject._sanitized},title:function(){return this.tooltip?this.emojiObject.short_name:null},emojiObject:function(){return typeof this.emoji=="string"?this.data.findEmoji(this.emoji):this.emoji}},created:function(){},methods:{onClick:function(){this.$emit("click",this.emojiObject)},onMouseEnter:function(){this.$emit("mouseenter",this.emojiObject)},onMouseLeave:function(){this.$emit("mouseleave",this.emojiObject)}}},function(){var p=this,b=p._self._c;return p.view.canRender?b(p.tag,{tag:"component",staticClass:"emoji-mart-emoji",attrs:{title:p.view.title,"aria-label":p.view.ariaLabel,"data-title":p.title},on:{mouseenter:p.onMouseEnter,mouseleave:p.onMouseLeave,click:p.onClick}},[b("span",{class:p.view.cssClass,style:p.view.cssStyle},[p._v(p._s(p.view.content))])]):p._e()},[]).exports,Ae=m({props:{data:{type:Object,required:!0},i18n:{type:Object,required:!0},id:{type:String,required:!0},name:{type:String,required:!0},emojis:{type:Array},emojiProps:{type:Object,required:!0}},methods:{activeClass:function(p){return this.emojiProps.selectedEmoji&&this.emojiProps.selectedEmojiCategory&&this.emojiProps.selectedEmoji.id==p.id&&this.emojiProps.selectedEmojiCategory.id==this.id?"emoji-mart-emoji-selected":""}},computed:{isVisible:function(){return!!this.emojis},isSearch:function(){return this.name=="Search"},hasResults:function(){return this.emojis.length>0},emojiObjects:function(){var p=this;return this.emojis.map(function(b){return{emojiObject:b,emojiView:new Te(b,p.emojiProps.skin,p.emojiProps.set,p.emojiProps.native,p.emojiProps.fallback,p.emojiProps.emojiTooltip,p.emojiProps.emojiSize)}})}},components:{Emoji:Re}},function(){var p=this,b=p._self._c;return p.isVisible&&(p.isSearch||p.hasResults)?b("section",{class:{"emoji-mart-category":!0,"emoji-mart-no-results":!p.hasResults},attrs:{"aria-label":p.i18n.categories[p.id]}},[b("div",{staticClass:"emoji-mart-category-label"},[b("h3",{staticClass:"emoji-mart-category-label"},[p._v(p._s(p.i18n.categories[p.id]))])]),p._v(" "),p._l(p.emojiObjects,function(_){var O=_.emojiObject,N=_.emojiView;return[N.canRender?b("button",{key:O.id,staticClass:"emoji-mart-emoji",class:p.activeClass(O),attrs:{"aria-label":N.ariaLabel,role:"option","aria-selected":"false","aria-posinset":"1","aria-setsize":"1812",type:"button","data-title":O.short_name,title:N.title},on:{mouseenter:function(z){p.emojiProps.onEnter(N.getEmoji())},mouseleave:function(z){p.emojiProps.onLeave(N.getEmoji())},click:function(z){p.emojiProps.onClick(N.getEmoji())}}},[b("span",{class:N.cssClass,style:N.cssStyle},[p._v(p._s(N.content))])]):p._e()]}),p._v(" "),p.hasResults?p._e():b("div",[b("emoji",{attrs:{data:p.data,emoji:"sleuth_or_spy",native:p.emojiProps.native,skin:p.emojiProps.skin,set:p.emojiProps.set}}),p._v(" "),b("div",{staticClass:"emoji-mart-no-results-label"},[p._v(p._s(p.i18n.notfound))])],1)],2):p._e()},[]).exports,g=m({props:{skin:{type:Number,required:!0}},emits:["change"],data:function(){return{opened:!1}},methods:{onClick:function(p){this.opened&&p!=this.skin&&this.$emit("change",p),this.opened=!this.opened}}},function(){var p=this,b=p._self._c;return b("div",{class:{"emoji-mart-skin-swatches":!0,"emoji-mart-skin-swatches-opened":p.opened}},p._l(6,function(_){return b("span",{key:_,class:{"emoji-mart-skin-swatch":!0,"emoji-mart-skin-swatch-selected":p.skin==_}},[b("span",{class:"emoji-mart-skin emoji-mart-skin-tone-"+_,on:{click:function(O){return p.onClick(_)}}})])}),0)},[]).exports,k=m({props:{data:{type:Object,required:!0},title:{type:String,required:!0},emoji:{type:[String,Object]},idleEmoji:{type:[String,Object],required:!0},showSkinTones:{type:Boolean,default:!0},emojiProps:{type:Object,required:!0},skinProps:{type:Object,required:!0},onSkinChange:{type:Function,required:!0}},computed:{emojiData:function(){return this.emoji?this.emoji:{}},emojiShortNames:function(){return this.emojiData.short_names},emojiEmoticons:function(){return this.emojiData.emoticons}},components:{Emoji:Re,Skins:g}},function(){var p=this,b=p._self._c;return b("div",{staticClass:"emoji-mart-preview"},[p.emoji?[b("div",{staticClass:"emoji-mart-preview-emoji"},[b("emoji",{attrs:{data:p.data,emoji:p.emoji,native:p.emojiProps.native,skin:p.emojiProps.skin,set:p.emojiProps.set}})],1),p._v(" "),b("div",{staticClass:"emoji-mart-preview-data"},[b("div",{staticClass:"emoji-mart-preview-name"},[p._v(p._s(p.emoji.name))]),p._v(" "),b("div",{staticClass:"emoji-mart-preview-shortnames"},p._l(p.emojiShortNames,function(_){return b("span",{key:_,staticClass:"emoji-mart-preview-shortname"},[p._v(":"+p._s(_)+":")])}),0),p._v(" "),b("div",{staticClass:"emoji-mart-preview-emoticons"},p._l(p.emojiEmoticons,function(_){return b("span",{key:_,staticClass:"emoji-mart-preview-emoticon"},[p._v(p._s(_))])}),0)])]:[b("div",{staticClass:"emoji-mart-preview-emoji"},[b("emoji",{attrs:{data:p.data,emoji:p.idleEmoji,native:p.emojiProps.native,skin:p.emojiProps.skin,set:p.emojiProps.set}})],1),p._v(" "),b("div",{staticClass:"emoji-mart-preview-data"},[b("span",{staticClass:"emoji-mart-title-label"},[p._v(p._s(p.title))])]),p._v(" "),p.showSkinTones?b("div",{staticClass:"emoji-mart-preview-skins"},[b("skins",{attrs:{skin:p.skinProps.skin},on:{change:function(_){return p.onSkinChange(_)}}})],1):p._e()]],2)},[]).exports,w=m({props:{data:{type:Object,required:!0},i18n:{type:Object,required:!0},autoFocus:{type:Boolean,default:!1},onSearch:{type:Function,required:!0},onArrowLeft:{type:Function,required:!1},onArrowRight:{type:Function,required:!1},onArrowDown:{type:Function,required:!1},onArrowUp:{type:Function,required:!1},onEnter:{type:Function,required:!1}},emits:["search","enter","arrowUp","arrowDown","arrowRight","arrowLeft"],data:function(){return{value:""}},computed:{emojiIndex:function(){return this.data}},watch:{value:function(){this.$emit("search",this.value)}},methods:{clear:function(){this.value=""}},mounted:function(){var p=this.$el.querySelector("input");this.autoFocus&&p.focus()}},function(){var p=this,b=p._self._c;return b("div",{staticClass:"emoji-mart-search"},[b("input",{directives:[{name:"model",rawName:"v-model",value:p.value,expression:"value"}],attrs:{type:"text",placeholder:p.i18n.search,role:"textbox","aria-autocomplete":"list","aria-owns":"emoji-mart-list","aria-label":"Search for an emoji","aria-describedby":"emoji-mart-search-description"},domProps:{value:p.value},on:{keydown:[function(_){return!_.type.indexOf("key")&&p._k(_.ke
968yCode,"left",37,_.key,["Left","ArrowLeft"])||"button"in _&&_.button!==0?null:function(O){return p.$emit("arrowLeft",O)}.apply(null,arguments)},function(_){return!_.type.indexOf("key")&&p._k(_.keyCode,"right",39,_.key,["Right","ArrowRight"])||"button"in _&&_.button!==2?null:function(){return p.$emit("arrowRight")}.apply(null,arguments)},function(_){return!_.type.indexOf("key")&&p._k(_.keyCode,"down",40,_.key,["Down","ArrowDown"])?null:function(){return p.$emit("arrowDown")}.apply(null,arguments)},function(_){return!_.type.indexOf("key")&&p._k(_.keyCode,"up",38,_.key,["Up","ArrowUp"])?null:function(O){return p.$emit("arrowUp",O)}.apply(null,arguments)},function(_){return!_.type.indexOf("key")&&p._k(_.keyCode,"enter",13,_.key,"Enter")?null:function(){return p.$emit("enter")}.apply(null,arguments)}],input:function(_){_.target.composing||(p.value=_.target.value)}}}),p._v(" "),b("span",{staticClass:"hidden",attrs:{id:"emoji-picker-search-description"}},[p._v(`Use the left, right, up and down arrow keys to navigate the emoji search
969    results.`)])])},[]),$=w.exports;function q(p,b){(b==null||b>p.length)&&(b=p.length);for(var _=0,O=new Array(b);_<b;_++)O[_]=p[_];return O}r(537);var H=function(){return Z(function p(b){var _,O;L(this,p),this._vm=b,this._data=b.data,this._perLine=b.perLine,this._categories=[],(_=this._categories).push.apply(_,function(N){if(Array.isArray(N))return q(N)}(O=this._data.categories())||function(N){if(typeof Symbol<"u"&&N[Symbol.iterator]!=null||N["@@iterator"]!=null)return Array.from(N)}(O)||function(N,z){if(N){if(typeof N=="string")return q(N,z);var K=Object.prototype.toString.call(N).slice(8,-1);return K==="Object"&&N.constructor&&(K=N.constructor.name),K==="Map"||K==="Set"?Array.from(N):K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K)?q(N,z):void 0}}(O)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
970In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),this._categories=this._categories.filter(function(N){return N.emojis.length>0}),this._categories[0].first=!0,Object.freeze(this._categories),this.activeCategory=this._categories[0],this.searchEmojis=null,this.previewEmoji=null,this.previewEmojiCategoryIdx=0,this.previewEmojiIdx=-1},[{key:"onScroll",value:function(){var p=this._vm.$refs.scroll;if(p){for(var b=p.scrollTop,_=this.filteredCategories[0],O=0,N=this.filteredCategories.length;O<N;O++){var z=this.filteredCategories[O],K=this._vm.getCategoryComponent(O);if(K&&K.$el.offsetTop-50>b)break;_=z}this.activeCategory=_}}},{key:"allCategories",get:function(){return this._categories}},{key:"filteredCategories",get:function(){return this.searchEmojis?[{id:"search",name:"Search",emojis:this.searchEmojis}]:this._categories.filter(function(p){return p.emojis.length>0})}},{key:"previewEmojiCategory",get:function(){return this.previewEmojiCategoryIdx>=0?this.filteredCategories[this.previewEmojiCategoryIdx]:null}},{key:"onAnchorClick",value:function(p){var b=this;if(!this.searchEmojis){var _=this.filteredCategories.indexOf(p),O=this._vm.getCategoryComponent(_);this._vm.infiniteScroll?function(){if(O){var N=O.$el.offsetTop;p.first&&(N=0),b._vm.$refs.scroll.scrollTop=N}}():this.activeCategory=this.filteredCategories[_]}}},{key:"onSearch",value:function(p){var b=this._data.search(p,this.maxSearchResults);this.searchEmojis=b,this.previewEmojiCategoryIdx=0,this.previewEmojiIdx=0,this.updatePreviewEmoji()}},{key:"onEmojiEnter",value:function(p){this.previewEmoji=p,this.previewEmojiIdx=-1,this.previewEmojiCategoryIdx=-1}},{key:"onEmojiLeave",value:function(p){this.previewEmoji=null}},{key:"onArrowLeft",value:function(){this.previewEmojiIdx>0?this.previewEmojiIdx-=1:(this.previewEmojiCategoryIdx-=1,this.previewEmojiCategoryIdx<0?this.previewEmojiCategoryIdx=0:this.previewEmojiIdx=this.filteredCategories[this.previewEmojiCategoryIdx].emojis.length-1),this.updatePreviewEmoji()}},{key:"onArrowRight",value:function(){this.previewEmojiIdx<this.emojisLength(this.previewEmojiCategoryIdx)-1?this.previewEmojiIdx+=1:(this.previewEmojiCategoryIdx+=1,this.previewEmojiCategoryIdx>=this.filteredCategories.length?this.previewEmojiCategoryIdx=this.filteredCategories.length-1:this.previewEmojiIdx=0),this.updatePreviewEmoji()}},{key:"onArrowDown",value:function(){if(this.previewEmojiIdx==-1)return this.onArrowRight();var p=this.filteredCategories[this.previewEmojiCategoryIdx].emojis.length,b=this._perLine;this.previewEmojiIdx+b>p&&(b=p%this._perLine);for(var _=0;_<b;_++)this.onArrowRight();this.updatePreviewEmoji()}},{key:"onArrowUp",value:function(){var p=this._perLine;this.previewEmojiIdx-p<0&&(p=this.previewEmojiCategoryIdx>0?this.filteredCategories[this.previewEmojiCategoryIdx-1].emojis.length%this._perLine:0);for(var b=0;b<p;b++)this.onArrowLeft();this.updatePreviewEmoji()}},{key:"updatePreviewEmoji",value:function(){var p=this;this.previewEmoji=this.filteredCategories[this.previewEmojiCategoryIdx].emojis[this.previewEmojiIdx],this._vm.$nextTick(function(){var b=p._vm.$refs.scroll,_=b.querySelector(".emoji-mart-emoji-selected"),O=b.offsetTop-b.offsetHeight;_&&_.offsetTop+_.offsetHeight>O+b.scrollTop&&(b.scrollTop+=_.offsetHeight),_&&_.offsetTop<b.scrollTop&&(b.scrollTop-=_.offsetHeight)})}},{key:"emojisLength",value:function(p){return p==-1?0:this.filteredCategories[p].emojis.length}}])}();function T(p,b){var _=Object.keys(p);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(p);b&&(O=O.filter(function(N){return Object.getOwnPropertyDescriptor(p,N).enumerable})),_.push.apply(_,O)}return _}function B(p){for(var b=1;b<arguments.length;b++){var _=arguments[b]!=null?arguments[b]:{};
970b%2?T(Object(_),!0).forEach(function(O){Q(p,O,_[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(_)):T(Object(_)).forEach(function(O){Object.defineProperty(p,O,Object.getOwnPropertyDescriptor(_,O))})}return p}var J={search:"Search",notfound:"No Emoji Found",categories:{search:"Search Results",recent:"Frequently Used",smileys:"Smileys & Emotion",people:"People & Body",nature:"Animals & Nature",foods:"Food & Drink",activity:"Activity",places:"Travel & Places",objects:"Objects",symbols:"Symbols",flags:"Flags",custom:"Custom"}},se={props:B(B({},ae),{},{data:{type:Object,required:!0}}),emits:["select","skin-change"],data:function(){return{activeSkin:this.skin||f.get("skin")||this.defaultSkin,view:new H(this)}},computed:{customStyles:function(){return B({width:this.calculateWidth+"px"},this.pickerStyles)},emojiProps:function(){return{native:this.native,skin:this.activeSkin,set:this.set,emojiTooltip:this.emojiTooltip,emojiSize:this.emojiSize,selectedEmoji:this.view.previewEmoji,selectedEmojiCategory:this.view.previewEmojiCategory,onEnter:this.onEmojiEnter.bind(this),onLeave:this.onEmojiLeave.bind(this),onClick:this.onEmojiClick.bind(this)}},skinProps:function(){return{skin:this.activeSkin}},calculateWidth:function(){return this.perLine*(this.emojiSize+12)+12+2+function(){if(typeof document>"u")return 0;var p=document.createElement("div");p.style.width="100px",p.style.height="100px",p.style.overflow="scroll",p.style.position="absolute",p.style.top="-9999px",document.body.appendChild(p);var b=p.offsetWidth-p.clientWidth;return document.body.removeChild(p),b}()},filteredCategories:function(){return this.view.filteredCategories},mergedI18n:function(){return Object.freeze(ye(J,this.i18n))},idleEmoji:function(){try{return this.data.emoji(this.emoji)}catch(p){return console.error("Default preview emoji `"+this.emoji+"` is not available, check the Picker `emoji` property"),console.error(p),this.data.firstEmoji()}},isSearching:function(){return this.view.searchEmojis!=null}},watch:{skin:function(){this.onSkinChange(this.skin)}},methods:{onScroll:function(){this.infiniteScroll&&!this.waitingForPaint&&(this.waitingForPaint=!0,window.requestAnimationFrame(this.onScrollPaint.bind(this)))},onScrollPaint:function(){this.waitingForPaint=!1,this.view.onScroll()},onAnchorClick:function(p){this.view.onAnchorClick(p)},onSearch:function(p){this.view.onSearch(p)},onEmojiEnter:function(p){this.view.onEmojiEnter(p)},onEmojiLeave:function(p){this.view.onEmojiLeave(p)},onArrowLeft:function(p){var b=this.view.previewEmojiIdx;this.view.onArrowLeft(),p&&this.view.previewEmojiIdx!==b&&p.preventDefault()},onArrowRight:function(){this.view.onArrowRight()},onArrowDown:function(){this.view.onArrowDown()},onArrowUp:function(p){this.view.onArrowUp(),p.preventDefault()},onEnter:function(){this.view.previewEmoji&&(this.$emit("select",this.view.previewEmoji),W.add(this.view.previewEmoji))},onEmojiClick:function(p){this.$emit("select",p),W.add(p)},onTextSelect:function(p){p.stopPropagation()},onSkinChange:function(p){this.activeSkin=p,f.update({skin:p}),this.$emit("skin-change",p)},getCategoryComponent:function(p){var b=this.$refs["categories_"+p];return b&&"0"in b?b[0]:b}},components:{Anchors:j,Category:Ae,Preview:k,Search:$}},Ee=m(se,function(){var p=this,b=p._self._c;return b("section",{staticClass:"emoji-mart emoji-mart-static",style:p.customStyles},[p.showCategories?b("div",{staticClass:"emoji-mart-bar emoji-mart-bar-anchors"},[b("anchors",{attrs:{data:p.data,i18n:p.mergedI18n,color:p.color,categories:p.view.allCategories,"active-category":p.view.activeCategory},on:{click:p.onAnchorClick}})],1):p._e(),p._v(" "),p._t("searchTemplate",function(){return[p.showSearch?b("search",{ref:"search",attrs:{data:p.data,i18n:p.mergedI18n,"auto-focus":p.autoFocus,"on-search":p.onSearch},on:{search:p.onSearch,arrowLeft:p.onArrowLeft,arrowRight:p.onArrowRight,arrowDown:p.onArrowDown,arrowUp:p.onArrowUp,enter:p.onEnter,select:p.onTextSelect}}):p._e()]},{data:p.data,i18n:p.i18n,autoFocus:p.autoFocus,onSearch:p.onSearch}),p._v(" "),b("div",{ref:"scroll",staticClass:"emoji-mart-scroll",attrs:{role:"tabpanel"},on:{scroll:p.onScroll}},[b("div",{ref:"scrollContent",attrs:{id:"emoji-mart-list",role:"listbox","aria-expanded":"true"}},[p._t("customCategory"),p._v(" "),p._l(p.view.filteredCategories,function(_,O){return b("category",{directives:[{name:"show",rawName:"v-show",value:p.infiniteScroll||_==p.view.activeCategory||p.isSearching,expression:"infiniteScroll || category == view.activeCategory || isSearching"}],key:_.id,ref:"categories_"+O,refInFor:!0,attrs:{data:p.data,i18n:p.mergedI18n,id:_.id,name:_.n
970ame,emojis:_.emojis,"emoji-props":p.emojiProps}})})],2)]),p._v(" "),p._t("previewTemplate",function(){return[p.showPreview?b("div",{staticClass:"emoji-mart-bar emoji-mart-bar-preview"},[b("preview",{attrs:{data:p.data,title:p.title,emoji:p.view.previewEmoji,"idle-emoji":p.idleEmoji,"show-skin-tones":p.showSkinTones,"emoji-props":p.emojiProps,"skin-props":p.skinProps,"on-skin-change":p.onSkinChange}})],1):p._e()]},{data:p.data,title:p.title,emoji:p.view.previewEmoji,idleEmoji:p.idleEmoji,showSkinTones:p.showSkinTones,emojiProps:p.emojiProps,skinProps:p.skinProps,onSkinChange:p.onSkinChange})],2)},[]),Se=Ee.exports}(),o}()})}(wr)),wr.exports}b0(),kr("nextcloud-vue").persist(!0).build(),te(zl,bo,ko,Co),V("Search emoji"),V("No emoji found"),V("Search results"),V("Frequently used"),V("Smileys & Emotion"),V("People & Body"),V("Animals & Nature"),V("Food & Drink"),V("Activities"),V("Travel & Places"),V("Objects"),V("Symbols"),V("Flags"),V("Custom"),new ge(255,222,52,V("Neutral skin color")),new ge(228,205,166,V("Light skin tone")),new ge(250,221,192,V("Medium light skin tone")),new ge(174,129,87,V("Medium skin tone")),new ge(158,113,88,V("Medium dark skin tone")),new ge(96,79,69,V("Dark skin tone")),V("Pick an emoji"),te(Vl),te(Rl),te(Hl),te(wo);const[Lm]=cn("core","config",{version:"30.0"}).version.split(".",2)??[],gs={},Ja=()=>{uo((e,n)=>({"15a054de":e.color}))},Qa=gs.setup;if(gs.setup=Qa?(e,n)=>(Ja(),Qa(e,n)):Ja,te(Ul),te(Yl),pi()?.circles?.teamResourceProviders,te(Wl),V("Related resources"),V("Anything shared with the same group of people will show up here"),Array.prototype.find||(Array.prototype.find=function(e){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof e!="function")throw new TypeError("predicate must be a function");for(var n=Object(this),i=n.length>>>0,a=arguments[1],r,o=0;o<i;o++)if(r=n[o],e.call(a,r,o,n))return r}),window&&typeof window.CustomEvent!="function"){let e=function(n,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(n,i.bubbles,i.cancelable,i.detail),a};typeof window.Event<"u"&&(e.prototype=window.Event.prototype),window.CustomEvent=e}window._vue_richtext_widgets??={},window._registerWidget??=(e,n,i,a)=>{y0(e,n,i,a)};function y0(e,n,i=()=>{},a){const r={hasInteractiveView:!0,fullWidth:!1,...a};if(window._vue_richtext_widgets[e]){Ne.error(`[ReferencePicker]: Widget for id ${e} already registered`);return}window._vue_richtext_widgets[e]={id:e,callback:n,onDestroy:i,...r}}window._vue_richtext_custom_picker_elements??={},window._registerCustomPickerElement??=w0;function w0(e,n,i=()=>{},a="large"){if(window._vue_richtext_custom_picker_elements[e]){Ne.error(`Custom reference picker element for id ${e} already registered`);return}window._vue_richtext_custom_picker_elements[e]={id:e,callback:n,onDestroy:i,size:a}}te(ql),te(Kl),V("Any link"),fo("core","filetypes/link.svg"),window._vue_richtext_reference_providers??=cn("core","reference-provider-list",[]),window._vue_richtext_reference_provider_timestamps??=cn("core","reference-provider-timestamps",{}),te(ea,Gl),te(Xl),te(Zl,ea,Co),te(Ql,Jl);const mn=ki(/[A-Za-z]/),Yr=ki(/[\dA-Za-z]/);function x0(e){return e!==null&&(e<32||e===127)}function Ht(e){return e!==null&&(e<0||e===32)}const bs=ki(new RegExp("\\p{P}|\\p{S}","u")),vn=ki(/\s/);function ki(e){return n;function n(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}const ys=function(e){if(e==null)return S0;if(typeof e=="function")return Si(e);if(typeof e=="object")return Array.isArray(e)?_0(e):C0(e);if(typeof e=="string")return k0(e);throw new Error("Expected function, string, or object as test")};function _0(e){const n=[];let i=-1;for(;++i<e.length;)n[i]=ys(e[i]);return Si(a);function a(...r){let o=-1;for(;++o<n.length;)if(n[o].apply(this,r))return!0;return!1}}function C0(e){const n=e;return Si(i);function i(a){const r=a;let o;for(o in e)if(r[o]!==n[o])return!1;return!0}}function k0(e){return Si(n);function n(i){return i&&i.type===e}}function Si(e){return n;function n(i,a,r){return!!(D0(i)&&e.call(this,i,typeof a=="number"?a:void 0,r||void 0))}}function S0(){return!0}function D0(e){return e!==null&&typeof e=="object"&&"type"in e}ys(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);const A0={tokenize:L0,partial:!0},ws={tokenize:M0,partial:!0},xs={tokenize:P0,partial:!0},_s={tokenize:F0,partial:!0},E0={tokenize:I0,partial:!0},eo={tokenize:O0,previous:Cs},to={tokenize:T0,previous:ks},tt={tokenize:j0,previous:Ss},nt={};let wt=48;for(;wt<123;)nt[wt]=tt,wt++,wt===58?wt=65:wt===91&&(wt=97);nt[43]=tt,nt[45]=tt,nt[46]=tt,nt[95]=tt,nt[72]=[tt,to],nt[104]=[tt,to],nt[87]=[tt,eo],nt[119]=[tt,eo];function j0(e,n,i){const a=this;let r,o;return l;function l(d){return!xr(d)||!Ss.call(a,a.previous)||Wr(a.events)?i(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(d))}function u(d){return xr(d)?(e.consume(d),u):d===64?(e.consume(d),s):i(d)}
970function s(d){return d===46?e.check(E0,c,h)(d):d===45||d===95||Yr(d)?(o=!0,e.consume(d),s):c(d)}function h(d){return e.consume(d),r=!0,s}function c(d){return o&&r&&mn(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(d)):i(d)}}function O0(e,n,i){const a=this;return r;function r(l){return l!==87&&l!==119||!Cs.call(a,a.previous)||Wr(a.events)?i(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(A0,e.attempt(ws,e.attempt(xs,o),i),i)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function T0(e,n,i){const a=this;let r="",o=!1;return l;function l(d){return(d===72||d===104)&&ks.call(a,a.previous)&&!Wr(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),e.consume(d),u):i(d)}function u(d){if(mn(d)&&r.length<5)return r+=String.fromCodePoint(d),e.consume(d),u;if(d===58){const f=r.toLowerCase();if(f==="http"||f==="https")return e.consume(d),s}return i(d)}function s(d){return d===47?(e.consume(d),o?h:(o=!0,s)):i(d)}function h(d){return d===null||x0(d)||Ht(d)||vn(d)||bs(d)?i(d):e.attempt(ws,e.attempt(xs,c),i)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(d)}}function L0(e,n,i){let a=0;return r;function r(l){return(l===87||l===119)&&a<3?(a++,e.consume(l),r):l===46&&a===3?(e.consume(l),o):i(l)}function o(l){return l===null?i(l):n(l)}}function M0(e,n,i){let a,r,o;return l;function l(h){return h===46||h===95?e.check(_s,s,u)(h):h===null||Ht(h)||vn(h)||h!==45&&bs(h)?s(h):(o=!0,e.consume(h),l)}function u(h){return h===95?a=!0:(r=a,a=void 0),e.consume(h),l}function s(h){return r||a||!o?i(h):n(h)}}function P0(e,n){let i=0,a=0;return r;function r(l){return l===40?(i++,e.consume(l),r):l===41&&a<i?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(_s,n,o)(l):l===null||Ht(l)||vn(l)?n(l):(e.consume(l),r)}function o(l){return l===41&&a++,e.consume(l),r}}function F0(e,n,i){return a;function a(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),a):u===38?(e.consume(u),o):u===93?(e.consume(u),r):u===60||u===null||Ht(u)||vn(u)?n(u):i(u)}function r(u){return u===null||u===40||u===91||Ht(u)||vn(u)?n(u):a(u)}function o(u){return mn(u)?l(u):i(u)}function l(u){return u===59?(e.consume(u),a):mn(u)?(e.consume(u),l):i(u)}}function I0(e,n,i){return a;function a(o){return e.consume(o),r}function r(o){return Yr(o)?i(o):n(o)}}function Cs(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ht(e)}function ks(e){return!mn(e)}function Ss(e){return!(e===47||xr(e))}function xr(e){return e===43||e===45||e===46||e===95||Yr(e)}function Wr(e){let n=e.length,i=!1;for(;n--;){const a=e[n][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){i=!0;break}if(a._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}bn(null),te(eu,ko),V("Write a message …"),te(tu),{...zr.props,placeholder:V("Select a tag")},te(xo,nu);const $0={model:{prop:"modelValue",event:"update:modelValue"}};({...$0,props:(V("Clear selected"),V("Options"),V("Select account"))},te(go)),te(iu);const[Mm]=cn("core","config",{version:"30.0"}).version.split(".",2)??[];te(ru),jo(function(e){this.loadGroup(e)},200),_n.themes.tooltip.html=!1,_n.themes.tooltip.delay={show:500,hide:200},_n.themes.tooltip.distance=10,_n.themes.tooltip["arrow-padding"]=3;var Xi,no;function B0(){if(no)return Xi;no=1;function e(r){if(typeof r!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(r))}function n(r,o){for(var l="",u=0,s=-1,h=0,c,d=0;d<=r.length;++d){if(d<r.length)c=r.charCodeAt(d);else{if(c===47)break;c=47}if(c===47){if(!(s===d-1||h===1))if(s!==d-1&&h===2){if(l.length<2||u!==2||l.charCodeAt(l.length-1)!==46||l.charCodeAt(l.length-2)!==46){if(l.length>2){var f=l.lastIndexOf("/");if(f!==l.length-1){f===-1?(l="",u=0):(l=l.slice(0,f),u=l.length-1-l.lastIndexOf("/")),s=d,h=0;continue}}else if(l.length===2||l.length===1){l="",u=0,s=d,h=0;continue}}
vendor: 7,220 bytes, line 970
970o&&(l.length>0?l+="/..":l="..",u=2)}else l.length>0?l+="/"+r.slice(s+1,d):l=r.slice(s+1,d),u=d-s-1;s=d,h=0}else c===46&&h!==-1?++h:h=-1}return l}function i(r,o){var l=o.dir||o.root,u=o.base||(o.name||"")+(o.ext||"");return l?l===o.root?l+u:l+r+u:u}var a={resolve:function(){for(var r="",o=!1,l,u=arguments.length-1;u>=-1&&!o;u--){var s;u>=0?s=arguments[u]:(l===void 0&&(l=Rs.cwd()),s=l),e(s),s.length!==0&&(r=s+"/"+r,o=s.charCodeAt(0)===47)}return r=n(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(r){if(e(r),r.length===0)return".";var o=r.charCodeAt(0)===47,l=r.charCodeAt(r.length-1)===47;return r=n(r,!o),r.length===0&&!o&&(r="."),r.length>0&&l&&(r+="/"),o?"/"+r:r},isAbsolute:function(r){return e(r),r.length>0&&r.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var r,o=0;o<arguments.length;++o){var l=arguments[o];e(l),l.length>0&&(r===void 0?r=l:r+="/"+l)}return r===void 0?".":a.normalize(r)},relative:function(r,o){if(e(r),e(o),r===o||(r=a.resolve(r),o=a.resolve(o),r===o))return"";for(var l=1;l<r.length&&r.charCodeAt(l)===47;++l);for(var u=r.length,s=u-l,h=1;h<o.length&&o.charCodeAt(h)===47;++h);for(var c=o.length,d=c-h,f=s<d?s:d,v=-1,y=0;y<=f;++y){if(y===f){if(d>f){if(o.charCodeAt(h+y)===47)return o.slice(h+y+1);if(y===0)return o.slice(h+y)}else s>f&&(r.charCodeAt(l+y)===47?v=y:y===0&&(v=0));break}var x=r.charCodeAt(l+y),C=o.charCodeAt(h+y);if(x!==C)break;x===47&&(v=y)}var E="";for(y=l+v+1;y<=u;++y)(y===u||r.charCodeAt(y)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+o.slice(h+v):(h+=v,o.charCodeAt(h)===47&&++h,o.slice(h))},_makeLong:function(r){return r},dirname:function(r){if(e(r),r.length===0)return".";for(var o=r.charCodeAt(0),l=o===47,u=-1,s=!0,h=r.length-1;h>=1;--h)if(o=r.charCodeAt(h),o===47){if(!s){u=h;break}}else s=!1;return u===-1?l?"/":".":l&&u===1?"//":r.slice(0,u)},basename:function(r,o){if(o!==void 0&&typeof o!="string")throw new TypeError('"ext" argument must be a string');e(r);var l=0,u=-1,s=!0,h;if(o!==void 0&&o.length>0&&o.length<=r.length){if(o.length===r.length&&o===r)return"";var c=o.length-1,d=-1;for(h=r.length-1;h>=0;--h){var f=r.charCodeAt(h);if(f===47){if(!s){l=h+1;break}}else d===-1&&(s=!1,d=h+1),c>=0&&(f===o.charCodeAt(c)?--c===-1&&(u=h):(c=-1,u=d))}return l===u?u=d:u===-1&&(u=r.length),r.slice(l,u)}else{for(h=r.length-1;h>=0;--h)if(r.charCodeAt(h)===47){if(!s){l=h+1;break}}else u===-1&&(s=!1,u=h+1);return u===-1?"":r.slice(l,u)}},extname:function(r){e(r);for(var o=-1,l=0,u=-1,s=!0,h=0,c=r.length-1;c>=0;--c){var d=r.charCodeAt(c);if(d===47){if(!s){l=c+1;break}continue}u===-1&&(s=!1,u=c+1),d===46?o===-1?o=c:h!==1&&(h=1):o!==-1&&(h=-1)}return o===-1||u===-1||h===0||h===1&&o===u-1&&o===l+1?"":r.slice(o,u)},format:function(r){if(r===null||typeof r!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof r);return i("/",r)},parse:function(r){e(r);var o={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return o;var l=r.charCodeAt(0),u=l===47,s;u?(o.root="/",s=1):s=0;for(var h=-1,c=0,d=-1,f=!0,v=r.length-1,y=0;v>=s;--v){if(l=r.charCodeAt(v),l===47){if(!f){c=v+1;break}continue}d===-1&&(f=!1,d=v+1),l===46?h===-1?h=v:y!==1&&(y=1):h!==-1&&(y=-1)}return h===-1||d===-1||y===0||y===1&&h===d-1&&h===c+1?d!==-1&&(c===0&&u?o.base=o.name=r.slice(1,d):o.base=o.name=r.slice(c,d)):(c===0&&u?(o.name=r.slice(1,h),o.base=r.slice(1,d)):(o.name=r.slice(c,h),o.base=r.slice(c,d)),o.ext=r.slice(h,d)),c>0?o.dir=r.slice(0,c-1):u&&(o.dir="/"),o},sep:"/",delimiter:":",win32:null,posix:null};return a.posix=a,Xi=a,Xi}var xt=B0();const N0={name:A("viewer","Name"),save:A("viewer","Save"),saveAs:A("viewer","Save as"),back:A("viewer","Back"),loading:A("viewer","Loading …"),resetOperations:A("viewer","Reset"),changesLoseWarningHint:A("viewer","All changes will be lost."),discardChangesWarningHint:A("viewer","Are you sure you want to continue?"),cancel:A("viewer","Cancel"),apply:A("viewer","Apply"),warning:A("viewer","Warning"),confirm:A("viewer","Confirm"),discardChanges:A("viewer","Discard changes"),undoTitle:A("viewer","Undo"),redoTitle:A("viewer","Redo"),showImageTitle:A("viewer","Show original image"),zoomInTitle:A("viewer","Zoom in"),zoomOutTitle:A("viewer","Zoom out"),toggleZoomMenuTitle:A("viewer","Toggle zoom menu"),adjustTab:A("viewer","Adjust"),finetuneTab:A("viewer","Fine-tune"),filtersTab:A("viewer","Filters"),watermarkTab:A("viewer","Watermark"),annotateTabLabel:A("viewer","Draw"),resize:A("viewer","Resize"),resizeTab:A("viewer","Resize"),imageName:A("viewer","Image name"),invalidImageError:A("viewer","Invalid image."),uploadImageError:A("viewer","Error while uploading the image."),areNotImages:A("viewer","are not images"),isNotImage:A("viewer","is not an image"),toBeUploaded:A("viewer","to be uploaded"),cropTool:A("viewer","Crop"),original:A("viewer","Original"),custom:A("viewer","Custom"),square:A("viewer","Square"),landscape:A("viewer","Landscape"),portrait:A("viewer","Portrait"),ellipse:A("viewer","Ellipse"),classicTv:A("viewer","Classic TV"),cinemascope:A("viewer","CinemaScope"),arrowTool:A("viewer","Arrow"),blurTool:A("viewer","Blur"),brightnessTool:A("viewer","Brightness"),contrastTool:A("viewer","Contrast"),ellipseTool:A("viewer","Ellipse"),unFlipX:A("viewer","Un-flip X"),flipX:A("viewer","Flip X"),unFlipY:A("viewer","Un-flip Y"),flipY:A("viewer","Flip Y"),hsvTool:A("viewer","HSV"),hue:A("viewer","Hue"),brightness:A("viewer","Brightness"),saturation:A("viewer","Saturation"),value:A("viewer","Value"),imageTool:A("viewer","Image"),importing:A("viewer","Importing …"),addImage:A("viewer","+ Add image"),uploadImage:A("viewer","Upload image"),fromGallery:A("viewer","From gallery"),lineTool:A("viewer","Line"),penTool:A("viewer","Pen"),polygonTool:A("viewer","Polygon"),sides:A("viewer","Sides"),rectangleTool:A("viewer","Rectangle"),cornerRadius:A("viewer","Corner Radius"),resizeWidthTitle:A("viewer","Width in pixels"),resizeHeightTitle:A("viewer","Height in pixels"),toggleRatioLockTitle:A("viewer","Toggle ratio lock"),resetSize:A("viewer","Reset to original image size"),rotateTool:A("viewer","Rotate"),textTool:A("viewer","Text"),textSpacings:A("viewer","Text spacing"),textAlignment:A("viewer","Text alignment"),fontFamily:A("viewer","Font family"),size:A("viewer","Size"),letterSpacing:A("viewer","Letter spacing"),lineHeight:A("viewer","Line height"),warmthTool:A("viewer","Warmth"),addWatermark:A("viewer","+ Add watermark"),addTextWatermark:A("viewer","+ Add text watermark"),addWatermarkTitle:A("viewer","Choose watermark type"),uploadWatermark:A("viewer","Upload watermark"),addWatermarkAsText:A("viewer","Add as text"),padding:A("viewer","Padding"),paddings:A("viewer","Paddings"),shadow:A("viewer","Shadow"),horizontal:A("viewer","Horizontal"),vertical:A("viewer","Vertical"),blur:A("viewer","Blur"),opacity:A("viewer","Opacity"),transparency:A("viewer","Transparency"),position:A("viewer","Position"),stroke:A("viewer","Stroke"),saveAsModalTitle:A("viewer","Save image as"),extension:A("viewer","Extension"),format:A("viewer","Format"),nameIsRequired:A("viewer","Name is required."),quality:A("viewer","Quality"),imageDimensionsHoverTitle:A("viewer","Saved image size (width x height)"),
970cropSizeLowerThanResizedWarning:A("viewer","Note that the selected crop area is lower than the applied resize which might cause quality decrease"),actualSize:A("viewer","Actual size (100%)"),fitSize:A("viewer","Fit size"),addImageTitle:A("viewer","Select image to add …"),mutualizedFailedToLoadImg:A("viewer","Failed to load image."),tabsMenu:A("viewer","Menu"),download:A("viewer","Download"),width:A("viewer","Width"),height:A("viewer","Height"),plus:"+",cropItemNoEffect:A("viewer","No preview available for this crop item")};let Tn,io;const z0={name:"ImageEditor",props:{fileid:{type:[String,Number],required:!0},mime:{type:String,required:!0},src:{type:String,required:!0}},data(){return{imageEditor:null,observer:null}},computed:{config(){return{source:this.src,defaultSavedImageName:this.defaultSavedImageName,defaultSavedImageType:this.defaultSavedImageType,useBackendTranslations:!1,observePluginContainerSize:!0,defaultTabId:Tn.ADJUST,defaultToolId:io.CROP,tabsIds:Object.values(Tn).filter(e=>e!==Tn.WATERMARK).sort((e,n)=>e.localeCompare(n)),onClose:this.onClose,onSave:this.onSave,translations:N0,theme:{palette:{"bg-secondary":"var(--color-main-background)","bg-primary":"var(--color-background-dark)","bg-hover":"var(--color-background-hover)","bg-stateless":"var(--color-background-dark)","accent-primary":"var(--color-primary-element)","accent-stateless":"var(--color-primary-element)","border-active-bottom":"var(--color-primary-element)","bg-primary-active":"var(--color-background-dark)","bg-primary-hover":"var(--color-background-hover)","accent-primary-active":"var(--color-main-text)","accent-primary-hover":"var(--color-primary-element)",warning:"var(--color-error)"},typography:{fontFamily:"var(--font-face)"}},Text:{fontFamily:'"NotoSans", "Noto Sans", "Arial", "Roboto"',fonts:[{label:"Sans-serif",value:'"NotoSans", "Noto Sans", "Arial", "Roboto"'},{label:"Serif",value:'"PTSerif", "Georgia", "Times New Roman"'},{label:"Comic",value:'"Comic Neue", "Comic Sans"'}]}}},decodedSourceName(){return decodeURIComponent(xt.basename(this.src))},defaultSavedImageName(){return xt.basename(this.decodedSourceName,xt.extname(this.decodedSourceName))},defaultSavedImageType(){return xt.extname(this.decodedSourceName).slice(1)||"jpeg"},hasHighContrastEnabled(){return(OCA?.Theming?.enabledThemes||[]).find(e=>e.indexOf("highcontrast")!==-1)},themeDataAttr(){return this.hasHighContrastEnabled?{"data-theme-dark-highcontrast":!0}:{"data-theme-dark":!0}}},created(){if(document.getElementById("oca-viewer_image-editor-fonts"))return;const e=document.createElement("style");e.id="oca-viewer_image-editor-fonts",e.appendChild(document.createTextNode(`
971		@font-face {
972			font-display: swap;
973			font-family: 'Comic Neue';
974			font-style: normal;
975			font-weight: 400;
976			src: url('${Oi("viewer","css/fonts/comic-neue-regular.woff2")}') format('woff2');
977		}
978		@font-face {
979			font-display: swap;
980			font-family: 'NotoSans';
981			font-style: normal;
982			font-weight: 400;
983			src: url('${Oi("core","fonts/NotoSans-Regular-latin.woff2")}') format('woff2');
984		}
985		@font-face {
986			font-display: swap;
987			font-family: 'PTSerif';
988			font-style: normal;
989			font-weight: 400;
990			src: url('${Oi("viewer","css/fonts/pt-serif-regular.woff2")}') format('woff2');
991		}
992		`)),document.head.appendChild(e)},async mounted(){const e=(await Ft(async()=>{const{default:n}=await import("./index-BPjrEYdF.chunk.mjs");return{default:n}},__vite__mapDeps([0,1,2]),import.meta.url)).default;Tn=e.TABS,io=e.TOOLS,this.imageEditor=new e(this.$refs.editor,this.config),this.imageEditor.render(),window.addEventListener("keydown",this.handleKeydown,!0),this.observer=new MutationObserver(n=>{n.forEach(i=>{i.type==="childList"&&i.addedNodes.forEach(a=>{(a.classList.contains("FIE_root")||a.classList.contains("SfxModal-Wrapper"))&&ji("viewer:trapElements:changed",a)})})}),this.observer.observe(document.body,{childList:!0,subtree:!0})},beforeDestroy(){this.imageEditor&&this.imageEditor.terminate(),this.observer.disconnect(),window.removeEventListener("keydown",this.handleKeydown,!0)},methods:{onClose(){window.removeEventListener("keydown",this.handleKeydown,!0),this.$emit("close")},async fileExists(e){try{return await ft.head(e,{validateStatus:n=>n===200||n===404}),(await ft.head(e)).status===200}catch(n){if(n.response?.status===404)return!1;throw n}}
992,async onSave({fullName:e,imageCanvas:n,mimeType:i,quality:a}){const{origin:r,pathname:o}=new URL(this.src),l=r+xt.join(xt.dirname(o),e);Be.debug("Saving image...",{putUrl:l,src:this.src,fullName:e});const u=await this.fileExists(l);if(Be.debug("File exists",{fileExists:u}),u){Be.debug("File exists, showing confirmation dialog");try{const s=e===xt.basename(this.src)?t("viewer","You are about to overwrite the original file. Are you sure you want to continue?"):t("viewer","A file with this name already exists. Do you want to overwrite it?");if(!await Hs({name:t("viewer","Confirm overwrite"),text:s,labelConfirm:t("viewer","Overwrite"),labelReject:t("viewer","Cancel")})){Be.debug("User cancelled overwrite");return}}catch(s){Be.error("Error showing confirmation dialog",{error:s}),Jr(t("viewer","An error occurred while trying to confirm the file overwrite."));return}}i=i.replace("jpg","jpeg"),a=Math.max(Math.min(a,1),0)||1;try{const s=await new Promise(c=>n.toBlob(c,i,a)),h=await ft.put(l,new File([s],e));if(Be.info("Edited image saved!",{response:h}),Us(t("viewer","Image saved")),l!==this.src){const c=parseInt(h?.headers?.["oc-fileid"]?.split("oc")[0])||null;if(ji("editor:file:created",l),c){const d=window.OCP.Files.Router.params;d.fileId=c,window.OCP.Files.Router.goToRoute(null,d,window.OCP.Files.Router.query)}}else{this.$emit("updated");const c=await Ys(r,decodeURI(o)),d=new Ws({id:Number.parseInt(this.fileid),source:this.src,mtime:new Date(c.lastmod),...c,attributes:{...c,...c.props}});ji("files:node:updated",d)}}catch(s){Be.error("Error saving image",{error:s}),Jr(t("viewer","Error saving image"))}},handleKeydown(e){e.key!=="Enter"&&e.stopImmediatePropagation(),e.key==="Escape"&&(e.preventDefault(),document.querySelector(".FIE_topbar-close-button").click()),e.ctrlKey&&e.key==="s"&&(e.preventDefault(),document.querySelector(".FIE_topbar-save-button").click()),e.ctrlKey&&e.key==="z"&&(e.preventDefault(),document.querySelector(".FIE_topbar-undo-button").click())}}};var V0=function(){var e=this,n=e._self._c;return n("div",[n("div",e._b({ref:"editor",staticClass:"viewer__image-editor"},"div",e.themeDataAttr,!1))])},R0=[],H0=gn(z0,V0,R0,!1,null,"a18906d9");const U0=H0.exports,Y0=["jpg","jpeg","png"],W0=new RegExp(`\\.(${Y0.join("|")})$`,"i");function q0(e,n){return n.find(i=>i.fileid===e)}function K0(e,n){return n.find(i=>i.filename!==e.filename&&i.basename.startsWith(e.name)&&W0.test(i.basename))}async function qr(e){const n=await qs().getFileContents(`${Ks()}${e}`,{details:!0});return URL.createObjectURL(new Blob([n.data],{type:n.headers["content-type"]}))}He.use(fi);const G0={name:"Images",components:{ImageEditor:U0,PlayCircleOutline:Ou,NcLoadingIcon:jr},props:{editing:{type:Boolean,default:!1}},data(){return{dragging:!1,shiftX:0,shiftY:0,zoomRatio:1,fallback:!1,livePhotoCanBePlayed:!1,zooming:!1,pinchDistance:0,pinchStartZoomRatio:1,pointerCac
992he:[]}},computed:{src(){return this.source??this.davPath},zoomHeight(){return Math.round(this.height*this.zoomRatio)},zoomWidth(){return Math.round(this.width*this.zoomRatio)},alt(){return this.basename},imgStyle(){return this.zoomRatio===1?{height:this.zoomHeight+"px",width:this.zoomWidth+"px"}:{marginTop:Math.round(this.shiftY*2)+"px",marginLeft:Math.round(this.shiftX*2)+"px",height:this.zoomHeight+"px",width:this.zoomWidth+"px"}},livePhoto(){if(this.metadataFilesLivePhoto!==void 0)return q0(this.metadataFilesLivePhoto,this.fileList)},livePhotoSrc(){return this.livePhoto?.source??this.livePhotoDavPath},livePhotoDavPath(){return this.livePhoto?Zs({filename:this.livePhoto.filename,basename:this.livePhoto.basename}):null}},asyncComputed:{data(){return this.mime==="image/svg+xml"?this.getBase64FromImage():this.mime==="image/gif"?this.src:this.source&&!this.hasPreview&&!this.previewUrl?this.fallback?qr(this.filename):this.source:this.fallback?this.src:this.previewPath}},watch:{active(e,n){e===!0&&n===!1?(this.resetZoom(),window.addEventListener("pointerout",this.pointerUp)):e===!1&&window.removeEventListener("pointerout",this.pointerUp)}},methods:{updateImgSize(){this.$refs.image?(this.naturalHeight=this.$refs.image.naturalHeight,this.naturalWidth=this.$refs.image.naturalWidth):this.$refs.video&&(this.naturalHeight=this.$refs.video.videoHeight,this.naturalWidth=this.$refs.video.videoWidth),this.updateHeightWidth(),this.doneLoading()},async getBase64FromImage(){const e=await ft.get(this.src),n=Xs.sanitize(e.data);return`data:${this.mime};base64,${btoa(unescape(encodeURIComponent(n)))}`},updateShift(e,n,i){const a=this.width*i-this.width,r=this.height*i-this.height;this.shiftX=Math.min(Math.max(e,-a/2),a/2),this.shiftY=Math.min(Math.max(n,-r/2),r/2)},updateZoomAndShift(e,n,i){if(!this.canZoom)return;const a=this.$refs.image??this.$refs.video,r=e-a.getBoundingClientRect().x-this.width*this.zoomRatio/2,o=n-a.getBoundingClientRect().y-this.height*this.zoomRatio/2,l=r/(this.width*this.zoomRatio),u=o/(this.height*this.zoomRatio),s=this.width*i-this.width*this.zoomRatio,h=this.height*i-this.height*this.zoomRatio,c=this.shiftX-l*s,d=this.shiftY-u*h;this.updateShift(c,d,i),this.zoomRatio=i}
992,distanceBetweenTouches(){const e=this.pointerCache[0],n=this.pointerCache[1],i=n.x-e.x,a=n.y-e.y;return Math.sqrt(i*i+a*a)},updateZoom(e){if(!this.canZoom)return;const n=e.deltaY<0?Math.min(this.zoomRatio*1.1,5):Math.max(this.zoomRatio/1.1,1);if(n===1)return this.resetZoom();this.disableSwipe(),this.updateZoomAndShift(e.clientX,e.clientY,n)},resetZoom(){this.enableSwipe(),this.zoomRatio=1,this.shiftX=0,this.shiftY=0},pointerDown(e){this.pointerCache.push({pointerId:e.pointerId,x:e.clientX,y:e.clientY}),this.pointerCache.length===1&&(this.dragX=e.clientX,this.dragY=e.clientY,this.dragging=!0),this.pointerCache.length===2&&(this.pinchDistance=this.distanceBetweenTouches(),this.pinchStartZoomRatio=this.zoomRatio,this.zooming=!0,this.disableSwipe())},pointerUp(e){const n=this.pointerCache.findIndex(i=>i.pointerId===e.pointerId);this.pointerCache.splice(n,1),this.dragging=!1,this.zooming=!1},pointerMove(e){if(this.canZoom){if(this.pointerCache.length>0){const n=this.pointerCache.findIndex(i=>i.pointerId===e.pointerId);n>
992=0&&(this.pointerCache[n].x=e.clientX,this.pointerCache[n].y=e.clientY)}if(this.pointerCache.length===1&&this.dragging&&!this.zooming&&this.zoomRatio>1){const{clientX:n,clientY:i}=e,a=this.shiftX+(n-this.dragX),r=this.shiftY+(i-this.dragY);this.updateShift(a,r,this.zoomRatio),this.dragX=n,this.dragY=i}if(this.pointerCache.length===2&&this.zooming){const n=this.distanceBetweenTouches(),i=Math.min(Math.max(this.pinchStartZoomRatio*(n/this.pinchDistance),1),5),a=this.pointerCache[0],r=this.pointerCache[1],o=(a.x+r.x)/2,l=(a.y+r.y)/2;this.updateZoomAndShift(o,l,i)}}},onDblclick(){this.canZoom&&(this.zoomRatio>1?this.resetZoom():this.zoomRatio=1.3)},onClose(){this.$emit("update:editing",!1)},onFail(){this.fallback||(console.error(`Loading of file preview ${Gs(this.src)} failed, falling back to original file`),this.fallback=!0)},doneLoadingLivePhoto(){this.livePhotoCanBePlayed=!0,this.doneLoading()},playLivePhoto(){this.livePhotoCanBePlayed&&this.$refs.video.play()},stopLivePhoto(){this.$refs.video.load()},t:A}};var X0=function(){var e=this,n=e._self._c;return n("div",{staticClass:"image_container"},[e.editing?n("ImageEditor",{attrs:{mime:e.mime,src:e.src,fileid:e.fileid},on:{close:e.onClose}}):e.data!==null?[e.livePhotoCanBePlayed?e._e():n("img",{ref:"image",class:{dragging:e.dragging,loaded:e.loaded,zoomed:e.zoomRatio>1},style:e.imgStyle,attrs:{alt:e.alt,src:e.data},on:{"~!error":function(i){return i.preventDefault(),i.stopPropagation(),e.onFail.apply(null,arguments)},load:e.updateImgSize,wheel:function(i){return i.stopPropagation(),i.preventDefault(),e.updateZoom.apply(null,arguments)},dblclick:function(i){return i.preventDefault(),e.onDblclick.apply(null,arguments)},pointerdown:function(i){return i.preventDefault(),e.pointerDown.apply(null,arguments)},pointerup:function(i){return i.preventDefault(),e.pointerUp.apply(null,arguments)},pointermove:function(i){return i.preventDefault(),e.pointerMove.apply(null,arguments)}}}),e.livePhoto?[n("video",{directives:[{name:"show",rawName:"v-show",value:e.livePhotoCanBePlayed,expression:"livePhotoCanBePlayed"}],ref:"video",class:{dragging:e.dragging,loaded:e.loaded,zoomed:e.zoomRatio>1},style:e.imgStyle,attrs:{playsinline:!0,poster:e.data,src:e.livePhotoSrc,preload:"metadata"},on:{canplaythrough:e.doneLoadingLivePhoto,loadedmetadata:e.updateImgSize,wheel:function(i){return i.stopPropagation(),i.preventDefault(),e.updateZoom.apply(null,arguments)},"~!error":function(i){return i.preventDefault(),i.stopPropagation(),e.onFail.apply(null,arguments)},dblclick:function(i){return i.preventDefault(),e.onDblclick.apply(null,arguments)},pointerdown:function(i){return i.preventDefault(),e.pointerDown.apply(null,arguments)},pointerup:function(i){return i.preventDefault(),e.pointerUp.apply(null,arguments)},pointermove:function(i){return i.preventDefault(),e.pointerMove.apply(null,arguments)},ended:e.stopLivePhoto}}),e.width!==0?n("button",{staticClass:"live-photo_play_button",style:{left:`calc(50% - ${e.width/2}px)`},attrs:{disabled:!e.livePhotoCanBePlayed,"aria-description":e.t("viewer","Play the live photo")},on:{click:e.playLivePhoto,pointerenter:e.playLivePhoto,focus:e.playLivePhoto,pointerleave:e.stopLivePhoto,blur:e.stopLivePhoto}},[e.livePhotoCanBePlayed?n("PlayCircleOutline"):n("NcLoadingIcon"),e._v(" "+e._s(e.t("viewer","LIVE"))+" ")],1):e._e()]:e._e()]:e._e()],2)},Z0=[],J0=gn(G0,X0,Z0,!1,null,"38b7dcaa");const Q0=J0.exports,em=so(ao,"enabled_preview_providers",[]),Ds=["image/heic","image/heif","image/tiff","image/x-xbitmap","image/emf"],tm=["image/apng","image/bmp","image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/x-icon"],nm=()=>Ds.filter(e=>em.findIndex(n=>{const i=new RegExp(n.replace(/^\/|\/$/g,""),"i");return e.match(i)})>-1),As=nm(),ro=Ds.filter(e=>!As.includes(e));ro.length>0&&Be.warn("Some mimes were ignored because they are not enabled in the server previews config",{ignoredMimes:ro});const im={id:"images",group:"media",mimes:[...tm,...As],component:Q0},Es={restart:A("viewer","Restart"),rewind:A("viewer","Rewind {seektime}s"),play:A("viewer","Play"),pause:A("viewer","Pause"),fastForward:A("viewer","Forward {seektime}s"),seek:A("viewer","Seek"),seekLabel:A("viewer","{currentTime} of {duration}"),played:A("viewer","Played"),buffered:A("viewer","Buffered"),currentTime:A("viewer","Current time"),duration:A("viewer","Duration"),volume:A("viewer","Volume"),mute:A("viewer","Mute"),unmute:A("viewer","Unmute"),enableCaptions:A("viewer","Enable captions"),disableCaptions:A("viewer","Disable captions"),download:A("viewer","Download"),enterFullscreen:A("viewer","Enter fullscreen"),exitFullscreen:A("viewer","Exit fullscreen"),frameTitle:A("viewer","Player for {title}"),captions:A("viewer","Captions"),settings:A("viewer","Settings"),pip:A("viewer","PIP"),menuBack:A("viewer","Go back to previous menu"),speed:A("viewer","Speed"),normal:A("viewer","Normal"),quality:A("viewer","Quality"),loop:A("viewer","Loop"),start:A("viewer","Start"),end:A("viewer","End"),all:A("viewer","All"),reset:A("viewer","Reset"),disabled:A("viewer","Disabled"),enabled:A("viewer","Enabled"),advertisement:A("viewer","Ad")};function js(e){const n=new Intl.NumberFormat(Et()),i=a=>a===1?A("viewer","Normal"):`${n.format(a)}×`;e.querySelectorAll('.plyr__menu__container [id$="-speed"] [role="menuitemradio"]').forEach(a=>{const r=Number.parseFloat(a.value);if(Number.isNaN(r))return;const o=a.querySelector("span");o&&(o.textContent=i(r))}),e.querySelectorAll(".plyr__menu__value").forEach(a=>{const r=/^(\d+(?:\.\d+)?)×$/.exec((a.textContent??"").trim());r&&(a.textContent=`${n.format(Number.parseFloat(r[1]))}×`)})}const rm=()=>Ft(()=>import("./index.esm-CAkhAkGw.chunk.mjs"),[],import.meta.url),am=fo("viewer","blank.mp4");He.use(fi);const om={name:"Videos",components:{VuePlyr:rm},data(){return{isFullscreenButtonVisible:!1,fallback:!1,speedListenerBound:!1}},computed:{livePhotoPath(){const e=K0(this,this.fileList);if(e!==void 0)return Js(e)},player(){return this.$refs.plyr.player},options(){return{autoplay:this.active===!0,blankVideo:am,controls:["play-large","play","progress","current-time","mute","volume","captions","settings","fullscreen"],loadSprite:!1,i18n:Es,fullscreen:{iosNative:!0}}}},asyncComputed:{async url(){return this.fallback?qr(this.filename):this.src}},watch:{active(e,n){e===!0&&n===!1?this.player.play():e===!1&&n===!0&&this.player.pause()}},updated(){const e=this.$el.querySelectorAll(".plyr__controls__item");!e||!e.length||([...e].forEach(n=>
992{n.getAttribute("data-plyr")==="fullscreen"&&n.addEventListener("click",this.hideHeaderAndFooter),n?.addEventListener&&(n.addEventListener("mouseenter",this.disableSwipe),n.addEventListener("mouseleave",this.enableSwipe))}),!this.speedListenerBound&&this.$refs.plyr?.player&&(this.$refs.plyr.player.on("ratechange",this.localizeSpeed),this.speedListenerBound=!0),this.localizeSpeed())},beforeDestroy(){Be.debug("Closing video stream",{filename:this.filename}),this.$refs.video?.pause?.(),this.player.stop(),this.player.destroy()},methods:{localizeSpeed(){this.$nextTick(()=>js(this.$el))},hideHeaderAndFooter(){this.isFullscreenButtonVisible=!this.isFullscreenButtonVisible,this.isFullscreenButtonVisible?(document.body.querySelector("main").classList.add("viewer__hidden-fullscreen"),document.body.querySelector("footer").classList.add("viewer__hidden-fullscreen")):(document.body.querySelector("main").classList.remove("viewer__hidden-fullscreen"),document.body.querySelector("footer").classList.remove("viewer__hidden-fullscreen"))},updateVideoSize(){this.naturalHeight=this.$refs.video?.videoHeight,this.naturalWidth=this.$refs.video?.videoWidth,this.updateHeightWidth()},donePlaying(){this.$refs.video.autoplay=!1,this.$refs.video.load()},onLoadedMetadata(){this.updateVideoSize(),this.active||this.player.stop()},onFail(){this.fallback||(console.error(`Loading of file ${this.filename} failed, falling back to fetching it by hand`),this.fallback=!0)}}};var sm=function(){var e=this,n=e._self._c;return e.url?n("div",[n("VuePlyr",{ref:"plyr",style:{height:e.height+"px",width:e.width+"px"},attrs:{options:e.options}},[n("video",{ref:"video",attrs:{autoplay:e.active?!0:null,playsinline:!0,poster:e.livePhotoPath,src:e.url,preload:"metadata"},on:{"~!error":function(i){return i.preventDefault(),i.stopPropagation(),e.onFail.apply(null,arguments)},ended:e.donePlaying,canplay:e.doneLoading,loadedmetadata:e.onLoadedMetadata}},[e._v(" "+e._s(e.t("viewer","Your browser does not support videos."))+" ")])])],1):e._e()},lm=[],um=gn(om,sm,lm,!1,null,"3bb3d003");const cm=um.exports,hm={id:"videos",group:"media",mimes:["video/mpeg","video/ogg","video/webm","video/mp4","video/x-m4v","video/x-flv","video/quicktime"],mimesAliases:{"video/x-matroska":"video/webm"},component:cm},dm=()=>Ft(()=>import("./index.esm-CAkhAkGw.chunk.mjs"),[],import.meta.url);He.use(fi);const pm={name:"Audios",components:{VuePlyr:dm},data(){return{fallback:!1,speedListenerBound:!1}},computed:{player(){return this.$refs.plyr.player},options(){return{autoplay:this.active===!0,blankVideo:"/blank.aac",controls:["play-large","play","progress","current-time","mute","volume","settings"],loadSprite:!1,i18n:Es}}},asyncComputed:{async url(){return this.fallback?qr(this.filename):this.src}},watch:{active(e,n){e===!0&&n===!1?this.player.play():e===!1&&n===!0&&this.player.pause()}},updated(){const e=this.$el.querySelectorAll(".plyr__controls__item");!e||!e.length||([...e].forEach(n=>{n?.addEventListener&&(n.addEventListener("mouseenter",this.disableSwipe),n.addEventListener("mouseleave",this.enableSwipe))}),!this.speedListenerBound&&this.$refs.plyr?.player&&(this.$refs.plyr.player.on("ratechange",this.localizeSpeed),this.speedListenerBound=!0),this.localizeSpeed())},beforeDestroy(){Be.debug("Closing audio stream",{filename:this.filename}),this.$refs.audio.pause(),this.player.stop(),this.player.destroy()},methods:{localizeSpeed(){this.$nextTick(()=>js(this.$el))},donePlaying(){this.$refs.audio.autoplay=!1,this.$refs.audio.load()},onFail(){this.fallback||(console.error(`Loading of file ${this.filename} failed, falling back to fetching it by hand`),this.fallback=!0)}}};var fm=function(){var e=this,n=e._self._c;return e.url?n("div",[n("VuePlyr",{ref:"plyr",attrs:{options:e.options}},[n("audio",{ref:"audio",attrs:{autoplay:e.active,src:e.url,preload:"metadata"},on:{"~!error":function(i){return i.preventDefault(),i.stopPropagation(),e.onFail.apply(null,arguments)},ended:e.donePlaying,canplay:e.doneLoading}},[e._v(" "+e._s(e.t("viewer","Your browser does not support audio."))+" ")])])],1):e._e()},mm=[],vm=gn(pm,fm,mm,!1,null,"e9b8b546");const gm=vm.exports,bm={id:"audios",group:"media",mimes:["audio/aac","audio/aacp","audio/flac","audio/mp4","audio/mpeg","audio/ogg","audio/vorbis","audio/wav","audio/webm"],component:gm};class ym{_state;_mimetypes;_mimetypesCompare;constructor(){this._mimetypes=[],this._mimetypesCompare=[],this._state={},this._state.file="",this._state.fileInfo=null,this._state.compareFileInfo=null,this._state.files=[],this._state.enableSidebar=!0,this._state.el=null,this._state.loadMore=()=>[],this._state.onPrev=()=>{},this._state.onNext=()=>{},this._state.onClose=()=>{},this._state.canLoop=!0,this._state.handlers=[],this._state.overrideHandlerId=null,this.registerHandler(im),this.registerHandler(hm),this.registerHandler(bm),Be.debug("OCA.Viewer initialized")}get availableHandlers(){return this._state.handlers}registerHandler(n){const i=this.validateHandler(n);if(i){Be.error("Could not register handler",{error:i,handler:n});return}n.downloadCallback||(n.downloadCallback=()=>{}),this._state.handlers.push(n);const a=[...n.mimes,...Object.keys(n.mimesAliases||{})];this._mimetypes.push.apply(this._mimetypes,a),n?.canCompare===!0&&this._mimetypesCompare.push.apply(this._mimetypesCompare,a)}validateHandler({id:n,mimes:i,mimesAliases:a,component:r}
992){if(!n||n.trim()===""||typeof n!="string")return"The handler doesn't have a valid id";if(this._state.handlers.find(o=>o.id===n))return"The handler is already registered";if(!(i&&Array.isArray(i))&&!a)return"Handler needs a valid mime array or mimesAliases";if(!r||typeof r!="object"&&typeof r!="function")return"The handler doesn't have a valid component"}get file(){return this._state.file}get fileInfo(){return this._state.fileInfo}get compareFileInfo(){return this._state.compareFileInfo}get files(){return this._state.files}get enableSidebar(){return this._state.enableSidebar}get el(){return this._state.el}get mimetypes(){return this._mimetypes}get mimetypesCompare(){return this._mimetypesCompare}get loadMore(){return this._state.loadMore}get onPrev(){return this._state.onPrev}get onNext(){return this._state.onNext}get onClose(){return this._state.onClose}get canLoop(){return this._state.canLoop}get overrideHandlerId(){return this._state.overrideHandlerId}setRootElement(n=null){if(this._state.file)throw new Error("Please set root element before calling Viewer.open().");this._state.el=n}open({path:n,fileInfo:i,list:a=[],enableSidebar:r=!0,loadMore:o=()=>[],canLoop:l=!0,onPrev:u=()=>{},onNext:s=()=>{},onClose:h=()=>{}}={}){if(typeof arguments[0]=="string")throw new Error("Opening the viewer with a single string parameter is deprecated. Please use a destructuring object instead",`OCA.Viewer.open({ path: '${n}' })`);if(!n&&!i)throw new Error("Viewer needs either an URL or path to open. None given");if(n&&!n.startsWith("/"))throw new Error("Please use an absolute path");if(!Array.isArray(a))throw new Error("The files list must be an array");if(typeof o!="function")throw new Error("The loadMore method must be a function");n?this._state.file=n:this._state.fileInfo=i,this._state.el||(this._state.files=a,this._state.enableSidebar=r,this._state.loadMore=o,this._state.onPrev=u,this._state.onNext=s,this._state.onClose=h,this._state.canLoop=l)}openWith(n,i={}){this._state.overrideHandlerId=n,this.open(i)}compare(n,i){this.open({fileInfo:n}),this._state.compareFileInfo=i}close(){this._state.file="",this._state.fileInfo=null,this._state.files=[],this._state.enableSidebar=!0,this._state.canLoop=!0,this._state.loadMore=()=>[],this._state.overrideHandlerId=null}}Qs(),window.OCA=window.OCA??{},window.OCA.Viewer=new ym,window.OCA.Viewer.version=oo,window._oca_viewer_handlers&&window._oca_viewer_handlers.forEach(e=>window.OCA.Viewer.registerHandler(e));const wm=Object.freeze(Object.defineProperty({__proto__:null,default:Nd},Symbol.toStringTag,{value:"Module"})),xm=Object.freeze(Object.defineProperty({__proto__:null,default:zr},Symbol.toStringTag,{value:"Module"}));
993//# sourceMappingURL=viewer-init.mjs.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.