(self["webpackChunkluckperms_web"]=self["webpackChunkluckperms_web"]||[]).push([[8],{9109:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Oi}});var r=function(){var e=this,t=e._self._c;return t("main",{staticClass:"editor"},[e.sessionId?t("div",{staticClass:"editor-container"},[e.loaded?t("div",{key:e.sessionId,staticClass:"editor-wrap"},[t("editor-menu",{class:{active:e.menu},attrs:{sessions:e.sessions,"current-session":e.currentSession},on:{"clear-query":e.clearQuery}}),e.menu?t("div",{staticClass:"overlay-focus",attrs:{id:"editor-menu-focus"},on:{click:function(t){e.menu=!e.menu}}}):e._e(),t("button",{attrs:{id:"editor-menu-toggle"},on:{click:function(t){e.menu=!e.menu}}},[t("font-awesome",{attrs:{icon:"bars"}})],1),t("div",{staticClass:"editor-main"},[t("nav",[t("div",{staticClass:"logo"},[t("h1",[e._v(e._s(e.$t("editor.description")))])]),t("div",{staticClass:"buttons"},[e.socketStatus?t("div",{staticClass:"socket",attrs:{title:"Connected via socket"}},[t("font-awesome",{attrs:{icon:"network-wired"}})],1):e._e(),t("div",{staticClass:"search"},[e.search.toggle?t("input",{directives:[{name:"model",rawName:"v-model",value:e.search.query,expression:"search.query"}],ref:"searchInput",attrs:{type:"text",placeholder:"Search"},domProps:{value:e.search.query},on:{input:function(t){t.target.composing||e.$set(e.search,"query",t.target.value)}}}):e._e(),t("button",{on:{click:e.toggleSearch}},[e.search.query?t("font-awesome",{attrs:{icon:"times","fixed-width":""}}):t("font-awesome",{attrs:{icon:"search","fixed-width":""}})],1)]),t("button",{attrs:{title:"Save changes"},on:{click:e.saveData}},["saving"!==e.saveStatus?t("span",[t("font-awesome",{attrs:{icon:"save","fixed-width":""}}),e._v(" "+e._s(e.$t(e.socketStatus?"editor.apply":"editor.save"))+" ")],1):t("span",[t("font-awesome",{attrs:{icon:"sync-alt","fixed-width":"",spin:!0}}),e._v(" "+e._s(e.$t("editor.saving"))+" ")],1)])])]),e.currentSession||e.search.debouncedQuery?e._e():t("div",{staticClass:"editor-no-session"},[t("font-awesome",{attrs:{icon:"arrow-left"}}),t("h1",[e._v(e._s(e.$t("editor.groups.choose")))])],1),e.currentSession&&!e.search.debouncedQuery?t("div",{key:`session_${e.currentSession.id}`,staticClass:"editor-session"},[t("div",{staticClass:"session-container"},[t("Header",{attrs:{session:e.currentSession,sessionData:e.currentSessionData}}),t("Meta",{attrs:{session:e.currentSession,sessionData:e.currentSessionData}}),t("NodeList",{attrs:{nodes:e.currentNodes}})],1)]):e._e(),e.search.debouncedQuery?t("search-nodes",{attrs:{query:e.search.debouncedQuery},on:{"clear-query":e.clearQuery}}):e._e(),e.currentSession&&!e.search.debouncedQuery||e.selectedNodes.length?t("AddNode"):e._e()],1)],1):t("div",{key:"loading",staticClass:"tool-intro"},[t("div",[t("img",{attrs:{alt:"LuckPerms logo",src:n(3935)}}),t("div",{staticClass:"text"},[t("h1",[e._v("LuckPerms")]),t("p",[e._v(e._s(e.$t("editor.description")))]),e.errors.load||e.errors.unsupported?t("div",{staticClass:"error"},[e.errors.load?[t("h3",[e._v(e._s(e.$t("editor.error.title")))]),t("p",[e._v(e._s(e.$t("editor.error.info")))]),t("i18n",{attrs:{path:"editor.error.new",tag:"p"},scopedSlots:e._u([{key:"command",fn:function(){return[t("code",[e._v("/lp editor")])]},proxy:!0}],null,!1,3149427954)})]:e._e(),e.errors.unsupported?[t("h3",[e._v(e._s(e.$t("editor.unsupported.title")))]),t("i18n",{attrs:{path:"editor.unsupported.info",tag:"p"},scopedSlots:e._u([{key:"download",fn:function(){return[t("router-link",{attrs:{to:"/download"}},[e._v(" "+e._s(e.$t("editor.unsupported.download"))+" ")])]},proxy:!0}],null,!1,3233149032)})]:e._e()],2):t("div",[t("p",[t("font-awesome",{attrs:{icon:"asterisk",spin:!0}}),e._v(" "+e._s(e.$t("editor.loading"))+" ")],1)])])])])]):t("div",{staticClass:"tool-intro"},[t("div",[t("img",{attrs:{alt:"LuckPerms logo",src:n(3935)}}),t("div",{staticClass:"text"},[t("h1",[e._v("LuckPerms")]),t("p",[e._v(e._s(e.$t("editor.description")))]),t("router-link",{attrs:{to:"/editor/demo"}},[t("button",{staticClass:"button demo-button"},[e._v(" "+e._s(e.$t("tools.demo"))+" ")])]),t("p",[e._v(e._s(e.$t("editor.start")))]),e._m(0)],1)])]),t("transition",{attrs:{name:"fade"}},[e.modal&&e.modal.type?t("Modal",{attrs:{modal:e.modal}}):e._e()],1)],1)},i=[function(){var e=this,t=e._self._c;return t("ul",[t("li",[t("code",[e._v("/lp editor")])]),t("li",[t("code",[e._v("/lp user editor")])]),t("li",[t("code",[e._v("/lp group editor")])])])}],o=n(181),s=n.n(o),a=function(){var e=this,t=e._self._c;return t("nav",{attrs:{id:"editor-menu"}},[t("div",{staticClass:"filter"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.filter,expression:"filter"}],attrs:{type:"text",placeholder:e.$t("editor.search"),title:e.$t("editor.tracks.filter")},domProps:{value:e.filter},on:{input:function(t){t.target.composing||(e.filter=t.target.value)}}}),""!==e.filter?t("button",{staticClass:"delete",attrs:{title:e.$t("editor.clearFilters")},on:{click:function(t){e.filter=""}}},[t("font-awesome",{attrs:{icon:"times","fixed-width":""}})],1):e._e()]),t("div",{staticClass:"sessions"},[t("div",{staticClass:"tracks"},[t("h2",{on:{click:function(t){e.toggle.tracks=!e.toggle.tracks}}},[t("button",{attrs:{title:e.$t("editor.tracks.toggle")}},[t("font-awesome",{attrs:{icon:"caret-right","fixed-width":"",rotation:e.toggle.tracks?90:null}})],1),t("span",[e._v(" "+e._s(e.$t("editor.nav.tracks"))+" "),t("small",[e._v("("+e._s(e.filteredTracks.length)+")")])]),t("button",{attrs:{title:e.$t("editor.tracks.add")},on:{click:function(t){return t.stopPropagation(),e.createTrack.apply(null,arguments)}}},[t("font-awesome",{attrs:{icon:"plus-circle","fixed-width":""}})],1)]),t("transition",{attrs:{name:"slide"}},[e.toggle.tracks?t("ul",e._l(e.filteredTracks,(function(n){return t("li",{key:`track_${n.id}`,class:{new:n.new}},[t("editor-menu-track",{attrs:{track:n,filter:e.filter,"current-session":e.currentSession,"modified-sessions":e.modifiedSessions}})],1)})),0):e._e()])],1),t("div",{staticClass:"groups"},[t("h2",{on:{click:function(t){e.toggle.groups=!e.toggle.groups}}},[t("button",{attrs:{title:e.$t("editor.groups.toggle")}},[t("font-awesome",{attrs:{icon:"caret-right","fixed-width":"",rotation:e.toggle.groups?90:null}})],1),t("span",[e._v(" "+e._s(e.$t("editor.nav.groups"))+" "),t("small",[e._v("("+e._s(e.filteredGroups.length)+")")])]),t("button",{attrs:{title:"Add a group"},on:{click:function(t){return t.stopPropagation(),e.createGroup.apply(null,arguments)}}},[t("font-awesome",{attrs:{icon:"plus-circle","fixed-width":""}})],1)]),t("transition",{attrs:{name:"slide"}},[e.toggle.groups?t("ul",e._l(e.filteredGroups,(function(n){return t("li",{key:`group_${n.id}`,class:{active:e.currentSession&&e.currentSession===n,modified:e.modifiedSessions.includes(n.id),new:n.new},attrs:{title:e.$t("editor.groups.edit")},on:{click:function(t){return e.changeCurrentSession(n.id)}}},[t("EditorMenuGroup",{attrs:{group:n},on:{"clear-query":e.emitClearQuery}})],1)})),0):e._e()])],1),t("div",{staticClass:"users"},[t("h2",{on:{click:function(t){e.toggle.users=!e.toggle.users}}},[t("button",{attrs:{title:e.$t("editor.users.toggleUsers")}},[t("font-awesome",{attrs:{icon:"caret-right","fixed-width":"",rotation:e.toggle.users?90:null}})],1),t("span",[e._v(" "+e._s(e.$t("editor.nav.users"))+" "),t("small",[e._v("("+e._s(e.filteredUsers.length)+")")])]),t("button",{attrs:{disabled:""}})]),t("transition",{attrs:{name:"slide"}},[e.toggle.users?t("ul",e._l(e.filteredUsers,(function(n){return t("li",{key:n.id,class:{active:e.currentSession&&e.currentSession===n},attrs:{title:e.$t("editor.users.edit")},on:{click:function(t){return e.changeCurrentSession(n.id)}}},[t("span",{staticClass:"username"},[t("avatar",{attrs:{id:n.id,title:!1}}),e._v(" "+e._s(n.displayName)+" ")],1),e.canDeleteUsers?t("button",{attrs:{title:"Delete user"},on:{click:function(t){return e.deleteUser(n.id)}}},[t("font-awesome",{attrs:{icon:"times","fixed-width":""}})],1):e._e()])})),0):e._e()])],1)])])},l=[],c=n(9589),u=n(5115),d=function(){var e=this,t=e._self._c;return t("div",{staticClass:"editor-menu-track"},[t("h3",{on:{click:function(t){e.toggle=!e.toggle}}},[t("span",[t("button",{attrs:{title:e.$t("editor.tracks.toggleGroup")}},[t("font-awesome",{attrs:{icon:"caret-right","fixed-width":"",rotation:e.toggle?90:null}})],1),t("span",[e._v(e._s(e.track.id))])]),t("span",{staticClass:"actions"},[t("button",{attrs:{title:e.$t("editor.tracks.edit")},on:{click:function(t){return t.stopPropagation(),e.editTrack.apply(null,arguments)}}},[t("font-awesome",{attrs:{icon:"edit","fixed-width":""}})],1),t("button",{attrs:{title:e.$t("editor.tracks.delete")},on:{click:function(t){return t.stopPropagation(),e.deleteTrack.apply(null,arguments)}}},[t("font-awesome",{attrs:{icon:"times","fixed-width":""}})],1)])]),t("transition",{attrs:{name:"slide"}},[e.track.groups.length&&e.toggle?t("ul",e._l(e.filteredGroups,(function(n){return t("li",{key:`${e.track.id}_${n}`,class:{active:e.currentSession&&e.currentSession.id===n,modified:e.modifiedSessions.includes(n)},attrs:{title:e.$t("editor.groups.edit")},on:{click:function(t){return e.changeCurrentSession(n)}}},[e._v(" "+e._s(n)+" ")])})),0):e._e()])],1)},p=[],h={name:"editor-menu-track",props:{track:{type:Object,required:!0},filter:{type:String,required:!0},currentSession:{required:!0},modifiedSessions:{type:Array,required:!0}},data(){return{toggle:!1}},computed:{filteredGroups(){return this.track.groups.filter((e=>e.includes(this.filter)))}},methods:{changeCurrentSession(e){this.$store.commit("setCurrentSession",e),this.$emit("clear-query")},editTrack(){this.$store.commit("setModal",{type:"createTrack",object:{track:this.track}})},deleteTrack(){this.$store.dispatch("deleteTrack",this.track.id)}},watch:{filter(e){""!==e&&(this.toggle=!0)}}},f=h,v=n(845),g=(0,v.A)(f,d,p,!1,null,null,null),m=g.exports,y=function(){var e=this,t=e._self._c;return t("intersect",{on:{enter:function(t){e.isVisible=!0},leave:function(t){e.isVisible=!1}}},[t("span",{staticClass:"group"},[t("span",{staticClass:"group-name"},[t("span",{staticClass:"group-display"},[e._v(e._s(e.group.displayName))]),e.group.displayName!==e.group.id?t("small",[e._v(e._s(e.group.id))]):e._e()]),e.isVisible?t("span",[e.weight?t("span",{staticClass:"weight",attrs:{title:e.$t("editor.groups.weight")}},[e._v(" "+e._s(e.weight)+" ")]):e._e(),t("button",{attrs:{disabled:"default"===e.group.id},on:{click:e.deleteGroup}},[t("font-awesome",{attrs:{icon:"times","fixed-width":""}})],1)]):e._e()])])},b=[],w=n(5471),_=function(e){w["default"].config.silent||console.warn(e)},x={name:"intersect",abstract:!0,props:{threshold:{type:Array,required:!1,default:function(){return[0,.2]}},root:{type:"undefined"!==typeof HTMLElement?HTMLElement:Object,required:!1,default:function(){return null}},rootMargin:{type:String,required:!1,default:function(){return"0px 0px 0px 0px"}}},mounted:function(){var e=this;this.observer=new IntersectionObserver((function(t){t[0].isIntersecting?e.$emit("enter",[t[0]]):e.$emit("leave",[t[0]]),e.$emit("change",[t[0]])}),{threshold:this.threshold,root:this.root,rootMargin:this.rootMargin}),this.$nextTick((function(){if(e.$slots.default&&e.$slots.default.length>1)_("[VueIntersect] You may only wrap one element in a component.");else if(!e.$slots.default||e.$slots.default.length<1)return void _("[VueIntersect] You must have one child inside a component.");e.observer.observe(e.$slots.default[0].elm)}))},destroyed:function(){this.$emit("destroyed"),this.observer.disconnect()},render:function(){return this.$slots.default?this.$slots.default[0]:null}},C={name:"EditorMenuGroup",components:{Intersect:x},data(){return{isVisible:!1}},props:{group:Object},computed:{weightNodes(){return this.$store.getters.weightNodes},weight(){const e=this.weightNodes.find((e=>e.sessionId===this.group.id));return e?e.key.split("weight.")[1]:null}},methods:{deleteGroup(){"default"!==this.group.id&&this.$store.commit("setModal",{type:"deleteGroup",object:{groupId:this.group.id}})}}},A=C,E=(0,v.A)(A,y,b,!1,null,"4da83ac4",null),k=E.exports,D={name:"editor-menu",components:{Avatar:u.A,EditorMenuTrack:m,EditorMenuGroup:k},data(){return{filter:"",toggle:{tracks:!1,groups:!1,users:!1}}},props:{sessions:Array,currentSession:Object},computed:{tracks(){return this.$store.getters.tracks||null},groups(){return this.sessions.filter((e=>"group"===e.type))},users(){return this.sessions.filter((e=>"user"===e.type))},filteredTracks(){return this.tracks.filter((e=>{const t=e.groups.filter((e=>e.includes(this.filter)));return e.id.includes(this.filter)||t.length})).sort(((e,t)=>e.id.localeCompare(t.id)))},filteredGroups(){return this.groups.filter((e=>e.id.includes(this.filter)||e.displayName.includes(this.filter)))},filteredUsers(){return this.users.filter((e=>e.displayName.includes(this.filter)))},modifiedSessions(){return this.$store.getters.modifiedSessions},canDeleteUsers(){const e="5.1.105",{pluginVersion:t}=this.$store.getters.metaData;return(0,c.gte)(t,e)}},methods:{changeCurrentSession(e){this.$store.commit("setCurrentSession",e),this.emitClearQuery()},createTrack(){this.$store.commit("setModal",{type:"createTrack"})},createGroup(){this.$store.commit("setModal",{type:"createGroup",object:this.groups})},deleteUser(e){this.$store.commit("setModal",{type:"deleteUser",object:{userId:e}})},emitClearQuery(){this.$emit("clear-query")}},watch:{filter(e){""!==e&&(this.toggle={tracks:!0,groups:!0,users:!0})}}},S=D,$=(0,v.A)(S,a,l,!1,null,null,null),T=$.exports,O=function(){var e=this,t=e._self._c;return t("div",{staticClass:"editor-header"},[t("h1",[t("small",[e._v(e._s(e.sessionData.type)+":")]),t("code",[e._v(e._s(e.session.displayName))]),"group"==e.sessionData.type&&e.session.displayName!==e.session.id?t("span",[e._v(" "+e._s(e.session.id)+" ")]):e._e(),"user"==e.sessionData.type?t("avatar",{attrs:{id:e.session.id,name:e.session.displayName}}):e._e()],1)])},N=[],M={components:{Avatar:u.A},name:"Header",props:{session:Object,sessionData:Object},methods:{}},P=M,I=(0,v.A)(P,O,N,!1,null,null,null),L=I.exports,R=function(){var e=this,t=e._self._c;return t("div",{staticClass:"editor-meta"},["group"===e.sessionData.type?t("div",{staticClass:"meta-weight"},[t("strong",[e._v(e._s(e.$t("editor.meta.weight")))]),t("code",[e._v(e._s(e.groupWeight))])]):e._e(),t("div",{staticClass:"meta-parents"},[t("div",{staticClass:"add-group"},[t("strong",[e._v(e._s(e.$t("editor.meta.parents")))]),t("button",{attrs:{title:e.$t("editor.meta.add",{id:e.session.id})},on:{click:function(t){e.addingGroup=!0}}},[e._v(" + ")]),e.addingGroup?t("ul",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeGroups,expression:"closeGroups"}]},e._l(e.groups,(function(n){return t("li",{key:`addParent_${n.id}`,on:{click:function(t){return e.addParentToGroup(n.id)}}},[e._v(" "+e._s(n.id)+" ")])})),0):e._e()]),t("ul",e._l(e.parents,(function(n){return t("li",{key:`groupParent_${n}`},[t("code",{attrs:{title:e.$t("editor.meta.gotoParent",{parent:n})},on:{click:function(t){return e.handleParentSessionSwitch(n)}}},[e._v(" "+e._s(n)+" "),t("span",{attrs:{title:e.$t("editor.meta.removeParent",{parent:n})},on:{click:function(t){return t.stopPropagation(),e.deleteParent(n)}}},[t("font-awesome",{attrs:{icon:"times"}})],1)])])})),0)])])},j=[],B=n(5980),F=n.n(B),V={name:"Meta",directives:{clickOutside:F().directive},props:{session:Object,sessionData:Object},data(){return{addingGroup:!1}},computed:{groupWeight(){const{weight:e}=this.sessionData;return 0===e.length?"N/A":1===e.length?e[0].key.split(".").pop():"Multiple"},groups(){return this.$store.getters.sessionSet.filter((e=>"group"===e.type)).filter((e=>!this.parents.includes(e.id)))},parents(){return this.sessionData.parents.filter((e=>e.value)).map((e=>e.key.split(".").pop()))}},methods:{handleParentSessionSwitch(e){this.$store.commit("setCurrentSession",e)},addParentToGroup(e){const t={sessionId:this.session.id,type:"permission",key:`group.${e}`,value:!0,isNew:!0};this.$store.dispatch("addNodes",[t]),this.addingGroup=!1},closeGroups(){this.addingGroup=!1},deleteParent(e){const t=this.sessionData.parents.find((t=>t.key===`group.${e}`));this.$store.commit("deleteNode",t.id)}}},U=V,Y=(0,v.A)(U,R,j,!1,null,null,null),G=Y.exports,H=function(){var e=this,t=e._self._c;return t("div",{staticClass:"node-list"},[t("h2",{domProps:{innerHTML:e._s(e.$tc("editor.nodes.permissionsCount",e.nodes.length))}}),t("div",{staticClass:"node-list-header"},[t("div",{staticClass:"sorting-tabs"},[t("div",{class:{"node-select-all":!0,selected:e.allSelected},attrs:{title:e.$t("editor.nodes.selectAll")},on:{click:e.selectAll}},[t("span")]),t("div",{staticClass:"permission",class:{active:"key"===e.sort.method},attrs:{title:e.$t("editor.nodes.sort.permission")},on:{click:function(t){return e.changeSort("key")}}},[e._v(" "+e._s(e.$t("editor.permissions"))+" "),"key"===e.sort.method?t("font-awesome",{class:{reverse:!e.sort.desc},attrs:{icon:"chevron-circle-down"}}):e._e()],1),t("div",{staticClass:"value",class:{active:"value"===e.sort.method},attrs:{title:e.$t("editor.nodes.sort.value")},on:{click:function(t){return e.changeSort("value")}}},[e._v(" "+e._s(e.$t("editor.value"))+" "),"value"===e.sort.method?t("font-awesome",{class:{reverse:!e.sort.desc},attrs:{icon:"chevron-circle-down"}}):e._e()],1),t("div",{staticClass:"expiry",class:{active:"expiry"===e.sort.method},attrs:{title:e.$t("editor.nodes.sort.expiry")},on:{click:function(t){return e.changeSort("expiry")}}},[e._v(" "+e._s(e.$t("editor.expiry"))+" "),"expiry"===e.sort.method?t("font-awesome",{class:{reverse:!e.sort.desc},attrs:{icon:"chevron-circle-down"}}):e._e()],1),t("div",{staticClass:"context",class:{active:"contexts"===e.sort.method},attrs:{title:e.$t("editor.nodes.sort.contexts")},on:{click:function(t){return e.changeSort("contexts")}}},[e._v(" "+e._s(e.$t("editor.contexts"))+" "),"contexts"===e.sort.method?t("font-awesome",{class:{reverse:!e.sort.desc},attrs:{icon:"chevron-circle-down"}}):e._e()],1),t("div",{staticClass:"delete-column"})])]),t("virtual-list",{staticClass:"node-list-scroll",attrs:{"data-sources":e.sortedNodes,"data-key":"id","data-component":e.Node,keeps:50,"estimate-size":42}})],1)},W=[],X=n(8479),q=n.n(X),z=n(7929),Q=n.n(z),K=function(){var e=this,t=e._self._c;return t("div",{class:{"permission-node":!0,modified:e.source.modified,new:e.source.isNew}},[t("div",{class:{"node-select":!0,selected:e.isSelected},attrs:{title:e.$t("editor.nodes.select")},on:{click:function(t){return e.toggleNodeSelect()}}},[t("span")]),e.permission.edit?t("div",{staticClass:"permission"},[t("input",{directives:[{name:"autofocus",rawName:"v-autofocus"},{name:"model",rawName:"v-model",value:e.permission.value,expression:"permission.value"}],attrs:{type:"text"},domProps:{value:e.permission.value},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.updateNode("key",e.permission)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.updateNode("key",e.permission)}],blur:function(t){return e.updateNode("key",e.permission)},input:function(t){t.target.composing||e.$set(e.permission,"value",t.target.value)}}})]):t("div",{staticClass:"permission",attrs:{title:e.$t("editor.nodes.edit")},on:{click:function(t){e.permission.edit=!0}}},[t("span",{staticClass:"node-type-badge",class:`badge-${e.parsedNode.type}`},[e._v(" "+e._s(e.$t(`editor.nodes.types.${e.parsedNode.type}`))+" ")]),t("code",{staticClass:"node-value"},["permission"===e.parsedNode.type?[e._v(" "+e._s(e.source.key)+" ")]:"inheritance"===e.parsedNode.type?[e._v(" "+e._s(e.parsedNode.groupName)+" ")]:"prefix"===e.parsedNode.type?[e._v(" "+e._s(e.parsedNode.prefix)+" "),t("span",{staticClass:"weight-indicator"},[e._v("("+e._s(e.$t("editor.nodes.weightLabel"))+": "+e._s(e.parsedNode.weight)+")")])]:"suffix"===e.parsedNode.type?[e._v(" "+e._s(e.parsedNode.suffix)+" "),t("span",{staticClass:"weight-indicator"},[e._v("("+e._s(e.$t("editor.nodes.weightLabel"))+": "+e._s(e.parsedNode.weight)+")")])]:"meta"===e.parsedNode.type?[e._v(" "+e._s(e.parsedNode.key)+" = "+e._s(e.parsedNode.value)+" ")]:"weight"===e.parsedNode.type?[e._v(" "+e._s(e.parsedNode.weight)+" ")]:"displayname"===e.parsedNode.type?[e._v(" "+e._s(e.parsedNode.displayName)+" ")]:e._e()],2)]),t("div",{staticClass:"value",attrs:{title:e.$t("editor.nodes.toggle")},on:{click:function(t){return e.toggleValue()}}},[t("code",{class:{true:e.source.value}},[e._v(e._s(e.source.value))])]),e.expiry.edit?t("div",{staticClass:"expiry"},[t("datepicker",{attrs:{"disabled-dates":{to:new Date},autofocus:!0},on:{closed:function(t){return e.updateNode("expiry",e.expiry)}},model:{value:e.expiry.value,callback:function(t){e.$set(e.expiry,"value",t)},expression:"expiry.value"}})],1):t("div",{staticClass:"expiry",attrs:{title:e.$t("editor.nodes.expiry")},on:{click:function(t){e.expiry.edit=!0}}},[e.source.expiry?t("code",[e._v(e._s(e.relativeExpiry))]):t("code",{attrs:{disabled:""}},[e._v(e._s(e.$t("editor.nodes.never")))]),e.source.expiry?t("button",{staticClass:"delete",attrs:{title:e.$t("editor.nodes.deleteExpiry")},on:{click:function(t){return t.stopPropagation(),e.deleteExpiry()}}},[t("font-awesome",{attrs:{icon:"times"}})],1):e._e()]),t("div",{staticClass:"contexts",attrs:{title:e.$t("editor.nodes.contexts")},on:{click:function(t){e.context.ui=!0}}},[e.flattenedContexts.length?t("span",e._l(e.flattenedContexts,(function(n,r){return t("code",{key:`node_context_${n.key}_${n.value}_${r}`},[t("small",[e._v(e._s(n.key)+":")]),e._v(" "+e._s(n.value)+" ")])})),0):t("code",{attrs:{disabled:""}},[e._v("none")])]),t("div",{staticClass:"delete",on:{click:function(t){return e.deleteNode(e.source.id)}}},[t("font-awesome",{attrs:{icon:"times"}})],1),t("transition",{attrs:{name:"fade"}},[e.context.ui?t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeContextUi,expression:"closeContextUi"}],staticClass:"context-ui"},[t("h4",[e._v("Contexts "),t("span",[e._v("("+e._s(e.flattenedContexts.length)+")")])]),t("div",{staticClass:"close",on:{click:e.closeContextUi}},[t("font-awesome",{attrs:{icon:"times"}})],1),t("ul",[e._l(e.flattenedContexts,(function(n,r){return t("li",{key:`flattened_context_${n.key}_${n.value}_${r}`},[t("span",[e._v(e._s(n.key))]),t("span",[e._v(e._s(n.value))]),t("button",{on:{click:function(t){return e.removeContext(n.key,n.value)}}},[t("font-awesome",{attrs:{icon:"times","fixed-width":""}})],1)])})),t("li",[t("h5",[e._v(" Add context: "),t("span",{staticClass:"lighter"},[e._v("(world, server, etc.)")])])]),t("li",[t("div",{staticClass:"edit"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.context.key,expression:"context.key"}],attrs:{type:"text",placeholder:e.$t("editor.key")},domProps:{value:e.context.key},on:{focus:function(t){e.context.keyFocus=!0},blur:function(t){return e.blurField("keyFocus")},input:function(t){t.target.composing||e.$set(e.context,"key",t.target.value)}}}),t("transition",{attrs:{name:"fade"}},[e.context.keyFocus?t("ul",{staticClass:"context-list"},e._l(e.potentialContexts,(function(n){return t("li",{key:`potential_context_key_${n.key}`,on:{click:function(t){e.context.key=n.key}}},[e._v(" "+e._s(n.key)+" ")])})),0):e._e()])],1),t("div",{staticClass:"edit"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.context.value,expression:"context.value"}],attrs:{type:"text",placeholder:e.$t("editor.value")},domProps:{value:e.context.value},on:{focus:function(t){e.context.valueFocus=!0},blur:function(t){return e.blurField("valueFocus")},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addContext.apply(null,arguments)},input:function(t){t.target.composing||e.$set(e.context,"value",t.target.value)}}}),t("transition",{attrs:{name:"fade"}},[e.context.valueFocus?t("ul",{staticClass:"context-list"},e._l(e.potentialContextValues,(function(n){return t("li",{key:`potential_context_value_${n}`,on:{click:function(t){e.context.value=n}}},[e._v(" "+e._s(n)+" ")])})),0):e._e()])],1)])],2),t("button",{on:{click:e.addContext}},[t("font-awesome",{attrs:{icon:"plus"}}),e._v(" "+e._s(e.$t("editor.nodes.addContext"))+" ")],1)]):e._e()])],1)},J=[];n(4114);function Z(e){return Z="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(e)}function ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function te(e,t){for(var n=0;n0?"in "+r:r+" ago":r}function ve(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth,i=e.formats[r]||e.formats[e.defaultWidth];return i}}var ge={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},me={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ye={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},be={date:ve({formats:ge,defaultWidth:"full"}),time:ve({formats:me,defaultWidth:"full"}),dateTime:ve({formats:ye,defaultWidth:"full"})},we={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function _e(e,t,n,r){return we[e]}function xe(e){return function(t,n){var r,i=n||{},o=i.context?String(i.context):"standalone";if("formatting"===o&&e.formattingValues){var s=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):s;r=e.formattingValues[a]||e.formattingValues[s]}else{var l=e.defaultWidth,c=i.width?String(i.width):e.defaultWidth;r=e.values[c]||e.values[l]}var u=e.argumentCallback?e.argumentCallback(t):t;return r[u]}}var Ce={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ee={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ke={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},De={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Se={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function $e(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var Te={ordinalNumber:$e,era:xe({values:Ce,defaultWidth:"wide"}),quarter:xe({values:Ae,defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:xe({values:Ee,defaultWidth:"wide"}),day:xe({values:ke,defaultWidth:"wide"}),dayPeriod:xe({values:De,defaultWidth:"wide",formattingValues:Se,defaultFormattingWidth:"wide"})};function Oe(e){return function(t,n){var r=String(t),i=n||{},o=r.match(e.matchPattern);if(!o)return null;var s=o[0],a=r.match(e.parsePattern);if(!a)return null;var l=e.valueCallback?e.valueCallback(a[0]):a[0];return l=i.valueCallback?i.valueCallback(l):l,{value:l,rest:r.slice(s.length)}}}function Ne(e){return function(t,n){var r=String(t),i=n||{},o=i.width,s=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],a=r.match(s);if(!a)return null;var l,c=a[0],u=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(u)?Pe(u,(function(e){return e.test(r)})):Me(u,(function(e){return e.test(r)})),l=e.valueCallback?e.valueCallback(l):l,l=i.valueCallback?i.valueCallback(l):l,{value:l,rest:r.slice(c.length)}}}function Me(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Pe(e,t){for(var n=0;n0?n:1-n;return Je("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Je(n+1,2)},d:function(e,t){return Je(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Je(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Je(e.getUTCHours(),t.length)},m:function(e,t){return Je(e.getUTCMinutes(),t.length)},s:function(e,t){return Je(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return Je(i,t.length)}},et=864e5;function tt(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=de(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/et)+1}function nt(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=1,n=de(e),r=n.getUTCDay(),i=(r=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function it(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=rt(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=nt(n);return r}var ot=6048e5;function st(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=de(e),n=nt(t).getTime()-it(t).getTime();return Math.round(n/ot)+1}function at(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:ze(i),s=null==n.weekStartsOn?o:ze(n.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var a=de(e),l=a.getUTCDay(),c=(l=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,l),c.setUTCHours(0,0,0,0);var u=at(c,t),d=new Date(0);d.setUTCFullYear(r,0,l),d.setUTCHours(0,0,0,0);var p=at(d,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=p.getTime()?r:r-1}function ct(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:ze(i),s=null==n.firstWeekContainsDate?o:ze(n.firstWeekContainsDate),a=lt(e,t),l=new Date(0);l.setUTCFullYear(a,0,s),l.setUTCHours(0,0,0,0);var c=at(l,t);return c}var ut=6048e5;function dt(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=de(e),r=at(n,t).getTime()-ct(n,t).getTime();return Math.round(r/ut)+1}var pt={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ht={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Ze.y(e,t)},Y:function(e,t,n,r){var i=lt(e,r),o=i>0?i:1-i;if("YY"===t){var s=o%100;return Je(s,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Je(o,t.length)},R:function(e,t){var n=rt(e);return Je(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return Je(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Je(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Je(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return Ze.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Je(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=dt(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):Je(i,t.length)},I:function(e,t,n){var r=st(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Je(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ze.d(e,t)},D:function(e,t,n){var r=tt(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Je(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Je(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Je(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return Je(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours(),i=r/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?pt.noon:0===i?pt.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?pt.evening:i>=12?pt.afternoon:i>=4?pt.morning:pt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ze.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ze.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Je(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Je(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ze.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ze.s(e,t)},S:function(e,t){return Ze.S(e,t)},X:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return vt(o);case"XXXX":case"XX":return gt(o);case"XXXXX":case"XXX":default:return gt(o,":")}},x:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return vt(o);case"xxxx":case"xx":return gt(o);case"xxxxx":case"xxx":default:return gt(o,":")}},O:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ft(o,":");case"OOOO":default:return"GMT"+gt(o,":")}},z:function(e,t,n,r){var i=r._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ft(o,":");case"zzzz":default:return"GMT"+gt(o,":")}},t:function(e,t,n,r){var i=r._originalDate||e,o=Math.floor(i.getTime()/1e3);return Je(o,t.length)},T:function(e,t,n,r){var i=r._originalDate||e,o=i.getTime();return Je(o,t.length)}};function ft(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var s=t||"";return n+String(i)+s+Je(o,2)}function vt(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Je(Math.abs(e)/60,2)}return gt(e,t)}function gt(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=Je(Math.floor(i/60),2),s=Je(i%60,2);return r+o+n+s}function mt(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function yt(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}function bt(e,t){var n,r=e.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return mt(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",mt(i,t)).replace("{{time}}",yt(o,t))}var wt={p:yt,P:bt},_t=6e4;function xt(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());t.setSeconds(0,0);var r=t.getTime()%_t;return n*_t+r}var Ct=["D","DD"],At=["YY","YYYY"];function Et(e){return-1!==Ct.indexOf(e)}function kt(e){return-1!==At.indexOf(e)}function Dt(e){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===e)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===e)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===e)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}var St=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$t=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tt=/^'([^]*?)'?$/,Ot=/''/g,Nt=/[a-zA-Z]/;function Mt(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=String(t),i=n||{},o=i.locale||qe,s=o.options&&o.options.firstWeekContainsDate,a=null==s?1:ze(s),l=null==i.firstWeekContainsDate?a:ze(i.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=o.options&&o.options.weekStartsOn,u=null==c?0:ze(c),d=null==i.weekStartsOn?u:ze(i.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var p=de(e);if(!pe(p))throw new RangeError("Invalid time value");var h=xt(p),f=Ke(p,h),v={firstWeekContainsDate:l,weekStartsOn:d,locale:o,_originalDate:p},g=r.match($t).map((function(e){var t=e[0];if("p"===t||"P"===t){var n=wt[t];return n(e,o.formatLong,v)}return e})).join("").match(St).map((function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return Pt(e);var n=ht[t];if(n)return!i.useAdditionalWeekYearTokens&&kt(e)&&Dt(e),!i.useAdditionalDayOfYearTokens&&Et(e)&&Dt(e),n(f,e,o.localize,v);if(t.match(Nt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e})).join("");return g}function Pt(e){return e.match(Tt)[1].replace(Ot,"'")}var It={props:{selectedDate:Date,resetTypedDate:[Date],format:[String,Function],translation:Object,inline:Boolean,id:String,name:String,refName:String,openDate:Date,placeholder:String,inputClass:[String,Object,Array],clearButton:Boolean,clearButtonIcon:String,calendarButton:Boolean,calendarButtonIcon:String,calendarButtonIconContent:String,disabled:Boolean,required:Boolean,typeable:Boolean,bootstrapStyling:Boolean,useUtc:Boolean,autofocus:Boolean},data:function(){var e=ce(this.useUtc);return{input:null,typedDate:!1,utils:e}},computed:{formattedValue:function(){return this.selectedDate?this.typedDate?this.typedDate:"function"===typeof this.format?this.format(this.selectedDate):this.utils.formatDate(new Date(this.selectedDate),this.format,this.translation):null},formatted:function(){return this.selectedDate?this.typedDate?this.typedDate:Mt(this.selectedDate,this.format):null},computedInputClass:function(){return this.bootstrapStyling?"string"===typeof this.inputClass?[this.inputClass,"form-control"].join(" "):oe({"form-control":!0},this.inputClass):this.inputClass}},watch:{resetTypedDate:function(){this.typedDate=!1}},methods:{showCalendar:function(){this.$emit("showCalendar")},parseTypedDate:function(e){if([27,13].includes(e.keyCode)&&this.input.blur(),this.typeable){var t=Date.parse(this.input.value);isNaN(t)||(this.typedDate=this.input.value,this.$emit("typedDate",new Date(this.typedDate)))}},inputBlurred:function(){this.typeable&&isNaN(Date.parse(this.input.value))&&(this.clearDate(),this.input.value=null,this.typedDate=null),this.$emit("closeCalendar")},clearDate:function(){this.$emit("clearDate")}},mounted:function(){this.input=this.$el.querySelector("input")}};function Lt(e,t,n,r,i,o,s,a,l,c){"boolean"!==typeof s&&(l=a,a=s,s=!1);const u="function"===typeof n?n.options:n;let d;if(e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),r&&(u._scopeId=r),o?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=d):t&&(d=s?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),d)if(u.functional){const e=u.render;u.render=function(t,n){return d.call(n),e(t,n)}}else{const e=u.beforeCreate;u.beforeCreate=e?[].concat(e,d):[d]}return n}const Rt=It;var jt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"input-group":e.bootstrapStyling}},[e.calendarButton?n("span",{staticClass:"vdp-datepicker__calendar-button",class:{"input-group-prepend":e.bootstrapStyling},style:{"cursor:not-allowed;":e.disabled},on:{click:e.showCalendar}},[n("span",{class:{"input-group-text":e.bootstrapStyling}},[n("i",{class:e.calendarButtonIcon},[e._v("\n "+e._s(e.calendarButtonIconContent)+"\n "),e.calendarButtonIcon?e._e():n("span",[e._v("…")])])])]):e._e(),e._v(" "),n("input",{directives:[{name:"autofocus",rawName:"v-autofocus",value:e.autofocus,expression:"autofocus"}],ref:e.refName,class:e.computedInputClass,attrs:{type:e.inline?"hidden":"text",name:e.name,id:e.id,"open-date":e.openDate,placeholder:e.placeholder,"clear-button":e.clearButton,disabled:e.disabled,required:e.required,readonly:!e.typeable,autocomplete:"off"},domProps:{value:e.formatted},on:{focus:e.showCalendar,click:e.showCalendar,keyup:e.parseTypedDate,blur:e.inputBlurred}}),e._v(" "),e.clearButton&&e.selectedDate?n("span",{staticClass:"vdp-datepicker__clear-button",class:{"input-group-append":e.bootstrapStyling},on:{click:function(t){return e.clearDate()}}},[n("span",{class:{"input-group-text":e.bootstrapStyling}},[n("i",{class:e.clearButtonIcon},[e.clearButtonIcon?e._e():n("span",[e._v("×")])])])]):e._e(),e._v(" "),e._t("afterDateInput")],2)},Bt=[];jt._withStripped=!0;const Ft=void 0,Vt=void 0,Ut=void 0,Yt=!1,Gt=Lt({render:jt,staticRenderFns:Bt},Ft,Rt,Vt,Yt,Ut,!1,void 0,void 0,void 0);var Ht={props:{showTimeView:Boolean,selectedDate:Date,format:[String,Function],allowedToShowView:Function,calendarClass:[String,Object,Array],calendarStyle:Object,useUtc:Boolean,translation:Object},data:function(){var e=ce(this.useUtc);return{utils:e}},computed:{formattedValue:function(){return this.selectedDate?"function"===typeof this.format?this.format(this.selectedDate):this.utils.formatDate(new Date(this.selectedDate),this.format,this.translation):null},formatted:function(){return Mt(this.selectedDate,this.format)}},methods:{setHours:function(e){var t=this.selectedDate;this.utils.setHours(t,this.utils.getHours(t)+e),this.$emit("selectDate",{date:t,timestamp:t.getTime()})},setMinutes:function(e){var t=this.selectedDate;this.utils.setMinutes(t,this.utils.getMinutes(t)+e),this.$emit("selectDate",{date:t,timestamp:t.getTime()})},showDayCalendar:function(){this.$emit("showDayCalendar")}}};const Wt=Ht;var Xt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showTimeView,expression:"showTimeView"}],class:[e.calendarClass,"vdp-datepicker__calendar"],style:e.calendarStyle,on:{mousedown:function(e){e.preventDefault()}}},[e._t("beforeCalendarHeader"),e._v(" "),n("header",[n("div",{staticClass:"day__calendar_btn",class:e.allowedToShowView("day")?"up":"",on:{click:e.showDayCalendar}},[e._v(e._s(e.formatted))])]),e._v(" "),n("span",{staticClass:"cell time time_up",on:{click:function(t){return e.setHours(1)}}},[e._v("up")]),n("span",{staticClass:"cell"}),n("span",{staticClass:"cell time time_up",on:{click:function(t){return e.setMinutes(1)}}},[e._v("up")]),e._v(" "),n("span",{staticClass:"cell time"},[e._v(e._s(e.utils.getHours(e.selectedDate)))]),n("span",{staticClass:"cell"},[e._v(":")]),n("span",{staticClass:"cell time"},[e._v(e._s(e.utils.getMinutes(e.selectedDate)))]),e._v(" "),n("span",{staticClass:"cell time time_down",on:{click:function(t){return e.setHours(-1)}}},[e._v("down")]),n("span",{staticClass:"cell"}),n("span",{staticClass:"cell time time_down",on:{click:function(t){return e.setMinutes(-1)}}},[e._v("down")])],2)},qt=[];Xt._withStripped=!0;const zt=void 0,Qt=void 0,Kt=void 0,Jt=!1,Zt=Lt({render:Xt,staticRenderFns:qt},zt,Wt,Qt,Jt,Kt,!1,void 0,void 0,void 0);var en={props:{showDayView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,fullMonthName:Boolean,allowedToShowView:Function,dayCellContent:{type:Function,default:function(e){return e.date}},disabledDates:Object,highlighted:Object,calendarClass:[String,Object,Array],calendarStyle:Object,translation:Object,isRtl:Boolean,mondayFirst:Boolean,useUtc:Boolean,time:Boolean},data:function(){var e=ce(this.useUtc);return{utils:e}},computed:{hours:function(){return this.selectedDate?"".concat(this.utils.getHours(this.selectedDate),":").concat(this.utils.getMinutes(this.selectedDate)):"--:--"},daysOfWeek:function(){if(this.mondayFirst){var e=this.translation.days.slice();return e.push(e.shift()),e}return this.translation.days},blankDays:function(){var e=this.pageDate,t=this.useUtc?new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)):new Date(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes());return this.mondayFirst?this.utils.getDay(t)>0?this.utils.getDay(t)-1:6:this.utils.getDay(t)},days:function(){for(var e=this.pageDate,t=[],n=this.useUtc?new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)):new Date(e.getFullYear(),e.getMonth(),1,e.getHours(),e.getMinutes()),r=this.utils.daysInMonth(this.utils.getFullYear(n),this.utils.getMonth(n)),i=0;i=this.utils.getMonth(e)&&this.utils.getFullYear(this.disabledDates.to)>=this.utils.getFullYear(e)},nextMonth:function(){this.isNextMonthDisabled()||this.changeMonth(1)},isNextMonthDisabled:function(){if(!this.disabledDates||!this.disabledDates.from)return!1;var e=this.pageDate;return this.utils.getMonth(this.disabledDates.from)<=this.utils.getMonth(e)&&this.utils.getFullYear(this.disabledDates.from)<=this.utils.getFullYear(e)},isSelectedDate:function(e){return this.selectedDate&&this.utils.compareDates(this.selectedDate,e)},isDisabledDate:function(e){var t=this,n=!1;return"undefined"!==typeof this.disabledDates&&("undefined"!==typeof this.disabledDates.dates&&this.disabledDates.dates.forEach((function(r){if(t.utils.compareDates(e,r))return n=!0,!0})),"undefined"!==typeof this.disabledDates.to&&this.disabledDates.to&&ethis.disabledDates.from&&(n=!0),"undefined"!==typeof this.disabledDates.ranges&&this.disabledDates.ranges.forEach((function(t){if("undefined"!==typeof t.from&&t.from&&"undefined"!==typeof t.to&&t.to&&et.from)return n=!0,!0})),"undefined"!==typeof this.disabledDates.days&&-1!==this.disabledDates.days.indexOf(this.utils.getDay(e))&&(n=!0),"undefined"!==typeof this.disabledDates.daysOfMonth&&-1!==this.disabledDates.daysOfMonth.indexOf(this.utils.getDate(e))&&(n=!0),"function"===typeof this.disabledDates.customPredictor&&this.disabledDates.customPredictor(e)&&(n=!0),n)},isHighlightedDate:function(e){var t=this;if((!this.highlighted||!this.highlighted.includeDisabled)&&this.isDisabledDate(e))return!1;var n=!1;return"undefined"!==typeof this.highlighted&&("undefined"!==typeof this.highlighted.dates&&this.highlighted.dates.forEach((function(r){if(t.utils.compareDates(e,r))return n=!0,!0})),this.isDefined(this.highlighted.from)&&this.isDefined(this.highlighted.to)&&(n=e>=this.highlighted.from&&e<=this.highlighted.to),"undefined"!==typeof this.highlighted.days&&-1!==this.highlighted.days.indexOf(this.utils.getDay(e))&&(n=!0),"undefined"!==typeof this.highlighted.daysOfMonth&&-1!==this.highlighted.daysOfMonth.indexOf(this.utils.getDate(e))&&(n=!0),"function"===typeof this.highlighted.customPredictor&&this.highlighted.customPredictor(e)&&(n=!0),n)},dayClasses:function(e){return{selected:e.isSelected,disabled:e.isDisabled,highlighted:e.isHighlighted,today:e.isToday,weekend:e.isWeekend,sat:e.isSaturday,sun:e.isSunday,"highlight-start":e.isHighlightStart,"highlight-end":e.isHighlightEnd}},isHighlightStart:function(e){return this.isHighlightedDate(e)&&this.highlighted.from instanceof Date&&this.utils.getFullYear(this.highlighted.from)===this.utils.getFullYear(e)&&this.utils.getMonth(this.highlighted.from)===this.utils.getMonth(e)&&this.utils.getDate(this.highlighted.from)===this.utils.getDate(e)},isHighlightEnd:function(e){return this.isHighlightedDate(e)&&this.highlighted.to instanceof Date&&this.utils.getFullYear(this.highlighted.to)===this.utils.getFullYear(e)&&this.utils.getMonth(this.highlighted.to)===this.utils.getMonth(e)&&this.utils.getDate(this.highlighted.to)===this.utils.getDate(e)},isDefined:function(e){return"undefined"!==typeof e&&e}}};const tn=en;var nn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showDayView,expression:"showDayView"}],class:[e.calendarClass,"vdp-datepicker__calendar"],style:e.calendarStyle,on:{mousedown:function(e){e.preventDefault()}}},[e._t("beforeCalendarHeader"),e._v(" "),n("header",[n("span",{staticClass:"prev",class:{disabled:e.isLeftNavDisabled},on:{click:function(t){e.isRtl?e.nextMonth():e.previousMonth()}}},[e._v("<")]),e._v(" "),n("span",{staticClass:"day__month_btn",class:e.allowedToShowView("month")?"up":"",on:{click:e.showMonthCalendar}},[e._v(e._s(e.isYmd?e.currYearName:e.currMonthName)+" "+e._s(e.isYmd?e.currMonthName:e.currYearName))]),e._v(" "),n("span",{staticClass:"next",class:{disabled:e.isRightNavDisabled},on:{click:function(t){e.isRtl?e.previousMonth():e.nextMonth()}}},[e._v(">")])]),e._v(" "),n("div",{class:e.isRtl?"flex-rtl":""},[e._l(e.daysOfWeek,(function(t){return n("span",{key:t.timestamp,staticClass:"cell day-header"},[e._v(e._s(t))])})),e._v(" "),e.blankDays>0?e._l(e.blankDays,(function(e){return n("span",{key:e.timestamp,staticClass:"cell day blank"})})):e._e(),e._l(e.days,(function(t){return n("span",{key:t.timestamp,staticClass:"cell day",class:e.dayClasses(t),domProps:{innerHTML:e._s(e.dayCellContent(t))},on:{click:function(n){return e.selectDate(t)}}})}))],2),e._v(" "),e.time?n("footer",{staticClass:"day__time_foot",class:e.allowedToShowView("time")?"up":"",on:{click:e.showTimeCalendar}},[e._t("timeButton",[n("span",{staticClass:"day__time_btn"},[e._v(e._s(e.hours))])])],2):e._e()],2)},rn=[];nn._withStripped=!0;const on=void 0,sn=void 0,an=void 0,ln=!1,cn=Lt({render:nn,staticRenderFns:rn},on,tn,sn,ln,an,!1,void 0,void 0,void 0);var un={props:{showMonthView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,disabledDates:Object,calendarClass:[String,Object,Array],calendarStyle:Object,translation:Object,isRtl:Boolean,allowedToShowView:Function,useUtc:Boolean},data:function(){var e=ce(this.useUtc);return{utils:e}},computed:{months:function(){for(var e=this.pageDate,t=[],n=this.useUtc?new Date(Date.UTC(e.getUTCFullYear(),0,e.getUTCDate())):new Date(e.getFullYear(),0,e.getDate(),e.getHours(),e.getMinutes()),r=0;r<12;r++)t.push({month:this.utils.getMonthName(r,this.translation.months),timestamp:n.getTime(),isSelected:this.isSelectedMonth(n),isDisabled:this.isDisabledMonth(n)}),this.utils.setMonth(n,this.utils.getMonth(n)+1);return t},pageYearName:function(){var e=this.translation.yearSuffix;return"".concat(this.utils.getFullYear(this.pageDate)).concat(e)},isLeftNavDisabled:function(){return this.isRtl?this.isNextYearDisabled(this.pageTimestamp):this.isPreviousYearDisabled(this.pageTimestamp)},isRightNavDisabled:function(){return this.isRtl?this.isPreviousYearDisabled(this.pageTimestamp):this.isNextYearDisabled(this.pageTimestamp)}},methods:{selectMonth:function(e){if(e.isDisabled)return!1;this.$emit("selectMonth",e)},changeYear:function(e){var t=this.pageDate;this.utils.setFullYear(t,this.utils.getFullYear(t)+e),this.$emit("changedYear",t)},previousYear:function(){this.isPreviousYearDisabled()||this.changeYear(-1)},isPreviousYearDisabled:function(){return!(!this.disabledDates||!this.disabledDates.to)&&this.utils.getFullYear(this.disabledDates.to)>=this.utils.getFullYear(this.pageDate)},nextYear:function(){this.isNextYearDisabled()||this.changeYear(1)},isNextYearDisabled:function(){return!(!this.disabledDates||!this.disabledDates.from)&&this.utils.getFullYear(this.disabledDates.from)<=this.utils.getFullYear(this.pageDate)},showYearCalendar:function(){this.$emit("showYearCalendar")},isSelectedMonth:function(e){return this.selectedDate&&this.utils.getFullYear(this.selectedDate)===this.utils.getFullYear(e)&&this.utils.getMonth(this.selectedDate)===this.utils.getMonth(e)},isDisabledMonth:function(e){var t=!1;return"undefined"!==typeof this.disabledDates&&("undefined"!==typeof this.disabledDates.to&&this.disabledDates.to&&(this.utils.getMonth(e)this.utils.getMonth(this.disabledDates.from)&&this.utils.getFullYear(e)>=this.utils.getFullYear(this.disabledDates.from)||this.utils.getFullYear(e)>this.utils.getFullYear(this.disabledDates.from))&&(t=!0),"function"===typeof this.disabledDates.customPredictor&&this.disabledDates.customPredictor(e)&&(t=!0),t)}}};const dn=un;var pn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showMonthView,expression:"showMonthView"}],class:[e.calendarClass,"vdp-datepicker__calendar"],style:e.calendarStyle,on:{mousedown:function(e){e.preventDefault()}}},[e._t("beforeCalendarHeader"),e._v(" "),n("header",[n("span",{staticClass:"prev",class:{disabled:e.isLeftNavDisabled},on:{click:function(t){e.isRtl?e.nextYear():e.previousYear()}}},[e._v("<")]),e._v(" "),n("span",{staticClass:"month__year_btn",class:e.allowedToShowView("year")?"up":"",on:{click:e.showYearCalendar}},[e._v(e._s(e.pageYearName))]),e._v(" "),n("span",{staticClass:"next",class:{disabled:e.isRightNavDisabled},on:{click:function(t){e.isRtl?e.previousYear():e.nextYear()}}},[e._v(">")])]),e._v(" "),e._l(e.months,(function(t){return n("span",{key:t.timestamp,staticClass:"cell month",class:{selected:t.isSelected,disabled:t.isDisabled},on:{click:function(n){return n.stopPropagation(),e.selectMonth(t)}}},[e._v(e._s(t.month))])}))],2)},hn=[];pn._withStripped=!0;const fn=void 0,vn=void 0,gn=void 0,mn=!1,yn=Lt({render:pn,staticRenderFns:hn},fn,dn,vn,mn,gn,!1,void 0,void 0,void 0);var bn={props:{showYearView:Boolean,selectedDate:Date,pageDate:Date,pageTimestamp:Number,disabledDates:Object,highlighted:Object,calendarClass:[String,Object,Array],calendarStyle:Object,translation:Object,isRtl:Boolean,allowedToShowView:Function,useUtc:Boolean},computed:{years:function(){for(var e=this.pageDate,t=[],n=this.useUtc?new Date(Date.UTC(10*Math.floor(e.getUTCFullYear()/10),e.getUTCMonth(),e.getUTCDate())):new Date(10*Math.floor(e.getFullYear()/10),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes()),r=0;r<10;r++)t.push({year:this.utils.getFullYear(n),timestamp:n.getTime(),isSelected:this.isSelectedYear(n),isDisabled:this.isDisabledYear(n)}),this.utils.setFullYear(n,this.utils.getFullYear(n)+1);return t},getPageDecade:function(){var e=10*Math.floor(this.utils.getFullYear(this.pageDate)/10),t=e+9,n=this.translation.yearSuffix;return"".concat(e," - ").concat(t).concat(n)},isLeftNavDisabled:function(){return this.isRtl?this.isNextDecadeDisabled(this.pageTimestamp):this.isPreviousDecadeDisabled(this.pageTimestamp)},isRightNavDisabled:function(){return this.isRtl?this.isPreviousDecadeDisabled(this.pageTimestamp):this.isNextDecadeDisabled(this.pageTimestamp)}},data:function(){var e=ce(this.useUtc);return{utils:e}},methods:{selectYear:function(e){if(e.isDisabled)return!1;this.$emit("selectYear",e)},changeYear:function(e){var t=this.pageDate;this.utils.setFullYear(t,this.utils.getFullYear(t)+e),this.$emit("changedDecade",t)},previousDecade:function(){if(this.isPreviousDecadeDisabled())return!1;this.changeYear(-10)},isPreviousDecadeDisabled:function(){if(!this.disabledDates||!this.disabledDates.to)return!1;var e=this.utils.getFullYear(this.disabledDates.to),t=10*Math.floor(this.utils.getFullYear(this.pageDate)/10)-1;return e>t},nextDecade:function(){if(this.isNextDecadeDisabled())return!1;this.changeYear(10)},isNextDecadeDisabled:function(){if(!this.disabledDates||!this.disabledDates.from)return!1;var e=this.utils.getFullYear(this.disabledDates.from),t=10*Math.ceil(this.utils.getFullYear(this.pageDate)/10);return ethis.utils.getFullYear(this.disabledDates.from)&&(t=!0),"function"===typeof this.disabledDates.customPredictor&&this.disabledDates.customPredictor(e)&&(t=!0),t)}}};const wn=bn;var _n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showYearView,expression:"showYearView"}],class:[e.calendarClass,"vdp-datepicker__calendar"],style:e.calendarStyle,on:{mousedown:function(e){e.preventDefault()}}},[e._t("beforeCalendarHeader"),e._v(" "),n("header",[n("span",{staticClass:"prev",class:{disabled:e.isLeftNavDisabled},on:{click:function(t){e.isRtl?e.nextDecade():e.previousDecade()}}},[e._v("<")]),e._v(" "),n("span",[e._v(e._s(e.getPageDecade))]),e._v(" "),n("span",{staticClass:"next",class:{disabled:e.isRightNavDisabled},on:{click:function(t){e.isRtl?e.previousDecade():e.nextDecade()}}},[e._v(">")])]),e._v(" "),e._l(e.years,(function(t){return n("span",{key:t.timestamp,staticClass:"cell year",class:{selected:t.isSelected,disabled:t.isDisabled},on:{click:function(n){return n.stopPropagation(),e.selectYear(t)}}},[e._v(e._s(t.year))])}))],2)},xn=[];_n._withStripped=!0;const Cn=void 0,An=void 0,En=void 0,kn=!1,Dn=Lt({render:_n,staticRenderFns:xn},Cn,wn,An,kn,En,!1,void 0,void 0,void 0);var Sn={components:{DateInput:Gt,PickerTime:Zt,PickerDay:cn,PickerMonth:yn,PickerYear:Dn},props:{value:{validator:function(e){return ue.validateDateInput(e)}},name:String,refName:String,id:String,format:{type:[String,Function],default:"dd MMM yyyy"},language:{type:Object,default:function(){return ae}},openDate:{validator:function(e){return ue.validateDateInput(e)}},dayCellContent:Function,fullMonthName:Boolean,disabledDates:Object,highlighted:Object,placeholder:String,inline:Boolean,calendarClass:[String,Object,Array],inputClass:[String,Object,Array],wrapperClass:[String,Object,Array],mondayFirst:Boolean,clearButton:Boolean,clearButtonIcon:String,calendarButton:Boolean,calendarButtonIcon:String,calendarButtonIconContent:String,bootstrapStyling:Boolean,initialView:String,disabled:Boolean,required:Boolean,typeable:Boolean,useUtc:Boolean,time:Boolean,minimumView:{type:String,default:"day"},maximumView:{type:String,default:"year"},autofocus:{type:Boolean,default:!1}},data:function(){var e=this.openDate?new Date(this.openDate):new Date,t=ce(this.useUtc),n=t.setDate(e,1);return{pageTimestamp:n,selectedDate:null,showTimeView:!1,showDayView:!1,showMonthView:!1,showYearView:!1,calendarHeight:0,resetTypedDate:new Date,utils:t}},watch:{value:function(e){this.setValue(e)},openDate:function(){this.setPageDate()},initialView:function(){this.setInitialView()}},computed:{computedInitialView:function(){return this.initialView?this.initialView:this.minimumView},pageDate:function(){return new Date(this.pageTimestamp)},translation:function(){return this.language},calendarStyle:function(){return{position:this.isInline?"static":void 0}},isOpen:function(){return this.showTimeView||this.showDayView||this.showMonthView||this.showYearView},isInline:function(){return!!this.inline},isRtl:function(){return!0===this.translation.rtl}},methods:{resetDefaultPageDate:function(){null!==this.selectedDate?this.setPageDate(this.selectedDate):this.setPageDate()},showCalendar:function(){if(this.disabled||this.isInline)return!1;this.isOpen,this.setInitialView()},setInitialView:function(){var e=this.computedInitialView;if(!this.allowedToShowView(e))throw new Error("initialView '".concat(this.initialView,"' cannot be rendered based on minimum '").concat(this.minimumView,"' and maximum '").concat(this.maximumView,"'"));switch(e){case"year":this.showYearCalendar();break;case"month":this.showMonthCalendar();break;default:this.showDayCalendar();break}},allowedToShowView:function(e){var t=["day","month","year"],n=t.indexOf(this.minimumView),r=t.indexOf(this.maximumView),i=t.indexOf(e);return"time"===e?this.time&&Boolean(this.selectedDate):i>=n&&i<=r},showTimeCalendar:function(){return!!this.allowedToShowView("time")&&(this.close(),this.showTimeView=!0,!0)},showDayCalendar:function(){return!!this.allowedToShowView("day")&&(this.close(),this.showDayView=!0,!0)},showMonthCalendar:function(){return!!this.allowedToShowView("month")&&(this.close(),this.showMonthView=!0,!0)},showYearCalendar:function(){return!!this.allowedToShowView("year")&&(this.close(),this.showYearView=!0,!0)},setDate:function(e){var t=new Date(e);this.selectedDate=t,this.setPageDate(t),this.$emit("selected",t),this.$emit("input",t)},clearDate:function(){this.selectedDate=null,this.setPageDate(),this.$emit("selected",null),this.$emit("input",null),this.$emit("cleared")},selectDate:function(e){this.setDate(e.timestamp),this.isInline||this.time||this.close(!0),this.resetTypedDate=new Date},selectDisabledDate:function(e){this.$emit("selectedDisabled",e)},selectMonth:function(e){var t=new Date(e.timestamp);this.allowedToShowView("day")?(this.setPageDate(t),this.$emit("changedMonth",e),this.showDayCalendar()):this.selectDate(e)},selectYear:function(e){var t=new Date(e.timestamp);this.allowedToShowView("month")?(this.setPageDate(t),this.$emit("changedYear",e),this.showMonthCalendar()):this.selectDate(e)},setValue:function(e){if("string"===typeof e||"number"===typeof e){var t=new Date(e);e=isNaN(t.valueOf())?null:t}if(!e)return this.setPageDate(),void(this.selectedDate=null);this.selectedDate=e,this.setPageDate(e)},setPageDate:function(e){e||(e=this.openDate?new Date(this.openDate):new Date),this.pageTimestamp=this.utils.setDate(new Date(e),1)},handleChangedMonthFromDayPicker:function(e){this.setPageDate(e),this.$emit("changedMonth",e)},setTypedDate:function(e){this.setDate(e.getTime())},close:function(e){this.showTimeView=this.showDayView=this.showMonthView=this.showYearView=!1,this.isInline||(e&&this.$emit("closed"),document.removeEventListener("click",this.clickOutside,!1))},init:function(){this.value&&this.setValue(this.value),this.isInline&&this.setInitialView()}},mounted:function(){this.init()}};const $n="undefined"!==typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function Tn(e){return(e,t)=>Mn(e,t)}let On;const Nn={};function Mn(e,t){const n=$n?t.media||"default":e,r=Nn[n]||(Nn[n]={ids:new Set,styles:[]});if(!r.ids.has(e)){r.ids.add(e);let n=t.source;if(t.map&&(n+="\n/*# sourceURL="+t.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",t.media&&r.element.setAttribute("media",t.media),void 0===On&&(On=document.head||document.getElementsByTagName("head")[0]),On.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(n),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{const e=r.ids.size-1,t=document.createTextNode(n),i=r.element.childNodes;i[e]&&r.element.removeChild(i[e]),i.length?r.element.insertBefore(t,i[e]):r.element.appendChild(t)}}}const Pn=Sn;var In=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vdp-datepicker",class:[e.wrapperClass,e.isRtl?"rtl":""]},[n("date-input",{attrs:{selectedDate:e.selectedDate,resetTypedDate:e.resetTypedDate,format:e.format,translation:e.translation,inline:e.inline,id:e.id,name:e.name,refName:e.refName,openDate:e.openDate,placeholder:e.placeholder,inputClass:e.inputClass,typeable:e.typeable,clearButton:e.clearButton,clearButtonIcon:e.clearButtonIcon,calendarButton:e.calendarButton,calendarButtonIcon:e.calendarButtonIcon,calendarButtonIconContent:e.calendarButtonIconContent,disabled:e.disabled,required:e.required,bootstrapStyling:e.bootstrapStyling,"use-utc":e.useUtc,autofocus:e.autofocus},on:{showCalendar:e.showCalendar,closeCalendar:function(t){return e.close(!0)},typedDate:e.setTypedDate,clearDate:e.clearDate}},[e._t("afterDateInput",null,{slot:"afterDateInput"})],2),e._v(" "),e.allowedToShowView("time")?n("picker-time",{attrs:{showTimeView:e.showTimeView,allowedToShowView:e.allowedToShowView,format:e.format,selectedDate:e.selectedDate,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,"use-utc":e.useUtc},on:{selectDate:e.selectDate,showDayCalendar:e.showDayCalendar}},[e._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):e._e(),e._v(" "),e.allowedToShowView("day")?n("picker-day",{attrs:{pageDate:e.pageDate,selectedDate:e.selectedDate,showDayView:e.showDayView,fullMonthName:e.fullMonthName,allowedToShowView:e.allowedToShowView,disabledDates:e.disabledDates,highlighted:e.highlighted,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,pageTimestamp:e.pageTimestamp,isRtl:e.isRtl,mondayFirst:e.mondayFirst,dayCellContent:e.dayCellContent,"use-utc":e.useUtc,time:e.time},on:{changedMonth:e.handleChangedMonthFromDayPicker,selectDate:e.selectDate,showTimeCalendar:e.showTimeCalendar,showMonthCalendar:e.showMonthCalendar,selectedDisabled:e.selectDisabledDate}},[e._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):e._e(),e._v(" "),e.allowedToShowView("month")?n("picker-month",{attrs:{pageDate:e.pageDate,selectedDate:e.selectedDate,showMonthView:e.showMonthView,allowedToShowView:e.allowedToShowView,disabledDates:e.disabledDates,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,isRtl:e.isRtl,"use-utc":e.useUtc},on:{selectMonth:e.selectMonth,showYearCalendar:e.showYearCalendar,changedYear:e.setPageDate}},[e._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):e._e(),e._v(" "),e.allowedToShowView("year")?n("picker-year",{attrs:{pageDate:e.pageDate,selectedDate:e.selectedDate,showYearView:e.showYearView,allowedToShowView:e.allowedToShowView,disabledDates:e.disabledDates,calendarClass:e.calendarClass,calendarStyle:e.calendarStyle,translation:e.translation,isRtl:e.isRtl,"use-utc":e.useUtc},on:{selectYear:e.selectYear,changedDecade:e.setPageDate}},[e._t("beforeCalendarHeader",null,{slot:"beforeCalendarHeader"})],2):e._e()],1)},Ln=[];In._withStripped=!0;const Rn=function(e){e&&e("data-v-49ee4b2f_0",{source:".rtl {\n direction: rtl;\n}\n.vdp-datepicker {\n position: relative;\n text-align: left;\n}\n.vdp-datepicker * {\n box-sizing: border-box;\n}\n.vdp-datepicker__calendar {\n position: absolute;\n z-index: 100;\n background: #fff;\n width: 300px;\n border: 1px solid #ccc;\n}\n.vdp-datepicker__calendar footer {\n display: block;\n line-height: 40px;\n text-align: center;\n}\n.vdp-datepicker__calendar footer span {\n display: inline-block;\n text-align: center;\n width: 100%;\n cursor: pointer;\n}\n.vdp-datepicker__calendar footer span:hover {\n background: #eee;\n}\n.vdp-datepicker__calendar header {\n display: block;\n line-height: 40px;\n}\n.vdp-datepicker__calendar header span {\n display: inline-block;\n text-align: center;\n width: 71.42857142857143%;\n float: left;\n}\n.vdp-datepicker__calendar header div {\n text-align: center;\n}\n.vdp-datepicker__calendar header .prev,\n.vdp-datepicker__calendar header .next {\n width: 14.285714285714286%;\n float: left;\n text-indent: -10000px;\n position: relative;\n}\n.vdp-datepicker__calendar header .prev:after,\n.vdp-datepicker__calendar header .next:after {\n content: '';\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n border: 6px solid transparent;\n}\n.vdp-datepicker__calendar header .prev:after {\n border-right: 10px solid #000;\n margin-left: -5px;\n}\n.vdp-datepicker__calendar header .prev.disabled:after {\n border-right: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .next:after {\n border-left: 10px solid #000;\n margin-left: 5px;\n}\n.vdp-datepicker__calendar header .next.disabled:after {\n border-left: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled),\n.vdp-datepicker__calendar header .next:not(.disabled),\n.vdp-datepicker__calendar header .up:not(.disabled) {\n cursor: pointer;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled):hover,\n.vdp-datepicker__calendar header .next:not(.disabled):hover,\n.vdp-datepicker__calendar header .up:not(.disabled):hover {\n background: #eee;\n}\n.vdp-datepicker__calendar .disabled {\n color: #ddd;\n cursor: default;\n}\n.vdp-datepicker__calendar .flex-rtl {\n display: flex;\n width: inherit;\n flex-wrap: wrap;\n}\n.vdp-datepicker__calendar .cell {\n display: inline-block;\n padding: 0 5px;\n width: 14.285714285714286%;\n height: 40px;\n line-height: 40px;\n text-align: center;\n vertical-align: middle;\n border: 1px solid transparent;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).time,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year {\n cursor: pointer;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).time:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year:hover {\n border: 1px solid #4bd;\n}\n.vdp-datepicker__calendar .cell.selected {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected:hover {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected.highlighted {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.highlighted {\n background: #cae5ed;\n}\n.vdp-datepicker__calendar .cell.highlighted.disabled {\n color: #a3a3a3;\n}\n.vdp-datepicker__calendar .cell.grey {\n color: #888;\n}\n.vdp-datepicker__calendar .cell.grey:hover {\n background: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header {\n font-size: 75%;\n white-space: nowrap;\n cursor: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header:hover {\n background: inherit;\n}\n.vdp-datepicker__calendar .month,\n.vdp-datepicker__calendar .year {\n width: 33.333%;\n}\n.vdp-datepicker__calendar .time {\n width: 42.85714285714286%;\n}\n.vdp-datepicker__calendar .time_up,\n.vdp-datepicker__calendar .time_down {\n text-indent: -10000px;\n position: relative;\n}\n.vdp-datepicker__calendar .time_up:after,\n.vdp-datepicker__calendar .time_down:after {\n content: '';\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n border: 6px solid transparent;\n}\n.vdp-datepicker__calendar .time_up:after {\n border-bottom: 10px solid #000;\n margin-bottom: -5px;\n}\n.vdp-datepicker__calendar .time_up.disabled:after {\n border-bottom: 10px solid #ddd;\n}\n.vdp-datepicker__calendar .time_down:after {\n border-top: 10px solid #000;\n margin-top: 5px;\n}\n.vdp-datepicker__calendar .time_down.disabled:after {\n border-top: 10px solid #ddd;\n}\n.vdp-datepicker__calendar .time_up:not(.disabled),\n.vdp-datepicker__calendar .time_down:not(.disabled) {\n cursor: pointer;\n}\n.vdp-datepicker__calendar .time_up:not(.disabled):hover,\n.vdp-datepicker__calendar .time_down:not(.disabled):hover {\n background: #eee;\n}\n.vdp-datepicker__clear-button,\n.vdp-datepicker__calendar-button {\n cursor: pointer;\n font-style: normal;\n}\n.vdp-datepicker__clear-button.disabled,\n.vdp-datepicker__calendar-button.disabled {\n color: #999;\n cursor: default;\n}\n",map:{version:3,sources:["Datepicker.vue"],names:[],mappings:"AAAA;EACE,cAAc;AAChB;AACA;EACE,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,gBAAgB;EAChB,YAAY;EACZ,sBAAsB;AACxB;AACA;EACE,cAAc;EACd,iBAAiB;EACjB,kBAAkB;AACpB;AACA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,WAAW;EACX,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,cAAc;EACd,iBAAiB;AACnB;AACA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,yBAAyB;EACzB,WAAW;AACb;AACA;EACE,kBAAkB;AACpB;AACA;;EAEE,0BAA0B;EAC1B,WAAW;EACX,qBAAqB;EACrB,kBAAkB;AACpB;AACA;;EAEE,WAAW;EACX,kBAAkB;EAClB,SAAS;EACT,QAAQ;EACR,4CAA4C;EAC5C,6BAA6B;AAC/B;AACA;EACE,6BAA6B;EAC7B,iBAAiB;AACnB;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,4BAA4B;EAC5B,gBAAgB;AAClB;AACA;EACE,4BAA4B;AAC9B;AACA;;;EAGE,eAAe;AACjB;AACA;;;EAGE,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,eAAe;AACjB;AACA;EACE,aAAa;EACb,cAAc;EACd,eAAe;AACjB;AACA;EACE,qBAAqB;EACrB,cAAc;EACd,0BAA0B;EAC1B,YAAY;EACZ,iBAAiB;EACjB,kBAAkB;EAClB,sBAAsB;EACtB,6BAA6B;AAC/B;AACA;;;;EAIE,eAAe;AACjB;AACA;;;;EAIE,sBAAsB;AACxB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;AAChB;AACA;EACE,WAAW;AACb;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,mBAAmB;EACnB,eAAe;AACjB;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,cAAc;AAChB;AACA;EACE,yBAAyB;AAC3B;AACA;;EAEE,qBAAqB;EACrB,kBAAkB;AACpB;AACA;;EAEE,WAAW;EACX,kBAAkB;EAClB,SAAS;EACT,QAAQ;EACR,4CAA4C;EAC5C,6BAA6B;AAC/B;AACA;EACE,8BAA8B;EAC9B,mBAAmB;AACrB;AACA;EACE,8BAA8B;AAChC;AACA;EACE,2BAA2B;EAC3B,eAAe;AACjB;AACA;EACE,2BAA2B;AAC7B;AACA;;EAEE,eAAe;AACjB;AACA;;EAEE,gBAAgB;AAClB;AACA;;EAEE,eAAe;EACf,kBAAkB;AACpB;AACA;;EAEE,WAAW;EACX,eAAe;AACjB",file:"Datepicker.vue",sourcesContent:[".rtl {\n direction: rtl;\n}\n.vdp-datepicker {\n position: relative;\n text-align: left;\n}\n.vdp-datepicker * {\n box-sizing: border-box;\n}\n.vdp-datepicker__calendar {\n position: absolute;\n z-index: 100;\n background: #fff;\n width: 300px;\n border: 1px solid #ccc;\n}\n.vdp-datepicker__calendar footer {\n display: block;\n line-height: 40px;\n text-align: center;\n}\n.vdp-datepicker__calendar footer span {\n display: inline-block;\n text-align: center;\n width: 100%;\n cursor: pointer;\n}\n.vdp-datepicker__calendar footer span:hover {\n background: #eee;\n}\n.vdp-datepicker__calendar header {\n display: block;\n line-height: 40px;\n}\n.vdp-datepicker__calendar header span {\n display: inline-block;\n text-align: center;\n width: 71.42857142857143%;\n float: left;\n}\n.vdp-datepicker__calendar header div {\n text-align: center;\n}\n.vdp-datepicker__calendar header .prev,\n.vdp-datepicker__calendar header .next {\n width: 14.285714285714286%;\n float: left;\n text-indent: -10000px;\n position: relative;\n}\n.vdp-datepicker__calendar header .prev:after,\n.vdp-datepicker__calendar header .next:after {\n content: '';\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n border: 6px solid transparent;\n}\n.vdp-datepicker__calendar header .prev:after {\n border-right: 10px solid #000;\n margin-left: -5px;\n}\n.vdp-datepicker__calendar header .prev.disabled:after {\n border-right: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .next:after {\n border-left: 10px solid #000;\n margin-left: 5px;\n}\n.vdp-datepicker__calendar header .next.disabled:after {\n border-left: 10px solid #ddd;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled),\n.vdp-datepicker__calendar header .next:not(.disabled),\n.vdp-datepicker__calendar header .up:not(.disabled) {\n cursor: pointer;\n}\n.vdp-datepicker__calendar header .prev:not(.disabled):hover,\n.vdp-datepicker__calendar header .next:not(.disabled):hover,\n.vdp-datepicker__calendar header .up:not(.disabled):hover {\n background: #eee;\n}\n.vdp-datepicker__calendar .disabled {\n color: #ddd;\n cursor: default;\n}\n.vdp-datepicker__calendar .flex-rtl {\n display: flex;\n width: inherit;\n flex-wrap: wrap;\n}\n.vdp-datepicker__calendar .cell {\n display: inline-block;\n padding: 0 5px;\n width: 14.285714285714286%;\n height: 40px;\n line-height: 40px;\n text-align: center;\n vertical-align: middle;\n border: 1px solid transparent;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).time,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year {\n cursor: pointer;\n}\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).time:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).day:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).month:hover,\n.vdp-datepicker__calendar .cell:not(.blank):not(.disabled).year:hover {\n border: 1px solid #4bd;\n}\n.vdp-datepicker__calendar .cell.selected {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected:hover {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.selected.highlighted {\n background: #4bd;\n}\n.vdp-datepicker__calendar .cell.highlighted {\n background: #cae5ed;\n}\n.vdp-datepicker__calendar .cell.highlighted.disabled {\n color: #a3a3a3;\n}\n.vdp-datepicker__calendar .cell.grey {\n color: #888;\n}\n.vdp-datepicker__calendar .cell.grey:hover {\n background: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header {\n font-size: 75%;\n white-space: nowrap;\n cursor: inherit;\n}\n.vdp-datepicker__calendar .cell.day-header:hover {\n background: inherit;\n}\n.vdp-datepicker__calendar .month,\n.vdp-datepicker__calendar .year {\n width: 33.333%;\n}\n.vdp-datepicker__calendar .time {\n width: 42.85714285714286%;\n}\n.vdp-datepicker__calendar .time_up,\n.vdp-datepicker__calendar .time_down {\n text-indent: -10000px;\n position: relative;\n}\n.vdp-datepicker__calendar .time_up:after,\n.vdp-datepicker__calendar .time_down:after {\n content: '';\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n border: 6px solid transparent;\n}\n.vdp-datepicker__calendar .time_up:after {\n border-bottom: 10px solid #000;\n margin-bottom: -5px;\n}\n.vdp-datepicker__calendar .time_up.disabled:after {\n border-bottom: 10px solid #ddd;\n}\n.vdp-datepicker__calendar .time_down:after {\n border-top: 10px solid #000;\n margin-top: 5px;\n}\n.vdp-datepicker__calendar .time_down.disabled:after {\n border-top: 10px solid #ddd;\n}\n.vdp-datepicker__calendar .time_up:not(.disabled),\n.vdp-datepicker__calendar .time_down:not(.disabled) {\n cursor: pointer;\n}\n.vdp-datepicker__calendar .time_up:not(.disabled):hover,\n.vdp-datepicker__calendar .time_down:not(.disabled):hover {\n background: #eee;\n}\n.vdp-datepicker__clear-button,\n.vdp-datepicker__calendar-button {\n cursor: pointer;\n font-style: normal;\n}\n.vdp-datepicker__clear-button.disabled,\n.vdp-datepicker__calendar-button.disabled {\n color: #999;\n cursor: default;\n}\n"]},media:void 0})},jn=void 0,Bn=void 0,Fn=!1,Vn=Lt({render:In,staticRenderFns:Ln},Rn,Pn,jn,Fn,Bn,!1,Tn,void 0,void 0);var Un=Vn,Yn=n(222),Gn=n(2419),Hn={name:"Node",components:{Datepicker:Un},directives:{clickOutside:F().directive},data(){return{permission:{edit:!1,value:this.source.key},expiry:{edit:!1,value:this.source.expiry},context:{ui:!1,key:"",value:"",keyFocus:!1,valueFocus:!1}}},props:{source:Object},computed:{session(){return this.$store.getters.currentSession},selectedNodes(){return this.$store.getters.selectedNodeIds},isSelected(){return this.selectedNodes.indexOf(this.source.id)>=0},parsedNode(){return(0,Gn.I1)(this.source.key)},flattenedContexts(){const e=[];for(const[t,n]of Object.entries(this.source.context))if(Array.isArray(n))for(const r of n)e.push({key:t,value:r});else e.push({key:t,value:n});return e},potentialContexts(){return this.$store.getters.potentialContexts},potentialContextValues(){if(!this.context.key)return null;const e=this.potentialContexts.find((e=>e.key===this.context.key));return e?e.values:null},relativeExpiry(){return(0,Yn.P)(this.source.expiry,this.$i18n.locale)}},methods:{toggleNodeSelect(){this.$store.commit("toggleNodeSelect",this.source)},toggleValue(){this.$store.commit("toggleNodeValue",this.source)},updateNode(e,t){switch(e){case"key":case"value":case"expiry":this.source[e]!==t.value&&this.$store.commit("updateNode",{node:this.source,type:e,data:t}),t.edit=!1;break;case"context":this.$store.commit("updateNodeContext",{node:this.source,data:t});break;default:break}},deleteExpiry(){this.updateNode("expiry",{value:null})},deleteNode(e){this.$store.commit("deleteNode",e)},closeContextUi(){this.context.ui=!1},addContext(){if(""===this.context.key||""===this.context.value)return;const e=this.context.key.trim(),t=this.context.value.trim(),n=JSON.parse(JSON.stringify(this.source.context));let r=n[e]||[];Array.isArray(r)||(r=[r]),r.find((e=>e===t))||(r.push(t),n[e]=r,this.updateNode("context",n)),this.context.key="",this.context.value=""},removeContext(e,t){const n=JSON.parse(JSON.stringify(this.source.context));let r=n[e]||[];Array.isArray(r)||(r=[r]),r.find((e=>e===t))&&(n[e]=r.filter((e=>e!==t)),this.updateNode("context",n))},blurField(e){setTimeout((()=>{this.context[e]=!1}),250)}}},Wn=Hn,Xn=(0,v.A)(Wn,K,J,!1,null,null,null),qn=Xn.exports,zn={name:"NodeList",components:{VirtualList:Q()},props:{nodes:Array},data(){return{sort:{method:null,desc:!0}}},computed:{Node(){return qn},sortedNodes(){let e;return e=["key","value","expiry"].indexOf(this.sort.method)>=0?q()(this.nodes,[this.sort.method]):q()(this.nodes,(e=>e.context[this.sort.method])),this.sort.desc?e:e.reverse()},selectedNodes(){return this.$store.getters.selectedNodeIds},currentSelectedNodes(){const e=this.nodes.map((e=>e.id));return this.selectedNodes.filter((t=>-1!==e.indexOf(t)))},allSelected(){return this.nodes.length&&this.nodes.length===this.currentSelectedNodes.length}},methods:{changeSort(e){this.sort.method===e?this.sort.desc=!this.sort.desc:this.sort.desc=!0,this.sort.method=e},selectAll(){this.allSelected?this.$store.commit("deselectAllSessionNodes",this.nodes):this.$store.commit("selectAllSessionNodes",this.nodes)}}},Qn=zn,Kn=(0,v.A)(Qn,H,W,!1,null,null,null),Jn=Kn.exports,Zn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"add-node"},[t("form",{staticClass:"row",attrs:{autocomplete:"off"},on:{submit:function(e){e.preventDefault()}}},[e.selectedNodes.length?t("div",{staticClass:"form-group bulk-edit"},[t("p",[t("span",{domProps:{innerHTML:e._s(e.$tc("editor.nodes.selected",e.selectedNodes.length))}}),t("button",{attrs:{title:e.$t("editor.nodes.deselect")},on:{click:e.deselectNodes}},[t("font-awesome",{attrs:{icon:"times"}})],1)]),t("div",{staticClass:"buttons"},[t("button",{on:{click:e.copyNodes}},[t("font-awesome",{attrs:{icon:"clone"}}),e._v(" "+e._s(e.$t("editor.copy"))+" ")],1),t("button",{on:{click:e.moveNodes}},[t("font-awesome",{attrs:{icon:"sign-in-alt"}}),e._v(" "+e._s(e.$t("editor.move"))+" ")],1),t("button",{on:{click:e.deleteNodes}},[t("font-awesome",{attrs:{icon:"times"}}),e._v(" "+e._s(e.$t("editor.delete"))+" ")],1)])]):t("div",{staticClass:"form-group node-builder"},[t("label",{attrs:{for:"nodeType"}},[e._v(e._s(e.$t("editor.nodes.add")))]),t("div",{staticClass:"node-builder-row"},[t("select",{directives:[{name:"model",rawName:"v-model",value:e.nodeType,expression:"nodeType"}],staticClass:"node-type-select",attrs:{id:"nodeType"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.nodeType=t.target.multiple?n:n[0]}}},e._l(e.nodeTypes,(function(n){return t("option",{key:n.value,domProps:{value:n.value}},[e._v(" "+e._s(n.label)+" ")])})),0),"permission"===e.nodeType?t("div",{staticClass:"node-type-inputs"},[t("div",{staticClass:"input-group"},[t("label",{staticClass:"input-label"},[e._v(e._s(e.$t("editor.nodes.labels.permissions")))]),t("multiselect",{attrs:{options:e.knownPermissions,multiple:!0,taggable:!0,clearOnSelect:!1,"tag-placeholder":e.$t("editor.nodes.enterToSelect"),placeholder:e.$t("editor.nodes.permissionPlaceholder"),"close-on-select":!1},on:{tag:e.onPermissionTag},model:{value:e.nodeParts.permissionsList,callback:function(t){e.$set(e.nodeParts,"permissionsList",t)},expression:"nodeParts.permissionsList"}})],1)]):"inheritance"===e.nodeType?t("div",{staticClass:"node-type-inputs"},[t("div",{staticClass:"input-group"},[t("label",{staticClass:"input-label"},[e._v(e._s(e.$t("editor.nodes.labels.groupName")))]),t("multiselect",{attrs:{options:e.knownGroups,taggable:!1,searchable:!0,multiple:!1,"close-on-select":!0,placeholder:e.$t("editor.nodes.groupNamePlaceholder")},model:{value:e.nodeParts.groupName,callback:function(t){e.$set(e.nodeParts,"groupName",t)},expression:"nodeParts.groupName"}})],1)]):"prefix"===e.nodeType?t("div",{staticClass:"node-type-inputs"},[t("div",{staticClass:"input-group",staticStyle:{flex:"0 0 80px"}},[t("label",{staticClass:"input-label"},[e._v(e._s(e.$t("editor.nodes.labels.weight")))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.nodeParts.weight,expression:"nodeParts.weight"}],staticClass:"node-input",attrs:{type:"number"},domProps:{value:e.nodeParts.weight},on:{input:function(t){t.target.composing||e.$set(e.nodeParts,"weight",t.target.value)}}})]),t("div",{staticClass:"input-group flex-grow"},[t("label",{staticClass:"input-label"},[e._v(e._s(e.$t("editor.nodes.labels.prefixText")))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.nodeParts.prefix,expression:"nodeParts.prefix"}],staticClass:"node-input",attrs:{type:"text",placeholder:e.$t("editor.nodes.prefixPlaceholder")},domProps:{value:e.nodeParts.prefix},on:{input:function(t){t.target.composing||e.$set(e.nodeParts,"prefix",t.target.value)}}})])]):"suffix"===e.nodeType?t("div",{staticClass:"node-type-inputs"},[t("div",{staticClass:"input-group",staticStyle:{flex:"0 0 80px"}},[t("label",{staticClass:"input-label"},[e._v(e._s(e.$t("editor.nodes.labels.weight")))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.nodeParts.weight,expression:"nodeParts.weight"}],staticClass:"node-input",attrs:{type:"number"},domProps:{value:e.nodeParts.weight},on:{input:function(t){t.target.composing||e.$set(e.nodeParts,"weight",t.target.value)}}})]),t("div",{staticClass:"input-group flex-grow"},[t("label",{staticClass:"input-label"},[e._v(e._s(e.$t("editor.nodes.labels.suffixText")))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.nodeParts.suffix,expression:"nodeParts.suffix"}],staticClass:"node-input",attrs:{type:"text",placeholder:e.$t("editor.nodes.suffixPlaceholder")},domProps:{value:e.nodeParts.suffix},on:{input:function(t){t.target.composing||e.$set(e.nodeParts,"suffix",t.target.value)}}})])]):"meta"===e.nodeType?t("div",{staticClass:"node-type-inputs"},[t("div",{staticClass:"input-group"},[t("label",{staticClass:"input-label"},[e._v(e._s(e.$t("editor.nodes.labels.key")))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.nodeParts.key,expression:"nodeParts.key"}],staticClass:"node-input",attrs:{type:"text",placeholder:e.$t("editor.nodes.metaKeyPlaceholder")},domProps:{value:e.nodeParts.key},on:{input:function(t){t.target.composing||e.$set(e.nodeParts,"key",t.target.value)}}})]),t("div",{staticClass:"input-group"},[t("label",{staticClass:"input-label"},[e._v(e._s(e.$t("editor.nodes.labels.value")))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.nodeParts.value,expression:"nodeParts.value"}],staticClass:"node-input",attrs:{type:"text",placeholder:e.$t("editor.nodes.metaValuePlaceholder")},domProps:{value:e.nodeParts.value},on:{input:function(t){t.target.composing||e.$set(e.nodeParts,"value",t.target.value)}}})])]):"weight"===e.nodeType?t("div",{staticClass:"node-type-inputs"},[t("div",{staticClass:"input-group"},[t("label",{staticClass:"input-label"},[e._v(e._s(e.$t("editor.nodes.labels.weightValue")))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.nodeParts.weight,expression:"nodeParts.weight"}],staticClass:"node-input",attrs:{type:"number",placeholder:e.$t("editor.nodes.weightValuePlaceholder")},domProps:{value:e.nodeParts.weight},on:{input:function(t){t.target.composing||e.$set(e.nodeParts,"weight",t.target.value)}}})])]):"displayname"===e.nodeType?t("div",{staticClass:"node-type-inputs"},[t("div",{staticClass:"input-group input-with-warning"},[t("label",{staticClass:"input-label"},[e._v(e._s(e.$t("editor.nodes.labels.displayName")))]),t("div",{staticClass:"input-wrapper"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.nodeParts.displayName,expression:"nodeParts.displayName"}],staticClass:"node-input",attrs:{type:"text",placeholder:e.$t("editor.nodes.displayNamePlaceholder")},domProps:{value:e.nodeParts.displayName},on:{input:function(t){t.target.composing||e.$set(e.nodeParts,"displayName",t.target.value)}}}),t("span",{staticClass:"warning-icon"},[t("font-awesome",{attrs:{icon:"exclamation-circle"}}),t("span",{staticClass:"tooltip"},[e._v(e._s(e.$t("editor.nodes.displayNameWarning")))])],1)])])]):e._e()])]),t("div",[t("div",{staticClass:"form-group"},[e.selectedNodes.length?t("div",{staticClass:"bulk-value"},[t("label",[e._v(e._s(e.$t("editor.value")))]),t("div",[t("button",{staticClass:"code true",class:{selected:!0===e.bulk.value},attrs:{type:"button",title:e.$t("editor.nodes.selection.true")},on:{click:function(t){e.bulk.value=!0}}},[e._v(" true ")]),t("button",{staticClass:"code null",class:{selected:null===e.bulk.value},attrs:{type:"button",title:e.$t("editor.nodes.selection.keep")},on:{click:function(t){e.bulk.value=null}}},[e._v(" - ")]),t("button",{staticClass:"code false",class:{selected:!1===e.bulk.value},attrs:{type:"button",title:e.$t("editor.nodes.selection.false")},on:{click:function(t){e.bulk.value=!1}}},[e._v(" false ")])])]):t("label",[e._v(" "+e._s(e.$t("editor.value"))+" "),t("button",{class:{code:!0,true:e.value},attrs:{type:"button"},on:{click:function(t){e.value=!e.value}}},[e._v(" "+e._s(e.value)+" ")])])]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"expiry"}},[e._v(e._s(e.$t("editor.expiry")))]),t("datepicker",{attrs:{id:"expiry",name:"expiry",placeholder:e.$t("editor.nodes.never"),"disabled-dates":{to:new Date}},model:{value:e.expiry,callback:function(t){e.expiry=t},expression:"expiry"}})],1)]),t("div",{staticClass:"form-group contexts"},[e.selectedNodes.length?t("div",{staticClass:"bulk-contexts"},[t("label",{attrs:{for:"bulk_contexts"}},[e._v(e._s(e.$t("editor.contexts")))]),t("div",[t("button",{class:{selected:e.bulk.replaceContexts},attrs:{id:"bulk_contexts_replace",title:e.$t("editor.nodes.replace")},on:{click:function(t){e.bulk.replaceContexts=!e.bulk.replaceContexts}}},[t("font-awesome",{attrs:{icon:"check"}}),e._v(" "+e._s(e.$t("editor.replace"))+" ")],1),t("button",{staticClass:"code",attrs:{id:"bulk_contexts",type:"button",title:e.$t("editor.nodes.addContexts")},on:{click:function(t){e.context.ui=!0}}},[t("font-awesome",{attrs:{icon:"plus"}})],1)])]):t("label",[e._v(" "+e._s(e.$t("editor.contexts"))+" "),t("button",{staticClass:"code",attrs:{type:"button",title:e.$t("editor.nodes.addContexts")},on:{click:function(t){e.context.ui=!0}}},[t("font-awesome",{attrs:{icon:"plus"}})],1)]),t("div",e._l(e.flattenedContexts,(function(n,r){return t("code",{key:`add_node_context_${n.key}_${n.value}_${r}`},[t("span",[e._v(e._s(n.key)+":")]),e._v(" "+e._s(n.value)+" ")])})),0)]),e.selectedNodes.length?t("button",{attrs:{type:"submit",disabled:!e.canUpdateNode,title:e.$t("editor.nodes.update")},on:{click:e.updateNodes}},[t("span",[t("font-awesome",{attrs:{icon:"edit"}}),e._v(" "+e._s(e.$t("editor.update"))+" ")],1)]):t("button",{attrs:{type:"submit",disabled:!e.canAddNode,title:e.$t("editor.nodes.add")},on:{click:e.addNodesToSession}},[t("span",[t("font-awesome",{attrs:{icon:"plus"}}),e._v(" "+e._s(e.$t("editor.add"))+" ")],1)])]),t("transition",{attrs:{name:"fade"}},[e.context.ui?t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeContextUi,expression:"closeContextUi"}],staticClass:"context-ui"},[t("h4",{domProps:{innerHTML:e._s(e.$tc("editor.nodes.contextsCount",e.flattenedContexts.length))}}),t("div",{staticClass:"close",on:{click:e.closeContextUi}},[t("font-awesome",{attrs:{icon:"times"}})],1),t("ul",[e._l(e.flattenedContexts,(function(n,r){return t("li",{key:`add_node_flattened_context_${n.key}_${n.value}_${r}`},[t("span",{domProps:{innerHTML:e._s(n.key)}}),t("span",{domProps:{innerHTML:e._s(n.value)}}),t("button",{on:{click:function(t){return e.removeContext(n.key,n.value)}}},[t("font-awesome",{attrs:{icon:"times","fixed-width":""}})],1)])})),t("li",[t("h5",[e._v(" Add context: "),t("span",{staticClass:"lighter"},[e._v("(world, server, etc.)")])])]),t("li",[t("div",{staticClass:"edit"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.context.key,expression:"context.key"}],attrs:{type:"text",placeholder:e.$t("editor.key")},domProps:{value:e.context.key},on:{focus:function(t){e.context.keyFocus=!0},blur:function(t){return e.blurField("keyFocus")},input:function(t){t.target.composing||e.$set(e.context,"key",t.target.value)}}}),t("transition",{attrs:{name:"fade"}},[e.context.keyFocus?t("ul",{staticClass:"context-list"},e._l(e.potentialContexts,(function(n){return t("li",{key:`potential_context_key_${n.key}`,on:{click:function(t){e.context.key=n.key}}},[e._v(e._s(n.key))])})),0):e._e()])],1),t("div",{staticClass:"edit"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.context.value,expression:"context.value"}],attrs:{type:"text",placeholder:e.$t("editor.value")},domProps:{value:e.context.value},on:{focus:function(t){e.context.valueFocus=!0},blur:function(t){return e.blurField("valueFocus")},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addContext.apply(null,arguments)},input:function(t){t.target.composing||e.$set(e.context,"value",t.target.value)}}}),t("transition",{attrs:{name:"fade"}},[e.context.valueFocus?t("ul",{staticClass:"context-list"},e._l(e.potentialContextValues,(function(n){return t("li",{key:`potential_context_value_${n}`,on:{click:function(t){e.context.value=n}}},[e._v(e._s(n))])})),0):e._e()])],1)])],2),t("button",{on:{click:e.addContext}},[t("font-awesome",{attrs:{icon:"plus"}}),e._v(" "+e._s(e.$t("editor.nodes.addContext"))+" ")],1)]):e._e()])],1)},er=[],tr=n(5262),nr=n.n(tr),rr={name:"AddNode",components:{Datepicker:Un,Multiselect:nr()},directives:{clickOutside:F().directive},data(){return{nodeType:"permission",nodeParts:{permission:"",permissionsList:[],groupName:null,weight:"",prefix:"",suffix:"",key:"",value:"",displayName:""},value:!0,expiry:null,server:null,world:null,context:{contexts:{},ui:null,key:"",value:"",keyFocus:!1,valueFocus:!1},bulk:{value:null,replaceContexts:!1}}},computed:{session(){return this.$store.getters.currentSession||null},knownPermissions(){return this.$store.state.editor.knownPermissions},knownGroups(){const e=this.$store.getters.sessionSet||[];return e.filter((e=>"group"===e.type)).map((e=>e.id))},nodeTypes(){const e=["permission","inheritance","prefix","suffix","meta","weight","displayname"],t=this.session&&"user"===this.session.type,n=t?e.filter((e=>!["weight","displayname"].includes(e))):e;return n.map((e=>({value:e,label:this.$t(`editor.nodes.types.${e}`)})))},canAddNode(){return"permission"===this.nodeType?this.nodeParts.permissionsList.length>0:"inheritance"===this.nodeType?null!==this.nodeParts.groupName&&""!==this.nodeParts.groupName:"prefix"===this.nodeType?""!==this.nodeParts.prefix.trim():"suffix"===this.nodeType?""!==this.nodeParts.suffix.trim():"meta"===this.nodeType?""!==this.nodeParts.key.trim()&&""!==this.nodeParts.value.trim():"weight"===this.nodeType?""!==this.nodeParts.weight.trim():"displayname"===this.nodeType&&""!==this.nodeParts.displayName.trim()},flattenedContexts(){const e=[];for(const[t,n]of Object.entries(this.context.contexts))for(const r of n)e.push({key:t,value:r});return e},potentialContexts(){return this.$store.getters.potentialContexts},potentialContextValues(){if(!this.context.key)return null;const e=this.potentialContexts.find((e=>e.key===this.context.key));return e?e.values:null},selectedNodes(){return this.$store.getters.selectedNodeIds},canUpdateNode(){return this.expiry||null!==this.bulk.value||Object.keys(this.context.contexts).length}},watch:{session(e){e&&"user"===e.type&&("weight"!==this.nodeType&&"displayname"!==this.nodeType||(this.nodeType="permission"))}},methods:{onPermissionTag(e){const t=e.split(/,\s*|\s+|\s*-\s+/);t.forEach((e=>{""!==e&&(this.nodeParts.permissionsList.push(e),this.knownPermissions.find((t=>t===e))||this.addKnownPermission(e))}))},addKnownPermission(e){this.$store.dispatch("addKnownPermission",e)},addNodesToSession(){if("permission"===this.nodeType&&this.nodeParts.permissionsList.length>0){const e=[];this.nodeParts.permissionsList.forEach((t=>{e.push({sessionId:this.session.id,type:"permission",key:t,value:this.value,expiry:this.expiry,context:this.context.contexts,isNew:!0})})),this.$store.dispatch("addNodes",e)}else{if(!this.canAddNode)return;const e=(0,Gn.k2)(this.nodeType,this.nodeParts);if(!e)return;const t={sessionId:this.session.id,type:"permission",key:e,value:this.value,expiry:this.expiry,context:this.context.contexts,isNew:!0};this.$store.dispatch("addNodes",[t])}this.reset()},reset(){this.nodeParts={permission:"",permissionsList:[],groupName:null,weight:"",prefix:"",suffix:"",key:"",value:"",displayName:""},this.value=!0,this.expiry=null,this.context.contexts={}},updateNodes(){const e={value:this.bulk.value,replace:this.bulk.replaceContexts,contexts:this.context.contexts,expiry:this.expiry};this.$store.dispatch("updateNodes",e),this.context.contexts={},this.bulk.value=null,this.expiry=null},closeContextUi(){this.context.ui=!1,this.context.key="",this.context.value=""},addContext(){if(""===this.context.key||""===this.context.value)return;const e=this.context.key.trim(),t=this.context.value.trim(),n=this.context.contexts[e]||[];n.find((e=>e===t))||(n.push(t.trim()),this.$set(this.context.contexts,e,n)),this.context.key="",this.context.value=""},removeContext(e,t){const{contexts:n}=this.context;n[e].includes(t)&&this.$set(n,e,n[e].filter((e=>e!==t)))},blurField(e){setTimeout((()=>{this.context[e]=!1}),250)},deselectNodes(){this.$store.commit("deselectAllSelectedNodes")},copyNodes(){this.$store.commit("setModal",{type:"copyNodes"})},moveNodes(){this.$store.commit("setModal",{type:"moveNodes"})},deleteNodes(){this.$store.commit("setModal",{type:"deleteNodes"})}}},ir=rr,or=(0,v.A)(ir,Zn,er,!1,null,null,null),sr=or.exports,ar=function(){var e=this,t=e._self._c;return t("div",{staticClass:"search-results"},[t("div",{staticClass:"select-all"},[t("div",{class:{"node-select-all":!0,selected:e.allResultsSelected},attrs:{title:e.$t("editor.nodes.selectAll")},on:{click:function(t){return e.selectAllResults()}}},[t("span"),e._v(" Select all ")])]),e.groupedResults.length?t("ul",e._l(e.groupedResults,(function(n){return t("li",{key:`search_session_${n.session.id}`},[t("h2",[t("div",{class:{"node-select-all":!0,selected:e.allGroupSelected(n)},attrs:{title:e.$t("editor.nodes.selectAll")},on:{click:function(t){return e.selectAllGroup(n)}}},[t("span")]),t("small",[e._v(e._s(n.session.type))]),"user"===n.session.type?t("avatar",{attrs:{id:n.session.id,name:n.session.displayName}}):e._e(),t("span",{on:{click:function(t){return e.setCurrentSession(n.session.id)}}},[e._v(" "+e._s(n.session.displayName)+" "),t("span",[e._v("("+e._s(n.session.id)+")")])])],1),t("ul",e._l(n.nodes,(function(e){return t("li",{key:`search_node_${e.id}`},[t("node",{attrs:{source:e}})],1)})),0)])})),0):t("div",{staticClass:"no-results"},[e._v(" "+e._s(e.$t("editor.noResults"))+" ")])])},lr=[],cr=(n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),{name:"SearchNodes",components:{Node:qn,Avatar:u.A},props:{query:{required:!0,type:String}},data(){return{debouncedQuery:this.query}},computed:{results(){const{allNodes:e}=this.$store.getters;return e.filter((e=>{const t=this.debouncedQuery,n=String(e.key).toLowerCase().includes(t);if(n)return!0;const r=Object.keys(e.context);if(!r.length)return!1;const i=r.map((e=>String(e).toLowerCase())),o=i.includes(t),s=r.some((n=>"string"===typeof e.context[n]?String(e.context[n]).toLowerCase().includes(t):!!Array.isArray(e.context[n])&&e.context[n].some((e=>String(e).toLowerCase().includes(t)))));return o||s}))},groupedResults(){const{results:e}=this,{sessionSet:t}=this.$store.getters,n=new Set;e.forEach((({sessionId:e})=>{n.add(e)}));const r=Array.from(n);return r.map((n=>({session:t.find((({id:e})=>n===e)),nodes:e.filter((e=>e.sessionId===n))})))},allSelectedNodes(){return this.$store.getters.selectedNodeIds},allResultsSelected(){const e=this.results.map((e=>e.id)),t=this.allSelectedNodes.filter((t=>e.includes(t)));return t.length===this.results.length},allGroupSelected(){return e=>{const t=e.nodes.map((e=>e.id)),n=this.allSelectedNodes.filter((e=>t.includes(e)));return n.length===e.nodes.length}}},methods:{setCurrentSession(e){this.$store.commit("setCurrentSession",e),this.$emit("clear-query")},selectAllResults(){this.allResultsSelected?this.$store.commit("deselectAllSessionNodes",this.results):this.$store.commit("selectAllSessionNodes",this.results)},selectAllGroup(e){this.allGroupSelected(e)?this.$store.commit("deselectAllSessionNodes",e.nodes):this.$store.commit("selectAllSessionNodes",e.nodes)}},watch:{query:s()((function(e){this.debouncedQuery=String(e).toLowerCase()}),200)}}),ur=cr,dr=(0,v.A)(ur,ar,lr,!1,null,null,null),pr=dr.exports,hr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"modal",on:{click:e.closeModal}},[t("div",{staticClass:"modal-box",on:{click:function(e){e.stopPropagation()}}},[t("div",{staticClass:"close",on:{click:e.closeModal}},[t("font-awesome",{attrs:{icon:"times-circle"}})],1),t(e.modal.type,{tag:"component",attrs:{props:e.modal.object},on:{close:e.closeModal}})],1)])},fr=[],vr=function(){var e=this,t=e._self._c;return t("div",{on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addGroup.apply(null,arguments)}}},[t("h2",[e._v(e._s(e.$t("editor.groups.create")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"col"},[t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"groupName"}},[e._v(e._s(e.$t("editor.groups.name")))]),t("input",{attrs:{type:"text",id:"groupName"},domProps:{value:e.group.name},on:{input:function(t){return e.updateGroupName(t)}}})]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"displayName"}},[e._v(e._s(e.$t("editor.groups.displayName")))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.group.displayName,expression:"group.displayName"}],attrs:{type:"text",id:"displayName"},domProps:{value:e.group.displayName},on:{input:function(t){t.target.composing||e.$set(e.group,"displayName",t.target.value)}}})]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"parent"}},[e._v(e._s(e.$t("editor.groups.parent")))]),t("select",{directives:[{name:"model",rawName:"v-model",value:e.group.parent,expression:"group.parent"}],attrs:{name:"parent",id:"parent"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.group,"parent",t.target.multiple?n:n[0])}}},[t("option",{attrs:{value:"0"}},[e._v(e._s(e.$t("editor.groups.none")))]),e._l(e.props,(function(n){return t("option",{key:n.id,domProps:{value:n.id}},[e._v(" "+e._s(n.displayName)+" ")])}))],2)])]),t("div",{staticClass:"col"},[t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"weight"}},[e._v(e._s(e.$t("editor.groups.weight")))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.group.weight,expression:"group.weight"}],attrs:{type:"number",id:"weight"},domProps:{value:e.group.weight},on:{input:function(t){t.target.composing||e.$set(e.group,"weight",t.target.value)}}})]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"prefix"}},[e._v(e._s(e.$t("editor.groups.prefix")))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.group.prefix,expression:"group.prefix"}],attrs:{type:"text",id:"prefix"},domProps:{value:e.group.prefix},on:{input:function(t){t.target.composing||e.$set(e.group,"prefix",t.target.value)}}})]),t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"suffix"}},[e._v(e._s(e.$t("editor.groups.suffix")))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.group.suffix,expression:"group.suffix"}],attrs:{type:"text",id:"suffix"},domProps:{value:e.group.suffix},on:{input:function(t){t.target.composing||e.$set(e.group,"suffix",t.target.value)}}})])])]),t("button",{staticClass:"save-button",attrs:{type:"button"},on:{click:e.addGroup}},[t("font-awesome",{attrs:{icon:"plus-circle"}}),e._v(" "+e._s(e.$t("editor.groups.add"))+" ")],1)])},gr=[],mr={name:"CreateGroup",data(){return{group:{name:"",displayName:"",weight:0,parent:0,prefix:"",suffix:""}}},props:{props:Array},computed:{},methods:{updateGroupName(e){this.group.name=e.target.value.toLowerCase().replace(" ","-")},addGroup(){if(""!==this.group.name){const e=this.$store.dispatch("addGroup",this.group);"success"===e&&this.$emit("close")}}}},yr=mr,br=(0,v.A)(yr,vr,gr,!1,null,null,null),wr=br.exports,_r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"delete-group"},[t("h2",{domProps:{innerHTML:e._s(e.$t("editor.groups.delete",{group:e.props.groupId}))}}),t("p",{staticClass:"lighter"},[e._v(" "+e._s(e.$t("editor.groups.deleteConfirm",{count:e.permissions.length}))+" ")]),t("div",[t("button",{attrs:{type:"button"},on:{click:e.deleteGroup}},[t("font-awesome",{attrs:{icon:"check"}}),e._v(" "+e._s(e.$t("editor.delete"))+" ")],1),t("button",{staticClass:"red",attrs:{type:"button"},on:{click:function(t){return e.$emit("close")}}},[t("font-awesome",{attrs:{icon:"times"}}),e._v(" "+e._s(e.$t("editor.cancel"))+" ")],1)])])},xr=[],Cr={name:"DeleteGroup",props:{props:Object},computed:{permissions(){return this.$store.getters.allNodes.filter((e=>e.sessionId===this.props.groupId))}},methods:{deleteGroup(){this.$store.commit("deleteSession",this.props.groupId),this.$emit("close")}}},Ar=Cr,Er=(0,v.A)(Ar,_r,xr,!1,null,null,null),kr=Er.exports,Dr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"delete-user"},[t("i18n",{attrs:{path:"editor.users.delete",tag:"h2"},scopedSlots:e._u([{key:"user",fn:function(){return[t("code",{staticClass:"username"},[t("avatar",{attrs:{id:e.user.id,name:e.user.displayName}}),e._v(" "+e._s(e.user.displayName)+" ")],1)]},proxy:!0}])}),t("p",{staticClass:"lighter"},[e._v(" "+e._s(e.$t("editor.users.deleteConfirm",{count:e.permissions.length}))+" ")]),t("div",[t("button",{attrs:{type:"button"},on:{click:e.deleteUser}},[t("font-awesome",{attrs:{icon:"check"}}),e._v(" "+e._s(e.$t("editor.delete"))+" ")],1),t("button",{staticClass:"red",attrs:{type:"button"},on:{click:function(t){return e.$emit("close")}}},[t("font-awesome",{attrs:{icon:"times"}}),e._v(" "+e._s(e.$t("editor.cancel"))+" ")],1)])],1)},Sr=[],$r={name:"DeleteUser",components:{Avatar:u.A},props:{props:Object},computed:{permissions(){return this.$store.getters.allNodes.filter((e=>e.sessionId===this.props.userId))},user(){return this.$store.getters.sessionSet.find((({id:e})=>e===this.props.userId))}},methods:{deleteUser(){this.$store.commit("deleteSession",this.props.userId),this.$emit("close")}}},Tr=$r,Or=(0,v.A)(Tr,Dr,Sr,!1,null,null,null),Nr=Or.exports,Mr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"add-track",on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addTrack.apply(null,arguments)}}},[t("h2",[e._v(e._s(e.$t("editor.tracks."+(e.isAddingTrack?"create":"edit"))))]),t("div",{staticClass:"row"},[t("div",{staticClass:"col"},[t("div",{staticClass:"form-group"},[t("label",{attrs:{for:"trackName"}},[e._v(e._s(e.$t("editor.tracks.name")))]),t("input",{attrs:{type:"text",id:"trackName"},domProps:{value:e.track.id},on:{input:function(t){return e.updateTrackName(t)}}})]),t("h3",[e._v(e._s(e.$t("editor.tracks.groups")))]),t("p",[e._v(e._s(e.$t("editor.tracks.tip")))]),t("draggable",{staticClass:"track-groups",attrs:{tag:"ol"},model:{value:e.track.groups,callback:function(t){e.$set(e.track,"groups",t)},expression:"track.groups"}},e._l(e.track.groups,(function(n,r){return t("li",{key:`track_group_${n}`},[t("span",[t("span",[e._v(e._s(r+1))]),e._v(" "+e._s(n))]),t("button",{staticClass:"delete",on:{click:function(t){return e.track.groups.splice(r,1)}}},[t("font-awesome",{attrs:{icon:"times","full-width":""}})],1)])})),0)],1),t("div",{staticClass:"col"},[t("h3",[e._v(e._s(e.$t("editor.tracks.addGroups")))]),t("ul",{staticClass:"available-groups"},e._l(e.availableGroups,(function(n){return t("li",{key:n.id,on:{click:function(t){return e.track.groups.push(n.id)}}},[t("span",[e._v(e._s(n.id))]),t("font-awesome",{attrs:{icon:"plus","fixed-width":""}})],1)})),0)])]),t("button",{staticClass:"save-button",attrs:{type:"button",disabled:e.buttonDisabled},on:{click:e.addTrack}},[t("font-awesome",{attrs:{icon:e.isAddingTrack?"plus-circle":"save"}}),e._v(" "+e._s(e.$t("editor.tracks."+(e.isAddingTrack?"add":"save")))+" ")],1)])},Pr=[],Ir=n(432),Lr=n.n(Ir),Rr={components:{draggable:Lr()},name:"CreateTrack",data(){return{track:{id:"",groups:[],type:"track"},error:null}},props:{props:Object},computed:{groups(){return this.$store.getters.sessionSet.filter((e=>"group"===e.type))},tracks(){return this.$store.getters.tracks},availableGroups(){return this.groups.filter((e=>!this.track.groups.includes(e.id)))},buttonDisabled(){if(""===this.track.id)return!0;if(0===this.track.groups.length)return!0;const e=this.tracks.find((e=>e.id===this.track.id));return!(!this.isAddingTrack||!e)},isAddingTrack(){return!(this.props&&this.props.track)}},created(){this.isAddingTrack||(this.track={id:this.props.track.id,groups:this.props.track.groups,type:"track"})},methods:{updateTrackName(e){this.track.id=e.target.value.toLowerCase().replace(" ","-")},addTrack(){this.buttonDisabled||(this.isAddingTrack?this.$store.dispatch("addTrack",this.track):this.$store.dispatch("updateTrack",{id:this.props.track.id,newTrack:this.track}))}}},jr=Rr,Br=(0,v.A)(jr,Mr,Pr,!1,null,null,null),Fr=Br.exports,Vr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"saved-changes"},[t("h2",[e._v(e._s(e.$t("editor.saved")))]),t("p",[e._v(" "+e._s(e.$t("editor.command"))+" ")]),t("div",{staticClass:"command"},[t("code",{staticClass:"apply-edits",attrs:{title:e.$t("editor.clipboardCopy")},on:{click:e.copyCommand}},[e._v(" /"+e._s(e.metaData.commandAlias)+" applyedits "+e._s(this.props.saveKey)+" ")]),e.commandCopied?t("span",{staticClass:"command-copied"},[e._v(" "+e._s(e.$t("editor.copied"))+" ")]):e._e()]),t("p",{domProps:{innerHTML:e._s(e.$t("editor.applyNote"))}})])},Ur=[],Yr={name:"SavedChanges",data(){return{commandCopied:!1}},props:{props:Object},computed:{metaData(){return this.$store.getters.metaData}},methods:{async copyCommand(){await this.$copyText(`/${this.metaData.commandAlias} applyedits ${this.props.saveKey}`),this.commandCopied=!0}}},Gr=Yr,Hr=(0,v.A)(Gr,Vr,Ur,!1,null,null,null),Wr=Hr.exports,Xr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"copy-nodes-modal"},[t("h2",[e._v(e._s(e.$tc("editor.nodes.copy",e.selectedNodes.length)))]),t("div",{staticClass:"col-2"},[t("ul",e._l(e.sessions,(function(n){return t("li",{key:`copyNodeSession_${n.id}`,class:{selected:e.selectedSessions.includes(n.id)},on:{click:function(t){return e.toggleSession(n.id)}}},[t("span",{staticClass:"checkbox"}),e._v(" "+e._s(n.displayName)+" ")])})),0),t("div",[t("button",{attrs:{disabled:!e.selectedSessions.length},on:{click:e.copyNodes}},[t("font-awesome",{attrs:{icon:"clone"}}),e._v(" "+e._s(e.$t("copy"))+" ")],1)])])])},qr=[],zr={data(){return{selectedSessions:[]}},props:{props:Array},computed:{selectedNodes(){return this.$store.getters.selectedNodeIds},sessions(){return this.$store.getters.sessionSet}},methods:{toggleSession(e){this.selectedSessions.includes(e)?this.selectedSessions.splice(this.selectedSessions.findIndex((t=>t===e)),1):this.selectedSessions.push(e)},copyNodes(){this.$store.dispatch("copyNodes",this.selectedSessions)}}},Qr=zr,Kr=(0,v.A)(Qr,Xr,qr,!1,null,null,null),Jr=Kr.exports,Zr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"move-nodes-modal"},[t("h2",[e._v(e._s(e.$tc("editor.nodes.move",e.selectedNodes.length)))]),t("div",{staticClass:"col-2"},[t("ul",e._l(e.sessions,(function(n){return t("li",{key:`copyNodeSession_${n.id}`,class:{selected:e.selectedSession===n.id},on:{click:function(t){return e.toggleSession(n.id)}}},[t("span",{staticClass:"checkbox"}),e._v(" "+e._s(n.displayName)+" ")])})),0),t("div",[t("button",{attrs:{disabled:!e.selectedSession},on:{click:e.moveNodes}},[t("font-awesome",{attrs:{icon:"sign-in-alt"}}),e._v(" "+e._s(e.$t("editor.move"))+" ")],1)])])])},ei=[],ti={data(){return{selectedSession:null}},props:{props:Array},computed:{selectedNodes(){return this.$store.getters.selectedNodeIds},sessions(){return this.$store.getters.sessionSet}},methods:{toggleSession(e){this.selectedSession=e},moveNodes(){this.$store.dispatch("moveNodes",this.selectedSession)}}},ni=ti,ri=(0,v.A)(ni,Zr,ei,!1,null,null,null),ii=ri.exports,oi=function(){var e=this,t=e._self._c;return t("div",{staticClass:"delete-nodes-modal"},[t("h2",[e._v(e._s(e.$tc("editor.nodes.delete",e.selectedNodes.length)))]),t("div",{staticClass:"col-2"},[t("div",[t("p",[e._v(" "+e._s(e.$tc("editor.nodes.deleteConfirm",e.selectedNodes.length))+" ")])]),t("div",[t("button",{on:{click:e.deleteNodes}},[t("font-awesome",{attrs:{icon:"times"}}),e._v(" "+e._s(e.$t("editor.delete"))+" ")],1)])])])},si=[],ai={data(){return{selectedSession:null}},props:{props:Array},computed:{selectedNodes(){return this.$store.getters.selectedNodeIds}},methods:{deleteNodes(){this.$store.dispatch("deleteNodes")}}},li=ai,ci=(0,v.A)(li,oi,si,!1,null,null,null),ui=ci.exports,di=function(){var e=this,t=e._self._c;return t("div",[t("h2",[t("font-awesome",{attrs:{icon:"exclamation-circle"}}),e._v(" "+e._s(e.$t("editor.reusedsession.title")))],1),t("p",[e._v(" "+e._s(e.$t("editor.reusedsession.desc"))+" ")]),t("p",[e._v(" "+e._s(e.$t("editor.reusedsession.desc2"))+" ")])])},pi=[],hi={name:"ReusedSessionWarning"},fi=hi,vi=(0,v.A)(fi,di,pi,!1,null,null,null),gi=vi.exports,mi=function(){var e=this,t=e._self._c;return t("div",{staticClass:"trust-prompt"},[t("h2",[t("font-awesome",{attrs:{icon:"network-wired"}}),e._v(" "+e._s(e.$t("editor.trust.title")))],1),t("p",[e._v(" "+e._s(e.$t("editor.trust.prompt"))+" ")]),t("div",{staticClass:"command"},[t("code",{staticClass:"command-area",attrs:{title:e.$t("editor.clipboardCopy")},on:{click:e.copyCommand}},[e._v(" /"+e._s(e.metaData.commandAlias)+" trusteditor "+e._s(this.props.nonce)+" ")]),e.commandCopied?t("span",{staticClass:"command-copied"},[e._v(" "+e._s(e.$t("editor.copied"))+" ")]):e._e()]),t("p",{domProps:{innerHTML:e._s(e.$t("editor.trust.note"))}})])},yi=[],bi={name:"TrustPrompt",data(){return{commandCopied:!1}},props:{props:Object},computed:{metaData(){return this.$store.getters.metaData}},methods:{async copyCommand(){await this.$copyText(`/${this.metaData.commandAlias} trusteditor ${this.props.nonce}`),this.commandCopied=!0}}},wi=bi,_i=(0,v.A)(wi,mi,yi,!1,null,null,null),xi=_i.exports,Ci={name:"Modal",components:{CreateGroup:wr,DeleteGroup:kr,DeleteUser:Nr,CreateTrack:Fr,SavedChanges:Wr,CopyNodes:Jr,MoveNodes:ii,DeleteNodes:ui,ReusedSessionWarning:gi,TrustPrompt:xi},props:{modal:Object},methods:{closeModal(){this.$store.commit("closeModal")}}},Ai=Ci,Ei=(0,v.A)(Ai,hr,fr,!1,null,null,null),ki=Ei.exports,Di=n(5952),Si={name:"Editor",metaInfo:{title:"Editor"},components:{EditorMenu:T,Header:L,Meta:G,NodeList:Jn,AddNode:sr,SearchNodes:pr,Modal:ki},data(){return{menu:!1,search:{toggle:!1,query:"",debouncedQuery:""},loading:!0,loaded:!1}},computed:{sessionId(){return this.$store.getters.editorSessionId},sessions(){return this.$store.getters.sessionSet},currentSession(){return this.$store.getters.currentSession||null},currentNodes(){return this.$store.getters.currentNodes||null},currentSessionData(){if(this.currentSession){const e={};return"group"===this.currentSession.type?e.type="group":"user"===this.currentSession.type?e.type="user":e.type=null,e.parents=this.currentNodes.filter((e=>e.key.startsWith("group."))),e.displayname=this.currentNodes.filter((e=>e.key.startsWith("displayname."))),e.weight=this.currentNodes.filter((e=>e.key.startsWith("weight."))),e.prefixes=this.currentNodes.filter((e=>e.key.startsWith("prefix."))),e.suffixes=this.currentNodes.filter((e=>e.key.startsWith("suffix."))),e.meta=this.currentNodes.filter((e=>e.key.startsWith("meta."))),e}return null},modal(){return this.$store.state.editor.modal||null},errors(){return this.$store.state.editor.errors},saveStatus(){return this.$store.getters.saveStatus},version(){return this.$store.getters.version},userVersion(){return this.$store.getters.metaData.pluginVersion},selectedNodes(){return this.$store.getters.selectedNodeIds},socketStatus(){return this.$store.getters.editorSocketStatus}},created(){this.updateSession()},watch:{$route(e){(0,Di.A)(e,"getEditorData")},"search.query":s()((function(e){this.search.debouncedQuery=String(e).toLowerCase()}),200)},methods:{async updateSession(){if(!this.loaded)try{this.loading=!0,await(0,Di.A)(this.$route,"getEditorData"),this.loaded=!0}catch(e){this.loaded=!1,console.error(e)}finally{this.loading=!1}},saveData(){this.$store.dispatch("saveData")},async toggleSearch(){const{search:e}=this;!0===e.toggle?(e.query="",e.toggle=!1):(e.toggle=!0,await this.$nextTick(),this.$refs.searchInput.focus())},clearQuery(){this.search.query="",this.search.debouncedQuery="",this.search.toggle=!1}}},$i=Si,Ti=(0,v.A)($i,r,i,!1,null,null,null),Oi=Ti.exports},222:function(e,t,n){"use strict";function r(e,t,n,r){const i=new Intl.RelativeTimeFormat(t,{numeric:"auto"}),o=n||(new Date).getTime(),s=e-o,a=Math.abs(s);let l,c;a<6e4?(l=Math.floor(s/1e3),c="second"):a>=6e4&&a<36e5?(l=Math.floor(s/6e4),c="minute"):a>=36e5&&a<864e5?(l=Math.floor(s/36e5),c="hour"):a>=864e5&&a<6048e5?(l=Math.floor(s/864e5),c="day"):a>=6048e5&&a<26298e5?(l=Math.floor(s/6048e5),c="week"):(l=Math.floor(s/26298e5),c="month");const u=i.format(l,c);if(r){const n=new Intl.DateTimeFormat(t,{hour:"numeric",minute:"numeric",second:"numeric"}),r=n.format(new Date(e));return`${u} @ ${r}`}return u}n.d(t,{P:function(){return r}})},181:function(e,t,n){var r="Expected a function",i=NaN,o="[object Symbol]",s=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt,d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,p="object"==typeof self&&self&&self.Object===Object&&self,h=d||p||Function("return this")(),f=Object.prototype,v=f.toString,g=Math.max,m=Math.min,y=function(){return h.Date.now()};function b(e,t,n){var i,o,s,a,l,c,u=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(r);function f(t){var n=i,r=o;return i=o=void 0,u=t,a=e.apply(r,n),a}function v(e){return u=e,l=setTimeout(x,t),d?f(e):a}function b(e){var n=e-c,r=e-u,i=t-n;return p?m(i,s-r):i}function _(e){var n=e-c,r=e-u;return void 0===c||n>=t||n<0||p&&r>=s}function x(){var e=y();if(_(e))return A(e);l=setTimeout(x,b(e))}function A(e){return l=void 0,h&&i?f(e):(i=o=void 0,a)}function E(){void 0!==l&&clearTimeout(l),u=0,i=c=o=l=void 0}function k(){return void 0===l?a:A(y())}function D(){var e=y(),n=_(e);if(i=arguments,o=this,c=e,n){if(void 0===l)return v(c);if(p)return l=setTimeout(x,t),f(c)}return void 0===l&&(l=setTimeout(x,t)),a}return t=C(t)||0,w(n)&&(d=!!n.leading,p="maxWait"in n,s=p?g(C(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),D.cancel=E,D.flush=k,D}function w(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){return!!e&&"object"==typeof e}function x(e){return"symbol"==typeof e||_(e)&&v.call(e)==o}function C(e){if("number"==typeof e)return e;if(x(e))return i;if(w(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=w(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):a.test(e)?i:+e}e.exports=b},8479:function(e,t,n){e=n.nmd(e);var r=200,i="Expected a function",o="__lodash_hash_undefined__",s=1,a=2,l=1/0,c=9007199254740991,u="[object Arguments]",d="[object Array]",p="[object Boolean]",h="[object Date]",f="[object Error]",v="[object Function]",g="[object GeneratorFunction]",m="[object Map]",y="[object Number]",b="[object Object]",w="[object Promise]",_="[object RegExp]",x="[object Set]",C="[object String]",A="[object Symbol]",E="[object WeakMap]",k="[object ArrayBuffer]",D="[object DataView]",S="[object Float32Array]",$="[object Float64Array]",T="[object Int8Array]",O="[object Int16Array]",N="[object Int32Array]",M="[object Uint8Array]",P="[object Uint8ClampedArray]",I="[object Uint16Array]",L="[object Uint32Array]",R=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/,B=/^\./,F=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,V=/[\\^$.*+?()[\]{}|]/g,U=/\\(\\)?/g,Y=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,H={};H[S]=H[$]=H[T]=H[O]=H[N]=H[M]=H[P]=H[I]=H[L]=!0,H[u]=H[d]=H[k]=H[p]=H[D]=H[h]=H[f]=H[v]=H[m]=H[y]=H[b]=H[_]=H[x]=H[C]=H[E]=!1;var W="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,X="object"==typeof self&&self&&self.Object===Object&&self,q=W||X||Function("return this")(),z=t&&!t.nodeType&&t,Q=z&&e&&!e.nodeType&&e,K=Q&&Q.exports===z,J=K&&W.process,Z=function(){try{return J&&J.binding("util")}catch(e){}}(),ee=Z&&Z.isTypedArray;function te(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ne(e,t){var n=-1,r=e?e.length:0,i=Array(r);while(++n-1}function tt(e,t){var n=this.__data__,r=yt(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function nt(e){var t=-1,n=e?e.length:0;this.clear();while(++t0&&n(a)?t>1?wt(a,t-1,n,r,i):re(i,a):r||(i[i.length]=a)}return i}var _t=Gt();function xt(e,t){return e&&_t(e,t,Sn)}function Ct(e,t){t=nn(t,e)?[t]:Ft(t);var n=0,r=t.length;while(null!=e&&nt||o&&s&&l&&!a&&!c||r&&s&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e=a)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}function Yt(e,t){return function(n,r){if(null==n)return n;if(!mn(n))return e(n,r);var i=n.length,o=t?i:-1,s=Object(n);while(t?o--:++oc))return!1;var d=o.get(e);if(d&&o.get(t))return d==t;var p=-1,h=!0,f=i&s?new lt:void 0;o.set(e,t),o.set(t,e);while(++p-1&&e%1==0&&e1&&tn(e,t[0],t[1])?t=[]:n>2&&tn(t[0],t[1],t[2])&&(t=[t[0]]),Lt(e,wt(t,1),[])}));function hn(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s),s};return n.cache=new(hn.Cache||nt),n}function fn(e,t){return e===t||e!==e&&t!==t}function vn(e){return yn(e)&&we.call(e,"callee")&&(!Ee.call(e,"callee")||_e.call(e)==u)}hn.Cache=nt;var gn=Array.isArray;function mn(e){return null!=e&&wn(e.length)&&!bn(e)}function yn(e){return xn(e)&&mn(e)}function bn(e){var t=_n(e)?_e.call(e):"";return t==v||t==g}function wn(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function _n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function xn(e){return!!e&&"object"==typeof e}function Cn(e){return"symbol"==typeof e||xn(e)&&_e.call(e)==A}var An=ee?le(ee):Tt;function En(e){return null==e?"":Bt(e)}function kn(e,t,n){var r=null==e?void 0:Ct(e,t);return void 0===r?n:r}function Dn(e,t){return null!=e&&Jt(e,t,Et)}function Sn(e){return mn(e)?mt(e):Nt(e)}function $n(e){return e}function Tn(e){return nn(e)?oe(un(e)):Rt(e)}e.exports=pn},3904:function(e,t,n){const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"===typeof e)try{e=new u(e,this.options)}catch(t){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):(t=o(t),(!t.includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))))))))}}e.exports=i;const o=n(8587),{safeRe:s,t:a}=n(9718),l=n(2111),c=n(7272),u=n(3908),d=n(8311)},8311:function(e,t,n){const r=/\s+/g;class i{constructor(e,t){if(t=a(t),e instanceof i)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new i(e.raw,t);if(e instanceof l)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!y(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&b(t[0])){this.set=[t];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&g)|(this.options.loose&&m),n=t+":"+e,r=s.get(n);if(r)return r;const i=this.options.loose,o=i?d[p.HYPHENRANGELOOSE]:d[p.HYPHENRANGE];e=e.replace(o,O(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(d[p.COMPARATORTRIM],h),c("comparator trim",e),e=e.replace(d[p.TILDETRIM],f),c("tilde trim",e),e=e.replace(d[p.CARETTRIM],v),c("caret trim",e);let a=e.split(" ").map((e=>_(e,this.options))).join(" ").split(/\s+/).map((e=>T(e,this.options)));i&&(a=a.filter((e=>(c("loose invalid filter",e,this.options),!!e.match(d[p.COMPARATORLOOSE]))))),c("range list",a);const u=new Map,b=a.map((e=>new l(e,this.options)));for(const s of b){if(y(s))return[s];u.set(s.value,s)}u.size>1&&u.has("")&&u.delete("");const w=[...u.values()];return s.set(n,w),w}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Range is required");return this.set.some((n=>w(n,t)&&e.set.some((e=>w(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"===typeof e)try{e=new u(e,this.options)}catch(t){return!1}for(let n=0;n"<0.0.0-0"===e.value,b=e=>""===e.value,w=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();while(n&&r.length)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},_=(e,t)=>(c("comp",e,t),e=E(e,t),c("caret",e),e=C(e,t),c("tildes",e),e=D(e,t),c("xrange",e),e=$(e,t),c("stars",e),e),x=e=>!e||"x"===e.toLowerCase()||"*"===e,C=(e,t)=>e.trim().split(/\s+/).map((e=>A(e,t))).join(" "),A=(e,t)=>{const n=t.loose?d[p.TILDELOOSE]:d[p.TILDE];return e.replace(n,((t,n,r,i,o)=>{let s;return c("tilde",e,t,n,r,i,o),x(n)?s="":x(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:x(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(c("replaceTilde pr",o),s=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,c("tilde return",s),s}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>k(e,t))).join(" "),k=(e,t)=>{c("caret",e,t);const n=t.loose?d[p.CARETLOOSE]:d[p.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,s)=>{let a;return c("caret",e,t,n,i,o,s),x(n)?a="":x(i)?a=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(o)?a="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(c("replaceCaret pr",s),a="0"===n?"0"===i?`>=${n}.${i}.${o}-${s} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${s} <${+n+1}.0.0-0`):(c("no pr"),a="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),c("caret return",a),a}))},D=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map((e=>S(e,t))).join(" ")),S=(e,t)=>{e=e.trim();const n=t.loose?d[p.XRANGELOOSE]:d[p.XRANGE];return e.replace(n,((n,r,i,o,s,a)=>{c("xRange",e,n,r,i,o,s,a);const l=x(i),u=l||x(o),d=u||x(s),p=d;return"="===r&&p&&(r=""),a=t.includePrerelease?"-0":"",l?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),"<"===r&&(a="-0"),n=`${r+i}.${o}.${s}${a}`):u?n=`>=${i}.0.0${a} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${o}.0${a} <${i}.${+o+1}.0-0`),c("xRange return",n),n}))},$=(e,t)=>(c("replaceStars",e,t),e.trim().replace(d[p.STAR],"")),T=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(d[t.includePrerelease?p.GTE0PRE:p.GTE0],"")),O=e=>(t,n,r,i,o,s,a,l,c,u,d,p)=>(n=x(r)?"":x(i)?`>=${r}.0.0${e?"-0":""}`:x(o)?`>=${r}.${i}.0${e?"-0":""}`:s?`>=${n}`:`>=${n}${e?"-0":""}`,l=x(c)?"":x(u)?`<${+c+1}.0.0-0`:x(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`,`${n} ${l}`.trim()),N=(e,t,n)=>{for(let r=0;r0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},3908:function(e,t,n){const r=n(7272),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(6874),{safeRe:s,t:a}=n(9718),l=n(8587),{compareIdentifiers:c}=n(1123);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!==typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0)"number"===typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},5033:function(e,t,n){const r=n(144),i=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=i},2111:function(e,t,n){const r=n(4641),i=n(3999),o=n(5580),s=n(4089),a=n(7059),l=n(5200),c=(e,t,n,c)=>{switch(t){case"===":return"object"===typeof e&&(e=e.version),"object"===typeof n&&(n=n.version),e===n;case"!==":return"object"===typeof e&&(e=e.version),"object"===typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return i(e,n,c);case">":return o(e,n,c);case">=":return s(e,n,c);case"<":return a(e,n,c);case"<=":return l(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=c},6170:function(e,t,n){const r=n(3908),i=n(144),{safeRe:o,t:s}=n(9718),a=(e,t)=>{if(e instanceof r)return e;if("number"===typeof e&&(e=String(e)),"string"!==typeof e)return null;t=t||{};let n=null;if(t.rtl){const r=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];let i;while((i=r.exec(e))&&(!n||n.index+n[0].length!==e.length))n&&i.index+i[0].length===n.index+n[0].length||(n=i),r.lastIndex=i.index+i[1].length+i[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===n)return null;const a=n[2],l=n[3]||"0",c=n[4]||"0",u=t.includePrerelease&&n[5]?`-${n[5]}`:"",d=t.includePrerelease&&n[6]?`+${n[6]}`:"";return i(`${a}.${l}.${c}${u}${d}`,t)};e.exports=a},909:function(e,t,n){const r=n(3908),i=(e,t,n)=>{const i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o)};e.exports=i},1763:function(e,t,n){const r=n(560),i=(e,t)=>r(e,t,!0);e.exports=i},560:function(e,t,n){const r=n(3908),i=(e,t,n)=>new r(e,n).compare(new r(t,n));e.exports=i},1832:function(e,t,n){const r=n(144),i=(e,t)=>{const n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;const s=o>0,a=s?n:i,l=s?i:n,c=!!a.prerelease.length,u=!!l.prerelease.length;if(u&&!c)return l.patch||l.minor?a.patch?"patch":a.minor?"minor":"major":"major";const d=c?"pre":"";return n.major!==i.major?d+"major":n.minor!==i.minor?d+"minor":n.patch!==i.patch?d+"patch":"prerelease"};e.exports=i},4641:function(e,t,n){const r=n(560),i=(e,t,n)=>0===r(e,t,n);e.exports=i},5580:function(e,t,n){const r=n(560),i=(e,t,n)=>r(e,t,n)>0;e.exports=i},4089:function(e,t,n){const r=n(560),i=(e,t,n)=>r(e,t,n)>=0;e.exports=i},3007:function(e,t,n){const r=n(3908),i=(e,t,n,i,o)=>{"string"===typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version}catch(s){return null}};e.exports=i},7059:function(e,t,n){const r=n(560),i=(e,t,n)=>r(e,t,n)<0;e.exports=i},5200:function(e,t,n){const r=n(560),i=(e,t,n)=>r(e,t,n)<=0;e.exports=i},2938:function(e,t,n){const r=n(3908),i=(e,t)=>new r(e,t).major;e.exports=i},6254:function(e,t,n){const r=n(3908),i=(e,t)=>new r(e,t).minor;e.exports=i},3999:function(e,t,n){const r=n(560),i=(e,t,n)=>0!==r(e,t,n);e.exports=i},144:function(e,t,n){const r=n(3908),i=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(i){if(!n)return null;throw i}};e.exports=i},4493:function(e,t,n){const r=n(3908),i=(e,t)=>new r(e,t).patch;e.exports=i},1729:function(e,t,n){const r=n(144),i=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=i},9970:function(e,t,n){const r=n(560),i=(e,t,n)=>r(t,e,n);e.exports=i},4277:function(e,t,n){const r=n(909),i=(e,t)=>e.sort(((e,n)=>r(n,e,t)));e.exports=i},7638:function(e,t,n){const r=n(8311),i=(e,t,n)=>{try{t=new r(t,n)}catch(i){return!1}return t.test(e)};e.exports=i},3927:function(e,t,n){const r=n(909),i=(e,t)=>e.sort(((e,n)=>r(e,n,t)));e.exports=i},6953:function(e,t,n){const r=n(144),i=(e,t)=>{const n=r(e,t);return n?n.version:null};e.exports=i},9589:function(e,t,n){const r=n(9718),i=n(6874),o=n(3908),s=n(1123),a=n(144),l=n(6953),c=n(5033),u=n(3007),d=n(1832),p=n(2938),h=n(6254),f=n(4493),v=n(1729),g=n(560),m=n(9970),y=n(1763),b=n(909),w=n(3927),_=n(4277),x=n(5580),C=n(7059),A=n(4641),E=n(3999),k=n(4089),D=n(5200),S=n(2111),$=n(6170),T=n(3904),O=n(8311),N=n(7638),M=n(7631),P=n(9628),I=n(270),L=n(1261),R=n(3874),j=n(7075),B=n(5571),F=n(5342),V=n(6780),U=n(2525),Y=n(5032);e.exports={parse:a,valid:l,clean:c,inc:u,diff:d,major:p,minor:h,patch:f,prerelease:v,compare:g,rcompare:m,compareLoose:y,compareBuild:b,sort:w,rsort:_,gt:x,lt:C,eq:A,neq:E,gte:k,lte:D,cmp:S,coerce:$,Comparator:T,Range:O,satisfies:N,toComparators:M,maxSatisfying:P,minSatisfying:I,minVersion:L,validRange:R,outside:j,gtr:B,ltr:F,intersects:V,simplifyRange:U,subset:Y,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},6874:function(e){const t="2.0.0",n=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,i=16,o=n-6,s=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:r,RELEASE_TYPES:s,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7272:function(e){const t="object"===typeof process&&{NODE_ENV:"production",VUE_APP_GIT_HASH:"5e99c72",BASE_URL:"/luckperms-editor/"}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production",VUE_APP_GIT_HASH:"5e99c72",BASE_URL:"/luckperms-editor/"}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},1123:function(e){const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),i=t.test(n);return r&&i&&(e=+e,n=+n),e===n?0:r&&!i?-1:i&&!r?1:en(t,e);e.exports={compareIdentifiers:n,rcompareIdentifiers:r}},8794:function(e){class t{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){const n=this.delete(e);if(!n&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=t},8587:function(e){const t=Object.freeze({loose:!0}),n=Object.freeze({}),r=e=>e?"object"!==typeof e?t:e:n;e.exports=r},9718:function(e,t,n){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=n(6874),s=n(7272);t=e.exports={};const a=t.re=[],l=t.safeRe=[],c=t.src=[],u=t.t={};let d=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[p,i]],f=e=>{for(const[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},v=(e,t,n)=>{const r=f(t),i=d++;s(e,i,t),u[e]=i,c[i]=t,a[i]=new RegExp(t,n?"g":void 0),l[i]=new RegExp(r,n?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),v("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${p}+`),v("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),v("FULL",`^${c[u.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),v("LOOSE",`^${c[u.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),v("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),v("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",c[u.COERCE],!0),v("COERCERTLFULL",c[u.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5571:function(e,t,n){const r=n(7075),i=(e,t,n)=>r(e,t,">",n);e.exports=i},6780:function(e,t,n){const r=n(8311),i=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));e.exports=i},5342:function(e,t,n){const r=n(7075),i=(e,t,n)=>r(e,t,"<",n);e.exports=i},9628:function(e,t,n){const r=n(3908),i=n(8311),o=(e,t,n)=>{let o=null,s=null,a=null;try{a=new i(t,n)}catch(l){return null}return e.forEach((e=>{a.test(e)&&(o&&-1!==s.compare(e)||(o=e,s=new r(o,n)))})),o};e.exports=o},270:function(e,t,n){const r=n(3908),i=n(8311),o=(e,t,n)=>{let o=null,s=null,a=null;try{a=new i(t,n)}catch(l){return null}return e.forEach((e=>{a.test(e)&&(o&&1!==s.compare(e)||(o=e,s=new r(o,n)))})),o};e.exports=o},1261:function(e,t,n){const r=n(3908),i=n(8311),o=n(5580),s=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let i=0;i{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!o(t,s)||(s=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!s||n&&!o(n,s)||(n=s)}return n&&e.test(n)?n:null};e.exports=s},7075:function(e,t,n){const r=n(3908),i=n(3904),{ANY:o}=i,s=n(8311),a=n(7638),l=n(5580),c=n(7059),u=n(5200),d=n(4089),p=(e,t,n,p)=>{let h,f,v,g,m;switch(e=new r(e,p),t=new s(t,p),n){case">":h=l,f=u,v=c,g=">",m=">=";break;case"<":h=c,f=d,v=l,g="<",m="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,p))return!1;for(let r=0;r{e.semver===o&&(e=new i(">=0.0.0")),s=s||e,a=a||e,h(e.semver,s.semver,p)?s=e:v(e.semver,a.semver,p)&&(a=e)})),s.operator===g||s.operator===m)return!1;if((!a.operator||a.operator===g)&&f(e,a.semver))return!1;if(a.operator===m&&v(e,a.semver))return!1}return!0};e.exports=p},2525:function(e,t,n){const r=n(7638),i=n(560);e.exports=(e,t,n)=>{const o=[];let s=null,a=null;const l=e.sort(((e,t)=>i(e,t,n)));for(const i of l){const e=r(i,t,n);e?(a=i,s||(s=i)):(a&&o.push([s,a]),a=null,s=null)}s&&o.push([s,null]);const c=[];for(const[r,i]of o)r===i?c.push(r):i||r!==l[0]?i?r===l[0]?c.push(`<=${i}`):c.push(`${r} - ${i}`):c.push(`>=${r}`):c.push("*");const u=c.join(" || "),d="string"===typeof t.raw?t.raw:String(t);return u.length{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=d(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0},c=[new i(">=0.0.0-0")],u=[new i(">=0.0.0")],d=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?c:u}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=u}const r=new Set;let i,l,d,f,v,g,m;for(const o of e)">"===o.operator||">="===o.operator?i=p(i,o,n):"<"===o.operator||"<="===o.operator?l=h(l,o,n):r.add(o.semver);if(r.size>1)return null;if(i&&l){if(d=a(i.semver,l.semver,n),d>0)return null;if(0===d&&(">="!==i.operator||"<="!==l.operator))return null}for(const o of r){if(i&&!s(o,String(i),n))return null;if(l&&!s(o,String(l),n))return null;for(const e of t)if(!s(o,String(e),n))return!1;return!0}let y=!(!l||n.includePrerelease||!l.semver.prerelease.length)&&l.semver,b=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;y&&1===y.prerelease.length&&"<"===l.operator&&0===y.prerelease[0]&&(y=!1);for(const o of t){if(m=m||">"===o.operator||">="===o.operator,g=g||"<"===o.operator||"<="===o.operator,i)if(b&&o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===b.major&&o.semver.minor===b.minor&&o.semver.patch===b.patch&&(b=!1),">"===o.operator||">="===o.operator){if(f=p(i,o,n),f===o&&f!==i)return!1}else if(">="===i.operator&&!s(i.semver,String(o),n))return!1;if(l)if(y&&o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===y.major&&o.semver.minor===y.minor&&o.semver.patch===y.patch&&(y=!1),"<"===o.operator||"<="===o.operator){if(v=h(l,o,n),v===o&&v!==l)return!1}else if("<="===l.operator&&!s(l.semver,String(o),n))return!1;if(!o.operator&&(l||i)&&0!==d)return!1}return!(i&&g&&!l&&0!==d)&&(!(l&&m&&!i&&0!==d)&&(!b&&!y))},p=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},h=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=l},7631:function(e,t,n){const r=n(8311),i=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=i},3874:function(e,t,n){const r=n(8311),i=(e,t)=>{try{return new r(e,t).range||"*"}catch(n){return null}};e.exports=i},246:function(e,t,n){"use strict"; /**! * Sortable 1.10.2 * @author RubaXa * @author owenm * @license MIT */ function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){return o=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function l(e,t){if(null==e)return{};var n,r,i=a(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function c(e){return u(e)||d(e)||p()}function u(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function E(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function k(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&A(e,t):A(e,t))||r&&e===n)return e;if(e===n)break}while(e=E(e))}return null}var D,S=/\s+/g;function $(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(S," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(S," ")}}function T(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function O(e,t){var n="";if("string"===typeof e)n=e;else do{var r=T(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function N(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i=o:i<=o,!s)return r;if(r===M())break;r=V(r,!1)}return!1}function L(e,t,n){var r=0,i=0,o=e.children;while(i2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=l(n,["evt"]);ne.pluginEvent.bind(Je)(e,t,s({dragEl:se,parentEl:ae,ghostEl:le,rootEl:ce,nextEl:ue,lastDownEl:de,cloneEl:pe,cloneHidden:he,dragStarted:ke,putSortable:be,activeSortable:Je.active,originalEvent:r,oldIndex:fe,oldDraggableIndex:ge,newIndex:ve,newDraggableIndex:me,hideGhostForTarget:qe,unhideGhostForTarget:ze,cloneNowHidden:function(){he=!0},cloneNowShown:function(){he=!1},dispatchSortableEvent:function(e){oe({sortable:t,name:e,originalEvent:r})}},i))};function oe(e){re(s({putSortable:be,cloneEl:pe,targetEl:se,rootEl:ce,oldIndex:fe,oldDraggableIndex:ge,newIndex:ve,newDraggableIndex:me},e))}var se,ae,le,ce,ue,de,pe,he,fe,ve,ge,me,ye,be,we,_e,xe,Ce,Ae,Ee,ke,De,Se,$e,Te,Oe=!1,Ne=!1,Me=[],Pe=!1,Ie=!1,Le=[],Re=!1,je=[],Be="undefined"!==typeof document,Fe=b,Ve=g||v?"cssFloat":"float",Ue=Be&&!w&&!b&&"draggable"in document.createElement("div"),Ye=function(){if(Be){if(v)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ge=function(e,t){var n=T(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=L(e,0,t),o=L(e,1,t),s=i&&T(i),a=o&&T(o),l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+P(i).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+P(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&s["float"]&&"none"!==s["float"]){var u="left"===s["float"]?"left":"right";return!o||"both"!==a.clear&&a.clear!==u?"horizontal":"vertical"}return i&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||l>=r&&"none"===n[Ve]||o&&"none"===n[Ve]&&l+c>r)?"vertical":"horizontal"},He=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,s=n?t.left:t.top,a=n?t.right:t.bottom,l=n?t.width:t.height;return r===s||i===a||r+o/2===s+l/2},We=function(e,t){var n;return Me.some((function(r){if(!R(r)){var i=P(r),o=r[Q].options.emptyInsertThreshold,s=e>=i.left-o&&e<=i.right+o,a=t>=i.top-o&&t<=i.bottom+o;return o&&s&&a?n=r:void 0}})),n},Xe=function(e){function t(e,n){return function(r,i,o,s){var a=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||a))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(r,i,o,s),n)(r,i,o,s);var l=(n?r:i).options.group.name;return!0===e||"string"===typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},i=e.group;i&&"object"==r(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},qe=function(){!Ye&&le&&T(le,"display","none")},ze=function(){!Ye&&le&&T(le,"display","")};Be&&document.addEventListener("click",(function(e){if(Ne)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ne=!1,!1}),!0);var Qe=function(e){if(se){e=e.touches?e.touches[0]:e;var t=We(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Q]._onDragOver(n)}}},Ke=function(e){se&&se.parentNode[Q]._isOutsideThisEl(e.target)};function Je(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=o({},t),e[Q]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ge(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Je.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in ne.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Xe(t),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Ue,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?x(e,"pointerdown",this._onTapStart):(x(e,"mousedown",this._onTapStart),x(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(x(e,"dragover",this),x(e,"dragenter",this)),Me.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),o(this,K())}function Ze(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function et(e,t,n,r,i,o,s,a){var l,c,u=e[Q],d=u.options.onMove;return!window.CustomEvent||v||g?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||P(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),d&&(c=d.call(u,l,s)),c}function tt(e){e.draggable=!1}function nt(){Re=!1}function rt(e,t,n){var r=P(R(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function it(e,t,n,r,i,o,s,a){var l=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,p=!1;if(!s)if(a&&$eu+c*o/2:ld-$e)return-Se}else if(l>u+c*(1-i)/2&&ld-c*o/2)?l>u+c/2?1:-1:0}function ot(e){return j(se)=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){se&&tt(se),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._disableDelayedDrag),C(e,"touchend",this._disableDelayedDrag),C(e,"touchcancel",this._disableDelayedDrag),C(e,"mousemove",this._delayedDragTouchMoveHandler),C(e,"touchmove",this._delayedDragTouchMoveHandler),C(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?x(document,"pointermove",this._onTouchMove):x(document,t?"touchmove":"mousemove",this._onTouchMove):(x(se,"dragend",this),x(ce,"dragstart",this._onDragStart));try{document.selection?lt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Oe=!1,ce&&se){ie("dragStarted",this,{evt:t}),this.nativeDraggable&&x(document,"dragover",Ke);var n=this.options;!e&&$(se,n.dragClass,!1),$(se,n.ghostClass,!0),Je.active=this,e&&this._appendGhost(),oe({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(_e){this._lastX=_e.clientX,this._lastY=_e.clientY,qe();var e=document.elementFromPoint(_e.clientX,_e.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(_e.clientX,_e.clientY),e===t)break;t=e}if(se.parentNode[Q]._isOutsideThisEl(e),t)do{if(t[Q]){var n=void 0;if(n=t[Q]._onDragOver({clientX:_e.clientX,clientY:_e.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);ze()}},_onTouchMove:function(e){if(we){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=le&&O(le,!0),s=le&&o&&o.a,a=le&&o&&o.d,l=Fe&&Te&&B(Te),c=(i.clientX-we.clientX+r.x)/(s||1)+(l?l[0]-Le[0]:0)/(s||1),u=(i.clientY-we.clientY+r.y)/(a||1)+(l?l[1]-Le[1]:0)/(a||1);if(!Je.active&&!Oe){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(oe({rootEl:ae,name:"add",toEl:ae,fromEl:ce,originalEvent:e}),oe({sortable:this,name:"remove",toEl:ae,originalEvent:e}),oe({rootEl:ae,name:"sort",toEl:ae,fromEl:ce,originalEvent:e}),oe({sortable:this,name:"sort",toEl:ae,originalEvent:e})),be&&be.save()):ve!==fe&&ve>=0&&(oe({sortable:this,name:"update",toEl:ae,originalEvent:e}),oe({sortable:this,name:"sort",toEl:ae,originalEvent:e})),Je.active&&(null!=ve&&-1!==ve||(ve=fe,me=ge),oe({sortable:this,name:"end",toEl:ae,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ie("nulling",this),ce=se=ae=le=ue=pe=de=he=we=_e=ke=ve=me=fe=ge=De=Se=be=ye=Je.dragged=Je.ghost=Je.clone=Je.active=null,je.forEach((function(e){e.checked=!0})),je.length=xe=Ce=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":se&&(this._onDragOver(e),Ze(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r1&&(Mt.forEach((function(e){r.addAnimationState({target:e,rect:Lt?P(e):i}),z(e),e.fromRect=i,t.removeAnimationState(e)})),Lt=!1,Bt(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,o=e.parentEl,s=e.putSortable,a=this.options;if(r){if(n&&i._hideClone(),It=!1,a.animation&&Mt.length>1&&(Lt||!n&&!i.options.sort&&!s)){var l=P(Tt,!1,!0,!0);Mt.forEach((function(e){e!==Tt&&(q(e,l),o.appendChild(e))})),Lt=!0}if(!n)if(Lt||Vt(),Mt.length>1){var c=Nt;i._showClone(t),i.options.animation&&!Nt&&c&&Pt.forEach((function(e){i.addAnimationState({target:e,rect:Ot}),e.fromRect=Ot,e.thisAnimationDuration=null}))}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(Mt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Ot=o({},t);var i=O(Tt,!0);Ot.top-=i.f,Ot.left-=i.e}},dragOverAnimationComplete:function(){Lt&&(Lt=!1,Vt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,o=e.dispatchSortableEvent,s=e.oldIndex,a=e.putSortable,l=a||this.sortable;if(t){var c=this.options,u=r.children;if(!Rt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),$(Tt,c.selectedClass,!~Mt.indexOf(Tt)),~Mt.indexOf(Tt))Mt.splice(Mt.indexOf(Tt),1),St=null,re({sortable:i,rootEl:n,name:"deselect",targetEl:Tt,originalEvt:t});else{if(Mt.push(Tt),re({sortable:i,rootEl:n,name:"select",targetEl:Tt,originalEvt:t}),t.shiftKey&&St&&i.el.contains(St)){var d,p,h=j(St),f=j(Tt);if(~h&&~f&&h!==f)for(f>h?(p=h,d=f):(p=f,d=h+1);p1){var v=P(Tt),g=j(Tt,":not(."+this.options.selectedClass+")");if(!It&&c.animation&&(Tt.thisAnimationDuration=null),l.captureAnimationState(),!It&&(c.animation&&(Tt.fromRect=v,Mt.forEach((function(e){if(e.thisAnimationDuration=null,e!==Tt){var t=Lt?P(e):v;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),Vt(),Mt.forEach((function(e){u[g]?r.insertBefore(e,u[g]):r.appendChild(e),g++})),s===j(Tt))){var m=!1;Mt.forEach((function(e){e.sortableIndex===j(e)||(m=!0)})),m&&o("update")}Mt.forEach((function(e){z(e)})),l.animateAll()}$t=l}(n===r||a&&"clone"!==a.lastPutMode)&&Pt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Rt=!1,Pt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),C(document,"pointerup",this._deselectMultiDrag),C(document,"mouseup",this._deselectMultiDrag),C(document,"touchend",this._deselectMultiDrag),C(document,"keydown",this._checkKeyDown),C(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof Rt||!Rt)&&$t===this.sortable&&(!e||!k(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while(Mt.length){var t=Mt[0];$(t,this.options.selectedClass,!1),Mt.shift(),re({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[Q];t&&t.options.multiDrag&&!~Mt.indexOf(e)&&($t&&$t!==t&&($t.multiDrag._deselectMultiDrag(),$t=t),$(e,t.options.selectedClass,!0),Mt.push(e))},deselect:function(e){var t=e.parentNode[Q],n=Mt.indexOf(e);t&&t.options.multiDrag&&~n&&($(e,t.options.selectedClass,!1),Mt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return Mt.forEach((function(r){var i;t.push({multiDragElement:r,index:r.sortableIndex}),i=Lt&&r!==Tt?-1:Lt?j(r,":not(."+e.options.selectedClass+")"):j(r),n.push({multiDragElement:r,index:i})})),{items:c(Mt),clones:[].concat(Pt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),"ctrl"===e?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Bt(e,t){Mt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function Ft(e,t){Pt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function Vt(){Mt.forEach((function(e){e!==Tt&&e.parentNode&&e.parentNode.removeChild(e)}))}Je.mount(new yt),Je.mount(Et,At),t["default"]=Je},5980:function(e){!function(t,n){e.exports=n()}(0,(function(){var e="__v-click-outside",t="undefined"!=typeof window,n="undefined"!=typeof navigator,r=t&&("ontouchstart"in window||n&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"];function i(t,n){var i=function(e){var t="function"==typeof e;if(!t&&"object"!=typeof e)throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:t?e:e.handler,middleware:e.middleware||function(e){return e},events:e.events||r,isActive:!(!1===e.isActive)}}(n.value),o=i.handler,s=i.middleware;i.isActive&&(t[e]=i.events.map((function(e){return{event:e,handler:function(e){return function(e){var t=e.el,n=e.event,r=e.handler,i=e.middleware;n.target!==t&&!t.contains(n.target)&&i(n,t)&&r(n,t)}({event:e,el:t,handler:o,middleware:s})}}})),t[e].forEach((function(e){var t=e.event,n=e.handler;return setTimeout((function(){return document.documentElement.addEventListener(t,n,!1)}),0)})))}function o(t){(t[e]||[]).forEach((function(e){return document.documentElement.removeEventListener(e.event,e.handler,!1)})),delete t[e]}var s={bind:i,update:function(e,t){var n=t.value,r=t.oldValue;JSON.stringify(n)!==JSON.stringify(r)&&(o(e),i(e,{value:n}))},unbind:o};return{install:function(e){e.directive("click-outside",s)},directive:s}}))},5262:function(e){!function(t,n){e.exports=n()}(0,(function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=89)}([function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(35),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);e.exports=r?s:function(e){return function(){return o.apply(e,arguments)}}},function(e,t,n){var r=n(59),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},function(e,t,n){var r=n(4),i=n(43).f,o=n(30),s=n(11),a=n(33),l=n(95),c=n(66);e.exports=function(e,t){var n,u,d,p,h,f=e.target,v=e.global,g=e.stat;if(n=v?r:g?r[f]||a(f,{}):(r[f]||{}).prototype)for(u in t){if(p=t[u],e.dontCallGetSet?(h=i(n,u),d=h&&h.value):d=n[u],!c(v?u:f+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),s(n,u,p,e)}}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(t,n(139))},function(e,t,n){var r=n(0);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(8),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not an object")}},function(e,t,n){var r=n(1),i=n(14),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},function(e,t,n){var r=n(2),i=n(59),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===o}:function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t,n){var r=n(4),i=n(47),o=n(7),s=n(75),a=n(72),l=n(76),c=i("wks"),u=r.Symbol,d=u&&u.for,p=l?u:u&&u.withoutSetter||s;e.exports=function(e){if(!o(c,e)||!a&&"string"!=typeof c[e]){var t="Symbol."+e;a&&o(u,e)?c[e]=u[e]:c[e]=l&&d?d(t):p(t)}return c[e]}},function(e,t,n){var r=n(123);e.exports=function(e){return r(e.length)}},function(e,t,n){var r=n(2),i=n(13),o=n(104),s=n(33);e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(r(n)&&o(n,c,a),a.global)l?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},function(e,t,n){var r=n(35),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(e,t,n){var r=n(5),i=n(62),o=n(77),s=n(6),a=n(50),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor;t.f=r?o?function(e,t,n){if(s(e),t=a(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=u(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(s(e),t=a(t),s(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(24),i=Object;e.exports=function(e){return i(r(e))}},function(e,t,n){var r=n(1),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},function(e,t,n){var r=n(0),i=n(9),o=n(23),s=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var r=n(4),i=n(2),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},function(e,t,n){var r=n(15);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(39),i=n(24);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(29),i=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},function(e,t,n){var r=n(100),i=n(1),o=n(39),s=n(14),a=n(10),l=n(28),c=i([].push),u=function(e){var t=1==e,n=2==e,i=3==e,u=4==e,d=6==e,p=7==e,h=5==e||d;return function(f,v,g,m){for(var y,b,w=s(f),_=o(w),x=r(v,g),C=a(_),A=0,E=m||l,k=t?E(f,C):n||p?E(f,0):void 0;C>A;A++)if((h||A in _)&&(y=_[A],b=x(y,A,w),e))if(t)k[A]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return A;case 2:c(k,y)}else switch(e){case 4:return!1;case 7:c(k,y)}return d?-1:i||u?u:k}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},function(e,t){var n=TypeError;e.exports=function(e){if(e>9007199254740991)throw n("Maximum allowed index exceeded");return e}},function(e,t,n){var r,i,o=n(4),s=n(97),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(r=u.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},function(e,t,n){var r=n(40),i=TypeError;e.exports=function(e){if(r(e))throw i("Can't call method on "+e);return e}},function(e,t,n){var r=n(2),i=n(74),o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not a function")}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},function(e,t,n){"use strict";var r=n(5),i=n(18),o=TypeError,s=Object.getOwnPropertyDescriptor,a=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(i(e)&&!s(e,"length").writable)throw o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},function(e,t,n){var r=n(94);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){var r=n(51),i=n(2),o=n(15),s=n(9),a=s("toStringTag"),l=Object,c="Arguments"==o(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(e){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=l(e),a))?n:c?o(t):"Object"==(r=o(t))&&i(t.callee)?"Arguments":r}},function(e,t,n){var r=n(5),i=n(13),o=n(31);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(50),i=n(13),o=n(31);e.exports=function(e,t,n){var s=r(t);s in e?i.f(e,s,o(0,n)):e[s]=n}},function(e,t,n){var r=n(4),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(0);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,t,n){var r=n(5),i=n(7),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),l=a&&"something"===function(){}.name,c=a&&(!r||r&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},function(e,t,n){var r=n(15),i=n(1);e.exports=function(e){if("Function"===r(e))return i(e)}},function(e,t){e.exports={}},function(e,t,n){var r=n(1),i=n(0),o=n(15),s=Object,a=r("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?a(e,""):s(e)}:s},function(e,t){e.exports=function(e){return null===e||void 0===e}},function(e,t,n){var r=n(17),i=n(2),o=n(44),s=n(76),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,a(e))}},function(e,t,n){var r,i=n(6),o=n(107),s=n(34),a=n(38),l=n(101),c=n(60),u=n(70),d=u("IE_PROTO"),p=function(){},h=function(e){return"