diff --git a/docs-build/js/basic-usage.vue b/docs-build/js/basic-usage.vue index 419a8c1..61ba320 100644 --- a/docs-build/js/basic-usage.vue +++ b/docs-build/js/basic-usage.vue @@ -10,9 +10,7 @@ :key="index" @contextmenu.prevent="$refs.menu.open" > -
+
diff --git a/docs/demos/basic.md b/docs/demos/basic.md index 290d1cc..ed5e98e 100644 --- a/docs/demos/basic.md +++ b/docs/demos/basic.md @@ -26,9 +26,7 @@ sort: 1 :key="index" @contextmenu.prevent="$refs.menu.open" > -
+
diff --git a/docs/scripts/vue-context-demos.js b/docs/scripts/vue-context-demos.js index 48b3450..a628945 100644 --- a/docs/scripts/vue-context-demos.js +++ b/docs/scripts/vue-context-demos.js @@ -1,2 +1,2 @@ /*! For license information please see vue-context-demos.js.LICENSE.txt */ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=6)}([function(e,t,n){var r=n(11);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){e.exports=n(7)},function(e,t,n){var r=n(14);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,i);r.locals&&(e.exports=r.locals)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(o).concat([i]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i=0&&f.splice(t,1)}function g(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return y(t,e.attrs),h(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function b(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=o}if(t.singleton){var a=u++;n=l||(l=g(t)),r=w.bind(null,n,a,!1),i=w.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),h(e,t),t}(t),r=$.bind(null,n,t),i=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),r=C.bind(null,n),i=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=v(e,t);return p(n,t),function(e){for(var r=[],i=0;i=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function h(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(e,t){return b.call(e,t)}function x(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var w=/-(\w)/g,C=x((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),$=x((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,S=x((function(e){return e.replace(k,"-$1").toLowerCase()})),A=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function O(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function T(e,t){for(var n in t)e[n]=t[n];return e}function E(e){for(var t={},n=0;n0,Y=G&&G.indexOf("edge/")>0,Q=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===W),ee=(G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/)),te={}.watch,ne=!1;if(q)try{var re={};Object.defineProperty(re,"passive",{get:function(){ne=!0}}),window.addEventListener("test-passive",null,re)}catch(r){}var ie=function(){return void 0===V&&(V=!q&&!J&&void 0!==t&&t.process&&"server"===t.process.env.VUE_ENV),V},oe=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"==typeof e&&/native code/.test(e.toString())}var se,ce="undefined"!=typeof Symbol&&ae(Symbol)&&"undefined"!=typeof Reflect&&ae(Reflect.ownKeys);se="undefined"!=typeof Set&&ae(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var le=M,ue=0,fe=function(){this.id=ue++,this.subs=[]};fe.prototype.addSub=function(e){this.subs.push(e)},fe.prototype.removeSub=function(e){y(this.subs,e)},fe.prototype.depend=function(){fe.target&&fe.target.addDep(this)},fe.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===S(e)){var c=Ue(String,i.type);(c<0||s0&&(ut((c=e(c,(n||"")+"_"+r))[0])&&ut(u)&&(f[l]=ye(u.text+c[0].text),c.shift()),f.push.apply(f,c)):s(c)?ut(u)?f[l]=ye(u.text+c):""!==c&&f.push(ye(c)):ut(c)&&ut(u)?f[l]=ye(u.text+c.text):(a(t._isVList)&&o(c.tag)&&i(c.key)&&o(n)&&(c.key="__vlist"+n+"_"+r+"__"),f.push(c)));return f}(e):void 0}function ut(e){return o(e)&&o(e.text)&&!1===e.isComment}function ft(e,t){if(e){for(var n=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=ht(t,c,e[c]))}else i={};for(var l in t)l in i||(i[l]=mt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=i),H(i,"$stable",a),H(i,"$key",s),H(i,"$hasNormal",o),i}function ht(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:lt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function mt(e,t){return function(){return e[t]}}function gt(e,t){var n,r,i,a,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;rdocument.createEvent("Event").timeStamp&&(cn=function(){return ln.now()})}function un(){var e,t;for(sn=cn(),on=!0,en.sort((function(e,t){return e.id-t.id})),an=0;anan&&en[n].id>e.id;)n--;en.splice(n+1,0,e)}else en.push(e);rn||(rn=!0,tt(un))}}(this)},dn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){He(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},dn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},dn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},dn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var pn={enumerable:!0,configurable:!0,get:M,set:M};function vn(e,t,n){pn.get=function(){return this[t][n]},pn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,pn)}var hn={lazy:!0};function mn(e,t,n){var r=!ie();"function"==typeof n?(pn.get=r?gn(t):yn(n),pn.set=M):(pn.get=n.get?r&&!1!==n.cache?gn(t):yn(n.get):M,pn.set=n.set||M),Object.defineProperty(e,t,pn)}function gn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),fe.target&&t.depend(),t.value}}function yn(e){return function(){return e.call(this,this)}}function bn(e,t,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var _n=0;function xn(e){var t=e.options;if(e.super){var n=xn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&T(e.extendOptions,r),(t=e.options=De(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function wn(e){this._init(e)}function Cn(e){return e&&(e.Ctor.options.name||e.tag)}function $n(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===l.call(n)&&e.test(t));var n}function kn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=Cn(a.componentOptions);s&&!t(s)&&Sn(n,o,r,i)}}}function Sn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,y(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=_n++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=De(xn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Wt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=dt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return Ft(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ft(e,t,n,r,i,!0)};var o=n&&n.data;Ae(e,"$attrs",o&&o.attrs||r,null,!0),Ae(e,"$listeners",t._parentListeners||r,null,!0)}(t),Qt(t,"beforeCreate"),function(e){var t=ft(e.$options.inject,e);t&&($e(!1),Object.keys(t).forEach((function(n){Ae(e,n,t[n])})),$e(!0))}(t),function(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&$e(!1);var o=function(o){i.push(o);var a=Re(o,t,n,e);Ae(r,o,a),o in e||vn(e,"_props",o)};for(var a in t)o(a);$e(!0)}(e,t.props),t.methods&&function(e,t){for(var n in e.$options.props,t)e[n]="function"!=typeof t[n]?M:A(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){pe();try{return e.call(t,t)}catch(e){return He(e,t,"data()"),{}}finally{ve()}}(t,e):t||{})||(t={});for(var n,r=Object.keys(t),i=e.$options.props,o=(e.$options.methods,r.length);o--;){var a=r[o];i&&_(i,a)||(void 0,36!==(n=(a+"").charCodeAt(0))&&95!==n&&vn(e,"_data",a))}Se(t,!0)}(e):Se(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ie();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new dn(e,a||M,M,hn)),i in e||mn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==te&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i1?O(t):t;for(var n=O(arguments,1),r='event handler for "'+e+'"',i=0,o=t.length;iparseInt(this.max)&&Sn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return B}};Object.defineProperty(e,"config",t),e.util={warn:le,extend:T,mergeOptions:De,defineReactive:Ae},e.set=Oe,e.delete=Te,e.nextTick=tt,e.observable=function(e){return Se(e),e},e.options=Object.create(null),R.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,On),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=O(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=De(this.options,e),this}}(e),function(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name,a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=De(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)vn(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)mn(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,R.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=T({},a.options),i[r]=a,a}}(e),function(e){R.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(wn),Object.defineProperty(wn.prototype,"$isServer",{get:ie}),Object.defineProperty(wn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wn,"FunctionalRenderContext",{value:It}),wn.version="2.6.12";var Tn=h("style,class"),En=h("input,textarea,option,select,progress"),Mn=function(e,t,n){return"value"===n&&En(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},In=h("contenteditable,draggable,spellcheck"),Nn=h("events,caret,typing,plaintext-only"),jn=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Ln="http://www.w3.org/1999/xlink",Dn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Pn=function(e){return Dn(e)?e.slice(6,e.length):""},Rn=function(e){return null==e||!1===e};function Fn(e,t){return{staticClass:Bn(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Bn(e,t){return e?t?e+" "+t:e:t||""}function Un(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r-1?dr(e,t,n):jn(t)?Rn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):In(t)?e.setAttribute(t,function(e,t){return Rn(t)||"false"===t?"false":"contenteditable"===e&&Nn(t)?t:"true"}(t,n)):Dn(t)?Rn(n)?e.removeAttributeNS(Ln,Pn(t)):e.setAttributeNS(Ln,t,n):dr(e,t,n)}function dr(e,t,n){if(Rn(n))e.removeAttribute(t);else{if(X&&!Z&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var pr={create:ur,update:ur};function vr(e,t){var n=t.elm,r=t.data,a=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=function(e){for(var t=e.data,n=e,r=e;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Fn(r.data,t));for(;o(n=n.parent);)n&&n.data&&(t=Fn(t,n.data));return function(e,t){return o(e)||o(t)?Bn(e,Un(t)):""}(t.staticClass,t.class)}(t),c=n._transitionClasses;o(c)&&(s=Bn(s,Un(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var hr,mr,gr,yr,br,_r,xr={create:vr,update:vr},wr=/[\w).+\-_$\]]/;function Cr(e){var t,n,r,i,o,a=!1,s=!1,c=!1,l=!1,u=0,f=0,d=0,p=0;for(r=0;r=0&&" "===(h=e.charAt(v));v--);h&&wr.test(h)||(l=!0)}}else void 0===i?(p=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(p,r).trim()),p=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==p&&m(),o)for(r=0;r-1?{exp:e.slice(0,yr),key:'"'+e.slice(yr+1)+'"'}:{exp:e,key:null};for(mr=e,yr=br=_r=0;!Br();)Ur(gr=Fr())?Vr(gr):91===gr&&Hr(gr);return{exp:e.slice(0,br),key:e.slice(br+1,_r)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Fr(){return mr.charCodeAt(++yr)}function Br(){return yr>=hr}function Ur(e){return 34===e||39===e}function Hr(e){var t=1;for(br=yr;!Br();)if(Ur(e=Fr()))Vr(e);else if(91===e&&t++,93===e&&t--,0===t){_r=yr;break}}function Vr(e){for(var t=e;!Br()&&(e=Fr())!==t;);}var zr,Kr="__r";function qr(e,t,n){var r=zr;return function i(){null!==t.apply(null,arguments)&&Gr(e,i,n,r)}}var Jr=Je&&!(ee&&Number(ee[1])<=53);function Wr(e,t,n,r){if(Jr){var i=sn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}zr.addEventListener(e,t,ne?{capture:n,passive:r}:n)}function Gr(e,t,n,r){(r||zr).removeEventListener(e,t._wrapper||t,n)}function Xr(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};zr=t.elm,function(e){if(o(e.__r)){var t=X?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}o(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),at(n,r,Wr,Gr,qr,t.context),zr=void 0}}var Zr,Yr={create:Xr,update:Xr};function Qr(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in o(c.__ob__)&&(c=t.data.domProps=T({},c)),s)n in c||(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var l=i(r)?"":String(r);ei(a,l)&&(a.value=l)}else if("innerHTML"===n&&zn(a.tagName)&&i(a.innerHTML)){(Zr=Zr||document.createElement("div")).innerHTML=""+r+"";for(var u=Zr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(r!==s[n])try{a[n]=r}catch(e){}}}}function ei(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.number)return v(n)!==v(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ti={create:Qr,update:Qr},ni=x((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function ri(e){var t=ii(e.style);return e.staticStyle?T(e.staticStyle,t):t}function ii(e){return Array.isArray(e)?E(e):"string"==typeof e?ni(e):e}var oi,ai=/^--/,si=/\s*!important$/,ci=function(e,t,n){if(ai.test(t))e.style.setProperty(t,n);else if(si.test(n))e.style.setProperty(S(t),n.replace(si,""),"important");else{var r=ui(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(pi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function hi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(pi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function mi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,gi(e.name||"v")),T(t,e),t}return"string"==typeof e?gi(e):void 0}}var gi=x((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),yi=q&&!Z,bi="transition",_i="animation",xi="transition",wi="transitionend",Ci="animation",$i="animationend";yi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(xi="WebkitTransition",wi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ci="WebkitAnimation",$i="webkitAnimationEnd"));var ki=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Si(e){ki((function(){ki(e)}))}function Ai(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),vi(e,t))}function Oi(e,t){e._transitionClasses&&y(e._transitionClasses,t),hi(e,t)}function Ti(e,t,n){var r=Mi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===bi?wi:$i,c=0,l=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++c>=a&&l()};setTimeout((function(){c0&&(n=bi,u=a,f=o.length):t===_i?l>0&&(n=_i,u=l,f=c.length):f=(n=(u=Math.max(a,l))>0?a>l?bi:_i:null)?n===bi?o.length:c.length:0,{type:n,timeout:u,propCount:f,hasTransform:n===bi&&Ei.test(r[xi+"Property"])}}function Ii(e,t){for(;e.length1}function Ri(e,t){!0!==t.data.show&&ji(t)}var Fi=function(e){var t,n,r={},c=e.modules,l=e.nodeOps;for(t=0;tv?b(e,i(n[g+1])?null:n[g+1].elm,n,p,g,r):p>g&&x(t,d,v)}(d,h,g,n,u):o(g)?(o(e.text)&&l.setTextContent(d,""),b(d,null,g,0,g.length-1,n)):o(h)?x(h,0,h.length-1):o(e.text)&&l.setTextContent(d,""):e.text!==t.text&&l.setTextContent(d,t.text),o(v)&&o(p=v.hook)&&o(p=p.postpatch)&&p(e,t)}}}function k(e,t,n){if(a(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(j(zi(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Vi(e,t){return t.every((function(t){return!j(t,e)}))}function zi(e){return"_value"in e?e._value:e.value}function Ki(e){e.target.composing=!0}function qi(e){e.target.composing&&(e.target.composing=!1,Ji(e.target,"input"))}function Ji(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Wi(e){return!e.componentInstance||e.data&&e.data.transition?e:Wi(e.componentInstance._vnode)}var Gi={model:Bi,show:{bind:function(e,t,n){var r=t.value,i=(n=Wi(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,ji(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Wi(n)).data&&n.data.transition?(n.data.show=!0,r?ji(n,(function(){e.style.display=e.__vOriginalDisplay})):Li(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Xi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Zi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Zi(zt(t.children)):e}function Yi(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[C(o)]=i[o];return t}function Qi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var eo=function(e){return e.tag||Vt(e)},to=function(e){return"show"===e.name},no={name:"transition",props:Xi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(eo)).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Zi(i);if(!o)return i;if(this._leaving)return Qi(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=Yi(this),l=this._vnode,u=Zi(l);if(o.data.directives&&o.data.directives.some(to)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!Vt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var f=u.data.transition=T({},c);if("out-in"===r)return this._leaving=!0,st(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Qi(e,i);if("in-out"===r){if(Vt(o))return l;var d,p=function(){d()};st(c,"afterEnter",p),st(c,"enterCancelled",p),st(f,"delayLeave",(function(e){d=e}))}}return i}}},ro=T({tag:String,moveClass:String},Xi);function io(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function oo(e){e.data.newPos=e.elm.getBoundingClientRect()}function ao(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete ro.mode;var so={Transition:no,TransitionGroup:{props:ro,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Xt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Yi(this),s=0;s-1?Jn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Jn[e]=/HTMLUnknownElement/.test(t.toString())},T(wn.options.directives,Gi),T(wn.options.components,so),wn.prototype.__patch__=q?Fi:M,wn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ge),Qt(e,"beforeMount"),r=function(){e._update(e._render(),n)},new dn(e,r,M,{before:function(){e._isMounted&&!e._isDestroyed&&Qt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Qt(e,"mounted")),e}(this,e=e&&q?Gn(e):void 0,t)},q&&setTimeout((function(){B.devtools&&oe&&oe.emit("init",wn)}),0);var co,lo=/\{\{((?:.|\r?\n)+?)\}\}/g,uo=/[-.*+?^${}()|[\]\/\\]/g,fo=x((function(e){var t=e[0].replace(uo,"\\$&"),n=e[1].replace(uo,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")})),po={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=jr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Nr(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}},vo={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=jr(e,"style");n&&(e.staticStyle=JSON.stringify(ni(n)));var r=Nr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},ho=h("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),mo=h("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),go=h("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),yo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,bo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,_o="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",xo="((?:"+_o+"\\:)?"+_o+")",wo=new RegExp("^<"+xo),Co=/^\s*(\/?)>/,$o=new RegExp("^<\\/"+xo+"[^>]*>"),ko=/^]+>/i,So=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Mo=/&(?:lt|gt|quot|amp|#39);/g,Io=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,No=h("pre,textarea",!0),jo=function(e,t){return e&&No(e)&&"\n"===t[0]};function Lo(e,t){var n=t?Io:Mo;return e.replace(n,(function(e){return Eo[e]}))}var Do,Po,Ro,Fo,Bo,Uo,Ho,Vo,zo=/^@|^v-on:/,Ko=/^v-|^@|^:|^#/,qo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Jo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Wo=/^\(|\)$/g,Go=/^\[.*\]$/,Xo=/:(.*)$/,Zo=/^:|^\.|^v-bind:/,Yo=/\.[^.\]]+(?=[^\]]*$)/g,Qo=/^v-slot(:|$)|^#/,ea=/[\r\n]/,ta=/\s+/g,na=x((function(e){return(co=co||document.createElement("div")).innerHTML=e,co.textContent})),ra="_empty_";function ia(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:ua(t),rawAttrsMap:{},parent:n,children:[]}}function oa(e,t){var n,r;(r=Nr(n=e,"key"))&&(n.key=r),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Nr(e,"ref");t&&(e.ref=t,e.refInFor=function(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=jr(e,"scope"),e.slotScope=t||jr(e,"slot-scope")):(t=jr(e,"slot-scope"))&&(e.slotScope=t);var n=Nr(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Or(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot"))),"template"===e.tag){var r=Lr(e,Qo);if(r){var i=ca(r),o=i.name,a=i.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=r.value||ra}}else{var s=Lr(e,Qo);if(s){var c=e.scopedSlots||(e.scopedSlots={}),l=ca(s),u=l.name,f=l.dynamic,d=c[u]=ia("template",[],e);d.slotTarget=u,d.slotTargetDynamic=f,d.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=d,!0})),d.slotScope=s.value||ra,e.children=[],e.plain=!1}}}(e),function(e){"slot"===e.tag&&(e.slotName=Nr(e,"name"))}(e),function(e){var t;(t=Nr(e,"is"))&&(e.component=t),null!=jr(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var i=0;i-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Ir(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Rr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Rr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Rr(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Nr(e,"value")||"null";Ar(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Ir(e,"change",Rr(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,l=o?"change":"range"===r?Kr:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var f=Rr(t,u);c&&(f="if($event.target.composing)return;"+f),Ar(e,"value","("+t+")"),Ir(e,l,f,null,!0),(s||a)&&Ir(e,"blur","$forceUpdate()")}(e,r,i);else if(!B.isReservedTag(o))return Pr(e,r,i),!1;return!0},text:function(e,t){t.value&&Ar(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Ar(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:ho,mustUseProp:Mn,canBeLeftOpenTag:mo,isReservedTag:Kn,getTagNamespace:qn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(ma)},ya=x((function(e){return h("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));var ba=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,_a=/\([^)]*?\);*$/,xa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,wa={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ca={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},$a=function(e){return"if("+e+")return null;"},ka={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:$a("$event.target !== $event.currentTarget"),ctrl:$a("!$event.ctrlKey"),shift:$a("!$event.shiftKey"),alt:$a("!$event.altKey"),meta:$a("!$event.metaKey"),left:$a("'button' in $event && $event.button !== 0"),middle:$a("'button' in $event && $event.button !== 1"),right:$a("'button' in $event && $event.button !== 2")};function Sa(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Aa(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Aa(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Aa(e)})).join(",")+"]";var t=xa.test(e.value),n=ba.test(e.value),r=xa.test(e.value.replace(_a,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(ka[s])o+=ka[s],wa[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=$a(["ctrl","shift","alt","meta"].filter((function(e){return!c[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Oa).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Oa(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=wa[e],r=Ca[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ta={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:M},Ea=function(e){this.options=e,this.warn=e.warn||kr,this.transforms=Sr(e.modules,"transformCode"),this.dataGenFns=Sr(e.modules,"genData"),this.directives=T(T({},Ta),e.directives);var t=e.isReservedTag||I;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ma(e,t){var n=new Ea(t);return{render:"with(this){return "+(e?Ia(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ia(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Na(e,t);if(e.once&&!e.onceProcessed)return ja(e,t);if(e.for&&!e.forProcessed)return Da(e,t);if(e.if&&!e.ifProcessed)return La(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=Ba(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Va((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:C(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:Ba(t,n,!0);return"_c("+e+","+Pa(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Pa(e,t));var i=e.inlineTemplate?null:Ba(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];if(n&&1===n.type){var r=Ma(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Va(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ra(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ra))}function Fa(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return La(e,t,Fa,"null");if(e.for&&!e.forProcessed)return Da(e,t,Fa);var r=e.slotScope===ra?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Ba(e,t)||"undefined")+":undefined":Ba(e,t)||"undefined":Ia(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function Ba(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Ia)(a,t)+s}var c=n?function(e,t){for(var n=0,r=0;r]*>)","i")),d=e.replace(f,(function(e,n,r){return l=r.length,Oo(u)||"noscript"===u||(n=n.replace(//g,"$1").replace(//g,"$1")),jo(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));c+=e.length-d.length,e=d,S(u,c-l,c)}else{var p=e.indexOf("<");if(0===p){if(So.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),c,c+v+3),C(v+3);continue}}if(Ao.test(e)){var h=e.indexOf("]>");if(h>=0){C(h+2);continue}}var m=e.match(ko);if(m){C(m[0].length);continue}var g=e.match($o);if(g){var y=c;C(g[0].length),S(g[1],y,c);continue}var b=$();if(b){k(b),jo(b.tagName,e)&&C(1);continue}}var _=void 0,x=void 0,w=void 0;if(p>=0){for(x=e.slice(p);!($o.test(x)||wo.test(x)||So.test(x)||Ao.test(x)||(w=x.indexOf("<",1))<0);)p+=w,x=e.slice(p);_=e.substring(0,p)}p<0&&(_=e),_&&C(_.length),t.chars&&_&&t.chars(_,c-_.length,c)}if(e===n){t.chars&&t.chars(e);break}}function C(t){c+=t,e=e.substring(t)}function $(){var t=e.match(wo);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(C(t[0].length);!(n=e.match(Co))&&(r=e.match(bo)||e.match(yo));)r.start=c,C(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=c,i}}function k(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&go(n)&&S(r),s(n)&&r===n&&S(n));for(var l=a(n)||!!c,u=e.attrs.length,f=new Array(u),d=0;d=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var l=i.length-1;l>=a;l--)t.end&&t.end(i[l].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}S()}(e,{warn:Do,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,o,a,u,f){var d=r&&r.ns||Vo(e);X&&"svg"===d&&(o=function(e){for(var t=[],n=0;nc&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var l=Cr(r[1].trim());a.push("_s("+l+")"),s.push({"@binding":l}),c=i+r[0].length}return c':'
',Wa.innerHTML.indexOf(" ")>0}var Ya=!!q&&Za(!1),Qa=!!q&&Za(!0),es=x((function(e){var t=Gn(e);return t&&t.innerHTML})),ts=wn.prototype.$mount;wn.prototype.$mount=function(e,t){if((e=e&&Gn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=es(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=Xa(r,{outputSourceRange:!1,shouldDecodeNewlines:Ya,shouldDecodeNewlinesForHref:Qa,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return ts.call(this,e,t)},wn.compile=Xa,e.exports=wn}).call(this,n(3),n(8).setImmediate)},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(9),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(3))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,c=1,l={},u=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){v(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){v(e.data)},r=function(e){o.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){v(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(v,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&v(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n1)for(var n=1;n li, .v-context ul > li {\n margin: 0;\n position: relative;\n}\n.v-context > li > a, .v-context ul > li > a {\n display: block;\n padding: 0.5rem 1.5rem;\n font-weight: 400;\n color: #212529;\n text-decoration: none;\n white-space: nowrap;\n background-color: transparent;\n border: 0;\n}\n.v-context > li > a:hover, .v-context > li > a:focus, .v-context ul > li > a:hover, .v-context ul > li > a:focus {\n text-decoration: none;\n color: #212529;\n background-color: #f8f9fa;\n}\n.v-context > li > a:focus, .v-context ul > li > a:focus {\n outline: 0;\n}\n.v-context:focus, .v-context ul:focus {\n outline: 0;\n}\n.v-context__sub > a:after {\n content: "\\203A";\n float: right;\n padding-left: 1rem;\n}\n.v-context__sub > ul {\n display: none;\n}',""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},function(e,t,n){"use strict";var r=n(2);n.n(r).a},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,".color-box[data-v-72bef128] {\n width: 100px;\n height: 100px;\n margin-right: 10px;\n border-radius: 4px;\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);\n opacity: 0.6;\n}\n.color-box.selected[data-v-72bef128] {\n opacity: 1;\n}\n.color-box[data-v-72bef128]:last-child {\n margin-right: 0;\n}",""])},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n.n(r);/^2\./.test(i.a.version)||i.a.util.warn("VueClickaway 2.2.2 only supports Vue 2.x, and does not support Vue "+i.a.version);var o="_vue_clickaway_handler";function a(e,t,n){s(e);var r=n.context,i=t.value;if("function"==typeof i){var a=!1;setTimeout((function(){a=!0}),0),e[o]=function(t){var n=t.path||(t.composedPath?t.composedPath():void 0);if(a&&(n?n.indexOf(e)<0:!e.contains(t.target)))return i.call(r,t)},document.documentElement.addEventListener("click",e[o],!1)}}function s(e){document.documentElement.removeEventListener("click",e[o],!1),delete e[o]}var c={bind:a,update:function(e,t){t.value!==t.oldValue&&a(e,t)},unbind:s};Array.from||(Array.from=e=>[].slice.call(e)),Array.isArray||(Array.isArray=e=>"[object Array]"===Object.prototype.toString.call(e));const l=Array.from,u=Array.isArray,f=27,d=37,p=38,v=39,h=40,m=(e,t,n)=>{e&&e.addEventListener&&e.addEventListener(t,n)},g=(e,t,n)=>{e&&e.removeEventListener&&e.removeEventListener(t,n)},y=e=>b(e)?e.getBoundingClientRect():null,b=e=>Boolean(e&&e.nodeType===Node.ELEMENT_NODE),_=e=>{if(!b(e)||(t=document.body,n=e,!t||"function"!=typeof t.contains||!t.contains(n)))return!1;var t,n;if("none"===e.style.display)return!1;const r=y(e);return Boolean(r&&r.height>0&&r.width>0)},x=(e,t)=>l((b(t)?t:document).querySelectorAll(e)),w=(e,t,n)=>{t&&b(e)&&e.setAttribute(t,n)},C=(e,t)=>{let n=e.parentElement;for(;null!==n&&!n.classList.contains(t);)n=n.parentElement;return n},$=(e,t={},n={},r={})=>{const i=n[e]||r[e];return"function"==typeof i?i(t):i};var k={directives:{onClickaway:c},props:{closeOnClick:{type:Boolean,default:!0},closeOnScroll:{type:Boolean,default:!0},lazy:{type:Boolean,default:!1},itemSelector:{type:[String,Array],default:()=>[".v-context-item",".v-context > li > a"]},role:{type:String,default:"menu"},subMenuOffset:{type:Number,default:10},useScrollHeight:{type:Boolean,default:!1},useScrollWidth:{type:Boolean,default:!1},heightOffset:{type:Number,default:25},widthOffset:{type:Number,default:25},tag:{type:String,default:"ul"}},computed:{style(){return this.show?{top:this.top+"px",left:this.left+"px"}:null}},data:()=>({top:null,left:null,show:!1,data:null,localItemSelector:"",activeSubMenu:null}),created(){this.localItemSelector=this.mapItemSelector(this.itemSelector)},beforeDestroy(){this.closeOnScroll&&this.removeScrollEventListener()},methods:{addScrollEventListener(){m(window,"scroll",this.close)},addHoverEventListener(e){e.querySelectorAll(".v-context__sub").forEach(e=>{m(e,"mouseenter",this.openSubMenu),m(e,"mouseleave",this.closeSubMenu)})},close(){if(this.show){for(;null!==this.activeSubMenu;)C(this.activeSubMenu,"v-context__sub").dispatchEvent(new Event("mouseleave"));this.resetData(),this.removeHoverEventListener(this.$el),this.closeOnScroll&&this.removeScrollEventListener(),this.$emit("close")}},focusItem(e,t){const n=t.find((t,n)=>n===e);n&&n.focus()},focusNext(e,t){this.show&&(e.preventDefault(),e.stopPropagation(),this.$nextTick(()=>{const n=this.getItems();if(n.length<1)return;let r=n.indexOf(e.target);t&&r>0?r--:!t&&r(u(e)&&(e=e.map(e=>e+":not(.disabled):not([disabled])").join(", ")),e),onClick(){this.close()},onKeydown(e){const t=e.keyCode;if(t===f)this.close();else if(t===h)this.focusNext(e,!1);else if(t===p)this.focusNext(e,!0);else if(t===v){const t=C(e.target,"v-context__sub");t&&t.getElementsByClassName("v-context")[0]!==this.activeSubMenu&&(t.dispatchEvent(new Event("mouseenter")),this.focusNext(e,!1))}else if(t===d){if(!this.activeSubMenu)return;const e=C(this.activeSubMenu,"v-context__sub");e.dispatchEvent(new Event("mouseleave"));const t=this.getItems(),n=t.indexOf(e.getElementsByTagName("a")[0]);this.focusItem(n,t)}},open(e,t){this.data=t,this.show=!0,this.$nextTick(()=>{[this.top,this.left]=this.positionMenu(e.clientY,e.clientX,this.$el),this.$el.focus(),this.setItemRoles(),this.addHoverEventListener(this.$el),this.closeOnScroll&&this.addScrollEventListener(),this.$emit("open",e,this.data,this.top,this.left)})},openSubMenu(e){const t=this.getSubMenuElementByEvent(e),n=C(t.parentElement,"v-context"),r=y(e.target);if(this.activeSubMenu!==n)for(;null!==this.activeSubMenu&&this.activeSubMenu!==n&&this.activeSubMenu!==t;)C(this.activeSubMenu,"v-context__sub").dispatchEvent(new Event("mouseleave"));t.style.display="block";let[i,o]=this.positionMenu(r.top,r.right-this.subMenuOffset,t);t.style.left=o+"px",t.style.top=i+"px",this.activeSubMenu=t},closeSubMenu(e){const t=this.getSubMenuElementByEvent(e),n=C(t,"v-context");if(this.activeSubMenu!==t)for(;null!==this.activeSubMenu&&this.activeSubMenu!==t;)C(this.activeSubMenu,"v-context__sub").dispatchEvent(new Event("mouseleave"));t.style.display="none",this.activeSubMenu=n&&C(n,"v-context__sub")?n:null},getSubMenuElementByEvent:e=>e.target.getElementsByTagName("ul")[0],positionMenu(e,t,n){const r=this.useScrollHeight?n.scrollHeight:n.offsetHeight,i=window.innerHeight-r-this.heightOffset,o=this.useScrollWidth?n.scrollWidth:n.offsetWidth,a=window.innerWidth-o-this.widthOffset;return e>i&&(e=i),t>a&&(t=a),[e,t]},removeScrollEventListener(){g(window,"scroll",this.close)},removeHoverEventListener(e){e.querySelectorAll(".v-context__sub").forEach(e=>{g(e,"mouseenter",this.openSubMenu),g(e,"mouseleave",this.closeSubMenu)})},resetData(){this.top=null,this.left=null,this.data=null,this.show=!1},setItemRoles(){x(this.localItemSelector,this.$el).forEach(e=>{w(e,"role","menuitem"),w(e,"tabindex","-1")})}},watch:{closeOnScroll(e,t){e!==t&&(e&&this.show?this.addScrollEventListener():this.removeScrollEventListener())},itemSelector(e,t){e!==t&&(this.localItemSelector=this.mapItemSelector(e))}},render(e){if(this.lazy&&!this.show)return e(!1);const t={"!contextmenu":e=>{e.preventDefault()},keydown:this.onKeydown};this.closeOnClick&&(t.click=this.onClick);const n=[{name:"on-clickaway",value:this.close,rawName:"v-on-clickaway"}];return this.lazy||n.push({name:"show",value:this.show,rawName:"v-show",expression:"show"}),e(this.tag,{staticClass:"v-context",style:this.style,attrs:{tabindex:"-1",role:this.role,"aria-hidden":this.lazy?null:String(!this.show)},on:t,directives:n},[$("default",{data:this.data},this.$scopedSlots,this.$slots)])}};n(0);function S(e,t,n,r,i,o,a,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:l}}var A=S({components:{VueContext:k},data:function(){return{items:["Cras justo odio","Dapibus ac facilisis in","Morbi leo risus","Porta ac consectetur ac","Vestibulum at eros"]}},methods:{onClick:function(e){alert('You clicked on: "'.concat(e,'"'))}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"bg-white shadow overflow-hidden sm:rounded-md"},[n("ul",{staticClass:"demo"},[n("li",e._l(e.items,(function(t,r){return n("a",{key:r,staticClass:"block hover:bg-gray-50 focus:outline-none focus:bg-gray-50 transition duration-150 ease-in-out",class:{"border-t border-gray-200":r>0},attrs:{href:"#"},on:{contextmenu:function(t){return t.preventDefault(),e.$refs.menu.open(t)}}},[n("div",{staticClass:"flex items-center px-4 py-4 sm:px-6",class:{"pt-0":0===r,"pb-0":r+1===e.items.length}},[n("div",{staticClass:"min-w-0 flex-1 md:grid md:grid-cols-2 md:gap-4"},[n("div",{staticClass:"text-sm leading-5 font-medium text-gray-600 truncate",domProps:{textContent:e._s(t)}})])])])})),0)])]),e._v(" "),n("vue-context",{ref:"menu"},[n("li",[n("a",{on:{click:function(t){return t.preventDefault(),e.onClick(t.target.innerText)}}},[e._v("\n Do something\n ")])]),e._v(" "),n("li",[n("a",{on:{click:function(t){return t.preventDefault(),e.onClick(t.target.innerText)}}},[e._v("\n Do something else\n ")])])])],1)}),[],!1,null,null,null).exports,O=["Cras justo odio","Dapibus ac facilisis in","Morbi leo risus","Porta ac consectetur ac","Vestibulum at eros"],T=S({components:{VueContext:k},computed:{showReset:function(){return this.items.length0},attrs:{href:"#"},on:{contextmenu:function(n){return n.preventDefault(),e.$refs.menu.open(n,{name:t,index:r})}}},[n("div",{staticClass:"flex items-center px-4 py-4 sm:px-6",class:{"pt-0":0===r,"pb-0":r+1===e.items.length}},[n("div",{staticClass:"min-w-0 flex-1 md:grid md:grid-cols-2 md:gap-4"},[n("div",{staticClass:"text-sm leading-5 font-medium text-gray-600 truncate",domProps:{textContent:e._s(t)}})])])])})),0)])]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showReset,expression:"showReset"}],staticClass:"my-4 text-right"},[n("button",{staticClass:"inline-flex items-center px-4 py-2 border border-transparent text-sm leading-5 font-medium rounded-md text-indigo-700 bg-indigo-100 hover:bg-indigo-50 focus:outline-none focus:border-indigo-300 focus:shadow-outline-indigo active:bg-indigo-200 transition ease-in-out duration-150",attrs:{type:"button"},on:{click:e.reset}},[e._v("\n Reset Demo\n ")])]),e._v(" "),n("vue-context",{ref:"menu",scopedSlots:e._u([{key:"default",fn:function(t){return t.data?[n("li",[n("a",{on:{click:function(n){return n.preventDefault(),e.alertName(t.data.name)}}},[e._v("\n Alert name\n ")])]),e._v(" "),n("li",[n("a",{on:{click:function(n){return n.preventDefault(),e.remove(t.data.index)}}},[e._v('\n Delete "'+e._s(t.data.name)+'"\n ')])])]:void 0}}],null,!0)})],1)}),[],!1,null,null,null).exports,E={components:{VueContext:k},data:function(){return{colors:[{name:"red",hex:"#f44336"},{name:"blue",hex:"#2196F3"},{name:"cyan",hex:"#00BCD4"},{name:"green",hex:"#4CAF50"},{name:"orange",hex:"#FF9800"}],selectedColors:[]}},methods:{colorIndex:function(e){return this.selectedColors.findIndex((function(t){return t.hex===e}))},hasColor:function(e){return this.colorIndex(e)>-1},toggle:function(e){var t=this.colorIndex(e.hex);t>-1?this.$delete(this.selectedColors,t):this.selectedColors.push(e)}}},M=(n(13),S(E,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mt-5"},[n("div",{staticClass:"flex flex-wrap"},e._l(e.colors,(function(t,r){return n("div",{key:r,staticClass:"color-box",class:{selected:e.hasColor(t.hex)},style:{"background-color":t.hex},on:{contextmenu:function(n){return n.preventDefault(),e.$refs.menu.open(n,t)}}},[e._v("\n  \n ")])})),0),e._v(" "),n("h5",{staticClass:"my-4"},[e._v("\n Selected colors:\n ")]),e._v(" "),n("code",{staticClass:"mb-3"},[e._v(e._s(e.selectedColors))]),e._v(" "),n("vue-context",{ref:"menu",scopedSlots:e._u([{key:"default",fn:function(t){return t.data?[n("li",[n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),e.toggle(t.data)}}},[e._v("\n "+e._s(e.hasColor(t.data.hex)?"Remove Color":"Select Color")+"\n ")])])]:void 0}}],null,!0)})],1)}),[],!1,null,"72bef128",null).exports),I=S({components:{VueContext:k},data:function(){return{items:["Cras justo odio","Dapibus ac facilisis in","Morbi leo risus","Porta ac consectetur ac","Vestibulum at eros"]}},methods:{alertText:function(e){alert("You clicked: ".concat(e))}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"bg-white shadow overflow-hidden sm:rounded-md"},[n("ul",[n("li",e._l(e.items,(function(t,r){return n("a",{key:r,staticClass:"block hover:bg-gray-50 focus:outline-none focus:bg-gray-50 transition duration-150 ease-in-out",class:{"border-t border-gray-200":r>0},attrs:{href:"#"},on:{contextmenu:function(t){return t.preventDefault(),e.$refs.menu.open(t)}}},[n("div",{staticClass:"flex items-center px-4 py-4 sm:px-6",class:{"pt-0":0===r,"pb-0":r+1===e.items.length}},[n("div",{staticClass:"min-w-0 flex-1 md:grid md:grid-cols-2 md:gap-4"},[n("div",{staticClass:"text-sm leading-5 font-medium text-gray-600 truncate",domProps:{textContent:e._s(t)}})])])])})),0)])]),e._v(" "),n("vue-context",{ref:"menu"},[n("li",[n("a",{on:{click:function(t){return t.preventDefault(),e.alertText(t.target.innerText)}}},[e._v("Not nested")])]),e._v(" "),n("li",{staticClass:"v-context__sub"},[n("a",{on:{click:function(t){return t.preventDefault(),e.alertText(t.target.innerText)}}},[e._v("Has sub menu")]),e._v(" "),n("ul",{staticClass:"v-context"},[n("li",[n("a",{on:{click:function(t){return t.preventDefault(),e.alertText(t.target.innerText)}}},[e._v("Nested child")])]),e._v(" "),n("li",{staticClass:"v-context__sub"},[n("a",{on:{click:function(t){return t.preventDefault(),e.alertText(t.target.innerText)}}},[e._v("Another nested menu")]),e._v(" "),n("ul",{staticClass:"v-context"},[n("li",[n("a",{on:{click:function(t){return t.preventDefault(),e.alertText(t.target.innerText)}}},[e._v("Another level deep")])]),e._v(" "),n("li",[n("a",{on:{click:function(t){return t.preventDefault(),e.alertText(t.target.innerText)}}},[e._v("There is no limit")])])])])])]),e._v(" "),n("li",[n("a",{on:{click:function(t){return t.preventDefault(),e.alertText(t.target.text)}}},[e._v("Also not nested")])])])],1)}),[],!1,null,null,null).exports,N=S({components:{VueContext:k},data:function(){return{closeOnClick:!1,items:["Cras justo odio","Dapibus ac facilisis in","Morbi leo risus","Porta ac consectetur ac","Vestibulum at eros"]}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mt-4"},[n("div",{staticClass:"mb-4"},[n("div",{staticClass:"flex items-center"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.closeOnClick,expression:"closeOnClick"}],staticClass:"form-checkbox h-4 w-4 text-indigo-600 transition duration-150 ease-in-out",attrs:{id:"toggle-close",type:"checkbox"},domProps:{checked:Array.isArray(e.closeOnClick)?e._i(e.closeOnClick,null)>-1:e.closeOnClick},on:{change:function(t){var n=e.closeOnClick,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e._i(n,null);r.checked?o<0&&(e.closeOnClick=n.concat([null])):o>-1&&(e.closeOnClick=n.slice(0,o).concat(n.slice(o+1)))}else e.closeOnClick=i}}}),e._v(" "),n("label",{staticClass:"ml-2 block text-sm leading-5 text-gray-900",attrs:{for:"toggle-close"}},[e._v("\n Close on Click\n ")])])]),e._v(" "),n("div",{staticClass:"bg-white shadow overflow-hidden sm:rounded-md"},[n("ul",[n("li",e._l(e.items,(function(t,r){return n("a",{key:r,staticClass:"block hover:bg-gray-50 focus:outline-none focus:bg-gray-50 transition duration-150 ease-in-out",class:{"border-t border-gray-200":r>0},attrs:{href:"#"},on:{contextmenu:function(t){return t.preventDefault(),e.$refs.menu.open(t)}}},[n("div",{staticClass:"flex items-center px-4 py-4 sm:px-6",class:{"pt-0":0===r,"pb-0":r+1===e.items.length}},[n("div",{staticClass:"min-w-0 flex-1 md:grid md:grid-cols-2 md:gap-4"},[n("div",{staticClass:"text-sm leading-5 font-medium text-gray-600 truncate",domProps:{textContent:e._s(t)}})])])])})),0)])]),e._v(" "),n("vue-context",{ref:"menu",attrs:{"close-on-click":e.closeOnClick}},[n("li",[n("a",[e._v("\n "+e._s(e.closeOnClick?"I will close on click":"I will stay open on click")+"\n ")])])])],1)}),[],!1,null,null,null).exports,j=S({components:{VueContext:k},data:function(){return{closeOnScroll:!0,items:["Cras justo odio","Dapibus ac facilisis in","Morbi leo risus","Porta ac consectetur ac","Vestibulum at eros"]}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mt-4"},[n("div",{staticClass:"mb-4"},[n("div",{staticClass:"flex items-center"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.closeOnScroll,expression:"closeOnScroll"}],staticClass:"form-checkbox h-4 w-4 text-indigo-600 transition duration-150 ease-in-out",attrs:{id:"toggle-scroll",type:"checkbox"},domProps:{checked:Array.isArray(e.closeOnScroll)?e._i(e.closeOnScroll,null)>-1:e.closeOnScroll},on:{change:function(t){var n=e.closeOnScroll,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e._i(n,null);r.checked?o<0&&(e.closeOnScroll=n.concat([null])):o>-1&&(e.closeOnScroll=n.slice(0,o).concat(n.slice(o+1)))}else e.closeOnScroll=i}}}),e._v(" "),n("label",{staticClass:"ml-2 block text-sm leading-5 text-gray-900",attrs:{for:"toggle-scroll"}},[e._v("\n Close on Scroll\n ")])])]),e._v(" "),n("div",{staticClass:"bg-white shadow overflow-hidden sm:rounded-md"},[n("ul",[n("li",e._l(e.items,(function(t,r){return n("a",{key:r,staticClass:"block hover:bg-gray-50 focus:outline-none focus:bg-gray-50 transition duration-150 ease-in-out",class:{"border-t border-gray-200":r>0},attrs:{href:"#"},on:{contextmenu:function(t){return t.preventDefault(),e.$refs.menu.open(t)}}},[n("div",{staticClass:"flex items-center px-4 py-4 sm:px-6",class:{"pt-0":0===r,"pb-0":r+1===e.items.length}},[n("div",{staticClass:"min-w-0 flex-1 md:grid md:grid-cols-2 md:gap-4"},[n("div",{staticClass:"text-sm leading-5 font-medium text-gray-600 truncate",domProps:{textContent:e._s(t)}})])])])})),0)])]),e._v(" "),n("vue-context",{ref:"menu",attrs:{"close-on-scroll":e.closeOnScroll}},[n("li",[n("a",[e._v("\n "+e._s(e.closeOnScroll?"I will hide when the window is scrolled":"I will stay visible when the window is scrolled")+"\n ")])])])],1)}),[],!1,null,null,null).exports;new i.a({components:{BasicUsage:A,Advanced1:T,Advanced2:M,NestedMenus:I,CloseOnClick:N,CloseOnScroll:j}}).$mount("#app")}]); \ No newline at end of file +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=6)}([function(e,t,n){var r=n(11);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){e.exports=n(7)},function(e,t,n){var r=n(14);"string"==typeof r&&(r=[[e.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(5)(r,i);r.locals&&(e.exports=r.locals)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(o).concat([i]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i=0&&f.splice(t,1)}function g(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return y(t,e.attrs),h(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function b(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=o}if(t.singleton){var a=u++;n=l||(l=g(t)),r=w.bind(null,n,a,!1),i=w.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),h(e,t),t}(t),r=$.bind(null,n,t),i=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),r=C.bind(null,n),i=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=v(e,t);return p(n,t),function(e){for(var r=[],i=0;i=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function h(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(e,t){return b.call(e,t)}function x(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var w=/-(\w)/g,C=x((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),$=x((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,S=x((function(e){return e.replace(k,"-$1").toLowerCase()})),A=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function O(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function T(e,t){for(var n in t)e[n]=t[n];return e}function E(e){for(var t={},n=0;n0,Y=G&&G.indexOf("edge/")>0,Q=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===W),ee=(G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/)),te={}.watch,ne=!1;if(q)try{var re={};Object.defineProperty(re,"passive",{get:function(){ne=!0}}),window.addEventListener("test-passive",null,re)}catch(r){}var ie=function(){return void 0===V&&(V=!q&&!J&&void 0!==t&&t.process&&"server"===t.process.env.VUE_ENV),V},oe=q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"==typeof e&&/native code/.test(e.toString())}var se,ce="undefined"!=typeof Symbol&&ae(Symbol)&&"undefined"!=typeof Reflect&&ae(Reflect.ownKeys);se="undefined"!=typeof Set&&ae(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var le=M,ue=0,fe=function(){this.id=ue++,this.subs=[]};fe.prototype.addSub=function(e){this.subs.push(e)},fe.prototype.removeSub=function(e){y(this.subs,e)},fe.prototype.depend=function(){fe.target&&fe.target.addDep(this)},fe.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===S(e)){var c=Ue(String,i.type);(c<0||s0&&(ut((c=e(c,(n||"")+"_"+r))[0])&&ut(u)&&(f[l]=ye(u.text+c[0].text),c.shift()),f.push.apply(f,c)):s(c)?ut(u)?f[l]=ye(u.text+c):""!==c&&f.push(ye(c)):ut(c)&&ut(u)?f[l]=ye(u.text+c.text):(a(t._isVList)&&o(c.tag)&&i(c.key)&&o(n)&&(c.key="__vlist"+n+"_"+r+"__"),f.push(c)));return f}(e):void 0}function ut(e){return o(e)&&o(e.text)&&!1===e.isComment}function ft(e,t){if(e){for(var n=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=ht(t,c,e[c]))}else i={};for(var l in t)l in i||(i[l]=mt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=i),H(i,"$stable",a),H(i,"$key",s),H(i,"$hasNormal",o),i}function ht(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:lt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function mt(e,t){return function(){return e[t]}}function gt(e,t){var n,r,i,a,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;rdocument.createEvent("Event").timeStamp&&(cn=function(){return ln.now()})}function un(){var e,t;for(sn=cn(),on=!0,en.sort((function(e,t){return e.id-t.id})),an=0;anan&&en[n].id>e.id;)n--;en.splice(n+1,0,e)}else en.push(e);rn||(rn=!0,tt(un))}}(this)},dn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){He(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},dn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},dn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},dn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var pn={enumerable:!0,configurable:!0,get:M,set:M};function vn(e,t,n){pn.get=function(){return this[t][n]},pn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,pn)}var hn={lazy:!0};function mn(e,t,n){var r=!ie();"function"==typeof n?(pn.get=r?gn(t):yn(n),pn.set=M):(pn.get=n.get?r&&!1!==n.cache?gn(t):yn(n.get):M,pn.set=n.set||M),Object.defineProperty(e,t,pn)}function gn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),fe.target&&t.depend(),t.value}}function yn(e){return function(){return e.call(this,this)}}function bn(e,t,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var _n=0;function xn(e){var t=e.options;if(e.super){var n=xn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&T(e.extendOptions,r),(t=e.options=De(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function wn(e){this._init(e)}function Cn(e){return e&&(e.Ctor.options.name||e.tag)}function $n(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===l.call(n)&&e.test(t));var n}function kn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=Cn(a.componentOptions);s&&!t(s)&&Sn(n,o,r,i)}}}function Sn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,y(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=_n++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=De(xn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Wt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=dt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return Ft(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ft(e,t,n,r,i,!0)};var o=n&&n.data;Ae(e,"$attrs",o&&o.attrs||r,null,!0),Ae(e,"$listeners",t._parentListeners||r,null,!0)}(t),Qt(t,"beforeCreate"),function(e){var t=ft(e.$options.inject,e);t&&($e(!1),Object.keys(t).forEach((function(n){Ae(e,n,t[n])})),$e(!0))}(t),function(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&$e(!1);var o=function(o){i.push(o);var a=Re(o,t,n,e);Ae(r,o,a),o in e||vn(e,"_props",o)};for(var a in t)o(a);$e(!0)}(e,t.props),t.methods&&function(e,t){for(var n in e.$options.props,t)e[n]="function"!=typeof t[n]?M:A(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){pe();try{return e.call(t,t)}catch(e){return He(e,t,"data()"),{}}finally{ve()}}(t,e):t||{})||(t={});for(var n,r=Object.keys(t),i=e.$options.props,o=(e.$options.methods,r.length);o--;){var a=r[o];i&&_(i,a)||(void 0,36!==(n=(a+"").charCodeAt(0))&&95!==n&&vn(e,"_data",a))}Se(t,!0)}(e):Se(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ie();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new dn(e,a||M,M,hn)),i in e||mn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==te&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i1?O(t):t;for(var n=O(arguments,1),r='event handler for "'+e+'"',i=0,o=t.length;iparseInt(this.max)&&Sn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return B}};Object.defineProperty(e,"config",t),e.util={warn:le,extend:T,mergeOptions:De,defineReactive:Ae},e.set=Oe,e.delete=Te,e.nextTick=tt,e.observable=function(e){return Se(e),e},e.options=Object.create(null),R.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,On),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=O(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=De(this.options,e),this}}(e),function(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name,a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=De(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)vn(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)mn(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,R.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=T({},a.options),i[r]=a,a}}(e),function(e){R.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(wn),Object.defineProperty(wn.prototype,"$isServer",{get:ie}),Object.defineProperty(wn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wn,"FunctionalRenderContext",{value:It}),wn.version="2.6.12";var Tn=h("style,class"),En=h("input,textarea,option,select,progress"),Mn=function(e,t,n){return"value"===n&&En(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},In=h("contenteditable,draggable,spellcheck"),Nn=h("events,caret,typing,plaintext-only"),jn=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Ln="http://www.w3.org/1999/xlink",Dn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Pn=function(e){return Dn(e)?e.slice(6,e.length):""},Rn=function(e){return null==e||!1===e};function Fn(e,t){return{staticClass:Bn(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Bn(e,t){return e?t?e+" "+t:e:t||""}function Un(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r-1?dr(e,t,n):jn(t)?Rn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):In(t)?e.setAttribute(t,function(e,t){return Rn(t)||"false"===t?"false":"contenteditable"===e&&Nn(t)?t:"true"}(t,n)):Dn(t)?Rn(n)?e.removeAttributeNS(Ln,Pn(t)):e.setAttributeNS(Ln,t,n):dr(e,t,n)}function dr(e,t,n){if(Rn(n))e.removeAttribute(t);else{if(X&&!Z&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var pr={create:ur,update:ur};function vr(e,t){var n=t.elm,r=t.data,a=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=function(e){for(var t=e.data,n=e,r=e;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Fn(r.data,t));for(;o(n=n.parent);)n&&n.data&&(t=Fn(t,n.data));return function(e,t){return o(e)||o(t)?Bn(e,Un(t)):""}(t.staticClass,t.class)}(t),c=n._transitionClasses;o(c)&&(s=Bn(s,Un(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var hr,mr,gr,yr,br,_r,xr={create:vr,update:vr},wr=/[\w).+\-_$\]]/;function Cr(e){var t,n,r,i,o,a=!1,s=!1,c=!1,l=!1,u=0,f=0,d=0,p=0;for(r=0;r=0&&" "===(h=e.charAt(v));v--);h&&wr.test(h)||(l=!0)}}else void 0===i?(p=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(p,r).trim()),p=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==p&&m(),o)for(r=0;r-1?{exp:e.slice(0,yr),key:'"'+e.slice(yr+1)+'"'}:{exp:e,key:null};for(mr=e,yr=br=_r=0;!Br();)Ur(gr=Fr())?Vr(gr):91===gr&&Hr(gr);return{exp:e.slice(0,br),key:e.slice(br+1,_r)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Fr(){return mr.charCodeAt(++yr)}function Br(){return yr>=hr}function Ur(e){return 34===e||39===e}function Hr(e){var t=1;for(br=yr;!Br();)if(Ur(e=Fr()))Vr(e);else if(91===e&&t++,93===e&&t--,0===t){_r=yr;break}}function Vr(e){for(var t=e;!Br()&&(e=Fr())!==t;);}var zr,Kr="__r";function qr(e,t,n){var r=zr;return function i(){null!==t.apply(null,arguments)&&Gr(e,i,n,r)}}var Jr=Je&&!(ee&&Number(ee[1])<=53);function Wr(e,t,n,r){if(Jr){var i=sn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}zr.addEventListener(e,t,ne?{capture:n,passive:r}:n)}function Gr(e,t,n,r){(r||zr).removeEventListener(e,t._wrapper||t,n)}function Xr(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};zr=t.elm,function(e){if(o(e.__r)){var t=X?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}o(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),at(n,r,Wr,Gr,qr,t.context),zr=void 0}}var Zr,Yr={create:Xr,update:Xr};function Qr(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in o(c.__ob__)&&(c=t.data.domProps=T({},c)),s)n in c||(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var l=i(r)?"":String(r);ei(a,l)&&(a.value=l)}else if("innerHTML"===n&&zn(a.tagName)&&i(a.innerHTML)){(Zr=Zr||document.createElement("div")).innerHTML=""+r+"";for(var u=Zr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(r!==s[n])try{a[n]=r}catch(e){}}}}function ei(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.number)return v(n)!==v(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ti={create:Qr,update:Qr},ni=x((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function ri(e){var t=ii(e.style);return e.staticStyle?T(e.staticStyle,t):t}function ii(e){return Array.isArray(e)?E(e):"string"==typeof e?ni(e):e}var oi,ai=/^--/,si=/\s*!important$/,ci=function(e,t,n){if(ai.test(t))e.style.setProperty(t,n);else if(si.test(n))e.style.setProperty(S(t),n.replace(si,""),"important");else{var r=ui(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(pi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function hi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(pi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function mi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,gi(e.name||"v")),T(t,e),t}return"string"==typeof e?gi(e):void 0}}var gi=x((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),yi=q&&!Z,bi="transition",_i="animation",xi="transition",wi="transitionend",Ci="animation",$i="animationend";yi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(xi="WebkitTransition",wi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ci="WebkitAnimation",$i="webkitAnimationEnd"));var ki=q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Si(e){ki((function(){ki(e)}))}function Ai(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),vi(e,t))}function Oi(e,t){e._transitionClasses&&y(e._transitionClasses,t),hi(e,t)}function Ti(e,t,n){var r=Mi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===bi?wi:$i,c=0,l=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++c>=a&&l()};setTimeout((function(){c0&&(n=bi,u=a,f=o.length):t===_i?l>0&&(n=_i,u=l,f=c.length):f=(n=(u=Math.max(a,l))>0?a>l?bi:_i:null)?n===bi?o.length:c.length:0,{type:n,timeout:u,propCount:f,hasTransform:n===bi&&Ei.test(r[xi+"Property"])}}function Ii(e,t){for(;e.length1}function Ri(e,t){!0!==t.data.show&&ji(t)}var Fi=function(e){var t,n,r={},c=e.modules,l=e.nodeOps;for(t=0;tv?b(e,i(n[g+1])?null:n[g+1].elm,n,p,g,r):p>g&&x(t,d,v)}(d,h,g,n,u):o(g)?(o(e.text)&&l.setTextContent(d,""),b(d,null,g,0,g.length-1,n)):o(h)?x(h,0,h.length-1):o(e.text)&&l.setTextContent(d,""):e.text!==t.text&&l.setTextContent(d,t.text),o(v)&&o(p=v.hook)&&o(p=p.postpatch)&&p(e,t)}}}function k(e,t,n){if(a(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(j(zi(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Vi(e,t){return t.every((function(t){return!j(t,e)}))}function zi(e){return"_value"in e?e._value:e.value}function Ki(e){e.target.composing=!0}function qi(e){e.target.composing&&(e.target.composing=!1,Ji(e.target,"input"))}function Ji(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Wi(e){return!e.componentInstance||e.data&&e.data.transition?e:Wi(e.componentInstance._vnode)}var Gi={model:Bi,show:{bind:function(e,t,n){var r=t.value,i=(n=Wi(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,ji(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Wi(n)).data&&n.data.transition?(n.data.show=!0,r?ji(n,(function(){e.style.display=e.__vOriginalDisplay})):Li(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Xi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Zi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Zi(zt(t.children)):e}function Yi(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[C(o)]=i[o];return t}function Qi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var eo=function(e){return e.tag||Vt(e)},to=function(e){return"show"===e.name},no={name:"transition",props:Xi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(eo)).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Zi(i);if(!o)return i;if(this._leaving)return Qi(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=Yi(this),l=this._vnode,u=Zi(l);if(o.data.directives&&o.data.directives.some(to)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!Vt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var f=u.data.transition=T({},c);if("out-in"===r)return this._leaving=!0,st(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Qi(e,i);if("in-out"===r){if(Vt(o))return l;var d,p=function(){d()};st(c,"afterEnter",p),st(c,"enterCancelled",p),st(f,"delayLeave",(function(e){d=e}))}}return i}}},ro=T({tag:String,moveClass:String},Xi);function io(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function oo(e){e.data.newPos=e.elm.getBoundingClientRect()}function ao(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete ro.mode;var so={Transition:no,TransitionGroup:{props:ro,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Xt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Yi(this),s=0;s-1?Jn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Jn[e]=/HTMLUnknownElement/.test(t.toString())},T(wn.options.directives,Gi),T(wn.options.components,so),wn.prototype.__patch__=q?Fi:M,wn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ge),Qt(e,"beforeMount"),r=function(){e._update(e._render(),n)},new dn(e,r,M,{before:function(){e._isMounted&&!e._isDestroyed&&Qt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Qt(e,"mounted")),e}(this,e=e&&q?Gn(e):void 0,t)},q&&setTimeout((function(){B.devtools&&oe&&oe.emit("init",wn)}),0);var co,lo=/\{\{((?:.|\r?\n)+?)\}\}/g,uo=/[-.*+?^${}()|[\]\/\\]/g,fo=x((function(e){var t=e[0].replace(uo,"\\$&"),n=e[1].replace(uo,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")})),po={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=jr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Nr(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}},vo={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=jr(e,"style");n&&(e.staticStyle=JSON.stringify(ni(n)));var r=Nr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},ho=h("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),mo=h("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),go=h("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),yo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,bo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,_o="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",xo="((?:"+_o+"\\:)?"+_o+")",wo=new RegExp("^<"+xo),Co=/^\s*(\/?)>/,$o=new RegExp("^<\\/"+xo+"[^>]*>"),ko=/^]+>/i,So=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Mo=/&(?:lt|gt|quot|amp|#39);/g,Io=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,No=h("pre,textarea",!0),jo=function(e,t){return e&&No(e)&&"\n"===t[0]};function Lo(e,t){var n=t?Io:Mo;return e.replace(n,(function(e){return Eo[e]}))}var Do,Po,Ro,Fo,Bo,Uo,Ho,Vo,zo=/^@|^v-on:/,Ko=/^v-|^@|^:|^#/,qo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Jo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Wo=/^\(|\)$/g,Go=/^\[.*\]$/,Xo=/:(.*)$/,Zo=/^:|^\.|^v-bind:/,Yo=/\.[^.\]]+(?=[^\]]*$)/g,Qo=/^v-slot(:|$)|^#/,ea=/[\r\n]/,ta=/\s+/g,na=x((function(e){return(co=co||document.createElement("div")).innerHTML=e,co.textContent})),ra="_empty_";function ia(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:ua(t),rawAttrsMap:{},parent:n,children:[]}}function oa(e,t){var n,r;(r=Nr(n=e,"key"))&&(n.key=r),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Nr(e,"ref");t&&(e.ref=t,e.refInFor=function(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=jr(e,"scope"),e.slotScope=t||jr(e,"slot-scope")):(t=jr(e,"slot-scope"))&&(e.slotScope=t);var n=Nr(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Or(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot"))),"template"===e.tag){var r=Lr(e,Qo);if(r){var i=ca(r),o=i.name,a=i.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=r.value||ra}}else{var s=Lr(e,Qo);if(s){var c=e.scopedSlots||(e.scopedSlots={}),l=ca(s),u=l.name,f=l.dynamic,d=c[u]=ia("template",[],e);d.slotTarget=u,d.slotTargetDynamic=f,d.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=d,!0})),d.slotScope=s.value||ra,e.children=[],e.plain=!1}}}(e),function(e){"slot"===e.tag&&(e.slotName=Nr(e,"name"))}(e),function(e){var t;(t=Nr(e,"is"))&&(e.component=t),null!=jr(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var i=0;i-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Ir(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Rr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Rr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Rr(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Nr(e,"value")||"null";Ar(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Ir(e,"change",Rr(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,l=o?"change":"range"===r?Kr:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var f=Rr(t,u);c&&(f="if($event.target.composing)return;"+f),Ar(e,"value","("+t+")"),Ir(e,l,f,null,!0),(s||a)&&Ir(e,"blur","$forceUpdate()")}(e,r,i);else if(!B.isReservedTag(o))return Pr(e,r,i),!1;return!0},text:function(e,t){t.value&&Ar(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Ar(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:ho,mustUseProp:Mn,canBeLeftOpenTag:mo,isReservedTag:Kn,getTagNamespace:qn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(ma)},ya=x((function(e){return h("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));var ba=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,_a=/\([^)]*?\);*$/,xa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,wa={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ca={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},$a=function(e){return"if("+e+")return null;"},ka={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:$a("$event.target !== $event.currentTarget"),ctrl:$a("!$event.ctrlKey"),shift:$a("!$event.shiftKey"),alt:$a("!$event.altKey"),meta:$a("!$event.metaKey"),left:$a("'button' in $event && $event.button !== 0"),middle:$a("'button' in $event && $event.button !== 1"),right:$a("'button' in $event && $event.button !== 2")};function Sa(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Aa(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Aa(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Aa(e)})).join(",")+"]";var t=xa.test(e.value),n=ba.test(e.value),r=xa.test(e.value.replace(_a,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(ka[s])o+=ka[s],wa[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=$a(["ctrl","shift","alt","meta"].filter((function(e){return!c[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Oa).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Oa(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=wa[e],r=Ca[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ta={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:M},Ea=function(e){this.options=e,this.warn=e.warn||kr,this.transforms=Sr(e.modules,"transformCode"),this.dataGenFns=Sr(e.modules,"genData"),this.directives=T(T({},Ta),e.directives);var t=e.isReservedTag||I;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ma(e,t){var n=new Ea(t);return{render:"with(this){return "+(e?Ia(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ia(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Na(e,t);if(e.once&&!e.onceProcessed)return ja(e,t);if(e.for&&!e.forProcessed)return Da(e,t);if(e.if&&!e.ifProcessed)return La(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=Ba(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Va((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:C(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:Ba(t,n,!0);return"_c("+e+","+Pa(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Pa(e,t));var i=e.inlineTemplate?null:Ba(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];if(n&&1===n.type){var r=Ma(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Va(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ra(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ra))}function Fa(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return La(e,t,Fa,"null");if(e.for&&!e.forProcessed)return Da(e,t,Fa);var r=e.slotScope===ra?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Ba(e,t)||"undefined")+":undefined":Ba(e,t)||"undefined":Ia(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function Ba(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Ia)(a,t)+s}var c=n?function(e,t){for(var n=0,r=0;r]*>)","i")),d=e.replace(f,(function(e,n,r){return l=r.length,Oo(u)||"noscript"===u||(n=n.replace(//g,"$1").replace(//g,"$1")),jo(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));c+=e.length-d.length,e=d,S(u,c-l,c)}else{var p=e.indexOf("<");if(0===p){if(So.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),c,c+v+3),C(v+3);continue}}if(Ao.test(e)){var h=e.indexOf("]>");if(h>=0){C(h+2);continue}}var m=e.match(ko);if(m){C(m[0].length);continue}var g=e.match($o);if(g){var y=c;C(g[0].length),S(g[1],y,c);continue}var b=$();if(b){k(b),jo(b.tagName,e)&&C(1);continue}}var _=void 0,x=void 0,w=void 0;if(p>=0){for(x=e.slice(p);!($o.test(x)||wo.test(x)||So.test(x)||Ao.test(x)||(w=x.indexOf("<",1))<0);)p+=w,x=e.slice(p);_=e.substring(0,p)}p<0&&(_=e),_&&C(_.length),t.chars&&_&&t.chars(_,c-_.length,c)}if(e===n){t.chars&&t.chars(e);break}}function C(t){c+=t,e=e.substring(t)}function $(){var t=e.match(wo);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(C(t[0].length);!(n=e.match(Co))&&(r=e.match(bo)||e.match(yo));)r.start=c,C(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=c,i}}function k(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&go(n)&&S(r),s(n)&&r===n&&S(n));for(var l=a(n)||!!c,u=e.attrs.length,f=new Array(u),d=0;d=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var l=i.length-1;l>=a;l--)t.end&&t.end(i[l].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}S()}(e,{warn:Do,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,o,a,u,f){var d=r&&r.ns||Vo(e);X&&"svg"===d&&(o=function(e){for(var t=[],n=0;nc&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var l=Cr(r[1].trim());a.push("_s("+l+")"),s.push({"@binding":l}),c=i+r[0].length}return c':'
',Wa.innerHTML.indexOf(" ")>0}var Ya=!!q&&Za(!1),Qa=!!q&&Za(!0),es=x((function(e){var t=Gn(e);return t&&t.innerHTML})),ts=wn.prototype.$mount;wn.prototype.$mount=function(e,t){if((e=e&&Gn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=es(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=Xa(r,{outputSourceRange:!1,shouldDecodeNewlines:Ya,shouldDecodeNewlinesForHref:Qa,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return ts.call(this,e,t)},wn.compile=Xa,e.exports=wn}).call(this,n(3),n(8).setImmediate)},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(9),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(3))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,c=1,l={},u=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){v(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){v(e.data)},r=function(e){o.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){v(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(v,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&v(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n1)for(var n=1;n li, .v-context ul > li {\n margin: 0;\n position: relative;\n}\n.v-context > li > a, .v-context ul > li > a {\n display: block;\n padding: 0.5rem 1.5rem;\n font-weight: 400;\n color: #212529;\n text-decoration: none;\n white-space: nowrap;\n background-color: transparent;\n border: 0;\n}\n.v-context > li > a:hover, .v-context > li > a:focus, .v-context ul > li > a:hover, .v-context ul > li > a:focus {\n text-decoration: none;\n color: #212529;\n background-color: #f8f9fa;\n}\n.v-context > li > a:focus, .v-context ul > li > a:focus {\n outline: 0;\n}\n.v-context:focus, .v-context ul:focus {\n outline: 0;\n}\n.v-context__sub > a:after {\n content: "\\203A";\n float: right;\n padding-left: 1rem;\n}\n.v-context__sub > ul {\n display: none;\n}',""])},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},function(e,t,n){"use strict";var r=n(2);n.n(r).a},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,".color-box[data-v-72bef128] {\n width: 100px;\n height: 100px;\n margin-right: 10px;\n border-radius: 4px;\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);\n opacity: 0.6;\n}\n.color-box.selected[data-v-72bef128] {\n opacity: 1;\n}\n.color-box[data-v-72bef128]:last-child {\n margin-right: 0;\n}",""])},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n.n(r);/^2\./.test(i.a.version)||i.a.util.warn("VueClickaway 2.2.2 only supports Vue 2.x, and does not support Vue "+i.a.version);var o="_vue_clickaway_handler";function a(e,t,n){s(e);var r=n.context,i=t.value;if("function"==typeof i){var a=!1;setTimeout((function(){a=!0}),0),e[o]=function(t){var n=t.path||(t.composedPath?t.composedPath():void 0);if(a&&(n?n.indexOf(e)<0:!e.contains(t.target)))return i.call(r,t)},document.documentElement.addEventListener("click",e[o],!1)}}function s(e){document.documentElement.removeEventListener("click",e[o],!1),delete e[o]}var c={bind:a,update:function(e,t){t.value!==t.oldValue&&a(e,t)},unbind:s};Array.from||(Array.from=e=>[].slice.call(e)),Array.isArray||(Array.isArray=e=>"[object Array]"===Object.prototype.toString.call(e));const l=Array.from,u=Array.isArray,f=27,d=37,p=38,v=39,h=40,m=(e,t,n)=>{e&&e.addEventListener&&e.addEventListener(t,n)},g=(e,t,n)=>{e&&e.removeEventListener&&e.removeEventListener(t,n)},y=e=>b(e)?e.getBoundingClientRect():null,b=e=>Boolean(e&&e.nodeType===Node.ELEMENT_NODE),_=e=>{if(!b(e)||(t=document.body,n=e,!t||"function"!=typeof t.contains||!t.contains(n)))return!1;var t,n;if("none"===e.style.display)return!1;const r=y(e);return Boolean(r&&r.height>0&&r.width>0)},x=(e,t)=>l((b(t)?t:document).querySelectorAll(e)),w=(e,t,n)=>{t&&b(e)&&e.setAttribute(t,n)},C=(e,t)=>{let n=e.parentElement;for(;null!==n&&!n.classList.contains(t);)n=n.parentElement;return n},$=(e,t={},n={},r={})=>{const i=n[e]||r[e];return"function"==typeof i?i(t):i};var k={directives:{onClickaway:c},props:{closeOnClick:{type:Boolean,default:!0},closeOnScroll:{type:Boolean,default:!0},lazy:{type:Boolean,default:!1},itemSelector:{type:[String,Array],default:()=>[".v-context-item",".v-context > li > a"]},role:{type:String,default:"menu"},subMenuOffset:{type:Number,default:10},useScrollHeight:{type:Boolean,default:!1},useScrollWidth:{type:Boolean,default:!1},heightOffset:{type:Number,default:25},widthOffset:{type:Number,default:25},tag:{type:String,default:"ul"}},computed:{style(){return this.show?{top:this.top+"px",left:this.left+"px"}:null}},data:()=>({top:null,left:null,show:!1,data:null,localItemSelector:"",activeSubMenu:null}),created(){this.localItemSelector=this.mapItemSelector(this.itemSelector)},beforeDestroy(){this.closeOnScroll&&this.removeScrollEventListener()},methods:{addScrollEventListener(){m(window,"scroll",this.close)},addHoverEventListener(e){e.querySelectorAll(".v-context__sub").forEach(e=>{m(e,"mouseenter",this.openSubMenu),m(e,"mouseleave",this.closeSubMenu)})},close(){if(this.show){for(;null!==this.activeSubMenu;)C(this.activeSubMenu,"v-context__sub").dispatchEvent(new Event("mouseleave"));this.resetData(),this.removeHoverEventListener(this.$el),this.closeOnScroll&&this.removeScrollEventListener(),this.$emit("close")}},focusItem(e,t){const n=t.find((t,n)=>n===e);n&&n.focus()},focusNext(e,t){this.show&&(e.preventDefault(),e.stopPropagation(),this.$nextTick(()=>{const n=this.getItems();if(n.length<1)return;let r=n.indexOf(e.target);t&&r>0?r--:!t&&r(u(e)&&(e=e.map(e=>e+":not(.disabled):not([disabled])").join(", ")),e),onClick(){this.close()},onKeydown(e){const t=e.keyCode;if(t===f)this.close();else if(t===h)this.focusNext(e,!1);else if(t===p)this.focusNext(e,!0);else if(t===v){const t=C(e.target,"v-context__sub");t&&t.getElementsByClassName("v-context")[0]!==this.activeSubMenu&&(t.dispatchEvent(new Event("mouseenter")),this.focusNext(e,!1))}else if(t===d){if(!this.activeSubMenu)return;const e=C(this.activeSubMenu,"v-context__sub");e.dispatchEvent(new Event("mouseleave"));const t=this.getItems(),n=t.indexOf(e.getElementsByTagName("a")[0]);this.focusItem(n,t)}},open(e,t){this.data=t,this.show=!0,this.$nextTick(()=>{[this.top,this.left]=this.positionMenu(e.clientY,e.clientX,this.$el),this.$el.focus(),this.setItemRoles(),this.addHoverEventListener(this.$el),this.closeOnScroll&&this.addScrollEventListener(),this.$emit("open",e,this.data,this.top,this.left)})},openSubMenu(e){const t=this.getSubMenuElementByEvent(e),n=C(t.parentElement,"v-context"),r=y(e.target);if(this.activeSubMenu!==n)for(;null!==this.activeSubMenu&&this.activeSubMenu!==n&&this.activeSubMenu!==t;)C(this.activeSubMenu,"v-context__sub").dispatchEvent(new Event("mouseleave"));t.style.display="block";let[i,o]=this.positionMenu(r.top,r.right-this.subMenuOffset,t);t.style.left=o+"px",t.style.top=i+"px",this.activeSubMenu=t},closeSubMenu(e){const t=this.getSubMenuElementByEvent(e),n=C(t,"v-context");if(this.activeSubMenu!==t)for(;null!==this.activeSubMenu&&this.activeSubMenu!==t;)C(this.activeSubMenu,"v-context__sub").dispatchEvent(new Event("mouseleave"));t.style.display="none",this.activeSubMenu=n&&C(n,"v-context__sub")?n:null},getSubMenuElementByEvent:e=>e.target.getElementsByTagName("ul")[0],positionMenu(e,t,n){const r=this.useScrollHeight?n.scrollHeight:n.offsetHeight,i=window.innerHeight-r-this.heightOffset,o=this.useScrollWidth?n.scrollWidth:n.offsetWidth,a=window.innerWidth-o-this.widthOffset;return e>i&&(e=i),t>a&&(t=a),[e,t]},removeScrollEventListener(){g(window,"scroll",this.close)},removeHoverEventListener(e){e.querySelectorAll(".v-context__sub").forEach(e=>{g(e,"mouseenter",this.openSubMenu),g(e,"mouseleave",this.closeSubMenu)})},resetData(){this.top=null,this.left=null,this.data=null,this.show=!1},setItemRoles(){x(this.localItemSelector,this.$el).forEach(e=>{w(e,"role","menuitem"),w(e,"tabindex","-1")})}},watch:{closeOnScroll(e,t){e!==t&&(e&&this.show?this.addScrollEventListener():this.removeScrollEventListener())},itemSelector(e,t){e!==t&&(this.localItemSelector=this.mapItemSelector(e))}},render(e){if(this.lazy&&!this.show)return e(!1);const t={"!contextmenu":e=>{e.preventDefault()},keydown:this.onKeydown};this.closeOnClick&&(t.click=this.onClick);const n=[{name:"on-clickaway",value:this.close,rawName:"v-on-clickaway"}];return this.lazy||n.push({name:"show",value:this.show,rawName:"v-show",expression:"show"}),e(this.tag,{staticClass:"v-context",style:this.style,attrs:{tabindex:"-1",role:this.role,"aria-hidden":this.lazy?null:String(!this.show)},on:t,directives:n},[$("default",{data:this.data},this.$scopedSlots,this.$slots)])}};n(0);function S(e,t,n,r,i,o,a,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:l}}var A=S({components:{VueContext:k},data:function(){return{items:["Cras justo odio","Dapibus ac facilisis in","Morbi leo risus","Porta ac consectetur ac","Vestibulum at eros"]}},methods:{onClick:function(e){alert('You clicked on: "'.concat(e,'"'))}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"bg-white shadow overflow-hidden sm:rounded-md"},[n("ul",{staticClass:"demo"},[n("li",e._l(e.items,(function(t,r){return n("a",{key:r,staticClass:"block hover:bg-gray-50 focus:outline-none focus:bg-gray-50 transition duration-150 ease-in-out",class:{"border-t border-gray-200":r>0},attrs:{href:"#"},on:{contextmenu:function(t){return t.preventDefault(),e.$refs.menu.open(t)}}},[n("div",{staticClass:"flex items-center px-4 py-4 sm:px-6"},[n("div",{staticClass:"min-w-0 flex-1 md:grid md:grid-cols-2 md:gap-4"},[n("div",{staticClass:"text-sm leading-5 font-medium text-gray-600 truncate",domProps:{textContent:e._s(t)}})])])])})),0)])]),e._v(" "),n("vue-context",{ref:"menu"},[n("li",[n("a",{on:{click:function(t){return t.preventDefault(),e.onClick(t.target.innerText)}}},[e._v("\n Do something\n ")])]),e._v(" "),n("li",[n("a",{on:{click:function(t){return t.preventDefault(),e.onClick(t.target.innerText)}}},[e._v("\n Do something else\n ")])])])],1)}),[],!1,null,null,null).exports,O=["Cras justo odio","Dapibus ac facilisis in","Morbi leo risus","Porta ac consectetur ac","Vestibulum at eros"],T=S({components:{VueContext:k},computed:{showReset:function(){return this.items.length0},attrs:{href:"#"},on:{contextmenu:function(n){return n.preventDefault(),e.$refs.menu.open(n,{name:t,index:r})}}},[n("div",{staticClass:"flex items-center px-4 py-4 sm:px-6",class:{"pt-0":0===r,"pb-0":r+1===e.items.length}},[n("div",{staticClass:"min-w-0 flex-1 md:grid md:grid-cols-2 md:gap-4"},[n("div",{staticClass:"text-sm leading-5 font-medium text-gray-600 truncate",domProps:{textContent:e._s(t)}})])])])})),0)])]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showReset,expression:"showReset"}],staticClass:"my-4 text-right"},[n("button",{staticClass:"inline-flex items-center px-4 py-2 border border-transparent text-sm leading-5 font-medium rounded-md text-indigo-700 bg-indigo-100 hover:bg-indigo-50 focus:outline-none focus:border-indigo-300 focus:shadow-outline-indigo active:bg-indigo-200 transition ease-in-out duration-150",attrs:{type:"button"},on:{click:e.reset}},[e._v("\n Reset Demo\n ")])]),e._v(" "),n("vue-context",{ref:"menu",scopedSlots:e._u([{key:"default",fn:function(t){return t.data?[n("li",[n("a",{on:{click:function(n){return n.preventDefault(),e.alertName(t.data.name)}}},[e._v("\n Alert name\n ")])]),e._v(" "),n("li",[n("a",{on:{click:function(n){return n.preventDefault(),e.remove(t.data.index)}}},[e._v('\n Delete "'+e._s(t.data.name)+'"\n ')])])]:void 0}}],null,!0)})],1)}),[],!1,null,null,null).exports,E={components:{VueContext:k},data:function(){return{colors:[{name:"red",hex:"#f44336"},{name:"blue",hex:"#2196F3"},{name:"cyan",hex:"#00BCD4"},{name:"green",hex:"#4CAF50"},{name:"orange",hex:"#FF9800"}],selectedColors:[]}},methods:{colorIndex:function(e){return this.selectedColors.findIndex((function(t){return t.hex===e}))},hasColor:function(e){return this.colorIndex(e)>-1},toggle:function(e){var t=this.colorIndex(e.hex);t>-1?this.$delete(this.selectedColors,t):this.selectedColors.push(e)}}},M=(n(13),S(E,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mt-5"},[n("div",{staticClass:"flex flex-wrap"},e._l(e.colors,(function(t,r){return n("div",{key:r,staticClass:"color-box",class:{selected:e.hasColor(t.hex)},style:{"background-color":t.hex},on:{contextmenu:function(n){return n.preventDefault(),e.$refs.menu.open(n,t)}}},[e._v("\n  \n ")])})),0),e._v(" "),n("h5",{staticClass:"my-4"},[e._v("\n Selected colors:\n ")]),e._v(" "),n("code",{staticClass:"mb-3"},[e._v(e._s(e.selectedColors))]),e._v(" "),n("vue-context",{ref:"menu",scopedSlots:e._u([{key:"default",fn:function(t){return t.data?[n("li",[n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),e.toggle(t.data)}}},[e._v("\n "+e._s(e.hasColor(t.data.hex)?"Remove Color":"Select Color")+"\n ")])])]:void 0}}],null,!0)})],1)}),[],!1,null,"72bef128",null).exports),I=S({components:{VueContext:k},data:function(){return{items:["Cras justo odio","Dapibus ac facilisis in","Morbi leo risus","Porta ac consectetur ac","Vestibulum at eros"]}},methods:{alertText:function(e){alert("You clicked: ".concat(e))}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"bg-white shadow overflow-hidden sm:rounded-md"},[n("ul",[n("li",e._l(e.items,(function(t,r){return n("a",{key:r,staticClass:"block hover:bg-gray-50 focus:outline-none focus:bg-gray-50 transition duration-150 ease-in-out",class:{"border-t border-gray-200":r>0},attrs:{href:"#"},on:{contextmenu:function(t){return t.preventDefault(),e.$refs.menu.open(t)}}},[n("div",{staticClass:"flex items-center px-4 py-4 sm:px-6",class:{"pt-0":0===r,"pb-0":r+1===e.items.length}},[n("div",{staticClass:"min-w-0 flex-1 md:grid md:grid-cols-2 md:gap-4"},[n("div",{staticClass:"text-sm leading-5 font-medium text-gray-600 truncate",domProps:{textContent:e._s(t)}})])])])})),0)])]),e._v(" "),n("vue-context",{ref:"menu"},[n("li",[n("a",{on:{click:function(t){return t.preventDefault(),e.alertText(t.target.innerText)}}},[e._v("Not nested")])]),e._v(" "),n("li",{staticClass:"v-context__sub"},[n("a",{on:{click:function(t){return t.preventDefault(),e.alertText(t.target.innerText)}}},[e._v("Has sub menu")]),e._v(" "),n("ul",{staticClass:"v-context"},[n("li",[n("a",{on:{click:function(t){return t.preventDefault(),e.alertText(t.target.innerText)}}},[e._v("Nested child")])]),e._v(" "),n("li",{staticClass:"v-context__sub"},[n("a",{on:{click:function(t){return t.preventDefault(),e.alertText(t.target.innerText)}}},[e._v("Another nested menu")]),e._v(" "),n("ul",{staticClass:"v-context"},[n("li",[n("a",{on:{click:function(t){return t.preventDefault(),e.alertText(t.target.innerText)}}},[e._v("Another level deep")])]),e._v(" "),n("li",[n("a",{on:{click:function(t){return t.preventDefault(),e.alertText(t.target.innerText)}}},[e._v("There is no limit")])])])])])]),e._v(" "),n("li",[n("a",{on:{click:function(t){return t.preventDefault(),e.alertText(t.target.text)}}},[e._v("Also not nested")])])])],1)}),[],!1,null,null,null).exports,N=S({components:{VueContext:k},data:function(){return{closeOnClick:!1,items:["Cras justo odio","Dapibus ac facilisis in","Morbi leo risus","Porta ac consectetur ac","Vestibulum at eros"]}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mt-4"},[n("div",{staticClass:"mb-4"},[n("div",{staticClass:"flex items-center"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.closeOnClick,expression:"closeOnClick"}],staticClass:"form-checkbox h-4 w-4 text-indigo-600 transition duration-150 ease-in-out",attrs:{id:"toggle-close",type:"checkbox"},domProps:{checked:Array.isArray(e.closeOnClick)?e._i(e.closeOnClick,null)>-1:e.closeOnClick},on:{change:function(t){var n=e.closeOnClick,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e._i(n,null);r.checked?o<0&&(e.closeOnClick=n.concat([null])):o>-1&&(e.closeOnClick=n.slice(0,o).concat(n.slice(o+1)))}else e.closeOnClick=i}}}),e._v(" "),n("label",{staticClass:"ml-2 block text-sm leading-5 text-gray-900",attrs:{for:"toggle-close"}},[e._v("\n Close on Click\n ")])])]),e._v(" "),n("div",{staticClass:"bg-white shadow overflow-hidden sm:rounded-md"},[n("ul",[n("li",e._l(e.items,(function(t,r){return n("a",{key:r,staticClass:"block hover:bg-gray-50 focus:outline-none focus:bg-gray-50 transition duration-150 ease-in-out",class:{"border-t border-gray-200":r>0},attrs:{href:"#"},on:{contextmenu:function(t){return t.preventDefault(),e.$refs.menu.open(t)}}},[n("div",{staticClass:"flex items-center px-4 py-4 sm:px-6",class:{"pt-0":0===r,"pb-0":r+1===e.items.length}},[n("div",{staticClass:"min-w-0 flex-1 md:grid md:grid-cols-2 md:gap-4"},[n("div",{staticClass:"text-sm leading-5 font-medium text-gray-600 truncate",domProps:{textContent:e._s(t)}})])])])})),0)])]),e._v(" "),n("vue-context",{ref:"menu",attrs:{"close-on-click":e.closeOnClick}},[n("li",[n("a",[e._v("\n "+e._s(e.closeOnClick?"I will close on click":"I will stay open on click")+"\n ")])])])],1)}),[],!1,null,null,null).exports,j=S({components:{VueContext:k},data:function(){return{closeOnScroll:!0,items:["Cras justo odio","Dapibus ac facilisis in","Morbi leo risus","Porta ac consectetur ac","Vestibulum at eros"]}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mt-4"},[n("div",{staticClass:"mb-4"},[n("div",{staticClass:"flex items-center"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.closeOnScroll,expression:"closeOnScroll"}],staticClass:"form-checkbox h-4 w-4 text-indigo-600 transition duration-150 ease-in-out",attrs:{id:"toggle-scroll",type:"checkbox"},domProps:{checked:Array.isArray(e.closeOnScroll)?e._i(e.closeOnScroll,null)>-1:e.closeOnScroll},on:{change:function(t){var n=e.closeOnScroll,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e._i(n,null);r.checked?o<0&&(e.closeOnScroll=n.concat([null])):o>-1&&(e.closeOnScroll=n.slice(0,o).concat(n.slice(o+1)))}else e.closeOnScroll=i}}}),e._v(" "),n("label",{staticClass:"ml-2 block text-sm leading-5 text-gray-900",attrs:{for:"toggle-scroll"}},[e._v("\n Close on Scroll\n ")])])]),e._v(" "),n("div",{staticClass:"bg-white shadow overflow-hidden sm:rounded-md"},[n("ul",[n("li",e._l(e.items,(function(t,r){return n("a",{key:r,staticClass:"block hover:bg-gray-50 focus:outline-none focus:bg-gray-50 transition duration-150 ease-in-out",class:{"border-t border-gray-200":r>0},attrs:{href:"#"},on:{contextmenu:function(t){return t.preventDefault(),e.$refs.menu.open(t)}}},[n("div",{staticClass:"flex items-center px-4 py-4 sm:px-6",class:{"pt-0":0===r,"pb-0":r+1===e.items.length}},[n("div",{staticClass:"min-w-0 flex-1 md:grid md:grid-cols-2 md:gap-4"},[n("div",{staticClass:"text-sm leading-5 font-medium text-gray-600 truncate",domProps:{textContent:e._s(t)}})])])])})),0)])]),e._v(" "),n("vue-context",{ref:"menu",attrs:{"close-on-scroll":e.closeOnScroll}},[n("li",[n("a",[e._v("\n "+e._s(e.closeOnScroll?"I will hide when the window is scrolled":"I will stay visible when the window is scrolled")+"\n ")])])])],1)}),[],!1,null,null,null).exports;new i.a({components:{BasicUsage:A,Advanced1:T,Advanced2:M,NestedMenus:I,CloseOnClick:N,CloseOnScroll:j}}).$mount("#app")}]); \ No newline at end of file