/*! For license information please see app.js.LICENSE.txt */
(()=>{var __webpack_modules__={2916:e=>{window,e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=6)}([function(e,t,n){var i=n(8);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,n(4).default)("7ec05f6c",i,!1,{})},function(e,t,n){var i=n(10);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,n(4).default)("3453d19d",i,!1,{})},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,i=e[1]||"",r=e[3];if(!r)return i;if(t&&"function"==typeof btoa){var a=(n=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),o=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[i].concat(o).concat([a]).join("\n")}return[i].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var a=this[r][0];null!=a&&(i[a]=!0)}for(r=0;r<e.length;r++){var o=e[r];null!=o[0]&&i[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},function(e,t){e.exports="data:application/vnd.ms-fontobject;base64,aAUAAMQEAAABAAIAAAAAAAAAAAAAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAUdPJHwAAAAAAAAAAAAAAAAAAAAAAAA4AaQBjAG8AbQBvAG8AbgAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAADgBpAGMAbwBtAG8AbwBuAAAAAAAAAQAAAAsAgAADADBPUy8yDxIFrAAAALwAAABgY21hcBdW0okAAAEcAAAAVGdhc3AAAAAQAAABcAAAAAhnbHlmpZ+jMAAAAXgAAAD8aGVhZA/FmAgAAAJ0AAAANmhoZWEHgAPIAAACrAAAACRobXR4EgABvgAAAtAAAAAcbG9jYQCSAOIAAALsAAAAEG1heHAACQAfAAAC/AAAACBuYW1lmUoJ+wAAAxwAAAGGcG9zdAADAAAAAASkAAAAIAADA4ABkAAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAAAAAAAAAAAAAAEAAAOkCA8D/wABAA8AAQAAAAAEAAAAAAAAAAAAAACAAAAAAAAMAAAADAAAAHAABAAMAAAAcAAMAAQAAABwABAA4AAAACgAIAAIAAgABACDpAv/9//8AAAAAACDpAP/9//8AAf/jFwQAAwABAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAVgEBA74CgQAcAAABMhceARcWFwcmJy4BJyYjIgYHFyERFzY3PgE3NgIWSkNDbykpF2QQIB9VMzQ5P3AtnP6AmB0iIkspKAJVFxhSODlCIDMrKz4REislmgGAmhkVFBwICAABANYAgQMqAtUACwAAAQcXBycHJzcnNxc3Ayru7jzu7jzu7jzu7gKZ7u487u487u487u4AAQCSAIEDgAK9AAUAACUBFwEnNwGAAcQ8/gDuPPkBxDz+AO48AAAAAAEAAAAAAAAfydNRXw889QALBAAAAAAA1nUqGwAAAADWdSobAAAAAAO+AtUAAAAIAAIAAAAAAAAAAQAAA8D/wAAABAAAAAAAA74AAQAAAAAAAAAAAAAAAAAAAAcEAAAAAAAAAAAAAAACAAAABAAAVgQAANYEAACSAAAAAAAKABQAHgBQAGoAfgABAAAABwAdAAEAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAADgCuAAEAAAAAAAEABwAAAAEAAAAAAAIABwBgAAEAAAAAAAMABwA2AAEAAAAAAAQABwB1AAEAAAAAAAUACwAVAAEAAAAAAAYABwBLAAEAAAAAAAoAGgCKAAMAAQQJAAEADgAHAAMAAQQJAAIADgBnAAMAAQQJAAMADgA9AAMAAQQJAAQADgB8AAMAAQQJAAUAFgAgAAMAAQQJAAYADgBSAAMAAQQJAAoANACkaWNvbW9vbgBpAGMAbwBtAG8AbwBuVmVyc2lvbiAxLjAAVgBlAHIAcwBpAG8AbgAgADEALgAwaWNvbW9vbgBpAGMAbwBtAG8AbwBuaWNvbW9vbgBpAGMAbwBtAG8AbwBuUmVndWxhcgBSAGUAZwB1AGwAYQByaWNvbW9vbgBpAGMAbwBtAG8AbwBuRm9udCBnZW5lcmF0ZWQgYnkgSWNvTW9vbi4ARgBvAG4AdAAgAGcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAASQBjAG8ATQBvAG8AbgAuAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="},function(e,t,n){"use strict";function i(e,t){for(var n=[],i={},r=0;r<t.length;r++){var a=t[r],o=a[0],s={id:e+":"+r,css:a[1],media:a[2],sourceMap:a[3]};i[o]?i[o].parts.push(s):n.push(i[o]={id:o,parts:[s]})}return n}n.r(t),n.d(t,"default",(function(){return p}));var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},o=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,h="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,n,r){c=n,d=r||{};var o=i(e,t);return m(o),function(t){for(var n=[],r=0;r<o.length;r++){var s=o[r];(l=a[s.id]).refs--,n.push(l)}for(t?m(o=i(e,t)):o=[],r=0;r<n.length;r++){var l;if(0===(l=n[r]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete a[l.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],i=a[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(_(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var o=[];for(r=0;r<n.parts.length;r++)o.push(_(n.parts[r]));a[n.id]={id:n.id,refs:1,parts:o}}}}function g(){var e=document.createElement("style");return e.type="text/css",o.appendChild(e),e}function _(e){var t,n,i=document.querySelector("style["+h+'~="'+e.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(f){var r=l++;i=s||(s=g()),t=b.bind(null,i,r,!1),n=b.bind(null,i,r,!0)}else i=g(),t=function(e,t){var n=t.css,i=t.media,r=t.sourceMap;if(i&&e.setAttribute("media",i),d.ssrId&&e.setAttribute(h,t.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,i),n=function(){i.parentNode.removeChild(i)};return t(e),function(i){if(i){if(i.css===e.css&&i.media===e.media&&i.sourceMap===e.sourceMap)return;t(e=i)}else n()}}var v,y=(v=[],function(e,t){return v[e]=t,v.filter(Boolean).join("\n")});function b(e,t,n,i){var r=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=y(t,r);else{var a=document.createTextNode(r),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}},function(e,t,n){"use strict";var i=Array.isArray,r=Object.keys,a=Object.prototype.hasOwnProperty;e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var o,s,l,c=i(t),u=i(n);if(c&&u){if((s=t.length)!=n.length)return!1;for(o=s;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(c!=u)return!1;var d=t instanceof Date,h=n instanceof Date;if(d!=h)return!1;if(d&&h)return t.getTime()==n.getTime();var f=t instanceof RegExp,p=n instanceof RegExp;if(f!=p)return!1;if(f&&p)return t.toString()==n.toString();var m=r(t);if((s=m.length)!==r(n).length)return!1;for(o=s;0!=o--;)if(!a.call(n,m[o]))return!1;for(o=s;0!=o--;)if(!e(t[l=m[o]],n[l]))return!1;return!0}return t!=t&&n!=n}},function(e,t,n){e.exports=n(14)},function(e,t,n){"use strict";var i=n(0);n.n(i).a},function(e,t,n){(e.exports=n(2)(!0)).push([e.i,".ti-tag-input[data-v-108f4f13] {\n  background-color: transparent;\n  color: inherit;\n  border: none;\n  padding: 0px;\n  margin: 0px;\n  display: flex;\n  top: 0px;\n  position: absolute;\n  width: 100%;\n  line-height: inherit;\n}\n.ti-tag-input[data-v-108f4f13]::-ms-clear {\n  display: none;\n}\ninput[data-v-108f4f13]:focus {\n  outline: none;\n}\ninput[disabled][data-v-108f4f13] {\n  background-color: transparent;\n}\n","",{version:3,sources:["C:/Users/johan/dev/vue-tags-input/vue-tags-input/C:/Users/johan/dev/vue-tags-input/vue-tags-input/tag-input.vue"],names:[],mappings:"AAAA;EACE,8BAA8B;EAC9B,eAAe;EACf,aAAa;EACb,aAAa;EACb,YAAY;EACZ,cAAc;EACd,SAAS;EACT,mBAAmB;EACnB,YAAY;EACZ,qBAAqB;CAAE;AAEzB;EACE,cAAc;CAAE;AAElB;EACE,cAAc;CAAE;AAElB;EACE,8BAA8B;CAAE",file:"tag-input.vue?vue&type=style&index=0&id=108f4f13&lang=css&scoped=true&",sourcesContent:[".ti-tag-input {\n  background-color: transparent;\n  color: inherit;\n  border: none;\n  padding: 0px;\n  margin: 0px;\n  display: flex;\n  top: 0px;\n  position: absolute;\n  width: 100%;\n  line-height: inherit; }\n\n.ti-tag-input::-ms-clear {\n  display: none; }\n\ninput:focus {\n  outline: none; }\n\ninput[disabled] {\n  background-color: transparent; }\n"],sourceRoot:""}])},function(e,t,n){"use strict";var i=n(1);n.n(i).a},function(e,t,n){t=e.exports=n(2)(!0);var i=n(11),r=i(n(3)),a=i(n(3)+"#iefix"),o=i(n(12)),s=i(n(13));t.push([e.i,"@font-face {\n  font-family: 'icomoon';\n  src: url("+r+");\n  src: url("+a+') format("embedded-opentype"), url('+o+') format("truetype"), url('+s+') format("woff");\n  font-weight: normal;\n  font-style: normal;\n}\n[class^="ti-icon-"][data-v-61d92e31], [class*=" ti-icon-"][data-v-61d92e31] {\n  font-family: \'icomoon\' !important;\n  speak: none;\n  font-style: normal;\n  font-weight: normal;\n  font-variant: normal;\n  text-transform: none;\n  line-height: 1;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n.ti-icon-check[data-v-61d92e31]:before {\n  content: "\\e902";\n}\n.ti-icon-close[data-v-61d92e31]:before {\n  content: "\\e901";\n}\n.ti-icon-undo[data-v-61d92e31]:before {\n  content: "\\e900";\n}\nul[data-v-61d92e31] {\n  margin: 0px;\n  padding: 0px;\n  list-style-type: none;\n}\n*[data-v-61d92e31], *[data-v-61d92e31]:before, *[data-v-61d92e31]:after {\n  box-sizing: border-box;\n}\ninput[data-v-61d92e31]:focus {\n  outline: none;\n}\ninput[disabled][data-v-61d92e31] {\n  background-color: transparent;\n}\n.vue-tags-input[data-v-61d92e31] {\n  max-width: 450px;\n  position: relative;\n  background-color: #fff;\n}\ndiv.vue-tags-input.disabled[data-v-61d92e31] {\n  opacity: 0.5;\n}\ndiv.vue-tags-input.disabled *[data-v-61d92e31] {\n    cursor: default;\n}\n.ti-input[data-v-61d92e31] {\n  border: 1px solid #ccc;\n  display: flex;\n  padding: 4px;\n  flex-wrap: wrap;\n}\n.ti-tags[data-v-61d92e31] {\n  display: flex;\n  flex-wrap: wrap;\n  width: 100%;\n  line-height: 1em;\n}\n.ti-tag[data-v-61d92e31] {\n  background-color: #5C6BC0;\n  color: #fff;\n  border-radius: 2px;\n  display: flex;\n  padding: 3px 5px;\n  margin: 2px;\n  font-size: .85em;\n}\n.ti-tag[data-v-61d92e31]:focus {\n    outline: none;\n}\n.ti-tag .ti-content[data-v-61d92e31] {\n    display: flex;\n    align-items: center;\n}\n.ti-tag .ti-tag-center[data-v-61d92e31] {\n    position: relative;\n}\n.ti-tag span[data-v-61d92e31] {\n    line-height: .85em;\n}\n.ti-tag span.ti-hidden[data-v-61d92e31] {\n    padding-left: 14px;\n    visibility: hidden;\n    height: 0px;\n    white-space: pre;\n}\n.ti-tag .ti-actions[data-v-61d92e31] {\n    margin-left: 2px;\n    display: flex;\n    align-items: center;\n    font-size: 1.15em;\n}\n.ti-tag .ti-actions i[data-v-61d92e31] {\n      cursor: pointer;\n}\n.ti-tag[data-v-61d92e31]:last-child {\n    margin-right: 4px;\n}\n.ti-tag.ti-invalid[data-v-61d92e31], .ti-tag.ti-tag.ti-deletion-mark[data-v-61d92e31] {\n    background-color: #e54d42;\n}\n.ti-new-tag-input-wrapper[data-v-61d92e31] {\n  display: flex;\n  flex: 1 0 auto;\n  padding: 3px 5px;\n  margin: 2px;\n  font-size: .85em;\n}\n.ti-new-tag-input-wrapper input[data-v-61d92e31] {\n    flex: 1 0 auto;\n    min-width: 100px;\n    border: none;\n    padding: 0px;\n    margin: 0px;\n}\n.ti-new-tag-input[data-v-61d92e31] {\n  line-height: initial;\n}\n.ti-autocomplete[data-v-61d92e31] {\n  border: 1px solid #ccc;\n  border-top: none;\n  position: absolute;\n  width: 100%;\n  background-color: #fff;\n  z-index: 20;\n}\n.ti-item > div[data-v-61d92e31] {\n  cursor: pointer;\n  padding: 3px 6px;\n  width: 100%;\n}\n.ti-selected-item[data-v-61d92e31] {\n  background-color: #5C6BC0;\n  color: #fff;\n}\n',"",{version:3,sources:["C:/Users/johan/dev/vue-tags-input/vue-tags-input/C:/Users/johan/dev/vue-tags-input/vue-tags-input/vue-tags-input.scss"],names:[],mappings:"AAAA;EACE,uBAAuB;EACvB,mCAA8C;EAC9C,+JAAuM;EACvM,oBAAoB;EACpB,mBAAmB;CAAE;AAEvB;EACE,kCAAkC;EAClC,YAAY;EACZ,mBAAmB;EACnB,oBAAoB;EACpB,qBAAqB;EACrB,qBAAqB;EACrB,eAAe;EACf,oCAAoC;EACpC,mCAAmC;CAAE;AAEvC;EACE,iBAAiB;CAAE;AAErB;EACE,iBAAiB;CAAE;AAErB;EACE,iBAAiB;CAAE;AAErB;EACE,YAAY;EACZ,aAAa;EACb,sBAAsB;CAAE;AAE1B;EACE,uBAAuB;CAAE;AAE3B;EACE,cAAc;CAAE;AAElB;EACE,8BAA8B;CAAE;AAElC;EACE,iBAAiB;EACjB,mBAAmB;EACnB,uBAAuB;CAAE;AAE3B;EACE,aAAa;CAAE;AACf;IACE,gBAAgB;CAAE;AAEtB;EACE,uBAAuB;EACvB,cAAc;EACd,aAAa;EACb,gBAAgB;CAAE;AAEpB;EACE,cAAc;EACd,gBAAgB;EAChB,YAAY;EACZ,iBAAiB;CAAE;AAErB;EACE,0BAA0B;EAC1B,YAAY;EACZ,mBAAmB;EACnB,cAAc;EACd,iBAAiB;EACjB,YAAY;EACZ,iBAAiB;CAAE;AACnB;IACE,cAAc;CAAE;AAClB;IACE,cAAc;IACd,oBAAoB;CAAE;AACxB;IACE,mBAAmB;CAAE;AACvB;IACE,mBAAmB;CAAE;AACvB;IACE,mBAAmB;IACnB,mBAAmB;IACnB,YAAY;IACZ,iBAAiB;CAAE;AACrB;IACE,iBAAiB;IACjB,cAAc;IACd,oBAAoB;IACpB,kBAAkB;CAAE;AACpB;MACE,gBAAgB;CAAE;AACtB;IACE,kBAAkB;CAAE;AACtB;IACE,0BAA0B;CAAE;AAEhC;EACE,cAAc;EACd,eAAe;EACf,iBAAiB;EACjB,YAAY;EACZ,iBAAiB;CAAE;AACnB;IACE,eAAe;IACf,iBAAiB;IACjB,aAAa;IACb,aAAa;IACb,YAAY;CAAE;AAElB;EACE,qBAAqB;CAAE;AAEzB;EACE,uBAAuB;EACvB,iBAAiB;EACjB,mBAAmB;EACnB,YAAY;EACZ,uBAAuB;EACvB,YAAY;CAAE;AAEhB;EACE,gBAAgB;EAChB,iBAAiB;EACjB,YAAY;CAAE;AAEhB;EACE,0BAA0B;EAC1B,YAAY;CAAE",file:"vue-tags-input.scss?vue&type=style&index=0&id=61d92e31&lang=scss&scoped=true&",sourcesContent:['@font-face {\n  font-family: \'icomoon\';\n  src: url("./assets/fonts/icomoon.eot?7grlse");\n  src: url("./assets/fonts/icomoon.eot?7grlse#iefix") format("embedded-opentype"), url("./assets/fonts/icomoon.ttf?7grlse") format("truetype"), url("./assets/fonts/icomoon.woff?7grlse") format("woff");\n  font-weight: normal;\n  font-style: normal; }\n\n[class^="ti-icon-"], [class*=" ti-icon-"] {\n  font-family: \'icomoon\' !important;\n  speak: none;\n  font-style: normal;\n  font-weight: normal;\n  font-variant: normal;\n  text-transform: none;\n  line-height: 1;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale; }\n\n.ti-icon-check:before {\n  content: "\\e902"; }\n\n.ti-icon-close:before {\n  content: "\\e901"; }\n\n.ti-icon-undo:before {\n  content: "\\e900"; }\n\nul {\n  margin: 0px;\n  padding: 0px;\n  list-style-type: none; }\n\n*, *:before, *:after {\n  box-sizing: border-box; }\n\ninput:focus {\n  outline: none; }\n\ninput[disabled] {\n  background-color: transparent; }\n\n.vue-tags-input {\n  max-width: 450px;\n  position: relative;\n  background-color: #fff; }\n\ndiv.vue-tags-input.disabled {\n  opacity: 0.5; }\n  div.vue-tags-input.disabled * {\n    cursor: default; }\n\n.ti-input {\n  border: 1px solid #ccc;\n  display: flex;\n  padding: 4px;\n  flex-wrap: wrap; }\n\n.ti-tags {\n  display: flex;\n  flex-wrap: wrap;\n  width: 100%;\n  line-height: 1em; }\n\n.ti-tag {\n  background-color: #5C6BC0;\n  color: #fff;\n  border-radius: 2px;\n  display: flex;\n  padding: 3px 5px;\n  margin: 2px;\n  font-size: .85em; }\n  .ti-tag:focus {\n    outline: none; }\n  .ti-tag .ti-content {\n    display: flex;\n    align-items: center; }\n  .ti-tag .ti-tag-center {\n    position: relative; }\n  .ti-tag span {\n    line-height: .85em; }\n  .ti-tag span.ti-hidden {\n    padding-left: 14px;\n    visibility: hidden;\n    height: 0px;\n    white-space: pre; }\n  .ti-tag .ti-actions {\n    margin-left: 2px;\n    display: flex;\n    align-items: center;\n    font-size: 1.15em; }\n    .ti-tag .ti-actions i {\n      cursor: pointer; }\n  .ti-tag:last-child {\n    margin-right: 4px; }\n  .ti-tag.ti-invalid, .ti-tag.ti-tag.ti-deletion-mark {\n    background-color: #e54d42; }\n\n.ti-new-tag-input-wrapper {\n  display: flex;\n  flex: 1 0 auto;\n  padding: 3px 5px;\n  margin: 2px;\n  font-size: .85em; }\n  .ti-new-tag-input-wrapper input {\n    flex: 1 0 auto;\n    min-width: 100px;\n    border: none;\n    padding: 0px;\n    margin: 0px; }\n\n.ti-new-tag-input {\n  line-height: initial; }\n\n.ti-autocomplete {\n  border: 1px solid #ccc;\n  border-top: none;\n  position: absolute;\n  width: 100%;\n  background-color: #fff;\n  z-index: 20; }\n\n.ti-item > div {\n  cursor: pointer;\n  padding: 3px 6px;\n  width: 100%; }\n\n.ti-selected-item {\n  background-color: #5C6BC0;\n  color: #fff; }\n'],sourceRoot:""}])},function(e,t,n){"use strict";e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t){e.exports="data:font/ttf;base64,AAEAAAALAIAAAwAwT1MvMg8SBawAAAC8AAAAYGNtYXAXVtKJAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZqWfozAAAAF4AAAA/GhlYWQPxZgIAAACdAAAADZoaGVhB4ADyAAAAqwAAAAkaG10eBIAAb4AAALQAAAAHGxvY2EAkgDiAAAC7AAAABBtYXhwAAkAHwAAAvwAAAAgbmFtZZlKCfsAAAMcAAABhnBvc3QAAwAAAAAEpAAAACAAAwOAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpAgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6QL//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAFYBAQO+AoEAHAAAATIXHgEXFhcHJicuAScmIyIGBxchERc2Nz4BNzYCFkpDQ28pKRdkECAfVTM0OT9wLZz+gJgdIiJLKSgCVRcYUjg5QiAzKys+ERIrJZoBgJoZFRQcCAgAAQDWAIEDKgLVAAsAAAEHFwcnByc3JzcXNwMq7u487u487u487u4Cme7uPO7uPO7uPO7uAAEAkgCBA4ACvQAFAAAlARcBJzcBgAHEPP4A7jz5AcQ8/gDuPAAAAAABAAAAAAAAH8nTUV8PPPUACwQAAAAAANZ1KhsAAAAA1nUqGwAAAAADvgLVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAO+AAEAAAAAAAAAAAAAAAAAAAAHBAAAAAAAAAAAAAAAAgAAAAQAAFYEAADWBAAAkgAAAAAACgAUAB4AUABqAH4AAQAAAAcAHQABAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="},function(e,t){e.exports="data:font/woff;base64,d09GRgABAAAAAAUQAAsAAAAABMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIFrGNtYXAAAAFoAAAAVAAAAFQXVtKJZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAAAPwAAAD8pZ+jMGhlYWQAAALAAAAANgAAADYPxZgIaGhlYQAAAvgAAAAkAAAAJAeAA8hobXR4AAADHAAAABwAAAAcEgABvmxvY2EAAAM4AAAAEAAAABAAkgDibWF4cAAAA0gAAAAgAAAAIAAJAB9uYW1lAAADaAAAAYYAAAGGmUoJ+3Bvc3QAAATwAAAAIAAAACAAAwAAAAMDgAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6QIDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOkC//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQBWAQEDvgKBABwAAAEyFx4BFxYXByYnLgEnJiMiBgcXIREXNjc+ATc2AhZKQ0NvKSkXZBAgH1UzNDk/cC2c/oCYHSIiSykoAlUXGFI4OUIgMysrPhESKyWaAYCaGRUUHAgIAAEA1gCBAyoC1QALAAABBxcHJwcnNyc3FzcDKu7uPO7uPO7uPO7uApnu7jzu7jzu7jzu7gABAJIAgQOAAr0ABQAAJQEXASc3AYABxDz+AO48+QHEPP4A7jwAAAAAAQAAAAAAAB/J01FfDzz1AAsEAAAAAADWdSobAAAAANZ1KhsAAAAAA74C1QAAAAgAAgAAAAAAAAABAAADwP/AAAAEAAAAAAADvgABAAAAAAAAAAAAAAAAAAAABwQAAAAAAAAAAAAAAAIAAAAEAABWBAAA1gQAAJIAAAAAAAoAFAAeAFAAagB+AAEAAAAHAB0AAQAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-tags-input",class:[{"ti-disabled":e.disabled},{"ti-focus":e.focused}]},[n("div",{staticClass:"ti-input"},[e.tagsCopy?n("ul",{staticClass:"ti-tags"},[e._l(e.tagsCopy,(function(t,i){return n("li",{key:i,staticClass:"ti-tag",class:[{"ti-editing":e.tagsEditStatus[i]},t.tiClasses,t.classes,{"ti-deletion-mark":e.isMarked(i)}],style:t.style,attrs:{tabindex:"0"},on:{click:function(n){return e.$emit("tag-clicked",{tag:t,index:i})}}},[n("div",{staticClass:"ti-content"},[e.$scopedSlots["tag-left"]?n("div",{staticClass:"ti-tag-left"},[e._t("tag-left",null,{tag:t,index:i,edit:e.tagsEditStatus[i],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(i)})],2):e._e(),e._v(" "),n("div",{ref:"tagCenter",refInFor:!0,staticClass:"ti-tag-center"},[e.$scopedSlots["tag-center"]?e._e():n("span",{class:{"ti-hidden":e.tagsEditStatus[i]},on:{click:function(t){return e.performEditTag(i)}}},[e._v(e._s(t.text))]),e._v(" "),e.$scopedSlots["tag-center"]?e._e():n("tag-input",{attrs:{scope:{edit:e.tagsEditStatus[i],maxlength:e.maxlength,tag:t,index:i,validateTag:e.createChangedTag,performCancelEdit:e.cancelEdit,performSaveEdit:e.performSaveTag}}}),e._v(" "),e._t("tag-center",null,{tag:t,index:i,maxlength:e.maxlength,edit:e.tagsEditStatus[i],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,validateTag:e.createChangedTag,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(i)})],2),e._v(" "),e.$scopedSlots["tag-right"]?n("div",{staticClass:"ti-tag-right"},[e._t("tag-right",null,{tag:t,index:i,edit:e.tagsEditStatus[i],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(i)})],2):e._e()]),e._v(" "),n("div",{staticClass:"ti-actions"},[e.$scopedSlots["tag-actions"]?e._e():n("i",{directives:[{name:"show",rawName:"v-show",value:e.tagsEditStatus[i],expression:"tagsEditStatus[index]"}],staticClass:"ti-icon-undo",on:{click:function(t){return e.cancelEdit(i)}}}),e._v(" "),e.$scopedSlots["tag-actions"]?e._e():n("i",{directives:[{name:"show",rawName:"v-show",value:!e.tagsEditStatus[i],expression:"!tagsEditStatus[index]"}],staticClass:"ti-icon-close",on:{click:function(t){return e.performDeleteTag(i)}}}),e._v(" "),e.$scopedSlots["tag-actions"]?e._t("tag-actions",null,{tag:t,index:i,edit:e.tagsEditStatus[i],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(i)}):e._e()],2)])})),e._v(" "),n("li",{staticClass:"ti-new-tag-input-wrapper"},[n("input",e._b({ref:"newTagInput",staticClass:"ti-new-tag-input",class:[e.createClasses(e.newTag,e.tags,e.validation,e.isDuplicate)],attrs:{placeholder:e.placeholder,maxlength:e.maxlength,disabled:e.disabled,type:"text",size:"1"},domProps:{value:e.newTag},on:{keydown:[function(t){return e.performAddTags(e.filteredAutocompleteItems[e.selectedItem]||e.newTag,t)},function(t){return t.type.indexOf("key")||8===t.keyCode?e.invokeDelete(t):null},function(t){return t.type.indexOf("key")||9===t.keyCode?e.performBlur(t):null},function(t){return t.type.indexOf("key")||38===t.keyCode?e.selectItem(t,"before"):null},function(t){return t.type.indexOf("key")||40===t.keyCode?e.selectItem(t,"after"):null}],paste:e.addTagsFromPaste,input:e.updateNewTag,blur:function(t){return e.$emit("blur",t)},focus:function(t){e.focused=!0,e.$emit("focus",t)},click:function(t){!e.addOnlyFromAutocomplete&&(e.selectedItem=null)}}},"input",e.$attrs,!1))])],2):e._e()]),e._v(" "),e._t("between-elements"),e._v(" "),e.autocompleteOpen?n("div",{staticClass:"ti-autocomplete",on:{mouseout:function(t){e.selectedItem=null}}},[e._t("autocomplete-header"),e._v(" "),n("ul",e._l(e.filteredAutocompleteItems,(function(t,i){return n("li",{key:i,staticClass:"ti-item",class:[t.tiClasses,t.classes,{"ti-selected-item":e.isSelected(i)}],style:t.style,on:{mouseover:function(t){!e.disabled&&(e.selectedItem=i)}}},[e.$scopedSlots["autocomplete-item"]?e._t("autocomplete-item",null,{item:t,index:i,performAdd:function(t){return e.performAddTags(t,void 0,"autocomplete")},selected:e.isSelected(i)}):n("div",{on:{click:function(n){return e.performAddTags(t,void 0,"autocomplete")}}},[e._v("\n          "+e._s(t.text)+"\n        ")])],2)})),0),e._v(" "),e._t("autocomplete-footer")],2):e._e()],2)};i._withStripped=!0;var r=n(5),a=n.n(r),o=function(e){return JSON.parse(JSON.stringify(e))},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0;void 0===e.text&&(e={text:e});var r=function(e,t){return t.filter((function(t){var n=e.text;return"string"==typeof t.rule?!new RegExp(t.rule).test(n):t.rule instanceof RegExp?!t.rule.test(n):"[object Function]"==={}.toString.call(t.rule)?t.rule(e):void 0})).map((function(e){return e.classes}))}(e,n),a=function(e,t){for(var n=0;n<e.length;){if(t(e[n],n,e))return n;n++}return-1}(t,(function(t){return t===e})),s=o(t),l=-1!==a?s.splice(a,1)[0]:o(e);return(i?i(s,l):-1!==s.map((function(e){return e.text})).indexOf(l.text))&&r.push("ti-duplicate"),0===r.length?r.push("ti-valid"):r.push("ti-invalid"),r},l=function(e){void 0===e.text&&(e={text:e});for(var t=o(e),n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t.tiClasses=s.apply(void 0,[e].concat(i)),t},c=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.map((function(t){return l.apply(void 0,[t,e].concat(n))}))},u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.scope.edit?n("input",{directives:[{name:"model",rawName:"v-model",value:e.scope.tag.text,expression:"scope.tag.text"}],staticClass:"ti-tag-input",attrs:{maxlength:e.scope.maxlength,type:"text",size:"1"},domProps:{value:e.scope.tag.text},on:{input:[function(t){t.target.composing||e.$set(e.scope.tag,"text",t.target.value)},function(t){return e.scope.validateTag(e.scope.index,t)}],blur:function(t){return e.scope.performCancelEdit(e.scope.index)},keydown:function(t){return e.scope.performSaveEdit(e.scope.index,t)}}}):e._e()};u._withStripped=!0;var d={name:"TagInput",props:{scope:{type:Object}}};function h(e,t,n,i,r,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n(7);var f=h(d,u,[],!1,null,"108f4f13",null);f.options.__file="vue-tags-input/tag-input.vue";var p=f.exports,m=function(e){return!e.some((function(e){var t=!e.text;t&&console.warn('Missing property "text"',e);var n=!1;return e.classes&&(n="string"!=typeof e.classes),n&&console.warn('Property "classes" must be type of string',e),t||n}))},g=function(e){return!e.some((function(e){if("number"==typeof e){var t=isFinite(e)&&Math.floor(e)===e;return t||console.warn("Only numerics are allowed for this prop. Found:",e),!t}if("string"==typeof e){var n=/\W|[a-z]|!\d/i.test(e);return n||console.warn("Only alpha strings are allowed for this prop. Found:",e),!n}return console.warn("Only numeric and string values are allowed. Found:",e),!1}))},_={value:{type:String,default:"",required:!0},tags:{type:Array,default:function(){return[]},validator:m},autocompleteItems:{type:Array,default:function(){return[]},validator:m},allowEditTags:{type:Boolean,default:!1},autocompleteFilterDuplicates:{default:!0,type:Boolean},addOnlyFromAutocomplete:{type:Boolean,default:!1},autocompleteMinLength:{type:Number,default:1},autocompleteAlwaysOpen:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Add Tag"},addOnKey:{type:Array,default:function(){return[13]},validator:g},saveOnKey:{type:Array,default:function(){return[13]},validator:g},maxTags:{type:Number},maxlength:{type:Number},validation:{type:Array,default:function(){return[]},validator:function(e){return!e.some((function(e){var t=!e.rule;t&&console.warn('Property "rule" is missing',e);var n=e.rule&&("string"==typeof e.rule||e.rule instanceof RegExp||"[object Function]"==={}.toString.call(e.rule));n||console.warn("A rule must be type of string, RegExp or function. Found:",JSON.stringify(e.rule));var i=!e.classes;i&&console.warn('Property "classes" is missing',e);var r=e.type&&"string"!=typeof e.type;return r&&console.warn('Property "type" must be type of string. Found:',e),!n||t||i||r}))}},separators:{type:Array,default:function(){return[";"]},validator:function(e){return!e.some((function(e){var t="string"!=typeof e;return t&&console.warn("Separators must be type of string. Found:",e),t}))}},avoidAddingDuplicates:{type:Boolean,default:!0},addOnBlur:{type:Boolean,default:!0},isDuplicate:{type:Function,default:null},addFromPaste:{type:Boolean,default:!0},deleteOnBackspace:{default:!0,type:Boolean}};function v(e){return(v="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})(e)}var y={name:"VueTagsInput",components:{TagInput:p},props:_,data:function(){return{newTag:null,tagsCopy:null,tagsEditStatus:null,deletionMark:null,deletionMarkTime:null,selectedItem:null,focused:null}},computed:{autocompleteOpen:function(){return!!this.autocompleteAlwaysOpen||null!==this.newTag&&this.newTag.length>=this.autocompleteMinLength&&this.filteredAutocompleteItems.length>0&&this.focused},filteredAutocompleteItems:function(){var e=this,t=this.autocompleteItems.map((function(t){return l(t,e.tags,e.validation,e.isDuplicate)}));return this.autocompleteFilterDuplicates?t.filter(this.duplicateFilter):t}},methods:{createClasses:s,getSelectedIndex:function(e){var t=this.filteredAutocompleteItems,n=this.selectedItem,i=t.length-1;if(0!==t.length)return null===n?0:"before"===e&&0===n?i:"after"===e&&n===i?0:"after"===e?n+1:n-1},selectDefaultItem:function(){this.addOnlyFromAutocomplete&&this.filteredAutocompleteItems.length>0?this.selectedItem=0:this.selectedItem=null},selectItem:function(e,t){e.preventDefault(),this.selectedItem=this.getSelectedIndex(t)},isSelected:function(e){return this.selectedItem===e},isMarked:function(e){return this.deletionMark===e},invokeDelete:function(){var e=this;if(this.deleteOnBackspace&&!(this.newTag.length>0)){var t=this.tagsCopy.length-1;null===this.deletionMark?(this.deletionMarkTime=setTimeout((function(){return e.deletionMark=null}),1e3),this.deletionMark=t):this.performDeleteTag(t)}},addTagsFromPaste:function(){var e=this;this.addFromPaste&&setTimeout((function(){return e.performAddTags(e.newTag)}),10)},performEditTag:function(e){var t=this;this.allowEditTags&&(this._events["before-editing-tag"]||this.editTag(e),this.$emit("before-editing-tag",{index:e,tag:this.tagsCopy[e],editTag:function(){return t.editTag(e)}}))},editTag:function(e){this.allowEditTags&&(this.toggleEditMode(e),this.focus(e))},toggleEditMode:function(e){this.allowEditTags&&!this.disabled&&this.$set(this.tagsEditStatus,e,!this.tagsEditStatus[e])},createChangedTag:function(e,t){var n=this.tagsCopy[e];n.text=t?t.target.value:this.tagsCopy[e].text,this.$set(this.tagsCopy,e,l(n,this.tagsCopy,this.validation,this.isDuplicate))},focus:function(e){var t=this;this.$nextTick((function(){var n=t.$refs.tagCenter[e].querySelector("input.ti-tag-input");n&&n.focus()}))},quote:function(e){return e.replace(/([()[{*+.$^\\|?])/g,"\\$1")},cancelEdit:function(e){this.tags[e]&&(this.tagsCopy[e]=o(l(this.tags[e],this.tags,this.validation,this.isDuplicate)),this.$set(this.tagsEditStatus,e,!1))},hasForbiddingAddRule:function(e){var t=this;return e.some((function(e){var n=t.validation.find((function(t){return e===t.classes}));return!!n&&n.disableAdd}))},createTagTexts:function(e){var t=this,n=new RegExp(this.separators.map((function(e){return t.quote(e)})).join("|"));return e.split(n).map((function(e){return{text:e}}))},performDeleteTag:function(e){var t=this;this._events["before-deleting-tag"]||this.deleteTag(e),this.$emit("before-deleting-tag",{index:e,tag:this.tagsCopy[e],deleteTag:function(){return t.deleteTag(e)}})},deleteTag:function(e){this.disabled||(this.deletionMark=null,clearTimeout(this.deletionMarkTime),this.tagsCopy.splice(e,1),this._events["update:tags"]&&this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},noTriggerKey:function(e,t){var n=-1!==this[t].indexOf(e.keyCode)||-1!==this[t].indexOf(e.key);return n&&e.preventDefault(),!n},performAddTags:function(e,t,n){var i=this;if(!(this.disabled||t&&this.noTriggerKey(t,"addOnKey"))){var r=[];"object"===v(e)&&(r=[e]),"string"==typeof e&&(r=this.createTagTexts(e)),(r=r.filter((function(e){return e.text.trim().length>0}))).forEach((function(e){e=l(e,i.tags,i.validation,i.isDuplicate),i._events["before-adding-tag"]||i.addTag(e,n),i.$emit("before-adding-tag",{tag:e,addTag:function(){return i.addTag(e,n)}})}))}},duplicateFilter:function(e){return this.isDuplicate?!this.isDuplicate(this.tagsCopy,e):!this.tagsCopy.find((function(t){return t.text===e.text}))},addTag:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"new-tag-input",i=this.filteredAutocompleteItems.map((function(e){return e.text}));this.addOnlyFromAutocomplete&&-1===i.indexOf(e.text)||this.$nextTick((function(){return t.maxTags&&t.maxTags<=t.tagsCopy.length?t.$emit("max-tags-reached",e):t.avoidAddingDuplicates&&!t.duplicateFilter(e)?t.$emit("adding-duplicate",e):void(t.hasForbiddingAddRule(e.tiClasses)||(t.$emit("input",""),t.tagsCopy.push(e),t._events["update:tags"]&&t.$emit("update:tags",t.tagsCopy),"autocomplete"===n&&t.$refs.newTagInput.focus(),t.$emit("tags-changed",t.tagsCopy)))}))},performSaveTag:function(e,t){var n=this,i=this.tagsCopy[e];this.disabled||t&&this.noTriggerKey(t,"addOnKey")||0!==i.text.trim().length&&(this._events["before-saving-tag"]||this.saveTag(e,i),this.$emit("before-saving-tag",{index:e,tag:i,saveTag:function(){return n.saveTag(e,i)}}))},saveTag:function(e,t){if(this.avoidAddingDuplicates){var n=o(this.tagsCopy),i=n.splice(e,1)[0];if(this.isDuplicate?this.isDuplicate(n,i):-1!==n.map((function(e){return e.text})).indexOf(i.text))return this.$emit("saving-duplicate",t)}this.hasForbiddingAddRule(t.tiClasses)||(this.$set(this.tagsCopy,e,t),this.toggleEditMode(e),this._events["update:tags"]&&this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},tagsEqual:function(){var e=this;return!this.tagsCopy.some((function(t,n){return!a()(t,e.tags[n])}))},updateNewTag:function(e){var t=e.target.value;this.newTag=t,this.$emit("input",t)},initTags:function(){this.tagsCopy=c(this.tags,this.validation,this.isDuplicate),this.tagsEditStatus=o(this.tags).map((function(){return!1})),this._events["update:tags"]&&!this.tagsEqual()&&this.$emit("update:tags",this.tagsCopy)},blurredOnClick:function(e){this.$el.contains(e.target)||this.$el.contains(document.activeElement)||this.performBlur(e)},performBlur:function(){this.addOnBlur&&this.focused&&this.performAddTags(this.newTag),this.focused=!1}},watch:{value:function(e){this.addOnlyFromAutocomplete||(this.selectedItem=null),this.newTag=e},tags:{handler:function(){this.initTags()},deep:!0},autocompleteOpen:"selectDefaultItem"},created:function(){this.newTag=this.value,this.initTags()},mounted:function(){this.selectDefaultItem(),document.addEventListener("click",this.blurredOnClick)},destroyed:function(){document.removeEventListener("click",this.blurredOnClick)}},b=(n(9),h(y,i,[],!1,null,"61d92e31",null));b.options.__file="vue-tags-input/vue-tags-input.vue";var w=b.exports;n.d(t,"VueTagsInput",(function(){return w})),n.d(t,"createClasses",(function(){return s})),n.d(t,"createTag",(function(){return l})),n.d(t,"createTags",(function(){return c})),n.d(t,"TagInput",(function(){return p})),w.install=function(e){return e.component(w.name,w)},"undefined"!=typeof window&&window.Vue&&window.Vue.use(w),t.default=w}])},5927:(e,t,n)=>{"use strict";var i;function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e){return o="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},o(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw r}}return a}}(e,t)||_(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var y=function(){function e(){s(this,e)}return c(e,[{key:"shadeRGBColor",value:function(e,t){var n=t.split(","),i=e<0?0:255,r=e<0?-1*e:e,a=parseInt(n[0].slice(4),10),o=parseInt(n[1],10),s=parseInt(n[2],10);return"rgb("+(Math.round((i-a)*r)+a)+","+(Math.round((i-o)*r)+o)+","+(Math.round((i-s)*r)+s)+")"}},{key:"shadeHexColor",value:function(e,t){var n=parseInt(t.slice(1),16),i=e<0?0:255,r=e<0?-1*e:e,a=n>>16,o=n>>8&255,s=255&n;return"#"+(16777216+65536*(Math.round((i-a)*r)+a)+256*(Math.round((i-o)*r)+o)+(Math.round((i-s)*r)+s)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,n){return e.isColorHex(n)?this.shadeHexColor(t,n):this.shadeRGBColor(t,n)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&"object"===o(e)&&!Array.isArray(e)&&null!=e}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"listToArray",value:function(e){var t,n=[];for(t=0;t<e.length;t++)n[t]=e[t];return n}},{key:"extend",value:function(e,t){var n=this;"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t});var i=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach((function(r){n.isObject(t[r])&&r in e?i[r]=n.extend(e[r],t[r]):Object.assign(i,u({},r,t[r]))})),i}},{key:"extendArray",value:function(t,n){var i=[];return t.map((function(t){i.push(e.extend(n,t))})),i}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(t){if(e.is("Array",t)){for(var n=[],i=0;i<t.length;i++)n[i]=this.clone(t[i]);return n}if(e.is("Null",t))return null;if(e.is("Date",t))return t;if("object"===o(t)){var r={};for(var a in t)t.hasOwnProperty(a)&&(r[a]=this.clone(t[a]));return r}return t}},{key:"log10",value:function(e){return Math.log(e)/Math.LN10}},{key:"roundToBase10",value:function(e){return Math.pow(10,Math.floor(Math.log10(e)))}},{key:"roundToBase",value:function(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}},{key:"parseNumber",value:function(e){return null===e?e:parseFloat(e)}},{key:"stripNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(e)?e:parseFloat(e.toPrecision(t))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){var t=String(e).split(/[eE]/);if(1===t.length)return t[0];var n="",i=e<0?"-":"",r=t[0].replace(".",""),a=Number(t[1])+1;if(a<0){for(n=i+"0.";a++;)n+="0";return n+r.replace(/^-/,"")}for(a-=r.length;a--;)n+="0";return r+n}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),n=e.clientHeight,i=e.clientWidth;return n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[i-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),n]}},{key:"getBoundingClientRect",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}},{key:"getLargestStringFromArr",value:function(e){return e.reduce((function(e,t){return Array.isArray(t)&&(t=t.reduce((function(e,t){return e.length>t.length?e:t}))),e.length>t.length?e:t}),0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==e.substring(0,1)&&(e="#999999");var n=e.replace("#","");n=n.match(new RegExp("(.{"+n.length/3+"})","g"));for(var i=0;i<n.length;i++)n[i]=parseInt(1===n[i].length?n[i]+n[i]:n[i],16);return void 0!==t&&n.push(t),"rgba("+n.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"getPolygonPos",value:function(e,t){for(var n=[],i=2*Math.PI/t,r=0;r<t;r++){var a={};a.x=e*Math.sin(r*i),a.y=-e*Math.cos(r*i),n.push(a)}return n}},{key:"polarToCartesian",value:function(e,t,n,i){var r=(i-90)*Math.PI/180;return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",n=e.toString().slice();return n.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,n){if(n>=e.length)for(var i=n-e.length+1;i--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e.style.key=t[n])}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var i=e.indexOf("Edge/");return i>0&&parseInt(e.substring(i+5,e.indexOf(".",i)),10)}}]),e}(),b=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.setEasingFunctions()}return c(e,[{key:"setEasingFunctions",value:function(){var e;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":e="-";break;case"easein":e="<";break;case"easeout":e=">";break;case"easeinout":default:e="<>";break;case"swing":e=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1};break;case"bounce":e=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375};break;case"elastic":e=function(e){return e===!!e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=e}}},{key:"animateLine",value:function(e,t,n,i){e.attr(t).animate(i).attr(n)}},{key:"animateMarker",value:function(e,t,n,i,r,a){t||(t=0),e.attr({r:t,width:t,height:t}).animate(i,r).attr({r:n,width:n.width,height:n.height}).afterAll((function(){a()}))}},{key:"animateCircle",value:function(e,t,n,i,r){e.attr({r:t.r,cx:t.cx,cy:t.cy}).animate(i,r).attr({r:n.r,cx:n.cx,cy:n.cy})}},{key:"animateRect",value:function(e,t,n,i,r){e.attr(t).animate(i).attr(n).afterAll((function(){return r()}))}},{key:"animatePathsGradually",value:function(e){var t=e.el,n=e.realIndex,i=e.j,r=e.fill,a=e.pathFrom,o=e.pathTo,s=e.speed,l=e.delay,c=this.w,u=0;c.config.chart.animations.animateGradually.enabled&&(u=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(u=0),this.morphSVG(t,n,i,"line"!==c.config.chart.type||c.globals.comboCharts?r:"stroke",a,o,s,l*u)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(e){var t=e.el;t.classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")}))}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof t.config.chart.events.animationEnd&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,n,i,r,a,o,s){var l=this,c=this.w;r||(r=e.attr("pathFrom")),a||(a=e.attr("pathTo"));var u=function(e){return"radar"===c.config.chart.type&&(o=1),"M 0 ".concat(c.globals.gridHeight)};(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=u()),(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=u()),c.globals.shouldAnimate||(o=1),e.plot(r).animate(1,c.globals.easing,s).plot(r).animate(o,c.globals.easing,s).plot(a).afterAll((function(){y.isNumber(n)?n===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(e):"none"!==i&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&t===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(e),l.showDelayedElements()}))}}]),e}(),w=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"getDefaultFilter",value:function(e,t){var n=this.w;e.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==n.config.states.normal.filter?this.applyFilter(e,t,n.config.states.normal.filter.type,n.config.states.normal.filter.value):n.config.chart.dropShadow.enabled&&this.dropShadow(e,n.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var n=this.w;n.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,n.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,n){var i=this,r=this.w,a=n.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var n=r.config.chart.dropShadow;(n.enabled?i.addShadow(e,t,n):e).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:a}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"addDarkenFilter",value:function(e,t,n){var i=this,r=this.w,a=n.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var n=r.config.chart.dropShadow;(n.enabled?i.addShadow(e,t,n):e).componentTransfer({rgb:{type:"linear",slope:a}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(n){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:i});break;case"darken":this.addDarkenFilter(e,t,{intensity:i})}}},{key:"addShadow",value:function(e,t,n){var i=n.blur,r=n.top,a=n.left,o=n.color,s=n.opacity,l=e.flood(Array.isArray(o)?o[t]:o,s).composite(e.sourceAlpha,"in").offset(a,r).gaussianBlur(i).merge(e.source);return e.blend(e.source,l)}},{key:"dropShadow",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=t.top,r=t.left,a=t.blur,o=t.color,s=t.opacity,l=t.noUserSpaceOnUse,c=this.w;return e.unfilter(!0),y.isIE()&&"radialBar"===c.config.chart.type||(o=Array.isArray(o)?o[n]:o,e.filter((function(e){var t;t=y.isSafari()||y.isFirefox()||y.isIE()?e.flood(o,s).composite(e.sourceAlpha,"in").offset(r,i).gaussianBlur(a):e.flood(o,s).composite(e.sourceAlpha,"in").offset(r,i).gaussianBlur(a).merge(e.source),e.blend(e.source,t)})),l||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,n){var i=this.w;if(void 0!==i.globals.selectedDataPoints[t]&&i.globals.selectedDataPoints[t].indexOf(n)>-1){e.node.setAttribute("selected",!0);var r=i.config.states.active.filter;"none"!==r&&this.applyFilter(e,t,r.type,r.value)}}},{key:"_scaleFilterSize",value:function(e){!function(t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),e}(),x=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"roundPathCorners",value:function(e,t){function n(e,t,n){var r=t.x-e.x,a=t.y-e.y,o=Math.sqrt(r*r+a*a);return i(e,t,Math.min(1,n/o))}function i(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function r(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function a(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}e.indexOf("NaN")>-1&&(e="");var o=e.split(/[,\s]/).reduce((function(e,t){var n=t.match("([a-zA-Z])(.+)");return n?(e.push(n[1]),e.push(n[2])):e.push(t),e}),[]).reduce((function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e}),[]),s=[];if(o.length>1){var l=a(o[0]),c=null;"Z"==o[o.length-1][0]&&o[0].length>2&&(c=["L",l.x,l.y],o[o.length-1]=c),s.push(o[0]);for(var u=1;u<o.length;u++){var d=s[s.length-1],h=o[u],f=h==c?o[1]:o[u+1];if(f&&d&&d.length>2&&"L"==h[0]&&f.length>2&&"L"==f[0]){var p,m,g=a(d),_=a(h),v=a(f);p=n(_,g,t),m=n(_,v,t),r(h,p),h.origPoint=_,s.push(h);var y=i(p,_,.5),b=i(_,m,.5),w=["C",y.x,y.y,b.x,b.y,m.x,m.y];w.origPoint=_,s.push(w)}else s.push(h)}if(c){var x=a(s[s.length-1]);s.push(["Z"]),r(s[0],x)}}else s=o;return s.reduce((function(e,t){return e+t.join(" ")+" "}),"")}},{key:"drawLine",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:e,y1:t,x2:n,y2:i,stroke:r,"stroke-dasharray":a,"stroke-width":o,"stroke-linecap":s})}},{key:"drawRect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,u=this.w.globals.dom.Paper.rect();return u.attr({x:e,y:t,width:n>0?n:0,height:i>0?i:0,rx:r,ry:r,opacity:o,"stroke-width":null!==s?s:0,stroke:null!==l?l:"none","stroke-dasharray":c}),u.node.setAttribute("fill",a),u}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(e).attr({fill:i,stroke:t,"stroke-width":n})}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e<0&&(e=0);var n=this.w.globals.dom.Paper.circle(2*e);return null!==t&&n.attr(t),n}},{key:"drawPath",value:function(e){var t=e.d,n=void 0===t?"":t,i=e.stroke,r=void 0===i?"#a8a8a8":i,a=e.strokeWidth,o=void 0===a?1:a,s=e.fill,l=e.fillOpacity,c=void 0===l?1:l,u=e.strokeOpacity,d=void 0===u?1:u,h=e.classes,f=e.strokeLinecap,p=void 0===f?null:f,m=e.strokeDashArray,g=void 0===m?0:m,_=this.w;return null===p&&(p=_.config.stroke.lineCap),(n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n="M 0 ".concat(_.globals.gridHeight)),_.globals.dom.Paper.path(n).attr({fill:s,"fill-opacity":c,stroke:r,"stroke-opacity":d,"stroke-linecap":p,"stroke-width":o,"stroke-dasharray":g,class:h})}},{key:"group",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w.globals.dom.Paper.group();return null!==e&&t.attr(e),t}},{key:"move",value:function(e,t){return["M",e,t].join(" ")}},{key:"line",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=null;return null===n?i=[" L",e,t].join(" "):"H"===n?i=[" H",e].join(" "):"V"===n&&(i=[" V",t].join(" ")),i}},{key:"curve",value:function(e,t,n,i,r,a){return["C",e,t,n,i,r,a].join(" ")}},{key:"quadraticCurve",value:function(e,t,n,i){return["Q",e,t,n,i].join(" ")}},{key:"arc",value:function(e,t,n,i,r,a,o){var s="A";return arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(s="a"),[s,e,t,n,i,r,a,o].join(" ")}},{key:"renderPaths",value:function(e){var t,n=e.j,i=e.realIndex,r=e.pathFrom,o=e.pathTo,s=e.stroke,l=e.strokeWidth,c=e.strokeLinecap,u=e.fill,d=e.animationDelay,h=e.initialSpeed,f=e.dataChangeSpeed,p=e.className,m=e.shouldClipToGrid,g=void 0===m||m,_=e.bindEventsOnPaths,v=void 0===_||_,y=e.drawShadow,x=void 0===y||y,k=this.w,A=new w(this.ctx),S=new b(this.ctx),M=this.w.config.chart.animations.enabled,T=M&&this.w.config.chart.animations.dynamicAnimation.enabled,L=!!(M&&!k.globals.resized||T&&k.globals.dataChanged&&k.globals.shouldAnimate);L?t=r:(t=o,k.globals.animationEnded=!0);var E,C=k.config.stroke.dashArray;E=Array.isArray(C)?C[i]:k.config.stroke.dashArray;var D=this.drawPath({d:t,stroke:s,strokeWidth:l,fill:u,fillOpacity:1,classes:p,strokeLinecap:c,strokeDashArray:E});if(D.attr("index",i),g&&D.attr({"clip-path":"url(#gridRectMask".concat(k.globals.cuid,")")}),"none"!==k.config.states.normal.filter.type)A.getDefaultFilter(D,i);else if(k.config.chart.dropShadow.enabled&&x&&(!k.config.chart.dropShadow.enabledOnSeries||k.config.chart.dropShadow.enabledOnSeries&&-1!==k.config.chart.dropShadow.enabledOnSeries.indexOf(i))){var O=k.config.chart.dropShadow;A.dropShadow(D,O,i)}v&&(D.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,D)),D.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,D)),D.node.addEventListener("mousedown",this.pathMouseDown.bind(this,D))),D.attr({pathTo:o,pathFrom:r});var Y={el:D,j:n,realIndex:i,pathFrom:r,pathTo:o,fill:u,strokeWidth:l,delay:d};return!M||k.globals.resized||k.globals.dataChanged?!k.globals.resized&&k.globals.dataChanged||S.showDelayedElements():S.animatePathsGradually(a(a({},Y),{},{speed:h})),k.globals.dataChanged&&T&&L&&S.animatePathsGradually(a(a({},Y),{},{speed:f})),D}},{key:"drawPattern",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(t,n,(function(a){"horizontalLines"===e?a.line(0,0,n,0).stroke({color:i,width:r+1}):"verticalLines"===e?a.line(0,0,0,t).stroke({color:i,width:r+1}):"slantedLines"===e?a.line(0,0,t,n).stroke({color:i,width:r}):"squares"===e?a.rect(t,n).fill("none").stroke({color:i,width:r}):"circles"===e&&a.circle(t).fill("none").stroke({color:i,width:r})}))}},{key:"drawGradient",value:function(e,t,n,i,r){var a,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=this.w;t.length<9&&0===t.indexOf("#")&&(t=y.hexToRgba(t,i)),n.length<9&&0===n.indexOf("#")&&(n=y.hexToRgba(n,r));var d=0,h=1,f=1,p=null;null!==s&&(d=void 0!==s[0]?s[0]/100:0,h=void 0!==s[1]?s[1]/100:1,f=void 0!==s[2]?s[2]/100:1,p=void 0!==s[3]?s[3]/100:null);var m=!("donut"!==u.config.chart.type&&"pie"!==u.config.chart.type&&"polarArea"!==u.config.chart.type&&"bubble"!==u.config.chart.type);if(a=null===l||0===l.length?u.globals.dom.Paper.gradient(m?"radial":"linear",(function(e){e.at(d,t,i),e.at(h,n,r),e.at(f,n,r),null!==p&&e.at(p,t,i)})):u.globals.dom.Paper.gradient(m?"radial":"linear",(function(e){(Array.isArray(l[c])?l[c]:l).forEach((function(t){e.at(t.offset/100,t.color,t.opacity)}))})),m){var g=u.globals.gridWidth/2,_=u.globals.gridHeight/2;"bubble"!==u.config.chart.type?a.attr({gradientUnits:"userSpaceOnUse",cx:g,cy:_,r:o}):a.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===e?a.from(0,0).to(0,1):"diagonal"===e?a.from(0,0).to(1,1):"horizontal"===e?a.from(0,1).to(1,1):"diagonal2"===e&&a.from(1,0).to(0,1);return a}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,n=e.maxWidth,i=e.fontSize,r=e.fontFamily,a=this.getTextRects(t,i,r),o=a.width/t.length,s=Math.floor(n/o);return n<a.width?t.slice(0,s-3)+"...":t}},{key:"drawText",value:function(e){var t=this,n=e.x,i=e.y,r=e.text,o=e.textAnchor,s=e.fontSize,l=e.fontFamily,c=e.fontWeight,u=e.foreColor,d=e.opacity,h=e.maxWidth,f=e.cssClass,p=void 0===f?"":f,m=e.isPlainText,g=void 0===m||m,_=this.w;void 0===r&&(r="");var v=r;o||(o="start"),u&&u.length||(u=_.config.chart.foreColor),l=l||_.config.chart.fontFamily,c=c||"regular";var y,b={maxWidth:h,fontSize:s=s||"11px",fontFamily:l};return Array.isArray(r)?y=_.globals.dom.Paper.text((function(e){for(var n=0;n<r.length;n++)v=r[n],h&&(v=t.getTextBasedOnMaxWidth(a({text:r[n]},b))),0===n?e.tspan(v):e.tspan(v).newLine()})):(h&&(v=this.getTextBasedOnMaxWidth(a({text:r},b))),y=g?_.globals.dom.Paper.plain(r):_.globals.dom.Paper.text((function(e){return e.tspan(v)}))),y.attr({x:n,y:i,"text-anchor":o,"dominant-baseline":"auto","font-size":s,"font-family":l,"font-weight":c,fill:u,class:"apexcharts-text "+p}),y.node.style.fontFamily=l,y.node.style.opacity=d,y}},{key:"drawMarker",value:function(e,t,n){e=e||0;var i=n.pSize||0,r=null;if("square"===n.shape||"rect"===n.shape){var a=void 0===n.pRadius?i/2:n.pRadius;null!==t&&i||(i=0,a=0);var o=1.2*i+a,s=this.drawRect(o,o,o,o,a);s.attr({x:e-o/2,y:t-o/2,cx:e,cy:t,class:n.class?n.class:"",fill:n.pointFillColor,"fill-opacity":n.pointFillOpacity?n.pointFillOpacity:1,stroke:n.pointStrokeColor,"stroke-width":n.pointStrokeWidth?n.pointStrokeWidth:0,"stroke-opacity":n.pointStrokeOpacity?n.pointStrokeOpacity:1}),r=s}else"circle"!==n.shape&&n.shape||(y.isNumber(t)||(i=0,t=0),r=this.drawCircle(i,{cx:e,cy:t,class:n.class?n.class:"",stroke:n.pointStrokeColor,fill:n.pointFillColor,"fill-opacity":n.pointFillOpacity?n.pointFillOpacity:1,"stroke-width":n.pointStrokeWidth?n.pointStrokeWidth:0,"stroke-opacity":n.pointStrokeOpacity?n.pointStrokeOpacity:1}));return r}},{key:"pathMouseEnter",value:function(e,t){var n=this.w,i=new w(this.ctx),r=parseInt(e.node.getAttribute("index"),10),a=parseInt(e.node.getAttribute("j"),10);if("function"==typeof n.config.chart.events.dataPointMouseEnter&&n.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:r,dataPointIndex:a,w:n}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:r,dataPointIndex:a,w:n}]),("none"===n.config.states.active.filter.type||"true"!==e.node.getAttribute("selected"))&&"none"!==n.config.states.hover.filter.type&&!n.globals.isTouchDevice){var o=n.config.states.hover.filter;i.applyFilter(e,r,o.type,o.value)}}},{key:"pathMouseLeave",value:function(e,t){var n=this.w,i=new w(this.ctx),r=parseInt(e.node.getAttribute("index"),10),a=parseInt(e.node.getAttribute("j"),10);"function"==typeof n.config.chart.events.dataPointMouseLeave&&n.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:r,dataPointIndex:a,w:n}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:r,dataPointIndex:a,w:n}]),"none"!==n.config.states.active.filter.type&&"true"===e.node.getAttribute("selected")||"none"!==n.config.states.hover.filter.type&&i.getDefaultFilter(e,r)}},{key:"pathMouseDown",value:function(e,t){var n=this.w,i=new w(this.ctx),r=parseInt(e.node.getAttribute("index"),10),a=parseInt(e.node.getAttribute("j"),10),o="false";if("true"===e.node.getAttribute("selected")){if(e.node.setAttribute("selected","false"),n.globals.selectedDataPoints[r].indexOf(a)>-1){var s=n.globals.selectedDataPoints[r].indexOf(a);n.globals.selectedDataPoints[r].splice(s,1)}}else{if(!n.config.states.active.allowMultipleDataPointsSelection&&n.globals.selectedDataPoints.length>0){n.globals.selectedDataPoints=[];var l=n.globals.dom.Paper.select(".apexcharts-series path").members,c=n.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,u=function(e){Array.prototype.forEach.call(e,(function(e){e.node.setAttribute("selected","false"),i.getDefaultFilter(e,r)}))};u(l),u(c)}e.node.setAttribute("selected","true"),o="true",void 0===n.globals.selectedDataPoints[r]&&(n.globals.selectedDataPoints[r]=[]),n.globals.selectedDataPoints[r].push(a)}if("true"===o){var d=n.config.states.active.filter;if("none"!==d)i.applyFilter(e,r,d.type,d.value);else if("none"!==n.config.states.hover.filter&&!n.globals.isTouchDevice){var h=n.config.states.hover.filter;i.applyFilter(e,r,h.type,h.value)}}else"none"!==n.config.states.active.filter.type&&("none"===n.config.states.hover.filter.type||n.globals.isTouchDevice?i.getDefaultFilter(e,r):(h=n.config.states.hover.filter,i.applyFilter(e,r,h.type,h.value)));"function"==typeof n.config.chart.events.dataPointSelection&&n.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:a,w:n}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:a,w:n}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&"function"==typeof e.getBBox&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,n,i){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.w,o=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:n,foreColor:"#fff",opacity:0});i&&o.attr("transform",i),a.globals.dom.Paper.add(o);var s=o.bbox();return r||(s=o.node.getBoundingClientRect()),o.remove(),{width:s.width,height:s.height}}},{key:"placeTextWithEllipsis",value:function(e,t,n){if("function"==typeof e.getComputedTextLength&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=n/1.1)){for(var i=t.length-3;i>0;i-=3)if(e.getSubStringLength(0,i)<=n/1.1)return void(e.textContent=t.substring(0,i)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}}]),e}(),k=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.w,n=[];if(0===t.globals.series.length)return n;for(var i=0;i<t.globals.series[t.globals.maxValsInArrayIndex].length;i++){for(var r=0,a=0;a<t.globals.series.length;a++)void 0!==t.globals.series[a][i]&&-1===e.indexOf(a)&&(r+=t.globals.series[a][i]);n.push(r)}return n}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.w.config.series.reduce((function(e,t){return e+t}),0):this.w.globals.series[e].reduce((function(e,t){return e+t}),0)}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===e?this.w.config.series.filter((function(e){return null!==e})):this.w.config.series[e].data.filter((function(e){return null!==e}))).length}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every((function(e,t,n){return e===n[0]}))}},{key:"getCategoryLabels",value:function(e){var t=this.w,n=e.slice();return t.config.xaxis.convertedCatToNumeric&&(n=e.map((function(e,n){return t.config.xaxis.labels.formatter(e-t.globals.minX+1)}))),n}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map((function(e){return e.length})).indexOf(Math.max.apply(Math,e.globals.series.map((function(e){return e.length}))))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach((function(e){t=Math.max(t,e)})),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach((function(e){t=Math.max(t,e.size)})),t>0&&(t+=e.config.markers.hover.sizeOffset+1),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map((function(e,t){var n=0;if(Array.isArray(e))for(var i=0;i<e.length;i++)n+=e[i];else n+=e;return n}))}},{key:"getSeriesTotalsXRange",value:function(e,t){var n=this.w;return n.globals.series.map((function(i,r){for(var a=0,o=0;o<i.length;o++)n.globals.seriesX[r][o]>e&&n.globals.seriesX[r][o]<t&&(a+=i[o]);return a}))}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map((function(t,n){var i=[];if(Array.isArray(t))for(var r=0;r<t.length;r++){var a=e.globals.stackedSeriesTotals[r],o=0;a&&(o=100*t[r]/a),i.push(o)}else{var s=100*t/e.globals.seriesTotals.reduce((function(e,t){return e+t}),0);i.push(s)}return i}))}},{key:"getCalculatedRatios",value:function(){var e,t,n,i,r=this.w.globals,a=[],o=0,s=[],l=.1,c=0;if(r.yRange=[],r.isMultipleYAxis)for(var u=0;u<r.minYArr.length;u++)r.yRange.push(Math.abs(r.minYArr[u]-r.maxYArr[u])),s.push(0);else r.yRange.push(Math.abs(r.minY-r.maxY));r.xRange=Math.abs(r.maxX-r.minX),r.zRange=Math.abs(r.maxZ-r.minZ);for(var d=0;d<r.yRange.length;d++)a.push(r.yRange[d]/r.gridHeight);if(t=r.xRange/r.gridWidth,n=Math.abs(r.initialMaxX-r.initialMinX)/r.gridWidth,e=r.yRange/r.gridWidth,i=r.xRange/r.gridHeight,(o=r.zRange/r.gridHeight*16)||(o=1),r.minY!==Number.MIN_VALUE&&0!==Math.abs(r.minY)&&(r.hasNegs=!0),r.isMultipleYAxis){s=[];for(var h=0;h<a.length;h++)s.push(-r.minYArr[h]/a[h])}else s.push(-r.minY/a[0]),r.minY!==Number.MIN_VALUE&&0!==Math.abs(r.minY)&&(l=-r.minY/e,c=r.minX/t);return{yRatio:a,invertedYRatio:e,zRatio:o,xRatio:t,initialXRatio:n,invertedXRatio:i,baseLineInvertedY:l,baseLineY:s,baseLineX:c}}},{key:"getLogSeries",value:function(e){var t=this,n=this.w;return n.globals.seriesLog=e.map((function(e,i){return n.config.yaxis[i]&&n.config.yaxis[i].logarithmic?e.map((function(e){return null===e?null:t.getLogVal(n.config.yaxis[i].logBase,e,i)})):e})),n.globals.invalidLogScale?e:n.globals.seriesLog}},{key:"getBaseLog",value:function(e,t){return Math.log(t)/Math.log(e)}},{key:"getLogVal",value:function(e,t,n){if(0===t)return 0;var i=this.w,r=0===i.globals.minYArr[n]?-1:this.getBaseLog(e,i.globals.minYArr[n]),a=(0===i.globals.maxYArr[n]?0:this.getBaseLog(e,i.globals.maxYArr[n]))-r;return t<1?t/a:(this.getBaseLog(e,t)-r)/a}},{key:"getLogYRatios",value:function(e){var t=this,n=this.w,i=this.w.globals;return i.yLogRatio=e.slice(),i.logYRange=i.yRange.map((function(e,r){if(n.config.yaxis[r]&&t.w.config.yaxis[r].logarithmic){var a,o=-Number.MAX_VALUE,s=Number.MIN_VALUE;return i.seriesLog.forEach((function(e,t){e.forEach((function(e){n.config.yaxis[t]&&n.config.yaxis[t].logarithmic&&(o=Math.max(e,o),s=Math.min(e,s))}))})),a=Math.pow(i.yRange[r],Math.abs(s-o)/i.yRange[r]),i.yLogRatio[r]=a/i.gridHeight,a}})),i.invalidLogScale?e.slice():i.yLogRatio}}],[{key:"checkComboSeries",value:function(e){var t=!1,n=0,i=0;return e.length&&void 0!==e[0].type&&e.forEach((function(e){"bar"!==e.type&&"column"!==e.type&&"candlestick"!==e.type&&"boxPlot"!==e.type||n++,void 0!==e.type&&i++})),i>0&&(t=!0),{comboBarCount:n,comboCharts:t}}},{key:"extendArrayProps",value:function(e,t,n){return t.yaxis&&(t=e.extendYAxis(t,n)),t.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),t.annotations.xaxis&&(t=e.extendXAxisAnnotations(t)),t.annotations.points&&(t=e.extendPointAnnotations(t))),t}}]),e}(),A=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t}return c(e,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.w;if("vertical"===e.label.orientation){var i=null!==t?t:0,r=n.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(i,"']"));if(null!==r){var a=r.getBoundingClientRect();r.setAttribute("x",parseFloat(r.getAttribute("x"))-a.height+4),"top"===e.label.position?r.setAttribute("y",parseFloat(r.getAttribute("y"))+a.width):r.setAttribute("y",parseFloat(r.getAttribute("y"))-a.width);var o=this.annoCtx.graphics.rotateAroundCenter(r),s=o.x,l=o.y;r.setAttribute("transform","rotate(-90 ".concat(s," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var n=this.w;if(!e||void 0===t.label.text||void 0!==t.label.text&&!String(t.label.text).trim())return null;var i=n.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),r=e.getBoundingClientRect(),a=t.label.style.padding.left,o=t.label.style.padding.right,s=t.label.style.padding.top,l=t.label.style.padding.bottom;"vertical"===t.label.orientation&&(s=t.label.style.padding.left,l=t.label.style.padding.right,a=t.label.style.padding.top,o=t.label.style.padding.bottom);var c=r.left-i.left-a,u=r.top-i.top-s,d=this.annoCtx.graphics.drawRect(c-n.globals.barPadForNumericAxis,u,r.width+a+o,r.height+s+l,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&d.node.classList.add(t.id),d}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,n=function(n,i,r){var a=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(i,"']"));if(a){var o=a.parentNode,s=e.addBackgroundToAnno(a,n);s&&(o.insertBefore(s.node,a),n.label.mouseEnter&&s.node.addEventListener("mouseenter",n.label.mouseEnter.bind(e,n)),n.label.mouseLeave&&s.node.addEventListener("mouseleave",n.label.mouseLeave.bind(e,n)),n.label.click&&s.node.addEventListener("click",n.label.click.bind(e,n)))}};t.config.annotations.xaxis.map((function(e,t){n(e,t,"xaxis")})),t.config.annotations.yaxis.map((function(e,t){n(e,t,"yaxis")})),t.config.annotations.points.map((function(e,t){n(e,t,"point")}))}},{key:"getY1Y2",value:function(e,t){var n,i="y1"===e?t.y:t.y2,r=this.w;if(this.annoCtx.invertAxis){var a=r.globals.labels.indexOf(i);r.config.xaxis.convertedCatToNumeric&&(a=r.globals.categoryLabels.indexOf(i));var o=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(a+1)+")");o&&(n=parseFloat(o.getAttribute("y")))}else{var s;s=r.config.yaxis[t.yAxisIndex].logarithmic?(i=new k(this.annoCtx.ctx).getLogVal(i,t.yAxisIndex))/r.globals.yLogRatio[t.yAxisIndex]:(i-r.globals.minYArr[t.yAxisIndex])/(r.globals.yRange[t.yAxisIndex]/r.globals.gridHeight),n=r.globals.gridHeight-s,!t.marker||void 0!==t.y&&null!==t.y||(n=0),r.config.yaxis[t.yAxisIndex]&&r.config.yaxis[t.yAxisIndex].reversed&&(n=s)}return"string"==typeof i&&i.indexOf("px")>-1&&(n=parseFloat(i)),n}},{key:"getX1X2",value:function(e,t){var n=this.w,i=this.annoCtx.invertAxis?n.globals.minY:n.globals.minX,r=this.annoCtx.invertAxis?n.globals.maxY:n.globals.maxX,a=this.annoCtx.invertAxis?n.globals.yRange[0]:n.globals.xRange,o=(t.x-i)/(a/n.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(o=(r-t.x)/(a/n.globals.gridWidth)),"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||n.globals.dataFormatXNumeric||(o=this.getStringX(t.x));var s=(t.x2-i)/(a/n.globals.gridWidth);return this.annoCtx.inversedReversedAxis&&(s=(r-t.x2)/(a/n.globals.gridWidth)),"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||n.globals.dataFormatXNumeric||(s=this.getStringX(t.x2)),void 0!==t.x&&null!==t.x||!t.marker||(o=n.globals.gridWidth),"x1"===e&&"string"==typeof t.x&&t.x.indexOf("px")>-1&&(o=parseFloat(t.x)),"x2"===e&&"string"==typeof t.x2&&t.x2.indexOf("px")>-1&&(s=parseFloat(t.x2)),"x1"===e?o:s}},{key:"getStringX",value:function(e){var t=this.w,n=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var i=t.globals.labels.indexOf(e),r=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(i+1)+")");return r&&(n=parseFloat(r.getAttribute("x"))),n}}]),e}(),S=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new A(this.annoCtx)}return c(e,[{key:"addXaxisAnnotation",value:function(e,t,n){var i,r=this.w,a=this.helpers.getX1X2("x1",e),o=e.label.text,s=e.strokeDashArray;if(y.isNumber(a)){if(null===e.x2||void 0===e.x2){var l=this.annoCtx.graphics.drawLine(a+e.offsetX,0+e.offsetY,a+e.offsetX,r.globals.gridHeight+e.offsetY,e.borderColor,s,e.borderWidth);t.appendChild(l.node),e.id&&l.node.classList.add(e.id)}else{if((i=this.helpers.getX1X2("x2",e))<a){var c=a;a=i,i=c}var u=this.annoCtx.graphics.drawRect(a+e.offsetX,0+e.offsetY,i-a,r.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,s);u.node.classList.add("apexcharts-annotation-rect"),u.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")")),t.appendChild(u.node),e.id&&u.node.classList.add(e.id)}var d=this.annoCtx.graphics.getTextRects(o,parseFloat(e.label.style.fontSize)),h="top"===e.label.position?4:"center"===e.label.position?r.globals.gridHeight/2+("vertical"===e.label.orientation?d.width/2:0):r.globals.gridHeight,f=this.annoCtx.graphics.drawText({x:a+e.label.offsetX,y:h+e.label.offsetY-("vertical"===e.label.orientation?"top"===e.label.position?d.width/2-12:-d.width/2:0),text:o,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});f.attr({rel:n}),t.appendChild(f.node),this.annoCtx.helpers.setOrientations(e,n)}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map((function(t,i){e.addXaxisAnnotation(t,n.node,i)})),n}}]),e}(),M=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new A(this.annoCtx)}return c(e,[{key:"addYaxisAnnotation",value:function(e,t,n){var i,r=this.w,a=e.strokeDashArray,o=this.helpers.getY1Y2("y1",e),s=e.label.text;if(null===e.y2||void 0===e.y2){var l=this.annoCtx.graphics.drawLine(0+e.offsetX,o+e.offsetY,this._getYAxisAnnotationWidth(e),o+e.offsetY,e.borderColor,a,e.borderWidth);t.appendChild(l.node),e.id&&l.node.classList.add(e.id)}else{if((i=this.helpers.getY1Y2("y2",e))>o){var c=o;o=i,i=c}var u=this.annoCtx.graphics.drawRect(0+e.offsetX,i+e.offsetY,this._getYAxisAnnotationWidth(e),o-i,0,e.fillColor,e.opacity,1,e.borderColor,a);u.node.classList.add("apexcharts-annotation-rect"),u.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")")),t.appendChild(u.node),e.id&&u.node.classList.add(e.id)}var d="right"===e.label.position?r.globals.gridWidth:"center"===e.label.position?r.globals.gridWidth/2:0,h=this.annoCtx.graphics.drawText({x:d+e.label.offsetX,y:(null!=i?i:o)+e.label.offsetY-3,text:s,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});h.attr({rel:n}),t.appendChild(h.node)}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.map((function(t,i){e.addYaxisAnnotation(t,n.node,i)})),n}}]),e}(),T=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new A(this.annoCtx)}return c(e,[{key:"addPointAnnotation",value:function(e,t,n){this.w;var i=this.helpers.getX1X2("x1",e),r=this.helpers.getY1Y2("y1",e);if(y.isNumber(i)){var a={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},o=this.annoCtx.graphics.drawMarker(i+e.marker.offsetX,r+e.marker.offsetY,a);t.appendChild(o.node);var s=e.label.text?e.label.text:"",l=this.annoCtx.graphics.drawText({x:i+e.label.offsetX,y:r+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:s,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(l.attr({rel:n}),t.appendChild(l.node),e.customSVG.SVG){var c=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});c.attr({transform:"translate(".concat(i+e.customSVG.offsetX,", ").concat(r+e.customSVG.offsetY,")")}),c.node.innerHTML=e.customSVG.SVG,t.appendChild(c.node)}if(e.image.path){var u=e.image.width?e.image.width:20,d=e.image.height?e.image.height:20;o=this.annoCtx.addImage({x:i+e.image.offsetX-u/2,y:r+e.image.offsetY-d/2,width:u,height:d,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&o.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&o.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&o.node.addEventListener("click",e.click.bind(this,e))}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map((function(t,i){e.addPointAnnotation(t,n.node,i)})),n}}]),e}(),L={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},E=function(){function e(){s(this,e),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return c(e,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[L],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(e){return new Date(e).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)/e.globals.series.length+"%"}}}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return null!==e?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),e}(),C=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.graphics=new x(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new A(this),this.xAxisAnnotations=new S(this),this.yAxisAnnotations=new M(this),this.pointsAnnotations=new T(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return c(e,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),n=this.xAxisAnnotations.drawXAxisAnnotations(),i=this.pointsAnnotations.drawPointAnnotations(),r=e.config.chart.animations.enabled,a=[t,n,i],o=[n.node,t.node,i.node],s=0;s<3;s++)e.globals.dom.elGraphical.add(a[s]),!r||e.globals.resized||e.globals.dataChanged||"scatter"!==e.config.chart.type&&"bubble"!==e.config.chart.type&&e.globals.dataPoints>1&&o[s].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:o[s],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map((function(t,n){e.addImage(t,n)}))}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map((function(t,n){e.addText(t,n)}))}},{key:"addXaxisAnnotation",value:function(e,t,n){this.xAxisAnnotations.addXaxisAnnotation(e,t,n)}},{key:"addYaxisAnnotation",value:function(e,t,n){this.yAxisAnnotations.addYaxisAnnotation(e,t,n)}},{key:"addPointAnnotation",value:function(e,t,n){this.pointsAnnotations.addPointAnnotation(e,t,n)}},{key:"addText",value:function(e,t){var n=e.x,i=e.y,r=e.text,a=e.textAnchor,o=e.foreColor,s=e.fontSize,l=e.fontFamily,c=e.fontWeight,u=e.cssClass,d=e.backgroundColor,h=e.borderWidth,f=e.strokeDashArray,p=e.borderRadius,m=e.borderColor,g=e.appendTo,_=void 0===g?".apexcharts-annotations":g,v=e.paddingLeft,y=void 0===v?4:v,b=e.paddingRight,w=void 0===b?4:b,x=e.paddingBottom,k=void 0===x?2:x,A=e.paddingTop,S=void 0===A?2:A,M=this.w,T=this.graphics.drawText({x:n,y:i,text:r,textAnchor:a||"start",fontSize:s||"12px",fontWeight:c||"regular",fontFamily:l||M.config.chart.fontFamily,foreColor:o||M.config.chart.foreColor,cssClass:u}),L=M.globals.dom.baseEl.querySelector(_);L&&L.appendChild(T.node);var E=T.bbox();if(r){var C=this.graphics.drawRect(E.x-y,E.y-S,E.width+y+w,E.height+k+S,p,d||"transparent",1,h,m,f);L.insertBefore(C.node,T.node)}}},{key:"addImage",value:function(e,t){var n=this.w,i=e.path,r=e.x,a=void 0===r?0:r,o=e.y,s=void 0===o?0:o,l=e.width,c=void 0===l?20:l,u=e.height,d=void 0===u?20:u,h=e.appendTo,f=void 0===h?".apexcharts-annotations":h,p=n.globals.dom.Paper.image(i);p.size(c,d).move(a,s);var m=n.globals.dom.baseEl.querySelector(f);return m&&m.appendChild(p.node),p}},{key:"addXaxisAnnotationExternal",value:function(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"xaxis",contextMethod:n.addXaxisAnnotation}),n}},{key:"addYaxisAnnotationExternal",value:function(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"yaxis",contextMethod:n.addYaxisAnnotation}),n}},{key:"addPointAnnotationExternal",value:function(e,t,n){return void 0===this.invertAxis&&(this.invertAxis=n.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"point",contextMethod:n.addPointAnnotation}),n}},{key:"addAnnotationExternal",value:function(e){var t=e.params,n=e.pushToMemory,i=e.context,r=e.type,a=e.contextMethod,o=i,s=o.w,l=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations")),c=l.childNodes.length+1,u=new E,d=Object.assign({},"xaxis"===r?u.xAxisAnnotation:"yaxis"===r?u.yAxisAnnotation:u.pointAnnotation),h=y.extend(d,t);switch(r){case"xaxis":this.addXaxisAnnotation(h,l,c);break;case"yaxis":this.addYaxisAnnotation(h,l,c);break;case"point":this.addPointAnnotation(h,l,c)}var f=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(c,"']")),p=this.helpers.addBackgroundToAnno(f,h);return p&&l.insertBefore(p.node,f),n&&s.globals.memory.methodsToExec.push({context:o,id:h.id?h.id:y.randomId(),method:a,label:"addAnnotation",params:t}),i}},{key:"clearAnnotations",value:function(e){var t=e.w,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map((function(e,n){"addText"!==e.label&&"addAnnotation"!==e.label||t.globals.memory.methodsToExec.splice(n,1)})),n=y.listToArray(n),Array.prototype.forEach.call(n,(function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}))}},{key:"removeAnnotation",value:function(e,t){var n=e.w,i=n.globals.dom.baseEl.querySelectorAll(".".concat(t));i&&(n.globals.memory.methodsToExec.map((function(e,i){e.id===t&&n.globals.memory.methodsToExec.splice(i,1)})),Array.prototype.forEach.call(i,(function(e){e.parentElement.removeChild(e)})))}}]),e}(),D=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return c(e,[{key:"isValidDate",value:function(e){return!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var n=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(n)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var n=this.w.globals.locale,i=this.w.config.xaxis.labels.datetimeUTC,r=["\0"].concat(g(n.months)),a=[""].concat(g(n.shortMonths)),o=[""].concat(g(n.days)),s=[""].concat(g(n.shortDays));function l(e,t){var n=e+"";for(t=t||2;n.length<t;)n="0"+n;return n}var c=i?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var u=(i?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+r[0])).replace(/(^|[^\\])MMM/g,"$1"+a[0])).replace(/(^|[^\\])MM/g,"$1"+l(u))).replace(/(^|[^\\])M/g,"$1"+u);var d=i?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+o[0])).replace(/(^|[^\\])ddd/g,"$1"+s[0])).replace(/(^|[^\\])dd/g,"$1"+l(d))).replace(/(^|[^\\])d/g,"$1"+d);var h=i?e.getUTCHours():e.getHours(),f=h>12?h-12:0===h?12:h;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+l(h))).replace(/(^|[^\\])H/g,"$1"+h)).replace(/(^|[^\\])hh+/g,"$1"+l(f))).replace(/(^|[^\\])h/g,"$1"+f);var p=i?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+l(p))).replace(/(^|[^\\])m/g,"$1"+p);var m=i?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+l(m))).replace(/(^|[^\\])s/g,"$1"+m);var _=i?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+l(_,3)),_=Math.round(_/10),t=t.replace(/(^|[^\\])ff/g,"$1"+l(_)),_=Math.round(_/10);var v=h<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+_)).replace(/(^|[^\\])TT+/g,"$1"+v)).replace(/(^|[^\\])T/g,"$1"+v.charAt(0));var y=v.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+y)).replace(/(^|[^\\])t/g,"$1"+y.charAt(0));var b=-e.getTimezoneOffset(),w=i||!b?"Z":b>0?"+":"-";if(!i){var x=(b=Math.abs(b))%60;w+=l(Math.floor(b/60))+":"+l(x)}t=t.replace(/(^|[^\\])K/g,"$1"+w);var k=(i?e.getUTCDay():e.getDay())+1;return(t=(t=(t=(t=t.replace(new RegExp(o[0],"g"),o[k])).replace(new RegExp(s[0],"g"),s[k])).replace(new RegExp(r[0],"g"),r[u])).replace(new RegExp(a[0],"g"),a[u])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,n){var i=this.w;void 0!==i.config.xaxis.min&&(e=i.config.xaxis.min),void 0!==i.config.xaxis.max&&(t=i.config.xaxis.max);var r=this.getDate(e),a=this.getDate(t),o=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" "),s=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(o[6],10),maxMillisecond:parseInt(s[6],10),minSecond:parseInt(o[5],10),maxSecond:parseInt(s[5],10),minMinute:parseInt(o[4],10),maxMinute:parseInt(s[4],10),minHour:parseInt(o[3],10),maxHour:parseInt(s[3],10),minDate:parseInt(o[2],10),maxDate:parseInt(s[2],10),minMonth:parseInt(o[1],10)-1,maxMonth:parseInt(s[1],10)-1,minYear:parseInt(o[0],10),maxYear:parseInt(s[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,n){return this.determineDaysOfMonths(e,t)-n}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,n){var i=this.daysCntOfYear[t]+n;return t>1&&this.isLeapYear()&&i++,i}},{key:"determineDaysOfMonths",value:function(e,t){var n=30;switch(e=y.monthMod(e),!0){case this.months30.indexOf(e)>-1:2===e&&(n=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:n=31}return n}}]),e}(),O=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.tooltipKeyFormat="dd MMM"}return c(e,[{key:"xLabelFormat",value:function(e,t,n,i){var r=this.w;if("datetime"===r.config.xaxis.type&&void 0===r.config.xaxis.labels.formatter&&void 0===r.config.tooltip.x.formatter){var a=new D(this.ctx);return a.formatDate(a.getDate(t),r.config.tooltip.x.format)}return e(t,n,i)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map((function(e){return e})):e}},{key:"defaultYFormatter",value:function(e,t,n){var i=this.w;return y.isNumber(e)&&(e=0!==i.globals.yValueDecimal?e.toFixed(void 0!==t.decimalsInFloat?t.decimalsInFloat:i.globals.yValueDecimal):i.globals.maxYArr[n]-i.globals.minYArr[n]<5?e.toFixed(1):e.toFixed(0)),e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttKeyFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttZFormatter=function(e){return e},t.globals.legendFormatter=function(t){return e.defaultGeneralFormatter(t)},void 0!==t.config.xaxis.labels.formatter?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(e){if(y.isNumber(e)){if(!t.config.xaxis.convertedCatToNumeric&&"numeric"===t.config.xaxis.type){if(y.isNumber(t.config.xaxis.decimalsInFloat))return e.toFixed(t.config.xaxis.decimalsInFloat);var n=t.globals.maxX-t.globals.minX;return n>0&&n<100?e.toFixed(1):e.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?e.toFixed(1):e.toFixed(0)}return e},"function"==typeof t.config.tooltip.x.formatter?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,"function"==typeof t.config.xaxis.tooltip.formatter&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||void 0!==t.config.tooltip.y.formatter)&&(t.globals.ttVal=t.config.tooltip.y),void 0!==t.config.tooltip.z.formatter&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),void 0!==t.config.legend.formatter&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach((function(n,i){void 0!==n.labels.formatter?t.globals.yLabelFormatters[i]=n.labels.formatter:t.globals.yLabelFormatters[i]=function(r){return t.globals.xyCharts?Array.isArray(r)?r.map((function(t){return e.defaultYFormatter(t,n,i)})):e.defaultYFormatter(r,n,i):r}})),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if("heatmap"===e.config.chart.type){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce((function(e,t){return e.length>t.length?e:t}),0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),e}(),Y=function(e){var t,n=e.isTimeline,i=e.ctx,r=e.seriesIndex,a=e.dataPointIndex,o=e.y1,s=e.y2,l=e.w,c=l.globals.seriesRangeStart[r][a],u=l.globals.seriesRangeEnd[r][a],d=l.globals.labels[a],h=l.config.series[r].name?l.config.series[r].name:"",f=l.globals.ttKeyFormatter,p=l.config.tooltip.y.title.formatter,m={w:l,seriesIndex:r,dataPointIndex:a,start:c,end:u};"function"==typeof p&&(h=p(h,m)),null!==(t=l.config.series[r].data[a])&&void 0!==t&&t.x&&(d=l.config.series[r].data[a].x),n||"datetime"===l.config.xaxis.type&&(d=new O(i).xLabelFormat(l.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new D(i).formatDate,w:l})),"function"==typeof f&&(d=f(d,m)),Number.isFinite(o)&&Number.isFinite(s)&&(c=o,u=s);var g="",_="",v=l.globals.colors[r];if(void 0===l.config.tooltip.x.formatter)if("datetime"===l.config.xaxis.type){var y=new D(i);g=y.formatDate(y.getDate(c),l.config.tooltip.x.format),_=y.formatDate(y.getDate(u),l.config.tooltip.x.format)}else g=c,_=u;else g=l.config.tooltip.x.formatter(c),_=l.config.tooltip.x.formatter(u);return{start:c,end:u,startVal:g,endVal:_,ylabel:d,color:v,seriesName:h}},P=function(e){var t=e.color,n=e.seriesName,i=e.ylabel,r=e.start,a=e.end,o=e.seriesIndex,s=e.dataPointIndex,l=e.ctx.tooltip.tooltipLabels.getFormatters(o);r=l.yLbFormatter(r),a=l.yLbFormatter(a);var c=l.yLbFormatter(e.w.globals.series[o][s]),u='<span class="value start-value">\n  '.concat(r,'\n  </span> <span class="separator">-</span> <span class="value end-value">\n  ').concat(a,"\n  </span>");return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(n||"")+'</span></div><div> <span class="category">'+i+": </span> "+(e.w.globals.comboCharts?"rangeArea"===e.w.config.series[o].type||"rangeBar"===e.w.config.series[o].type?u:"<span>".concat(c,"</span>"):u)+" </div></div>"},j=function(){function e(t){s(this,e),this.opts=t}return c(e,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(e){return this.hideYAxis(),y.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),a(a({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var n=t.seriesIndex,i=t.dataPointIndex,r=t.w;return e._getBoxTooltip(r,n,i,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var n=t.seriesIndex,i=t.dataPointIndex,r=t.w;return e._getBoxTooltip(r,n,i,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){t.ctx;var n=t.seriesIndex,i=t.dataPointIndex,r=t.w,a=function(){var e=r.globals.seriesRangeStart[n][i];return r.globals.seriesRangeEnd[n][i]-e};return r.globals.comboCharts?"rangeBar"===r.config.series[n].type||"rangeArea"===r.config.series[n].type?a():e:a()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(e){var t=Y(a(a({},e),{},{isTimeline:!0})),n=t.color,i=t.seriesName,r=t.ylabel,o=t.startVal,s=t.endVal;return P(a(a({},e),{},{color:n,seriesName:i,ylabel:r,start:o,end:s}))}(e):function(e){var t=Y(e),n=t.color,i=t.seriesName,r=t.ylabel,o=t.start,s=t.end;return P(a(a({},e),{},{color:n,seriesName:i,ylabel:r,start:o,end:s}))}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(e){var t,n;return null!==(t=e.plotOptions.bar)&&void 0!==t&&t.barHeight||(e.plotOptions.bar.barHeight=2),null!==(n=e.plotOptions.bar)&&void 0!==n&&n.columnWidth||(e.plotOptions.bar.columnWidth=2),e}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){return function(e){var t=Y(e),n=t.color,i=t.seriesName,r=t.ylabel,o=t.start,s=t.end;return P(a(a({},e),{},{color:n,seriesName:i,ylabel:r,start:o,end:s}))}(e)}}}}},{key:"brush",value:function(e){return y.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach((function(t,n){e.yaxis[n].min=0,e.yaxis[n].max=100})),"bar"===e.chart.type&&(e.dataLabels.formatter=t||function(e){return"number"==typeof e&&e?e.toFixed(0)+"%":e}),e}},{key:"stackedBars",value:function(){var e=this.bar();return a(a({},e),{},{plotOptions:a(a({},e.plotOptions),{},{bar:a(a({},e.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,n){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(e){return y.isNumber(e)?Math.floor(e):e};var i=e.xaxis.labels.formatter,r=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return n&&n.length&&(r=n.map((function(e){return Array.isArray(e)?e:String(e)}))),r&&r.length&&(e.xaxis.labels.formatter=function(e){return y.isNumber(e)?i(r[Math.floor(e)-1]):i(e)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(e){return e},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(e,t,n,i,r){var a=e.globals.seriesCandleO[t][n],o=e.globals.seriesCandleH[t][n],s=e.globals.seriesCandleM[t][n],l=e.globals.seriesCandleL[t][n],c=e.globals.seriesCandleC[t][n];return e.config.series[t].type&&e.config.series[t].type!==r?'<div class="apexcharts-custom-tooltip">\n          '.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][n],"</strong>\n        </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(i[0],': <span class="value">')+a+"</span></div>"+"<div>".concat(i[1],': <span class="value">')+o+"</span></div>"+(s?"<div>".concat(i[2],': <span class="value">')+s+"</span></div>":"")+"<div>".concat(i[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(i[4],': <span class="value">')+c+"</span></div></div>"}}]),e}(),I=function(){function e(t){s(this,e),this.opts=t}return c(e,[{key:"init",value:function(e){var t=e.responsiveOverride,n=this.opts,i=new E,r=new j(n);this.chartType=n.chart.type,n=this.extendYAxis(n),n=this.extendAnnotations(n);var a=i.init(),s={};if(n&&"object"===o(n)){var l,c,u,d,h,f,p,m,g,_,v={};v=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(n.chart.type)?r[n.chart.type]():r.line(),null!==(l=n.plotOptions)&&void 0!==l&&null!==(c=l.bar)&&void 0!==c&&c.isFunnel&&(v=r.funnel()),n.chart.stacked&&"bar"===n.chart.type&&(v=r.stackedBars()),null!==(u=n.chart.brush)&&void 0!==u&&u.enabled&&(v=r.brush(v)),n.chart.stacked&&"100%"===n.chart.stackType&&(n=r.stacked100(n)),null!==(d=n.plotOptions)&&void 0!==d&&null!==(h=d.bar)&&void 0!==h&&h.isDumbbell&&(n=r.dumbbell(n)),"monotoneCubic"===(null===(f=n)||void 0===f||null===(p=f.stroke)||void 0===p?void 0:p.curve)&&(n.stroke.curve="smooth"),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(n),n.xaxis=n.xaxis||window.Apex.xaxis||{},t||(n.xaxis.convertedCatToNumeric=!1),(null!==(m=(n=this.checkForCatToNumericXAxis(this.chartType,v,n)).chart.sparkline)&&void 0!==m&&m.enabled||null!==(g=window.Apex.chart)&&void 0!==g&&null!==(_=g.sparkline)&&void 0!==_&&_.enabled)&&(v=r.sparkline(v)),s=y.extend(a,v)}var b=y.extend(s,window.Apex);return a=y.extend(b,n),this.handleUserInputErrors(a)}},{key:"checkForCatToNumericXAxis",value:function(e,t,n){var i,r,a=new j(n),o=("bar"===e||"boxPlot"===e)&&(null===(i=n.plotOptions)||void 0===i||null===(r=i.bar)||void 0===r?void 0:r.horizontal),s="pie"===e||"polarArea"===e||"donut"===e||"radar"===e||"radialBar"===e||"heatmap"===e,l="datetime"!==n.xaxis.type&&"numeric"!==n.xaxis.type,c=n.xaxis.tickPlacement?n.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return o||s||!l||"between"===c||(n=a.convertCatToNumeric(n)),n}},{key:"extendYAxis",value:function(e,t){var n=new E;(void 0===e.yaxis||!e.yaxis||Array.isArray(e.yaxis)&&0===e.yaxis.length)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=y.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[y.extend(n.yAxis,e.yaxis)]:e.yaxis=y.extendArray(e.yaxis,n.yAxis);var i=!1;e.yaxis.forEach((function(e){e.logarithmic&&(i=!0)}));var r=e.series;return t&&!r&&(r=t.config.series),i&&r.length!==e.yaxis.length&&r.length&&(e.yaxis=r.map((function(t,i){if(t.name||(r[i].name="series-".concat(i+1)),e.yaxis[i])return e.yaxis[i].seriesName=r[i].name,e.yaxis[i];var a=y.extend(n.yAxis,e.yaxis[0]);return a.show=!1,a}))),i&&r.length>1&&r.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),e}},{key:"extendAnnotations",value:function(e){return void 0===e.annotations&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new E;return e.annotations.yaxis=y.extendArray(void 0!==e.annotations.yaxis?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new E;return e.annotations.xaxis=y.extendArray(void 0!==e.annotations.xaxis?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new E;return e.annotations.points=y.extendArray(void 0!==e.annotations.points?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&"dark"===e.theme.mode&&(e.tooltip||(e.tooltip={}),"light"!==e.tooltip.theme&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.chart.background||(e.chart.background="#424242"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;if(t.tooltip.shared&&t.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===t.chart.type&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return"bar"!==t.chart.type&&"rangeBar"!==t.chart.type||t.tooltip.shared&&"barWidth"===t.xaxis.crosshairs.width&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),"candlestick"!==t.chart.type&&"boxPlot"!==t.chart.type||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t}}]),e}(),F=function(){function e(){s(this,e)}return c(e,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0}},{key:"globalVars",value:function(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:"pan"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.pan,selectionEnabled:"selection"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=y.extend({},e),t.initialSeries=y.clone(e.series),t.lastXAxis=y.clone(t.initialConfig.xaxis),t.lastYAxis=y.clone(t.initialConfig.yaxis),t}}]),e}(),N=function(){function e(t){s(this,e),this.opts=t}return c(e,[{key:"init",value:function(){var e=new I(this.opts).init({responsiveOverride:!1});return{config:e,globals:(new F).init(e)}}}]),e}(),R=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0}return c(e,[{key:"clippedImgArea",value:function(e){var t=this.w,n=t.config,i=parseInt(t.globals.gridWidth,10),r=parseInt(t.globals.gridHeight,10),a=i>r?i:r,o=e.image,s=0,l=0;void 0===e.width&&void 0===e.height?void 0!==n.fill.image.width&&void 0!==n.fill.image.height?(s=n.fill.image.width+1,l=n.fill.image.height):(s=a+1,l=a):(s=e.width,l=e.height);var c=document.createElementNS(t.globals.SVGNS,"pattern");x.setAttrs(c,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:s+"px",height:l+"px"});var u=document.createElementNS(t.globals.SVGNS,"image");c.appendChild(u),u.setAttributeNS(window.SVG.xlink,"href",o),x.setAttrs(u,{x:0,y:0,preserveAspectRatio:"none",width:s+"px",height:l+"px"}),u.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(e){var t=this.w,n=t.config.chart.type;return("bar"===n||"rangeBar"===n)&&t.config.plotOptions.bar.distributed||"heatmap"===n||"treemap"===n?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var n,i,r,a=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var o=this.getFillColors()[this.seriesIndex];void 0!==t.globals.seriesColors[this.seriesIndex]&&(o=t.globals.seriesColors[this.seriesIndex]),"function"==typeof o&&(o=o({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var s=e.fillType?e.fillType:this.getFillType(this.seriesIndex),l=Array.isArray(a.fill.opacity)?a.fill.opacity[this.seriesIndex]:a.fill.opacity;e.color&&(o=e.color),o||(o="#fff",console.warn("undefined color - ApexCharts"));var c=o;if(-1===o.indexOf("rgb")?o.length<9&&(c=y.hexToRgba(o,l)):o.indexOf("rgba")>-1&&(l=y.getOpacityFromRGBA(o)),e.opacity&&(l=e.opacity),"pattern"===s&&(i=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:i,fillColor:o,fillOpacity:l,defaultColor:c})),"gradient"===s&&(r=this.handleGradientFill({fillConfig:e.fillConfig,fillColor:o,fillOpacity:l,i:this.seriesIndex})),"image"===s){var u=a.fill.image.src,d=e.patternID?e.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(u)?e.seriesNumber<u.length?u[e.seriesNumber]:u[0]:u,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:"pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(d)}),n="url(#pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(d,")")}else n="gradient"===s?r:"pattern"===s?i:c;return e.solid&&(n=c),n}},{key:"getFillType",value:function(e){var t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}},{key:"getFillColors",value:function(){var e=this.w,t=e.config,n=this.opts,i=[];return e.globals.comboCharts?"line"===e.config.series[this.seriesIndex].type?Array.isArray(e.globals.stroke.colors)?i=e.globals.stroke.colors:i.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?i=e.globals.fill.colors:i.push(e.globals.fill.colors):"line"===t.chart.type?Array.isArray(e.globals.stroke.colors)?i=e.globals.stroke.colors:i.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?i=e.globals.fill.colors:i.push(e.globals.fill.colors),void 0!==n.fillColors&&(i=[],Array.isArray(n.fillColors)?i=n.fillColors.slice():i.push(n.fillColors)),i}},{key:"handlePatternFill",value:function(e){var t=e.fillConfig,n=(e.patternFill,e.fillColor),i=e.fillOpacity,r=e.defaultColor,a=this.w.config.fill;t&&(a=t);var o=this.opts,s=new x(this.ctx),l=Array.isArray(a.pattern.strokeWidth)?a.pattern.strokeWidth[this.seriesIndex]:a.pattern.strokeWidth,c=n;return Array.isArray(a.pattern.style)?void 0!==a.pattern.style[o.seriesNumber]?s.drawPattern(a.pattern.style[o.seriesNumber],a.pattern.width,a.pattern.height,c,l,i):r:s.drawPattern(a.pattern.style,a.pattern.width,a.pattern.height,c,l,i)}},{key:"handleGradientFill",value:function(e){var t=e.fillColor,n=e.fillOpacity,i=e.fillConfig,r=e.i,o=this.w.config.fill;i&&(o=a(a({},o),i));var s,l=this.opts,c=new x(this.ctx),u=new y,d=o.gradient.type,h=t,f=void 0===o.gradient.opacityFrom?n:Array.isArray(o.gradient.opacityFrom)?o.gradient.opacityFrom[r]:o.gradient.opacityFrom;h.indexOf("rgba")>-1&&(f=y.getOpacityFromRGBA(h));var p=void 0===o.gradient.opacityTo?n:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[r]:o.gradient.opacityTo;if(void 0===o.gradient.gradientToColors||0===o.gradient.gradientToColors.length)s="dark"===o.gradient.shade?u.shadeColor(-1*parseFloat(o.gradient.shadeIntensity),t.indexOf("rgb")>-1?y.rgb2hex(t):t):u.shadeColor(parseFloat(o.gradient.shadeIntensity),t.indexOf("rgb")>-1?y.rgb2hex(t):t);else if(o.gradient.gradientToColors[l.seriesNumber]){var m=o.gradient.gradientToColors[l.seriesNumber];s=m,m.indexOf("rgba")>-1&&(p=y.getOpacityFromRGBA(m))}else s=t;if(o.gradient.gradientFrom&&(h=o.gradient.gradientFrom),o.gradient.gradientTo&&(s=o.gradient.gradientTo),o.gradient.inverseColors){var g=h;h=s,s=g}return h.indexOf("rgb")>-1&&(h=y.rgb2hex(h)),s.indexOf("rgb")>-1&&(s=y.rgb2hex(s)),c.drawGradient(d,h,s,f,p,l.size,o.gradient.stops,o.gradient.colorStops,r)}}]),e}(),H=function(){function e(t,n){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.globals.series.length+1)for(var t=0;t<=e.globals.series.length;t++)void 0===e.globals.markers.size[t]&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map((function(t){return e.config.markers.size}))}},{key:"plotChartMarkers",value:function(e,t,n,i){var r,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.w,s=t,l=e,c=null,u=new x(this.ctx),d=o.config.markers.discrete&&o.config.markers.discrete.length;if((o.globals.markers.size[t]>0||a||d)&&(c=u.group({class:a||d?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(o.globals.cuid,")")),Array.isArray(l.x))for(var h=0;h<l.x.length;h++){var f=n;1===n&&0===h&&(f=0),1===n&&1===h&&(f=1);var p="apexcharts-marker";if("line"!==o.config.chart.type&&"area"!==o.config.chart.type||o.globals.comboCharts||o.config.tooltip.intersect||(p+=" no-pointer-events"),(Array.isArray(o.config.markers.size)?o.globals.markers.size[t]>0:o.config.markers.size>0)||a||d){y.isNumber(l.y[h])?p+=" w".concat(y.randomId()):p="apexcharts-nullpoint";var m=this.getMarkerConfig({cssClass:p,seriesIndex:t,dataPointIndex:f});o.config.series[s].data[f]&&(o.config.series[s].data[f].fillColor&&(m.pointFillColor=o.config.series[s].data[f].fillColor),o.config.series[s].data[f].strokeColor&&(m.pointStrokeColor=o.config.series[s].data[f].strokeColor)),i&&(m.pSize=i),(l.x[h]<0||l.x[h]>o.globals.gridWidth||l.y[h]<-o.globals.markers.largestSize||l.y[h]>o.globals.gridHeight+o.globals.markers.largestSize)&&(m.pSize=0),(r=u.drawMarker(l.x[h],l.y[h],m)).attr("rel",f),r.attr("j",f),r.attr("index",t),r.node.setAttribute("default-marker-size",m.pSize),new w(this.ctx).setSelectionFilter(r,t,f),this.addEvents(r),c&&c.add(r)}else void 0===o.globals.pointsArray[t]&&(o.globals.pointsArray[t]=[]),o.globals.pointsArray[t].push([l.x[h],l.y[h]])}return c}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,n=e.seriesIndex,i=e.dataPointIndex,r=void 0===i?null:i,a=e.finishRadius,o=void 0===a?null:a,s=this.w,l=this.getMarkerStyle(n),c=s.globals.markers.size[n],u=s.config.markers;return null!==r&&u.discrete.length&&u.discrete.map((function(e){e.seriesIndex===n&&e.dataPointIndex===r&&(l.pointStrokeColor=e.strokeColor,l.pointFillColor=e.fillColor,c=e.size,l.pointShape=e.shape)})),{pSize:null===o?c:o,pRadius:u.radius,width:Array.isArray(u.width)?u.width[n]:u.width,height:Array.isArray(u.height)?u.height[n]:u.height,pointStrokeWidth:Array.isArray(u.strokeWidth)?u.strokeWidth[n]:u.strokeWidth,pointStrokeColor:l.pointStrokeColor,pointFillColor:l.pointFillColor,shape:l.pointShape||(Array.isArray(u.shape)?u.shape[n]:u.shape),class:t,pointStrokeOpacity:Array.isArray(u.strokeOpacity)?u.strokeOpacity[n]:u.strokeOpacity,pointStrokeDashArray:Array.isArray(u.strokeDashArray)?u.strokeDashArray[n]:u.strokeDashArray,pointFillOpacity:Array.isArray(u.fillOpacity)?u.fillOpacity[n]:u.fillOpacity,seriesIndex:n}}},{key:"addEvents",value:function(e){var t=this.w,n=new x(this.ctx);e.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",n.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",n.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,n=t.globals.markers.colors,i=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(i)?i[e]:i,pointFillColor:Array.isArray(n)?n[e]:n}}}]),e}(),z=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return c(e,[{key:"draw",value:function(e,t,n){var i=this.w,r=new x(this.ctx),a=n.realIndex,o=n.pointsPos,s=n.zRatio,l=n.elParent,c=r.group({class:"apexcharts-series-markers apexcharts-series-".concat(i.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(i.globals.cuid,")")),Array.isArray(o.x))for(var u=0;u<o.x.length;u++){var d=t+1,h=!0;0===t&&0===u&&(d=0),0===t&&1===u&&(d=1);var f=0,p=i.globals.markers.size[a];if(s!==1/0){var m=i.config.plotOptions.bubble;p=i.globals.seriesZ[a][d],m.zScaling&&(p/=s),m.minBubbleRadius&&p<m.minBubbleRadius&&(p=m.minBubbleRadius),m.maxBubbleRadius&&p>m.maxBubbleRadius&&(p=m.maxBubbleRadius)}i.config.chart.animations.enabled||(f=p);var g=o.x[u],_=o.y[u];if(f=f||0,null!==_&&void 0!==i.globals.series[a][d]||(h=!1),h){var v=this.drawPoint(g,_,f,p,a,d,t);c.add(v)}l.add(c)}}},{key:"drawPoint",value:function(e,t,n,i,r,a,o){var s=this.w,l=r,c=new b(this.ctx),u=new w(this.ctx),d=new R(this.ctx),h=new H(this.ctx),f=new x(this.ctx),p=h.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:a,finishRadius:"bubble"===s.config.chart.type||s.globals.comboCharts&&s.config.series[r]&&"bubble"===s.config.series[r].type?i:null});i=p.pSize;var m,g=d.fillPath({seriesNumber:r,dataPointIndex:a,color:p.pointFillColor,patternUnits:"objectBoundingBox",value:s.globals.series[r][o]});if("circle"===p.shape?m=f.drawCircle(n):"square"!==p.shape&&"rect"!==p.shape||(m=f.drawRect(0,0,p.width-p.pointStrokeWidth/2,p.height-p.pointStrokeWidth/2,p.pRadius)),s.config.series[l].data[a]&&s.config.series[l].data[a].fillColor&&(g=s.config.series[l].data[a].fillColor),m.attr({x:e-p.width/2-p.pointStrokeWidth/2,y:t-p.height/2-p.pointStrokeWidth/2,cx:e,cy:t,fill:g,"fill-opacity":p.pointFillOpacity,stroke:p.pointStrokeColor,r:i,"stroke-width":p.pointStrokeWidth,"stroke-dasharray":p.pointStrokeDashArray,"stroke-opacity":p.pointStrokeOpacity}),s.config.chart.dropShadow.enabled){var _=s.config.chart.dropShadow;u.dropShadow(m,_,r)}if(!this.initialAnim||s.globals.dataChanged||s.globals.resized)s.globals.animationEnded=!0;else{var v=s.config.chart.animations.speed;c.animateMarker(m,0,"circle"===p.shape?i:{width:p.width,height:p.height},v,s.globals.easing,(function(){window.setTimeout((function(){c.animationCompleted(m)}),100)}))}if(s.globals.dataChanged&&"circle"===p.shape)if(this.dynamicAnim){var y,k,A,S,M=s.config.chart.animations.dynamicAnimation.speed;null!=(S=s.globals.previousPaths[r]&&s.globals.previousPaths[r][o])&&(y=S.x,k=S.y,A=void 0!==S.r?S.r:i);for(var T=0;T<s.globals.collapsedSeries.length;T++)s.globals.collapsedSeries[T].index===r&&(M=1,i=0);0===e&&0===t&&(i=0),c.animateCircle(m,{cx:y,cy:k,r:A},{cx:e,cy:t,r:i},M,s.globals.easing)}else m.attr({r:i});return m.attr({rel:a,j:a,index:r,"default-marker-size":i}),u.setSelectionFilter(m,r,a),h.addEvents(m),m.node.classList.add("apexcharts-marker"),m}},{key:"centerTextInBubble",value:function(e){var t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),e}(),q=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"dataLabelsCorrection",value:function(e,t,n,i,r,a,o){var s=this.w,l=!1,c=new x(this.ctx).getTextRects(n,o),u=c.width,d=c.height;t<0&&(t=0),t>s.globals.gridHeight+d&&(t=s.globals.gridHeight+d/2),void 0===s.globals.dataLabelsRects[i]&&(s.globals.dataLabelsRects[i]=[]),s.globals.dataLabelsRects[i].push({x:e,y:t,width:u,height:d});var h=s.globals.dataLabelsRects[i].length-2,f=void 0!==s.globals.lastDrawnDataLabelsIndexes[i]?s.globals.lastDrawnDataLabelsIndexes[i][s.globals.lastDrawnDataLabelsIndexes[i].length-1]:0;if(void 0!==s.globals.dataLabelsRects[i][h]){var p=s.globals.dataLabelsRects[i][f];(e>p.x+p.width||t>p.y+p.height||t+d<p.y||e+u<p.x)&&(l=!0)}return(0===r||a)&&(l=!0),{x:e,y:t,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(e){var t=this,n=e.type,i=e.pos,r=e.i,a=e.j,o=e.isRangeStart,s=e.strokeWidth,l=void 0===s?2:s,c=this.w,u=new x(this.ctx),d=c.config.dataLabels,h=0,f=0,p=a,m=null;if(!d.enabled||!Array.isArray(i.x))return m;m=u.group({class:"apexcharts-data-labels"});for(var g=0;g<i.x.length;g++)if(h=i.x[g]+d.offsetX,f=i.y[g]+d.offsetY+l,!isNaN(h)){1===a&&0===g&&(p=0),1===a&&1===g&&(p=1);var _=c.globals.series[r][p];"rangeArea"===n&&(_=o?c.globals.seriesRangeStart[r][p]:c.globals.seriesRangeEnd[r][p]);var v="",y=function(e){return c.config.dataLabels.formatter(e,{ctx:t.ctx,seriesIndex:r,dataPointIndex:p,w:c})};"bubble"===c.config.chart.type?(v=y(_=c.globals.seriesZ[r][p]),f=i.y[g],f=new z(this.ctx).centerTextInBubble(f,r,p).y):void 0!==_&&(v=y(_)),this.plotDataLabelsText({x:h,y:f,text:v,i:r,j:p,parent:m,offsetCorrection:!0,dataLabelsConfig:c.config.dataLabels})}return m}},{key:"plotDataLabelsText",value:function(e){var t=this.w,n=new x(this.ctx),i=e.x,r=e.y,a=e.i,o=e.j,s=e.text,l=e.textAnchor,c=e.fontSize,u=e.parent,d=e.dataLabelsConfig,h=e.color,f=e.alwaysDrawDataLabel,p=e.offsetCorrection;if(!(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(a)<0)){var m={x:i,y:r,drawnextLabel:!0,textRects:null};p&&(m=this.dataLabelsCorrection(i,r,s,a,o,f,parseInt(d.style.fontSize,10))),t.globals.zoomed||(i=m.x,r=m.y),m.textRects&&(i<-10-m.textRects.width||i>t.globals.gridWidth+m.textRects.width+10)&&(s="");var g=t.globals.dataLabels.style.colors[a];(("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(g=t.globals.dataLabels.style.colors[o]),"function"==typeof g&&(g=g({series:t.globals.series,seriesIndex:a,dataPointIndex:o,w:t})),h&&(g=h);var _=d.offsetX,v=d.offsetY;if("bar"!==t.config.chart.type&&"rangeBar"!==t.config.chart.type||(_=0,v=0),m.drawnextLabel){var y=n.drawText({width:100,height:parseInt(d.style.fontSize,10),x:i+_,y:r+v,foreColor:g,textAnchor:l||d.textAnchor,text:s,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"});if(y.attr({class:"apexcharts-datalabel",cx:i,cy:r}),d.dropShadow.enabled){var b=d.dropShadow;new w(this.ctx).dropShadow(y,b)}u.add(y),void 0===t.globals.lastDrawnDataLabelsIndexes[a]&&(t.globals.lastDrawnDataLabelsIndexes[a]=[]),t.globals.lastDrawnDataLabelsIndexes[a].push(o)}}}},{key:"addBackgroundToDataLabel",value:function(e,t){var n=this.w,i=n.config.dataLabels.background,r=i.padding,a=i.padding/2,o=t.width,s=t.height,l=new x(this.ctx).drawRect(t.x-r,t.y-a/2,o+2*r,s+a,i.borderRadius,"transparent"===n.config.chart.background?"#fff":n.config.chart.background,i.opacity,i.borderWidth,i.borderColor);return i.dropShadow.enabled&&new w(this.ctx).dropShadow(l,i.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var e=this.w;if("bubble"!==e.config.chart.type)for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),n=0;n<t.length;n++){var i=t[n],r=i.getBBox(),a=null;if(r.width&&r.height&&(a=this.addBackgroundToDataLabel(i,r)),a){i.parentNode.insertBefore(a.node,i);var o=i.getAttribute("fill");!e.config.chart.animations.enabled||e.globals.resized||e.globals.dataChanged?a.attr({fill:o}):a.animate().attr({fill:o}),i.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),n=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),i=0;i<t.length;i++)n&&n.insertBefore(t[i],n.nextSibling)}}]),e}(),B=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.legendInactiveClass="legend-mouseover-inactive"}return c(e,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(e){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(y.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),n=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:n}}},{key:"addCollapsedClassToSeries",value:function(e,t){var n=this.w;function i(n){for(var i=0;i<n.length;i++)n[i].index===t&&e.node.classList.add("apexcharts-series-collapsed")}i(n.globals.collapsedSeries),i(n.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(e){var t=this.isSeriesHidden(e);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.w,r=y.clone(i.globals.initialSeries);i.globals.previousPaths=[],n?(i.globals.collapsedSeries=[],i.globals.ancillaryCollapsedSeries=[],i.globals.collapsedSeriesIndices=[],i.globals.ancillaryCollapsedSeriesIndices=[]):r=this.emptyCollapsedSeries(r),i.config.series=r,e&&(t&&(i.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(r,i.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,n=0;n<e.length;n++)t.globals.collapsedSeriesIndices.indexOf(n)>-1&&(e[n].data=[]);return e}},{key:"toggleSeriesOnHover",value:function(e,t){var n=this.w;t||(t=e.target);var i=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if("mousemove"===e.type){var r=parseInt(t.getAttribute("rel"),10)-1,a=null,o=null;n.globals.axisCharts||"radialBar"===n.config.chart.type?n.globals.axisCharts?(a=n.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(r,"']")),o=n.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(r,"']"))):a=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"']")):a=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"'] path"));for(var s=0;s<i.length;s++)i[s].classList.add(this.legendInactiveClass);null!==a&&(n.globals.axisCharts||a.parentNode.classList.remove(this.legendInactiveClass),a.classList.remove(this.legendInactiveClass),null!==o&&o.classList.remove(this.legendInactiveClass))}else if("mouseout"===e.type)for(var l=0;l<i.length;l++)i[l].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var n=this,i=this.w,r=i.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),a=function(e){for(var t=0;t<r.length;t++)r[t].classList[e](n.legendInactiveClass)};if("mousemove"===e.type){var o=parseInt(t.getAttribute("rel"),10)-1;a("add"),function(e){for(var t=0;t<r.length;t++){var i=parseInt(r[t].getAttribute("val"),10);i>=e.from&&i<=e.to&&r[t].classList.remove(n.legendInactiveClass)}}(i.config.plotOptions.heatmap.colorScale.ranges[o])}else"mouseout"===e.type&&a("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.w,i=0;if(n.config.series.length>1)for(var r=n.config.series.map((function(e,i){return e.data&&e.data.length>0&&-1===n.globals.collapsedSeriesIndices.indexOf(i)&&(!n.globals.comboCharts||0===t.length||t.length&&t.indexOf(n.config.series[i].type)>-1)?i:-1})),a="asc"===e?0:r.length-1;"asc"===e?a<r.length:a>=0;"asc"===e?a++:a--)if(-1!==r[a]){i=r[a];break}return i}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map((function(e,t){return"bar"===e.type||"column"===e.type?t:-1})).filter((function(e){return-1!==e})):this.w.config.series.map((function(e,t){return t}))}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(t,n,i){for(var r=t[n].childNodes,a={type:i,paths:[],realIndex:t[n].getAttribute("data:realIndex")},o=0;o<r.length;o++)if(r[o].hasAttribute("pathTo")){var s=r[o].getAttribute("pathTo");a.paths.push({d:s})}e.globals.previousPaths.push(a)}e.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach((function(n){for(var i,r=(i=n,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(i,"-series .apexcharts-series"))),a=0;a<r.length;a++)t(r,a,n)})),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(n.length>0)for(var i=function(t){for(var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(t,"'] rect")),i=[],r=function(e){var t=function(t){return n[e].getAttribute(t)},r={x:parseFloat(t("x")),y:parseFloat(t("y")),width:parseFloat(t("width")),height:parseFloat(t("height"))};i.push({rect:r,color:n[e].getAttribute("color")})},a=0;a<n.length;a++)r(a);e.globals.previousPaths.push(i)},r=0;r<n.length;r++)i(r);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(e){var t=this.w,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series"));if(n.length>0)for(var i=0;i<n.length;i++){for(var r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series[data\\:realIndex='").concat(i,"'] circle")),a=[],o=0;o<r.length;o++)a.push({x:r[o].getAttribute("cx"),y:r[o].getAttribute("cy"),r:r[o].getAttribute("r")});t.globals.previousPaths.push(a)}}},{key:"clearPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var e=this.w,t=e.config.noData,n=new x(this.ctx),i=e.globals.svgWidth/2,r=e.globals.svgHeight/2,a="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,"left"===t.align?(i=10,a="start"):"right"===t.align&&(i=e.globals.svgWidth-10,a="end"),"top"===t.verticalAlign?r=50:"bottom"===t.verticalAlign&&(r=e.globals.svgHeight-50),i+=t.offsetX,r=r+parseInt(t.style.fontSize,10)+2+t.offsetY,void 0!==t.text&&""!==t.text){var o=n.drawText({x:i,y:r,text:t.text,textAnchor:a,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(o)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,n=0;n<e.length;n++)if(0===e[n].length)for(var i=0;i<e[t.globals.maxValsInArrayIndex].length;i++)e[n].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,n=this.filteredSeriesX(),i=0;i<n.length-1;i++)if(n[i][0]!==n[i+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map((function(e){return e.length>0?e:[]}))}}]),e}(),$=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new k(this.ctx)}return c(e,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new B(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&null!==e[this.activeSeriesIndex].data[0]&&void 0!==e[this.activeSeriesIndex].data[0].x&&null!==e[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new B(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&void 0!==e[this.activeSeriesIndex].data[0]&&null!==e[this.activeSeriesIndex].data[0]&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var n=this.w.config,i=this.w.globals,r="boxPlot"===n.chart.type||"boxPlot"===n.series[t].type,a=0;a<e[t].data.length;a++)if(void 0!==e[t].data[a][1]&&(Array.isArray(e[t].data[a][1])&&4===e[t].data[a][1].length&&!r?this.twoDSeries.push(y.parseNumber(e[t].data[a][1][3])):e[t].data[a].length>=5?this.twoDSeries.push(y.parseNumber(e[t].data[a][4])):this.twoDSeries.push(y.parseNumber(e[t].data[a][1])),i.dataFormatXNumeric=!0),"datetime"===n.xaxis.type){var o=new Date(e[t].data[a][0]);o=new Date(o).getTime(),this.twoDSeriesX.push(o)}else this.twoDSeriesX.push(e[t].data[a][0]);for(var s=0;s<e[t].data.length;s++)void 0!==e[t].data[s][2]&&(this.threeDSeries.push(e[t].data[s][2]),i.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var n=this.w.config,i=this.w.globals,r=new D(this.ctx),a=t;i.collapsedSeriesIndices.indexOf(t)>-1&&(a=this.activeSeriesIndex);for(var o=0;o<e[t].data.length;o++)void 0!==e[t].data[o].y&&(Array.isArray(e[t].data[o].y)?this.twoDSeries.push(y.parseNumber(e[t].data[o].y[e[t].data[o].y.length-1])):this.twoDSeries.push(y.parseNumber(e[t].data[o].y))),void 0!==e[t].data[o].goals&&Array.isArray(e[t].data[o].goals)?(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[o].goals)):(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var s=0;s<e[a].data.length;s++){var l="string"==typeof e[a].data[s].x,c=Array.isArray(e[a].data[s].x),u=!c&&!!r.isValidDate(e[a].data[s].x.toString());if(l||u)if(l||n.xaxis.convertedCatToNumeric){var d=i.isBarHorizontal&&i.isRangeData;"datetime"!==n.xaxis.type||d?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[a].data[s].x),isNaN(e[a].data[s].x)||"category"===this.w.config.xaxis.type||"string"==typeof e[a].data[s].x||(i.isXNumeric=!0)):this.twoDSeriesX.push(r.parseDate(e[a].data[s].x))}else"datetime"===n.xaxis.type?this.twoDSeriesX.push(r.parseDate(e[a].data[s].x.toString())):(i.dataFormatXNumeric=!0,i.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[a].data[s].x)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[a].data[s].x)):(i.isXNumeric=!0,i.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[a].data[s].x))}if(e[t].data[0]&&void 0!==e[t].data[0].z){for(var h=0;h<e[t].data.length;h++)this.threeDSeries.push(e[t].data[h].z);i.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var n=this.w.globals,i={};return this.isFormat2DArray()?i=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(i=this.handleRangeDataFormat("xy",e,t)),n.seriesRangeStart.push(i.start),n.seriesRangeEnd.push(i.end),n.seriesRange.push(i.rangeUniques),n.seriesRange.forEach((function(e,t){e&&e.forEach((function(e,t){e.y.forEach((function(t,n){for(var i=0;i<e.y.length;i++)if(n!==i){var r=t.y1,a=t.y2,o=e.y[i].y1;r<=e.y[i].y2&&o<=a&&(e.overlaps.indexOf(t.rangeName)<0&&e.overlaps.push(t.rangeName),e.overlaps.indexOf(e.y[i].rangeName)<0&&e.overlaps.push(e.y[i].rangeName))}}))}))})),i}},{key:"handleCandleStickBoxData",value:function(e,t){var n=this.w.globals,i={};return this.isFormat2DArray()?i=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(i=this.handleCandleStickBoxDataFormat("xy",e,t)),n.seriesCandleO[t]=i.o,n.seriesCandleH[t]=i.h,n.seriesCandleM[t]=i.m,n.seriesCandleL[t]=i.l,n.seriesCandleC[t]=i.c,i}},{key:"handleRangeDataFormat",value:function(e,t,n){var i=[],r=[],a=t[n].data.filter((function(e,t,n){return t===n.findIndex((function(t){return t.x===e.x}))})).map((function(e,t){return{x:e.x,overlaps:[],y:[]}}));if("array"===e)for(var o=0;o<t[n].data.length;o++)Array.isArray(t[n].data[o])?(i.push(t[n].data[o][1][0]),r.push(t[n].data[o][1][1])):(i.push(t[n].data[o]),r.push(t[n].data[o]));else if("xy"===e)for(var s=function(e){var o=Array.isArray(t[n].data[e].y),s=y.randomId(),l=t[n].data[e].x,c={y1:o?t[n].data[e].y[0]:t[n].data[e].y,y2:o?t[n].data[e].y[1]:t[n].data[e].y,rangeName:s};t[n].data[e].rangeName=s;var u=a.findIndex((function(e){return e.x===l}));a[u].y.push(c),i.push(c.y1),r.push(c.y2)},l=0;l<t[n].data.length;l++)s(l);return{start:i,end:r,rangeUniques:a}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,n){var i=this.w,r="boxPlot"===i.config.chart.type||"boxPlot"===i.config.series[n].type,a=[],o=[],s=[],l=[],c=[];if("array"===e)if(r&&6===t[n].data[0].length||!r&&5===t[n].data[0].length)for(var u=0;u<t[n].data.length;u++)a.push(t[n].data[u][1]),o.push(t[n].data[u][2]),r?(s.push(t[n].data[u][3]),l.push(t[n].data[u][4]),c.push(t[n].data[u][5])):(l.push(t[n].data[u][3]),c.push(t[n].data[u][4]));else for(var d=0;d<t[n].data.length;d++)Array.isArray(t[n].data[d][1])&&(a.push(t[n].data[d][1][0]),o.push(t[n].data[d][1][1]),r?(s.push(t[n].data[d][1][2]),l.push(t[n].data[d][1][3]),c.push(t[n].data[d][1][4])):(l.push(t[n].data[d][1][2]),c.push(t[n].data[d][1][3])));else if("xy"===e)for(var h=0;h<t[n].data.length;h++)Array.isArray(t[n].data[h].y)&&(a.push(t[n].data[h].y[0]),o.push(t[n].data[h].y[1]),r?(s.push(t[n].data[h].y[2]),l.push(t[n].data[h].y[3]),c.push(t[n].data[h].y[4])):(l.push(t[n].data[h].y[2]),c.push(t[n].data[h].y[3])));return{o:a,h:o,m:s,l,c}}},{key:"parseDataAxisCharts",value:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,r=this.w.config,a=this.w.globals,o=new D(i),s=r.labels.length>0?r.labels.slice():r.xaxis.categories.slice();if(a.isRangeBar="rangeBar"===r.chart.type&&a.isBarHorizontal,a.hasXaxisGroups="category"===r.xaxis.type&&r.xaxis.group.groups.length>0,a.hasXaxisGroups&&(a.groups=r.xaxis.group.groups),a.hasSeriesGroups=null===(t=e[0])||void 0===t?void 0:t.group,a.hasSeriesGroups){var l=[],c=g(new Set(e.map((function(e){return e.group}))));e.forEach((function(e,t){var n=c.indexOf(e.group);l[n]||(l[n]=[]),l[n].push(e.name)})),a.seriesGroups=l}for(var u=function(){for(var e=0;e<s.length;e++)if("string"==typeof s[e]){if(!o.isValidDate(s[e]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");n.twoDSeriesX.push(o.parseDate(s[e]))}else n.twoDSeriesX.push(s[e])},d=0;d<e.length;d++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===e[d].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==r.chart.type&&"rangeArea"!==r.chart.type&&"rangeBar"!==e[d].type&&"rangeArea"!==e[d].type||(a.isRangeData=!0,a.isComboCharts?"rangeBar"!==e[d].type&&"rangeArea"!==e[d].type||this.handleRangeData(e,d):"rangeBar"!==r.chart.type&&"rangeArea"!==r.chart.type||this.handleRangeData(e,d)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,d):this.isFormatXY()&&this.handleFormatXY(e,d),"candlestick"!==r.chart.type&&"candlestick"!==e[d].type&&"boxPlot"!==r.chart.type&&"boxPlot"!==e[d].type||this.handleCandleStickBoxData(e,d),a.series.push(this.twoDSeries),a.labels.push(this.twoDSeriesX),a.seriesX.push(this.twoDSeriesX),a.seriesGoals=this.seriesGoals,d!==this.activeSeriesIndex||this.fallbackToCategory||(a.isXNumeric=!0);else{"datetime"===r.xaxis.type?(a.isXNumeric=!0,u(),a.seriesX.push(this.twoDSeriesX)):"numeric"===r.xaxis.type&&(a.isXNumeric=!0,s.length>0&&(this.twoDSeriesX=s,a.seriesX.push(this.twoDSeriesX))),a.labels.push(this.twoDSeriesX);var h=e[d].data.map((function(e){return y.parseNumber(e)}));a.series.push(h)}a.seriesZ.push(this.threeDSeries),void 0!==e[d].name?a.seriesNames.push(e[d].name):a.seriesNames.push("series-"+parseInt(d+1,10)),void 0!==e[d].color?a.seriesColors.push(e[d].color):a.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,n=this.w.config;t.series=e.slice(),t.seriesNames=n.labels.slice();for(var i=0;i<t.series.length;i++)void 0===t.seriesNames[i]&&t.seriesNames.push("series-"+(i+1));return this.w}},{key:"handleExternalLabelsData",value:function(e){var t=this.w.config,n=this.w.globals;t.xaxis.categories.length>0?n.labels=t.xaxis.categories:t.labels.length>0?n.labels=t.labels.slice():this.fallbackToCategory?(n.labels=n.labels[0],n.seriesRange.length&&(n.seriesRange.map((function(e){e.forEach((function(e){n.labels.indexOf(e.x)<0&&e.x&&n.labels.push(e.x)}))})),n.labels=Array.from(new Set(n.labels.map(JSON.stringify)),JSON.parse)),t.xaxis.convertedCatToNumeric&&(new j(t).convertCatToNumericXaxis(t,this.ctx,n.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,n=this.w.config,i=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var r=n.series.map((function(e,t){return e.data.filter((function(e,t,n){return n.findIndex((function(t){return t.x===e.x}))===t}))})),a=r.reduce((function(e,t,n,i){return i[e].length>t.length?e:n}),0),o=0;o<r[a].length;o++)i.push(o+1);else for(var s=0;s<t.series[t.maxValsInArrayIndex].length;s++)i.push(s+1);t.seriesX=[];for(var l=0;l<e.length;l++)t.seriesX.push(i);this.w.globals.isBarHorizontal||(t.isXNumeric=!0)}if(0===i.length){i=t.axisCharts?[]:t.series.map((function(e,t){return t+1}));for(var c=0;c<e.length;c++)t.seriesX.push(i)}t.labels=i,n.xaxis.convertedCatToNumeric&&(t.categoryLabels=i.map((function(e){return n.xaxis.labels.formatter(e)}))),t.noLabelsProvided=!0}},{key:"parseData",value:function(e){var t=this.w,n=t.config,i=t.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),i.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),n.chart.stacked){var r=new B(this.ctx);i.series=r.setNullSeriesToZeroValues(i.series)}this.coreUtils.getSeriesTotals(),i.axisCharts&&(i.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals()),this.coreUtils.getPercentSeries(),i.dataFormatXNumeric||i.isXNumeric&&("numeric"!==n.xaxis.type||0!==n.labels.length||0!==n.xaxis.categories.length)||this.handleExternalLabelsData(e);for(var a=this.coreUtils.getCategoryLabels(i.labels),o=0;o<a.length;o++)if(Array.isArray(a[o])){i.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this,t=this.w;t.globals.ignoreYAxisIndexes=t.globals.collapsedSeries.map((function(n,i){if(e.w.globals.isMultipleYAxis&&!t.config.chart.stacked)return n.index}))}}]),e}(),W=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"getLabel",value:function(e,t,n,i){var r,a,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],c=this.w,u=void 0===e[i]?"":e[i],d=u,h=c.globals.xLabelFormatter,f=c.config.xaxis.labels.formatter,p=!1,m=new O(this.ctx),g=u;l&&(d=m.xLabelFormat(h,u,g,{i,dateFormatter:new D(this.ctx).formatDate,w:c}),void 0!==f&&(d=f(u,e[i],{i,dateFormatter:new D(this.ctx).formatDate,w:c}))),t.length>0?(r=t[i].unit,a=null,t.forEach((function(e){"month"===e.unit?a="year":"day"===e.unit?a="month":"hour"===e.unit?a="day":"minute"===e.unit&&(a="hour")})),p=a===r,n=t[i].position,d=t[i].value):"datetime"===c.config.xaxis.type&&void 0===f&&(d=""),void 0===d&&(d=""),d=Array.isArray(d)?d:d.toString();var _,v=new x(this.ctx);_=c.globals.rotateXLabels&&l?v.getTextRects(d,parseInt(s,10),null,"rotate(".concat(c.config.xaxis.labels.rotate," 0 0)"),!1):v.getTextRects(d,parseInt(s,10));var y=!c.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(d)&&(0===d.indexOf("NaN")||0===d.toLowerCase().indexOf("invalid")||d.toLowerCase().indexOf("infinity")>=0||o.indexOf(d)>=0&&y)&&(d=""),{x:n,text:d,textRect:_,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,n){var i=this.w,r=i.config.xaxis.tickAmount;return"dataPoints"===r&&(r=Math.round(i.globals.gridWidth/120)),r>n||e%Math.round(n/(r+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,n,i,r){var a=this.w;if(0===e&&a.globals.skipFirstTimelinelabel&&(t.text=""),e===n-1&&a.globals.skipLastTimelinelabel&&(t.text=""),a.config.xaxis.labels.hideOverlappingLabels&&i.length>0){var o=r[r.length-1];t.x<o.textRect.width/(a.globals.rotateXLabels?Math.abs(a.config.xaxis.labels.rotate)/12:1.01)+o.x&&(t.text="")}return t}},{key:"checkForReversedLabels",value:function(e,t){var n=this.w;return n.config.yaxis[e]&&n.config.yaxis[e].reversed&&t.reverse(),t}},{key:"isYAxisHidden",value:function(e){var t=this.w,n=new k(this.ctx);return!t.config.yaxis[e].show||!t.config.yaxis[e].showForNullSeries&&n.isSeriesNull(e)&&-1===t.globals.collapsedSeriesIndices.indexOf(e)}},{key:"getYAxisForeColor",value:function(e,t){var n=this.w;return Array.isArray(e)&&n.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(e,n.globals.yAxisScale[t].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,t,n,i,r,a,o){var s=this.w,l=new x(this.ctx),c=s.globals.translateY;if(i.show&&t>0){!0===s.config.yaxis[r].opposite&&(e+=i.width);for(var u=t;u>=0;u--){var d=c+t/10+s.config.yaxis[r].labels.offsetY-1;s.globals.isBarHorizontal&&(d=a*u),"heatmap"===s.config.chart.type&&(d+=a/2);var h=l.drawLine(e+n.offsetX-i.width+i.offsetX,d+i.offsetY,e+n.offsetX+i.offsetX,d+i.offsetY,i.color);o.add(h),c+=a}}}}]),e}(),U=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"scaleSvgNode",value:function(e,t){var n=parseFloat(e.getAttributeNS(null,"width")),i=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",n*t),e.setAttributeNS(null,"height",i*t),e.setAttributeNS(null,"viewBox","0 0 "+n+" "+i)}},{key:"fixSvgStringForIe11",value:function(e){if(!y.isIE11())return e.replace(/&nbsp;/g,"&#160;");var t=0,n=e.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,(function(e){return 2==++t?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':e}));return(n=n.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(e){null==e&&(e=1);var t=this.w.globals.dom.Paper.svg();if(1!==e){var n=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(n,e),t=(new XMLSerializer).serializeToString(n)}return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),n=e.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(i,(function(e){e.setAttribute("width",0)})),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),n&&n[0]&&(n[0].setAttribute("y",-100),n[0].setAttribute("y1",-100),n[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var e=this.getSvgString(),t=new Blob([e],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(t)}},{key:"dataURI",value:function(e){var t=this;return new Promise((function(n){var i=t.w,r=e?e.scale||e.width/i.globals.svgWidth:1;t.cleanup();var a=document.createElement("canvas");a.width=i.globals.svgWidth*r,a.height=parseInt(i.globals.dom.elWrap.style.height,10)*r;var o="transparent"===i.config.chart.background?"#fff":i.config.chart.background,s=a.getContext("2d");s.fillStyle=o,s.fillRect(0,0,a.width*r,a.height*r);var l=t.getSvgString(r);if(window.canvg&&y.isIE11()){var c=window.canvg.Canvg.fromString(s,l,{ignoreClear:!0,ignoreDimensions:!0});c.start();var u=a.msToBlob();c.stop(),n({blob:u})}else{var d="data:image/svg+xml,"+encodeURIComponent(l),h=new Image;h.crossOrigin="anonymous",h.onload=function(){if(s.drawImage(h,0,0),a.msToBlob){var e=a.msToBlob();n({blob:e})}else{var t=a.toDataURL("image/png");n({imgURI:t})}},h.src=d}}))}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var e=this;this.dataURI().then((function(t){var n=t.imgURI,i=t.blob;i?navigator.msSaveOrOpenBlob(i,e.w.globals.chartID+".png"):e.triggerDownload(n,e.w.config.chart.toolbar.export.png.filename,".png")}))}},{key:"exportToCSV",value:function(e){var t=this,n=e.series,i=e.fileName,r=e.columnDelimiter,a=void 0===r?",":r,o=e.lineDelimiter,s=void 0===o?"\n":o,l=this.w;n||(n=l.config.series);var c=[],u=[],d="",h=l.globals.series.map((function(e,t){return-1===l.globals.collapsedSeriesIndices.indexOf(t)?e:[]})),f=Math.max.apply(Math,g(n.map((function(e){return e.data?e.data.length:0})))),p=new $(this.ctx),m=new W(this.ctx),_=function(e){var n="";if(l.globals.axisCharts){if("category"===l.config.xaxis.type||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var i=l.globals.yLabelFormatters[0],r=new B(t.ctx).getActiveConfigSeriesIndex();n=i(l.globals.labels[e],{seriesIndex:r,dataPointIndex:e,w:l})}else n=m.getLabel(l.globals.labels,l.globals.timescaleLabels,0,e).text;"datetime"===l.config.xaxis.type&&(l.config.xaxis.categories.length?n=l.config.xaxis.categories[e]:l.config.labels.length&&(n=l.config.labels[e]))}else n=l.config.labels[e];return Array.isArray(n)&&(n=n.join(" ")),y.isNumber(n)?n:n.split(a).join("")};c.push(l.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===l.config.chart.type?(c.push("minimum"),c.push("q1"),c.push("median"),c.push("q3"),c.push("maximum")):"candlestick"===l.config.chart.type?(c.push("open"),c.push("high"),c.push("low"),c.push("close")):"rangeBar"===l.config.chart.type?(c.push("minimum"),c.push("maximum")):n.map((function(e,t){var n=(e.name?e.name:"series-".concat(t))+"";l.globals.axisCharts&&c.push(n.split(a).join("")?n.split(a).join(""):"series-".concat(t))})),l.globals.axisCharts||(c.push(l.config.chart.toolbar.export.csv.headerValue),u.push(c.join(a))),n.map((function(e,t){l.globals.axisCharts?function(e,t){if(c.length&&0===t&&u.push(c.join(a)),e.data){e.data=e.data.length&&e.data||g(Array(f)).map((function(){return""}));for(var i=0;i<e.data.length;i++){c=[];var r=_(i);if(r||(p.isFormatXY()?r=n[t].data[i].x:p.isFormat2DArray()&&(r=n[t].data[i]?n[t].data[i][0]:"")),0===t){c.push((d=r,"datetime"===l.config.xaxis.type&&String(d).length>=10?l.config.chart.toolbar.export.csv.dateFormatter(r):y.isNumber(r)?r:r.split(a).join("")));for(var o=0;o<l.globals.series.length;o++){var s;p.isFormatXY()?c.push(null===(s=n[o].data[i])||void 0===s?void 0:s.y):c.push(h[o][i])}}("candlestick"===l.config.chart.type||e.type&&"candlestick"===e.type)&&(c.pop(),c.push(l.globals.seriesCandleO[t][i]),c.push(l.globals.seriesCandleH[t][i]),c.push(l.globals.seriesCandleL[t][i]),c.push(l.globals.seriesCandleC[t][i])),("boxPlot"===l.config.chart.type||e.type&&"boxPlot"===e.type)&&(c.pop(),c.push(l.globals.seriesCandleO[t][i]),c.push(l.globals.seriesCandleH[t][i]),c.push(l.globals.seriesCandleM[t][i]),c.push(l.globals.seriesCandleL[t][i]),c.push(l.globals.seriesCandleC[t][i])),"rangeBar"===l.config.chart.type&&(c.pop(),c.push(l.globals.seriesRangeStart[t][i]),c.push(l.globals.seriesRangeEnd[t][i])),c.length&&u.push(c.join(a))}}var d}(e,t):((c=[]).push(l.globals.labels[t].split(a).join("")),c.push(h[t]),u.push(c.join(a)))})),d+=u.join(s),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+d),i||l.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,t,n){var i=document.createElement("a");i.href=e,i.download=(t||this.w.globals.chartID)+n,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}]),e}(),V=function(){function e(t,n){s(this,e),this.ctx=t,this.elgrid=n,this.w=t.w;var i=this.w;this.axesUtils=new W(t),this.xaxisLabels=i.globals.labels.slice(),i.globals.timescaleLabels.length>0&&!i.globals.isBarHorizontal&&(this.xaxisLabels=i.globals.timescaleLabels.slice()),i.config.xaxis.overwriteCategories&&(this.xaxisLabels=i.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===i.config.xaxis.position?this.offY=0:this.offY=i.globals.gridHeight+1,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===i.config.chart.type&&i.config.plotOptions.bar.horizontal,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.xaxisBorderWidth=i.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=i.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=i.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=i.config.xaxis.axisBorder.height,this.yaxis=i.config.yaxis[0]}return c(e,[{key:"drawXaxis",value:function(){var e=this.w,t=new x(this.ctx),n=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),i=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});n.add(i);for(var r=[],a=0;a<this.xaxisLabels.length;a++)r.push(this.xaxisLabels[a]);if(this.drawXAxisLabelAndGroup(!0,t,i,r,e.globals.isXNumeric,(function(e,t){return t})),e.globals.hasXaxisGroups){var o=e.globals.groups;r=[];for(var s=0;s<o.length;s++)r.push(o[s].title);var l={};e.config.xaxis.group.style&&(l.xaxisFontSize=e.config.xaxis.group.style.fontSize,l.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,l.xaxisForeColors=e.config.xaxis.group.style.colors,l.fontWeight=e.config.xaxis.group.style.fontWeight,l.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,i,r,!1,(function(e,t){return o[e].cols*t}),l)}if(void 0!==e.config.xaxis.title.text){var c=t.group({class:"apexcharts-xaxis-title"}),u=t.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+("bottom"===e.config.xaxis.position?e.globals.xAxisLabelsHeight:-e.globals.xAxisLabelsHeight-10)+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});c.add(u),n.add(c)}if(e.config.xaxis.axisBorder.show){var d=e.globals.barPadForNumericAxis,h=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-d,this.offY,this.xaxisBorderWidth+d,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(h):n.add(h)}return n}},{key:"drawXAxisLabelAndGroup",value:function(e,t,n,i,r,a){var o,s=this,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},c=[],u=[],d=this.w,h=l.xaxisFontSize||this.xaxisFontSize,f=l.xaxisFontFamily||this.xaxisFontFamily,p=l.xaxisForeColors||this.xaxisForeColors,m=l.fontWeight||d.config.xaxis.labels.style.fontWeight,g=l.cssClass||d.config.xaxis.labels.style.cssClass,_=d.globals.padHorizontal,v=i.length,y="category"===d.config.xaxis.type?d.globals.dataPoints:v;if(0===y&&v>y&&(y=v),r){var b=y>1?y-1:y;o=d.globals.gridWidth/Math.min(b,v-1),_=_+a(0,o)/2+d.config.xaxis.labels.offsetX}else o=d.globals.gridWidth/y,_=_+a(0,o)+d.config.xaxis.labels.offsetX;for(var w=function(r){var l=_-a(r,o)/2+d.config.xaxis.labels.offsetX;0===r&&1===v&&o/2===_&&1===y&&(l=d.globals.gridWidth/2);var b=s.axesUtils.getLabel(i,d.globals.timescaleLabels,l,r,c,h,e),w=28;if(d.globals.rotateXLabels&&e&&(w=22),d.config.xaxis.title.text&&"top"===d.config.xaxis.position&&(w+=parseFloat(d.config.xaxis.title.style.fontSize)+2),e||(w=w+parseFloat(h)+(d.globals.xAxisLabelsHeight-d.globals.xAxisGroupLabelsHeight)+(d.globals.rotateXLabels?10:0)),b=void 0!==d.config.xaxis.tickAmount&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?s.axesUtils.checkLabelBasedOnTickamount(r,b,v):s.axesUtils.checkForOverflowingLabels(r,b,v,c,u),d.config.xaxis.labels.show){var x=t.drawText({x:b.x,y:s.offY+d.config.xaxis.labels.offsetY+w-("top"===d.config.xaxis.position?d.globals.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:b.text,textAnchor:"middle",fontWeight:b.isBold?600:m,fontSize:h,fontFamily:f,foreColor:Array.isArray(p)?e&&d.config.xaxis.convertedCatToNumeric?p[d.globals.minX+r-1]:p[r]:p,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+g});if(n.add(x),x.on("click",(function(e){if("function"==typeof d.config.chart.events.xAxisLabelClick){var t=Object.assign({},d,{labelIndex:r});d.config.chart.events.xAxisLabelClick(e,s.ctx,t)}})),e){var k=document.createElementNS(d.globals.SVGNS,"title");k.textContent=Array.isArray(b.text)?b.text.join(" "):b.text,x.node.appendChild(k),""!==b.text&&(c.push(b.text),u.push(b))}}r<v-1&&(_+=a(r+1,o))},x=0;x<=v-1;x++)w(x)}},{key:"drawXaxisInversed",value:function(e){var t,n,i=this,r=this.w,a=new x(this.ctx),o=r.config.yaxis[0].opposite?r.globals.translateYAxisX[e]:0,s=a.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),l=a.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+o+", 0)"});s.add(l);var c=[];if(r.config.yaxis[e].show)for(var u=0;u<this.xaxisLabels.length;u++)c.push(this.xaxisLabels[u]);t=r.globals.gridHeight/c.length,n=-t/2.2;var d=r.globals.yLabelFormatters[0],h=r.config.yaxis[0].labels;if(h.show)for(var f=function(o){var s=void 0===c[o]?"":c[o];s=d(s,{seriesIndex:e,dataPointIndex:o,w:r});var u=i.axesUtils.getYAxisForeColor(h.style.colors,e),f=0;Array.isArray(s)&&(f=s.length/2*parseInt(h.style.fontSize,10));var p=h.offsetX-15,m="end";i.yaxis.opposite&&(m="start"),"left"===r.config.yaxis[0].labels.align?(p=h.offsetX,m="start"):"center"===r.config.yaxis[0].labels.align?(p=h.offsetX,m="middle"):"right"===r.config.yaxis[0].labels.align&&(m="end");var g=a.drawText({x:p,y:n+t+h.offsetY-f,text:s,textAnchor:m,foreColor:Array.isArray(u)?u[o]:u,fontSize:h.style.fontSize,fontFamily:h.style.fontFamily,fontWeight:h.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+h.style.cssClass,maxWidth:h.maxWidth});l.add(g),g.on("click",(function(e){if("function"==typeof r.config.chart.events.xAxisLabelClick){var t=Object.assign({},r,{labelIndex:o});r.config.chart.events.xAxisLabelClick(e,i.ctx,t)}}));var _=document.createElementNS(r.globals.SVGNS,"title");if(_.textContent=Array.isArray(s)?s.join(" "):s,g.node.appendChild(_),0!==r.config.yaxis[e].labels.rotate){var v=a.rotateAroundCenter(g.node);g.node.setAttribute("transform","rotate(".concat(r.config.yaxis[e].labels.rotate," 0 ").concat(v.y,")"))}n+=t},p=0;p<=c.length-1;p++)f(p);if(void 0!==r.config.yaxis[0].title.text){var m=a.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+o+", 0)"}),g=a.drawText({x:r.config.yaxis[0].title.offsetX,y:r.globals.gridHeight/2+r.config.yaxis[0].title.offsetY,text:r.config.yaxis[0].title.text,textAnchor:"middle",foreColor:r.config.yaxis[0].title.style.color,fontSize:r.config.yaxis[0].title.style.fontSize,fontWeight:r.config.yaxis[0].title.style.fontWeight,fontFamily:r.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+r.config.yaxis[0].title.style.cssClass});m.add(g),s.add(m)}var _=0;this.isCategoryBarHorizontal&&r.config.yaxis[0].opposite&&(_=r.globals.gridWidth);var v=r.config.xaxis.axisBorder;if(v.show){var y=a.drawLine(r.globals.padHorizontal+v.offsetX+_,1+v.offsetY,r.globals.padHorizontal+v.offsetX+_,r.globals.gridHeight+v.offsetY,v.color,0);this.elgrid&&this.elgrid.elGridBorders&&r.config.grid.show?this.elgrid.elGridBorders.add(y):s.add(y)}return r.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(_,c.length,r.config.yaxis[0].axisBorder,r.config.yaxis[0].axisTicks,0,t,s),s}},{key:"drawXaxisTicks",value:function(e,t,n){var i=this.w,r=e;if(!(e<0||e-2>i.globals.gridWidth)){var a=this.offY+i.config.xaxis.axisTicks.offsetY;if(t=t+a+i.config.xaxis.axisTicks.height,"top"===i.config.xaxis.position&&(t=a-i.config.xaxis.axisTicks.height),i.config.xaxis.axisTicks.show){var o=new x(this.ctx).drawLine(e+i.config.xaxis.axisTicks.offsetX,a+i.config.xaxis.offsetY,r+i.config.xaxis.axisTicks.offsetX,t+i.config.xaxis.offsetY,i.config.xaxis.axisTicks.color);n.add(o),o.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],n=this.xaxisLabels.length,i=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var r=0;r<n;r++)i=this.xaxisLabels[r].position,t.push(i);else for(var a=n,o=0;o<a;o++){var s=a;e.globals.isXNumeric&&"bar"!==e.config.chart.type&&(s-=1),i+=e.globals.gridWidth/s,t.push(i)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new x(this.ctx),n=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var o=0;o<i.length;o++){var s=t.rotateAroundCenter(i[o]);s.y=s.y-1,s.x=s.x+1,i[o].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(s.x," ").concat(s.y,")")),i[o].setAttribute("text-anchor","end"),n.setAttribute("transform","translate(0, ".concat(-10,")"));var l=i[o].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(l,(function(n){t.placeTextWithEllipsis(n,n.textContent,e.globals.xAxisLabelsHeight-("bottom"===e.config.legend.position?20:10))}))}else!function(){for(var n=e.globals.gridWidth/(e.globals.labels.length+1),r=0;r<i.length;r++){var a=i[r].childNodes;e.config.xaxis.labels.trim&&"datetime"!==e.config.xaxis.type&&Array.prototype.forEach.call(a,(function(e){t.placeTextWithEllipsis(e,e.textContent,n)}))}}();if(r.length>0){var c=r[r.length-1].getBBox(),u=r[0].getBBox();c.x<-20&&r[r.length-1].parentNode.removeChild(r[r.length-1]),u.x+u.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&r[0].parentNode.removeChild(r[0]);for(var d=0;d<a.length;d++)t.placeTextWithEllipsis(a[d],a[d].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),e}(),X=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.xaxisLabels=n.globals.labels.slice(),this.axesUtils=new W(t),this.isRangeBar=n.globals.seriesRange.length&&n.globals.isBarHorizontal,n.globals.timescaleLabels.length>0&&(this.xaxisLabels=n.globals.timescaleLabels.slice())}return c(e,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w,n=new x(this.ctx);null===e&&(e=n.group({class:"apexcharts-grid"}));var i=n.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),r=n.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(r),e.add(i),e}},{key:"drawGrid",value:function(){var e=null;return this.w.globals.axisCharts&&(e=this.renderGrid(),this.drawGridArea(e.el)),e}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,n=new x(this.ctx),i=Array.isArray(e.config.stroke.width)?0:e.config.stroke.width;if(Array.isArray(e.config.stroke.width)){var r=0;e.config.stroke.width.forEach((function(e){r=Math.max(r,e)})),i=r}t.dom.elGridRectMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elForecastMask.setAttribute("id","forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(t.cuid));var a=e.config.chart.type,o=0,s=0;("bar"===a||"rangeBar"===a||"candlestick"===a||"boxPlot"===a||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(o=e.config.grid.padding.left,s=e.config.grid.padding.right,t.barPadForNumericAxis>o&&(o=t.barPadForNumericAxis,s=t.barPadForNumericAxis)),t.dom.elGridRect=n.drawRect(-i-o-2,2*-i-2,t.gridWidth+i+s+o+4,t.gridHeight+4*i+4,0,"#fff");var l=e.globals.markers.largestSize+1;t.dom.elGridRectMarker=n.drawRect(2*-l,2*-l,t.gridWidth+4*l,t.gridHeight+4*l,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var c=t.dom.baseEl.querySelector("defs");c.appendChild(t.dom.elGridRectMask),c.appendChild(t.dom.elForecastMask),c.appendChild(t.dom.elNonForecastMask),c.appendChild(t.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=e.xCount,s=e.parent,l=this.w;if(!(0===t&&l.globals.skipFirstTimelinelabel||t===o-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:n,y1:i,x2:r,y2:a,xCount:o,parent:s});var c=0;if(l.globals.hasXaxisGroups&&"between"===l.config.xaxis.tickPlacement){var u=l.globals.groups;if(u){for(var d=0,h=0;d<t&&h<u.length;h++)d+=u[h].cols;d===t&&(c=.6*l.globals.xAxisLabelsHeight)}}new V(this.ctx).drawXaxisTicks(n,c,l.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(e){var t=e.i,n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=e.xCount,s=e.parent,l=this.w,c=!1,u=s.node.classList.contains("apexcharts-gridlines-horizontal"),d=l.config.grid.strokeDashArray,h=l.globals.barPadForNumericAxis;(0===i&&0===a||0===n&&0===r)&&(c=!0),i===l.globals.gridHeight&&a===l.globals.gridHeight&&(c=!0),!l.globals.isBarHorizontal||0!==t&&t!==o-1||(c=!0);var f=new x(this).drawLine(n-(u?h:0),i,r+(u?h:0),a,l.config.grid.borderColor,d);f.node.classList.add("apexcharts-gridline"),c&&l.config.grid.show?this.elGridBorders.add(f):s.add(f)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=e.type,s=this.w,l=new x(this.ctx),c=s.globals.barPadForNumericAxis;if("column"!==o||"datetime"!==s.config.xaxis.type){var u=s.config.grid[o].colors[t],d=l.drawRect(n-("row"===o?c:0),i,r+("row"===o?2*c:0),a,0,u,s.config.grid[o].opacity);this.elg.add(d),d.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),d.node.classList.add("apexcharts-grid-".concat(o))}}},{key:"_drawXYLines",value:function(e){var t=this,n=e.xCount,i=e.tickAmount,r=this.w;if(r.config.grid.xaxis.lines.show||r.config.xaxis.axisTicks.show){var a,o=r.globals.padHorizontal,s=r.globals.gridHeight;r.globals.timescaleLabels.length?function(e){for(var i=e.xC,r=e.x1,a=e.y1,o=e.x2,s=e.y2,l=0;l<i;l++)r=t.xaxisLabels[l].position,o=t.xaxisLabels[l].position,t._drawGridLines({i:l,x1:r,y1:a,x2:o,y2:s,xCount:n,parent:t.elgridLinesV})}({xC:n,x1:o,y1:0,x2:a,y2:s}):(r.globals.isXNumeric&&(n=r.globals.xAxisScale.result.length),function(e){for(var i=e.xC,a=e.x1,o=e.y1,s=e.x2,l=e.y2,c=0;c<i+(r.globals.isXNumeric?0:1);c++)0===c&&1===i&&1===r.globals.dataPoints&&(s=a=r.globals.gridWidth/2),t._drawGridLines({i:c,x1:a,y1:o,x2:s,y2:l,xCount:n,parent:t.elgridLinesV}),s=a+=r.globals.gridWidth/(r.globals.isXNumeric?i-1:i)}({xC:n,x1:o,y1:0,x2:a,y2:s}))}if(r.config.grid.yaxis.lines.show){var l=0,c=0,u=r.globals.gridWidth,d=i+1;this.isRangeBar&&(d=r.globals.labels.length);for(var h=0;h<d+(this.isRangeBar?1:0);h++)this._drawGridLine({i:h,xCount:d+(this.isRangeBar?1:0),x1:0,y1:l,x2:u,y2:c,parent:this.elgridLinesH}),c=l+=r.globals.gridHeight/(this.isRangeBar?d:i)}}},{key:"_drawInvertedXYLines",value:function(e){var t=e.xCount,n=this.w;if(n.config.grid.xaxis.lines.show||n.config.xaxis.axisTicks.show)for(var i,r=n.globals.padHorizontal,a=n.globals.gridHeight,o=0;o<t+1;o++)n.config.grid.xaxis.lines.show&&this._drawGridLine({i:o,xCount:t+1,x1:r,y1:0,x2:i,y2:a,parent:this.elgridLinesV}),new V(this.ctx).drawXaxisTicks(r,0,n.globals.dom.elGraphical),i=r=r+n.globals.gridWidth/t+.3;if(n.config.grid.yaxis.lines.show)for(var s=0,l=0,c=n.globals.gridWidth,u=0;u<n.globals.dataPoints+1;u++)this._drawGridLine({i:u,xCount:n.globals.dataPoints+1,x1:0,y1:s,x2:c,y2:l,parent:this.elgridLinesH}),l=s+=n.globals.gridHeight/n.globals.dataPoints}},{key:"renderGrid",value:function(){var e=this.w,t=new x(this.ctx);this.elg=t.group({class:"apexcharts-grid"}),this.elgridLinesH=t.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=t.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=t.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),e.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var n,i=e.globals.yAxisScale.length?e.globals.yAxisScale[0].result.length-1:5,r=0;r<e.globals.series.length&&(void 0!==e.globals.yAxisScale[r]&&(i=e.globals.yAxisScale[r].result.length-1),!(i>2));r++);return!e.globals.isBarHorizontal||this.isRangeBar?(n=this.xaxisLabels.length,this.isRangeBar&&(n--,i=e.globals.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(n=e.config.xaxis.tickAmount)),this._drawXYLines({xCount:n,tickAmount:i})):(n=i,i=e.globals.xTickAmount,this._drawInvertedXYLines({xCount:n,tickAmount:i})),this.drawGridBands(n,i),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:e.globals.gridWidth/n}}},{key:"drawGridBands",value:function(e,t){var n=this.w;if(void 0!==n.config.grid.row.colors&&n.config.grid.row.colors.length>0)for(var i=0,r=n.globals.gridHeight/t,a=n.globals.gridWidth,o=0,s=0;o<t;o++,s++)s>=n.config.grid.row.colors.length&&(s=0),this._drawGridBandRect({c:s,x1:0,y1:i,x2:a,y2:r,type:"row"}),i+=n.globals.gridHeight/t;if(void 0!==n.config.grid.column.colors&&n.config.grid.column.colors.length>0)for(var l=n.globals.isBarHorizontal||"on"!==n.config.xaxis.tickPlacement||"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric?e:e-1,c=n.globals.padHorizontal,u=n.globals.padHorizontal+n.globals.gridWidth/l,d=n.globals.gridHeight,h=0,f=0;h<e;h++,f++)f>=n.config.grid.column.colors.length&&(f=0),this._drawGridBandRect({c:f,x1:c,y1:0,x2:u,y2:d,type:"column"}),c+=n.globals.gridWidth/l}}]),e}(),G=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"niceScale",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4?arguments[4]:void 0,a=this.w,o=Math.abs(t-e);if("dataPoints"===(n=this._adjustTicksForSmallRange(n,i,o))&&(n=a.globals.dataPoints-1),e===Number.MIN_VALUE&&0===t||!y.isNumber(e)&&!y.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)return e=0,t=n,this.linearScale(e,t,n);e>t?(console.warn("axis.min cannot be greater than axis.max"),t=e+.1):e===t&&(e=0===e?0:e-.5,t=0===t?2:t+.5);var s=[];o<1&&r&&("candlestick"===a.config.chart.type||"candlestick"===a.config.series[i].type||"boxPlot"===a.config.chart.type||"boxPlot"===a.config.series[i].type||a.globals.isRangeData)&&(t*=1.01);var l=n+1;l<2?l=2:l>2&&(l-=2);var c=o/l,u=Math.floor(y.log10(c)),d=Math.pow(10,u),h=Math.round(c/d);h<1&&(h=1);var f=h*d,p=f*Math.floor(e/f),m=f*Math.ceil(t/f),g=p;if(r&&o>2){for(;s.push(y.stripNumber(g,7)),!((g+=f)>m););return{result:s,niceMin:s[0],niceMax:s[s.length-1]}}var _=e;(s=[]).push(y.stripNumber(_,7));for(var v=Math.abs(t-e)/n,b=0;b<=n;b++)_+=v,s.push(_);return s[s.length-2]>=t&&s.pop(),{result:s,niceMin:s[0],niceMax:s[s.length-1]}}},{key:"linearScale",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,i=arguments.length>3?arguments[3]:void 0,r=Math.abs(t-e);"dataPoints"===(n=this._adjustTicksForSmallRange(n,i,r))&&(n=this.w.globals.dataPoints-1);var a=r/n;n===Number.MAX_VALUE&&(n=10,a=1);for(var o=[],s=e;n>=0;)o.push(s),s+=a,n-=1;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,n){t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n));for(var i=[],r=Math.ceil(Math.log(t)/Math.log(n)+1),a=Math.floor(Math.log(e)/Math.log(n));a<r;a++)i.push(Math.pow(n,a));return{result:i,niceMin:i[0],niceMax:i[i.length-1]}}},{key:"logarithmicScale",value:function(e,t,n){t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n));for(var i=[],r=Math.log(t)/Math.log(n),a=Math.log(e)/Math.log(n),o=r-a,s=Math.round(o),l=o/s,c=0,u=a;c<s;c++,u+=l)i.push(Math.pow(n,u));return i.push(Math.pow(n,r)),{result:i,niceMin:e,niceMax:t}}},{key:"_adjustTicksForSmallRange",value:function(e,t,n){var i=e;if(void 0!==t&&this.w.config.yaxis[t].labels.formatter&&void 0===this.w.config.yaxis[t].tickAmount){var r=Number(this.w.config.yaxis[t].labels.formatter(1));y.isNumber(r)&&0===this.w.globals.yValueDecimal&&(i=Math.ceil(n))}return i<e?i:e}},{key:"setYScaleForIndex",value:function(e,t,n){var i=this.w.globals,r=this.w.config,a=i.isBarHorizontal?r.xaxis:r.yaxis[e];void 0===i.yAxisScale[e]&&(i.yAxisScale[e]=[]);var o=Math.abs(n-t);if(a.logarithmic&&o<=5&&(i.invalidLogScale=!0),a.logarithmic&&o>5)i.allSeriesCollapsed=!1,i.yAxisScale[e]=this.logarithmicScale(t,n,a.logBase),i.yAxisScale[e]=a.forceNiceScale?this.logarithmicScaleNice(t,n,a.logBase):this.logarithmicScale(t,n,a.logBase);else if(n!==-Number.MAX_VALUE&&y.isNumber(n))if(i.allSeriesCollapsed=!1,void 0===a.min&&void 0===a.max||a.forceNiceScale){var s=void 0===r.yaxis[e].max&&void 0===r.yaxis[e].min||r.yaxis[e].forceNiceScale;i.yAxisScale[e]=this.niceScale(t,n,a.tickAmount?a.tickAmount:o<5&&o>1?o+1:5,e,s)}else i.yAxisScale[e]=this.linearScale(t,n,a.tickAmount,e);else i.yAxisScale[e]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(e,t){var n=this.w,i=n.globals,r=n.config.xaxis,a=Math.abs(t-e);return t!==-Number.MAX_VALUE&&y.isNumber(t)?i.xAxisScale=this.linearScale(e,t,r.tickAmount?r.tickAmount:a<5&&a>1?a+1:5,0):i.xAxisScale=this.linearScale(0,5,5),i.xAxisScale}},{key:"setMultipleYScales",value:function(){var e=this,t=this.w.globals,n=this.w.config,i=t.minYArr.concat([]),r=t.maxYArr.concat([]),a=[];n.yaxis.forEach((function(t,o){var s=o;n.series.forEach((function(e,n){e.name===t.seriesName&&(s=n,o!==n?a.push({index:n,similarIndex:o,alreadyExists:!0}):a.push({index:n}))}));var l=i[s],c=r[s];e.setYScaleForIndex(o,l,c)})),this.sameScaleInMultipleAxes(i,r,a)}},{key:"sameScaleInMultipleAxes",value:function(e,t,n){var i=this,r=this.w.config,a=this.w.globals,o=[];n.forEach((function(e){e.alreadyExists&&(void 0===o[e.index]&&(o[e.index]=[]),o[e.index].push(e.index),o[e.index].push(e.similarIndex))})),a.yAxisSameScaleIndices=o,o.forEach((function(e,t){o.forEach((function(n,i){var r,a;t!==i&&(r=e,a=n,r.filter((function(e){return-1!==a.indexOf(e)}))).length>0&&(o[t]=o[t].concat(o[i]))}))}));var s=o.map((function(e){return e.filter((function(t,n){return e.indexOf(t)===n}))})).map((function(e){return e.sort()}));o=o.filter((function(e){return!!e}));var l=s.slice(),c=l.map((function(e){return JSON.stringify(e)}));l=l.filter((function(e,t){return c.indexOf(JSON.stringify(e))===t}));var u=[],d=[];e.forEach((function(e,n){l.forEach((function(i,r){i.indexOf(n)>-1&&(void 0===u[r]&&(u[r]=[],d[r]=[]),u[r].push({key:n,value:e}),d[r].push({key:n,value:t[n]}))}))}));var h=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),f=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);u.forEach((function(e,t){e.forEach((function(e,n){h[t]=Math.min(e.value,h[t])}))})),d.forEach((function(e,t){e.forEach((function(e,n){f[t]=Math.max(e.value,f[t])}))})),e.forEach((function(e,t){d.forEach((function(e,n){var o=h[n],s=f[n];r.chart.stacked&&(s=0,e.forEach((function(e,t){e.value!==-Number.MAX_VALUE&&(s+=e.value),o!==Number.MIN_VALUE&&(o+=u[n][t].value)}))),e.forEach((function(n,l){e[l].key===t&&(void 0!==r.yaxis[t].min&&(o="function"==typeof r.yaxis[t].min?r.yaxis[t].min(a.minY):r.yaxis[t].min),void 0!==r.yaxis[t].max&&(s="function"==typeof r.yaxis[t].max?r.yaxis[t].max(a.maxY):r.yaxis[t].max),i.setYScaleForIndex(t,o,s))}))}))}))}},{key:"autoScaleY",value:function(e,t,n){e||(e=this);var i=e.w;if(i.globals.isMultipleYAxis||i.globals.collapsedSeries.length)return console.warn("autoScaleYaxis not supported in a multi-yaxis chart."),t;var r=i.globals.seriesX[0],a=i.config.chart.stacked;return t.forEach((function(e,o){for(var s=0,l=0;l<r.length;l++)if(r[l]>=n.xaxis.min){s=l;break}var c,u,d=i.globals.minYArr[o],h=i.globals.maxYArr[o],f=i.globals.stackedSeriesTotals;i.globals.series.forEach((function(o,l){var p=o[s];a?(p=f[s],c=u=p,f.forEach((function(e,t){r[t]<=n.xaxis.max&&r[t]>=n.xaxis.min&&(e>u&&null!==e&&(u=e),o[t]<c&&null!==o[t]&&(c=o[t]))}))):(c=u=p,o.forEach((function(e,t){if(r[t]<=n.xaxis.max&&r[t]>=n.xaxis.min){var a=e,o=e;i.globals.series.forEach((function(n,i){null!==e&&(a=Math.min(n[t],a),o=Math.max(n[t],o))})),o>u&&null!==o&&(u=o),a<c&&null!==a&&(c=a)}}))),void 0===c&&void 0===u&&(c=d,u=h),u*=u<0?.9:1.1,0==(c*=c<0?1.1:.9)&&0===u&&(c=-1,u=1),u<0&&u<h&&(u=h),c<0&&c>d&&(c=d),t.length>1?(t[l].min=void 0===e.min?c:e.min,t[l].max=void 0===e.max?u:e.max):(t[0].min=void 0===e.min?c:e.min,t[0].max=void 0===e.max?u:e.max)}))})),t}}]),e}(),J=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.scales=new G(t)}return c(e,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=this.w.config,a=this.w.globals,o=-Number.MAX_VALUE,s=Number.MIN_VALUE;null===i&&(i=e+1);var l=a.series,c=l,u=l;"candlestick"===r.chart.type?(c=a.seriesCandleL,u=a.seriesCandleH):"boxPlot"===r.chart.type?(c=a.seriesCandleO,u=a.seriesCandleC):a.isRangeData&&(c=a.seriesRangeStart,u=a.seriesRangeEnd);for(var d=e;d<i;d++){a.dataPoints=Math.max(a.dataPoints,l[d].length),a.categoryLabels.length&&(a.dataPoints=a.categoryLabels.filter((function(e){return void 0!==e})).length),a.labels.length&&"datetime"!==r.xaxis.type&&0!==a.series.reduce((function(e,t){return e+t.length}),0)&&(a.dataPoints=Math.max(a.dataPoints,a.labels.length));for(var h=0;h<a.series[d].length;h++){var f=l[d][h];null!==f&&y.isNumber(f)?(void 0!==u[d][h]&&(o=Math.max(o,u[d][h]),t=Math.min(t,u[d][h])),void 0!==c[d][h]&&(t=Math.min(t,c[d][h]),n=Math.max(n,c[d][h])),"candlestick"!==this.w.config.chart.type&&"boxPlot"!==this.w.config.chart.type&&"rangeArea"===this.w.config.chart.type&&"rangeBar"===this.w.config.chart.type||("candlestick"!==this.w.config.chart.type&&"boxPlot"!==this.w.config.chart.type||void 0!==a.seriesCandleC[d][h]&&(o=Math.max(o,a.seriesCandleO[d][h]),o=Math.max(o,a.seriesCandleH[d][h]),o=Math.max(o,a.seriesCandleL[d][h]),o=Math.max(o,a.seriesCandleC[d][h]),"boxPlot"===this.w.config.chart.type&&(o=Math.max(o,a.seriesCandleM[d][h]))),!r.series[d].type||"candlestick"===r.series[d].type&&"boxPlot"===r.series[d].type&&"rangeArea"===r.series[d].type&&"rangeBar"===r.series[d].type||(o=Math.max(o,a.series[d][h]),t=Math.min(t,a.series[d][h])),n=o),a.seriesGoals[d]&&a.seriesGoals[d][h]&&Array.isArray(a.seriesGoals[d][h])&&a.seriesGoals[d][h].forEach((function(e){s!==Number.MIN_VALUE&&(s=Math.min(s,e.value),t=s),o=Math.max(o,e.value),n=o})),y.isFloat(f)&&(f=y.noExponents(f),a.yValueDecimal=Math.max(a.yValueDecimal,f.toString().split(".")[1].length)),s>c[d][h]&&c[d][h]<0&&(s=c[d][h])):a.hasNullValues=!0}}return"rangeBar"===r.chart.type&&a.seriesRangeStart.length&&a.isBarHorizontal&&(s=t),"bar"===r.chart.type&&(s<0&&o<0&&(o=0),s===Number.MIN_VALUE&&(s=0)),{minY:s,maxY:o,lowestY:t,highestY:n}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var n=Number.MAX_VALUE;if(e.isMultipleYAxis)for(var i=0;i<e.series.length;i++){var r=this.getMinYMaxY(i,n,null,i+1);e.minYArr.push(r.minY),e.maxYArr.push(r.maxY),n=r.lowestY}var a=this.getMinYMaxY(0,n,null,e.series.length);if(e.minY=a.minY,e.maxY=a.maxY,n=a.lowestY,t.chart.stacked&&this._setStackedMinMax(),("line"===t.chart.type||"area"===t.chart.type||"candlestick"===t.chart.type||"boxPlot"===t.chart.type||"rangeBar"===t.chart.type&&!e.isBarHorizontal)&&e.minY===Number.MIN_VALUE&&n!==-Number.MAX_VALUE&&n!==e.maxY){var o=e.maxY-n;(n>=0&&n<=10||void 0!==t.yaxis[0].min||void 0!==t.yaxis[0].max)&&(o=0),e.minY=n-5*o/100,n>0&&e.minY<0&&(e.minY=0),e.maxY=e.maxY+5*o/100}return t.yaxis.forEach((function(t,n){void 0!==t.max&&("number"==typeof t.max?e.maxYArr[n]=t.max:"function"==typeof t.max&&(e.maxYArr[n]=t.max(e.isMultipleYAxis?e.maxYArr[n]:e.maxY)),e.maxY=e.maxYArr[n]),void 0!==t.min&&("number"==typeof t.min?e.minYArr[n]=t.min:"function"==typeof t.min&&(e.minYArr[n]=t.min(e.isMultipleYAxis?e.minYArr[n]===Number.MIN_VALUE?0:e.minYArr[n]:e.minY)),e.minY=e.minYArr[n])})),e.isBarHorizontal&&["min","max"].forEach((function(n){void 0!==t.xaxis[n]&&"number"==typeof t.xaxis[n]&&("min"===n?e.minY=t.xaxis[n]:e.maxY=t.xaxis[n])})),e.isMultipleYAxis?(this.scales.setMultipleYScales(),e.minY=n,e.yAxisScale.forEach((function(t,n){e.minYArr[n]=t.niceMin,e.maxYArr[n]=t.niceMax}))):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.yAxisScale[0].niceMin,e.maxYArr[0]=e.yAxisScale[0].niceMax),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,n="numeric"===t.xaxis.type||"datetime"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var t=0;t<e.series.length;t++)if(e.labels[t])for(var n=0;n<e.labels[t].length;n++)null!==e.labels[t][n]&&y.isNumber(e.labels[t][n])&&(e.maxX=Math.max(e.maxX,e.labels[t][n]),e.initialMaxX=Math.max(e.maxX,e.labels[t][n]),e.minX=Math.min(e.minX,e.labels[t][n]),e.initialMinX=Math.min(e.minX,e.labels[t][n]))}(),e.noLabelsProvided&&0===t.xaxis.categories.length&&(e.maxX=e.labels[e.labels.length-1],e.initialMaxX=e.labels[e.labels.length-1],e.minX=1,e.initialMinX=1),e.isXNumeric||e.noLabelsProvided||e.dataFormatXNumeric){var i;if(void 0===t.xaxis.tickAmount?(i=Math.round(e.svgWidth/150),"numeric"===t.xaxis.type&&e.dataPoints<30&&(i=e.dataPoints-1),i>e.dataPoints&&0!==e.dataPoints&&(i=e.dataPoints-1)):"dataPoints"===t.xaxis.tickAmount?(e.series.length>1&&(i=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric&&(i=e.maxX-e.minX-1)):i=t.xaxis.tickAmount,e.xTickAmount=i,void 0!==t.xaxis.max&&"number"==typeof t.xaxis.max&&(e.maxX=t.xaxis.max),void 0!==t.xaxis.min&&"number"==typeof t.xaxis.min&&(e.minX=t.xaxis.min),void 0!==t.xaxis.range&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var r=[],a=e.minX-1;a<e.maxX;a++)r.push(a+1);e.xAxisScale={result:r,niceMin:r[0],niceMax:r[r.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(0,i,i),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,i-1),e.seriesX=e.labels.slice());n&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ)for(var t=0;t<e.series.length;t++)if(void 0!==e.seriesZ[t])for(var n=0;n<e.seriesZ[t].length;n++)null!==e.seriesZ[t][n]&&y.isNumber(e.seriesZ[t][n])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[t][n]),e.minZ=Math.min(e.minZ,e.seriesZ[t][n]))}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){var n=new D(this.ctx);if("datetime"===t.xaxis.type){var i=n.getDate(e.minX);t.xaxis.labels.datetimeUTC?i.setUTCDate(i.getUTCDate()-2):i.setDate(i.getDate()-2),e.minX=new Date(i).getTime();var r=n.getDate(e.maxX);t.xaxis.labels.datetimeUTC?r.setUTCDate(r.getUTCDate()+2):r.setDate(r.getDate()+2),e.maxX=new Date(r).getTime()}else("numeric"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}},{key:"_getMinXDiff",value:function(){var e=this.w.globals;e.isXNumeric&&e.seriesX.forEach((function(t,n){1===t.length&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var i=t.slice();i.sort((function(e,t){return e-t})),i.forEach((function(t,n){if(n>0){var r=t-i[n-1];r>0&&(e.minXDiff=Math.min(r,e.minXDiff))}})),1!==e.dataPoints&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)}))}},{key:"_setStackedMinMax",value:function(){var e=this,t=this.w.globals;if(t.series.length){var n=t.seriesGroups;n.length||(n=[this.w.config.series.map((function(e){return e.name}))]);var i={},r={};n.forEach((function(n){i[n]=[],r[n]=[],e.w.config.series.map((function(e,t){return n.indexOf(e.name)>-1?t:null})).filter((function(e){return null!==e})).forEach((function(e){for(var a=0;a<t.series[t.maxValsInArrayIndex].length;a++)void 0===i[n][a]&&(i[n][a]=0,r[n][a]=0),null!==t.series[e][a]&&y.isNumber(t.series[e][a])&&(t.series[e][a]>0?i[n][a]+=parseFloat(t.series[e][a])+1e-4:r[n][a]+=parseFloat(t.series[e][a]))}))})),Object.entries(i).forEach((function(e){var n=m(e,1)[0];i[n].forEach((function(e,a){t.maxY=Math.max(t.maxY,i[n][a]),t.minY=Math.min(t.minY,r[n][a])}))}))}}}]),e}(),Q=function(){function e(t,n){s(this,e),this.ctx=t,this.elgrid=n,this.w=t.w;var i=this.w;this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.axisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===i.config.chart.type&&i.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===i.config.xaxis.position&&(this.xAxisoffX=i.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new W(t)}return c(e,[{key:"drawYaxis",value:function(e){var t=this,n=this.w,i=new x(this.ctx),r=n.config.yaxis[e].labels.style,a=r.fontSize,o=r.fontFamily,s=r.fontWeight,l=i.group({class:"apexcharts-yaxis",rel:e,transform:"translate("+n.globals.translateYAxisX[e]+", 0)"});if(this.axesUtils.isYAxisHidden(e))return l;var c=i.group({class:"apexcharts-yaxis-texts-g"});l.add(c);var u=n.globals.yAxisScale[e].result.length-1,d=n.globals.gridHeight/u,h=n.globals.translateY,f=n.globals.yLabelFormatters[e],p=n.globals.yAxisScale[e].result.slice();p=this.axesUtils.checkForReversedLabels(e,p);var m="";if(n.config.yaxis[e].labels.show)for(var g=function(l){var g=p[l];g=f(g,l,n);var _=n.config.yaxis[e].labels.padding;n.config.yaxis[e].opposite&&0!==n.config.yaxis.length&&(_*=-1);var v="end";n.config.yaxis[e].opposite&&(v="start"),"left"===n.config.yaxis[e].labels.align?v="start":"center"===n.config.yaxis[e].labels.align?v="middle":"right"===n.config.yaxis[e].labels.align&&(v="end");var y=t.axesUtils.getYAxisForeColor(r.colors,e),b=n.config.yaxis[e].labels.offsetY;"heatmap"===n.config.chart.type&&(b-=(n.globals.gridHeight/n.globals.series.length-1)/2);var w=i.drawText({x:_,y:h+u/10+b+1,text:g,textAnchor:v,fontSize:a,fontFamily:o,fontWeight:s,maxWidth:n.config.yaxis[e].labels.maxWidth,foreColor:Array.isArray(y)?y[l]:y,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+r.cssClass});l===u&&(m=w),c.add(w);var x=document.createElementNS(n.globals.SVGNS,"title");if(x.textContent=Array.isArray(g)?g.join(" "):g,w.node.appendChild(x),0!==n.config.yaxis[e].labels.rotate){var k=i.rotateAroundCenter(m.node),A=i.rotateAroundCenter(w.node);w.node.setAttribute("transform","rotate(".concat(n.config.yaxis[e].labels.rotate," ").concat(k.x," ").concat(A.y,")"))}h+=d},_=u;_>=0;_--)g(_);if(void 0!==n.config.yaxis[e].title.text){var v=i.group({class:"apexcharts-yaxis-title"}),y=0;n.config.yaxis[e].opposite&&(y=n.globals.translateYAxisX[e]);var b=i.drawText({x:y,y:n.globals.gridHeight/2+n.globals.translateY+n.config.yaxis[e].title.offsetY,text:n.config.yaxis[e].title.text,textAnchor:"end",foreColor:n.config.yaxis[e].title.style.color,fontSize:n.config.yaxis[e].title.style.fontSize,fontWeight:n.config.yaxis[e].title.style.fontWeight,fontFamily:n.config.yaxis[e].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+n.config.yaxis[e].title.style.cssClass});v.add(b),l.add(v)}var w=n.config.yaxis[e].axisBorder,k=31+w.offsetX;if(n.config.yaxis[e].opposite&&(k=-31-w.offsetX),w.show){var A=i.drawLine(k,n.globals.translateY+w.offsetY-2,k,n.globals.gridHeight+n.globals.translateY+w.offsetY+2,w.color,0,w.width);l.add(A)}return n.config.yaxis[e].axisTicks.show&&this.axesUtils.drawYAxisTicks(k,u,w,n.config.yaxis[e].axisTicks,e,d,l),l}},{key:"drawYaxisInversed",value:function(e){var t=this.w,n=new x(this.ctx),i=n.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),r=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(r);var a=t.globals.yAxisScale[e].result.length-1,o=t.globals.gridWidth/a+.1,s=o+t.config.xaxis.labels.offsetX,l=t.globals.xLabelFormatter,c=t.globals.yAxisScale[e].result.slice(),u=t.globals.timescaleLabels;u.length>0&&(this.xaxisLabels=u.slice(),a=(c=u.slice()).length),c=this.axesUtils.checkForReversedLabels(e,c);var d=u.length;if(t.config.xaxis.labels.show)for(var h=d?0:a;d?h<d:h>=0;d?h++:h--){var f=c[h];f=l(f,h,t);var p=t.globals.gridWidth+t.globals.padHorizontal-(s-o+t.config.xaxis.labels.offsetX);if(u.length){var m=this.axesUtils.getLabel(c,u,p,h,this.drawnLabels,this.xaxisFontSize);p=m.x,f=m.text,this.drawnLabels.push(m.text),0===h&&t.globals.skipFirstTimelinelabel&&(f=""),h===c.length-1&&t.globals.skipLastTimelinelabel&&(f="")}var g=n.drawText({x:p,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-("top"===t.config.xaxis.position?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:f,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+t.config.xaxis.labels.style.cssClass});r.add(g),g.tspan(f);var _=document.createElementNS(t.globals.SVGNS,"title");_.textContent=f,g.node.appendChild(_),s+=o}return this.inversedYAxisTitleText(i),this.inversedYAxisBorder(i),i}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,n=new x(this.ctx),i=t.config.xaxis.axisBorder;if(i.show){var r=0;"bar"===t.config.chart.type&&t.globals.isXNumeric&&(r-=15);var a=n.drawLine(t.globals.padHorizontal+r+i.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,i.color,0,i.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(a):e.add(a)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,n=new x(this.ctx);if(void 0!==t.config.xaxis.title.text){var i=n.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),r=n.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});i.add(r),e.add(i)}}},{key:"yAxisTitleRotate",value:function(e,t){var n=this.w,i=new x(this.ctx),r={width:0,height:0},a={width:0,height:0},o=n.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g"));null!==o&&(r=o.getBoundingClientRect());var s=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text"));if(null!==s&&(a=s.getBoundingClientRect()),null!==s){var l=this.xPaddingForYAxisTitle(e,r,a,t);s.setAttribute("x",l.xPos-(t?10:0))}if(null!==s){var c=i.rotateAroundCenter(s);s.setAttribute("transform","rotate(".concat(t?-1*n.config.yaxis[e].title.rotate:n.config.yaxis[e].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,n,i){var r=this.w,a=0,o=0,s=10;return void 0===r.config.yaxis[e].title.text||e<0?{xPos:o,padd:0}:(i?(o=t.width+r.config.yaxis[e].title.offsetX+n.width/2+s/2,0===(a+=1)&&(o-=s/2)):(o=-1*t.width+r.config.yaxis[e].title.offsetX+s/2+n.width/2,r.globals.isBarHorizontal&&(s=25,o=-1*t.width-r.config.yaxis[e].title.offsetX-s)),{xPos:o,padd:s})}},{key:"setYAxisXPosition",value:function(e,t){var n=this.w,i=0,r=0,a=18,o=1;n.config.yaxis.length>1&&(this.multipleYs=!0),n.config.yaxis.map((function(s,l){var c=n.globals.ignoreYAxisIndexes.indexOf(l)>-1||!s.show||s.floating||0===e[l].width,u=e[l].width+t[l].width;s.opposite?n.globals.isBarHorizontal?(r=n.globals.gridWidth+n.globals.translateX-1,n.globals.translateYAxisX[l]=r-s.labels.offsetX):(r=n.globals.gridWidth+n.globals.translateX+o,c||(o=o+u+20),n.globals.translateYAxisX[l]=r-s.labels.offsetX+20):(i=n.globals.translateX-a,c||(a=a+u+20),n.globals.translateYAxisX[l]=i+s.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(t=y.listToArray(t)).forEach((function(t,n){var i=e.config.yaxis[n];if(i&&!i.floating&&void 0!==i.labels.align){var r=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-texts-g")),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-label"));a=y.listToArray(a);var o=r.getBoundingClientRect();"left"===i.labels.align?(a.forEach((function(e,t){e.setAttribute("text-anchor","start")})),i.opposite||r.setAttribute("transform","translate(-".concat(o.width,", 0)"))):"center"===i.labels.align?(a.forEach((function(e,t){e.setAttribute("text-anchor","middle")})),r.setAttribute("transform","translate(".concat(o.width/2*(i.opposite?1:-1),", 0)"))):"right"===i.labels.align&&(a.forEach((function(e,t){e.setAttribute("text-anchor","end")})),i.opposite&&r.setAttribute("transform","translate(".concat(o.width,", 0)")))}}))}}]),e}(),K=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.documentEvent=y.bind(this.documentEvent,this)}return c(e,[{key:"addEventListener",value:function(e,t){var n=this.w;n.globals.events.hasOwnProperty(e)?n.globals.events[e].push(t):n.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var n=this.w;if(n.globals.events.hasOwnProperty(e)){var i=n.globals.events[e].indexOf(t);-1!==i&&n.globals.events[e].splice(i,1)}}},{key:"fireEvent",value:function(e,t){var n=this.w;if(n.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var i=n.globals.events[e],r=i.length,a=0;a<r;a++)i[a].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var e=this,t=this.w,n=this.ctx,i=t.globals.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach((function(e){i.addEventListener(e,(function(e){var i=Object.assign({},t,{seriesIndex:t.globals.capturedSeriesIndex,dataPointIndex:t.globals.capturedDataPointIndex});"mousemove"===e.type||"touchmove"===e.type?"function"==typeof t.config.chart.events.mouseMove&&t.config.chart.events.mouseMove(e,n,i):"mouseleave"===e.type||"touchleave"===e.type?"function"==typeof t.config.chart.events.mouseLeave&&t.config.chart.events.mouseLeave(e,n,i):("mouseup"===e.type&&1===e.which||"touchend"===e.type)&&("function"==typeof t.config.chart.events.click&&t.config.chart.events.click(e,n,i),n.ctx.events.fireEvent("click",[e,n,i]))}),{capture:!1,passive:!0})})),this.ctx.eventList.forEach((function(n){t.globals.dom.baseEl.addEventListener(n,e.documentEvent,{passive:!0})})),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var t=this.w,n=e.target.className;if("click"===e.type){var i=t.globals.dom.baseEl.querySelector(".apexcharts-menu");i&&i.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==n&&i.classList.remove("apexcharts-menu-open")}t.globals.clientX="touchmove"===e.type?e.touches[0].clientX:e.clientX,t.globals.clientY="touchmove"===e.type?e.touches[0].clientY:e.clientY}}]),e}(),Z=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"setCurrentLocaleValues",value:function(e){var t=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var n=t.filter((function(t){return t.name===e}))[0];if(!n)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var i=y.extend(L,n);this.w.globals.locale=i.options}}]),e}(),ee=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"drawAxis",value:function(e,t){var n,i,r=this,a=this.w.globals,o=this.w.config,s=new V(this.ctx,t),l=new Q(this.ctx,t);a.axisCharts&&"radar"!==e&&(a.isBarHorizontal?(i=l.drawYaxisInversed(0),n=s.drawXaxisInversed(0),a.dom.elGraphical.add(n),a.dom.elGraphical.add(i)):(n=s.drawXaxis(),a.dom.elGraphical.add(n),o.yaxis.map((function(e,t){if(-1===a.ignoreYAxisIndexes.indexOf(t)&&(i=l.drawYaxis(t),a.dom.Paper.add(i),"back"===r.w.config.grid.position)){var n=a.dom.Paper.children()[1];n.remove(),a.dom.Paper.add(n)}}))))}}]),e}(),te=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new x(this.ctx),n=new w(this.ctx),i=e.config.xaxis.crosshairs.fill.gradient,r=e.config.xaxis.crosshairs.dropShadow,a=e.config.xaxis.crosshairs.fill.type,o=i.colorFrom,s=i.colorTo,l=i.opacityFrom,c=i.opacityTo,u=i.stops,d=r.enabled,h=r.left,f=r.top,p=r.blur,m=r.color,g=r.opacity,_=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){"gradient"===a&&(_=t.drawGradient("vertical",o,s,l,c,null,u,null));var v=t.drawRect();1===e.config.xaxis.crosshairs.width&&(v=t.drawLine());var b=e.globals.gridHeight;(!y.isNumber(b)||b<0)&&(b=0);var k=e.config.xaxis.crosshairs.width;(!y.isNumber(k)||k<0)&&(k=0),v.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:b,width:k,height:b,fill:_,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),d&&(v=n.dropShadow(v,{left:h,top:f,blur:p,color:m,opacity:g})),e.globals.dom.elGraphical.add(v)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new x(this.ctx),n=e.config.yaxis[0].crosshairs,i=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var r=t.drawLine(-i,0,e.globals.gridWidth+i,0,n.stroke.color,n.stroke.dashArray,n.stroke.width);r.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(r)}var a=t.drawLine(-i,0,e.globals.gridWidth+i,0,n.stroke.color,0,0);a.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(a)}}]),e}(),ne=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"checkResponsiveConfig",value:function(e){var t=this,n=this.w,i=n.config;if(0!==i.responsive.length){var r=i.responsive.slice();r.sort((function(e,t){return e.breakpoint>t.breakpoint?1:t.breakpoint>e.breakpoint?-1:0})).reverse();var a=new I({}),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r[0].breakpoint,o=window.innerWidth>0?window.innerWidth:screen.width;if(o>i){var s=k.extendArrayProps(a,n.globals.initialConfig,n);e=y.extend(s,e),e=y.extend(n.config,e),t.overrideResponsiveOptions(e)}else for(var l=0;l<r.length;l++)o<r[l].breakpoint&&(e=k.extendArrayProps(a,r[l].options,n),e=y.extend(n.config,e),t.overrideResponsiveOptions(e))};if(e){var s=k.extendArrayProps(a,e,n);s=y.extend(n.config,s),o(s=y.extend(s,e))}else o({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new I(e).init({responsiveOverride:!0});this.w.config=t}}]),e}(),ie=function(){function e(t){s(this,e),this.ctx=t,this.colors=[],this.w=t.w;var n=this.w;this.isColorFn=!1,this.isHeatmapDistributed="treemap"===n.config.chart.type&&n.config.plotOptions.treemap.distributed||"heatmap"===n.config.chart.type&&n.config.plotOptions.heatmap.distributed,this.isBarDistributed=n.config.plotOptions.bar.distributed&&("bar"===n.config.chart.type||"rangeBar"===n.config.chart.type)}return c(e,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e,t=this,n=this.w,i=new y;if(n.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(n.config.theme.mode)),void 0===n.config.colors||0===(null===(e=n.config.colors)||void 0===e?void 0:e.length)?n.globals.colors=this.predefined():(n.globals.colors=n.config.colors,Array.isArray(n.config.colors)&&n.config.colors.length>0&&"function"==typeof n.config.colors[0]&&(n.globals.colors=n.config.series.map((function(e,i){var r=n.config.colors[i];return r||(r=n.config.colors[0]),"function"==typeof r?(t.isColorFn=!0,r({value:n.globals.axisCharts?n.globals.series[i][0]?n.globals.series[i][0]:0:n.globals.series[i],seriesIndex:i,dataPointIndex:i,w:n})):r})))),n.globals.seriesColors.map((function(e,t){e&&(n.globals.colors[t]=e)})),n.config.theme.monochrome.enabled){var r=[],a=n.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(a=n.globals.series[0].length*n.globals.series.length);for(var o=n.config.theme.monochrome.color,s=1/(a/n.config.theme.monochrome.shadeIntensity),l=n.config.theme.monochrome.shadeTo,c=0,u=0;u<a;u++){var d=void 0;"dark"===l?(d=i.shadeColor(-1*c,o),c+=s):(d=i.shadeColor(c,o),c+=s),r.push(d)}n.globals.colors=r.slice()}var h=n.globals.colors.slice();this.pushExtraColors(n.globals.colors),["fill","stroke"].forEach((function(e){void 0===n.config[e].colors?n.globals[e].colors=t.isColorFn?n.config.colors:h:n.globals[e].colors=n.config[e].colors.slice(),t.pushExtraColors(n.globals[e].colors)})),void 0===n.config.dataLabels.style.colors?n.globals.dataLabels.style.colors=h:n.globals.dataLabels.style.colors=n.config.dataLabels.style.colors.slice(),this.pushExtraColors(n.globals.dataLabels.style.colors,50),void 0===n.config.plotOptions.radar.polygons.fill.colors?n.globals.radarPolygons.fill.colors=["dark"===n.config.theme.mode?"#424242":"none"]:n.globals.radarPolygons.fill.colors=n.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(n.globals.radarPolygons.fill.colors,20),void 0===n.config.markers.colors?n.globals.markers.colors=h:n.globals.markers.colors=n.config.markers.colors.slice(),this.pushExtraColors(n.globals.markers.colors)}},{key:"pushExtraColors",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.w,r=t||i.globals.series.length;if(null===n&&(n=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===i.config.chart.type&&i.config.plotOptions.heatmap.colorScale.inverse),n&&i.globals.series.length&&(r=i.globals.series[i.globals.maxValsInArrayIndex].length*i.globals.series.length),e.length<r)for(var a=r-e.length,o=0;o<a;o++)e.push(e[o])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode||"light",n=e.theme.palette?e.theme.palette:"dark"===t?"palette4":"palette1",i=e.chart.foreColor?e.chart.foreColor:"dark"===t?"#f6f7f8":"#373d3f";return e.tooltip.theme=t,e.chart.foreColor=i,e.theme.palette=n,e}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}return this.colors}}]),e}(),re=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var t=this.w,n="title"===e?t.config.title:t.config.subtitle,i=t.globals.svgWidth/2,r=n.offsetY,a="middle";if("left"===n.align?(i=10,a="start"):"right"===n.align&&(i=t.globals.svgWidth-10,a="end"),i+=n.offsetX,r=r+parseInt(n.style.fontSize,10)+n.margin/2,void 0!==n.text){var o=new x(this.ctx).drawText({x:i,y:r,text:n.text,textAnchor:a,fontSize:n.style.fontSize,fontFamily:n.style.fontFamily,fontWeight:n.style.fontWeight,foreColor:n.style.color,opacity:1});o.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(o)}}}]),e}(),ae=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return c(e,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,n=0,i=0,r="title"===e?t.config.title.floating:t.config.subtitle.floating,a=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(null!==a&&!r){var o=a.getBoundingClientRect();n=o.width,i=t.globals.axisCharts?o.height+5:o.height}return{width:n,height:i}}},{key:"getLegendsRect",value:function(){var e=this.w,t=e.globals.dom.elLegendWrap;e.config.legend.height||"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||(t.style.maxHeight=e.globals.svgHeight/2+"px");var n=Object.assign({},y.getBoundingClientRect(t));return null!==t&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:n.x,y:n.y,height:n.height,width:0===n.height?0:n.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==e.config.legend.position&&"right"!==e.config.legend.position||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(e,t){var n=e;if(this.w.globals.isMultiLineX){var i=t.map((function(e,t){return Array.isArray(e)?e.length:1})),r=Math.max.apply(Math,g(i));n=t[i.indexOf(r)]}return n}}]),e}(),oe=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return c(e,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,n=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&0===n.length&&(n=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var i=this.getxAxisTimeScaleLabelsCoords();e={width:i.width,height:i.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==t.config.legend.position&&"right"!==t.config.legend.position||t.config.legend.floating?0:this.dCtx.lgRect.width;var r=t.globals.xLabelFormatter,a=y.getLargestStringFromArr(n),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,n);t.globals.isBarHorizontal&&(o=a=t.globals.yAxisScale[0].result.reduce((function(e,t){return e.length>t.length?e:t}),0));var s=new O(this.dCtx.ctx),l=a;a=s.xLabelFormat(r,a,l,{i:void 0,dateFormatter:new D(this.dCtx.ctx).formatDate,w:t}),o=s.xLabelFormat(r,o,l,{i:void 0,dateFormatter:new D(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&void 0===a||""===String(a).trim())&&(o=a="1");var c=new x(this.dCtx.ctx),u=c.getTextRects(a,t.config.xaxis.labels.style.fontSize),d=u;if(a!==o&&(d=c.getTextRects(o,t.config.xaxis.labels.style.fontSize)),(e={width:u.width>=d.width?u.width:d.width,height:u.height>=d.height?u.height:d.height}).width*n.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==t.config.xaxis.labels.rotate||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var h=function(e){return c.getTextRects(e,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};u=h(a),a!==o&&(d=h(o)),e.height=(u.height>d.height?u.height:d.height)/1.5,e.width=u.width>d.width?u.width:d.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,t=this.w;if(!t.globals.hasXaxisGroups)return{width:0,height:0};var n,i=(null===(e=t.config.xaxis.group.style)||void 0===e?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,r=t.globals.groups.map((function(e){return e.title})),a=y.getLargestStringFromArr(r),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,r),s=new x(this.dCtx.ctx),l=s.getTextRects(a,i),c=l;return a!==o&&(c=s.getTextRects(o,i)),n={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},t.config.xaxis.labels.show||(n={width:0,height:0}),{width:n.width,height:n.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,n=0;if(void 0!==e.config.xaxis.title.text){var i=new x(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=i.width,n=i.height}return{width:t,height:n}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var n=this.dCtx.timescaleLabels.map((function(e){return e.value})),i=n.reduce((function(e,t){return void 0===e?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):e.length>t.length?e:t}),0);return 1.05*(e=new x(this.dCtx.ctx).getTextRects(i,t.config.xaxis.labels.style.fontSize)).width*n.length>t.globals.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,n=this.w,i=n.globals,r=n.config,a=r.xaxis.type,o=e.width;i.skipLastTimelinelabel=!1,i.skipFirstTimelinelabel=!1;var s=n.config.yaxis[0].opposite&&n.globals.isBarHorizontal,l=function(e,s){r.yaxis.length>1&&function(e){return-1!==i.collapsedSeriesIndices.indexOf(e)}(s)||function(e){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var s=t.dCtx.timescaleLabels[0],l=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+o/1.75-t.dCtx.yAxisWidthRight,c=s.position-o/1.75+t.dCtx.yAxisWidthLeft,u="right"===n.config.legend.position&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;l>i.svgWidth-i.translateX-u&&(i.skipLastTimelinelabel=!0),c<-(e.show&&!e.floating||"bar"!==r.chart.type&&"candlestick"!==r.chart.type&&"rangeBar"!==r.chart.type&&"boxPlot"!==r.chart.type?10:o/1.75)&&(i.skipFirstTimelinelabel=!0)}else"datetime"===a?t.dCtx.gridPad.right<o&&!i.rotateXLabels&&(i.skipLastTimelinelabel=!0):"datetime"!==a&&t.dCtx.gridPad.right<o/2-t.dCtx.yAxisWidthRight&&!i.rotateXLabels&&!n.config.xaxis.labels.trim&&("between"!==n.config.xaxis.tickPlacement||n.globals.isBarHorizontal)&&(t.dCtx.xPadRight=o/2+1)}(e)};r.yaxis.forEach((function(e,n){s?(t.dCtx.gridPad.left<o&&(t.dCtx.xPadLeft=o/2+1),t.dCtx.xPadRight=o/2+1):l(e,n)}))}}]),e}(),se=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return c(e,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,n=[],i=10,r=new W(this.dCtx.ctx);return t.config.yaxis.map((function(a,o){var s={seriesIndex:o,dataPointIndex:-1,w:t},l=t.globals.yAxisScale[o],c=0;if(!r.isYAxisHidden(o)&&a.labels.show&&void 0!==a.labels.minWidth&&(c=a.labels.minWidth),!r.isYAxisHidden(o)&&a.labels.show&&l.result.length){var u=t.globals.yLabelFormatters[o],d=l.niceMin===Number.MIN_VALUE?0:l.niceMin,h=l.result.reduce((function(e,t){var n,i;return(null===(n=String(u(e,s)))||void 0===n?void 0:n.length)>(null===(i=String(u(t,s)))||void 0===i?void 0:i.length)?e:t}),d),f=h=u(h,s);if(void 0!==h&&0!==h.length||(h=l.niceMax),t.globals.isBarHorizontal){i=0;var p=t.globals.labels.slice();h=y.getLargestStringFromArr(p),h=u(h,{seriesIndex:o,dataPointIndex:-1,w:t}),f=e.dCtx.dimHelpers.getLargestStringFromMultiArr(h,p)}var m=new x(e.dCtx.ctx),g="rotate(".concat(a.labels.rotate," 0 0)"),_=m.getTextRects(h,a.labels.style.fontSize,a.labels.style.fontFamily,g,!1),v=_;h!==f&&(v=m.getTextRects(f,a.labels.style.fontSize,a.labels.style.fontFamily,g,!1)),n.push({width:(c>v.width||c>_.width?c:v.width>_.width?v.width:_.width)+i,height:v.height>_.height?v.height:_.height})}else n.push({width:0,height:0})})),n}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,n=[];return t.config.yaxis.map((function(t,i){if(t.show&&void 0!==t.title.text){var r=new x(e.dCtx.ctx),a="rotate(".concat(t.title.rotate," 0 0)"),o=r.getTextRects(t.title.text,t.title.style.fontSize,t.title.style.fontFamily,a,!1);n.push({width:o.width,height:o.height})}else n.push({width:0,height:0})})),n}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,n=0,i=0,r=e.globals.yAxisScale.length>1?10:0,a=new W(this.dCtx.ctx),o=function(o,s){var l=e.config.yaxis[s].floating,c=0;o.width>0&&!l?(c=o.width+r,function(t){return e.globals.ignoreYAxisIndexes.indexOf(t)>-1}(s)&&(c=c-o.width-r)):c=l||a.isYAxisHidden(s)?0:5,e.config.yaxis[s].opposite?i+=c:n+=c,t+=c};return e.globals.yLabelsCoords.map((function(e,t){o(e,t)})),e.globals.yTitleCoords.map((function(e,t){o(e,t)})),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=n,this.dCtx.yAxisWidthRight=i,t}}]),e}(),le=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return c(e,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w;if(t.globals.noData||t.globals.allSeriesCollapsed)return 0;var n=function(e){return"bar"===e||"rangeBar"===e||"candlestick"===e||"boxPlot"===e},i=t.config.chart.type,r=0,a=n(i)?t.config.series.length:1;if(t.globals.comboBarCount>0&&(a=t.globals.comboBarCount),t.globals.collapsedSeries.forEach((function(e){n(e.type)&&(a-=1)})),t.config.chart.stacked&&(a=1),(n(i)||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&a>0){var o,s,l=Math.abs(t.globals.initialMaxX-t.globals.initialMinX);l<=3&&(l=t.globals.dataPoints),o=l/e,t.globals.minXDiff&&t.globals.minXDiff/o>0&&(s=t.globals.minXDiff/o),s>e/2&&(s/=2),(r=s/a*parseInt(t.config.plotOptions.bar.columnWidth,10)/100)<1&&(r=1),r=r/(a>1?1:1.5)+5,t.globals.barPadForNumericAxis=r}return r}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,n=t.globals,i=this.dCtx.isSparkline||!t.globals.axisCharts?0:10;["title","subtitle"].forEach((function(n){void 0!==t.config[n].text?i+=t.config[n].margin:i+=e.dCtx.isSparkline||!t.globals.axisCharts?0:5})),!t.config.legend.show||"bottom"!==t.config.legend.position||t.config.legend.floating||t.globals.axisCharts||(i+=10);var r=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),a=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");n.gridHeight=n.gridHeight-r.height-a.height-i,n.translateY=n.translateY+r.height+a.height+i}},{key:"setGridXPosForDualYAxis",value:function(e,t){var n=this.w,i=new W(this.dCtx.ctx);n.config.yaxis.map((function(r,a){-1!==n.globals.ignoreYAxisIndexes.indexOf(a)||r.floating||i.isYAxisHidden(a)||(r.opposite&&(n.globals.translateX=n.globals.translateX-(t[a].width+e[a].width)-parseInt(n.config.yaxis[a].labels.style.fontSize,10)/1.2-12),n.globals.translateX<2&&(n.globals.translateX=2))}))}}]),e}(),ce=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new ae(this),this.dimYAxis=new se(this),this.dimXAxis=new oe(this),this.dimGrid=new le(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return c(e,[{key:"plotCoords",value:function(){var e=this,t=this.w,n=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&((t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach((function(t){var n=m(t,2),i=n[0],r=n[1];e.gridPad[i]=Math.max(r,e.w.globals.markers.largestSize/1.5)})),this.gridPad.top=Math.max(t.config.stroke.width/2,this.gridPad.top),this.gridPad.bottom=Math.max(t.config.stroke.width/2,this.gridPad.bottom)),n.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),n.gridHeight=n.gridHeight-this.gridPad.top-this.gridPad.bottom,n.gridWidth=n.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var i=this.dimGrid.gridPadForColumnsInNumericAxis(n.gridWidth);n.gridWidth=n.gridWidth-2*i,n.translateX=n.translateX+this.gridPad.left+this.xPadLeft+(i>0?i+4:0),n.translateY=n.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,n=t.globals,i=this.dimYAxis.getyAxisLabelsCoords(),r=this.dimYAxis.getyAxisTitleCoords();t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map((function(e,n){t.globals.yLabelsCoords.push({width:i[n].width,index:n}),t.globals.yTitleCoords.push({width:r[n].width,index:n})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var a=this.dimXAxis.getxAxisLabelsCoords(),o=this.dimXAxis.getxAxisGroupLabelsCoords(),s=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(a,s,o),n.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,n.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(n.rotateXLabels=!1,n.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),n.translateXAxisY=n.translateXAxisY+t.config.xaxis.labels.offsetY,n.translateXAxisX=n.translateXAxisX+t.config.xaxis.labels.offsetX;var l=this.yAxisWidth,c=this.xAxisHeight;n.xAxisLabelsHeight=this.xAxisHeight-s.height,n.xAxisGroupLabelsHeight=n.xAxisLabelsHeight-a.height,n.xAxisLabelsWidth=this.xAxisWidth,n.xAxisHeight=this.xAxisHeight;var u=10;("radar"===t.config.chart.type||this.isSparkline)&&(l=0,c=n.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===t.config.chart.type)&&(l=0,c=0,u=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(a);var d=function(){n.translateX=l,n.gridHeight=n.svgHeight-e.lgRect.height-c-(e.isSparkline||"treemap"===t.config.chart.type?0:t.globals.rotateXLabels?10:15),n.gridWidth=n.svgWidth-l};switch("top"===t.config.xaxis.position&&(u=n.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":n.translateY=u,d();break;case"top":n.translateY=this.lgRect.height+u,d();break;case"left":n.translateY=u,n.translateX=this.lgRect.width+l,n.gridHeight=n.svgHeight-c-12,n.gridWidth=n.svgWidth-this.lgRect.width-l;break;case"right":n.translateY=u,n.translateX=l,n.gridHeight=n.svgHeight-c-12,n.gridWidth=n.svgWidth-this.lgRect.width-l-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(r,i),new Q(this.ctx).setYAxisXPosition(i,r)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=e.config,i=0;e.config.legend.show&&!e.config.legend.floating&&(i=20);var r="pie"===n.chart.type||"polarArea"===n.chart.type||"donut"===n.chart.type?"pie":"radialBar",a=n.plotOptions[r].offsetY,o=n.plotOptions[r].offsetX;if(!n.legend.show||n.legend.floating)return t.gridHeight=t.svgHeight-n.grid.padding.left+n.grid.padding.right,t.gridWidth=t.gridHeight,t.translateY=a,void(t.translateX=o+(t.svgWidth-t.gridWidth)/2);switch(n.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=a-10,t.translateX=o+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+a+10,t.translateX=o+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-i,t.gridHeight="auto"!==n.chart.height?t.svgHeight:t.gridWidth,t.translateY=a,t.translateX=o+this.lgRect.width+i;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-i-5,t.gridHeight="auto"!==n.chart.height?t.svgHeight:t.gridWidth,t.translateY=a,t.translateX=o+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,n){var i=this.w,r=i.globals.hasXaxisGroups?2:1,a=n.height+e.height+t.height,o=i.globals.isMultiLineX?1.2:i.globals.LINE_HEIGHT_RATIO,s=i.globals.rotateXLabels?22:10,l=i.globals.rotateXLabels&&"bottom"===i.config.legend.position?10:0;this.xAxisHeight=a*o+r*s+l,this.xAxisWidth=e.width,this.xAxisHeight-t.height>i.config.xaxis.labels.maxHeight&&(this.xAxisHeight=i.config.xaxis.labels.maxHeight),i.config.xaxis.labels.minHeight&&this.xAxisHeight<i.config.xaxis.labels.minHeight&&(this.xAxisHeight=i.config.xaxis.labels.minHeight),i.config.xaxis.floating&&(this.xAxisHeight=0);var c=0,u=0;i.config.yaxis.forEach((function(e){c+=e.labels.minWidth,u+=e.labels.maxWidth})),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>u&&(this.yAxisWidth=u)}}]),e}(),ue=function(){function e(t){s(this,e),this.w=t.w,this.lgCtx=t}return c(e,[{key:"getLegendStyles",value:function(){var e=document.createElement("style");e.setAttribute("type","text/css");var t=document.createTextNode("\t\n    \t\n      .apexcharts-legend {\t\n        display: flex;\t\n        overflow: auto;\t\n        padding: 0 10px;\t\n      }\t\n      .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\t\n        flex-wrap: wrap\t\n      }\t\n      .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\t\n        flex-direction: column;\t\n        bottom: 0;\t\n      }\t\n      .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\t\n        justify-content: flex-start;\t\n      }\t\n      .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\t\n        justify-content: center;  \t\n      }\t\n      .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\t\n        justify-content: flex-end;\t\n      }\t\n      .apexcharts-legend-series {\t\n        cursor: pointer;\t\n        line-height: normal;\t\n      }\t\n      .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{\t\n        display: flex;\t\n        align-items: center;\t\n      }\t\n      .apexcharts-legend-text {\t\n        position: relative;\t\n        font-size: 14px;\t\n      }\t\n      .apexcharts-legend-text *, .apexcharts-legend-marker * {\t\n        pointer-events: none;\t\n      }\t\n      .apexcharts-legend-marker {\t\n        position: relative;\t\n        display: inline-block;\t\n        cursor: pointer;\t\n        margin-right: 3px;\t\n        border-style: solid;\n      }\t\n      \t\n      .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\t\n        display: inline-block;\t\n      }\t\n      .apexcharts-legend-series.apexcharts-no-click {\t\n        cursor: auto;\t\n      }\t\n      .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\t\n        display: none !important;\t\n      }\t\n      .apexcharts-inactive-legend {\t\n        opacity: 0.45;\t\n      }");return e.appendChild(t),e}},{key:"getLegendBBox",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(e,t){var n=this,i=this.w;if(i.globals.axisCharts||"radialBar"===i.config.chart.type){i.globals.resized=!0;var r=null,a=null;i.globals.risingSeries=[],i.globals.axisCharts?(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),a=parseInt(r.getAttribute("data:realIndex"),10)):(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),a=parseInt(r.getAttribute("rel"),10)-1),t?[{cs:i.globals.collapsedSeries,csi:i.globals.collapsedSeriesIndices},{cs:i.globals.ancillaryCollapsedSeries,csi:i.globals.ancillaryCollapsedSeriesIndices}].forEach((function(e){n.riseCollapsedSeries(e.cs,e.csi,a)})):this.hideSeries({seriesEl:r,realIndex:a})}else{var o=i.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),s=i.config.chart.type;if("pie"===s||"polarArea"===s||"donut"===s){var l=i.config.plotOptions.pie.donut.labels;new x(this.lgCtx.ctx).pathMouseDown(o.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(o.members[0].node,l)}o.fire("click")}}},{key:"hideSeries",value:function(e){var t=e.seriesEl,n=e.realIndex,i=this.w,r=y.clone(i.config.series);if(i.globals.axisCharts){var a=!1;if(i.config.yaxis[n]&&i.config.yaxis[n].show&&i.config.yaxis[n].showAlways&&(a=!0,i.globals.ancillaryCollapsedSeriesIndices.indexOf(n)<0&&(i.globals.ancillaryCollapsedSeries.push({index:n,data:r[n].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),i.globals.ancillaryCollapsedSeriesIndices.push(n))),!a){i.globals.collapsedSeries.push({index:n,data:r[n].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),i.globals.collapsedSeriesIndices.push(n);var o=i.globals.risingSeries.indexOf(n);i.globals.risingSeries.splice(o,1)}}else i.globals.collapsedSeries.push({index:n,data:r[n]}),i.globals.collapsedSeriesIndices.push(n);for(var s=t.childNodes,l=0;l<s.length;l++)s[l].classList.contains("apexcharts-series-markers-wrap")&&(s[l].classList.contains("apexcharts-hide")?s[l].classList.remove("apexcharts-hide"):s[l].classList.add("apexcharts-hide"));i.globals.allSeriesCollapsed=i.globals.collapsedSeries.length===i.config.series.length,r=this._getSeriesBasedOnCollapsedState(r),this.lgCtx.ctx.updateHelpers._updateSeries(r,i.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,t,n){var i=this.w,r=y.clone(i.config.series);if(e.length>0){for(var a=0;a<e.length;a++)e[a].index===n&&(i.globals.axisCharts?(r[n].data=e[a].data.slice(),e.splice(a,1),t.splice(a,1),i.globals.risingSeries.push(n)):(r[n]=e[a].data,e.splice(a,1),t.splice(a,1),i.globals.risingSeries.push(n)));r=this._getSeriesBasedOnCollapsedState(r),this.lgCtx.ctx.updateHelpers._updateSeries(r,i.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var t=this.w;return t.globals.axisCharts?e.forEach((function(n,i){t.globals.collapsedSeriesIndices.indexOf(i)>-1&&(e[i].data=[])})):e.forEach((function(n,i){t.globals.collapsedSeriesIndices.indexOf(i)>-1&&(e[i]=0)})),e}}]),e}(),de=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new ue(this)}return c(e,[{key:"init",value:function(){var e=this.w,t=e.globals,n=e.config;if((n.legend.showForSingleSeries&&1===t.series.length||this.isBarsDistributed||t.series.length>1||!t.axisCharts)&&n.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),y.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===n.legend.position||"top"===n.legend.position?this.legendAlignHorizontal():"right"!==n.legend.position&&"left"!==n.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var e=this,t=this.w,n=t.config.legend.fontFamily,i=t.globals.seriesNames,r=t.globals.colors.slice();if("heatmap"===t.config.chart.type){var a=t.config.plotOptions.heatmap.colorScale.ranges;i=a.map((function(e){return e.name?e.name:e.from+" - "+e.to})),r=a.map((function(e){return e.color}))}else this.isBarsDistributed&&(i=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(i=t.config.legend.customLegendItems);for(var o=t.globals.legendFormatter,s=t.config.legend.inverseOrder,l=s?i.length-1:0;s?l>=0:l<=i.length-1;s?l--:l++){var c,u=o(i[l],{seriesIndex:l,w:t}),d=!1,h=!1;if(t.globals.collapsedSeries.length>0)for(var f=0;f<t.globals.collapsedSeries.length;f++)t.globals.collapsedSeries[f].index===l&&(d=!0);if(t.globals.ancillaryCollapsedSeriesIndices.length>0)for(var p=0;p<t.globals.ancillaryCollapsedSeriesIndices.length;p++)t.globals.ancillaryCollapsedSeriesIndices[p]===l&&(h=!0);var m=document.createElement("span");m.classList.add("apexcharts-legend-marker");var g=t.config.legend.markers.offsetX,_=t.config.legend.markers.offsetY,v=t.config.legend.markers.height,b=t.config.legend.markers.width,w=t.config.legend.markers.strokeWidth,A=t.config.legend.markers.strokeColor,S=t.config.legend.markers.radius,M=m.style;M.background=r[l],M.color=r[l],M.setProperty("background",r[l],"important"),t.config.legend.markers.fillColors&&t.config.legend.markers.fillColors[l]&&(M.background=t.config.legend.markers.fillColors[l]),void 0!==t.globals.seriesColors[l]&&(M.background=t.globals.seriesColors[l],M.color=t.globals.seriesColors[l]),M.height=Array.isArray(v)?parseFloat(v[l])+"px":parseFloat(v)+"px",M.width=Array.isArray(b)?parseFloat(b[l])+"px":parseFloat(b)+"px",M.left=(Array.isArray(g)?parseFloat(g[l]):parseFloat(g))+"px",M.top=(Array.isArray(_)?parseFloat(_[l]):parseFloat(_))+"px",M.borderWidth=Array.isArray(w)?w[l]:w,M.borderColor=Array.isArray(A)?A[l]:A,M.borderRadius=Array.isArray(S)?parseFloat(S[l])+"px":parseFloat(S)+"px",t.config.legend.markers.customHTML&&(Array.isArray(t.config.legend.markers.customHTML)?t.config.legend.markers.customHTML[l]&&(m.innerHTML=t.config.legend.markers.customHTML[l]()):m.innerHTML=t.config.legend.markers.customHTML()),x.setAttrs(m,{rel:l+1,"data:collapsed":d||h}),(d||h)&&m.classList.add("apexcharts-inactive-legend");var T=document.createElement("div"),L=document.createElement("span");L.classList.add("apexcharts-legend-text"),L.innerHTML=Array.isArray(u)?u.join(" "):u;var E=t.config.legend.labels.useSeriesColors?t.globals.colors[l]:Array.isArray(t.config.legend.labels.colors)?null===(c=t.config.legend.labels.colors)||void 0===c?void 0:c[l]:t.config.legend.labels.colors;E||(E=t.config.chart.foreColor),L.style.color=E,L.style.fontSize=parseFloat(t.config.legend.fontSize)+"px",L.style.fontWeight=t.config.legend.fontWeight,L.style.fontFamily=n||t.config.chart.fontFamily,x.setAttrs(L,{rel:l+1,i:l,"data:default-text":encodeURIComponent(u),"data:collapsed":d||h}),T.appendChild(m),T.appendChild(L);var C=new k(this.ctx);t.config.legend.showForZeroSeries||0===C.getSeriesTotalByIndex(l)&&C.seriesHaveSameValues(l)&&!C.isSeriesNull(l)&&-1===t.globals.collapsedSeriesIndices.indexOf(l)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&T.classList.add("apexcharts-hidden-zero-series"),t.config.legend.showForNullSeries||C.isSeriesNull(l)&&-1===t.globals.collapsedSeriesIndices.indexOf(l)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&T.classList.add("apexcharts-hidden-null-series"),t.globals.dom.elLegendWrap.appendChild(T),t.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(t.config.legend.horizontalAlign)),t.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+t.config.legend.position),T.classList.add("apexcharts-legend-series"),T.style.margin="".concat(t.config.legend.itemMargin.vertical,"px ").concat(t.config.legend.itemMargin.horizontal,"px"),t.globals.dom.elLegendWrap.style.width=t.config.legend.width?t.config.legend.width+"px":"",t.globals.dom.elLegendWrap.style.height=t.config.legend.height?t.config.legend.height+"px":"",x.setAttrs(T,{rel:l+1,seriesName:y.escapeString(i[l]),"data:collapsed":d||h}),(d||h)&&T.classList.add("apexcharts-inactive-legend"),t.config.legend.onItemClick.toggleDataSeries||T.classList.add("apexcharts-no-click")}t.globals.dom.elWrap.addEventListener("click",e.onLegendClick,!0),t.config.legend.onItemHover.highlightDataSeries&&0===t.config.legend.customLegendItems.length&&(t.globals.dom.elWrap.addEventListener("mousemove",e.onLegendHovered,!0),t.globals.dom.elWrap.addEventListener("mouseout",e.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(e,t){var n=this.w,i=n.globals.dom.elLegendWrap,r=i.getBoundingClientRect(),a=0,o=0;if("bottom"===n.config.legend.position)o+=n.globals.svgHeight-r.height/2;else if("top"===n.config.legend.position){var s=new ce(this.ctx),l=s.dimHelpers.getTitleSubtitleCoords("title").height,c=s.dimHelpers.getTitleSubtitleCoords("subtitle").height;o=o+(l>0?l-10:0)+(c>0?c-10:0)}i.style.position="absolute",a=a+e+n.config.legend.offsetX,o=o+t+n.config.legend.offsetY,i.style.left=a+"px",i.style.top=o+"px","bottom"===n.config.legend.position?(i.style.top="auto",i.style.bottom=5-n.config.legend.offsetY+"px"):"right"===n.config.legend.position&&(i.style.left="auto",i.style.right=25+n.config.legend.offsetX+"px"),["width","height"].forEach((function(e){i.style[e]&&(i.style[e]=parseInt(n.config.legend[e],10)+"px")}))}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.elLegendWrap.style.right=0;var t=this.legendHelpers.getLegendBBox(),n=new ce(this.ctx),i=n.dimHelpers.getTitleSubtitleCoords("title"),r=n.dimHelpers.getTitleSubtitleCoords("subtitle"),a=0;"bottom"===e.config.legend.position?a=-t.clwh/1.8:"top"===e.config.legend.position&&(a=i.height+r.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,a)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendBBox(),n=0;"left"===e.config.legend.position&&(n=20),"right"===e.config.legend.position&&(n=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(n,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,n=e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if("heatmap"===t.config.chart.type||this.isBarsDistributed){if(n){var i=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,i,this.w]),new B(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&n&&new B(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var n=parseInt(e.target.getAttribute("rel"),10)-1,i="true"===e.target.getAttribute("data:collapsed"),r=this.w.config.chart.events.legendClick;"function"==typeof r&&r(this.ctx,n,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,n,this.w]);var a=this.w.config.legend.markers.onClick;"function"==typeof a&&e.target.classList.contains("apexcharts-legend-marker")&&(a(this.ctx,n,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,n,this.w])),"treemap"!==t.config.chart.type&&"heatmap"!==t.config.chart.type&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(n,i)}}}]),e}(),he=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=n.globals.minX,this.maxX=n.globals.maxX}return c(e,[{key:"createToolbar",value:function(){var e=this,t=this.w,n=function(){return document.createElement("div")},i=n();if(i.setAttribute("class","apexcharts-toolbar"),i.style.top=t.config.chart.toolbar.offsetY+"px",i.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(i),this.elZoom=n(),this.elZoomIn=n(),this.elZoomOut=n(),this.elPan=n(),this.elSelection=n(),this.elZoomReset=n(),this.elMenuIcon=n(),this.elMenu=n(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var r=0;r<this.t.customIcons.length;r++)this.elCustomIcons.push(n());var a=[],o=function(n,i,r){var o=n.toLowerCase();e.t[o]&&t.config.chart.zoom.enabled&&a.push({el:i,icon:"string"==typeof e.t[o]?e.t[o]:r,title:e.localeValues[n],class:"apexcharts-".concat(o,"-icon")})};o("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n'),o("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n');var s=function(n){e.t[n]&&t.config.chart[n].enabled&&a.push({el:"zoom"===n?e.elZoom:e.elSelection,icon:"string"==typeof e.t[n]?e.t[n]:"zoom"===n?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n    <path d="M0 0h24v24H0V0z" fill="none"/>\n    <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n</svg>',title:e.localeValues["zoom"===n?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(n,"-icon")})};s("zoom"),s("selection"),this.t.pan&&t.config.chart.zoom.enabled&&a.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <defs>\n        <path d="M0 0h24v24H0z" id="a"/>\n    </defs>\n    <clipPath id="b">\n        <use overflow="visible" xlink:href="#a"/>\n    </clipPath>\n    <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),o("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n    <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'),this.t.download&&a.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l<this.elCustomIcons.length;l++)a.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});a.forEach((function(e,t){e.index&&y.moveIndexInArray(a,t,e.index)}));for(var c=0;c<a.length;c++)x.setAttrs(a[c].el,{class:a[c].class,title:a[c].title}),a[c].el.innerHTML=a[c].icon,i.appendChild(a[c].el);this._createHamburgerMenu(i),t.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):t.globals.panEnabled?this.elPan.classList.add(this.selectedClass):t.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(e){this.elMenuItems=[],e.appendChild(this.elMenu),x.setAttrs(this.elMenu,{class:"apexcharts-menu"});var t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];this.w.globals.allSeriesHasEqualX||t.splice(2,1);for(var n=0;n<t.length;n++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[n].innerHTML=t[n].title,x.setAttrs(this.elMenuItems[n],{class:"apexcharts-menu-item ".concat(t[n].name),title:t[n].title}),this.elMenu.appendChild(this.elMenuItems[n])}},{key:"addToolbarEventListeners",value:function(){var e=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach((function(t){t.classList.contains("exportSVG")?t.addEventListener("click",e.handleDownload.bind(e,"svg")):t.classList.contains("exportPNG")?t.addEventListener("click",e.handleDownload.bind(e,"png")):t.classList.contains("exportCSV")&&t.addEventListener("click",e.handleDownload.bind(e,"csv"))}));for(var t=0;t<this.t.customIcons.length;t++)this.elCustomIcons[t].addEventListener("click",this.t.customIcons[t].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(e){this.ctx.getSyncedCharts().forEach((function(t){t.ctx.toolbar.toggleOtherControls();var n="selection"===e?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,i="selection"===e?"selectionEnabled":"zoomEnabled";t.w.globals[i]=!t.w.globals[i],n.classList.contains(t.ctx.toolbar.selectedClass)?n.classList.remove(t.ctx.toolbar.selectedClass):n.classList.add(t.ctx.toolbar.selectedClass)}))}},{key:"getToolbarIconsReference",value:function(){var e=this.w;this.elZoom||(this.elZoom=e.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(e){this.toggleOtherControls(),"pan"===e?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var t="pan"===e?this.elPan:this.elZoom,n="pan"===e?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),n&&n.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach((function(e){e.ctx.toolbar.toggleOtherControls(),e.w.globals.panEnabled=!e.w.globals.panEnabled,e.ctx.toolbar.elPan.classList.contains(e.ctx.toolbar.selectedClass)?e.ctx.toolbar.elPan.classList.remove(e.ctx.toolbar.selectedClass):e.ctx.toolbar.elPan.classList.add(e.ctx.toolbar.selectedClass)}))}},{key:"toggleOtherControls",value:function(){var e=this,t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach((function(t){t&&t.classList.remove(e.selectedClass)}))}},{key:"handleZoomIn",value:function(){var e=this.w;e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY);var t=(this.minX+this.maxX)/2,n=(this.minX+t)/2,i=(this.maxX+t)/2,r=this._getNewMinXMaxX(n,i);e.globals.disableZoomIn||this.zoomUpdateOptions(r.minX,r.maxX)}},{key:"handleZoomOut",value:function(){var e=this.w;if(e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY),!("datetime"===e.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var t=(this.minX+this.maxX)/2,n=this.minX-(t-this.minX),i=this.maxX-(t-this.maxX),r=this._getNewMinXMaxX(n,i);e.globals.disableZoomOut||this.zoomUpdateOptions(r.minX,r.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,t){var n=this.w.config.xaxis.convertedCatToNumeric;return{minX:n?Math.floor(e):e,maxX:n?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(e,t){var n=this.w;if(void 0!==e||void 0!==t){if(!(n.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=n.globals.dataPoints),t-e<2))){var i={min:e,max:t},r=this.getBeforeZoomRange(i);r&&(i=r.xaxis);var a={xaxis:i},o=y.clone(n.globals.initialConfig.yaxis);n.config.chart.zoom.autoScaleYaxis&&(o=new G(this.ctx).autoScaleY(this.ctx,o,{xaxis:i})),n.config.chart.group||(a.yaxis=o),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(a,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(i,o)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,t){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t})}},{key:"getBeforeZoomRange",value:function(e,t){var n=null;return"function"==typeof this.ev.beforeZoom&&(n=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),n}},{key:"toggleMenu",value:function(){var e=this;window.setTimeout((function(){e.elMenu.classList.contains("apexcharts-menu-open")?e.elMenu.classList.remove("apexcharts-menu-open"):e.elMenu.classList.add("apexcharts-menu-open")}),0)}},{key:"handleDownload",value:function(e){var t=this.w,n=new U(this.ctx);switch(e){case"svg":n.exportToSVG(this.ctx);break;case"png":n.exportToPng(this.ctx);break;case"csv":n.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(e){this.ctx.getSyncedCharts().forEach((function(e){var t=e.w;if(t.globals.lastXAxis.min=t.globals.initialConfig.xaxis.min,t.globals.lastXAxis.max=t.globals.initialConfig.xaxis.max,e.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof t.config.chart.events.beforeResetZoom){var n=t.config.chart.events.beforeResetZoom(e,t);n&&e.updateHelpers.revertDefaultAxisMinMax(n)}"function"==typeof t.config.chart.events.zoomed&&e.ctx.toolbar.zoomCallback({min:t.config.xaxis.min,max:t.config.xaxis.max}),t.globals.zoomed=!1;var i=e.ctx.series.emptyCollapsedSeries(y.clone(t.globals.initialSeries));e.updateHelpers._updateSeries(i,t.config.chart.animations.dynamicAnimation.enabled)}))}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),e}(),fe=function(e){d(n,he);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this,e)).ctx=e,i.w=e.w,i.dragged=!1,i.graphics=new x(i.ctx),i.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],i.clientX=0,i.clientY=0,i.startX=0,i.endX=0,i.dragX=0,i.startY=0,i.endY=0,i.dragY=0,i.moveDirection="none",i}return c(n,[{key:"init",value:function(e){var t=this,n=e.xyRatios,i=this.w,r=this;this.xyRatios=n,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=i.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),i.globals.dom.elGraphical.add(this.zoomRect),i.globals.dom.elGraphical.add(this.selectionRect),"x"===i.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:i.globals.gridWidth,maxY:i.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===i.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:i.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=i.globals.dom.baseEl.querySelector("".concat(i.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach((function(e){t.hoverArea.addEventListener(e,r.svgMouseEvents.bind(r,n),{capture:!1,passive:!0})}))}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(e,t){var n=this.w,i=this,r=this.ctx.toolbar,a=n.globals.zoomEnabled?n.config.chart.zoom.type:n.config.chart.selection.type,o=n.config.chart.toolbar.autoSelected;if(t.shiftKey?(this.shiftWasPressed=!0,r.enableZoomPanFromToolbar("pan"===o?"zoom":"pan")):this.shiftWasPressed&&(r.enableZoomPanFromToolbar(o),this.shiftWasPressed=!1),t.target){var s,l=t.target.classList;if(t.target.parentNode&&null!==t.target.parentNode&&(s=t.target.parentNode.classList),!(l.contains("apexcharts-selection-rect")||l.contains("apexcharts-legend-marker")||l.contains("apexcharts-legend-text")||s&&s.contains("apexcharts-toolbar"))){if(i.clientX="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientX:"touchend"===t.type?t.changedTouches[0].clientX:t.clientX,i.clientY="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientY:"touchend"===t.type?t.changedTouches[0].clientY:t.clientY,"mousedown"===t.type&&1===t.which){var c=i.gridRect.getBoundingClientRect();i.startX=i.clientX-c.left,i.startY=i.clientY-c.top,i.dragged=!1,i.w.globals.mousedown=!0}if(("mousemove"===t.type&&1===t.which||"touchmove"===t.type)&&(i.dragged=!0,n.globals.panEnabled?(n.globals.selection=null,i.w.globals.mousedown&&i.panDragging({context:i,zoomtype:a,xyRatios:e})):(i.w.globals.mousedown&&n.globals.zoomEnabled||i.w.globals.mousedown&&n.globals.selectionEnabled)&&(i.selection=i.selectionDrawing({context:i,zoomtype:a}))),"mouseup"===t.type||"touchend"===t.type||"mouseleave"===t.type){var u=i.gridRect.getBoundingClientRect();i.w.globals.mousedown&&(i.endX=i.clientX-u.left,i.endY=i.clientY-u.top,i.dragX=Math.abs(i.endX-i.startX),i.dragY=Math.abs(i.endY-i.startY),(n.globals.zoomEnabled||n.globals.selectionEnabled)&&i.selectionDrawn({context:i,zoomtype:a}),n.globals.panEnabled&&n.config.xaxis.convertedCatToNumeric&&i.delayedPanScrolled()),n.globals.zoomEnabled&&i.hideSelectionRect(this.selectionRect),i.dragged=!1,i.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var e=this.w;if(this.selectionRect){var t=this.selectionRect.node.getBoundingClientRect();t.width>0&&t.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:e.globals.gridWidth,maxY:e.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var e=this.w,t=this.xyRatios;if(!e.globals.zoomEnabled)if(void 0!==e.globals.selection&&null!==e.globals.selection)this.drawSelectionRect(e.globals.selection);else if(void 0!==e.config.chart.selection.xaxis.min&&void 0!==e.config.chart.selection.xaxis.max){var n=(e.config.chart.selection.xaxis.min-e.globals.minX)/t.xRatio,i={x:n,y:0,width:e.globals.gridWidth-(e.globals.maxX-e.config.chart.selection.xaxis.max)/t.xRatio-n,height:e.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(i),this.makeSelectionRectDraggable(),"function"==typeof e.config.chart.events.selection&&e.config.chart.events.selection(this.ctx,{xaxis:{min:e.config.chart.selection.xaxis.min,max:e.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(e){var t=e.x,n=e.y,i=e.width,r=e.height,a=e.translateX,o=void 0===a?0:a,s=e.translateY,l=void 0===s?0:s,c=this.w,u=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==c.globals.selection){var h={transform:"translate("+o+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(i<0&&(i=1),u.attr({x:t,y:n,width:i,height:r,fill:c.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":c.config.chart.zoom.zoomedArea.fill.opacity,stroke:c.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":c.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":c.config.chart.zoom.zoomedArea.stroke.opacity}),x.setAttrs(u.node,h)),c.globals.selectionEnabled&&(d.attr({x:t,y:n,width:i>0?i:0,height:r>0?r:0,fill:c.config.chart.selection.fill.color,"fill-opacity":c.config.chart.selection.fill.opacity,stroke:c.config.chart.selection.stroke.color,"stroke-width":c.config.chart.selection.stroke.width,"stroke-dasharray":c.config.chart.selection.stroke.dashArray,"stroke-opacity":c.config.chart.selection.stroke.opacity}),x.setAttrs(d.node,h))}}},{key:"hideSelectionRect",value:function(e){e&&e.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(e){var t,n=e.context,i=e.zoomtype,r=this.w,a=n,o=this.gridRect.getBoundingClientRect(),s=a.startX-1,l=a.startY,c=!1,u=!1,d=a.clientX-o.left-s,h=a.clientY-o.top-l;return Math.abs(d+s)>r.globals.gridWidth?d=r.globals.gridWidth-s:a.clientX-o.left<0&&(d=s),s>a.clientX-o.left&&(c=!0,d=Math.abs(d)),l>a.clientY-o.top&&(u=!0,h=Math.abs(h)),t="x"===i?{x:c?s-d:s,y:0,width:d,height:r.globals.gridHeight}:"y"===i?{x:0,y:u?l-h:l,width:r.globals.gridWidth,height:h}:{x:c?s-d:s,y:u?l-h:l,width:d,height:h},a.drawSelectionRect(t),a.selectionDragging("resizing"),t}},{key:"selectionDragging",value:function(e,t){var n=this,i=this.w,r=this.xyRatios,a=this.selectionRect,o=0;"resizing"===e&&(o=30);var s=function(e){return parseFloat(a.node.getAttribute(e))},l={x:s("x"),y:s("y"),width:s("width"),height:s("height")};i.globals.selection=l,"function"==typeof i.config.chart.events.selection&&i.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout((function(){var e=n.gridRect.getBoundingClientRect(),t=a.node.getBoundingClientRect(),o={xaxis:{min:i.globals.xAxisScale.niceMin+(t.left-e.left)*r.xRatio,max:i.globals.xAxisScale.niceMin+(t.right-e.left)*r.xRatio},yaxis:{min:i.globals.yAxisScale[0].niceMin+(e.bottom-t.bottom)*r.yRatio[0],max:i.globals.yAxisScale[0].niceMax-(t.top-e.top)*r.yRatio[0]}};i.config.chart.events.selection(n.ctx,o),i.config.chart.brush.enabled&&void 0!==i.config.chart.events.brushScrolled&&i.config.chart.events.brushScrolled(n.ctx,o)}),o))}},{key:"selectionDrawn",value:function(e){var t=e.context,n=e.zoomtype,i=this.w,r=t,a=this.xyRatios,o=this.ctx.toolbar;if(r.startX>r.endX){var s=r.startX;r.startX=r.endX,r.endX=s}if(r.startY>r.endY){var l=r.startY;r.startY=r.endY,r.endY=l}var c=void 0,u=void 0;i.globals.isRangeBar?(c=i.globals.yAxisScale[0].niceMin+r.startX*a.invertedYRatio,u=i.globals.yAxisScale[0].niceMin+r.endX*a.invertedYRatio):(c=i.globals.xAxisScale.niceMin+r.startX*a.xRatio,u=i.globals.xAxisScale.niceMin+r.endX*a.xRatio);var d=[],h=[];if(i.config.yaxis.forEach((function(e,t){d.push(i.globals.yAxisScale[t].niceMax-a.yRatio[t]*r.startY),h.push(i.globals.yAxisScale[t].niceMax-a.yRatio[t]*r.endY)})),r.dragged&&(r.dragX>10||r.dragY>10)&&c!==u)if(i.globals.zoomEnabled){var f=y.clone(i.globals.initialConfig.yaxis),p=y.clone(i.globals.initialConfig.xaxis);if(i.globals.zoomed=!0,i.config.xaxis.convertedCatToNumeric&&(c=Math.floor(c),u=Math.floor(u),c<1&&(c=1,u=i.globals.dataPoints),u-c<2&&(u=c+1)),"xy"!==n&&"x"!==n||(p={min:c,max:u}),"xy"!==n&&"y"!==n||f.forEach((function(e,t){f[t].min=h[t],f[t].max=d[t]})),i.config.chart.zoom.autoScaleYaxis){var m=new G(r.ctx);f=m.autoScaleY(r.ctx,f,{xaxis:p})}if(o){var g=o.getBeforeZoomRange(p,f);g&&(p=g.xaxis?g.xaxis:p,f=g.yaxis?g.yaxis:f)}var _={xaxis:p};i.config.chart.group||(_.yaxis=f),r.ctx.updateHelpers._updateOptions(_,!1,r.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof i.config.chart.events.zoomed&&o.zoomCallback(p,f)}else if(i.globals.selectionEnabled){var v,b=null;v={min:c,max:u},"xy"!==n&&"y"!==n||(b=y.clone(i.config.yaxis)).forEach((function(e,t){b[t].min=h[t],b[t].max=d[t]})),i.globals.selection=r.selection,"function"==typeof i.config.chart.events.selection&&i.config.chart.events.selection(r.ctx,{xaxis:v,yaxis:b})}}},{key:"panDragging",value:function(e){var t=e.context,n=this.w,i=t;if(void 0!==n.globals.lastClientPosition.x){var r=n.globals.lastClientPosition.x-i.clientX,a=n.globals.lastClientPosition.y-i.clientY;Math.abs(r)>Math.abs(a)&&r>0?this.moveDirection="left":Math.abs(r)>Math.abs(a)&&r<0?this.moveDirection="right":Math.abs(a)>Math.abs(r)&&a>0?this.moveDirection="up":Math.abs(a)>Math.abs(r)&&a<0&&(this.moveDirection="down")}n.globals.lastClientPosition={x:i.clientX,y:i.clientY};var o=n.globals.isRangeBar?n.globals.minY:n.globals.minX,s=n.globals.isRangeBar?n.globals.maxY:n.globals.maxX;n.config.xaxis.convertedCatToNumeric||i.panScrolled(o,s)}},{key:"delayedPanScrolled",value:function(){var e=this.w,t=e.globals.minX,n=e.globals.maxX,i=(e.globals.maxX-e.globals.minX)/2;"left"===this.moveDirection?(t=e.globals.minX+i,n=e.globals.maxX+i):"right"===this.moveDirection&&(t=e.globals.minX-i,n=e.globals.maxX-i),t=Math.floor(t),n=Math.floor(n),this.updateScrolledChart({xaxis:{min:t,max:n}},t,n)}},{key:"panScrolled",value:function(e,t){var n=this.w,i=this.xyRatios,r=y.clone(n.globals.initialConfig.yaxis),a=i.xRatio,o=n.globals.minX,s=n.globals.maxX;n.globals.isRangeBar&&(a=i.invertedYRatio,o=n.globals.minY,s=n.globals.maxY),"left"===this.moveDirection?(e=o+n.globals.gridWidth/15*a,t=s+n.globals.gridWidth/15*a):"right"===this.moveDirection&&(e=o-n.globals.gridWidth/15*a,t=s-n.globals.gridWidth/15*a),n.globals.isRangeBar||(e<n.globals.initialMinX||t>n.globals.initialMaxX)&&(e=o,t=s);var l={min:e,max:t};n.config.chart.zoom.autoScaleYaxis&&(r=new G(this.ctx).autoScaleY(this.ctx,r,{xaxis:l}));var c={xaxis:{min:e,max:t}};n.config.chart.group||(c.yaxis=r),this.updateScrolledChart(c,e,t)}},{key:"updateScrolledChart",value:function(e,t,n){var i=this.w;this.ctx.updateHelpers._updateOptions(e,!1,!1),"function"==typeof i.config.chart.events.scrolled&&i.config.chart.events.scrolled(this.ctx,{xaxis:{min:t,max:n}})}}]),n}(),pe=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return c(e,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,n=e.elGrid,i=e.clientX,r=e.clientY,a=this.w,o=n.getBoundingClientRect(),s=o.width,l=o.height,c=s/(a.globals.dataPoints-1),u=l/a.globals.dataPoints,d=this.hasBars();!a.globals.comboCharts&&!d||a.config.xaxis.convertedCatToNumeric||(c=s/a.globals.dataPoints);var h=i-o.left-a.globals.barPadForNumericAxis,f=r-o.top;h<0||f<0||h>s||f>l?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):a.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):a.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var p=Math.round(h/c),m=Math.floor(f/u);d&&!a.config.xaxis.convertedCatToNumeric&&(p=Math.ceil(h/c),p-=1);var g=null,_=null,v=a.globals.seriesXvalues.map((function(e){return e.filter((function(e){return y.isNumber(e)}))})),b=a.globals.seriesYvalues.map((function(e){return e.filter((function(e){return y.isNumber(e)}))}));if(a.globals.isXNumeric){var w=this.ttCtx.getElGrid().getBoundingClientRect(),x=h*(w.width/s),k=f*(w.height/l);g=(_=this.closestInMultiArray(x,k,v,b)).index,p=_.j,null!==g&&(v=a.globals.seriesXvalues[g],p=(_=this.closestInArray(x,v)).index)}return a.globals.capturedSeriesIndex=null===g?-1:g,(!p||p<1)&&(p=0),a.globals.isBarHorizontal?a.globals.capturedDataPointIndex=m:a.globals.capturedDataPointIndex=p,{capturedSeries:g,j:a.globals.isBarHorizontal?m:p,hoverX:h,hoverY:f}}},{key:"closestInMultiArray",value:function(e,t,n,i){var r=this.w,a=0,o=null,s=-1;r.globals.series.length>1?a=this.getFirstActiveXArray(n):o=0;var l=n[a][0],c=Math.abs(e-l);if(n.forEach((function(t){t.forEach((function(t,n){var i=Math.abs(e-t);i<=c&&(c=i,s=n)}))})),-1!==s){var u=i[a][s],d=Math.abs(t-u);o=a,i.forEach((function(e,n){var i=Math.abs(t-e[s]);i<=d&&(d=i,o=n)}))}return{index:o,j:s}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,n=0,i=e.map((function(e,t){return e.length>0?t:-1})),r=0;r<i.length;r++)if(-1!==i[r]&&-1===t.globals.collapsedSeriesIndices.indexOf(r)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(r)){n=i[r];break}return n}},{key:"closestInArray",value:function(e,t){for(var n=t[0],i=null,r=Math.abs(e-n),a=0;a<t.length;a++){var o=Math.abs(e-t[a]);o<r&&(r=o,i=a)}return{index:i}}},{key:"isXoverlap",value:function(e){var t=[],n=this.w.globals.seriesX.filter((function(e){return void 0!==e[0]}));if(n.length>0)for(var i=0;i<n.length-1;i++)void 0!==n[i][e]&&void 0!==n[i+1][e]&&n[i][e]!==n[i+1][e]&&t.push("unEqual");return 0===t.length}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,t=this.w.globals.initialSeries,n=0;n<t.length-1;n++)if(t[n].data.length!==t[n+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return g(e).reduce((function(e,t){return e+t.getBBox().height}),0)}},{key:"getElMarkers",value:function(e){return"number"==typeof e?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(e=g(e)).sort((function(e,t){var n=Number(e.getAttribute("data:realIndex")),i=Number(t.getAttribute("data:realIndex"));return i<n?1:i>n?-1:0}));var t=[];return e.forEach((function(e){t.push(e.querySelector(".apexcharts-marker"))})),t}},{key:"hasMarkers",value:function(e){return this.getElMarkers(e).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series,  .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(e){var t=this.w,n=t.config.markers.hover.size;return void 0===n&&(n=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),n}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,n=this.ttCtx;0===n.allTooltipSeriesGroups.length&&(n.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var i=n.allTooltipSeriesGroups,r=0;r<i.length;r++)"enable"===e?(i[r].classList.add("apexcharts-active"),i[r].style.display=t.config.tooltip.items.display):(i[r].classList.remove("apexcharts-active"),i[r].style.display="none")}}]),e}(),me=function(){function e(t){s(this,e),this.w=t.w,this.ctx=t.ctx,this.ttCtx=t,this.tooltipUtil=new pe(t)}return c(e,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,n=void 0===t||t,i=e.ttItems,r=e.i,a=void 0===r?0:r,o=e.j,s=void 0===o?null:o,l=e.y1,c=e.y2,u=e.e,d=this.w;void 0!==d.config.tooltip.custom?this.handleCustomTooltip({i:a,j:s,y1:l,y2:c,w:d}):this.toggleActiveInactiveSeries(n);var h=this.getValuesToPrint({i:a,j:s});this.printLabels({i:a,j:s,values:h,ttItems:i,shared:n,e:u});var f=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=f.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=f.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,n=this,i=e.i,r=e.j,o=e.values,s=e.ttItems,l=e.shared,c=e.e,u=this.w,d=[],h=function(e){return u.globals.seriesGoals[e]&&u.globals.seriesGoals[e][r]&&Array.isArray(u.globals.seriesGoals[e][r])},f=o.xVal,p=o.zVal,m=o.xAxisTTVal,g="",_=u.globals.colors[i];null!==r&&u.config.plotOptions.bar.distributed&&(_=u.globals.colors[r]);for(var v=function(e,o){var v=n.getFormatters(i);g=n.getSeriesName({fn:v.yLbTitleFormatter,index:i,seriesIndex:i,j:r}),"treemap"===u.config.chart.type&&(g=v.yLbTitleFormatter(String(u.config.series[i].data[r].x),{series:u.globals.series,seriesIndex:i,dataPointIndex:r,w:u}));var y=u.config.tooltip.inverseOrder?o:e;if(u.globals.axisCharts){var b=function(e){var t,n,i,a;return u.globals.isRangeData?v.yLbFormatter(null===(t=u.globals.seriesRangeStart)||void 0===t||null===(n=t[e])||void 0===n?void 0:n[r],{series:u.globals.seriesRangeStart,seriesIndex:e,dataPointIndex:r,w:u})+" - "+v.yLbFormatter(null===(i=u.globals.seriesRangeEnd)||void 0===i||null===(a=i[e])||void 0===a?void 0:a[r],{series:u.globals.seriesRangeEnd,seriesIndex:e,dataPointIndex:r,w:u}):v.yLbFormatter(u.globals.series[e][r],{series:u.globals.series,seriesIndex:e,dataPointIndex:r,w:u})};if(l)v=n.getFormatters(y),g=n.getSeriesName({fn:v.yLbTitleFormatter,index:y,seriesIndex:i,j:r}),_=u.globals.colors[y],t=b(y),h(y)&&(d=u.globals.seriesGoals[y][r].map((function(e){return{attrs:e,val:v.yLbFormatter(e.value,{seriesIndex:y,dataPointIndex:r,w:u})}})));else{var w,x=null==c||null===(w=c.target)||void 0===w?void 0:w.getAttribute("fill");x&&(_=-1!==x.indexOf("url")?document.querySelector(x.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):x),t=b(i),h(i)&&Array.isArray(u.globals.seriesGoals[i][r])&&(d=u.globals.seriesGoals[i][r].map((function(e){return{attrs:e,val:v.yLbFormatter(e.value,{seriesIndex:i,dataPointIndex:r,w:u})}})))}}null===r&&(t=v.yLbFormatter(u.globals.series[i],a(a({},u),{},{seriesIndex:i,dataPointIndex:i}))),n.DOMHandling({i,t:y,j:r,ttItems:s,values:{val:t,goalVals:d,xVal:f,xAxisTTVal:m,zVal:p},seriesName:g,shared:l,pColor:_})},y=0,b=u.globals.series.length-1;y<u.globals.series.length;y++,b--)v(y,b)}},{key:"getFormatters",value:function(e){var t,n=this.w,i=n.globals.yLabelFormatters[e];return void 0!==n.globals.ttVal?Array.isArray(n.globals.ttVal)?(i=n.globals.ttVal[e]&&n.globals.ttVal[e].formatter,t=n.globals.ttVal[e]&&n.globals.ttVal[e].title&&n.globals.ttVal[e].title.formatter):(i=n.globals.ttVal.formatter,"function"==typeof n.globals.ttVal.title.formatter&&(t=n.globals.ttVal.title.formatter)):t=n.config.tooltip.y.title.formatter,"function"!=typeof i&&(i=n.globals.yLabelFormatters[0]?n.globals.yLabelFormatters[0]:function(e){return e}),"function"!=typeof t&&(t=function(e){return e}),{yLbFormatter:i,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var t=e.fn,n=e.index,i=e.seriesIndex,r=e.j,a=this.w;return t(String(a.globals.seriesNames[n]),{series:a.globals.series,seriesIndex:i,dataPointIndex:r,w:a})}},{key:"DOMHandling",value:function(e){e.i;var t=e.t,n=e.j,i=e.ttItems,r=e.values,a=e.seriesName,o=e.shared,s=e.pColor,l=this.w,c=this.ttCtx,u=r.val,d=r.goalVals,h=r.xVal,f=r.xAxisTTVal,p=r.zVal,m=null;m=i[t].children,l.config.tooltip.fillSeriesColor&&(i[t].style.backgroundColor=s,m[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=h),c.isXAxisTooltipEnabled&&(c.xaxisTooltipText.innerHTML=""!==f?f:h);var g=i[t].querySelector(".apexcharts-tooltip-text-y-label");g&&(g.innerHTML=a||"");var _=i[t].querySelector(".apexcharts-tooltip-text-y-value");_&&(_.innerHTML=void 0!==u?u:""),m[0]&&m[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(s=l.config.tooltip.marker.fillColors[t]),m[0].style.backgroundColor=s),l.config.tooltip.marker.show||(m[0].style.display="none");var v=i[t].querySelector(".apexcharts-tooltip-text-goals-label"),y=i[t].querySelector(".apexcharts-tooltip-text-goals-value");if(d.length&&l.globals.seriesGoals[t]){var b=function(){var e="<div >",t="<div>";d.forEach((function(n,i){e+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(n.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(n.attrs.name,"</div>"),t+="<div>".concat(n.val,"</div>")})),v.innerHTML=e+"</div>",y.innerHTML=t+"</div>"};o?l.globals.seriesGoals[t][n]&&Array.isArray(l.globals.seriesGoals[t][n])?b():(v.innerHTML="",y.innerHTML=""):b()}else v.innerHTML="",y.innerHTML="";null!==p&&(i[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,i[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==p?p:""),o&&m[0]&&(null==u||l.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||l.globals.collapsedSeriesIndices.indexOf(t)>-1?m[0].parentNode.style.display="none":m[0].parentNode.style.display=l.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(e){var t=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var n=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");n&&(n.classList.add("apexcharts-active"),n.style.display=t.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,n=e.j,i=this.w,r=this.ctx.series.filteredSeriesX(),a="",o="",s=null,l=null,c={series:i.globals.series,seriesIndex:t,dataPointIndex:n,w:i},u=i.globals.ttZFormatter;null===n?l=i.globals.series[t]:i.globals.isXNumeric&&"treemap"!==i.config.chart.type?(a=r[t][n],0===r[t].length&&(a=r[this.tooltipUtil.getFirstActiveXArray(r)][n])):a=void 0!==i.globals.labels[n]?i.globals.labels[n]:"";var d=a;return a=i.globals.isXNumeric&&"datetime"===i.config.xaxis.type?new O(this.ctx).xLabelFormat(i.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new D(this.ctx).formatDate,w:this.w}):i.globals.isBarHorizontal?i.globals.yLabelFormatters[0](d,c):i.globals.xLabelFormatter(d,c),void 0!==i.config.tooltip.x.formatter&&(a=i.globals.ttKeyFormatter(d,c)),i.globals.seriesZ.length>0&&i.globals.seriesZ[t].length>0&&(s=u(i.globals.seriesZ[t][n],i)),o="function"==typeof i.config.xaxis.tooltip.formatter?i.globals.xaxisTooltipFormatter(d,c):a,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(a)?a.join(" "):a,xAxisTTVal:Array.isArray(o)?o.join(" "):o,zVal:s}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,n=e.j,i=e.y1,r=e.y2,a=e.w,o=this.ttCtx.getElTooltip(),s=a.config.tooltip.custom;Array.isArray(s)&&s[t]&&(s=s[t]),o.innerHTML=s({ctx:this.ctx,series:a.globals.series,seriesIndex:t,dataPointIndex:n,y1:i,y2:r,w:a})}}]),e}(),ge=function(){function e(t){s(this,e),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}return c(e,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.ttCtx,i=this.w,r=n.getElXCrosshairs(),a=e-n.xcrosshairsWidth/2,o=i.globals.labels.slice().length;if(null!==t&&(a=i.globals.gridWidth/o*t),null===r||i.globals.isBarHorizontal||(r.setAttribute("x",a),r.setAttribute("x1",a),r.setAttribute("x2",a),r.setAttribute("y2",i.globals.gridHeight),r.classList.add("apexcharts-active")),a<0&&(a=0),a>i.globals.gridWidth&&(a=i.globals.gridWidth),n.isXAxisTooltipEnabled){var s=a;"tickWidth"!==i.config.xaxis.crosshairs.width&&"barWidth"!==i.config.xaxis.crosshairs.width||(s=a+n.xcrosshairsWidth/2),this.moveXAxisTooltip(s)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;null!==t.ycrosshairs&&x.setAttrs(t.ycrosshairs,{y1:e,y2:e}),null!==t.ycrosshairsHidden&&x.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,n=this.ttCtx;if(null!==n.xaxisTooltip&&0!==n.xcrosshairsWidth){n.xaxisTooltip.classList.add("apexcharts-active");var i,r=n.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(e-=n.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e))e+=t.globals.translateX,i=new x(this.ctx).getTextRects(n.xaxisTooltipText.innerHTML),n.xaxisTooltipText.style.minWidth=i.width+"px",n.xaxisTooltip.style.left=e+"px",n.xaxisTooltip.style.top=r+"px"}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,n=this.ttCtx;null===n.yaxisTTEls&&(n.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var i=parseInt(n.ycrosshairsHidden.getAttribute("y1"),10),r=t.globals.translateY+i,a=n.yaxisTTEls[e].getBoundingClientRect().height,o=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(o-=26),r-=a/2,-1===t.globals.ignoreYAxisIndexes.indexOf(e)?(n.yaxisTTEls[e].classList.add("apexcharts-active"),n.yaxisTTEls[e].style.top=r+"px",n.yaxisTTEls[e].style.left=o+t.config.yaxis[e].tooltip.offsetX+"px"):n.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.w,r=this.ttCtx,a=r.getElTooltip(),o=r.tooltipRect,s=null!==n?parseFloat(n):1,l=parseFloat(e)+s+5,c=parseFloat(t)+s/2;if(l>i.globals.gridWidth/2&&(l=l-o.ttWidth-s-10),l>i.globals.gridWidth-o.ttWidth-10&&(l=i.globals.gridWidth-o.ttWidth),l<-20&&(l=-20),i.config.tooltip.followCursor){var u=r.getElGrid().getBoundingClientRect();(l=r.e.clientX-u.left)>i.globals.gridWidth/2&&(l-=r.tooltipRect.ttWidth),(c=r.e.clientY+i.globals.translateY-u.top)>i.globals.gridHeight/2&&(c-=r.tooltipRect.ttHeight)}else i.globals.isBarHorizontal||o.ttHeight/2+c>i.globals.gridHeight&&(c=i.globals.gridHeight-o.ttHeight+i.globals.translateY);isNaN(l)||(l+=i.globals.translateX,a.style.left=l+"px",a.style.top=c+"px")}},{key:"moveMarkers",value:function(e,t){var n=this.w,i=this.ttCtx;if(n.globals.markers.size[e]>0)for(var r=n.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),a=0;a<r.length;a++)parseInt(r[a].getAttribute("rel"),10)===t&&(i.marker.resetPointsSize(),i.marker.enlargeCurrentPoint(t,r[a]));else i.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var n,i,r=this.w,a=this.ttCtx,o=r.globals.pointsArray,s=a.tooltipUtil.getHoverMarkerSize(t),l=r.config.series[t].type;if(!l||"column"!==l&&"candlestick"!==l&&"boxPlot"!==l){n=o[t][e][0],i=o[t][e][1]?o[t][e][1]:0;var c=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers circle"));c&&i<r.globals.gridHeight&&i>0&&(c.setAttribute("r",s),c.setAttribute("cx",n),c.setAttribute("cy",i)),this.moveXCrosshairs(n),a.fixedTooltip||this.moveTooltip(n,i,s)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,n=this.ttCtx,i=n.w,r=0,a=0,o=i.globals.pointsArray;t=new B(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var s=n.tooltipUtil.getHoverMarkerSize(t);o[t]&&(r=o[t][e][0],a=o[t][e][1]);var l=n.tooltipUtil.getAllMarkers();if(null!==l)for(var c=0;c<i.globals.series.length;c++){var u=o[c];if(i.globals.comboCharts&&void 0===u&&l.splice(c,0,null),u&&u.length){var d=o[c][e][1],h=void 0;if(l[c].setAttribute("cx",r),"rangeArea"===i.config.chart.type&&!i.globals.comboCharts){var f=e+i.globals.series[c].length;h=o[c][f][1],d-=Math.abs(d-h)/2}null!==d&&!isNaN(d)&&d<i.globals.gridHeight+s&&d+s>0?(l[c]&&l[c].setAttribute("r",s),l[c]&&l[c].setAttribute("cy",d)):l[c]&&l[c].setAttribute("r",0)}}this.moveXCrosshairs(r),n.fixedTooltip||this.moveTooltip(r,a||i.globals.gridHeight,s)}},{key:"moveStickyTooltipOverBars",value:function(e,t){var n=this.w,i=this.ttCtx,r=n.globals.columnSeries?n.globals.columnSeries.length:n.globals.series.length,a=r>=2&&r%2==0?Math.floor(r/2):Math.floor(r/2)+1;n.globals.isBarHorizontal&&(a=new B(this.ctx).getActiveConfigSeriesIndex("desc")+1);var o=n.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(a,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(e,"']"));o||"number"!=typeof t||(o=n.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(t,"'] path[j='").concat(e,"'],\n        .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n        .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n        .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"']")));var s=o?parseFloat(o.getAttribute("cx")):0,l=o?parseFloat(o.getAttribute("cy")):0,c=o?parseFloat(o.getAttribute("barWidth")):0,u=i.getElGrid().getBoundingClientRect(),d=o&&(o.classList.contains("apexcharts-candlestick-area")||o.classList.contains("apexcharts-boxPlot-area"));n.globals.isXNumeric?(o&&!d&&(s-=r%2!=0?c/2:0),o&&d&&n.globals.comboCharts&&(s-=c/2)):n.globals.isBarHorizontal||(s=i.xAxisTicksPositions[e-1]+i.dataPointsDividedWidth/2,isNaN(s)&&(s=i.xAxisTicksPositions[e]-i.dataPointsDividedWidth/2)),n.globals.isBarHorizontal?l-=i.tooltipRect.ttHeight:n.config.tooltip.followCursor?l=i.e.clientY-u.top-i.tooltipRect.ttHeight/2:l+i.tooltipRect.ttHeight+15>n.globals.gridHeight&&(l=n.globals.gridHeight),n.globals.isBarHorizontal||this.moveXCrosshairs(s),i.fixedTooltip||this.moveTooltip(s,l||n.globals.gridHeight)}}]),e}(),_e=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new ge(t)}return c(e,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new x(this.ctx),n=new H(this.ctx),i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");i=g(i),e.config.chart.stacked&&i.sort((function(e,t){return parseFloat(e.getAttribute("data:realIndex"))-parseFloat(t.getAttribute("data:realIndex"))}));for(var r=0;r<i.length;r++){var a=i[r].querySelector(".apexcharts-series-markers-wrap");if(null!==a){var o=void 0,s="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==e.config.chart.type&&"area"!==e.config.chart.type||e.globals.comboCharts||e.config.tooltip.intersect||(s+=" no-pointer-events");var l=n.getMarkerConfig({cssClass:s,seriesIndex:Number(a.getAttribute("data:realIndex"))});(o=t.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(e.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(o.node),a.appendChild(c)}}}},{key:"enlargeCurrentPoint",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=this.w;"bubble"!==r.config.chart.type&&this.newPointSize(e,t);var a=t.getAttribute("cx"),o=t.getAttribute("cy");if(null!==n&&null!==i&&(a=n,o=i),this.tooltipPosition.moveXCrosshairs(a),!this.fixedTooltip){if("radar"===r.config.chart.type){var s=this.ttCtx.getElGrid().getBoundingClientRect();a=this.ttCtx.e.clientX-s.left}this.tooltipPosition.moveTooltip(a,o,r.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,n=this,i=this.ttCtx,r=e,a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=t.config.markers.hover.size,s=0;s<a.length;s++){var l=a[s].getAttribute("rel"),c=a[s].getAttribute("index");if(void 0===o&&(o=t.globals.markers.size[c]+t.config.markers.hover.sizeOffset),r===parseInt(l,10)){n.newPointSize(r,a[s]);var u=a[s].getAttribute("cx"),d=a[s].getAttribute("cy");n.tooltipPosition.moveXCrosshairs(u),i.fixedTooltip||n.tooltipPosition.moveTooltip(u,d,o)}else n.oldPointSize(a[s])}}},{key:"newPointSize",value:function(e,t){var n=this.w,i=n.config.markers.hover.size,r=0===e?t.parentNode.firstChild:t.parentNode.lastChild;if("0"!==r.getAttribute("default-marker-size")){var a=parseInt(r.getAttribute("index"),10);void 0===i&&(i=n.globals.markers.size[a]+n.config.markers.hover.sizeOffset),i<0&&(i=0),r.setAttribute("r",i)}}},{key:"oldPointSize",value:function(e){var t=parseFloat(e.getAttribute("default-marker-size"));e.setAttribute("r",t)}},{key:"resetPointsSize",value:function(){for(var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),t=0;t<e.length;t++){var n=parseFloat(e[t].getAttribute("default-marker-size"));y.isNumber(n)&&n>=0?e[t].setAttribute("r",n):e[t].setAttribute("r",0)}}}]),e}(),ve=function(){function e(t){s(this,e),this.w=t.w;var n=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!n.globals.isBarHorizontal&&"rangeBar"===n.config.chart.type&&n.config.plotOptions.bar.rangeBarGroupRows}return c(e,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,n=e.opt,i=e.x,r=e.y,a=e.type,o=this.ttCtx,s=this.w;if(t.target.classList.contains("apexcharts-".concat(a,"-rect"))){var l=this.getAttr(t,"i"),c=this.getAttr(t,"j"),u=this.getAttr(t,"cx"),d=this.getAttr(t,"cy"),h=this.getAttr(t,"width"),f=this.getAttr(t,"height");if(o.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:l,j:c,shared:!1,e:t}),s.globals.capturedSeriesIndex=l,s.globals.capturedDataPointIndex=c,i=u+o.tooltipRect.ttWidth/2+h,r=d+o.tooltipRect.ttHeight/2-f/2,o.tooltipPosition.moveXCrosshairs(u+h/2),i>s.globals.gridWidth/2&&(i=u-o.tooltipRect.ttWidth/2+h),o.w.config.tooltip.followCursor){var p=s.globals.dom.elWrap.getBoundingClientRect();i=s.globals.clientX-p.left-(i>s.globals.gridWidth/2?o.tooltipRect.ttWidth:0),r=s.globals.clientY-p.top-(r>s.globals.gridHeight/2?o.tooltipRect.ttHeight:0)}}return{x:i,y:r}}},{key:"handleMarkerTooltip",value:function(e){var t,n,i=e.e,r=e.opt,a=e.x,o=e.y,s=this.w,l=this.ttCtx;if(i.target.classList.contains("apexcharts-marker")){var c=parseInt(r.paths.getAttribute("cx"),10),u=parseInt(r.paths.getAttribute("cy"),10),d=parseFloat(r.paths.getAttribute("val"));if(n=parseInt(r.paths.getAttribute("rel"),10),t=parseInt(r.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var h=y.findAncestor(r.paths,"apexcharts-series");h&&(t=parseInt(h.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:t,j:n,shared:!l.showOnIntersect&&s.config.tooltip.shared,e:i}),"mouseup"===i.type&&l.markerClick(i,t,n),s.globals.capturedSeriesIndex=t,s.globals.capturedDataPointIndex=n,a=c,o=u+s.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var f=l.getElGrid().getBoundingClientRect();o=l.e.clientY+s.globals.translateY-f.top}d<0&&(o=u),l.marker.enlargeCurrentPoint(n,r.paths,a,o)}return{x:a,y:o}}},{key:"handleBarTooltip",value:function(e){var t,n,i=e.e,r=e.opt,a=this.w,o=this.ttCtx,s=o.getElTooltip(),l=0,c=0,u=0,d=this.getBarTooltipXY({e:i,opt:r});t=d.i;var h=d.barHeight,f=d.j;a.globals.capturedSeriesIndex=t,a.globals.capturedDataPointIndex=f,a.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!a.config.tooltip.shared?(c=d.x,u=d.y,n=Array.isArray(a.config.stroke.width)?a.config.stroke.width[t]:a.config.stroke.width,l=c):a.globals.comboCharts||a.config.tooltip.shared||(l/=2),isNaN(u)&&(u=a.globals.svgHeight-o.tooltipRect.ttHeight);var p=parseInt(r.paths.parentNode.getAttribute("data:realIndex"),10),m=a.globals.isMultipleYAxis?a.config.yaxis[p]&&a.config.yaxis[p].reversed:a.config.yaxis[0].reversed;if(c+o.tooltipRect.ttWidth>a.globals.gridWidth&&!m?c-=o.tooltipRect.ttWidth:c<0&&(c=0),o.w.config.tooltip.followCursor){var g=o.getElGrid().getBoundingClientRect();u=o.e.clientY-g.top}null===o.tooltip&&(o.tooltip=a.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),a.config.tooltip.shared||(a.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(l+n/2):o.tooltipPosition.moveXCrosshairs(l)),!o.fixedTooltip&&(!a.config.tooltip.shared||a.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(m&&(c-=o.tooltipRect.ttWidth)<0&&(c=0),!m||a.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||(u=u+h-2*(a.globals.series[t][f]<0?h:0)),u=u+a.globals.translateY-o.tooltipRect.ttHeight/2,s.style.left=c+a.globals.translateX+"px",s.style.top=u+"px")}},{key:"getBarTooltipXY",value:function(e){var t=this,n=e.e,i=e.opt,r=this.w,a=null,o=this.ttCtx,s=0,l=0,c=0,u=0,d=0,h=n.target.classList;if(h.contains("apexcharts-bar-area")||h.contains("apexcharts-candlestick-area")||h.contains("apexcharts-boxPlot-area")||h.contains("apexcharts-rangebar-area")){var f=n.target,p=f.getBoundingClientRect(),m=i.elGrid.getBoundingClientRect(),g=p.height;d=p.height;var _=p.width,v=parseInt(f.getAttribute("cx"),10),y=parseInt(f.getAttribute("cy"),10);u=parseFloat(f.getAttribute("barWidth"));var b="touchmove"===n.type?n.touches[0].clientX:n.clientX;a=parseInt(f.getAttribute("j"),10),s=parseInt(f.parentNode.getAttribute("rel"),10)-1;var w=f.getAttribute("data-range-y1"),x=f.getAttribute("data-range-y2");r.globals.comboCharts&&(s=parseInt(f.parentNode.getAttribute("data:realIndex"),10));var k=function(e){return r.globals.isXNumeric?v-_/2:t.isVerticalGroupedRangeBar?v+_/2:v-o.dataPointsDividedWidth+_/2},A=function(){return y-o.dataPointsDividedHeight+g/2-o.tooltipRect.ttHeight/2};o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:s,j:a,y1:w?parseInt(w,10):null,y2:x?parseInt(x,10):null,shared:!o.showOnIntersect&&r.config.tooltip.shared,e:n}),r.config.tooltip.followCursor?r.globals.isBarHorizontal?(l=b-m.left+15,c=A()):(l=k(),c=n.clientY-m.top-o.tooltipRect.ttHeight/2-15):r.globals.isBarHorizontal?((l=v)<o.xyRatios.baseLineInvertedY&&(l=v-o.tooltipRect.ttWidth),c=A()):(l=k(),c=y)}return{x:l,y:c,barHeight:d,barWidth:u,i:s,j:a}}}]),e}(),ye=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t}return c(e,[{key:"drawXaxisTooltip",value:function(){var e=this.w,t=this.ttCtx,n="bottom"===e.config.xaxis.position;t.xaxisOffY=n?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var i=n?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",r=e.globals.dom.elWrap;t.isXAxisTooltipEnabled&&null===e.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(t.xaxisTooltip=document.createElement("div"),t.xaxisTooltip.setAttribute("class",i+" apexcharts-theme-"+e.config.tooltip.theme),r.appendChild(t.xaxisTooltip),t.xaxisTooltipText=document.createElement("div"),t.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var e=this.w,t=this.ttCtx,n=function(n){var i=e.config.yaxis[n].opposite||e.config.yaxis[n].crosshairs.opposite;t.yaxisOffX=i?e.globals.gridWidth+1:1;var r="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n,i?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");e.globals.yAxisSameScaleIndices.map((function(t,i){t.map((function(t,i){i===n&&(r+=e.config.yaxis[i].show?" ":" apexcharts-yaxistooltip-hidden")}))}));var a=e.globals.dom.elWrap;null===e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n))&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",r+" apexcharts-theme-"+e.config.tooltip.theme),a.appendChild(t.yaxisTooltip),0===n&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[n]=document.createElement("div"),t.yaxisTooltipText[n].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[n]))},i=0;i<e.config.yaxis.length;i++)n(i)}},{key:"setXCrosshairWidth",value:function(){var e=this.w,t=this.ttCtx,n=t.getElXCrosshairs();if(t.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts){var i=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==i&&"barWidth"===e.config.xaxis.crosshairs.width){var r=parseFloat(i.getAttribute("barWidth"));t.xcrosshairsWidth=r}else if("tickWidth"===e.config.xaxis.crosshairs.width){var a=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/a}}else if("tickWidth"===e.config.xaxis.crosshairs.width){var o=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/o}else if("barWidth"===e.config.xaxis.crosshairs.width){var s=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==s){var l=parseFloat(s.getAttribute("barWidth"));t.xcrosshairsWidth=l}else t.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(t.xcrosshairsWidth=0),null!==n&&t.xcrosshairsWidth>0&&n.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,n){var i=this.ttCtx,r=this.w,a=r.globals.yLabelFormatters[e];if(i.yaxisTooltips[e]){var o=i.getElGrid().getBoundingClientRect(),s=(t-o.top)*n.yRatio[e],l=r.globals.maxYArr[e]-r.globals.minYArr[e],c=r.globals.minYArr[e]+(l-s);i.tooltipPosition.moveYCrosshairs(t-o.top),i.yaxisTooltipText[e].innerHTML=a(c),i.tooltipPosition.moveYAxisTooltip(e)}}}]),e}(),be=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.tConfig=n.config.tooltip,this.tooltipUtil=new pe(this),this.tooltipLabels=new me(this),this.tooltipPosition=new ge(this),this.marker=new _e(this),this.intersect=new ve(this),this.axesTooltip=new ye(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!n.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return c(e,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map((function(e,n){return!!(e.show&&e.tooltip.enabled&&t.globals.axisCharts)})),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var n=document.createElement("div");if(n.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&n.classList.add(t.config.tooltip.cssClass),n.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(n),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var i=new V(this.ctx);this.xAxisTicksPositions=i.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==t.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==t.config.markers.size&&0!==t.globals.markers.largestSize||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,n.appendChild(this.tooltipTitle));var r=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(r=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(r),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,n=this.w,i=[],r=this.getElTooltip(),a=function(a){var o=document.createElement("div");o.classList.add("apexcharts-tooltip-series-group"),o.style.order=n.config.tooltip.inverseOrder?e-a:a+1,t.tConfig.shared&&t.tConfig.enabledOnSeries&&Array.isArray(t.tConfig.enabledOnSeries)&&t.tConfig.enabledOnSeries.indexOf(a)<0&&o.classList.add("apexcharts-tooltip-series-group-hidden");var s=document.createElement("span");s.classList.add("apexcharts-tooltip-marker"),s.style.backgroundColor=n.globals.colors[a],o.appendChild(s);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=t.tConfig.style.fontFamily||n.config.chart.fontFamily,l.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach((function(e){var t=document.createElement("div");t.classList.add("apexcharts-tooltip-".concat(e,"-group"));var n=document.createElement("span");n.classList.add("apexcharts-tooltip-text-".concat(e,"-label")),t.appendChild(n);var i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(e,"-value")),t.appendChild(i),l.appendChild(t)})),o.appendChild(l),r.appendChild(o),i.push(o)},o=0;o<e;o++)a(o);return i}},{key:"addSVGEvents",value:function(){var e=this.w,t=e.config.chart.type,n=this.getElTooltip(),i=!("bar"!==t&&"candlestick"!==t&&"boxPlot"!==t&&"rangeBar"!==t),r="area"===t||"line"===t||"scatter"===t||"bubble"===t||"radar"===t,a=e.globals.dom.Paper.node,o=this.getElGrid();o&&(this.seriesBound=o.getBoundingClientRect());var s,l=[],c=[],u={hoverArea:a,elGrid:o,tooltipEl:n,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(e.globals.axisCharts&&(r?s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):i?s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==t&&"treemap"!==t||(s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),s&&s.length))for(var d=0;d<s.length;d++)l.push(s[d].getAttribute("cy")),c.push(s[d].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||i&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([a],u);else if(i&&!e.globals.comboCharts||r&&this.showOnIntersect)this.addDatapointEventsListeners(u);else if(!e.globals.axisCharts||"heatmap"===t||"treemap"===t){var h=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(h,u)}if(this.showOnIntersect){var f=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");f.length>0&&this.addPathsEventListeners(f,u),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(u)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),n=t.getBoundingClientRect(),i=n.width+10,r=n.height+10,a=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,s=this.tConfig.fixed.position.toLowerCase();return s.indexOf("right")>-1&&(a=a+e.globals.svgWidth-i+10),s.indexOf("bottom")>-1&&(o=o+e.globals.svgHeight-r-10),t.style.left=a+"px",t.style.top=o+"px",{x:a,y:o,ttWidth:i,ttHeight:r}}},{key:"addDatapointEventsListeners",value:function(e){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var n=this,i=function(i){var r={paths:e[i],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(t){return e[i].addEventListener(t,n.onSeriesHover.bind(n,r),{capture:!1,passive:!0})}))},r=0;r<e.length;r++)i(r)}},{key:"onSeriesHover",value:function(e,t){var n=this,i=Date.now()-this.lastHoverTime;i>=100?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout((function(){n.seriesHover(e,t)}),100-i))}},{key:"seriesHover",value:function(e,t){var n=this;this.lastHoverTime=Date.now();var i=[],r=this.w;r.config.chart.group&&(i=this.ctx.getGroupedCharts()),r.globals.axisCharts&&(r.globals.minX===-1/0&&r.globals.maxX===1/0||0===r.globals.dataPoints)||(i.length?i.forEach((function(i){var r=n.getElTooltip(i),a={paths:e.paths,tooltipEl:r,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:i.w.globals.tooltip.ttItems};i.w.globals.minX===n.w.globals.minX&&i.w.globals.maxX===n.w.globals.maxX&&i.w.globals.tooltip.seriesHoverByContext({chartCtx:i,ttCtx:i.w.globals.tooltip,opt:a,e:t})})):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,n=e.ttCtx,i=e.opt,r=e.e,a=t.w,o=this.getElTooltip();o&&(n.tooltipRect={x:0,y:0,ttWidth:o.getBoundingClientRect().width,ttHeight:o.getBoundingClientRect().height},n.e=r,!n.tooltipUtil.hasBars()||a.globals.comboCharts||n.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new B(t).toggleSeriesOnHover(r,r.target.parentNode),n.fixedTooltip&&n.drawFixedTooltipRect(),a.globals.axisCharts?n.axisChartsTooltips({e:r,opt:i,tooltipRect:n.tooltipRect}):n.nonAxisChartsTooltips({e:r,opt:i,tooltipRect:n.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,n,i=e.e,r=e.opt,a=this.w,o=r.elGrid.getBoundingClientRect(),s="touchmove"===i.type?i.touches[0].clientX:i.clientX,l="touchmove"===i.type?i.touches[0].clientY:i.clientY;if(this.clientY=l,this.clientX=s,a.globals.capturedSeriesIndex=-1,a.globals.capturedDataPointIndex=-1,l<o.top||l>o.top+o.height)this.handleMouseOut(r);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!a.config.tooltip.shared){var c=parseInt(r.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(r)}var u=this.getElTooltip(),d=this.getElXCrosshairs(),h=a.globals.xyCharts||"bar"===a.config.chart.type&&!a.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||a.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===i.type||"touchmove"===i.type||"mouseup"===i.type){if(a.globals.collapsedSeries.length+a.globals.ancillaryCollapsedSeries.length===a.globals.series.length)return;null!==d&&d.classList.add("apexcharts-active");var f=this.yaxisTooltips.filter((function(e){return!0===e}));if(null!==this.ycrosshairs&&f.length&&this.ycrosshairs.classList.add("apexcharts-active"),h&&!this.showOnIntersect)this.handleStickyTooltip(i,s,l,r);else if("heatmap"===a.config.chart.type||"treemap"===a.config.chart.type){var p=this.intersect.handleHeatTreeTooltip({e:i,opt:r,x:t,y:n,type:a.config.chart.type});t=p.x,n=p.y,u.style.left=t+"px",u.style.top=n+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:i,opt:r}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:i,opt:r,x:t,y:n});if(this.yaxisTooltips.length)for(var m=0;m<a.config.yaxis.length;m++)this.axesTooltip.drawYaxisTooltipText(m,l,this.xyRatios);r.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==i.type&&"touchend"!==i.type||this.handleMouseOut(r)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,n=e.opt,i=e.tooltipRect,r=this.w,a=n.paths.getAttribute("rel"),o=this.getElTooltip(),s=r.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===t.type||"touchmove"===t.type){o.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:parseInt(a,10)-1,shared:!1});var l=r.globals.clientX-s.left-i.ttWidth/2,c=r.globals.clientY-s.top-i.ttHeight-10;if(o.style.left=l+"px",o.style.top=c+"px",r.config.legend.tooltipHoverFormatter){var u=a-1,d=(0,r.config.legend.tooltipHoverFormatter)(this.legendLabels[u].getAttribute("data:default-text"),{seriesIndex:u,dataPointIndex:u,w:r});this.legendLabels[u].innerHTML=d}}else"mouseout"!==t.type&&"touchend"!==t.type||(o.classList.remove("apexcharts-active"),r.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)})))}},{key:"handleStickyTooltip",value:function(e,t,n,i){var r=this.w,a=this.tooltipUtil.getNearestValues({context:this,hoverArea:i.hoverArea,elGrid:i.elGrid,clientX:t,clientY:n}),o=a.j,s=a.capturedSeries;r.globals.collapsedSeriesIndices.includes(s)&&(s=null);var l=i.elGrid.getBoundingClientRect();if(a.hoverX<0||a.hoverX>l.width)this.handleMouseOut(i);else if(null!==s)this.handleStickyCapturedSeries(e,s,i,o);else if(this.tooltipUtil.isXoverlap(o)||r.globals.isBarHorizontal){var c=r.globals.series.findIndex((function(e,t){return!r.globals.collapsedSeriesIndices.includes(t)}));this.create(e,this,c,o,i.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,t,n,i){var r=this.w;if(this.tConfig.shared||null!==r.globals.series[t][i]){if(void 0!==r.globals.series[t][i])this.tConfig.shared&&this.tooltipUtil.isXoverlap(i)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,i,n.ttItems):this.create(e,this,t,i,n.ttItems,!1);else if(this.tooltipUtil.isXoverlap(i)){var a=r.globals.series.findIndex((function(e,t){return!r.globals.collapsedSeriesIndices.includes(t)}));this.create(e,this,a,i,n.ttItems)}}else this.handleMouseOut(n)}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new x(this.ctx),n=e.globals.dom.Paper.select(".apexcharts-bar-area"),i=0;i<n.length;i++)t.pathMouseLeave(n[i])}},{key:"handleMouseOut",value:function(e){var t=this.w,n=this.getElXCrosshairs();if(e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==t.config.chart.type&&this.marker.resetPointsSize(),null!==n&&n.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var i=0;i<this.yaxisTTEls.length;i++)this.yaxisTTEls[i].classList.remove("apexcharts-active")}t.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}))}},{key:"markerClick",value:function(e,t,n){var i=this.w;"function"==typeof i.config.chart.events.markerClick&&i.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:n,w:i}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:n,w:i}])}},{key:"create",value:function(e,t,n,i,r){var o,s,l,c,u,d,h,f,p,m,g,_,v,y,b,w,k=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,A=this.w,S=t;"mouseup"===e.type&&this.markerClick(e,n,i),null===k&&(k=this.tConfig.shared);var M=this.tooltipUtil.hasMarkers(n),T=this.tooltipUtil.getElBars();if(A.config.legend.tooltipHoverFormatter){var L=A.config.legend.tooltipHoverFormatter,E=Array.from(this.legendLabels);E.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}));for(var C=0;C<E.length;C++){var D=E[C],O=parseInt(D.getAttribute("i"),10),Y=decodeURIComponent(D.getAttribute("data:default-text")),P=L(Y,{seriesIndex:k?O:n,dataPointIndex:i,w:A});if(k)D.innerHTML=A.globals.collapsedSeriesIndices.indexOf(O)<0?P:Y;else if(D.innerHTML=O===n?P:Y,n===O)break}}var j=a(a({ttItems:r,i:n,j:i},void 0!==(null===(o=A.globals.seriesRange)||void 0===o||null===(s=o[n])||void 0===s||null===(l=s[i])||void 0===l||null===(c=l.y[0])||void 0===c?void 0:c.y1)&&{y1:null===(u=A.globals.seriesRange)||void 0===u||null===(d=u[n])||void 0===d||null===(h=d[i])||void 0===h||null===(f=h.y[0])||void 0===f?void 0:f.y1}),void 0!==(null===(p=A.globals.seriesRange)||void 0===p||null===(m=p[n])||void 0===m||null===(g=m[i])||void 0===g||null===(_=g.y[0])||void 0===_?void 0:_.y2)&&{y2:null===(v=A.globals.seriesRange)||void 0===v||null===(y=v[n])||void 0===y||null===(b=y[i])||void 0===b||null===(w=b.y[0])||void 0===w?void 0:w.y2});if(k){if(S.tooltipLabels.drawSeriesTexts(a(a({},j),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),M)A.globals.markers.largestSize>0?S.marker.enlargePoints(i):S.tooltipPosition.moveDynamicPointsOnHover(i);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(T),this.barSeriesHeight>0)){var I=new x(this.ctx),F=A.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(i,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(i,n);for(var N=0;N<F.length;N++)I.pathMouseEnter(F[N])}}else S.tooltipLabels.drawSeriesTexts(a({shared:!1},j)),this.tooltipUtil.hasBars()&&S.tooltipPosition.moveStickyTooltipOverBars(i,n),M&&S.tooltipPosition.moveMarkers(n,i)}}]),e}(),we=function(){function e(t){s(this,e),this.w=t.w,this.barCtx=t,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return c(e,[{key:"handleBarDataLabels",value:function(e){var t=e.x,n=e.y,i=e.y1,r=e.y2,a=e.i,o=e.j,s=e.realIndex,l=e.groupIndex,c=e.series,u=e.barHeight,d=e.barWidth,h=e.barXPosition,f=e.barYPosition,p=e.visibleSeries,m=e.renderedPath,g=this.w,_=new x(this.barCtx.ctx),v=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[s]:this.barCtx.strokeWidth,y=t+parseFloat(d*p),b=n+parseFloat(u*p);g.globals.isXNumeric&&!g.globals.isBarHorizontal&&(y=t+parseFloat(d*(p+1)),b=n+parseFloat(u*(p+1))-v);var w,k,A=null,S=t,M=n,T=g.config.dataLabels,L=this.barCtx.barOptions.dataLabels,E=this.barCtx.barOptions.dataLabels.total;void 0!==f&&this.barCtx.isRangeBar&&(b=f,M=f),void 0!==h&&this.barCtx.isVerticalGroupedRangeBar&&(y=h,S=h);var C=T.offsetX,D=T.offsetY,O={width:0,height:0};if(g.config.dataLabels.enabled){var Y=this.barCtx.series[a][o];O=_.getTextRects(g.globals.yLabelFormatters[0](Y),parseFloat(T.style.fontSize))}var P={x:t,y:n,i:a,j:o,realIndex:s,groupIndex:l||-1,renderedPath:m,bcx:y,bcy:b,barHeight:u,barWidth:d,textRects:O,strokeWidth:v,dataLabelsX:S,dataLabelsY:M,dataLabelsConfig:T,barDataLabelsConfig:L,barTotalDataLabelsConfig:E,offX:C,offY:D};return k=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(P):this.calculateColumnsDataLabelsPosition(P),m.attr({cy:k.bcy,cx:k.bcx,j:o,val:c[a][o],barHeight:u,barWidth:d}),w=this.drawCalculatedDataLabels({x:k.dataLabelsX,y:k.dataLabelsY,val:this.barCtx.isRangeBar?[i,r]:c[a][o],i:s,j:o,barWidth:d,barHeight:u,textRects:O,dataLabelsConfig:T}),g.config.chart.stacked&&E.enabled&&(A=this.drawTotalDataLabels({x:k.totalDataLabelsX,y:k.totalDataLabelsY,realIndex:s,textAnchor:k.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:s,j:o}),dataLabelsConfig:T,barTotalDataLabelsConfig:E})),{dataLabels:w,totalDataLabels:A}}},{key:"getStackedTotalDataLabel",value:function(e){var t=e.realIndex,n=e.j,i=this.w,r=this.barCtx.stackedSeriesTotals[n];return this.totalFormatter&&(r=this.totalFormatter(r,a(a({},i),{},{seriesIndex:t,dataPointIndex:n,w:i}))),r}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t,n,i=this.w,r=e.i,a=e.j,o=e.realIndex,s=e.groupIndex,l=e.y,c=e.bcx,u=e.barWidth,d=e.barHeight,h=e.textRects,f=e.dataLabelsX,p=e.dataLabelsY,m=e.dataLabelsConfig,g=e.barDataLabelsConfig,_=e.barTotalDataLabelsConfig,v=e.strokeWidth,y=e.offX,b=e.offY;d=Math.abs(d);var w="vertical"===i.config.plotOptions.bar.dataLabels.orientation,k=this.barCtx.barHelpers.getZeroValueEncounters({i:r,j:a}).zeroEncounters;c=c-v/2+(-1!==s?s*u:0);var A=i.globals.gridWidth/i.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?f+=u/2:(f=i.globals.isXNumeric?c-u/2+y:c-A+u/2+y,k>0&&i.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(f-=u*k)),w&&(f=f+h.height/2-v/2-2);var S=this.barCtx.series[r][a]<0,M=l;switch(this.barCtx.isReversed&&(M=l-d+(S?2*d:0),l-=d),g.position){case"center":p=w?S?M-d/2+b:M+d/2-b:S?M-d/2+h.height/2+b:M+d/2+h.height/2-b;break;case"bottom":p=w?S?M-d+b:M+d-b:S?M-d+h.height+v+b:M+d-h.height/2+v-b;break;case"top":p=w?S?M+b:M-b:S?M-h.height/2-b:M+h.height+b}if(this.barCtx.lastActiveBarSerieIndex===o&&_.enabled){var T=new x(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:a}),m.fontSize);t=S?M-T.height/2-b-_.offsetY+18:M+T.height+b+_.offsetY-18,n=f+_.offsetX}return i.config.chart.stacked||(p<0?p=0+v:p+h.height/3>i.globals.gridHeight&&(p=i.globals.gridHeight-v)),{bcx:c,bcy:l,dataLabelsX:f,dataLabelsY:p,totalDataLabelsX:n,totalDataLabelsY:t,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,n=e.x,i=e.i,r=e.j,a=e.realIndex,o=e.groupIndex,s=e.bcy,l=e.barHeight,c=e.barWidth,u=e.textRects,d=e.dataLabelsX,h=e.strokeWidth,f=e.dataLabelsConfig,p=e.barDataLabelsConfig,m=e.barTotalDataLabelsConfig,g=e.offX,_=e.offY,v=t.globals.gridHeight/t.globals.dataPoints;c=Math.abs(c);var y,b,w=(s+=-1!==o?o*l:0)-(this.barCtx.isRangeBar?0:v)+l/2+u.height/2+_-3,k="start",A=this.barCtx.series[i][r]<0,S=n;switch(this.barCtx.isReversed&&(S=n+c-(A?2*c:0),n=t.globals.gridWidth-c),p.position){case"center":d=A?S+c/2-g:Math.max(u.width/2,S-c/2)+g;break;case"bottom":d=A?S+c-h-Math.round(u.width/2)-g:S-c+h+Math.round(u.width/2)+g;break;case"top":d=A?S-h+Math.round(u.width/2)-g:S-h-Math.round(u.width/2)+g}if(this.barCtx.lastActiveBarSerieIndex===a&&m.enabled){var M=new x(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:a,j:r}),f.fontSize);A?(y=S-h+Math.round(M.width/2)-g-m.offsetX-15,k="end"):y=S-h-Math.round(M.width/2)+g+m.offsetX+15,b=w+m.offsetY}return t.config.chart.stacked||(d<0?d=d+u.width+h:d+u.width/2>t.globals.gridWidth&&(d=t.globals.gridWidth-u.width-h)),{bcx:n,bcy:s,dataLabelsX:d,dataLabelsY:w,totalDataLabelsX:y,totalDataLabelsY:b,totalDataLabelsAnchor:k}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,n=e.y,i=e.val,r=e.i,o=e.j,s=e.textRects,l=e.barHeight,c=e.barWidth,u=e.dataLabelsConfig,d=this.w,h="rotate(0)";"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&(h="rotate(-90, ".concat(t,", ").concat(n,")"));var f=new q(this.barCtx.ctx),p=new x(this.barCtx.ctx),m=u.formatter,g=null,_=d.globals.collapsedSeriesIndices.indexOf(r)>-1;if(u.enabled&&!_){g=p.group({class:"apexcharts-data-labels",transform:h});var v="";void 0!==i&&(v=m(i,a(a({},d),{},{seriesIndex:r,dataPointIndex:o,w:d}))),!i&&d.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(v="");var y=d.globals.series[r][o]<0,b=d.config.plotOptions.bar.dataLabels.position;"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&("top"===b&&(u.textAnchor=y?"end":"start"),"center"===b&&(u.textAnchor="middle"),"bottom"===b&&(u.textAnchor=y?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&c<p.getTextRects(v,parseFloat(u.style.fontSize)).width&&(v=""),d.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?s.width/1.6>Math.abs(c)&&(v=""):s.height/1.6>Math.abs(l)&&(v=""));var w=a({},u);this.barCtx.isHorizontal&&i<0&&("start"===u.textAnchor?w.textAnchor="end":"end"===u.textAnchor&&(w.textAnchor="start")),f.plotDataLabelsText({x:t,y:n,text:v,i:r,j:o,parent:g,dataLabelsConfig:w,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return g}},{key:"drawTotalDataLabels",value:function(e){var t,n=e.x,i=e.y,r=e.val,a=e.realIndex,o=e.textAnchor,s=e.barTotalDataLabelsConfig,l=new x(this.barCtx.ctx);return s.enabled&&void 0!==n&&void 0!==i&&this.barCtx.lastActiveBarSerieIndex===a&&(t=l.drawText({x:n,y:i,foreColor:s.style.color,text:r,textAnchor:o,fontFamily:s.style.fontFamily,fontSize:s.style.fontSize,fontWeight:s.style.fontWeight})),t}}]),e}(),xe=function(){function e(t){s(this,e),this.w=t.w,this.barCtx=t}return c(e,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var n=0;n<e.length;n++)if(e[n].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[n].length),t.globals.isXNumeric)for(var i=0;i<e[n].length;i++)t.globals.seriesX[n][i]>t.globals.minX&&t.globals.seriesX[n][i]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(){var e,t,n,i,r,a,o,s,l=this.w,c=l.globals.dataPoints;this.barCtx.isRangeBar&&(c=l.globals.labels.length);var u=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(u=1),this.barCtx.isHorizontal)r=(n=l.globals.gridHeight/c)/u,l.globals.isXNumeric&&(r=(n=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),r=r*parseInt(this.barCtx.barOptions.barHeight,10)/100,-1===String(this.barCtx.barOptions.barHeight).indexOf("%")&&(r=parseInt(this.barCtx.barOptions.barHeight,10)),s=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(s=l.globals.gridWidth/2),t=(n-r*this.barCtx.seriesLen)/2;else{if(i=l.globals.gridWidth/this.barCtx.visibleItems,l.config.xaxis.convertedCatToNumeric&&(i=l.globals.gridWidth/l.globals.dataPoints),a=i/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric){var d=this.barCtx.xRatio;l.config.xaxis.convertedCatToNumeric&&(d=this.barCtx.initialXRatio),l.globals.minXDiff&&.5!==l.globals.minXDiff&&l.globals.minXDiff/d>0&&(i=l.globals.minXDiff/d),(a=i/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(a=1)}-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(a=parseInt(this.barCtx.barOptions.columnWidth,10)),o=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),e=l.globals.padHorizontal+(i-a*this.barCtx.seriesLen)/2}return{x:e,y:t,yDivision:n,xDivision:i,barHeight:r,barWidth:a,zeroH:o,zeroW:s}}},{key:"initializeStackedPrevVars",value:function(e){var t=e.w;t.globals.hasSeriesGroups?t.globals.seriesGroups.forEach((function(t){e[t]||(e[t]={}),e[t].prevY=[],e[t].prevX=[],e[t].prevYF=[],e[t].prevXF=[],e[t].prevYVal=[],e[t].prevXVal=[]})):(e.prevY=[],e.prevX=[],e.prevYF=[],e.prevXF=[],e.prevYVal=[],e.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(e){var t=e.w;t.globals.hasSeriesGroups?t.globals.seriesGroups.forEach((function(t){e[t]||(e[t]={}),e[t].xArrj=[],e[t].xArrjF=[],e[t].xArrjVal=[],e[t].yArrj=[],e[t].yArrjF=[],e[t].yArrjVal=[]})):(e.xArrj=[],e.xArrjF=[],e.xArrjVal=[],e.yArrj=[],e.yArrjF=[],e.yArrjVal=[])}},{key:"getPathFillColor",value:function(e,t,n,i){var r,a,o,s,l=this.w,c=new R(this.barCtx.ctx),u=null,d=this.barCtx.barOptions.distributed?n:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(i){e[t][n]>=i.from&&e[t][n]<=i.to&&(u=i.color)})),l.config.series[t].data[n]&&l.config.series[t].data[n].fillColor&&(u=l.config.series[t].data[n].fillColor),c.fillPath({seriesNumber:this.barCtx.barOptions.distributed?d:i,dataPointIndex:n,color:u,value:e[t][n],fillConfig:null===(r=l.config.series[t].data[n])||void 0===r?void 0:r.fill,fillType:null!==(a=l.config.series[t].data[n])&&void 0!==a&&null!==(o=a.fill)&&void 0!==o&&o.type?null===(s=l.config.series[t].data[n])||void 0===s?void 0:s.fill.type:l.config.fill.type})}},{key:"getStrokeWidth",value:function(e,t,n){var i=0,r=this.w;return this.barCtx.series[e][t]?this.barCtx.isNullValue=!1:this.barCtx.isNullValue=!0,r.config.stroke.show&&(this.barCtx.isNullValue||(i=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[n]:this.barCtx.strokeWidth)),i}},{key:"shouldApplyRadius",value:function(e){var t=this.w,n=!1;return t.config.plotOptions.bar.borderRadius>0&&(t.config.chart.stacked&&"last"===t.config.plotOptions.bar.borderRadiusWhenStacked?this.barCtx.lastActiveBarSerieIndex===e&&(n=!0):n=!0),n}},{key:"barBackground",value:function(e){var t=e.j,n=e.i,i=e.x1,r=e.x2,a=e.y1,o=e.y2,s=e.elSeries,l=this.w,c=new x(this.barCtx.ctx),u=new B(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&u===n){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[t],h=c.drawRect(void 0!==i?i:0,void 0!==a?a:0,void 0!==r?r:l.globals.gridWidth,void 0!==o?o:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);s.add(h),h.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,n=e.barWidth,i=e.barXPosition,r=e.y1,a=e.y2,o=e.strokeWidth,s=e.seriesGroup,l=e.realIndex,c=e.i,u=e.j,d=e.w,h=new x(this.barCtx.ctx);(o=Array.isArray(o)?o[l]:o)||(o=0);var f=n,p=i;null!==(t=d.config.series[l].data[u])&&void 0!==t&&t.columnWidthOffset&&(p=i-d.config.series[l].data[u].columnWidthOffset/2,f=n+d.config.series[l].data[u].columnWidthOffset);var m=p,g=p+f;r+=.001,a+=.001;var _=h.move(m,r),v=h.move(m,r),y=h.line(g-o,r);if(d.globals.previousPaths.length>0&&(v=this.barCtx.getPreviousPath(l,u,!1)),_=_+h.line(m,a)+h.line(g-o,a)+h.line(g-o,r)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),v=v+h.line(m,r)+y+y+y+y+y+h.line(m,r)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(_=h.roundPathCorners(_,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var b=this.barCtx;d.globals.hasSeriesGroups&&s&&(b=this.barCtx[s]),b.yArrj.push(a),b.yArrjF.push(Math.abs(r-a)),b.yArrjVal.push(this.barCtx.series[c][u])}return{pathTo:_,pathFrom:v}}},{key:"getBarpaths",value:function(e){var t,n=e.barYPosition,i=e.barHeight,r=e.x1,a=e.x2,o=e.strokeWidth,s=e.seriesGroup,l=e.realIndex,c=e.i,u=e.j,d=e.w,h=new x(this.barCtx.ctx);(o=Array.isArray(o)?o[l]:o)||(o=0);var f=n,p=i;null!==(t=d.config.series[l].data[u])&&void 0!==t&&t.barHeightOffset&&(f=n-d.config.series[l].data[u].barHeightOffset/2,p=i+d.config.series[l].data[u].barHeightOffset);var m=f,g=f+p;r+=.001,a+=.001;var _=h.move(r,m),v=h.move(r,m);d.globals.previousPaths.length>0&&(v=this.barCtx.getPreviousPath(l,u,!1));var y=h.line(r,g-o);if(_=_+h.line(a,m)+h.line(a,g-o)+y+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),v=v+h.line(r,m)+y+y+y+y+y+h.line(r,m)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(_=h.roundPathCorners(_,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var b=this.barCtx;d.globals.hasSeriesGroups&&s&&(b=this.barCtx[s]),b.xArrj.push(a),b.xArrjF.push(Math.abs(r-a)),b.xArrjVal.push(this.barCtx.series[c][u])}return{pathTo:_,pathFrom:v}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,n=this.w,i=0;i<t.length;i++){for(var r=0,a=0;a<t[n.globals.maxValsInArrayIndex].length;a++)r+=t[i][a];0===r&&this.barCtx.zeroSerieses.push(i)}}},{key:"getXForValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:t;return null!=e&&(n=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),n}},{key:"getYForValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:t;return null!=e&&(n=t-e/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),n}},{key:"getGoalValues",value:function(e,t,n,i,r){var o=this,s=this.w,l=[],c=function(i,r){var a;l.push((u(a={},e,"x"===e?o.getXForValue(i,t,!1):o.getYForValue(i,n,!1)),u(a,"attrs",r),a))};if(s.globals.seriesGoals[i]&&s.globals.seriesGoals[i][r]&&Array.isArray(s.globals.seriesGoals[i][r])&&s.globals.seriesGoals[i][r].forEach((function(e){c(e.value,e)})),this.barCtx.barOptions.isDumbbell&&s.globals.seriesRange.length){var d=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:s.globals.colors,h={strokeHeight:"x"===e?0:s.globals.markers.size[i],strokeWidth:"x"===e?s.globals.markers.size[i]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(d[i])?d[i][0]:d[i]};c(s.globals.seriesRangeStart[i][r],h),c(s.globals.seriesRangeEnd[i][r],a(a({},h),{},{strokeColor:Array.isArray(d[i])?d[i][1]:d[i]}))}return l}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,n=e.barYPosition,i=e.goalX,r=e.goalY,a=e.barWidth,o=e.barHeight,s=new x(this.barCtx.ctx),l=s.group({className:"apexcharts-bar-goals-groups"});l.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:l.node}),l.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var c=null;return this.barCtx.isHorizontal?Array.isArray(i)&&i.forEach((function(e){var t=void 0!==e.attrs.strokeHeight?e.attrs.strokeHeight:o/2,i=n+t+o/2;c=s.drawLine(e.x,i-2*t,e.x,i,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeWidth?e.attrs.strokeWidth:2,e.attrs.strokeLineCap),l.add(c)})):Array.isArray(r)&&r.forEach((function(e){var n=void 0!==e.attrs.strokeWidth?e.attrs.strokeWidth:a/2,i=t+n+a/2;c=s.drawLine(i-2*n,e.y,i,e.y,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeHeight?e.attrs.strokeHeight:2,e.attrs.strokeLineCap),l.add(c)})),l}},{key:"drawBarShadow",value:function(e){var t=e.prevPaths,n=e.currPaths,i=e.color,r=this.w,a=t.x,o=t.x1,s=t.barYPosition,l=n.x,c=n.x1,u=n.barYPosition,d=s+n.barHeight,h=new x(this.barCtx.ctx),f=new y,p=h.move(o,d)+h.line(a,d)+h.line(l,u)+h.line(c,u)+h.line(o,d)+("around"===r.config.plotOptions.bar.borderRadiusApplication?" Z":" z");return h.drawPath({d:p,fill:f.shadeColor(.5,y.rgb2hex(i)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(e){var t=e.i,n=e.j,i=this.w,r=0,a=0;return i.globals.seriesPercent.forEach((function(e,i){e[n]&&r++,i<t&&0===e[n]&&a++})),{nonZeroColumns:r,zeroEncounters:a}}}]),e}(),ke=function(){function e(t,n){s(this,e),this.ctx=t,this.w=t.w;var i=this.w;this.barOptions=i.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=i.config.stroke.width,this.isNullValue=!1,this.isRangeBar=i.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&i.globals.seriesRange.length&&i.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=n,null!==this.xyRatios&&(this.xRatio=n.xRatio,this.initialXRatio=n.initialXRatio,this.yRatio=n.yRatio,this.invertedXRatio=n.invertedXRatio,this.invertedYRatio=n.invertedYRatio,this.baseLineY=n.baseLineY,this.baseLineInvertedY=n.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.pathArr=[];var r=new B(this.ctx);this.lastActiveBarSerieIndex=r.getActiveConfigSeriesIndex("desc",["bar","column"]);var a=r.getBarSeriesIndices(),o=new k(this.ctx);this.stackedSeriesTotals=o.getStackedSeriesTotals(this.w.config.series.map((function(e,t){return-1===a.indexOf(t)?t:-1})).filter((function(e){return-1!==e}))),this.barHelpers=new xe(this)}return c(e,[{key:"draw",value:function(e,t){var n=this.w,i=new x(this.ctx),r=new k(this.ctx,n);e=r.getLogSeries(e),this.series=e,this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var o=i.group({class:"apexcharts-bar-series apexcharts-plot-series"});n.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var s=0,l=0;s<e.length;s++,l++){var c,u,d,h,f=void 0,p=void 0,m=[],g=[],_=n.globals.comboCharts?t[s]:s,v=i.group({class:"apexcharts-series",rel:s+1,seriesName:y.escapeString(n.globals.seriesNames[_]),"data:realIndex":_});this.ctx.series.addCollapsedClassToSeries(v,_),e[s].length>0&&(this.visibleI=this.visibleI+1);var b=0,w=0;this.yRatio.length>1&&(this.yaxisIndex=_),this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed;var A=this.barHelpers.initialPositions();p=A.y,b=A.barHeight,u=A.yDivision,h=A.zeroW,f=A.x,w=A.barWidth,c=A.xDivision,d=A.zeroH,this.horizontal||g.push(f+w/2);var S=i.group({class:"apexcharts-datalabels","data:realIndex":_});n.globals.delayedElements.push({el:S.node}),S.node.classList.add("apexcharts-element-hidden");var M=i.group({class:"apexcharts-bar-goals-markers"}),T=i.group({class:"apexcharts-bar-shadows"});n.globals.delayedElements.push({el:T.node}),T.node.classList.add("apexcharts-element-hidden");for(var L=0;L<n.globals.dataPoints;L++){var E=this.barHelpers.getStrokeWidth(s,L,_),C=null,D={indexes:{i:s,j:L,realIndex:_,bc:l},x:f,y:p,strokeWidth:E,elSeries:v};this.isHorizontal?(C=this.drawBarPaths(a(a({},D),{},{barHeight:b,zeroW:h,yDivision:u})),w=this.series[s][L]/this.invertedYRatio):(C=this.drawColumnPaths(a(a({},D),{},{xDivision:c,barWidth:w,zeroH:d})),b=this.series[s][L]/this.yRatio[this.yaxisIndex]);var O=this.barHelpers.getPathFillColor(e,s,L,_);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&L>0){var Y=this.barHelpers.drawBarShadow({color:"string"==typeof O&&-1===(null==O?void 0:O.indexOf("url"))?O:y.hexToRgba(n.globals.colors[s]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:C});Y&&T.add(Y)}this.pathArr.push(C);var P=this.barHelpers.drawGoalLine({barXPosition:C.barXPosition,barYPosition:C.barYPosition,goalX:C.goalX,goalY:C.goalY,barHeight:b,barWidth:w});P&&M.add(P),p=C.y,f=C.x,L>0&&g.push(f+w/2),m.push(p),this.renderSeries({realIndex:_,pathFill:O,j:L,i:s,pathFrom:C.pathFrom,pathTo:C.pathTo,strokeWidth:E,elSeries:v,x:f,y:p,series:e,barHeight:C.barHeight?C.barHeight:b,barWidth:C.barWidth?C.barWidth:w,elDataLabelsWrap:S,elGoalsMarkers:M,elBarShadows:T,visibleSeries:this.visibleI,type:"bar"})}n.globals.seriesXvalues[_]=g,n.globals.seriesYvalues[_]=m,o.add(v)}return o}},{key:"renderSeries",value:function(e){var t=e.realIndex,n=e.pathFill,i=e.lineFill,r=e.j,a=e.i,o=e.groupIndex,s=e.pathFrom,l=e.pathTo,c=e.strokeWidth,u=e.elSeries,d=e.x,h=e.y,f=e.y1,p=e.y2,m=e.series,g=e.barHeight,_=e.barWidth,v=e.barXPosition,y=e.barYPosition,b=e.elDataLabelsWrap,k=e.elGoalsMarkers,A=e.elBarShadows,S=e.visibleSeries,M=e.type,T=this.w,L=new x(this.ctx);i||(i=this.barOptions.distributed?T.globals.stroke.colors[r]:T.globals.stroke.colors[t]),T.config.series[a].data[r]&&T.config.series[a].data[r].strokeColor&&(i=T.config.series[a].data[r].strokeColor),this.isNullValue&&(n="none");var E=r/T.config.chart.animations.animateGradually.delay*(T.config.chart.animations.speed/T.globals.dataPoints)/2.4,C=L.renderPaths({i:a,j:r,realIndex:t,pathFrom:s,pathTo:l,stroke:i,strokeWidth:c,strokeLineCap:T.config.stroke.lineCap,fill:n,animationDelay:E,initialSpeed:T.config.chart.animations.speed,dataChangeSpeed:T.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(M,"-area")});C.attr("clip-path","url(#gridRectMask".concat(T.globals.cuid,")"));var D=T.config.forecastDataPoints;D.count>0&&r>=T.globals.dataPoints-D.count&&(C.node.setAttribute("stroke-dasharray",D.dashArray),C.node.setAttribute("stroke-width",D.strokeWidth),C.node.setAttribute("fill-opacity",D.fillOpacity)),void 0!==f&&void 0!==p&&(C.attr("data-range-y1",f),C.attr("data-range-y2",p)),new w(this.ctx).setSelectionFilter(C,t,r),u.add(C);var O=new we(this).handleBarDataLabels({x:d,y:h,y1:f,y2:p,i:a,j:r,series:m,realIndex:t,groupIndex:o,barHeight:g,barWidth:_,barXPosition:v,barYPosition:y,renderedPath:C,visibleSeries:S});return null!==O.dataLabels&&b.add(O.dataLabels),O.totalDataLabels&&b.add(O.totalDataLabels),u.add(b),k&&u.add(k),A&&u.add(A),u}},{key:"drawBarPaths",value:function(e){var t,n=e.indexes,i=e.barHeight,r=e.strokeWidth,a=e.zeroW,o=e.x,s=e.y,l=e.yDivision,c=e.elSeries,u=this.w,d=n.i,h=n.j;if(u.globals.isXNumeric)t=(s=(u.globals.seriesX[d][h]-u.globals.minX)/this.invertedXRatio-i)+i*this.visibleI;else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){var f=0,p=0;u.globals.seriesPercent.forEach((function(e,t){e[h]&&f++,t<d&&0===e[h]&&p++})),f>0&&(i=this.seriesLen*i/f),t=s+i*this.visibleI,t-=i*p}else t=s+i*this.visibleI;this.isFunnel&&(a-=(this.barHelpers.getXForValue(this.series[d][h],a)-a)/2),o=this.barHelpers.getXForValue(this.series[d][h],a);var m=this.barHelpers.getBarpaths({barYPosition:t,barHeight:i,x1:a,x2:o,strokeWidth:r,series:this.series,realIndex:n.realIndex,i:d,j:h,w:u});return u.globals.isXNumeric||(s+=l),this.barHelpers.barBackground({j:h,i:d,y1:t-i*this.visibleI,y2:i*this.seriesLen,elSeries:c}),{pathTo:m.pathTo,pathFrom:m.pathFrom,x1:a,x:o,y:s,goalX:this.barHelpers.getGoalValues("x",a,null,d,h),barYPosition:t,barHeight:i}}},{key:"drawColumnPaths",value:function(e){var t,n=e.indexes,i=e.x,r=e.y,a=e.xDivision,o=e.barWidth,s=e.zeroH,l=e.strokeWidth,c=e.elSeries,u=this.w,d=n.realIndex,h=n.i,f=n.j,p=n.bc;if(u.globals.isXNumeric){var m=this.getBarXForNumericXAxis({x:i,j:f,realIndex:d,barWidth:o});i=m.x,t=m.barXPosition}else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){var g=this.barHelpers.getZeroValueEncounters({i:h,j:f}),_=g.nonZeroColumns,v=g.zeroEncounters;_>0&&(o=this.seriesLen*o/_),t=i+o*this.visibleI,t-=o*v}else t=i+o*this.visibleI;r=this.barHelpers.getYForValue(this.series[h][f],s);var y=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:o,y1:s,y2:r,strokeWidth:l,series:this.series,realIndex:n.realIndex,i:h,j:f,w:u});return u.globals.isXNumeric||(i+=a),this.barHelpers.barBackground({bc:p,j:f,i:h,x1:t-l/2-o*this.visibleI,x2:o*this.seriesLen+l/2,elSeries:c}),{pathTo:y.pathTo,pathFrom:y.pathFrom,x:i,y:r,goalY:this.barHelpers.getGoalValues("y",null,s,h,f),barXPosition:t,barWidth:o}}},{key:"getBarXForNumericXAxis",value:function(e){var t=e.x,n=e.barWidth,i=e.realIndex,r=e.j,a=this.w,o=i;return a.globals.seriesX[i].length||(o=a.globals.maxValsInArrayIndex),a.globals.seriesX[o][r]&&(t=(a.globals.seriesX[o][r]-a.globals.minX)/this.xRatio-n*this.seriesLen/2),{barXPosition:t+n*this.visibleI,x:t}}},{key:"getPreviousPath",value:function(e,t){for(var n,i=this.w,r=0;r<i.globals.previousPaths.length;r++){var a=i.globals.previousPaths[r];a.paths&&a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(e,10)&&void 0!==i.globals.previousPaths[r].paths[t]&&(n=i.globals.previousPaths[r].paths[t].d)}return n}}]),e}(),Ae=function(e){d(n,ke);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return c(n,[{key:"draw",value:function(e,t){var n=this,i=this.w;this.graphics=new x(this.ctx),this.bar=new ke(this.ctx,this.xyRatios);var r=new k(this.ctx,i);e=r.getLogSeries(e),this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e),"100%"===i.config.chart.stackType&&(e=i.globals.seriesPercent.slice()),this.series=e,this.barHelpers.initializeStackedPrevVars(this);for(var o=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),s=0,l=0,c=function(r,c){var u=void 0,d=void 0,h=void 0,f=void 0,p=-1;n.groupCtx=n,i.globals.seriesGroups.forEach((function(e,t){e.indexOf(i.config.series[r].name)>-1&&(p=t)})),-1!==p&&(n.groupCtx=n[i.globals.seriesGroups[p]]);var m=[],g=[],_=i.globals.comboCharts?t[r]:r;n.yRatio.length>1&&(n.yaxisIndex=_),n.isReversed=i.config.yaxis[n.yaxisIndex]&&i.config.yaxis[n.yaxisIndex].reversed;var v=n.graphics.group({class:"apexcharts-series",seriesName:y.escapeString(i.globals.seriesNames[_]),rel:r+1,"data:realIndex":_});n.ctx.series.addCollapsedClassToSeries(v,_);var b=n.graphics.group({class:"apexcharts-datalabels","data:realIndex":_}),w=n.graphics.group({class:"apexcharts-bar-goals-markers"}),x=0,k=0,A=n.initialPositions(s,l,u,d,h,f);l=A.y,x=A.barHeight,d=A.yDivision,f=A.zeroW,s=A.x,k=A.barWidth,u=A.xDivision,h=A.zeroH,n.barHelpers.initializeStackedXYVars(n),1===n.groupCtx.prevY.length&&n.groupCtx.prevY[0].every((function(e){return isNaN(e)}))&&(n.groupCtx.prevY[0]=n.groupCtx.prevY[0].map((function(e){return h})),n.groupCtx.prevYF[0]=n.groupCtx.prevYF[0].map((function(e){return 0})));for(var S=0;S<i.globals.dataPoints;S++){var M=n.barHelpers.getStrokeWidth(r,S,_),T={indexes:{i:r,j:S,realIndex:_,bc:c},strokeWidth:M,x:s,y:l,elSeries:v,groupIndex:p,seriesGroup:i.globals.seriesGroups[p]},L=null;n.isHorizontal?(L=n.drawStackedBarPaths(a(a({},T),{},{zeroW:f,barHeight:x,yDivision:d})),k=n.series[r][S]/n.invertedYRatio):(L=n.drawStackedColumnPaths(a(a({},T),{},{xDivision:u,barWidth:k,zeroH:h})),x=n.series[r][S]/n.yRatio[n.yaxisIndex]);var E=n.barHelpers.drawGoalLine({barXPosition:L.barXPosition,barYPosition:L.barYPosition,goalX:L.goalX,goalY:L.goalY,barHeight:x,barWidth:k});E&&w.add(E),l=L.y,s=L.x,m.push(s),g.push(l);var C=n.barHelpers.getPathFillColor(e,r,S,_);v=n.renderSeries({realIndex:_,pathFill:C,j:S,i:r,groupIndex:p,pathFrom:L.pathFrom,pathTo:L.pathTo,strokeWidth:M,elSeries:v,x:s,y:l,series:e,barHeight:x,barWidth:k,elDataLabelsWrap:b,elGoalsMarkers:w,type:"bar",visibleSeries:0})}i.globals.seriesXvalues[_]=m,i.globals.seriesYvalues[_]=g,n.groupCtx.prevY.push(n.groupCtx.yArrj),n.groupCtx.prevYF.push(n.groupCtx.yArrjF),n.groupCtx.prevYVal.push(n.groupCtx.yArrjVal),n.groupCtx.prevX.push(n.groupCtx.xArrj),n.groupCtx.prevXF.push(n.groupCtx.xArrjF),n.groupCtx.prevXVal.push(n.groupCtx.xArrjVal),o.add(v)},u=0,d=0;u<e.length;u++,d++)c(u,d);return o}},{key:"initialPositions",value:function(e,t,n,i,r,a){var o,s,l,c,u=this.w;return this.isHorizontal?(l=(l=i=u.globals.gridHeight/u.globals.dataPoints)*parseInt(u.config.plotOptions.bar.barHeight,10)/100,-1===String(u.config.plotOptions.bar.barHeight).indexOf("%")&&(l=parseInt(u.config.plotOptions.bar.barHeight,10)),a=this.baseLineInvertedY+u.globals.padHorizontal+(this.isReversed?u.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),t=(i-l)/2):(c=n=u.globals.gridWidth/u.globals.dataPoints,c=u.globals.isXNumeric&&u.globals.dataPoints>1?(n=u.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:c*parseInt(u.config.plotOptions.bar.columnWidth,10)/100,-1===String(u.config.plotOptions.bar.columnWidth).indexOf("%")&&(c=parseInt(u.config.plotOptions.bar.columnWidth,10)),r=u.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?u.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),e=u.globals.padHorizontal+(n-c)/2),{x:e,y:t,yDivision:i,xDivision:n,barHeight:null!==(o=u.globals.seriesGroups)&&void 0!==o&&o.length?l/u.globals.seriesGroups.length:l,barWidth:null!==(s=u.globals.seriesGroups)&&void 0!==s&&s.length?c/u.globals.seriesGroups.length:c,zeroH:r,zeroW:a}}},{key:"drawStackedBarPaths",value:function(e){for(var t,n=e.indexes,i=e.barHeight,r=e.strokeWidth,a=e.zeroW,o=e.x,s=e.y,l=e.groupIndex,c=e.seriesGroup,u=e.yDivision,d=e.elSeries,h=this.w,f=s+(-1!==l?l*i:0),p=n.i,m=n.j,g=0,_=0;_<this.groupCtx.prevXF.length;_++)g+=this.groupCtx.prevXF[_][m];var v=p;if(c&&(v=c.indexOf(h.config.series[p].name)),v>0){var y=a;this.groupCtx.prevXVal[v-1][m]<0?y=this.series[p][m]>=0?this.groupCtx.prevX[v-1][m]+g-2*(this.isReversed?g:0):this.groupCtx.prevX[v-1][m]:this.groupCtx.prevXVal[v-1][m]>=0&&(y=this.series[p][m]>=0?this.groupCtx.prevX[v-1][m]:this.groupCtx.prevX[v-1][m]-g+2*(this.isReversed?g:0)),t=y}else t=a;o=null===this.series[p][m]?t:t+this.series[p][m]/this.invertedYRatio-2*(this.isReversed?this.series[p][m]/this.invertedYRatio:0);var b=this.barHelpers.getBarpaths({barYPosition:f,barHeight:i,x1:t,x2:o,strokeWidth:r,series:this.series,realIndex:n.realIndex,seriesGroup:c,i:p,j:m,w:h});return this.barHelpers.barBackground({j:m,i:p,y1:f,y2:i,elSeries:d}),s+=u,{pathTo:b.pathTo,pathFrom:b.pathFrom,goalX:this.barHelpers.getGoalValues("x",a,null,p,m),barYPosition:f,x:o,y:s}}},{key:"drawStackedColumnPaths",value:function(e){var t=e.indexes,n=e.x,i=e.y,r=e.xDivision,a=e.barWidth,o=e.zeroH,s=e.groupIndex,l=e.seriesGroup,c=e.elSeries,u=this.w,d=t.i,h=t.j,f=t.bc;if(u.globals.isXNumeric){var p=u.globals.seriesX[d][h];p||(p=0),n=(p-u.globals.minX)/this.xRatio-a/2,u.globals.seriesGroups.length&&(n=(p-u.globals.minX)/this.xRatio-a/2*u.globals.seriesGroups.length)}for(var m,g=n+(-1!==s?s*a:0),_=0,v=0;v<this.groupCtx.prevYF.length;v++)_+=isNaN(this.groupCtx.prevYF[v][h])?0:this.groupCtx.prevYF[v][h];var y=d;if(l&&(y=l.indexOf(u.config.series[d].name)),y>0&&!u.globals.isXNumeric||y>0&&u.globals.isXNumeric&&u.globals.seriesX[d-1][h]===u.globals.seriesX[d][h]){var b,w,x,k=Math.min(this.yRatio.length+1,d+1);if(void 0!==this.groupCtx.prevY[y-1]&&this.groupCtx.prevY[y-1].length)for(var A=1;A<k;A++){var S;if(!isNaN(null===(S=this.groupCtx.prevY[y-A])||void 0===S?void 0:S[h])){x=this.groupCtx.prevY[y-A][h];break}}for(var M=1;M<k;M++){var T,L;if((null===(T=this.groupCtx.prevYVal[y-M])||void 0===T?void 0:T[h])<0){w=this.series[d][h]>=0?x-_+2*(this.isReversed?_:0):x;break}if((null===(L=this.groupCtx.prevYVal[y-M])||void 0===L?void 0:L[h])>=0){w=this.series[d][h]>=0?x:x+_-2*(this.isReversed?_:0);break}}void 0===w&&(w=u.globals.gridHeight),m=null!==(b=this.groupCtx.prevYF[0])&&void 0!==b&&b.every((function(e){return 0===e}))&&this.groupCtx.prevYF.slice(1,y).every((function(e){return e.every((function(e){return isNaN(e)}))}))?o:w}else m=o;i=this.series[d][h]?m-this.series[d][h]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[d][h]/this.yRatio[this.yaxisIndex]:0):m;var E=this.barHelpers.getColumnPaths({barXPosition:g,barWidth:a,y1:m,y2:i,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:l,realIndex:t.realIndex,i:d,j:h,w:u});return this.barHelpers.barBackground({bc:f,j:h,i:d,x1:g,x2:a,elSeries:c}),n+=r,{pathTo:E.pathTo,pathFrom:E.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,o,d,h),barXPosition:g,x:u.globals.isXNumeric?n-r:n,y:i}}}]),n}(),Se=function(e){d(n,ke);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return c(n,[{key:"draw",value:function(e,t,n){var i=this,r=this.w,o=new x(this.ctx),s=r.globals.comboCharts?t:r.config.chart.type,l=new R(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=r.config.plotOptions.bar.horizontal;var c=new k(this.ctx,r);e=c.getLogSeries(e),this.series=e,this.yRatio=c.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);for(var u=o.group({class:"apexcharts-".concat(s,"-series apexcharts-plot-series")}),d=function(t){i.isBoxPlot="boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[t].type;var s,c,d,h,f,p,m=void 0,g=void 0,_=[],v=[],b=r.globals.comboCharts?n[t]:t,w=o.group({class:"apexcharts-series",seriesName:y.escapeString(r.globals.seriesNames[b]),rel:t+1,"data:realIndex":b});i.ctx.series.addCollapsedClassToSeries(w,b),e[t].length>0&&(i.visibleI=i.visibleI+1),i.yRatio.length>1&&(i.yaxisIndex=b);var x=i.barHelpers.initialPositions();g=x.y,f=x.barHeight,c=x.yDivision,h=x.zeroW,m=x.x,p=x.barWidth,s=x.xDivision,d=x.zeroH,v.push(m+p/2);for(var k=o.group({class:"apexcharts-datalabels","data:realIndex":b}),A=function(n){var o=i.barHelpers.getStrokeWidth(t,n,b),u=null,y={indexes:{i:t,j:n,realIndex:b},x:m,y:g,strokeWidth:o,elSeries:w};u=i.isHorizontal?i.drawHorizontalBoxPaths(a(a({},y),{},{yDivision:c,barHeight:f,zeroW:h})):i.drawVerticalBoxPaths(a(a({},y),{},{xDivision:s,barWidth:p,zeroH:d})),g=u.y,m=u.x,n>0&&v.push(m+p/2),_.push(g),u.pathTo.forEach((function(a,s){var c=!i.isBoxPlot&&i.candlestickOptions.wick.useFillColor?u.color[s]:r.globals.stroke.colors[t],d=l.fillPath({seriesNumber:b,dataPointIndex:n,color:u.color[s],value:e[t][n]});i.renderSeries({realIndex:b,pathFill:d,lineFill:c,j:n,i:t,pathFrom:u.pathFrom,pathTo:a,strokeWidth:o,elSeries:w,x:m,y:g,series:e,barHeight:f,barWidth:p,elDataLabelsWrap:k,visibleSeries:i.visibleI,type:r.config.chart.type})}))},S=0;S<r.globals.dataPoints;S++)A(S);r.globals.seriesXvalues[b]=v,r.globals.seriesYvalues[b]=_,u.add(w)},h=0;h<e.length;h++)d(h);return u}},{key:"drawVerticalBoxPaths",value:function(e){var t=e.indexes,n=e.x;e.y;var i=e.xDivision,r=e.barWidth,a=e.zeroH,o=e.strokeWidth,s=this.w,l=new x(this.ctx),c=t.i,u=t.j,d=!0,h=s.config.plotOptions.candlestick.colors.upward,f=s.config.plotOptions.candlestick.colors.downward,p="";this.isBoxPlot&&(p=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var m=this.yRatio[this.yaxisIndex],g=t.realIndex,_=this.getOHLCValue(g,u),v=a,y=a;_.o>_.c&&(d=!1);var b=Math.min(_.o,_.c),w=Math.max(_.o,_.c),k=_.m;s.globals.isXNumeric&&(n=(s.globals.seriesX[g][u]-s.globals.minX)/this.xRatio-r/2);var A=n+r*this.visibleI;void 0===this.series[c][u]||null===this.series[c][u]?(b=a,w=a):(b=a-b/m,w=a-w/m,v=a-_.h/m,y=a-_.l/m,k=a-_.m/m);var S=l.move(A,a),M=l.move(A+r/2,b);return s.globals.previousPaths.length>0&&(M=this.getPreviousPath(g,u,!0)),S=this.isBoxPlot?[l.move(A,b)+l.line(A+r/2,b)+l.line(A+r/2,v)+l.line(A+r/4,v)+l.line(A+r-r/4,v)+l.line(A+r/2,v)+l.line(A+r/2,b)+l.line(A+r,b)+l.line(A+r,k)+l.line(A,k)+l.line(A,b+o/2),l.move(A,k)+l.line(A+r,k)+l.line(A+r,w)+l.line(A+r/2,w)+l.line(A+r/2,y)+l.line(A+r-r/4,y)+l.line(A+r/4,y)+l.line(A+r/2,y)+l.line(A+r/2,w)+l.line(A,w)+l.line(A,k)+"z"]:[l.move(A,w)+l.line(A+r/2,w)+l.line(A+r/2,v)+l.line(A+r/2,w)+l.line(A+r,w)+l.line(A+r,b)+l.line(A+r/2,b)+l.line(A+r/2,y)+l.line(A+r/2,b)+l.line(A,b)+l.line(A,w-o/2)],M+=l.move(A,b),s.globals.isXNumeric||(n+=i),{pathTo:S,pathFrom:M,x:n,y:w,barXPosition:A,color:this.isBoxPlot?p:d?[h]:[f]}}},{key:"drawHorizontalBoxPaths",value:function(e){var t=e.indexes;e.x;var n=e.y,i=e.yDivision,r=e.barHeight,a=e.zeroW,o=e.strokeWidth,s=this.w,l=new x(this.ctx),c=t.i,u=t.j,d=this.boxOptions.colors.lower;this.isBoxPlot&&(d=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var h=this.invertedYRatio,f=t.realIndex,p=this.getOHLCValue(f,u),m=a,g=a,_=Math.min(p.o,p.c),v=Math.max(p.o,p.c),y=p.m;s.globals.isXNumeric&&(n=(s.globals.seriesX[f][u]-s.globals.minX)/this.invertedXRatio-r/2);var b=n+r*this.visibleI;void 0===this.series[c][u]||null===this.series[c][u]?(_=a,v=a):(_=a+_/h,v=a+v/h,m=a+p.h/h,g=a+p.l/h,y=a+p.m/h);var w=l.move(a,b),k=l.move(_,b+r/2);return s.globals.previousPaths.length>0&&(k=this.getPreviousPath(f,u,!0)),w=[l.move(_,b)+l.line(_,b+r/2)+l.line(m,b+r/2)+l.line(m,b+r/2-r/4)+l.line(m,b+r/2+r/4)+l.line(m,b+r/2)+l.line(_,b+r/2)+l.line(_,b+r)+l.line(y,b+r)+l.line(y,b)+l.line(_+o/2,b),l.move(y,b)+l.line(y,b+r)+l.line(v,b+r)+l.line(v,b+r/2)+l.line(g,b+r/2)+l.line(g,b+r-r/4)+l.line(g,b+r/4)+l.line(g,b+r/2)+l.line(v,b+r/2)+l.line(v,b)+l.line(y,b)+"z"],k+=l.move(_,b),s.globals.isXNumeric||(n+=i),{pathTo:w,pathFrom:k,x:v,y:n,barYPosition:b,color:d}}},{key:"getOHLCValue",value:function(e,t){var n=this.w;return{o:this.isBoxPlot?n.globals.seriesCandleH[e][t]:n.globals.seriesCandleO[e][t],h:this.isBoxPlot?n.globals.seriesCandleO[e][t]:n.globals.seriesCandleH[e][t],m:n.globals.seriesCandleM[e][t],l:this.isBoxPlot?n.globals.seriesCandleC[e][t]:n.globals.seriesCandleL[e][t],c:this.isBoxPlot?n.globals.seriesCandleL[e][t]:n.globals.seriesCandleC[e][t]}}}]),n}(),Me=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,n=e.config.plotOptions[e.config.chart.type];return n.colorScale.ranges.length>0&&n.colorScale.ranges.map((function(e,n){e.from<=0&&(t=!0)})),t}},{key:"getShadeColor",value:function(e,t,n,i){var r=this.w,a=1,o=r.config.plotOptions[e].shadeIntensity,s=this.determineColor(e,t,n);r.globals.hasNegs||i?a=r.config.plotOptions[e].reverseNegativeShade?s.percent<0?s.percent/100*(1.25*o):(1-s.percent/100)*(1.25*o):s.percent<=0?1-(1+s.percent/100)*o:(1-s.percent/100)*o:(a=1-s.percent/100,"treemap"===e&&(a=(1-s.percent/100)*(1.25*o)));var l=s.color,c=new y;return r.config.plotOptions[e].enableShades&&(l="dark"===this.w.config.theme.mode?y.hexToRgba(c.shadeColor(-1*a,s.color),r.config.fill.opacity):y.hexToRgba(c.shadeColor(a,s.color),r.config.fill.opacity)),{color:l,colorProps:s}}},{key:"determineColor",value:function(e,t,n){var i=this.w,r=i.globals.series[t][n],a=i.config.plotOptions[e],o=a.colorScale.inverse?n:t;a.distributed&&"treemap"===i.config.chart.type&&(o=n);var s=i.globals.colors[o],l=null,c=Math.min.apply(Math,g(i.globals.series[t])),u=Math.max.apply(Math,g(i.globals.series[t]));a.distributed||"heatmap"!==e||(c=i.globals.minY,u=i.globals.maxY),void 0!==a.colorScale.min&&(c=a.colorScale.min<i.globals.minY?a.colorScale.min:i.globals.minY,u=a.colorScale.max>i.globals.maxY?a.colorScale.max:i.globals.maxY);var d=Math.abs(u)+Math.abs(c),h=100*r/(0===d?d-1e-6:d);return a.colorScale.ranges.length>0&&a.colorScale.ranges.map((function(e,t){if(r>=e.from&&r<=e.to){s=e.color,l=e.foreColor?e.foreColor:null,c=e.from,u=e.to;var n=Math.abs(u)+Math.abs(c);h=100*r/(0===n?n-1e-6:n)}})),{color:s,foreColor:l,percent:h}}},{key:"calculateDataLabels",value:function(e){var t=e.text,n=e.x,i=e.y,r=e.i,a=e.j,o=e.colorProps,s=e.fontSize,l=this.w.config.dataLabels,c=new x(this.ctx),u=new q(this.ctx),d=null;if(l.enabled){d=c.group({class:"apexcharts-data-labels"});var h=l.offsetX,f=l.offsetY,p=n+h,m=i+parseFloat(l.style.fontSize)/3+f;u.plotDataLabelsText({x:p,y:m,text:t,i:r,j:a,color:o.foreColor,parent:d,fontSize:s,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(e){var t=new x(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),e}(),Te=function(){function e(t,n){s(this,e),this.ctx=t,this.w=t.w,this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Me(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return c(e,[{key:"draw",value:function(e){var t=this.w,n=new x(this.ctx),i=n.group({class:"apexcharts-heatmap"});i.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var r=t.globals.gridWidth/t.globals.dataPoints,a=t.globals.gridHeight/t.globals.series.length,o=0,s=!1;this.negRange=this.helpers.checkColorRange();var l=e.slice();t.config.yaxis[0].reversed&&(s=!0,l.reverse());for(var c=s?0:l.length-1;s?c<l.length:c>=0;s?c++:c--){var u=n.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:y.escapeString(t.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(u,c),t.config.chart.dropShadow.enabled){var d=t.config.chart.dropShadow;new w(this.ctx).dropShadow(u,d,c)}for(var h=0,f=t.config.plotOptions.heatmap.shadeIntensity,p=0;p<l[c].length;p++){var m=this.helpers.getShadeColor(t.config.chart.type,c,p,this.negRange),g=m.color,_=m.colorProps;"image"===t.config.fill.type&&(g=new R(this.ctx).fillPath({seriesNumber:c,dataPointIndex:p,opacity:t.globals.hasNegs?_.percent<0?1-(1+_.percent/100):f+_.percent/100:_.percent/100,patternID:y.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:r,height:t.config.fill.image.height?t.config.fill.image.height:a}));var v=this.rectRadius,b=n.drawRect(h,o,r,a,v);if(b.attr({cx:h,cy:o}),b.node.classList.add("apexcharts-heatmap-rect"),u.add(b),b.attr({fill:g,i:c,index:c,j:p,val:l[c][p],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?g:t.globals.stroke.colors[0],color:g}),this.helpers.addListeners(b),t.config.chart.animations.enabled&&!t.globals.dataChanged){var k=1;t.globals.resized||(k=t.config.chart.animations.speed),this.animateHeatMap(b,h,o,r,a,k)}if(t.globals.dataChanged){var A=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){A=this.dynamicAnim.speed;var S=t.globals.previousPaths[c]&&t.globals.previousPaths[c][p]&&t.globals.previousPaths[c][p].color;S||(S="rgba(255, 255, 255, 0)"),this.animateHeatColor(b,y.isColorHex(S)?S:y.rgb2hex(S),y.isColorHex(g)?g:y.rgb2hex(g),A)}}var M=(0,t.config.dataLabels.formatter)(t.globals.series[c][p],{value:t.globals.series[c][p],seriesIndex:c,dataPointIndex:p,w:t}),T=this.helpers.calculateDataLabels({text:M,x:h+r/2,y:o+a/2,i:c,j:p,colorProps:_,series:l});null!==T&&u.add(T),h+=r}o+=a,i.add(u)}var L=t.globals.yAxisScale[0].result.slice();return t.config.yaxis[0].reversed?L.unshift(""):L.push(""),t.globals.yAxisScale[0].result=L,i}},{key:"animateHeatMap",value:function(e,t,n,i,r,a){var o=new b(this.ctx);o.animateRect(e,{x:t+i/2,y:n+r/2,width:0,height:0},{x:t,y:n,width:i,height:r},a,(function(){o.animationCompleted(e)}))}},{key:"animateHeatColor",value:function(e,t,n,i){e.attr({fill:t}).animate(i).attr({fill:n})}}]),e}(),Le=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"drawYAxisTexts",value:function(e,t,n,i){var r=this.w,a=r.config.yaxis[0],o=r.globals.yLabelFormatters[0];return new x(this.ctx).drawText({x:e+a.labels.offsetX,y:t+a.labels.offsetY,text:o(i,n),textAnchor:"middle",fontSize:a.labels.style.fontSize,fontFamily:a.labels.style.fontFamily,foreColor:Array.isArray(a.labels.style.colors)?a.labels.style.colors[n]:a.labels.style.colors})}}]),e}(),Ee=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=Math.min(n.globals.gridWidth,n.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=n.globals.gridWidth/2,"radialBar"===n.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(n.config.plotOptions.pie.endAngle-n.config.plotOptions.pie.startAngle),this.initialAngle=n.config.plotOptions.pie.startAngle%this.fullAngle,n.globals.radialSize=this.defaultSize/2.05-n.config.stroke.width-(n.config.chart.sparkline.enabled?0:n.config.chart.dropShadow.blur),this.donutSize=n.globals.radialSize*parseInt(n.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return c(e,[{key:"draw",value:function(e){var t=this,n=this.w,i=new x(this.ctx);if(this.ret=i.group({class:"apexcharts-pie"}),n.globals.noData)return this.ret;for(var r=0,a=0;a<e.length;a++)r+=y.negToZero(e[a]);var o=[],s=i.group();0===r&&(r=1e-5),e.forEach((function(e){t.maxY=Math.max(t.maxY,e)})),n.config.yaxis[0].max&&(this.maxY=n.config.yaxis[0].max),"back"===n.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret);for(var l=0;l<e.length;l++){var c=this.fullAngle*y.negToZero(e[l])/r;o.push(c),"polarArea"===this.chartType?(o[l]=this.fullAngle/e.length,this.sliceSizes.push(n.globals.radialSize*e[l]/this.maxY)):this.sliceSizes.push(n.globals.radialSize)}if(n.globals.dataChanged){for(var u,d=0,h=0;h<n.globals.previousPaths.length;h++)d+=y.negToZero(n.globals.previousPaths[h]);for(var f=0;f<n.globals.previousPaths.length;f++)u=this.fullAngle*y.negToZero(n.globals.previousPaths[f])/d,this.prevSectorAngleArr.push(u)}this.donutSize<0&&(this.donutSize=0);var p=n.config.plotOptions.pie.customScale,m=n.globals.gridWidth/2,g=n.globals.gridHeight/2,_=m-n.globals.gridWidth/2*p,v=g-n.globals.gridHeight/2*p;if("donut"===this.chartType){var b=i.drawCircle(this.donutSize);b.attr({cx:this.centerX,cy:this.centerY,fill:n.config.plotOptions.pie.donut.background?n.config.plotOptions.pie.donut.background:"transparent"}),s.add(b)}var w=this.drawArcs(o,e);if(this.sliceLabels.forEach((function(e){w.add(e)})),s.attr({transform:"translate(".concat(_,", ").concat(v,") scale(").concat(p,")")}),s.add(w),this.ret.add(s),this.donutDataLabels.show){var k=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:_,translateY:v});this.ret.add(k)}return"front"===n.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(e,t){var n=this.w,i=new w(this.ctx),r=new x(this.ctx),a=new R(this.ctx),o=r.group({class:"apexcharts-slices"}),s=this.initialAngle,l=this.initialAngle,c=this.initialAngle,u=this.initialAngle;this.strokeWidth=n.config.stroke.show?n.config.stroke.width:0;for(var d=0;d<e.length;d++){var h=r.group({class:"apexcharts-series apexcharts-pie-series",seriesName:y.escapeString(n.globals.seriesNames[d]),rel:d+1,"data:realIndex":d});o.add(h),l=u,c=(s=c)+e[d],u=l+this.prevSectorAngleArr[d];var f=c<s?this.fullAngle+c-s:c-s,p=a.fillPath({seriesNumber:d,size:this.sliceSizes[d],value:t[d]}),m=this.getChangedPath(l,u),g=r.drawPath({d:m,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[d]:this.lineColorArr,strokeWidth:0,fill:p,fillOpacity:n.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(d)});if(g.attr({index:0,j:d}),i.setSelectionFilter(g,0,d),n.config.chart.dropShadow.enabled){var _=n.config.chart.dropShadow;i.dropShadow(g,_,d)}this.addListeners(g,this.donutDataLabels),x.setAttrs(g.node,{"data:angle":f,"data:startAngle":s,"data:strokeWidth":this.strokeWidth,"data:value":t[d]});var v={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?v=y.polarToCartesian(this.centerX,this.centerY,n.globals.radialSize/1.25+n.config.plotOptions.pie.dataLabels.offset,(s+f/2)%this.fullAngle):"donut"===this.chartType&&(v=y.polarToCartesian(this.centerX,this.centerY,(n.globals.radialSize+this.donutSize)/2+n.config.plotOptions.pie.dataLabels.offset,(s+f/2)%this.fullAngle)),h.add(g);var b=0;if(!this.initialAnim||n.globals.resized||n.globals.dataChanged?this.animBeginArr.push(0):(0==(b=f/this.fullAngle*n.config.chart.animations.speed)&&(b=1),this.animDur=b+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&n.globals.dataChanged?this.animatePaths(g,{size:this.sliceSizes[d],endAngle:c,startAngle:s,prevStartAngle:l,prevEndAngle:u,animateStartingPos:!0,i:d,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:n.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(g,{size:this.sliceSizes[d],endAngle:c,startAngle:s,i:d,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:b}),n.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&g.click(this.pieClicked.bind(this,d)),void 0!==n.globals.selectedDataPoints[0]&&n.globals.selectedDataPoints[0].indexOf(d)>-1&&this.pieClicked(d),n.config.dataLabels.enabled){var k=v.x,A=v.y,S=100*f/this.fullAngle+"%";if(0!==f&&n.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[d]){var M=n.config.dataLabels.formatter;void 0!==M&&(S=M(n.globals.seriesPercent[d][0],{seriesIndex:d,w:n}));var T=n.globals.dataLabels.style.colors[d],L=r.group({class:"apexcharts-datalabels"}),E=r.drawText({x:k,y:A,text:S,textAnchor:"middle",fontSize:n.config.dataLabels.style.fontSize,fontFamily:n.config.dataLabels.style.fontFamily,fontWeight:n.config.dataLabels.style.fontWeight,foreColor:T});if(L.add(E),n.config.dataLabels.dropShadow.enabled){var C=n.config.dataLabels.dropShadow;i.dropShadow(E,C)}E.node.classList.add("apexcharts-pie-label"),n.config.chart.animations.animate&&!1===n.globals.resized&&(E.node.classList.add("apexcharts-pie-label-delay"),E.node.style.animationDelay=n.config.chart.animations.speed/940+"s"),this.sliceLabels.push(L)}}}return o}},{key:"addListeners",value:function(e,t){var n=new x(this.ctx);e.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",n.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,t)))}},{key:"animatePaths",value:function(e,t){var n=this.w,i=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,r=i,a=t.startAngle,o=t.startAngle;void 0!==t.prevStartAngle&&void 0!==t.prevEndAngle&&(a=t.prevEndAngle,r=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===n.config.series.length-1&&(i+o>this.fullAngle?t.endAngle=t.endAngle-(i+o):i+o<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(i+o)))),i===this.fullAngle&&(i=this.fullAngle-.01),this.animateArc(e,a,o,i,r,t)}},{key:"animateArc",value:function(e,t,n,i,r,a){var o,s=this,l=this.w,c=new b(this.ctx),u=a.size;(isNaN(t)||isNaN(r))&&(t=n,r=i,a.dur=0);var d=i,h=n,f=t<n?this.fullAngle+t-n:t-n;l.globals.dataChanged&&a.shouldSetPrevPaths&&a.prevEndAngle&&(o=s.getPiePath({me:s,startAngle:a.prevStartAngle,angle:a.prevEndAngle<a.prevStartAngle?this.fullAngle+a.prevEndAngle-a.prevStartAngle:a.prevEndAngle-a.prevStartAngle,size:u}),e.attr({d:o})),0!==a.dur?e.animate(a.dur,l.globals.easing,a.animBeginArr[a.i]).afterAll((function(){"pie"!==s.chartType&&"donut"!==s.chartType&&"polarArea"!==s.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":s.strokeWidth}),a.i===l.config.series.length-1&&c.animationCompleted(e)})).during((function(l){d=f+(i-f)*l,a.animateStartingPos&&(d=r+(i-r)*l,h=t-r+(n-(t-r))*l),o=s.getPiePath({me:s,startAngle:h,angle:d,size:u}),e.node.setAttribute("data:pathOrig",o),e.attr({d:o})})):(o=s.getPiePath({me:s,startAngle:h,angle:i,size:u}),a.isTrack||(l.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",o),e.attr({d:o,"stroke-width":s.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,n=this.w,i=this,r=i.sliceSizes[e]+(n.config.plotOptions.pie.expandOnClick?4:0),a=n.globals.dom.Paper.select(".apexcharts-".concat(i.chartType.toLowerCase(),"-slice-").concat(e)).members[0];if("true"!==a.attr("data:pieClicked")){var o=n.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(o,(function(e){e.setAttribute("data:pieClicked","false");var t=e.getAttribute("data:pathOrig");t&&e.setAttribute("d",t)})),a.attr("data:pieClicked","true");var s=parseInt(a.attr("data:startAngle"),10),l=parseInt(a.attr("data:angle"),10);t=i.getPiePath({me:i,startAngle:s,angle:l,size:r}),360!==l&&a.plot(t)}else{a.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(a.node,this.donutDataLabels);var c=a.attr("data:pathOrig");a.attr({d:c})}}},{key:"getChangedPath",value:function(e,t){var n="";return this.dynamicAnim&&this.w.globals.dataChanged&&(n=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),n}},{key:"getPiePath",value:function(e){var t=e.me,n=e.startAngle,i=e.angle,r=e.size,a=n,o=Math.PI*(a-90)/180,s=i+n;Math.ceil(s)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(s=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(s)>this.fullAngle&&(s-=this.fullAngle);var l=Math.PI*(s-90)/180,c=t.centerX+r*Math.cos(o),u=t.centerY+r*Math.sin(o),d=t.centerX+r*Math.cos(l),h=t.centerY+r*Math.sin(l),f=y.polarToCartesian(t.centerX,t.centerY,t.donutSize,s),p=y.polarToCartesian(t.centerX,t.centerY,t.donutSize,a),m=i>180?1:0,g=["M",c,u,"A",r,r,0,m,1,d,h];return"donut"===t.chartType?[].concat(g,["L",f.x,f.y,"A",t.donutSize,t.donutSize,0,m,0,p.x,p.y,"L",c,u,"z"]).join(" "):"pie"===t.chartType||"polarArea"===t.chartType?[].concat(g,["L",t.centerX,t.centerY,"L",c,u]).join(" "):[].concat(g).join(" ")}},{key:"drawPolarElements",value:function(e){var t=this.w,n=new G(this.ctx),i=new x(this.ctx),r=new Le(this.ctx),a=i.group(),o=i.group(),s=n.niceScale(0,Math.ceil(this.maxY),t.config.yaxis[0].tickAmount,0,!0),l=s.result.reverse(),c=s.result.length;this.maxY=s.niceMax;for(var u=t.globals.radialSize,d=u/(c-1),h=0;h<c-1;h++){var f=i.drawCircle(u);if(f.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.rings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){var p=r.drawYAxisTexts(this.centerX,this.centerY-u+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,h,l[h]);o.add(p)}a.add(f),u-=d}this.drawSpokes(e),e.add(a),e.add(o)}},{key:"renderInnerDataLabels",value:function(e,t){var n=this.w,i=new x(this.ctx),r=i.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(t.translateX?t.translateX:0,", ").concat(t.translateY?t.translateY:0,") scale(").concat(n.config.plotOptions.pie.customScale,")")}),a=e.total.show;r.node.style.opacity=t.opacity;var o,s,l=t.centerX,c=t.centerY;o=void 0===e.name.color?n.globals.colors[0]:e.name.color;var u=e.name.fontSize,d=e.name.fontFamily,h=e.name.fontWeight;s=void 0===e.value.color?n.config.chart.foreColor:e.value.color;var f=e.value.formatter,p="",m="";if(a?(o=e.total.color,u=e.total.fontSize,d=e.total.fontFamily,h=e.total.fontWeight,m=e.total.label,p=e.total.formatter(n)):1===n.globals.series.length&&(p=f(n.globals.series[0],n),m=n.globals.seriesNames[0]),m&&(m=e.name.formatter(m,e.total.show,n)),e.name.show){var g=i.drawText({x:l,y:c+parseFloat(e.name.offsetY),text:m,textAnchor:"middle",foreColor:o,fontSize:u,fontWeight:h,fontFamily:d});g.node.classList.add("apexcharts-datalabel-label"),r.add(g)}if(e.value.show){var _=e.name.show?parseFloat(e.value.offsetY)+16:e.value.offsetY,v=i.drawText({x:l,y:c+_,text:p,textAnchor:"middle",foreColor:s,fontWeight:e.value.fontWeight,fontSize:e.value.fontSize,fontFamily:e.value.fontFamily});v.node.classList.add("apexcharts-datalabel-value"),r.add(v)}return r}},{key:"printInnerLabels",value:function(e,t,n,i){var r,a=this.w;i?r=void 0===e.name.color?a.globals.colors[parseInt(i.parentNode.getAttribute("rel"),10)-1]:e.name.color:a.globals.series.length>1&&e.total.show&&(r=e.total.color);var o=a.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),s=a.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");n=(0,e.value.formatter)(n,a),i||"function"!=typeof e.total.formatter||(n=e.total.formatter(a));var l=t===e.total.label;t=e.name.formatter(t,l,a),null!==o&&(o.textContent=t),null!==s&&(s.textContent=n),null!==o&&(o.style.fill=r)}},{key:"printDataLabelsInner",value:function(e,t){var n=this.w,i=e.getAttribute("data:value"),r=n.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];n.globals.series.length>1&&this.printInnerLabels(t,r,i,e);var a=n.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==a&&(a.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,n=this.w,i=new x(this.ctx),r=n.config.plotOptions.polarArea.spokes;if(0!==r.strokeWidth){for(var a=[],o=360/n.globals.series.length,s=0;s<n.globals.series.length;s++)a.push(y.polarToCartesian(this.centerX,this.centerY,n.globals.radialSize,n.config.plotOptions.pie.startAngle+o*s));a.forEach((function(n,a){var o=i.drawLine(n.x,n.y,t.centerX,t.centerY,Array.isArray(r.connectorColors)?r.connectorColors[a]:r.connectorColors);e.add(o)}))}}},{key:"revertDataLabelsInner",value:function(e,t,n){var i=this,r=this.w,a=r.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),o=!1,s=r.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),l=function(e){var n=e.makeSliceOut,r=e.printLabel;Array.prototype.forEach.call(s,(function(e){"true"===e.getAttribute("data:pieClicked")&&(n&&(o=!0),r&&i.printDataLabelsInner(e,t))}))};if(l({makeSliceOut:!0,printLabel:!1}),t.total.show&&r.globals.series.length>1)o&&!t.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(t,t.total.label,t.total.formatter(r));else if(l({makeSliceOut:!1,printLabel:!0}),!o)if(r.globals.selectedDataPoints.length&&r.globals.series.length>1)if(r.globals.selectedDataPoints[0].length>0){var c=r.globals.selectedDataPoints[0],u=r.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(u,t)}else a&&r.globals.selectedDataPoints.length&&0===r.globals.selectedDataPoints[0].length&&(a.style.opacity=0);else a&&r.globals.series.length>1&&(a.style.opacity=0)}}]),e}(),Ce=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var n=this.w;this.graphics=new x(this.ctx),this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=n.globals.svgHeight<n.globals.svgWidth?n.globals.gridHeight+1.5*n.globals.goldenPadding:n.globals.gridWidth,this.isLog=n.config.yaxis[0].logarithmic,this.coreUtils=new k(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(n.globals.maxY,0):n.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):n.globals.minY,this.polygons=n.config.plotOptions.radar.polygons,this.strokeWidth=n.config.stroke.show?n.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-n.config.chart.dropShadow.blur,n.config.xaxis.labels.show&&(this.size=this.size-n.globals.xAxisLabelsWidth/1.75),void 0!==n.config.plotOptions.radar.size&&(this.size=n.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return c(e,[{key:"draw",value:function(e){var t=this,n=this.w,i=new R(this.ctx),r=[],o=new q(this.ctx);e.length&&(this.dataPointsLen=e[n.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var s=n.globals.gridWidth/2,l=n.globals.gridHeight/2,c=s+n.config.plotOptions.radar.offsetX,u=l+n.config.plotOptions.radar.offsetY,d=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(c||0,", ").concat(u||0,")")}),h=[],f=null,p=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach((function(e,s){var l=e.length===n.globals.dataPoints,c=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":l,seriesName:y.escapeString(n.globals.seriesNames[s]),rel:s+1,"data:realIndex":s});t.dataRadiusOfPercent[s]=[],t.dataRadius[s]=[],t.angleArr[s]=[],e.forEach((function(e,n){var i=Math.abs(t.maxValue-t.minValue);e+=Math.abs(t.minValue),t.isLog&&(e=t.coreUtils.getLogVal(e,0)),t.dataRadiusOfPercent[s][n]=e/i,t.dataRadius[s][n]=t.dataRadiusOfPercent[s][n]*t.size,t.angleArr[s][n]=n*t.disAngle})),h=t.getDataPointsPos(t.dataRadius[s],t.angleArr[s]);var u=t.createPaths(h,{x:0,y:0});f=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),p=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":s}),n.globals.delayedElements.push({el:f.node,index:s});var d={i:s,realIndex:s,animationDelay:s,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:n.globals.stroke.colors[s],strokeLineCap:n.config.stroke.lineCap},m=null;n.globals.previousPaths.length>0&&(m=t.getPreviousPath(s));for(var g=0;g<u.linePathsTo.length;g++){var _=t.graphics.renderPaths(a(a({},d),{},{pathFrom:null===m?u.linePathsFrom[g]:m,pathTo:u.linePathsTo[g],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[s]:t.strokeWidth,fill:"none",drawShadow:!1}));c.add(_);var v=i.fillPath({seriesNumber:s}),b=t.graphics.renderPaths(a(a({},d),{},{pathFrom:null===m?u.areaPathsFrom[g]:m,pathTo:u.areaPathsTo[g],strokeWidth:0,fill:v,drawShadow:!1}));if(n.config.chart.dropShadow.enabled){var x=new w(t.ctx),k=n.config.chart.dropShadow;x.dropShadow(b,Object.assign({},k,{noUserSpaceOnUse:!0}),s)}c.add(b)}e.forEach((function(e,i){var r=new H(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:s,dataPointIndex:i}),l=t.graphics.drawMarker(h[i].x,h[i].y,r);l.attr("rel",i),l.attr("j",i),l.attr("index",s),l.node.setAttribute("default-marker-size",r.pSize);var u=t.graphics.group({class:"apexcharts-series-markers"});u&&u.add(l),f.add(u),c.add(f);var d=n.config.dataLabels;if(d.enabled){var m=d.formatter(n.globals.series[s][i],{seriesIndex:s,dataPointIndex:i,w:n});o.plotDataLabelsText({x:h[i].x,y:h[i].y,text:m,textAnchor:"middle",i:s,j:s,parent:p,offsetCorrection:!1,dataLabelsConfig:a({},d)})}c.add(p)})),r.push(c)})),this.drawPolygons({parent:d}),n.config.xaxis.labels.show){var m=this.drawXAxisTexts();d.add(m)}return r.forEach((function(e){d.add(e)})),d.add(this.yaxisLabels),d}},{key:"drawPolygons",value:function(e){for(var t=this,n=this.w,i=e.parent,r=new Le(this.ctx),a=n.globals.yAxisScale[0].result.reverse(),o=a.length,s=[],l=this.size/(o-1),c=0;c<o;c++)s[c]=l*c;s.reverse();var u=[],d=[];s.forEach((function(e,n){var i=y.getPolygonPos(e,t.dataPointsLen),r="";i.forEach((function(e,i){if(0===n){var a=t.graphics.drawLine(e.x,e.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[i]:t.polygons.connectorColors);d.push(a)}0===i&&t.yaxisLabelsTextsPos.push({x:e.x,y:e.y}),r+=e.x+","+e.y+" "})),u.push(r)})),u.forEach((function(e,r){var a=t.polygons.strokeColors,o=t.polygons.strokeWidth,s=t.graphics.drawPolygon(e,Array.isArray(a)?a[r]:a,Array.isArray(o)?o[r]:o,n.globals.radarPolygons.fill.colors[r]);i.add(s)})),d.forEach((function(e){i.add(e)})),n.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((function(e,n){var i=r.drawYAxisTexts(e.x,e.y,n,a[n]);t.yaxisLabels.add(i)}))}},{key:"drawXAxisTexts",value:function(){var e=this,t=this.w,n=t.config.xaxis.labels,i=this.graphics.group({class:"apexcharts-xaxis"}),r=y.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach((function(o,s){var l=t.config.xaxis.labels.formatter,c=new q(e.ctx);if(r[s]){var u=e.getTextPos(r[s],e.size),d=l(o,{seriesIndex:-1,dataPointIndex:s,w:t});c.plotDataLabelsText({x:u.newX,y:u.newY,text:d,textAnchor:u.textAnchor,i:s,j:s,parent:i,color:Array.isArray(n.style.colors)&&n.style.colors[s]?n.style.colors[s]:"#a8a8a8",dataLabelsConfig:a({textAnchor:u.textAnchor,dropShadow:{enabled:!1}},n),offsetCorrection:!1})}})),i}},{key:"createPaths",value:function(e,t){var n=this,i=[],r=[],a=[],o=[];if(e.length){r=[this.graphics.move(t.x,t.y)],o=[this.graphics.move(t.x,t.y)];var s=this.graphics.move(e[0].x,e[0].y),l=this.graphics.move(e[0].x,e[0].y);e.forEach((function(t,i){s+=n.graphics.line(t.x,t.y),l+=n.graphics.line(t.x,t.y),i===e.length-1&&(s+="Z",l+="Z")})),i.push(s),a.push(l)}return{linePathsFrom:r,linePathsTo:i,areaPathsFrom:o,areaPathsTo:a}}},{key:"getTextPos",value:function(e,t){var n="middle",i=e.x,r=e.y;return Math.abs(e.x)>=10?e.x>0?(n="start",i+=10):e.x<0&&(n="end",i-=10):n="middle",Math.abs(e.y)>=t-10&&(e.y<0?r-=10:e.y>0&&(r+=10)),{textAnchor:n,newX:i,newY:r}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,n=null,i=0;i<t.globals.previousPaths.length;i++){var r=t.globals.previousPaths[i];r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(e,10)&&void 0!==t.globals.previousPaths[i].paths[0]&&(n=t.globals.previousPaths[i].paths[0].d)}return n}},{key:"getDataPointsPos",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var i=[],r=0;r<n;r++){var a={};a.x=e[r]*Math.sin(t[r]),a.y=-e[r]*Math.cos(t[r]),i.push(a)}return i}}]),e}(),De=function(e){d(n,Ee);var t=p(n);function n(e){var i;s(this,n),(i=t.call(this,e)).ctx=e,i.w=e.w,i.animBeginArr=[0],i.animDur=0;var r=i.w;return i.startAngle=r.config.plotOptions.radialBar.startAngle,i.endAngle=r.config.plotOptions.radialBar.endAngle,i.totalAngle=Math.abs(r.config.plotOptions.radialBar.endAngle-r.config.plotOptions.radialBar.startAngle),i.trackStartAngle=r.config.plotOptions.radialBar.track.startAngle,i.trackEndAngle=r.config.plotOptions.radialBar.track.endAngle,i.donutDataLabels=i.w.config.plotOptions.radialBar.dataLabels,i.radialDataLabels=i.donutDataLabels,i.trackStartAngle||(i.trackStartAngle=i.startAngle),i.trackEndAngle||(i.trackEndAngle=i.endAngle),360===i.endAngle&&(i.endAngle=359.99),i.margin=parseInt(r.config.plotOptions.radialBar.track.margin,10),i}return c(n,[{key:"draw",value:function(e){var t=this.w,n=new x(this.ctx),i=n.group({class:"apexcharts-radialbar"});if(t.globals.noData)return i;var r=n.group(),a=this.defaultSize/2,o=t.globals.gridWidth/2,s=this.defaultSize/2.05;t.config.chart.sparkline.enabled||(s=s-t.config.stroke.width-t.config.chart.dropShadow.blur);var l=t.globals.fill.colors;if(t.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:s,centerX:o,centerY:a,colorArr:l,series:e});r.add(c)}var u=this.drawArcs({size:s,centerX:o,centerY:a,colorArr:l,series:e}),d=360;t.config.plotOptions.radialBar.startAngle<0&&(d=this.totalAngle);var h=(360-d)/360;if(t.globals.radialSize=s-s*h,this.radialDataLabels.value.show){var f=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);t.globals.radialSize+=f*h}return r.add(u.g),"front"===t.config.plotOptions.radialBar.hollow.position&&(u.g.add(u.elHollow),u.dataLabels&&u.g.add(u.dataLabels)),i.add(r),i}},{key:"drawTracks",value:function(e){var t=this.w,n=new x(this.ctx),i=n.group({class:"apexcharts-tracks"}),r=new w(this.ctx),a=new R(this.ctx),o=this.getStrokeWidth(e);e.size=e.size-o/2;for(var s=0;s<e.series.length;s++){var l=n.group({class:"apexcharts-radialbar-track apexcharts-track"});i.add(l),l.attr({rel:s+1}),e.size=e.size-o-this.margin;var c=t.config.plotOptions.radialBar.track,u=a.fillPath({seriesNumber:0,size:e.size,fillColors:Array.isArray(c.background)?c.background[s]:c.background,solid:!0}),d=this.trackStartAngle,h=this.trackEndAngle;Math.abs(h)+Math.abs(d)>=360&&(h=360-Math.abs(this.startAngle)-.1);var f=n.drawPath({d:"",stroke:u,strokeWidth:o*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var p=c.dropShadow;r.dropShadow(f,p)}l.add(f),f.attr("id","apexcharts-radialbarTrack-"+s),this.animatePaths(f,{centerX:e.centerX,centerY:e.centerY,endAngle:h,startAngle:d,size:e.size,i:s,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:t.globals.easing})}return i}},{key:"drawArcs",value:function(e){var t=this.w,n=new x(this.ctx),i=new R(this.ctx),r=new w(this.ctx),a=n.group(),o=this.getStrokeWidth(e);e.size=e.size-o/2;var s=t.config.plotOptions.radialBar.hollow.background,l=e.size-o*e.series.length-this.margin*e.series.length-o*parseInt(t.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,c=l-t.config.plotOptions.radialBar.hollow.margin;void 0!==t.config.plotOptions.radialBar.hollow.image&&(s=this.drawHollowImage(e,a,l,s));var u=this.drawHollow({size:c,centerX:e.centerX,centerY:e.centerY,fill:s||"transparent"});if(t.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=t.config.plotOptions.radialBar.hollow.dropShadow;r.dropShadow(u,d)}var h=1;!this.radialDataLabels.total.show&&t.globals.series.length>1&&(h=0);var f=null;this.radialDataLabels.show&&(f=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:e.centerX,centerY:e.centerY,opacity:h})),"back"===t.config.plotOptions.radialBar.hollow.position&&(a.add(u),f&&a.add(f));var p=!1;t.config.plotOptions.radialBar.inverseOrder&&(p=!0);for(var m=p?e.series.length-1:0;p?m>=0:m<e.series.length;p?m--:m++){var g=n.group({class:"apexcharts-series apexcharts-radial-series",seriesName:y.escapeString(t.globals.seriesNames[m])});a.add(g),g.attr({rel:m+1,"data:realIndex":m}),this.ctx.series.addCollapsedClassToSeries(g,m),e.size=e.size-o-this.margin;var _=i.fillPath({seriesNumber:m,size:e.size,value:e.series[m]}),v=this.startAngle,b=void 0,k=y.negToZero(e.series[m]>100?100:e.series[m])/100,A=Math.round(this.totalAngle*k)+this.startAngle,S=void 0;t.globals.dataChanged&&(b=this.startAngle,S=Math.round(this.totalAngle*y.negToZero(t.globals.previousPaths[m])/100)+b),Math.abs(A)+Math.abs(v)>=360&&(A-=.01),Math.abs(S)+Math.abs(b)>=360&&(S-=.01);var M=A-v,T=Array.isArray(t.config.stroke.dashArray)?t.config.stroke.dashArray[m]:t.config.stroke.dashArray,L=n.drawPath({d:"",stroke:_,strokeWidth:o,fill:"none",fillOpacity:t.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+m,strokeDashArray:T});if(x.setAttrs(L.node,{"data:angle":M,"data:value":e.series[m]}),t.config.chart.dropShadow.enabled){var E=t.config.chart.dropShadow;r.dropShadow(L,E,m)}r.setSelectionFilter(L,0,m),this.addListeners(L,this.radialDataLabels),g.add(L),L.attr({index:0,j:m});var C=0;!this.initialAnim||t.globals.resized||t.globals.dataChanged||(C=t.config.chart.animations.speed),t.globals.dataChanged&&(C=t.config.chart.animations.dynamicAnimation.speed),this.animDur=C/(1.2*e.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(L,{centerX:e.centerX,centerY:e.centerY,endAngle:A,startAngle:v,prevEndAngle:S,prevStartAngle:b,size:e.size,i:m,totalItems:2,animBeginArr:this.animBeginArr,dur:C,shouldSetPrevPaths:!0,easing:t.globals.easing})}return{g:a,elHollow:u,dataLabels:f}}},{key:"drawHollow",value:function(e){var t=new x(this.ctx).drawCircle(2*e.size);return t.attr({class:"apexcharts-radialbar-hollow",cx:e.centerX,cy:e.centerY,r:e.size,fill:e.fill}),t}},{key:"drawHollowImage",value:function(e,t,n,i){var r=this.w,a=new R(this.ctx),o=y.randomId(),s=r.config.plotOptions.radialBar.hollow.image;if(r.config.plotOptions.radialBar.hollow.imageClipped)a.clippedImgArea({width:n,height:n,image:s,patternID:"pattern".concat(r.globals.cuid).concat(o)}),i="url(#pattern".concat(r.globals.cuid).concat(o,")");else{var l=r.config.plotOptions.radialBar.hollow.imageWidth,c=r.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var u=r.globals.dom.Paper.image(s).loaded((function(t){this.move(e.centerX-t.width/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+r.config.plotOptions.radialBar.hollow.imageOffsetY)}));t.add(u)}else{var d=r.globals.dom.Paper.image(s).loaded((function(t){this.move(e.centerX-l/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-c/2+r.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)}));t.add(d)}}return i}},{key:"getStrokeWidth",value:function(e){var t=this.w;return e.size*(100-parseInt(t.config.plotOptions.radialBar.hollow.size,10))/100/(e.series.length+1)-this.margin}}]),n}(),Oe=function(e){d(n,ke);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return c(n,[{key:"draw",value:function(e,t){var n=this.w,i=new x(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=e,this.seriesRangeStart=n.globals.seriesRangeStart,this.seriesRangeEnd=n.globals.seriesRangeEnd,this.barHelpers.initVariables(e);for(var r=i.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),o=0;o<e.length;o++){var s,l,c,d,h=void 0,f=void 0,p=n.globals.comboCharts?t[o]:o,m=i.group({class:"apexcharts-series",seriesName:y.escapeString(n.globals.seriesNames[p]),rel:o+1,"data:realIndex":p});this.ctx.series.addCollapsedClassToSeries(m,p),e[o].length>0&&(this.visibleI=this.visibleI+1);var g=0,_=0;this.yRatio.length>1&&(this.yaxisIndex=p);var v=this.barHelpers.initialPositions();f=v.y,d=v.zeroW,h=v.x,_=v.barWidth,g=v.barHeight,s=v.xDivision,l=v.yDivision,c=v.zeroH;for(var b=i.group({class:"apexcharts-datalabels","data:realIndex":p}),w=i.group({class:"apexcharts-rangebar-goals-markers"}),k=0;k<n.globals.dataPoints;k++){var A,S=this.barHelpers.getStrokeWidth(o,k,p),M=this.seriesRangeStart[o][k],T=this.seriesRangeEnd[o][k],L=null,E=null,C=null,D={x:h,y:f,strokeWidth:S,elSeries:m},O=this.seriesLen;if(n.config.plotOptions.bar.rangeBarGroupRows&&(O=1),void 0===n.config.series[o].data[k])break;if(this.isHorizontal){C=f+g*this.visibleI;var Y=(l-g*O)/2;if(n.config.series[o].data[k].x){var P=this.detectOverlappingBars({i:o,j:k,barYPosition:C,srty:Y,barHeight:g,yDivision:l,initPositions:v});g=P.barHeight,C=P.barYPosition}_=(L=this.drawRangeBarPaths(a({indexes:{i:o,j:k,realIndex:p},barHeight:g,barYPosition:C,zeroW:d,yDivision:l,y1:M,y2:T},D))).barWidth}else{n.globals.isXNumeric&&(h=(n.globals.seriesX[o][k]-n.globals.minX)/this.xRatio-_/2),E=h+_*this.visibleI;var j=(s-_*O)/2;if(n.config.series[o].data[k].x){var I=this.detectOverlappingBars({i:o,j:k,barXPosition:E,srtx:j,barWidth:_,xDivision:s,initPositions:v});_=I.barWidth,E=I.barXPosition}g=(L=this.drawRangeColumnPaths(a({indexes:{i:o,j:k,realIndex:p},barWidth:_,barXPosition:E,zeroH:c,xDivision:s},D))).barHeight}var F=this.barHelpers.drawGoalLine({barXPosition:L.barXPosition,barYPosition:C,goalX:L.goalX,goalY:L.goalY,barHeight:g,barWidth:_});F&&w.add(F),f=L.y,h=L.x;var N=this.barHelpers.getPathFillColor(e,o,k,p),R=n.globals.stroke.colors[p];this.renderSeries((u(A={realIndex:p,pathFill:N,lineFill:R,j:k,i:o,x:h,y:f,y1:M,y2:T,pathFrom:L.pathFrom,pathTo:L.pathTo,strokeWidth:S,elSeries:m,series:e,barHeight:g,barWidth:_,barXPosition:E,barYPosition:C},"barWidth",_),u(A,"elDataLabelsWrap",b),u(A,"elGoalsMarkers",w),u(A,"visibleSeries",this.visibleI),u(A,"type","rangebar"),A))}r.add(m)}return r}},{key:"detectOverlappingBars",value:function(e){var t=e.i,n=e.j,i=e.barYPosition,r=e.barXPosition,a=e.srty,o=e.srtx,s=e.barHeight,l=e.barWidth,c=e.yDivision,u=e.xDivision,d=e.initPositions,h=this.w,f=[],p=h.config.series[t].data[n].rangeName,m=h.config.series[t].data[n].x,g=Array.isArray(m)?m.join(" "):m,_=h.globals.labels.map((function(e){return Array.isArray(e)?e.join(" "):e})).indexOf(g),v=h.globals.seriesRange[t].findIndex((function(e){return e.x===g&&e.overlaps.length>0}));return this.isHorizontal?(i=h.config.plotOptions.bar.rangeBarGroupRows?a+c*_:a+s*this.visibleI+c*_,v>-1&&!h.config.plotOptions.bar.rangeBarOverlap&&(f=h.globals.seriesRange[t][v].overlaps).indexOf(p)>-1&&(i=(s=d.barHeight/f.length)*this.visibleI+c*(100-parseInt(this.barOptions.barHeight,10))/100/2+s*(this.visibleI+f.indexOf(p))+c*_)):(_>-1&&(r=h.config.plotOptions.bar.rangeBarGroupRows?o+u*_:o+l*this.visibleI+u*_),v>-1&&!h.config.plotOptions.bar.rangeBarOverlap&&(f=h.globals.seriesRange[t][v].overlaps).indexOf(p)>-1&&(r=(l=d.barWidth/f.length)*this.visibleI+u*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+f.indexOf(p))+u*_)),{barYPosition:i,barXPosition:r,barHeight:s,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(e){var t=e.indexes,n=e.x,i=e.xDivision,r=e.barWidth,a=e.barXPosition,o=e.zeroH,s=this.w,l=t.i,c=t.j,u=this.yRatio[this.yaxisIndex],d=t.realIndex,h=this.getRangeValue(d,c),f=Math.min(h.start,h.end),p=Math.max(h.start,h.end);void 0===this.series[l][c]||null===this.series[l][c]?f=o:(f=o-f/u,p=o-p/u);var m=Math.abs(p-f),g=this.barHelpers.getColumnPaths({barXPosition:a,barWidth:r,y1:f,y2:p,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:t.realIndex,i:d,j:c,w:s});if(s.globals.isXNumeric){var _=this.getBarXForNumericXAxis({x:n,j:c,realIndex:d,barWidth:r});n=_.x,a=_.barXPosition}else n+=i;return{pathTo:g.pathTo,pathFrom:g.pathFrom,barHeight:m,x:n,y:p,goalY:this.barHelpers.getGoalValues("y",null,o,l,c),barXPosition:a}}},{key:"drawRangeBarPaths",value:function(e){var t=e.indexes,n=e.y,i=e.y1,r=e.y2,a=e.yDivision,o=e.barHeight,s=e.barYPosition,l=e.zeroW,c=this.w,u=l+i/this.invertedYRatio,d=l+r/this.invertedYRatio,h=Math.abs(d-u),f=this.barHelpers.getBarpaths({barYPosition:s,barHeight:o,x1:u,x2:d,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:t.realIndex,realIndex:t.realIndex,j:t.j,w:c});return c.globals.isXNumeric||(n+=a),{pathTo:f.pathTo,pathFrom:f.pathFrom,barWidth:h,x:d,goalX:this.barHelpers.getGoalValues("x",l,null,t.realIndex,t.j),y:n}}},{key:"getRangeValue",value:function(e,t){var n=this.w;return{start:n.globals.seriesRangeStart[e][t],end:n.globals.seriesRangeEnd[e][t]}}}]),n}(),Ye=function(){function e(t){s(this,e),this.w=t.w,this.lineCtx=t}return c(e,[{key:"sameValueSeriesFix",value:function(e,t){var n=this.w;if(("gradient"===n.config.fill.type||"gradient"===n.config.fill.type[e])&&new k(this.lineCtx.ctx,n).seriesHaveSameValues(e)){var i=t[e].slice();i[i.length-1]=i[i.length-1]+1e-6,t[e]=i}return t}},{key:"calculatePoints",value:function(e){var t=e.series,n=e.realIndex,i=e.x,r=e.y,a=e.i,o=e.j,s=e.prevY,l=this.w,c=[],u=[];if(0===o){var d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(d=(l.globals.seriesX[n][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),c.push(d),u.push(y.isNumber(t[a][0])?s+l.config.markers.offsetY:null),c.push(i+l.config.markers.offsetX),u.push(y.isNumber(t[a][o+1])?r+l.config.markers.offsetY:null)}else c.push(i+l.config.markers.offsetX),u.push(y.isNumber(t[a][o+1])?r+l.config.markers.offsetY:null);return{x:c,y:u}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,n=e.pathFromArea,i=e.realIndex,r=this.w,a=0;a<r.globals.previousPaths.length;a++){var o=r.globals.previousPaths[a];("line"===o.type||"area"===o.type)&&o.paths.length>0&&parseInt(o.realIndex,10)===parseInt(i,10)&&("line"===o.type?(this.lineCtx.appendPathFrom=!1,t=r.globals.previousPaths[a].paths[0].d):"area"===o.type&&(this.lineCtx.appendPathFrom=!1,n=r.globals.previousPaths[a].paths[0].d,r.config.stroke.show&&r.globals.previousPaths[a].paths[1]&&(t=r.globals.previousPaths[a].paths[1].d)))}return{pathFromLine:t,pathFromArea:n}}},{key:"determineFirstPrevY",value:function(e){var t,n=e.i,i=e.series,r=e.prevY,a=e.lineYPosition,o=this.w;if(void 0!==(null===(t=i[n])||void 0===t?void 0:t[0]))r=(a=o.config.chart.stacked&&n>0?this.lineCtx.prevSeriesY[n-1][0]:this.lineCtx.zeroY)-i[n][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?i[n][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(o.config.chart.stacked&&n>0&&void 0===i[n][0])for(var s=n-1;s>=0;s--)if(null!==i[s][0]&&void 0!==i[s][0]){r=a=this.lineCtx.prevSeriesY[s][0];break}return{prevY:r,lineYPosition:a}}}]),e}(),Pe=function(e){for(var t="",n=0;n<e.length;n++){var i=e[n],r=e[n-1],a=i.length,o=null==r?void 0:r.length;n>1&&Math.abs(i[a-2]-r[o-2])<30?(t+="Q".concat(i[0],", ").concat(i[1]),t+=", ".concat(i[2],", ").concat(i[3])):a>4?(t+="C".concat(i[0],", ").concat(i[1]),t+=", ".concat(i[2],", ").concat(i[3]),t+=", ".concat(i[4],", ").concat(i[5])):a>2&&(t+="S".concat(i[0],", ").concat(i[1]),t+=", ".concat(i[2],", ").concat(i[3]))}return t},je=function(e){var t=function(e){for(var t,n,i,r,a=function(e){for(var t=[],n=e[0],i=e[1],r=t[0]=Ie(n,i),a=1,o=e.length-1;a<o;a++)n=i,i=e[a+1],t[a]=.5*(r+(r=Ie(n,i)));return t[a]=r,t}(e),o=e.length-1,s=[],l=0;l<o;l++)i=Ie(e[l],e[l+1]),Math.abs(i)<1e-6?a[l]=a[l+1]=0:(r=(t=a[l]/i)*t+(n=a[l+1]/i)*n)>9&&(r=3*i/Math.sqrt(r),a[l]=r*t,a[l+1]=r*n);for(var c=0;c<=o;c++)r=(e[Math.min(o,c+1)][0]-e[Math.max(0,c-1)][0])/(6*(1+a[c]*a[c])),s.push([r||0,a[c]*r||0]);return s}(e),n=e[1],i=e[0],r=[],a=t[1],o=t[0];r.push(i,[i[0]+o[0],i[1]+o[1],n[0]-a[0],n[1]-a[1],n[0],n[1]]);for(var s=2,l=t.length;s<l;s++){var c=e[s],u=t[s];r.push([c[0]-u[0],c[1]-u[1],c[0],c[1]])}return r};function Ie(e,t){return(t[1]-e[1])/(t[0]-e[0])}var Fe=function(){function e(t,n,i){s(this,e),this.ctx=t,this.w=t.w,this.xyRatios=n,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||i,this.scatter=new z(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Ye(this),this.markers=new H(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return c(e,[{key:"draw",value:function(e,t,n,i){var r,o=this.w,s=new x(this.ctx),l=o.globals.comboCharts?t:o.config.chart.type,c=s.group({class:"apexcharts-".concat(l,"-series apexcharts-plot-series")}),u=new k(this.ctx,o);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=u.getLogSeries(e),this.yRatio=u.getLogYRatios(this.yRatio);for(var d=[],h=0;h<e.length;h++){e=this.lineHelpers.sameValueSeriesFix(h,e);var f=o.globals.comboCharts?n[h]:h;this._initSerieVariables(e,h,f);var p=[],m=[],g=[],_=o.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,f),o.globals.isXNumeric&&o.globals.seriesX.length>0&&(_=(o.globals.seriesX[f][0]-o.globals.minX)/this.xRatio),g.push(_);var v=_,y=this.zeroY,b=this.zeroY;y=this.lineHelpers.determineFirstPrevY({i:h,series:e,prevY:y,lineYPosition:0}).prevY,"smooth"===o.config.stroke.curve&&null===e[h][0]?p.push(null):p.push(y),"rangeArea"===l&&(b=this.lineHelpers.determineFirstPrevY({i:h,series:i,prevY:b,lineYPosition:0}).prevY,m.push(b));var w={type:l,series:e,realIndex:f,i:h,x:_,y:1,pathsFrom:this._calculatePathsFrom({type:l,series:e,i:h,realIndex:f,prevX:v,prevY:y,prevY2:b}),linePaths:[],areaPaths:[],seriesIndex:n,lineYPosition:0,xArrj:g,yArrj:p,y2Arrj:m,seriesRangeEnd:i},A=this._iterateOverDataPoints(a(a({},w),{},{iterations:"rangeArea"===l?e[h].length-1:void 0,isRangeStart:!0}));if("rangeArea"===l){var S=this._calculatePathsFrom({series:i,i:h,realIndex:f,prevX:v,prevY:b}),M=this._iterateOverDataPoints(a(a({},w),{},{series:i,pathsFrom:S,iterations:i[h].length-1,isRangeStart:!1}));A.linePaths[0]=M.linePath+A.linePath,A.pathFromLine=M.pathFromLine+A.pathFromLine}this._handlePaths({type:l,realIndex:f,i:h,paths:A}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),d.push(this.elSeries)}if(void 0!==(null===(r=o.config.series[0])||void 0===r?void 0:r.zIndex)&&d.sort((function(e,t){return Number(e.node.getAttribute("zIndex"))-Number(t.node.getAttribute("zIndex"))})),o.config.chart.stacked)for(var T=d.length;T>0;T--)c.add(d[T-1]);else for(var L=0;L<d.length;L++)c.add(d[L]);return c}},{key:"_initSerieVariables",value:function(e,t,n){var i=this.w,r=new x(this.ctx);this.xDivision=i.globals.gridWidth/(i.globals.dataPoints-("on"===i.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(i.config.stroke.width)?i.config.stroke.width[n]:i.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=n),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed,this.zeroY=i.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?i.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>i.globals.gridHeight||"end"===i.config.plotOptions.area.fillTo)&&(this.areaBottomY=i.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=r.group({class:"apexcharts-series",zIndex:void 0!==i.config.series[n].zIndex?i.config.series[n].zIndex:n,seriesName:y.escapeString(i.globals.seriesNames[n])}),this.elPointsMain=r.group({class:"apexcharts-series-markers-wrap","data:realIndex":n}),this.elDataLabelsWrap=r.group({class:"apexcharts-datalabels","data:realIndex":n});var a=e[t].length===i.globals.dataPoints;this.elSeries.attr({"data:longestSeries":a,rel:t+1,"data:realIndex":n}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,n,i,r,a=e.type,o=e.series,s=e.i,l=e.realIndex,c=e.prevX,u=e.prevY,d=e.prevY2,h=this.w,f=new x(this.ctx);if(null===o[s][0]){for(var p=0;p<o[s].length;p++)if(null!==o[s][p]){c=this.xDivision*p,u=this.zeroY-o[s][p]/this.yRatio[this.yaxisIndex],t=f.move(c,u),n=f.move(c,this.areaBottomY);break}}else t=f.move(c,u),"rangeArea"===a&&(t=f.move(c,d)+f.line(c,u)),n=f.move(c,this.areaBottomY)+f.line(c,u);if(i=f.move(-1,this.zeroY)+f.line(-1,this.zeroY),r=f.move(-1,this.zeroY)+f.line(-1,this.zeroY),h.globals.previousPaths.length>0){var m=this.lineHelpers.checkPreviousPaths({pathFromLine:i,pathFromArea:r,realIndex:l});i=m.pathFromLine,r=m.pathFromArea}return{prevX:c,prevY:u,linePath:t,areaPath:n,pathFromLine:i,pathFromArea:r}}},{key:"_handlePaths",value:function(e){var t=e.type,n=e.realIndex,i=e.i,r=e.paths,o=this.w,s=new x(this.ctx),l=new R(this.ctx);this.prevSeriesY.push(r.yArrj),o.globals.seriesXvalues[n]=r.xArrj,o.globals.seriesYvalues[n]=r.yArrj;var c=o.config.forecastDataPoints;if(c.count>0&&"rangeArea"!==t){var u=o.globals.seriesXvalues[n][o.globals.seriesXvalues[n].length-c.count-1],d=s.drawRect(u,0,o.globals.gridWidth,o.globals.gridHeight,0);o.globals.dom.elForecastMask.appendChild(d.node);var h=s.drawRect(0,0,u,o.globals.gridHeight,0);o.globals.dom.elNonForecastMask.appendChild(h.node)}this.pointsChart||o.globals.delayedElements.push({el:this.elPointsMain.node,index:n});var f={i,realIndex:n,animationDelay:i,initialSpeed:o.config.chart.animations.speed,dataChangeSpeed:o.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if("area"===t)for(var p=l.fillPath({seriesNumber:n}),m=0;m<r.areaPaths.length;m++){var g=s.renderPaths(a(a({},f),{},{pathFrom:r.pathFromArea,pathTo:r.areaPaths[m],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:p}));this.elSeries.add(g)}if(o.config.stroke.show&&!this.pointsChart){var _=null;if("line"===t)_=l.fillPath({seriesNumber:n,i});else if("solid"===o.config.stroke.fill.type)_=o.globals.stroke.colors[n];else{var v=o.config.fill;o.config.fill=o.config.stroke.fill,_=l.fillPath({seriesNumber:n,i}),o.config.fill=v}for(var y=0;y<r.linePaths.length;y++){var b=_;"rangeArea"===t&&(b=l.fillPath({seriesNumber:n}));var w=a(a({},f),{},{pathFrom:r.pathFromLine,pathTo:r.linePaths[y],stroke:_,strokeWidth:this.strokeWidth,strokeLineCap:o.config.stroke.lineCap,fill:"rangeArea"===t?b:"none"}),k=s.renderPaths(w);if(this.elSeries.add(k),k.attr("fill-rule","evenodd"),c.count>0&&"rangeArea"!==t){var A=s.renderPaths(w);A.node.setAttribute("stroke-dasharray",c.dashArray),c.strokeWidth&&A.node.setAttribute("stroke-width",c.strokeWidth),this.elSeries.add(A),A.attr("clip-path","url(#forecastMask".concat(o.globals.cuid,")")),k.attr("clip-path","url(#nonForecastMask".concat(o.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t=this,n=e.type,i=e.series,r=e.iterations,a=e.realIndex,o=e.i,s=e.x,l=e.y,c=e.pathsFrom,u=e.linePaths,d=e.areaPaths,h=e.seriesIndex,f=e.lineYPosition,p=e.xArrj,m=e.yArrj,g=e.y2Arrj,_=e.isRangeStart,v=e.seriesRangeEnd,b=this.w,w=new x(this.ctx),k=this.yRatio,A=c.prevY,S=c.linePath,M=c.areaPath,T=c.pathFromLine,L=c.pathFromArea,E=y.isNumber(b.globals.minYArr[a])?b.globals.minYArr[a]:b.globals.minY;r||(r=b.globals.dataPoints>1?b.globals.dataPoints-1:b.globals.dataPoints);for(var C=function(e,n){return n-e/k[t.yaxisIndex]+2*(t.isReversed?e/k[t.yaxisIndex]:0)},D=l,O=0;O<r;O++){var Y=void 0===i[o][O+1]||null===i[o][O+1];if(b.globals.isXNumeric){var P=b.globals.seriesX[a][O+1];void 0===b.globals.seriesX[a][O+1]&&(P=b.globals.seriesX[a][r-1]),s=(P-b.globals.minX)/this.xRatio}else s+=this.xDivision;f=b.config.chart.stacked&&o>0&&b.globals.collapsedSeries.length<b.config.series.length-1?this.prevSeriesY[function(e){for(var t=e,n=0;n<b.globals.series.length;n++)if(b.globals.collapsedSeriesIndices.indexOf(e)>-1){t--;break}return t>=0?t:0}(o-1)][O+1]:this.zeroY,Y?l=C(E,f):(l=C(i[o][O+1],f),"rangeArea"===n&&(D=C(v[o][O+1],f))),p.push(s),Y&&"smooth"===b.config.stroke.curve?m.push(null):m.push(l),g.push(D);var j=this.lineHelpers.calculatePoints({series:i,x:s,y:l,realIndex:a,i:o,j:O,prevY:A}),I=this._createPaths({type:n,series:i,i:o,realIndex:a,j:O,x:s,y:l,y2:D,xArrj:p,yArrj:m,y2Arrj:g,linePath:S,areaPath:M,linePaths:u,areaPaths:d,seriesIndex:h,isRangeStart:_});d=I.areaPaths,u=I.linePaths,M=I.areaPath,S=I.linePath,!this.appendPathFrom||"smooth"===b.config.stroke.curve&&"rangeArea"===n||(T+=w.line(s,this.zeroY),L+=w.line(s,this.zeroY)),this.handleNullDataPoints(i,j,o,O,a),this._handleMarkersAndLabels({type:n,pointsPos:j,i:o,j:O,realIndex:a,isRangeStart:_})}return{yArrj:m,xArrj:p,pathFromArea:L,areaPaths:d,pathFromLine:T,linePaths:u,linePath:S,areaPath:M}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,n=e.pointsPos,i=e.isRangeStart,r=e.i,a=e.j,o=e.realIndex,s=this.w,l=new q(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,a,{realIndex:o,pointsPos:n,zRatio:this.zRatio,elParent:this.elPointsMain});else{s.globals.series[r].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var c=this.markers.plotChartMarkers(n,o,a+1);null!==c&&this.elPointsMain.add(c)}var u=l.drawDataLabel({type:t,isRangeStart:i,pos:n,i:o,j:a+1});null!==u&&this.elDataLabelsWrap.add(u)}},{key:"_createPaths",value:function(e){var t=e.type,n=e.series,i=e.i,r=e.realIndex,a=e.j,o=e.x,s=e.y,l=e.xArrj,c=e.yArrj,u=e.y2,d=e.y2Arrj,h=e.linePath,f=e.areaPath,p=e.linePaths,m=e.areaPaths,g=e.seriesIndex,_=e.isRangeStart,v=this.w,y=new x(this.ctx),b=v.config.stroke.curve,w=this.areaBottomY;if(Array.isArray(v.config.stroke.curve)&&(b=Array.isArray(g)?v.config.stroke.curve[g[i]]:v.config.stroke.curve[i]),"rangeArea"===t&&(v.globals.hasNullValues||v.config.forecastDataPoints.count>0)&&"smooth"===b&&(b="straight"),"smooth"===b){var k="rangeArea"===t?l.length===v.globals.dataPoints:a===n[i].length-2,A=l.map((function(e,t){return[l[t],c[t]]})).filter((function(e){return null!==e[1]}));if(k&&A.length>1){var S=je(A);if(h+=Pe(S),null===n[i][0]?f=h:f+=Pe(S),"rangeArea"===t&&_){h+=y.line(l[l.length-1],d[d.length-1]);var M=l.slice().reverse(),T=d.slice().reverse(),L=M.map((function(e,t){return[M[t],T[t]]})),E=je(L);f=h+=Pe(E)}else f+=y.line(A[A.length-1][0],w)+y.line(A[0][0],w)+y.move(A[0][0],A[0][1])+"z";p.push(h),m.push(f)}}else{if(null===n[i][a+1]){h+=y.move(o,s);var C=v.globals.isXNumeric?(v.globals.seriesX[r][a]-v.globals.minX)/this.xRatio:o-this.xDivision;f=f+y.line(C,w)+y.move(o,s)+"z"}null===n[i][a]&&(h+=y.move(o,s),f+=y.move(o,w)),"stepline"===b?(h=h+y.line(o,null,"H")+y.line(null,s,"V"),f=f+y.line(o,null,"H")+y.line(null,s,"V")):"straight"===b&&(h+=y.line(o,s),f+=y.line(o,s)),a===n[i].length-2&&(f=f+y.line(o,w)+y.move(o,s)+"z","rangeArea"===t&&_?h=h+y.line(o,u)+y.move(o,u)+"z":(p.push(h),m.push(f)))}return{linePaths:p,areaPaths:m,linePath:h,areaPath:f}}},{key:"handleNullDataPoints",value:function(e,t,n,i,r){var a=this.w;if(null===e[n][i]&&a.config.markers.showNullDataPoints||1===e[n].length){var o=this.markers.plotChartMarkers(t,r,i+1,this.strokeWidth-a.config.markers.strokeWidth/2,!0);null!==o&&this.elPointsMain.add(o)}}}]),e}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function e(t,n,i,r){this.xoffset=t,this.yoffset=n,this.height=r,this.width=i,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(e){var t,n=[],i=this.xoffset,r=this.yoffset,o=a(e)/this.height,s=a(e)/this.width;if(this.width>=this.height)for(t=0;t<e.length;t++)n.push([i,r,i+o,r+e[t]/o]),r+=e[t]/o;else for(t=0;t<e.length;t++)n.push([i,r,i+e[t]/s,r+s]),i+=e[t]/s;return n},this.cutArea=function(t){var n;if(this.width>=this.height){var i=t/this.height,r=this.width-i;n=new e(this.xoffset+i,this.yoffset,r,this.height)}else{var a=t/this.width,o=this.height-a;n=new e(this.xoffset,this.yoffset+a,this.width,o)}return n}}function t(t,i,r,o,s){o=void 0===o?0:o,s=void 0===s?0:s;var l=n(function(e,t){var n,i=[],r=t/a(e);for(n=0;n<e.length;n++)i[n]=e[n]*r;return i}(t,i*r),[],new e(o,s,i,r),[]);return function(e){var t,n,i=[];for(t=0;t<e.length;t++)for(n=0;n<e[t].length;n++)i.push(e[t][n]);return i}(l)}function n(e,t,r,o){var s,l,c;if(0!==e.length)return s=r.shortestEdge(),function(e,t,n){var r;return 0===e.length||((r=e.slice()).push(t),i(e,n)>=i(r,n))}(t,l=e[0],s)?(t.push(l),n(e.slice(1),t,r,o)):(c=r.cutArea(a(t),o),o.push(r.getCoordinates(t)),n(e,[],c,o)),o;o.push(r.getCoordinates(t))}function i(e,t){var n=Math.min.apply(Math,e),i=Math.max.apply(Math,e),r=a(e);return Math.max(Math.pow(t,2)*i/Math.pow(r,2),Math.pow(r,2)/(Math.pow(t,2)*n))}function r(e){return e&&e.constructor===Array}function a(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t];return n}function o(e){var t,n=0;if(r(e[0]))for(t=0;t<e.length;t++)n+=o(e[t]);else n=a(e);return n}return function e(n,i,a,s,l){s=void 0===s?0:s,l=void 0===l?0:l;var c,u,d=[],h=[];if(r(n[0])){for(u=0;u<n.length;u++)d[u]=o(n[u]);for(c=t(d,i,a,s,l),u=0;u<n.length;u++)h.push(e(n[u],c[u][2]-c[u][0],c[u][3]-c[u][1],c[u][0],c[u][1]))}else h=t(n,i,a,s,l);return h}}();var Ne,Re,He=function(){function e(t,n){s(this,e),this.ctx=t,this.w=t.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new Me(t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return c(e,[{key:"draw",value:function(e){var t=this,n=this.w,i=new x(this.ctx),r=new R(this.ctx),a=i.group({class:"apexcharts-treemap"});if(n.globals.noData)return a;var o=[];return e.forEach((function(e){var t=e.map((function(e){return Math.abs(e)}));o.push(t)})),this.negRange=this.helpers.checkColorRange(),n.config.series.forEach((function(e,n){e.data.forEach((function(e){Array.isArray(t.labels[n])||(t.labels[n]=[]),t.labels[n].push(e.x)}))})),window.TreemapSquared.generate(o,n.globals.gridWidth,n.globals.gridHeight).forEach((function(o,s){var l=i.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:y.escapeString(n.globals.seriesNames[s]),rel:s+1,"data:realIndex":s});if(n.config.chart.dropShadow.enabled){var c=n.config.chart.dropShadow;new w(t.ctx).dropShadow(a,c,s)}var u=i.group({class:"apexcharts-data-labels"});o.forEach((function(a,o){var c=a[0],u=a[1],d=a[2],h=a[3],f=i.drawRect(c,u,d-c,h-u,0,"#fff",1,t.strokeWidth,n.config.plotOptions.treemap.useFillColorAsStroke?m:n.globals.stroke.colors[s]);f.attr({cx:c,cy:u,index:s,i:s,j:o,width:d-c,height:h-u});var p=t.helpers.getShadeColor(n.config.chart.type,s,o,t.negRange),m=p.color;void 0!==n.config.series[s].data[o]&&n.config.series[s].data[o].fillColor&&(m=n.config.series[s].data[o].fillColor);var g=r.fillPath({color:m,seriesNumber:s,dataPointIndex:o});f.node.classList.add("apexcharts-treemap-rect"),f.attr({fill:g}),t.helpers.addListeners(f);var _={x:c+(d-c)/2,y:u+(h-u)/2,width:0,height:0},v={x:c,y:u,width:d-c,height:h-u};if(n.config.chart.animations.enabled&&!n.globals.dataChanged){var y=1;n.globals.resized||(y=n.config.chart.animations.speed),t.animateTreemap(f,_,v,y)}if(n.globals.dataChanged){var b=1;t.dynamicAnim.enabled&&n.globals.shouldAnimate&&(b=t.dynamicAnim.speed,n.globals.previousPaths[s]&&n.globals.previousPaths[s][o]&&n.globals.previousPaths[s][o].rect&&(_=n.globals.previousPaths[s][o].rect),t.animateTreemap(f,_,v,b))}var w=t.getFontSize(a),x=n.config.dataLabels.formatter(t.labels[s][o],{value:n.globals.series[s][o],seriesIndex:s,dataPointIndex:o,w:n});"truncate"===n.config.plotOptions.treemap.dataLabels.format&&(w=parseInt(n.config.dataLabels.style.fontSize,10),x=t.truncateLabels(x,w,c,u,d,h));var k=t.helpers.calculateDataLabels({text:x,x:(c+d)/2,y:(u+h)/2+t.strokeWidth/2+w/3,i:s,j:o,colorProps:p,fontSize:w,series:e});n.config.dataLabels.enabled&&k&&t.rotateToFitLabel(k,w,x,c,u,d,h),l.add(f),null!==k&&l.add(k)})),l.add(u),a.add(l)})),a}},{key:"getFontSize",value:function(e){var t,n,i=this.w,r=function e(t){var n,i=0;if(Array.isArray(t[0]))for(n=0;n<t.length;n++)i+=e(t[n]);else for(n=0;n<t.length;n++)i+=t[n].length;return i}(this.labels)/function e(t){var n,i=0;if(Array.isArray(t[0]))for(n=0;n<t.length;n++)i+=e(t[n]);else for(n=0;n<t.length;n++)i+=1;return i}(this.labels);return t=(e[2]-e[0])*(e[3]-e[1]),n=Math.pow(t,.5),Math.min(n/r,parseInt(i.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(e,t,n,i,r,a,o){var s=new x(this.ctx),l=s.getTextRects(n,t);if(l.width+this.w.config.stroke.width+5>a-i&&l.width<=o-r){var c=s.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(c.x," ").concat(c.y,") translate(").concat(l.height/3,")"))}}},{key:"truncateLabels",value:function(e,t,n,i,r,a){var o=new x(this.ctx),s=o.getTextRects(e,t).width+this.w.config.stroke.width+5>r-n&&a-i>r-n?a-i:r-n,l=o.getTextBasedOnMaxWidth({text:e,maxWidth:s,fontSize:t});return e.length!==l.length&&s/t<5?"":l}},{key:"animateTreemap",value:function(e,t,n,i){var r=new b(this.ctx);r.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:n.x,y:n.y,width:n.width,height:n.height},i,(function(){r.animationCompleted(e)}))}}]),e}(),ze=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return c(e,[{key:"calculateTimeScaleTicks",value:function(e,t){var n=this,i=this.w;if(i.globals.allSeriesCollapsed)return i.globals.labels=[],i.globals.timescaleLabels=[],[];var r=new D(this.ctx),o=(t-e)/864e5;this.determineInterval(o),i.globals.disableZoomIn=!1,i.globals.disableZoomOut=!1,o<.00011574074074074075?i.globals.disableZoomIn=!0:o>5e4&&(i.globals.disableZoomOut=!0);var s=r.getTimeUnitsfromTimestamp(e,t,this.utc),l=i.globals.gridWidth/o,c=l/24,u=c/60,d=u/60,h=Math.floor(24*o),f=Math.floor(1440*o),p=Math.floor(86400*o),m=Math.floor(o),g=Math.floor(o/30),_=Math.floor(o/365),v={minMillisecond:s.minMillisecond,minSecond:s.minSecond,minMinute:s.minMinute,minHour:s.minHour,minDate:s.minDate,minMonth:s.minMonth,minYear:s.minYear},y={firstVal:v,currentMillisecond:v.minMillisecond,currentSecond:v.minSecond,currentMinute:v.minMinute,currentHour:v.minHour,currentMonthDate:v.minDate,currentDate:v.minDate,currentMonth:v.minMonth,currentYear:v.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:c,minutesWidthOnXAxis:u,secondsWidthOnXAxis:d,numberOfSeconds:p,numberOfMinutes:f,numberOfHours:h,numberOfDays:m,numberOfMonths:g,numberOfYears:_};switch(this.tickInterval){case"years":this.generateYearScale(y);break;case"months":case"half_year":this.generateMonthScale(y);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(y);break;case"hours":this.generateHourScale(y);break;case"minutes_fives":case"minutes":this.generateMinuteScale(y);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(y)}var b=this.timeScaleArray.map((function(e){var t={position:e.position,unit:e.unit,year:e.year,day:e.day?e.day:1,hour:e.hour?e.hour:0,month:e.month+1};return"month"===e.unit?a(a({},t),{},{day:1,value:e.value+1}):"day"===e.unit||"hour"===e.unit?a(a({},t),{},{value:e.value}):"minute"===e.unit?a(a({},t),{},{value:e.value,minute:e.value}):"second"===e.unit?a(a({},t),{},{value:e.value,minute:e.minute,second:e.second}):e}));return b.filter((function(e){var t=1,r=Math.ceil(i.globals.gridWidth/120),a=e.value;void 0!==i.config.xaxis.tickAmount&&(r=i.config.xaxis.tickAmount),b.length>r&&(t=Math.floor(b.length/r));var o=!1,s=!1;switch(n.tickInterval){case"years":"year"===e.unit&&(o=!0);break;case"half_year":t=7,"year"===e.unit&&(o=!0);break;case"months":t=1,"year"===e.unit&&(o=!0);break;case"months_fortnight":t=15,"year"!==e.unit&&"month"!==e.unit||(o=!0),30===a&&(s=!0);break;case"months_days":t=10,"month"===e.unit&&(o=!0),30===a&&(s=!0);break;case"week_days":t=8,"month"===e.unit&&(o=!0);break;case"days":t=1,"month"===e.unit&&(o=!0);break;case"hours":"day"===e.unit&&(o=!0);break;case"minutes_fives":case"seconds_fives":a%5!=0&&(s=!0);break;case"seconds_tens":a%10!=0&&(s=!0)}if("hours"===n.tickInterval||"minutes_fives"===n.tickInterval||"seconds_tens"===n.tickInterval||"seconds_fives"===n.tickInterval){if(!s)return!0}else if((a%t==0||o)&&!s)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var n=this.w,i=this.formatDates(e),r=this.removeOverlappingTS(i);n.globals.timescaleLabels=r.slice(),new ce(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,n=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case n>15:this.tickInterval="minutes_fives";break;case n>5:this.tickInterval="minutes";break;case n>1:this.tickInterval="seconds_tens";break;case 60*n>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,n=e.currentMonth,i=e.currentYear,r=e.daysWidthOnXAxis,a=e.numberOfYears,o=t.minYear,s=0,l=new D(this.ctx),c="year";if(t.minDate>1||t.minMonth>0){var u=l.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);s=(l.determineDaysOfYear(t.minYear)-u+1)*r,o=t.minYear+1,this.timeScaleArray.push({position:s,value:o,unit:c,year:o,month:y.monthMod(n+1)})}else 1===t.minDate&&0===t.minMonth&&this.timeScaleArray.push({position:s,value:o,unit:c,year:i,month:y.monthMod(n+1)});for(var d=o,h=s,f=0;f<a;f++)d++,h=l.determineDaysOfYear(d-1)*r+h,this.timeScaleArray.push({position:h,value:d,unit:c,year:d,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,n=e.currentMonthDate,i=e.currentMonth,r=e.currentYear,a=e.daysWidthOnXAxis,o=e.numberOfMonths,s=i,l=0,c=new D(this.ctx),u="month",d=0;if(t.minDate>1){l=(c.determineDaysOfMonths(i+1,t.minYear)-n+1)*a,s=y.monthMod(i+1);var h=r+d,f=y.monthMod(s),p=s;0===s&&(u="year",p=h,f=1,h+=d+=1),this.timeScaleArray.push({position:l,value:p,unit:u,year:h,month:f})}else this.timeScaleArray.push({position:l,value:s,unit:u,year:r,month:y.monthMod(i)});for(var m=s+1,g=l,_=0,v=1;_<o;_++,v++){0===(m=y.monthMod(m))?(u="year",d+=1):u="month";var b=this._getYear(r,m,d);g=c.determineDaysOfMonths(m,b)*a+g;var w=0===m?b:m;this.timeScaleArray.push({position:g,value:w,unit:u,year:b,month:0===m?1:m}),m++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,n=e.currentMonth,i=e.currentYear,r=e.hoursWidthOnXAxis,a=e.numberOfDays,o=new D(this.ctx),s="day",l=t.minDate+1,c=l,u=function(e,t,n){return e>o.determineDaysOfMonths(t+1,n)?(c=1,s="month",h=t+=1,t):t},d=(24-t.minHour)*r,h=l,f=u(c,n,i);0===t.minHour&&1===t.minDate?(d=0,h=y.monthMod(t.minMonth),s="month",c=t.minDate):1!==t.minDate&&0===t.minHour&&0===t.minMinute&&(d=0,l=t.minDate,h=l,f=u(c=l,n,i)),this.timeScaleArray.push({position:d,value:h,unit:s,year:this._getYear(i,f,0),month:y.monthMod(f),day:c});for(var p=d,m=0;m<a;m++){s="day",f=u(c+=1,f,this._getYear(i,f,0));var g=this._getYear(i,f,0);p=24*r+p;var _=1===c?y.monthMod(f):c;this.timeScaleArray.push({position:p,value:_,unit:s,year:g,month:y.monthMod(f),day:_})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,n=e.currentDate,i=e.currentMonth,r=e.currentYear,a=e.minutesWidthOnXAxis,o=e.numberOfHours,s=new D(this.ctx),l="hour",c=function(e,t){return e>s.determineDaysOfMonths(t+1,r)&&(m=1,t+=1),{month:t,date:m}},u=function(e,t){return e>s.determineDaysOfMonths(t+1,r)?t+=1:t},d=60-(t.minMinute+t.minSecond/60),h=d*a,f=t.minHour+1,p=f;60===d&&(h=0,p=(f=t.minHour)+1);var m=n;p>=24&&(p=0,m+=1,l="day");var g=c(m,i).month;g=u(m,g),this.timeScaleArray.push({position:h,value:f,unit:l,day:m,hour:p,year:r,month:y.monthMod(g)}),p++;for(var _=h,v=0;v<o;v++){l="hour",p>=24&&(p=0,l="day",g=c(m+=1,g).month,g=u(m,g));var b=this._getYear(r,g,0);_=60*a+_;var w=0===p?m:p;this.timeScaleArray.push({position:_,value:w,unit:l,hour:p,day:m,year:b,month:y.monthMod(g)}),p++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,i=e.currentMinute,r=e.currentHour,a=e.currentDate,o=e.currentMonth,s=e.currentYear,l=e.minutesWidthOnXAxis,c=e.secondsWidthOnXAxis,u=e.numberOfMinutes,d=i+1,h=a,f=o,p=s,m=r,g=(60-n-t/1e3)*c,_=0;_<u;_++)d>=60&&(d=0,24===(m+=1)&&(m=0)),this.timeScaleArray.push({position:g,value:d,unit:"minute",hour:m,minute:d,day:h,year:this._getYear(p,f,0),month:y.monthMod(f)}),g+=l,d++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,i=e.currentMinute,r=e.currentHour,a=e.currentDate,o=e.currentMonth,s=e.currentYear,l=e.secondsWidthOnXAxis,c=e.numberOfSeconds,u=n+1,d=i,h=a,f=o,p=s,m=r,g=(1e3-t)/1e3*l,_=0;_<c;_++)u>=60&&(u=0,++d>=60&&(d=0,24==++m&&(m=0))),this.timeScaleArray.push({position:g,value:u,unit:"second",hour:m,minute:d,second:u,day:h,year:this._getYear(p,f,0),month:y.monthMod(f)}),g+=l,u++}},{key:"createRawDateString",value:function(e,t){var n=e.year;return 0===e.month&&(e.month=1),n+="-"+("0"+e.month.toString()).slice(-2),"day"===e.unit?n+="day"===e.unit?"-"+("0"+t).slice(-2):"-01":n+="-"+("0"+(e.day?e.day:"1")).slice(-2),"hour"===e.unit?n+="hour"===e.unit?"T"+("0"+t).slice(-2):"T00":n+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),"minute"===e.unit?n+=":"+("0"+t).slice(-2):n+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),"second"===e.unit?n+=":"+("0"+t).slice(-2):n+=":00",this.utc&&(n+=".000Z"),n}},{key:"formatDates",value:function(e){var t=this,n=this.w;return e.map((function(e){var i=e.value.toString(),r=new D(t.ctx),a=t.createRawDateString(e,i),o=r.getDate(r.parseDate(a));if(t.utc||(o=r.getDate(r.parseDateWithTimezone(a))),void 0===n.config.xaxis.labels.format){var s="dd MMM",l=n.config.xaxis.labels.datetimeFormatter;"year"===e.unit&&(s=l.year),"month"===e.unit&&(s=l.month),"day"===e.unit&&(s=l.day),"hour"===e.unit&&(s=l.hour),"minute"===e.unit&&(s=l.minute),"second"===e.unit&&(s=l.second),i=r.formatDate(o,s)}else i=r.formatDate(o,n.config.xaxis.labels.format);return{dateString:a,position:e.position,value:i,unit:e.unit,year:e.year,month:e.month}}))}},{key:"removeOverlappingTS",value:function(e){var t,n=this,i=new x(this.ctx),r=!1;e.length>0&&e[0].value&&e.every((function(t){return t.value.length===e[0].value.length}))&&(r=!0,t=i.getTextRects(e[0].value).width);var a=0,o=e.map((function(o,s){if(s>0&&n.w.config.xaxis.labels.hideOverlappingLabels){var l=r?t:i.getTextRects(e[a].value).width,c=e[a].position;return o.position>c+l+10?(a=s,o):null}return o}));return o.filter((function(e){return null!==e}))}},{key:"_getYear",value:function(e,t,n){return e+Math.floor(t/12)+n}}]),e}(),qe=function(){function e(t,n){s(this,e),this.ctx=n,this.w=n.w,this.el=t}return c(e,[{key:"setupElements",value:function(){var e=this.w.globals,t=this.w.config,n=t.chart.type;e.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(n)>-1,e.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(n)>-1,e.isBarHorizontal=("bar"===t.chart.type||"rangeBar"===t.chart.type||"boxPlot"===t.chart.type)&&t.plotOptions.bar.horizontal,e.chartClass=".apexcharts"+e.chartID,e.dom.baseEl=this.el,e.dom.elWrap=document.createElement("div"),x.setAttrs(e.dom.elWrap,{id:e.chartClass.substring(1),class:"apexcharts-canvas "+e.chartClass.substring(1)}),this.el.appendChild(e.dom.elWrap),e.dom.Paper=new window.SVG.Doc(e.dom.elWrap),e.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(t.chart.offsetX,", ").concat(t.chart.offsetY,")")}),e.dom.Paper.node.style.background="dark"!==t.theme.mode||t.chart.background?t.chart.background:"rgba(0, 0, 0, 0.8)",this.setSVGDimensions(),e.dom.elLegendForeign=document.createElementNS(e.SVGNS,"foreignObject"),x.setAttrs(e.dom.elLegendForeign,{x:0,y:0,width:e.svgWidth,height:e.svgHeight}),e.dom.elLegendWrap=document.createElement("div"),e.dom.elLegendWrap.classList.add("apexcharts-legend"),e.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),e.dom.elLegendForeign.appendChild(e.dom.elLegendWrap),e.dom.Paper.node.appendChild(e.dom.elLegendForeign),e.dom.elGraphical=e.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),e.dom.elDefs=e.dom.Paper.defs(),e.dom.Paper.add(e.dom.elGraphical),e.dom.elGraphical.add(e.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var n=this.w,i=n.config,r=n.globals,a={series:[],i:[]},o={series:[],i:[]},s={series:[],i:[]},l={series:[],i:[]},c={series:[],i:[]},u={series:[],i:[]},d={series:[],i:[]},h={series:[],i:[]},f={series:[],seriesRangeEnd:[],i:[]};r.series.map((function(t,p){var m=0;void 0!==e[p].type?("column"===e[p].type||"bar"===e[p].type?(r.series.length>1&&i.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),c.series.push(t),c.i.push(p),m++,n.globals.columnSeries=c.series):"area"===e[p].type?(o.series.push(t),o.i.push(p),m++):"line"===e[p].type?(a.series.push(t),a.i.push(p),m++):"scatter"===e[p].type?(s.series.push(t),s.i.push(p)):"bubble"===e[p].type?(l.series.push(t),l.i.push(p),m++):"candlestick"===e[p].type?(u.series.push(t),u.i.push(p),m++):"boxPlot"===e[p].type?(d.series.push(t),d.i.push(p),m++):"rangeBar"===e[p].type?(h.series.push(t),h.i.push(p),m++):"rangeArea"===e[p].type?(f.series.push(r.seriesRangeStart[p]),f.seriesRangeEnd.push(r.seriesRangeEnd[p]),f.i.push(p),m++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"),m>1&&(r.comboCharts=!0)):(a.series.push(t),a.i.push(p))}));var p=new Fe(this.ctx,t),m=new Se(this.ctx,t);this.ctx.pie=new Ee(this.ctx);var g=new De(this.ctx);this.ctx.rangeBar=new Oe(this.ctx,t);var _=new Ce(this.ctx),v=[];if(r.comboCharts){if(o.series.length>0&&v.push(p.draw(o.series,"area",o.i)),c.series.length>0)if(n.config.chart.stacked){var y=new Ae(this.ctx,t);v.push(y.draw(c.series,c.i))}else this.ctx.bar=new ke(this.ctx,t),v.push(this.ctx.bar.draw(c.series,c.i));if(f.series.length>0&&v.push(p.draw(f.series,"rangeArea",f.i,f.seriesRangeEnd)),a.series.length>0&&v.push(p.draw(a.series,"line",a.i)),u.series.length>0&&v.push(m.draw(u.series,"candlestick",u.i)),d.series.length>0&&v.push(m.draw(d.series,"boxPlot",d.i)),h.series.length>0&&v.push(this.ctx.rangeBar.draw(h.series,h.i)),s.series.length>0){var b=new Fe(this.ctx,t,!0);v.push(b.draw(s.series,"scatter",s.i))}if(l.series.length>0){var w=new Fe(this.ctx,t,!0);v.push(w.draw(l.series,"bubble",l.i))}}else switch(i.chart.type){case"line":v=p.draw(r.series,"line");break;case"area":v=p.draw(r.series,"area");break;case"bar":i.chart.stacked?v=new Ae(this.ctx,t).draw(r.series):(this.ctx.bar=new ke(this.ctx,t),v=this.ctx.bar.draw(r.series));break;case"candlestick":v=new Se(this.ctx,t).draw(r.series,"candlestick");break;case"boxPlot":v=new Se(this.ctx,t).draw(r.series,i.chart.type);break;case"rangeBar":v=this.ctx.rangeBar.draw(r.series);break;case"rangeArea":v=p.draw(r.seriesRangeStart,"rangeArea",void 0,r.seriesRangeEnd);break;case"heatmap":v=new Te(this.ctx,t).draw(r.series);break;case"treemap":v=new He(this.ctx,t).draw(r.series);break;case"pie":case"donut":case"polarArea":v=this.ctx.pie.draw(r.series);break;case"radialBar":v=g.draw(r.series);break;case"radar":v=_.draw(r.series);break;default:v=p.draw(r.series)}return v}},{key:"setSVGDimensions",value:function(){var e=this.w.globals,t=this.w.config;e.svgWidth=t.chart.width,e.svgHeight=t.chart.height;var n=y.getDimensions(this.el),i=t.chart.width.toString().split(/[0-9]+/g).pop();"%"===i?y.isNumber(n[0])&&(0===n[0].width&&(n=y.getDimensions(this.el.parentNode)),e.svgWidth=n[0]*parseInt(t.chart.width,10)/100):"px"!==i&&""!==i||(e.svgWidth=parseInt(t.chart.width,10));var r=t.chart.height.toString().split(/[0-9]+/g).pop();if("auto"!==e.svgHeight&&""!==e.svgHeight)if("%"===r){var a=y.getDimensions(this.el.parentNode);e.svgHeight=a[1]*parseInt(t.chart.height,10)/100}else e.svgHeight=parseInt(t.chart.height,10);else e.axisCharts?e.svgHeight=e.svgWidth/1.61:e.svgHeight=e.svgWidth/1.2;if(e.svgWidth<0&&(e.svgWidth=0),e.svgHeight<0&&(e.svgHeight=0),x.setAttrs(e.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),"%"!==r){var o=t.chart.sparkline.enabled?0:e.axisCharts?t.chart.parentHeightOffset:0;e.dom.Paper.node.parentNode.parentNode.style.minHeight=e.svgHeight+o+"px"}e.dom.elWrap.style.width=e.svgWidth+"px",e.dom.elWrap.style.height=e.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,n={transform:"translate("+e.translateX+", "+t+")"};x.setAttrs(e.dom.elGraphical.node,n)}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=0,i=e.config.chart.sparkline.enabled?1:15;i+=e.config.grid.padding.bottom,"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||!e.config.legend.show||e.config.legend.floating||(n=new de(this.ctx).legendHelpers.getLegendBBox().clwh+10);var r=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),a=2.05*e.globals.radialSize;if(r&&!e.config.chart.sparkline.enabled&&0!==e.config.plotOptions.radialBar.startAngle){var o=y.getBoundingClientRect(r);a=o.bottom;var s=o.bottom-o.top;a=Math.max(2.05*e.globals.radialSize,s)}var l=a+t.translateY+n+i;t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",l),e.config.chart.height&&String(e.config.chart.height).indexOf("%")>0||(t.dom.elWrap.style.height=l+"px",x.setAttrs(t.dom.Paper.node,{height:l}),t.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px")}},{key:"coreCalculations",value:function(){new J(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map((function(e){return[]}))},n=new F,i=this.w.globals;n.initGlobalVars(i),i.seriesXvalues=t(),i.seriesYvalues=t()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var e=null,t=this.w;if(t.globals.axisCharts){if("back"===t.config.xaxis.crosshairs.position&&new te(this.ctx).drawXCrosshairs(),"back"===t.config.yaxis[0].crosshairs.position&&new te(this.ctx).drawYCrosshairs(),"datetime"===t.config.xaxis.type&&void 0===t.config.xaxis.labels.formatter){this.ctx.timeScale=new ze(this.ctx);var n=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?n=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(n=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(n)}e=new k(this.ctx).getCalculatedRatios()}return e}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.w;if(t.config.chart.brush.enabled&&"function"!=typeof t.config.chart.events.selection){var n=Array.isArray(t.config.chart.brush.targets)||[t.config.chart.brush.target];n.forEach((function(t){var n=ApexCharts.getChartByID(t);n.w.globals.brushSource=e.ctx,"function"!=typeof n.w.config.chart.events.zoomed&&(n.w.config.chart.events.zoomed=function(){e.updateSourceChart(n)}),"function"!=typeof n.w.config.chart.events.scrolled&&(n.w.config.chart.events.scrolled=function(){e.updateSourceChart(n)})})),t.config.chart.events.selection=function(e,i){n.forEach((function(e){var n=ApexCharts.getChartByID(e),r=y.clone(t.config.yaxis);if(t.config.chart.brush.autoScaleYaxis&&1===n.w.globals.series.length){var o=new G(n);r=o.autoScaleY(n,r,i)}var s=n.w.config.yaxis.reduce((function(e,t,i){return[].concat(g(e),[a(a({},n.w.config.yaxis[i]),{},{min:r[0].min,max:r[0].max})])}),[]);n.ctx.updateHelpers._updateOptions({xaxis:{min:i.xaxis.min,max:i.xaxis.max},yaxis:s},!1,!1,!1,!1)}))}}}}]),e}(),Be=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"_updateOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise((function(s){var l=[t.ctx];r&&(l=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(l=[t.ctx],t.ctx.w.globals.isExecCalled=!1),l.forEach((function(r,c){var u=r.w;if(u.globals.shouldAnimate=i,n||(u.globals.resized=!0,u.globals.dataChanged=!0,i&&r.series.getPreviousPaths()),e&&"object"===o(e)&&(r.config=new I(e),e=k.extendArrayProps(r.config,e,u),r.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,u.config=y.extend(u.config,e),a&&(u.globals.lastXAxis=e.xaxis?y.clone(e.xaxis):[],u.globals.lastYAxis=e.yaxis?y.clone(e.yaxis):[],u.globals.initialConfig=y.extend({},u.config),u.globals.initialSeries=y.clone(u.config.series),e.series))){for(var d=0;d<u.globals.collapsedSeriesIndices.length;d++){var h=u.config.series[u.globals.collapsedSeriesIndices[d]];u.globals.collapsedSeries[d].data=u.globals.axisCharts?h.data.slice():h}for(var f=0;f<u.globals.ancillaryCollapsedSeriesIndices.length;f++){var p=u.config.series[u.globals.ancillaryCollapsedSeriesIndices[f]];u.globals.ancillaryCollapsedSeries[f].data=u.globals.axisCharts?p.data.slice():p}r.series.emptyCollapsedSeries(u.config.series)}return r.update(e).then((function(){c===l.length-1&&s(r)}))}))}))}},{key:"_updateSeries",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(r){var a,o=n.w;return o.globals.shouldAnimate=t,o.globals.dataChanged=!0,t&&n.ctx.series.getPreviousPaths(),o.globals.axisCharts?(0===(a=e.map((function(e,t){return n._extendSeries(e,t)}))).length&&(a=[{data:[]}]),o.config.series=a):o.config.series=e.slice(),i&&(o.globals.initialConfig.series=y.clone(o.config.series),o.globals.initialSeries=y.clone(o.config.series)),n.ctx.update().then((function(){r(n.ctx)}))}))}},{key:"_extendSeries",value:function(e,t){var n=this.w,i=n.config.series[t];return a(a({},n.config.series[t]),{},{name:e.name?e.name:null==i?void 0:i.name,color:e.color?e.color:null==i?void 0:i.color,type:e.type?e.type:null==i?void 0:i.type,group:e.group?e.group:null==i?void 0:i.group,data:e.data?e.data:null==i?void 0:i.data,zIndex:void 0!==e.zIndex?e.zIndex:t})}},{key:"toggleDataPointSelection",value:function(e,t){var n=this.w,i=null,r=".apexcharts-series[data\\:realIndex='".concat(e,"']");return n.globals.axisCharts?i=n.globals.dom.Paper.select("".concat(r," path[j='").concat(t,"'], ").concat(r," circle[j='").concat(t,"'], ").concat(r," rect[j='").concat(t,"']")).members[0]:void 0===t&&(i=n.globals.dom.Paper.select("".concat(r," path[j='").concat(e,"']")).members[0],"pie"!==n.config.chart.type&&"polarArea"!==n.config.chart.type&&"donut"!==n.config.chart.type||this.ctx.pie.pieClicked(e)),i?(new x(this.ctx).pathMouseDown(i,null),i.node?i.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach((function(n){void 0!==e.xaxis[n]&&(t.config.xaxis[n]=e.xaxis[n],t.globals.lastXAxis[n]=e.xaxis[n])})),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var n=new j(e);e=n.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&"100%"===e.chart.stackType&&(Array.isArray(e.yaxis)?e.yaxis.forEach((function(t,n){e.yaxis[n].min=0,e.yaxis[n].max=100})):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,n=this.w,i=n.globals.lastXAxis,r=n.globals.lastYAxis;e&&e.xaxis&&(i=e.xaxis),e&&e.yaxis&&(r=e.yaxis),n.config.xaxis.min=i.min,n.config.xaxis.max=i.max;n.config.yaxis.map((function(e,i){n.globals.zoomed||void 0!==r[i]?function(e){void 0!==r[e]&&(n.config.yaxis[e].min=r[e].min,n.config.yaxis[e].max=r[e].max)}(i):void 0!==t.ctx.opts.yaxis[i]&&(e.min=t.ctx.opts.yaxis[i].min,e.max=t.ctx.opts.yaxis[i].max)}))}}]),e}();Ne="undefined"!=typeof window?window:void 0,Re=function(e,t){var n=(void 0!==this?this:e).SVG=function(e){if(n.supported)return e=new n.Doc(e),n.parser.draw||n.prepare(),e};if(n.ns="http://www.w3.org/2000/svg",n.xmlns="http://www.w3.org/2000/xmlns/",n.xlink="http://www.w3.org/1999/xlink",n.svgjs="http://svgjs.dev",n.supported=!0,!n.supported)return!1;n.did=1e3,n.eid=function(e){return"Svgjs"+d(e)+n.did++},n.create=function(e){var n=t.createElementNS(this.ns,e);return n.setAttribute("id",this.eid(e)),n},n.extend=function(){var e,t;t=(e=[].slice.call(arguments)).pop();for(var i=e.length-1;i>=0;i--)if(e[i])for(var r in t)e[i].prototype[r]=t[r];n.Set&&n.Set.inherit&&n.Set.inherit()},n.invent=function(e){var t="function"==typeof e.create?e.create:function(){this.constructor.call(this,n.create(e.create))};return e.inherit&&(t.prototype=new e.inherit),e.extend&&n.extend(t,e.extend),e.construct&&n.extend(e.parent||n.Container,e.construct),t},n.adopt=function(t){return t?t.instance?t.instance:((i="svg"==t.nodeName?t.parentNode instanceof e.SVGElement?new n.Nested:new n.Doc:"linearGradient"==t.nodeName?new n.Gradient("linear"):"radialGradient"==t.nodeName?new n.Gradient("radial"):n[d(t.nodeName)]?new(n[d(t.nodeName)]):new n.Element(t)).type=t.nodeName,i.node=t,t.instance=i,i instanceof n.Doc&&i.namespace().defs(),i.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),i):null;var i},n.prepare=function(){var e=t.getElementsByTagName("body")[0],i=(e?new n.Doc(e):n.adopt(t.documentElement).nested()).size(2,0);n.parser={body:e||t.documentElement,draw:i.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:i.polyline().node,path:i.path().node,native:n.create("svg")}},n.parser={native:n.create("svg")},t.addEventListener("DOMContentLoaded",(function(){n.parser.draw||n.prepare()}),!1),n.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},n.utils={map:function(e,t){for(var n=e.length,i=[],r=0;r<n;r++)i.push(t(e[r]));return i},filter:function(e,t){for(var n=e.length,i=[],r=0;r<n;r++)t(e[r])&&i.push(e[r]);return i},filterSVGElements:function(t){return this.filter(t,(function(t){return t instanceof e.SVGElement}))}},n.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},n.Color=function(e){var t,i;this.r=0,this.g=0,this.b=0,e&&("string"==typeof e?n.regex.isRgb.test(e)?(t=n.regex.rgb.exec(e.replace(n.regex.whitespace,"")),this.r=parseInt(t[1]),this.g=parseInt(t[2]),this.b=parseInt(t[3])):n.regex.isHex.test(e)&&(t=n.regex.hex.exec(4==(i=e).length?["#",i.substring(1,2),i.substring(1,2),i.substring(2,3),i.substring(2,3),i.substring(3,4),i.substring(3,4)].join(""):i),this.r=parseInt(t[1],16),this.g=parseInt(t[2],16),this.b=parseInt(t[3],16)):"object"===o(e)&&(this.r=e.r,this.g=e.g,this.b=e.b))},n.extend(n.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+h(this.r)+h(this.g)+h(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(e){return this.destination=new n.Color(e),this},at:function(e){return this.destination?(e=e<0?0:e>1?1:e,new n.Color({r:~~(this.r+(this.destination.r-this.r)*e),g:~~(this.g+(this.destination.g-this.g)*e),b:~~(this.b+(this.destination.b-this.b)*e)})):this}}),n.Color.test=function(e){return e+="",n.regex.isHex.test(e)||n.regex.isRgb.test(e)},n.Color.isRgb=function(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b},n.Color.isColor=function(e){return n.Color.isRgb(e)||n.Color.test(e)},n.Array=function(e,t){0==(e=(e||[]).valueOf()).length&&t&&(e=t.valueOf()),this.value=this.parse(e)},n.extend(n.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(e){return e=e.valueOf(),Array.isArray(e)?e:this.split(e)}}),n.PointArray=function(e,t){n.Array.call(this,e,t||[[0,0]])},n.PointArray.prototype=new n.Array,n.PointArray.prototype.constructor=n.PointArray;for(var i={M:function(e,t,n){return t.x=n.x=e[0],t.y=n.y=e[1],["M",t.x,t.y]},L:function(e,t){return t.x=e[0],t.y=e[1],["L",e[0],e[1]]},H:function(e,t){return t.x=e[0],["H",e[0]]},V:function(e,t){return t.y=e[0],["V",e[0]]},C:function(e,t){return t.x=e[4],t.y=e[5],["C",e[0],e[1],e[2],e[3],e[4],e[5]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},S:function(e,t){return t.x=e[2],t.y=e[3],["S",e[0],e[1],e[2],e[3]]},Z:function(e,t,n){return t.x=n.x,t.y=n.y,["Z"]}},r="mlhvqtcsaz".split(""),a=0,s=r.length;a<s;++a)i[r[a]]=function(e){return function(t,n,r){if("H"==e)t[0]=t[0]+n.x;else if("V"==e)t[0]=t[0]+n.y;else if("A"==e)t[5]=t[5]+n.x,t[6]=t[6]+n.y;else for(var a=0,o=t.length;a<o;++a)t[a]=t[a]+(a%2?n.y:n.x);if(i&&"function"==typeof i[e])return i[e](t,n,r)}}(r[a].toUpperCase());n.PathArray=function(e,t){n.Array.call(this,e,t||[["M",0,0]])},n.PathArray.prototype=new n.Array,n.PathArray.prototype.constructor=n.PathArray,n.extend(n.PathArray,{toString:function(){return function(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t][0],null!=e[t][1]&&(i+=e[t][1],null!=e[t][2]&&(i+=" ",i+=e[t][2],null!=e[t][3]&&(i+=" ",i+=e[t][3],i+=" ",i+=e[t][4],null!=e[t][5]&&(i+=" ",i+=e[t][5],i+=" ",i+=e[t][6],null!=e[t][7]&&(i+=" ",i+=e[t][7])))));return i+" "}(this.value)},move:function(e,t){var n=this.bbox();return n.x,n.y,this},at:function(e){if(!this.destination)return this;for(var t=this.value,i=this.destination.value,r=[],a=new n.PathArray,o=0,s=t.length;o<s;o++){r[o]=[t[o][0]];for(var l=1,c=t[o].length;l<c;l++)r[o][l]=t[o][l]+(i[o][l]-t[o][l])*e;"A"===r[o][0]&&(r[o][4]=+(0!=r[o][4]),r[o][5]=+(0!=r[o][5]))}return a.value=r,a},parse:function(e){if(e instanceof n.PathArray)return e.valueOf();var t,r={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};e="string"==typeof e?e.replace(n.regex.numbersWithDots,c).replace(n.regex.pathLetters," $& ").replace(n.regex.hyphen,"$1 -").trim().split(n.regex.delimiter):e.reduce((function(e,t){return[].concat.call(e,t)}),[]);var a=[],o=new n.Point,s=new n.Point,l=0,u=e.length;do{n.regex.isPathLetter.test(e[l])?(t=e[l],++l):"M"==t?t="L":"m"==t&&(t="l"),a.push(i[t].call(null,e.slice(l,l+=r[t.toUpperCase()]).map(parseFloat),o,s))}while(u>l);return a},bbox:function(){return n.parser.draw||n.prepare(),n.parser.path.setAttribute("d",this.toString()),n.parser.path.getBBox()}}),n.Number=n.invent({create:function(e,t){this.value=0,this.unit=t||"","number"==typeof e?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:"string"==typeof e?(t=e.match(n.regex.numberAndUnit))&&(this.value=parseFloat(t[1]),"%"==t[5]?this.value/=100:"s"==t[5]&&(this.value*=1e3),this.unit=t[5]):e instanceof n.Number&&(this.value=e.valueOf(),this.unit=e.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(e){return e=new n.Number(e),new n.Number(this+e,this.unit||e.unit)},minus:function(e){return e=new n.Number(e),new n.Number(this-e,this.unit||e.unit)},times:function(e){return e=new n.Number(e),new n.Number(this*e,this.unit||e.unit)},divide:function(e){return e=new n.Number(e),new n.Number(this/e,this.unit||e.unit)},to:function(e){var t=new n.Number(this);return"string"==typeof e&&(t.unit=e),t},morph:function(e){return this.destination=new n.Number(e),e.relative&&(this.destination.value+=this.value),this},at:function(e){return this.destination?new n.Number(this.destination).minus(this).times(e).plus(this):this}}}),n.Element=n.invent({create:function(e){this._stroke=n.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=e)&&(this.type=e.nodeName,this.node.instance=this,this._stroke=e.getAttribute("stroke")||this._stroke)},extend:{x:function(e){return this.attr("x",e)},y:function(e){return this.attr("y",e)},cx:function(e){return null==e?this.x()+this.width()/2:this.x(e-this.width()/2)},cy:function(e){return null==e?this.y()+this.height()/2:this.y(e-this.height()/2)},move:function(e,t){return this.x(e).y(t)},center:function(e,t){return this.cx(e).cy(t)},width:function(e){return this.attr("width",e)},height:function(e){return this.attr("height",e)},size:function(e,t){var i=f(this,e,t);return this.width(new n.Number(i.width)).height(new n.Number(i.height))},clone:function(e){this.writeDataToDom();var t=g(this.node.cloneNode(!0));return e?e.add(t):this.after(t),t},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(e){return this.after(e).remove(),e},addTo:function(e){return e.put(this)},putIn:function(e){return e.add(this)},id:function(e){return this.attr("id",e)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var e=this.attr("class");return null==e?[]:e.trim().split(n.regex.delimiter)},hasClass:function(e){return-1!=this.classes().indexOf(e)},addClass:function(e){if(!this.hasClass(e)){var t=this.classes();t.push(e),this.attr("class",t.join(" "))}return this},removeClass:function(e){return this.hasClass(e)&&this.attr("class",this.classes().filter((function(t){return t!=e})).join(" ")),this},toggleClass:function(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e)},reference:function(e){return n.get(this.attr(e))},parent:function(t){var i=this;if(!i.node.parentNode)return null;if(i=n.adopt(i.node.parentNode),!t)return i;for(;i&&i.node instanceof e.SVGElement;){if("string"==typeof t?i.matches(t):i instanceof t)return i;if(!i.node.parentNode||"#document"==i.node.parentNode.nodeName)return null;i=n.adopt(i.node.parentNode)}},doc:function(){return this instanceof n.Doc?this:this.parent(n.Doc)},parents:function(e){var t=[],n=this;do{if(!(n=n.parent(e))||!n.node)break;t.push(n)}while(n.parent);return t},matches:function(e){return function(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}(this.node,e)},native:function(){return this.node},svg:function(e){var i=t.createElement("svg");if(!(e&&this instanceof n.Parent))return i.appendChild(e=t.createElement("svg")),this.writeDataToDom(),e.appendChild(this.node.cloneNode(!0)),i.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");i.innerHTML="<svg>"+e.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var r=0,a=i.firstChild.childNodes.length;r<a;r++)this.node.appendChild(i.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each((function(){this.writeDataToDom()})),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(e){return this.dom=e,this},is:function(e){return function(e,t){return e instanceof t}(this,e)}}}),n.easing={"-":function(e){return e},"<>":function(e){return-Math.cos(e*Math.PI)/2+.5},">":function(e){return Math.sin(e*Math.PI/2)},"<":function(e){return 1-Math.cos(e*Math.PI/2)}},n.morph=function(e){return function(t,i){return new n.MorphObj(t,i).at(e)}},n.Situation=n.invent({create:function(e){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new n.Number(e.duration).valueOf(),this.delay=new n.Number(e.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=e.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),n.FX=n.invent({create:function(e){this._target=e,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(e,t,i){"object"===o(e)&&(t=e.ease,i=e.delay,e=e.duration);var r=new n.Situation({duration:e||1e3,delay:i||0,ease:n.easing[t||"-"]||t});return this.queue(r),this},target:function(e){return e&&e instanceof n.Element?(this._target=e,this):this._target},timeToAbsPos:function(e){return(e-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(e){return this.situation.duration/this._speed*e+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=e.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){e.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(e){return("function"==typeof e||e instanceof n.Situation)&&this.situations.push(e),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof n.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var e,t=this.situation;if(t.init)return this;for(var i in t.animations){e=this.target()[i](),Array.isArray(e)||(e=[e]),Array.isArray(t.animations[i])||(t.animations[i]=[t.animations[i]]);for(var r=e.length;r--;)t.animations[i][r]instanceof n.Number&&(e[r]=new n.Number(e[r])),t.animations[i][r]=e[r].morph(t.animations[i][r])}for(var i in t.attrs)t.attrs[i]=new n.MorphObj(this.target().attr(i),t.attrs[i]);for(var i in t.styles)t.styles[i]=new n.MorphObj(this.target().style(i),t.styles[i]);return t.initialTransformation=this.target().matrixify(),t.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(e,t){var n=this.active;return this.active=!1,t&&this.clearQueue(),e&&this.situation&&(!n&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(e){var t=this.last();return this.target().on("finished.fx",(function n(i){i.detail.situation==t&&(e.call(this,t),this.off("finished.fx",n))})),this._callStart()},during:function(e){var t=this.last(),i=function(i){i.detail.situation==t&&e.call(this,i.detail.pos,n.morph(i.detail.pos),i.detail.eased,t)};return this.target().off("during.fx",i).on("during.fx",i),this.after((function(){this.off("during.fx",i)})),this._callStart()},afterAll:function(e){var t=function t(n){e.call(this),this.off("allfinished.fx",t)};return this.target().off("allfinished.fx",t).on("allfinished.fx",t),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(e,t,n){return this.last()[n||"animations"][e]=t,this._callStart()},step:function(e){var t,n,i;e||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(t=Math.max(this.absPos,0),n=Math.floor(t),!0===this.situation.loops||n<this.situation.loops?(this.pos=t-n,i=this.situation.loop,this.situation.loop=n):(this.absPos=this.situation.loops,this.pos=1,i=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-i)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var r=this.situation.ease(this.pos);for(var a in this.situation.once)a>this.lastPos&&a<=r&&(this.situation.once[a].call(this.target(),this.pos,r),delete this.situation.once[a]);return this.active&&this.target().fire("during",{pos:this.pos,eased:r,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=r,this):this},eachAt:function(){var e,t=this,i=this.target(),r=this.situation;for(var a in r.animations)e=[].concat(r.animations[a]).map((function(e){return"string"!=typeof e&&e.at?e.at(r.ease(t.pos),t.pos):e})),i[a].apply(i,e);for(var a in r.attrs)e=[a].concat(r.attrs[a]).map((function(e){return"string"!=typeof e&&e.at?e.at(r.ease(t.pos),t.pos):e})),i.attr.apply(i,e);for(var a in r.styles)e=[a].concat(r.styles[a]).map((function(e){return"string"!=typeof e&&e.at?e.at(r.ease(t.pos),t.pos):e})),i.style.apply(i,e);if(r.transforms.length){e=r.initialTransformation,a=0;for(var o=r.transforms.length;a<o;a++){var s=r.transforms[a];s instanceof n.Matrix?e=s.relative?e.multiply((new n.Matrix).morph(s).at(r.ease(this.pos))):e.morph(s).at(r.ease(this.pos)):(s.relative||s.undo(e.extract()),e=e.multiply(s.at(r.ease(this.pos))))}i.matrix(e)}return this},once:function(e,t,n){var i=this.last();return n||(e=i.ease(e)),i.once[e]=t,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:n.Element,construct:{animate:function(e,t,i){return(this.fx||(this.fx=new n.FX(this))).animate(e,t,i)},delay:function(e){return(this.fx||(this.fx=new n.FX(this))).delay(e)},stop:function(e,t){return this.fx&&this.fx.stop(e,t),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),n.MorphObj=n.invent({create:function(e,t){return n.Color.isColor(t)?new n.Color(e).morph(t):n.regex.delimiter.test(e)?n.regex.pathLetters.test(e)?new n.PathArray(e).morph(t):new n.Array(e).morph(t):n.regex.numberAndUnit.test(t)?new n.Number(e).morph(t):(this.value=e,void(this.destination=t))},extend:{at:function(e,t){return t<1?this.value:this.destination},valueOf:function(){return this.value}}}),n.extend(n.FX,{attr:function(e,t,n){if("object"===o(e))for(var i in e)this.attr(i,e[i]);else this.add(e,t,"attrs");return this},plot:function(e,t,n,i){return 4==arguments.length?this.plot([e,t,n,i]):this.add("plot",new(this.target().morphArray)(e))}}),n.Box=n.invent({create:function(e,t,i,r){if(!("object"!==o(e)||e instanceof n.Element))return n.Box.call(this,null!=e.left?e.left:e.x,null!=e.top?e.top:e.y,e.width,e.height);var a;4==arguments.length&&(this.x=e,this.y=t,this.width=i,this.height=r),null==(a=this).x&&(a.x=0,a.y=0,a.width=0,a.height=0),a.w=a.width,a.h=a.height,a.x2=a.x+a.width,a.y2=a.y+a.height,a.cx=a.x+a.width/2,a.cy=a.y+a.height/2}}),n.BBox=n.invent({create:function(e){if(n.Box.apply(this,[].slice.call(arguments)),e instanceof n.Element){var i;try{if(!t.documentElement.contains){for(var r=e.node;r.parentNode;)r=r.parentNode;if(r!=t)throw new Error("Element not in the dom")}i=e.node.getBBox()}catch(t){if(e instanceof n.Shape){n.parser.draw||n.prepare();var a=e.clone(n.parser.draw.instance).show();a&&a.node&&"function"==typeof a.node.getBBox&&(i=a.node.getBBox()),a&&"function"==typeof a.remove&&a.remove()}else i={x:e.node.clientLeft,y:e.node.clientTop,width:e.node.clientWidth,height:e.node.clientHeight}}n.Box.call(this,i)}},inherit:n.Box,parent:n.Element,construct:{bbox:function(){return new n.BBox(this)}}}),n.BBox.prototype.constructor=n.BBox,n.Matrix=n.invent({create:function(e){var t=m([1,0,0,1,0,0]);e=null===e?t:e instanceof n.Element?e.matrixify():"string"==typeof e?m(e.split(n.regex.delimiter).map(parseFloat)):6==arguments.length?m([].slice.call(arguments)):Array.isArray(e)?m(e):e&&"object"===o(e)?e:t;for(var i=v.length-1;i>=0;--i)this[v[i]]=null!=e[v[i]]?e[v[i]]:t[v[i]]},extend:{extract:function(){var e=p(this,0,1);p(this,1,0);var t=180/Math.PI*Math.atan2(e.y,e.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(t*Math.PI/180)+this.f*Math.sin(t*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(t*Math.PI/180)+this.e*Math.sin(-t*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new n.Matrix(this)}},clone:function(){return new n.Matrix(this)},morph:function(e){return this.destination=new n.Matrix(e),this},multiply:function(e){return new n.Matrix(this.native().multiply(function(e){return e instanceof n.Matrix||(e=new n.Matrix(e)),e}(e).native()))},inverse:function(){return new n.Matrix(this.native().inverse())},translate:function(e,t){return new n.Matrix(this.native().translate(e||0,t||0))},native:function(){for(var e=n.parser.native.createSVGMatrix(),t=v.length-1;t>=0;t--)e[v[t]]=this[v[t]];return e},toString:function(){return"matrix("+_(this.a)+","+_(this.b)+","+_(this.c)+","+_(this.d)+","+_(this.e)+","+_(this.f)+")"}},parent:n.Element,construct:{ctm:function(){return new n.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof n.Nested){var e=this.rect(1,1),t=e.node.getScreenCTM();return e.remove(),new n.Matrix(t)}return new n.Matrix(this.node.getScreenCTM())}}}),n.Point=n.invent({create:function(e,t){var n;n=Array.isArray(e)?{x:e[0],y:e[1]}:"object"===o(e)?{x:e.x,y:e.y}:null!=e?{x:e,y:null!=t?t:e}:{x:0,y:0},this.x=n.x,this.y=n.y},extend:{clone:function(){return new n.Point(this)},morph:function(e,t){return this.destination=new n.Point(e,t),this}}}),n.extend(n.Element,{point:function(e,t){return new n.Point(e,t).transform(this.screenCTM().inverse())}}),n.extend(n.Element,{attr:function(e,t,i){if(null==e){for(e={},i=(t=this.node.attributes).length-1;i>=0;i--)e[t[i].nodeName]=n.regex.isNumber.test(t[i].nodeValue)?parseFloat(t[i].nodeValue):t[i].nodeValue;return e}if("object"===o(e))for(var r in e)this.attr(r,e[r]);else if(null===t)this.node.removeAttribute(e);else{if(null==t)return null==(t=this.node.getAttribute(e))?n.defaults.attrs[e]:n.regex.isNumber.test(t)?parseFloat(t):t;"stroke-width"==e?this.attr("stroke",parseFloat(t)>0?this._stroke:null):"stroke"==e&&(this._stroke=t),"fill"!=e&&"stroke"!=e||(n.regex.isImage.test(t)&&(t=this.doc().defs().image(t,0,0)),t instanceof n.Image&&(t=this.doc().defs().pattern(0,0,(function(){this.add(t)})))),"number"==typeof t?t=new n.Number(t):n.Color.isColor(t)?t=new n.Color(t):Array.isArray(t)&&(t=new n.Array(t)),"leading"==e?this.leading&&this.leading(t):"string"==typeof i?this.node.setAttributeNS(i,e,t.toString()):this.node.setAttribute(e,t.toString()),!this.rebuild||"font-size"!=e&&"x"!=e||this.rebuild(e,t)}return this}}),n.extend(n.Element,{transform:function(e,t){var i;return"object"!==o(e)?(i=new n.Matrix(this).extract(),"string"==typeof e?i[e]:i):(i=new n.Matrix(this),t=!!t||!!e.relative,null!=e.a&&(i=t?i.multiply(new n.Matrix(e)):new n.Matrix(e)),this.attr("transform",i))}}),n.extend(n.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(n.regex.transforms).slice(0,-1).map((function(e){var t=e.trim().split("(");return[t[0],t[1].split(n.regex.delimiter).map((function(e){return parseFloat(e)}))]})).reduce((function(e,t){return"matrix"==t[0]?e.multiply(m(t[1])):e[t[0]].apply(e,t[1])}),new n.Matrix)},toParent:function(e){if(this==e)return this;var t=this.screenCTM(),n=e.screenCTM().inverse();return this.addTo(e).untransform().transform(n.multiply(t)),this},toDoc:function(){return this.toParent(this.doc())}}),n.Transformation=n.invent({create:function(e,t){if(arguments.length>1&&"boolean"!=typeof t)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(e))for(var n=0,i=this.arguments.length;n<i;++n)this[this.arguments[n]]=e[n];else if(e&&"object"===o(e))for(n=0,i=this.arguments.length;n<i;++n)this[this.arguments[n]]=e[this.arguments[n]];this.inversed=!1,!0===t&&(this.inversed=!0)}}),n.Translate=n.invent({parent:n.Matrix,inherit:n.Transformation,create:function(e,t){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),n.extend(n.Element,{style:function(e,t){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===o(e))for(var i in e)this.style(i,e[i]);else{if(!n.regex.isCss.test(e))return this.node.style[u(e)];for(e=e.split(/\s*;\s*/).filter((function(e){return!!e})).map((function(e){return e.split(/\s*:\s*/)}));t=e.pop();)this.style(t[0],t[1])}else this.node.style[u(e)]=null===t||n.regex.isBlank.test(t)?"":t;return this}}),n.Parent=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Element,extend:{children:function(){return n.utils.map(n.utils.filterSVGElements(this.node.childNodes),(function(e){return n.adopt(e)}))},add:function(e,t){return null==t?this.node.appendChild(e.node):e.node!=this.node.childNodes[t]&&this.node.insertBefore(e.node,this.node.childNodes[t]),this},put:function(e,t){return this.add(e,t),e},has:function(e){return this.index(e)>=0},index:function(e){return[].slice.call(this.node.childNodes).indexOf(e.node)},get:function(e){return n.adopt(this.node.childNodes[e])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(e,t){for(var i=this.children(),r=0,a=i.length;r<a;r++)i[r]instanceof n.Element&&e.apply(i[r],[r,i]),t&&i[r]instanceof n.Container&&i[r].each(e,t);return this},removeElement:function(e){return this.node.removeChild(e.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),n.extend(n.Parent,{ungroup:function(e,t){return 0===t||this instanceof n.Defs||this.node==n.parser.draw||(e=e||(this instanceof n.Doc?this:this.parent(n.Parent)),t=t||1/0,this.each((function(){return this instanceof n.Defs?this:this instanceof n.Parent?this.ungroup(e,t-1):this.toParent(e)})),this.node.firstChild||this.remove()),this},flatten:function(e,t){return this.ungroup(e,t)}}),n.Container=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Parent}),n.ViewBox=n.invent({parent:n.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach((function(e){n.Element.prototype[e]=function(t){return n.on(this.node,e,t),this}})),n.listeners=[],n.handlerMap=[],n.listenerId=0,n.on=function(e,t,i,r,a){var o=i.bind(r||e.instance||e),s=(n.handlerMap.indexOf(e)+1||n.handlerMap.push(e))-1,l=t.split(".")[0],c=t.split(".")[1]||"*";n.listeners[s]=n.listeners[s]||{},n.listeners[s][l]=n.listeners[s][l]||{},n.listeners[s][l][c]=n.listeners[s][l][c]||{},i._svgjsListenerId||(i._svgjsListenerId=++n.listenerId),n.listeners[s][l][c][i._svgjsListenerId]=o,e.addEventListener(l,o,a||{passive:!0})},n.off=function(e,t,i){var r=n.handlerMap.indexOf(e),a=t&&t.split(".")[0],o=t&&t.split(".")[1],s="";if(-1!=r)if(i){if("function"==typeof i&&(i=i._svgjsListenerId),!i)return;n.listeners[r][a]&&n.listeners[r][a][o||"*"]&&(e.removeEventListener(a,n.listeners[r][a][o||"*"][i],!1),delete n.listeners[r][a][o||"*"][i])}else if(o&&a){if(n.listeners[r][a]&&n.listeners[r][a][o]){for(var l in n.listeners[r][a][o])n.off(e,[a,o].join("."),l);delete n.listeners[r][a][o]}}else if(o)for(var c in n.listeners[r])for(var s in n.listeners[r][c])o===s&&n.off(e,[c,o].join("."));else if(a){if(n.listeners[r][a]){for(var s in n.listeners[r][a])n.off(e,[a,s].join("."));delete n.listeners[r][a]}}else{for(var c in n.listeners[r])n.off(e,c);delete n.listeners[r],delete n.handlerMap[r]}},n.extend(n.Element,{on:function(e,t,i,r){return n.on(this.node,e,t,i,r),this},off:function(e,t){return n.off(this.node,e,t),this},fire:function(t,i){return t instanceof e.Event?this.node.dispatchEvent(t):this.node.dispatchEvent(t=new n.CustomEvent(t,{detail:i,cancelable:!0})),this._event=t,this},event:function(){return this._event}}),n.Defs=n.invent({create:"defs",inherit:n.Container}),n.G=n.invent({create:"g",inherit:n.Container,extend:{x:function(e){return null==e?this.transform("x"):this.transform({x:e-this.x()},!0)}},construct:{group:function(){return this.put(new n.G)}}}),n.Doc=n.invent({create:function(e){e&&("svg"==(e="string"==typeof e?t.getElementById(e):e).nodeName?this.constructor.call(this,e):(this.constructor.call(this,n.create("svg")),e.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:n.Container,extend:{namespace:function(){return this.attr({xmlns:n.ns,version:"1.1"}).attr("xmlns:xlink",n.xlink,n.xmlns).attr("xmlns:svgjs",n.svgjs,n.xmlns)},defs:function(){var e;return this._defs||((e=this.node.getElementsByTagName("defs")[0])?this._defs=n.adopt(e):this._defs=new n.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,n.parser.draw&&!n.parser.draw.parentNode&&this.node.appendChild(n.parser.draw),this},clone:function(e){this.writeDataToDom();var t=this.node,n=g(t.cloneNode(!0));return e?(e.node||e).appendChild(n.node):t.parentNode.insertBefore(n.node,t.nextSibling),n}}}),n.extend(n.Element,{}),n.Gradient=n.invent({create:function(e){this.constructor.call(this,n.create(e+"Gradient")),this.type=e},inherit:n.Container,extend:{at:function(e,t,i){return this.put(new n.Stop).update(e,t,i)},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(e,t,i){return"transform"==e&&(e="gradientTransform"),n.Container.prototype.attr.call(this,e,t,i)}},construct:{gradient:function(e,t){return this.defs().gradient(e,t)}}}),n.extend(n.Gradient,n.FX,{from:function(e,t){return"radial"==(this._target||this).type?this.attr({fx:new n.Number(e),fy:new n.Number(t)}):this.attr({x1:new n.Number(e),y1:new n.Number(t)})},to:function(e,t){return"radial"==(this._target||this).type?this.attr({cx:new n.Number(e),cy:new n.Number(t)}):this.attr({x2:new n.Number(e),y2:new n.Number(t)})}}),n.extend(n.Defs,{gradient:function(e,t){return this.put(new n.Gradient(e)).update(t)}}),n.Stop=n.invent({create:"stop",inherit:n.Element,extend:{update:function(e){return("number"==typeof e||e instanceof n.Number)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",new n.Number(e.offset)),this}}}),n.Pattern=n.invent({create:"pattern",inherit:n.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},toString:function(){return this.fill()},attr:function(e,t,i){return"transform"==e&&(e="patternTransform"),n.Container.prototype.attr.call(this,e,t,i)}},construct:{pattern:function(e,t,n){return this.defs().pattern(e,t,n)}}}),n.extend(n.Defs,{pattern:function(e,t,i){return this.put(new n.Pattern).update(i).attr({x:0,y:0,width:e,height:t,patternUnits:"userSpaceOnUse"})}}),n.Shape=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Element}),n.Symbol=n.invent({create:"symbol",inherit:n.Container,construct:{symbol:function(){return this.put(new n.Symbol)}}}),n.Use=n.invent({create:"use",inherit:n.Shape,extend:{element:function(e,t){return this.attr("href",(t||"")+"#"+e,n.xlink)}},construct:{use:function(e,t){return this.put(new n.Use).element(e,t)}}}),n.Rect=n.invent({create:"rect",inherit:n.Shape,construct:{rect:function(e,t){return this.put(new n.Rect).size(e,t)}}}),n.Circle=n.invent({create:"circle",inherit:n.Shape,construct:{circle:function(e){return this.put(new n.Circle).rx(new n.Number(e).divide(2)).move(0,0)}}}),n.extend(n.Circle,n.FX,{rx:function(e){return this.attr("r",e)},ry:function(e){return this.rx(e)}}),n.Ellipse=n.invent({create:"ellipse",inherit:n.Shape,construct:{ellipse:function(e,t){return this.put(new n.Ellipse).size(e,t).move(0,0)}}}),n.extend(n.Ellipse,n.Rect,n.FX,{rx:function(e){return this.attr("rx",e)},ry:function(e){return this.attr("ry",e)}}),n.extend(n.Circle,n.Ellipse,{x:function(e){return null==e?this.cx()-this.rx():this.cx(e+this.rx())},y:function(e){return null==e?this.cy()-this.ry():this.cy(e+this.ry())},cx:function(e){return null==e?this.attr("cx"):this.attr("cx",e)},cy:function(e){return null==e?this.attr("cy"):this.attr("cy",e)},width:function(e){return null==e?2*this.rx():this.rx(new n.Number(e).divide(2))},height:function(e){return null==e?2*this.ry():this.ry(new n.Number(e).divide(2))},size:function(e,t){var i=f(this,e,t);return this.rx(new n.Number(i.width).divide(2)).ry(new n.Number(i.height).divide(2))}}),n.Line=n.invent({create:"line",inherit:n.Shape,extend:{array:function(){return new n.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(e,t,i,r){return null==e?this.array():(e=void 0!==t?{x1:e,y1:t,x2:i,y2:r}:new n.PointArray(e).toLine(),this.attr(e))},move:function(e,t){return this.attr(this.array().move(e,t).toLine())},size:function(e,t){var n=f(this,e,t);return this.attr(this.array().size(n.width,n.height).toLine())}},construct:{line:function(e,t,i,r){return n.Line.prototype.plot.apply(this.put(new n.Line),null!=e?[e,t,i,r]:[0,0,0,0])}}}),n.Polyline=n.invent({create:"polyline",inherit:n.Shape,construct:{polyline:function(e){return this.put(new n.Polyline).plot(e||new n.PointArray)}}}),n.Polygon=n.invent({create:"polygon",inherit:n.Shape,construct:{polygon:function(e){return this.put(new n.Polygon).plot(e||new n.PointArray)}}}),n.extend(n.Polyline,n.Polygon,{array:function(){return this._array||(this._array=new n.PointArray(this.attr("points")))},plot:function(e){return null==e?this.array():this.clear().attr("points","string"==typeof e?e:this._array=new n.PointArray(e))},clear:function(){return delete this._array,this},move:function(e,t){return this.attr("points",this.array().move(e,t))},size:function(e,t){var n=f(this,e,t);return this.attr("points",this.array().size(n.width,n.height))}}),n.extend(n.Line,n.Polyline,n.Polygon,{morphArray:n.PointArray,x:function(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)},y:function(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)},width:function(e){var t=this.bbox();return null==e?t.width:this.size(e,t.height)},height:function(e){var t=this.bbox();return null==e?t.height:this.size(t.width,e)}}),n.Path=n.invent({create:"path",inherit:n.Shape,extend:{morphArray:n.PathArray,array:function(){return this._array||(this._array=new n.PathArray(this.attr("d")))},plot:function(e){return null==e?this.array():this.clear().attr("d","string"==typeof e?e:this._array=new n.PathArray(e))},clear:function(){return delete this._array,this}},construct:{path:function(e){return this.put(new n.Path).plot(e||new n.PathArray)}}}),n.Image=n.invent({create:"image",inherit:n.Shape,extend:{load:function(t){if(!t)return this;var i=this,r=new e.Image;return n.on(r,"load",(function(){n.off(r);var e=i.parent(n.Pattern);null!==e&&(0==i.width()&&0==i.height()&&i.size(r.width,r.height),e&&0==e.width()&&0==e.height()&&e.size(i.width(),i.height()),"function"==typeof i._loaded&&i._loaded.call(i,{width:r.width,height:r.height,ratio:r.width/r.height,url:t}))})),n.on(r,"error",(function(e){n.off(r),"function"==typeof i._error&&i._error.call(i,e)})),this.attr("href",r.src=this.src=t,n.xlink)},loaded:function(e){return this._loaded=e,this},error:function(e){return this._error=e,this}},construct:{image:function(e,t,i){return this.put(new n.Image).load(e).size(t||0,i||t||0)}}}),n.Text=n.invent({create:function(){this.constructor.call(this,n.create("text")),this.dom.leading=new n.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",n.defaults.attrs["font-family"])},inherit:n.Shape,extend:{x:function(e){return null==e?this.attr("x"):this.attr("x",e)},text:function(e){if(void 0===e){e="";for(var t=this.node.childNodes,i=0,r=t.length;i<r;++i)0!=i&&3!=t[i].nodeType&&1==n.adopt(t[i]).dom.newLined&&(e+="\n"),e+=t[i].textContent;return e}if(this.clear().build(!0),"function"==typeof e)e.call(this,this);else{i=0;for(var a=(e=e.split("\n")).length;i<a;i++)this.tspan(e[i]).newLine()}return this.build(!1).rebuild()},size:function(e){return this.attr("font-size",e).rebuild()},leading:function(e){return null==e?this.dom.leading:(this.dom.leading=new n.Number(e),this.rebuild())},lines:function(){var e=(this.textPath&&this.textPath()||this).node,t=n.utils.map(n.utils.filterSVGElements(e.childNodes),(function(e){return n.adopt(e)}));return new n.Set(t)},rebuild:function(e){if("boolean"==typeof e&&(this._rebuild=e),this._rebuild){var t=this,i=0,r=this.dom.leading*new n.Number(this.attr("font-size"));this.lines().each((function(){this.dom.newLined&&(t.textPath()||this.attr("x",t.attr("x")),"\n"==this.text()?i+=r:(this.attr("dy",r+i),i=0))})),this.fire("rebuild")}return this},build:function(e){return this._build=!!e,this},setData:function(e){return this.dom=e,this.dom.leading=new n.Number(e.leading||1.3),this}},construct:{text:function(e){return this.put(new n.Text).text(e)},plain:function(e){return this.put(new n.Text).plain(e)}}}),n.Tspan=n.invent({create:"tspan",inherit:n.Shape,extend:{text:function(e){return null==e?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof e?e.call(this,this):this.plain(e),this)},dx:function(e){return this.attr("dx",e)},dy:function(e){return this.attr("dy",e)},newLine:function(){var e=this.parent(n.Text);return this.dom.newLined=!0,this.dy(e.dom.leading*e.attr("font-size")).attr("x",e.x())}}}),n.extend(n.Text,n.Tspan,{plain:function(e){return!1===this._build&&this.clear(),this.node.appendChild(t.createTextNode(e)),this},tspan:function(e){var t=(this.textPath&&this.textPath()||this).node,i=new n.Tspan;return!1===this._build&&this.clear(),t.appendChild(i.node),i.text(e)},clear:function(){for(var e=(this.textPath&&this.textPath()||this).node;e.hasChildNodes();)e.removeChild(e.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),n.TextPath=n.invent({create:"textPath",inherit:n.Parent,parent:n.Text,construct:{morphArray:n.PathArray,array:function(){var e=this.track();return e?e.array():null},plot:function(e){var t=this.track(),n=null;return t&&(n=t.plot(e)),null==e?n:this},track:function(){var e=this.textPath();if(e)return e.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return n.adopt(this.node.firstChild)}}}),n.Nested=n.invent({create:function(){this.constructor.call(this,n.create("svg")),this.style("overflow","visible")},inherit:n.Container,construct:{nested:function(){return this.put(new n.Nested)}}});var l={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(e,t){return"color"==t?e:e+"-"+t}};function c(e,t,i,r){return i+r.replace(n.regex.dots," .")}function u(e){return e.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function d(e){return e.charAt(0).toUpperCase()+e.slice(1)}function h(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function f(e,t,n){if(null==t||null==n){var i=e.bbox();null==t?t=i.width/i.height*n:null==n&&(n=i.height/i.width*t)}return{width:t,height:n}}function p(e,t,n){return{x:t*e.a+n*e.c+0,y:t*e.b+n*e.d+0}}function m(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}function g(t){for(var i=t.childNodes.length-1;i>=0;i--)t.childNodes[i]instanceof e.SVGElement&&g(t.childNodes[i]);return n.adopt(t).id(n.eid(t.nodeName))}function _(e){return Math.abs(e)>1e-37?e:0}["fill","stroke"].forEach((function(e){var t={};t[e]=function(t){if(void 0===t)return this;if("string"==typeof t||n.Color.isRgb(t)||t&&"function"==typeof t.fill)this.attr(e,t);else for(var i=l[e].length-1;i>=0;i--)null!=t[l[e][i]]&&this.attr(l.prefix(e,l[e][i]),t[l[e][i]]);return this},n.extend(n.Element,n.FX,t)})),n.extend(n.Element,n.FX,{translate:function(e,t){return this.transform({x:e,y:t})},matrix:function(e){return this.attr("transform",new n.Matrix(6==arguments.length?[].slice.call(arguments):e))},opacity:function(e){return this.attr("opacity",e)},dx:function(e){return this.x(new n.Number(e).plus(this instanceof n.FX?0:this.x()),!0)},dy:function(e){return this.y(new n.Number(e).plus(this instanceof n.FX?0:this.y()),!0)}}),n.extend(n.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(e){return this.node.getPointAtLength(e)}}),n.Set=n.invent({create:function(e){Array.isArray(e)?this.members=e:this.clear()},extend:{add:function(){for(var e=[].slice.call(arguments),t=0,n=e.length;t<n;t++)this.members.push(e[t]);return this},remove:function(e){var t=this.index(e);return t>-1&&this.members.splice(t,1),this},each:function(e){for(var t=0,n=this.members.length;t<n;t++)e.apply(this.members[t],[t,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(e){return this.index(e)>=0},index:function(e){return this.members.indexOf(e)},get:function(e){return this.members[e]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(e){return new n.Set(e)}}}),n.FX.Set=n.invent({create:function(e){this.set=e}}),n.Set.inherit=function(){var e=[];for(var t in n.Shape.prototype)"function"==typeof n.Shape.prototype[t]&&"function"!=typeof n.Set.prototype[t]&&e.push(t);for(var t in e.forEach((function(e){n.Set.prototype[e]=function(){for(var t=0,i=this.members.length;t<i;t++)this.members[t]&&"function"==typeof this.members[t][e]&&this.members[t][e].apply(this.members[t],arguments);return"animate"==e?this.fx||(this.fx=new n.FX.Set(this)):this}})),e=[],n.FX.prototype)"function"==typeof n.FX.prototype[t]&&"function"!=typeof n.FX.Set.prototype[t]&&e.push(t);e.forEach((function(e){n.FX.Set.prototype[e]=function(){for(var t=0,n=this.set.members.length;t<n;t++)this.set.members[t].fx[e].apply(this.set.members[t].fx,arguments);return this}}))},n.extend(n.Element,{}),n.extend(n.Element,{remember:function(e,t){if("object"===o(arguments[0]))for(var n in e)this.remember(n,e[n]);else{if(1==arguments.length)return this.memory()[e];this.memory()[e]=t}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var e=arguments.length-1;e>=0;e--)delete this.memory()[arguments[e]];return this},memory:function(){return this._memory||(this._memory={})}}),n.get=function(e){var i=t.getElementById(function(e){var t=(e||"").toString().match(n.regex.reference);if(t)return t[1]}(e)||e);return n.adopt(i)},n.select=function(e,i){return new n.Set(n.utils.map((i||t).querySelectorAll(e),(function(e){return n.adopt(e)})))},n.extend(n.Parent,{select:function(e){return n.select(e,this.node)}});var v="abcdef".split("");if("function"!=typeof e.CustomEvent){var y=function(e,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var i=t.createEvent("CustomEvent");return i.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),i};y.prototype=e.Event.prototype,n.CustomEvent=y}else n.CustomEvent=e.CustomEvent;return n},void 0!==(i=function(){return Re(Ne,Ne.document)}.call(t,n,t,e))&&(e.exports=i),function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(e,t){return this.add(e,t),!e.attr("in")&&this.autoSetIn&&e.attr("in",this.source),e.attr("result")||e.attr("result",e),e},blend:function(e,t,n){return this.put(new SVG.BlendEffect(e,t,n))},colorMatrix:function(e,t){return this.put(new SVG.ColorMatrixEffect(e,t))},convolveMatrix:function(e){return this.put(new SVG.ConvolveMatrixEffect(e))},componentTransfer:function(e){return this.put(new SVG.ComponentTransferEffect(e))},composite:function(e,t,n){return this.put(new SVG.CompositeEffect(e,t,n))},flood:function(e,t){return this.put(new SVG.FloodEffect(e,t))},offset:function(e,t){return this.put(new SVG.OffsetEffect(e,t))},image:function(e){return this.put(new SVG.ImageEffect(e))},merge:function(){var e=[void 0];for(var t in arguments)e.push(arguments[t]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,e)))},gaussianBlur:function(e,t){return this.put(new SVG.GaussianBlurEffect(e,t))},morphology:function(e,t){return this.put(new SVG.MorphologyEffect(e,t))},diffuseLighting:function(e,t,n){return this.put(new SVG.DiffuseLightingEffect(e,t,n))},displacementMap:function(e,t,n,i,r){return this.put(new SVG.DisplacementMapEffect(e,t,n,i,r))},specularLighting:function(e,t,n,i){return this.put(new SVG.SpecularLightingEffect(e,t,n,i))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(e,t,n,i,r){return this.put(new SVG.TurbulenceEffect(e,t,n,i,r))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(e){var t=this.put(new SVG.Filter);return"function"==typeof e&&e.call(t,t),t}}),SVG.extend(SVG.Container,{filter:function(e){return this.defs().filter(e)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(e){return this.filterer=e instanceof SVG.Element?e:this.doc().filter(e),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(e){return this.filterer&&!0===e&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}});var e={blend:function(e,t){return this.parent()&&this.parent().blend(this,e,t)},colorMatrix:function(e,t){return this.parent()&&this.parent().colorMatrix(e,t).in(this)},convolveMatrix:function(e){return this.parent()&&this.parent().convolveMatrix(e).in(this)},componentTransfer:function(e){return this.parent()&&this.parent().componentTransfer(e).in(this)},composite:function(e,t){return this.parent()&&this.parent().composite(this,e,t)},flood:function(e,t){return this.parent()&&this.parent().flood(e,t)},offset:function(e,t){return this.parent()&&this.parent().offset(e,t).in(this)},image:function(e){return this.parent()&&this.parent().image(e)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(e,t){return this.parent()&&this.parent().gaussianBlur(e,t).in(this)},morphology:function(e,t){return this.parent()&&this.parent().morphology(e,t).in(this)},diffuseLighting:function(e,t,n){return this.parent()&&this.parent().diffuseLighting(e,t,n).in(this)},displacementMap:function(e,t,n,i){return this.parent()&&this.parent().displacementMap(this,e,t,n,i)},specularLighting:function(e,t,n,i){return this.parent()&&this.parent().specularLighting(e,t,n,i).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(e,t,n,i,r){return this.parent()&&this.parent().turbulence(e,t,n,i,r).in(this)}};SVG.extend(SVG.Effect,e),SVG.extend(SVG.ParentEffect,e),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){this.attr("in",e)}}});var t={blend:function(e,t,n){this.attr({in:e,in2:t,mode:n||"normal"})},colorMatrix:function(e,t){"matrix"==e&&(t=r(t)),this.attr({type:e,values:void 0===t?null:t})},convolveMatrix:function(e){e=r(e),this.attr({order:Math.sqrt(e.split(" ").length),kernelMatrix:e})},composite:function(e,t,n){this.attr({in:e,in2:t,operator:n})},flood:function(e,t){this.attr("flood-color",e),null!=t&&this.attr("flood-opacity",t)},offset:function(e,t){this.attr({dx:e,dy:t})},image:function(e){this.attr("href",e,SVG.xlink)},displacementMap:function(e,t,n,i,r){this.attr({in:e,in2:t,scale:n,xChannelSelector:i,yChannelSelector:r})},gaussianBlur:function(e,t){null!=e||null!=t?this.attr("stdDeviation",function(e){if(!Array.isArray(e))return e;for(var t=0,n=e.length,i=[];t<n;t++)i.push(e[t]);return i.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(e,t){this.attr({operator:e,radius:t})},tile:function(){},turbulence:function(e,t,n,i,r){this.attr({numOctaves:t,seed:n,stitchTiles:i,baseFrequency:e,type:r})}},n={merge:function(){var e;if(arguments[0]instanceof SVG.Set){var t=this;arguments[0].each((function(e){this instanceof SVG.MergeNode?t.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&t.put(new SVG.MergeNode(this))}))}else{e=Array.isArray(arguments[0])?arguments[0]:arguments;for(var n=0;n<e.length;n++)e[n]instanceof SVG.MergeNode?this.put(e[n]):this.put(new SVG.MergeNode(e[n]))}},componentTransfer:function(e){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(e){this[e]=new(SVG["Func"+e.toUpperCase()])("identity"),this.rgb.add(this[e]),this.node.appendChild(this[e].node)}.bind(this)),e)for(var t in e.rgb&&(["r","g","b"].forEach(function(t){this[t].attr(e.rgb)}.bind(this)),delete e.rgb),e)this[t].attr(e[t])},diffuseLighting:function(e,t,n){this.attr({surfaceScale:e,diffuseConstant:t,kernelUnitLength:n})},specularLighting:function(e,t,n,i){this.attr({surfaceScale:e,diffuseConstant:t,specularExponent:n,kernelUnitLength:i})}},i={distantLight:function(e,t){this.attr({azimuth:e,elevation:t})},pointLight:function(e,t,n){this.attr({x:e,y:t,z:n})},spotLight:function(e,t,n,i,r,a){this.attr({x:e,y:t,z:n,pointsAtX:i,pointsAtY:r,pointsAtZ:a})},mergeNode:function(e){this.attr("in",e)}};function r(e){return Array.isArray(e)&&(e=new SVG.Array(e)),e.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function a(){var e=function(){};for(var t in"function"==typeof arguments[arguments.length-1]&&(e=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var n in arguments[t])e(arguments[t][n],n,arguments[t])}["r","g","b","a"].forEach((function(e){i["Func"+e.toUpperCase()]=function(e){switch(this.attr("type",e),e){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}})),a(t,(function(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);SVG[n+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+n)),e.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})})),a(n,(function(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);SVG[n+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+n)),e.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})})),a(i,(function(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);SVG[n]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+n)),e.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})})),SVG.extend(SVG.MergeEffect,{in:function(e){return e instanceof SVG.MergeNode?this.add(e,0):this.add(new SVG.MergeNode(e),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",e)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}.call(void 0),function(){function e(e,r,a,o,s,l,c){for(var u=e.slice(r,a||c),d=o.slice(s,l||c),h=0,f={pos:[0,0],start:[0,0]},p={pos:[0,0],start:[0,0]};u[h]=t.call(f,u[h]),d[h]=t.call(p,d[h]),u[h][0]!=d[h][0]||"M"==u[h][0]||"A"==u[h][0]&&(u[h][4]!=d[h][4]||u[h][5]!=d[h][5])?(Array.prototype.splice.apply(u,[h,1].concat(i.call(f,u[h]))),Array.prototype.splice.apply(d,[h,1].concat(i.call(p,d[h])))):(u[h]=n.call(f,u[h]),d[h]=n.call(p,d[h])),++h!=u.length||h!=d.length;)h==u.length&&u.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]),h==d.length&&d.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]);return{start:u,dest:d}}function t(e){switch(e[0]){case"z":case"Z":e[0]="L",e[1]=this.start[0],e[2]=this.start[1];break;case"H":e[0]="L",e[2]=this.pos[1];break;case"V":e[0]="L",e[2]=e[1],e[1]=this.pos[0];break;case"T":e[0]="Q",e[3]=e[1],e[4]=e[2],e[1]=this.reflection[1],e[2]=this.reflection[0];break;case"S":e[0]="C",e[6]=e[4],e[5]=e[3],e[4]=e[2],e[3]=e[1],e[2]=this.reflection[1],e[1]=this.reflection[0]}return e}function n(e){var t=e.length;return this.pos=[e[t-2],e[t-1]],-1!="SCQT".indexOf(e[0])&&(this.reflection=[2*this.pos[0]-e[t-4],2*this.pos[1]-e[t-3]]),e}function i(e){var t=[e];switch(e[0]){case"M":return this.pos=this.start=[e[1],e[2]],t;case"L":e[5]=e[3]=e[1],e[6]=e[4]=e[2],e[1]=this.pos[0],e[2]=this.pos[1];break;case"Q":e[6]=e[4],e[5]=e[3],e[4]=1*e[4]/3+2*e[2]/3,e[3]=1*e[3]/3+2*e[1]/3,e[2]=1*this.pos[1]/3+2*e[2]/3,e[1]=1*this.pos[0]/3+2*e[1]/3;break;case"A":t=function(e,t){var n,i,r,a,o,s,l,c,u,d,h,f,p,m,g,_,v,y,b,w,x,k,A,S,M,T,L=Math.abs(t[1]),E=Math.abs(t[2]),C=t[3]%360,D=t[4],O=t[5],Y=t[6],P=t[7],j=new SVG.Point(e),I=new SVG.Point(Y,P),F=[];if(0===L||0===E||j.x===I.x&&j.y===I.y)return[["C",j.x,j.y,I.x,I.y,I.x,I.y]];for((i=(n=new SVG.Point((j.x-I.x)/2,(j.y-I.y)/2).transform((new SVG.Matrix).rotate(C))).x*n.x/(L*L)+n.y*n.y/(E*E))>1&&(L*=i=Math.sqrt(i),E*=i),r=(new SVG.Matrix).rotate(C).scale(1/L,1/E).rotate(-C),j=j.transform(r),s=(a=[(I=I.transform(r)).x-j.x,I.y-j.y])[0]*a[0]+a[1]*a[1],o=Math.sqrt(s),a[0]/=o,a[1]/=o,l=s<4?Math.sqrt(1-s/4):0,D===O&&(l*=-1),c=new SVG.Point((I.x+j.x)/2+l*-a[1],(I.y+j.y)/2+l*a[0]),u=new SVG.Point(j.x-c.x,j.y-c.y),d=new SVG.Point(I.x-c.x,I.y-c.y),h=Math.acos(u.x/Math.sqrt(u.x*u.x+u.y*u.y)),u.y<0&&(h*=-1),f=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(f*=-1),O&&h>f&&(f+=2*Math.PI),!O&&h<f&&(f-=2*Math.PI),_=[],v=h,p=(f-h)/(m=Math.ceil(2*Math.abs(h-f)/Math.PI)),g=4*Math.tan(p/4)/3,x=0;x<=m;x++)b=Math.cos(v),y=Math.sin(v),w=new SVG.Point(c.x+b,c.y+y),_[x]=[new SVG.Point(w.x+g*y,w.y-g*b),w,new SVG.Point(w.x-g*y,w.y+g*b)],v+=p;for(_[0][0]=_[0][1].clone(),_[_.length-1][2]=_[_.length-1][1].clone(),r=(new SVG.Matrix).rotate(C).scale(L,E).rotate(-C),x=0,k=_.length;x<k;x++)_[x][0]=_[x][0].transform(r),_[x][1]=_[x][1].transform(r),_[x][2]=_[x][2].transform(r);for(x=1,k=_.length;x<k;x++)A=(w=_[x-1][2]).x,S=w.y,M=(w=_[x][0]).x,T=w.y,Y=(w=_[x][1]).x,P=w.y,F.push(["C",A,S,M,T,Y,P]);return F}(this.pos,e),e=t[0]}return e[0]="C",this.pos=[e[5],e[6]],this.reflection=[2*e[5]-e[3],2*e[6]-e[4]],t}function r(e,t){if(!1===t)return!1;for(var n=t,i=e.length;n<i;++n)if("M"==e[n][0])return n;return!1}SVG.extend(SVG.PathArray,{morph:function(t){for(var n=this.value,i=this.parse(t),a=0,o=0,s=!1,l=!1;!1!==a||!1!==o;){var c;s=r(n,!1!==a&&a+1),l=r(i,!1!==o&&o+1),!1===a&&(a=0==(c=new SVG.PathArray(u.start).bbox()).height||0==c.width?n.push(n[0])-1:n.push(["M",c.x+c.width/2,c.y+c.height/2])-1),!1===o&&(o=0==(c=new SVG.PathArray(u.dest).bbox()).height||0==c.width?i.push(i[0])-1:i.push(["M",c.x+c.width/2,c.y+c.height/2])-1);var u=e(n,a,s,i,o,l);n=n.slice(0,a).concat(u.start,!1===s?[]:n.slice(s)),i=i.slice(0,o).concat(u.dest,!1===l?[]:i.slice(l)),a=!1!==s&&a+u.start.length,o=!1!==l&&o+u.dest.length}return this.value=n,this.destination=new SVG.PathArray,this.destination.value=i,this}})}(),function(){function e(e){e.remember("_draggable",this),this.el=e}e.prototype.init=function(e,t){var n=this;this.constraint=e,this.value=t,this.el.on("mousedown.drag",(function(e){n.start(e)})),this.el.on("touchstart.drag",(function(e){n.start(e)}))},e.prototype.transformPoint=function(e,t){var n=(e=e||window.event).changedTouches&&e.changedTouches[0]||e;return this.p.x=n.clientX-(t||0),this.p.y=n.clientY,this.p.matrixTransform(this.m)},e.prototype.getBBox=function(){var e=this.el.bbox();return this.el instanceof SVG.Nested&&(e=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(e.x=this.el.x(),e.y=this.el.y()),e},e.prototype.start=function(e){if("click"!=e.type&&"mousedown"!=e.type&&"mousemove"!=e.type||1==(e.which||e.buttons)){var t=this;if(this.el.fire("beforedrag",{event:e,handler:this}),!this.el.event().defaultPrevented){e.preventDefault(),e.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var n,i=this.getBBox();if(this.el instanceof SVG.Text)switch(n=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":n/=2;break;case"start":n=0}this.startPoints={point:this.transformPoint(e,n),box:i,transform:this.el.transform()},SVG.on(window,"mousemove.drag",(function(e){t.drag(e)})),SVG.on(window,"touchmove.drag",(function(e){t.drag(e)})),SVG.on(window,"mouseup.drag",(function(e){t.end(e)})),SVG.on(window,"touchend.drag",(function(e){t.end(e)})),this.el.fire("dragstart",{event:e,p:this.startPoints.point,m:this.m,handler:this})}}},e.prototype.drag=function(e){var t=this.getBBox(),n=this.transformPoint(e),i=this.startPoints.box.x+n.x-this.startPoints.point.x,r=this.startPoints.box.y+n.y-this.startPoints.point.y,a=this.constraint,o=n.x-this.startPoints.point.x,s=n.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:e,p:n,m:this.m,handler:this}),this.el.event().defaultPrevented)return n;if("function"==typeof a){var l=a.call(this.el,i,r,this.m);"boolean"==typeof l&&(l={x:l,y:l}),!0===l.x?this.el.x(i):!1!==l.x&&this.el.x(l.x),!0===l.y?this.el.y(r):!1!==l.y&&this.el.y(l.y)}else"object"==typeof a&&(null!=a.minX&&i<a.minX?o=(i=a.minX)-this.startPoints.box.x:null!=a.maxX&&i>a.maxX-t.width&&(o=(i=a.maxX-t.width)-this.startPoints.box.x),null!=a.minY&&r<a.minY?s=(r=a.minY)-this.startPoints.box.y:null!=a.maxY&&r>a.maxY-t.height&&(s=(r=a.maxY-t.height)-this.startPoints.box.y),null!=a.snapToGrid&&(i-=i%a.snapToGrid,r-=r%a.snapToGrid,o-=o%a.snapToGrid,s-=s%a.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:o,y:s},!0):this.el.move(i,r));return n},e.prototype.end=function(e){var t=this.drag(e);this.el.fire("dragend",{event:e,p:t,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(t,n){"function"!=typeof t&&"object"!=typeof t||(n=t,t=!0);var i=this.remember("_draggable")||new e(this);return(t=void 0===t||t)?i.init(n||{},t):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function e(e){this.el=e,e.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(e,t,n){var i="string"!=typeof e?e:t[e];return n?i/2:i},this.pointCoords=function(e,t){var n=this.pointsList[e];return{x:this.pointCoord(n[0],t,"t"===e||"b"===e),y:this.pointCoord(n[1],t,"r"===e||"l"===e)}}}e.prototype.init=function(e,t){var n=this.el.bbox();this.options={};var i=this.el.selectize.defaults.points;for(var r in this.el.selectize.defaults)this.options[r]=this.el.selectize.defaults[r],void 0!==t[r]&&(this.options[r]=t[r]);var a=["points","pointsExclude"];for(var r in a){var o=this.options[a[r]];"string"==typeof o?o=o.length>0?o.split(/\s*,\s*/i):[]:"boolean"==typeof o&&"points"===a[r]&&(o=o?i:[]),this.options[a[r]]=o}this.options.points=[i,this.options.points].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)>-1}))})),this.options.points=[this.options.points,this.options.pointsExclude].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)<0}))})),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(n.x,n.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(e):this.selectRect(e),this.observe(),this.cleanup()},e.prototype.selectPoints=function(e){return this.pointSelection.isSelected=e,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},e.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map((function(t){return[t[0]-e.x,t[1]-e.y]}))},e.prototype.drawPoints=function(){for(var e=this,t=this.getPointArray(),n=0,i=t.length;n<i;++n){var r=function(t){return function(n){(n=n||window.event).preventDefault?n.preventDefault():n.returnValue=!1,n.stopPropagation();var i=n.pageX||n.touches[0].pageX,r=n.pageY||n.touches[0].pageY;e.el.fire("point",{x:i,y:r,i:t,event:n})}}(n),a=this.drawPoint(t[n][0],t[n][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",r).on("mousedown",r);this.pointSelection.set.add(a)}},e.prototype.drawPoint=function(e,t){var n=this.options.pointType;switch(n){case"circle":return this.drawCircle(e,t);case"rect":return this.drawRect(e,t);default:if("function"==typeof n)return n.call(this,e,t);throw new Error("Unknown "+n+" point type!")}},e.prototype.drawCircle=function(e,t){return this.nested.circle(this.options.pointSize).center(e,t)},e.prototype.drawRect=function(e,t){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(e,t)},e.prototype.updatePointSelection=function(){var e=this.getPointArray();this.pointSelection.set.each((function(t){this.cx()===e[t][0]&&this.cy()===e[t][1]||this.center(e[t][0],e[t][1])}))},e.prototype.updateRectSelection=function(){var e=this,t=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:t.width,height:t.height}),this.options.points.length&&this.options.points.map((function(n,i){var r=e.pointCoords(n,t);e.rectSelection.set.get(i+1).center(r.x,r.y)})),this.options.rotationPoint){var n=this.rectSelection.set.length();this.rectSelection.set.get(n-1).center(t.width/2,20)}},e.prototype.selectRect=function(e){var t=this,n=this.el.bbox();function i(e){return function(n){(n=n||window.event).preventDefault?n.preventDefault():n.returnValue=!1,n.stopPropagation();var i=n.pageX||n.touches[0].pageX,r=n.pageY||n.touches[0].pageY;t.el.fire(e,{x:i,y:r,event:n})}}if(this.rectSelection.isSelected=e,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(n.width,n.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map((function(e,r){var a=t.pointCoords(e,n),o=t.drawPoint(a.x,a.y).attr("class",t.options.classPoints+"_"+e).on("mousedown",i(e)).on("touchstart",i(e));t.rectSelection.set.add(o)})),this.rectSelection.set.each((function(){this.addClass(t.options.classPoints)}))),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var r=function(e){(e=e||window.event).preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation();var n=e.pageX||e.touches[0].pageX,i=e.pageY||e.touches[0].pageY;t.el.fire("rot",{x:n,y:i,event:e})},a=this.drawPoint(n.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",r).on("mousedown",r);this.rectSelection.set.add(a)}},e.prototype.handler=function(){var e=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(e.x,e.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},e.prototype.observe=function(){var e=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver((function(){e.handler()})),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch(e){}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",(function(){e.handler()}))},e.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each((function(){this.remove()})),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each((function(){this.remove()})),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(t,n){return"object"==typeof t&&(n=t,t=!0),(this.remember("_selectHandler")||new e(this)).init(void 0===t||t,n||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function e(e){e.remember("_resizeHandler",this),this.el=e,this.parameters={},this.lastUpdateCall=null,this.p=e.doc().node.createSVGPoint()}e.prototype.transformPoint=function(e,t,n){return this.p.x=e-(this.offset.x-window.pageXOffset),this.p.y=t-(this.offset.y-window.pageYOffset),this.p.matrixTransform(n||this.m)},e.prototype._extractPosition=function(e){return{x:null!=e.clientX?e.clientX:e.touches[0].clientX,y:null!=e.clientY?e.clientY:e.touches[0].clientY}},e.prototype.init=function(e){var t=this;if(this.stop(),"stop"!==e){for(var n in this.options={},this.el.resize.defaults)this.options[n]=this.el.resize.defaults[n],void 0!==e[n]&&(this.options[n]=e[n]);this.el.on("lt.resize",(function(e){t.resize(e||window.event)})),this.el.on("rt.resize",(function(e){t.resize(e||window.event)})),this.el.on("rb.resize",(function(e){t.resize(e||window.event)})),this.el.on("lb.resize",(function(e){t.resize(e||window.event)})),this.el.on("t.resize",(function(e){t.resize(e||window.event)})),this.el.on("r.resize",(function(e){t.resize(e||window.event)})),this.el.on("b.resize",(function(e){t.resize(e||window.event)})),this.el.on("l.resize",(function(e){t.resize(e||window.event)})),this.el.on("rot.resize",(function(e){t.resize(e||window.event)})),this.el.on("point.resize",(function(e){t.resize(e||window.event)})),this.update()}},e.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},e.prototype.resize=function(e){var t=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var n=this._extractPosition(e.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(n.x,n.y),x:e.detail.x,y:e.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},"text"===this.el.type&&(this.parameters.fontSize=this.el.attr()["font-size"]),void 0!==e.detail.i){var i=this.el.array().valueOf();this.parameters.i=e.detail.i,this.parameters.pointCoords=[i[e.detail.i][0],i[e.detail.i][1]]}switch(e.type){case"lt":this.calc=function(e,t){var n=this.snapToGrid(e,t);if(this.parameters.box.width-n[0]>0&&this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-n[0]);n=this.checkAspectRatio(n),this.el.move(this.parameters.box.x+n[0],this.parameters.box.y+n[1]).size(this.parameters.box.width-n[0],this.parameters.box.height-n[1])}};break;case"rt":this.calc=function(e,t){var n=this.snapToGrid(e,t,2);if(this.parameters.box.width+n[0]>0&&this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+n[0]);n=this.checkAspectRatio(n,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+n[1]).size(this.parameters.box.width+n[0],this.parameters.box.height-n[1])}};break;case"rb":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.width+n[0]>0&&this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+n[0]);n=this.checkAspectRatio(n),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+n[0],this.parameters.box.height+n[1])}};break;case"lb":this.calc=function(e,t){var n=this.snapToGrid(e,t,1);if(this.parameters.box.width-n[0]>0&&this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-n[0]);n=this.checkAspectRatio(n,!0),this.el.move(this.parameters.box.x+n[0],this.parameters.box.y).size(this.parameters.box.width-n[0],this.parameters.box.height+n[1])}};break;case"t":this.calc=function(e,t){var n=this.snapToGrid(e,t,2);if(this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+n[1]).height(this.parameters.box.height-n[1])}};break;case"r":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.width+n[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+n[0])}};break;case"b":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+n[1])}};break;case"l":this.calc=function(e,t){var n=this.snapToGrid(e,t,1);if(this.parameters.box.width-n[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+n[0],this.parameters.box.y).width(this.parameters.box.width-n[0])}};break;case"rot":this.calc=function(e,t){var n=e+this.parameters.p.x,i=t+this.parameters.p.y,r=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),a=Math.atan2(i-this.parameters.box.y-this.parameters.box.height/2,n-this.parameters.box.x-this.parameters.box.width/2),o=this.parameters.rotation+180*(a-r)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(o-o%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(e,t){var n=this.snapToGrid(e,t,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),i=this.el.array().valueOf();i[this.parameters.i][0]=this.parameters.pointCoords[0]+n[0],i[this.parameters.i][1]=this.parameters.pointCoords[1]+n[1],this.el.plot(i)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:e}),SVG.on(window,"touchmove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"touchend.resize",(function(){t.done()})),SVG.on(window,"mousemove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"mouseup.resize",(function(){t.done()}))},e.prototype.update=function(e){if(e){var t=this._extractPosition(e),n=this.transformPoint(t.x,t.y),i=n.x-this.parameters.p.x,r=n.y-this.parameters.p.y;this.lastUpdateCall=[i,r],this.calc(i,r),this.el.fire("resizing",{dx:i,dy:r,event:e})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},e.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},e.prototype.snapToGrid=function(e,t,n,i){var r;return void 0!==i?r=[(n+e)%this.options.snapToGrid,(i+t)%this.options.snapToGrid]:(n=null==n?3:n,r=[(this.parameters.box.x+e+(1&n?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&n?0:this.parameters.box.height))%this.options.snapToGrid]),e<0&&(r[0]-=this.options.snapToGrid),t<0&&(r[1]-=this.options.snapToGrid),e-=Math.abs(r[0])<this.options.snapToGrid/2?r[0]:r[0]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),t-=Math.abs(r[1])<this.options.snapToGrid/2?r[1]:r[1]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(e,t,n,i)},e.prototype.constraintToBox=function(e,t,n,i){var r,a,o=this.options.constraint||{};return void 0!==i?(r=n,a=i):(r=this.parameters.box.x+(1&n?0:this.parameters.box.width),a=this.parameters.box.y+(2&n?0:this.parameters.box.height)),void 0!==o.minX&&r+e<o.minX&&(e=o.minX-r),void 0!==o.maxX&&r+e>o.maxX&&(e=o.maxX-r),void 0!==o.minY&&a+t<o.minY&&(t=o.minY-a),void 0!==o.maxY&&a+t>o.maxY&&(t=o.maxY-a),[e,t]},e.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var n=e.slice(),i=this.parameters.box.width/this.parameters.box.height,r=this.parameters.box.width+e[0],a=this.parameters.box.height-e[1],o=r/a;return o<i?(n[1]=r/i-this.parameters.box.height,t&&(n[1]=-n[1])):o>i&&(n[0]=this.parameters.box.width-a*i,t&&(n[0]=-n[0])),n},SVG.extend(SVG.Element,{resize:function(t){return(this.remember("_resizeHandler")||new e(this)).init(t||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),void 0===window.Apex&&(window.Apex={});var $e=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new b(this.ctx),this.ctx.axes=new ee(this.ctx),this.ctx.core=new qe(this.ctx.el,this.ctx),this.ctx.config=new I({}),this.ctx.data=new $(this.ctx),this.ctx.grid=new X(this.ctx),this.ctx.graphics=new x(this.ctx),this.ctx.coreUtils=new k(this.ctx),this.ctx.crosshairs=new te(this.ctx),this.ctx.events=new K(this.ctx),this.ctx.exports=new U(this.ctx),this.ctx.localization=new Z(this.ctx),this.ctx.options=new E,this.ctx.responsive=new ne(this.ctx),this.ctx.series=new B(this.ctx),this.ctx.theme=new ie(this.ctx),this.ctx.formatters=new O(this.ctx),this.ctx.titleSubtitle=new re(this.ctx),this.ctx.legend=new de(this.ctx),this.ctx.toolbar=new he(this.ctx),this.ctx.tooltip=new be(this.ctx),this.ctx.dimensions=new ce(this.ctx),this.ctx.updateHelpers=new Be(this.ctx),this.ctx.zoomPanSelection=new fe(this.ctx),this.ctx.w.globals.tooltip=new be(this.ctx)}}]),e}(),We=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return c(e,[{key:"clear",value:function(e){var t=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(e){e.each((function(e,t){this.removeClass("*"),this.off(),this.stop()}),!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,n=e.isUpdating,i=this.w.globals.dom.Paper.node;i.parentNode&&i.parentNode.parentNode&&!n&&(i.parentNode.parentNode.style.minHeight="unset");var r=this.w.globals.dom.baseEl;r&&this.ctx.eventList.forEach((function(e){r.removeEventListener(e,t.ctx.events.documentEvent)}));var a=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(a.Paper),a.Paper.remove(),a.elWrap=null,a.elGraphical=null,a.elLegendWrap=null,a.elLegendForeign=null,a.baseEl=null,a.elGridRect=null,a.elGridRectMask=null,a.elGridRectMarkerMask=null,a.elForecastMask=null,a.elNonForecastMask=null,a.elDefs=null}}]),e}(),Ue=new WeakMap,Ve=function(){function e(t,n){s(this,e),this.opts=n,this.ctx=this,this.w=new N(n).init(),this.el=t,this.w.globals.cuid=y.randomId(),this.w.globals.chartID=this.w.config.chart.id?y.escapeString(this.w.config.chart.id):this.w.globals.cuid,new $e(this).initModules(),this.create=y.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return c(e,[{key:"render",value:function(){var e=this;return new Promise((function(t,n){if(null!==e.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var i=e.w.config.chart.events.beforeMount;if("function"==typeof i&&i(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(e,t){var n=!1;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var i=e.getBoundingClientRect();"none"!==e.style.display&&0!==i.width||(n=!0)}var r=new ResizeObserver((function(i){n&&t.call(e,i),n=!0}));e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(e.children).forEach((function(e){return r.observe(e)})):r.observe(e),Ue.set(t,r)}(e.el.parentNode,e.parentResizeHandler),!e.css){var r=e.el.getRootNode&&e.el.getRootNode(),a=y.is("ShadowRoot",r),o=e.el.ownerDocument,s=o.getElementById("apexcharts-css");!a&&s||(e.css=document.createElement("style"),e.css.id="apexcharts-css",e.css.textContent='@keyframes opaque {\n  0% {\n      opacity: 0\n  }\n\n  to {\n      opacity: 1\n  }\n}\n\n@keyframes resizeanim {\n  0%,to {\n      opacity: 0\n  }\n}\n\n.apexcharts-canvas {\n  position: relative;\n  user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n  -webkit-appearance: none;\n  width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n  border-radius: 4px;\n  background-color: rgba(0,0,0,.5);\n  box-shadow: 0 0 1px rgba(255,255,255,.5);\n  -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)\n}\n\n.apexcharts-inner {\n  position: relative\n}\n\n.apexcharts-text tspan {\n  font-family: inherit\n}\n\n.legend-mouseover-inactive {\n  transition: .15s ease all;\n  opacity: .2\n}\n\n.apexcharts-legend-text {\n  padding-left: 15px;\n  margin-left: -15px;\n}\n\n.apexcharts-series-collapsed {\n  opacity: 0\n}\n\n.apexcharts-tooltip {\n  border-radius: 5px;\n  box-shadow: 2px 2px 6px -4px #999;\n  cursor: default;\n  font-size: 14px;\n  left: 62px;\n  opacity: 0;\n  pointer-events: none;\n  position: absolute;\n  top: 20px;\n  display: flex;\n  flex-direction: column;\n  overflow: hidden;\n  white-space: nowrap;\n  z-index: 12;\n  transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n  border: 1px solid #e3e3e3;\n  background: rgba(255,255,255,.96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n  color: #fff;\n  background: rgba(30,30,30,.8)\n}\n\n.apexcharts-tooltip * {\n  font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n  padding: 6px;\n  font-size: 15px;\n  margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n  background: #eceff1;\n  border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n  background: rgba(0,0,0,.7);\n  border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {\n  display: inline-block;\n  margin-left: 5px;\n  font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {\n  display: none\n}\n\n.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n  padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n  display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {\n  margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n  width: 12px;\n  height: 12px;\n  position: relative;\n  top: 0;\n  margin-right: 10px;\n  border-radius: 50%\n}\n\n.apexcharts-tooltip-series-group {\n  padding: 0 10px;\n  display: none;\n  text-align: left;\n  justify-content: left;\n  align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n  opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {\n  padding-bottom: 4px\n}\n\n.apexcharts-tooltip-series-group-hidden {\n  opacity: 0;\n  height: 0;\n  line-height: 0;\n  padding: 0!important\n}\n\n.apexcharts-tooltip-y-group {\n  padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,.apexcharts-tooltip-box {\n  padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n  display: flex;\n  flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n  margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n  font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n  padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n  font-weight: 600;\n  color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n  font-weight: 700;\n  display: block;\n  margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {\n  opacity: 0;\n  pointer-events: none;\n  color: #373d3f;\n  font-size: 13px;\n  text-align: center;\n  border-radius: 2px;\n  position: absolute;\n  z-index: 10;\n  background: #eceff1;\n  border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n  padding: 9px 10px;\n  transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n  background: rgba(0,0,0,.7);\n  border: 1px solid rgba(0,0,0,.5);\n  color: #fff\n}\n\n.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {\n  left: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n  border-color: transparent;\n  border-width: 6px;\n  margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n  border-color: transparent;\n  border-width: 7px;\n  margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {\n  bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {\n  top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n  border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n  border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n  border-bottom-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n  border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n  border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n  border-top-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n  padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n  background: rgba(0,0,0,.7);\n  border: 1px solid rgba(0,0,0,.5);\n  color: #fff\n}\n\n.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {\n  top: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n  border-color: transparent;\n  border-width: 6px;\n  margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n  border-color: transparent;\n  border-width: 7px;\n  margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {\n  left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {\n  right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n  border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n  border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n  border-left-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n  border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n  border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n  border-right-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n  opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n  display: none\n}\n\n.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {\n  pointer-events: none;\n  opacity: 0;\n  transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n  opacity: 0\n}\n\n.apexcharts-selection-rect {\n  cursor: move\n}\n\n.svg_select_boundingRect,.svg_select_points_rot {\n  pointer-events: none;\n  opacity: 0;\n  visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {\n  opacity: 0;\n  visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {\n  cursor: ew-resize;\n  opacity: 1;\n  visibility: visible\n}\n\n.svg_select_points {\n  fill: #efefef;\n  stroke: #333;\n  rx: 2\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n  cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n  cursor: move\n}\n\n.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n  cursor: pointer;\n  width: 20px;\n  height: 20px;\n  line-height: 24px;\n  color: #6e8192;\n  text-align: center\n}\n\n.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {\n  fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n  fill: #444;\n  transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n  fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n  fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n  fill: #333\n}\n\n.apexcharts-menu-icon,.apexcharts-selection-icon {\n  position: relative\n}\n\n.apexcharts-reset-icon {\n  margin-left: 5px\n}\n\n.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {\n  transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n  transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n  margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n  transform: scale(.62);\n  position: relative;\n  left: 1px;\n  top: 0\n}\n\n.apexcharts-pan-icon svg {\n  fill: #fff;\n  stroke: #6e8192;\n  stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n  stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n  stroke: #333\n}\n\n.apexcharts-toolbar {\n  position: absolute;\n  z-index: 11;\n  max-width: 176px;\n  text-align: right;\n  border-radius: 3px;\n  padding: 0 6px 2px;\n  display: flex;\n  justify-content: space-between;\n  align-items: center\n}\n\n.apexcharts-menu {\n  background: #fff;\n  position: absolute;\n  top: 100%;\n  border: 1px solid #ddd;\n  border-radius: 3px;\n  padding: 3px;\n  right: 10px;\n  opacity: 0;\n  min-width: 110px;\n  transition: .15s ease all;\n  pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n  opacity: 1;\n  pointer-events: all;\n  transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n  padding: 6px 7px;\n  font-size: 12px;\n  cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n  background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n  background: rgba(0,0,0,.7);\n  color: #fff\n}\n\n@media screen and (min-width:768px) {\n  .apexcharts-canvas:hover .apexcharts-toolbar {\n      opacity: 1\n  }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {\n  opacity: 0\n}\n\n.apexcharts-hidden-element-shown {\n  opacity: 1;\n  transition: 0.25s ease all;\n}\n.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {\n  cursor: default;\n  pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n  opacity: 0;\n  animation-name: opaque;\n  animation-duration: .3s;\n  animation-fill-mode: forwards;\n  animation-timing-function: ease\n}\n\n.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {\n  pointer-events: none\n}\n\n.apexcharts-marker {\n  transition: .15s ease all\n}\n\n.resize-triggers {\n  animation: 1ms resizeanim;\n  visibility: hidden;\n  opacity: 0;\n  height: 100%;\n  width: 100%;\n  overflow: hidden\n}\n\n.contract-trigger:before,.resize-triggers,.resize-triggers>div {\n  content: " ";\n  display: block;\n  position: absolute;\n  top: 0;\n  left: 0\n}\n\n.resize-triggers>div {\n  height: 100%;\n  width: 100%;\n  background: #eee;\n  overflow: auto\n}\n\n.contract-trigger:before {\n  overflow: hidden;\n  width: 200%;\n  height: 200%\n}\n\n.apexcharts-bar-goals-markers{\n  pointer-events: none\n}\n\n.apexcharts-bar-shadows{\n  pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers{\n  pointer-events: none\n}',a?r.prepend(e.css):o.head.appendChild(e.css))}var l=e.create(e.w.config.series,{});if(!l)return t(e);e.mount(l).then((function(){"function"==typeof e.w.config.chart.events.mounted&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(l)})).catch((function(e){n(e)}))}else n(new Error("Element not found"))}))}},{key:"create",value:function(e,t){var n=this.w;new $e(this).initModules();var i=this.w.globals;if(i.noData=!1,i.animationEnded=!1,this.responsive.checkResponsiveConfig(t),n.config.xaxis.convertedCatToNumeric&&new j(n.config).convertCatToNumericXaxis(n.config,this.ctx),null===this.el)return i.animationEnded=!0,null;if(this.core.setupElements(),"treemap"===n.config.chart.type&&(n.config.grid.show=!1,n.config.yaxis[0].show=!1),0===i.svgWidth)return i.animationEnded=!0,null;var r=k.checkComboSeries(e);i.comboCharts=r.comboCharts,i.comboBarCount=r.comboBarCount;var a=e.every((function(e){return e.data&&0===e.data.length}));(0===e.length||a)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(e),this.theme.init(),new H(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),i.noData&&i.collapsedSeries.length!==i.series.length&&!n.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),i.axisCharts&&(this.core.coreCalculations(),"category"!==n.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=n.globals.minX,this.ctx.toolbar.maxX=n.globals.maxX),this.formatters.heatmapLabelFormatters(),new k(this).getLargestMarkerSize(),this.dimensions.plotCoords();var o=this.core.xySettings();this.grid.createGridMask();var s=this.core.plotChartType(e,o),l=new q(this);return l.bringForward(),n.config.dataLabels.background.enabled&&l.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:s,xyRatios:o,dimensions:{plot:{left:n.globals.translateX,top:n.globals.translateY,width:n.globals.gridWidth,height:n.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this,i=n.w;return new Promise((function(r,a){if(null===n.el)return a(new Error("Not enough data to display or target element not found"));(null===t||i.globals.allSeriesCollapsed)&&n.series.handleNoData(),n.grid=new X(n);var o,s,l=n.grid.drawGrid();if(n.annotations=new C(n),n.annotations.drawImageAnnos(),n.annotations.drawTextAnnos(),"back"===i.config.grid.position&&(l&&i.globals.dom.elGraphical.add(l.el),null!=l&&null!==(o=l.elGridBorders)&&void 0!==o&&o.node&&i.globals.dom.elGraphical.add(l.elGridBorders)),Array.isArray(t.elGraph))for(var c=0;c<t.elGraph.length;c++)i.globals.dom.elGraphical.add(t.elGraph[c]);else i.globals.dom.elGraphical.add(t.elGraph);"front"===i.config.grid.position&&(l&&i.globals.dom.elGraphical.add(l.el),null!=l&&null!==(s=l.elGridBorders)&&void 0!==s&&s.node&&i.globals.dom.elGraphical.add(l.elGridBorders)),"front"===i.config.xaxis.crosshairs.position&&n.crosshairs.drawXCrosshairs(),"front"===i.config.yaxis[0].crosshairs.position&&n.crosshairs.drawYCrosshairs(),"treemap"!==i.config.chart.type&&n.axes.drawAxis(i.config.chart.type,l);var u=new V(e.ctx,l),d=new Q(e.ctx,l);if(null!==l&&(u.xAxisLabelCorrections(l.xAxisTickWidth),d.setYAxisTextAlignments(),i.config.yaxis.map((function(e,t){-1===i.globals.ignoreYAxisIndexes.indexOf(t)&&d.yAxisTitleRotate(t,e.opposite)}))),n.annotations.drawAxesAnnotations(),!i.globals.noData){if(i.config.tooltip.enabled&&!i.globals.noData&&n.w.globals.tooltip.drawTooltip(t.xyRatios),i.globals.axisCharts&&(i.globals.isXNumeric||i.config.xaxis.convertedCatToNumeric||i.globals.isRangeBar))(i.config.chart.zoom.enabled||i.config.chart.selection&&i.config.chart.selection.enabled||i.config.chart.pan&&i.config.chart.pan.enabled)&&n.zoomPanSelection.init({xyRatios:t.xyRatios});else{var h=i.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach((function(e){h[e]=!1}))}i.config.chart.toolbar.show&&!i.globals.allSeriesCollapsed&&n.toolbar.createToolbar()}i.globals.memory.methodsToExec.length>0&&i.globals.memory.methodsToExec.forEach((function(e){e.method(e.params,!1,e.context)})),i.globals.axisCharts||i.globals.noData||n.core.resizeNonAxisCharts(),r(n)}))}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=Ue.get(e))&&(t.disconnect(),Ue.delete(e));var n=this.w.config.chart.id;n&&Apex._chartInstances.forEach((function(e,t){e.id===y.escapeString(n)&&Apex._chartInstances.splice(t,1)})),new We(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=this.w;return o.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map((function(e,n){return t.updateHelpers._extendSeries(e,n)}))),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),o.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,n,i,r,a)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,n)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.w.config.series.slice();return i.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(i,t,n)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;n.w.globals.dataChanged=!0,n.series.getPreviousPaths();for(var i=n.w.config.series.slice(),r=0;r<i.length;r++)if(null!==e[r]&&void 0!==e[r])for(var a=0;a<e[r].data.length;a++)i[r].data.push(e[r].data[a]);return n.w.config.series=i,t&&(n.w.globals.initialSeries=y.clone(n.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise((function(n,i){new We(t.ctx).clear({isUpdating:!0});var r=t.create(t.w.config.series,e);if(!r)return n(t);t.mount(r).then((function(){"function"==typeof t.w.config.chart.events.updated&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,n(t)})).catch((function(e){i(e)}))}))}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach((function(e){t.push(e)}))),t}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter((function(e){if(e.group)return!0})).map((function(t){return e.w.config.chart.group===t.group?t.chart:e}))}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,t){return this.series.toggleSeriesOnHover(e,t)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"isSeriesHidden",value:function(e){this.series.isSeriesHidden(e)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this;n&&(i=n),i.annotations.addXaxisAnnotationExternal(e,t,i)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this;n&&(i=n),i.annotations.addYaxisAnnotationExternal(e,t,i)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this;n&&(i=n),i.annotations.addPointAnnotationExternal(e,t,i)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=this;t&&(n=t),n.annotations.removeAnnotation(n,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new J(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new J(this.ctx).getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new U(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new U(this.ctx).exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout((function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()}),150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;"function"==typeof e&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=y.escapeString(e);if(Apex._chartInstances){var n=Apex._chartInstances.filter((function(e){return e.id===t}))[0];return n&&n.chart}}},{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),n=0;n<t.length;n++)new e(t[n],JSON.parse(t[n].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var n=this.getChartByID(e);if(n){n.w.globals.isExecCalled=!0;var i=null;if(-1!==n.publicMethods.indexOf(t)){for(var r=arguments.length,a=new Array(r>2?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o];i=n[t].apply(n,a)}return i}}},{key:"merge",value:function(e,t){return y.extend(e,t)}}]),e}();e.exports=Ve},9272:(e,t,n)=>{"use strict";var i=n(723),r=[],a=[],o=i.makeRequestCallFromTimer((function(){if(a.length)throw a.shift()}));function s(e){var t;(t=r.length?r.pop():new l).task=e,i(t)}function l(){this.task=null}e.exports=s,l.prototype.call=function(){try{this.task.call()}catch(e){s.onerror?s.onerror(e):(a.push(e),o())}finally{this.task=null,r[r.length]=this}}},723:(e,t,n)=>{"use strict";function i(e){a.length||(r(),!0),a[a.length]=e}e.exports=i;var r,a=[],o=0;function s(){for(;o<a.length;){var e=o;if(o+=1,a[e].call(),o>1024){for(var t=0,n=a.length-o;t<n;t++)a[t]=a[t+o];a.length-=o,o=0}}a.length=0,o=0,!1}var l,c,u,d=void 0!==n.g?n.g:self,h=d.MutationObserver||d.WebKitMutationObserver;function f(e){return function(){var t=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(t),clearInterval(n),e()}}}"function"==typeof h?(l=1,c=new h(s),u=document.createTextNode(""),c.observe(u,{characterData:!0}),r=function(){l=-l,u.data=l}):r=f(s),i.requestFlush=r,i.makeRequestCallFromTimer=f},5924:(e,t,n)=>{n(4592),n(615),n(9600),n(2228);new Vue({mixins:[n(4334)]})},6809:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(3620),a=n(3358);Vue.component("attachment",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["parent_type","parent_id"],data:function(){return{page_type:null,item:null,items:[],selected_item:{},page:1,loading_card:!1,loading_more:!1,loading_create:!1,loading_custom:!1,loading_update:!1,form:new SparkForm({}),keywords:null,selected_file:null,percentCompleted:0,loading_upload:!1,uploader_classes:[],toolbox_attachments:[],checked_ids:[],checked_all:!1,multi_selection_manager:{},multiple_update_field:null,folders:[],selected_folder:{},type:"attachment",current_folder:null,folder_item_empty:!1,folder_manager:{}}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length}},methods:{load_items:function(){var e=this;e.loading_card=!0;var t=0;"undefined"!=typeof folder&&(this.current_folder=folder,t=folder.id);var n="/api/attachments/"+this.parent_type+"/"+this.parent_id+"?folder_id="+t;axios.get(n).then((function(t){e.items=t.data.data,e.folder_manager.load_folders().then((function(t){e.loading_card=!1,e.items.forEach((function(e,t,n){n[t].is_from_toolbox=0!=e.toolbox_attachment_id||e.parent_type==config.PARENT_TYPE_TOOLBOX})),e.keywords=""})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_card=!1}))})),this.form.parent_id=this.parent_id},load_toolbox_atttachments:function(){var e=this;axios.get("/api/attachments/toolbox/0?is_live=1").then((function(t){e.toolbox_attachments=t.data.data}))},del:function(e){this.selected_item=e,$("#modal_attachment_del").modal("show")},confirm_del:function(){var e=this;this.form=new SparkForm({}),Spark.delete("/api/attachment/"+e.selected_item.id,this.form).then((function(t){$("#modal_attachment_del").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){$("#modal_attachment_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},file_changed:function(){this.selected_file=this.$refs.file.files[0]},create:function(){this.loading_create=!1,this.selected_item={title:"",is_from_toolbox:0},this.selected_file=null,this.$refs.file&&(this.$refs.file.value=""),$("#modal_attachment_create").modal("show")},create_many:function(e){this.$refs.file_attachments.value="",$("#file_attachments").trigger("click")},confirm_create:function(){var e=this,t=new FormData;t.append("file",this.selected_file),t.append("title",this.selected_item.title),t.append("toolbox_attachment_id",this.selected_item.toolbox_attachment_id),t.append("is_from_toolbox",this.selected_item.is_from_toolbox),e.loading_create=!0;var n="/api/attachments/"+this.parent_type+"/"+this.parent_id;axios.post(n,t,{headers:{"Content-Type":"multipart/form-data"}}).then((function(t){t.data;e.load_items(),$("#modal_attachment_create").modal("hide"),notify("success",window.Spark.translations.attachment_create_success_message),e.loading_create=!1})).catch((function(t){$("#modal_attachment_create").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_create=!1}))},confirm_create_many:function(){var e=this,t=new FormData,n=document.getElementById("file_attachments").files;if(n){for(var i=0;i<n.length;i++){var r=n[i];t.append("files[]",r)}var a={headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(t){e.percentCompleted=Math.round(100*t.loaded/t.total),e.uploader_classes=["progress-circle","p"+e.percentCompleted],e.percentCompleted>50&&e.uploader_classes.push("over50"),e.$forceUpdate()}.bind(this)};e.loading_upload=!0;var o="/api/attachments/"+this.parent_type+"/"+this.parent_id+"/create-many";axios.post(o,t,a).then((function(t){if(t.data.errors){var n=t.data.errors[Object.keys(t.data.errors)[0]];return e.loading_upload=!1,void notify("danger",n)}e.loading_upload=!1,e.load_items()}))}},update:function(e){this.selected_item=(0,i.copyObject)(e),$("#modal_attachment_update").modal("show")},confirm_update:function(){var e=this,t=this;t.loading_update=!0,this.form=new SparkForm(this.selected_item),Spark.put("/api/attachment/"+t.selected_item.id,this.form).then((function(n){var r=(0,i.get_item_index_by_id)(t.items,t.selected_item.id);e.items[r]=t.selected_item,$("#modal_attachment_update").modal("hide"),notify("success",window.Spark.translations.update_success_message),t.loading_update=!1})).catch((function(e){$("#modal_attachment_update").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),t.loading_update=!1}))},search:function(e){if(""!=this.keywords){var t=this;t.loading_card=!0,this.page=1;var n="/api/attachments/search/"+this.parent_type+"/"+this.parent_id+"/"+this.keywords+"?page=1";axios.get(n).then((function(e){console.log(e.data),t.items=e.data.data,t.folders=[],t.loading_card=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))}else this.load_items(1)},searchLoadMore:function(){this.page=this.page+1,this.loading_more=!0;var e="/api/attachments/search/"+this.keywords+"?page="+this.page,t=this;axios.get(e).then((function(e){t.items=t.items.concat(e.data.data),t.folders=[],t.loading_more=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))},preview:function(e){(0,i.previewFile)(e.url,e.file_type)},toggleIsLive:function(e){e.is_live=!e.is_live,this.form=new SparkForm({is_live:e.is_live}),Spark.put("/api/attachment/"+e.id,this.form)},updateTagsOwner:function(e){}},mounted:function(){this.load_items(),this.load_toolbox_atttachments(),this.multi_selection_manager=new r.g(this,"attachments"),this.folder_manager=new a.FolderManager(this,"attachment")}})},4407:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("item_attachment",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["parent_type","parent_id"],data:function(){return{attachments:[],form:new SparkForm({}),loading_upload:!1}},watch:{parent_id:function(e,t){e?this.load_attachments(e):this.attachments=[]}},computed:{},methods:{load_attachments:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e||(e=this.parent_id);var t=this,n="/api/attachments/"+this.parent_type+"/"+e;axios.get(n).then((function(e){t.attachments=e.data.data})),this.form.parent_id=this.parent_id},remove_attachment:function(e){var t=this;this.form=new SparkForm({}),Spark.delete("/api/attachment/"+e.id,this.form).then((function(e){t.load_attachments()}))},start_upload_attachments:function(e){this.$refs.item_file_attachments.value="",$("#item_file_attachments").trigger("click")},add_many_attachments:function(){var e=this,t=document.getElementById("item_file_attachments").files;(0,i.add_files_as_attachments)(this.parent_type,this.parent_id,t).then((function(t){e.load_attachments()}))},update_attachment_title:function(e){var t=this;this.form=new SparkForm(e),Spark.put("/api/attachment/"+e.id,this.form).then((function(e){t.load_attachments()}))}},mounted:function(){this.load_attachments()}})},2663:(e,t,n)=>{"use strict";n.r(t);var i=n(283),r=n.n(i),a=n(2446),o=n.n(a),s=n(6316),l={insert:"head",singleton:!1};o()(s.Z,l);s.Z.locals;var c=n(2442),u=n(2741);function d(e){return d="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},d(e)}function h(){h=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var a=t&&t.prototype instanceof y?t:y,o=Object.create(a.prototype),s=new O(i||[]);return r(o,"_invoke",{value:L(e,n,s)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",m="suspendedYield",g="executing",_="completed",v={};function y(){}function b(){}function w(){}var x={};c(x,o,(function(){return this}));var k=Object.getPrototypeOf,A=k&&k(k(Y([])));A&&A!==n&&i.call(A,o)&&(x=A);var S=w.prototype=y.prototype=Object.create(x);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(r,a,o,s){var l=f(e[r],e,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==d(u)&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(u).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return a=a?a.then(r,r):r()}})}function L(t,n,i){var r=p;return function(a,o){if(r===g)throw new Error("Generator is already running");if(r===_){if("throw"===a)throw o;return{value:e,done:!0}}for(i.method=a,i.arg=o;;){var s=i.delegate;if(s){var l=E(s,i);if(l){if(l===v)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===p)throw r=_,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=g;var c=f(t,n,i);if("normal"===c.type){if(r=i.done?_:m,c.arg===v)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(r=_,i.method="throw",i.arg=c.arg)}}}function E(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v;var a=f(r,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(d(t)+" is not iterable")}return b.prototype=w,r(S,"constructor",{value:w,configurable:!0}),r(w,"constructor",{value:b,configurable:!0}),b.displayName=c(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,c(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},M(T.prototype),c(T.prototype,s,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,i,r,a){void 0===a&&(a=Promise);var o=new T(u(e,n,i,r),a);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},M(S),c(S,l,"Generator"),c(S,o,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=Y,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return s.type="throw",s.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;D(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:Y(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),v}},t}function f(e,t,n,i,r,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(r=i.key,a=void 0,a=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r,"string"),"symbol"===d(a)?a:String(a)),i)}var r,a}var m=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.template_id=t}var t,n,i,r,a;return t=e,n=[{key:"load",value:(r=h().mark((function e(){var t=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var i=t;axios.all([i.load_template(),i.load_template_items(),i.load_forms(),i.load_spreadsheets(),i.load_econtracts(),i.load_other_templates()]).then(axios.spread((function(t,n,r,a,o,s){i.template=t.data.data,i.template_items=n.data.data,i.toolbox_forms=r.data.data,i.toolbox_spreadsheets=a.data.data,i.toolbox_econtracts=o.data.data,i.other_templates=s.data.data,i.other_templates=i.other_templates.filter((function(e){return e.id!=i.template_id})),e(i)})))})));case 1:case"end":return e.stop()}}),e)})),a=function(){var e=this,t=arguments;return new Promise((function(n,i){var a=r.apply(e,t);function o(e){f(a,n,i,o,s,"next",e)}function s(e){f(a,n,i,o,s,"throw",e)}o(void 0)}))},function(){return a.apply(this,arguments)})},{key:"load_template",value:function(){var e="/api/template/"+this.template_id;return axios.get(e)}},{key:"load_template_items",value:function(){var e="/api/templateItems/"+this.template_id;return axios.get(e)}},{key:"load_other_templates",value:function(){return axios.get("/api/templates?is_live=1")}},{key:"load_forms",value:function(){return axios.get("/api/forms?is_live=1")}},{key:"load_spreadsheets",value:function(){return axios.get("/api/spreadsheets?is_live=1")}},{key:"load_econtracts",value:function(){return axios.get("/api/econtracts?is_live=1")}},{key:"get_stakeholder_title",value:function(e){if(this.template){var t=this.template.stakeholders;if(t){var n=(0,u.get_item_by_field)(t,"role",e);if(n)return n.title}}return""}},{key:"get_item_title",value:function(e){var t=this.template.template_items;if(t){var n=(0,u.get_item_by_id)(t,e);if(n)return n.title}return""}},{key:"get_items_titles",value:function(e){var t=this.template.template_items,n=[];return t&&e.forEach((function(e){var i=(0,u.get_item_by_id)(t,e);i&&n.push(i.title)})),n}},{key:"get_template_title",value:function(e){var t=this.other_templates;if(t){var n=(0,u.get_item_by_id)(t,e);if(n)return n.title}return""}},{key:"get_toolbox_item_title",value:function(e,t){var n=this["toolbox_"+e+"s"];if(n){var i=(0,u.get_item_by_id)(n,t);if(i)return i.title}return""}}],n&&p(t.prototype,n),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),g=n(2739);Vue.component("automation-builder",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},components:{VueEditor:g.bR},props:["user","currentTeam","automation_id","can_add_automation"],data:function(){return{save_timer:null,loading_card:!0,editor:null,form:new SparkForm,current_item:null,selected_step:{},selected_step_data:{},selected_step_trigger_step:null,current_form_validator:null,current_form_:null,flow_data:{},template_asset_manager:{},template:{},all_template_items:[],eligible_template_items:[],template_sections:[],other_templates:[],not_primary_stakeholders:[],available_stakeholders:[],toolbox_forms:[],toolbox_econtracts:[],toolbox_spreadsheets:[],email_actions:[config.AUTOMATIONS_ACTIONS_TYPES.SEND_NOTIFICATION_CONCERNED,config.AUTOMATIONS_ACTIONS_TYPES.SEND_NOTIFICATION_DELEGATE,config.AUTOMATIONS_ACTIONS_TYPES.SEND_NOTIFICATION_STAKEHOLDER,config.AUTOMATIONS_ACTIONS_TYPES.SEND_NOTIFICATION_TEAM_MEMBER,config.AUTOMATIONS_ACTIONS_TYPES.SEND_NOTIFICATION_CUSTOM]}},watch:{},computed:{current_template_item:function(){var e=this.selected_step_data.step_data.template_item_id;return e?(0,u.get_item_by_id)(this.eligible_template_items,e):{}},current_other_template:function(){var e=this.selected_step_data.step_data.template_id;return e?(0,u.get_item_by_id)(this.other_templates,e):{}},current_initial_trigger_step:function(){return this.selected_step?new c.StepWrapper(this.editor,this.selected_step.id).getInitialTrigger():null}},methods:{show_automations_exceeded_modal:function(){$("#modal_automation_limited").modal("show")},init:function(){var e=this;this.current_item=item,this.template_asset_manager=new m(item.template_id),this.template_asset_manager.load().then((function(t){e.all_template_items=e.template_asset_manager.template_items,e.toolbox_forms=e.template_asset_manager.toolbox_forms,e.toolbox_econtracts=e.template_asset_manager.toolbox_econtracts,e.toolbox_spreadsheets=e.template_asset_manager.toolbox_spreadsheets,e.other_templates=e.template_asset_manager.other_templates,e.start_editor(e.current_item.editor_settings),e.load_flow(e.current_item.flow_data),e.auto_save(),e.loading_card=!1}),(function(e){}))},load_flow:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this;e||(this.add_step_to_flow("trigger"),e=(0,c.exportEditorData)(this.editor)),e=(0,c.enrichEditorData)(this.template_asset_manager,this.currentTeam.users,e),(0,c.importEditorData)(this.editor,e),this.flow_data=e,Object.keys(this.flow_data).forEach((function(e,n){t.refresh_html_from_step(e)})),Object.keys(this.flow_data).forEach((function(e,n){t.editor.updateConnectionNodes("node-"+e)}))},get_default_step_data:function(e){var t={};return"trigger"==e?t={step_data:{trigger_type:config.AUTOMATIONS_TRIGGERS_TYPES.APPLICATION_CREATED,stakeholder_role:config._ANY,stakeholder_title:""}}:"action"==e?t={step_data:{action_type:config.AUTOMATIONS_ACTIONS_TYPES.SEND_NOTIFICATION_CONCERNED,email_activated:1,sms_activated:0,items_ids:[],team_members_ids:[],stakeholders_roles:[config.PRIMARY_STAKEHOLDER_ROLE],attachments_signatures:[],deadline_delay:1,template_id:0,item_visible_to_client:1,item_is_mandatory:0,item_type:config.ITEM_TYPE_FILE}}:"condition"==e?t={step_data:{conditions:[],condition_description:window.Spark.translations.default_automation_condition}}:"pause"==e&&(t={step_data:{duration:7,pause_type:config.AUTOMATIONS_PAUSE_TYPES.AFTER_EVENT}}),t},get_step_html_content:function(e){var t=this.editor.getNodeFromId(e),n=t.data,i="";return"trigger"==t.name?i=(0,c.getStepHtmlContent)("component-trigger-"+n.step_data.trigger_type,n.step_data):"action"==t.name?i=(0,c.getStepHtmlContent)("component-action-"+n.step_data.action_type,n.step_data):"condition"==t.name?i=(0,c.getStepHtmlContent)("component-condition",n.step_data,!1):"pause"==t.name&&(i=(0,c.getStepHtmlContent)("component-pause-"+n.step_data.pause_type,n.step_data)),i},get_step_data_value:function(e,t){return e.data&&e.data.step_data?e.data.step_data[t]:null},refresh_html_from_step:function(e){var t=this.get_step_html_content(e);$("#node-"+e+" .box .content").html(t),$("#node-"+e+" .box .content .value:empty").hide()},allowDrop:function(e){e.preventDefault()},drag:function(e,t){this.current_dragged_step=e},drop:function(e){if(e.preventDefault(),"trigger"!=this.current_dragged_step||this.can_add_automation){var t=this.current_dragged_step;this.add_step_to_flow(t,e.clientX,e.clientY)}else this.show_automations_exceeded_modal()},start_editor:function(){var e=this,t=document.getElementById("flowbuilder");this.editor=new(r())(t,this),this.editor.reroute=!0,this.editor.createCurvature=function(e,t,n,i,r,a){var o=e,s=t,l=n,c=i,u=r;switch(a){case"open":if(t>=i)var d=s+Math.abs(c-s)*u,h=c-Math.abs(c-s)*(-1*u);else d=s+Math.abs(c-s)*u,h=c-Math.abs(c-s)*u;return" M "+o+" "+s+" C "+o+" "+d+" "+l+" "+h+" "+l+"  "+c;case"close":if(t>=i)d=s+Math.abs(c-s)*(-1*u),h=c-Math.abs(c-s)*u;else d=s+Math.abs(c-s)*u,h=c-Math.abs(c-s)*u;return" M "+o+" "+s+" C "+o+" "+d+" "+l+" "+h+" "+l+"  "+c;case"other":if(t>=i)d=s+Math.abs(c-s)*(-1*u),h=c-Math.abs(c-s)*(-1*u);else d=s+Math.abs(c-s)*u,h=c-Math.abs(c-s)*u;return" M "+o+" "+s+" C "+o+" "+d+" "+l+" "+h+" "+l+"  "+c;default:return" M "+o+" "+s+" C "+o+" "+(d=s+Math.abs(c-s)*u)+" "+l+" "+(h=c-Math.abs(c-s)*u)+" "+l+"  "+c}},this.editor.on("nodeSelected",(function(t){var n=e.editor.getNodeFromId(t);e.selected_step={id:n.id,name:n.name,data:n.data}})),this.editor.on("click",(function(t){switch((0,c.getNodeButtonType)(t)){case"delete":return e.editor.removeNodeId("node-"+e.selected_step.id),void(e.selected_step=null);case"edit":return void e.update_step(e.selected_step);case"duplicate":return void e.duplicate_step(e.selected_step,t.clientX,t.clientY)}})),this.editor.start()},add_step_to_flow:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.editor;t&&n?(t=t*(a.precanvas.clientWidth/(a.precanvas.clientWidth*a.zoom))-a.precanvas.getBoundingClientRect().x*(a.precanvas.clientWidth/(a.precanvas.clientWidth*a.zoom)),n=n*(a.precanvas.clientHeight/(a.precanvas.clientHeight*a.zoom))-a.precanvas.getBoundingClientRect().y*(a.precanvas.clientHeight/(a.precanvas.clientHeight*a.zoom))):(t=400,n=50);var o=$("#flow-component-"+e),s=o.html(),l=parseInt(o.data("outputs-count")),c=parseInt(o.data("inputs-count"));i||(i=this.get_default_step_data(e));var u=a.addNode(e,c,l,t,n,e,i,s),d={id:u,name:e,data:i};return this.refresh_html_from_step(u),r&&this.update_step(d),d},duplicate_step:function(e,t,n){var i=e.name,r=(0,u.copyObject)(e.data);this.add_step_to_flow(i,t,n,r,!1)},update_step:function(e){var t=this;this.current_form_validator&&this.current_form_validator.resetForm(),this.template=this.template_asset_manager.template,this.template_asset_manager.template_items&&(this.eligible_template_items=this.template_asset_manager.template_items.filter((function(e){return e.type!=config.ITEM_TYPE_SEPARATOR})),this.template_sections=this.template_asset_manager.template_items.filter((function(e){return e.type==config.ITEM_TYPE_SEPARATOR&&e.separator_type==config.SEPARATOR_TYPE_HEADING}))),this.available_stakeholders=this.template_asset_manager.template.stakeholders,this.available_stakeholders&&(this.not_primary_stakeholders=this.available_stakeholders.filter((function(e){return e.role!=config.PRIMARY_STAKEHOLDER_ROLE}))),this.selected_step=this.editor.getNodeFromId(e.id),this.selected_step_data=(0,u.copyObject)(this.selected_step.data);var n="#modal_"+e.name+"_edit",i=n+" form";this.save_timer&&clearInterval(this.save_timer),setTimeout((function(){$(n).modal("show"),t.current_form=$(i),t.current_form_validator=$(i).validate()}),300)},enrich_step:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t||(t=e.data),t.step_data.new_tags&&(t.step_data.tags=t.step_data.new_tags,delete t.step_data.new_tags),t.step_data=(0,c.enrichStepData)(this.template_asset_manager,this.currentTeam.users,t.step_data),this.editor.updateNodeDataFromId(e.id,t),this.refresh_html_from_step(e.id)},confirm_update_step:function(){if(this.current_form.valid()){this.enrich_step(this.selected_step,this.selected_step_data);var e="#modal_"+this.selected_step.name+"_edit";$(e).modal("hide"),this.save(!0),"action"==this.selected_step.name&&this.selected_step_data.step_data.is_invitation_notification&&this.try_update_default_stakeholders_emails(this.selected_step_data.step_data.email_subject,this.selected_step_data.step_data.email_body),this.selected_step_data={},this.auto_save()}},save:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,c.exportEditorData)(this.editor);0===Object.keys(t).length&&t.constructor===Object&&(t=null),this.form=new SparkForm({flow_data:t}),Spark.put("/api/automation/"+this.automation_id,this.form).then((function(){e&&notify("success",window.Spark.translations.update_success_message)}))},try_update_default_stakeholders_emails:function(e,t){var n=null;if("send_notification_stakeholder"==this.selected_step_data.step_data.action_type)n=this.selected_step_data.step_data.stakeholders_roles;else if("send_notification_concerned"==this.selected_step_data.step_data.action_type){n=[this.current_initial_trigger_step.data.step_data.stakeholder_role]}n&&(this.form=new SparkForm({stakeholder_roles:n,email_subject:e,email_body:t}),Spark.post("/api/template/"+this.template.id+"/update-default-stakeholders-emails",this.form))},auto_save:function(){var e=this;e.save_timer=setInterval((function(){e.save()}),1e4)},updateItemTitle:function(){this.form=new SparkForm({title:this.current_item.title}),Spark.put("/api/automation/"+this.automation_id,this.form)},add_step:function(e){this.add_step_to_flow(e)},on_automation_trigger_change:function(){this.current_form_validator.resetForm(),this.current_form.find(".error").removeClass("error")},on_automation_action_change:function(){this.current_form_validator.resetForm(),this.current_form.find(".error").removeClass("error")},on_other_template_change:function(){var e=this;["phone","company","custom"].forEach((function(t){e.current_other_template["collect_"+t]||(e.selected_step_data.step_data["contact_"+t]=null)}))},update_selected_item:function(e,t){"conditions"==e&&(this.selected_step_data.step_data.conditions=t)},updateTagsOwner:function(e){var t=this;this.selected_step_data.step_data.new_tags=[],e.forEach((function(e){t.selected_step_data.step_data.new_tags.push(e.text)}))}},mounted:function(){this.init()}})},2442:(e,t,n)=>{"use strict";n.r(t),n.d(t,{StepWrapper:()=>o,enrichEditorData:()=>h,enrichStepData:()=>d,exportEditorData:()=>s,getNodeButtonType:()=>c,getStepHtmlContent:()=>u,importEditorData:()=>l});var i=n(2741);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 a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(a=i.key,o=void 0,o=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"),"symbol"===r(o)?o:String(o)),i)}var a,o}var o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.editor=t,this.step=this.editor.getNodeFromId(n)}var t,n,i;return t=e,(n=[{key:"getPrimaryParent",value:function(){if("trigger"==this.step.name)return this.step;if(this.step.inputs)for(var t=Object.keys(this.step.inputs),n=0;n<t.length;n++){var i=this.step.inputs[t[n]].connections;if(i&&i&&i.length){var r=i[0].node;return new e(this.editor,r)}}return null}},{key:"getInitialTrigger",value:function(){for(var e=this.getPrimaryParent();e&&e.step&&"trigger"!=e.step.name;)e=e.getPrimaryParent();if(e&&"trigger"==e.step.name)return e.step}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();function s(e){return e.export().drawflow.Home.data}function l(e,t){var n={drawflow:{Home:{data:t}}};e.import(n)}function c(e){var t="";if(e.srcElement.className&&(t=e.srcElement.className),"function"==typeof t.includes){if(t.includes("button-edit")||t.includes("icofont-gear"))return"edit";if(t.includes("button-copy")||t.includes("icofont-ui-copy"))return"duplicate";if(t.includes("button-delete")||t.includes("icofont-close"))return"delete"}return null}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=$("#"+e).text();t&&Object.keys(t).sort((function(e,t){return t.length-e.length})).forEach((function(e,r){if(n){var a="<span class='value'>"+t[e]+"</span>";i=i.replace(":"+e,a)}else i=i.replace(":"+e,t[e])}));return i="<div>"+i+"</div>"}function d(e,t,n){var r=(0,i.copyObject)(n);if(r.stakeholder_role&&(r.stakeholder_title=e.get_stakeholder_title(r.stakeholder_role)),r.application_status&&(r.application_status_string=applications_statuses[r.application_status]),r.item_status&&(r.item_status_string=items_statuses[r.item_status]),r.template_item_id&&(r.item_title=e.get_item_title(r.template_item_id)),r.tags&&(r.list_tags=r.tags.join(" , ")),r.items_ids&&(r.item_titles=e.get_items_titles(r.items_ids).join(" , ")),r.template_id&&(r.template_title=e.get_template_title(r.template_id)),r.team_member_id){var a=(0,i.get_item_by_id)(t,r.team_member_id);a&&(r.team_member_name=a.name)}if(r.item_type){r.item_type_name=items_types_names[r.item_type];var o=null;["form","econtract","spreadsheet"].includes(r.item_type)?o=e.get_toolbox_item_title(r.item_type,r.item_id):"subtemplate"==r.item_type?o=e.get_template_title(r.template_id):"header"==r.item_type?o=r.header_title:"file"==r.item_type?o=r.item_files?r.item_files.split("\n").join(","):null:"textbox"==r.item_type&&(o=r.textbox_content.replace(/(<([^>]+)>)/gi,"").substring(0,20)),r.item_title=o}return r}function h(e,t,n){for(var r=(0,i.copyObject)(n),a=Object.keys(r),o=0;o<a.length;o++){var s=a[o],l=r[s];l.data&&l.data.step_data&&(r[s].data.step_data=d(e,t,l.data.step_data))}return r}},2551:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("contact_details",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam"],data:function(){return{selected_item:{},stakeholders:[],errors:{email_invalid:!1},team_templates:[],loading_card:!1,loading_more:!1,card_infos_edit:!1,contact_phone_input:null,loading_update:!1,loading_temp_password:!1,reset_password_confirmation:!0,form:new SparkForm({}),view_submenu_settings:!1,temp_password:null}},computed:{has_no_dossiers:function(){return!this.stakeholders.length},copyCommandSupported:function(){return document.queryCommandSupported("copy")}},methods:{load_item:function(){this.selected_item=main_item,this.get_stakeholders(),$("#phone").text(this.selected_item.phone)},get_stakeholders:function(){this.loading_card=!0;var e="/api/contact/"+this.selected_item.id+"/stakeholders",t=this;try{axios.get(e).then((function(e){t.stakeholders=e.data})),t.loading_card=!1}catch(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}},del:function(e){this.selected_item=e,$("#modal_contact_del").modal("show")},confirm_del:function(){this.form=new SparkForm({}),Spark.delete("/api/contact/"+this.selected_item.id,this.form).then((function(e){$("#modal_contact_del").modal("hide");window.location.href="/app/contacts"})).catch((function(e){$("#modal_contact_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},load_intl_numbers_library:function(){"function"==typeof window.intlTelInput&&(this.contact_phone_input=(0,i.buildIntPhoneInput)("intl_phone"))},confirm_update:function(){var e=this;e.loading_update=!0,this.contact_phone_input&&(e.selected_item.phone=this.contact_phone_input.getNumber(intlTelInputUtils.numberFormat.E164)),this.form=(0,i.getSparkForm)(e.selected_item,["firstname","lastname","email","phone","enabled","authorized_templates_config"]),e.errors.email_invalid=!(0,i.validateEmail)(this.form.email),e.errors.email_invalid||Spark.put("/api/contact/"+e.selected_item.id,this.form).then((function(t){if(t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else e.card_infos_edit=!1,notify("success",window.Spark.translations.update_success_message),e.loading_update=!1,$(document).ready((function(){$("#phone").text(e.selected_item.phone)}))})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_update=!1}))},edit:function(){var e=this;setTimeout((function(){e.load_intl_numbers_library()}),500)},info:function(){var e=this;$(document).ready((function(){$("#phone").text(e.selected_item.phone)}))},reset_password_modal:function(){this.reset_password_confirmation=!0,$("#modal-reset-password").modal("show")},reset_password:function(){var e=this;this.loading_temp_password=!0,Spark.put("/api/contact/"+this.selected_item.id+"/reset-password",this.form).then((function(t){e.temp_password=t.temp_password,e.reset_password_confirmation=!1,e.loading_temp_password=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),this.loading_temp_password=!1}))},selectPassword:function(){$("#temp-password").select(),this.copyCommandSupported&&document.execCommand("copy")},load_lists:function(){var e=this;axios.all([axios.get("/api/templates?is_live=1"),axios.get("/api/tags")]).then(axios.spread((function(t,n){e.team_templates=t.data.data,e.team_tags=n.data.data})))}},mounted:function(){this.load_item(),this.load_lists()}})},8733:(e,t,n)=>{"use strict";n.r(t);var i=n(3620),r=n(2741);Vue.component("contacts",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam"],data:function(){return{item:null,items:[],selected_item:{},page:1,errors:{email_exist:!1,email_invalid:!1},loading_card:!1,loading_more:!1,loading_create:!1,contact_phone_input:null,form:new SparkForm({}),keywords:null,search_mode:!1,multiple_update_field:null,checked_ids:[],checked_all:!1,multi_selection_manager:{},multi_send_emails:""}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length}},methods:{loadItems:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this;this.loading_card=e,axios.get("/api/contacts?page="+t.page).then((function(e){t.items=e.data.data,t.loading_card=!1,t.search_mode=!1}))},loadMoreItems:function(){if(this.search_mode)this.searchLoadMore();else{this.page=this.page+1,this.loading_more=!0;var e=this;axios.get("/api/contacts?page="+e.page).then((function(t){e.items=e.items.concat(t.data.data),e.loading_more=!1})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_more=!1}))}},create:function(){this.loading_create=!1,this.errors.email_invalid=!1,this.errors.email_exist=!1,this.selected_item=new SparkForm({}),this.selected_item.enabled=1,$("#modal_contact_create").modal("show"),setTimeout(this.load_intl_numbers_library,500)},confirm_create:function(){var e=this,t=this;this.form=new SparkForm(this.selected_item),$("#form_clust_contact_create").valid()&&(t.loading_create=!0,t.errors.email_exist=!1,this.contact_phone_input&&(this.form.phone=this.contact_phone_input.getNumber(intlTelInputUtils.numberFormat.E164)),t.errors.email_invalid=!(0,r.validateEmail)(this.form.email),t.errors.email_invalid||Spark.post("/api/contacts",t.form).then((function(n){if(n.errors){if("email-contact-exist"==n.errors["technical-error"][0])return void(e.errors.email_exist=!0);n.errors[Object.keys(n.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else t.items.push(n),$("#modal_contact_create").modal("hide"),notify("success",window.Spark.translations.contact_create_success_message),location.reload()})).catch((function(e){$("#modal_contact_create").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),t.loading_create=!1})).finally((function(){t.loading_create=!1,t.errors.email_invalid=!1})))},load_intl_numbers_library:function(){"function"==typeof window.intlTelInput&&(this.contact_phone_input=(0,r.buildIntPhoneInput)("intl_phone"))},view:function(e){var t="/app/contact/"+e.id;window.location.href=t},del:function(e){this.selected_item=e,$("#modal_contact_del").modal("show")},confirm_del:function(){var e=this;e.form=new SparkForm({}),Spark.delete("/api/contact/"+e.selected_item.id,e.form).then((function(t){$("#modal_contact_del").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){$("#modal_contact_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},search:function(){if(""!=this.keywords){var e=this;e.loading_card=!0,this.page=1;var t="/api/contacts/search/"+this.keywords+"?page=1";axios.get(t).then((function(t){e.items=t.data.data,e.loading_card=!1,e.search_mode=!0})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_card=!1}))}else this.loadItems()},searchLoadMore:function(){this.page=this.page+1,this.loading_more=!0;var e="/api/contacts/search/"+this.keywords+"?page="+this.page,t=this;axios.get(e).then((function(e){t.items=t.items.concat(e.data.data),t.loading_more=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))}},mounted:function(){this.loadItems(),this.multi_selection_manager=new i.g(this,"contacts")}})},9317:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("custom_fields",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["parent_type","parent_id"],data:function(){return{item:null,items:[],selected_item:{},editing_item:{},loading_card:!1,editing_mode:!1,loading_create:!1,form:new SparkForm({}),form_error_message:null}},computed:{has_no_item:function(){return!this.items.length}},methods:{loadItems:function(){var e=this,t="/api/custom-fields/"+this.parent_type+"/"+main_item.id;axios.get(t).then((function(t){e.items=t.data.data})),this.form.parent_id=main_item.id},del:function(e){this.selected_item=e,$("#modal-del-custom-field").modal("show")},confirm_del:function(){var e=this;this.form=new SparkForm({}),Spark.delete("/api/custom-field/"+e.selected_item.id,this.form).then((function(t){$("#modal-del-custom-field").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){$("#modal-del-custom-field").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},create:function(){this.loading_create=!1,this.selected_item={},$("#modal-create-custom-field").modal("show")},confirm_create:function(){var e=this;if(this.selected_item.template_id=main_item.id,this.form=new SparkForm(this.selected_item),$("#form-create-custom-field").valid()){e.loading_create=!0;var t="/api/custom-fields/"+this.parent_type+"/"+this.parent_id;Spark.post(t,this.form).then((function(t){var n=t.data;e.items.push(n),$("#modal-create-custom-field").modal("hide"),notify("success",window.Spark.translations.custom_field_create_success_message),e.loading_create=!1})).catch((function(t){$("#modal-create-custom-field").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_create=!1}))}},update:function(e){this.selected_item=(0,i.copyObject)(e),$("#modal-update-custom-field").modal("show")},set_value:function(e){this.selected_item=(0,i.copyObject)(e),this.editing_mode=!0},confirm_update:function(){var e=this,t=this;$("#form-update-custom-field").valid()&&(this.form=new SparkForm(this.selected_item),Spark.put("/api/custom-field/"+t.selected_item.id,this.form).then((function(n){var r=(0,i.get_item_index_by_id)(t.items,t.selected_item.id);e.items[r]=t.selected_item,$("#modal-update-custom-field").modal("hide"),notify("success",window.Spark.translations.update_success_message),t.editing_mode=!1})).catch((function(e){$("#modal-update-custom-field").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)})))}},mounted:function(){this.loadItems()}})},7677:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(4023);function a(e){return a="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},a(e)}Vue.component("chart",{filters:{},components:{"chrome-picker":r.Chrome},props:["currentTeam","user","dashboard","chart","dashboard_editable"],data:function(){return{form:new SparkForm({}),color:"#111111",loading:!1,loaded:!1,selected_item:{timeframe:{},filters:{}},attempts:0}},watch:{},methods:{load_data:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.loaded||e){if(this.chart.is_new)return this.chart.chart_data=0,delete this.chart.is_new,void this.update();if(!(this.attempts>5)){var t="/api/dashboard/"+this.dashboard.id+"/get-chart-data/"+this.chart.id,n=this;this.loading=!0,this.chart.chart_data=null,axios.get(t).then((function(e){var t=e.data;n.chart.chart_data=t,n.loaded=!0,n.loading=!1,n.attempts=0})).catch((function(t){n.attempts=n.attempts+1,setTimeout((function(){n.load_data(e)}),1e3)}))}}},update_filters_and_timeframe:function(e,t){this.selected_item.filters=e,this.selected_item.timeframe=t,this.$forceUpdate()},del:function(){var e="#modal-delete-chart-"+this.chart.id;$(e).modal("show")},confirm_del:function(){var e="#modal-delete-chart-"+this.chart.id;$(e).modal("hide"),this.$parent.delete_chart(this.chart.id)},update:function(){this.selected_item=(0,i.copyObject)(this.chart),this.selected_item.filters=(0,i.is_object)(this.selected_item.filters)?this.selected_item.filters:{},this.selected_item.timeframe=(0,i.is_object)(this.selected_item.timeframe)?this.selected_item.timeframe:{},this.color=this.selected_item.color,$("#sortable").sortable("disable");var e="#modal-update-chart-"+this.chart.id;$(""+e).modal({backdrop:"static",keyboard:!1},"show")},close_update:function(){$("#sortable").sortable("enable");var e="#modal-update-chart-"+this.chart.id;$(e).modal("hide")},confirm_update:function(){var e="#modal-update-chart-"+this.chart.id+" form";$(e).valid()&&(this.color&&("object"===a(this.color)?this.selected_item.color=this.color.hex:"string"==typeof this.color&&(this.selected_item.color=this.color)),this.$parent.update_chart(this.chart.id,this.selected_item),this.load_data(!0),this.close_update())},date_updated:function(e,t){this.selected_item.timeframe[e]=t},target_changed:function(){this.selected_item.filters={}},type_changed:function(){switch(this.selected_item.type){case"evolution":this.selected_item.style="bar",this.selected_item.size=6;break;case"number":this.selected_item.style="number",this.selected_item.size=3;break;case"list":this.selected_item.style="list",this.selected_item.size=6;break;default:this.selected_item.style="pie",this.selected_item.size=4}}},mounted:function(){this.load_data()}})},8046:(e,t,n)=>{"use strict";n.r(t);var i=n(5927),r=n.n(i),a=n(2741);Vue.component("apex-chart",{props:["chart"],data:function(){return{options_base:{chart:{toolbar:{show:!1},type:"line",zoom:{enabled:!1},height:240},legend:{position:"bottom",horizontalAlign:"center"},dataLabels:{enabled:!0,dropShadow:{enabled:!1}},theme:{monochrome:{enabled:!0,color:"#255aee",shadeTo:"light",shadeIntensity:.5}}}}},watch:{chart:function(e,t){this.build_chart()}},methods:{build_chart:function(){if(this.chart.chart_data){var e=this.chart.chart_data,t=Object.keys(e),n=Object.values(e),i=null;switch(this.chart.style){case"pie":case"donut":i=this.get_pie_or_donut_options(this.chart.style,n,t);break;default:i=this.get_line_or_bar_options(this.chart.style,n,t)}i.theme.monochrome.color=this.chart.color;var a="#chart-"+this.chart.id;new(r())(document.querySelector(a),i).render()}},get_pie_or_donut_options:function(e,t,n){var i=(0,a.copyObject)(this.options_base);return i.chart.type=e,i.series=t,i.labels=n,i},get_line_or_bar_options:function(e,t,n){var i=(0,a.copyObject)(this.options_base);return i.chart.type=e,i.xaxis={categories:null},i.series=[{name:"",data:null}],i.series[0].data=t,i.xaxis.categories=n,i}},mounted:function(){this.build_chart()}})},3153:()=>{Vue.component("list-chart",{props:["chart","user","currentTeam"],data:function(){return{list:[]}},filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")},moment_humanize:function(e){return moment.utc(e).fromNow()}},watch:{chart:function(e,t){this.build_chart()}},methods:{goto_link:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i="/app/"+t+"/"+e;n&&(i=i+"#"+n),window.location=i},build_chart:function(){this.chart.chart_data&&(this.list=this.chart.chart_data)}},mounted:function(){this.build_chart()}})},1530:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("number-chart",{props:["chart"],data:function(){return{value:0}},computed:{link_url:function(){var e,t=(0,i.encode_filters_object)({timeframe:this.chart.timeframe,filters:this.chart.filters});switch(this.chart.target){case"dossier":e="/app/dossiers?filters="+t;break;case"dossier_item":default:e="/app/dossiers";break;case"message":e="/app/messaging"}return e}},watch:{chart:function(e,t){this.build_chart()}},methods:{build_chart:function(){this.chart.chart_data&&(this.value=this.chart.chart_data)}},mounted:function(){this.build_chart()}})},1437:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("charts",{filters:{},props:["currentTeam","user","dashboard","dashboard_editable"],data:function(){return{form:new SparkForm({}),loading_card:!1,selected_item:{},charts_changed:!1,charts:[]}},computed:{},watch:{dashboard:function(e,t){this.charts=e.config}},methods:{add_chart:function(){var e,t={id:(0,i.uniqueId)(),color:config.CHARTS_COLORS[0],target:"dossier",type:"number",title:window.Spark.translations.new_chart_title,size:"3",style:"number",evolution:{field:"created_at",delay:"months"},group:"status",filters:null,timeframe:{field:"created_at",start_date:null,end_date:null,type:"none",duration_type:"days",duration_value:7},is_new:!0,chart_data:0};this.charts=null!==(e=this.charts)&&void 0!==e?e:[],this.charts.push(t),this.$forceUpdate(),this.charts_changed=!0,this.save()},update_chart:function(e,t){var n=this.charts.findIndex((function(t){return t.id===e}));this.charts[n]=t,this.$forceUpdate(),this.charts_changed=!0,this.save()},delete_chart:function(e){var t=this.charts.findIndex((function(t){return t.id===e}));this.charts.splice(t,1),this.$forceUpdate(),this.charts_changed=!0,this.save()},prepare_for_save:function(e){for(var t=(0,i.copyObject)(e),n=0;n<t.length;n++)delete t[n].chart_data,delete t[n].is_new;return t},init_draggable:function(){var e=this;setTimeout((function(){$("#sortable").sortable({cursor:"move",items:"> div.col-chart",snap:!0,update:function(t,n){e.charts_changed=!0}})}),2e3)},save:function(){if(this.dashboard_editable&&this.charts_changed){for(var e=[],t=$("#sortable > div.col-chart"),n=0;n<t.length;n++){var r=t[n].id,a=(0,i.get_item_by_id)(this.charts,r);a&&e.push(a)}this.$parent.update_dashboard_config(this.prepare_for_save(e)),this.charts_changed=!1}},auto_save:function(){var e=this;e.save_timer=setInterval((function(){e.save()}),1e3)}},mounted:function(){this.charts=this.dashboard.config,this.dashboard_editable&&(this.init_draggable(),this.auto_save())}})},3597:(e,t,n)=>{"use strict";n.r(t);var i=n(3620),r=n(3358);Vue.component("dashboard_list",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user"],data:function(){return{items:[],selected_item:{},page:1,loading_card:!1,loading_more:!1,loading_create:!1,loading_update:!1,form:new SparkForm({}),keywords:null,search_mode:!1,checked_ids:[],checked_all:!1,multiple_update_field:null,multi_selection_manager:{},user_settings:{},folders:[],selected_folder:{},current_folder:null,folder_item_empty:!1,type:"dashboard",folder_manager:{}}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length&&!this.folders.length}},methods:{loadItems:function(e){var t=this;t.loading_card=!0;var n=0;"undefined"!=typeof folder&&(this.current_folder=folder,n=folder.id);var i="/api/dashboards?page=1&folder_id="+n;axios.get(i).then((function(e){t.items=e.data.data,t.folder_manager.load_folders().then((function(e){t.loading_card=!1,t.search_mode=!1,t.keywords=""}))})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))},loadMoreItems:function(){if(this.search_mode)this.searchLoadMore();else{this.page=this.page+1;var e=0;"undefined"!=typeof folder&&(this.current_folder=folder,e=folder.id),this.loading_more=!0;var t=this;axios.get("/api/dashboards?page="+t.page+"&folder_id="+e).then((function(e){t.items=t.items.concat(e.data.data),t.loading_more=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))}},search:function(e){if(""!=this.keywords){var t=this;t.loading_card=!0,this.page=1;var n="/api/dashboards/search/"+this.keywords+"?page=1";axios.get(n).then((function(e){t.items=e.data.data,t.folders=[],t.loading_card=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))}else this.loadItems(1)},searchLoadMore:function(){this.page=this.page+1,this.loading_more=!0;var e="/api/dashboards/search/"+this.keywords+"?page="+this.page,t=this;axios.get(e).then((function(e){t.items=t.items.concat(e.data.data),t.folders=[],t.loading_more=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))},is_home_dashboard:function(e){return e.id==this.user_settings.home_dashboard_id&&e.type==config.DASHBOARD_TYPE_CHART},is_deletable:function(e){return(!e.is_shared||e.owner_id==this.user.id)&&!e.is_locked},view:function(e){var t="/app/dashboard/"+e.id;window.location.href=t},del:function(e){this.selected_item=e,$("#modal_dashboard_del").modal("show")},confirm_del:function(){var e=this;this.form=new SparkForm({}),Spark.delete("/api/dashboard/"+e.selected_item.id,this.form).then((function(t){$("#modal_dashboard_del").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){$("#modal_dashboard_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},duplicate:function(e){Spark.post("/api/dashboard/"+e.id+"/duplicate",this.form).then((function(e){var t="/app/dashboard/"+e.id;window.location.href=t})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},create:function(){this.loading_create=!1,this.selected_item={type:"chart"},$("#modal_dashboard_create").modal("show")},confirm_create:function(){var e=this;this.form=new SparkForm(this.selected_item),$("#form_dashboard_create").valid()&&("undefined"!=typeof folder&&(this.form.folder_id=folder.id),e.loading_create=!0,Spark.post("/api/dashboards",this.form).then((function(t){var n=t.data;e.loading_create=!1;var i="/app/dashboard/"+n.id;window.location.href=i})).catch((function(t){$("#modal_dashboard_create").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_create=!1})))},updateTagsOwner:function(e){},toggle_is_shared:function(e){e.is_locked||e.owner_id!=this.user.id||(e.is_shared=!e.is_shared,this.form=new SparkForm({is_shared:e.is_shared}),Spark.put("/api/dashboard/"+e.id,this.form))}},mounted:function(){this.user_settings=user_all_settings,this.loadItems(),this.multi_selection_manager=new i.g(this,"dashboards"),this.folder_manager=new r.FolderManager(this,"dashboard")}})},793:(e,t,n)=>{"use strict";n.r(t);n(2741);Vue.component("dashboard",{filters:{},props:["currentTeam","user","dashboard_editable"],data:function(){return{form:new SparkForm({}),loading_card:!1,dashboard:{},saving_dashboard:{},selected_item:{}}},computed:{},methods:{update_dashboard_config:function(e){this.form=new SparkForm({config:e});var t="/api/dashboard/"+this.dashboard.id;Spark.put(t,this.form)},update_dashboard_title:function(){this.form=new SparkForm({title:this.dashboard.title});var e="/api/dashboard/"+this.dashboard.id;Spark.put(e,this.form)},save:function(){this.$refs.report?this.$refs.report.save():this.$refs.charts&&this.$refs.charts.save(),setTimeout((function(){notify("success",window.Spark.translations.update_success_message)}),500)},export_data:function(){this.$refs.report.export_data()}},mounted:function(){this.dashboard=dashboard}})},5137:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("report",{filters:{},props:["currentTeam","user","dashboard","dashboard_editable"],data:function(){return{form:new SparkForm({}),selected_item:{timeframe:{},filters:{"dossier-template_id":[]},basic_fields:[],forms_fields:[],advanced_config:null,scheduling:{}},report_changed:!1,show_advanced_config:!1}},watch:{selected_item:{handler:function(e,t){this.report_changed=!0},deep:!0},dashboard:function(e,t){this.load_report(e.config)}},computed:{can_export_data:function(){return this.selected_item.basic_fields.length+this.selected_item.forms_fields.length>0},uses_template_filter:function(){return(0,i.has_templates_filter)(this.selected_item.filters)}},methods:{load_report:function(e){var t,n=(0,i.copyObject)(e);n||(n={format:config.REPORTS_FORMATS.CSV_COMMA,header_type:config.REPORTS_HEADERS_TYPES.LABELS,basic_fields:[],forms_fields:[],advanced_config:null,timeframe:{field:"created_at",start_date:null,end_date:null,type:config.FILTERS_TIMEFRAMES_TYPES.PAST_INTERVAL,duration_type:"months",duration_value:3},filters:{"dossier-template_id":[]},scheduling:{enabled:0,frequency:"monthly"}}),n.filters=(0,i.is_object)(n.filters)?n.filters:{},n.timeframe=(0,i.is_object)(n.timeframe)?n.timeframe:{},n.scheduling=(0,i.is_object)(n.scheduling)?n.scheduling:{},n.filters["dossier-template_id"]=null!==(t=n.filters["dossier-template_id"])&&void 0!==t?t:[],this.selected_item=n,this.selected_item.advanced_config&&(this.show_advanced_config=!0),this.dashboard_editable||setTimeout((function(){$(".data-export .form-control, .data-export .multi-checkbox").each((function(){$(this).attr("disabled","disabled")}))}),2e3)},update_filters_and_timeframe:function(e,t){this.selected_item.filters=e,this.selected_item.timeframe=t,this.report_changed=!0},select_all_basic:function(){$(".basic-field:not(:checked)").trigger("click")},deselect_all_basic:function(){this.selected_item.basic_fields=[]},select_all_form:function(){$(".form-field:not(:checked)").trigger("click")},deselect_all_form:function(){this.selected_item.forms_fields=[]},save:function(){this.dashboard_editable&&(this.uses_template_filter||(this.selected_item.forms_fields=[]),this.report_changed&&(this.$parent.update_dashboard_config(this.selected_item),this.report_changed=!1))},auto_save:function(){var e=this;e.save_timer=setInterval((function(){e.save()}),500)},export_data:function(){var e="/api/dashboard/"+this.dashboard.id+"/export-report-data";this.form=new SparkForm({}),Spark.post(e,this.form).then((function(e){notify("success",window.Spark.translations.export_data_success_message)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},mounted:function(){this.dashboard_editable&&this.auto_save()}})},9670:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("custom_views_manager",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},props:["currentTeam","user"],data:function(){return{custom_views:null,current_view:null,mode_edit:!1,form:new SparkForm}},computed:{uses_template_filter:function(){return(0,i.has_templates_filter)(this.current_view.filters_config.filters)}},methods:{show:function(){$("#modal-manage-views").modal("show")},update_filters_and_timeframe:function(e,t){this.current_view.filters_config.timeframe=t,this.current_view.filters_config.filters=e},get_empty_column:function(){return{type:config.CUSTOM_VIEWS_COLUMNS_TYPES.native,field:"id",title:""}},get_empty_filters:function(){return{timeframe:{field:"created_at",duration_type:"days",duration_value:7,type:"none"},filters:{"dossier-template_id":[]}}},new_view:function(){this.current_view={id:0,name:window.Spark.translations.new_view_name,is_shared:0,columns_count:3,column1:this.get_empty_column(),column2:this.get_empty_column(),column3:this.get_empty_column(),column4:this.get_empty_column(),column5:this.get_empty_column(),filters_config:this.get_empty_filters()},this.mode_edit=!0},edit_view:function(e){if(e){this.current_view=e;for(var t=1;t<=5;t++){this.current_view["column"+t]||(this.current_view["column"+t]=this.get_empty_column())}this.current_view.filters_config||(this.current_view.filters_config=this.get_empty_filters()),this.current_view.filters_config.filters=(0,i.is_object)(this.current_view.filters_config.filters)?this.current_view.filters_config.filters:{},this.current_view.filters_config.timeframe=(0,i.is_object)(this.current_view.filters_config.timeframe)?this.current_view.filters_config.timeframe:{}}else this.current_view=this.new_view();this.mode_edit=!0},set_custom_views:function(e){var t=e?e.id:0;this.form=new SparkForm({custom_view_id:t}),Spark.post("/api/user/update-custom-views",this.form).then((function(e){window.location="/app/dossiers"})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},init_data:function(){var e=this;axios.get("/api/custom-views").then((function(t){e.custom_views=t.data.data,e.mode_edit=!1}))},edit_or_create:function(){$("#form-custom-view").valid()&&(this.current_view.id?this.update_custom_view():this.create_custom_view())},create_custom_view:function(){this.form=new SparkForm(this.current_view);var e=this;Spark.post("/api/custom-views",this.form).then((function(t){e.init_data()})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},update_custom_view:function(){var e="/api/custom-view/"+this.current_view.id;this.form=new SparkForm(this.current_view);var t=this;Spark.put(e,this.form).then((function(e){t.mode_edit=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},delete_view:function(e){var t="/api/custom-view/"+e.id;this.form=new SparkForm(e);var n=this;Spark.delete(t,this.form).then((function(t){var i=n.custom_views.findIndex((function(t){return t.id===e.id}));n.custom_views.splice(i,1)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},mounted:function(){this.init_data()}})},3716:()=>{Vue.component("dossier_access_rights",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},props:["currentDossier","currentTeam","user"],data:function(){return{}},computed:{},methods:{get_authorized_status:function(e){return this.currentDossier.owner_id==e.id||e.pivot&&1==abilities[e.pivot.role].view_all_applications?2:this.currentDossier.authorized_users&&this.currentDossier.authorized_users.includes(e.id)?1:0},can_update_access_right:function(){return this.currentDossier.owner_id==this.user.id||!(!role||1!=abilities[role].view_all_applications)},set_authorized_status:function(e,t){var n=this,i=new SparkForm({user_id:e.id,authorized:t});Spark.post("/api/dossier/"+n.currentDossier.id+"/set-authorized-user",i).then((function(i){n.currentDossier.authorized_users||(n.currentDossier.authorized_users=[]),t?n.currentDossier.authorized_users.push(e.id):n.currentDossier.authorized_users=n.currentDossier.authorized_users.filter((function(t){return t!==e.id}))})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},mounted:function(){}})},3923:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(7540),a=n(2739);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Vue.component("dossier_details",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},props:["currentTeam","user"],data:function(){return{currentDossier:null,selected_item:{},team_contacts:[],loading_card:!1,loading_update:!1,form:new SparkForm({}),api_base_url:"/api/dossiers",export_email:null,export_type:"zip",dossier:null,custom_fields_form:null,view_submenu_settings:!1,card_infos_edit:!1,card_advanced_edit:!1,card_edit_deadline:!1,deadline_type:null,contact_id:"234",tags_list:[],date_picker:null,temp_stage:null,modal_help_mode_list:!0,modal_help_current_video_id:"",editing_field:null,editing_html_mode:!1}},components:{Datepicker:r.Z,VueEditor:a.bR},computed:{},methods:{get_datepicker_language:function(e){return(0,i.get_datepicker_languages)()[e]},goto_section_settings:function(e){this.view_submenu_settings=!0,$("a[href='#"+e+"']").click()},load_item:function(){this.loading_card=!0,this.currentDossier=main_item,this.selected_item=main_item,this.contact_id=null,this.export_email=this.user.email,this.export_type="zip",this.display_custom_fields(),this.loading_card=!1},refresh:function(){var e=this,t="/api/dossier/"+this.currentDossier.id;axios.get(t).then((function(t){var n=t.data.data;e.currentDossier=n}))},open_messages:function(e){setTimeout((function(){var e=$("#form_clust_message_create");$("html,body").animate({scrollTop:e.offset().top},"slow")}),100),this.read_messages(e)},read_messages:function(e){setTimeout((function(){e.has_unread_messages=!1;var t=new SparkForm({});Spark.post("/api/dossier/"+e.id+"/read-messages",t)}),2e3)},del:function(e){this.selected_item=e,$("#modal_dossier_del").modal("show")},confirm_del:function(){this.form=new SparkForm({}),Spark.delete("/api/dossier/"+this.selected_item.id,this.form).then((function(e){$("#modal_dossier_del").modal("hide");window.location.href="/app/dossiers"})).catch((function(e){$("#modal_dossier_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},updateTagsOwner:function(e){var t=this;this.selected_item.new_tags=[],this.tags_list=[],e.forEach((function(e){t.tags_list.push(e),t.selected_item.new_tags.push(e.text)}))},update_with_data:function(e){for(var t=0,n=Object.entries(e);t<n.length;t++){var i=o(n[t],2),r=i[0];i[1];this.selected_item[r]=e[r]}this.confirm_update()},confirm_update:function(){var e=this;e.loading_update=!0,this.deadline_type!=config.DEADLINE_TYPE_FIXED&&(this.selected_item.deadline=null);var t=(0,i.copyObject)(this.selected_item);t.contact={};["firstname","lastname","email","phone","custom","company"].forEach((function(e){t.contact[e]=t["contact_"+e]})),t.new_tags&&(t.tags=t.new_tags),this.form=(0,i.getSparkForm)(t,["tags","conditions","title","contact","owner_id","external_id","description","stage","deadline"]),Spark.put("/api/dossier/"+t.id,this.form).then((function(t){$("#modal_dossier_update").modal("hide"),notify("success",window.Spark.translations.update_success_message),e.loading_update=!1,e.change_stage=!1})).catch((function(t){$("#modal_dossier_update").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_update=!1}))},dossier_download_email:function(e){$("#form_clust_export_email").valid()&&(this.form=new SparkForm({email:this.export_email,type:this.export_type}),Spark.post("/api/dossier/"+e.id+"/download_email",this.form).then((function(e){if(e.errors){e.errors[Object.keys(e.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else notify("success",window.Spark.translations.export_email_success_message)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)})))},dossier_sync_to_cloud:function(e){this.form=new SparkForm({}),Spark.post("/api/dossier/"+e.id+"/sync_to_cloud",this.form).then((function(e){if(e.errors){e.errors[Object.keys(e.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else notify("success",window.Spark.translations.export_cloud_success_message)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},show_todos:function(){$("#modal_dossier_todos").modal("show")},apply_stage:function(e){this.temp_stage=e,this.temp_stage.closing?$("#modal_dossier_close_with_stage").modal("show"):this.confirm_apply_stage()},confirm_apply_stage:function(){this.selected_item.stage=this.temp_stage.name,this.confirm_update(),this.temp_stage.closing&&($("#modal_dossier_close_with_stage").modal("hide"),this.selected_item.status=config.DOSSIER_STATE_CLOSED)},update_application_owner:function(e){this.selected_item.owner_id=e.id,this.selected_item.owner=(0,i.get_item_by_id)(this.currentTeam.users,e.id),this.confirm_update()},display_custom_fields:function(){this.selected_item.custom_fields&&this.selected_item.custom_fields.map((function(e){return e.choices&&""!=e.choices&&(e.choices_array=e.choices.split(",")),e}))},open_help_videos:function(){this.modal_help_mode_list=!0,$("#modal_help_videos").modal({backdrop:"static",keyboard:!1})},open_video:function(e){this.modal_help_current_video_id=e,this.modal_help_mode_list=!1},close_help_videos:function(){this.modal_help_mode_list=!0,$("#modal_help_videos").modal("hide")},start_edit_text_field:function(e,t,n){this.editing_field={name:t,type:n,caption:e},$("#modal_edit_html").modal("show")},apply_text_html:function(){this.confirm_update(),$("#modal_edit_html").modal("hide")},toggle_edit_deadline:function(){this.card_edit_deadline=!this.card_edit_deadline,this.card_edit_deadline&&(this.selected_item.deadline?this.deadline_type=config.DEADLINE_TYPE_FIXED:this.deadline_type=config.DEADLINE_TYPE_NONE),this.$forceUpdate()},renderText:function(e){return(0,i.prepareForRendering)(e)},click_custom_button:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.confirmation_needed&&!t)return this.current_custom_button=e,void $("#modal_confirm_custom_windows").modal("show");this.form=new SparkForm({custom_button_text:e.text}),Spark.post("/api/dossier/"+this.selected_item.id+"/execute-custom-button-click",this.form).then((function(e){if(e.errors){e.errors[Object.keys(e.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else notify("success",window.Spark.translations.custom_action_success_message),$("#modal_confirm_custom_windows").modal("hide")})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},mounted:function(){this.load_item()}})},9304:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("dossier_header",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},props:["currentTeam","user","parentDossier"],data:function(){return{current_dossier:{},form:new SparkForm({}),api_base_url:"/api/dossiers",dossier:null,current_custom_button:{}}},components:{},computed:{},watch:{parentDossier:function(e,t){this.load_item(e)}},methods:{refresh:function(){this.$parent.refresh()},load_item:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.current_dossier=e||this.parentDossier},close:function(){$("#modal_dossier_close").modal("show")},confirm_close:function(){var e=this;this.form=new SparkForm(this.current_dossier),Spark.post("/api/dossier/"+e.current_dossier.id+"/close",this.form).then((function(t){t.errors?notify("danger",window.Spark.translations.generic_error_message):($("#modal_dossier_close").modal("hide"),notify("success",window.Spark.translations.dossier_close_success_message),e.refresh())}))},cancel_submit:function(){var e=this;this.form=new SparkForm(this.current_dossier),Spark.post("/api/dossier/"+e.current_dossier.id+"/cancel_submit",this.form).then((function(t){t.errors?notify("danger",window.Spark.translations.generic_error_message):(notify("success",window.Spark.translations.update_success_message),e.refresh())}))},pre_approve:function(){var e=this;this.form=new SparkForm(this.current_dossier),Spark.post("/api/dossier/"+e.current_dossier.id+"/pre_approve",this.form).then((function(t){if(t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else notify("success",window.Spark.translations.update_success_message),e.refresh()}))},reopen:function(){var e=this;this.form=new SparkForm(this.current_dossier),Spark.post("/api/dossier/"+e.current_dossier.id+"/reopen",this.form).then((function(t){if(t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else document.location.reload(),notify("success",window.Spark.translations.update_success_message),e.refresh()}))},notify_recipient:function(){var e=this.current_dossier.stakeholders;e&&e.length>0&&(this.form=new SparkForm({email_subject:e[0].email_subject,email_body:e[0].email_body}),$("#modal_notify").modal("show"))},confirm_notify_recipient:function(){var e=this;Spark.post("/api/dossier/"+e.current_dossier.id+"/notify",this.form).then((function(t){if(t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else e.refresh(),$("#modal_notify").modal("hide"),notify("success",window.Spark.translations.notify_success_message)}))},show_todos:function(){$("#modal_dossier_todos").modal("show")},close_todos:function(){this.refresh(),$("#modal_dossier_todos").modal("hide")},apply_stage:function(e){this.temp_stage=e,this.temp_stage.closing?$("#modal_dossier_close_with_stage").modal("show"):this.confirm_apply_stage()},confirm_apply_stage:function(){this.current_dossier.stage=this.temp_stage.name,this.$parent.update_with_data({stage:this.temp_stage.name}),this.temp_stage.closing&&($("#modal_dossier_close_with_stage").modal("hide"),this.current_dossier.status=config.DOSSIER_STATE_CLOSED)},update_application_owner:function(e){this.current_dossier.owner_id=e.id,this.$parent.update_with_data({owner_id:e.id}),this.current_dossier.owner=(0,i.get_item_by_id)(this.currentTeam.users,e.id)},click_custom_button:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.confirmation_needed&&!t)return this.current_custom_button=e,void $("#modal_confirm_custom_windows").modal("show");this.form=new SparkForm({custom_button_text:e.text}),Spark.post("/api/dossier/"+this.current_dossier.id+"/execute-custom-button-click",this.form).then((function(e){if(e.errors){e.errors[Object.keys(e.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else notify("success",window.Spark.translations.custom_action_success_message),$("#modal_confirm_custom_windows").modal("hide"),document.location.reload()}))}},mounted:function(){this.load_item()}})},6780:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(9980),a=n.n(r),o=n(3620),s=n(7856),l=n.n(s),c=n(7540),u=n(2739);Vue.component("dossier_list_items",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},components:{draggable:a(),Datepicker:c.Z,VueEditor:u.bR},props:["parent","currentTeam","user"],data:function(){return{item:null,items:[],selected_item:{},new_upload:{},page:1,reordering:!1,single_item_display:!1,team_forms:[],team_econtracts:[],team_templates:[],team_spreadsheets:[],team_payment_plans:[],team_payment_taxes:[],parent_attachments:[],current_attachment_link:null,new_item_attachments_files:null,loading_card:!1,loading_create:!1,loading_create_many:!1,loading_upload:!1,form:new SparkForm({}),form_many:new SparkForm({}),note:null,reinit_item:!1,form_error_message:null,filters:{filter_status:"",filter_stakeholder:"",filter_visibility:"",filter_assignee:""},filters_mode:!1,filters_show_applicable:!1,display_conditions:!1,current_condition:null,current_condition_index:null,conditions_edit_mode:!1,percentCompleted:0,uploader_classes:[],display_mode:"list",form_data:null,form_buttons:[],spreadsheet_data:null,spreadsheet_buttons:[],checked_ids:[],checked_all:!1,multi_selection_manager:{},multiple_update_field:null,editing_field:null,editing_html_mode:!1}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length}},watch:{"selected_item.comments_html":function(e,t){this.selected_item.comments=l().sanitize(e)},"selected_item.instructions_html":function(e,t){this.selected_item.instructions=l().sanitize(e)}},methods:{get_datepicker_language:function(e){return(0,i.get_datepicker_languages)()[e]},prepare_items:function(e){var t=this,n=(0,i.copyObject)(e);$.each(n,(function(e,i){n[e].collapsed=!0,n[e].view_uploads=!1,n[e].advanced_edit=!1,n[e].note=l().sanitize(n[e].note),n[e].approve_status=t.get_approve_status(i)}));var r=(0,i.getUrlParameters)();if(r&&r.item_id&&1==(n=n.filter((function(e){return e.id==r.item_id}))).length){t.single_item_display=!0,n[0].view_uploads=!0;var a="files";r.item_tab&&(a=r.item_tab);var o='.nav a[href="#section_step_'+a+"_"+r.item_id+'"]';setTimeout((function(){$(o).tab("show")}),1e3)}return n},update_attachment_files:function(){this.new_item_attachments_files=document.getElementById("item_file_attachments_create").files},update_ranks:function(){for(var e=[],t=0;t<this.items.length;t++){var n=this.items[t];e.push({id:n.id,rank:t})}this.form=new SparkForm({ranks:e}),Spark.post("/api/dossierItems/"+main_item.id+"/update-ranks",this.form).then((function(e){if(e.errors){e.errors[Object.keys(e.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else;})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},loadItems:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this;t.loading_card=e;var n="/api/dossierItems/"+main_item.id;axios.get(n).then((function(e){var n=e.data.data;t.items=t.prepare_items(n),t.loading_card=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))},view:function(e){var t="/app/dossierItem/"+e.id;window.location.href=t},del:function(e){this.selected_item=e,$("#modal_item_del").modal("show")},confirm_del:function(){var e=this;this.form=new SparkForm({}),Spark.delete("/api/dossierItem/"+e.selected_item.id,this.form).then((function(t){$("#modal_item_del").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){$("#modal_item_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},add_items:function(){main_item.status!=config.DOSSIER_STATE_CLOSED?$("#modal_new_item").modal("show"):notify("danger",window.Spark.translations.error_please_reopen_dossier)},create_separator:function(e){this.loading_create=!1,this.editing_field=null;var t={visible_to_client:1};t.type=config.ITEM_TYPE_SEPARATOR,t.separator_type=e,t.rank=this.items?this.items.length:0,this.selected_item=t,$("#modal_new_item").modal("hide");$("#modal_item_create").modal("show")},create:function(e){this.loading_create=!1,this.editing_field=null;var t,n={id:null,form_id:0,econtract_id:0,spreadsheet_id:0,fileshare_approval_type:config.FILESHARE_APPROVAL_TYPES.APPROVE_ONLY,payment_type:config.PAYMENT_DATA_TYPES.PAYMENT,payment_items:[{title:"",amount:"",tax:null}],custom_type:config.TASK_ITEM_TYPES.BASIC,button_text:window.Spark.translations["default_button_"+e]};n.type=e,n.visible_to_client=1,n.auto_approve=0,n.rank=this.items?this.items.length:0,this.selected_item=n,e==config.ITEM_TYPE_FILE?t="#modal_item_create_many":e==config.ITEM_TYPE_ELSE?this.open_ticket():t="#modal_item_create",$("#modal_new_item").modal("hide"),$(""+t).modal({backdrop:"static",keyboard:!1},"show")},confirm_create:function(){var e=this,t=this,n="#modal_item_create";if($("#item_file_attachments_create").attr("disabled","disabled"),$("#form_clust_item_create").valid())if(this.selected_item.type!=config.ITEM_TYPE_SUBTEMPLATE){var r=(0,i.prepare_item_for_submit)(this.selected_item,this);this.form=new SparkForm(r),t.loading_create=!0;var a="/api/dossierItems/"+main_item.id;Spark.post(a,this.form).then((function(i){if(i.errors){var r=i.errors[Object.keys(i.errors)[0]][0];e.form_error_message=r}else i.uploads=[],t.new_item_created(i.data),$(""+n).modal("hide"),notify("success",window.Spark.translations.dossierItem_create_success_message),t.loading_create=!1})).catch((function(e){$(""+n).modal("hide"),notify("danger",window.Spark.translations.generic_error_message),t.loading_create=!1}))}else this.insert_from_template();else $("#item_file_attachments_create").removeAttr("disabled")},new_item_created:function(e){e.type==config.ITEM_TYPE_FORM?e.form_id||(window.location.href="/app/form/"+e.id+"/dossier-item/edit"):e.type==config.ITEM_TYPE_ECONTRACT?e.econtract_id||(window.location.href="/app/econtract/"+e.id+"/dossier-item/edit"):e.type==config.ITEM_TYPE_SPREADSHEET?e.spreadsheet_id||(window.location.href="/app/spreadsheet/"+e.id+"/dossier-item/edit"):e.type==config.ITEM_TYPE_FILESHARE&&((0,i.add_files_as_attachments)(config.PARENT_TYPE_DOSSIER_ITEM,e.id,this.new_item_attachments_files),$("#item_file_attachments_create").removeAttr("disabled")),this.loadItems(!1)},create_many:function(){this.loading_create_many=!1,$("#modal_item_create_many").modal("show")},confirm_create_many:function(){var e=this,t=this;if($("#form_clust_item_create_many").valid()){t.loading_create_many=!0,this.form_many=new SparkForm(this.selected_item);var n="/api/dossierItems/"+main_item.id+"/create-many";Spark.post(n,this.form_many).then((function(n){if(n.errors){var i=n.errors[Object.keys(n.errors)[0]][0];e.form_error_message=i}else t.loadItems(!1),$("#modal_item_create_many").modal("hide"),notify("success",window.Spark.translations.dossierItem_create_many_success_message),t.loading_create_many=!1})).catch((function(e){$("#modal_item_create_many").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),t.loading_create_many=!1}))}},insert_from_template:function(){var e=this;this.form=new SparkForm({template_id:this.selected_item.subtemplate_id,rank:this.selected_item.rank});var t="/api/dossierItems/"+main_item.id+"/import-from-template";Spark.post(t,this.form).then((function(t){e.loadItems(!1),$("#modal_item_create").modal("hide"),notify("success",window.Spark.translations.dossierItem_create_many_success_message),e.loading_create_many=!1})).catch((function(t){$("#modal_item_create").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_create_many=!1}))},manage_conditions:function(){$(".modal").modal("hide"),this.$parent.view_submenu_settings=!0,$('a[href="#section_profile"]').click()},fill_form:function(e){this.form_buttons=[config.SAVE_OPTIONS.SAVE_FOR_LATER,config.SAVE_OPTIONS.SAVE_AND_COMPLETE],this.selected_item=(0,i.copyObject)(e),e.type==config.ITEM_TYPE_FORM&&(this.selected_item=(0,i.copyObject)(e),this.selected_item.form_data&&(this.form_data=this.selected_item.form_data,this.display_mode="form"),$("html, body").animate({scrollTop:0},400))},save_form:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"save_for_later",n=this,r=JSON.stringify(e);this.form=new SparkForm({form_data:r,save_mode:t});var a="/api/dossierItem/"+this.selected_item.id+"/save-form";Spark.post(a,this.form).then((function(e){if(e.errors){e.errors[Object.keys(e.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else{var t=(0,i.get_item_index_by_id)(n.items,n.selected_item.id);n.items[t].status=e.status,location.reload()}}))},fill_spreadsheet:function(e){this.spreadsheet_buttons=[config.SAVE_OPTIONS.SAVE_FOR_LATER,config.SAVE_OPTIONS.SAVE_AND_COMPLETE],this.selected_item=(0,i.copyObject)(e),e.type==config.ITEM_TYPE_SPREADSHEET&&(this.selected_item=(0,i.copyObject)(e),this.selected_item.spreadsheet_data&&(this.spreadsheet_data=this.selected_item.spreadsheet_data,this.display_mode="spreadsheet"),$("html, body").animate({scrollTop:0},400))},save_spreadsheet:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"save_for_later",n=this,r=this.selected_item.spreadsheet_data;r.data=e.data,this.form=new SparkForm({spreadsheet_data:r,save_mode:t});var a="/api/dossierItem/"+this.selected_item.id+"/save-spreadsheet";Spark.post(a,this.form).then((function(e){if(e.errors){e.errors[Object.keys(e.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else{var t=(0,i.get_item_index_by_id)(n.items,n.selected_item.id);n.items[t].status=e.status,location.reload()}}))},execute_task:function(e){if(this.selected_item=(0,i.copyObject)(e),e.type==config.ITEM_TYPE_CUSTOM&&e.custom_data&&e.custom_data.type==config.TASK_ITEM_TYPES.LINK)return window.open(e.custom_data.url),void this.confirmTask();this.display_mode="task",$("html, body").animate({scrollTop:0},400)},confirmTask:function(){this.form=new SparkForm({});var e="/api/dossierItem/"+this.selected_item.id+"/execute-task";Spark.post(e,this.form).then((function(e){if(e.errors){e.errors[Object.keys(e.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else location.reload()}))},update_selected_item:function(e,t){this.selected_item[e]=t},update:function(e){switch(this.editing_field=null,this.editing_html_mode=!1,this.selected_item=(0,i.prepare_item_for_display)(e),this.selected_item.advanced_edit=!1,this.selected_item.parent_type="dossier",this.selected_item.deadline?this.selected_item.deadline_type=config.DEADLINE_TYPE_FIXED:this.selected_item.deadline_type=config.DEADLINE_TYPE_NONE,this.selected_item.type){case config.ITEM_TYPE_FILE:this.selected_item.show_extensions_field=!1;break;case config.ITEM_TYPE_FORM:this.selected_item.form_id=0;break;case config.ITEM_TYPE_ECONTRACT:this.selected_item.econtract_id=0;break;case config.ITEM_TYPE_SPREADSHEET:this.selected_item.spreadsheet_id=0}$('.nav-tabs a[href="#tab_update_item_1"]').tab("show");$("#modal_item_update").modal({backdrop:"static",keyboard:!1},"show")},confirm_update:function(){var e=this,t="#modal_item_update";if($("#form_clust_item_update").valid()){e.loading_update=!0,this.selected_item.deadline_type!=config.DEADLINE_TYPE_FIXED&&(this.selected_item.deadline=null);var n=(0,i.prepare_item_for_submit)(this.selected_item,this);(n.type==config.ITEM_TYPE_FORM||n.type==config.ITEM_TYPE_CONTRACT)&&delete n.form_data,this.form=new SparkForm(n),Spark.put("/api/dossierItem/"+e.selected_item.id,this.form).then((function(r){if(r.errors){r.errors[Object.keys(r.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else{var a=(0,i.get_item_index_by_id)(e.items,e.selected_item.id);e.items[a]=(0,i.copyObject)(n),$(""+t).modal("hide"),notify("success",window.Spark.translations.update_success_message),e.loading_update=!1,e.$forceUpdate()}})).catch((function(n){$(""+t).modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_update=!1}))}},updateRelevance:function(e,t){this.selected_item=e;var n=this;this.form=new SparkForm;var i="/api/dossierItem/"+this.selected_item.id+"/set-relevance/"+t;Spark.put(i,this.form).then((function(e){n.selected_item.status=e.data.status,notify("success",window.Spark.translations.update_success_message)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},toggle_uploads_view:function(e){void 0===e.view_uploads?e.view_uploads=!0:e.view_uploads=!e.view_uploads},approve:function(e,t){var n=this;this.selected_item=e,this.form=new SparkForm({});var i=null;i=t?"/api/dossierItem/"+e.id+"/approve":"/api/dossierItem/"+e.id+"/cancel-approval",Spark.post(i,this.form).then((function(e){n.selected_item.status=e.data.status,t?(n.selected_item.approve_status.approve_button="visible_disabled",n.selected_item.approve_status.cancel_link="visible"):(n.selected_item.approve_status.approve_button="visible_enabled",n.selected_item.approve_status.cancel_link="hidden"),notify("success",window.Spark.translations.update_success_message)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},add_note:function(e){$("#modal_note").modal("show");var t=this.parent.stakeholders,n=t[0],r=(0,i.get_stakeholders_for_mention)(t);$("#note").mention({delimiter:"@",emptyQuery:!0,users:r}),this.selected_item=e;var a=e.note;!a&&t.length>0&&(a="@"+n.mention_name+" "),this.note=a,this.reinit_item=!1},confirm_add_note:function(){var e=this;if($("#form_note").valid()){var t=jQuery.extend(!0,{},this.selected_item),n=l().sanitize(this.note);t.note=n,t.reinit_item=this.reinit_item,this.form=new SparkForm(t),Spark.post("/api/dossierItem/"+t.id+"/edit-note",this.form).then((function(t){if(t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else $("#modal_note").modal("hide"),e.selected_item.note=n,notify("success",window.Spark.translations.dossierItem_addnote_success_message)})).catch((function(e){$("#modal_note").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))}},clear_note:function(e){this.form=new SparkForm({note:""}),Spark.post("/api/dossierItem/"+e.id+"/edit-note",this.form),e.note=""},delUpload:function(e){this.selected_item=e,$("#modal_upload_del").modal("show")},confirmDelUpload:function(){var e=this,t=jQuery.extend(!0,{},this.selected_item);this.form=new SparkForm(t),Spark.delete("/api/upload/"+t.id,this.form).then((function(t){if(t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else{$("#modal_upload_del").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.dossier_item_id})),i=e.items[n].uploads,r=i.findIndex((function(t){return t.id===e.selected_item.id}));i.splice(r,1),notify("success",window.Spark.translations.dossierItem_delete_upload_success_message)}})).catch((function(e){$("#modal_note").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},file_changed:function(){this.new_upload.selected_file=this.$refs.file.files[0]},add_files:function(e){this.selected_item=e,this.$refs.file.value="",$("#file").trigger("click")},confirm_add_files:function(){var e=document.getElementById("file").files;e&&(this.selected_item.type!=config.ITEM_TYPE_FILESHARE?this.confirm_add_uploads():(0,i.add_files_as_attachments)(config.PARENT_TYPE_DOSSIER_ITEM,this.selected_item.id,e,this))},confirm_add_uploads:function(){var e=this,t=document.getElementById("file").files;if(t){var n=new FormData;n.append("dossier_item_id",this.selected_item.id);for(var i=0;i<t.length;i++){var r=t[i];n.append("files[]",r)}var a={headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(t){e.percentCompleted=Math.round(100*t.loaded/t.total),e.uploader_classes=["progress-circle","p"+e.percentCompleted],e.percentCompleted>50&&e.uploader_classes.push("over50"),e.$forceUpdate()}.bind(this)};e.loading_upload=!0,axios.post("/api/uploads/add-many",n,a).then((function(t){if(t.data.errors){var n=t.data.errors[Object.keys(t.data.errors)[0]];return e.loading_upload=!1,void notify("danger",n)}for(var i=t.data,r=0;r<i.length;r++){var a=i[r];e.selected_item.uploads.push(a),e.selected_item.status=config.DOC_STATE_RETURNED,e.selected_item.view_uploads=!0}notify("success",window.Spark.translations.attachment_create_success_message),e.loading_create=!1,e.loading_upload=!1})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_upload=!1}))}},preview:function(e){(0,i.previewFile)(e.url,e.file_type);var t="/api/upload/"+e.id+"/log-event/file_preview";Spark.post(t,new SparkForm({}))},log_download_file:function(e){var t="/api/upload/"+e.id+"/log-event/file_download";Spark.post(t,new SparkForm({}))},get_forms:function(){return axios.get("/api/forms?is_live=1")},get_econtracts:function(){return axios.get("/api/econtracts?is_live=1")},get_templates:function(){return axios.get("/api/templates?is_live=1")},get_spreadsheets:function(){return axios.get("/api/spreadsheets?is_live=1")},get_payment_plans:function(){return axios.get("/api/team-payment/plans")},get_payment_taxes:function(){return axios.get("/api/team-payment/taxes")},get_attachments:function(){return axios.get("/api/attachments/dossier/"+main_item.id)},load_lists:function(){var e=this;axios.all([e.get_forms(),e.get_econtracts(),e.get_spreadsheets(),e.get_templates(),e.get_payment_plans(),e.get_payment_taxes(),e.get_attachments()]).then(axios.spread((function(t,n,i,r,a,o,s){e.team_forms=t.data.data,e.team_econtracts=n.data.data,e.team_spreadsheets=i.data.data,e.team_templates=r.data.data,e.team_payment_plans=a.data,e.team_payment_taxes=o.data.data,e.parent_attachments=s.data.data})))},renderText:function(e){return(0,i.prepareForRendering)(e)},set_editing_field:function(e,t,n){this.editing_field={name:t,type:n,caption:e}},show_attachment_link:function(e){this.current_attachment_link=e;var t=this;setTimeout((function(){t.current_attachment_link=null}),1e4)},open_ticket:function(){(0,i.open_ticket)()},get_upload_owner:function(e){return e.uploader_id?e.uploader_type==config.UPLOADER_TYPE_CONTACT?(t=(0,i.get_item_by_id)(this.parent.stakeholders,e.uploader_id))?t.full_name:"":e.uploader_type==config.UPLOADER_TYPE_AGENT?(t=(0,i.get_item_by_id)(this.currentTeam.users,e.uploader_id))?t.name:"":null:null;var t},show_filters:function(){$("#modal_filters").modal("show")},should_display:function(e){if(e.status==config.DOC_STATE_IRRELEVANT&&!this.filters_show_applicable)return!1;var t=this.filters.filter_status==e.status||""==this.filters.filter_status||e.type==config.ITEM_TYPE_SEPARATOR;return t=(t=(t=t&&(""==this.filters.filter_stakeholder||e.assignments&&e.assignments.includes(this.filters.filter_stakeholder)))&&(""==this.filters.filter_visibility||parseInt(this.filters.filter_visibility)==e.visible_to_client))&&(""==this.filters.filter_assignee||parseInt(this.filters.filter_assignee)==e.assignee_id)},apply_filters:function(){this.filters=(0,i.copyObject)(this.modal_filters),$("#modal_filters").modal("hide")},clear_filters:function(){this.modal_filters={filter_status:"",filter_stakeholder:"",filter_visibility:""}},set_item_stage:function(e,t){var n=this;this.form=new SparkForm({stage:t.name}),Spark.put("/api/dossierItem/"+e.id,this.form).then((function(r){if(r.errors){r.errors[Object.keys(r.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else{var a=(0,i.get_item_index_by_id)(n.items,e.id);n.items[a].stage=t.name,notify("success",window.Spark.translations.update_success_message),n.$forceUpdate()}})).catch((function(e){$(""+modal_id).modal("hide"),notify("danger",window.Spark.translations.generic_error_message),n.loading_update=!1}))},get_approve_status:function(e){var t="visible_enabled",n="approved",r="hidden",a="hidden";if(e.approvers&&e.approvers.length){var o=(0,i.get_item_index_by_field)(e.approvers,"user_id",this.user.id),s=(0,i.get_last_item_index_having_field)(e.approvers,"approved",1);e.status==config.DOC_STATE_APPROVED?(t="visible_disabled",r="hidden",n="approved",a="hidden",o>=0&&o==s&&(r="visible")):o>=0?-1==s&&0==o?(t="visible_enabled",a="hidden",r="hidden"):o<=s?(t="visible_disabled",n="approved_by_me",a="hidden",r=o==s?"visible":"hidden"):o==s+1?(t="visible_enabled",a="hidden",r="hidden"):(t="hidden",a="visible",r="hidden"):(a="visible",r="hidden",t="hidden",r="hidden")}else e.status==config.DOC_STATE_APPROVED?(t="visible_disabled",r="visible",n="approved"):(t="visible_enabled",r="hidden");return{approve_button:t,approve_button_title:n,cancel_link:r,pending_approval_text:a}},payment_add_item:function(){this.selected_item.payment_items.push({title:"",amount:"",tax:null})},payment_remove_item:function(e){1==this.selected_item.payment_items.length?this.selected_item.payment_items=[{title:"",amount:"",tax:null}]:this.selected_item.payment_items.splice(e,1)},toggle_expand_collapse:function(e){e.collapsed=!e.collapsed}},mounted:function(){this.loadItems(),this.load_lists(),this.multi_selection_manager=new o.g(this,"dossierItems"),Vue.prototype.window=window}})},6522:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(3620);Vue.component("dossier_list",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},props:["currentTeam","user","itemsPerPage"],data:function(){return{items:[],selected_item:{},page:1,team_templates:[],team_tags:[],loading_card:!1,loading_items:!1,loading_more:!1,loading_create:!1,current_view_id:0,filters_activated:!1,loading_update:!1,form:new SparkForm({}),api_base_url:"/api/dossiers",keywords:null,search_mode:!1,custom_fields_form:null,view_submenu_settings:!1,card_infos_edit:!1,card_advanced_edit:!1,checked_ids:[],checked_all:!1,multi_selection_manager:{},multiple_update_field:null,sorting_field:"updated_at",sorting_order:"desc"}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%this.itemsPerPage==0},has_no_item:function(){return!this.items.length}},methods:{manage_views:function(){this.$refs.custom_views_manager.show()},select_filters:function(){this.$refs.filters_manager.show_filters()},build_items_url:function(){var e=this.api_base_url+"?items_per_page="+this.itemsPerPage+"&page="+this.page,t=(0,i.getUrlParameters)();return t&&t.filters?e=e+"&filters="+t.filters:this.user.custom_view&&(e=e+"&filters="+(0,i.encode_filters_object)(this.user.custom_view.filters_config)),e=e+"&with_items="+(this.user.custom_view?1:0),this.sorting_field&&(e=e+"&sorting_field="+this.sorting_field),this.sorting_order&&(e=e+"&sorting_order="+this.sorting_order),e},loadItems:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this;t.loading_card=e,t.loading_items=!0,this.page=1;var n=this.build_items_url();axios.get(n).then((function(e){t.items=e.data.data,t.loading_card=!1,t.loading_items=!1,t.search_mode=!1,t.keywords=""})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))},loadMoreItems:function(){if(this.search_mode)this.searchLoadMore();else{this.page=this.page+1,this.loading_more=!0;var e=this.build_items_url(),t=this;axios.get(e).then((function(e){t.items=t.items.concat(e.data.data),t.loading_more=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))}},search:function(e){if(""!=this.keywords){var t=this;t.loading_card=!0,this.page=1;var n=this.api_base_url+"/search/"+this.keywords+"?page=1";axios.get(n).then((function(e){t.items=e.data.data,t.loading_card=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))}else this.loadItems()},searchLoadMore:function(){this.page=this.page+1,this.loading_more=!0;var e=this.api_base_url+"/search/"+this.keywords+"?page="+this.page,t=this;axios.get(e).then((function(e){t.items=t.items.concat(e.data.data),$.each(t.items,(function(e,n){t.items[e].deadline=moment(t.items[e].deadline.date).format(window.Spark.translations.date_format)})),t.loading_more=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))},view:function(e){var t="/app/dossier/"+e.id;window.location.href=t},del:function(e){this.selected_item=e,$("#modal_dossier_del").modal("show")},confirm_del:function(){var e=this;this.form=new SparkForm({}),Spark.delete("/api/dossier/"+e.selected_item.id,this.form).then((function(t){$("#modal_dossier_del").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){$("#modal_dossier_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},get_table_field_value:function(e,t){var n=JSON.parse(this.currentTeam.dossiers_list_fields)[t];return"form_field"==n.type?this.get_form_field_value(e,n.value):e[n.value]},get_field_value_in_list:function(e,t){return t.type==config.CUSTOM_VIEWS_COLUMNS_TYPES.form_field?this.get_form_field_value(e,t.field):t.type==config.CUSTOM_VIEWS_COLUMNS_TYPES.item_status?this.get_dossier_item_status(e,t.field):this.get_dossier_native_field_value(e,t.field)},get_form_field_value:function(e,t){for(var n=e.dossier_items,i=0;i<n.length;i++){var r=n[i];if(r.type==config.ITEM_TYPE_FORM&&r.form_data)try{var a=r.form_data;if(a)for(var o=0;o<a.length;o++){var s=a[o];if(s.name==t)return s.userData?s.userData.join():""}}catch(e){}}return null},get_dossier_item_status:function(e,t){var n=parseInt(t),r=(0,i.get_item_by_field)(e.dossier_items,"template_item_id",n);return r?r.status_string:""},change_sorting_field:function(e){this.is_field_sortable(e)&&(this.sorting_field!=e?(this.sorting_field=e,this.sorting_order="asc"):this.sorting_order="asc"==this.sorting_order?"desc":"asc",this.loadItems(!1))},is_field_sortable:function(e){return["id","external_id","title","stage","deadline","scoring","created_at","updated_at","client_updated_at","status","status_string_full","contact-lastname","contact-firstname","contact-company","contact-custom","contact-email","contact-phone"].includes(e)},get_dossier_native_field_value:function(e,t){if(["created_at","updated_at","deadline","client_updated_at"].includes(t)){var n=e[t];if(n){var i=moment.utc(n).local();return i.format("L")+" "+i.format("LT")}return""}var r=t.split("-");if(2==r.length){var a=e[r[0]];return a?a[r[1]]:null}return e[t]},updateTagsOwner:function(e){var t=this;this.selected_item.tags=[],e.forEach((function(e){t.selected_item.tags.push(e.text)}))}},mounted:function(){this.loadItems(),this.multi_selection_manager=new r.g(this,"dossiers")}})},1889:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(2446),a=n.n(r),o=n(1326),s={insert:"head",singleton:!1};a()(o.Z,s);o.Z.locals;var l=n(9938),c=n.n(l),u=n(7540);Vue.component("dossier_new",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user","allow_notify_recipient"],data:function(){return{new_request:{},selected_item:{},team_contacts:[],team_templates:[],team_tags:[],loading_card:!1,loading:!1,form:new SparkForm({}),selected_template:null,form_error_message:"",api_base_url:"/api/dossiers",creation_step:1,current_contact:{},current_contacts_list:{},current_template:{},emails_view:!1,building_dossier:!0,new_dossier_url:null,multiple_send:!1,date_picker:null,current_stakeholders:[],phone_inputs:{},current_stakeholder_index:null,final_stakeholders_list:[]}},components:{vSelect:c(),Datepicker:u.Z},computed:{},methods:{get_datepicker_language:function(e){return(0,i.get_datepicker_languages)()[e]},alert_not_available:function(){notify("warning",window.Spark.translations.clients_only_feature)},updateTagsOwner:function(e){var t=this;this.new_request.tags=[],e.forEach((function(e){t.new_request.tags.push(e.text)}))},toggle_stakeholder_visibility:function(e){e.visible=!e.visible,this.$forceUpdate()},init_stakeholders_visibility:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.current_stakeholders.forEach((function(n){n.visible=!1,n.role==config.PRIMARY_STAKEHOLDER_ROLE&&(n.visible=t),e.$forceUpdate()}))},get_data_to_send:function(){this.current_template.deadline_type!=config.DEADLINE_TYPE_FIXED&&this.current_template.deadline_type!=config.DEADLINE_TYPE_RELATIVE&&(this.new_request.deadline=null);var e=(0,i.copyObject)(this.new_request);return e.new_tags&&(e.tags=e.new_tags),e},confirm_create:function(){if(this.multiple_send)return this.confirm_create_multiple();var e=this,t=this.get_data_to_send();t.stakeholders=(0,i.copyObject)(this.current_stakeholders),t.stakeholders.forEach((function(t){t.phone=e.phone_inputs[t.id].getNumber(intlTelInputUtils.numberFormat.E164),t.notify_recipient=e.notify_recipient})),t.contact=(0,i.copyObject)(t.stakeholders[0]),t.email_subject=this.current_template.email_subject,t.email_body=this.current_template.email_body,t.stakeholders.shift(),this.form=new SparkForm(t),Spark.post("/api/dossiers",this.form).then((function(t){if(t.errors){var n=t.errors[Object.keys(t.errors)[0]][0];e.form_error_message=n}else notify("success",window.Spark.translations.new_dossier_success),window.location="/app/dossier/"+t.data.id})).catch((function(e){}))},confirm_create_multiple:function(){var e=this,t=this.get_data_to_send();t.contacts_list=this.current_contacts_list.list,this.form=new SparkForm(t),Spark.post("/api/dossiers/create-many",this.form).then((function(t){if(t.errors){var n=t.errors[Object.keys(t.errors)[0]][0];e.form_error_message=n}else notify("success",window.Spark.translations.new_dossier_success),window.location="/app/dossiers"})).catch((function(e){}))},check_contacts_list:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.trim().split("\n"),r=[],a=0;a<n.length;a++){var o=n[a].trim().split(",");if(o.length<3)return!1;if(!(0,i.validate_email)(o[2].trim()))return!1;if(t){var s={title:this.current_stakeholders[0].title,firstname:o[0],lastname:o[1],email:o[2]};o.length>3&&(s.phone=o[3]),r.push(s)}}return!t||r},get_stakeholders_from_multi_list:function(){return this.check_contacts_list(this.current_contacts_list.list,!0)},load_lists:function(){this.loading_card=!0;var e=this;axios.all([axios.get("/api/templates?is_live=1&relationships=stakeholders"),axios.get("/api/tags")]).then(axios.spread((function(t,n){e.team_templates=t.data.data,e.team_tags=n.data.data,e.loading_card=!1,"undefined"!=typeof contact&&(e.current_contact=(0,i.copyObject)(contact)),"undefined"!=typeof template?e.new_request.template_id=template.id:e.team_templates&&(e.new_request.template_id=e.team_templates[0].id),e.update_template()})))},update_template:function(){var e=this;this.current_template=(0,i.get_item_by_id)(this.team_templates,this.new_request.template_id);var t=this.current_template.stakeholders[0];t.visible=!0,t.firstname=this.current_contact.firstname,t.lastname=this.current_contact.lastname,t.email=this.current_contact.email,this.current_contact.phone&&(t.phone=this.current_contact.phone),this.current_stakeholder_id=t.id,this.current_stakeholders=(0,i.copyObject)(this.current_template.stakeholders),this.init_stakeholders_visibility(),setTimeout((function(){e.load_intl_numbers_library()}),1e3),this.current_template.deadline_type==config.DEADLINE_TYPE_FIXED||this.current_template.deadline_type==config.DEADLINE_TYPE_RELATIVE?this.current_template.deadline_type==config.DEADLINE_TYPE_FIXED?this.new_request.deadline=new moment(this.current_template.deadline_date).format():this.new_request.deadline=(new moment).add(this.current_template.deadline_delay,"days").format():this.new_request.deadline=null,this.current_template.collect_custom_values&&(this.current_template.collect_custom_values_array=this.current_template.collect_custom_values.split("\n"))},previous_step:function(){this.init_stakeholders_visibility(),this.creation_step=this.creation_step-1},next_step:function(){switch(this.creation_step){case 1:this.next_step2();break;case 2:this.next_step3()}},next_step2:function(){var e=this;this.init_stakeholders_visibility(),this.loading=!0,setTimeout((function(){if(e.multiple_send){var t=e;jQuery.validator.addMethod("contacts_list_format",(function(e,n){return t.check_contacts_list(e)}),window.Spark.translations.validate_contacts_list_format),jQuery.validator.addMethod("contacts_list_count",(function(e,t){return e.trim().split("\n").length<=config.MAX_NEW_MULTIPLE_CONTACTS}),window.Spark.translations.validate_contacts_list_count),$("#form_step1").validate({rules:{contacts_list:{contacts_list_format:!0,contacts_list_count:!0}}}),e.final_stakeholders_list=e.get_stakeholders_from_multi_list()}else jQuery.validator.addMethod("lettersonly",(function(e,t){return this.optional(t)||e==e.match(/^[A-Za-z\u00C0-\u017F\s\-]+$/)}),window.Spark.translations.validate_letters_only),$("#form_step1").validate({rules:{contact_lastname:{lettersonly:!0},contact_firstname:{lettersonly:!0}}}),e.final_stakeholders_list=e.current_stakeholders;e.loading=!1,$("#form_step1").valid()?(e.init_stakeholders_visibility(!1),e.creation_step=2,$("html,body").scrollTop(0)):$("html,body").scrollTop(0)}),500)},next_step3:function(){$("#form_step2").valid()&&(this.creation_step=3,$("html,body").scrollTop(0))},load_intl_numbers_library:function(){var e=this;this.current_stakeholders.forEach((function(t){var n="contact_phone_"+t.id;e.phone_inputs[t.id]=(0,i.buildIntPhoneInput)(n)}))},edit_email_notification:function(e){this.current_stakeholder_index=e,$("#modal_dossier_edit_email").modal("show")}},mounted:function(){this.load_lists(),this.new_request={deadline:null,notify_recipient:this.allow_notify_recipient}}})},3743:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("dossier_public_page",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},components:{},props:["session_id"],data:function(){return{item:{},selected_item:{},loading_card:!1,items:[],client_session_id:null}},watch:{session_id:function(e,t){this.client_session_id=e}},computed:{},methods:{loadItems:function(){this.loading_card=!0,this.dossier=current_dossier,this.stakeholder=current_stakeholder;var e=current_dossier.final_items;$.each(e,(function(t,n){e[t].view_uploads=!1})),this.items=e,this.loading_card=!1},process_item:function(e){e.view_uploads=!e.view_uploads},preview:function(e){(0,i.previewFile)(e.url,e.file_type)}},mounted:function(){this.client_session_id=this.session_id,this.loadItems(),document.addEventListener("click",this.documentClick)}})},9309:(e,t,n)=>{"use strict";n.r(t);n(2741),n(9539);var i=n(3620);Vue.component("dossier_trash",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},props:["currentTeam","user"],data:function(){return{items:[],selected_item:{},page:1,team_templates:[],team_tags:[],loading_card:!1,loading_more:!1,loading_create:!1,current_view_id:0,loading_update:!1,form:new SparkForm({}),api_base_url:"/api/dossiers",keywords:null,search_mode:!1,checked_ids:[],checked_all:!1,multi_selection_manager:{},multiple_update_field:null}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length}},methods:{loadItems:function(){var e=this;e.loading_card=!0,this.page=1;var t=this.api_base_url+"?trashed=1&page="+this.page;axios.get(t).then((function(t){e.items=t.data.data,e.loading_card=!1,e.search_mode=!1,e.keywords=""})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_more=!1}))},loadMoreItems:function(){if(this.search_mode)this.searchLoadMore();else{this.page=this.page+1,this.loading_more=!0;var e=this.api_base_url+"?trashed=1&page="+this.page,t=this;axios.get(e).then((function(e){t.items=t.items.concat(e.data.data),t.loading_more=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))}},search:function(e){if(""!=this.keywords){var t=this;t.loading_card=!0,this.page=1;var n=this.api_base_url+"/search/"+this.keywords+"?trashed=1&page=1";axios.get(n).then((function(e){t.items=e.data.data,t.loading_card=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))}else this.loadItems()},searchLoadMore:function(){this.page=this.page+1,this.loading_more=!0;var e=this.api_base_url+"/search/"+this.keywords+"?trashed=1&page="+this.page,t=this;axios.get(e).then((function(e){t.items=t.items.concat(e.data.data),$.each(t.items,(function(e,n){t.items[e].deadline=moment(t.items[e].deadline.date).format(window.Spark.translations.date_format)})),t.loading_more=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))},del:function(e){this.selected_item=e,$("#modal_dossier_del").modal("show")},confirm_del:function(){var e=this;this.form=new SparkForm({}),Spark.delete("/api/dossier/"+e.selected_item.id+"/force-delete",this.form).then((function(t){$("#modal_dossier_del").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){$("#modal_dossier_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},recover:function(e){this.selected_item=e;var t=this;this.form=new SparkForm({}),Spark.post("/api/dossier/"+t.selected_item.id+"/recover",this.form).then((function(e){$("#modal_dossier_del").modal("hide");var n=t.items.findIndex((function(e){return e.id===t.selected_item.id}));t.items.splice(n,1),notify("success",window.Spark.translations.update_success_message)})).catch((function(e){$("#modal_dossier_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))}},mounted:function(){this.loadItems(),this.multi_selection_manager=new i.g(this,"dossiers")}})},18:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("filters_manager",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},props:["currentTeam","user"],data:function(){return{team_templates:[],team_tags:[],dossiers_filters:{timeframe:{field:"created_at",duration_type:"days",duration_value:7,type:"none"},filters:{"dossier-template_id":[]}}}},computed:{},methods:{update_filters_and_timeframe:function(e,t){this.dossiers_filters.timeframe=t,this.dossiers_filters.filters=e},show_filters:function(){$("#modal-dossier-filters").modal("show")},clear_filters:function(){window.location="/app/dossiers",(0,i.deleteCookie)(this.cookie_name)},apply_filters:function(){var e=this.$refs.filters_selector.get_encoded_filters();window.location="/app/dossiers?filters="+e},read_filters_from_url:function(){var e=(0,i.get_filters_timeframe_from_url)();e&&(this.dossiers_filters.timeframe=(0,i.is_object)(e.filters)?e.timeframe:{},this.dossiers_filters.filters=(0,i.is_object)(e.timeframe)?e.filters:{})}},mounted:function(){this.read_filters_from_url()}})},580:(e,t,n)=>{"use strict";n.r(t);var i=n(3358);Vue.component("econtract_create",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam"],data:function(){return{form:new SparkForm({title:""}),folder_manager:{}}},methods:{create:function(){$("#modal_econtract_create").modal("show")},confirm_create:function(){$("#form_clust_econtract_create").valid()&&("undefined"!=typeof folder&&(this.form.folder_id=folder.id),Spark.post("/api/econtracts",this.form).then((function(e){if(e.errors){e.errors[Object.keys(e.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else{notify("success",window.Spark.translations.econtract_create_success_message);var t="/app/econtract/"+e.data.id+"/econtract/edit";window.location.href=t}})).catch((function(e){$("#modal_econtract_create").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)})))}},mounted:function(){this.form.title="",this.folder_manager=new i.FolderManager(this,"econtract")}})},5284:(e,t,n)=>{"use strict";n.r(t);n(2741);function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Vue.component("econtract_document",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},components:{},props:["currentTeam","user","econtract_data","item_id","item_type"],data:function(){return{current_page:null,form:new SparkForm({}),signer_role:null,signer_role_select:"",current_item:null}},computed:{available_signing_roles:function(){if(!this.econtract_data)return[];var e=this.econtract_data,t=[];return e.forEach((function(e){e.items&&e.items.forEach((function(e){"signature"==e.type&&!e.finalized&&e.role&&t.push(e.role)}))})),t=i(new Set(t))}},methods:{add_merged_tag:function(e){this.current_page=e,$("#modal_merged_tag_selector").modal("show")},insert_merged_tag:function(e){this.current_page.insert_merged_tag(e)},add_signature_internal:function(e){this.current_page=e,this.$refs.signaturepad.show()},add_signature_external:function(e){this.current_page=e,this.available_signing_roles.length&&(this.signer_role_select=this.available_signing_roles[0],this.signer_role=this.available_signing_roles[0]),$("#modal_add_empty_signature").modal("show")},apply_esignature:function(e,t){this.current_page.apply_esignature(e,t)},confirm_add_empty_signature:function(){this.current_page.confirm_add_empty_signature(this.signer_role)},edit_item:function(e,t){this.current_page=e,this.current_item=t,$("#modal_edit_econtract_field").modal("show")},confirm_edit_item:function(){this.current_page.update(),$("#modal_edit_econtract_field").modal("hide")},delete_item:function(){this.current_page.delete_item(this.current_item),$("#modal_edit_econtract_field").modal("hide")}},mounted:function(){}})},5306:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);n(9539);Vue.component("econtract_edit",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user","item_id","item_type","parent_id"],data:function(){return{selected_item:{title:null,content:null},current_item:null,loading_card:!1,form:new SparkForm({}),form_save_to_library:new SparkForm({}),signer_role:null,econtract_data:null,econtract_status:0,share_link:!1}},computed:{},methods:{check_processing_status:function(){var e=this,t="/api/econtract-builder/"+this.item_type+"/"+this.item_id+"/status";e.econtract_status=config.ECONTRACT_STATUS_PROCESSING,axios.get(t).then((function(t){t.data==config.ECONTRACT_STATUS_INIT||t.data==config.ECONTRACT_STATUS_PROCESSING?(e.econtract_status=config.ECONTRACT_STATUS_PROCESSING,setTimeout(e.check_processing_status,1e3)):document.location.reload()}))},cancel_processing:function(){var e=this;this.form=new SparkForm({});var t="/api/econtract-builder/"+this.item_type+"/"+this.item_id+"/cancel-processing";Spark.post(t,this.form).then((function(t){if(t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else e.econtract_status=config.ECONTRACT_STATUS_INIT})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},load_econtract_data:function(){var e=this;e.loading_card=!0;var t="/api/econtract-builder/"+this.item_type+"/"+this.item_id+"/econtract_data";axios.get(t).then((function(t){e.econtract_data=t.data,e.econtract_status=(0,i.get_econtract_status)(e.econtract_data),e.loading_card=!1}))},saveToLibrary:function(){$("#modal_share_to_library").modal("show")},confirmSaveToLibrary:function(){var e=this,t="/api/templateItem/"+this.item_id+"/save-econtract-to-library";Spark.post(t,this.form_save_to_library).then((function(t){if(t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else window.location.href="/app/econtract/"+t.id+"/econtract/edit?template_id="+e.parent_id}))},save:function(){var e=this.$refs.econtract_builder;e&&e.updateServerData(!0)},close_new_builder_alert:function(){$("#modal_new_builder").modal("hide");var e=this.$refs.econtract_builder;e&&e.updateServerData(!1)},updateItemTitle:function(){this.form=new SparkForm({title:this.current_item.title});var e="/api/econtract-builder/"+this.item_type+"/"+this.item_id;Spark.put(e,this.form)}},mounted:function(){this.current_item=item,this.load_econtract_data()}})},3473:(e,t,n)=>{"use strict";n.r(t);n(2741);Vue.component("econtract_initialize",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user","econtract_data","econtract_status","item_id","item_type"],data:function(){return{loading_card:!1,form:new SparkForm({}),percentCompleted:0,loading_upload:!1,uploader_classes:[]}},computed:{},methods:{set_pdf_source:function(){var e=this,t=new FormData;t.append("file",this.$refs.file.files[0]),t.append("item_id",this.item_id),t.append("item_type",this.item_type),this.loading_upload=!0,axios.post("/api/econtract-builder/"+this.item_type+"/"+this.item_id+"/initialize",t,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:function(t){e.percentCompleted=Math.round(100*t.loaded/t.total),e.uploader_classes=["progress-circle","p"+e.percentCompleted],e.percentCompleted>50&&e.uploader_classes.push("over50")}.bind(this)}).then((function(t){if(e.loading_upload=!1,t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else e.$forceUpdate(),e.$parent.check_processing_status()})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},cancel_processing:function(){this.$parent.cancel_processing()}},mounted:function(){}})},8566:(e,t,n)=>{"use strict";n.r(t);var i=n(3620),r=n(3358);Vue.component("econtract_list",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam"],data:function(){return{items:[],page:1,loading_card:!1,loading_more:!1,form:new SparkForm({}),keywords:null,search_mode:!1,selected_item:{},checked_ids:[],checked_all:!1,multi_selection_manager:{},multiple_update_field:null,folders:[],selected_folder:{},type:"econtract",current_folder:null,folder_item_empty:!1,folder_manager:{}}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length&&!this.folders.length}},methods:{loadItems:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this;t.loading_card=e,this.page=1;var n=0;"undefined"!=typeof folder&&(this.current_folder=folder,n=folder.id);var i="/api/econtracts?page="+this.page+"&folder_id="+n;axios.get(i).then((function(e){t.items=e.data.data,t.folder_manager.load_folders().then((function(e){t.loading_card=!1,t.search_mode=!1,t.keywords=""}))})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))},loadMoreItems:function(){if(this.search_mode)this.searchLoadMore();else{this.page=this.page+1;var e=0;"undefined"!=typeof folder&&(this.current_folder=folder,e=folder.id),this.loading_more=!0;var t=this;axios.get("/api/econtracts?page="+t.page+"&folder_id="+e).then((function(e){t.items=t.items.concat(e.data.data),t.loading_more=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))}},create:function(){$("#modal_econtract_create").modal("show")},toggleIsLive:function(e){e.is_live=!e.is_live,this.form=new SparkForm({is_live:e.is_live}),Spark.put("/api/econtract/"+e.id,this.form)},duplicate:function(e){this.selected_item=e;Spark.post("/api/econtract/"+this.selected_item.id+"/duplicate",this.form).then((function(e){var t="/app/econtract/"+e.id+"/econtract/edit";window.location.href=t})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},search:function(e){if(""!=this.keywords){var t=this;t.loading_card=!0,this.page=1;var n="/api/econtracts/search/"+this.keywords+"?page=1";axios.get(n).then((function(e){t.items=e.data.data,t.folders=[],t.loading_card=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))}else this.loadItems(1)},searchLoadMore:function(){this.page=this.page+1,this.loading_more=!0;var e="/api/econtracts/search/"+this.keywords+"?page="+this.page,t=this;axios.get(e).then((function(e){t.items=t.items.concat(e.data.data),t.folders=[],t.loading_more=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))},view:function(e){var t="/app/econtract/"+e.id+"/econtract/edit";window.location.href=t},del:function(e){this.selected_item=e,$("#modal_econtract_del").modal("show")},confirm_del:function(){var e=this;e.form=new SparkForm({}),Spark.delete("/api/econtract/"+e.selected_item.id,e.form).then((function(t){$("#modal_econtract_del").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){$("#modal_econtract_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},updateTagsOwner:function(e){}},mounted:function(){this.loadItems(),this.multi_selection_manager=new i.g(this,"econtracts"),this.folder_manager=new r.FolderManager(this,"econtract")}})},4571:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("econtract_page",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},components:{},props:["currentTeam","user","econtract_data","index","can_edit","item_id","item_type"],data:function(){return{loading_card:!1,form:new SparkForm({}),page:null,current_item:null,current_html_elt:null,action_mode:null,image_loaded:!1}},computed:{},methods:{prepare_item_positions:function(){if(this.loading_card=!0,void 0!==$(".econtract-page")[this.index]&&this.image_loaded){for(var e=0;e<this.page.items.length;e++){var t=this.page.items[e];if(t){t=(0,i.copyObject)(t);var n=$(".econtract-page")[this.index].clientWidth/t.econtract_width,r=$(".econtract-page")[this.index].clientHeight/t.econtract_height;t.position_x=t.position_x*n,t.position_y=t.position_y*r,"textbox"!=t.type&&"tag"!=t.type&&"date"!=t.type&&"label"!=t.type||(t.font_size=t.font_size?t.font_size:14,t.font_family=t.font_family?t.font_family:"Arial"),"string"==typeof t.finalized&&(t.finalized=parseInt(t.finalized)),"string"==typeof t.mandatory&&(t.mandatory=parseInt(t.mandatory)),t.width=t.width*n,t.scale_x&&(t.width=t.width/t.scale_x),t.height&&(t.height=t.height*r,t.scale_y&&(t.height=t.height/t.scale_y)),this.page.items[e]=t}}this.$forceUpdate(),this.loading_card=!1}else setTimeout(this.prepare_item_positions,500)}},created:function(){},mounted:function(){this.page=this.econtract_data[this.index],this.prepare_item_positions()}})},4428:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("econtract_preview",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user","item_id","item_type","parent_id"],data:function(){return{selected_item:{title:null,content:null},loading_card:!1,form:new SparkForm({}),signer_role:null,econtract_data:null,econtract_status:0,share_link:!1}},computed:{},methods:{load_item:function(){var e=this;e.loading_card=!0;var t="/api/econtract-builder/"+this.item_type+"/"+this.item_id+"/econtract_data";axios.get(t).then((function(t){e.econtract_data=t.data,e.econtract_status=(0,i.get_econtract_status)(e.econtract_data),e.loading_card=!1,e.loading_card=!1})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_card=!1}))}},mounted:function(){this.load_item()}})},5263:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("econtract_update",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user","econtract"],data:function(){return{loading_card:!1,form:new SparkForm({})}},computed:{},methods:{update:function(){var e=(0,i.copyObject)(this.econtract);this.form=new SparkForm(e),Spark.put("/api/econtract/"+e.id,this.form).then((function(e){if(e.errors){e.errors[Object.keys(e.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else $("#modal_econtract_update").modal("hide"),notify("success",window.Spark.translations.update_success_message)})).catch((function(e){$("#modal_econtract_update").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},del:function(){$("#modal_econtract_del").modal("show")},confirm_del:function(){var e=this;e.form=new SparkForm({}),Spark.delete("/api/econtract/"+e.econtract.id,e.form).then((function(e){$("#modal_econtract_del").modal("hide");window.location.href="/app/econtracts"})).catch((function(e){$("#modal_econtract_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))}},mounted:function(){}})},8113:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(7856),a=n.n(r);Vue.component("form_edit",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user","item_type","item_id","template_id"],data:function(){return{form:new SparkForm({}),form_save_to_library:new SparkForm({}),loading_card:!1,share_link:!1,current_item:null,auto_save_id:null,form_source:null}},computed:{},methods:{getJsonFromCsv:function(){var e=this;this.form=new SparkForm({csv_data:this.form_source});Spark.post("/misc-api/form-csv-to-json",this.form).then((function(t){if(t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else e.form_source=t.json_data}))},showFormSource:function(){this.stopAutoSave(),this.form_source=JSON.stringify(this.getFormDataSource()),$("#modal_edit-source").modal("show")},saveSourceAndReload:function(){var e=JSON.parse(this.form_source);this.save(!1,e)},startAutoSave:function(){var e=this;setInterval((function(){e.formDataHasChanged()&&e.save(!1)}),1e3)},stopAutoSave:function(){this.auto_save_id&&(clearInterval(this.auto_save_id),this.auto_save_id=null)},prepareFormBuilder:function(){var e=form_builder.actions.getData("json",!0),t=JSON.parse(e);t&&t.forEach((function(e,t){var n=$("ul.frmb").children().eq(t);1==e.position_width?n.addClass("col-md-6 inline-block"):n.removeClass("col-md-6 inline-block")}))},loadFormBuilder:function(){var e=this;this.loading_card=!0;var t=$(document.getElementById("form-builder"));"function"==typeof jQuery.fn.formBuilder?t.formBuilder(form_builder_options).promise.then((function(t){form_builder=t,e.prepareFormBuilder(),e.startAutoSave(),$('li[data-type="repeatable-bloc"]').addClass("icon-copy"),e.loading_card=!1})):setTimeout(this.loadFormBuilder,1e3)},prepare_data:function(e){var t=(0,i.copyObject)(e);return t.forEach((function(e,n){("radio-group"!=e.type&&"checkbox-group"!=e.type&&"select"!=e.type||e.values.forEach((function(e,i){(""==e.value||e.value.startsWith("option-"))&&(t[n].values[i].value=t[n].values[i].label)})),"Formula"==e.subtype&&(e.formula=e.value),"number"==e.type&&e.max==e.min&&(delete e.max,delete e.min),e.value)&&(""==e.value.replace(/\{.*?\}/g,"")?e.merge_tag=e.value:delete e.merge_tag);if(e.name){var i=e.name.split("-"),r=i[i.length-1];e.name=r,e.id&&e.name!=e.id&&(e.name=e.id)}})),t},formDataHasChanged:function(){var e=form_builder.actions.getData("json",!0);e=a().sanitize(e);var t=JSON.parse(e);return JSON.stringify(global_form_data)!==JSON.stringify(t)},saveToLibrary:function(){$("#modal_share_to_library").modal("show")},confirmSaveToLibrary:function(){var e=this,t="/api/templateItem/"+this.item_id+"/save-form-to-library";Spark.post(t,this.form_save_to_library).then((function(t){if(t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else window.location.href="/app/form/"+t.id+"/form/edit?template_id="+e.template_id}))},getFormDataSource:function(){var e=form_builder.actions.getData("json",!0);e=a().sanitize(e);var t=JSON.parse(e);return this.prepare_data(t)},save:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null;n=t||this.getFormDataSource(),this.form=new SparkForm({form_data:n}),Spark.put(form_save_url,this.form).then((function(n){e&&notify("success",window.Spark.translations.update_success_message),t&&location.reload()}))},updateItemTitle:function(){this.form=new SparkForm({title:this.current_item.title});var e="/api/form-builder/"+this.item_type+"/"+this.item_id;Spark.put(e,this.form)}},mounted:function(){this.current_item=item,this.loadFormBuilder()}})},0:()=>{Vue.component("form_import",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user"],data:function(){return{items:[],form:new SparkForm({})}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length}},methods:{connect:function(e){var t="/app/forms-service/connect/"+e,n=window.screen.width/2-410,i=window.screen.height/2-350,r=window.open(t,"cloud_connect","status=no,height=600,width=800,resizable=yes,left="+n+",top="+i+",screenX="+n+",screenY="+i+",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no"),a=setInterval((function(){r.closed&&(window.location.reload(),clearInterval(a))}),100)},submitForm:function(){$("input[type=checkbox]:checked").length&&($("#form-import-forms button").prop("disabled",!0),$("#form-import-forms").submit())}},mounted:function(){}})},4648:(e,t,n)=>{"use strict";n.r(t);var i=n(3620),r=n(3358);Vue.component("form_list",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user"],data:function(){return{items:[],selected_item:{},page:1,loading_card:!1,loading_more:!1,loading_create:!1,loading_update:!1,form:new SparkForm({}),keywords:null,search_mode:!1,checked_ids:[],checked_all:!1,multi_selection_manager:{},multiple_update_field:null,folders:[],selected_folder:{},current_folder:null,folder_item_empty:!1,type:"form",folder_manager:{}}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length&&!this.folders.length}},methods:{loadItems:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this;t.loading_card=e,this.page=1;var n=0;"undefined"!=typeof folder&&(this.current_folder=folder,n=folder.id);var i="/api/forms?page="+this.page+"&folder_id="+n;axios.get(i).then((function(e){t.items=e.data.data,t.folder_manager.load_folders().then((function(e){t.loading_card=!1,t.search_mode=!1,t.keywords=""}))})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))},loadMoreItems:function(){if(this.search_mode)this.searchLoadMore();else{this.page=this.page+1;var e=0;"undefined"!=typeof folder&&(this.current_folder=folder,e=folder.id),this.loading_more=!0;var t=this;axios.get("/api/forms?page="+t.page+"&folder_id="+e).then((function(e){t.items=t.items.concat(e.data.data),t.loading_more=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))}},toggleIsLive:function(e){e.is_live=!e.is_live,this.form=new SparkForm({is_live:e.is_live}),Spark.put("/api/form/"+e.id,this.form)},search:function(e){if(""!=this.keywords){var t=this;t.loading_card=!0,this.page=1;var n="/api/forms/search/"+this.keywords+"?page=1";axios.get(n).then((function(e){t.items=e.data.data,t.folders=[],t.loading_card=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))}else this.loadItems(1)},searchLoadMore:function(){this.page=this.page+1,this.loading_more=!0;var e="/api/forms/search/"+this.keywords+"?page="+this.page,t=this;axios.get(e).then((function(e){t.items=t.items.concat(e.data.data),t.folders=[],t.loading_more=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))},view:function(e){var t="/app/form/"+e.id+"/form/edit";window.location.href=t},del:function(e){this.selected_item=e,$("#modal_form_del").modal("show")},confirm_del:function(){var e=this;this.form=new SparkForm({}),Spark.delete("/api/form/"+e.selected_item.id,this.form).then((function(t){$("#modal_form_del").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){$("#modal_form_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},duplicate:function(e){this.selected_item=e;Spark.post("/api/form/"+this.selected_item.id+"/duplicate",this.form).then((function(e){var t="/app/form/"+e.id+"/form/edit";window.location.href=t})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},create:function(){this.loading_create=!1,this.selected_item={},$("#modal_form_create").modal("show")},confirm_create:function(){var e=this;this.form=new SparkForm(this.selected_item),$("#form_clust_form_create").valid()&&(e.loading_create=!0,"undefined"!=typeof folder&&(this.form.folder_id=folder.id),Spark.post("/api/forms",this.form).then((function(t){var n=t.data;e.loading_create=!1;var i="/app/form/"+n.id+"/form/edit";window.location.href=i})).catch((function(t){$("#modal_form_create").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_create=!1})))},updateTagsOwner:function(e){}},mounted:function(){this.loadItems(),this.multi_selection_manager=new i.g(this,"forms"),this.folder_manager=new r.FolderManager(this,"form")}})},791:(e,t,n)=>{"use strict";n.r(t);var i=n(9539);Vue.component("form_preview",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user","item_id","item_type"],data:function(){return{selected_item:{},current_form:{},loading_card:!1,view_submenu_settings:!1,loading_update:!1,form:new SparkForm({}),form_data:null,form_buttons:[]}},computed:{current_form_is_empty:function(){if(this.current_form){var e=this.current_form.form_data;if(!e||!(0,i.isArray)(e)||0==e.length)return!0}}},methods:{load_item:function(){var e=this;e.loading_card=!0;var t="/api/form-builder/"+this.item_type+"/"+this.item_id+"/form_data";axios.get(t).then((function(t){e.form_data=t.data,e.form_buttons=[config.SAVE_OPTIONS.SAVE_FOR_LATER,config.SAVE_OPTIONS.SAVE_AND_COMPLETE],e.loading_card=!1})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_card=!1}))},del:function(e){this.selected_item=e,$("#modal_form_del").modal("show")},confirm_del:function(){this.form=new SparkForm({}),Spark.delete("/api/form/"+this.selected_item.id,this.form).then((function(e){window.location.href="/app/forms",$("#modal_form_del").modal("hide")})).catch((function(e){$("#modal_form_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},update:function(e){this.selected_item=e,$("#modal_form_update").modal("show")},confirm_update:function(){var e=this;$("#form_clust_form_update").valid()&&(e.loading_update=!0,this.form=new SparkForm(this.selected_item),Spark.put("/api/form/"+e.selected_item.id,this.form).then((function(t){if(t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else $("#modal_form_update").modal("hide"),notify("success",window.Spark.translations.update_success_message),e.loading_update=!1})).catch((function(t){$("#modal_form_update").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_update=!1})))}},mounted:function(){this.load_item()}})},3254:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);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 a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Vue.component("home",{props:["user","currentTeam","welcomeModal"],filters:{moment_human:function(e){return moment(e).from(moment())}},data:function(){return a({form:new SparkForm({}),dashboards:[],user_settings:{}},"form",new SparkForm({}))},computed:{},methods:{init:function(){this.user_settings=user_all_settings,(0,i.trigger_marketing_event)("identify",this.currentTeam,this.user)},load_dashboards:function(){var e=this,t="/api/dashboards?type="+config.DASHBOARD_TYPE_CHART;axios.get(t).then((function(t){e.dashboards=t.data.data})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},apply_home_dashboard:function(e){this.form=new SparkForm({home_dashboard_id:e.id}),Spark.post("/api/user/update-home-dashboard",this.form).then((function(e){location.reload()})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},displayAnnouncementPopupIfExists:function(){$("#modal_announcement_popup").modal("show")},updateLastReadAlertAnnouncement:function(){this.form=new SparkForm({email:this.user.email}),Spark.put("/api/user/last-read-alert-announcement",this.form).then((function(e){window.location.reload()}))},updateLastReadPopupAnnouncement:function(){this.form=new SparkForm({email:this.user.email}),Spark.put("/api/user/last-read-popup-announcement",this.form).then((function(e){window.location.reload()}))}},mounted:function(){this.init(),this.load_dashboards(),this.displayAnnouncementPopupIfExists()}})},8866:()=>{Vue.component("messaging_dossiers",{filters:{},props:["currentTeam","user","currentDossier"],data:function(){return{loading_card:!1,loading_more:!1,team_templates:[],template_id:0,items:[],page:1}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length}},methods:{load_templates:function(){var e=this;axios.get("/api/templates?is_live=1").then((function(t){e.team_templates=t.data.data}))},setCurrentDossier:function(e){this.$parent.currentDossier=e,setTimeout((function(){e.has_unread_messages=!1;var t=new SparkForm({});Spark.post("/api/dossier/"+e.id+"/read-messages",t)}),2e3)},loadItems:function(e){var t=this;t.loading_card=!0;var n="/api/dossiers/having-messages";this.template_id&&(n=n+"?template_id="+this.template_id),axios.get(n).then((function(e){t.items=e.data.data,t.loading_card=!1,t.items.length&&t.setCurrentDossier(t.items[0])})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))},loadMoreItems:function(){this.page=this.page+1,this.loading_more=!0;var e=this;axios.get("/api/dossiers/having-messages?page="+e.page).then((function(t){e.items=e.items.concat(t.data.data),e.loading_more=!1})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_more=!1}))}},mounted:function(){this.loadItems(),this.load_templates()}})},9784:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(2916),a=n.n(r);Vue.component("messaging_messages",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},components:{VueTagsInput:a()},props:["currentTeam","user","currentDossier"],data:function(){return{current_recipient:"",recipients:[],potential_recipients:[],loading_card:!1,items:[],page:1,selected_item:{body:""},main_item:null,form:{},display_create_form:!1,parent:null,chosen:"",editing_message:{},recipients_styles:{contact:"color: #FFFFFF; background-color: #4680ff; border: 1px solid #4680ff;",all_stakeholders:"color: #FFFFFF; background-color: #4680ff; border: 1px solid #4680ff;",agent:"color: #fc6180; background-color: transparent; border: 1px solid #fc6180;"}}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length},filtered_potential_recipients:function(){var e=this;return this.potential_recipients.filter((function(t){return-1!==t.text.toLowerCase().indexOf(e.current_recipient.toLowerCase())}))}},watch:{currentDossier:function(e,t){this.main_item=e,this.loadItems()}},methods:{init_potential_recipients_list:function(){for(var e=[],t=this.currentDossier.stakeholders,n=0;n<t.length;n++)t[n].email&&e.push({text:"@"+t[n].mention_name,style:this.recipients_styles.contact});e.push({text:"@"+window.Spark.translations.recipients_all,style:this.recipients_styles.all_stakeholders}),this.potential_recipients=e},init_recipient_list:function(){this.recipients=[{text:"@"+this.currentDossier.contact.mention_name,style:this.recipients_styles.contact}]},decorate_mentioned_users:function(e){return(0,i.decorateMentionnedUsers)(e)},loadItems:function(){if(this.currentDossier){var e=this;e.loading_card=!0,this.page=1;var t="/api/messages/"+this.currentDossier.id;axios.get(t).then((function(t){e.items=t.data.data,e.init_potential_recipients_list(),e.init_recipient_list(),e.loading_card=!1,setTimeout((function(){var e=$("#form_clust_message_create");$("html,body").animate({scrollTop:e.offset().top},"slow")}),100)})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_card=!1}))}else this.items=[]},confirm_create:function(){var e=this;if(this.recipients.length){var t=this;this.selected_item.dossier_id=this.currentDossier.id,this.selected_item.recipients=[],this.recipients.forEach((function(t){e.selected_item.recipients.push(t.text)})),this.form=(0,i.getSparkForm)(this.selected_item,["recipients","body"]),$("#form_clust_message_create").valid()&&Spark.post("/api/messages/"+this.currentDossier.id,this.form).then((function(e){var n=e.data;t.items.push(n),t.selected_item.body="",t.selected_item.is_internal=0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},update:function(e){this.editing_message=(0,i.copyObject)(e);var t=(0,i.get_stakeholders_for_mention)(this.currentDossier.stakeholders),n="#updating-body-"+e.id;setTimeout((function(){$(n).mention({delimiter:"@",emptyQuery:!0,users:t})}),1e3)},confirm_update:function(e){var t=this,n=this.editing_message.body,i=this.editing_message.id;t.editing_message={},e.body!=n&&(this.form=new SparkForm({body:n}),Spark.put("/api/message/"+i,this.form).then((function(e){var r=t.items.findIndex((function(e){return e.id===i}));t.items[r].body=n})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)})))},del:function(e){var t=this;this.form=new SparkForm({}),Spark.delete("/api/message/"+e.id,this.form).then((function(n){var i=t.items.findIndex((function(t){return t.id===e.id}));t.items.splice(i,1)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},get_author_mention_name:function(e){for(var t=this.currentDossier.stakeholders,n=0;n<t.length;n++)if(t[n].full_name==e)return t[n].mention_name;return null},reply:function(){var e=$("#form_clust_message_create");$("html,body").animate({scrollTop:e.offset().top},"slow")},renderText:function(e){return(0,i.prepareForRendering)(e)}},mounted:function(){this.loadItems()}})},6670:(e,t,n)=>{"use strict";n.r(t);n(2741);Vue.component("messaging",{filters:{},props:["currentTeam","user"],data:function(){return{currentDossier:null}},computed:{},methods:{},mounted:function(){}})},8967:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("note",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},props:["parent_type","parent_id","currentTeam","user"],data:function(){return{potential_recipients:[],notes:[],form:new SparkForm({}),new_note_content:null,loading_card:!1,editing_note:null,parent:{},recipients_styles:{contact:"color: #FFFFFF; background-color: #4680ff; border: 1px solid #4680ff;",all_stakeholders:"color: #FFFFFF; background-color: #4680ff; border: 1px solid #4680ff;",agent:"color: #fc6180; background-color: transparent; border: 1px solid #fc6180;"}}},components:{},watch:{parent_id:function(e,t){this.load_notes()}},methods:{load_notes:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(void 0!==this.parent_id){var t=this,n="/api/notes/"+this.parent_type+"/"+this.parent_id;axios.get(n).then((function(n){t.notes=n.data.data,e&&(t.init_mention_textarea("notes-"+t.parent_id),t.init_potential_recipients_list())}))}},init_mention_textarea:function(e){$("#"+e).mention({delimiter:"@",emptyQuery:!0,users:(0,i.get_users_list)(this.currentTeam,this.user)})},init_potential_recipients_list:function(){for(var e=[],t=this.currentTeam.users,n=0;n<t.length;n++)t[n].id!=this.user.id&&e.push({text:"@"+t[n].mention_name,style:this.recipients_styles.agent});e.push({text:"@"+window.Spark.translations.recipients_everyone,style:this.recipients_styles.everyone}),this.potential_recipients=e},create:function(){var e=this;if(this.new_note_content&&""!=this.new_note_content.trim()){this.form=new SparkForm({parent_id:this.parent_id,parent_type:this.parent_type,content:this.new_note_content});var t="/api/notes/"+this.parent_type+"/"+this.parent_id;Spark.post(t,this.form).then((function(t){var n=t.data;e.notes.push(n),e.new_note_content=""})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},update:function(e){var t=this;this.editing_note=(0,i.copyObject)(e);var n="updating-note-"+e.id;setTimeout((function(){t.init_mention_textarea(n)}),1e3)},confirm_update:function(e){var t=this,n=this.editing_note.content,i=this.editing_note.id;t.editing_note={},e.content!=n&&(this.form=new SparkForm({content:n}),Spark.put("/api/note/"+i,this.form).then((function(e){t.load_notes(!1)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)})))},del:function(e){var t=this;this.form=new SparkForm({}),Spark.delete("/api/note/"+e.id,this.form).then((function(e){t.load_notes(!1)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},renderText:function(e){return(0,i.prepareForRendering)(e)},decorate_mentioned_users:function(e){return(0,i.decorateMentionnedUsers)(e)}},mounted:function(){this.load_notes()}})},9642:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("onboarding",{props:["user","currentTeam","step"],data:function(){return{form:new SparkForm({})}},computed:{},methods:{finalize_onboarding:function(){Spark.post("/api/finalize-onboarding",this.form).then((function(e){if(e.errors){e.errors[Object.keys(e.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else{window.location.href="/app/templates-library"}})).catch((function(e){}))},init_onboarding:function(){0==this.step&&(0,i.trigger_marketing_event)("new-register",this.currentTeam,this.user)}},mounted:function(){this.init_onboarding()}})},2060:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("partner_program_join",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["user","currentTeam"],data:function(){return{form:new SparkForm({}),profile_edit:!1,profile:null,phone_input:null,phone:null}},computed:{},methods:{load_profile:function(){var e=this,t={name:this.currentTeam.name,email:this.user.email,website:null};this.form=new SparkForm(t),setTimeout((function(){e.load_intl_numbers_library()}),5e3)},load_intl_numbers_library:function(){"function"==typeof i.buildIntPhoneInput?this.phone_input=(0,i.buildIntPhoneInput)("phone"):setTimeout(this.load_intl_numbers_library,500)},create_profile:function(){if($("#form_clust_join_partner_program").valid()){this.form.phone=this.phone_input.getNumber(intlTelInputUtils.numberFormat.E164),Spark.post("/api/partner-program/join",this.form).then((function(e){if(e.errors){var t=e.errors[Object.keys(e.errors)[0]];notify("danger",t)}else document.location.reload()}))}},updateLogo:function(e){if(e.preventDefault(),this.$refs.logo.files.length){var t=this;this.form.startProcessing();axios.post("/api/partner-program/profile-logo",this.gatherFormData()).then((function(e){t.profile.logo_url=e.logo_url,t.form.finishProcessing()}),(function(e){t.form.setErrors(e.response.data.errors)}))}},gatherFormData:function(){var e=new FormData;return e.append("logo",this.$refs.logo.files[0]),e}},mounted:function(){this.load_profile()}})},1126:()=>{Vue.component("partner_program",{filters:{},props:["user"],data:function(){return{profile:null}},computed:{},methods:{load_profile:function(){var e=this;axios.get("/api/partner-program/profile").then((function(t){e.profile=t.data,e.form=new SparkForm(t.data)}))}},mounted:function(){this.load_profile()}})},9189:()=>{Vue.component("partner_program_profile",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["user","profile"],data:function(){return{form:new SparkForm,profile_edit:!1}},computed:{},methods:{show_profile:function(e){e&&(this.form=new SparkForm(this.profile)),this.profile_edit=e},update_profile:function(){if($("#form_clust_profile_update").valid()){var e=this;Spark.put("/api/partner-program/profile",this.form).then((function(t){if(t.errors){var n=t.errors[Object.keys(t.errors)[0]];notify("danger",n)}else e.$parent.load_profile(),e.profile_edit=!1}))}},updateLogo:function(e){if(e.preventDefault(),this.$refs.logo.files.length){var t=this;this.form.startProcessing();axios.post("/api/partner-program/profile-logo",this.gatherFormData()).then((function(e){t.profile.logo_url=e.logo_url,t.form.finishProcessing()}),(function(e){t.form.setErrors(e.response.data.errors)}))}},gatherFormData:function(){var e=new FormData;return e.append("logo",this.$refs.logo.files[0]),e}},mounted:function(){}})},3686:()=>{Vue.component("partner_program_referees",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["user","profile"],data:function(){return{items:[],page:1,loading_card:!1,loading_more:!1,form:new SparkForm({}),keywords:null,search_mode:!1}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length}},methods:{loadItems:function(e){var t=this;t.loading_card=!0;axios.get("/api/partner-program/referees?page=1").then((function(e){t.items=e.data.data,t.search_mode=!1,t.keywords="",t.loading_card=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))},loadMoreItems:function(){if(this.search_mode)this.searchLoadMore();else{this.page=this.page+1,this.loading_more=!0;var e=this;axios.get("/api/partner-program/referees?page="+e.page).then((function(t){e.items=e.items.concat(t.data.data),e.loading_more=!1})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_more=!1}))}},search:function(e){if(""!=this.keywords){var t=this;t.loading_card=!0,this.page=1;var n="/api/partner-program/referees/search/"+this.keywords+"?page=1";axios.get(n).then((function(e){t.items=e.data.data,t.loading_card=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))}else this.loadItems(1)},searchLoadMore:function(){this.page=this.page+1,this.loading_more=!0;var e="/api/econtracts/search/"+this.keywords+"?page="+this.page,t=this;axios.get(e).then((function(e){t.items=t.items.concat(e.data.data),t.loading_more=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))}},mounted:function(){this.loadItems()}})},8847:(e,t,n)=>{"use strict";n.r(t);var i=n(9539),r=n(2741);Vue.component("portal_details",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user"],data:function(){return{selected_item:{},current_portal:{},loading_card:!1,view_submenu_settings:!1,allow_duplicates:1,team_members:[],team_templates:[],team_tags:[],loading_update:!1,form:new SparkForm({})}},computed:{current_portal_is_empty:function(){if(this.current_portal){var e=this.current_portal.form_data;if(!e||!(0,i.isArray)(e)||0==e.length)return!0}}},methods:{updateTagsOwner:function(e){var t=this;this.selected_item.new_tags=[],this.tags_list=[],e.forEach((function(e){t.tags_list.push(e),t.selected_item.new_tags.push(e.text)}))},load_item:function(){this.selected_item=main_item,this.current_portal=main_item},del:function(e){this.selected_item=e,$("#modal_portal_del").modal("show")},confirm_del:function(){this.form=new SparkForm({}),Spark.delete("/api/portal/"+this.selected_item.id,this.form).then((function(e){window.location.href="/app/portals",$("#modal_portal_del").modal("hide")})).catch((function(e){$("#modal_portal_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},confirm_update:function(){var e=this;if($("#portal_clust_portal_update").valid()){e.loading_update=!0;var t=(0,r.copyObject)(this.selected_item);t.new_tags&&(t.tags=t.new_tags),this.form=new SparkForm(t),Spark.put("/api/portal/"+t.id,this.form).then((function(t){$("#modal_portal_update").modal("hide"),notify("success",window.Spark.translations.update_success_message),e.loading_update=!1})).catch((function(t){$("#modal_portal_update").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_update=!1}))}},load_lists:function(){this.loading_card=!0;var e=this;axios.all([axios.get("/api/templates?is_live=1&order_by=title"),axios.get("/api/tags")]).then(axios.spread((function(t,n){e.team_templates=t.data.data,e.team_templates&&e.team_templates.length&&(e.template_id=e.team_templates[0].id),e.team_members=e.currentTeam.users,e.team_members&&e.team_members.length&&(e.owner_id=e.team_members[0].id),e.team_tags=n.data.data,e.loading_card=!1})))}},mounted:function(){this.load_item(),this.load_lists()}})},725:(e,t,n)=>{"use strict";n.r(t);var i=n(3620),r=n(3358);Vue.component("portal_list",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user"],data:function(){return{items:[],selected_item:{},page:1,loading_card:!1,loading_more:!1,loading_create:!1,loading_update:!1,form:new SparkForm({}),keywords:null,search_mode:!1,checked_ids:[],checked_all:!1,multiple_update_field:null,multi_selection_manager:{},folders:[],selected_folder:{},type:"portal",current_folder:null,folder_item_empty:!1,folder_manager:{}}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length&&!this.folders.length}},methods:{loadItems:function(e){var t=this;t.loading_card=!0;var n=0;"undefined"!=typeof folder&&(this.current_folder=folder,n=folder.id);var i="/api/portals?page=1&folder_id="+n;axios.get(i).then((function(e){t.items=e.data.data,t.folder_manager.load_folders().then((function(e){t.loading_card=!1,t.search_mode=!1,t.keywords=""}))})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))},loadMoreItems:function(){if(this.search_mode)this.searchLoadMore();else{this.page=this.page+1;var e=0;"undefined"!=typeof folder&&(this.current_folder=folder,e=folder.id),this.loading_more=!0;var t=this;axios.get("/api/portals?page="+t.page+"&folder_id="+e).then((function(e){t.items=t.items.concat(e.data.data),t.loading_more=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))}},toggleIsLive:function(e){e.is_live=!e.is_live,this.form=new SparkForm({is_live:e.is_live}),Spark.put("/api/portal/"+e.id,this.form)},search:function(e){if(""!=this.keywords){var t=this;t.loading_card=!0,this.page=1;var n="/api/portals/search/"+this.keywords+"?page=1";axios.get(n).then((function(e){t.items=e.data.data,t.folders=[],t.loading_card=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))}else this.loadItems(1)},searchLoadMore:function(){this.page=this.page+1,this.loading_more=!0;var e="/api/portals/search/"+this.keywords+"?page="+this.page,t=this;axios.get(e).then((function(e){t.items=t.items.concat(e.data.data),t.folders=[],t.loading_more=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))},view:function(e){var t="/app/portal/"+e.id;window.location.href=t},del:function(e){this.selected_item=e,$("#modal_portal_del").modal("show")},confirm_del:function(){var e=this;this.form=new SparkForm({}),Spark.delete("/api/portal/"+e.selected_item.id,this.form).then((function(t){$("#modal_portal_del").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){$("#modal_portal_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},duplicate:function(e){Spark.post("/api/portal/"+e.id+"/duplicate",this.form).then((function(e){var t="/app/portal/"+e.id;window.location.href=t})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},create:function(){this.loading_create=!1,this.selected_item={},$("#modal_portal_create").modal("show")},confirm_create:function(){var e=this;this.form=new SparkForm(this.selected_item),$("#form_portal_create").valid()&&(e.loading_create=!0,"undefined"!=typeof folder&&(this.form.folder_id=folder.id),Spark.post("/api/portals",this.form).then((function(t){var n=t.data;e.loading_create=!1;var i="/app/portal/"+n.id;window.location.href=i})).catch((function(t){$("#modal_portal_create").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_create=!1})))},updateTagsOwner:function(e){}},mounted:function(){this.loadItems(),this.multi_selection_manager=new i.g(this,"portals"),this.folder_manager=new r.FolderManager(this,"portal")}})},9838:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("scoring",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","parent_type","parent"],components:{},watch:{parent:function(e,t){this.loadItems()}},data:function(){return{items:[],loading_card:!1,form:new SparkForm({}),new_scoring_item_title:null,can_update:!1,selected_item_index:-1,eligible_items:[],eligible_form_fields:[],eligible_form_fields_dropdown:null,selected_item:{},form_fields:[]}},methods:{loadItems:function(){this.items=this.parent.scoring_data,this.initialize_conditions()},initialize_conditions:function(){var e=this;if(this.form_fields=this.parent.form_fields,this.parent){var t=[];this.parent_type==config.PARENT_TYPE_TEMPLATE?t=this.parent.template_items:this.parent_type==config.PARENT_TYPE_DOSSIER&&(t=this.parent.dossier_items),this.eligible_items=t.filter((function(t){return t.type!==config.ITEM_TYPE_SUBTEMPLATE&&t.type!==config.ITEM_TYPE_SEPARATOR&&t.id!==e.selected_item.id}))}this.form_fields&&(this.eligible_form_fields=this.form_fields.filter((function(t){return e.selected_item.type!==config.ITEM_TYPE_FORM||t.form_id!==e.selected_item.id})),this.eligible_form_fields_dropdown=this.get_eligible_form_fields_dropdown()),this.$forceUpdate()},update_server:function(){var e=this,t="/api/"+this.parent_type+"/"+this.parent.id;this.form=new SparkForm({scoring_data:this.items}),Spark.put(t,this.form).then((function(t){e.new_scoring_item_title=""})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},del:function(e){this.selected_item_index=e,this.selected_item=(0,i.copyObject)(this.items[e]),$("#modal-del-scoring").modal("show")},confirm_del:function(){this.items.splice(this.selected_item_index,1),$("#modal-del-scoring").modal("hide"),this.update_server()},create:function(){if(this.new_scoring_item_title&&""!=this.new_scoring_item_title.trim()){var e={title:this.new_scoring_item_title,points:0,logic_operator:"AND",type:config.CONDITIONS_TYPES.LINE_ITEM,stage_name:this.parent.stages&&this.parent.stages.length?this.parent.stages[0].name:"",stage_operator:"IS_EQUAL_TO",lineitem_status:config.DOC_STATE_RETURNED,lineitem_operator:"IS_AFTER",lineitem_id:this.eligible_items&&this.eligible_items.length?this.eligible_items[0].id:"",formfield_value:"",formfield_operator:"IS_NOT_EMPTY",formfield_id:this.eligible_form_fields&&this.eligible_form_fields.length?this.eligible_form_fields[0].id:""};this.items||(this.items=[]),this.items.push(e),this.update_server()}},update:function(e){this.selected_item_index=e,this.selected_item=(0,i.copyObject)(this.items[e]),$("#modal-update-scoring").modal("show")},confirm_update:function(){$("#form-update-scoring").valid()&&(this.items[this.selected_item_index]=this.selected_item,$("#modal-update-scoring").modal("hide"),this.update_server())},get_eligible_form_fields_dropdown:function(){if(this.form_fields){var e={};return this.form_fields.forEach((function(t){e[t.form_name]||(e[t.form_name]=[]),e[t.form_name].push(t)})),e}return null}},mounted:function(){}})},7800:(e,t,n)=>{"use strict";n.r(t);var i=n(3358);Vue.component("spreadsheet_create",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam"],data:function(){return{form:new SparkForm({title:""}),folder_manager:{}}},methods:{create:function(){$("#modal_spreadsheet_create").modal("show")},confirm_create:function(){$("#form_clust_spreadsheet_create").valid()&&("undefined"!=typeof folder&&(this.form.folder_id=folder.id),Spark.post("/api/spreadsheets",this.form).then((function(e){if(e.errors){e.errors[Object.keys(e.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else{notify("success",window.Spark.translations.spreadsheet_create_success_message);var t="/app/spreadsheet/"+e.data.id+"/spreadsheet/edit";window.location.href=t}})).catch((function(e){$("#modal_spreadsheet_create").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)})))}},mounted:function(){this.form.title="",this.folder_manager=new i.FolderManager(this,"spreadsheet")}})},7995:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("spreadsheet_edit",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},props:["currentTeam","user","item_id","item_type","template_id"],data:function(){return{current_item:null,loading_card:!1,form:new SparkForm({}),form_save_to_library:new SparkForm({}),spreadsheet_data:null,spreadsheet_buttons:[0],share_link:!1,spreadsheet_settings:{columns:[],load_data:{}},columns_edit_mode:!1,editing_column_index:0,source_data:"local",editing_column:{},spreadsheet_status:0,error_load_data:!1}},computed:{},methods:{load_spreadsheet_data:function(){var e=this;e.loading_card=!0;var t="/api/spreadsheet-builder/"+this.item_type+"/"+this.item_id+"/spreadsheet_data";axios.get(t).then((function(t){var n=t.data;n&&n.data||(n=e.get_default_spreadsheet()),e.spreadsheet_data=n,e.startAutoSave(),e.item_type==config.ITEM_TYPE_SPREADSHEET&&e.load_source_config(),e.loading_card=!1}))},load_source_config:function(){var e=this,t="/api/spreadsheet/"+this.item_id;axios.get(t).then((function(t){if(e.source_data=t.data.data.source,e.source_data==config.SPREADSHEET_REMOTE_DATA_SOURCE.REMOTE&&Object.keys(t.data).length){var n=t.data.data.source_config;e.spreadsheet_settings.load_data={url:n.remote_url,format:n.remote_type,auto_load:n.remote_auto,json_index:n.remote_json_index,last_update:n.remote_last_update}}else e.spreadsheet_settings.load_data.auto_load=!1}))},saveToLibrary:function(){$("#modal_share_to_library").modal("show")},confirmSaveToLibrary:function(){var e=this,t="/api/templateItem/"+this.item_id+"/save-spreadsheet-to-library";Spark.post(t,this.form_save_to_library).then((function(t){if(t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else window.location.href="/app/spreadsheet/"+t.id+"/spreadsheet/edit?template_id="+e.template_id}))},update_server_save:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e||(e=this.spreadsheet_data),this.form=new SparkForm({spreadsheet_data:e});var n="/api/spreadsheet-builder/"+this.item_type+"/"+this.item_id;Spark.put(n,this.form).then((function(e){t&&notify("success",window.Spark.translations.update_success_message)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},get_default_spreadsheet:function(){for(var e={},t=[],n=0;n<5;n++)t.push({type:"text",width:200});for(var i=[],r=0;r<50;r++){i.push([]);for(var a=0;a<5;a++)i[r].push("")}return e.data=i,e.columns=t,e},update_settings:function(){this.spreadsheet_settings.columns=(0,i.copyObject)(this.spreadsheet_data.columns),$("#modal-spreadsheet-settings").modal("show")},confirm_update_settings:function(){var e=(0,i.copyObject)(this.spreadsheet_data);if(e.columns=this.spreadsheet_settings.columns,this.spreadsheet_data=e,this.item_type==config.ITEM_TYPE_SPREADSHEET)if(this.source_data==config.SPREADSHEET_REMOTE_DATA_SOURCE.REMOTE&&Object.keys(this.spreadsheet_settings.load_data).length)this.store_settings_load_data();else{this.form=new SparkForm({source:this.source_data});var t="/api/spreadsheet-builder/"+this.item_type+"/"+this.item_id;Spark.put(t,this.form)}this.update_server_save(e),$("#modal-spreadsheet-settings").modal("hide")},store_settings_load_data:function(){var e=this;this.loading_card=!0;var t={remote_url:this.spreadsheet_settings.load_data.url,remote_type:this.spreadsheet_settings.load_data.format,remote_auto:this.spreadsheet_settings.load_data.auto_load,remote_last_update:new Date,remote_status:config.CONFIGURATION_STATUS_NONE};this.spreadsheet_settings.load_data.format==config.SPREADSHEET_REMOTE_DATA_FORMATS.JSON&&(t.remote_json_index=this.spreadsheet_settings.load_data.json_index),this.form=new SparkForm({source:this.source_data,source_config:t});var n="/api/spreadsheet-builder/"+this.item_type+"/"+this.item_id;Spark.put(n,this.form).then((function(t){e.load_data()})).catch((function(t){e.error_load_data=!0,e.loading_card=!1}))},load_data:function(){var e=this,t="/api/spreadsheet-builder/"+this.item_type+"/"+this.item_id+"/load-data";Spark.put(t,this.form).then((function(t){e.check_processing_status()}))},check_processing_status:function(){var e=this,t="/api/spreadsheet-builder/"+this.item_type+"/"+this.item_id+"/status";e.spreadsheet_status=config.CONFIGURATION_STATUS_PENDING,axios.get(t).then((function(t){t.data==config.CONFIGURATION_STATUS_NONE||t.data==config.CONFIGURATION_STATUS_PENDING?(e.spreadsheet_status=config.CONFIGURATION_STATUS_PENDING,setTimeout(e.check_processing_status,1e3)):t.data==config.CONFIGURATION_STATUS_SUCCESS?window.location.reload():(e.loading_card=!1,e.error_load_data=!0)}))},edit_column:function(e){this.editing_column_index=e,this.editing_column=this.spreadsheet_settings.columns[e],this.columns_edit_mode=!0},confirm_edit_column:function(){this.spreadsheet_settings.columns[this.editing_column_index]=(0,i.copyObject)(this.editing_column),this.columns_edit_mode=!1,this.$forceUpdate()},refresh_data:function(){this.store_settings_load_data(),$("#modal-spreadsheet-refresh-data").modal("hide")},refresh_load_data:function(){$("#modal-spreadsheet-refresh-data").modal("show")},confirm_update_column:function(){this.editing_column.type!=config.SPREADSHEET_COLUMN_TYPES.NUMERIC&&(this.editing_column.mask=""),this.editing_column.type==config.SPREADSHEET_COLUMN_TYPES.DROPDOWN&&(this.editing_column.source=this.editing_column.source_string.split("\n")),this.editing_column.type==config.SPREADSHEET_COLUMN_TYPES.COLOR&&(this.editing_column.render="square"),this.columns_edit_mode=!1,this.$forceUpdate()},updateItemTitle:function(){this.form=new SparkForm({title:this.current_item.title});var e="/api/spreadsheet-builder/"+this.item_type+"/"+this.item_id;Spark.put(e,this.form)},save:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.$refs.spreadsheet){var t=this.$refs.spreadsheet.get_spreadsheet_data();this.update_server_save(t,e)}},startAutoSave:function(){var e=this;e.save(!1),setInterval((function(){e.save(!1)}),1e4)}},mounted:function(){this.current_item=item,this.load_spreadsheet_data()}})},2681:(e,t,n)=>{"use strict";n.r(t);var i=n(3620),r=n(3358);Vue.component("spreadsheet_list",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam"],data:function(){return{items:[],page:1,loading_card:!1,loading_more:!1,form:new SparkForm({}),keywords:null,search_mode:!1,selected_item:{},checked_ids:[],checked_all:!1,multi_selection_manager:{},multiple_update_field:null,folders:[],selected_folder:{},type:"spreadsheet",current_folder:null,folder_item_empty:!1,folder_manager:{}}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length&&!this.folders.length}},methods:{loadItems:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this;t.loading_card=e,this.page=1;var n=0;"undefined"!=typeof folder&&(this.current_folder=folder,n=folder.id);var i="/api/spreadsheets?page="+this.page+"&folder_id="+n;axios.get(i).then((function(e){t.items=e.data.data,t.folder_manager.load_folders().then((function(e){t.loading_card=!1,t.search_mode=!1,t.keywords=""}))})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))},loadMoreItems:function(){if(this.search_mode)this.searchLoadMore();else{this.page=this.page+1;var e=0;"undefined"!=typeof folder&&(this.current_folder=folder,e=folder.id),this.loading_more=!0;var t=this;axios.get("/api/spreadsheets?page="+t.page+"&folder_id="+e).then((function(e){t.items=t.items.concat(e.data.data),t.loading_more=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))}},create:function(){$("#modal_spreadsheet_create").modal("show")},toggleIsLive:function(e){e.is_live=!e.is_live,this.form=new SparkForm({is_live:e.is_live}),Spark.put("/api/spreadsheet/"+e.id,this.form)},duplicate:function(e){this.selected_item=e;Spark.post("/api/spreadsheet/"+this.selected_item.id+"/duplicate",this.form).then((function(e){var t="/app/spreadsheet/"+e.id+"/spreadsheet/edit";window.location.href=t})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},search:function(e){if(""!=this.keywords){var t=this;t.loading_card=!0,this.page=1;var n="/api/spreadsheets/search/"+this.keywords+"?page=1";axios.get(n).then((function(e){t.items=e.data.data,t.folders=[],t.loading_card=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))}else this.loadItems(1)},searchLoadMore:function(){this.page=this.page+1,this.loading_more=!0;var e="/api/spreadsheets/search/"+this.keywords+"?page="+this.page,t=this;axios.get(e).then((function(e){t.items=t.items.concat(e.data.data),t.folders=[],t.loading_more=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))},view:function(e){var t="/app/spreadsheet/"+e.id+"/spreadsheet/edit";window.location.href=t},del:function(e){this.selected_item=e,$("#modal_spreadsheet_del").modal("show")},confirm_del:function(){var e=this;e.form=new SparkForm({}),Spark.delete("/api/spreadsheet/"+e.selected_item.id,e.form).then((function(t){$("#modal_spreadsheet_del").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){$("#modal_spreadsheet_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))}},mounted:function(){this.loadItems(),this.multi_selection_manager=new i.g(this,"spreadsheets"),this.folder_manager=new r.FolderManager(this,"spreadsheet")}})},4478:()=>{Vue.component("spreadsheet_preview",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user","item_id","item_type"],data:function(){return{loading_card:!1,form:new SparkForm({}),spreadsheet_data:null,spreadsheet_buttons:[],share_link:!1}},computed:{},methods:{load_spreadsheet_data:function(){var e=this;e.loading_card=!0;var t="/api/spreadsheet-builder/"+this.item_type+"/"+this.item_id+"/spreadsheet_data";axios.get(t).then((function(t){e.spreadsheet_data=t.data,e.spreadsheet_buttons=[config.SAVE_OPTIONS.SAVE_FOR_LATER,config.SAVE_OPTIONS.SAVE_AND_COMPLETE],e.loading_card=!1}))}},mounted:function(){this.load_spreadsheet_data()}})},9024:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(9980),a=n.n(r);n(381);Vue.component("stage",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["parent_type","parent_id","currentTeam"],data:function(){return{items:[],reordering:!1,form:new SparkForm({}),new_stage_title:null,selected_item:{},loading_card:!1,renaming_item:null,deleting:!1,stages_display_type:"all",parent:{}}},components:{draggable:a()},watch:{parent_id:function(e,t){this.loadItems(),this.load_parent()}},methods:{loadItems:function(){if(void 0!==this.parent_id){var e=this,t="/api/stages/"+this.parent_type+"/"+this.parent_id;axios.get(t).then((function(t){e.items=t.data.data}))}},load_parent:function(){if(void 0!==this.parent_id){var e=this,t="/api/"+this.parent_type+"/"+this.parent_id;axios.get(t).then((function(t){e.parent=t.data.data,e.stages_display_type=e.parent.stages_display_type})),this.form.parent_id=this.parent_id,this.form.parent_type=this.parent_type}},create:function(){var e=this;if(this.new_stage_title&&""!=this.new_stage_title.trim()){this.form=new SparkForm({parent_id:this.parent_id,parent_type:this.parent_type,name:this.new_stage_title});var t="/api/stages/"+this.parent_type+"/"+this.parent_id;Spark.post(t,this.form).then((function(t){var n=t.data;e.items.push(n),e.new_stage_title=""})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},del:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.deleting=!0,this.selected_item=e,t||$("#modal-del-stage").modal("show")},confirm_del:function(){var e=this;this.form=new SparkForm({}),Spark.delete("/api/stage/"+e.selected_item.id,this.form).then((function(t){$("#modal-del-stage").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1)})).catch((function(e){$("#modal-del-stage").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},update:function(e){this.selected_item=(0,i.copyObject)(e),this.selected_item.private=!!this.selected_item.private,$("#modal-update-stage").modal("show")},confirm_update:function(){var e=this,t=this;this.form=new SparkForm(this.selected_item),Spark.put("/api/stage/"+this.selected_item.id,this.form).then((function(n){var r=(0,i.get_item_index_by_id)(t.items,t.selected_item.id);e.items[r]=t.selected_item,$("#modal-update-stage").modal("hide")})).catch((function(e){$("#modal-update-stage").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},rename:function(){var e=this;this.form=new SparkForm({name:this.renaming_item.name}),Spark.put("/api/stage/"+this.renaming_item.id,this.form).then((function(t){var n=(0,i.get_item_index_by_id)(e.items,e.renaming_item.id);e.items[n]=e.renaming_item,e.renaming_item=null})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},update_template_stages_display_type:function(){this.parent_type==config.PARENT_TYPE_TEMPLATE&&(this.form=new SparkForm({stages_display_type:this.stages_display_type}),Spark.put("/api/template/"+this.parent_id,this.form).then((function(e){notify("success",window.Spark.translations.update_success_message)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)})))},update_ranks:function(){for(var e="/api/stages/"+this.parent_type+"/"+this.parent_id+"/update-ranks",t=[],n=0;n<this.items.length;n++){var i=this.items[n];t.push({id:i.id,rank:n})}this.form=new SparkForm({ranks:t}),Spark.post(e,this.form).then((function(e){})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},mounted:function(){this.loadItems(),this.load_parent()}})},6645:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);function r(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Vue.component("stakeholder",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["parent_type","parent_id","parent","currentTeam"],data:function(){return{items:[],loading_card:!1,form:new SparkForm({}),new_stakeholder_role:null,can_update:!1,selected_item:{},edit_mode:"config",client_notification:{},list_items:[],current_assignments:[],contact_phone_input:null,cloning_step:1,cloning_item:{title:"",clones_count:1,assignments:[]}}},watch:{parent:function(e,t){this.loadItems()}},computed:{first_stakeholder_id:function(){return this.items?Math.min.apply(Math,r(this.items.map((function(e){return e.id})))):0}},methods:{show_staheholders_exceeded_modal:function(){$("#modal_stakeholders_limited").modal("show")},loadItems:function(){this.form.parent_id=this.parent_id,this.form.parent_type=this.parent_type,this.can_update=this.parent_type==config.PARENT_TYPE_DOSSIER;var e=this,t="/api/"+this.parent_type+"-items/"+this.parent_id,n="/api/stakeholders/"+this.parent_type+"/"+this.parent_id;axios.all([axios.get(t),axios.get(n)]).then(axios.spread((function(t,n){e.list_items=t.data.data,e.items=n.data.data}))).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},del:function(e){e.id!=this.first_stakeholder_id&&(this.selected_item=e,$("#modal-del-stakeholder").modal("show"))},confirm_del:function(){var e=this;this.form=new SparkForm({}),Spark.delete("/api/stakeholder/"+e.selected_item.id,this.form).then((function(t){$("#modal-del-stakeholder").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1)})).catch((function(e){$("#modal-del-stakeholder").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},create:function(){var e=this;if(this.new_stakeholder_role&&""!=this.new_stakeholder_role.trim()){this.form=new SparkForm({parent_id:this.parent_id,parent_type:this.parent_type,title:this.new_stakeholder_role});var t="/api/stakeholders/"+this.parent_type+"/"+this.parent_id;Spark.post(t,this.form).then((function(t){var n=t.data;e.items.push(n),e.new_stakeholder_role=""})).catch((function(e){$(""+modal_id).modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))}},getInvitationEmail:function(){var e,t={};return(e=this.parent_type==config.PARENT_TYPE_DOSSIER?this.parent.template:this.parent)&&(t={subject:e.email_subject,body:e.email_body}),t},get_current_assignnments:function(e){var t=[];return this.list_items.forEach((function(n){var i=n.assignments;i&&i.includes(e.role)&&t.push(n.id)})),t},renderText:function(e){return(0,i.prepareForRendering)(e)},clone:function(e){this.cloning_step=1,this.cloning_item.clones_count=1,this.cloning_item.title=e.title,this.cloning_item.id=e.id;var t={};this.list_items.forEach((function(n){var i=config.STAKEHOLDER_CLONING_OPTIONS.NONE,r=n.assignments;r&&r.includes(e.role)&&(i=config.STAKEHOLDER_CLONING_OPTIONS.DUPLICATE);var a=n.id;t[a]=i})),this.cloning_item.assignments=t,$("#modal-clone-stakeholder").modal("show")},confirm_clone:function(){var e=this,t=(0,i.copyObject)(this.cloning_item);this.form=new SparkForm(t),Spark.post("/api/stakeholder/"+this.cloning_item.id+"/clone",this.form).then((function(t){e.loadItems(),$("#modal-clone-stakeholder").modal("hide")})).catch((function(e){$("#modal-clone-stakeholder").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},update_config:function(e){var t=this;if(this.selected_item=(0,i.copyObject)(e),!this.selected_item.email_subject&&!this.selected_item.email_body){var n=this.getInvitationEmail();this.selected_item.email_subject=n.subject,this.selected_item.email_body=n.body}this.selected_item.tmp_phone=this.selected_item.phone,this.current_assignments=this.get_current_assignnments(this.selected_item),$("#modal-update-stakeholder").modal("show"),this.parent_type==config.PARENT_TYPE_TEMPLATE?$('.nav-tabs a[href="#tab_stakh_1"]').tab("show"):$('.nav-tabs a[href="#tab_stakh_2"]').tab("show"),setTimeout((function(){t.load_intl_numbers_library()}),2e3)},confirm_update:function(){var e=this;if($("#form-update-stakeholder").valid()){var t=this;this.selected_item.assignments=this.current_assignments;var n=(0,i.copyObject)(this.selected_item);this.contact_phone_input&&(n.phone=this.contact_phone_input.getNumber(intlTelInputUtils.numberFormat.E164)),this.form=new SparkForm(n),Spark.put("/api/stakeholder/"+this.selected_item.id,this.form).then((function(n){var r=(0,i.get_item_index_by_id)(t.items,t.selected_item.id);e.items[r]=t.selected_item,t.loadItems(),$("#modal-update-stakeholder").modal("hide")})).catch((function(e){$("#modal-update-stakeholder").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))}},selectAll:function(){var e=this;this.list_items.forEach((function(t){e.current_assignments.push(t.id)}))},deselectAll:function(){this.current_assignments=[]},load_intl_numbers_library:function(){"function"==typeof window.intlTelInput?this.contact_phone_input=(0,i.buildIntPhoneInput)("tmp_phone"):setTimeout(this.load_intl_numbers_library,500)}},mounted:function(){this.loadItems()}})},7174:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("support",{data:function(){return{}},methods:{open_ticket:function(){(0,i.open_ticket)()}},mounted:function(){}})},5732:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(3620);Vue.component("tag_list",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam"],data:function(){return{item:null,items:[],selected_item:{},page:1,loading_card:!1,loading_create:!1,loading_update:!1,form:new SparkForm({}),checked_ids:[],checked_all:!1,multi_selection_manager:{},multiple_update_field:null}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length}},methods:{view_dossiers:function(e){window.location.href="/app/dossiers?filter=1&tag="+e.id},loadItems:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this;t.loading_card=e;axios.get("/api/tags").then((function(e){t.items=e.data.data,t.loading_card=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))},del:function(e){this.selected_item=e,$("#modal_tag_del").modal("show")},confirm_del:function(){var e=this;this.form=new SparkForm({}),Spark.delete("/api/tag/"+e.selected_item.id,this.form).then((function(t){$("#modal_tag_del").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){$("#modal_tag_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},create:function(){this.loading_create=!1;this.selected_item={color:"#8eaef3"},$("#modal_tag_create").modal("show")},confirm_create:function(){var e=this;this.form=new SparkForm(this.selected_item),$("#form_clust_tag_create").valid()&&(e.loading_create=!0,Spark.post("/api/tags",this.form).then((function(t){if(t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else e.items.push(t.data),$("#modal_tag_create").modal("hide"),notify("success",window.Spark.translations.tag_create_success_message),e.loading_create=!1})).catch((function(t){$("#modal_tag_create").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_create=!1})))},update:function(e){this.selected_item=(0,i.copyObject)(e),$("#modal_tag_update").modal("show")},confirm_update:function(){var e=this;$("#form_clust_tag_update").valid()&&(e.loading_update=!0,this.form=(0,i.getSparkForm)(e.selected_item,["name","color"]),Spark.put("/api/tag/"+e.selected_item.id,this.form).then((function(t){if(t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else{var n=(0,i.get_item_index_by_id)(e.items,e.selected_item.id);e.items[n]=(0,i.copyObject)(e.selected_item),$("#modal_tag_update").modal("hide"),notify("success",window.Spark.translations.update_success_message),e.loading_update=!1}})).catch((function(t){$("#modal_tag_update").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_update=!1})))}},mounted:function(){this.loadItems(),this.multi_selection_manager=new r.g(this,"tags")}})},6719:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("library",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user"],data:function(){return{base_items:[],items:[],selected_item:{},loading_card:!1,loading_import:!1,form:new SparkForm({}),areas:[],languages:[],current_area:"",current_language:"",keywords:null,search_results_ids:null}},watch:{current_language:function(e,t){this.init_areas_and_languages(e),this.build_items_list()}},methods:{init_search:function(){this.keywords=null,this.search_results_ids=null},search:function(){var e=this;if(this.keywords){if(!(this.keywords.length<3)){var t=lunr((function(){var t=this;["title","description","marketing_keywords","marketing_long_description"].forEach((function(e){t.field(e)})),e.base_items.forEach((function(e){t.add(e)}))})).search(e.keywords);t.length||this.save_search("no-result");var n=[];t.forEach((function(t){var r=(0,i.get_item_by_id)(e.base_items,parseInt(t.ref));n.push(r.id)})),this.search_results_ids=n,this.build_items_list()}}else this.init_areas_and_languages(this.current_language)},save_search:function(e){this.form=new SparkForm({keywords:this.keywords,result:e}),Spark.post("/api/examples/save-search",this.form)},init_areas_and_languages:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.areas=[],this.current_area=t,this.current_language=e,this.init_search();for(var n=0;n<this.base_items.length;n++){(r=this.base_items[n])&&(this.languages.includes(r.language)||this.languages.push(r.language))}this.languages.includes(e)||(e="en");for(n=0;n<this.base_items.length;n++){var r;if((r=this.base_items[n])&&r.language==e&&(this.items.push(r),!(0,i.get_item_by_id)(this.areas,r.area_id))){var a={id:r.area_id,name:r.area_name};this.areas.push(a)}}this.$forceUpdate()},build_items_list:function(){this.items=[];for(var e=[],t=0;t<this.base_items.length;t++){var n=this.base_items[t];(this.search_results_ids?this.search_results_ids.includes(n.id):!(this.current_area!=n.area_id&&""!=this.current_area||this.current_language!=n.language&&""!=this.current_language))&&e.push(n)}this.items=e,this.$forceUpdate()},loadItems:function(){var e=this;e.loading_card=!0;axios.get("/api/examples").then((function(t){var n=[];t.data.data.forEach((function(e){e&&(e.short_description=(0,i.strip_tags)(e.description),n.push(e))})),e.base_items=n,e.init_areas_and_languages(e.user.language),e.build_items_list(),e.loading_card=!1})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_card=!1}))},view:function(e){var t="/app/template/"+e.id;window.location.href=t},update_area:function(e){this.init_areas_and_languages(this.current_language,e.id),this.build_items_list()},import_example:function(e){this.keywords&&this.save_search("success"),Spark.post("/api/example/"+e.id+"/import",this.form).then((function(e){var t="/app/template/"+e.id;window.location.href=t})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},create_template_from_scratch:function(){this.keywords&&this.save_search("fail"),this.goto_processes()},goto_processes:function(){window.location.href="/app/templates"},open_ticket:function(){(0,i.open_ticket)()}},mounted:function(){this.loadItems()}})},1693:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("automations",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["template","currentTeam"],components:{},data:function(){return{selected_item:{},items:[],loading_card:!1,edition_action:null,renaming_item:null,reordering:!1,form:new SparkForm({}),current_form_validator:null,current_form_:null,current_action:null,current_action_index:-1,current_trigger:null,current_title:"",edit_mode:null,title_edit_mode:!1,no_actions_error:!1}},watch:{template:function(e,t){this.loadItems()}},computed:{has_no_item:function(){return this.items?!this.items.length:0}},methods:{loadItems:function(){var e=this,t="/api/automations/"+this.template.id;axios.get(t).then((function(t){e.items=t.data.data})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},show_automations_exceeded_modal:function(){$("#modal_automation_limited").modal("show")},create:function(){this.selected_item={title:""},$("#modal_automation_create").modal("show")},confirm_create:function(){var e=this,t=(0,i.copyObject)(this.selected_item);this.form=new SparkForm(t),Spark.post("/api/automations/"+this.template.id,this.form).then((function(t){var n=t.data;e.open_builder(n),$("#modal_automation_create").modal("hide"),notify("success",window.Spark.translations.automation_create_success_message)})).catch((function(t){$("#modal_automation_create").modal("hide"),"maximum_automations_exceeded"in t?e.show_automations_exceeded_modal():notify("danger",window.Spark.translations.generic_error_message)}))},toggle_active:function(e){e.active=!e.active,this.form=new SparkForm({active:e.active}),Spark.put("/api/automation/"+e.id,this.form)},rename:function(){var e=this;this.form=new SparkForm({title:this.renaming_item.title}),Spark.put("/api/automation/"+this.renaming_item.id,this.form).then((function(t){var n=(0,i.get_item_index_by_id)(e.items,e.renaming_item.id);e.items[n]=e.renaming_item,e.renaming_item=null})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},open_builder:function(e){this.selected_item=e,window.location.href="/app/automation-builder/"+e.id},confirm_edit_automation:function(){this.selected_item.id?this.confirm_update():this.confirm_create()},confirm_update:function(){var e=this,t=(0,i.copyObject)(this.selected_item);this.form=new SparkForm(t),Spark.put("/api/automation/"+e.selected_item.id,this.form).then((function(t){e.loadItems(),$("#modal_automation_rename").modal("hide"),notify("success",window.Spark.translations.update_success_message)})).catch((function(e){$("#modal_automation_rename").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},duplicate:function(e){var t=this;this.selected_item=(0,i.copyObject)(e),this.form=new SparkForm(this.selected_item),Spark.post("/api/automation/"+this.selected_item.id+"/duplicate",this.form).then((function(e){var n=(0,i.get_item_index_by_id)(t.items,t.selected_item.id);t.items.splice(n,0,e.data)})).catch((function(e){"maximum_automations_exceeded"in e?$("#modal_automation_limited").modal("show"):(notify("danger",window.Spark.translations.generic_error_message),notify("danger",window.Spark.translations.generic_error_message))}))},del:function(e){this.selected_item=e,$("#modal_automation_del").modal("show")},confirm_del:function(){var e=this;this.form=new SparkForm({}),Spark.delete("/api/automation/"+e.selected_item.id,this.form).then((function(t){$("#modal_automation_del").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1)})).catch((function(e){$("#modal_automation_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},edit_title:function(){this.current_form=$("#form-automation-edit-title"),this.current_form_validator=this.current_form.validate(),this.current_form_validator.resetForm(),this.current_title=this.selected_item.title,this.title_edit_mode=!0;var e=document.getElementById("current_title");setTimeout((function(){e.focus(),e.select()}),200)},confirm_edit_title:function(){this.current_form.valid()&&(this.selected_item.title=this.current_title,this.title_edit_mode=!1)},update_ranks:function(){for(var e="/api/automations/"+this.template.id+"/update-ranks",t=[],n=0;n<this.items.length;n++){var i=this.items[n];t.push({id:i.id,rank:n})}this.form=new SparkForm({ranks:t}),Spark.post(e,this.form).then((function(e){})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},mounted:function(){}})},2229:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(4023),a=n(7540),o=n(2739);function s(e){return s="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},s(e)}Vue.component("template_details",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user"],components:{"chrome-picker":r.Chrome,Datepicker:a.Z,VueEditor:o.bR},data:function(){return{selected_item:{},page:1,loading_card:!1,loading_more:!1,loading_update:!1,form:new SparkForm({}),view_all_backgrounds:!1,view_submenu_settings:!1,view_submenu_notifications:!1,color:"#111111",date_picker:null,tags_list:[],modal_help_mode_list:!0,modal_help_current_video_id:"",editing_field:null,editing_html_mode:!1,theme_data:{},themes:[]}},computed:{background_preview_style:function(){return"background-image: url("+this.selected_item.background_url+")"}},methods:{get_datepicker_language:function(e){return(0,i.get_datepicker_languages)()[e]},init_font_selector:function(){var e=this;setTimeout((function(){$("#theme_data_font_family").fontselect({searchable:!0}),$("#theme_data_font_family").trigger("setFont",[e.theme_data.font_family])}),1e3)},load_theme_data:function(){if(this.selected_item.theme_id){var e=(0,i.get_item_by_id)(this.themes,this.selected_item.theme_id);this.theme_data=(0,i.copyObject)(e.theme_data),$("#theme_data_font_family").trigger("setFont",[e.theme_data.font_family])}},load_item:function(){this.selected_item=main_item,this.color=main_item.color,this.theme_data=main_item.theme_data?main_item.theme_data:{},this.selected_item.contact_instructions=main_item.contact_section_config?main_item.contact_section_config.instructions:{},this.themes=themes,this.init_font_selector()},del:function(e){this.selected_item=e,$("#modal_template_del").modal("show")},confirm_del:function(){this.form=new SparkForm({}),Spark.delete("/api/template/"+this.selected_item.id,this.form).then((function(e){$("#modal_template_del").modal("hide");window.location.href="/app/templates"})).catch((function(e){$("#modal_template_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},apply_theme:function(){this.selected_item.theme_id?(this.selected_item.theme_data=this.theme_data,this.selected_item.theme_data.font_family=$("#theme_data_font_family").val(),this.selected_item.theme_data.color&&(this.color=this.selected_item.theme_data.color),this.selected_item.theme_data.images_path&&(this.selected_item.background=0,this.selected_item.background_url=this.selected_item.theme_data.images_path+"/background.png")):this.theme_data={},this.confirm_update()},update:function(e){this.selected_item=e,$("#modal_template_update").modal("show")},confirm_update:function(){var e=this,t=(0,i.copyObject)(this.selected_item);this.color&&("object"===s(this.color)?t.color=this.color.hex:"string"==typeof this.color&&(t.color=this.color)),t.new_tags&&(t.tags=t.new_tags),t.contact_instructions&&(t.contact_section_config.instructions=t.contact_instructions),this.loading_update=!0,this.form=new SparkForm(t),Spark.put("/api/template/"+t.id,this.form).then((function(t){$("#modal_template_update").modal("hide"),notify("success",window.Spark.translations.update_success_message),e.loading_update=!1})).catch((function(t){$("#modal_template_update").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_update=!1}))},update_background:function(e){var t=this;t.loading_update=!0,this.form=new SparkForm({background:e}),Spark.put("/api/template/"+t.selected_item.id,this.form).then((function(n){t.selected_item.background=e})).catch((function(e){$("#modal_dossier_update").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),t.loading_update=!1}))},update_content:function(e){this.selected_item.custom_content||(this.selected_item.custom_content={});e.replace(".","-");this.selected_item.custom_content[e]=$('[data-content_id="'+e+'"]').val(),this.confirm_update()},open_help_videos:function(){this.modal_help_mode_list=!0,$("#modal_help_videos").modal({backdrop:"static",keyboard:!1})},open_video:function(e){this.modal_help_current_video_id=e,this.modal_help_mode_list=!1},close_help_videos:function(){this.modal_help_mode_list=!0,$("#modal_help_videos").modal("hide")},updateTagsOwner:function(e){var t=this;this.selected_item.new_tags=[],this.tags_list=[],e.forEach((function(e){t.tags_list.push(e),t.selected_item.new_tags.push(e.text)}))},start_edit_text_field:function(e,t,n){this.editing_field={name:t,type:n,caption:e},$("#modal_edit_html").modal("show")},apply_text_html:function(){this.confirm_update(),$("#modal_edit_html").modal("hide")},renderText:function(e){return(0,i.prepareForRendering)(e)},open_ticket:function(){(0,i.open_ticket)()}},mounted:function(){this.load_item()}})},6398:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(9980),a=n.n(r),o=n(3620),s=n(7856),l=n.n(s),c=n(7540),u=n(2739);Vue.component("template_list_items",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","parent"],components:{draggable:a(),Datepicker:c.Z,VueEditor:u.bR},data:function(){return{page_type:null,items:[],selected_item:{},template:{},page:1,reordering:!1,team_forms:[],team_econtracts:[],team_spreadsheets:[],team_templates:[],team_payment_plans:[],team_payment_taxes:[],parent_attachments:[],current_attachment_link:null,new_item_attachments_files:null,loading_card:!1,loading_more:!1,loading_create:!1,loading_create_many:!1,loading_custom:!1,loading_update:!1,form:new SparkForm({}),form_many:new SparkForm({}),form_error_message:null,checked_ids:[],checked_all:!1,multi_selection_manager:{},multiple_update_field:null,editing_field:null,editing_html_mode:!1}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length}},watch:{parent:function(e,t){this.get_attachments()},"selected_item.comments_html":function(e,t){this.selected_item.comments=l().sanitize(e)},"selected_item.instructions_html":function(e,t){this.selected_item.instructions=l().sanitize(e)}},methods:{get_datepicker_language:function(e){return(0,i.get_datepicker_languages)()[e]},update_ranks:function(){for(var e=[],t=0;t<this.items.length;t++){var n=this.items[t];e.push({id:n.id,rank:t})}this.form=new SparkForm({ranks:e,template_id:main_item.id});var i="/api/templateItems/"+main_item.id+"/update-ranks";Spark.post(i,this.form).then((function(e){})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},prepare_items:function(e){var t=(0,i.copyObject)(e);return $.each(t,(function(e,n){t[e].collapsed=!0})),t},loadItems:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this;t.loading_card=e;var n="/api/templateItems/"+main_item.id;axios.get(n).then((function(e){var n=e.data.data;t.items=t.prepare_items(n),t.loading_card=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))},loadMoreItems:function(){this.page=this.page+1,this.loading_more=!0;var e=this;axios.get("/api/templateItems/"+e.page).then((function(t){e.items=e.items.concat(t.data.data),e.loading_more=!1})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_more=!1}))},update_attachment_files:function(e){this.new_item_attachments_files=document.getElementById("item_file_attachments_"+e).files},change_order:function(e,t){this.form=new SparkForm({id:e,rank:t}),Spark.put("/api/templateItem/"+e,this.form).then((function(e){})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},view:function(e){var t="/app/templateItem/"+e.id;window.location.href=t},del:function(e){this.selected_item=e,$("#modal_item_del").modal("show")},confirm_del:function(){var e=this;this.form=new SparkForm({}),Spark.delete("/api/templateItem/"+e.selected_item.id,this.form).then((function(t){$("#modal_item_del").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){$("#modal_item_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},add_items:function(){$("#modal_new_item").modal("show")},create_separator:function(e){this.loading_create=!1,this.editing_field=null;var t={visible_to_client:1};t.type=config.ITEM_TYPE_SEPARATOR,t.separator_type=e,t.rank=this.items?this.items.length:0,"undefined"!=typeof main_item&&(t.template_id=main_item.id),this.selected_item=t,$("#modal_new_item").modal("hide");$("#modal_item_create").modal("show")},create:function(e){this.loading_create=!1,this.editing_field=null;var t,n={id:null,form_id:0,econtract_id:0,spreadsheet_id:0,fileshare_approval_type:config.FILESHARE_APPROVAL_TYPES.APPROVE_ONLY,payment_type:config.PAYMENT_DATA_TYPES.PAYMENT,payment_items:[{title:"",amount:"",tax:null}],custom_type:config.TASK_ITEM_TYPES.BASIC,button_text:window.Spark.translations["default_button_"+e]};n.type=e,n.visible_to_client=1,n.auto_approve=0,n.rank=this.items?this.items.length:0,"undefined"!=typeof main_item&&(n.template_id=main_item.id),this.selected_item=n,e==config.ITEM_TYPE_FILE?t="#modal_item_create_many":e==config.ITEM_TYPE_ELSE?this.open_ticket():t="#modal_item_create",$("#modal_new_item").modal("hide"),$(""+t).modal({backdrop:"static",keyboard:!1},"show")},confirm_create:function(){var e=this,t="#modal_item_create";if($("#item_file_attachments_create").attr("disabled","disabled"),$("#form_clust_item_create").valid()){var n=(0,i.prepare_item_for_submit)(this.selected_item,this);this.form=new SparkForm(n),e.loading_create=!0;var r="/api/templateItems/"+main_item.id;Spark.post(r,this.form).then((function(n){e.new_item_created(n.data),$(""+t).modal("hide"),notify("success",window.Spark.translations.templateItem_create_success_message),e.loading_create=!1})).catch((function(n){$(""+t).modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_create=!1}))}else $("#item_file_attachments_create").removeAttr("disabled")},new_item_created:function(e){e.type==config.ITEM_TYPE_FORM?e.form_id||(window.location.href="/app/form/"+e.id+"/template-item/edit"):e.type==config.ITEM_TYPE_SPREADSHEET?e.form_id||(window.location.href="/app/spreadsheet/"+e.id+"/template-item/edit"):e.type==config.ITEM_TYPE_ECONTRACT?e.econtract_id||(window.location.href="/app/econtract/"+e.id+"/template-item/edit"):e.type==config.ITEM_TYPE_FILESHARE&&((0,i.add_files_as_attachments)(config.PARENT_TYPE_TEMPLATE_ITEM,e.id,this.new_item_attachments_files),$("#item_file_attachments_create").removeAttr("disabled")),this.loadItems(!1)},confirm_create_many:function(){var e=this;if($("#form_clust_item_create_many").valid()){this.form_many=new SparkForm(this.selected_item);var t="/api/templateItems/"+main_item.id+"/create-many";Spark.post(t,this.form_many).then((function(t){e.loadItems(!1),$("#modal_item_create_many").modal("hide"),notify("success",window.Spark.translations.templateItem_create_many_success_message)})).catch((function(e){$("#modal_item_create_many").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))}},duplicate:function(e){var t=this;Spark.post("/api/templateItem/"+e.id+"/duplicate",new SparkForm({})).then((function(n){var i=n.data,r=t.items.findIndex((function(t){return t.id===e.id}));t.items.splice(r,0,i)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},update_selected_item:function(e,t){this.selected_item[e]=t},update:function(e){this.editing_field=null,this.editing_html_mode=!1,this.selected_item=(0,i.prepare_item_for_display)(e),this.selected_item.parent_type="template",this.selected_item.show_extensions_field=!1,$('.nav-tabs a[href="#tab_update_item_1"]').tab("show");$("#modal_item_update").modal({backdrop:"static",keyboard:!1},"show")},confirm_update:function(){var e=this,t="#modal_item_update";if($("#form_clust_item_update").valid()){this.loading_update=!0;var n=(0,i.prepare_item_for_submit)(this.selected_item,this);this.form=new SparkForm(n),Spark.put("/api/templateItem/"+e.selected_item.id,this.form).then((function(r){var a=(0,i.get_item_index_by_id)(e.items,e.selected_item.id);e.items[a]=(0,i.copyObject)(n),$(""+t).modal("hide"),notify("success",window.Spark.translations.update_success_message),e.loading_update=!1,e.$forceUpdate()})).catch((function(n){$(""+t).modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_update=!1}))}},get_forms:function(){return axios.get("/api/forms?is_live=1")},get_econtracts:function(){return axios.get("/api/econtracts?is_live=1")},get_templates:function(){return axios.get("/api/templates?is_live=1")},get_spreadsheets:function(){return axios.get("/api/spreadsheets?is_live=1")},get_payment_plans:function(){return axios.get("/api/team-payment/plans")},get_payment_taxes:function(){return axios.get("/api/team-payment/taxes")},get_attachments:function(){var e="/api/attachments/template/"+this.parent.id,t=this;axios.get(e).then((function(e){t.parent_attachments=e.data.data}))},load_lists:function(){var e=this;axios.all([e.get_forms(),e.get_econtracts(),e.get_spreadsheets(),e.get_templates(),e.get_payment_plans(),e.get_payment_taxes()]).then(axios.spread((function(t,n,i,r,a,o){e.team_forms=t.data.data,e.team_econtracts=n.data.data,e.team_spreadsheets=i.data.data,e.team_templates=r.data.data.filter((function(t){return t.id!==e.parent.id})),e.team_payment_plans=a.data,e.team_payment_taxes=o.data.data})))},renderText:function(e){return(0,i.prepareForRendering)(e)},set_editing_field:function(e,t,n){this.editing_field={name:t,type:n,caption:e},this.$forceUpdate()},show_attachment_link:function(e){this.current_attachment_link=e;var t=this;setTimeout((function(){t.current_attachment_link=null}),1e4)},open_ticket:function(){(0,i.open_ticket)()},payment_add_item:function(){this.selected_item.payment_items.push({title:"",amount:"",tax:null})},payment_remove_item:function(e){1==this.selected_item.payment_items.length?this.selected_item.payment_items=[{title:"",amount:"",tax:null}]:this.selected_item.payment_items.splice(e,1)},toggle_expand_collapse:function(e){e.collapsed=!e.collapsed}},mounted:function(){this.loadItems(),this.load_lists(),this.multi_selection_manager=new o.g(this,"templateItems")}})},9530:(e,t,n)=>{"use strict";n.r(t);var i=n(3620),r=n(3358);Vue.component("template_list",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user"],components:{},data:function(){return{items:[],selected_item:{},page:1,loading_card:!1,loading_more:!1,loading_create:!1,form:new SparkForm({}),keywords:null,search_mode:!1,checked_ids:[],checked_all:!1,multi_selection_manager:{},multiple_update_field:null,folders:[],selected_folder:{},type:"template",current_folder:null,folder_item_empty:!1,folder_manager:{}}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length&&!this.folders.length}},methods:{loadItems:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this;t.loading_card=e,this.page=1;var n=0;"undefined"!=typeof folder&&(this.current_folder=folder,n=folder.id);var i="/api/templates?page="+this.page+"&folder_id="+n;axios.get(i).then((function(e){t.items=e.data.data,t.folder_manager.load_folders().then((function(){t.loading_card=!1,t.search_mode=!1,t.keywords=""}))})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))},loadMoreItems:function(){if(this.search_mode)this.searchLoadMore();else{this.page=this.page+1;var e=0;"undefined"!=typeof folder&&(this.current_folder=folder,e=folder.id),this.loading_more=!0;var t=this;axios.get("/api/templates?page="+t.page+"&folder_id="+e).then((function(e){t.items=t.items.concat(e.data.data),t.loading_more=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))}},search:function(e){if(""!=this.keywords){var t=this;t.loading_card=!0,this.page=1;var n="/api/templates/search/"+this.keywords+"?page="+this.page;axios.get(n).then((function(e){t.items=e.data.data,t.folders=[],t.loading_card=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))}else this.loadItems()},searchLoadMore:function(){this.page=this.page+1,this.loading_more=!0;var e="/api/templates/search/"+this.keywords+"?page="+this.page,t=this;axios.get(e).then((function(e){t.items=t.items.concat(e.data.data),t.folders=[],t.loading_more=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))},view:function(e){var t="/app/template/"+e.id;window.location.href=t},toggleIsLive:function(e){e.is_live=!e.is_live,this.form=new SparkForm({is_live:e.is_live}),Spark.put("/api/template/"+e.id,this.form)},create:function(){this.loading_create=!1,this.selected_item={},$("#modal_template_create").modal("show")},confirm_create:function(){var e=this;this.form=new SparkForm(this.selected_item),$("#form_clust_template_create").valid()&&(e.loading_create=!0,"undefined"!=typeof folder&&(this.form.folder_id=folder.id),Spark.post("/api/templates",this.form).then((function(e){$("#modal_template_create").modal("hide");var t="/app/template/"+e.data.id;window.location.href=t})).catch((function(t){$("#modal_template_create").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_create=!1})))},del:function(e){this.selected_item=e,$("#modal_template_del").modal("show")},confirm_del:function(){var e=this;this.form=new SparkForm({}),Spark.delete("/api/template/"+e.selected_item.id,this.form).then((function(t){if($("#modal_template_del").modal("hide"),"undefined"!=typeof folder){var n="/api/folder-item/"+e.selected_item.id;Spark.delete(n,e.form)}var i=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(i,1),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){$("#modal_template_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},duplicate:function(e){Spark.post("/api/template/"+e.id+"/duplicate",this.form).then((function(e){var t="/app/template/"+e.id;window.location.href=t})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},preview:function(e){this.selected_item=e;var t="/api/template/"+this.selected_item.id+"/preview";axios.get(t).then((function(e){var t=e.data.data;window.open(t.public_url,"_blank")}))}},mounted:function(){this.loadItems(),this.multi_selection_manager=new i.g(this,"templates"),this.folder_manager=new r.FolderManager(this,"template")}})},4211:()=>{Vue.component("update-marketing-picture",{props:["user","team","template"],data:function(){return{form:new SparkForm({}),uploading:!1}},methods:{update:function(e){if(e.preventDefault(),this.$refs.photo.files.length){var t=this;this.form.startProcessing(),this.uploading=!0;var n="/api/example/"+this.template.id+"/update-marketing-picture";axios.post(n,this.gatherFormData()).then((function(e){t.template.background_url=e.data.background_url,t.form.finishProcessing(),t.uploading=!1}),(function(e){t.form.setErrors(e.response.data.errors),t.uploading=!1}))}},gatherFormData:function(){var e=new FormData;return e.append("photo",this.$refs.photo.files[0]),e},start_upload_marketing_picture:function(){$("#marketing_picture").trigger("click")}},computed:{urlForUpdate:function(){return"/api/example/"+this.template.id+"/update-marketing-picture"}}})},1399:()=>{Vue.component("update-template-background",{props:["user","team","template"],data:function(){return{form:new SparkForm({}),uploading:!1}},methods:{update:function(e){if(e.preventDefault(),this.$refs.photo.files.length){var t=this;this.form.startProcessing(),this.uploading=!0;var n="/api/template/"+this.template.id+"/update-background";axios.post(n,this.gatherFormData()).then((function(e){t.template.background_url=e.data.background_url,t.form.finishProcessing(),t.uploading=!1}),(function(e){t.form.setErrors(e.response.data.errors),t.uploading=!1}))}},clear_background:function(){var e=this;this.uploading=!0;var t="/api/template/"+this.template.id+"/clear-background";axios.post(t,new FormData).then((function(t){e.template.background_url=null,e.form.finishProcessing(),e.uploading=!1}),(function(t){e.form.setErrors(t.response.data.errors),e.uploading=!1,e.uploading=!1}))},gatherFormData:function(){var e=new FormData;return e.append("photo",this.$refs.photo.files[0]),e},start_upload_background:function(){$("#photo_background").trigger("click")}},computed:{urlForUpdate:function(){return"/api/template/"+this.template.id+"/update-background"}}})},2415:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("themes",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["currentTeam","user"],data:function(){return{base_items:[],items:[],selected_item:{},loading_card:!1,loading_import:!1,form:new SparkForm({}),sorting_field:"created_at-desc",current_screenshot_index:0,max_screenshots:6,confirm_mode:!1,import_theme_error:!1,team_themes:[],screenshots_list:["list-web","list-mobile","welcome-web","file-web","submit-web","messaging-web","infos-web","profile-web","icons-web","customization"]}},computed:{current_preview_image:function(){var e=null;return this.selected_item&&this.selected_item.theme_data&&(e=this.selected_item.theme_data.images_path+"/screenshots/screenshot-"+this.screenshots_list[this.current_screenshot_index]+".png"),e},can_import_theme:function(){return!(!this.selected_item||!this.selected_item.theme_data)&&!(0,i.get_item_by_id)(this.team_themes,this.selected_item.id)}},methods:{loadItems:function(){var e=this;this.max_screenshots=this.screenshots_list.length-1,this.team_themes=themes,this.loading_card=!0;var t="/api/themes?sorting_field="+this.sorting_field;axios.get(t).then((function(t){e.items=t.data,e.loading_card=!1})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_card=!1}))},view_theme:function(e){this.selected_item=e,this.current_screenshot_index=0,this.confirm_mode=!1,this.import_theme_error=!1,$("#modal_view_theme").modal("show")},import_theme:function(e){var t=this,n=this;this.form=new SparkForm({}),Spark.post("/api/theme/"+e.id+"/import",this.form).then((function(i){i.errors?n.import_theme_error=!0:(n.team_themes.push(e),t.$forceUpdate())})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},mounted:function(){this.loadItems()}})},8090:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(9980),a=n.n(r),o=n(7540);Vue.component("todo",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["parent_type","parent_id","currentTeam"],components:{draggable:a(),Datepicker:o.Z},data:function(){return{items:[],reordering:!1,loading_card:!1,form:new SparkForm({}),can_update:!1,selected_item:{},deleting:!1}},watch:{parent_id:function(e,t){this.loadItems()}},methods:{get_datepicker_language:function(e){return(0,i.get_datepicker_languages)()[e]},loadItems:function(){if(void 0!==this.parent_id){var e=this,t="/api/todos/"+this.parent_type+"/"+this.parent_id;axios.get(t).then((function(t){e.items=t.data.data})),this.form.parent_id=this.parent_id,this.form.parent_type=this.parent_type,this.can_update=this.parent_type==config.PARENT_TYPE_DOSSIER}},del:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.deleting=!0,this.selected_item=e,t||$("#modal-del-todo").modal("show")},confirm_del:function(){var e=this;this.form=new SparkForm({}),Spark.delete("/api/todo/"+e.selected_item.id,this.form).then((function(t){$("#modal-del-todo").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.selected_item.id}));e.items.splice(n,1)})).catch((function(e){$("#modal-del-todo").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},create:function(){var e=this;this.form=new SparkForm({parent_id:this.parent_id,parent_type:this.parent_type,title:window.Spark.translations.new_task_name});var t="/api/todos/"+this.parent_type+"/"+this.parent_id;Spark.post(t,this.form).then((function(t){var n=t.data;e.items.push(n)})).catch((function(e){$(""+modal_id).modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},assign:function(e,t){e.assignee_id=t.id,e.assignee=t,this.update(e)},update:function(e){var t=this;this.form=new SparkForm(e),Spark.put("/api/todo/"+e.id,this.form).then((function(n){var r=(0,i.get_item_index_by_id)(t.items,e.id);t.items[r]=(0,i.copyObject)(e),t.$forceUpdate()})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},update_ranks:function(){for(var e="/api/todos/"+this.parent_type+"/"+this.parent_id+"/update-ranks",t=[],n=0;n<this.items.length;n++){var i=this.items[n];t.push({id:i.id,rank:n})}this.form=new SparkForm({ranks:t}),Spark.post(e,this.form).then((function(e){})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},mounted:function(){this.loadItems()}})},9600:(e,t,n)=>{n(4001),n(943),n(1678),n(1998),n(8498),n(2602),n(2457),n(749),n(4197),n(3821),n(6880),n(7274),n(6942),n(361),n(1488),n(3358),n(8858),n(3254),n(9642),n(2229),n(9530),n(6398),n(1399),n(4211),n(1693),n(3923),n(9304),n(3743),n(6522),n(9309),n(1889),n(6780),n(3716),n(9670),n(18),n(791),n(4648),n(8113),n(0),n(7800),n(7995),n(4478),n(2681),n(6670),n(8866),n(9784),n(8847),n(725),n(4407),n(6809),n(9317),n(8090),n(8967),n(6645),n(9024),n(9838),n(5732),n(6719),n(2415),n(7174),n(580),n(5306),n(4428),n(8566),n(5284),n(4571),n(3473),n(5263),n(3597),n(793),n(1437),n(7677),n(5137),n(1530),n(8046),n(3153),n(3482),n(2143),n(5854),n(1126),n(9189),n(3686),n(2060),n(2663),n(2442),n(2835),n(138),n(8135),n(8221),n(6529),n(3479),n(5208),n(3067),n(1030),n(4438),n(4264),n(6594),n(9518),n(1595),n(1834),n(3091),n(5112),n(7945),n(7426),n(2058),n(9238),n(6674),n(6093),n(5061),n(4406),n(192),n(8733),n(2551),window.axios.interceptors.response.use((function(e){return e}),(function(e){if(void 0===e.response)return Promise.reject(e);if(403===e.response.status)window.location="/settings/teams/"+window.Spark.state.user.current_team_id+"#/subscription";return Promise.reject(e)}))},2835:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("client_selfonboarding",{data:function(){return{is_register:!0,contact_phone_input:null,loading:!0}},methods:{register:function(){jQuery.validator.addMethod("lettersonly",(function(e,t){return this.optional(t)||e==e.match(/^[A-Za-z\u00C0-\u017F\s\-]+$/)}),window.Spark.translations.validate_letters_only),$("#form_selfservice_register").validate({rules:{lastname:{lettersonly:!0},firstname:{lettersonly:!0}}}),$("#form_selfservice_register").valid()&&(this.contact_phone_input&&$("#phone").val(this.contact_phone_input.getNumber(intlTelInputUtils.numberFormat.E164)),$("#form_selfservice_register").submit())},login:function(){$("#form_selfservice_login").valid()&&$("#form_selfservice_login").submit()},load_intl_numbers_library:function(){"function"==typeof window.intlTelInput?(this.contact_phone_input=(0,i.buildIntPhoneInput)("intl_phone"),this.loading=!1):setTimeout(this.load_intl_numbers_library,500)}},mounted:function(){this.load_intl_numbers_library()}})},8221:(e,t,n)=>{"use strict";n.r(t);n(2741);Vue.component("client_auth",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},props:["session_id","is_embedded_experience","auth_url"],data:function(){return{contact:{}}},computed:{},methods:{init:function(){this.contact=current_contact}},mounted:function(){this.init()}})},6529:(e,t,n)=>{"use strict";n.r(t);n(2741);Vue.component("client_contact",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},props:["session_id","is_embedded_experience"],data:function(){return{password_data:{},contact:{},form:new SparkForm({}),current_page:"dossiers"}},computed:{},methods:{init:function(){this.contact=current_contact}},mounted:function(){this.init()}})},138:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("client_dossier",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},props:["session_id","is_embedded_experience","auth_status","auth_url"],data:function(){return{dossier:{},stakeholder:{},contact:{},template:{},navigation_buttons:!0,current_page:"list",selected_item:null}},computed:{get_stage_index:function(){var e;for(e=0;e<this.dossier.public_stages.length;e++){if(this.dossier.public_stages[e].name==this.dossier.public_stage)return e}return-1}},methods:{init:function(){this.dossier=current_dossier,this.stakeholder=current_stakeholder,this.contact=current_contact,this.template=current_template,this.checkInactivityTime(),this.readUrlAndStart()},checkInactivityTime:function(){var e,t=this,n=config.CLIENT_INACTIVITY_DELAY;function i(){var e="/client-api/auth/"+t.stakeholder.id+"/logout";Spark.post(e,t.form).then((function(e){window.location.reload()}))}function r(){clearTimeout(e),e=setTimeout(i,1e3*n*60)}window.onload=r,document.onmousemove=r,document.keydown=r},setCurrentPage:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.auth_status==config.CONTACT_AUTHENTICATION.AUTHENTICATED||this.checkQualificationForm(t)?(this.current_page=e,this.selected_item="item"==e?t:null):window.location=this.auth_url},checkQualificationForm:function(e){return!!e&&e.template_item_id==this.dossier.template.qualification_form_id},readUrlAndStart:function(){var e=this,t=(0,i.getUrlParameters)();if(t.item_id){var n=get_item_by_id(e.items,parseInt(t.item_id));n&&e.setCurrentPage("item",n)}else if(t.page)e.setCurrentPage(t.page);else{if(this.dossier.final_items&&1==this.dossier.final_items.length){var r=this.dossier.final_items[0];if(r.template_item_id==this.template.qualification_form_id)return void e.setCurrentPage("item",r)}var a=(0,i.getCookie)("backto-item-id");a&&((0,i.setCookie)("backto-item-id",null),setTimeout((function(){var e=document.querySelector("#item-"+a);e&&e.scrollIntoView({behavior:"smooth"})}),500))}}},mounted:function(){this.init()}})},8135:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Vue.component("client_portal",{props:["is_embedded_experience"],data:function(){return{is_register:!0,contact_phone_input:null,loading:!1}},methods:{register:function(){jQuery.validator.addMethod("lettersonly",(function(e,t){return this.optional(t)||e==e.match(/^[A-Za-z\u00C0-\u017F\s\-]+$/)}),window.Spark.translations.validate_letters_only),(0,i.add_hard_password_validator)(),$("#form_client_portal_register").validate({rules:{lastname:{lettersonly:!0},firstname:{lettersonly:!0},password:{hardpassword:!0}},errorPlacement:function(e,t){"terms"==t.attr("name")?e.appendTo("#terms-err"):e.insertAfter(t)}}),$("#form_client_portal_register").valid()&&(this.loading=!0,this.contact_phone_input&&$("#phone").val(this.contact_phone_input.getNumber(intlTelInputUtils.numberFormat.E164)),$("#form_client_portal_register").submit())},login:function(){$("#form_client_portal_login").valid()&&(this.loading=!0,$("#form_client_portal_login").submit())},load_intl_numbers_library:function(){"function"==typeof window.intlTelInput?(this.contact_phone_input=(0,i.buildIntPhoneInput)("intl_phone"),this.loading=!1):setTimeout(this.load_intl_numbers_library,500)},update_current_template:function(){var e=$("#template_id").val();if(""!=e){var t=(0,i.getUrlParameters)();t.tpid=e;for(var n=window.location.href.split("?")[0],a=0,o=Object.entries(t);a<o.length;a++){var s=r(o[a],2),l=s[0],c=s[1];n=(0,i.addParamToUrl)(n,l,c)}window.location=n}}},mounted:function(){this.load_intl_numbers_library()}})},4406:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("contact_dossiers_create",{props:["current_contact","is_embedded_experience","session_id"],data:function(){return{form_error_message:null,form:new SparkForm({template_id:"",custom:""}),authorized_templates:[],current_page:"list"}},watch:{},computed:{new_dossier_current_template:function(){var e=(0,i.get_item_by_id)(this.authorized_templates,this.form.template_id);return e&&e.collect_custom_values&&(e.collect_custom_values_array=e.collect_custom_values.split("\n")),null!=e?e:{}}},methods:{confirmCreateNewDossier:function(){$("#form-create-dossier").valid()&&$("#form-create-dossier").submit()}},mounted:function(){"undefined"!=typeof authorized_templates&&(this.authorized_templates=authorized_templates)}})},5061:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("contact_dossiers_list",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_human:function(e){return moment(e).fromNow()}},props:["current_contact","is_embedded_experience","session_id"],data:function(){return{items:[],loading_more:!1,page:1,custom_related_dossier_view:null}},watch:{},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length}},methods:{prepareItems:function(){var e=this;$.each(this.items,(function(t,n){e.items[t].url=(0,i.getPreparedUrl)(n.link,e,!0)}))},loadItems:function(){var e=this;this.page=1;var t="/client-api/dossiers?page="+this.page;t=(0,i.getPreparedUrl)(t,this),axios.get(t).then((function(t){e.items=t.data,e.prepareItems()}))},loadMoreItems:function(){var e=this;this.loading_more=!0,this.page=this.page+1;var t="/client-api/dossiers?page="+this.page;t=(0,i.getPreparedUrl)(t,this),axios.get(t).then((function(t){e.items=e.items.concat(t.data),e.prepareItems(),e.loading_more=!1}))}},mounted:function(){"undefined"!=typeof custom_related_dossier_view&&(this.custom_related_dossier_view=custom_related_dossier_view),this.loadItems()}})},192:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("contact_privacy_requests",{filters:{},props:["contact","session_id"],data:function(){return{view_privacy_actions:!1,current_privacy_request:{},form:new SparkForm({})}},watch:{},computed:{},methods:{privacy_request_action:function(e){var t="#modal_confirm_"+e;this.current_privacy_request.type=e,$(""+t).appendTo("body").modal("show")},confirm_privacy_request_action:function(e){if($(".modal form").valid()){var t=this;this.form=new SparkForm(this.current_privacy_request);var n="/client-api/contact/"+this.contact.id+"/send-privacy-request";n=(0,i.getPreparedUrl)(n,this),Spark.post(n,this.form).then((function(e){if(e.errors){var n=e.errors[Object.keys(e.errors)[0]][0];notify("danger",n)}else t.current_privacy_request.content="",$(".modal").modal("hide"),notify("success",window.Spark.translations.privacy_request_success_message)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}}},mounted:function(){}})},6093:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("activate_2fa",{filters:{},props:[],data:function(){return{form:new SparkForm({}),confirmation_code:"",email:"",phone_number:"",phone_input:null,waiting_time:0,error_invalid_phone_number:!1,code_verification_id:null,code_verification_code:null,code_verification_type:null,code_google_authenticator:null,error_invalid_code:!1,can_validate:!0,step:1,verification_mode:"email",verification_target:null,stakeholder:null,contact:null,two_fa_token:null}},computed:{waiting_string:function(){return this.waiting_time?"("+this.waiting_time+")":""}},methods:{show:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"email",n=this;this.verification_mode=t,this.contact=e,this.email=this.contact.email,this.step=1,$("#activate_2fa").appendTo("body").modal({backdrop:"static",keyboard:!1},"show"),"sms"==this.verification_mode&&(this.phone_input||setTimeout((function(){n.phone_input=(0,i.buildIntPhoneInput)("phone")}),1e3))},request_code:function(){var e,t=this,n=this;if("sms"==this.verification_mode){if(!this.phone_input)return;if(!this.phone_input.isValidNumber())return void(this.error_invalid_phone_number=!0);this.error_invalid_phone_number=!1,this.phone_number=this.phone_input.getNumber(intlTelInputUtils.numberFormat.E164),e=this.phone_number}else{if("email"!=this.verification_mode)return"google_authenticator"==this.verification_mode?void(this.step=2):void 0;if(!this.email)return;e=this.email}n.verification_target=e;this.form=new SparkForm({target:e,type:this.verification_mode,contact_id:this.contact.id}),Spark.post("/misc-api/request-verification-code",this.form).then((function(e){e.errors||(n.code_verification_id=e.id,t.code_verification_countdown(60),n.step=2)}))},check_code:function(){var e=this;if($("#form_confirm_code").valid())if("google_authenticator"!=this.verification_mode){var t={code_verification_id:this.code_verification_id,code_verification_code:this.code_verification_code,type:this.verification_mode};"sms"==this.verification_mode?t.target=this.phone_number:"email"==this.verification_mode&&(t.target=this.email),this.form=new SparkForm(t);Spark.post("/misc-api/check-verification-code",this.form).then((function(t){console.log(t),t.errors?t.errors.error_invalid_code&&(e.error_invalid_code=!0):e.confirm_activate_2fa(e.verification_mode,e.verification_target)}))}else this.check_google_auth_code()},check_google_auth_code:function(){var e=this;this.form=new SparkForm({code:this.code_google_authenticator});Spark.post("/misc-api/check-google-authenticator-code",this.form).then((function(t){t.errors?t.errors.error_invalid_code&&(e.error_invalid_code=!0):e.confirm_activate_2fa(e.verification_mode,"google_authenticator")}))},confirm_activate_2fa:function(e,t){console.log("eeesss");var n=this;this.form=new SparkForm({verification_mode:e,verification_target:t,contact_id:this.contact.id}),console.log("ici");var i="/client-api/contact/"+this.contact.id+"/enable-contact-2fa";Spark.post(i,this.form).then((function(e){e.errors||(console.log("ici2"),n.two_fa_token=e.reset_token,n.$parent.confirm_activate_2fa(),n.step=3)}))},code_verification_countdown:function(e){var t=this;t.waiting_time=e,e&&setTimeout((function(){t.code_verification_countdown(e-1)}),1e3)}},mounted:function(){}})},6674:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("contact_security",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_human:function(e){return moment(e).fromNow()}},props:["contact","session_id"],data:function(){return{password_data:{},form:new SparkForm({})}},watch:{},computed:{},methods:{activate_2fa:function(){this.$refs.activate_2fa.show(this.contact,this.two_fa_mode)},confirm_activate_2fa:function(){this.contact.uses_two_factor_auth=!0},deactivate_2fa:function(){var e=this;this.form=new SparkForm({});var t="/client-api/contact/"+this.contact.id+"/disable-contact-2fa";Spark.post(t,this.form).then((function(t){t.errors||(e.contact.uses_two_factor_auth=!1)}))},update_password:function(){if((0,i.add_hard_password_validator)(),$("#form_update_password").validate({rules:{current_password:{required:!0},password:{required:!0,hardpassword:!0}}}),$("#form_update_password").valid()){this.form=new SparkForm({password:this.password_data.password,current_password:this.password_data.current_password});var e="/client-api/contact/"+this.contact.id+"/update-password";Spark.post(e,this.form).then((function(e){if(e.errors){var t=e.errors[Object.keys(e.errors)[0]][0];notify("danger",t)}else notify("success",window.Spark.translations.password_updated)}))}}},mounted:function(){}})},4264:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("client_dossier_attachments",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},props:["session_id","dossier","stakeholder","contact"],data:function(){return{attachments:null}},watch:{dossier:function(e,t){this.loadAttachments()}},methods:{loadAttachments:function(){var e=this,t="/client-api/dossier/"+this.dossier.id+"/attachments";t=(0,i.getPreparedUrl)(t,this),axios.get(t).then((function(t){e.attachments=t.data.data})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},preview:function(e){(0,i.previewFile)(e.url,e.file_type)}},mounted:function(){}})},1030:(e,t,n)=>{"use strict";n.r(t);var i,r=n(2741);function a(e){return a="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},a(e)}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Vue.component("client_dossier_infos",(o(i={filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},components:{},props:["session_id","dossier","stakeholder","contact"],data:function(){return{loading_card:!1,attachments:null,form:new SparkForm({})}},watch:{}},"components",{}),o(i,"computed",{}),o(i,"methods",{init:function(){this.attachments=current_dossier.attachments},renderText:function(e){return(0,r.prepareForRendering)(e)}}),o(i,"mounted",(function(){this.init()})),i))},4438:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("client_dossier_stakeholders",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["session_id","dossier","stakeholder","contact"],data:function(){return{items:[],loading_card:!1,form:new SparkForm({}),selected_item:{},client_notification:{},contact_phone_input:null}},watch:{dossier:function(e,t){this.loadStakeholders()}},methods:{loadStakeholders:function(){var e=this,t="/client-api/dossier/"+this.dossier.id+"/stakeholders";t=(0,i.getPreparedUrl)(t,this),axios.get(t).then((function(t){e.items=t.data.data}))},getInvitationEmail:function(){var e=this.dossier.template,t={};return e&&(t={subject:e.email_subject,body:e.email_body}),t},updateInfos:function(e){var t=this;this.selected_item=(0,i.copyObject)(e),this.selected_item.tmp_phone=this.selected_item.phone,$("#modal-update-stakeholder").appendTo("body").modal("show"),setTimeout((function(){t.load_intl_numbers_library()}),2e3)},confirm_update:function(){var e=this;if($("#form-update-stakeholder").valid()){var t=this,n=(0,i.copyObject)(this.selected_item);this.contact_phone_input&&(n.phone=this.contact_phone_input.getNumber(intlTelInputUtils.numberFormat.E164)),this.form=new SparkForm(n);var r="/client-api/dossier/"+this.dossier.id+"/stakeholder/"+n.id;r=(0,i.getPreparedUrl)(r,this),Spark.post(r,this.form).then((function(n){var r=(0,i.get_item_index_by_id)(t.items,t.selected_item.id);e.items[r]=t.selected_item,t.loadStakeholders(),$("#modal-update-stakeholder").modal("hide")})).catch((function(e){$("#modal-update-stakeholder").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))}},load_intl_numbers_library:function(){"function"==typeof window.intlTelInput?this.contact_phone_input=(0,i.buildIntPhoneInput)("tmp_phone"):setTimeout(this.load_intl_numbers_library,500)}},mounted:function(){}})},1595:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("client_dossier_item_custom",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},components:{},props:["session_id","dossier","stakeholder","contact","selected_item"],data:function(){return{form:new SparkForm({})}},watch:{selected_item:function(e,t){this.init()}},methods:{init:function(){this.selected_item.custom_data&&this.selected_item.custom_data.type==config.TASK_ITEM_TYPES.LINK&&this.gotoTaskLink(this.selected_item)},gotoTaskLink:function(){var e="/client-api/dossierItem/"+this.selected_item.id+"/confirm-task";e=(0,i.getPreparedUrl)(e,this),this.form=new SparkForm,Spark.post(e,this.form),window.location=this.selected_item.custom_data.url},confirmTask:function(){var e=this,t="/client-api/dossierItem/"+this.selected_item.id+"/confirm-task";t=(0,i.getPreparedUrl)(t,this),this.form=new SparkForm,Spark.post(t,this.form).then((function(t){if(t.errors){var n=t.errors[Object.keys(t.errors)[0]][0];notify("danger",n)}else e.selected_item.status=config.DOC_STATE_RETURNED,notify("success",window.Spark.translations.client_task_confirmed_success_message),e.$parent.backToList()}))},renderText:function(e){return(0,i.prepareForRendering)(e)}},mounted:function(){this.init()}})},6594:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Vue.component("client_dossier_item",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},components:{},props:["session_id","dossier","stakeholder","contact","selected_item","is_embedded_experience"],data:function(){return{form:new SparkForm({}),new_message:{body:"",stakeholder_id:null,author_type:"contact"},view_uploads:!1}},watch:{},methods:{backToList:function(){if(this.session_id&&this.is_embedded_experience){var e=(0,i.getUrlParameters)();e.session_id=this.session_id;for(var t=window.location.href.split("?")[0],n=0,a=Object.entries(e);n<a.length;n++){var o=r(a[n],2),s=o[0],l=o[1];t=(0,i.addParamToUrl)(t,s,l)}window.location=t}else(0,i.setCookie)("backto-item-id",this.selected_item.id),window.location.reload()},sendMessage:function(){$("#modal_message_create").appendTo("body").modal("show")},confirmSendMessage:function(){this.new_message.stakeholder_id=this.stakeholder.id,this.new_message.item_id=this.selected_item.id,this.form=new SparkForm(this.new_message);var e="/client-api/dossier/"+this.dossier.id+"/messages";e=(0,i.getPreparedUrl)(e,this),Spark.post(e,this.form).then((function(e){$("#modal_message_create").modal("hide"),notify("success",window.Spark.translations.message_create_success_message)}))},renderText:function(e){return(0,i.prepareForRendering)(e)},toggleViewMode:function(){var e=this.selected_item.display_config.view_mode;this.selected_item.display_config.view_mode="view"==e?"edit":"view",this.$forceUpdate()}},mounted:function(){}})},9238:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("client_dossier_item_econtract_page",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},components:{},props:["econtract","index","econtract_item","session_id"],data:function(){return{loading_card:!0,form:new SparkForm({}),page:null,current_input:null,image_loaded:!1}},computed:{},methods:{save:function(e){this.form=new SparkForm({econtract_input:e});var t="/client-api/dossierItem/"+this.econtract_item.id+"/econtract-save";t=(0,i.getPreparedUrl)(t,this),Spark.put(t,this.form).then((function(e){if(e.errors){e.errors[Object.keys(e.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else;})).catch((function(e){}))},toggleCheckBox:function(e){e.finalized||e.locked||(e.value=1-e.value,this.save(e),this.$forceUpdate())},textarea_input:function(e){var t=e.target;t.parentNode.dataset.replicatedValue=t.value},insert_signature:function(e){e.finalized||e.locked||(this.current_input=e,this.$parent.insert_signature(this,e))},apply_esignature:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="/client-api/dossierItem/"+this.econtract_item.id+"/econtract-apply-signature";r=(0,i.getPreparedUrl)(r,this);var a={};n&&(a=n),a.name=e;var o=(0,i.copyObject)(this.current_input);o.value=t,a.econtract_input=o;var s=new SparkForm(a),l=this;Spark.post(r,s).then((function(e){e.errors||(l.current_input.value=t,l.current_input.finalized=1,l.$forceUpdate(),$("#modal_signature").modal("hide"))}))},prepare_item_positions:function(){if(this.loading_card=!0,void 0!==$(".econtract-page")[this.index]&&this.image_loaded){for(var e=0;e<this.page.items.length;e++){var t=this.page.items[e];if(t){t=(0,i.copyObject)(t);var n=$(".econtract-page")[this.index].clientWidth/t.econtract_width,r=$(".econtract-page")[this.index].clientHeight/t.econtract_height;t.position_x=t.position_x*n,t.position_y=t.position_y*r,"textbox"!=t.type&&"tag"!=t.type&&"date"!=t.type||(t.font_size=(t.font_size?t.font_size:14)*r,t.font_family=t.font_family?t.font_family:"Arial"),"string"==typeof t.finalized&&(t.finalized=parseInt(t.finalized)),"string"==typeof t.mandatory&&(t.mandatory=parseInt(t.mandatory)),t.width=t.width*n,t.scale_x&&(t.width=t.width/t.scale_x),t.height&&(t.height=t.height*r,t.scale_y&&(t.height=t.height/t.scale_y)),t.unit||(t.position_x=t.position_x+14),this.page.items[e]=t}}this.$forceUpdate(),this.loading_card=!1}else setTimeout(this.prepare_item_positions,510)}},mounted:function(){this.page=this.econtract[this.index],this.prepare_item_positions()}})},2058:(e,t,n)=>{"use strict";n.r(t);n(4998);var i=n(2741);Vue.component("client_dossier_item_econtract",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},components:{},props:["econtract_item","session_id","dossier","stakeholder","contact","advanced_signature","sms_available"],data:function(){return{current_page:null,loading_card:!1,form:new SparkForm({}),econtract:null,current_input:null,current_signature_data:{name:null,data:null,code_verification_data:null},display_can_sign_alert:!1,missing_mandatory_item:null}},computed:{stakeholder_can_sign:function(){var e=!0;if(this.econtract&&this.econtract[0]&&this.econtract[0].config){var t=this.econtract[0].config.ordered_signers;t&&!t.includes(this.stakeholder.role)&&(e=!1)}return e}},watch:{econtract_item:function(e,t){this.initEcontract()}},methods:{insert_signature:function(e,t){this.current_page=e,this.current_input=t;var n="none";t.verification_code&&"sms"==(n=t.hasOwnProperty("verification_code_method")?t.verification_code_method:this.advanced_signature?"sms":"email")&&(this.advanced_signature||this.sms_available||(n="email")),this.$refs.signaturepad.show(n)},get_signatures_with_role:function(e){var t=[];if(!this.econtract)return[];t=[];return this.econtract.forEach((function(n){n.items&&n.items.forEach((function(n){"signature"==n.type&&n.role==e&&0==n.locked&&t.push(n)}))})),t},apply_esignature:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.current_signature_data.role=this.current_input.role,this.current_signature_data.name=e,this.current_signature_data.data=t,this.current_signature_data.code_verification_data=n,this.current_page.apply_esignature(e,t,n)},get_finalized_signatures_count:function(){var e=0;return this.econtract.forEach((function(t){t.items.forEach((function(t){t&&"signature"==t.type&&1==t.finalized&&e++}))})),e},get_signatures_roles_count:function(){var e=0,t=null;return this.econtract.forEach((function(n){n.items.forEach((function(n){"signature"==n.type&&n.role!=t&&(e++,t=n.role)}))})),e},econtract_config:function(){return this.econtract?this.econtract[0]&&this.econtract[0].config?this.econtract[0].config:void 0:null},goto_next_mandatory_field:function(){var e=this.missing_mandatory_item;e&&document.querySelector("#field-"+e.first.id).scrollIntoView({behavior:"smooth",block:"start"})},close_econtract:function(){this.$parent.backToList()},econtract_finalize:function(){$("#modal_econtract_finalize").appendTo("body").modal({backdrop:"static",keyboard:!1},"show")},econtract_confirm_finalize:function(){var e="/client-api/dossierItem/"+this.econtract_item.id+"/econtract-finalize";e=(0,i.getPreparedUrl)(e,this);var t=this;Spark.post(e,this.form).then((function(e){e.errors||($("#modal_econtract_finalize").modal("hide"),t.$parent.backToList())}))},initSigningBar:function(){$(document).on("scroll",(function(){$(this).scrollTop()>280?$("#signing-alert-top").fadeIn():$("#signing-alert-top").fadeOut()}))},updateMissingMandatoryItem:function(){var e=this,t=this;setInterval((function(){if(!t.econtract)return null;e.econtract_config();if(e.econtract_item&&moment(e.econtract_item.updated_at).isBefore("2021-03-21")&&e.get_signatures_roles_count()>1&&e.get_finalized_signatures_count()>0)return null;var n={count:0,first:null};Array.isArray(t.econtract)&&t.econtract.forEach((function(e){e.items.forEach((function(e){e&&!e.locked&&e.mandatory&&("signature"==e.type&&0==e.finalized||"checkbox"==e.type&&1!==e.value?(n.count++,n.first||(n.first=e)):("textbox"!=e.type||e.value&&""!=e.value.trim())&&("date"!=e.type||e.base_date&&""!=e.base_date.trim())||(n.count++,n.first||(n.first=e)))}))})),n.count?t.missing_mandatory_item=n:t.missing_mandatory_item=null}),600)},initEcontract:function(){this.econtract=this.econtract_item.client_econtract_data}},mounted:function(){this.initEcontract(),this.initSigningBar(),this.updateMissingMandatoryItem()}})},1834:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(1485),a=n.n(r),o=n(2446),s=n.n(o),l=n(199),c={insert:"head",singleton:!1};s()(l.Z,c);l.Z.locals;Vue.component("client_dossier_item_file",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},components:{vueDropzone:a()},props:["session_id","dossier","stakeholder","contact","selected_item"],data:function(){return{form:new SparkForm({}),dropzoneOptions:null}},watch:{selected_item:function(e,t){this.init()}},methods:{init:function(){this.initDropzone()},initDropzone:function(){var e="/client-api/dossierItem/"+this.selected_item.id+"/uploads";e=(0,i.getPreparedUrl)(e,this);var t=window.Spark.translations.dropzone_label;this.dropzoneOptions={url:e,thumbnailWidth:40,thumbnailHeight:40,uploadMultiple:!0,dictDefaultMessage:"<i class='fa fa-cloud-upload'></i><br>"+t,headers:{"X-CSRF-TOKEN":Spark.csrfToken}}},dropzoneUploadSuccess:function(e,t){var n=this;if(t.errors){var i=t.errors[Object.keys(t.errors)[0]];notify("danger",i)}else{for(var r=t,a=0;a<r.length;a++){var o=r[a];this.selected_item.final_uploads||(this.selected_item.final_uploads=[]),this.selected_item.final_uploads.push(o)}this.$forceUpdate(),notify("success",window.Spark.translations.file_added_success_message)}setTimeout((function(){n.$refs.vue_dropzone.removeAllFiles()}),2e3)},startUpload:function(e){this.selected_item=e,$("#file").trigger("click")},confirmUpload:function(){var e=this,t=new FormData,n=document.getElementById("file").files;if(n){t.append("dossier_item_id",this.selected_item.id);for(var r=0;r<n.length;r++){var a=n[r];t.append("file[]",a)}var o={headers:{"Content-Type":"multipart/form-data","X-CSRF-TOKEN":Spark.csrfToken},onUploadProgress:function(t){e.percentCompleted=Math.round(100*t.loaded/t.total),e.uploader_classes=["progress-circle","p"+e.percentCompleted],e.percentCompleted>50&&e.uploader_classes.push("over50")}.bind(this)};e.loading_upload=!0;var s="/client-api/dossierItem/"+this.selected_item.id+"/uploads";s=(0,i.getPreparedUrl)(s,this),window.Spark.state.user={},axios.post(s,t,o).then((function(t){if(t.data.errors){var n=t.data.errors[Object.keys(t.data.errors)[0]];return e.loading_upload=!1,void notify("danger",n)}for(var i=t.data,r=0;r<i.length;r++){var a=i[r];e.selected_item.final_uploads||(e.selected_item.final_uploads=[]),e.selected_item.final_uploads.push(a)}notify("success",window.Spark.translations.attachment_create_success_message),e.loading_upload=!1,e.selected_item.status=config.DOC_STATE_RETURNED})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_upload=!1}))}},delUpload:function(e){this.selected_item.status!=config.DOC_STATE_APPROVED?(this.selected_upload=e,$("#modal_upload_del").appendTo("body").modal("show")):notify("danger",window.Spark.translations.upload_delete_approved_error)},confirmDelUpload:function(){var e=this,t="/client-api/upload/"+e.selected_upload.id;t=(0,i.getPreparedUrl)(t,this),this.form=new SparkForm({}),Spark.delete(t,this.form).then((function(t){$("#modal_upload_del").modal("hide"),e.selected_item.final_uploads||(e.selected_item.final_uploads=[]);var n=e.selected_item.final_uploads.findIndex((function(t){return t.id===e.selected_upload.id}));e.selected_item.final_uploads.splice(n,1),notify("success",window.Spark.translations.dossierItem_delete_upload_success_message)})).catch((function(e){$("#modal_upload_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},preview:function(e){(0,i.previewFile)(e.url,e.file_type)}},mounted:function(){this.init()}})},7945:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("client_dossier_item_fileshare",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},components:{},props:["session_id","dossier","stakeholder","contact","selected_item"],data:function(){return{form:new SparkForm({})}},watch:{selected_item:function(e,t){this.init()}},methods:{init:function(){},confirmFileshareSignoff:function(e){var t=this,n="/client-api/dossierItem/"+this.selected_item.id+"/signoff-fileshare";n=(0,i.getPreparedUrl)(n,this),this.form=new SparkForm({value:e}),Spark.post(n,this.form).then((function(e){if(e.errors){var n=e.errors[Object.keys(e.errors)[0]][0];notify("danger",n)}else notify("success",window.Spark.translations.client_task_confirmed_success_message),t.$parent.backToList()}))},preview:function(e){(0,i.previewFile)(e.url,e.file_type)}},mounted:function(){this.init()}})},9518:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("client_dossier_item_form",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},components:{},props:["session_id","dossier","stakeholder","contact","selected_item"],data:function(){return{form:new SparkForm({}),form_buttons:[],form_data:null}},watch:{selected_item:function(e,t){this.init()}},methods:{init:function(){this.form_buttons=[config.SAVE_OPTIONS.SAVE_FOR_LATER,config.SAVE_OPTIONS.SAVE_AND_COMPLETE],this.selected_item.form_data&&(this.form_data=this.selected_item.form_data)},save_form:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"save_for_later",n=this,r=JSON.stringify(e);this.form=new SparkForm({form_data:r,save_mode:t});var a="/client-api/dossierItem/"+this.selected_item.id+"/save-form";a=(0,i.getPreparedUrl)(a,this),Spark.post(a,this.form).then((function(e){if(e.errors){var t=e.errors[Object.keys(e.errors)[0]][0];notify("danger",t)}else n.$parent.backToList()})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},mounted:function(){this.init()}})},5112:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("client_dossier_item_idcheck",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},components:{},props:["session_id","dossier","stakeholder","contact","selected_item"],data:function(){return{form:new SparkForm({})}},watch:{selected_item:function(e,t){this.init()}},methods:{init:function(){var e=this;e.selected_item.type==config.ITEM_TYPE_IDCHECK&&setTimeout((function(){var t;(t=Veriff({host:veriff_config.host,apiKey:veriff_config.apiKey,parentId:"veriff-root",onSession:function(t,n){window.veriffSDK.createVeriffFrame({url:n.verification.url,onEvent:function(t){switch(t){case"CANCELED":break;case"FINISHED":e.$parent.backToList()}}}),(n.status="success")&&e.initializeVeriffSession(n.verification.id)}})).setParams({callback:veriff_config.callback_url,person:{givenName:e.stakeholder.firstname,lastName:e.stakeholder.lastname},vendorData:""+e.selected_item.id}),t.mount({submitBtnText:veriff_config.buttonLabel,loadingText:veriff_config.loadingText})}),1e3)},initializeVeriffSession:function(e){var t="/client-api/dossierItem/"+this.selected_item.id+"/init-veriff-idcheck-session";t=(0,i.getPreparedUrl)(t,this),this.form=new SparkForm({sessionId:e,stakeholderId:this.stakeholder.id}),Spark.post(t,this.form)}},mounted:function(){this.init()}})},3091:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("client_dossier_item_payment",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},components:{},props:["session_id","dossier","stakeholder","contact","selected_item"],data:function(){return{form:new SparkForm({}),loading_payment:!1,payment_item:{}}},watch:{selected_item:function(e,t){this.init()}},methods:{init:function(){this.loading_payment=!0;var e=this,t="/client-api/dossierItem/"+e.selected_item.id+"/get-stripe-payment-session";t=(0,i.getPreparedUrl)(t,this),axios.get(t).then((function(t){var n=t.data;n&&(e.payment_item.stripe_session_id=n.session_id,e.payment_item.stripe_plan=n.plan),e.loading_payment=!1})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_payment=!1}))},redirectToPayment:function(){var e=this;stripe.redirectToCheckout({sessionId:e.payment_item.stripe_session_id}).then((function(t){t.error?(notify("danger",t.error.message),e.loading_payment=!1):e.loading_payment=!0}))}},mounted:function(){this.init()}})},7426:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("client_dossier_item_spreadsheet",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},components:{},props:["session_id","dossier","stakeholder","contact","selected_item"],data:function(){return{form:new SparkForm({}),spreadsheet_buttons:[],spreadsheet_data:null}},watch:{selected_item:function(e,t){this.init()}},methods:{init:function(){this.spreadsheet_buttons=[config.SAVE_OPTIONS.SAVE_FOR_LATER,config.SAVE_OPTIONS.SAVE_AND_COMPLETE],this.selected_item.spreadsheet_data&&(this.spreadsheet_data=this.selected_item.spreadsheet_data)},save_spreadsheet:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"save_for_later",n=this,r=this.selected_item.spreadsheet_data;r.data=e.data,this.spreadsheet=new SparkForm({spreadsheet_data:r,save_mode:t});var a="/client-api/dossierItem/"+this.selected_item.id+"/save-spreadsheet";a=(0,i.getPreparedUrl)(a,this),Spark.post(a,this.spreadsheet).then((function(e){if(e.errors){var t=e.errors[Object.keys(e.errors)[0]][0];notify("danger",t)}else n.$parent.backToList()})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},mounted:function(){this.init()}})},3479:(e,t,n)=>{"use strict";n.r(t);var i,r=n(2741);function a(e){return a="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},a(e)}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Vue.component("client_dossier_list_items",(o(i={filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},components:{},props:["session_id","dossier","stakeholder","contact"],data:function(){return{form:new SparkForm({}),items:[],items_display_list:[],navigation_buttons:!0,export_type:"zip",dossier_submission_confirmed:!1,selected_item:null,submission_return_url:null}},watch:{dossier:function(e,t){this.loadItems()}}},"components",{}),o(i,"computed",{dossier_can_submit:function(){if(!this.items)return!1;for(var e=0;e<Object.keys(this.items).length;e++){var t=Object.keys(this.items)[e],n=this.items[t];if(n.type!=config.ITEM_TYPE_SEPARATOR&&n.status==config.DOC_STATE_RETURNED)return!0}return!1},count_missing_items:function(){if(!this.items)return 0;for(var e=0,t=0;t<Object.keys(this.items).length;t++){var n=Object.keys(this.items)[t],i=this.items[n];i.type!=config.ITEM_TYPE_SEPARATOR&&i.status===config.DOC_STATE_MISSING&&e++}return e},count_missing_mandatory_items:function(){if(!this.items)return 0;for(var e=0,t=0;t<Object.keys(this.items).length;t++){var n=Object.keys(this.items)[t],i=this.items[n];i.type!=config.ITEM_TYPE_SEPARATOR&&i.status===config.DOC_STATE_MISSING&&1==i.is_mandatory&&e++}return e}}),o(i,"methods",{checkAuthenticationNeeded:function(){if(this.authentication_required){window.location="hhtps://google.com"}},loadItems:function(){this.items=this.dossier.final_items,this.prepareDisplayItems(this.items)},prepareDisplayItems:function(){if(this.items){for(var e=[],t=[],n={},i=0;i<this.items.length;i++){var r=this.items[i];r.type==config.ITEM_TYPE_SEPARATOR?(t&&t.length>0&&(e.push(t),t=null),e.push(r)):(r.display_config=this.getDisplayConfig(r),t||(t=[]),t.push(r),n[r.id]={id:r.id,type:r.type},i==this.items.length-1&&(e.push(t),t=null))}this.items_display_list=e}},highlightMissingMandatoryItems:function(){if(this.items)for(var e=0;e<Object.keys(this.items).length;e++){var t=Object.keys(this.items)[e],n=this.items[t];n.type!=config.ITEM_TYPE_SEPARATOR&&(n.status===config.DOC_STATE_MISSING&&1==n.is_mandatory?$("#item-"+n.id).addClass("missing_highlighted"):$("#item-"+n.id).removeClass("missing_highlighted"))}},submitDossier:function(){if(this.checkAuthenticationNeeded(),this.count_missing_mandatory_items)return this.highlightMissingMandatoryItems(),void notify("danger",window.Spark.translations.error_mandatory_items_missing);this.dossier_submission_confirmed=!1,$("#modal_submit_dossier").appendTo("body").modal({backdrop:"static",keyboard:!1},"show")},confirmSubmitDossier:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this,n="/client-api/dossier/"+current_dossier.id+"/submit";n=(0,r.getPreparedUrl)(n,this),Spark.post(n,this.form).then((function(n){if(n.errors){var i=n.errors[Object.keys(n.errors)[0]][0];return notify("danger",i),void $("#modal_submit_dossier").modal("hide")}t.dossier.status=config.DOSSIER_STATE_SUBMITTED,t.dossier_submission_confirmed=!0,e&&(t.submission_return_url=e)})).catch((function(e){$("#modal_submit_dossier").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},closeSubmitModal:function(){var e=this;$("#modal_submit_dossier").modal("hide"),setTimeout((function(){e.submission_return_url?document.location=e.submission_return_url:document.location.reload()}),500)},downloadAll:function(){this.loading_create=!1,$("#modal_download_all").appendTo("body").modal("show")},confirmDownloadAll:function(){var e=this;this.form=new SparkForm({}),e.loading_create=!0;var t="/client-api/dossier/"+this.dossier.id+"/archive/"+this.export_type;t=(0,r.getPreparedUrl)(t,this),Spark.post(t,this.form).then((function(t){if(t.errors){var n=t.errors[Object.keys(t.errors)[0]][0];return e.loading_create=!1,void notify("danger",n)}$("#modal_download_all").modal("hide"),notify("success",window.Spark.translations.download_all_success_message),e.loading_create=!1})).catch((function(t){$("#modal_download_all").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_create=!1}))},updateRelevance:function(e,t){if(this.dossier.status==config.DOSSIER_STATE_INIT||this.dossier.status==config.DOSSIER_STATE_IN_PROGRESS)if(!e.is_mandatory||t){this.selected_item=e;var n=this;this.form=new SparkForm;var i="/client-api/dossierItem/"+this.selected_item.id+"/set-relevance/"+t;i=(0,r.getPreparedUrl)(i,this),Spark.put(i,this.form).then((function(e){if(e.errors){var t=e.errors[Object.keys(e.errors)[0]][0];notify("danger",t)}else n.selected_item.status=e.status})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}else notify("danger",window.Spark.translations.error_mandatory_item_irrelevance);else notify("danger",window.Spark.translations.message_dossier_already_submitted)},renderText:function(e){return(0,r.prepareForRendering)(e)},process_item:function(e){this.checkAuthenticationNeeded(),this.$parent.setCurrentPage("item",e)},getDisplayConfig:function(e){var t=this.stakeholder.abilities,n=e.status,i=t.includes(config.STAKEHOLDER_ABILITIES.EDIT),r=t.includes(config.STAKEHOLDER_ABILITIES.VIEW_APPROVED)||t.includes(config.STAKEHOLDER_ABILITIES.VIEW_NOT_APPROVED),a="edit",o=!0,s=!1;return n==config.DOC_STATE_MISSING&&(i?(a="edit",o=!0):(a="view",o=!1)),n==config.DOC_STATE_RETURNED&&(t.includes(config.STAKEHOLDER_ABILITIES.VIEW_NOT_APPROVED)?(a="view",o=!0):i?(a="edit",o=!0):(a="view",o=!1),s=i&&r),n==config.DOC_STATE_APPROVED&&(t.includes(config.STAKEHOLDER_ABILITIES.VIEW_APPROVED)?(a="view",o=!0):i?(a="edit",o=!1):(a="view",o=!1)),n==config.DOC_STATE_IRRELEVANT&&(o=!1,a=i?"edit":"view"),{button_action:a,button_enabled:o,view_mode:a,view_mode_toggle:s}}}),o(i,"mounted",(function(){document.addEventListener("click",this.documentClick)})),i))},5208:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("client_dossier_messages",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},props:["session_id","dossier","stakeholder","contact"],data:function(){return{new_message:{body:"",stakeholder_id:null,author_type:"contact"},form:new SparkForm({}),form_error_message:null,messages:null}},watch:{dossier:function(e,t){this.loadMessages()}},methods:{openMessages:function(){setTimeout((function(){var e=$("#form_clust_message_create");$("html,body").animate({scrollTop:e.offset().top},"slow")}),100)},loadMessages:function(){if(this.session_id){var e=this,t="/client-api/dossier/"+this.dossier.id+"/messages";t=(0,i.getPreparedUrl)(t,this),axios.get(t).then((function(t){e.messages=t.data.data})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},sendMessage:function(){var e=$("#form_clust_message_create");$("html,body").animate({scrollTop:e.offset().top},"slow")},confirmSendMessage:function(){var e=this;if(this.new_message.stakeholder_id=this.stakeholder.id,this.form=new SparkForm(this.new_message),$("#form_clust_message_create").valid()){var t="/client-api/dossier/"+this.dossier.id+"/messages";t=(0,i.getPreparedUrl)(t,this),Spark.post(t,this.form).then((function(t){e.loadMessages(),e.new_message.body="",notify("success",window.Spark.translations.message_create_success_message)}))}},renderText:function(e){return(0,i.prepareForRendering)(e)}},mounted:function(){}})},3067:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("client_dossier_welcome",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}},props:["session_id","dossier","stakeholder","contact"],data:function(){return{}},watch:{},methods:{renderText:function(e){return(0,i.prepareForRendering)(e)}},mounted:function(){}})},7274:(e,t,n)=>{"use strict";n.r(t);n(2741);Vue.component("activate_booster",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["booster_id","currentTeam"],components:{},computed:{booster_price:function(){if(!this.booster)return"";var e=this.currentTeam.currency.toLowerCase();return this.booster["price_"+e]+" "+e}},data:function(){return{form:new SparkForm({}),booster_active:!1,booster:{},booster_activation_error:!1}},watch:{booster_id:function(e,t){this.load_booster()}},methods:{load_booster:function(){var e=this,t="/api/team-booster/"+this.booster_id;axios.get(t).then((function(t){e.booster=t.data.data}))},enable_booster:function(){var e=this;this.form=new SparkForm({role});var t="/api/team-booster/"+this.booster_id+"/trial-or-subscribe";Spark.post(t,this.form).then((function(t){t.errors?e.booster_activation_error=!0:e.booster_active=!0}))},refresh_page:function(){location.reload()}},mounted:function(){this.load_booster()}})},6942:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("approvers_selector",{filters:{},computed:{potential_approvers:function(){var e,t=null!==(e=this.approvers)&&void 0!==e?e:[];return this.currentTeam.users.filter((function(e){return!t.map((function(e){return e.user_id})).includes(e.id)}))}},props:["parent_selected_item","currentTeam"],data:function(){return{approvers:[]}},watch:{parent_selected_item:function(e,t){var n;this.approvers=null!==(n=(0,i.copyObject)(e.approvers))&&void 0!==n?n:[]}},methods:{get_user_by_id:function(e){var t=(0,i.get_item_by_id)(this.currentTeam.users,e);return null!=t?t:{}},add_approver:function(e){var t={user_id:e.id};this.approvers.push(t),this.update_approvers(),this.$forceUpdate()},remove_approver:function(e){this.approvers.splice(e,1),this.update_approvers(),this.$forceUpdate()},update_approvers:function(){this.$parent.update_selected_item("approvers",this.approvers)}},mounted:function(){}})},3821:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("assignment_selector",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["parent_selected_item","parent"],components:{},watch:{parent_selected_item:function(e,t){this.initialize_assignments()}},computed:{},data:function(){return{assignments:[],eligible_stakeholders:[]}},methods:{get_eligible_stakeholders:function(){var e=[];return this.parent&&this.parent.stakeholders&&(e=this.parent.stakeholders),e},get_assigned_status:function(e){return this.assignments.includes(e.role)},initialize_assignments:function(){var e=this.parent_selected_item.assignments?this.parent_selected_item.assignments:[];this.assignments=(0,i.remove_duplicates)(e),this.eligible_stakeholders=this.get_eligible_stakeholders(),this.$forceUpdate()},set_assigned_status:function(e,t){t?this.assignments.push(e.role):this.assignments=(0,i.remove_from_array)(this.assignments,e.role),this.$parent.update_selected_item("assignments",this.assignments)}},mounted:function(){}})},4197:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("conditions_selector",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["items","parent_selected_item","parent"],components:{},computed:{},data:function(){return{form:new SparkForm({}),display_conditions:!1,current_condition:null,current_condition_index:null,conditions_edit_mode:!1,eligible_items:[],eligible_form_fields:[],eligible_form_fields_dropdown:null,selected_item:{},form_fields:[]}},watch:{parent_selected_item:function(e,t){this.selected_item=(0,i.copyObject)(e),this.initialize_conditions()}},methods:{init:function(){var e=this;e.parent_selected_item&&(e.selected_item=e.parent_selected_item,e.initialize_conditions())},get_eligible_form_fields_dropdown:function(){if(this.form_fields){var e={};return this.form_fields.forEach((function(t){e[t.form_name]||(e[t.form_name]=[]),e[t.form_name].push(t)})),e}return null},initialize_conditions:function(){var e=this;this.form_fields=this.parent.form_fields,this.conditions_edit_mode=!1,this.items&&(this.eligible_items=this.items.filter((function(t){return t.type!==config.ITEM_TYPE_SUBTEMPLATE&&t.type!==config.ITEM_TYPE_SEPARATOR&&t.id!==e.selected_item.id}))),this.form_fields&&(this.eligible_form_fields=this.form_fields.filter((function(t){return e.selected_item.type!==config.ITEM_TYPE_FORM||t.form_id!==e.selected_item.id})),this.eligible_form_fields_dropdown=this.get_eligible_form_fields_dropdown()),this.$forceUpdate()},remove_condition:function(e){this.selected_item.conditions.splice(e,1),this.update_selected_item_conditions(),this.$forceUpdate()},toggle_condition_boolean_operator:function(e){"OR"==this.selected_item.conditions[e].logic_operator?this.selected_item.conditions[e].logic_operator="AND":this.selected_item.conditions[e].logic_operator="OR",this.update_selected_item_conditions()},edit_condition:function(e){this.current_condition_index=e,this.current_condition=this.selected_item.conditions[e],this.conditions_edit_mode=!0},confirm_edit_condition:function(){this.selected_item.conditions[this.current_condition_index]=(0,i.copyObject)(this.current_condition),this.conditions_edit_mode=!1,this.update_selected_item_conditions()},create_condition:function(){this.current_condition_index=-1,this.conditions_edit_mode=!0,this.current_condition={logic_operator:"AND",type:config.CONDITIONS_TYPES.LINE_ITEM,stage_name:this.parent.stages&&this.parent.stages.length?this.parent.stages[0].name:"",stage_operator:"IS_EQUAL_TO",lineitem_status:config.DOC_STATE_RETURNED,lineitem_operator:"IS_AFTER",dossier_status:config.DOSSIER_STATE_INIT,dossier_status_operator:"IS_EQUAL_TO",lineitem_id:this.eligible_items&&this.eligible_items.length?this.eligible_items[0].id:"",formfield_value:"",global_info_operator:"IS_NOT_EMPTY",global_info_field:"dossier.contact_firstname",formfield_operator:"IS_NOT_EMPTY",formfield_id:this.eligible_form_fields&&this.eligible_form_fields.length?this.eligible_form_fields[0].id:"",custom_expression_operator:"IS_NOT_EMPTY"}},confirm_create_condition:function(){this.current_condition.type==config.CONDITIONS_TYPES.FORM_FIELD&&""==this.current_condition.formfield_id||this.current_condition.type==config.CONDITIONS_TYPES.STAGE&&""==this.current_condition.stage_name||this.current_condition.type==config.CONDITIONS_TYPES.LINE_ITEM&&""==this.current_condition.lineitem_id||(-1==this.current_condition_index&&(this.selected_item.conditions||(this.selected_item.conditions=[]),this.selected_item.conditions.push(this.current_condition)),this.update_selected_item_conditions(),this.conditions_edit_mode=!1)},update_selected_item_conditions:function(){this.$parent.update_selected_item("conditions",this.selected_item.conditions)}},mounted:function(){this.init()}})},2457:()=>{Vue.component("date-selector",{filters:{},props:["initial_date","callback_function","field_name"],watch:{initial_date:function(e,t){this.init_current_date()}},data:function(){return{current_date:{}}},components:{},methods:{init_current_date:function(){moment.isMoment(this.initial_date)?(this.current_date.day=this.initial_date.date(),this.current_date.month=this.initial_date.month(),this.current_date.year=this.initial_date.year()):this.initial_date?(this.current_date.day=moment(this.initial_date).date(),this.current_date.month=moment(this.initial_date).month(),this.current_date.year=moment(this.initial_date).year()):(this.current_date.day=moment().date(),this.current_date.month=moment().month(),this.current_date.year=moment().year()),this.$forceUpdate()},get_date_value_object:function(){return this.current_date?{day:this.current_date.day,month:parseInt(this.current_date.month)+1,year:this.current_date.year}:null},get_date_value_string:function(){var e=this.get_date_value_object();if(e){var t=e.day.toString().padStart(2,"0"),n=e.month.toString().padStart(2,"0");return e.year+"-"+n+"-"+t}return null},get_date_value:function(){return this.current_date?moment({day:this.current_date.day,month:parseInt(this.current_date.month)+1,year:this.current_date.year}):null},date_changed:function(){this.callback_function&&this.$parent[this.callback_function](this.field_name,this.get_date_value_string())}},mounted:function(){this.init_current_date()}})},749:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(9980),a=n.n(r);Vue.component("econtract_builder",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},components:{draggable:a()},props:["currentTeam","user","econtract_data","item_id","item_type","parent_id","edit_mode","advanced_signature"],watch:{econtract_data:function(e,t){this.local_econtract_data=e,this.initEcontractBuilder()}},data:function(){return{builder:null,local_econtract_data:null,current_page_number:1,current_page:null,form:new SparkForm({}),current_item:null,drop_event_source:null,signature_choice:"placeholder",available_stakeholders:[],team_templates:[],econtract_config:{},signers_colors:["#bae1ff","#baffc9","#ffffba","#ffdfba","#ffb3ba"],dragging_image:null,selection_items:null}},computed:{},methods:{prepare_econtract_data_fields:function(e){for(var t=[],n=0;n<e.length;n++){var r=(0,i.copyObject)(e[n]);"signature_internal"!=r.type&&"signature_external"!=r.type||(r.type="signature"),"textbox"==r.type&&(r.hasOwnProperty("multiline")||(r.multiline=0)),"signature"==r.type&&(r.hasOwnProperty("verification_code")||(r.verification_code=1),r.hasOwnProperty("verification_code_method")||(r.verification_code_method=this.advanced_signature?"sms":"email")),r.hasOwnProperty("signer")||(r.signer=config.PRIMARY_STAKEHOLDER_ROLE),r.hasOwnProperty("unit")||(r.unit="default"),t.push(r)}return t},init_lists:function(){"template_item"==this.item_type?this.update_stakeholders(this.parent_id,"template"):"dossier_item"==this.item_type?this.update_stakeholders(this.parent_id,"dossier"):this.init_templates()},refresh_page_number:function(){this.builder&&(this.current_page_number=this.builder.getCurrentPage())},onchange_page:function(e){if(this.builder){var t=parseInt(e.target.value);this.builder.gotoPage(t),this.refresh_page_number()}},start_add_field:function(e){},initEcontractBuilder:function(){var e=this;if("function"==typeof EcontractBuilder){e.local_econtract_data=(0,i.copyObject)(e.econtract_data);var t=[];e.local_econtract_data&&(e.econtract_config=e.local_econtract_data[0].config,e.local_econtract_data.forEach((function(n,i){t.push(e.prepare_econtract_data_fields(e.local_econtract_data[i].items))}))),e.builder=new EcontractBuilder(e.local_econtract_data[0].config.source,t,"pdf-canvas","field-canvas",1.5,this.econtract_config.signers,this.signers_colors),e.builder.load(),e.builder.onDropField=function(t,n){e.drop_event_source=n,e.add_field(t)},e.builder.onUpdateField=function(){e.updateServerData()},e.builder.onSelectionStarted=function(t){e.selection_items=(0,i.copyObject)(t),1==t.length&&e.start_edit_field(t[0])},e.builder.onSelectionCleared=function(){e.selection_items=null,e.current_item&&(e.update_item(!1),e.current_item=null)},e.$parent.loading_card=!1,e.show_new_builder_alert()}else setTimeout(this.initEcontractBuilder,500)},show_new_builder_alert:function(){$("#modal_new_builder").modal("show")},updateServerData:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this,n=this.builder.exportData();n.forEach((function(e,i){t.local_econtract_data[i].items=n[i]})),this.form=new SparkForm({econtract_data:this.local_econtract_data});var i="/api/econtract-builder/"+this.item_type+"/"+this.item_id;Spark.put(i,this.form).then((function(t){if(t.errors){t.errors[Object.keys(t.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else e&&notify("success",window.Spark.translations.update_success_message)})).catch((function(e){}))},add_field:function(e){switch(e){case"signature":this.add_signature();break;case"signature_internal":this.add_signature_internal();break;case"signature_external":this.add_signature_external();break;case"checkbox":this.add_checkbox();break;case"tag":this.add_merged_tag();break;case"textbox":this.add_default_field(e,{multiline:0});break;case"label":this.add_default_field(e,{value:"Text"});break;case"date":this.add_default_field(e,{base_date:null});break;default:this.add_default_field(e)}},finalize_add_field:function(e){this.builder.addField(e,this.drop_event_source),this.updateServerData()},add_default_field:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={font_family:"Arial",font_size:12,mandatory:0,type:e,finalized:0,value:"",signer:config.PRIMARY_STAKEHOLDER_ROLE,id:(0,i.numericUniqueId)(),unit:"default"};Object.keys(t).forEach((function(e){n[e]=t[e]})),this.finalize_add_field(n)},add_checkbox:function(){var e={mandatory:0,type:"checkbox",id:(0,i.numericUniqueId)(),signer:config.PRIMARY_STAKEHOLDER_ROLE,finalized:0,value:0,unit:"default"};this.finalize_add_field(e)},add_merged_tag:function(){$("#modal_merged_tag_selector").modal("show")},insert_merged_tag:function(e){this.add_default_field("tag",{tag:e}),$("#modal_merged_tag_selector").modal("hide")},add_signature:function(){this.signature_choice="placeholder",$("#modal_choose_signature").modal("show")},confirm_choose_signature:function(){$("#modal_choose_signature").modal("hide"),"placeholder"==this.signature_choice?this.confirm_add_empty_signature("-"):"now"==this.signature_choice&&this.add_signature_internal()},add_signature_internal:function(){this.$refs.signaturepad.show()},apply_esignature:function(e,t){var n={value:t,role:e,mandatory:1,type:"signature",finalized:1,height:100,width:240,verification_code:1,verification_code_method:"email",signer:config.PRIMARY_STAKEHOLDER_ROLE,id:(0,i.numericUniqueId)(),unit:"default"};this.finalize_add_field(n),$("#modal_signature").modal("hide")},confirm_add_empty_signature:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this;this.form=new SparkForm({role:e});Spark.post("/misc-api/request-signature-empty",this.form).then((function(n){if(!n.errors){var r={value:n.signature_data,role:e,mandatory:1,verification_code:1,verification_code_method:"email",type:"signature",finalized:0,id:(0,i.numericUniqueId)(),signer:config.PRIMARY_STAKEHOLDER_ROLE,unit:"default"};t.finalize_add_field(r),$("#modal_add_empty_signature").modal("hide")}}))},clear_econtract:function(){$("#modal_clear_econtract").modal("show")},confirm_clear_econtract:function(){var e="/api/econtract-builder/"+this.item_type+"/"+this.item_id+"/clear";Spark.post(e,this.form).then((function(e){if(e.errors){e.errors[Object.keys(e.errors)[0]][0];notify("danger",window.Spark.translations.generic_error_message)}else $("#modal_clear_econtract").modal("hide"),window.location.reload()})).catch((function(e){}))},delete_item:function(){this.current_item&&(this.builder.deleteField(this.current_item.id),this.updateServerData())},delete_multiple_items:function(){var e=this;if(this.selection_items){for(var t=(0,i.copyObject)(this.selection_items),n=0;n<t.length;n++){var r=t[n];this.builder.deleteField(r.id)}setTimeout((function(){e.builder.forceRefresh()}),300),this.updateServerData()}},update_item:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.current_item&&(this.builder.updateField(this.current_item.id,this.current_item,e),this.updateServerData())},configure_signers:function(){"econtract"==this.item_type?this.econtract_config.parent_id||(this.econtract_config.parent_id=this.team_templates[0].id):this.econtract_config.parent_id||(this.econtract_config.parent_id=this.parent_id);var e=[],t=this.available_stakeholders.map((function(e){return e.role}));t.sort((function(e,t){return e==config.PRIMARY_STAKEHOLDER_ROLE?-1:t==config.PRIMARY_STAKEHOLDER_ROLE?1:0}));for(var n=this.econtract_config.signers?this.econtract_config.signers:[],i=0;i<n.length;i++){var r=n[i];t.includes(r)&&e.push(r)}for(var a=0;a<t.length;a++){var o=t[a];e.includes(o)||e.push(o)}this.econtract_config.signers=e,this.econtract_config.hasOwnProperty("notify_signers")||(this.econtract_config.notify_signers=1)},show_signing_options:function(){this.configure_signers(),$("#modal_signers").modal("show")},apply_econtract_configuration:function(){this.local_econtract_data[0].config=(0,i.copyObject)(this.econtract_config),this.builder.setSigners(this.econtract_config.signers),this.updateServerData(),$("#modal_signers").modal("hide")},init_templates:function(){var e=this;axios.get("/api/templates").then((function(t){var n=t.data.data;e.team_templates=n,n&&n.length&&(e.econtract_config.parent_id?e.update_stakeholders(e.econtract_config.parent_id,"template",!0):e.update_stakeholders(n[0].id,"template"))})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},update_stakeholders:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this;axios.get("/api/stakeholders/"+t+"/"+e).then((function(e){i.available_stakeholders=e.data.data,n&&(i.econtract_config.signers=i.available_stakeholders.map((function(e){return e.role})),i.econtract_config.signers.sort((function(e,t){return e==config.PRIMARY_STAKEHOLDER_ROLE?-1:t==config.PRIMARY_STAKEHOLDER_ROLE?1:0}))),i.configure_signers(),i.$forceUpdate()})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},change_template:function(){this.update_stakeholders(this.econtract_config.parent_id,"template",!0)},start_edit_field:function(e){e&&(this.configure_signers(),this.current_item=e,this.current_item.signer||(this.current_item.signer=config.PRIMARY_STAKEHOLDER_ROLE),"signature"==this.current_item.type&&(this.current_item.hasOwnProperty("verification_code")||(this.current_item.verification_code=1),this.current_item.hasOwnProperty("verification_code_method")||(this.current_item.verification_code_method=this.currentTeam.advanced_signature?"sms":"email")))},signer_color:function(e){if("*"==e)return"#000000";if(this.econtract_config.signers&&this.signers_colors){var t=0,n=this.econtract_config.signers.indexOf(e);return n>-1&&(t=n),t%=this.signers_colors.length,this.signers_colors[t]}return"#bae1ff"},on_drag_start:function(e,t){this.builder.setCurrentNewType(e)},document_onkeydown:function(e){e.key&&"DELETE"==e.key.toUpperCase()&&"BODY"==e.srcElement.nodeName.toUpperCase()&&this.selection_items&&this.delete_multiple_items()},get_stakeholder_title:function(e){for(var t=this.available_stakeholders,n=0;n<t.length;n++){var i=t[n];if(i.role==e)return i.title}return e}},mounted:function(){var e=this;this.$parent.loading_card=!0,this.init_lists(),window.addEventListener("keydown",this.document_onkeydown),setTimeout((function(){e.initEcontractBuilder()}),3e3)}})},361:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(7540);Vue.component("filters-selector",{filters:{},props:["initial_filters","initial_timeframe","callback_function","editable","target"],watch:{initial_filters:function(e,t){this.init_current_filters_and_timeframe()},initial_timeframe:function(e,t){this.init_current_filters_and_timeframe()}},data:function(){return{current_filters:{},current_timeframe:{},current_target:"dossiers"}},components:{Datepicker:r.Z},computed:{uses_template_filter:function(){return(0,i.has_templates_filter)(this.current_filters)}},methods:{get_datepicker_language:function(e){return(0,i.get_datepicker_languages)()[e]},init_current_filters_and_timeframe:function(){this.current_filters=(0,i.copyObject)(this.initial_filters),this.current_timeframe=(0,i.copyObject)(this.initial_timeframe),this.current_target=this.target,this.$forceUpdate()},update:function(){this.callback_function&&(this.callback_function(this.current_filters,this.current_timeframe),this.$forceUpdate())},add_filter:function(e){this.editable&&(this.current_filters||(this.current_filters={}),this.current_filters[e]=[],this.update())},remove_filter:function(e){this.editable&&(delete this.current_filters[e],this.update())},date_updated:function(){this.update()},get_encoded_filters:function(){var e={timeframe:this.current_timeframe,filters:this.current_filters};return(0,i.encode_filters_object)(e)}},mounted:function(){this.init_current_filters_and_timeframe()}})},3358:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FolderManager:()=>o});var i=n(2741);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 a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(a=i.key,o=void 0,o=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"),"symbol"===r(o)?o:String(o)),i)}var a,o}var o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.source=t,this.items_field=n}var t,n,r;return t=e,(n=[{key:"load_folders",value:function(){this.test=!1;var e=this.source,t=0;"undefined"!=typeof folder&&(t=folder.id);var n="/api/folders/"+this.items_field+"?parent_id="+t;return axios.get(n).then((function(t){e.folders=t.data.data})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},{key:"create",value:function(){this.source.selected_folder={},$("#modal_create_folder").modal("show")}},{key:"confirm_create",value:function(){var e=this.source;if(e.form=new SparkForm({type:this.items_field,title:e.selected_folder.title}),$("#form_clust_create_folder").valid()){var t="/api/folders/";"undefined"!=typeof folder?t+=e.current_folder.id:t+="0",Spark.post(t,e.form).then((function(e){$("#modal_create_folder").modal("hide"),window.location.reload()})).catch((function(e){$("#modal_create_folder").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))}}},{key:"update",value:function(e){this.source.selected_folder=(0,i.copyObject)(e),$("#modal_update_folder").modal("show")}},{key:"confirm_update",value:function(){var e=this.source,t=e,n=(0,i.copyObject)(e.selected_folder);e.form=new SparkForm({title:n.title}),Spark.put("/api/folder/"+n.id,e.form).then((function(e){var r=(0,i.get_item_index_by_id)(t.folders,n.id);t.folders[r]=(0,i.copyObject)(n),$("#modal_update_folder").modal("hide"),notify("success",window.Spark.translations.update_success_message)})).catch((function(e){$("#modal_update_folder").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))}},{key:"del",value:function(e){this.source.selected_folder=e,$("#modal_del_folder").modal("show")}},{key:"confirm_del",value:function(){var e=this.source,t=e;e.form=new SparkForm({});var n="/api/folder/"+e.selected_folder.id;Spark.delete(n,e.form).then((function(e){if(e.error)t.folder_item_empty=!0;else{$("#modal_del_folder").modal("hide");var n=t.folders.findIndex((function(e){return e.id===t.selected_folder.id}));t.folders.splice(n,1),notify("success",window.Spark.translations.delete_success_message)}})).catch((function(e){$("#modal_del_folder").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))}},{key:"view",value:function(e){var t="/app/"+this.items_field+"s?fid="+e.id;window.location.href=t}},{key:"move",value:function(e){this.source.selected_folder=(0,i.copyObject)(e),$("#modal_move_folder").modal("show")}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},8858:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Vue.component("folder-move",{filters:{},props:["selected_folder","item_type","multi_selection_manager"],data:function(){return{current_location:"root",form:new SparkForm({}),folder_tree:[],selected_folder_move:null,original_folder_tree:[]}},computed:{is_move_invalid:function(){if(this.multi_selection_manager.source){if(this.multi_selection_manager.source.checked_ids.length)return"undefined"!=typeof folder?this.selected_folder_move&&this.selected_folder_move.id==folder.id:this.folder_tree==this.original_folder_tree;var e=this.selected_folder.id;return this.folder_tree.some((function(t){return t.id===e}))}}},methods:{load_folder_tree:function(){var e=this,t="/api/folders/get_tree/"+this.item_type;axios.get(t).then((function(t){e.folder_tree=t.data,e.original_folder_tree=e.folder_tree})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},confirm_move:function(){try{this.multi_selection_manager.source.checked_ids.length?this.move_items():this.move_folder(),$("#modal_move_folder").modal("hide"),notify("success",window.Spark.translations.update_success_message),window.location.reload()}catch(e){$("#modal_move_folder").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}},move_items:function(){var e=this,t=this.multi_selection_manager.source.checked_ids,n="";this.selected_folder_move?(e.form=new SparkForm({items_ids:t,folder_id:this.selected_folder_move.id}),n="/api/folder-item/update-multiple"):(e.form=new SparkForm({items_ids:t}),n="/api/folder-item/delete-multiple"),Spark.post(n,e.form).then((function(e){this.selected_folder_move||t.forEach((function(e){var t=self.items.findIndex((function(t){return t.id===e}));self.items.splice(t,1)}))}))},move_folder:function(){var e=(0,i.copyObject)(this.selected_folder),t=null;this.selected_folder_move&&(t=this.selected_folder_move.id),this.form=new SparkForm({parent_id:t}),Spark.put("/api/folder/"+e.id,this.form)},findElementById:function(e,t){var n,i=r(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.id===t)return a;if(a.subfolders&&a.subfolders.length>0){var o=this.findElementById(a.subfolders,t);if(o)return o}}}catch(e){i.e(e)}finally{i.f()}return null},goToParentFolder:function(){if(this.selected_folder_move.absolute_path.length){var e=this.findElementById(this.original_folder_tree,this.selected_folder_move.absolute_path[0].id);this.current_location=this.selected_folder_move.absolute_path[0].title,this.selected_folder_move=e,this.folder_tree=this.selected_folder_move.subfolders}else this.folder_tree=this.original_folder_tree,this.current_location="root",this.selected_folder_move=null},toggleSubfolders:function(e){this.current_location=e.title,this.selected_folder_move=e,e.subfolders.length?this.folder_tree=e.subfolders:this.folder_tree=[]}},mounted:function(){this.load_folder_tree()}})},1998:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(381),a=n.n(r);n(7856);function o(e){var t,n,i;if("start"==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"start")?(n=e.closest(".form-group")[0],i=$(".formbuilder-blocStart").index(n),t=$(".formbuilder-blocEnd")[i]):(t=e.closest(".form-group")[0],i=$(".formbuilder-blocEnd").index(t),n=$(".formbuilder-blocStart")[i]),n&&t){var r=$(".rendered-form > div").index(t),a=$(".rendered-form > div").index(n);if(r>=0&&a>=0&&a<r)return[a,r]}return null}function s(e,t){for(var n=[],r=0;r<e.length;r++){var a=e[r];if("subForm"==a.type){var o=parseInt(a.form_id),l=(0,i.get_item_by_id)(t,o);l&&(n=n.concat(s(l.form_data,t)))}else n.push(a)}return n}function l(e){return l="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},l(e)}Vue.component("form-render",{filters:{},props:["form_data","form_buttons","form_buttons_active"],data:function(){return{loading_card:!1,form_view:null,form:new SparkForm({}),local_form_data:null,form_validation_error:!1,date_pickers:{},pages_count:1,current_page:1}},computed:{},watch:{form_data:function(e,t){this.process_form_data(e)},current_page:function(e,t){this.refresh_current_page_items()}},methods:{process_form_data:function(e){var t=["radio-group","checkbox-group","select"],n=(0,i.copyObject)(e);"object"!==l(n)&&(n=JSON.parse(n)),n=s(n,team_forms),$.each(n,(function(e,i){t.includes(i.type)&&i.values&&i.userData&&$.each(i.values,(function(t,i){i.selected&&delete n[e].values[t].selected})),"date"==i.type&&(i.type="text",i.type_temp="date")})),this.local_form_data=JSON.stringify(n),this.render_form()},init_date_field_data_picker:function(e){if(e.userData){var t=e.name,n=(0,i.load_date_picker)(t);if(this.date_pickers[t]=n,""!==e.userData[0]){var r=e.base_date?a()(e.base_date):e.iso_date?a()(e.iso_date):a()(e.userData[0]);if(n)return e.userData[0]=r.format("L"),void n.setDate(r.toDate(),!0);var o=this;setTimeout((function(){o.init_date_field_data_picker(e)}),300)}}},init_datepickers:function(){var e=this,t=this.form_view.formRender("userData");t&&t.forEach((function(t,n){"date"==t.type_temp&&e.init_date_field_data_picker(t)}))},init_form_layout:function(){if(this.form_view){var e=this.form_view.formRender("userData");e&&e.forEach((function(e,t){var n=$(".rendered-form").children("div").eq(t);1==e.position_width?n.addClass("col-md-6 inline-block2"):n.removeClass("col-md-6 inline-block2")}))}},init_bloc_buttons:function(){var e=this;$(".bloc-buttons .add").on("click",(function(t){var n=o($(this),"end");if(n){var r,a=e.form_view.formRender("userData"),s=a[n[0]],l=a[n[1]];if((0,i.get_count_similar_items)(a,s)<(null!==(r=l.max_instances)&&void 0!==r?r:9999)){var c=function(e,t,n){for(var r=e.slice(0,t),a=e.slice(t,n+1),o=e.slice(n+1),s=(0,i.copyObject)(a),l=0;l<s.length;l++){var c=s[l];if(c.userData&&(delete s[l].userData,s[l].value=null),c.name){c.original_id||(a[l].original_id=c.name,s[l].original_id=c.name);for(var u=(0,i.numericUniqueId)().toString(),d=0;d<s.length;d++){var h=s[d];h.condition_formitem_id==c.name&&(s[d].condition_formitem_id=u),"Formula"==h.subtype&&(s[d].formula=h.formula.replaceAll("["+c.name+"]","["+u+"]"))}s[l].name=u}}return r.concat(a,s,o)}(a,n[0],n[1]);e.process_form_data(c)}}})),$(".bloc-buttons .delete").on("click",(function(){var t,n,i,r,a,s=o($(this),"start");if(s){var l=e.form_view.formRender("userData"),c=(t=l,n=s[0],i=s[1],r=t.slice(0,n),t.slice(n,i+1),a=t.slice(i+1),r.concat(a));e.process_form_data(c)}})),$(".bloc-buttons .delete").on("mouseenter",(function(){var e=o($(this),"start");e&&$(".rendered-form > div").each((function(t){t>e[0]&&t<e[1]&&$(this).addClass("deleting")}))})).on("mouseleave",(function(){var e=o($(this),"start");e&&$(".rendered-form > div").each((function(t){t>e[0]&&t<e[1]&&$(this).removeClass("deleting")}))})),$(".bloc-buttons .toggle").on("mouseenter",(function(){var e=o($(this),"start");e&&$(".rendered-form > div").each((function(t){t>e[0]&&t<e[1]&&$(this).addClass("selecting")}))})).on("mouseleave",(function(){var e=o($(this),"start");e&&$(".rendered-form > div").each((function(t){t>e[0]&&t<e[1]&&$(this).removeClass("selecting")}))}));var t=e.form_view.formRender("userData");(0,i.get_array_fields)(t,"original_id").forEach((function(e){var t=$(".source-id-"+e+" .add"),n=$(".source-id-"+e+" .delete");t&&(t.hide(),t.last().show()),n&&(n.show(),n.first().hide())}))},add_tooltips:function(){$(".tooltip-element").tooltip({title:function(){return $(this).attr("tooltip")}})},add_masks:function(){$("input[mask]").each((function(){$(this).inputmask($(this).attr("mask"))}))},init_pagination:function(){if(this.form_view){var e=1,t=this.form_view.formRender("userData");if(t){this.pages_count=1;for(var n=0;n<t.length;n++){"pageBreak"==t[n].type&&(e++,this.pages_count++);var i=$(".rendered-form").children("div").eq(n);i.attr("data-page",e),i.addClass("page-element")}}}},refresh_current_page_items:function(){var e="[data-page='"+this.current_page+"']",t="[data-page!='"+this.current_page+"']";$(".rendered-form .page-element"+e).show(),$(".rendered-form .page-element"+t).hide(),this.add_tooltips(),this.add_masks()},apply_logic_jumps:function(){var e=this;if(this.form_view){var t=this.form_view.formRender("userData");t&&t.forEach((function(n,r){var a=$(".rendered-form").children("div").eq(r);if("0"!=n.condition_formitem_id){var o=(0,i.get_item_by_field)(t,"name",n.condition_formitem_id),s=(0,i.get_item_index_by_field)(t,"name",n.condition_formitem_id),l=$(".rendered-form").children("div").eq(s);if(o){var c=o.userData&&o.userData[0]?o.userData:[""],u=n.condition_value?n.condition_value:"";"1"==l.attr("data-applicable")&&(0,i.check_logic_match)(c,n.condition_operator,u)?(a.attr("data-applicable","1"),n.applicable=1,a.attr("data-page")==e.current_page&&a.show()):(a.attr("data-applicable","0"),n.applicable=0,a.hide())}}else a.attr("data-applicable","1")}))}},calculate_formula:function(e){var t=e;if(!e)return"";var n=this.form_view.formRender("userData"),r=e.matchAll(/\[(.*?)\]/g);Array.from(r,(function(e){var r,a=e[1],o=1,s="name",l=a.split("#");2==l.length?isNaN(l[0])||isNaN(l[1])||(a=l[0],(o=l[1])>1&&(s="original_id")):isNaN(a)&&(s="label");var c=0;(r=(0,i.get_item_by_field)(n,s,a,o))&&r.userData&&(c=r.userData.join(","),t=t.replace(e[0],c)),t=t.replace(e[0],c)}));try{t=math.evaluate(t),t=(0,i.round_number)(t,2)}catch(e){t="#ERR"}return t},fill_formulas_fields:function(){var e=this;if(this.form_view){var t=this.form_view.formRender("userData");t&&t.forEach((function(t,n){if("Formula"==t.subtype){var i=$(".rendered-form").children("div").eq(n).find("input")[0];i.readOnly=!0;var r=e.calculate_formula(t.formula);i.value=r,t.userData=[r]}}))}},init_fields_instant_validation:function(){var e=this;$(".form-control").not(".datepicker").on("blur",(function(){e.setup_form_validator(),$(this).valid()}))},render_form:function(){if(this.loading_card=!0,"function"==typeof jQuery.fn.formRender){var e=navigator.language||navigator.userLanguage,t={formData:this.local_form_data,i18n:{locale:e,location:"/librairies/form-builder/languages"}};this.form_view=$(".form-builder"),this.form_view.formRender(t);var n=this.local_form_data;"object"!==l(n)&&(n=JSON.parse(n)),$.each(n,(function(e,t){"checkbox-group"===t.type&&void 0!==t.required&&!0===t.required&&t.userData&&t.userData.length>0&&$(".field-"+t.name).find("input").each((function(e,n){-1!==$.inArray(n.value,t.userData)&&$(n).prop("checked",!0)}))})),this.init_form_layout(),this.init_bloc_buttons(),this.init_pagination(),$("input[type='ReadOnly']").prop("readonly",!0),this.loading_card=!1,this.init_datepickers(),this.init_fields_instant_validation(),this.refresh_current_page_items()}else setTimeout(this.render_form,1e3)},setup_form_validator:function(){var e="[data-page!='"+this.current_page+"']",t="[data-page='"+this.current_page+"'][data-applicable='1']";["textarea","input","select"].forEach((function(n){$(".rendered-form .page-element"+e+" "+n).addClass("ignore"),$(".rendered-form .page-element[data-applicable!='1'] "+n).addClass("ignore"),$(".rendered-form .page-element"+t+" "+n).removeClass("ignore")})),$("#form-render").validate({ignore:".ignore",errorPlacement:function(e,t){"radio"==t.attr("type")?e.insertAfter($(t).parents("div.radio-group")):"checkbox"==t.attr("type")?e.insertAfter($(t).parents("div.checkbox-group")):e.insertAfter(t)}});try{$("input[type='Email']").each((function(){$(this).rules("add",{email:!0})})),$("input[type='Url']").each((function(){$(this).rules("add",{url:!0})}))}catch(e){}},validate_current_page_elements:function(){var e=this;return this.setup_form_validator(),!!$("#form-render").valid()||(this.form_validation_error=!0,setTimeout((function(){e.form_validation_error=!1}),3e3),!1)},move_next:function(){this.validate_current_page_elements()&&(this.current_page++,$("html, body").animate({scrollTop:0},600))},move_previous:function(){this.current_page--,$("html, body").animate({scrollTop:0},600)},save_form:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"save_for_later";if((t!=config.SAVE_OPTIONS.SAVE_AND_COMPLETE||this.validate_current_page_elements())&&this.form_buttons_active){var n=this.form_view.formRender("userData");n.forEach((function(t,n){if("date"==t.type_temp){t.type="date",t.userData[0]=$("#"+t.name).val();var i=e.date_pickers[t.name];if(i&&i.dateSelected){var r=Math.round(i.dateSelected.getTime()/1e3).toString();t.timestamp=r;var a=i.dateSelected.toISOString(),o=new Date(a),s=o.getFullYear(),l=String(o.getMonth()+1).padStart(2,"0"),c=String(o.getDate()).padStart(2,"0");t.base_date=s+"-"+l+"-"+c,t.iso_date=a}}t.userData?t.value=t.userData.join(","):t.value=""})),this.$parent.save_form(n,t)}}},mounted:function(){var e=this;setInterval((function(){e.apply_logic_jumps(),e.fill_formulas_fields()}),300)}})},6880:(e,t,n)=>{"use strict";n.r(t);n(9539);Vue.component("merged_tag_selector",{filters:{},props:["template_id"],data:function(){return{form:new SparkForm({}),merged_tag_source:"CONTACT",merged_tag_value:"CONTACT_FULLNAME",selected_template:null,templates_form_fields:[]}},computed:{merged_tag_code:function(){return"FORM_FIELD"==this.merged_tag_source?"{FORM_FIELD_"+this.merged_tag_value+"}":"CUSTOM"==this.merged_tag_source?this.merged_tag_value:"{"+this.merged_tag_value+"}"},eligible_form_fields_dropdown:function(){if(this.templates_form_fields&&this.selected_template){var e=this.templates_form_fields[this.selected_template],t={};return e.forEach((function(e){t[e.form_name]||(t[e.form_name]=[]),t[e.form_name].push(e)})),t}return null}},methods:{init:function(){var e=this;axios.get("/api/team-forms-fields").then((function(t){e.templates_form_fields=t.data})).catch((function(t){notify("danger",window.Spark.translations.generic_error_message),e.loading_card=!1}))},insert_merged_tag:function(){""!=this.merged_tag_code&&this.$parent.insert_merged_tag(this.merged_tag_code)},show:function(){$("#modal_selector").modal("show")},merged_tag_type_changed:function(){switch(event.target.value){case"CUSTOM":this.merged_tag_value="";break;case"CONTACT":this.merged_tag_value="CONTACT_FULLNAME";break;case"DOSSIER":this.merged_tag_value="DOSSIER_ID";break;case"OWNER":this.merged_tag_value="OWNER_FULLNAME";break;case"ITEMS":this.merged_tag_value="ITEMS_ALL";break;case"DATE":this.merged_tag_value="DATE";break;case"FORM_FIELD":this.selected_template=Object.keys(this.templates_form_fields)[0],this.merged_tag_value=this.templates_form_fields[this.selected_template][0].id}}},mounted:function(){this.init()}})},3620:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var i=n(2741);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 a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(a=i.key,o=void 0,o=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a,"string"),"symbol"===r(o)?o:String(o)),i)}var a,o}var o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.source=t,this.items_field=n}var t,n,r;return t=e,(n=[{key:"toggle_select_all_items",value:function(){var e=this;this.source.checked_all?this.source.checked_ids=[]:(this.source.checked_ids=[],this.source.items.forEach((function(t){e.source.checked_ids.push(t.id)})))}},{key:"update_multiple",value:function(e){if(this.source.checked_ids&&this.source.checked_ids.length){var t=function(e,t){for(var n=0;n<e.length;n++)if(e[n].id===t)return e[n];return null}(this.source.items,this.source.checked_ids[0]);t&&(this.source.selected_item={},this.source.multiple_update_field=e,this.source.selected_item[e]=t[e],this.source.selected_item.items_ids=this.source.checked_ids,"rank"==e&&(this.source.selected_item.rank=0),$("#modal_update_multiple_items").modal("show"))}}},{key:"confirm_update_multiple",value:function(){var e=this.source,t=this.source.selected_item;t=(0,i.pick)(t,this.source.multiple_update_field,"rank","items_ids"),this.source.form=new SparkForm(t),Spark.put("/api/"+this.items_field+"/update-multiple",this.source.form).then((function(t){$("#modal_update_multiple_items").modal("hide"),e.loadItems(!1)})).catch((function(e){$("#modal_update_multiple_items").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))}},{key:"delete_multiple",value:function(){this.source.checked_ids&&this.source.checked_ids.length&&$("#modal_delete_multiple_items").modal("show")}},{key:"confirm_delete_multiple",value:function(){var e=this.source,t=this;this.source.form=new SparkForm({items_ids:this.source.checked_ids}),Spark.post("/api/"+this.items_field+"/delete-multiple",this.source.form).then((function(n){$("#modal_delete_multiple_items").modal("hide"),t.clear_multiple_selection(),e.loadItems(!1)})).catch((function(e){$("#modal_delete_multiple_items").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))}},{key:"force_delete_multiple",value:function(){this.source.checked_ids&&this.source.checked_ids.length&&$("#modal_force_delete_multiple_items").modal("show")}},{key:"confirm_force_delete_multiple",value:function(){var e=this.source,t=this;this.source.form=new SparkForm({items_ids:this.source.checked_ids}),Spark.post("/api/"+this.items_field+"/force-delete-multiple",this.source.form).then((function(n){$("#modal_force_delete_multiple_items").modal("hide"),t.clear_multiple_selection(),e.loadItems(!1)})).catch((function(e){$("#modal_force_delete_multiple_items").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))}},{key:"recover_multiple",value:function(){var e=this.source,t=this;this.source.form=new SparkForm({items_ids:this.source.checked_ids}),Spark.post("/api/"+this.items_field+"/recover-multiple",this.source.form).then((function(n){notify("success",window.Spark.translations.update_success_message),t.clear_multiple_selection(),e.loadItems(!1)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},{key:"remind_multiple",value:function(){this.source,this.source.form=new SparkForm({items_ids:this.source.checked_ids}),Spark.post("/api/"+this.items_field+"/remind-multiple",this.source.form).then((function(e){setTimeout((function(){notify("success",window.Spark.translations.dossier_remind_success_message)}),500)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},{key:"send_multiple_emails",value:function(){var e=this.source,t="mailto:";e.items.forEach((function(e){t+=e.email+";"})),window.location.href=t}},{key:"move_multiple",value:function(){this.source.checked_ids&&this.source.checked_ids.length&&$("#modal_move_folder").modal("show")}},{key:"close_multiple",value:function(){this.source.checked_ids&&this.source.checked_ids.length&&$("#modal_close_multiple_items").modal("show")}},{key:"confirm_close_multiple",value:function(){var e=this.source;this.source.form=new SparkForm({items_ids:this.source.checked_ids}),Spark.post("/api/"+this.items_field+"/close-multiple",this.source.form).then((function(t){$("#modal_close_multiple_items").modal("hide"),e.loadItems(!1)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),$("#modal_close_multiple_items").modal("hide")}))}},{key:"clear_multiple_selection",value:function(){this.source.checked_all=!1,this.source.checked_ids=[]}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},4001:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("signaturepad",{filters:{},props:["contact","default_email","default_phone","default_name"],data:function(){return{signaturePad:null,canvas:null,name:null,form:new SparkForm({}),signature_data:null,confirmation_code:"",email:"",phone_number:"",phone_input:null,waiting_time:0,error_invalid_phone_number:!1,code_verification_id:null,code_verification_code:null,code_verification_type:null,error_invalid_code:!1,can_validate:!0,step:1,signer_check:"none",empty_pad_error:!1,manual_signature_mode:!0}},computed:{waiting_string:function(){return this.waiting_time?"("+this.waiting_time+")":""}},methods:{initSignaturePad:function(){if("function"==typeof SignaturePad){var e=document.querySelector(".signature-pad--body canvas");this.signaturePad=new SignaturePad(e),this.canvas=e,this.name=this.default_name;var t=(0,i.getCookie)("clust_signature");t&&(t=JSON.parse(t),this.signaturePad.fromData(t.drawing),this.name=t.name)}else setTimeout(this.initSignaturePad,500)},show:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"none",t=this;this.signer_check=e,this.default_email&&(this.email=this.default_email),this.default_phone&&(this.phone_number=this.default_phone),this.step=1,$("#modal_signature").appendTo("body").modal({backdrop:"static",keyboard:!1},"show"),"sms"!=this.signer_check||this.default_phone||this.phone_input||setTimeout((function(){t.phone_input=(0,i.buildIntPhoneInput)("phone")}),1e3)},draw_name:function(){this.signaturePad.clear();var e=document.querySelector(".signature-pad--body canvas"),t=e.getContext("2d"),n=e.width/2,r=e.height/2+30;t.textAlign="center";var a=(0,i.get_initials_from_name)(this.name);t.font="90px "+e.dataset.font,t.fillText(a,n,r),this.manual_signature_mode=!1},insert_picture:function(){this.signaturePad.clear();var e=document.querySelector(".signature-pad--body canvas"),t=e.getContext("2d"),n=new Image,i=document.getElementById("file").files[0],r=window.URL||window.webkitURL,a=r.createObjectURL(i);n.src=a,n.onload=function(){t.drawImage(n,0,0,n.width,n.height,0,0,e.width,e.height),r.revokeObjectURL(a)},this.manual_signature_mode=!1},clear:function(){this.manual_signature_mode=!0,this.signaturePad.clear()},set_signature_drawing:function(){var e=this,t=this;if(this.signaturePad.isEmpty()&&this.manual_signature_mode)return t.empty_pad_error=!0,void setTimeout((function(){t.empty_pad_error=!1}),2e3);if($("#form_signature_pad").validate({errorPlacement:function(e,t){e.insertAfter($(t).parents("p"))}}),$("#form_signature_pad").valid()){t=this;var n=this.signaturePad.toDataURL();try{var r={drawing:this.signaturePad.toData(),name:this.name};(0,i.setCookie)("clust_signature",JSON.stringify(r),365)}catch(e){}this.form=new SparkForm({data:n,name:this.name});Spark.post("/misc-api/request-signature-drawing",this.form).then((function(n){n.errors||("sms"==e.signer_check?(t.step=2,t.signature_data=n.signature_data,t.code_verification_type="sms"):"email"==e.signer_check?(t.step=2,t.signature_data=n.signature_data,t.code_verification_type="email"):t.$parent.apply_esignature(t.name,n.signature_data))}))}},request_code:function(){var e,t=this,n=this;if("sms"==this.signer_check){if(this.phone_input){if(!this.phone_input.isValidNumber())return void(this.error_invalid_phone_number=!0);this.error_invalid_phone_number=!1,this.phone_number=this.phone_input.getNumber(intlTelInputUtils.numberFormat.E164)}if(!this.phone_number)return;e=this.phone_number}else if("email"==this.signer_check){if(!this.email)return;e=this.email}this.form=new SparkForm({target:e,type:this.signer_check,contact_id:this.contact?this.contact.id:null}),Spark.post("/misc-api/request-verification-code",this.form).then((function(e){e.errors||(n.code_verification_id=e.id,t.code_verification_countdown(60),n.step=3)}))},check_code:function(){var e=this;if($("#form_confirm_code").valid()){var t={code_verification_id:this.code_verification_id,code_verification_code:this.code_verification_code,type:this.signer_check};"sms"==this.signer_check?t.target=this.phone_number:"email"==this.signer_check&&(t.target=this.email),this.form=new SparkForm(t);Spark.post("/misc-api/check-verification-code",this.form).then((function(n){n.errors?n.errors.error_invalid_code&&(e.error_invalid_code=!0):e.$parent.apply_esignature(e.name,e.signature_data,t)}))}},code_verification_countdown:function(e){var t=this;t.waiting_time=e,e&&setTimeout((function(){t.code_verification_countdown(e-1)}),1e3)}},mounted:function(){this.initSignaturePad()}})},8498:(e,t,n)=>{"use strict";n.r(t);var i,r=n(6486);function a(e){return a="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},a(e)}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Vue.component("spreadsheet-render",(o(i={filters:{},props:["spreadsheet_data","spreadsheet_buttons","edit_mode","spreadsheet_buttons_active"]},"filters",{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")})),moment_date_time:function(e){return moment(e).format("L")+" "+moment(e).format("LT")}}),o(i,"data",(function(){return{loading_card:!1,form_view:null,form:new SparkForm({}),local_spreadsheet_data:null,form_validation_error:!1,spreadsheet:null,selection:null}})),o(i,"computed",{}),o(i,"watch",{spreadsheet_data:function(e,t){this.local_spreadsheet_data=e,this.local_spreadsheet_data&&this.render_spreadsheet()}}),o(i,"methods",{render_spreadsheet:function(){var e=this;if(this.loading_card=!0,"function"==typeof jspreadsheet&&this.local_spreadsheet_data){if(!this.local_spreadsheet_data.data)return;document.getElementById("spreadsheet").innerHTML="";var t={columns:this.local_spreadsheet_data.columns,data:this.local_spreadsheet_data.data,style:this.local_spreadsheet_data.style,about:!1,updateTable:function(t,n,i,r,a,o){e.local_spreadsheet_data.columns[i].type==config.SPREADSHEET_COLUMN_TYPES.PICTURE&&(n.innerHTML='<img src="'+a+'" style="width:100px;height:auto">')},onselection:function(t,n,i,r,a,o){var s=jexcel.getColumnNameFromId([n,i]),l=jexcel.getColumnNameFromId([r,a]);e.selection={start:s,end:l}}};if(this.edit_mode){t.toolbar=[{type:"i",content:"undo",onclick:function(){e.spreadsheet.undo()}},{type:"i",content:"redo",onclick:function(){e.spreadsheet.redo()}},{type:"select",k:"font-family",v:["Arial","Brush Script MT","Calibri","Cambria","Courier","Courier New","Garamond","Lucida Bright","Open Sans","Times New Roman","Verdana"]},{type:"select",k:"font-size",v:["9px","10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px"]},{type:"i",content:"format_align_left",k:"text-align",v:"left"},{type:"i",content:"format_align_center",k:"text-align",v:"center"},{type:"i",content:"format_align_right",k:"text-align",v:"right"},{type:"i",content:"format_bold",k:"font-weight",v:"bold"},{type:"color",content:"format_color_text",k:"color"},{type:"color",content:"format_color_fill",k:"background-color"},{type:"i",content:"compress",onclick:function(){if(e.selection)if(e.spreadsheet.getMerge().hasOwnProperty(e.selection.start))e.spreadsheet.removeMerge(e.selection.start);else{var t=1+parseInt(e.selection.end.substring(1,2))-parseInt(e.selection.start.substring(1,2)),n=(0,r.lowerCase)(e.selection.end).substring(0,1).charCodeAt(0)-97+1-((0,r.lowerCase)(e.selection.start).substring(0,1).charCodeAt(0)-97);(t>1||n>1)&&e.spreadsheet.setMerge(e.selection.start,n,t)}}},{type:"i",content:"settings",onclick:function(){e.$parent.update_settings()}}];var n={type:"i",content:"refresh",title:!0,tooltip:window.Spark.translations.refresh_data,onclick:function(){e.$parent.refresh_load_data()}};misc_data&&misc_data.item&&misc_data.item.source==config.SPREADSHEET_REMOTE_DATA_SOURCE.REMOTE&&misc_data.item.source_config&&Object.keys(misc_data.item.source_config).length&&t.toolbar.push(n)}else t.contextMenu=function(){return!1};if(this.spreadsheet=jspreadsheet(document.getElementById("spreadsheet"),t),this.local_spreadsheet_data.mergeCells)for(var i=0,a=Object.entries(this.local_spreadsheet_data.mergeCells);i<a.length;i++){var o=s(a[i],2),l=o[0],c=o[1];e.spreadsheet.setMerge(l,c[0],c[1])}}else setTimeout(this.render_spreadsheet,1e3)},get_spreadsheet_data:function(){var e=null;if(this.spreadsheet){var t=this.spreadsheet.getConfig();e={data:t.data,mergeCells:t.mergeCells,columns:t.columns,style:t.style}}return e},save_spreadsheet:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.spreadsheet_buttons_active){var t=this.get_spreadsheet_data();this.$parent.save_spreadsheet(t,e)}}}),o(i,"mounted",(function(){})),i))},2602:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);n(6808);Vue.component("support_widget",{data:function(){return{widget_mode:"button"}},methods:{open_ticket:function(){(0,i.open_ticket)()},toggle_display_mode:function(){"button"==this.widget_mode?this.widget_mode="menu":this.widget_mode="button"},initialize:function(){}},mounted:function(){this.initialize()}})},943:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(2916),a=n.n(r);function o(e){return o="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},o(e)}Vue.component("tags-selector",{filters:{},props:["tags_element"],watch:{tags_element:function(e,t){this.init_tags_list()}},data:function(){return{current_tag:"",tags_list:[],potential_tags:[],team_tags:[]}},components:{VueTagsInput:a()},computed:{filtered_potential_tags:function(){var e=this;return this.potential_tags.filter((function(t){return-1!==t.text.toLowerCase().indexOf(e.current_tag.toLowerCase())}))}},methods:{load_team_tags:function(){var e=this;axios.get("/api/tags").then((function(t){e.team_tags=t.data.data,e.init_tags_list()}))},get_tag_color:function(e){for(var t=0;t<this.team_tags.length;t++){var n=this.team_tags[t];if(n.name==e)return n.color}return"#8eaef3"},init_tags_list:function(){if(this.potential_tags=[],this.team_tags)for(var e=0;e<this.team_tags.length;e++)this.potential_tags.push({text:"#"+this.team_tags[e].name,style:"color: #FFF; background-color: "+this.team_tags[e].color+"; border: 1px solid "+this.team_tags[e].color});if(this.tags_list=[],this.tags_element&&this.tags_element.tags)for(var t=0;t<this.tags_element.tags.length;t++)if("object"===o(this.tags_element.tags[t]))this.tags_list.push({text:this.tags_element.tags[t].name,style:"color: #FFF; background-color: "+this.tags_element.tags[t].color+"; border: 1px solid "+this.tags_element.tags[t].color});else if("string"==typeof this.tags_element.tags[t]){var n=this.tags_element.tags[t],i=this.get_tag_color(n);this.tags_list.push({text:n,style:"color: #FFF; background-color: "+i+"; border: 1px solid "+i})}this.$forceUpdate(),this.$parent.updateTagsOwner(this.tags_list)},update_tags:function(e){this.tags_list=e,this.$parent.updateTagsOwner(this.tags_list)},add_tag:function(e,t){if(e.tag.text=(0,i.withoutHashtag)(e.tag.text),!(0,i.arrayAttributes)(this.team_tags,"name").includes(e.tag.text)&&!t)return this.$nextTick((function(){return e.addTag=null})),void(this.tag="");""!=e.tag.text&&e.addTag()}},mounted:function(){this.load_team_tags()}})},1678:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("task-render",{filters:{},props:["parent"],data:function(){return{custom_data:null,iframe_resized:!1}},computed:{displayed_instructions:function(){return this.custom_data?this.custom_data.instructions&&""!=this.custom_data.instructions?this.custom_data.instructions:this.parent.comments:null}},watch:{parent:function(e,t){this.init()}},methods:{init:function(){this.custom_data=this.parent.custom_data},confirmTask:function(){this.$parent.confirmTask()},renderText:function(e){return(0,i.prepareForRendering)(e)},resizeIframe:function(){var e=this;setTimeout((function(){var t=document.getElementById("main-iframe");t&&!e.iframe_resized?(t.style.height=t.contentWindow.document.documentElement.scrollHeight+"px",e.iframe_resized=!0):e.resizeIframe()}),500)}},mounted:function(){this.init()}})},1488:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("templates_selector",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["parent_list","team_templates","allow_empty"],components:{},computed:{},data:function(){return{}},watch:{},methods:{addTemplateToList:function(e){this.parent_list.push(e.id)},removeTemplateFromList:function(e){if(this.allow_empty||1!=this.parent_list.length){var t=this.parent_list.indexOf(e);this.parent_list.splice(t,1)}},getTemplateTitleById:function(e){var t=(0,i.get_item_by_id)(this.team_templates,e);return t?t.title:null}},mounted:function(){}})},2741:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{addParamToUrl:()=>addParamToUrl,add_files_as_attachments:()=>add_files_as_attachments,add_hard_password_validator:()=>add_hard_password_validator,arrayAttributes:()=>arrayAttributes,buildIntPhoneInput:()=>buildIntPhoneInput,check_logic_match:()=>check_logic_match,copyObject:()=>copyObject,decorateMentionnedUsers:()=>decorateMentionnedUsers,deleteCookie:()=>deleteCookie,encode_filters_object:()=>encode_filters_object,getCookie:()=>getCookie,getDescendantProp:()=>getDescendantProp,getPreparedUrl:()=>getPreparedUrl,getSparkForm:()=>getSparkForm,getSubscriptionState:()=>getSubscriptionState,getUrlParameters:()=>getUrlParameters,get_array_field_values:()=>get_array_field_values,get_array_fields:()=>get_array_fields,get_count_similar_items:()=>get_count_similar_items,get_datepicker_languages:()=>get_datepicker_languages,get_econtract_status:()=>get_econtract_status,get_filters_timeframe_from_url:()=>get_filters_timeframe_from_url,get_initials_from_name:()=>get_initials_from_name,get_item_by_field:()=>get_item_by_field,get_item_by_id:()=>get_item_by_id,get_item_index_by_field:()=>get_item_index_by_field,get_item_index_by_id:()=>get_item_index_by_id,get_last_item_having_field:()=>get_last_item_having_field,get_last_item_index_having_field:()=>get_last_item_index_having_field,get_money_format:()=>get_money_format,get_stakeholders_for_mention:()=>get_stakeholders_for_mention,get_templates_stakeholders_ids:()=>get_templates_stakeholders_ids,get_users_list:()=>get_users_list,has_templates_filter:()=>has_templates_filter,isJson:()=>isJson,is_object:()=>is_object,load_date_picker:()=>load_date_picker,numericUniqueId:()=>numericUniqueId,open_ticket:()=>open_ticket,pick:()=>pick,prepareForRendering:()=>prepareForRendering,prepare_item_for_display:()=>prepare_item_for_display,prepare_item_for_submit:()=>prepare_item_for_submit,previewFile:()=>previewFile,remove_duplicates:()=>remove_duplicates,remove_from_array:()=>remove_from_array,round_number:()=>round_number,setCookie:()=>setCookie,setDescendantProp:()=>setDescendantProp,strip_tags:()=>strip_tags,swap_keys_values:()=>swap_keys_values,trigger_marketing_event:()=>trigger_marketing_event,truncate_string:()=>truncate_string,type_of_file:()=>type_of_file,uniqueId:()=>uniqueId,validateEmail:()=>validateEmail,validate_email:()=>validate_email,withoutHashtag:()=>withoutHashtag});var dompurify__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7856),dompurify__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(dompurify__WEBPACK_IMPORTED_MODULE_0__),vuejs_datepicker_dist_locale__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6368),vuejs_datepicker_dist_locale__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(vuejs_datepicker_dist_locale__WEBPACK_IMPORTED_MODULE_1__);function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _typeof(e){return _typeof="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},_typeof(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function type_of_file(e){switch(e){case"docx":case"doc":return"word";case"xlsx":case"xls":return"excel";case"pptx":case"ppt":return"powerpoint";case"png":case"jpg":case"gif":case"jpeg":return"image";case"pdf":return"pdf";case"zip":return"zip";default:return"file"}}function validate_email(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())}function copyObject(e){return e?JSON.parse(JSON.stringify(e)):null}function pick(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce((function(t,n){return t[n]=e[n],t}),{})}function get_last_item_having_field(e,t,n){if(!e)return null;for(var i=e.length;i>=0;i--)if(e[i]&&e[i][t]===n)return e[i];return null}function get_last_item_index_having_field(e,t,n){if(!e)return null;for(var i=e.length;i>=0;i--)if(e[i]&&e[i][t]===n)return i;return-1}function get_count_similar_items(e,t){if(!e)return null;var n=null;n=t.original_id?t.original_id:t.name;for(var i=0,r=0;r<e.length;r++)!e[r]||e[r].name!=n&&e[r].original_id!=n||i++;return i}function get_item_by_field(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;for(var r=1,a=0;a<e.length;a++)if(e[a]&&e[a][t]===n){if(r==i)return e[a];r++}return null}function get_item_index_by_field(e,t,n){if(!e)return-1;for(var i=0;i<e.length;i++)if(e[i]&&e[i][t]===n)return i;return-1}function get_item_by_id(e,t){if(!e)return null;for(var n=0;n<e.length;n++)if(e[n]&&e[n].id===t)return e[n];return null}function get_item_index_by_id(e,t){if(!e)return-1;for(var n=0;n<e.length;n++)if(e[n]&&e[n].id===t)return n;return-1}function truncate_string(e,t){var n=e.substr(0,t);return n=n.substr(0,Math.min(n.length,n.lastIndexOf(" ")))}function previewFile(e,t){if($("#modal_preview .previewer").hide(),["pdf","PDF"].includes(t)){var n=e;$("#modal_preview #gview-preview").attr("src",n),$("#modal_preview #gview-preview").show()}else if(["tbd"].includes(t)){n="https://docs.google.com/gview?url="+e+"&embedded=true";$("#modal_preview #gview-preview").attr("src",n),$("#modal_preview #gview-preview").show()}else["tif","tiff","gif","jpeg","jpg","png","bmp"].includes(t)?($("#modal_preview #img-preview").attr("src",e),$("#modal_preview #img-preview").show()):($("#modal_preview #no-preview a").attr("href",e),$("#modal_preview #no-preview").show());$("#modal_preview").modal("show")}function get_stakeholders_for_mention(e){for(var t=[],n=0;n<e.length;n++){var i=copyObject(e[n]);i.email&&(i.username=i.mention_name,i.image=null,t.push(i))}var r={username:window.Spark.translations.recipients_all,image:null};return t.push(r),t}function setCookie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var r="expires="+i.toUTCString();document.cookie=e+"="+t+";"+r+";path=/"}function deleteCookie(e){document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}function getCookie(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var r=n[i];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""}function buildIntPhoneInput(e){var t=document.querySelector("#"+e);if(t){return window.intlTelInput(t,{initialCountry:"auto",geoIpLookup:function(e,t){$.get("https://ipinfo.io?token=36c6223d54198c",(function(){}),"jsonp").always((function(t){var n=t&&t.country?t.country:"";e(n)}))},utilsScript:"/librairies/intl-tel-input/js/utils.js",preferredCountries:["us","gb","fr"]})}}function uniqueId(){return"_"+Math.random().toString(36).substr(2,9)}function numericUniqueId(){return Math.floor(7e5*Math.random())+271092}function strip_tags(e){var t=e||"";return""!=t&&(t=$("<div>").html(t).text()),t}function prepareForRendering(e){var t=e;return(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(t=function(e){return dompurify__WEBPACK_IMPORTED_MODULE_0___default().sanitize(e)}(t)),function(e){return(e||"").includes("<p>")}(t=t.replaceAll("<a ","<a target='_blank' "))?t:(t||"").replace(/([^\S]|^)(((https?\:\/\/)|(www\.))(\S+))/gi,(function(e,t,n){var i=n;return i.match("^https?://")||(i="https://"+i),t+'<a class="link" target="_blank" href="'+i+'">'+n+"</a>"}))}function remove_duplicates(e){var t={};return e.forEach((function(e){t[e]||(t[e]=!0)})),Object.keys(t)}function remove_from_array(e,t){return e.filter((function(e){return e!==t}))}function decorateMentionnedUsers(e){return(e||"").replace(/([@#][\w_-]+)/gi,(function(e,t){return t}))}function getSparkForm(e,t){for(var n={},i=0;i<t.length;i++){var r=t[i];n[r]=e[r]}return new SparkForm(n)}function arrayAttributes(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];n.push(r[t])}return n}function withoutHashtag(e){return"#"==e.charAt(0)?e.substring(1):e}function check_logic_match(values,operator){var condition_value=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,lower_values=values.map((function(e){return e.toLowerCase()})),str1=lower_values[0],str2=condition_value.toLowerCase();switch(operator){case"IS_EMPTY":return!str1||""===str1;case"IS_NOT_EMPTY":return!(!str1||""===str1);case"IS_EQUAL_TO":var s=str1===str2;return eval(s);case"IS_NOT_EQUAL_TO":var s=str1!==str2;return eval(s);case"TEXT_CONTAINS":return str1.includes(str2);case"TEXT_DOESNT_CONTAINS":return!str1.includes(str2);case"TEXT_STARTS_WITH":return str1.startsWith(str2);case"TEXT_ENDS_WITH":return str1.endsWith(str2);case"NUMBER_GREATER_THAN":case"NUMBER_GREATER_THAN":var s1=parseInt(str1),s2=parseInt(str2);return s1>s2;case"NUMBER_LESS_THAN":case"NUMBER_LESS_THAN":var s1=parseInt(str1),s2=parseInt(str2);return s1<s2;case"TEXT_IS_IN_LIST":var str2_array=str2.split(",");return str2_array=str2_array.map((function(e){return e.toLowerCase().trim()})),str2_array.includes(str1);case"VALUES_INCLUDE":return lower_values.includes(str2);default:return!0}}function load_date_picker(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=null;if("undefined"!=typeof datepicker){var n={startDay:1,customDays:moment.weekdaysShort(),customMonths:moment.monthsShort(),overlayButton:"OK",overlayPlaceholder:""+(new Date).getFullYear(),formatter:function(e,t,n){var i=moment(t).format("L");e.value=i}};if(e)try{var i="#"+e;$(i).attr("type","text").addClass("datepicker"),t=datepicker(i,n)}catch(e){}else $('input[type="date"]').each((function(){try{$(this).attr("type","text").addClass("datepicker");var e="#"+$(this).attr("id");t=datepicker(e,n)}catch(e){}}))}return t}function get_econtract_status(e){var t=config.ECONTRACT_STATUS_INIT;return e&&(e.hasOwnProperty("status")?t=e.status:Array.isArray(e)&&(t=config.ECONTRACT_STATUS_SUCCESS)),t}function prepare_item_for_display(e){var t=copyObject(e);return t.type==config.ITEM_TYPE_FILE&&(t.file_data||(t.file_data={}),t.file_accepted_extensions=t.file_data.accepted_extensions,t.file_maximum_uploads=t.file_data.hasOwnProperty("maximum_uploads")?t.file_data.maximum_uploads:0,t.file_shared_visibility=t.file_data.hasOwnProperty("shared_visibility")?t.file_data.shared_visibility:1),t.type==config.ITEM_TYPE_PAYMENT&&(t.payment_data||(t.payment_data={}),t.payment_data.items||(t.payment_data.items=[{title:"",amount:"",tax:null}]),t.payment_items=t.payment_data.items,t.payment_amount=t.payment_data.amount,t.payment_tax=t.payment_data.tax,t.payment_currency=t.payment_data.currency,t.payment_invoice=t.payment_data.invoice,t.payment_plan=t.payment_data.plan,t.payment_plan_product_name=t.payment_data.plan_product_name,t.payment_type=t.payment_data.type?t.payment_data.type:config.PAYMENT_DATA_TYPES.PAYMENT),t.type==config.ITEM_TYPE_IDCHECK&&(t.idcheck_data||(t.idcheck_data={}),t.idcheck_stakeholder_role=t.idcheck_data.stakeholder_role),t.type==config.ITEM_TYPE_FILESHARE&&(t.fileshare_data||(t.fileshare_data={}),t.fileshare_approval_type=t.fileshare_data.approval_type,t.fileshare_value=t.fileshare_data.value),t.type==config.ITEM_TYPE_CUSTOM&&(t.custom_data||(t.custom_data={}),t.custom_url=t.custom_data.url,t.custom_type=t.custom_data.type,t.instructions=t.instructions?t.instructions:t.comments,t.custom_embedded_code=t.custom_data.embedded_code),t.button_text=t.button_text?t.button_text:window.Spark.translations["default_button_"+e.type],t.text_access_rights=t.access_rights?t.access_rights.join("\n"):"",t.instructions=dompurify__WEBPACK_IMPORTED_MODULE_0___default().sanitize(t.instructions),t.comments=dompurify__WEBPACK_IMPORTED_MODULE_0___default().sanitize(t.comments),t.note=dompurify__WEBPACK_IMPORTED_MODULE_0___default().sanitize(t.note),t.instructions_html=t.instructions,t.comments_html=t.comments,t}function prepare_item_for_submit(e,t){var n=copyObject(e);if(n.type==config.ITEM_TYPE_FILE&&(n.file_data={accepted_extensions:n.file_accepted_extensions,maximum_uploads:n.file_maximum_uploads,shared_visibility:n.file_shared_visibility}),n.type==config.ITEM_TYPE_PAYMENT){n.payment_data={items:n.payment_items,amount:n.payment_amount,tax:n.payment_tax,currency:n.payment_currency,invoice:n.payment_invoice,plan:n.payment_plan,plan_product_name:function(e,t){if(t)for(var n=0;n<t.length;n++)for(var i=t[n],r=0;r<i.plans.length;r++){if(i.plans[r].id==e)return i.name}return null}(n.payment_plan,t.team_payment_plans),type:n.payment_type}}return n.type==config.ITEM_TYPE_IDCHECK&&(n.idcheck_data={stakeholder_role:n.idcheck_stakeholder_role}),n.type==config.ITEM_TYPE_FILESHARE&&(n.fileshare_data={approval_type:n.fileshare_approval_type,value:n.fileshare_value}),n.type==config.ITEM_TYPE_CUSTOM&&(n.custom_data={type:n.custom_type,url:n.custom_url,cta:n.custom_cta,embedded_code:n.custom_embedded_code}),n.access_rights=n.text_access_rights?n.text_access_rights.split("\n"):n.text_access_rights,n}function getUrlParameters(){var e=window.location.href,t={},n=document.createElement("a");n.href=e;for(var i=n.search.substring(1).split("&"),r=0;r<i.length;r++){var a=i[r].split("=");""!=a[0]&&(t[a[0]]=decodeURIComponent(a[1]))}return t}function addParamToUrl(e,t,n){var i="?";return e.includes("?")&&(i="&"),e+i+t+"="+n}function trigger_marketing_event(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if("undefined"!=typeof EncTracking){var r;if(!t||!n)return;r=t.current_billing_plan?"appsumo"==t.current_billing_plan||"free"==t.current_billing_plan?t.current_billing_plan:"subscribed":t.trial_ends_at&&moment(t.trial_ends_at).isAfter(moment())?"trial":"lost";var a={email:n.email,userId:""+n.id,team_status:r,firstName:n.firstname,lastName:n.lastname,company:t.name,country:t.country,language:n.language};try{"identify"==e?EncTracking.identify(a):window.EncTracking.track({name:e,properties:i,user:a})}catch(e){}}}function get_array_fields(e,t){if(!e)return null;var n=[];return e.forEach((function(e){e[t]&&n.push(e[t])})),_toConsumableArray(new Set(n))}function get_money_format(e,t){return new Intl.NumberFormat(navigator.language||"en-US",{style:"currency",currency:t,minimumFractionDigits:2}).format(e)}function open_ticket(){$(".support-widget").hide(),zE("webWidget","show"),zE("webWidget","open")}function get_initials_from_name(e){return e.split(" ").map((function(e){return e[0]})).join(".").toUpperCase()}function round_number(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}function swap_keys_values(e){var t={};for(var n in e)t[e[n]]=n;return t}function add_hard_password_validator(){jQuery.validator.addMethod("hardpassword",(function(e,t){return this.optional(t)||e==e.match(/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{10,}$/)}),window.Spark.translations.strong_pwd_alert)}function get_templates_stakeholders_ids(e){var t=[];return e.forEach((function(e){e.stakeholders&&e.stakeholders.forEach((function(e){t.push(e.id)}))})),t}function get_array_field_values(e,t){var n=[];return e.forEach((function(e){n.push(e[t])})),n}function is_object(e){return e&&"object"===_typeof(e)&&e.constructor===Object}function get_filters_timeframe_from_url(){var e=getUrlParameters();if(e&&e.filters){var t=e.filters;return t=decodeURIComponent(t),JSON.parse(t)}return null}function encode_filters_object(e){var t=JSON.stringify(e);return t=encodeURIComponent(t)}function has_templates_filter(e){return e&&e["dossier-template_id"]&&e["dossier-template_id"].length>0}function get_datepicker_languages(){return{en:vuejs_datepicker_dist_locale__WEBPACK_IMPORTED_MODULE_1__.en,es:vuejs_datepicker_dist_locale__WEBPACK_IMPORTED_MODULE_1__.es,fr:vuejs_datepicker_dist_locale__WEBPACK_IMPORTED_MODULE_1__.fr,de:vuejs_datepicker_dist_locale__WEBPACK_IMPORTED_MODULE_1__.de,it:vuejs_datepicker_dist_locale__WEBPACK_IMPORTED_MODULE_1__.it,pt:vuejs_datepicker_dist_locale__WEBPACK_IMPORTED_MODULE_1__.en,po:vuejs_datepicker_dist_locale__WEBPACK_IMPORTED_MODULE_1__.en}}function add_files_as_attachments(e,t,n){var i=new FormData;if(n&&n.length){for(var r=0;r<n.length;r++){var a=n[r];i.append("files[]",a)}var o="/api/attachments/"+e+"/"+t+"/create-many";return axios.post(o,i,{headers:{"Content-Type":"multipart/form-data"}})}}function get_users_list(e,t){for(var n=e.users,i=[],r=0;r<n.length;r++)if(n[r].id!=t.id){var a=copyObject(n[r]);a.username=a.mention_name,a.image=a.photo_url,i.push(a)}return i}function getSubscriptionState(e){return e.current_billing_plan?e.current_billing_plan.includes("clust")?e.current_billing_plan:"Free - "+e.current_billing_plan:e.trial_ends_at?moment(e.trial_ends_at).isAfter(moment())?"Trial":"Lost":"Cancelled"}function validateEmail(e){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function getDescendantProp(e,t){for(var n=t.split(".");n.length&&(e=e[n.shift()]););return e}function setDescendantProp(e,t,n){for(var i=t.split(".");i.length>1&&(e=e[i.shift()]););e[i[0]]=n}function getPreparedUrl(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e;if(t.session_id&&(i=addParamToUrl(i,"session_id",t.session_id)),n)for(var r=getUrlParameters(),a=0,o=Object.entries(r);a<o.length;a++){var s=_slicedToArray(o[a],2);i=addParamToUrl(i,s[0],s[1])}return i}function isJson(e){try{JSON.parse(e)}catch(e){return!1}return!0}},2143:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("delegate_auth",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["team_id","delegate_id"],data:function(){return{form:new SparkForm({}),form_error_message:null}},methods:{change_password:function(){var e=this;if((0,i.add_hard_password_validator)(),$("#form_delegate_pwd").validate({rules:{password:{hardpassword:!0}}}),$("#form_delegate_pwd").valid()){var t="/delegate-api/"+this.delegate_id+"/change-pwd";Spark.post(t,this.form).then((function(t){if(t.errors){var n=t.errors[Object.keys(t.errors)[0]][0];e.form_error_message=n}else window.location.reload()})).catch((function(e){notify("danger",e)}))}}},mounted:function(){}})},3482:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("delegate_portal",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["team_id","delegate_id"],data:function(){return{items:[],templates:[],templates_live:[],new_request:{},page:1,form:new SparkForm({}),keywords:null,form_error_message:null,search_mode:!1,loading_more:!1,loading_card:!1,deleting_item:null,tmp_phone:{}}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length},current_template:function(){var e=(0,i.get_item_by_id)(this.templates,this.form.template_id);return e&&e.collect_custom_values&&(e.collect_custom_values_array=e.collect_custom_values.split("\n")),null!=e?e:{}}},methods:{load_templates:function(){var e=this,t="/delegate-api/"+this.delegate_id+"/templates";axios.get(t).then((function(t){var n=t.data.data;e.templates=n,e.templates_live=n.filter((function(e){return 1==e.is_live}))}))},loadItems:function(){var e=this;e.loading_card=!0,this.page=1;var t="/delegate-api/"+this.delegate_id+"/dossiers";axios.get(t).then((function(t){e.items=t.data.data,e.loading_card=!1}))},loadMoreItems:function(){if(this.search_mode)this.searchLoadMore();else{this.page=this.page+1,this.loading_more=!0;var e="/delegate-api/"+this.delegate_id+"/dossiers?page="+this.page,t=this;axios.get(e).then((function(e){t.items=t.items.concat(e.data.data),t.loading_more=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))}},search:function(e){if(""!=this.keywords){var t=this;t.loading_card=!0,this.page=1,this.filter_status="";var n="/delegate-api/"+this.delegate_id+"/dossiers/search/"+this.keywords+"?page=1";axios.get(n).then((function(e){t.items=e.data.data,t.loading_card=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_card=!1}))}else this.loadItems()},searchLoadMore:function(){this.page=this.page+1,this.loading_more=!0;var e="/delegate-api/"+this.delegate_id+"/dossiers/search/"+this.keywords+"?page="+this.page,t=this;axios.get(e).then((function(e){t.items=t.items.concat(e.data.data),$.each(t.items,(function(e,n){t.items[e].deadline=moment(t.items[e].deadline.date).format(window.Spark.translations.date_format)})),t.loading_more=!1,t.search_mode=!0})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))},del:function(e){this.deleting_item=e,$("#modal_dossier_del").modal("show")},confirm_del:function(){var e=this,t="/delegate-api/"+this.delegate_id+"/dossier/"+this.deleting_item.id;this.form=new SparkForm({}),Spark.delete(t,this.form).then((function(t){$("#modal_dossier_del").modal("hide");var n=e.items.findIndex((function(t){return t.id===e.deleting_item.id}));e.items.splice(n,1),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){$("#modal_dossier_del").modal("hide"),notify("danger",window.Spark.translations.generic_error_message)}))},create:function(){this.form=new SparkForm({firstname:"",lastname:"",email:"",company:"",template_id:""}),$("#modal_dossier_create").modal("show"),this.load_intl_numbers_library()},confirm_create:function(){var e=this,t=this;if($("#form-create-dossier").valid()){this.loading_create=!0;var n="/delegate-api/"+this.delegate_id+"/dossiers";this.form.phone=this.tmp_phone.getNumber(intlTelInputUtils.numberFormat.E164),Spark.post(n,this.form).then((function(n){if($("#modal_dossier_create").modal("hide"),e.loading_create=!1,n.errors){var i=n.errors[Object.keys(n.errors)[0]][0];t.form_error_message=i}else t.loadItems(),notify("success",window.Spark.translations.dossier_create_success_message)})).catch((function(e){$("#modal_dossier_create").modal("hide"),notify("danger",e),t.loading_create=!1}))}},get_table_field_value:function(e,t){var n=JSON.parse(delegate.dossiers_list_fields)[t];return"form_field"==n.type?function(t){for(var n=e.dossier_items,i=0;i<n.length;i++){var r=n[i];if(r.type==config.ITEM_TYPE_FORM&&r.form_data)try{var a=r.form_data;if(a)for(var o=0;o<a.length;o++){var s=a[o];if(s.name==t)return s.userData?s.userData.join():""}}catch(e){}}return null}(n.value):e[n.value]},get_allowed_roles:function(e){var t=e.template_id,n=(0,i.get_item_by_id)(this.templates,t),r=[];return n&&(r=(0,i.get_array_field_values)(n.stakeholders,"role")),r},load_intl_numbers_library:function(){var e=this;setTimeout((function(){e.tmp_phone=(0,i.buildIntPhoneInput)("contact_phone")}),1e3)}},mounted:function(){this.loadItems(),this.load_templates()}})},5854:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("translator_portal",{filters:{moment:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return moment(e).format("L")}))},props:["language"],data:function(){return{context:"",items:[],page:1,form:new SparkForm({}),keywords:"",form_error_message:null,search_mode:!1,loading_more:!1,loading_card:!1,new_string:{},new_email:{},editing_translation:{},editing_source:null}},computed:{has_more_items:function(){return this.items.length>0&&this.items.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.items.length}},methods:{update_items_context:function(){this.loadItems()},refresh:function(){this.context="",this.keywords="",this.loadItems()},build_items_url:function(){var e="/translator-api/translations?page="+this.page;return""!=this.context&&(e=e+"&context="+this.context),""!=this.keywords&&(e=e+"&keywords="+this.keywords),e},loadItems:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this;this.page=1;var n=this.build_items_url();e&&(t.loading_card=!0),axios.get(n).then((function(e){var n=e.data;t.items=n,t.loading_card=!1}))},loadMoreItems:function(){this.page=this.page+1,this.loading_more=!0;var e=this.build_items_url(),t=this;axios.get(e).then((function(e){var n=e.data;$.each(n,(function(e,t){n[e].date=moment(n[e].updated_at.date).format(window.Spark.translations.date_format)})),t.items=t.items.concat(n),t.loading_more=!1})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message),t.loading_more=!1}))},search:function(){this.loadItems()},update:function(e,t){var n=this,r=(0,i.copyObject)(e);r.completed=t,this.form=new SparkForm(r),Spark.put("/translator-api/translation/"+e.id,this.form).then((function(e){notify("success","Translations updated")})).catch((function(e){$("#modal_form_update").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),n.loading_update=!1}))},reinit_translations:function(e){var t=this;this.form=new SparkForm(e),Spark.post("/translator-api/translation/"+e.id+"/reinit_all",this.form).then((function(n){var r=(0,i.get_item_index_by_field)(t.items,"id",e.id);t.items[r]=n,notify("success","Translations loaded from Deepl")})).catch((function(e){$("#modal_form_update").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),t.loading_update=!1}))},init_new_string:function(){this.new_string={context:"",content:"",infos:null,reference:null,laravel_code_id:""}},init_new_email:function(){this.new_email={id:"",infos:"",target:"agent",greetings_end:"",greetings_start:"",content1:"",content2:"",subject:"",cta_title:""}},create:function(){this.init_new_string(),$("#modal_new_string").modal("show")},confirm_create:function(){var e=this;this.form=new SparkForm(this.new_string),$("#form_new_string").valid()&&Spark.post("/translator-api/translations",this.form).then((function(t){e.new_string.laravel_code_id=t.translation_string.laravel_code_id,e.new_string.is_new=t.is_new})).catch((function(t){$("#modal_form_create").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_create=!1}))},create_email:function(){this.init_new_email(),$("#modal_new_email").modal("show")},confirm_create_email:function(){var e=this;this.form=new SparkForm(this.new_email),$("#form_new_email").valid()&&Spark.post("/translator-api/translations/email",this.form).then((function(t){e.refresh(),$("#modal_new_email").modal("hide"),notify("success","Email added")})).catch((function(t){$("#modal_form_create").modal("hide"),notify("danger",window.Spark.translations.generic_error_message),e.loading_create=!1}))},del:function(e){var t=this;confirm("Confirm delete string "+e.id)&&Spark.delete("/translator-api/translation/"+e.id,this.form).then((function(e){t.refresh()}))},edit_translation:function(e,t){var n=(0,i.get_item_by_field)(e.translations,"language_id","en");this.editing_translation=t,this.editing_source=n.content,$("#modal_edit_translation").modal("show")}},mounted:function(){this.loadItems()}})},2228:()=>{"production"==window.Spark.env&&(Vue.config.devtools=!1,Vue.config.debug=!1,Vue.config.silent=!0)},1917:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);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)}var a=n(4080);Vue.component("spark-register-stripe",{mixins:[a],props:["currentTeam","user"],data:function(){return{contact_phone_input:null,current_step:1}},methods:{load_email_address:function(){void 0!==("undefined"==typeof config?"undefined":r(config))&&(this.registerForm.email=config.email_adress)},next_step:function(){$("#form-step-1").validate(),$("#form-step-1").valid()&&(this.load_email_address(),this.current_step=2,$("html, body").animate({scrollTop:0},400))},sendRegistration:function(){this.registerForm.g_recaptcha_response=$("#g-recaptcha-response").val(),this.registerForm.clust_coupon="anything",this.registerForm.marketing_field_1=$("#marketing_field_1").val(),this.registerForm.marketing_field_2=$("#marketing_field_2").val(),this.contact_phone_input&&(this.registerForm.phone=this.contact_phone_input.getNumber(intlTelInputUtils.numberFormat.E164)),this.invitation&&(this.registerForm.user_invited=1),Spark.post("/register",this.registerForm).then((function(e){window.location=e.redirect}))},load_intl_numbers_library:function(){"function"==typeof window.intlTelInput?this.contact_phone_input=(0,i.buildIntPhoneInput)("intl_phone"):setTimeout(this.load_intl_numbers_library,500)}},mounted:function(){setTimeout(this.load_intl_numbers_library,500)}})},615:(e,t,n)=>{n(5027),n(8431),n(1917),n(7893),n(6312),n(1276),n(1467),n(6587),n(1844),n(6992),n(9651),n(9079),n(5495),n(4590),n(6639),n(7371),n(8592),n(6810),n(1401),n(3565),n(1615),n(6642),n(8122),n(7915),n(7445),n(5950),n(2908),n(7594),n(2644),n(8802),n(2966),n(7913),n(1114),n(8655),n(6002),n(2279),n(5657),n(3118),n(5415),n(1594),n(330),n(6772),n(2064),n(819),n(6384),n(37),n(6825),n(5057),n(594),n(6131),n(93),n(3059),n(3553),n(4142),n(5746),n(9472),n(7644),n(3346),n(3303),n(7156),n(9406),n(1387),n(6227),n(4022),n(6282),n(5275),n(9227),n(958),n(7868),n(5457),n(7397),n(4881),n(5015),n(3076),n(9139),n(5122),n(1404)},7397:(e,t,n)=>{var i=n(2589);Vue.component("spark-kiosk-add-discount",{mixins:[i]})},5015:()=>{Vue.component("spark-kiosk-admins",{props:["team"],data:function(){return{admins:[],availableAbilities:[]}},mounted:function(){this.getAdmins(),this.getAvailableAbilities()},created:function(){var e=this;this.$on("updateAdmins",(function(){e.getAdmins()}))},methods:{getAdmins:function(){var e=this;axios.get("/admin/clust-admins").then((function(t){return e.admins=t.data}))},getAvailableAbilities:function(){var e=this;axios.get("/admin/clust-admins/abilities").then((function(t){return e.availableAbilities=t.data}))}}})},5122:()=>{Vue.component("spark-kiosk-create-admin",{props:["availableAbilities"],data:function(){return{showingAdmin:null,allAbilitiesAssigned:!1,viewAllAbilities:!1,form:new SparkForm({name:"",abilities:[]})}},computed:{copyCommandSupported:function(){return document.queryCommandSupported("copy")}},watch:{availableAbilities:function(){this.availableAbilities.length>0&&this.assignDefaultAbilities()}},methods:{assignDefaultAbilities:function(){var e=_.filter(this.availableAbilities,(function(e){return e.default}));this.form.abilities=_.map(e,"value")},assignAllAbilities:function(){this.allAbilitiesAssigned=!0,this.form.abilities=_.map(this.availableAbilities,"value")},removeAllAbilities:function(){this.allAbilitiesAssigned=!1,this.form.abilities=[]},toggleAbility:function(e){this.abilityIsAssigned(e)?this.form.abilities=_.reject(this.form.abilities,(function(t){return t==e})):this.form.abilities.push(e)},abilityIsAssigned:function(e){return _.includes(this.form.abilities,e)},create:function(){var e=this;Spark.post("/admin/clust-admins",this.form).then((function(t){e.resetForm(),e.$parent.$emit("updateAdmins")}))},resetForm:function(){this.form.url="",this.assignDefaultAbilities(),this.allAbilitiesAssigned=!1}}})},1404:()=>{Vue.component("spark-kiosk-admins-list",{props:["admins","availableAbilities"],data:function(){return{updatingAdmin:null,deletingAdmin:null,updateAdminForm:new SparkForm({email:"",abilities:[]}),deleteAdminForm:new SparkForm({})}},methods:{editAdmin:function(e){this.updatingAdmin=e,this.initializeUpdateFormWith(e),$("#modal-update-admin").modal("show")},initializeUpdateFormWith:function(e){this.updateAdminForm.email=e.email,this.updateAdminForm.abilities=e.abilities},updateAdmin:function(){var e=this;Spark.put("/admin/clust-admin/".concat(this.updatingAdmin.id),this.updateAdminForm).then((function(t){e.$parent.$emit("updateAdmins"),$("#modal-update-admin").modal("hide")}))},toggleAbility:function(e){this.abilityIsAssigned(e)?this.updateAdminForm.abilities=_.reject(this.updateAdminForm.abilities,(function(t){return t==e})):(this.updateAdminForm.abilities||(this.updateAdminForm.abilities=[]),this.updateAdminForm.abilities.push(e))},abilityIsAssigned:function(e){return _.includes(this.updateAdminForm.abilities,e)},approveAdminDelete:function(e){this.deletingAdmin=e,$("#modal-delete-admin").modal("show")},deleteAdmin:function(){var e=this;Spark.delete("/admin/clust-admin/".concat(this.deletingAdmin.id),this.deleteAdminForm).then((function(){e.$parent.$emit("updateAdmins"),$("#modal-delete-admin").modal("hide")}))}}})},958:(e,t,n)=>{var i=n(5581);Vue.component("spark-kiosk-announcements",{mixins:[i],data:function(){return{announcements:[],updatingAnnouncement:null,deletingAnnouncement:null,createForm:new SparkForm({body:"",action_text:"",action_url:"",type:"panel",display_duration:0,published_at:moment().hour(16).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss")}),updateForm:new SparkForm({}),deleteForm:new SparkForm({})}},methods:{created:function(){var e=this;Bus.$on("sparkHashChanged",(function(t,n){"announcements"===t&&0===e.announcements.length&&e.getAnnouncements()}))},editAnnouncement:function(e){this.updatingAnnouncement=e,this.updateForm.icon=e.icon,this.updateForm.body=e.body,this.updateForm.action_text=e.action_text,this.updateForm.action_url=e.action_url,this.updateForm.language=e.language,this.updateForm.title=e.title,this.updateForm.emoji=e.emoji,this.updateForm.type=e.type,this.updateForm.published_at=e.published_at,this.updateForm.display_duration=e.display_duration,$("#modal-update-announcement").modal("show")}}})},3076:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(3076);Vue.component("spark-kiosk-audit-process",{mixins:[r],data:function(){return{template:[],template_loaded:!1,template_not_found:!1,error_email:!0,loading:!1,email:null,file_format:"pdf",process_id:null}},methods:{getTemplate:function(){var e="/admin/audit-process/get-template/"+this.process_id,t=this;axios.get(e).then((function(e){t.template=e.data.data,t.template_loaded=!0,t.template_not_found=!1})).catch((function(e){e.response&&404===e.response.status&&(t.template_not_found=!0,t.template_loaded=!1)}))},sendReport:function(){var e=this;if(e.error_email=(0,i.validateEmail)(e.email)){e.loading=!0;var t="/admin/audit-process/run-audit/"+this.process_id;this.form=new SparkForm({email:e.email,file_format:e.file_format}),Spark.post(t,this.form).then((function(t){t.errors?notify("danger",window.Spark.translations.generic_error_message):(notify("success",window.Spark.translations.export_email_success_message),e.loading=!1)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}}}})},9139:(e,t,n)=>{function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var a=n(9139);Vue.component("spark-kiosk-campaign",{mixins:[a],data:function(){return{team_members:[],template:[],campaign:new SparkForm({}),update_campaign:new SparkForm({}),list_campaigns:[],template_loaded:!1,template_not_found:!1,loading:!1,delete_campaign:null,invalid_date:!1}},methods:{loadCampaigns:function(){var e=this;axios.get("/admin/campaigns").then((function(t){e.list_campaigns=t.data.data})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},getTemplate:function(){var e="/admin/campaign/get-template-team-members/"+this.campaign.template_id,t=this;this.loading=!0,axios.get(e).then((function(e){t.template=e.data.template,t.team_members=e.data.team.users,t.template_loaded=!0,t.template_not_found=!1,t.loading=!1})).catch((function(e){e.response&&404===e.response.status&&(t.template_not_found=!0,t.template_loaded=!1,t.loading=!1)}))},loadTeamMembers:function(){var e="/admin/campaign/get-template-team-members/"+this.update_campaign.template_id,t=this;axios.get(e).then((function(e){t.team_members=e.data.team.users})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))},handleFileUpload:function(e){var t=this,n=e.target.files[0];if(n){var i=new FileReader;i.onload=function(e){var n=e.target.result;t.campaign.csv_data=n},i.readAsText(n)}},validateDate:function(e){if(!/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e))return!1;var t=i(e.split(" "),2),n=t[0],r=t[1],a=i(n.split("-").map(Number),3),o=a[0],s=a[1],l=a[2],c=i(r.split(":").map(Number),3),u=c[0],d=c[1],h=c[2];return!(s<1||s>12)&&(!(l<1||l>31)&&(!(u<0||u>23)&&(!(d<0||d>59)&&(!(h<0||h>59)&&!(l>new Date(o,s,0).getDate())))))},launchCampaign:function(){this.invalid_date=!1;var e=this;if(this.validateDate(this.campaign.scheduled_at)){var t=this.campaign.csv_data.split("\n"),n=t[0].toLowerCase().split(",");this.campaign.csv_data=n.join(",")+"\n"+t.slice(1).join("\n"),Spark.post("/admin/campaigns",this.campaign).then((function(t){t.errors?notify("danger",window.Spark.translations.generic_error_message):(e.loadCampaigns(),e.campaign=new SparkForm({}),e.template_loaded=!1,notify("success",window.Spark.translations.campaign_create_success_message))})).catch((function(e){this.campaign.errors.hasErrors()&&notify("danger",window.Spark.translations.generic_error_message)}))}else this.invalid_date=!0},editCampaign:function(e){this.update_campaign=new SparkForm(e),this.loadTeamMembers(),$("#modal-update-campaign").modal("show")},confirmUpdate:function(){var e=this;this.invalid_date=!1,this.validateDate(this.update_campaign.scheduled_at)?Spark.put("/admin/campaign/"+this.update_campaign.id,this.update_campaign).then((function(t){t.errors?notify("danger",window.Spark.translations.generic_error_message):(e.loadCampaigns(),$("#modal-update-campaign").modal("hide"),notify("success",window.Spark.translations.update_success_message))})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)})):this.invalid_date=!0},deleteCampaign:function(e){this.delete_campaign=e,$("#modal-delete-campaign").modal("show")},confirmDelete:function(){var e=this,t=new SparkForm({});Spark.delete("/admin/campaign/"+this.delete_campaign.id,t).then((function(){e.loadCampaigns(),$("#modal-delete-campaign").modal("hide"),notify("success",window.Spark.translations.delete_success_message)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}},mounted:function(){this.loadCampaigns()}})},9227:(e,t,n)=>{var i=n(1096);Vue.component("spark-kiosk",{mixins:[i]})},5457:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(8567);Vue.component("spark-kiosk-profile",{mixins:[r],data:function(){return{form:new SparkForm({}),confirm_partner_mode:!1,updating_team:null,new_invoice:{},invoicing_team:null,app_usage_fields:["users_max","delegates_max","dossiers_max","dossiers_balance","no_emails","allow_multiple_logins","new_dossier_hide_notify_recipient","allow_edit_custom_script","custom_field_prevalidation_active","allow_custom_team_api","charge_started_dossiers","sso_active","internal_support","temp_files_lifetime","available_plans"],string_app_usage_fields:["available_plans"],pricing_data_fields:["pricing_conditions","additional_user","additional_delegate","additional_dossier","base_price","payment_method"],all_boosters:[],team_boosters:[],team_invoices:[],deleting_counter:0}},methods:{loadBoosters:function(){var e=this,t=this.updating_team;axios.all([axios.get("/admin/team-boosters/all-boosters"),axios.get("/admin/team-boosters/team-boosters/"+t.id)]).then(axios.spread((function(t,n){e.all_boosters=t.data,e.team_boosters=n.data,e.prepareBoosters()})))},prepareBoosters:function(){var e=this,t=[];this.all_boosters.forEach((function(n){var r={booster_id:n.id,status:0,name:n.full_name,price:n.price},a=(0,i.get_item_by_field)(e.team_boosters,"booster_id",n.id);a&&(r.status=a.status),t.push(r)})),this.updating_team.boosters=t,this.$forceUpdate()},getPlanById:function(e){for(var t=this.plans,n=0;n<t.length;n++){var i=t[n];if(i.id.substring(0,6)==e.substring(0,6))return i.name+" ("+e+")"}return"unknown"},getSubscriptionState:function(e){return(0,i.getSubscriptionState)(e)},loadInvoices:function(e){var t=this,n="/admin/team-invoices/"+e.id;axios.get(n,this.form).then((function(e){t.team_invoices=e.data}))},showInvoices:function(e){var t=this;$("#modal-manual-invoices").modal("show"),this.invoicing_team=e,t.loadInvoices(e),axios.get("/admin/team/"+e.id,this.form).then((function(n){var r=n.data;(r=(0,i.pick)(r,"billing_name","billing_name","billing_name","billing_address","billing_zip","billing_city","billing_state","billing_country")).amount="",r.description="",r.date="",r.currency=e.currency,t.new_invoice=r}))},invoiceFileChanged:function(){this.new_invoice.file=this.$refs.file.files[0]},addManualInvoice:function(){var e=this,t=this;if($("#form-new-invoice").valid()){var n=new FormData;Object.keys(this.new_invoice).forEach((function(t){n.append(t,e.new_invoice[t])}));var i="/admin/team/"+this.invoicing_team.id+"/add-manual-invoice";axios.post(i,n,{headers:{"Content-Type":"multipart/form-data"}}).then((function(e){notify("success","Invoice added successfully"),t.loadInvoices(t.invoicing_team),t.new_invoice.amount="",t.new_invoice.description="",t.new_invoice.date=""}))}},deleteInvoice:function(e){var t=this;this.form=new SparkForm(e);var n="/admin/team/"+this.invoicing_team.id+"/delete-manual-invoice/"+e.id;Spark.post(n,this.form).then((function(e){notify("success","Invoice delete successfully"),t.loadInvoices(t.invoicing_team)}))},updateTeam:function(e){var t=this,n=this;axios.get("/admin/team/"+e.id,this.form).then((function(e){var r=e.data;r.app_usage||(r.app_usage={}),r.pricing_data||(r.pricing_data={});var a=(0,i.copyObject)(r);a.trial_ends_at&&(a.trial_ends_at=moment(a.trial_ends_at).format("YYYY-MM-DD")),a.subscription_ends_at&&(a.subscription_ends_at=moment(a.subscription_ends_at).format("YYYY-MM-DD")),n.updating_team=a,n.loadBoosters(),t.app_usage_fields.forEach((function(e){e in n.updating_team.app_usage||(n.updating_team.app_usage[e]="available_plans"==e?"all":0)})),n.pricing_data_fields.forEach((function(e){e in n.updating_team.pricing_data||(n.updating_team.pricing_data[e]=0)})),n.deleting_counter=0,$("#modal-update-team").modal("show")}))},confirm_update:function(){var e=this;this.app_usage_fields.forEach((function(t){e.string_app_usage_fields.includes(t)||(e.updating_team.app_usage[t]=parseInt(e.updating_team.app_usage[t]))})),e.updating_team.pricing_data.additional_user=parseFloat(e.updating_team.pricing_data.additional_user),e.updating_team.pricing_data.additional_delegate=parseFloat(e.updating_team.pricing_data.additional_delegate),e.updating_team.pricing_data.additional_dossier=parseFloat(e.updating_team.pricing_data.additional_dossier),e.updating_team.pricing_data.custom_price=parseFloat(e.updating_team.pricing_data.custom_price),this.form=new SparkForm(this.updating_team);var t="/admin/team/"+this.updating_team.id;Spark.put(t,this.form).then((function(t){e.getUserProfile(e.profile.id),$("#modal-update-team").modal("hide")}))},activatePartnerProfile:function(e){var t=this;Spark.post("/admin/activate-partner-profile/"+e.id,this.form).then((function(n){notify("success","Partner profile activated"),t.confirm_partner_mode=!1,e.partner_id=n.id,Bus.$emit("updateUser")}))},loadPartnerProfile:function(e){axios.get("/admin/partner-profile/"+e.id).then((function(t){e.partner_profile=t.data,Bus.$emit("updateUser")}))},deleteTeam:function(){if(this.form=new SparkForm(this.updating_team),this.deleting_counter<3)this.deleting_counter++;else{var e="/admin/team/"+this.updating_team.id;Spark.delete(e,this.form).then((function(e){notify("success","Team deleted successfully"),$("#modal-update-team").modal("hide"),window.location.reload()}))}},customerUrlOnCrm:function(e){return e.crm_id?"https://clustdoc.pipedrive.com/deal/"+e.crm_id:null},customerUrlOnBillingProvider:function(e){return e.gocardless_id?"https://manage.gocardless.com/mandates/"+e.gocardless_id:e.stripe_id?"https://dashboard.stripe.com/customers/"+e.stripe_id:null}}})},4881:()=>{Vue.component("teams-activation",{props:["user"],data:function(){return{form:new SparkForm({team_id:null}),teams:[],loading_card:!1}},methods:{activate:function(e){var t=this;this.form.team_id=e.id,Spark.put("/admin/activate-team",this.form).then((function(n){var i=t.teams.findIndex((function(t){return t.id===e.id}));t.teams.splice(i,1),notify("success","Team validated"),Bus.$emit("updateUser")}))},load_teams:function(){var e=this;e.loading_card=!0;axios.get("/admin/teams-list").then((function(t){e.teams=t.data,e.loading_card=!1})).catch((function(t){notify("danger",t),e.loading_card=!1}))}},mounted:function(){this.load_teams()}})},7868:(e,t,n)=>{var i=n(6747),r=n(2741).getSubscriptionState;Vue.component("spark-kiosk-users",{mixins:[i],methods:{getSubscriptionState:function(e){return r(e)}}})},5027:(e,t,n)=>{var i=n(6474);Vue.component("spark-navbar",{mixins:[i],methods:{show_switch_modal:function(){$("#modal-switch-teams").modal("show")}}})},8431:(e,t,n)=>{var i=n(3679);Vue.component("spark-notifications",{mixins:[i]})},4022:(e,t,n)=>{function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var a=n(610);Vue.component("spark-invoices",{mixins:[a],data:function(){return{invoices_groups:null,form:new SparkForm({billing_invoices_recipients:""}),invalid_emails_format:!1}},methods:{getInvoices:function(){var e=this,t="/settings/teams/".concat(this.team.id,"/invoices-grouped");axios.get(t).then((function(t){e.invoices_groups=t.data}))},isEmailListValid:function(e){var t=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;if(!e||!e.trim())return!0;var n,r=i(e.split(","));try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a=a.trim(),!t.test(a))return!1}}catch(e){r.e(e)}finally{r.f()}return!0},addEmails:function(){if(this.isEmailListValid(this.form.billing_invoices_recipients)){this.invalid_emails_format=!1;Spark.put("/api/team-profile/details",this.form).then((function(e){notify("success",window.Spark.translations.invoice_recipient_add_success_message)}))}else this.invalid_emails_format=!0}},mounted:function(){this.form.billing_invoices_recipients=this.team.billing_invoices_recipients}})},5275:(e,t,n)=>{var i=n(4437);Vue.component("spark-invoice-list",{mixins:[i],props:["invoices_groups"],filters:{moment_month:function(e){return moment(e).format("MMMM YYYY")}}})},6282:(e,t,n)=>{var i=n(4440);Vue.component("spark-update-extra-billing-information",{mixins:[i]})},7156:(e,t,n)=>{var i=n(2635);Vue.component("spark-payment-method-stripe",{mixins:[i]})},6227:(e,t,n)=>{var i=n(5095);Vue.component("spark-redeem-coupon",{mixins:[i]})},1387:(e,t,n)=>{var i=n(1575);Vue.component("spark-update-payment-method-stripe",{mixins:[i]})},9406:(e,t,n)=>{var i=n(5882);Vue.component("spark-update-vat-id",{mixins:[i]})},6312:(e,t,n)=>{var i=n(1850);Vue.component("spark-profile",{mixins:[i]})},9651:()=>{Vue.component("erase-profile-data",{props:["user","currentTeam"],data:function(){return{counter:0,form:new SparkForm({})}},mounted:function(){this.counter=0},methods:{erase:function(){this.counter<2?this.counter++:this.confirm_erase()},confirm_erase:function(){Spark.delete("/api/profile/details/"+this.user.id,this.form).then((function(e){window.location.href="/logout"}))}}})},6992:()=>{Vue.component("grant-support-access",{props:["user","currentTeam"],data:function(){return{form:new SparkForm({support_access_duration:"3"})}},mounted:function(){},methods:{grant:function(){Spark.post("/api/profile/grant-support-access",this.form).then((function(e){Bus.$emit("updateUser"),window.location.reload()}))},revoke:function(){Spark.post("/api/profile/revoke-support-access",this.form).then((function(e){Bus.$emit("updateUser"),window.location.reload()}))}}})},1467:(e,t,n)=>{var i=n(9864);Vue.component("spark-update-contact-information",{mixins:[i],data:function(){return{form:$.extend(!0,new SparkForm({firstname:"",lastname:"",email:""}),Spark.forms.updateContactInformation)}},mounted:function(){this.form.firstname=this.user.firstname,this.form.lastname=this.user.lastname,this.form.email=this.user.email}})},1844:()=>{Vue.component("update-login-alert",{props:["user","currentTeam"],data:function(){return{form:new SparkForm({login_alert:""})}},mounted:function(){this.form.login_alert=this.user.login_alert},methods:{update:function(){Spark.put("/api/profile/details",this.form).then((function(e){Bus.$emit("updateUser")}))}}})},6587:()=>{Vue.component("update-profile-details",{props:["user","currentTeam"],data:function(){return{form:new SparkForm({dossiers_view:"",language:"",colors_theme:"",notifications_cc:"",notification_dossier_submitted:"",notification_new_message:"",notification_item_received:{file:0,form:0,econtract:0,custom:0,spreadsheet:0,payment:0,idcheck:0,fileshare:0},activity_report:""})}},computed:{current_theme_colors:function(){return this.form.colors_theme.split(",")}},mounted:function(){var e,t=null!==(e=user_all_settings)&&void 0!==e?e:{};this.form.language=this.user.language,this.form.colors_theme=this.user.colors_theme,this.form.dossiers_view=t.dossiers_view,this.form.notifications_cc=t.notifications_cc,this.form.notification_dossier_submitted=t.notification_dossier_submitted,this.form.notification_new_message=t.notification_new_message,this.form.activity_report=t.activity_report,t.notification_item_received&&(this.form.notification_item_received=t.notification_item_received)},methods:{update:function(){Spark.put("/api/profile/details",this.form).then((function(e){Bus.$emit("updateUser"),window.location.reload()}))}}})},1276:(e,t,n)=>{var i=n(4764);Vue.component("spark-update-profile-photo",{mixins:[i]})},6131:(e,t,n)=>{var i=n(3362);Vue.component("spark-security",{mixins:[i]})},3553:(e,t,n)=>{var i=n(8661);Vue.component("spark-disable-two-factor-auth",{mixins:[i]})},3059:(e,t,n)=>{var i=n(628);Vue.component("spark-enable-two-factor-auth",{mixins:[i]})},93:(e,t,n)=>{var i=n(2548);Vue.component("spark-update-password",{mixins:[i]})},7893:(e,t,n)=>{var i=n(7565);Vue.component("spark-settings",{mixins:[i]})},5746:(e,t,n)=>{var i=n(4253);Vue.component("spark-subscription",{mixins:[i]})},3303:(e,t,n)=>{var i=n(3542);Vue.component("spark-cancel-subscription",{mixins:[i]})},3346:(e,t,n)=>{var i=n(7135);Vue.component("spark-resume-subscription",{mixins:[i]})},9472:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(8079);Vue.component("spark-subscribe-stripe",{mixins:[r],props:["team","user","availablePlans"],data:function(){return{payment_loading:!1,all_boosters:[],team_boosters:[],tested_boosters:[],untested_boosters:[],activated_boosters_ids:[],view_other_features:!1,subscription_ongoing:!0}},computed:{plan1:function(){return(0,i.get_item_by_field)(this.paidPlansForActiveInterval,"name","Gold")},plan2:function(){return(0,i.get_item_by_field)(this.paidPlansForActiveInterval,"name","Platinium")},features_monthly_total:function(){var e=this,t=0;return this.activated_boosters_ids.forEach((function(n){var r=(0,i.get_item_by_id)(e.all_boosters,n);r&&(t+=r.price)})),t}},methods:{loadBoosters:function(){var e=this;axios.all([axios.get("/api/team-boosters/all-boosters"),axios.get("/api/team-boosters/team-boosters")]).then(axios.spread((function(t,n){e.all_boosters=t.data,e.team_boosters=n.data,e.activated_boosters_ids=e.team_boosters.map((function(e){return e.booster_id})),e.prepareBoosters()})))},prepareBoosters:function(){var e=this;this.all_boosters.forEach((function(t,n,r){r[n].activated=0;var a=(0,i.get_item_by_field)(e.team_boosters,"booster_id",t.id);a&&a.status>config.BOOSTER_STATUS_NONE&&(r[n].activated=1),e.tested_boosters=e.all_boosters.filter((function(e){return e.activated})),e.untested_boosters=e.all_boosters.filter((function(e){return!e.activated}))}))},get_plan_money_format:function(e,t){var n=t.id.substring(t.id.length-3,t.id.length);return(0,i.get_money_format)(e,n)},get_money_format:function(e,t){return(0,i.get_money_format)(e,t)},initializeBillingAddress:function(){this.billable&&(this.form.address=this.billable.billing_address,this.form.address_line_2=this.billable.billing_address_line_2,this.form.city=this.billable.billing_city,this.form.state=this.billable.billing_state,this.form.zip=this.billable.billing_zip,this.form.country=this.billable.billing_country||this.billable.country,this.form.vat_id=this.billable.vat_id)},selectPlan:function(e){this.selectedPlan=e,this.form.plan=this.selectedPlan.id,$("html, body").animate({scrollTop:document.body.scrollHeight-200},500)},createSubscription:function(e){var t=this;this.form.stripe_payment_method=e;var n=this;axios.post(this.urlForNewSubscription,this.form).then((function(e){"Gold"==n.selectedPlan.name&&n.activated_boosters_ids.length&&n.subscribeToSelectedBoosters(),n.subscription_ongoing=!1,$("html, body").animate({scrollTop:0},600)})).catch((function(e){400==e.response.status?window.location="/"+Spark.cashierPath+"/payment/"+e.response.data.paymentId+"?redirect="+t.urlForPlanRedirect:t.form.setErrors(e.response.data.errors)}))},subscribeToSelectedBoosters:function(){this.form.boosters_ids=this.activated_boosters_ids,axios.post("/api/team-boosters/subscribe-many",this.form)},displayAvailablePlansOnly:function(){this.availablePlans&&this.availablePlans.includes("year")&&this.showYearlyPlans()},loadStripeCardTextbox:function(){this.cardElement?setTimeout(this.loadStripeCardTextbox,500):document.getElementById("subscription-card-element")&&(this.cardElement=this.createCardElement("#subscription-card-element"))}},mounted:function(){this.displayAvailablePlansOnly(),this.loadBoosters(),this.loadStripeCardTextbox()}})},7644:(e,t,n)=>{"use strict";n.r(t);var i=n(2741),r=n(882);Vue.component("spark-update-subscription",{mixins:[r],computed:{plan1:function(){return(0,i.get_item_by_field)(this.paidPlansForActiveInterval,"name","Gold")},plan2:function(){return(0,i.get_item_by_field)(this.paidPlansForActiveInterval,"name","Platinium")}},methods:{get_plan_money_format:function(e,t){var n=t.id.substring(t.id.length-3,t.id.length);return(0,i.get_money_format)(e,n)},get_money_format:function(e,t){return(0,i.get_money_format)(e,t)},get_plan_index:function(e){return e.startsWith("plan_")?parseInt(e.substr(5,1)):0}}})},9079:(e,t,n)=>{var i=n(67);Vue.component("spark-teams",{mixins:[i]})},6002:()=>{Vue.component("spark-copy-tool",{props:["user","teams"],data:function(){return{templates:null,team_templates:null,target_teams:null,source_team_id:0,form:new SparkForm({templates_ids:[],source_team_id:0,target_team_id:0})}},created:function(){},computed:{},methods:{update_lists:function(){var e=this;this.teams&&(this.target_teams=e.teams.filter((function(t){return t.id!=e.form.source_team_id}))),this.templates&&(e.team_templates=e.templates.filter((function(t){return t.team_id==e.form.source_team_id}))),this.$forceUpdate()},loadItems:function(){var e=this;axios.get("/api/teams/templates").then((function(t){e.templates=t.data.data,e.filter_templates()}))},copy_template:function(){if(this.form.templates_ids&&0!=this.form.templates_ids.length&&$("#form-copy-process").valid()){Spark.post("/api/teams/copy-template",this.form).then((function(e){if(e.errors){var t=e.errors[Object.keys(e.errors)[0]];notify("danger",t)}else notify("success",window.Spark.translations.process_copy_success_message)})).catch((function(e){notify("danger",window.Spark.translations.generic_error_message)}))}}},mounted:function(){this.source_team_id=this.teams[0].id,this.loadItems()}})},5495:(e,t,n)=>{var i=n(5640);Vue.component("spark-create-team",{mixins:[i],props:["user","team"],computed:{canCreateMoreTeams:function(){return!this.user.max_owned_teams||_.filter(this.user.teams,{owner_id:this.user.id}).length<this.user.max_owned_teams}}})},6639:(e,t,n)=>{var i=n(2906);Vue.component("spark-current-teams",{mixins:[i]})},1594:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("create-delegate",{props:["team","delegates","templates"],data:function(){return{team_delegates:[],team_templates:[],form:new SparkForm({})}},watch:{delegates:function(e,t){this.team_delegates=e},templates:function(e,t){this.team_templates=e}},computed:{canInviteMoreTeamDelegates:function(){var e=this.team.pricing_data;if(e&&e.additional_delegate)return!0;var t=1,n=this.team.app_usage;return n&&n.delegates_max&&(t=n.delegates_max),this.team_delegates.length<t}},created:function(){this.form=new SparkForm({email:"",name:"",password:"",stakeholders_type:config.DELEGATES_STAKEHOLDERS_TYPE_PRIMARY,stakeholders_ids:[]})},methods:{create:function(){var e=this;this.form.stakeholders_type!=config.DELEGATES_STAKEHOLDERS_TYPE_CUSTOM&&(this.form.stakeholders_ids=null),Spark.post("/api/delegates",this.form).then((function(){e.form.email="",e.form.name="",e.form.password="",e.form.stakeholders_type=config.DELEGATES_STAKEHOLDERS_TYPE_PRIMARY,e.form.stakeholders_ids=[],e.$parent.getDelegates()}))},assignAllStakeholders:function(){this.form.stakeholders_ids=(0,i.get_templates_stakeholders_ids)(this.templates)},removeAllStakeholders:function(){this.form.stakeholders_ids=[]}}})},330:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("team-delegates-list",{props:["team","delegates","templates"],data:function(){return{team_delegates:[],team_templates:[],updatingDelegate:null,deletingDelegate:null,form:new SparkForm({})}},created:function(){this.form=new SparkForm({email:"",name:"",password:"",stakeholders_type:"",stakeholders_ids:[]})},watch:{delegates:function(e,t){this.team_delegates=e},templates:function(e,t){this.team_templates=e}},computed:{},methods:{updateTagsOwner:function(e){var t=this;this.form.new_tags=[],e.forEach((function(e){t.form.new_tags.push(e.text)}))},editTeamDelegate:function(e){var t;this.updatingDelegate=e,this.updatingDelegate.stakeholders_ids=null!==(t=this.updatingDelegate.stakeholders_ids)&&void 0!==t?t:[],this.form=new SparkForm(this.updatingDelegate),$("#modal-update-delegate").modal("show")},editTeamDelegatePassword:function(e){this.updatingDelegate=e,this.form=new SparkForm(this.updatingDelegate),$("#modal-update-delegate-password").modal("show")},update:function(){var e="/api/delegate/"+this.updatingDelegate.id,t=this;this.form.stakeholders_type!=config.DELEGATES_STAKEHOLDERS_TYPE_CUSTOM&&(this.form.stakeholders_ids=null),Spark.put(e,this.form).then((function(){t.$parent.getDelegates(),$("#modal-update-delegate").modal("hide"),$("#modal-update-delegate-password").modal("hide")}))},deleteTeamDelegate:function(e){this.form=new SparkForm(e),this.deletingDelegate=e,$("#modal-delete-delegate").modal("show")},deleteDelegate:function(){var e="/api/delegate/"+this.deletingDelegate.id,t=this;Spark.delete(e,this.form).then((function(){t.$parent.getDelegates(),$("#modal-delete-delegate").modal("hide")}))},assignAllStakeholders:function(){this.form.stakeholders_ids=(0,i.get_templates_stakeholders_ids)(this.templates)},removeAllStakeholders:function(){this.form.stakeholders_ids=[]}}})},6384:(e,t,n)=>{var i=n(6239);Vue.component("spark-create-token",{mixins:[i],props:["team"],data:function(){return{viewAllAbilities:!1}}})},37:(e,t,n)=>{var i=n(4579);Vue.component("spark-tokens",{mixins:[i],props:["team"],methods:{initializeUpdateFormWith:function(e){if(this.updateTokenForm.name=e.name,e.metadata){var t=JSON.parse(e.metadata);this.updateTokenForm.abilities=t.abilities}}}})},5057:()=>{Vue.component("spark-create-endpoint",{props:["availableEvents"],data:function(){return{showingEndpoint:null,allEventsAssigned:!1,viewAllEvents:!1,form:new SparkForm({name:"",events:[]})}},computed:{copyCommandSupported:function(){return document.queryCommandSupported("copy")}},watch:{availableEvents:function(){this.availableEvents.length>0&&this.assignDefaultEvents()}},methods:{assignDefaultEvents:function(){var e=_.filter(this.availableEvents,(function(e){return e.default}));this.form.events=_.map(e,"value")},assignAllEvents:function(){this.allEventsAssigned=!0,this.form.events=_.map(this.availableEvents,"value")},removeAllEvents:function(){this.allEventsAssigned=!1,this.form.events=[]},toggleEvent:function(e){this.eventIsAssigned(e)?this.form.events=_.reject(this.form.events,(function(t){return t==e})):this.form.events.push(e)},eventIsAssigned:function(e){return _.includes(this.form.events,e)},create:function(){var e=this;Spark.post("/api/team-webhooks/endpoints",this.form).then((function(t){e.resetForm(),e.$parent.$emit("updateEndpoints")}))},resetForm:function(){this.form.url="",this.assignDefaultEvents(),this.allEventsAssigned=!1}}})},594:()=>{Vue.component("spark-endpoints",{props:["endpoints","availableEvents"],data:function(){return{updatingEndpoint:null,deletingEndpoint:null,updateEndpointForm:new SparkForm({url:"",events:[]}),deleteEndpointForm:new SparkForm({})}},methods:{editEndpoint:function(e){this.updatingEndpoint=e,this.initializeUpdateFormWith(e),$("#modal-update-endpoint").modal("show")},initializeUpdateFormWith:function(e){this.updateEndpointForm.url=e.url,this.updateEndpointForm.events=e.metadata.events},updateEndpoint:function(){var e=this;Spark.put("/api/team-webhooks/endpoint/".concat(this.updatingEndpoint.id),this.updateEndpointForm).then((function(t){e.$parent.$emit("updateEndpoints"),$("#modal-update-endpoint").modal("hide")}))},toggleEvent:function(e){this.eventIsAssigned(e)?this.updateEndpointForm.events=_.reject(this.updateEndpointForm.events,(function(t){return t==e})):this.updateEndpointForm.events.push(e)},eventIsAssigned:function(e){return _.includes(this.updateEndpointForm.events,e)},approveEndpointDelete:function(e){this.deletingEndpoint=e,$("#modal-delete-endpoint").modal("show")},deleteEndpoint:function(){var e=this;Spark.delete("/api/team-webhooks/endpoint/".concat(this.deletingEndpoint.id),this.deleteEndpointForm).then((function(){e.$parent.$emit("updateEndpoints"),$("#modal-delete-endpoint").modal("hide")}))}}})},1114:(e,t,n)=>{var i=n(7263);Vue.component("spark-mailed-invitations",{mixins:[i]})},4590:(e,t,n)=>{var i=n(6275);Vue.component("spark-pending-invitations",{mixins:[i]})},5657:()=>{Vue.component("create-privacy-erasure-rule",{props:["team","templates"],data:function(){return{team_templates:[],form:new SparkForm({target:"0",template_id:"0",interval:"2",interval_type:"month",starting_event:config.PRIVACY_ERASURE_RULES_TRIGGERS.AFTER_CLOSED})}},computed:{},created:function(){},methods:{create:function(){var e=this;Spark.post("/api/privacy-erasure-rules",this.form).then((function(){e.form.target="0",e.form.template_id="0",e.form.interval="2",e.form.interval_type="month",e.form.starting_event=config.PRIVACY_ERASURE_RULES_TRIGGERS.AFTER_CLOSED,e.$parent.getRules(),$("html, body").animate({scrollTop:$(document).height()},1e3)}))}}})},3118:()=>{Vue.component("team-privacy-erasure-rules-list",{props:["team","templates","rules"],data:function(){return{updatingRule:null,deletingRule:null,form:new SparkForm({id:"",target:"",template_id:"",interval:"",interval_type:"",starting_event:""})}},created:function(){},watch:{},computed:{},methods:{editRule:function(e){this.form=new SparkForm(e),this.updatingRule=e,$("#modal-update-rule").modal("show")},update:function(){var e="/api/privacy-erasure-rules/"+this.updatingRule.id,t=this;Spark.put(e,this.form).then((function(){t.$parent.getRules(),$("#modal-update-rule").modal("hide")}))},deleteRule:function(e){this.form=new SparkForm(e),this.deletingRule=e;var t="/api/privacy-erasure-rules/"+this.deletingRule.id,n=this;Spark.delete(t,this.form).then((function(){n.$parent.getRules()}))}}})},7913:(e,t,n)=>{var i=n(915);Vue.component("spark-send-invitation",{mixins:[i],data:function(){return{form:new SparkForm({email:"",role:"agent",abilities:[],existing_user_id:""}),available_abilities:[],available_abilities_objects:[]}},computed:{canInviteMoreTeamMembers:function(){var e=this.$parent.team.pricing_data;if(e&&e.additional_user)return!0;var t=1,n=this.team.app_usage;return n&&n.users_max&&(t=n.users_max),this.$parent.team.users.length<t},currentRoleGroup:function(){return["operator","agent","superagent"].includes(this.form.role)?"agent":["manager","admin","developer","owner"].includes(this.form.role)?"admin":null}},watch:{},methods:{send:function(){var e=this;$("#form-invitation").validate(),$("#form-invitation").valid()&&Spark.post("/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/invitations"),this.form).then((function(){e.form.email="",e.form.role="",e.$parent.$emit("updateInvitations")}))},assignDefaultAbilities:function(){var e=this,t=[];this.available_abilities.forEach((function(n){"read_execute"==e.available_abilities_objects[n].section&&t.push(n)})),this.form.abilities=t},assignAllAbilities:function(){this.form.abilities=this.available_abilities},removeAllAbilities:function(){this.form.abilities=[]},resetForm:function(){this.form.name="",this.assignDefaultAbilities()},teamMemberRole:function(e){if(0===this.roles.length)return"";if("owner"===e.pivot.role)return"Owner";var t=_.find(this.roles,(function(t){return t.value==e.pivot.role}));return void 0!==t?t.text:void 0}},mounted:function(){this.available_abilities_objects=user_abilities,this.available_abilities=Object.keys(this.available_abilities_objects),this.form.existing_user_id=this.team.users[0].id,this.assignDefaultAbilities()}})},6810:(e,t,n)=>{"use strict";n.r(t);var i=n(2741);Vue.component("team-boosters",{props:["team"],data:function(){return{all_boosters:null,team_boosters:null,selectingBooster:null,form:new SparkForm({}),confirming_booster:!1}},computed:{canUseBoosters:function(){return!!this.team.card_brand}},watch:{team:function(e,t){this.loadBoosters()}},methods:{shouldShow:function(e){return!0},loadBoosters:function(){var e=this;axios.all([axios.get("/api/team-boosters/all-boosters"),axios.get("/api/team-boosters/team-boosters")]).then(axios.spread((function(t,n){e.all_boosters=t.data,e.team_boosters=n.data,e.prepareBoosters()})))},prepareBoosters:function(){var e=this,t=this.team.trial_ends_at&&moment.utc(this.team.trial_ends_at).isAfter(moment.utc());this.all_boosters.forEach((function(n,r,a){if(t)a[r].disabled=!0,a[r].checked=!1;else{a[r].disabled=!1,a[r].checked=!1;var o=(0,i.get_item_by_field)(e.team_boosters,"booster_id",n.id);if(o)switch(o.status){case config.BOOSTER_STATUS_NONE:a[r].disabled=!1,a[r].checked=!1;break;case config.BOOSTER_STATUS_TRIAL:case config.BOOSTER_STATUS_PAYING:a[r].disabled=!1,a[r].checked=!0;break;case config.BOOSTER_STATUS_INCLUDED:a[r].disabled=!0,a[r].checked=!0}}}))},toggleBooster:function(e){e.checked?this.openUnsubscribeModal(e):this.openSubscribeModal(e)},openSubscribeModal:function(e){this.selectingBooster=e,this.confirming_booster=!0,$("#modal-confirm-booster-subscribe").modal("show")},confirmSubscribe:function(){var e=this,t="/api/team-boosters/subscribe/"+this.selectingBooster.id;Spark.post(t,this.form).then((function(t){if(t.errors){$("#modal-confirm-booster-subscribe").modal("hide");var n=t.errors[Object.keys(t.errors)[0]];notify("danger",n)}else e.selectingBooster=null,e.loadBoosters(),$("#modal-confirm-booster-subscribe").modal("hide")}))},openUnsubscribeModal:function(e){this.selectingBooster=e,this.confirming_booster=!0,$("#modal-confirm-booster-unsubscribe").modal("show")},confirmUnsubscribe:function(){var e=this,t="/api/team-boosters/unsubscribe/"+this.selectingBooster.id;Spark.post(t,this.form).then((function(t){if(t.errors){$("#modal-confirm-booster-unsubscribe").modal("hide");var n=t.errors[Object.keys(t.errors)[0]];notify("danger",n)}else e.selectingBooster=null,e.loadBoosters(),$("#modal-confirm-booster-unsubscribe").modal("hide")}))}},mounted:function(){this.loadBoosters()},created:function(){}})},5415:()=>{Vue.component("team-delegates",{props:["team"],data:function(){return{delegates:[],templates:[]}},created:function(){this.getDelegates(),this.getTemplates()},methods:{getDelegates:function(){var e=this;axios.get("/api/delegates").then((function(t){e.delegates=t.data.data}))},getTemplates:function(){var e=this;axios.get("/api/templates?is_live=1&relationships=stakeholders&order_by=title").then((function(t){e.templates=t.data.data}))}}})},819:(e,t,n)=>{var i=n(9219);Vue.component("spark-api",{mixins:[i],props:["team"]})},6825:()=>{Vue.component("spark-webhooks",{props:["team"],data:function(){return{endpoints:[],availableEvents:[]}},mounted:function(){this.getEndpoints(),this.getAvailableEvents()},created:function(){var e=this;this.$on("updateEndpoints",(function(){e.getEndpoints()}))},methods:{getEndpoints:function(){var e=this;axios.get("/api/team-webhooks/endpoints").then((function(t){return e.endpoints=t.data}))},getAvailableEvents:function(){var e=this;axios.get("/api/team-webhooks/endpoints/events").then((function(t){return e.availableEvents=t.data}))}}})},8655:(e,t,n)=>{var i=n(522);Vue.component("spark-team-members",{mixins:[i],data:function(){return{local_form:{tags:[]},tag_key:0,available_abilities:[],available_abilities_objects:[]}},computed:{currentRoleGroup:function(){return["operator","agent","superagent"].includes(this.updateTeamMemberForm.role)?"agent":["manager","admin","developer","owner"].includes(this.updateTeamMemberForm.role)?"admin":null}},methods:{updateTagsOwner:function(e){var t=this;this.updateTeamMemberForm.tags=[],e.forEach((function(e){t.updateTeamMemberForm.tags.push(e.text)}))},editTeamMember:function(e){this.updatingTeamMember=e;var t=this,n="/api/team-users/"+e.pivot.id;axios.get(n).then((function(e){var n,i=e.data;t.local_form.tags=i.tags,t.tag_key+=1,t.updateTeamMemberForm.role=i.role,t.updateTeamMemberForm.id=i.id,t.updateTeamMemberForm.abilities=null!==(n=i.abilities)&&void 0!==n?n:[],$("#modal-update-team-member").modal("show")}))},assignDefaultAbilities:function(){var e=this,t=[];this.available_abilities.forEach((function(n){"read_execute"==e.available_abilities_objects[n].section&&t.push(n)})),this.updateTeamMemberForm.abilities=t,this.$forceUpdate()},assignAllAbilities:function(){this.updateTeamMemberForm.abilities=this.available_abilities,this.$forceUpdate()},removeAllAbilities:function(){this.updateTeamMemberForm.abilities=[],this.$forceUpdate()}},mounted:function(){this.available_abilities_objects=user_abilities,this.available_abilities=Object.keys(this.available_abilities_objects)}})},2966:(e,t,n)=>{var i=n(3361);Vue.component("spark-team-membership",{mixins:[i]})},2279:()=>{Vue.component("team-privacy-erasure-rules",{props:["team"],data:function(){return{rules:[],templates:[]}},created:function(){this.getRules(),this.getTemplates()},methods:{getTemplates:function(){var e=this;axios.get("/api/templates").then((function(t){e.templates=t.data.data}))},getRules:function(){var e=this;axios.get("/api/privacy-erasure-rules").then((function(t){e.rules=t.data}))}}})},2064:()=>{Vue.component("team-privacy-requests-list",{props:["team"],data:function(){return{privacy_requests:[],loadingPrivacyRequest:!1,updatingPrivacyRequest:null,deletingPrivacyRequest:null,page:1,keywords:""}},computed:{has_more_items:function(){return this.privacy_requests.length>0&&this.privacy_requests.length%config.ITEMS_PER_PAGE==0},has_no_item:function(){return!this.privacy_requests.length}},created:function(){this.getPrivacyRequests()},methods:{getPrivacyRequests:function(){var e=this;axios.get("/api/privacy-requests?done=0&page=1").then((function(t){e.privacy_requests=t.data.data}))},getPrivacyRequestsMore:function(){var e=this;this.page=this.page+1,this.loadingPrivacyRequest=!0;var t="/api/privacy-requests?done=0&page="+this.page;axios.get(t).then((function(t){e.privacy_requests=e.privacy_requests.concat(t.data.data),e.loadingPrivacyRequest=!1}))},search:function(){var e=this;if(""!=this.keywords){var t="/api/privacy-requests/search/"+this.keywords;axios.get(t).then((function(t){e.privacy_requests=t.data.data}))}else this.getPrivacyRequests()},validateTeamPrivacyRequest:function(e){this.form=new SparkForm(e),this.updatingPrivacyRequest=e,$("#modal-validate-privacy-request").modal("show")},validate:function(){var e="/api/privacy-request/"+this.updatingPrivacyRequest.id+"/validate",t=this;Spark.post(e,this.form).then((function(){$("#modal-validate-privacy-request").modal("hide"),t.updatingPrivacyRequest.done=1,setTimeout((function(){t.getPrivacyRequests()}),500)}))},deleteTeamPrivacyRequest:function(e){this.form=new SparkForm(e),this.deletingPrivacyRequest=e,$("#modal-delete-privacy-request").modal("show")},deletePrivacyRequest:function(){var e="/api/privacy-request/"+this.deletingPrivacyRequest.id,t=this;Spark.delete(e,this.form).then((function(){t.getPrivacyRequests(),$("#modal-delete-privacy-request").modal("hide")}))}}})},8592:(e,t,n)=>{var i=n(3351);Vue.component("spark-team-profile",{mixins:[i]})},7371:(e,t,n)=>{var i=n(3128);Vue.component("spark-team-settings",{mixins:[i],props:["user","currentTeam"],data:function(){return{view_submenu_settings:!0,view_submenu_developers:!1,view_submenu_members:!1,view_submenu_privacy:!1}},methods:{}})},6772:()=>{Vue.component("team-sso",{props:["team"],data:function(){return{form:new SparkForm({sso_entity_id:"",sso_login_url:"",sso_logout_url:"",sso_certificate:"",sso_identifier_email:"",sso_identifier_firstname:"",sso_identifier_lastname:"",sso_disable_regular_auth:""})}},mounted:function(){this.team.sso_settings&&(this.form.sso_entity_id=this.team.sso_settings.sso_entity_id,this.form.sso_login_url=this.team.sso_settings.sso_login_url,this.form.sso_logout_url=this.team.sso_settings.sso_logout_url,this.form.sso_certificate=this.team.sso_settings.sso_certificate,this.form.sso_identifier_email=this.team.sso_settings.sso_identifier_email,this.form.sso_identifier_firstname=this.team.sso_settings.sso_identifier_firstname,this.form.sso_identifier_lastname=this.team.sso_settings.sso_identifier_lastname,this.form.sso_disable_regular_auth=this.team.sso_settings.sso_disable_regular_auth)},methods:{update:function(){$("#form_clust_update_sso").valid()&&Spark.put("/api/team-sso/details",this.form).then((function(e){Bus.$emit("updateTeam"),$("html, body").animate({scrollTop:0},400)})).catch((function(e){}))},clear:function(){var e=this;Spark.post("/api/team-sso/clear",this.form).then((function(t){e.form.sso_entity_id="",e.form.sso_login_url="",e.form.sso_logout_url="",e.form.sso_certificate="",e.form.sso_identifier_email="",e.form.sso_identifier_firstname="",e.form.sso_identifier_lastname="",e.form.sso_disable_regular_auth=!1,Bus.$emit("updateTeam")}))}}})},8122:()=>{Vue.component("update-team-cloud-details",{props:["team"],data:function(){return{form:new SparkForm({cloud_storage_service:"",cloud_storage_settings:{auto_sync:0,root_folder_id:"",folders_names:""}})}},mounted:function(){this.form.cloud_storage_service=this.team.cloud_storage_service,this.form.cloud_storage_settings.auto_sync=this.team.cloud_storage_settings?this.team.cloud_storage_settings.auto_sync:0,this.form.cloud_storage_settings.root_folder_id=this.team.cloud_storage_settings?this.team.cloud_storage_settings.root_folder_id:null,this.form.cloud_storage_settings.folders_names=this.team.cloud_storage_settings?this.team.cloud_storage_settings.folders_names:config.CLOUD_STORAGE_DEFAULT_FOLDERS_NAMES},methods:{connect:function(e){var t="/app/cloud-service/connect/"+e+"/"+this.team.id,n=window.screen.width/2-410,i=window.screen.height/2-350,r=window.open(t,"cloud_connect","status=no,height=600,width=800,resizable=yes,left="+n+",top="+i+",screenX="+n+",screenY="+i+",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no"),a=setInterval((function(){r.closed&&(window.location.reload(),clearInterval(a))}),100)},disconnect:function(e){var t="/app/cloud-service/disconnect/"+e;window.location.href=t},update:function(){Spark.put("/api/team-profile/details",this.form).then((function(e){Bus.$emit("updateTeam")}))}}})},2644:()=>{Vue.component("update-team-cname",{props:["user","currentTeam"],data:function(){return{form:new SparkForm({cname_domain:"",cname_status:0}),domain_validation_error:!1,domain_can_update:!0}},mounted:function(){this.form.cname_domain=this.currentTeam.cname_domain,this.form.cname_status=this.currentTeam.cname_status},methods:{update:function(){if(this.domain_validation_error=!1,$("#form_clust_update_cname").valid()){var e=new RegExp(/^((?:(?:(?:\w[\.\-\+]?)*)\w)+)((?:(?:(?:\w[\.\-\+]?){0,62})\w)+)\.(\w{2,20})$/);this.form.cname_domain&&this.form.cname_domain.match(e)?$("#modal-update-team-cname").modal("show"):this.domain_validation_error=!0}},confirm_update:function(){var e=this;$("#modal-update-team-cname").modal("hide"),Spark.put("/api/team-cname/details",this.form).then((function(t){Bus.$emit("updateTeam"),e.form.cname_status=config.CONFIGURATION_STATUS_PENDING,e.domain_can_update=!1})).catch((function(t){e.form.cname_status=config.CONFIGURATION_STATUS_FAILED}))},clear:function(){var e=this;Spark.post("/api/team-cname/clear",this.form).then((function(t){Bus.$emit("updateTeam"),e.form.cname_status=config.CONFIGURATION_STATUS_NONE,e.domain_can_update=!0,e.form.cname_domain=""}))}}})},1615:(e,t,n)=>{n(6486).takeRight;Vue.component("update-team-custom-settings",{props:["user","team"],data:function(){return{form:new SparkForm({}),editingItemIndex:null}},methods:{initialize_settings:function(){this.form.custom_settings&&this.form.custom_settings.length||(this.form.custom_settings=[{name:window.Spark.translations.new_company_setting,value:""}]),this.$forceUpdate()},add_new_setting:function(){this.initialize_settings(),this.form.custom_settings.push({name:window.Spark.translations.new_company_setting,value:""}),this.$forceUpdate()},remove_setting:function(e){this.form.custom_settings.splice(e,1),this.initialize_settings()},update:function(){var e=this;Spark.put("/api/team-profile/details",this.form).then((function(t){Bus.$emit("updateTeam"),e.editingItemIndex=null}))}},created:function(){this.form.custom_settings=this.team.custom_settings,this.initialize_settings()}})},6642:()=>{Vue.component("update-team-details",{props:["user","team"],data:function(){return{form:new SparkForm({name:"",emails_sender_name:"",sms_sender_name:"",timezone:""})}},mounted:function(){this.form.name=this.team.name,this.form.emails_sender_name=this.team.emails_sender_name,this.form.sms_sender_name=this.team.sms_sender_name,this.form.timezone=this.team.timezone},methods:{update:function(){Spark.put("/api/team-profile/details",this.form).then((function(e){Bus.$emit("updateTeam")}))}}})},3565:()=>{Vue.component("spark-update-team-favicon",{props:["user","team"],data:function(){return{form:new SparkForm({})}},methods:{update:function(e){if(e.preventDefault(),this.$refs.photo.files.length){var t=this;this.form.startProcessing(),axios.post(this.urlForUpdate,this.gatherFormData()).then((function(){Bus.$emit("updateTeam"),Bus.$emit("updateTeams"),t.form.finishProcessing()}),(function(e){t.form.setErrors(e.response.data.errors)}))}},gatherFormData:function(){var e=new FormData;return e.append("photo",this.$refs.photo.files[0]),e},clear:function(){Spark.delete("/settings/teams/"+this.team.id+"/favicon",this.form).then((function(e){Bus.$emit("updateTeam")})).catch((function(e){}))}},computed:{urlForUpdate:function(){return"/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/favicon")},previewStyle:function(){return"background-image: url(".concat(this.team.favicon_url,")")}}})},7445:()=>{Vue.component("update-team-idcheck-details",{props:["user","currentTeam"],data:function(){return{form:new SparkForm({base_url:"",publishable_key:"",private_key:""})}},mounted:function(){this.form.base_url=this.currentTeam.idcheck_base_url,this.form.publishable_key=this.currentTeam.idcheck_publishable_key,this.form.private_key=config.SECRET_INFO_STRING},methods:{update:function(){$("#form_update_idcheck_details").valid()&&Spark.put("/api/team-idcheck/update",this.form).then((function(e){Bus.$emit("updateTeam")}))}}})},2908:(e,t,n)=>{var i=n(3614);Vue.component("spark-update-team-name",{mixins:[i]})},7915:()=>{Vue.component("update-team-payment-details",{props:["user","currentTeam"],data:function(){return{form:new SparkForm({payment_card_key:"",payment_card_secret:"",payment_other_description:""})}},mounted:function(){this.form.payment_card_key=this.currentTeam.payment_card_key,this.form.payment_card_secret=config.SECRET_INFO_STRING,this.form.payment_other_description=this.currentTeam.payment_other_description},methods:{update:function(){$("#form_update_payment_card_details").valid()&&Spark.put("/api/team-payment/update",this.form).then((function(e){Bus.$emit("updateTeam")}))}}})},1401:(e,t,n)=>{var i=n(5710);Vue.component("spark-update-team-photo",{mixins:[i],methods:{clear:function(){Spark.delete("/settings/teams/"+this.team.id+"/photo",this.form).then((function(e){Bus.$emit("updateTeam")})).catch((function(e){}))}}})},4142:()=>{Vue.component("update-team-privacy-details",{props:["user","team"],data:function(){return{form:new SparkForm({terms_url:"",privacy_requests_activated:"",privacy_manager_id:"",privacy_passwords_lifetime:"",privacy_mfa_forced:""})}},computed:{potential_managers:function(){return this.team.users.filter((function(e){return 1==abilities[e.pivot.role].manage_data_privacy}))}},mounted:function(){this.form.terms_url=this.team.terms_url,this.form.privacy_requests_activated=this.team.privacy_requests_activated,this.form.privacy_manager_id=this.team.privacy_manager_id?this.team.privacy_manager_id:this.team.owner_id,this.form.privacy_passwords_lifetime=this.team.privacy_passwords_lifetime,this.form.privacy_mfa_forced=this.team.privacy_mfa_forced},methods:{update:function(){Spark.put("/api/team-profile/details",this.form).then((function(e){Bus.$emit("updateTeam")}))}}})},5950:()=>{Vue.component("update-team-sms-details",{props:["user","currentTeam"],data:function(){return{form:new SparkForm({sms_key:"",sms_secret:"",sms_number:""})}},mounted:function(){this.form.sms_key=this.currentTeam.sms_key,this.form.sms_secret=config.SECRET_INFO_STRING,this.form.sms_number=this.currentTeam.sms_number},methods:{update:function(){$("#form_update_sms_details").valid()&&Spark.put("/api/team-sms/update",this.form).then((function(e){Bus.$emit("updateTeam")}))}}})},7594:()=>{Vue.component("update-team-smtp",{props:["user","currentTeam"],data:function(){return{form:new SparkForm({smtp_sender_email:"",smtp_host:"",smtp_port:"",smtp_username:"",smtp_encryption:"",smtp_password:"",smtp_status:0})}},mounted:function(){this.form.smtp_status=this.currentTeam.smtp_status,this.currentTeam.smtp_settings&&(this.form.smtp_sender_email=this.currentTeam.smtp_settings.smtp_sender_email,this.form.smtp_host=this.currentTeam.smtp_settings.smtp_host,this.form.smtp_port=this.currentTeam.smtp_settings.smtp_port,this.form.smtp_username=this.currentTeam.smtp_settings.smtp_username,this.form.smtp_password="",this.form.smtp_encryption=this.currentTeam.smtp_settings.smtp_encryption)},methods:{update:function(){var e=this;$("#form_clust_update_smtp").valid()&&Spark.put("/api/team-smtp/details",this.form).then((function(t){Bus.$emit("updateTeam"),e.form.smtp_status=config.CONFIGURATION_STATUS_PENDING})).catch((function(t){e.form.smtp_status=config.CONFIGURATION_STATUS_FAILED}))},clear:function(){var e=this;Spark.post("/api/team-smtp/clear",this.form).then((function(t){Bus.$emit("updateTeam"),e.form.smtp_status=config.CONFIGURATION_STATUS_NONE,e.form.smtp_sender_email="",e.form.smtp_host="",e.form.smtp_port="",e.form.smtp_username="",e.form.smtp_password="",e.form.smtp_encryption="tls"}))}}})},8802:()=>{Vue.component("update-team-subdomain",{props:["user","currentTeam"],data:function(){return{form:new SparkForm({subdomain:""}),domain_validation_error:!1}},mounted:function(){this.form.subdomain=this.currentTeam.subdomain},methods:{update:function(){$("#form_clust_update_subdomain").validate(),$("#form_clust_update_subdomain").valid()&&Spark.put("/api/team-subdomain/details",this.form).then((function(e){e.domain&&setTimeout((function(){window.location=e.domain}),2e3),Bus.$emit("updateTeam")})).catch((function(e){}))},clear:function(){var e=this;Spark.post("/api/team-subdomain/clear",this.form).then((function(t){e.form.subdomain="",t.domain&&setTimeout((function(){window.location=t.domain}),2e3),Bus.$emit("updateTeam")}))}}})},4080:(e,t,n)=>{e.exports={mixins:[n(3115),n(2316),n(3563),n(1005)],data:function(){return{query:null,cardElement:null,coupon:null,invalidCoupon:!1,country:null,taxRate:0,registerForm:$.extend(!0,new SparkForm({stripe_payment_method:"",plan:"",team:"",team_slug:"",name:"",email:"",password:"",password_confirmation:"",address:"",address_line_2:"",city:"",state:"",zip:"",country:"US",vat_id:"",terms:!1,coupon:null,invitation:null}),Spark.forms.register),cardForm:new SparkForm({name:"",number:"",cvc:"",month:"",year:""})}},watch:{currentBillingAddress:function(e){Spark.collectsEuropeanVat&&this.refreshTaxRate(this.registerForm)},"registerForm.team":function(e,t){""!==this.registerForm.team_slug&&this.registerForm.team_slug!==t.toLowerCase().replace(/[\s\W-]+/g,"-")||(this.registerForm.team_slug=e.toLowerCase().replace(/[\s\W-]+/g,"-"))},selectedPlan:function(e){var t=this;e&&0!==e.price?this.cardElement||this.$nextTick((function(){t.cardElement=t.createCardElement("#card-element")})):this.cardElement=null}},created:function(){this.getPlans(),this.guessCountry(),this.query=URI(document.URL).query(!0),this.query.coupon&&(this.getCoupon(),this.registerForm.coupon=this.query.coupon),this.query.invitation&&(this.getInvitation(),this.registerForm.invitation=this.query.invitation)},methods:{guessCountry:function(){var e=this;axios.get("/geocode/country").then((function(t){"ZZ"!=t.data&&""!=t.data&&(e.registerForm.country=t.data)})).catch((function(e){}))},getCoupon:function(){var e=this;axios.get("/coupon/"+this.query.coupon).then((function(t){e.coupon=t.data})).catch((function(t){e.invalidCoupon=!0}))},register:function(){var e=this;if(this.cardForm.errors.forget(),this.registerForm.busy=!0,this.registerForm.errors.forget(),!Spark.cardUpFront||this.registerForm.invitation||0===this.selectedPlan.price)return this.sendRegistration();var t={name:this.cardForm.name,address:{line1:this.registerForm.address||"",line2:this.registerForm.address_line_2||"",city:this.registerForm.city||"",state:this.registerForm.state||"",postal_code:this.registerForm.zip||"",country:this.registerForm.country||""}};this.generateToken((function(n){e.stripe.handleCardSetup(n,e.cardElement,{payment_method_data:{billing_details:t}}).then((function(t){t.error?(e.cardForm.errors.set({card:[t.error.message]}),e.registerForm.busy=!1):e.sendRegistration(t.setupIntent.payment_method)}))}))},sendRegistration:function(e){this.registerForm.stripe_payment_method=e,Spark.post("/register",this.registerForm).then((function(e){window.location=e.redirect}))}},computed:{countryCollectsVat:function(){return this.collectsVat(this.registerForm.country)},discount:function(){if(this.coupon)return this.coupon.percent_off?this.coupon.percent_off+"%":Vue.filter("currency")(this.coupon.amount_off/100)},currentBillingAddress:function(){return this.registerForm.address+this.registerForm.address_line_2+this.registerForm.city+this.registerForm.state+this.registerForm.zip+this.registerForm.country+this.registerForm.vat_id}}}},8685:(e,t,n)=>{Vue.filter("date",(function(e){return moment.utc(e).local().format("MMMM Do, YYYY")})),Vue.filter("datetime",(function(e){return moment.utc(e).local().format("MMMM Do, YYYY h:mm A")})),Vue.filter("relative",(function(e){return moment.utc(e).local().locale("en-short").fromNow()})),Vue.filter("capitalize",(function(e){return e||0===e?e.toString().charAt(0).toUpperCase()+e.slice(1):""})),Vue.filter("currency",(function(e){return(0,n(711).Z)({amount:Math.round(100*e),currency:window.Spark.currency}).setLocale(window.Spark.currencyLocale).toFormat("$0,0.00")}))},1601:(e,t,n)=>{Spark.forms={register:{},updateContactInformation:{},updateTeamMember:{}},n(6356),n(2420),$.extend(Spark,n(2792))},2420:()=>{function e(t){return e="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},e(t)}window.SparkFormErrors=function(){this.errors={},this.hasErrors=function(){return!_.isEmpty(this.errors)},this.has=function(e){return _.indexOf(_.keys(this.errors),e)>-1},this.all=function(){return this.errors},this.flatten=function(){return _.flatten(_.toArray(this.errors))},this.get=function(e){if(this.has(e))return this.errors[e][0]},this.set=function(t){"object"===e(t)?this.errors=t:this.errors={form:[__("Something went wrong. Please try again or contact customer support.")]}},this.forget=function(e){void 0===e?this.errors={}:Vue.delete(this.errors,e)}}},6356:()=>{window.SparkForm=function(e){var t=this,n=e;$.extend(this,e),this.errors=new SparkFormErrors,this.busy=!1,this.successful=!1,this.startProcessing=function(){t.errors.forget(),t.busy=!0,t.successful=!1},this.finishProcessing=function(){t.busy=!1,t.successful=!0},this.reset=function(){$.extend(t,n),t.resetStatus()},this.resetStatus=function(){t.errors.forget(),t.busy=!1,t.successful=!1},this.setErrors=function(e){t.busy=!1,t.errors.set(e)}}},2792:e=>{e.exports={post:function(e,t){return Spark.sendForm("post",e,t)},put:function(e,t){return Spark.sendForm("put",e,t)},patch:function(e,t){return Spark.sendForm("patch",e,t)},delete:function(e,t){return Spark.sendForm("delete",e,t)},sendForm:function(e,t,n){return new Promise((function(i,r){n.startProcessing(),axios[e](t,JSON.parse(JSON.stringify(n))).then((function(e){n.finishProcessing(),i(e.data)})).catch((function(e){n.setErrors(e.response.data.errors),r(e.response.data)}))}))}}},2589:(e,t,n)=>{e.exports={mixins:[n(5359)],data:function(){return{loadingCurrentDiscount:!1,currentDiscount:null,discountingUser:null,form:new SparkForm({type:"amount",value:null,duration:"once",months:null})}},created:function(){var e=this;Bus.$on("addDiscount",(function(t){e.form=new SparkForm({type:"amount",value:null,duration:"once",months:null}),e.setUser(t),$("#modal-add-discount").modal("show")}))},methods:{setUser:function(e){this.discountingUser=e,this.getCurrentDiscountForUser(e)},applyDiscount:function(){Spark.post("/spark/kiosk/users/discount/"+this.discountingUser.id,this.form).then((function(){$("#modal-add-discount").modal("hide")}))}}}},5581:e=>{e.exports={data:function(){return{announcements:[],updatingAnnouncement:null,deletingAnnouncement:null,createForm:new SparkForm({body:"",action_text:"",action_url:""}),updateForm:new SparkForm({body:"",action_text:"",action_url:""}),deleteForm:new SparkForm({})}},created:function(){var e=this;Bus.$on("sparkHashChanged",(function(t,n){"announcements"===t&&0===e.announcements.length&&e.getAnnouncements()}))},methods:{getAnnouncements:function(){var e=this;axios.get("/spark/kiosk/announcements").then((function(t){e.announcements=t.data}))},create:function(){var e=this;Spark.post("/spark/kiosk/announcements",this.createForm).then((function(){e.createForm=new SparkForm({body:"",action_text:"",action_url:""}),e.getAnnouncements()}))},editAnnouncement:function(e){this.updatingAnnouncement=e,this.updateForm.icon=e.icon,this.updateForm.body=e.body,this.updateForm.action_text=e.action_text,this.updateForm.action_url=e.action_url,$("#modal-update-announcement").modal("show")},update:function(){var e=this;Spark.put("/spark/kiosk/announcements/"+this.updatingAnnouncement.id,this.updateForm).then((function(){e.getAnnouncements(),$("#modal-update-announcement").modal("hide")}))},approveAnnouncementDelete:function(e){this.deletingAnnouncement=e,$("#modal-delete-announcement").modal("show")},deleteAnnouncement:function(){var e=this;Spark.delete("/spark/kiosk/announcements/"+this.deletingAnnouncement.id,this.deleteForm).then((function(){e.getAnnouncements(),$("#modal-delete-announcement").modal("hide")}))}}}},1096:(e,t,n)=>{e.exports={props:["user"],mixins:[n(6631)],mounted:function(){this.usePushStateForTabs(".spark-settings-tabs")},created:function(){Bus.$on("sparkHashChanged",(function(e,t){return"users"===e&&setTimeout((function(){$("#kiosk-users-search").focus()}),150),!0}))}}},8567:e=>{e.exports={props:["user","plans"],data:function(){return{loading:!1,profile:null,revenue:0}},created:function(){var e=this;this.$parent.$on("showUserProfile",(function(t){e.getUserProfile(t)}))},mounted:function(){var e=this;Mousetrap.bind("esc",(function(t){return e.showSearch()}))},methods:{getUserProfile:function(e){var t=this;this.loading=!0,axios.get("/spark/kiosk/users/"+e+"/profile").then((function(e){t.profile=e.data.user,t.revenue=e.data.revenue,t.loading=!1}))},impersonate:function(e){window.location="/spark/kiosk/users/impersonate/"+e.id},addDiscount:function(e){Bus.$emit("addDiscount",e)},activePlan:function(e){if(this.activeSubscription(e)){var t=this.activeSubscription(e);return _.find(this.plans,(function(e){return e.id===t.provider_plan}))}},activeSubscription:function(e){var t=this.subscription(e);if(!(!t||t.ends_at&&moment.utc().isAfter(moment.utc(t.ends_at))))return t},subscription:function(e){if(e){var t=_.find(e.subscriptions,(function(e){return"default"===e.name}));return void 0!==t?t:void 0}},customerUrlOnBillingProvider:function(e){if(e)return"https://dashboard.stripe.com/customers/"+e.stripe_id},showSearch:function(){this.$parent.$emit("showSearch"),this.profile=null}}}},6747:e=>{e.exports={props:["user"],data:function(){return{plans:[],searchForm:new SparkForm({query:""}),searching:!1,noSearchResults:!1,searchResults:[],showingUserProfile:!1}},created:function(){var e=this;this.getPlans(),this.$on("showSearch",(function(){e.navigateToSearch()})),Bus.$on("sparkHashChanged",(function(t,n){return"users"!=t||(n&&n.length>0?e.loadProfile({id:n[0]}):e.showSearch()),!0}))},methods:{getPlans:function(){var e=this;axios.get("/spark/plans").then((function(t){e.plans=t.data}))},search:function(){var e=this;this.searching=!0,this.noSearchResults=!1,axios.post("/spark/kiosk/users/search",this.searchForm).then((function(t){e.searchResults=t.data,e.noSearchResults=0===e.searchResults.length,e.searching=!1}))},navigateToSearch:function(){history.pushState(null,null,"#/users"),this.showSearch()},showSearch:function(){this.showingUserProfile=!1,Vue.nextTick((function(){$("#kiosk-users-search").focus()}))},showUserProfile:function(e){history.pushState(null,null,"#/users/"+e.id),this.loadProfile(e)},loadProfile:function(e){this.$emit("showUserProfile",e.id),this.showingUserProfile=!0}}}},9963:e=>{e.exports={computed:{billable:function(){return this.billableType?"user"===this.billableType?this.user:this.team:this.user},billingUser:function(){return this.billableType&&"user"===this.billableType},spark:function(){return window.Spark}}}},5359:e=>{e.exports={methods:{getCurrentDiscountForBillable:function(e,t){return"user"===e?this.getCurrentDiscountForUser(t):this.getCurrentDiscountForTeam(t)},getCurrentDiscountForUser:function(e){var t=this;this.currentDiscount=null,this.loadingCurrentDiscount=!0,axios.get("/coupon/user/".concat(e.id)).then((function(e){200===e.status&&(t.currentDiscount=e.data),t.loadingCurrentDiscount=!1}))},getCurrentDiscountForTeam:function(e){var t=this;this.currentDiscount=null,this.loadingCurrentDiscount=!0,axios.get("/settings/".concat(Spark.teamsPrefix,"/coupon/").concat(e.id)).then((function(e){200===e.status&&(t.currentDiscount=e.data),t.loadingCurrentDiscount=!1}))},formattedDiscount:function(e){if(e)return e.percent_off?"".concat(e.percent_off,"%"):Vue.filter("currency")(this.calculateAmountOff(e.amount_off))},calculateAmountOff:function(e){return e/100}}}},2316:e=>{e.exports={data:function(){return{selectedPlan:null,detailingPlan:null,showingMonthlyPlans:!0,showingYearlyPlans:!1}},methods:{showMonthlyPlans:function(){this.showingMonthlyPlans=!0,this.showingYearlyPlans=!1},showYearlyPlans:function(){this.showingMonthlyPlans=!1,this.showingYearlyPlans=!0},showPlanDetails:function(e){this.detailingPlan=e,$("#modal-plan-details").modal("show")}},computed:{activeInterval:function(){return this.showingMonthlyPlans?"monthly":"yearly"},plansForActiveInterval:function(){var e=this;return _.filter(this.plans,(function(t){return t.active&&(0===t.price||t.interval===e.activeInterval)}))},paidPlans:function(){return _.filter(this.plans,(function(e){return e.active&&e.price>0}))},paidPlansForActiveInterval:function(){return _.filter(this.plansForActiveInterval,(function(e){return e.active&&e.price>0}))},hasMonthlyAndYearlyPlans:function(){return this.monthlyPlans.length>0&&this.yearlyPlans.length>0},hasMonthlyAndYearlyPaidPlans:function(){return _.filter(this.paidPlans,{interval:"monthly"}).length>0&&_.filter(this.paidPlans,{interval:"yearly"}).length>0},onlyHasYearlyPlans:function(){return 0===this.monthlyPlans.length&&this.yearlyPlans.length>0},onlyHasYearlyPaidPlans:function(){return 0===_.filter(this.paidPlans,{interval:"monthly"}).length&&_.filter(this.paidPlans,{interval:"yearly"}).length>0},monthlyPlans:function(){return _.filter(this.plans,(function(e){return e.active&&"monthly"===e.interval}))},yearlyPlans:function(){return _.filter(this.plans,(function(e){return e.active&&"yearly"===e.interval}))}}}},3115:e=>{e.exports={data:function(){return{plans:[],selectedPlan:null,invitation:null,invalidInvitation:!1}},methods:{getPlans:function(){var e=this;Spark.cardUpFront&&axios.get("/spark/plans").then((function(t){var n=t.data;e.plans=_.filter(n,{type:"user"}).length>0?_.filter(n,{type:"user"}):_.filter(n,{type:"team"}),e.selectAppropriateDefaultPlan()}))},getInvitation:function(){var e=this;axios.get("/invitations/".concat(this.query.invitation)).then((function(t){e.invitation=t.data})).catch((function(t){e.invalidInvitation=!0}))},selectAppropriateDefaultPlan:function(){this.query.plan?this.selectPlanById(this.query.plan)||this.selectPlanByName(this.query.plan):this.query.invitation?this.selectFreePlan():this.paidPlansForActiveInterval.length>0?this.selectPlan(this.paidPlansForActiveInterval[0]):this.selectFreePlan(),this.shouldShowYearlyPlans()&&this.showYearlyPlans()},selectFreePlan:function(){var e=_.find(this.plans,(function(e){return 0===e.price}));void 0!==e&&this.selectPlan(e)},selectPlanById:function(e){var t=this;return _.each(this.plans,(function(n){n.id===e&&t.selectPlan(n)})),this.selectedPlan},selectPlanByName:function(e){var t=this;return _.each(this.plans,(function(n){n.name===e&&t.selectPlan(n)})),this.selectedPlan},isSelected:function(e){return this.selectedPlan&&e.id===this.selectedPlan.id},selectPlan:function(e){this.selectedPlan=e,this.registerForm.plan=e.id},shouldShowYearlyPlans:function(){return 0===this.monthlyPlans.length&&this.yearlyPlans.length>0||"yearly"===this.selectedPlan.interval}}}},1005:e=>{e.exports={data:function(){return{stripe:Spark.stripeKey?Stripe(Spark.stripeKey,{apiVersion:Spark.stripeApiVersion}):null}},methods:{createCardElement:function(e){if(!this.stripe)throw"Invalid Stripe Key/Secret";var t=this.stripe.elements().create("card",{hideIcon:!0,hidePostalCode:!0,style:{base:{"::placeholder":{color:"#aab7c4"},fontFamily:'Whitney, Lato, -apple-system, BlinkMacSystemFont,"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol"',color:"#495057",fontSize:"15px"}}});return t.mount(e),t},generateToken:function(e){return axios.get("/stripe/token").then((function(t){return e(t.data.clientSecret)}))}}}},3725:e=>{e.exports={data:function(){return{selectingPlan:null,planForm:new SparkForm({})}},methods:{updateSubscription:function(e){var t=this;this.selectingPlan=e,this.planForm.errors.forget(),axios.put(this.urlForPlanUpdate,{plan:e.id}).then((function(){Bus.$emit("updateUser"),Bus.$emit("updateTeam")})).catch((function(e){400==e.response.status?window.location="/"+Spark.cashierPath+"/payment/"+e.response.data.paymentId+"?redirect="+t.urlForPlanRedirect:422===e.response.status?t.planForm.errors.set(e.response.data.errors):t.planForm.errors.set({plan:[__("We were unable to update your subscription. Please contact customer support.")]})})).finally((function(){t.selectingPlan=null}))},isActivePlan:function(e){return this.activeSubscription&&this.activeSubscription.provider_plan===e.id}},computed:{activePlan:function(){var e=this;if(this.activeSubscription)return _.find(this.plans,(function(t){return t.id===e.activeSubscription.provider_plan}))},activePlanIsMonthly:function(){return this.activePlan&&"monthly"===this.activePlan.interval},activeSubscription:function(){if(this.billable){var e=_.find(this.billable.subscriptions,(function(e){return"default"===e.name&&!_.includes(["incomplete","incomplete_expired","past_due","unpaid"],e.stripe_status)}));return void 0!==e?e:void 0}},subscriptionIsActive:function(){return this.activeSubscription&&!this.activeSubscription.ends_at},onGenericTrial:function(){return this.billable.trial_ends_at&&moment.utc(this.billable.trial_ends_at).isAfter(moment.utc())},subscriptionIsOnTrial:function(){return!!this.onGenericTrial||this.activeSubscription&&this.activeSubscription.trial_ends_at&&moment.utc().isBefore(moment.utc(this.activeSubscription.trial_ends_at))},trialEndsAt:function(){if(this.subscriptionIsOnTrial)return this.onGenericTrial?moment.utc(this.billable.trial_ends_at).local().format("MMMM Do, YYYY"):moment.utc(this.activeSubscription.trial_ends_at).local().format("MMMM Do, YYYY")},subscriptionIsOnGracePeriod:function(){return this.activeSubscription&&this.activeSubscription.ends_at&&moment.utc().isBefore(moment.utc(this.activeSubscription.ends_at))},needsSubscription:function(){return!this.activeSubscription||this.activeSubscription.ends_at&&moment.utc().isAfter(moment.utc(this.activeSubscription.ends_at))},urlForPlanUpdate:function(){return this.billingUser?"/settings/subscription":"/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/subscription")},urlForPlanRedirect:function(){return this.billingUser?"/settings%23/subscription":"/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"%23/subscription")}}}},6631:e=>{e.exports={pushStateSelector:null,methods:{usePushStateForTabs:function(e){var t=this;this.pushStateSelector=e,this.registerTabClickHandler(),window.addEventListener("popstate",(function(e){t.activateTabForCurrentHash()})),window.location.hash?this.activateTabForCurrentHash():this.activateFirstTab()},registerTabClickHandler:function(){var e=this;$("".concat(this.pushStateSelector,' a[data-toggle="tab"]')).on("click",(function(t){e.removeActiveClassFromTabs(),history.pushState(null,null,"#/"+$(this).attr("href").substring(1)),e.broadcastTabChange($(this).attr("href").substring(1))}))},activateTabForCurrentHash:function(){var e=window.location.hash.substring(2),t=e.split("/");e=t.shift(),this.removeActiveClassFromTabs();var n=$("".concat(this.pushStateSelector,' a[href="#').concat(e,'"][data-toggle="tab"]'));n.length>0?(n.tab("show"),this.broadcastTabChange(e,t)):this.activateFirstTab()},activateFirstTab:function(){var e=$("".concat(this.pushStateSelector,' a[data-toggle="tab"]')).first();e.length&&(e.tab("show"),this.broadcastTabChange(e.attr("href").substring(1)))},removeActiveClassFromTabs:function(){$("".concat(this.pushStateSelector," a")).removeClass("active")},broadcastTabChange:function(e,t){Bus.$emit("sparkHashChanged",e,t)}}}},3563:e=>{e.exports={methods:{collectsVat:function(e){return!!Spark.collectsEuropeanVat&&_.includes(["BE","BG","CZ","DK","DE","EE","IE","GR","ES","FR","HR","IT","CY","LV","LT","LU","HU","MT","NL","AT","PL","PT","RO","SI","SK","FI","SE","GB"],e)},refreshTaxRate:function(e){var t=this;axios.post("/tax-rate",JSON.parse(JSON.stringify(e))).then((function(e){t.taxRate=e.data.rate}))},taxAmount:function(e){return e.price*(this.taxRate/100)},priceWithTax:function(e){return e.price+this.taxAmount(e)}}}},6474:e=>{e.exports={props:["user","teams","currentTeam","unreadAnnouncementsCount","unreadNotificationsCount"],computed:{notificationsCount:function(){return this.unreadAnnouncementsCount+this.unreadNotificationsCount}},methods:{showNotifications:function(){Bus.$emit("showNotifications")},showSupportForm:function(){Bus.$emit("showSupportForm")}}}},3679:e=>{e.exports={props:["notifications","hasUnreadAnnouncements","loadingNotifications"],data:function(){return{showingNotifications:!0,showingAnnouncements:!1}},methods:{showNotifications:function(){this.showingNotifications=!0,this.showingAnnouncements=!1},showAnnouncements:function(){this.showingNotifications=!1,this.showingAnnouncements=!0,this.updateLastReadAnnouncementsTimestamp()},updateLastReadAnnouncementsTimestamp:function(){axios.put("/user/last-read-announcements-at").then((function(){Bus.$emit("updateUser")}))}},computed:{activeNotifications:function(){return this.notifications?this.showingNotifications?this.notifications.notifications:this.notifications.announcements:[]},hasNotifications:function(){return this.notifications&&this.notifications.notifications.length>0},hasAnnouncements:function(){return this.notifications&&this.notifications.announcements.length>0}}}},9219:e=>{e.exports={data:function(){return{tokens:[],availableAbilities:[]}},mounted:function(){this.getTokens(),this.getAvailableAbilities()},created:function(){var e=this;this.$on("updateTokens",(function(){e.getTokens()}))},methods:{getTokens:function(){var e=this;axios.get("/settings/api/tokens").then((function(t){return e.tokens=t.data}))},getAvailableAbilities:function(){var e=this;axios.get("/settings/api/token/abilities").then((function(t){return e.availableAbilities=t.data}))}}}},6239:e=>{e.exports={props:["availableAbilities"],data:function(){return{showingToken:null,allAbilitiesAssigned:!1,form:new SparkForm({name:"",abilities:[]})}},computed:{copyCommandSupported:function(){return document.queryCommandSupported("copy")}},watch:{availableAbilities:function(){this.availableAbilities.length>0&&this.assignDefaultAbilities()}},methods:{assignDefaultAbilities:function(){var e=_.filter(this.availableAbilities,(function(e){return e.default}));this.form.abilities=_.map(e,"value")},assignAllAbilities:function(){this.allAbilitiesAssigned=!0,this.form.abilities=_.map(this.availableAbilities,"value")},removeAllAbilities:function(){this.allAbilitiesAssigned=!1,this.form.abilities=[]},toggleAbility:function(e){this.abilityIsAssigned(e)?this.form.abilities=_.reject(this.form.abilities,(function(t){return t==e})):this.form.abilities.push(e)},abilityIsAssigned:function(e){return _.includes(this.form.abilities,e)},create:function(){var e=this;Spark.post("/settings/api/token",this.form).then((function(t){e.showToken(t.token),e.resetForm(),e.$parent.$emit("updateTokens")}))},showToken:function(e){this.showingToken=e,$("#modal-show-token").modal("show")},selectToken:function(){$("#api-token").select(),this.copyCommandSupported&&document.execCommand("copy")},resetForm:function(){this.form.name="",this.assignDefaultAbilities(),this.allAbilitiesAssigned=!1}}}},4579:e=>{e.exports={props:["tokens","availableAbilities"],data:function(){return{updatingToken:null,deletingToken:null,updateTokenForm:new SparkForm({name:"",abilities:[]}),deleteTokenForm:new SparkForm({})}},methods:{editToken:function(e){this.updatingToken=e,this.initializeUpdateFormWith(e),$("#modal-update-token").modal("show")},initializeUpdateFormWith:function(e){this.updateTokenForm.name=e.name,this.updateTokenForm.abilities=e.metadata.abilities},updateToken:function(){var e=this;Spark.put("/settings/api/token/".concat(this.updatingToken.id),this.updateTokenForm).then((function(t){e.$parent.$emit("updateTokens"),$("#modal-update-token").modal("hide")}))},toggleAbility:function(e){this.abilityIsAssigned(e)?this.updateTokenForm.abilities=_.reject(this.updateTokenForm.abilities,(function(t){return t==e})):this.updateTokenForm.abilities.push(e)},abilityIsAssigned:function(e){return _.includes(this.updateTokenForm.abilities,e)},approveTokenDelete:function(e){this.deletingToken=e,$("#modal-delete-token").modal("show")},deleteToken:function(){var e=this;Spark.delete("/settings/api/token/".concat(this.deletingToken.id),this.deleteTokenForm).then((function(){e.$parent.$emit("updateTokens"),$("#modal-delete-token").modal("hide")}))}}}},610:e=>{e.exports={props:["user","team","billableType"],data:function(){return{invoices:[]}},mounted:function(){this.getInvoices()},methods:{getInvoices:function(){var e=this;axios.get(this.urlForInvoices).then((function(t){e.invoices=_.filter(t.data,(function(e){return"$0.00"!=e.total}))}))}},computed:{urlForInvoices:function(){return this.billingUser?"/settings/invoices":"/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/invoices")}}}},4437:e=>{e.exports={props:["user","team","invoices","billableType"],methods:{downloadUrlFor:function(e){return this.billingUser?"/settings/invoice/".concat(e.id):"/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/invoice/").concat(e.id)}}}},4440:e=>{e.exports={props:["user","team","billableType"],data:function(){return{form:new SparkForm({information:""})}},mounted:function(){this.form.information=this.billable.extra_billing_information},methods:{update:function(){Spark.put(this.urlForUpdate,this.form)}},computed:{urlForUpdate:function(){return this.billingUser?"/settings/extra-billing-information":"/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/extra-billing-information")}}}},2635:(e,t,n)=>{e.exports={props:["user","team","billableType"],mixins:[n(5359)],data:function(){return{currentDiscount:null,loadingCurrentDiscount:!1}},created:function(){var e=this;this.$on("updateDiscount",(function(){return e.getCurrentDiscountForBillable(e.billableType,e.billable),!0}))},mounted:function(){this.getCurrentDiscountForBillable(this.billableType,this.billable)}}},5095:e=>{e.exports={props:["user","team","billableType"],data:function(){return{form:new SparkForm({coupon:""})}},methods:{redeem:function(){var e=this;Spark.post(this.urlForRedemption,this.form).then((function(){e.form.coupon="",e.$parent.$emit("updateDiscount")}))}},computed:{urlForRedemption:function(){return this.billingUser?"/settings/payment-method/coupon":"/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/payment-method/coupon")}}}},1575:(e,t,n)=>{e.exports={props:["user","team","billableType"],mixins:[n(1005)],data:function(){return{cardElement:null,form:new SparkForm({stripe_payment_method:"",address:"",address_line_2:"",city:"",state:"",zip:"",country:"US"}),cardForm:new SparkForm({name:""})}},mounted:function(){this.cardElement=this.createCardElement("#payment-card-element"),this.initializeBillingAddress()},methods:{initializeBillingAddress:function(){Spark.collectsBillingAddress&&(this.form.address=this.billable.billing_address,this.form.address_line_2=this.billable.billing_address_line_2,this.form.city=this.billable.billing_city,this.form.state=this.billable.billing_state,this.form.zip=this.billable.billing_zip,this.form.country=this.billable.billing_country||"US")},update:function(e){var t=this;this.form.busy=!0,this.form.errors.forget(),this.form.successful=!1,this.cardForm.errors.forget();var n={name:this.cardForm.name,address:{line1:this.form.address||"",line2:this.form.address_line_2||"",city:this.form.city||"",state:this.form.state||"",postal_code:this.form.zip||"",country:this.form.country||""}};this.generateToken((function(e){t.stripe.handleCardSetup(e,t.cardElement,{payment_method_data:{billing_details:n}}).then((function(e){e.error?(t.cardForm.errors.set({card:[e.error.message]}),t.form.busy=!1):t.sendUpdateToServer(e.setupIntent.payment_method)}))}))},sendUpdateToServer:function(e){var t=this;this.form.stripe_payment_method=e,Spark.put(this.urlForUpdate,this.form).then((function(e){Bus.$emit("updateUser"),Bus.$emit("updateTeam"),t.cardForm.name="",t.cardForm.number="",t.cardForm.cvc="",t.cardForm.month="",t.cardForm.year="",Spark.collectsBillingAddress||(t.form.zip="")}))}},computed:{billableName:function(){return this.billingUser?this.user.name:this.team.owner.name},urlForUpdate:function(){return this.billingUser?"/settings/payment-method":"/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/payment-method")},cardIcon:function(){if(!this.billable.card_brand)return"fa-cc-stripe";switch(this.billable.card_brand){case"amex":return"fa-cc-amex";case"diners":return"fa-cc-diners-club";case"discover":return"fa-cc-discover";case"jcb":return"fa-cc-jcb";case"mastercard":return"fa-cc-mastercard";case"visa":return"fa-cc-visa";default:return"fa-cc-stripe"}},placeholder:function(){return this.billable.card_last_four?"************".concat(this.billable.card_last_four):""}}}},5882:e=>{e.exports={props:["user","team","billableType"],data:function(){return{form:new SparkForm({vat_id:""})}},mounted:function(){this.form.vat_id=this.billable.vat_id},methods:{update:function(){Spark.put(this.urlForUpdate,this.form)}},computed:{urlForUpdate:function(){return this.billingUser?"/settings/payment-method/vat-id":"/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/payment-method/vat-id")}}}},1850:e=>{e.exports={props:["user"]}},9864:e=>{e.exports={props:["user"],data:function(){return{form:$.extend(!0,new SparkForm({name:"",email:""}),Spark.forms.updateContactInformation)}},mounted:function(){this.form.name=this.user.name,this.form.email=this.user.email},methods:{update:function(){Spark.put("/settings/contact",this.form).then((function(){Bus.$emit("updateUser")}))}}}},4764:e=>{e.exports={props:["user"],data:function(){return{form:new SparkForm({})}},methods:{update:function(e){if(e.preventDefault(),this.$refs.photo.files.length){var t=this;this.form.startProcessing(),axios.post("/settings/photo",this.gatherFormData()).then((function(){Bus.$emit("updateUser"),t.form.finishProcessing()}),(function(e){t.form.setErrors(e.response.data.errors)}))}},gatherFormData:function(){var e=new FormData;return e.append("photo",this.$refs.photo.files[0]),e}},computed:{previewStyle:function(){return"background-image: url(".concat(this.user.photo_url,")")}}}},3362:e=>{e.exports={props:["user"],data:function(){return{twoFactorResetCode:null}},created:function(){var e=this;this.$on("receivedTwoFactorResetCode",(function(t){e.twoFactorResetCode=t,$("#modal-show-two-factor-reset-code").modal("show")}))}}},8661:e=>{e.exports={props:["user"],data:function(){return{form:new SparkForm({})}},methods:{disable:function(){Spark.delete("/settings/two-factor-auth",this.form).then((function(){Bus.$emit("updateUser")}))}}}},628:e=>{e.exports={props:["user"],data:function(){return{form:new SparkForm({country_code:"",phone:""})}},mounted:function(){this.form.country_code=this.user.country_code,this.form.phone=this.user.phone},methods:{enable:function(){var e=this;Spark.post("/settings/two-factor-auth",this.form).then((function(t){e.$parent.$emit("receivedTwoFactorResetCode",t),Bus.$emit("updateUser")}))}}}},2548:e=>{e.exports={data:function(){return{form:new SparkForm({current_password:"",password:"",password_confirmation:""})}},methods:{update:function(){Spark.put("/settings/password",this.form)}}}},7565:(e,t,n)=>{e.exports={props:["user","teams"],mixins:[n(6631)],data:function(){return{billableType:"user",team:null}},mounted:function(){this.usePushStateForTabs(".spark-settings-tabs")}}},4253:(e,t,n)=>{e.exports={props:["user","team","billableType"],mixins:[n(2316),n(3725)],data:function(){return{plans:[]}},mounted:function(){var e=this;this.getPlans(),this.$on("showPlanDetails",(function(t){e.showPlanDetails(t)}))},methods:{getPlans:function(){var e=this;axios.get("/spark/plans").then((function(t){e.plans=e.billingUser?_.filter(t.data,{type:"user"}):_.filter(t.data,{type:"team"})}))}}}},3542:e=>{e.exports={props:["user","team","billableType"],data:function(){return{form:new SparkForm({})}},methods:{confirmCancellation:function(){$("#modal-confirm-cancellation").modal("show")},cancel:function(){Spark.delete(this.urlForCancellation,this.form).then((function(){Bus.$emit("updateUser"),Bus.$emit("updateTeam"),$("#modal-confirm-cancellation").modal("hide")}))}},computed:{urlForCancellation:function(){return this.billingUser?"/settings/subscription":"/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/subscription")}}}},7135:(e,t,n)=>{e.exports={props:["user","team","plans","billableType"],mixins:[n(2316),n(3725)],mounted:function(){this.onlyHasYearlyPlans&&this.showYearlyPlans()},methods:{showPlanDetails:function(e){this.$parent.$emit("showPlanDetails",e)},priceWithTax:function(e){return e.price+e.price*(this.billable.tax_rate/100)}}}},8079:(e,t,n)=>{e.exports={props:["user","team","plans","billableType"],mixins:[n(2316),n(3725),n(3563),n(1005)],data:function(){return{taxRate:0,cardElement:null,form:new SparkForm({use_existing_payment_method:this.hasPaymentMethod()?"1":"0",stripe_payment_method:"",plan:"",coupon:null,address:"",address_line_2:"",city:"",state:"",zip:"",country:"US",vat_id:""}),cardForm:new SparkForm({name:""})}},watch:{currentBillingAddress:function(e){Spark.collectsEuropeanVat&&this.refreshTaxRate(this.form)}},mounted:function(){this.cardElement=this.createCardElement("#subscription-card-element"),this.initializeBillingAddress(),this.onlyHasYearlyPaidPlans&&this.showYearlyPlans()},methods:{initializeBillingAddress:function(){this.form.address=this.billable.billing_address,this.form.address_line_2=this.billable.billing_address_line_2,this.form.city=this.billable.billing_city,this.form.state=this.billable.billing_state,this.form.zip=this.billable.billing_zip,this.form.country=this.billable.billing_country||"US",this.form.vat_id=this.billable.vat_id},selectPlan:function(e){this.selectedPlan=e,this.form.plan=this.selectedPlan.id},subscribe:function(){var e=this;if(this.cardForm.errors.forget(),this.form.startProcessing(),"1"==this.form.use_existing_payment_method)return this.createSubscription();var t={name:this.cardForm.name,address:{line1:this.form.address||"",line2:this.form.address_line_2||"",city:this.form.city||"",state:this.form.state||"",postal_code:this.form.zip||"",country:this.form.country||""}};this.generateToken((function(n){e.stripe.handleCardSetup(n,e.cardElement,{payment_method_data:{billing_details:t}}).then((function(t){t.error?(e.cardForm.errors.set({card:[t.error.message]}),e.form.busy=!1):e.createSubscription(t.setupIntent.payment_method)}))}))},createSubscription:function(e){var t=this;this.form.stripe_payment_method=e,axios.post(this.urlForNewSubscription,this.form).then((function(e){Bus.$emit("updateUser"),Bus.$emit("updateTeam")})).catch((function(e){400==e.response.status?window.location="/"+Spark.cashierPath+"/payment/"+e.response.data.paymentId+"?redirect="+t.urlForPlanRedirect:t.form.setErrors(e.response.data.errors)}))},hasSubscribed:function(e){return!!_.filter(this.billable.subscriptions,{provider_plan:e.id}).length},showPlanDetails:function(e){this.$parent.$emit("showPlanDetails",e)},hasPaymentMethod:function(){return this.team?this.team.card_last_four:this.user.card_last_four}},computed:{billableName:function(){return this.billingUser?this.user.name:this.team.owner.name},countryCollectsVat:function(){return this.collectsVat(this.form.country)},urlForNewSubscription:function(){return this.billingUser?"/settings/subscription":"/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/subscription")},urlForPlanRedirect:function(){return this.billingUser?"/settings%23/subscription":"/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"%23/subscription")},currentBillingAddress:function(){return this.form.address+this.form.address_line_2+this.form.city+this.form.state+this.form.zip+this.form.country+this.form.vat_id}}}},882:(e,t,n)=>{e.exports={props:["user","team","plans","billableType"],mixins:[n(2316),n(3725)],data:function(){return{confirmingPlan:null}},mounted:function(){var e=this;this.selectActivePlanInterval(),this.$watch("activePlan",(function(t){e.selectActivePlanInterval()})),this.onlyHasYearlyPlans&&this.showYearlyPlans()},methods:{confirmPlanUpdate:function(e){this.confirmingPlan=e,$("#modal-confirm-plan-update").modal("show")},approvePlanUpdate:function(){$("#modal-confirm-plan-update").modal("hide"),this.updateSubscription(this.confirmingPlan)},selectActivePlanInterval:function(){this.activePlanIsMonthly||0===this.yearlyPlans.length?this.showMonthlyPlans():this.showYearlyPlans()},showPlanDetails:function(e){this.$parent.$emit("showPlanDetails",e)},priceWithTax:function(e){return e.price+e.price*(this.billable.tax_rate/100)}}}},67:e=>{e.exports={props:["user","teams"]}},5640:e=>{e.exports={data:function(){return{plans:[],form:new SparkForm({name:"",slug:""})}},computed:{activeSubscription:function(){if(this.$parent.billable){var e=_.find(this.$parent.billable.subscriptions,(function(e){return"default"===e.name}));return void 0!==e?e:void 0}},activePlan:function(){var e=this;if(this.activeSubscription)return _.find(this.plans,(function(t){return t.id===e.activeSubscription.provider_plan}))},hasTeamLimit:function(){return!!this.activePlan&&!!this.activePlan.attributes.teams},remainingTeams:function(){var e=_.filter(this.$parent.teams,{owner_id:this.$parent.billable.id});return this.activePlan?this.activePlan.attributes.teams-e.length:0},canCreateMoreTeams:function(){return!this.hasTeamLimit||this.remainingTeams>0}},created:function(){this.getPlans()},watch:{"form.name":function(e,t){""!==this.form.slug&&this.form.slug!==t.toLowerCase().replace(/[\s\W-]+/g,"-")||(this.form.slug=e.toLowerCase().replace(/[\s\W-]+/g,"-"))}},methods:{create:function(){var e=this;Spark.post("/settings/"+Spark.teamsPrefix,this.form).then((function(t){e.form.name="",e.form.slug="",t.pendingPayment?window.location="/"+Spark.cashierPath+"/payment/"+t.pendingPayment+"?redirect=/settings%23/subscription":(Bus.$emit("updateUser"),Bus.$emit("updateTeams"))}))},getPlans:function(){var e=this;axios.get("/spark/plans").then((function(t){e.plans=t.data}))}}}},2906:e=>{e.exports={props:["user","teams"],data:function(){return{leavingTeam:null,deletingTeam:null,leaveTeamForm:new SparkForm({}),deleteTeamForm:new SparkForm({})}},mounted:function(){$('[data-toggle="tooltip"]').tooltip()},computed:{urlForLeaving:function(){return"/settings/".concat(Spark.teamsPrefix,"/").concat(this.leavingTeam.id,"/members/").concat(this.user.id)}},methods:{approveLeavingTeam:function(e){this.leavingTeam=e,$("#modal-leave-team").modal("show")},leaveTeam:function(){Spark.delete(this.urlForLeaving,this.leaveTeamForm).then((function(){Bus.$emit("updateUser"),Bus.$emit("updateTeams"),$("#modal-leave-team").modal("hide")}))},approveTeamDelete:function(e){this.deletingTeam=e,$("#modal-delete-team").modal("show")},deleteTeam:function(){Spark.delete("/settings/".concat(Spark.teamsPrefix,"/").concat(this.deletingTeam.id),this.deleteTeamForm).then((function(){Bus.$emit("updateUser"),Bus.$emit("updateTeams"),$("#modal-delete-team").modal("hide")}))}}}},7263:e=>{e.exports={props:["team","invitations"],methods:{cancel:function(e){var t=this;axios.delete("/settings/invitations/".concat(e.id)).then((function(){t.$parent.$emit("updateInvitations")}))}}}},6275:e=>{e.exports={data:function(){return{invitations:[]}},created:function(){this.getPendingInvitations()},methods:{getPendingInvitations:function(){var e=this;axios.get("/settings/invitations/pending").then((function(t){e.invitations=t.data}))},accept:function(e){var t=this;axios.post("/settings/invitations/".concat(e.id,"/accept")).then((function(){Bus.$emit("updateTeams"),t.getPendingInvitations()})),this.removeInvitation(e)},reject:function(e){var t=this;axios.post("/settings/invitations/".concat(e.id,"/reject")).then((function(){t.getPendingInvitations()})),this.removeInvitation(e)},removeInvitation:function(e){this.invitations=_.reject(this.invitations,(function(t){return t.id===e.id}))}}}},915:e=>{e.exports={props:["user","team","billableType","defaultRole"],data:function(){return{plans:[],roles:[],form:new SparkForm({email:"",role:this.defaultRole})}},computed:{activeSubscription:function(){if(this.billable){var e=_.find(this.billable.subscriptions,(function(e){return"default"===e.name}));return void 0!==e?e:void 0}},activePlan:function(){var e=this;if(this.activeSubscription)return _.find(this.plans,(function(t){return t.id===e.activeSubscription.provider_plan}))},hasTeamMembersLimit:function(){return!!this.activePlan&&!!this.activePlan.attributes.teamMembers},remainingTeamMembers:function(){return this.activePlan?this.activePlan.attributes.teamMembers-this.$parent.team.users.length:0},canInviteMoreTeamMembers:function(){return!this.hasTeamMembersLimit||this.remainingTeamMembers>0}},created:function(){this.getPlans(),this.getRoles()},methods:{send:function(){var e=this;Spark.post("/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/invitations"),this.form).then((function(){e.form.email="",e.form.role=Spark.defaultRole,e.$parent.$emit("updateInvitations")}))},getPlans:function(){var e=this;axios.get("/spark/plans").then((function(t){e.plans=t.data}))},getRoles:function(){var e=this;axios.get("/settings/".concat(Spark.teamsPrefix,"/roles")).then((function(t){e.roles=t.data}))}}}},522:e=>{e.exports={props:["user","team"],data:function(){return{roles:[],updatingTeamMember:null,deletingTeamMember:null,updateTeamMemberForm:$.extend(!0,new SparkForm({role:""}),Spark.forms.updateTeamMember),deleteTeamMemberForm:new SparkForm({})}},created:function(){this.getRoles()},computed:{urlForUpdating:function(){return"/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/members/").concat(this.updatingTeamMember.id)},urlForDeleting:function(){return"/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/members/").concat(this.deletingTeamMember.id)}},methods:{getRoles:function(){var e=this;axios.get("/settings/".concat(Spark.teamsPrefix,"/roles")).then((function(t){e.roles=t.data}))},editTeamMember:function(e){this.updatingTeamMember=e,this.updateTeamMemberForm.role=e.pivot.role,$("#modal-update-team-member").modal("show")},update:function(){Spark.put(this.urlForUpdating,this.updateTeamMemberForm).then((function(){Bus.$emit("updateTeam"),$("#modal-update-team-member").modal("hide")}))},approveTeamMemberDelete:function(e){this.deletingTeamMember=e,$("#modal-delete-member").modal("show")},deleteMember:function(){Spark.delete(this.urlForDeleting,this.deleteTeamMemberForm).then((function(){Bus.$emit("updateTeam"),$("#modal-delete-member").modal("hide")}))},canEditTeamMember:function(e){return this.user.id===this.team.owner_id&&this.user.id!==e.id},canDeleteTeamMember:function(e){return this.user.id===this.team.owner_id&&this.user.id!==e.id},teamMemberRole:function(e){if(0===this.roles.length)return"";if("owner"===e.pivot.role)return"Owner";var t=_.find(this.roles,(function(t){return t.value==e.pivot.role}));return void 0!==t?t.text:void 0}}}},3361:e=>{e.exports={props:["user","team","billableType"],data:function(){return{invitations:[]}},created:function(){var e=this;this.getInvitations(),this.$on("updateInvitations",(function(){e.getInvitations()}))},methods:{getInvitations:function(){var e=this;axios.get("/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/invitations")).then((function(t){e.invitations=t.data}))}}}},3351:e=>{e.exports={props:["user","team"]}},3128:(e,t,n)=>{e.exports={props:["user","teamId"],mixins:[n(6631)],data:function(){return{billableType:"team",team:null}},created:function(){var e=this;this.getTeam(),Bus.$on("updateTeam",(function(){e.getTeam()}))},mounted:function(){this.usePushStateForTabs(".spark-settings-tabs")},methods:{getTeam:function(){var e=this;axios.get("/settings/".concat(Spark.teamsPrefix,"/json/").concat(this.teamId)).then((function(t){e.team=t.data}))}}}},3614:e=>{e.exports={props:["user","team"],data:function(){return{form:new SparkForm({name:""})}},mounted:function(){this.form.name=this.team.name},methods:{update:function(){Spark.put("/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/name"),this.form).then((function(){Bus.$emit("updateTeam"),Bus.$emit("updateTeams")}))}}}},5710:e=>{e.exports={props:["user","team"],data:function(){return{form:new SparkForm({})}},methods:{update:function(e){if(e.preventDefault(),this.$refs.photo.files.length){var t=this;this.form.startProcessing(),axios.post(this.urlForUpdate,this.gatherFormData()).then((function(){Bus.$emit("updateTeam"),Bus.$emit("updateTeams"),t.form.finishProcessing()}),(function(e){t.form.setErrors(e.response.data.errors)}))}},gatherFormData:function(){var e=new FormData;return e.append("photo",this.$refs.photo.files[0]),e}},computed:{urlForUpdate:function(){return"/settings/".concat(Spark.teamsPrefix,"/").concat(this.team.id,"/photo")},previewStyle:function(){return"background-image: url(".concat(this.team.photo_url,")")}}}},4592:(e,t,n)=>{window.URI=n(4998),window.axios=n(7218),window._=n(6486),window.moment=n(381),window.Promise=n(8259),window.Popper=n(8981).default,window.__=function(e,t){var n=Spark.translations[e]?Spark.translations[e]:e;return _.forEach(t,(function(e,t){n=n.replace(":"+t,e)})),n},window.moment.defineLocale("en-short",{parentLocale:"en",relativeTime:{future:"in %s",past:"%s",s:"1s",m:"1m",mm:"%dm",h:"1h",hh:"%dh",d:"1d",dd:"%dd",M:"1 month ago",MM:"%d months ago",y:"1y",yy:"%dy"}}),window.moment.locale("en"),void 0!==window.$&&void 0!==window.jQuery||(window.$=window.jQuery=n(9755)),n(3734),$("#spark-app").length>0&&n(2900),window.axios.defaults.headers.common={"X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":Spark.csrfToken},window.axios.interceptors.response.use((function(e){return e}),(function(e){if(void 0===e.response)return Promise.reject(e);switch(e.response.status){case 401:window.axios.get("/logout"),$("#modal-session-expired").modal("show");break;case 402:window.location="/settings#/subscription"}return Promise.reject(e)}))},4334:e=>{e.exports={el:"#spark-app",lastRefreshedApiTokenAt:null,data:{user:Spark.state.user,teams:Spark.state.teams,currentTeam:Spark.state.currentTeam,loadingNotifications:!1,notifications:null,supportForm:new SparkForm({from:"",subject:"",message:""})},created:function(){var e=this;Spark.userId&&this.loadDataForAuthenticatedUser(),Spark.userId&&Spark.usesApi&&this.refreshApiTokenEveryFewMinutes(),Bus.$on("updateUser",(function(){e.getUser()})),Bus.$on("updateUserData",(function(){e.loadDataForAuthenticatedUser()})),Bus.$on("updateTeams",(function(){e.getTeams()})),Bus.$on("showNotifications",(function(){$("#modal-notifications").modal("show"),e.markNotificationsAsRead()})),Bus.$on("showSupportForm",(function(){e.user&&(e.supportForm.from=e.user.email),$("#modal-support").modal("show"),setTimeout((function(){$("#support-subject").focus()}),500)}))},mounted:function(){this.whenReady()},methods:{whenReady:function(){},loadDataForAuthenticatedUser:function(){this.getNotifications()},refreshApiTokenEveryFewMinutes:function(){var e=this;this.lastRefreshedApiTokenAt=moment(),setInterval((function(){e.refreshApiToken()}),24e4),setInterval((function(){moment().diff(e.lastRefreshedApiTokenAt,"minutes")>=5&&e.refreshApiToken()}),5e3)},refreshApiToken:function(){this.lastRefreshedApiTokenAt=moment(),axios.put("/spark/token")},getUser:function(){var e=this;axios.get("/user/current").then((function(t){e.$set(e,"user",t.data)}))},getTeams:function(){var e=this;axios.get("/settings/"+Spark.teamsPrefix).then((function(t){e.$set(e,"teams",t.data)}))},getCurrentTeam:function(){var e=this;axios.get("/settings/".concat(Spark.teamsPrefix,"/current")).then((function(t){e.$set(e,"currentTeam",t.data)})).catch((function(e){}))},getNotifications:function(){var e=this;this.loadingNotifications=!0,axios.get("/notifications/recent").then((function(t){e.$set(e,"notifications",t.data),e.loadingNotifications=!1}))},markNotificationsAsRead:function(){this.hasUnreadNotifications&&(axios.put("/notifications/read",{notifications:_.map(this.notifications.notifications,"id")}),_.each(this.notifications.notifications,(function(e){e.read=1})))},sendSupportRequest:function(){var e=this;Spark.post("/support/email",this.supportForm).then((function(){$("#modal-support").modal("hide"),e.showSupportRequestSuccessMessage(),e.supportForm.subject="",e.supportForm.message=""}))},showSupportRequestSuccessMessage:function(){Swal.fire({title:__("Got It!"),text:__("We have received your message and will respond soon!"),icon:"success",showConfirmButton:!1,timer:2e3})}},computed:{unreadAnnouncementsCount:function(){var e=this;return this.notifications&&this.user?this.notifications.announcements.length&&!this.user.last_read_announcements_at?this.notifications.announcements.length:_.filter(this.notifications.announcements,(function(t){return moment.utc(e.user.last_read_announcements_at).isBefore(moment.utc(t.created_at))})).length:0},unreadNotificationsCount:function(){return this.notifications?_.filter(this.notifications.notifications,(function(e){return!e.read})).length:0},hasUnreadAnnouncements:function(){return this.unreadAnnouncementsCount>0},hasUnreadNotifications:function(){return this.unreadNotificationsCount>0}}}},2900:(e,t,n)=>{void 0===window.Vue&&(window.Vue=n(1094),window.Bus=new Vue),Vue.mixin(n(9963)),n(8685),n(1601)},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,a=s(e),o=a[0],l=a[1],c=new r(function(e,t,n){return 3*(t+n)/4-n}(0,o,l)),u=0,d=l>0?o-4:o;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,i=e.length,r=i%3,a=[],o=16383,s=0,c=i-r;s<c;s+=o)a.push(l(e,s,s+o>c?c:s+o));1===r?(t=e[i-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===r&&(t=(e[i-2]<<8)+e[i-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return a.join("")};for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=a[o],i[a.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,i){for(var r,a,o=[],s=t;s<i;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[(a=r)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},3734:function(e,t,n){!function(e,t,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(t),a=i(n);function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l.apply(this,arguments)}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,u(e,t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var d="transitionend",h=1e6,f=1e3;function p(e){return null==e?""+e:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}function m(){return{bindType:d,delegateType:d,handle:function(e){if(r.default(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}}function g(e){var t=this,n=!1;return r.default(this).one(v.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||v.triggerTransitionEnd(t)}),e),this}function _(){r.default.fn.emulateTransitionEnd=g,r.default.event.special[v.TRANSITION_END]=m()}var v={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(Math.random()*h)}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=r.default(e).css("transition-duration"),n=r.default(e).css("transition-delay"),i=parseFloat(t),a=parseFloat(n);return i||a?(t=t.split(",")[0],n=n.split(",")[0],(parseFloat(t)+parseFloat(n))*f):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){r.default(e).trigger(d)},supportsTransitionEnd:function(){return Boolean(d)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i],a=t[i],o=a&&v.isElement(a)?"element":p(a);if(!new RegExp(r).test(o))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+o+'" but expected type "'+r+'".')}},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?v.findShadowRoot(e.parentNode):null},jQueryDetection:function(){if(void 0===r.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=r.default.fn.jquery.split(" ")[0].split("."),t=1,n=2,i=9,a=1,o=4;if(e[0]<n&&e[1]<i||e[0]===t&&e[1]===i&&e[2]<a||e[0]>=o)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};v.jQueryDetection(),_();var y="alert",b="4.6.2",w="bs.alert",x="."+w,k=".data-api",A=r.default.fn[y],S="alert",M="fade",T="show",L="close"+x,E="closed"+x,C="click"+x+k,D='[data-dismiss="alert"]',O=function(){function e(e){this._element=e}var t=e.prototype;return t.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){r.default.removeData(this._element,w),this._element=null},t._getRootElement=function(e){var t=v.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n||(n=r.default(e).closest("."+S)[0]),n},t._triggerCloseEvent=function(e){var t=r.default.Event(L);return r.default(e).trigger(t),t},t._removeElement=function(e){var t=this;if(r.default(e).removeClass(T),r.default(e).hasClass(M)){var n=v.getTransitionDurationFromElement(e);r.default(e).one(v.TRANSITION_END,(function(n){return t._destroyElement(e,n)})).emulateTransitionEnd(n)}else this._destroyElement(e)},t._destroyElement=function(e){r.default(e).detach().trigger(E).remove()},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this),i=n.data(w);i||(i=new e(this),n.data(w,i)),"close"===t&&i[t](this)}))},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},s(e,null,[{key:"VERSION",get:function(){return b}}]),e}();r.default(document).on(C,D,O._handleDismiss(new O)),r.default.fn[y]=O._jQueryInterface,r.default.fn[y].Constructor=O,r.default.fn[y].noConflict=function(){return r.default.fn[y]=A,O._jQueryInterface};var Y="button",P="4.6.2",j="bs.button",I="."+j,F=".data-api",N=r.default.fn[Y],R="active",H="btn",z="focus",q="click"+I+F,B="focus"+I+F+" blur"+I+F,$="load"+I+F,W='[data-toggle^="button"]',U='[data-toggle="buttons"]',V='[data-toggle="button"]',X='[data-toggle="buttons"] .btn',G='input:not([type="hidden"])',J=".active",Q=".btn",K=function(){function e(e){this._element=e,this.shouldAvoidTriggerChange=!1}var t=e.prototype;return t.toggle=function(){var e=!0,t=!0,n=r.default(this._element).closest(U)[0];if(n){var i=this._element.querySelector(G);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(R))e=!1;else{var a=n.querySelector(J);a&&r.default(a).removeClass(R)}e&&("checkbox"!==i.type&&"radio"!==i.type||(i.checked=!this._element.classList.contains(R)),this.shouldAvoidTriggerChange||r.default(i).trigger("change")),i.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(R)),e&&r.default(this._element).toggleClass(R))},t.dispose=function(){r.default.removeData(this._element,j),this._element=null},e._jQueryInterface=function(t,n){return this.each((function(){var i=r.default(this),a=i.data(j);a||(a=new e(this),i.data(j,a)),a.shouldAvoidTriggerChange=n,"toggle"===t&&a[t]()}))},s(e,null,[{key:"VERSION",get:function(){return P}}]),e}();r.default(document).on(q,W,(function(e){var t=e.target,n=t;if(r.default(t).hasClass(H)||(t=r.default(t).closest(Q)[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))e.preventDefault();else{var i=t.querySelector(G);if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void e.preventDefault();"INPUT"!==n.tagName&&"LABEL"===t.tagName||K._jQueryInterface.call(r.default(t),"toggle","INPUT"===n.tagName)}})).on(B,W,(function(e){var t=r.default(e.target).closest(Q)[0];r.default(t).toggleClass(z,/^focus(in)?$/.test(e.type))})),r.default(window).on($,(function(){for(var e=[].slice.call(document.querySelectorAll(X)),t=0,n=e.length;t<n;t++){var i=e[t],r=i.querySelector(G);r.checked||r.hasAttribute("checked")?i.classList.add(R):i.classList.remove(R)}for(var a=0,o=(e=[].slice.call(document.querySelectorAll(V))).length;a<o;a++){var s=e[a];"true"===s.getAttribute("aria-pressed")?s.classList.add(R):s.classList.remove(R)}})),r.default.fn[Y]=K._jQueryInterface,r.default.fn[Y].Constructor=K,r.default.fn[Y].noConflict=function(){return r.default.fn[Y]=N,K._jQueryInterface};var Z="carousel",ee="4.6.2",te="bs.carousel",ne="."+te,ie=".data-api",re=r.default.fn[Z],ae=37,oe=39,se=500,le=40,ce="carousel",ue="active",de="slide",he="carousel-item-right",fe="carousel-item-left",pe="carousel-item-next",me="carousel-item-prev",ge="pointer-event",_e="next",ve="prev",ye="left",be="right",we="slide"+ne,xe="slid"+ne,ke="keydown"+ne,Ae="mouseenter"+ne,Se="mouseleave"+ne,Me="touchstart"+ne,Te="touchmove"+ne,Le="touchend"+ne,Ee="pointerdown"+ne,Ce="pointerup"+ne,De="dragstart"+ne,Oe="load"+ne+ie,Ye="click"+ne+ie,Pe=".active",je=".active.carousel-item",Ie=".carousel-item",Fe=".carousel-item img",Ne=".carousel-item-next, .carousel-item-prev",Re=".carousel-indicators",He="[data-slide], [data-slide-to]",ze='[data-ride="carousel"]',qe={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Be={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},$e={TOUCH:"touch",PEN:"pen"},We=function(){function e(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(Re),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=e.prototype;return t.next=function(){this._isSliding||this._slide(_e)},t.nextWhenVisible=function(){var e=r.default(this._element);!document.hidden&&e.is(":visible")&&"hidden"!==e.css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(ve)},t.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(Ne)&&(v.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(e){var t=this;this._activeElement=this._element.querySelector(je);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)r.default(this._element).one(xe,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var i=e>n?_e:ve;this._slide(i,this._items[e])}},t.dispose=function(){r.default(this._element).off(ne),r.default.removeData(this._element,te),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(e){return e=l({},qe,e),v.typeCheckConfig(Z,e,Be),e},t._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=le)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&r.default(this._element).on(ke,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&r.default(this._element).on(Ae,(function(t){return e.pause(t)})).on(Se,(function(t){return e.cycle(t)})),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var t=function(t){e._pointerEvent&&$e[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},n=function(t){e.touchDeltaX=t.originalEvent.touches&&t.originalEvent.touches.length>1?0:t.originalEvent.touches[0].clientX-e.touchStartX},i=function(t){e._pointerEvent&&$e[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),se+e._config.interval))};r.default(this._element.querySelectorAll(Fe)).on(De,(function(e){return e.preventDefault()})),this._pointerEvent?(r.default(this._element).on(Ee,(function(e){return t(e)})),r.default(this._element).on(Ce,(function(e){return i(e)})),this._element.classList.add(ge)):(r.default(this._element).on(Me,(function(e){return t(e)})),r.default(this._element).on(Te,(function(e){return n(e)})),r.default(this._element).on(Le,(function(e){return i(e)})))}},t._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case ae:e.preventDefault(),this.prev();break;case oe:e.preventDefault(),this.next()}},t._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(Ie)):[],this._items.indexOf(e)},t._getItemByDirection=function(e,t){var n=e===_e,i=e===ve,r=this._getItemIndex(t),a=this._items.length-1;if((i&&0===r||n&&r===a)&&!this._config.wrap)return t;var o=(r+(e===ve?-1:1))%this._items.length;return-1===o?this._items[this._items.length-1]:this._items[o]},t._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(je)),a=r.default.Event(we,{relatedTarget:e,direction:t,from:i,to:n});return r.default(this._element).trigger(a),a},t._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(Pe));r.default(t).removeClass(ue);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&r.default(n).addClass(ue)}},t._updateInterval=function(){var e=this._activeElement||this._element.querySelector(je);if(e){var t=parseInt(e.getAttribute("data-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}},t._slide=function(e,t){var n,i,a,o=this,s=this._element.querySelector(je),l=this._getItemIndex(s),c=t||s&&this._getItemByDirection(e,s),u=this._getItemIndex(c),d=Boolean(this._interval);if(e===_e?(n=fe,i=pe,a=ye):(n=he,i=me,a=be),c&&r.default(c).hasClass(ue))this._isSliding=!1;else if(!this._triggerSlideEvent(c,a).isDefaultPrevented()&&s&&c){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(c),this._activeElement=c;var h=r.default.Event(xe,{relatedTarget:c,direction:a,from:l,to:u});if(r.default(this._element).hasClass(de)){r.default(c).addClass(i),v.reflow(c),r.default(s).addClass(n),r.default(c).addClass(n);var f=v.getTransitionDurationFromElement(s);r.default(s).one(v.TRANSITION_END,(function(){r.default(c).removeClass(n+" "+i).addClass(ue),r.default(s).removeClass(ue+" "+i+" "+n),o._isSliding=!1,setTimeout((function(){return r.default(o._element).trigger(h)}),0)})).emulateTransitionEnd(f)}else r.default(s).removeClass(ue),r.default(c).addClass(ue),this._isSliding=!1,r.default(this._element).trigger(h);d&&this.cycle()}},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this).data(te),i=l({},qe,r.default(this).data());"object"==typeof t&&(i=l({},i,t));var a="string"==typeof t?t:i.slide;if(n||(n=new e(this,i),r.default(this).data(te,n)),"number"==typeof t)n.to(t);else if("string"==typeof a){if(void 0===n[a])throw new TypeError('No method named "'+a+'"');n[a]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}))},e._dataApiClickHandler=function(t){var n=v.getSelectorFromElement(this);if(n){var i=r.default(n)[0];if(i&&r.default(i).hasClass(ce)){var a=l({},r.default(i).data(),r.default(this).data()),o=this.getAttribute("data-slide-to");o&&(a.interval=!1),e._jQueryInterface.call(r.default(i),a),o&&r.default(i).data(te).to(o),t.preventDefault()}}},s(e,null,[{key:"VERSION",get:function(){return ee}},{key:"Default",get:function(){return qe}}]),e}();r.default(document).on(Ye,He,We._dataApiClickHandler),r.default(window).on(Oe,(function(){for(var e=[].slice.call(document.querySelectorAll(ze)),t=0,n=e.length;t<n;t++){var i=r.default(e[t]);We._jQueryInterface.call(i,i.data())}})),r.default.fn[Z]=We._jQueryInterface,r.default.fn[Z].Constructor=We,r.default.fn[Z].noConflict=function(){return r.default.fn[Z]=re,We._jQueryInterface};var Ue="collapse",Ve="4.6.2",Xe="bs.collapse",Ge="."+Xe,Je=".data-api",Qe=r.default.fn[Ue],Ke="show",Ze="collapse",et="collapsing",tt="collapsed",nt="width",it="height",rt="show"+Ge,at="shown"+Ge,ot="hide"+Ge,st="hidden"+Ge,lt="click"+Ge+Je,ct=".show, .collapsing",ut='[data-toggle="collapse"]',dt={toggle:!0,parent:""},ht={toggle:"boolean",parent:"(string|element)"},ft=function(){function e(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(ut)),i=0,r=n.length;i<r;i++){var a=n[i],o=v.getSelectorFromElement(a),s=[].slice.call(document.querySelectorAll(o)).filter((function(t){return t===e}));null!==o&&s.length>0&&(this._selector=o,this._triggerArray.push(a))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=e.prototype;return t.toggle=function(){r.default(this._element).hasClass(Ke)?this.hide():this.show()},t.show=function(){var t,n,i=this;if(!(this._isTransitioning||r.default(this._element).hasClass(Ke)||(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(ct)).filter((function(e){return"string"==typeof i._config.parent?e.getAttribute("data-parent")===i._config.parent:e.classList.contains(Ze)}))).length&&(t=null),t&&(n=r.default(t).not(this._selector).data(Xe))&&n._isTransitioning))){var a=r.default.Event(rt);if(r.default(this._element).trigger(a),!a.isDefaultPrevented()){t&&(e._jQueryInterface.call(r.default(t).not(this._selector),"hide"),n||r.default(t).data(Xe,null));var o=this._getDimension();r.default(this._element).removeClass(Ze).addClass(et),this._element.style[o]=0,this._triggerArray.length&&r.default(this._triggerArray).removeClass(tt).attr("aria-expanded",!0),this.setTransitioning(!0);var s=function(){r.default(i._element).removeClass(et).addClass(Ze+" "+Ke),i._element.style[o]="",i.setTransitioning(!1),r.default(i._element).trigger(at)},l="scroll"+(o[0].toUpperCase()+o.slice(1)),c=v.getTransitionDurationFromElement(this._element);r.default(this._element).one(v.TRANSITION_END,s).emulateTransitionEnd(c),this._element.style[o]=this._element[l]+"px"}}},t.hide=function(){var e=this;if(!this._isTransitioning&&r.default(this._element).hasClass(Ke)){var t=r.default.Event(ot);if(r.default(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",v.reflow(this._element),r.default(this._element).addClass(et).removeClass(Ze+" "+Ke);var i=this._triggerArray.length;if(i>0)for(var a=0;a<i;a++){var o=this._triggerArray[a],s=v.getSelectorFromElement(o);null!==s&&(r.default([].slice.call(document.querySelectorAll(s))).hasClass(Ke)||r.default(o).addClass(tt).attr("aria-expanded",!1))}this.setTransitioning(!0);var l=function(){e.setTransitioning(!1),r.default(e._element).removeClass(et).addClass(Ze).trigger(st)};this._element.style[n]="";var c=v.getTransitionDurationFromElement(this._element);r.default(this._element).one(v.TRANSITION_END,l).emulateTransitionEnd(c)}}},t.setTransitioning=function(e){this._isTransitioning=e},t.dispose=function(){r.default.removeData(this._element,Xe),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(e){return(e=l({},dt,e)).toggle=Boolean(e.toggle),v.typeCheckConfig(Ue,e,ht),e},t._getDimension=function(){return r.default(this._element).hasClass(nt)?nt:it},t._getParent=function(){var t,n=this;v.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',a=[].slice.call(t.querySelectorAll(i));return r.default(a).each((function(t,i){n._addAriaAndCollapsedClass(e._getTargetFromElement(i),[i])})),t},t._addAriaAndCollapsedClass=function(e,t){var n=r.default(e).hasClass(Ke);t.length&&r.default(t).toggleClass(tt,!n).attr("aria-expanded",n)},e._getTargetFromElement=function(e){var t=v.getSelectorFromElement(e);return t?document.querySelector(t):null},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this),i=n.data(Xe),a=l({},dt,n.data(),"object"==typeof t&&t?t:{});if(!i&&a.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(a.toggle=!1),i||(i=new e(this,a),n.data(Xe,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}}))},s(e,null,[{key:"VERSION",get:function(){return Ve}},{key:"Default",get:function(){return dt}}]),e}();r.default(document).on(lt,ut,(function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var t=r.default(this),n=v.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(n));r.default(i).each((function(){var e=r.default(this),n=e.data(Xe)?"toggle":t.data();ft._jQueryInterface.call(e,n)}))})),r.default.fn[Ue]=ft._jQueryInterface,r.default.fn[Ue].Constructor=ft,r.default.fn[Ue].noConflict=function(){return r.default.fn[Ue]=Qe,ft._jQueryInterface};var pt="dropdown",mt="4.6.2",gt="bs.dropdown",_t="."+gt,vt=".data-api",yt=r.default.fn[pt],bt=27,wt=32,xt=9,kt=38,At=40,St=3,Mt=new RegExp(kt+"|"+At+"|"+bt),Tt="disabled",Lt="show",Et="dropup",Ct="dropright",Dt="dropleft",Ot="dropdown-menu-right",Yt="position-static",Pt="hide"+_t,jt="hidden"+_t,It="show"+_t,Ft="shown"+_t,Nt="click"+_t,Rt="click"+_t+vt,Ht="keydown"+_t+vt,zt="keyup"+_t+vt,qt='[data-toggle="dropdown"]',Bt=".dropdown form",$t=".dropdown-menu",Wt=".navbar-nav",Ut=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Vt="top-start",Xt="top-end",Gt="bottom-start",Jt="bottom-end",Qt="right-start",Kt="left-start",Zt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},en={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},tn=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=e.prototype;return t.toggle=function(){if(!this._element.disabled&&!r.default(this._element).hasClass(Tt)){var t=r.default(this._menu).hasClass(Lt);e._clearMenus(),t||this.show(!0)}},t.show=function(t){if(void 0===t&&(t=!1),!(this._element.disabled||r.default(this._element).hasClass(Tt)||r.default(this._menu).hasClass(Lt))){var n={relatedTarget:this._element},i=r.default.Event(It,n),o=e._getParentFromElement(this._element);if(r.default(o).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&t){if(void 0===a.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var s=this._element;"parent"===this._config.reference?s=o:v.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&r.default(o).addClass(Yt),this._popper=new a.default(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===r.default(o).closest(Wt).length&&r.default(document.body).children().on("mouseover",null,r.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),r.default(this._menu).toggleClass(Lt),r.default(o).toggleClass(Lt).trigger(r.default.Event(Ft,n))}}},t.hide=function(){if(!this._element.disabled&&!r.default(this._element).hasClass(Tt)&&r.default(this._menu).hasClass(Lt)){var t={relatedTarget:this._element},n=r.default.Event(Pt,t),i=e._getParentFromElement(this._element);r.default(i).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),r.default(this._menu).toggleClass(Lt),r.default(i).toggleClass(Lt).trigger(r.default.Event(jt,t)))}},t.dispose=function(){r.default.removeData(this._element,gt),r.default(this._element).off(_t),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;r.default(this._element).on(Nt,(function(t){t.preventDefault(),t.stopPropagation(),e.toggle()}))},t._getConfig=function(e){return e=l({},this.constructor.Default,r.default(this._element).data(),e),v.typeCheckConfig(pt,e,this.constructor.DefaultType),e},t._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector($t))}return this._menu},t._getPlacement=function(){var e=r.default(this._element.parentNode),t=Gt;return e.hasClass(Et)?t=r.default(this._menu).hasClass(Ot)?Xt:Vt:e.hasClass(Ct)?t=Qt:e.hasClass(Dt)?t=Kt:r.default(this._menu).hasClass(Ot)&&(t=Jt),t},t._detectNavbar=function(){return r.default(this._element).closest(".navbar").length>0},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets,e._element)),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),l({},e,this._config.popperConfig)},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this).data(gt);if(n||(n=new e(this,"object"==typeof t?t:null),r.default(this).data(gt,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},e._clearMenus=function(t){if(!t||t.which!==St&&("keyup"!==t.type||t.which===xt))for(var n=[].slice.call(document.querySelectorAll(qt)),i=0,a=n.length;i<a;i++){var o=e._getParentFromElement(n[i]),s=r.default(n[i]).data(gt),l={relatedTarget:n[i]};if(t&&"click"===t.type&&(l.clickEvent=t),s){var c=s._menu;if(r.default(o).hasClass(Lt)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&t.which===xt)&&r.default.contains(o,t.target))){var u=r.default.Event(Pt,l);r.default(o).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),n[i].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),r.default(c).removeClass(Lt),r.default(o).removeClass(Lt).trigger(r.default.Event(jt,l)))}}}},e._getParentFromElement=function(e){var t,n=v.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},e._dataApiKeydownHandler=function(t){if(!(/input|textarea/i.test(t.target.tagName)?t.which===wt||t.which!==bt&&(t.which!==At&&t.which!==kt||r.default(t.target).closest($t).length):!Mt.test(t.which))&&!this.disabled&&!r.default(this).hasClass(Tt)){var n=e._getParentFromElement(this),i=r.default(n).hasClass(Lt);if(i||t.which!==bt){if(t.preventDefault(),t.stopPropagation(),!i||t.which===bt||t.which===wt)return t.which===bt&&r.default(n.querySelector(qt)).trigger("focus"),void r.default(this).trigger("click");var a=[].slice.call(n.querySelectorAll(Ut)).filter((function(e){return r.default(e).is(":visible")}));if(0!==a.length){var o=a.indexOf(t.target);t.which===kt&&o>0&&o--,t.which===At&&o<a.length-1&&o++,o<0&&(o=0),a[o].focus()}}}},s(e,null,[{key:"VERSION",get:function(){return mt}},{key:"Default",get:function(){return Zt}},{key:"DefaultType",get:function(){return en}}]),e}();r.default(document).on(Ht,qt,tn._dataApiKeydownHandler).on(Ht,$t,tn._dataApiKeydownHandler).on(Rt+" "+zt,tn._clearMenus).on(Rt,qt,(function(e){e.preventDefault(),e.stopPropagation(),tn._jQueryInterface.call(r.default(this),"toggle")})).on(Rt,Bt,(function(e){e.stopPropagation()})),r.default.fn[pt]=tn._jQueryInterface,r.default.fn[pt].Constructor=tn,r.default.fn[pt].noConflict=function(){return r.default.fn[pt]=yt,tn._jQueryInterface};var nn="modal",rn="4.6.2",an="bs.modal",on="."+an,sn=".data-api",ln=r.default.fn[nn],cn=27,un="modal-dialog-scrollable",dn="modal-scrollbar-measure",hn="modal-backdrop",fn="modal-open",pn="fade",mn="show",gn="modal-static",_n="hide"+on,vn="hidePrevented"+on,yn="hidden"+on,bn="show"+on,wn="shown"+on,xn="focusin"+on,kn="resize"+on,An="click.dismiss"+on,Sn="keydown.dismiss"+on,Mn="mouseup.dismiss"+on,Tn="mousedown.dismiss"+on,Ln="click"+on+sn,En=".modal-dialog",Cn=".modal-body",Dn='[data-toggle="modal"]',On='[data-dismiss="modal"]',Yn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Pn=".sticky-top",jn={backdrop:!0,keyboard:!0,focus:!0,show:!0},In={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Fn=function(){function e(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(En),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=e.prototype;return t.toggle=function(e){return this._isShown?this.hide():this.show(e)},t.show=function(e){var t=this;if(!this._isShown&&!this._isTransitioning){var n=r.default.Event(bn,{relatedTarget:e});r.default(this._element).trigger(n),n.isDefaultPrevented()||(this._isShown=!0,r.default(this._element).hasClass(pn)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),r.default(this._element).on(An,On,(function(e){return t.hide(e)})),r.default(this._dialog).on(Tn,(function(){r.default(t._element).one(Mn,(function(e){r.default(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return t._showElement(e)})))}},t.hide=function(e){var t=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var n=r.default.Event(_n);if(r.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=r.default(this._element).hasClass(pn);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),r.default(document).off(xn),r.default(this._element).removeClass(mn),r.default(this._element).off(An),r.default(this._dialog).off(Tn),i){var a=v.getTransitionDurationFromElement(this._element);r.default(this._element).one(v.TRANSITION_END,(function(e){return t._hideModal(e)})).emulateTransitionEnd(a)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach((function(e){return r.default(e).off(on)})),r.default(document).off(xn),r.default.removeData(this._element,an),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(e){return e=l({},jn,e),v.typeCheckConfig(nn,e,In),e},t._triggerBackdropTransition=function(){var e=this,t=r.default.Event(vn);if(r.default(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(gn);var i=v.getTransitionDurationFromElement(this._dialog);r.default(this._element).off(v.TRANSITION_END),r.default(this._element).one(v.TRANSITION_END,(function(){e._element.classList.remove(gn),n||r.default(e._element).one(v.TRANSITION_END,(function(){e._element.style.overflowY=""})).emulateTransitionEnd(e._element,i)})).emulateTransitionEnd(i),this._element.focus()}},t._showElement=function(e){var t=this,n=r.default(this._element).hasClass(pn),i=this._dialog?this._dialog.querySelector(Cn):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),r.default(this._dialog).hasClass(un)&&i?i.scrollTop=0:this._element.scrollTop=0,n&&v.reflow(this._element),r.default(this._element).addClass(mn),this._config.focus&&this._enforceFocus();var a=r.default.Event(wn,{relatedTarget:e}),o=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,r.default(t._element).trigger(a)};if(n){var s=v.getTransitionDurationFromElement(this._dialog);r.default(this._dialog).one(v.TRANSITION_END,o).emulateTransitionEnd(s)}else o()},t._enforceFocus=function(){var e=this;r.default(document).off(xn).on(xn,(function(t){document!==t.target&&e._element!==t.target&&0===r.default(e._element).has(t.target).length&&e._element.focus()}))},t._setEscapeEvent=function(){var e=this;this._isShown?r.default(this._element).on(Sn,(function(t){e._config.keyboard&&t.which===cn?(t.preventDefault(),e.hide()):e._config.keyboard||t.which!==cn||e._triggerBackdropTransition()})):this._isShown||r.default(this._element).off(Sn)},t._setResizeEvent=function(){var e=this;this._isShown?r.default(window).on(kn,(function(t){return e.handleUpdate(t)})):r.default(window).off(kn)},t._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){r.default(document.body).removeClass(fn),e._resetAdjustments(),e._resetScrollbar(),r.default(e._element).trigger(yn)}))},t._removeBackdrop=function(){this._backdrop&&(r.default(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(e){var t=this,n=r.default(this._element).hasClass(pn)?pn:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=hn,n&&this._backdrop.classList.add(n),r.default(this._backdrop).appendTo(document.body),r.default(this._element).on(An,(function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===t._config.backdrop?t._triggerBackdropTransition():t.hide())})),n&&v.reflow(this._backdrop),r.default(this._backdrop).addClass(mn),!e)return;if(!n)return void e();var i=v.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(v.TRANSITION_END,e).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){r.default(this._backdrop).removeClass(mn);var a=function(){t._removeBackdrop(),e&&e()};if(r.default(this._element).hasClass(pn)){var o=v.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(v.TRANSITION_END,a).emulateTransitionEnd(o)}else a()}else e&&e()},t._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(Yn)),n=[].slice.call(document.querySelectorAll(Pn));r.default(t).each((function(t,n){var i=n.style.paddingRight,a=r.default(n).css("padding-right");r.default(n).data("padding-right",i).css("padding-right",parseFloat(a)+e._scrollbarWidth+"px")})),r.default(n).each((function(t,n){var i=n.style.marginRight,a=r.default(n).css("margin-right");r.default(n).data("margin-right",i).css("margin-right",parseFloat(a)-e._scrollbarWidth+"px")}));var i=document.body.style.paddingRight,a=r.default(document.body).css("padding-right");r.default(document.body).data("padding-right",i).css("padding-right",parseFloat(a)+this._scrollbarWidth+"px")}r.default(document.body).addClass(fn)},t._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(Yn));r.default(e).each((function(e,t){var n=r.default(t).data("padding-right");r.default(t).removeData("padding-right"),t.style.paddingRight=n||""}));var t=[].slice.call(document.querySelectorAll(""+Pn));r.default(t).each((function(e,t){var n=r.default(t).data("margin-right");void 0!==n&&r.default(t).css("margin-right",n).removeData("margin-right")}));var n=r.default(document.body).data("padding-right");r.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},t._getScrollbarWidth=function(){var e=document.createElement("div");e.className=dn,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},e._jQueryInterface=function(t,n){return this.each((function(){var i=r.default(this).data(an),a=l({},jn,r.default(this).data(),"object"==typeof t&&t?t:{});if(i||(i=new e(this,a),r.default(this).data(an,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t](n)}else a.show&&i.show(n)}))},s(e,null,[{key:"VERSION",get:function(){return rn}},{key:"Default",get:function(){return jn}}]),e}();r.default(document).on(Ln,Dn,(function(e){var t,n=this,i=v.getSelectorFromElement(this);i&&(t=document.querySelector(i));var a=r.default(t).data(an)?"toggle":l({},r.default(t).data(),r.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var o=r.default(t).one(bn,(function(e){e.isDefaultPrevented()||o.one(yn,(function(){r.default(n).is(":visible")&&n.focus()}))}));Fn._jQueryInterface.call(r.default(t),a,this)})),r.default.fn[nn]=Fn._jQueryInterface,r.default.fn[nn].Constructor=Fn,r.default.fn[nn].noConflict=function(){return r.default.fn[nn]=ln,Fn._jQueryInterface};var Nn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Rn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Hn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,zn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function qn(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===Nn.indexOf(n)||Boolean(Hn.test(e.nodeValue)||zn.test(e.nodeValue));for(var i=t.filter((function(e){return e instanceof RegExp})),r=0,a=i.length;r<a;r++)if(i[r].test(n))return!0;return!1}function Bn(e,t,n){if(0===e.length)return e;if(n&&"function"==typeof n)return n(e);for(var i=(new window.DOMParser).parseFromString(e,"text/html"),r=Object.keys(t),a=[].slice.call(i.body.querySelectorAll("*")),o=function(e,n){var i=a[e],o=i.nodeName.toLowerCase();if(-1===r.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var s=[].slice.call(i.attributes),l=[].concat(t["*"]||[],t[o]||[]);s.forEach((function(e){qn(e,l)||i.removeAttribute(e.nodeName)}))},s=0,l=a.length;s<l;s++)o(s);return i.body.innerHTML}var $n="tooltip",Wn="4.6.2",Un="bs.tooltip",Vn="."+Un,Xn=r.default.fn[$n],Gn="bs-tooltip",Jn=new RegExp("(^|\\s)"+Gn+"\\S+","g"),Qn=["sanitize","whiteList","sanitizeFn"],Kn="fade",Zn="show",ei="show",ti="out",ni=".tooltip-inner",ii=".arrow",ri="hover",ai="focus",oi="click",si="manual",li={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},ci={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Rn,popperConfig:null},ui={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},di={HIDE:"hide"+Vn,HIDDEN:"hidden"+Vn,SHOW:"show"+Vn,SHOWN:"shown"+Vn,INSERTED:"inserted"+Vn,CLICK:"click"+Vn,FOCUSIN:"focusin"+Vn,FOCUSOUT:"focusout"+Vn,MOUSEENTER:"mouseenter"+Vn,MOUSELEAVE:"mouseleave"+Vn},hi=function(){function e(e,t){if(void 0===a.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var t=e.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=r.default(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),r.default(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(r.default(this.getTipElement()).hasClass(Zn))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),r.default.removeData(this.element,this.constructor.DATA_KEY),r.default(this.element).off(this.constructor.EVENT_KEY),r.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&r.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===r.default(this.element).css("display"))throw new Error("Please use show on visible elements");var t=r.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){r.default(this.element).trigger(t);var n=v.findShadowRoot(this.element),i=r.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var o=this.getTipElement(),s=v.getUID(this.constructor.NAME);o.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&r.default(o).addClass(Kn);var l="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,c=this._getAttachment(l);this.addAttachmentClass(c);var u=this._getContainer();r.default(o).data(this.constructor.DATA_KEY,this),r.default.contains(this.element.ownerDocument.documentElement,this.tip)||r.default(o).appendTo(u),r.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new a.default(this.element,o,this._getPopperConfig(c)),r.default(o).addClass(Zn),r.default(o).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&r.default(document.body).children().on("mouseover",null,r.default.noop);var d=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,r.default(e.element).trigger(e.constructor.Event.SHOWN),t===ti&&e._leave(null,e)};if(r.default(this.tip).hasClass(Kn)){var h=v.getTransitionDurationFromElement(this.tip);r.default(this.tip).one(v.TRANSITION_END,d).emulateTransitionEnd(h)}else d()}},t.hide=function(e){var t=this,n=this.getTipElement(),i=r.default.Event(this.constructor.Event.HIDE),a=function(){t._hoverState!==ei&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),r.default(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(r.default(this.element).trigger(i),!i.isDefaultPrevented()){if(r.default(n).removeClass(Zn),"ontouchstart"in document.documentElement&&r.default(document.body).children().off("mouseover",null,r.default.noop),this._activeTrigger[oi]=!1,this._activeTrigger[ai]=!1,this._activeTrigger[ri]=!1,r.default(this.tip).hasClass(Kn)){var o=v.getTransitionDurationFromElement(n);r.default(n).one(v.TRANSITION_END,a).emulateTransitionEnd(o)}else a();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(e){r.default(this.getTipElement()).addClass(Gn+"-"+e)},t.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},t.setContent=function(){var e=this.getTipElement();this.setElementContent(r.default(e.querySelectorAll(ni)),this.getTitle()),r.default(e).removeClass(Kn+" "+Zn)},t.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=Bn(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?r.default(t).parent().is(e)||e.empty().append(t):e.text(r.default(t).text())},t.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},t._getPopperConfig=function(e){var t=this;return l({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:ii},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},this.config.popperConfig)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:v.isElement(this.config.container)?r.default(this.config.container):r.default(document).find(this.config.container)},t._getAttachment=function(e){return li[e.toUpperCase()]},t._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(t){if("click"===t)r.default(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if(t!==si){var n=t===ri?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,i=t===ri?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;r.default(e.element).on(n,e.config.selector,(function(t){return e._enter(t)})).on(i,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},r.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||r.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),r.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?ai:ri]=!0),r.default(t.getTipElement()).hasClass(Zn)||t._hoverState===ei?t._hoverState=ei:(clearTimeout(t._timeout),t._hoverState=ei,t.config.delay&&t.config.delay.show?t._timeout=setTimeout((function(){t._hoverState===ei&&t.show()}),t.config.delay.show):t.show())},t._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||r.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),r.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?ai:ri]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=ti,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout((function(){t._hoverState===ti&&t.hide()}),t.config.delay.hide):t.hide())},t._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},t._getConfig=function(e){var t=r.default(this.element).data();return Object.keys(t).forEach((function(e){-1!==Qn.indexOf(e)&&delete t[e]})),"number"==typeof(e=l({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),v.typeCheckConfig($n,e,this.constructor.DefaultType),e.sanitize&&(e.template=Bn(e.template,e.whiteList,e.sanitizeFn)),e},t._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},t._cleanTipClass=function(){var e=r.default(this.getTipElement()),t=e.attr("class").match(Jn);null!==t&&t.length&&e.removeClass(t.join(""))},t._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},t._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(r.default(e).removeClass(Kn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this),i=n.data(Un),a="object"==typeof t&&t;if((i||!/dispose|hide/.test(t))&&(i||(i=new e(this,a),n.data(Un,i)),"string"==typeof t)){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}}))},s(e,null,[{key:"VERSION",get:function(){return Wn}},{key:"Default",get:function(){return ci}},{key:"NAME",get:function(){return $n}},{key:"DATA_KEY",get:function(){return Un}},{key:"Event",get:function(){return di}},{key:"EVENT_KEY",get:function(){return Vn}},{key:"DefaultType",get:function(){return ui}}]),e}();r.default.fn[$n]=hi._jQueryInterface,r.default.fn[$n].Constructor=hi,r.default.fn[$n].noConflict=function(){return r.default.fn[$n]=Xn,hi._jQueryInterface};var fi="popover",pi="4.6.2",mi="bs.popover",gi="."+mi,_i=r.default.fn[fi],vi="bs-popover",yi=new RegExp("(^|\\s)"+vi+"\\S+","g"),bi="fade",wi="show",xi=".popover-header",ki=".popover-body",Ai=l({},hi.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Si=l({},hi.DefaultType,{content:"(string|element|function)"}),Mi={HIDE:"hide"+gi,HIDDEN:"hidden"+gi,SHOW:"show"+gi,SHOWN:"shown"+gi,INSERTED:"inserted"+gi,CLICK:"click"+gi,FOCUSIN:"focusin"+gi,FOCUSOUT:"focusout"+gi,MOUSEENTER:"mouseenter"+gi,MOUSELEAVE:"mouseleave"+gi},Ti=function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var n=t.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(e){r.default(this.getTipElement()).addClass(vi+"-"+e)},n.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},n.setContent=function(){var e=r.default(this.getTipElement());this.setElementContent(e.find(xi),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(ki),t),e.removeClass(bi+" "+wi)},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var e=r.default(this.getTipElement()),t=e.attr("class").match(yi);null!==t&&t.length>0&&e.removeClass(t.join(""))},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this).data(mi),i="object"==typeof e?e:null;if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,i),r.default(this).data(mi,n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},s(t,null,[{key:"VERSION",get:function(){return pi}},{key:"Default",get:function(){return Ai}},{key:"NAME",get:function(){return fi}},{key:"DATA_KEY",get:function(){return mi}},{key:"Event",get:function(){return Mi}},{key:"EVENT_KEY",get:function(){return gi}},{key:"DefaultType",get:function(){return Si}}]),t}(hi);r.default.fn[fi]=Ti._jQueryInterface,r.default.fn[fi].Constructor=Ti,r.default.fn[fi].noConflict=function(){return r.default.fn[fi]=_i,Ti._jQueryInterface};var Li="scrollspy",Ei="4.6.2",Ci="bs.scrollspy",Di="."+Ci,Oi=".data-api",Yi=r.default.fn[Li],Pi="dropdown-item",ji="active",Ii="activate"+Di,Fi="scroll"+Di,Ni="load"+Di+Oi,Ri="offset",Hi="position",zi='[data-spy="scroll"]',qi=".nav, .list-group",Bi=".nav-link",$i=".nav-item",Wi=".list-group-item",Ui=".dropdown",Vi=".dropdown-item",Xi=".dropdown-toggle",Gi={offset:10,method:"auto",target:""},Ji={offset:"number",method:"string",target:"(string|element)"},Qi=function(){function e(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+Bi+","+this._config.target+" "+Wi+","+this._config.target+" "+Vi,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,r.default(this._scrollElement).on(Fi,(function(e){return n._process(e)})),this.refresh(),this._process()}var t=e.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?Ri:Hi,n="auto"===this._config.method?t:this._config.method,i=n===Hi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var t,a=v.getSelectorFromElement(e);if(a&&(t=document.querySelector(a)),t){var o=t.getBoundingClientRect();if(o.width||o.height)return[r.default(t)[n]().top+i,a]}return null})).filter(Boolean).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},t.dispose=function(){r.default.removeData(this._element,Ci),r.default(this._scrollElement).off(Di),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(e){if("string"!=typeof(e=l({},Gi,"object"==typeof e&&e?e:{})).target&&v.isElement(e.target)){var t=r.default(e.target).attr("id");t||(t=v.getUID(Li),r.default(e.target).attr("id",t)),e.target="#"+t}return v.typeCheckConfig(Li,e,Ji),e},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;)this._activeTarget!==this._targets[r]&&e>=this._offsets[r]&&(void 0===this._offsets[r+1]||e<this._offsets[r+1])&&this._activate(this._targets[r])}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map((function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'})),n=r.default([].slice.call(document.querySelectorAll(t.join(","))));n.hasClass(Pi)?(n.closest(Ui).find(Xi).addClass(ji),n.addClass(ji)):(n.addClass(ji),n.parents(qi).prev(Bi+", "+Wi).addClass(ji),n.parents(qi).prev($i).children(Bi).addClass(ji)),r.default(this._scrollElement).trigger(Ii,{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(e){return e.classList.contains(ji)})).forEach((function(e){return e.classList.remove(ji)}))},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this).data(Ci);if(n||(n=new e(this,"object"==typeof t&&t),r.default(this).data(Ci,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},s(e,null,[{key:"VERSION",get:function(){return Ei}},{key:"Default",get:function(){return Gi}}]),e}();r.default(window).on(Ni,(function(){for(var e=[].slice.call(document.querySelectorAll(zi)),t=e.length;t--;){var n=r.default(e[t]);Qi._jQueryInterface.call(n,n.data())}})),r.default.fn[Li]=Qi._jQueryInterface,r.default.fn[Li].Constructor=Qi,r.default.fn[Li].noConflict=function(){return r.default.fn[Li]=Yi,Qi._jQueryInterface};var Ki="tab",Zi="4.6.2",er="bs.tab",tr="."+er,nr=".data-api",ir=r.default.fn[Ki],rr="dropdown-menu",ar="active",or="disabled",sr="fade",lr="show",cr="hide"+tr,ur="hidden"+tr,dr="show"+tr,hr="shown"+tr,fr="click"+tr+nr,pr=".dropdown",mr=".nav, .list-group",gr=".active",_r="> li > .active",vr='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',yr=".dropdown-toggle",br="> .dropdown-menu .active",wr=function(){function e(e){this._element=e}var t=e.prototype;return t.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&r.default(this._element).hasClass(ar)||r.default(this._element).hasClass(or)||this._element.hasAttribute("disabled"))){var t,n,i=r.default(this._element).closest(mr)[0],a=v.getSelectorFromElement(this._element);if(i){var o="UL"===i.nodeName||"OL"===i.nodeName?_r:gr;n=(n=r.default.makeArray(r.default(i).find(o)))[n.length-1]}var s=r.default.Event(cr,{relatedTarget:this._element}),l=r.default.Event(dr,{relatedTarget:n});if(n&&r.default(n).trigger(s),r.default(this._element).trigger(l),!l.isDefaultPrevented()&&!s.isDefaultPrevented()){a&&(t=document.querySelector(a)),this._activate(this._element,i);var c=function(){var t=r.default.Event(ur,{relatedTarget:e._element}),i=r.default.Event(hr,{relatedTarget:n});r.default(n).trigger(t),r.default(e._element).trigger(i)};t?this._activate(t,t.parentNode,c):c()}}},t.dispose=function(){r.default.removeData(this._element,er),this._element=null},t._activate=function(e,t,n){var i=this,a=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?r.default(t).children(gr):r.default(t).find(_r))[0],o=n&&a&&r.default(a).hasClass(sr),s=function(){return i._transitionComplete(e,a,n)};if(a&&o){var l=v.getTransitionDurationFromElement(a);r.default(a).removeClass(lr).one(v.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},t._transitionComplete=function(e,t,n){if(t){r.default(t).removeClass(ar);var i=r.default(t.parentNode).find(br)[0];i&&r.default(i).removeClass(ar),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}r.default(e).addClass(ar),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),v.reflow(e),e.classList.contains(sr)&&e.classList.add(lr);var a=e.parentNode;if(a&&"LI"===a.nodeName&&(a=a.parentNode),a&&r.default(a).hasClass(rr)){var o=r.default(e).closest(pr)[0];if(o){var s=[].slice.call(o.querySelectorAll(yr));r.default(s).addClass(ar)}e.setAttribute("aria-expanded",!0)}n&&n()},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this),i=n.data(er);if(i||(i=new e(this),n.data(er,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}}))},s(e,null,[{key:"VERSION",get:function(){return Zi}}]),e}();r.default(document).on(fr,vr,(function(e){e.preventDefault(),wr._jQueryInterface.call(r.default(this),"show")})),r.default.fn[Ki]=wr._jQueryInterface,r.default.fn[Ki].Constructor=wr,r.default.fn[Ki].noConflict=function(){return r.default.fn[Ki]=ir,wr._jQueryInterface};var xr="toast",kr="4.6.2",Ar="bs.toast",Sr="."+Ar,Mr=r.default.fn[xr],Tr="fade",Lr="hide",Er="show",Cr="showing",Dr="click.dismiss"+Sr,Or="hide"+Sr,Yr="hidden"+Sr,Pr="show"+Sr,jr="shown"+Sr,Ir='[data-dismiss="toast"]',Fr={animation:!0,autohide:!0,delay:500},Nr={animation:"boolean",autohide:"boolean",delay:"number"},Rr=function(){function e(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var t=e.prototype;return t.show=function(){var e=this,t=r.default.Event(Pr);if(r.default(this._element).trigger(t),!t.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(Tr);var n=function(){e._element.classList.remove(Cr),e._element.classList.add(Er),r.default(e._element).trigger(jr),e._config.autohide&&(e._timeout=setTimeout((function(){e.hide()}),e._config.delay))};if(this._element.classList.remove(Lr),v.reflow(this._element),this._element.classList.add(Cr),this._config.animation){var i=v.getTransitionDurationFromElement(this._element);r.default(this._element).one(v.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},t.hide=function(){if(this._element.classList.contains(Er)){var e=r.default.Event(Or);r.default(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},t.dispose=function(){this._clearTimeout(),this._element.classList.contains(Er)&&this._element.classList.remove(Er),r.default(this._element).off(Dr),r.default.removeData(this._element,Ar),this._element=null,this._config=null},t._getConfig=function(e){return e=l({},Fr,r.default(this._element).data(),"object"==typeof e&&e?e:{}),v.typeCheckConfig(xr,e,this.constructor.DefaultType),e},t._setListeners=function(){var e=this;r.default(this._element).on(Dr,Ir,(function(){return e.hide()}))},t._close=function(){var e=this,t=function(){e._element.classList.add(Lr),r.default(e._element).trigger(Yr)};if(this._element.classList.remove(Er),this._config.animation){var n=v.getTransitionDurationFromElement(this._element);r.default(this._element).one(v.TRANSITION_END,t).emulateTransitionEnd(n)}else t()},t._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},e._jQueryInterface=function(t){return this.each((function(){var n=r.default(this),i=n.data(Ar);if(i||(i=new e(this,"object"==typeof t&&t),n.data(Ar,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t](this)}}))},s(e,null,[{key:"VERSION",get:function(){return kr}},{key:"DefaultType",get:function(){return Nr}},{key:"Default",get:function(){return Fr}}]),e}();r.default.fn[xr]=Rr._jQueryInterface,r.default.fn[xr].Constructor=Rr,r.default.fn[xr].noConflict=function(){return r.default.fn[xr]=Mr,Rr._jQueryInterface},e.Alert=O,e.Button=K,e.Carousel=We,e.Collapse=ft,e.Dropdown=tn,e.Modal=Fn,e.Popover=Ti,e.Scrollspy=Qi,e.Tab=wr,e.Toast=Rr,e.Tooltip=hi,e.Util=v,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(9755),n(8981))},8764:(e,t,n)=>{"use strict";var i=n(9742),r=n(645),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=l,t.h2=50;var o=2147483647;function s(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|m(e,t),i=s(n),r=i.write(e,t);r!==n&&(i=i.slice(0,r));return i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(z(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(z(e,ArrayBuffer)||e&&z(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(z(e,SharedArrayBuffer)||e&&z(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return l.from(i,t,n);var r=function(e){if(l.isBuffer(e)){var t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||q(e.length)?s(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|p(e))}function h(e){for(var t=e.length<0?0:0|p(e.length),n=s(t),i=0;i<t;i+=1)n[i]=255&e[i];return n}function f(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var i;return i=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(i,l.prototype),i}function p(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return R(e).length;default:if(r)return i?-1:N(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return M(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function _(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function v(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),q(n=+n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,i,r);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,i,r){var a,o=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var d=!0,h=0;h<l;h++)if(c(e,a+h)!==c(t,h)){d=!1;break}if(d)return a}return-1}function b(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var a=t.length;i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(t.substr(2*o,2),16);if(q(s))return o;e[n+o]=s}return o}function w(e,t,n,i){return H(N(t,e.length-n),e,n,i)}function x(e,t,n,i){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function k(e,t,n,i){return H(R(t),e,n,i)}function A(e,t,n,i){return H(function(e,t){for(var n,i,r,a=[],o=0;o<e.length&&!((t-=2)<0);++o)i=(n=e.charCodeAt(o))>>8,r=n%256,a.push(r),a.push(i);return a}(t,e.length-n),e,n,i)}function S(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function M(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var a,o,s,l,c=e[r],u=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[r+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[r+1],o=e[r+2],128==(192&a)&&128==(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[r+1],o=e[r+2],s=e[r+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=T));return n}(i)}l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),z(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,i=t.length,r=0,a=Math.min(n,i);r<a;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=l.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var a=e[n];if(z(a,Uint8Array))r+a.length>i.length?l.from(a).copy(i,r):Uint8Array.prototype.set.call(i,a,r);else{if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r)}r+=a.length}return i},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)_(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?M(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(e,t,n,i,r){if(z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(i,r),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){a=c[d],o=u[d];break}return a<o?-1:o<a?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function L(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function E(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function C(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=t;a<n;++a)r+=B[e[a]];return r}function D(e,t,n){for(var i=e.slice(t,n),r="",a=0;a<i.length-1;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function O(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Y(e,t,n,i,r,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<a)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function P(e,t,n,i,r,a){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,i,a){return t=+t,n>>>=0,a||P(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function I(e,t,n,i,a){return t=+t,n>>>=0,a||P(e,0,n,8),r.write(e,t,n,i,52,8),n+8}l.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,l.prototype),i},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var i=this[e],r=1,a=0;++a<t&&(r*=256);)i+=this[e+a]*r;return i},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var i=this[e],r=1,a=0;++a<t&&(r*=256);)i+=this[e+a]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);for(var i=t,r=1,a=this[e+--i];i>0&&(r*=256);)a+=this[e+--i]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||O(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||O(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||O(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||O(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t>>>=0,n>>>=0,i)||Y(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,a=0;for(this[t]=255&e;++a<n&&(r*=256);)this[t+a]=e/r&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,i){(e=+e,t>>>=0,n>>>=0,i)||Y(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,a=1;for(this[t+r]=255&e;--r>=0&&(a*=256);)this[t+r]=e/a&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||Y(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Y(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Y(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Y(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Y(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t>>>=0,!i){var r=Math.pow(2,8*n-1);Y(this,e,t,n,r-1,-r)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t>>>=0,!i){var r=Math.pow(2,8*n-1);Y(this,e,t,n,r-1,-r)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||Y(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Y(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Y(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Y(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Y(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,i){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r=i-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),t),r},l.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){var r=e.charCodeAt(0);("utf8"===i&&r<128||"latin1"===i)&&(e=r)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=l.isBuffer(e)?e:l.from(e,i),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var F=/[^+/0-9A-Za-z-_]/g;function N(e,t){var n;t=t||1/0;for(var i=e.length,r=null,a=[],o=0;o<i;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function R(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}function z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function q(e){return e!=e}var B=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var i=16*n,r=0;r<16;++r)t[i+r]=e[n]+e[r];return t}()},1924:(e,t,n)=>{"use strict";var i=n(210),r=n(5559),a=r(i("String.prototype.indexOf"));e.exports=function(e,t){var n=i(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?r(n):n}},5559:(e,t,n)=>{"use strict";var i=n(8612),r=n(210),a=n(7771),o=n(4453),s=r("%Function.prototype.apply%"),l=r("%Function.prototype.call%"),c=r("%Reflect.apply%",!0)||i.call(l,s),u=n(4429),d=r("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var t=c(i,l,arguments);return a(t,1+d(0,e.length-(arguments.length-1)),!0)};var h=function(){return c(i,s,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h},2296:(e,t,n)=>{"use strict";var i=n(4429),r=n(3464),a=n(4453),o=n(7296);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!o&&o(e,t);if(i)i(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},711:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var i={globalLocale:"en-US",globalFormat:"$0,0.00",globalRoundingMode:"HALF_EVEN",globalFormatRoundingMode:"HALF_AWAY_FROM_ZERO",globalExchangeRatesApi:{endpoint:void 0,headers:void 0,propertyPath:void 0}};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 a(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var s={normalizePrecision:function(e){var t=e.reduce((function(e,t){return Math.max(e.getPrecision(),t.getPrecision())}));return e.map((function(e){return e.getPrecision()!==t?e.convertPrecision(t):e}))},minimum:function(e){var t=a(e),n=t[0],i=t.slice(1),r=n;return i.forEach((function(e){r=r.lessThan(e)?r:e})),r},maximum:function(e){var t=a(e),n=t[0],i=t.slice(1),r=n;return i.forEach((function(e){r=r.greaterThan(e)?r:e})),r}};function l(e){return!isNaN(parseInt(e))&&isFinite(e)}function c(e){return e%2==0}function u(e){return l(e)&&!Number.isInteger(e)}function d(e){return Math.abs(e)%1==.5}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){var r=Object.assign(new XMLHttpRequest,{onreadystatechange:function(){4===r.readyState&&(r.status>=200&&r.status<400?n(JSON.parse(r.responseText)):i(new Error(r.statusText)))},onerror:function(){i(new Error("Network error"))}});r.open("GET",e,!0),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in t)e.setRequestHeader(n,t[n])}(r,t.headers),r.send()}))}function f(e){return void 0===e}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n={};return Object.entries(e).forEach((function(e){if("object"===r(e[1])){var i=p(e[1]);Object.entries(i).forEach((function(i){n[e[0]+t+i[0]]=i[1]}))}else n[e[0]]=e[1]})),n}function m(){var e=function(e,t){var n=function(e){return Math.pow(10,function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0).toString();if(e.indexOf("e-")>0)return parseInt(e.split("e-")[1]);var t=e.split(".")[1];return t?t.length:0}(e))},i=Math.max(n(e),n(t));return Math.round(e*i)*Math.round(t*i)/(i*i)},t={HALF_ODD:function(e){var t=Math.round(e);return d(e)&&c(t)?t-1:t},HALF_EVEN:function(e){var t=Math.round(e);return d(e)?c(t)?t:t-1:t},HALF_UP:function(e){return Math.round(e)},HALF_DOWN:function(e){return d(e)?Math.floor(e):Math.round(e)},HALF_TOWARDS_ZERO:function(e){return d(e)?Math.sign(e)*Math.floor(Math.abs(e)):Math.round(e)},HALF_AWAY_FROM_ZERO:function(e){return d(e)?Math.sign(e)*Math.ceil(Math.abs(e)):Math.round(e)},DOWN:function(e){return Math.floor(e)}};return{add:function(e,t){return e+t},subtract:function(e,t){return e-t},multiply:function(t,n){return u(t)||u(n)?e(t,n):t*n},divide:function(e,t){return e/t},modulo:function(e,t){return e%t},round:function(e){return t[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HALF_EVEN"](e)}}}var g=m();function _(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;for(var n in t)e=e.replace("{{".concat(n,"}}"),t[n]);return e};return{getExchangeRate:function(n,i){return(a=e.endpoint,!Boolean(a)||"object"!==r(a)&&"function"!=typeof a||"function"!=typeof a.then?function(n,i){return h(t(e.endpoint,{from:n,to:i}),{headers:e.headers})}(n,i):e.endpoint).then((function(r){return p(r)[t(e.propertyPath,{from:n,to:i})]}));var a}}}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Error;if(!e)throw new n(t)}function y(e){v(function(e){return l(e)&&e<=100&&e>=0}(e),"You must provide a numeric value between 0 and 100.",RangeError)}function b(e){v(Number.isInteger(e),"You must provide an integer.",TypeError)}var w=m(),x=Object.assign((function e(t){var n=Object.assign({},{amount:e.defaultAmount,currency:e.defaultCurrency,precision:e.defaultPrecision},t),i=n.amount,r=n.currency,a=n.precision;b(i),b(a);var o=e.globalLocale,s=e.globalFormat,l=e.globalRoundingMode,c=e.globalFormatRoundingMode,u=Object.assign({},e.globalExchangeRatesApi),d=function(t){var n=Object.assign({},Object.assign({},{amount:i,currency:r,precision:a},t),Object.assign({},{locale:this.locale},t));return Object.assign(e({amount:n.amount,currency:n.currency,precision:n.precision}),{locale:n.locale})},h=function(e){v(this.hasSameCurrency(e),"You must provide a Dinero instance with the same currency.",TypeError)};return{getAmount:function(){return i},getCurrency:function(){return r},getLocale:function(){return this.locale||o},setLocale:function(e){return d.call(this,{locale:e})},getPrecision:function(){return a},convertPrecision:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;b(e);var n=this.getPrecision(),i=e>n,r=i?w.multiply:w.divide,a=i?[e,n]:[n,e],o=Math.pow(10,w.subtract.apply(w,a));return d.call(this,{amount:w.round(r(this.getAmount(),o),t),precision:e})},add:function(t){h.call(this,t);var n=e.normalizePrecision([this,t]);return d.call(this,{amount:w.add(n[0].getAmount(),n[1].getAmount()),precision:n[0].getPrecision()})},subtract:function(t){h.call(this,t);var n=e.normalizePrecision([this,t]);return d.call(this,{amount:w.subtract(n[0].getAmount(),n[1].getAmount()),precision:n[0].getPrecision()})},multiply:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;return d.call(this,{amount:w.round(w.multiply(this.getAmount(),e),t)})},divide:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;return d.call(this,{amount:w.round(w.divide(this.getAmount(),e),t)})},percentage:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;return y(e),this.multiply(w.divide(e,100),t)},allocate:function(e){var t=this;!function(e){v(function(e){return e.length>0&&e.every((function(e){return e>=0}))&&e.some((function(e){return e>0}))}(e),"You must provide a non-empty array of numeric values greater than 0.",TypeError)}(e);for(var n=e.reduce((function(e,t){return w.add(e,t)})),i=this.getAmount(),r=e.map((function(e){var r=Math.floor(w.divide(w.multiply(t.getAmount(),e),n));return i=w.subtract(i,r),d.call(t,{amount:r})})),a=0;i>0;)e[a]>0&&(r[a]=r[a].add(d.call(this,{amount:1})),i=w.subtract(i,1)),a+=1;return r},convert:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.endpoint,r=void 0===i?u.endpoint:i,a=n.propertyPath,o=void 0===a?u.propertyPath||"rates.{{to}}":a,s=n.headers,c=void 0===s?u.headers:s,h=n.roundingMode,p=void 0===h?l:h,m=Object.assign({},{endpoint:r,propertyPath:o,headers:c,roundingMode:p});return _(m).getExchangeRate(this.getCurrency(),e).then((function(n){return v(!f(n),'No rate was found for the destination currency "'.concat(e,'".'),TypeError),d.call(t,{amount:w.round(w.multiply(t.getAmount(),parseFloat(n)),m.roundingMode),currency:e})}))},equalsTo:function(e){return this.hasSameAmount(e)&&this.hasSameCurrency(e)},lessThan:function(t){h.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()<n[1].getAmount()},lessThanOrEqual:function(t){h.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()<=n[1].getAmount()},greaterThan:function(t){h.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()>n[1].getAmount()},greaterThanOrEqual:function(t){h.call(this,t);var n=e.normalizePrecision([this,t]);return n[0].getAmount()>=n[1].getAmount()},isZero:function(){return 0===this.getAmount()},isPositive:function(){return this.getAmount()>=0},isNegative:function(){return this.getAmount()<0},hasSubUnits:function(){return 0!==w.modulo(this.getAmount(),Math.pow(10,a))},hasCents:function(){return 0!==w.modulo(this.getAmount(),Math.pow(10,a))},hasSameCurrency:function(e){return this.getCurrency()===e.getCurrency()},hasSameAmount:function(t){var n=e.normalizePrecision([this,t]);return n[0].getAmount()===n[1].getAmount()},toFormat:function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,t=function(e){var t=/^(?:(\$|USD)?0(?:(,)0)?(\.)?(0+)?|0(?:(,)0)?(\.)?(0+)?\s?(dollar)?)$/gm.exec(e);return{getMatches:function(){return null!==t?t.slice(1).filter((function(e){return!f(e)})):[]},getMinimumFractionDigits:function(){var e=function(e){return"."===e};return f(this.getMatches().find(e))?0:this.getMatches()[g.add(this.getMatches().findIndex(e),1)].split("").length},getCurrencyDisplay:function(){return{USD:"code",dollar:"name",$:"symbol"}[this.getMatches().find((function(e){return"USD"===e||"dollar"===e||"$"===e}))]},getStyle:function(){return f(this.getCurrencyDisplay(this.getMatches()))?"decimal":"currency"},getUseGrouping:function(){return!f(this.getMatches().find((function(e){return","===e})))}}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:s);return this.toRoundedUnit(t.getMinimumFractionDigits(),e).toLocaleString(this.getLocale(),{currencyDisplay:t.getCurrencyDisplay(),useGrouping:t.getUseGrouping(),minimumFractionDigits:t.getMinimumFractionDigits(),style:t.getStyle(),currency:this.getCurrency()})},toUnit:function(){return w.divide(this.getAmount(),Math.pow(10,a))},toRoundedUnit:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,n=Math.pow(10,e);return w.divide(w.round(w.multiply(this.toUnit(),n),t),n)},toObject:function(){return{amount:i,currency:r,precision:a}},toJSON:function(){return this.toObject()}}}),{defaultAmount:0,defaultCurrency:"USD",defaultPrecision:2},i,s);const k=x},7856:function(e){e.exports=function(){"use strict";function e(t){return e="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},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function i(e,r,a){return i=n()?Reflect.construct:function(e,n,i){var r=[null];r.push.apply(r,n);var a=new(Function.bind.apply(e,r));return i&&t(a,i.prototype),a},i.apply(null,arguments)}function r(e){return a(e)||o(e)||s(e)||c()}function a(e){if(Array.isArray(e))return l(e)}function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=Object.hasOwnProperty,d=Object.setPrototypeOf,h=Object.isFrozen,f=Object.getPrototypeOf,p=Object.getOwnPropertyDescriptor,m=Object.freeze,g=Object.seal,_=Object.create,v="undefined"!=typeof Reflect&&Reflect,y=v.apply,b=v.construct;y||(y=function(e,t,n){return e.apply(t,n)}),m||(m=function(e){return e}),g||(g=function(e){return e}),b||(b=function(e,t){return i(e,r(t))});var w=O(Array.prototype.forEach),x=O(Array.prototype.pop),k=O(Array.prototype.push),A=O(String.prototype.toLowerCase),S=O(String.prototype.toString),M=O(String.prototype.match),T=O(String.prototype.replace),L=O(String.prototype.indexOf),E=O(String.prototype.trim),C=O(RegExp.prototype.test),D=Y(TypeError);function O(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return y(e,t,i)}}function Y(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return b(e,n)}}function P(e,t,n){var i;n=null!==(i=n)&&void 0!==i?i:A,d&&d(e,null);for(var r=t.length;r--;){var a=t[r];if("string"==typeof a){var o=n(a);o!==a&&(h(t)||(t[r]=o),a=o)}e[a]=!0}return e}function j(e){var t,n=_(null);for(t in e)!0===y(u,e,[t])&&(n[t]=e[t]);return n}function I(e,t){for(;null!==e;){var n=p(e,t);if(n){if(n.get)return O(n.get);if("function"==typeof n.value)return O(n.value)}e=f(e)}function i(e){return console.warn("fallback value for",e),null}return i}var F=m(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),N=m(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=m(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),H=m(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),z=m(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),q=m(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=m(["#text"]),$=m(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),W=m(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),U=m(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=m(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),X=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=g(/<%[\w\W]*|[\w\W]*%>/gm),J=g(/\${[\w\W]*}/gm),Q=g(/^data-[\-\w.\u00B7-\uFFFF]/),K=g(/^aria-[\-\w]+$/),Z=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=g(/^(?:\w+script|data):/i),te=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ne=g(/^html$/i),ie=function(){return"undefined"==typeof window?null:window},re=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var i=null,r="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(r)&&(i=n.currentScript.getAttribute(r));var a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function ae(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie(),n=function(e){return ae(e)};if(n.version="2.4.7",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i=t.document,a=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,h=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,f=t.HTMLFormElement,p=t.DOMParser,g=t.trustedTypes,_=c.prototype,v=I(_,"cloneNode"),y=I(_,"nextSibling"),b=I(_,"childNodes"),O=I(_,"parentNode");if("function"==typeof s){var Y=a.createElement("template");Y.content&&Y.content.ownerDocument&&(a=Y.content.ownerDocument)}var oe=re(g,i),se=oe?oe.createHTML(""):"",le=a,ce=le.implementation,ue=le.createNodeIterator,de=le.createDocumentFragment,he=le.getElementsByTagName,fe=i.importNode,pe={};try{pe=j(a).documentMode?a.documentMode:{}}catch(e){}var me={};n.isSupported="function"==typeof O&&ce&&void 0!==ce.createHTMLDocument&&9!==pe;var ge,_e,ve=X,ye=G,be=J,we=Q,xe=K,ke=ee,Ae=te,Se=Z,Me=null,Te=P({},[].concat(r(F),r(N),r(R),r(z),r(B))),Le=null,Ee=P({},[].concat(r($),r(W),r(U),r(V))),Ce=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),De=null,Oe=null,Ye=!0,Pe=!0,je=!1,Ie=!0,Fe=!1,Ne=!1,Re=!1,He=!1,ze=!1,qe=!1,Be=!1,$e=!0,We=!1,Ue="user-content-",Ve=!0,Xe=!1,Ge={},Je=null,Qe=P({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ke=null,Ze=P({},["audio","video","img","source","image","track"]),et=null,tt=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",it="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",at=rt,ot=!1,st=null,lt=P({},[nt,it,rt],S),ct=["application/xhtml+xml","text/html"],ut="text/html",dt=null,ht=a.createElement("form"),ft=function(e){return e instanceof RegExp||e instanceof Function},pt=function(t){dt&&dt===t||(t&&"object"===e(t)||(t={}),t=j(t),ge=ge=-1===ct.indexOf(t.PARSER_MEDIA_TYPE)?ut:t.PARSER_MEDIA_TYPE,_e="application/xhtml+xml"===ge?S:A,Me="ALLOWED_TAGS"in t?P({},t.ALLOWED_TAGS,_e):Te,Le="ALLOWED_ATTR"in t?P({},t.ALLOWED_ATTR,_e):Ee,st="ALLOWED_NAMESPACES"in t?P({},t.ALLOWED_NAMESPACES,S):lt,et="ADD_URI_SAFE_ATTR"in t?P(j(tt),t.ADD_URI_SAFE_ATTR,_e):tt,Ke="ADD_DATA_URI_TAGS"in t?P(j(Ze),t.ADD_DATA_URI_TAGS,_e):Ze,Je="FORBID_CONTENTS"in t?P({},t.FORBID_CONTENTS,_e):Qe,De="FORBID_TAGS"in t?P({},t.FORBID_TAGS,_e):{},Oe="FORBID_ATTR"in t?P({},t.FORBID_ATTR,_e):{},Ge="USE_PROFILES"in t&&t.USE_PROFILES,Ye=!1!==t.ALLOW_ARIA_ATTR,Pe=!1!==t.ALLOW_DATA_ATTR,je=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Fe=t.SAFE_FOR_TEMPLATES||!1,Ne=t.WHOLE_DOCUMENT||!1,ze=t.RETURN_DOM||!1,qe=t.RETURN_DOM_FRAGMENT||!1,Be=t.RETURN_TRUSTED_TYPE||!1,He=t.FORCE_BODY||!1,$e=!1!==t.SANITIZE_DOM,We=t.SANITIZE_NAMED_PROPS||!1,Ve=!1!==t.KEEP_CONTENT,Xe=t.IN_PLACE||!1,Se=t.ALLOWED_URI_REGEXP||Se,at=t.NAMESPACE||rt,Ce=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ft(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ce.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ft(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ce.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ce.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Fe&&(Pe=!1),qe&&(ze=!0),Ge&&(Me=P({},r(B)),Le=[],!0===Ge.html&&(P(Me,F),P(Le,$)),!0===Ge.svg&&(P(Me,N),P(Le,W),P(Le,V)),!0===Ge.svgFilters&&(P(Me,R),P(Le,W),P(Le,V)),!0===Ge.mathMl&&(P(Me,z),P(Le,U),P(Le,V))),t.ADD_TAGS&&(Me===Te&&(Me=j(Me)),P(Me,t.ADD_TAGS,_e)),t.ADD_ATTR&&(Le===Ee&&(Le=j(Le)),P(Le,t.ADD_ATTR,_e)),t.ADD_URI_SAFE_ATTR&&P(et,t.ADD_URI_SAFE_ATTR,_e),t.FORBID_CONTENTS&&(Je===Qe&&(Je=j(Je)),P(Je,t.FORBID_CONTENTS,_e)),Ve&&(Me["#text"]=!0),Ne&&P(Me,["html","head","body"]),Me.table&&(P(Me,["tbody"]),delete De.tbody),m&&m(t),dt=t)},mt=P({},["mi","mo","mn","ms","mtext"]),gt=P({},["foreignobject","desc","title","annotation-xml"]),_t=P({},["title","style","font","a","script"]),vt=P({},N);P(vt,R),P(vt,H);var yt=P({},z);P(yt,q);var bt=function(e){var t=O(e);t&&t.tagName||(t={namespaceURI:at,tagName:"template"});var n=A(e.tagName),i=A(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===it?t.namespaceURI===rt?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===i||mt[i]):Boolean(vt[n]):e.namespaceURI===nt?t.namespaceURI===rt?"math"===n:t.namespaceURI===it?"math"===n&&gt[i]:Boolean(yt[n]):e.namespaceURI===rt?!(t.namespaceURI===it&&!gt[i])&&!(t.namespaceURI===nt&&!mt[i])&&!yt[n]&&(_t[n]||!vt[n]):!("application/xhtml+xml"!==ge||!st[e.namespaceURI]))},wt=function(e){k(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},xt=function(e,t){try{k(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){k(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Le[e])if(ze||qe)try{wt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},kt=function(e){var t,n;if(He)e="<remove></remove>"+e;else{var i=M(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ge&&at===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var r=oe?oe.createHTML(e):e;if(at===rt)try{t=(new p).parseFromString(r,ge)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(at,"template",null);try{t.documentElement.innerHTML=ot?se:r}catch(e){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),at===rt?he.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:o},At=function(e){return ue.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},St=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Mt=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Tt=function(e,t,i){me[e]&&w(me[e],(function(e){e.call(n,t,i,dt)}))},Lt=function(e){var t;if(Tt("beforeSanitizeElements",e,null),St(e))return wt(e),!0;if(C(/[\u0080-\uFFFF]/,e.nodeName))return wt(e),!0;var i=_e(e.nodeName);if(Tt("uponSanitizeElement",e,{tagName:i,allowedTags:Me}),e.hasChildNodes()&&!Mt(e.firstElementChild)&&(!Mt(e.content)||!Mt(e.content.firstElementChild))&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return wt(e),!0;if("select"===i&&C(/<template/i,e.innerHTML))return wt(e),!0;if(!Me[i]||De[i]){if(!De[i]&&Ct(i)){if(Ce.tagNameCheck instanceof RegExp&&C(Ce.tagNameCheck,i))return!1;if(Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(i))return!1}if(Ve&&!Je[i]){var r=O(e)||e.parentNode,a=b(e)||e.childNodes;if(a&&r)for(var o=a.length-1;o>=0;--o)r.insertBefore(v(a[o],!0),y(e))}return wt(e),!0}return e instanceof c&&!bt(e)?(wt(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!C(/<\/no(script|embed|frames)/i,e.innerHTML)?(Fe&&3===e.nodeType&&(t=e.textContent,t=T(t,ve," "),t=T(t,ye," "),t=T(t,be," "),e.textContent!==t&&(k(n.removed,{element:e.cloneNode()}),e.textContent=t)),Tt("afterSanitizeElements",e,null),!1):(wt(e),!0)},Et=function(e,t,n){if($e&&("id"===t||"name"===t)&&(n in a||n in ht))return!1;if(Pe&&!Oe[t]&&C(we,t));else if(Ye&&C(xe,t));else if(!Le[t]||Oe[t]){if(!(Ct(e)&&(Ce.tagNameCheck instanceof RegExp&&C(Ce.tagNameCheck,e)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(e))&&(Ce.attributeNameCheck instanceof RegExp&&C(Ce.attributeNameCheck,t)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(t))||"is"===t&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&C(Ce.tagNameCheck,n)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(n))))return!1}else if(et[t]);else if(C(Se,T(n,Ae,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==L(n,"data:")||!Ke[e])if(je&&!C(ke,T(n,Ae,"")));else if(n)return!1;return!0},Ct=function(e){return e.indexOf("-")>0},Dt=function(t){var i,r,a,o;Tt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Le};for(o=s.length;o--;){var c=i=s[o],u=c.name,d=c.namespaceURI;if(r="value"===u?i.value:E(i.value),a=_e(u),l.attrName=a,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,Tt("uponSanitizeAttribute",t,l),r=l.attrValue,!l.forceKeepAttr&&(xt(u,t),l.keepAttr))if(Ie||!C(/\/>/i,r)){Fe&&(r=T(r,ve," "),r=T(r,ye," "),r=T(r,be," "));var h=_e(t.nodeName);if(Et(h,a,r)){if(!We||"id"!==a&&"name"!==a||(xt(u,t),r=Ue+r),oe&&"object"===e(g)&&"function"==typeof g.getAttributeType)if(d);else switch(g.getAttributeType(h,a)){case"TrustedHTML":r=oe.createHTML(r);break;case"TrustedScriptURL":r=oe.createScriptURL(r)}try{d?t.setAttributeNS(d,u,r):t.setAttribute(u,r),x(n.removed)}catch(e){}}}else xt(u,t)}Tt("afterSanitizeAttributes",t,null)}},Ot=function e(t){var n,i=At(t);for(Tt("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)Tt("uponSanitizeShadowNode",n,null),Lt(n)||(n.content instanceof o&&e(n.content),Dt(n));Tt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(r){var a,s,c,u,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ot=!r)&&(r="\x3c!--\x3e"),"string"!=typeof r&&!Mt(r)){if("function"!=typeof r.toString)throw D("toString is not a function");if("string"!=typeof(r=r.toString()))throw D("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof r)return t.toStaticHTML(r);if(Mt(r))return t.toStaticHTML(r.outerHTML)}return r}if(Re||pt(h),n.removed=[],"string"==typeof r&&(Xe=!1),Xe){if(r.nodeName){var f=_e(r.nodeName);if(!Me[f]||De[f])throw D("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof l)1===(s=(a=kt("\x3c!----\x3e")).ownerDocument.importNode(r,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?a=s:a.appendChild(s);else{if(!ze&&!Fe&&!Ne&&-1===r.indexOf("<"))return oe&&Be?oe.createHTML(r):r;if(!(a=kt(r)))return ze?null:Be?se:""}a&&He&&wt(a.firstChild);for(var p=At(Xe?r:a);c=p.nextNode();)3===c.nodeType&&c===u||Lt(c)||(c.content instanceof o&&Ot(c.content),Dt(c),u=c);if(u=null,Xe)return r;if(ze){if(qe)for(d=de.call(a.ownerDocument);a.firstChild;)d.appendChild(a.firstChild);else d=a;return(Le.shadowroot||Le.shadowrootmod)&&(d=fe.call(i,d,!0)),d}var m=Ne?a.outerHTML:a.innerHTML;return Ne&&Me["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&C(ne,a.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+m),Fe&&(m=T(m,ve," "),m=T(m,ye," "),m=T(m,be," ")),oe&&Be?oe.createHTML(m):m},n.setConfig=function(e){pt(e),Re=!0},n.clearConfig=function(){dt=null,Re=!1},n.isValidAttribute=function(e,t,n){dt||pt({});var i=_e(e),r=_e(t);return Et(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(me[e]=me[e]||[],k(me[e],t))},n.removeHook=function(e){if(me[e])return x(me[e])},n.removeHooks=function(e){me[e]&&(me[e]=[])},n.removeAllHooks=function(){me={}},n}return ae()}()},283:function(e){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));class i{constructor(e,t=null,n=null){this.events={},this.container=e,this.precanvas=null,this.nodeId=1,this.ele_selected=null,this.node_selected=null,this.drag=!1,this.reroute=!1,this.reroute_fix_curvature=!1,this.curvature=.5,this.reroute_curvature_start_end=.5,this.reroute_curvature=.5,this.reroute_width=6,this.drag_point=!1,this.editor_selected=!1,this.connection=!1,this.connection_ele=null,this.connection_selected=null,this.canvas_x=0,this.canvas_y=0,this.pos_x=0,this.pos_x_start=0,this.pos_y=0,this.pos_y_start=0,this.mouse_x=0,this.mouse_y=0,this.line_path=5,this.first_click=null,this.force_first_input=!1,this.draggable_inputs=!0,this.useuuid=!1,this.parent=n,this.noderegister={},this.render=t,this.drawflow={drawflow:{Home:{data:{}}}},this.module="Home",this.editor_mode="edit",this.zoom=1,this.zoom_max=1.6,this.zoom_min=.5,this.zoom_value=.1,this.zoom_last_value=1,this.evCache=new Array,this.prevDiff=-1}start(){this.container.classList.add("parent-drawflow"),this.container.tabIndex=0,this.precanvas=document.createElement("div"),this.precanvas.classList.add("drawflow"),this.container.appendChild(this.precanvas),this.container.addEventListener("mouseup",this.dragEnd.bind(this)),this.container.addEventListener("mousemove",this.position.bind(this)),this.container.addEventListener("mousedown",this.click.bind(this)),this.container.addEventListener("touchend",this.dragEnd.bind(this)),this.container.addEventListener("touchmove",this.position.bind(this)),this.container.addEventListener("touchstart",this.click.bind(this)),this.container.addEventListener("contextmenu",this.contextmenu.bind(this)),this.container.addEventListener("keydown",this.key.bind(this)),this.container.addEventListener("wheel",this.zoom_enter.bind(this)),this.container.addEventListener("input",this.updateNodeValue.bind(this)),this.container.addEventListener("dblclick",this.dblclick.bind(this)),this.container.onpointerdown=this.pointerdown_handler.bind(this),this.container.onpointermove=this.pointermove_handler.bind(this),this.container.onpointerup=this.pointerup_handler.bind(this),this.container.onpointercancel=this.pointerup_handler.bind(this),this.container.onpointerout=this.pointerup_handler.bind(this),this.container.onpointerleave=this.pointerup_handler.bind(this),this.load()}pointerdown_handler(e){this.evCache.push(e)}pointermove_handler(e){for(var t=0;t<this.evCache.length;t++)if(e.pointerId==this.evCache[t].pointerId){this.evCache[t]=e;break}if(2==this.evCache.length){var n=Math.abs(this.evCache[0].clientX-this.evCache[1].clientX);this.prevDiff>100&&(n>this.prevDiff&&this.zoom_in(),n<this.prevDiff&&this.zoom_out()),this.prevDiff=n}}pointerup_handler(e){this.remove_event(e),this.evCache.length<2&&(this.prevDiff=-1)}remove_event(e){for(var t=0;t<this.evCache.length;t++)if(this.evCache[t].pointerId==e.pointerId){this.evCache.splice(t,1);break}}load(){for(var e in this.drawflow.drawflow[this.module].data)this.addNodeImport(this.drawflow.drawflow[this.module].data[e],this.precanvas);if(this.reroute)for(var e in this.drawflow.drawflow[this.module].data)this.addRerouteImport(this.drawflow.drawflow[this.module].data[e]);for(var e in this.drawflow.drawflow[this.module].data)this.updateConnectionNodes("node-"+e);const t=this.drawflow.drawflow;let n=1;Object.keys(t).map((function(e,i){Object.keys(t[e].data).map((function(e,t){parseInt(e)>=n&&(n=parseInt(e)+1)}))})),this.nodeId=n}removeReouteConnectionSelected(){this.dispatch("connectionUnselected",!0),this.reroute_fix_curvature&&this.connection_selected.parentElement.querySelectorAll(".main-path").forEach(((e,t)=>{e.classList.remove("selected")}))}click(e){if(this.dispatch("click",e),"fixed"===this.editor_mode){if("parent-drawflow"!==e.target.classList[0]&&"drawflow"!==e.target.classList[0])return!1;this.ele_selected=e.target.closest(".parent-drawflow")}else"view"===this.editor_mode?(null!=e.target.closest(".drawflow")||e.target.matches(".parent-drawflow"))&&(this.ele_selected=e.target.closest(".parent-drawflow"),e.preventDefault()):(this.first_click=e.target,this.ele_selected=e.target,0===e.button&&this.contextmenuDel(),null!=e.target.closest(".drawflow_content_node")&&(this.ele_selected=e.target.closest(".drawflow_content_node").parentElement));switch(this.ele_selected.classList[0]){case"drawflow-node":null!=this.node_selected&&(this.node_selected.classList.remove("selected"),this.node_selected!=this.ele_selected&&this.dispatch("nodeUnselected",!0)),null!=this.connection_selected&&(this.connection_selected.classList.remove("selected"),this.removeReouteConnectionSelected(),this.connection_selected=null),this.node_selected!=this.ele_selected&&this.dispatch("nodeSelected",this.ele_selected.id.slice(5)),this.node_selected=this.ele_selected,this.node_selected.classList.add("selected"),this.draggable_inputs?"SELECT"!==e.target.tagName&&(this.drag=!0):"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&"SELECT"!==e.target.tagName&&!0!==e.target.hasAttribute("contenteditable")&&(this.drag=!0);break;case"output":this.connection=!0,null!=this.node_selected&&(this.node_selected.classList.remove("selected"),this.node_selected=null,this.dispatch("nodeUnselected",!0)),null!=this.connection_selected&&(this.connection_selected.classList.remove("selected"),this.removeReouteConnectionSelected(),this.connection_selected=null),this.drawConnection(e.target);break;case"parent-drawflow":case"drawflow":null!=this.node_selected&&(this.node_selected.classList.remove("selected"),this.node_selected=null,this.dispatch("nodeUnselected",!0)),null!=this.connection_selected&&(this.connection_selected.classList.remove("selected"),this.removeReouteConnectionSelected(),this.connection_selected=null),this.editor_selected=!0;break;case"main-path":null!=this.node_selected&&(this.node_selected.classList.remove("selected"),this.node_selected=null,this.dispatch("nodeUnselected",!0)),null!=this.connection_selected&&(this.connection_selected.classList.remove("selected"),this.removeReouteConnectionSelected(),this.connection_selected=null),this.connection_selected=this.ele_selected,this.connection_selected.classList.add("selected");const t=this.connection_selected.parentElement.classList;this.dispatch("connectionSelected",{output_id:t[2].slice(14),input_id:t[1].slice(13),output_class:t[3],input_class:t[4]}),this.reroute_fix_curvature&&this.connection_selected.parentElement.querySelectorAll(".main-path").forEach(((e,t)=>{e.classList.add("selected")}));break;case"point":this.drag_point=!0,this.ele_selected.classList.add("selected");break;case"drawflow-delete":this.node_selected&&this.removeNodeId(this.node_selected.id),this.connection_selected&&this.removeConnection(),null!=this.node_selected&&(this.node_selected.classList.remove("selected"),this.node_selected=null,this.dispatch("nodeUnselected",!0)),null!=this.connection_selected&&(this.connection_selected.classList.remove("selected"),this.removeReouteConnectionSelected(),this.connection_selected=null)}"touchstart"===e.type?(this.pos_x=e.touches[0].clientX,this.pos_x_start=e.touches[0].clientX,this.pos_y=e.touches[0].clientY,this.pos_y_start=e.touches[0].clientY):(this.pos_x=e.clientX,this.pos_x_start=e.clientX,this.pos_y=e.clientY,this.pos_y_start=e.clientY),this.dispatch("clickEnd",e)}position(e){if("touchmove"===e.type)var t=e.touches[0].clientX,n=e.touches[0].clientY;else t=e.clientX,n=e.clientY;if(this.connection&&this.updateConnection(t,n),this.editor_selected&&(i=this.canvas_x+-(this.pos_x-t),r=this.canvas_y+-(this.pos_y-n),this.dispatch("translate",{x:i,y:r}),this.precanvas.style.transform="translate("+i+"px, "+r+"px) scale("+this.zoom+")"),this.drag){var i=(this.pos_x-t)*this.precanvas.clientWidth/(this.precanvas.clientWidth*this.zoom),r=(this.pos_y-n)*this.precanvas.clientHeight/(this.precanvas.clientHeight*this.zoom);this.pos_x=t,this.pos_y=n,this.ele_selected.style.top=this.ele_selected.offsetTop-r+"px",this.ele_selected.style.left=this.ele_selected.offsetLeft-i+"px",this.drawflow.drawflow[this.module].data[this.ele_selected.id.slice(5)].pos_x=this.ele_selected.offsetLeft-i,this.drawflow.drawflow[this.module].data[this.ele_selected.id.slice(5)].pos_y=this.ele_selected.offsetTop-r,this.updateConnectionNodes(this.ele_selected.id)}if(this.drag_point){i=(this.pos_x-t)*this.precanvas.clientWidth/(this.precanvas.clientWidth*this.zoom),r=(this.pos_y-n)*this.precanvas.clientHeight/(this.precanvas.clientHeight*this.zoom),this.pos_x=t,this.pos_y=n;var a=this.pos_x*(this.precanvas.clientWidth/(this.precanvas.clientWidth*this.zoom))-this.precanvas.getBoundingClientRect().x*(this.precanvas.clientWidth/(this.precanvas.clientWidth*this.zoom)),o=this.pos_y*(this.precanvas.clientHeight/(this.precanvas.clientHeight*this.zoom))-this.precanvas.getBoundingClientRect().y*(this.precanvas.clientHeight/(this.precanvas.clientHeight*this.zoom));this.ele_selected.setAttributeNS(null,"cx",a),this.ele_selected.setAttributeNS(null,"cy",o);const e=this.ele_selected.parentElement.classList[2].slice(9),s=this.ele_selected.parentElement.classList[1].slice(13),l=this.ele_selected.parentElement.classList[3],c=this.ele_selected.parentElement.classList[4];let u=Array.from(this.ele_selected.parentElement.children).indexOf(this.ele_selected)-1;this.reroute_fix_curvature&&(u-=this.ele_selected.parentElement.querySelectorAll(".main-path").length-1,u<0&&(u=0));const d=e.slice(5),h=this.drawflow.drawflow[this.module].data[d].outputs[l].connections.findIndex((function(e,t){return e.node===s&&e.output===c}));this.drawflow.drawflow[this.module].data[d].outputs[l].connections[h].points[u]={pos_x:a,pos_y:o};const f=this.ele_selected.parentElement.classList[2].slice(9);this.updateConnectionNodes(f)}"touchmove"===e.type&&(this.mouse_x=t,this.mouse_y=n),this.dispatch("mouseMove",{x:t,y:n})}dragEnd(e){if("touchend"===e.type)var t=this.mouse_x,n=this.mouse_y,i=document.elementFromPoint(t,n);else t=e.clientX,n=e.clientY,i=e.target;if(this.drag&&(this.pos_x_start==t&&this.pos_y_start==n||this.dispatch("nodeMoved",this.ele_selected.id.slice(5))),this.drag_point&&(this.ele_selected.classList.remove("selected"),this.pos_x_start==t&&this.pos_y_start==n||this.dispatch("rerouteMoved",this.ele_selected.parentElement.classList[2].slice(14))),this.editor_selected&&(this.canvas_x=this.canvas_x+-(this.pos_x-t),this.canvas_y=this.canvas_y+-(this.pos_y-n),this.editor_selected=!1),!0===this.connection)if("input"===i.classList[0]||this.force_first_input&&(null!=i.closest(".drawflow_content_node")||"drawflow-node"===i.classList[0])){if(!this.force_first_input||null==i.closest(".drawflow_content_node")&&"drawflow-node"!==i.classList[0])r=i.parentElement.parentElement.id,a=i.classList[1];else{if(null!=i.closest(".drawflow_content_node"))var r=i.closest(".drawflow_content_node").parentElement.id;else r=i.id;if(0===Object.keys(this.getNodeFromId(r.slice(5)).inputs).length)var a=!1;else a="input_1"}var o=this.ele_selected.parentElement.parentElement.id,s=this.ele_selected.classList[1];if(o!==r&&!1!==a){if(0===this.container.querySelectorAll(".connection.node_in_"+r+".node_out_"+o+"."+s+"."+a).length){this.connection_ele.classList.add("node_in_"+r),this.connection_ele.classList.add("node_out_"+o),this.connection_ele.classList.add(s),this.connection_ele.classList.add(a);var l=r.slice(5),c=o.slice(5);this.drawflow.drawflow[this.module].data[c].outputs[s].connections.push({node:l,output:a}),this.drawflow.drawflow[this.module].data[l].inputs[a].connections.push({node:c,input:s}),this.updateConnectionNodes("node-"+c),this.updateConnectionNodes("node-"+l),this.dispatch("connectionCreated",{output_id:c,input_id:l,output_class:s,input_class:a})}else this.dispatch("connectionCancel",!0),this.connection_ele.remove();this.connection_ele=null}else this.dispatch("connectionCancel",!0),this.connection_ele.remove(),this.connection_ele=null}else this.dispatch("connectionCancel",!0),this.connection_ele.remove(),this.connection_ele=null;this.drag=!1,this.drag_point=!1,this.connection=!1,this.ele_selected=null,this.editor_selected=!1,this.dispatch("mouseUp",e)}contextmenu(e){if(this.dispatch("contextmenu",e),e.preventDefault(),"fixed"===this.editor_mode||"view"===this.editor_mode)return!1;if(this.precanvas.getElementsByClassName("drawflow-delete").length&&this.precanvas.getElementsByClassName("drawflow-delete")[0].remove(),this.node_selected||this.connection_selected){var t=document.createElement("div");t.classList.add("drawflow-delete"),t.innerHTML="x",this.node_selected&&this.node_selected.appendChild(t),this.connection_selected&&(t.style.top=e.clientY*(this.precanvas.clientHeight/(this.precanvas.clientHeight*this.zoom))-this.precanvas.getBoundingClientRect().y*(this.precanvas.clientHeight/(this.precanvas.clientHeight*this.zoom))+"px",t.style.left=e.clientX*(this.precanvas.clientWidth/(this.precanvas.clientWidth*this.zoom))-this.precanvas.getBoundingClientRect().x*(this.precanvas.clientWidth/(this.precanvas.clientWidth*this.zoom))+"px",this.precanvas.appendChild(t))}}contextmenuDel(){this.precanvas.getElementsByClassName("drawflow-delete").length&&this.precanvas.getElementsByClassName("drawflow-delete")[0].remove()}key(e){if(this.dispatch("keydown",e),"fixed"===this.editor_mode||"view"===this.editor_mode)return!1;("Delete"===e.key||"Backspace"===e.key&&e.metaKey)&&(null!=this.node_selected&&"INPUT"!==this.first_click.tagName&&"TEXTAREA"!==this.first_click.tagName&&!0!==this.first_click.hasAttribute("contenteditable")&&this.removeNodeId(this.node_selected.id),null!=this.connection_selected&&this.removeConnection())}zoom_enter(e,t){e.ctrlKey&&(e.preventDefault(),e.deltaY>0?this.zoom_out():this.zoom_in())}zoom_refresh(){this.dispatch("zoom",this.zoom),this.canvas_x=this.canvas_x/this.zoom_last_value*this.zoom,this.canvas_y=this.canvas_y/this.zoom_last_value*this.zoom,this.zoom_last_value=this.zoom,this.precanvas.style.transform="translate("+this.canvas_x+"px, "+this.canvas_y+"px) scale("+this.zoom+")"}zoom_in(){this.zoom<this.zoom_max&&(this.zoom+=this.zoom_value,this.zoom_refresh())}zoom_out(){this.zoom>this.zoom_min&&(this.zoom-=this.zoom_value,this.zoom_refresh())}zoom_reset(){1!=this.zoom&&(this.zoom=1,this.zoom_refresh())}createCurvature(e,t,n,i,r,a){var o=e,s=t,l=n,c=i,u=r;switch(a){case"open":if(e>=n)var d=o+Math.abs(l-o)*u,h=l-Math.abs(l-o)*(-1*u);else d=o+Math.abs(l-o)*u,h=l-Math.abs(l-o)*u;return" M "+o+" "+s+" C "+d+" "+s+" "+h+" "+c+" "+l+"  "+c;case"close":return e>=n?(d=o+Math.abs(l-o)*(-1*u),h=l-Math.abs(l-o)*u):(d=o+Math.abs(l-o)*u,h=l-Math.abs(l-o)*u)," M "+o+" "+s+" C "+d+" "+s+" "+h+" "+c+" "+l+"  "+c;case"other":return e>=n?(d=o+Math.abs(l-o)*(-1*u),h=l-Math.abs(l-o)*(-1*u)):(d=o+Math.abs(l-o)*u,h=l-Math.abs(l-o)*u)," M "+o+" "+s+" C "+d+" "+s+" "+h+" "+c+" "+l+"  "+c;default:return" M "+o+" "+s+" C "+(d=o+Math.abs(l-o)*u)+" "+s+" "+(h=l-Math.abs(l-o)*u)+" "+c+" "+l+"  "+c}}drawConnection(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");this.connection_ele=t;var n=document.createElementNS("http://www.w3.org/2000/svg","path");n.classList.add("main-path"),n.setAttributeNS(null,"d",""),t.classList.add("connection"),t.appendChild(n),this.precanvas.appendChild(t);var i=e.parentElement.parentElement.id.slice(5),r=e.classList[1];this.dispatch("connectionStart",{output_id:i,output_class:r})}updateConnection(e,t){const n=this.precanvas,i=this.zoom;let r=n.clientWidth/(n.clientWidth*i);r=r||0;let a=n.clientHeight/(n.clientHeight*i);a=a||0;var o=this.connection_ele.children[0],s=this.ele_selected.offsetWidth/2+(this.ele_selected.getBoundingClientRect().x-n.getBoundingClientRect().x)*r,l=this.ele_selected.offsetHeight/2+(this.ele_selected.getBoundingClientRect().y-n.getBoundingClientRect().y)*a,c=e*(this.precanvas.clientWidth/(this.precanvas.clientWidth*this.zoom))-this.precanvas.getBoundingClientRect().x*(this.precanvas.clientWidth/(this.precanvas.clientWidth*this.zoom)),u=t*(this.precanvas.clientHeight/(this.precanvas.clientHeight*this.zoom))-this.precanvas.getBoundingClientRect().y*(this.precanvas.clientHeight/(this.precanvas.clientHeight*this.zoom)),d=this.curvature,h=this.createCurvature(s,l,c,u,d,"openclose");o.setAttributeNS(null,"d",h)}addConnection(e,t,n,i){var r=this.getModuleFromNodeId(e);if(r===this.getModuleFromNodeId(t)){var a=this.getNodeFromId(e),o=!1;for(var s in a.outputs[n].connections){var l=a.outputs[n].connections[s];l.node==t&&l.output==i&&(o=!0)}if(!1===o){if(this.drawflow.drawflow[r].data[e].outputs[n].connections.push({node:t.toString(),output:i}),this.drawflow.drawflow[r].data[t].inputs[i].connections.push({node:e.toString(),input:n}),this.module===r){var c=document.createElementNS("http://www.w3.org/2000/svg","svg"),u=document.createElementNS("http://www.w3.org/2000/svg","path");u.classList.add("main-path"),u.setAttributeNS(null,"d",""),c.classList.add("connection"),c.classList.add("node_in_node-"+t),c.classList.add("node_out_node-"+e),c.classList.add(n),c.classList.add(i),c.appendChild(u),this.precanvas.appendChild(c),this.updateConnectionNodes("node-"+e),this.updateConnectionNodes("node-"+t)}this.dispatch("connectionCreated",{output_id:e,input_id:t,output_class:n,input_class:i})}}}updateConnectionNodes(e){const t="node_in_"+e,n="node_out_"+e;this.line_path;const i=this.container,r=this.precanvas,a=this.curvature,o=this.createCurvature,s=this.reroute_curvature,l=this.reroute_curvature_start_end,c=this.reroute_fix_curvature,u=this.reroute_width,d=this.zoom;let h=r.clientWidth/(r.clientWidth*d);h=h||0;let f=r.clientHeight/(r.clientHeight*d);f=f||0;const p=i.querySelectorAll("."+n);Object.keys(p).map((function(t,n){if(null===p[t].querySelector(".point")){var m=i.querySelector("#"+e),g=p[t].classList[1].replace("node_in_",""),_=i.querySelector("#"+g).querySelectorAll("."+p[t].classList[4])[0],v=_.offsetWidth/2+(_.getBoundingClientRect().x-r.getBoundingClientRect().x)*h,y=_.offsetHeight/2+(_.getBoundingClientRect().y-r.getBoundingClientRect().y)*f,b=m.querySelectorAll("."+p[t].classList[3])[0],w=b.offsetWidth/2+(b.getBoundingClientRect().x-r.getBoundingClientRect().x)*h,x=b.offsetHeight/2+(b.getBoundingClientRect().y-r.getBoundingClientRect().y)*f;const n=o(w,x,v,y,a,"openclose");p[t].children[0].setAttributeNS(null,"d",n)}else{const n=p[t].querySelectorAll(".point");let a="";const m=[];n.forEach(((t,c)=>{if(0===c&&n.length-1==0){var p=i.querySelector("#"+e),g=((x=t).getBoundingClientRect().x-r.getBoundingClientRect().x)*h+u,_=(x.getBoundingClientRect().y-r.getBoundingClientRect().y)*f+u,v=(k=p.querySelectorAll("."+t.parentElement.classList[3])[0]).offsetWidth/2+(k.getBoundingClientRect().x-r.getBoundingClientRect().x)*h,y=k.offsetHeight/2+(k.getBoundingClientRect().y-r.getBoundingClientRect().y)*f,b=o(v,y,g,_,l,"open");a+=b,m.push(b),p=t;var w=t.parentElement.classList[1].replace("node_in_",""),x=(A=i.querySelector("#"+w)).querySelectorAll("."+t.parentElement.classList[4])[0];g=(S=A.querySelectorAll("."+t.parentElement.classList[4])[0]).offsetWidth/2+(S.getBoundingClientRect().x-r.getBoundingClientRect().x)*h,_=S.offsetHeight/2+(S.getBoundingClientRect().y-r.getBoundingClientRect().y)*f,v=(p.getBoundingClientRect().x-r.getBoundingClientRect().x)*h+u,y=(p.getBoundingClientRect().y-r.getBoundingClientRect().y)*f+u,b=o(v,y,g,_,l,"close"),a+=b,m.push(b)}else if(0===c){var k;p=i.querySelector("#"+e),g=((x=t).getBoundingClientRect().x-r.getBoundingClientRect().x)*h+u,_=(x.getBoundingClientRect().y-r.getBoundingClientRect().y)*f+u,v=(k=p.querySelectorAll("."+t.parentElement.classList[3])[0]).offsetWidth/2+(k.getBoundingClientRect().x-r.getBoundingClientRect().x)*h,y=k.offsetHeight/2+(k.getBoundingClientRect().y-r.getBoundingClientRect().y)*f,b=o(v,y,g,_,l,"open"),a+=b,m.push(b),p=t,g=((x=n[c+1]).getBoundingClientRect().x-r.getBoundingClientRect().x)*h+u,_=(x.getBoundingClientRect().y-r.getBoundingClientRect().y)*f+u,v=(p.getBoundingClientRect().x-r.getBoundingClientRect().x)*h+u,y=(p.getBoundingClientRect().y-r.getBoundingClientRect().y)*f+u,b=o(v,y,g,_,s,"other"),a+=b,m.push(b)}else if(c===n.length-1){var A,S;p=t,w=t.parentElement.classList[1].replace("node_in_",""),x=(A=i.querySelector("#"+w)).querySelectorAll("."+t.parentElement.classList[4])[0],g=(S=A.querySelectorAll("."+t.parentElement.classList[4])[0]).offsetWidth/2+(S.getBoundingClientRect().x-r.getBoundingClientRect().x)*h,_=S.offsetHeight/2+(S.getBoundingClientRect().y-r.getBoundingClientRect().y)*f,v=(p.getBoundingClientRect().x-r.getBoundingClientRect().x)*(r.clientWidth/(r.clientWidth*d))+u,y=(p.getBoundingClientRect().y-r.getBoundingClientRect().y)*(r.clientHeight/(r.clientHeight*d))+u,b=o(v,y,g,_,l,"close"),a+=b,m.push(b)}else p=t,g=((x=n[c+1]).getBoundingClientRect().x-r.getBoundingClientRect().x)*(r.clientWidth/(r.clientWidth*d))+u,_=(x.getBoundingClientRect().y-r.getBoundingClientRect().y)*(r.clientHeight/(r.clientHeight*d))+u,v=(p.getBoundingClientRect().x-r.getBoundingClientRect().x)*(r.clientWidth/(r.clientWidth*d))+u,y=(p.getBoundingClientRect().y-r.getBoundingClientRect().y)*(r.clientHeight/(r.clientHeight*d))+u,b=o(v,y,g,_,s,"other"),a+=b,m.push(b)})),c?m.forEach(((e,n)=>{p[t].children[n].setAttributeNS(null,"d",e)})):p[t].children[0].setAttributeNS(null,"d",a)}}));const m=i.querySelectorAll("."+t);Object.keys(m).map((function(t,n){if(null===m[t].querySelector(".point")){var d=i.querySelector("#"+e),p=m[t].classList[2].replace("node_out_",""),g=i.querySelector("#"+p).querySelectorAll("."+m[t].classList[3])[0],_=g.offsetWidth/2+(g.getBoundingClientRect().x-r.getBoundingClientRect().x)*h,v=g.offsetHeight/2+(g.getBoundingClientRect().y-r.getBoundingClientRect().y)*f,y=(d=d.querySelectorAll("."+m[t].classList[4])[0]).offsetWidth/2+(d.getBoundingClientRect().x-r.getBoundingClientRect().x)*h,b=d.offsetHeight/2+(d.getBoundingClientRect().y-r.getBoundingClientRect().y)*f;const n=o(_,v,y,b,a,"openclose");m[t].children[0].setAttributeNS(null,"d",n)}else{const n=m[t].querySelectorAll(".point");let a="";const d=[];n.forEach(((t,c)=>{if(0===c&&n.length-1==0){var p=i.querySelector("#"+e),m=((w=t).getBoundingClientRect().x-r.getBoundingClientRect().x)*h+u,g=(w.getBoundingClientRect().y-r.getBoundingClientRect().y)*f+u,_=(A=p.querySelectorAll("."+t.parentElement.classList[4])[0]).offsetWidth/2+(A.getBoundingClientRect().x-r.getBoundingClientRect().x)*h,v=A.offsetHeight/2+(A.getBoundingClientRect().y-r.getBoundingClientRect().y)*f,y=o(m,g,_,v,l,"close");a+=y,d.push(y),p=t;var b=t.parentElement.classList[2].replace("node_out_",""),w=(k=i.querySelector("#"+b)).querySelectorAll("."+t.parentElement.classList[3])[0];m=(x=k.querySelectorAll("."+t.parentElement.classList[3])[0]).offsetWidth/2+(x.getBoundingClientRect().x-r.getBoundingClientRect().x)*h,g=x.offsetHeight/2+(x.getBoundingClientRect().y-r.getBoundingClientRect().y)*f,_=(p.getBoundingClientRect().x-r.getBoundingClientRect().x)*h+u,v=(p.getBoundingClientRect().y-r.getBoundingClientRect().y)*f+u,y=o(m,g,_,v,l,"open"),a+=y,d.push(y)}else if(0===c){var x;p=t,b=t.parentElement.classList[2].replace("node_out_",""),w=(k=i.querySelector("#"+b)).querySelectorAll("."+t.parentElement.classList[3])[0],m=(x=k.querySelectorAll("."+t.parentElement.classList[3])[0]).offsetWidth/2+(x.getBoundingClientRect().x-r.getBoundingClientRect().x)*h,g=x.offsetHeight/2+(x.getBoundingClientRect().y-r.getBoundingClientRect().y)*f,_=(p.getBoundingClientRect().x-r.getBoundingClientRect().x)*h+u,v=(p.getBoundingClientRect().y-r.getBoundingClientRect().y)*f+u,y=o(m,g,_,v,l,"open"),a+=y,d.push(y),p=t,_=((w=n[c+1]).getBoundingClientRect().x-r.getBoundingClientRect().x)*h+u,v=(w.getBoundingClientRect().y-r.getBoundingClientRect().y)*f+u,m=(p.getBoundingClientRect().x-r.getBoundingClientRect().x)*h+u,g=(p.getBoundingClientRect().y-r.getBoundingClientRect().y)*f+u,y=o(m,g,_,v,s,"other"),a+=y,d.push(y)}else if(c===n.length-1){var k,A;p=t,b=t.parentElement.classList[1].replace("node_in_",""),w=(k=i.querySelector("#"+b)).querySelectorAll("."+t.parentElement.classList[4])[0],_=(A=k.querySelectorAll("."+t.parentElement.classList[4])[0]).offsetWidth/2+(A.getBoundingClientRect().x-r.getBoundingClientRect().x)*h,v=A.offsetHeight/2+(A.getBoundingClientRect().y-r.getBoundingClientRect().y)*f,m=(p.getBoundingClientRect().x-r.getBoundingClientRect().x)*h+u,g=(p.getBoundingClientRect().y-r.getBoundingClientRect().y)*f+u,y=o(m,g,_,v,l,"close"),a+=y,d.push(y)}else p=t,_=((w=n[c+1]).getBoundingClientRect().x-r.getBoundingClientRect().x)*h+u,v=(w.getBoundingClientRect().y-r.getBoundingClientRect().y)*f+u,m=(p.getBoundingClientRect().x-r.getBoundingClientRect().x)*h+u,g=(p.getBoundingClientRect().y-r.getBoundingClientRect().y)*f+u,y=o(m,g,_,v,s,"other"),a+=y,d.push(y)})),c?d.forEach(((e,n)=>{m[t].children[n].setAttributeNS(null,"d",e)})):m[t].children[0].setAttributeNS(null,"d",a)}}))}dblclick(e){null!=this.connection_selected&&this.reroute&&this.createReroutePoint(this.connection_selected),"point"===e.target.classList[0]&&this.removeReroutePoint(e.target)}createReroutePoint(e){this.connection_selected.classList.remove("selected");const t=this.connection_selected.parentElement.classList[2].slice(9),n=this.connection_selected.parentElement.classList[1].slice(13),i=this.connection_selected.parentElement.classList[3],r=this.connection_selected.parentElement.classList[4];this.connection_selected=null;const a=document.createElementNS("http://www.w3.org/2000/svg","circle");a.classList.add("point");var o=this.pos_x*(this.precanvas.clientWidth/(this.precanvas.clientWidth*this.zoom))-this.precanvas.getBoundingClientRect().x*(this.precanvas.clientWidth/(this.precanvas.clientWidth*this.zoom)),s=this.pos_y*(this.precanvas.clientHeight/(this.precanvas.clientHeight*this.zoom))-this.precanvas.getBoundingClientRect().y*(this.precanvas.clientHeight/(this.precanvas.clientHeight*this.zoom));a.setAttributeNS(null,"cx",o),a.setAttributeNS(null,"cy",s),a.setAttributeNS(null,"r",this.reroute_width);let l=0;if(this.reroute_fix_curvature){const t=e.parentElement.querySelectorAll(".main-path").length;var c=document.createElementNS("http://www.w3.org/2000/svg","path");if(c.classList.add("main-path"),c.setAttributeNS(null,"d",""),e.parentElement.insertBefore(c,e.parentElement.children[t]),1===t)e.parentElement.appendChild(a);else{const n=Array.from(e.parentElement.children).indexOf(e);l=n,e.parentElement.insertBefore(a,e.parentElement.children[n+t+1])}}else e.parentElement.appendChild(a);const u=t.slice(5),d=this.drawflow.drawflow[this.module].data[u].outputs[i].connections.findIndex((function(e,t){return e.node===n&&e.output===r}));void 0===this.drawflow.drawflow[this.module].data[u].outputs[i].connections[d].points&&(this.drawflow.drawflow[this.module].data[u].outputs[i].connections[d].points=[]),this.reroute_fix_curvature?(l>0?this.drawflow.drawflow[this.module].data[u].outputs[i].connections[d].points.splice(l,0,{pos_x:o,pos_y:s}):this.drawflow.drawflow[this.module].data[u].outputs[i].connections[d].points.push({pos_x:o,pos_y:s}),e.parentElement.querySelectorAll(".main-path").forEach(((e,t)=>{e.classList.remove("selected")}))):this.drawflow.drawflow[this.module].data[u].outputs[i].connections[d].points.push({pos_x:o,pos_y:s}),this.dispatch("addReroute",u),this.updateConnectionNodes(t)}removeReroutePoint(e){const t=e.parentElement.classList[2].slice(9),n=e.parentElement.classList[1].slice(13),i=e.parentElement.classList[3],r=e.parentElement.classList[4];let a=Array.from(e.parentElement.children).indexOf(e)-1;const o=t.slice(5),s=this.drawflow.drawflow[this.module].data[o].outputs[i].connections.findIndex((function(e,t){return e.node===n&&e.output===r}));if(this.reroute_fix_curvature){const t=e.parentElement.querySelectorAll(".main-path").length;e.parentElement.children[t-1].remove(),a-=t,a<0&&(a=0)}this.drawflow.drawflow[this.module].data[o].outputs[i].connections[s].points.splice(a,1),e.remove(),this.dispatch("removeReroute",o),this.updateConnectionNodes(t)}registerNode(e,t,n=null,i=null){this.noderegister[e]={html:t,props:n,options:i}}getNodeFromId(e){var t=this.getModuleFromNodeId(e);return JSON.parse(JSON.stringify(this.drawflow.drawflow[t].data[e]))}getNodesFromName(e){var t=[];const n=this.drawflow.drawflow;return Object.keys(n).map((function(i,r){for(var a in n[i].data)n[i].data[a].name==e&&t.push(n[i].data[a].id)})),t}addNode(e,t,n,i,r,a,o,s,l=!1){if(this.useuuid)var c=this.getUuid();else c=this.nodeId;const u=document.createElement("div");u.classList.add("parent-node");const d=document.createElement("div");d.innerHTML="",d.setAttribute("id","node-"+c),d.classList.add("drawflow-node"),""!=a&&d.classList.add(...a.split(" "));const h=document.createElement("div");h.classList.add("inputs");const f=document.createElement("div");f.classList.add("outputs");const p={};for(var m=0;m<t;m++){const e=document.createElement("div");e.classList.add("input"),e.classList.add("input_"+(m+1)),p["input_"+(m+1)]={connections:[]},h.appendChild(e)}const g={};for(m=0;m<n;m++){const e=document.createElement("div");e.classList.add("output"),e.classList.add("output_"+(m+1)),g["output_"+(m+1)]={connections:[]},f.appendChild(e)}const _=document.createElement("div");if(_.classList.add("drawflow_content_node"),!1===l)_.innerHTML=s;else if(!0===l)_.appendChild(this.noderegister[s].html.cloneNode(!0));else if(3===parseInt(this.render.version)){let e=this.render.h(this.noderegister[s].html,this.noderegister[s].props,this.noderegister[s].options);e.appContext=this.parent,this.render.render(e,_)}else{let e=new this.render({parent:this.parent,render:e=>e(this.noderegister[s].html,{props:this.noderegister[s].props}),...this.noderegister[s].options}).$mount();_.appendChild(e.$el)}Object.entries(o).forEach((function(e,t){if("object"==typeof e[1])!function e(t,n,i){null!==(t=null===t?o[n]:t[n])&&Object.entries(t).forEach((function(n,r){if("object"==typeof n[1])e(t,n[0],i+"-"+n[0]);else for(var a=_.querySelectorAll("[df-"+i+"-"+n[0]+"]"),o=0;o<a.length;o++)a[o].value=n[1],a[o].isContentEditable&&(a[o].innerText=n[1])}))}(null,e[0],e[0]);else for(var n=_.querySelectorAll("[df-"+e[0]+"]"),i=0;i<n.length;i++)n[i].value=e[1],n[i].isContentEditable&&(n[i].innerText=e[1])})),d.appendChild(h),d.appendChild(_),d.appendChild(f),d.style.top=r+"px",d.style.left=i+"px",u.appendChild(d),this.precanvas.appendChild(u);var v={id:c,name:e,data:o,class:a,html:s,typenode:l,inputs:p,outputs:g,pos_x:i,pos_y:r};return this.drawflow.drawflow[this.module].data[c]=v,this.dispatch("nodeCreated",c),this.useuuid||this.nodeId++,c}addNodeImport(e,t){const n=document.createElement("div");n.classList.add("parent-node");const i=document.createElement("div");i.innerHTML="",i.setAttribute("id","node-"+e.id),i.classList.add("drawflow-node"),""!=e.class&&i.classList.add(...e.class.split(" "));const r=document.createElement("div");r.classList.add("inputs");const a=document.createElement("div");a.classList.add("outputs"),Object.keys(e.inputs).map((function(n,i){const a=document.createElement("div");a.classList.add("input"),a.classList.add(n),r.appendChild(a),Object.keys(e.inputs[n].connections).map((function(i,r){var a=document.createElementNS("http://www.w3.org/2000/svg","svg"),o=document.createElementNS("http://www.w3.org/2000/svg","path");o.classList.add("main-path"),o.setAttributeNS(null,"d",""),a.classList.add("connection"),a.classList.add("node_in_node-"+e.id),a.classList.add("node_out_node-"+e.inputs[n].connections[i].node),a.classList.add(e.inputs[n].connections[i].input),a.classList.add(n),a.appendChild(o),t.appendChild(a)}))}));for(var o=0;o<Object.keys(e.outputs).length;o++){const e=document.createElement("div");e.classList.add("output"),e.classList.add("output_"+(o+1)),a.appendChild(e)}const s=document.createElement("div");if(s.classList.add("drawflow_content_node"),!1===e.typenode)s.innerHTML=e.html;else if(!0===e.typenode)s.appendChild(this.noderegister[e.html].html.cloneNode(!0));else if(3===parseInt(this.render.version)){let t=this.render.h(this.noderegister[e.html].html,this.noderegister[e.html].props,this.noderegister[e.html].options);t.appContext=this.parent,this.render.render(t,s)}else{let t=new this.render({parent:this.parent,render:t=>t(this.noderegister[e.html].html,{props:this.noderegister[e.html].props}),...this.noderegister[e.html].options}).$mount();s.appendChild(t.$el)}Object.entries(e.data).forEach((function(t,n){if("object"==typeof t[1])!function t(n,i,r){null!==(n=null===n?e.data[i]:n[i])&&Object.entries(n).forEach((function(e,i){if("object"==typeof e[1])t(n,e[0],r+"-"+e[0]);else for(var a=s.querySelectorAll("[df-"+r+"-"+e[0]+"]"),o=0;o<a.length;o++)a[o].value=e[1],a[o].isContentEditable&&(a[o].innerText=e[1])}))}(null,t[0],t[0]);else for(var i=s.querySelectorAll("[df-"+t[0]+"]"),r=0;r<i.length;r++)i[r].value=t[1],i[r].isContentEditable&&(i[r].innerText=t[1])})),i.appendChild(r),i.appendChild(s),i.appendChild(a),i.style.top=e.pos_y+"px",i.style.left=e.pos_x+"px",n.appendChild(i),this.precanvas.appendChild(n)}addRerouteImport(e){const t=this.reroute_width,n=this.reroute_fix_curvature,i=this.container;Object.keys(e.outputs).map((function(r,a){Object.keys(e.outputs[r].connections).map((function(a,o){const s=e.outputs[r].connections[a].points;void 0!==s&&s.forEach(((o,l)=>{const c=e.outputs[r].connections[a].node,u=e.outputs[r].connections[a].output,d=i.querySelector(".connection.node_in_node-"+c+".node_out_node-"+e.id+"."+r+"."+u);if(n&&0===l)for(var h=0;h<s.length;h++){var f=document.createElementNS("http://www.w3.org/2000/svg","path");f.classList.add("main-path"),f.setAttributeNS(null,"d",""),d.appendChild(f)}const p=document.createElementNS("http://www.w3.org/2000/svg","circle");p.classList.add("point");var m=o.pos_x,g=o.pos_y;p.setAttributeNS(null,"cx",m),p.setAttributeNS(null,"cy",g),p.setAttributeNS(null,"r",t),d.appendChild(p)}))}))}))}updateNodeValue(e){for(var t=e.target.attributes,n=0;n<t.length;n++)if(t[n].nodeName.startsWith("df-")){for(var i=t[n].nodeName.slice(3).split("-"),r=this.drawflow.drawflow[this.module].data[e.target.closest(".drawflow_content_node").parentElement.id.slice(5)].data,a=0;a<i.length-1;a+=1)null==r[i[a]]&&(r[i[a]]={}),r=r[i[a]];r[i[i.length-1]]=e.target.value,e.target.isContentEditable&&(r[i[i.length-1]]=e.target.innerText),this.dispatch("nodeDataChanged",e.target.closest(".drawflow_content_node").parentElement.id.slice(5))}}updateNodeDataFromId(e,t){var n=this.getModuleFromNodeId(e);if(this.drawflow.drawflow[n].data[e].data=t,this.module===n){const n=this.container.querySelector("#node-"+e);Object.entries(t).forEach((function(e,i){if("object"==typeof e[1])!function e(i,r,a){null!==(i=null===i?t[r]:i[r])&&Object.entries(i).forEach((function(t,r){if("object"==typeof t[1])e(i,t[0],a+"-"+t[0]);else for(var o=n.querySelectorAll("[df-"+a+"-"+t[0]+"]"),s=0;s<o.length;s++)o[s].value=t[1],o[s].isContentEditable&&(o[s].innerText=t[1])}))}(null,e[0],e[0]);else for(var r=n.querySelectorAll("[df-"+e[0]+"]"),a=0;a<r.length;a++)r[a].value=e[1],r[a].isContentEditable&&(r[a].innerText=e[1])}))}}addNodeInput(e){var t=this.getModuleFromNodeId(e);const n=this.getNodeFromId(e),i=Object.keys(n.inputs).length;if(this.module===t){const t=document.createElement("div");t.classList.add("input"),t.classList.add("input_"+(i+1)),this.container.querySelector("#node-"+e+" .inputs").appendChild(t),this.updateConnectionNodes("node-"+e)}this.drawflow.drawflow[t].data[e].inputs["input_"+(i+1)]={connections:[]}}addNodeOutput(e){var t=this.getModuleFromNodeId(e);const n=this.getNodeFromId(e),i=Object.keys(n.outputs).length;if(this.module===t){const t=document.createElement("div");t.classList.add("output"),t.classList.add("output_"+(i+1)),this.container.querySelector("#node-"+e+" .outputs").appendChild(t),this.updateConnectionNodes("node-"+e)}this.drawflow.drawflow[t].data[e].outputs["output_"+(i+1)]={connections:[]}}removeNodeInput(e,t){var n=this.getModuleFromNodeId(e);const i=this.getNodeFromId(e);this.module===n&&this.container.querySelector("#node-"+e+" .inputs .input."+t).remove();const r=[];Object.keys(i.inputs[t].connections).map((function(n,a){const o=i.inputs[t].connections[a].node,s=i.inputs[t].connections[a].input;r.push({id_output:o,id:e,output_class:s,input_class:t})})),r.forEach(((e,t)=>{this.removeSingleConnection(e.id_output,e.id,e.output_class,e.input_class)})),delete this.drawflow.drawflow[n].data[e].inputs[t];const a=[],o=this.drawflow.drawflow[n].data[e].inputs;Object.keys(o).map((function(e,t){a.push(o[e])})),this.drawflow.drawflow[n].data[e].inputs={};const s=t.slice(6);let l=[];a.forEach(((t,i)=>{t.connections.forEach(((e,t)=>{l.push(e)})),this.drawflow.drawflow[n].data[e].inputs["input_"+(i+1)]=t})),l=new Set(l.map((e=>JSON.stringify(e)))),l=Array.from(l).map((e=>JSON.parse(e))),this.module===n&&this.container.querySelectorAll("#node-"+e+" .inputs .input").forEach(((e,t)=>{const n=e.classList[1].slice(6);parseInt(s)<parseInt(n)&&(e.classList.remove("input_"+n),e.classList.add("input_"+(n-1)))})),l.forEach(((t,i)=>{this.drawflow.drawflow[n].data[t.node].outputs[t.input].connections.forEach(((i,r)=>{if(i.node==e){const a=i.output.slice(6);if(parseInt(s)<parseInt(a)){if(this.module===n){const n=this.container.querySelector(".connection.node_in_node-"+e+".node_out_node-"+t.node+"."+t.input+".input_"+a);n.classList.remove("input_"+a),n.classList.add("input_"+(a-1))}i.points?this.drawflow.drawflow[n].data[t.node].outputs[t.input].connections[r]={node:i.node,output:"input_"+(a-1),points:i.points}:this.drawflow.drawflow[n].data[t.node].outputs[t.input].connections[r]={node:i.node,output:"input_"+(a-1)}}}}))})),this.updateConnectionNodes("node-"+e)}removeNodeOutput(e,t){var n=this.getModuleFromNodeId(e);const i=this.getNodeFromId(e);this.module===n&&this.container.querySelector("#node-"+e+" .outputs .output."+t).remove();const r=[];Object.keys(i.outputs[t].connections).map((function(n,a){const o=i.outputs[t].connections[a].node,s=i.outputs[t].connections[a].output;r.push({id:e,id_input:o,output_class:t,input_class:s})})),r.forEach(((e,t)=>{this.removeSingleConnection(e.id,e.id_input,e.output_class,e.input_class)})),delete this.drawflow.drawflow[n].data[e].outputs[t];const a=[],o=this.drawflow.drawflow[n].data[e].outputs;Object.keys(o).map((function(e,t){a.push(o[e])})),this.drawflow.drawflow[n].data[e].outputs={};const s=t.slice(7);let l=[];a.forEach(((t,i)=>{t.connections.forEach(((e,t)=>{l.push({node:e.node,output:e.output})})),this.drawflow.drawflow[n].data[e].outputs["output_"+(i+1)]=t})),l=new Set(l.map((e=>JSON.stringify(e)))),l=Array.from(l).map((e=>JSON.parse(e))),this.module===n&&this.container.querySelectorAll("#node-"+e+" .outputs .output").forEach(((e,t)=>{const n=e.classList[1].slice(7);parseInt(s)<parseInt(n)&&(e.classList.remove("output_"+n),e.classList.add("output_"+(n-1)))})),l.forEach(((t,i)=>{this.drawflow.drawflow[n].data[t.node].inputs[t.output].connections.forEach(((i,r)=>{if(i.node==e){const a=i.input.slice(7);if(parseInt(s)<parseInt(a)){if(this.module===n){const n=this.container.querySelector(".connection.node_in_node-"+t.node+".node_out_node-"+e+".output_"+a+"."+t.output);n.classList.remove("output_"+a),n.classList.remove(t.output),n.classList.add("output_"+(a-1)),n.classList.add(t.output)}i.points?this.drawflow.drawflow[n].data[t.node].inputs[t.output].connections[r]={node:i.node,input:"output_"+(a-1),points:i.points}:this.drawflow.drawflow[n].data[t.node].inputs[t.output].connections[r]={node:i.node,input:"output_"+(a-1)}}}}))})),this.updateConnectionNodes("node-"+e)}removeNodeId(e){this.removeConnectionNodeId(e);var t=this.getModuleFromNodeId(e.slice(5));this.module===t&&this.container.querySelector("#"+e).remove(),delete this.drawflow.drawflow[t].data[e.slice(5)],this.dispatch("nodeRemoved",e.slice(5))}removeConnection(){if(null!=this.connection_selected){var e=this.connection_selected.parentElement.classList;this.connection_selected.parentElement.remove();var t=this.drawflow.drawflow[this.module].data[e[2].slice(14)].outputs[e[3]].connections.findIndex((function(t,n){return t.node===e[1].slice(13)&&t.output===e[4]}));this.drawflow.drawflow[this.module].data[e[2].slice(14)].outputs[e[3]].connections.splice(t,1);var n=this.drawflow.drawflow[this.module].data[e[1].slice(13)].inputs[e[4]].connections.findIndex((function(t,n){return t.node===e[2].slice(14)&&t.input===e[3]}));this.drawflow.drawflow[this.module].data[e[1].slice(13)].inputs[e[4]].connections.splice(n,1),this.dispatch("connectionRemoved",{output_id:e[2].slice(14),input_id:e[1].slice(13),output_class:e[3],input_class:e[4]}),this.connection_selected=null}}removeSingleConnection(e,t,n,i){var r=this.getModuleFromNodeId(e);if(r===this.getModuleFromNodeId(t)){if(this.drawflow.drawflow[r].data[e].outputs[n].connections.findIndex((function(e,n){return e.node==t&&e.output===i}))>-1){this.module===r&&this.container.querySelector(".connection.node_in_node-"+t+".node_out_node-"+e+"."+n+"."+i).remove();var a=this.drawflow.drawflow[r].data[e].outputs[n].connections.findIndex((function(e,n){return e.node==t&&e.output===i}));this.drawflow.drawflow[r].data[e].outputs[n].connections.splice(a,1);var o=this.drawflow.drawflow[r].data[t].inputs[i].connections.findIndex((function(t,i){return t.node==e&&t.input===n}));return this.drawflow.drawflow[r].data[t].inputs[i].connections.splice(o,1),this.dispatch("connectionRemoved",{output_id:e,input_id:t,output_class:n,input_class:i}),!0}return!1}return!1}removeConnectionNodeId(e){const t="node_in_"+e,n="node_out_"+e,i=this.container.querySelectorAll("."+n);for(var r=i.length-1;r>=0;r--){var a=i[r].classList,o=this.drawflow.drawflow[this.module].data[a[1].slice(13)].inputs[a[4]].connections.findIndex((function(e,t){return e.node===a[2].slice(14)&&e.input===a[3]}));this.drawflow.drawflow[this.module].data[a[1].slice(13)].inputs[a[4]].connections.splice(o,1);var s=this.drawflow.drawflow[this.module].data[a[2].slice(14)].outputs[a[3]].connections.findIndex((function(e,t){return e.node===a[1].slice(13)&&e.output===a[4]}));this.drawflow.drawflow[this.module].data[a[2].slice(14)].outputs[a[3]].connections.splice(s,1),i[r].remove(),this.dispatch("connectionRemoved",{output_id:a[2].slice(14),input_id:a[1].slice(13),output_class:a[3],input_class:a[4]})}const l=this.container.querySelectorAll("."+t);for(r=l.length-1;r>=0;r--)a=l[r].classList,s=this.drawflow.drawflow[this.module].data[a[2].slice(14)].outputs[a[3]].connections.findIndex((function(e,t){return e.node===a[1].slice(13)&&e.output===a[4]})),this.drawflow.drawflow[this.module].data[a[2].slice(14)].outputs[a[3]].connections.splice(s,1),o=this.drawflow.drawflow[this.module].data[a[1].slice(13)].inputs[a[4]].connections.findIndex((function(e,t){return e.node===a[2].slice(14)&&e.input===a[3]})),this.drawflow.drawflow[this.module].data[a[1].slice(13)].inputs[a[4]].connections.splice(o,1),l[r].remove(),this.dispatch("connectionRemoved",{output_id:a[2].slice(14),input_id:a[1].slice(13),output_class:a[3],input_class:a[4]})}getModuleFromNodeId(e){var t;const n=this.drawflow.drawflow;return Object.keys(n).map((function(i,r){Object.keys(n[i].data).map((function(n,r){n==e&&(t=i)}))})),t}addModule(e){this.drawflow.drawflow[e]={data:{}},this.dispatch("moduleCreated",e)}changeModule(e){this.dispatch("moduleChanged",e),this.module=e,this.precanvas.innerHTML="",this.canvas_x=0,this.canvas_y=0,this.pos_x=0,this.pos_y=0,this.mouse_x=0,this.mouse_y=0,this.zoom=1,this.zoom_last_value=1,this.precanvas.style.transform="",this.import(this.drawflow,!1)}removeModule(e){this.module===e&&this.changeModule("Home"),delete this.drawflow.drawflow[e],this.dispatch("moduleRemoved",e)}clearModuleSelected(){this.precanvas.innerHTML="",this.drawflow.drawflow[this.module]={data:{}}}clear(){this.precanvas.innerHTML="",this.drawflow={drawflow:{Home:{data:{}}}}}export(){const e=JSON.parse(JSON.stringify(this.drawflow));return this.dispatch("export",e),e}import(e,t=!0){this.clear(),this.drawflow=JSON.parse(JSON.stringify(e)),this.load(),t&&this.dispatch("import","import")}on(e,t){return"function"!=typeof t?(console.error("The listener callback must be a function, the given type is "+typeof t),!1):"string"!=typeof e?(console.error("The event name must be a string, the given type is "+typeof e),!1):(void 0===this.events[e]&&(this.events[e]={listeners:[]}),void this.events[e].listeners.push(t))}removeListener(e,t){if(!this.events[e])return!1;const n=this.events[e].listeners,i=n.indexOf(t);i>-1&&n.splice(i,1)}dispatch(e,t){if(void 0===this.events[e])return!1;this.events[e].listeners.forEach((e=>{e(t)}))}getUuid(){for(var e=[],t=0;t<36;t++)e[t]="0123456789abcdef".substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]="0123456789abcdef".substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}}}]).default},4429:(e,t,n)=>{"use strict";var i=n(210)("%Object.defineProperty%",!0)||!1;if(i)try{i({},"a",{value:1})}catch(e){i=!1}e.exports=i},3981:e=>{"use strict";e.exports=EvalError},1648:e=>{"use strict";e.exports=Error},4726:e=>{"use strict";e.exports=RangeError},6712:e=>{"use strict";e.exports=ReferenceError},3464:e=>{"use strict";e.exports=SyntaxError},4453:e=>{"use strict";e.exports=TypeError},3915:e=>{"use strict";e.exports=URIError},7648:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,i=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n};e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==t.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var a,o=function(e,t){for(var n=[],i=t||0,r=0;i<e.length;i+=1,r+=1)n[r]=e[i];return n}(arguments,1),s=n(0,r.length-o.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(a=Function("binder","return function ("+function(e,t){for(var n="",i=0;i<e.length;i+=1)n+=e[i],i+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof a){var t=r.apply(this,i(o,arguments));return Object(t)===t?t:this}return r.apply(e,i(o,arguments))})),r.prototype){var u=function(){};u.prototype=r.prototype,a.prototype=new u,u.prototype=null}return a}},8612:(e,t,n)=>{"use strict";var i=n(7648);e.exports=Function.prototype.bind||i},210:(e,t,n)=>{"use strict";var i,r=n(1648),a=n(3981),o=n(4726),s=n(6712),l=n(3464),c=n(4453),u=n(3915),d=Function,h=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var p=function(){throw new c},m=f?function(){try{return p}catch(e){try{return f(arguments,"callee").get}catch(e){return p}}}():p,g=n(1405)(),_=n(8185)(),v=Object.getPrototypeOf||(_?function(e){return e.__proto__}:null),y={},b="undefined"!=typeof Uint8Array&&v?v(Uint8Array):i,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":g&&v?v([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&v?v(v([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&v?v((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&v?v((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&v?v(""[Symbol.iterator]()):i,"%Symbol%":g?Symbol:i,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":b,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet};if(v)try{null.error}catch(e){var x=v(v(e));w["%Error.prototype%"]=x}var k=function e(t){var n;if("%AsyncFunction%"===t)n=h("async function () {}");else if("%GeneratorFunction%"===t)n=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=h("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&v&&(n=v(r.prototype))}return w[t]=n,n},A={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=n(8612),M=n(8824),T=S.call(Function.call,Array.prototype.concat),L=S.call(Function.apply,Array.prototype.splice),E=S.call(Function.call,String.prototype.replace),C=S.call(Function.call,String.prototype.slice),D=S.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Y=/\\(\\)?/g,P=function(e,t){var n,i=e;if(M(A,i)&&(i="%"+(n=A[i])[0]+"%"),M(w,i)){var r=w[i];if(r===y&&(r=k(i)),void 0===r&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:r}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=C(e,0,1),n=C(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var i=[];return E(e,O,(function(e,t,n,r){i[i.length]=n?E(r,Y,"$1"):t||e})),i}(e),i=n.length>0?n[0]:"",r=P("%"+i+"%",t),a=r.name,o=r.value,s=!1,u=r.alias;u&&(i=u[0],L(n,T([0,1],u)));for(var d=1,h=!0;d<n.length;d+=1){var p=n[d],m=C(p,0,1),g=C(p,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new l("property names with quotes must have matching quotes");if("constructor"!==p&&h||(s=!0),M(w,a="%"+(i+="."+p)+"%"))o=w[a];else if(null!=o){if(!(p in o)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&d+1>=n.length){var _=f(o,p);o=(h=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:o[p]}else h=M(o,p),o=o[p];h&&!s&&(w[a]=o)}}return o}},7296:(e,t,n)=>{"use strict";var i=n(210)("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch(e){i=null}e.exports=i},1044:(e,t,n)=>{"use strict";var i=n(4429),r=function(){return!!i};r.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch(e){return!0}},e.exports=r},8185:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},1405:(e,t,n)=>{"use strict";var i="undefined"!=typeof Symbol&&Symbol,r=n(5419);e.exports=function(){return"function"==typeof i&&("function"==typeof Symbol&&("symbol"==typeof i("foo")&&("symbol"==typeof Symbol("bar")&&r())))}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},6410:(e,t,n)=>{"use strict";var i=n(5419);e.exports=function(){return i()&&!!Symbol.toStringTag}},8824:(e,t,n)=>{"use strict";var i=Function.prototype.call,r=Object.prototype.hasOwnProperty,a=n(8612);e.exports=a.call(i,r)},645:(e,t)=>{t.read=function(e,t,n,i,r){var a,o,s=8*r-i-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?r-1:0,h=n?-1:1,f=e[t+d];for(d+=h,a=f&(1<<-u)-1,f>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=i;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,i),a-=c}return(f?-1:1)*o*Math.pow(2,a-i)},t.write=function(e,t,n,i,r,a){var o,s,l,c=8*a-r-1,u=(1<<c)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:a-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,r),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;e[n+f]=255&s,f+=p,s/=256,r-=8);for(o=o<<r|s,c+=r;c>0;e[n+f]=255&o,f+=p,o/=256,c-=8);e[n+f-p]|=128*m}},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},2584:(e,t,n)=>{"use strict";var i=n(6410)(),r=n(1924)("Object.prototype.toString"),a=function(e){return!(i&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===r(e)},o=function(e){return!!a(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r(e)&&"[object Function]"===r(e.callee)},s=function(){return a(arguments)}();a.isLegacyArguments=o,e.exports=s?a:o},5320:e=>{"use strict";var t,n,i=Function.prototype.toString,r="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof r&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},r((function(){throw 42}),null,t)}catch(e){e!==n&&(r=null)}else r=null;var a=/^\s*class\b/,o=function(e){try{var t=i.call(e);return a.test(t)}catch(e){return!1}},s=function(e){try{return!o(e)&&(i.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var h=document.all;l.call(h)===l.call(document.all)&&(d=function(e){if((u||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=r?function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{r(e,null,t)}catch(e){if(e!==n)return!1}return!o(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(o(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},8662:(e,t,n)=>{"use strict";var i,r=Object.prototype.toString,a=Function.prototype.toString,o=/^\s*(?:function)?\*/,s=n(6410)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(a.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===r.call(e);if(!l)return!1;if(void 0===i){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();i=!!t&&l(t)}return l(e)===i}},5692:(e,t,n)=>{"use strict";var i=n(6430);e.exports=function(e){return!!i(e)}},9755:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var a=[],o=Object.getPrototypeOf,s=a.slice,l=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},c=a.push,u=a.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,m=p.call(Object),g={},_=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},v=function(e){return null!=e&&e===e.window},y=i.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var i,r,a=(n=n||y).createElement("script");if(a.text=e,t)for(i in b)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&a.setAttribute(i,r);n.head.appendChild(a).parentNode.removeChild(a)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var k="3.7.1",A=/HTML$/i,S=function(e,t){return new S.fn.init(e,t)};function M(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!_(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function T(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}S.fn=S.prototype={jquery:k,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(e){return this.pushStack(S.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(S.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},S.extend=S.fn.extend=function(){var e,t,n,i,r,a,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[s]||{},s++),"object"==typeof o||_(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&o!==i&&(c&&i&&(S.isPlainObject(i)||(r=Array.isArray(i)))?(n=o[t],a=r&&!Array.isArray(n)?[]:r||S.isPlainObject(n)?n:{},r=!1,o[t]=S.extend(c,a,i)):void 0!==i&&(o[t]=i));return o},S.extend({expando:"jQuery"+(k+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e))&&(!(t=o(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(M(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,r=e.nodeType;if(!r)for(;t=e[i++];)n+=S.text(t);return 1===r||11===r?e.textContent:9===r?e.documentElement.textContent:3===r||4===r?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?S.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!A.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,a=e.length,o=!n;r<a;r++)!t(e[r],r)!==o&&i.push(e[r]);return i},map:function(e,t,n){var i,r,a=0,o=[];if(M(e))for(i=e.length;a<i;a++)null!=(r=t(e[a],a,n))&&o.push(r);else for(a in e)null!=(r=t(e[a],a,n))&&o.push(r);return l(o)},guid:1,support:g}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=a[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var L=a.pop,E=a.sort,C=a.splice,D="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");S.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var Y=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function P(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}S.escapeSelector=function(e){return(e+"").replace(Y,P)};var j=y,I=c;!function(){var e,t,n,r,o,l,c,d,h,p,m=I,_=S.expando,v=0,y=0,b=ee(),w=ee(),x=ee(),k=ee(),A=function(e,t){return e===t&&(o=!0),0},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Y="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",P="\\["+D+"*("+Y+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+Y+"))|)"+D+"*\\]",F=":("+Y+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",N=new RegExp(D+"+","g"),R=new RegExp("^"+D+"*,"+D+"*"),H=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),z=new RegExp(D+"|>"),q=new RegExp(F),B=new RegExp("^"+Y+"$"),$={ID:new RegExp("^#("+Y+")"),CLASS:new RegExp("^\\.("+Y+")"),TAG:new RegExp("^("+Y+"|[*])"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,U=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,G=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),J=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Q=function(){le()},K=he((function(e){return!0===e.disabled&&T(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(a=s.call(j.childNodes),j.childNodes),a[j.childNodes.length].nodeType}catch(e){m={apply:function(e,t){I.apply(e,s.call(t))},call:function(e){I.apply(e,s.call(arguments,1))}}}function Z(e,t,n,i){var r,a,o,s,c,u,f,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==v&&9!==v&&11!==v)return n;if(!i&&(le(t),t=t||l,d)){if(11!==v&&(c=V.exec(e)))if(r=c[1]){if(9===v){if(!(o=t.getElementById(r)))return n;if(o.id===r)return m.call(n,o),n}else if(p&&(o=p.getElementById(r))&&Z.contains(t,o)&&o.id===r)return m.call(n,o),n}else{if(c[2])return m.apply(n,t.getElementsByTagName(e)),n;if((r=c[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(r)),n}if(!(k[e+" "]||h&&h.test(e))){if(f=e,p=t,1===v&&(z.test(e)||H.test(e))){for((p=X.test(e)&&se(t.parentNode)||t)==t&&g.scope||((s=t.getAttribute("id"))?s=S.escapeSelector(s):t.setAttribute("id",s=_)),a=(u=ue(e)).length;a--;)u[a]=(s?"#"+s:":scope")+" "+de(u[a]);f=u.join(",")}try{return m.apply(n,p.querySelectorAll(f)),n}catch(t){k(e,!0)}finally{s===_&&t.removeAttribute("id")}}}return ve(e.replace(O,"$1"),t,n,i)}function ee(){var e=[];return function n(i,r){return e.push(i+" ")>t.cacheLength&&delete n[e.shift()],n[i+" "]=r}}function te(e){return e[_]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return T(t,"input")&&t.type===e}}function re(e){return function(t){return(T(t,"input")||T(t,"button"))&&t.type===e}}function ae(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&K(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function oe(e){return te((function(t){return t=+t,te((function(n,i){for(var r,a=e([],n.length,t),o=a.length;o--;)n[r=a[o]]&&(n[r]=!(i[r]=n[r]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,i=e?e.ownerDocument||e:j;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!S.isXMLDoc(l),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&j!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Q),g.getById=ne((function(e){return c.appendChild(e).id=S.expando,!l.getElementsByName||!l.getElementsByName(S.expando).length})),g.disconnectedMatch=ne((function(e){return p.call(e,"*")})),g.scope=ne((function(){return l.querySelectorAll(":scope")})),g.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),g.getById?(t.filter.ID=function(e){var t=e.replace(G,J);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(G,J);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,i,r,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(r=t.getElementsByName(e),i=0;a=r[i++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},h=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+_+"' href='' disabled='disabled'></a><select id='"+_+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+D+"*(?:value|"+M+")"),e.querySelectorAll("[id~="+_+"-]").length||h.push("~="),e.querySelectorAll("a#"+_+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),g.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),A=function(e,t){if(e===t)return o=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==j&&Z.contains(j,e)?-1:t===l||t.ownerDocument==j&&Z.contains(j,t)?1:r?u.call(r,e)-u.call(r,t):0:4&n?-1:1)},l):l}for(e in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(le(e),d&&!k[t+" "]&&(!h||!h.test(t)))try{var n=p.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){k(t,!0)}return Z(t,l,null,[e]).length>0},Z.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),S.contains(e,t)},Z.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var i=t.attrHandle[n.toLowerCase()],r=i&&f.call(t.attrHandle,n.toLowerCase())?i(e,n,!d):void 0;return void 0!==r?r:e.getAttribute(n)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},S.uniqueSort=function(e){var t,n=[],i=0,a=0;if(o=!g.sortStable,r=!g.sortStable&&s.call(e,0),E.call(e,A),o){for(;t=e[a++];)t===e[a]&&(i=n.push(a));for(;i--;)C.call(e,n[i],1)}return r=null,e},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(s.apply(this)))},t=S.expr={cacheLength:50,createPseudo:te,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(G,J),e[3]=(e[3]||e[4]||e[5]||"").replace(G,J),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Z.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(G,J).toLowerCase();return"*"===e?function(){return!0}:function(e){return T(e,t)}},CLASS:function(e){var t=b[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&b(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=Z.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(N," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,f,p=a!==o?"nextSibling":"previousSibling",m=t.parentNode,g=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(m){if(a){for(;p;){for(d=t;d=d[p];)if(s?T(d,g):1===d.nodeType)return!1;f=p="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&&y){for(b=(h=(c=(u=m[_]||(m[_]={}))[e]||[])[0]===v&&c[1])&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[p]||(b=h=0)||f.pop();)if(1===d.nodeType&&++b&&d===t){u[e]=[v,h,b];break}}else if(y&&(b=h=(c=(u=t[_]||(t[_]={}))[e]||[])[0]===v&&c[1]),!1===b)for(;(d=++h&&d&&d[p]||(b=h=0)||f.pop())&&(!(s?T(d,g):1===d.nodeType)||!++b||(y&&((u=d[_]||(d[_]={}))[e]=[v,b]),d!==t)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,n){var i,r=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return r[_]?r(n):r.length>1?(i=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var i,a=r(e,n),o=a.length;o--;)e[i=u.call(e,a[o])]=!(t[i]=a[o])})):function(e){return r(e,0,i)}):r}},pseudos:{not:te((function(e){var t=[],n=[],i=_e(e.replace(O,"$1"));return i[_]?te((function(e,t,n,r){for(var a,o=i(e,null,r,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))})):function(e,r,a){return t[0]=e,i(t,null,a,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Z(e,t).length>0}})),contains:te((function(e){return e=e.replace(G,J),function(t){return(t.textContent||S.text(t)).indexOf(e)>-1}})),lang:te((function(e){return B.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(G,J).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ae(!1),disabled:ae(!0),checked:function(e){return T(e,"input")&&!!e.checked||T(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return U.test(e.nodeName)},input:function(e){return W.test(e.nodeName)},button:function(e){return T(e,"input")&&"button"===e.type||T(e,"button")},text:function(e){var t;return T(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:oe((function(){return[0]})),last:oe((function(e,t){return[t-1]})),eq:oe((function(e,t,n){return[n<0?n+t:n]})),even:oe((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:oe((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:oe((function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:oe((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ie(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=re(e);function ce(){}function ue(e,n){var i,r,a,o,s,l,c,u=w[e+" "];if(u)return n?0:u.slice(0);for(s=e,l=[],c=t.preFilter;s;){for(o in i&&!(r=R.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(a=[])),i=!1,(r=H.exec(s))&&(i=r.shift(),a.push({value:i,type:r[0].replace(O," ")}),s=s.slice(i.length)),t.filter)!(r=$[o].exec(s))||c[o]&&!(r=c[o](r))||(i=r.shift(),a.push({value:i,type:o,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?Z.error(e):w(e,l).slice(0)}function de(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function he(e,t,n){var i=t.dir,r=t.next,a=r||i,o=n&&"parentNode"===a,s=y++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,r);return!1}:function(t,n,l){var c,u,d=[v,s];if(l){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||o)if(u=t[_]||(t[_]={}),r&&T(t,r))t=t[i]||t;else{if((c=u[a])&&c[0]===v&&c[1]===s)return d[2]=c[2];if(u[a]=d,d[2]=e(t,n,l))return!0}return!1}}function fe(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function pe(e,t,n,i,r){for(var a,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,i,r)||(o.push(a),c&&t.push(s)));return o}function me(e,t,n,i,r,a){return i&&!i[_]&&(i=me(i)),r&&!r[_]&&(r=me(r,a)),te((function(a,o,s,l){var c,d,h,f,p=[],g=[],_=o.length,v=a||function(e,t,n){for(var i=0,r=t.length;i<r;i++)Z(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),y=!e||!a&&t?v:pe(v,p,e,s,l);if(n?n(y,f=r||(a?e:_||i)?[]:o,s,l):f=y,i)for(c=pe(f,g),i(c,[],s,l),d=c.length;d--;)(h=c[d])&&(f[g[d]]=!(y[g[d]]=h));if(a){if(r||e){if(r){for(c=[],d=f.length;d--;)(h=f[d])&&c.push(y[d]=h);r(null,f=[],c,l)}for(d=f.length;d--;)(h=f[d])&&(c=r?u.call(a,h):p[d])>-1&&(a[c]=!(o[c]=h))}}else f=pe(f===o?f.splice(_,f.length):f),r?r(null,o,f,l):m.apply(o,f)}))}function ge(e){for(var i,r,a,o=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,d=he((function(e){return e===i}),l,!0),h=he((function(e){return u.call(i,e)>-1}),l,!0),f=[function(e,t,r){var a=!s&&(r||t!=n)||((i=t).nodeType?d(e,t,r):h(e,t,r));return i=null,a}];c<o;c++)if(r=t.relative[e[c].type])f=[he(fe(f),r)];else{if((r=t.filter[e[c].type].apply(null,e[c].matches))[_]){for(a=++c;a<o&&!t.relative[e[a].type];a++);return me(c>1&&fe(f),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(O,"$1"),r,c<a&&ge(e.slice(c,a)),a<o&&ge(e=e.slice(a)),a<o&&de(e))}f.push(r)}return fe(f)}function _e(e,i){var r,a=[],o=[],s=x[e+" "];if(!s){for(i||(i=ue(e)),r=i.length;r--;)(s=ge(i[r]))[_]?a.push(s):o.push(s);s=x(e,function(e,i){var r=i.length>0,a=e.length>0,o=function(o,s,c,u,h){var f,p,g,_=0,y="0",b=o&&[],w=[],x=n,k=o||a&&t.find.TAG("*",h),A=v+=null==x?1:Math.random()||.1,M=k.length;for(h&&(n=s==l||s||h);y!==M&&null!=(f=k[y]);y++){if(a&&f){for(p=0,s||f.ownerDocument==l||(le(f),c=!d);g=e[p++];)if(g(f,s||l,c)){m.call(u,f);break}h&&(v=A)}r&&((f=!g&&f)&&_--,o&&b.push(f))}if(_+=y,r&&y!==_){for(p=0;g=i[p++];)g(b,w,s,c);if(o){if(_>0)for(;y--;)b[y]||w[y]||(w[y]=L.call(u));w=pe(w)}m.apply(u,w),h&&!o&&w.length>0&&_+i.length>1&&S.uniqueSort(u)}return h&&(v=A,n=x),b};return r?te(o):o}(o,a)),s.selector=e}return s}function ve(e,n,i,r){var a,o,s,l,c,u="function"==typeof e&&e,h=!r&&ue(e=u.selector||e);if(i=i||[],1===h.length){if((o=h[0]=h[0].slice(0)).length>2&&"ID"===(s=o[0]).type&&9===n.nodeType&&d&&t.relative[o[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(G,J),n)||[])[0]))return i;u&&(n=n.parentNode),e=e.slice(o.shift().value.length)}for(a=$.needsContext.test(e)?0:o.length;a--&&(s=o[a],!t.relative[l=s.type]);)if((c=t.find[l])&&(r=c(s.matches[0].replace(G,J),X.test(o[0].type)&&se(n.parentNode)||n))){if(o.splice(a,1),!(e=r.length&&de(o)))return m.apply(i,r),i;break}}return(u||_e(e,h))(r,n,!d,i,!n||X.test(e)&&se(n.parentNode)||n),i}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,g.sortStable=_.split("").sort(A).join("")===_,le(),g.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),S.find=Z,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,Z.compile=_e,Z.select=ve,Z.setDocument=le,Z.tokenize=ue,Z.escape=S.escapeSelector,Z.getText=S.text,Z.isXML=S.isXMLDoc,Z.selectors=S.expr,Z.support=S.support,Z.uniqueSort=S.uniqueSort}();var F=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&S(e).is(n))break;i.push(e)}return i},N=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},R=S.expr.match.needsContext,H=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(e,t,n){return _(t)?S.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?S.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?S.grep(e,(function(e){return u.call(t,e)>-1!==n})):S.filter(t,e,n)}S.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?S.find.matchesSelector(i,e)?[i]:[]:S.find.matches(e,S.grep(t,(function(e){return 1===e.nodeType})))},S.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(S(e).filter((function(){for(t=0;t<i;t++)if(S.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)S.find(e,r[t],n);return i>1?S.uniqueSort(n):n},filter:function(e){return this.pushStack(z(this,e||[],!1))},not:function(e){return this.pushStack(z(this,e||[],!0))},is:function(e){return!!z(this,"string"==typeof e&&R.test(e)?S(e):e||[],!1).length}});var q,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:B.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),H.test(i[1])&&S.isPlainObject(t))for(i in t)_(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=y.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):_(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,q=S(y);var $=/^(?:parents|prev(?:Until|All))/,W={children:!0,contents:!0,next:!0,prev:!0};function U(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,r=this.length,a=[],o="string"!=typeof e&&S(e);if(!R.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&S.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?S.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?u.call(S(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return F(e,"parentNode")},parentsUntil:function(e,t,n){return F(e,"parentNode",n)},next:function(e){return U(e,"nextSibling")},prev:function(e){return U(e,"previousSibling")},nextAll:function(e){return F(e,"nextSibling")},prevAll:function(e){return F(e,"previousSibling")},nextUntil:function(e,t,n){return F(e,"nextSibling",n)},prevUntil:function(e,t,n){return F(e,"previousSibling",n)},siblings:function(e){return N((e.parentNode||{}).firstChild,e)},children:function(e){return N(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(T(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},(function(e,t){S.fn[e]=function(n,i){var r=S.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=S.filter(i,r)),this.length>1&&(W[e]||S.uniqueSort(r),$.test(e)&&r.reverse()),this.pushStack(r)}}));var V=/[^\x20\t\r\n\f]+/g;function X(e){return e}function G(e){throw e}function J(e,t,n,i){var r;try{e&&_(r=e.promise)?r.call(e).done(t).fail(n):e&&_(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return S.each(e.match(V)||[],(function(e,n){t[n]=!0})),t}(e):S.extend({},e);var t,n,i,r,a=[],o=[],s=-1,l=function(){for(r=r||e.once,i=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)!1===a[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,r&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),function t(n){S.each(n,(function(n,i){_(i)?e.unique&&c.has(i)||a.push(i):i&&i.length&&"string"!==x(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return S.each(arguments,(function(e,t){for(var n;(n=S.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--})),this},has:function(e){return e?S.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return r=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return r=o=[],n||t||(a=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},S.extend({Deferred:function(e){var t=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return S.Deferred((function(n){S.each(t,(function(t,i){var r=_(e[i[4]])&&e[i[4]];a[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&_(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,r){var a=0;function o(e,t,n,r){return function(){var s=this,l=arguments,c=function(){var i,c;if(!(e<a)){if((i=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,_(c)?r?c.call(i,o(a,t,X,r),o(a,t,G,r)):(a++,c.call(i,o(a,t,X,r),o(a,t,G,r),o(a,t,X,t.notifyWith))):(n!==X&&(s=void 0,l=[i]),(r||t.resolveWith)(s,l))}},u=r?c:function(){try{c()}catch(i){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(i,u.error),e+1>=a&&(n!==G&&(s=void 0,l=[i]),t.rejectWith(s,l))}};e?u():(S.Deferred.getErrorHook?u.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(u.error=S.Deferred.getStackHook()),i.setTimeout(u))}}return S.Deferred((function(i){t[0][3].add(o(0,i,_(r)?r:X,i.notifyWith)),t[1][3].add(o(0,i,_(e)?e:X)),t[2][3].add(o(0,i,_(n)?n:G))})).promise()},promise:function(e){return null!=e?S.extend(e,r):r}},a={};return S.each(t,(function(e,i){var o=i[2],s=i[5];r[i[1]]=o.add,s&&o.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(i[3].fire),a[i[0]]=function(){return a[i[0]+"With"](this===a?void 0:this,arguments),this},a[i[0]+"With"]=o.fireWith})),r.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,i=Array(n),r=s.call(arguments),a=S.Deferred(),o=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?s.call(arguments):n,--t||a.resolveWith(i,r)}};if(t<=1&&(J(e,a.done(o(n)).resolve,a.reject,!t),"pending"===a.state()||_(r[n]&&r[n].then)))return a.then();for(;n--;)J(r[n],o(n),a.reject);return a.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&Q.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){i.setTimeout((function(){throw e}))};var K=S.Deferred();function Z(){y.removeEventListener("DOMContentLoaded",Z),i.removeEventListener("load",Z),S.ready()}S.fn.ready=function(e){return K.then(e).catch((function(e){S.readyException(e)})),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==e&&--S.readyWait>0||K.resolveWith(y,[S]))}}),S.ready.then=K.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?i.setTimeout(S.ready):(y.addEventListener("DOMContentLoaded",Z),i.addEventListener("load",Z));var ee=function(e,t,n,i,r,a,o){var s=0,l=e.length,c=null==n;if("object"===x(n))for(s in r=!0,n)ee(e,t,s,n[s],!0,a,o);else if(void 0!==i&&(r=!0,_(i)||(o=!0),c&&(o?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(S(e),n)})),t))for(;s<l;s++)t(e[s],n,o?i:i.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):a},te=/^-ms-/,ne=/-([a-z])/g;function ie(e,t){return t.toUpperCase()}function re(e){return e.replace(te,"ms-").replace(ne,ie)}var ae=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function oe(){this.expando=S.expando+oe.uid++}oe.uid=1,oe.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ae(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[re(t)]=n;else for(i in t)r[re(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][re(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(re):(t=re(t))in i?[t]:t.match(V)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||S.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var se=new oe,le=new oe,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),S.fn.extend({data:function(e,t){var n,i,r,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(r=le.get(a),1===a.nodeType&&!se.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&(i=re(i.slice(5)),de(a,i,r[i]));se.set(a,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(a&&void 0===t)return void 0!==(n=le.get(a,e))||void 0!==(n=de(a,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),S.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=se.get(e,t),n&&(!i||Array.isArray(n)?i=se.access(e,t,S.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),i=n.length,r=n.shift(),a=S._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete a.stop,r.call(e,(function(){S.dequeue(e,t)}),a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:S.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",n])}))})}}),S.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?S.queue(this[0],e):void 0===t?this:this.each((function(){var n=S.queue(this,e,t);S._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&S.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){S.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=S.Deferred(),a=this,o=this.length,s=function(){--i||r.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=se.get(a[o],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});var he=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,fe=new RegExp("^(?:([+-])=|)("+he+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],me=y.documentElement,ge=function(e){return S.contains(e.ownerDocument,e)},_e={composed:!0};me.getRootNode&&(ge=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(_e)===e.ownerDocument});var ve=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ge(e)&&"none"===S.css(e,"display")};function ye(e,t,n,i){var r,a,o=20,s=i?function(){return i.cur()}:function(){return S.css(e,t,"")},l=s(),c=n&&n[3]||(S.cssNumber[t]?"":"px"),u=e.nodeType&&(S.cssNumber[t]||"px"!==c&&+l)&&fe.exec(S.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)S.style(e,t,u+c),(1-a)*(1-(a=s()/l||.5))<=0&&(o=0),u/=a;u*=2,S.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var be={};function we(e){var t,n=e.ownerDocument,i=e.nodeName,r=be[i];return r||(t=n.body.appendChild(n.createElement(i)),r=S.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),be[i]=r,r)}function xe(e,t){for(var n,i,r=[],a=0,o=e.length;a<o;a++)(i=e[a]).style&&(n=i.style.display,t?("none"===n&&(r[a]=se.get(i,"display")||null,r[a]||(i.style.display="")),""===i.style.display&&ve(i)&&(r[a]=we(i))):"none"!==n&&(r[a]="none",se.set(i,"display",n)));for(a=0;a<o;a++)null!=r[a]&&(e[a].style.display=r[a]);return e}S.fn.extend({show:function(){return xe(this,!0)},hide:function(){return xe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ve(this)?S(this).show():S(this).hide()}))}});var ke,Ae,Se=/^(?:checkbox|radio)$/i,Me=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Te=/^$|^module$|\/(?:java|ecma)script/i;ke=y.createDocumentFragment().appendChild(y.createElement("div")),(Ae=y.createElement("input")).setAttribute("type","radio"),Ae.setAttribute("checked","checked"),Ae.setAttribute("name","t"),ke.appendChild(Ae),g.checkClone=ke.cloneNode(!0).cloneNode(!0).lastChild.checked,ke.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!ke.cloneNode(!0).lastChild.defaultValue,ke.innerHTML="<option></option>",g.option=!!ke.lastChild;var Le={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ee(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?S.merge([e],n):n}function Ce(e,t){for(var n=0,i=e.length;n<i;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Le.tbody=Le.tfoot=Le.colgroup=Le.caption=Le.thead,Le.th=Le.td,g.option||(Le.optgroup=Le.option=[1,"<select multiple='multiple'>","</select>"]);var De=/<|&#?\w+;/;function Oe(e,t,n,i,r){for(var a,o,s,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((a=e[f])||0===a)if("object"===x(a))S.merge(h,a.nodeType?[a]:a);else if(De.test(a)){for(o=o||d.appendChild(t.createElement("div")),s=(Me.exec(a)||["",""])[1].toLowerCase(),l=Le[s]||Le._default,o.innerHTML=l[1]+S.htmlPrefilter(a)+l[2],u=l[0];u--;)o=o.lastChild;S.merge(h,o.childNodes),(o=d.firstChild).textContent=""}else h.push(t.createTextNode(a));for(d.textContent="",f=0;a=h[f++];)if(i&&S.inArray(a,i)>-1)r&&r.push(a);else if(c=ge(a),o=Ee(d.appendChild(a),"script"),c&&Ce(o),n)for(u=0;a=o[u++];)Te.test(a.type||"")&&n.push(a);return d}var Ye=/^([^.]*)(?:\.(.+)|)/;function Pe(){return!0}function je(){return!1}function Ie(e,t,n,i,r,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Ie(e,s,n,i,t[s],a);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=je;else if(!r)return e;return 1===a&&(o=r,r=function(e){return S().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=S.guid++)),e.each((function(){S.event.add(this,t,r,i,n)}))}function Fe(e,t,n){n?(se.set(e,t,!1),S.event.add(e,t,{namespace:!1,handler:function(e){var n,i=se.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(S.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),se.set(this,t,i),this[t](),n=se.get(this,t),se.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(se.set(this,t,S.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Pe)}})):void 0===se.get(e,t)&&S.event.add(e,t,Pe)}S.event={global:{},add:function(e,t,n,i,r){var a,o,s,l,c,u,d,h,f,p,m,g=se.get(e);if(ae(e))for(n.handler&&(n=(a=n).handler,r=a.selector),r&&S.find.matchesSelector(me,r),n.guid||(n.guid=S.guid++),(l=g.events)||(l=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return void 0!==S&&S.event.triggered!==t.type?S.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(V)||[""]).length;c--;)f=m=(s=Ye.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=S.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=S.event.special[f]||{},u=S.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&S.expr.match.needsContext.test(r),namespace:p.join(".")},a),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,p,o)||e.addEventListener&&e.addEventListener(f,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),S.event.global[f]=!0)},remove:function(e,t,n,i,r){var a,o,s,l,c,u,d,h,f,p,m,g=se.hasData(e)&&se.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(V)||[""]).length;c--;)if(f=m=(s=Ye.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=S.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=h.length;a--;)u=h[a],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(a,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||S.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)S.event.remove(e,f+t[c],n,i,!0);S.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,a,o,s=new Array(arguments.length),l=S.event.fix(e),c=(se.get(this,"events")||Object.create(null))[l.type]||[],u=S.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=S.event.handlers.call(this,l,c),t=0;(r=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(a=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(i=((S.event.special[a.origType]||{}).handle||a.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,a,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],o={},n=0;n<l;n++)void 0===o[r=(i=t[n]).selector+" "]&&(o[r]=i.needsContext?S(r,this).index(c)>-1:S.find(r,this,null,[c]).length),o[r]&&a.push(i);a.length&&s.push({elem:c,handlers:a})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(S.Event.prototype,e,{enumerable:!0,configurable:!0,get:_(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Se.test(t.type)&&t.click&&T(t,"input")&&Fe(t,"click",!0),!1},trigger:function(e){var t=this||e;return Se.test(t.type)&&t.click&&T(t,"input")&&Fe(t,"click"),!0},_default:function(e){var t=e.target;return Se.test(t.type)&&t.click&&T(t,"input")&&se.get(t,"click")||T(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Pe:je,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:je,isPropagationStopped:je,isImmediatePropagationStopped:je,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Pe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Pe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Pe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(y.documentMode){var n=se.get(this,"handle"),i=S.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else S.event.simulate(t,e.target,S.event.fix(e))}S.event.special[e]={setup:function(){var i;if(Fe(this,e,!0),!y.documentMode)return!1;(i=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(i||0)+1)},trigger:function(){return Fe(this,e),!0},teardown:function(){var e;if(!y.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},S.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=y.documentMode?this:i,a=se.get(r,t);a||(y.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),se.set(r,t,(a||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=y.documentMode?this:i,a=se.get(r,t)-1;a?se.set(r,t,a):(y.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),se.remove(r,t))}}})),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){S.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||S.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}})),S.fn.extend({on:function(e,t,n,i){return Ie(this,e,t,n,i)},one:function(e,t,n,i){return Ie(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,S(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=je),this.each((function(){S.event.remove(this,e,n,t)}))}});var Ne=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,He=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function ze(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function qe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Be(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function $e(e,t){var n,i,r,a,o,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(r in se.remove(t,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)S.event.add(t,r,s[r][n]);le.hasData(e)&&(a=le.access(e),o=S.extend({},a),le.set(t,o))}}function We(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Se.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ue(e,t,n,i){t=l(t);var r,a,o,s,c,u,d=0,h=e.length,f=h-1,p=t[0],m=_(p);if(m||h>1&&"string"==typeof p&&!g.checkClone&&Re.test(p))return e.each((function(r){var a=e.eq(r);m&&(t[0]=p.call(this,r,a.html())),Ue(a,t,n,i)}));if(h&&(a=(r=Oe(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=a),a||i)){for(s=(o=S.map(Ee(r,"script"),qe)).length;d<h;d++)c=r,d!==f&&(c=S.clone(c,!0,!0),s&&S.merge(o,Ee(c,"script"))),n.call(e[d],c,d);if(s)for(u=o[o.length-1].ownerDocument,S.map(o,Be),d=0;d<s;d++)c=o[d],Te.test(c.type||"")&&!se.access(c,"globalEval")&&S.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?S._evalUrl&&!c.noModule&&S._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(He,""),c,u))}return e}function Ve(e,t,n){for(var i,r=t?S.filter(t,e):e,a=0;null!=(i=r[a]);a++)n||1!==i.nodeType||S.cleanData(Ee(i)),i.parentNode&&(n&&ge(i)&&Ce(Ee(i,"script")),i.parentNode.removeChild(i));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,a,o,s=e.cloneNode(!0),l=ge(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(o=Ee(s),i=0,r=(a=Ee(e)).length;i<r;i++)We(a[i],o[i]);if(t)if(n)for(a=a||Ee(e),o=o||Ee(s),i=0,r=a.length;i<r;i++)$e(a[i],o[i]);else $e(e,s);return(o=Ee(s,"script")).length>0&&Ce(o,!l&&Ee(e,"script")),s},cleanData:function(e){for(var t,n,i,r=S.event.special,a=0;void 0!==(n=e[a]);a++)if(ae(n)){if(t=n[se.expando]){if(t.events)for(i in t.events)r[i]?S.event.remove(n,i):S.removeEvent(n,i,t.handle);n[se.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Ve(this,e,!0)},remove:function(e){return Ve(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?S.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ue(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ze(this,e).appendChild(e)}))},prepend:function(){return Ue(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ze(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ue(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ue(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(Ee(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return S.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!Le[(Me.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(Ee(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ue(this,arguments,(function(t){var n=this.parentNode;S.inArray(this,e)<0&&(S.cleanData(Ee(this)),n&&n.replaceChild(t,this))}),e)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){S.fn[e]=function(e){for(var n,i=[],r=S(e),a=r.length-1,o=0;o<=a;o++)n=o===a?this:this.clone(!0),S(r[o])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var Xe=new RegExp("^("+he+")(?!px)[a-z%]+$","i"),Ge=/^--/,Je=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},Qe=function(e,t,n){var i,r,a={};for(r in t)a[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=a[r];return i},Ke=new RegExp(pe.join("|"),"i");function Ze(e,t,n){var i,r,a,o,s=Ge.test(t),l=e.style;return(n=n||Je(e))&&(o=n.getPropertyValue(t)||n[t],s&&o&&(o=o.replace(O,"$1")||void 0),""!==o||ge(e)||(o=S.style(e,t)),!g.pixelBoxStyles()&&Xe.test(o)&&Ke.test(t)&&(i=l.width,r=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=o,o=n.width,l.width=i,l.minWidth=r,l.maxWidth=a)),void 0!==o?o+"":o}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",me.appendChild(c).appendChild(u);var e=i.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),r=36===t(e.width),u.style.position="absolute",a=12===t(u.offsetWidth/3),me.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,r,a,o,s,l,c=y.createElement("div"),u=y.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,S.extend(g,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),a},reliableTrDimensions:function(){var e,t,n,r;return null==s&&(e=y.createElement("table"),t=y.createElement("tr"),n=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",me.appendChild(e).appendChild(t).appendChild(n),r=i.getComputedStyle(t),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,me.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],nt=y.createElement("div").style,it={};function rt(e){var t=S.cssProps[e]||it[e];return t||(e in nt?e:it[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var at=/^(none|table(?!-c[ea]).+)/,ot={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var i=fe.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ct(e,t,n,i,r,a){var o="width"===t?1:0,s=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(c+=S.css(e,n+pe[o],!0,r)),i?("content"===n&&(l-=S.css(e,"padding"+pe[o],!0,r)),"margin"!==n&&(l-=S.css(e,"border"+pe[o]+"Width",!0,r))):(l+=S.css(e,"padding"+pe[o],!0,r),"padding"!==n?l+=S.css(e,"border"+pe[o]+"Width",!0,r):s+=S.css(e,"border"+pe[o]+"Width",!0,r));return!i&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))||0),l+c}function ut(e,t,n){var i=Je(e),r=(!g.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,i),a=r,o=Ze(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(Xe.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&T(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===S.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===S.css(e,"boxSizing",!1,i),(a=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+ct(e,t,n||(r?"border":"content"),a,i,o)+"px"}function dt(e,t,n,i,r){return new dt.prototype.init(e,t,n,i,r)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,a,o,s=re(t),l=Ge.test(t),c=e.style;if(l||(t=rt(s)),o=S.cssHooks[t]||S.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(r=o.get(e,!1,i))?r:c[t];"string"===(a=typeof n)&&(r=fe.exec(n))&&r[1]&&(n=ye(e,t,r),a="number"),null!=n&&n==n&&("number"!==a||l||(n+=r&&r[3]||(S.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,a,o,s=re(t);return Ge.test(t)||(t=rt(s)),(o=S.cssHooks[t]||S.cssHooks[s])&&"get"in o&&(r=o.get(e,!0,n)),void 0===r&&(r=Ze(e,t,i)),"normal"===r&&t in st&&(r=st[t]),""===n||n?(a=parseFloat(r),!0===n||isFinite(a)?a||0:r):r}}),S.each(["height","width"],(function(e,t){S.cssHooks[t]={get:function(e,n,i){if(n)return!at.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,i):Qe(e,ot,(function(){return ut(e,t,i)}))},set:function(e,n,i){var r,a=Je(e),o=!g.scrollboxSize()&&"absolute"===a.position,s=(o||i)&&"border-box"===S.css(e,"boxSizing",!1,a),l=i?ct(e,t,i,s,a):0;return s&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-ct(e,t,"border",!1,a)-.5)),l&&(r=fe.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=S.css(e,t)),lt(0,n,l)}}})),S.cssHooks.marginLeft=et(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ze(e,"marginLeft"))||e.getBoundingClientRect().left-Qe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),S.each({margin:"",padding:"",border:"Width"},(function(e,t){S.cssHooks[e+t]={expand:function(n){for(var i=0,r={},a="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+pe[i]+t]=a[i]||a[i-2]||a[0];return r}},"margin"!==e&&(S.cssHooks[e+t].set=lt)})),S.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var i,r,a={},o=0;if(Array.isArray(t)){for(i=Je(e),r=t.length;o<r;o++)a[t[o]]=S.css(e,t[o],!1,i);return a}return void 0!==n?S.style(e,t,n):S.css(e,t)}),e,t,arguments.length>1)}}),S.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,i,r,a){this.elem=e,this.prop=n,this.easing=r||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=a||(S.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[rt(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=dt.prototype.init,S.fx.step={};var ht,ft,pt=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function gt(){ft&&(!1===y.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(gt):i.setTimeout(gt,S.fx.interval),S.fx.tick())}function _t(){return i.setTimeout((function(){ht=void 0})),ht=Date.now()}function vt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=pe[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function yt(e,t,n){for(var i,r=(bt.tweeners[t]||[]).concat(bt.tweeners["*"]),a=0,o=r.length;a<o;a++)if(i=r[a].call(n,t,e))return i}function bt(e,t,n){var i,r,a=0,o=bt.prefilters.length,s=S.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=ht||_t(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),a=0,o=c.tweens.length;a<o;a++)c.tweens[a].run(i);return s.notifyWith(e,[c,i,n]),i<1&&o?n:(o||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:S.extend({},t),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:t,originalOptions:n,startTime:ht||_t(),duration:n.duration,tweens:[],createTween:function(t,n){var i=S.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,i,r,a,o;for(n in e)if(r=t[i=re(n)],a=e[n],Array.isArray(a)&&(r=a[1],a=e[n]=a[0]),n!==i&&(e[i]=a,delete e[n]),(o=S.cssHooks[i])&&"expand"in o)for(n in a=o.expand(a),delete e[i],a)n in e||(e[n]=a[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);a<o;a++)if(i=bt.prefilters[a].call(c,e,u,c.opts))return _(i.stop)&&(S._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return S.map(u,yt,c),_(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),S.fx.timer(S.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}S.Animation=S.extend(bt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ye(n.elem,e,fe.exec(t),n),n}]},tweener:function(e,t){_(e)?(t=e,e=["*"]):e=e.match(V);for(var n,i=0,r=e.length;i<r;i++)n=e[i],bt.tweeners[n]=bt.tweeners[n]||[],bt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,a,o,s,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,m=e.nodeType&&ve(e),g=se.get(e,"fxshow");for(i in n.queue||(null==(o=S._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,h.always((function(){h.always((function(){o.unqueued--,S.queue(e,"fx").length||o.empty.fire()}))}))),t)if(r=t[i],pt.test(r)){if(delete t[i],a=a||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||S.style(e,i)}if((l=!S.isEmptyObject(t))||!S.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=se.get(e,"display")),"none"===(u=S.css(e,"display"))&&(c?u=c:(xe([e],!0),c=e.style.display||c,u=S.css(e,"display"),xe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===S.css(e,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=se.access(e,"fxshow",{display:c}),a&&(g.hidden=!m),m&&xe([e],!0),h.done((function(){for(i in m||xe([e]),se.remove(e,"fxshow"),f)S.style(e,i,f[i])}))),l=yt(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?bt.prefilters.unshift(e):bt.prefilters.push(e)}}),S.speed=function(e,t,n){var i=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||_(e)&&e,duration:e,easing:n&&t||t&&!_(t)&&t};return S.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in S.fx.speeds?i.duration=S.fx.speeds[i.duration]:i.duration=S.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){_(i.old)&&i.old.call(this),i.queue&&S.dequeue(this,i.queue)},i},S.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ve).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=S.isEmptyObject(e),a=S.speed(t,n,i),o=function(){var t=bt(this,S.extend({},e),a);(r||se.get(this,"finish"))&&t.stop(!0)};return o.finish=o,r||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",a=S.timers,o=se.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&mt.test(r)&&i(o[r]);for(r=a.length;r--;)a[r].elem!==this||null!=e&&a[r].queue!==e||(a[r].anim.stop(n),t=!1,a.splice(r,1));!t&&n||S.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=se.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],a=S.timers,o=i?i.length:0;for(n.finish=!0,S.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),S.each(["toggle","show","hide"],(function(e,t){var n=S.fn[t];S.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(vt(t,!0),e,i,r)}})),S.each({slideDown:vt("show"),slideUp:vt("hide"),slideToggle:vt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){S.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(ht=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),ht=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){ft||(ft=!0,gt())},S.fx.stop=function(){ft=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(e,t){return e=S.fx&&S.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(r)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var wt,xt=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return ee(this,S.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){S.removeAttr(this,e)}))}}),S.extend({attr:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?S.prop(e,t,n):(1===a&&S.isXMLDoc(e)||(r=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?wt:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=S.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&T(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(V);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),wt={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=xt[t]||S.find.attr;xt[t]=function(e,t,i){var r,a,o=t.toLowerCase();return i||(a=xt[o],xt[o]=r,r=null!=n(e,t,i)?o:null,xt[o]=a),r}}));var kt=/^(?:input|select|textarea|button)$/i,At=/^(?:a|area)$/i;function St(e){return(e.match(V)||[]).join(" ")}function Mt(e){return e.getAttribute&&e.getAttribute("class")||""}function Tt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(V)||[]}S.fn.extend({prop:function(e,t){return ee(this,S.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[S.propFix[e]||e]}))}}),S.extend({prop:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&S.isXMLDoc(e)||(t=S.propFix[t]||t,r=S.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):kt.test(e.nodeName)||At.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){S.propFix[this.toLowerCase()]=this})),S.fn.extend({addClass:function(e){var t,n,i,r,a,o;return _(e)?this.each((function(t){S(this).addClass(e.call(this,t,Mt(this)))})):(t=Tt(e)).length?this.each((function(){if(i=Mt(this),n=1===this.nodeType&&" "+St(i)+" "){for(a=0;a<t.length;a++)r=t[a],n.indexOf(" "+r+" ")<0&&(n+=r+" ");o=St(n),i!==o&&this.setAttribute("class",o)}})):this},removeClass:function(e){var t,n,i,r,a,o;return _(e)?this.each((function(t){S(this).removeClass(e.call(this,t,Mt(this)))})):arguments.length?(t=Tt(e)).length?this.each((function(){if(i=Mt(this),n=1===this.nodeType&&" "+St(i)+" "){for(a=0;a<t.length;a++)for(r=t[a];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");o=St(n),i!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,r,a,o=typeof e,s="string"===o||Array.isArray(e);return _(e)?this.each((function(n){S(this).toggleClass(e.call(this,n,Mt(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Tt(e),this.each((function(){if(s)for(a=S(this),r=0;r<n.length;r++)i=n[r],a.hasClass(i)?a.removeClass(i):a.addClass(i);else void 0!==e&&"boolean"!==o||((i=Mt(this))&&se.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+St(Mt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Lt=/\r/g;S.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=_(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,S(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=S.map(r,(function(e){return null==e?"":e+""}))),(t=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=S.valHooks[r.type]||S.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Lt,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:St(S.text(e))}},select:{get:function(e){var t,n,i,r=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?a+1:r.length;for(i=a<0?l:o?a:0;i<l;i++)if(((n=r[i]).selected||i===a)&&!n.disabled&&(!n.parentNode.disabled||!T(n.parentNode,"optgroup"))){if(t=S(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,i,r=e.options,a=S.makeArray(t),o=r.length;o--;)((i=r[o]).selected=S.inArray(S.valHooks.option.get(i),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=S.inArray(S(e).val(),t)>-1}},g.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Et=i.location,Ct={guid:Date.now()},Dt=/\?/;S.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Ot=/^(?:focusinfocus|focusoutblur)$/,Yt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,r){var a,o,s,l,c,u,d,h,p=[n||y],m=f.call(e,"type")?e.type:e,g=f.call(e,"namespace")?e.namespace.split("."):[];if(o=h=s=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!Ot.test(m+S.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[S.expando]?e:new S.Event(m,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),d=S.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(n,t))){if(!r&&!d.noBubble&&!v(n)){for(l=d.delegateType||m,Ot.test(l+m)||(o=o.parentNode);o;o=o.parentNode)p.push(o),s=o;s===(n.ownerDocument||y)&&p.push(s.defaultView||s.parentWindow||i)}for(a=0;(o=p[a++])&&!e.isPropagationStopped();)h=o,e.type=a>1?l:d.bindType||m,(u=(se.get(o,"events")||Object.create(null))[e.type]&&se.get(o,"handle"))&&u.apply(o,t),(u=c&&o[c])&&u.apply&&ae(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=m,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!ae(n)||c&&_(n[m])&&!v(n)&&((s=n[c])&&(n[c]=null),S.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,Yt),n[m](),e.isPropagationStopped()&&h.removeEventListener(m,Yt),S.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var i=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(i,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each((function(){S.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}});var Pt=/\[\]$/,jt=/\r?\n/g,It=/^(?:submit|button|image|reset|file)$/i,Ft=/^(?:input|select|textarea|keygen)/i;function Nt(e,t,n,i){var r;if(Array.isArray(t))S.each(t,(function(t,r){n||Pt.test(e)?i(e,r):Nt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==x(t))i(e,t);else for(r in t)Nt(e+"["+r+"]",t[r],n,i)}S.param=function(e,t){var n,i=[],r=function(e,t){var n=_(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,(function(){r(this.name,this.value)}));else for(n in e)Nt(n,e[n],t,r);return i.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&Ft.test(this.nodeName)&&!It.test(e)&&(this.checked||!Se.test(e))})).map((function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,(function(e){return{name:t.name,value:e.replace(jt,"\r\n")}})):{name:t.name,value:n.replace(jt,"\r\n")}})).get()}});var Rt=/%20/g,Ht=/#.*$/,zt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Bt=/^(?:GET|HEAD)$/,$t=/^\/\//,Wt={},Ut={},Vt="*/".concat("*"),Xt=y.createElement("a");function Gt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,a=t.toLowerCase().match(V)||[];if(_(n))for(;i=a[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Jt(e,t,n,i){var r={},a=e===Ut;function o(s){var l;return r[s]=!0,S.each(e[s]||[],(function(e,s){var c=s(t,n,i);return"string"!=typeof c||a||r[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!r["*"]&&o("*")}function Qt(e,t){var n,i,r=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&S.extend(!0,e,i),e}Xt.href=Et.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Vt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Qt(Qt(e,S.ajaxSettings),t):Qt(S.ajaxSettings,e)},ajaxPrefilter:Gt(Wt),ajaxTransport:Gt(Ut),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,a,o,s,l,c,u,d,h,f=S.ajaxSetup({},t),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?S(p):S.event,g=S.Deferred(),_=S.Callbacks("once memory"),v=f.statusCode||{},b={},w={},x="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=qt.exec(a);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)k.always(e[k.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||x;return n&&n.abort(t),A(0,t),this}};if(g.promise(k),f.url=((e||f.url||Et.href)+"").replace($t,Et.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(V)||[""],null==f.crossDomain){l=y.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Xt.protocol+"//"+Xt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=S.param(f.data,f.traditional)),Jt(Wt,f,t,k),c)return k;for(d in(u=S.event&&f.global)&&0==S.active++&&S.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Bt.test(f.type),r=f.url.replace(Ht,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Rt,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Dt.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(zt,"$1"),h=(Dt.test(r)?"&":"?")+"_="+Ct.guid+++h),f.url=r+h),f.ifModified&&(S.lastModified[r]&&k.setRequestHeader("If-Modified-Since",S.lastModified[r]),S.etag[r]&&k.setRequestHeader("If-None-Match",S.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Vt+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,k,f)||c))return k.abort();if(x="abort",_.add(f.complete),k.done(f.success),k.fail(f.error),n=Jt(Ut,f,t,k)){if(k.readyState=1,u&&m.trigger("ajaxSend",[k,f]),c)return k;f.async&&f.timeout>0&&(s=i.setTimeout((function(){k.abort("timeout")}),f.timeout));try{c=!1,n.send(b,A)}catch(e){if(c)throw e;A(-1,e)}}else A(-1,"No Transport");function A(e,t,o,l){var d,h,y,b,w,x=t;c||(c=!0,s&&i.clearTimeout(s),n=void 0,a=l||"",k.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(b=function(e,t,n){for(var i,r,a,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)a=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){a=r;break}o||(o=r)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),n[a]}(f,k,o)),!d&&S.inArray("script",f.dataTypes)>-1&&S.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),b=function(e,t,n,i){var r,a,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(o=c[l+" "+a]||c["* "+a]))for(r in c)if((s=r.split(" "))[1]===a&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[r]:!0!==c[r]&&(a=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(f,b,k,d),d?(f.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(S.lastModified[r]=w),(w=k.getResponseHeader("etag"))&&(S.etag[r]=w)),204===e||"HEAD"===f.type?x="nocontent":304===e?x="notmodified":(x=b.state,h=b.data,d=!(y=b.error))):(y=x,!e&&x||(x="error",e<0&&(e=0))),k.status=e,k.statusText=(t||x)+"",d?g.resolveWith(p,[h,x,k]):g.rejectWith(p,[k,x,y]),k.statusCode(v),v=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,f,d?h:y]),_.fireWith(p,[k,x]),u&&(m.trigger("ajaxComplete",[k,f]),--S.active||S.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],(function(e,t){S[t]=function(e,n,i,r){return _(n)&&(r=r||i,i=n,n=void 0),S.ajax(S.extend({url:e,type:t,dataType:r,data:n,success:i},S.isPlainObject(e)&&e))}})),S.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(_(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return _(e)?this.each((function(t){S(this).wrapInner(e.call(this,t))})):this.each((function(){var t=S(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=_(e);return this.each((function(n){S(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},Zt=S.ajaxSettings.xhr();g.cors=!!Zt&&"withCredentials"in Zt,g.ajax=Zt=!!Zt,S.ajaxTransport((function(e){var t,n;if(g.cors||Zt&&!e.crossDomain)return{send:function(r,a){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(o,r[o]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Kt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),S.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),S.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=S("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",(function(e,t,n){var r,a,o,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=_(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+r):!1!==e.jsonp&&(e.url+=(Dt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",a=i[r],i[r]=function(){o=arguments},n.always((function(){void 0===a?S(i).removeProp(r):i[r]=a,e[r]&&(e.jsonpCallback=t.jsonpCallback,tn.push(r)),o&&_(a)&&a(o[0]),o=a=void 0})),"script"})),g.createHTMLDocument=((en=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((i=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(i)):t=y),a=!n&&[],(r=H.exec(e))?[t.createElement(r[1])]:(r=Oe([e],t,a),a&&a.length&&S(a).remove(),S.merge([],r.childNodes)));var i,r,a},S.fn.load=function(e,t,n){var i,r,a,o=this,s=e.indexOf(" ");return s>-1&&(i=St(e.slice(s)),e=e.slice(0,s)),_(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),o.length>0&&S.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){a=arguments,o.html(i?S("<div>").append(S.parseHTML(e)).find(i):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},S.expr.pseudos.animated=function(e){return S.grep(S.timers,(function(t){return e===t.elem})).length},S.offset={setOffset:function(e,t,n){var i,r,a,o,s,l,c=S.css(e,"position"),u=S(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),a=S.css(e,"top"),l=S.css(e,"left"),("absolute"===c||"fixed"===c)&&(a+l).indexOf("auto")>-1?(o=(i=u.position()).top,r=i.left):(o=parseFloat(a)||0,r=parseFloat(l)||0),_(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},S.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){S.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===S.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),r.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-S.css(i,"marginTop",!0),left:t.left-r.left-S.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===S.css(e,"position");)e=e.offsetParent;return e||me}))}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;S.fn[e]=function(i){return ee(this,(function(e,i,r){var a;if(v(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===r)return a?a[t]:e[i];a?a.scrollTo(n?a.pageXOffset:r,n?r:a.pageYOffset):e[i]=r}),e,i,arguments.length)}})),S.each(["top","left"],(function(e,t){S.cssHooks[t]=et(g.pixelPosition,(function(e,n){if(n)return n=Ze(e,t),Xe.test(n)?S(e).position()[t]+"px":n}))})),S.each({Height:"height",Width:"width"},(function(e,t){S.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){S.fn[i]=function(r,a){var o=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===a?"margin":"border");return ee(this,(function(t,n,r){var a;return v(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===r?S.css(t,n,s):S.style(t,n,r,s)}),t,o?r:void 0,o)}}))})),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){S.fn[t]=function(e){return this.on(t,e)}})),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){S.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),_(e))return i=s.call(arguments,2),r=function(){return e.apply(t||this,i.concat(s.call(arguments)))},r.guid=e.guid=e.guid||S.guid++,r},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=T,S.isFunction=_,S.isWindow=v,S.camelCase=re,S.type=x,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return S}.apply(t,[]))||(e.exports=n);var an=i.jQuery,on=i.$;return S.noConflict=function(e){return i.$===S&&(i.$=on),e&&i.jQuery===S&&(i.jQuery=an),S},void 0===r&&(i.jQuery=i.$=S),S}))},6808:(e,t,n)=>{var i,r;!function(a){if(void 0===(r="function"==typeof(i=a)?i.call(t,n,t,e):i)||(e.exports=r),!0,e.exports=a(),!!0){var o=window.Cookies,s=window.Cookies=a();s.noConflict=function(){return window.Cookies=o,s}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(i){function r(){}function a(t,n,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},r.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var o=JSON.stringify(n);/^[\{\[]/.test(o)&&(n=o)}catch(e){}n=i.write?i.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in a)a[l]&&(s+="; "+l,!0!==a[l]&&(s+="="+a[l].split(";")[0]));return document.cookie=t+"="+n+s}}function o(e,n){if("undefined"!=typeof document){for(var r={},a=document.cookie?document.cookie.split("; "):[],o=0;o<a.length;o++){var s=a[o].split("="),l=s.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var c=t(s[0]);if(l=(i.read||i)(l,c)||t(l),n)try{l=JSON.parse(l)}catch(e){}if(r[c]=l,e===c)break}catch(e){}}return e?r[e]:r}}return r.set=a,r.get=function(e){return o(e,!1)},r.getJSON=function(e){return o(e,!0)},r.remove=function(t,n){a(t,"",e(n,{expires:-1}))},r.defaults={},r.withConverter=n,r}((function(){}))}))},6316:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(1519),r=n.n(i)()((function(e){return e[1]}));r.push([e.id,".drawflow,.drawflow .parent-node{position:relative}.parent-drawflow{display:flex;outline:0;overflow:hidden;touch-action:none}.drawflow{height:100%;perspective:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.drawflow .drawflow-node{align-items:center;background:#0ff;border:2px solid #000;border-radius:4px;color:#000;display:flex;min-height:40px;padding:15px;position:absolute;width:160px;z-index:2}.drawflow .drawflow-node.selected{background:red}.drawflow .drawflow-node:hover{cursor:move}.drawflow .drawflow-node .inputs,.drawflow .drawflow-node .outputs{width:0}.drawflow .drawflow-node .drawflow_content_node{display:block;width:100%}.drawflow .drawflow-node .input,.drawflow .drawflow-node .output{background:#fff;border:2px solid #000;border-radius:50%;cursor:crosshair;height:20px;margin-bottom:5px;position:relative;width:20px;z-index:1}.drawflow .drawflow-node .input{background:#ff0;left:-27px;top:2px}.drawflow .drawflow-node .output{right:-3px;top:2px}.drawflow svg{overflow:visible!important;position:absolute;z-index:0}.drawflow .connection{pointer-events:none;position:absolute}.drawflow .connection .main-path{fill:none;stroke-width:5px;stroke:#4682b4;pointer-events:all}.drawflow .connection .main-path:hover{stroke:#1266ab;cursor:pointer}.drawflow .connection .main-path.selected{stroke:#43b993}.drawflow .connection .point{stroke:#000;stroke-width:2;fill:#fff;cursor:move;pointer-events:all}.drawflow .connection .point.selected,.drawflow .connection .point:hover{fill:#1266ab}.drawflow .main-path{fill:none;stroke-width:5px;stroke:#4682b4}.drawflow-delete{background:#000;border:2px solid #fff;border-radius:50%;color:#fff;cursor:pointer;display:block;font-family:monospace;font-weight:700;height:30px;line-height:30px;position:absolute;text-align:center;width:30px;z-index:4}.drawflow>.drawflow-delete{margin-left:-15px;margin-top:15px}.parent-node .drawflow-delete{right:-15px;top:-15px}",""]);const a=r},1326:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(1519),r=n.n(i)()((function(e){return e[1]}));r.push([e.id,":root{--vs-colors--lightest:rgba(60,60,60,.26);--vs-colors--light:rgba(60,60,60,.5);--vs-colors--dark:#333;--vs-colors--darkest:rgba(0,0,0,.15);--vs-search-input-color:inherit;--vs-search-input-bg:#fff;--vs-search-input-placeholder-color:inherit;--vs-font-size:1rem;--vs-line-height:1.4;--vs-state-disabled-bg:#f8f8f8;--vs-state-disabled-color:var(--vs-colors--light);--vs-state-disabled-controls-color:var(--vs-colors--light);--vs-state-disabled-cursor:not-allowed;--vs-border-color:var(--vs-colors--lightest);--vs-border-width:1px;--vs-border-style:solid;--vs-border-radius:4px;--vs-actions-padding:4px 6px 0 3px;--vs-controls-color:var(--vs-colors--light);--vs-controls-size:1;--vs-controls--deselect-text-shadow:0 1px 0 #fff;--vs-selected-bg:#f0f0f0;--vs-selected-color:var(--vs-colors--dark);--vs-selected-border-color:var(--vs-border-color);--vs-selected-border-style:var(--vs-border-style);--vs-selected-border-width:var(--vs-border-width);--vs-dropdown-bg:#fff;--vs-dropdown-color:inherit;--vs-dropdown-z-index:1000;--vs-dropdown-min-width:160px;--vs-dropdown-max-height:350px;--vs-dropdown-box-shadow:0px 3px 6px 0px var(--vs-colors--darkest);--vs-dropdown-option-bg:#000;--vs-dropdown-option-color:var(--vs-dropdown-color);--vs-dropdown-option-padding:3px 20px;--vs-dropdown-option--active-bg:#5897fb;--vs-dropdown-option--active-color:#fff;--vs-dropdown-option--deselect-bg:#fb5858;--vs-dropdown-option--deselect-color:#fff;--vs-transition-timing-function:cubic-bezier(1,-0.115,0.975,0.855);--vs-transition-duration:150ms}.v-select{font-family:inherit;position:relative}.v-select,.v-select *{box-sizing:border-box}:root{--vs-transition-timing-function:cubic-bezier(1,0.5,0.8,1);--vs-transition-duration:0.15s}@keyframes vSelectSpinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.vs__fade-enter-active,.vs__fade-leave-active{pointer-events:none;transition:opacity var(--vs-transition-duration) var(--vs-transition-timing-function)}.vs__fade-enter,.vs__fade-leave-to{opacity:0}:root{--vs-disabled-bg:var(--vs-state-disabled-bg);--vs-disabled-color:var(--vs-state-disabled-color);--vs-disabled-cursor:var(--vs-state-disabled-cursor)}.vs--disabled .vs__clear,.vs--disabled .vs__dropdown-toggle,.vs--disabled .vs__open-indicator,.vs--disabled .vs__search,.vs--disabled .vs__selected{background-color:var(--vs-disabled-bg);cursor:var(--vs-disabled-cursor)}.v-select[dir=rtl] .vs__actions{padding:0 3px 0 6px}.v-select[dir=rtl] .vs__clear{margin-left:6px;margin-right:0}.v-select[dir=rtl] .vs__deselect{margin-left:0;margin-right:2px}.v-select[dir=rtl] .vs__dropdown-menu{text-align:right}.vs__dropdown-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--vs-search-input-bg);border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-radius:var(--vs-border-radius);display:flex;padding:0 0 4px;white-space:normal}.vs__selected-options{display:flex;flex-basis:100%;flex-grow:1;flex-wrap:wrap;padding:0 2px;position:relative}.vs__actions{align-items:center;display:flex;padding:var(--vs-actions-padding)}.vs--searchable .vs__dropdown-toggle{cursor:text}.vs--unsearchable .vs__dropdown-toggle{cursor:pointer}.vs--open .vs__dropdown-toggle{border-bottom-color:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.vs__open-indicator{fill:var(--vs-controls-color);transform:scale(var(--vs-controls-size));transition:transform var(--vs-transition-duration) var(--vs-transition-timing-function);transition-timing-function:var(--vs-transition-timing-function)}.vs--open .vs__open-indicator{transform:rotate(180deg) scale(var(--vs-controls-size))}.vs--loading .vs__open-indicator{opacity:0}.vs__clear{fill:var(--vs-controls-color);background-color:transparent;border:0;cursor:pointer;margin-right:8px;padding:0}.vs__dropdown-menu{background:var(--vs-dropdown-bg);border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-radius:0 0 var(--vs-border-radius) var(--vs-border-radius);border-top-style:none;box-shadow:var(--vs-dropdown-box-shadow);box-sizing:border-box;color:var(--vs-dropdown-color);display:block;left:0;list-style:none;margin:0;max-height:var(--vs-dropdown-max-height);min-width:var(--vs-dropdown-min-width);overflow-y:auto;padding:5px 0;position:absolute;text-align:left;top:calc(100% - var(--vs-border-width));width:100%;z-index:var(--vs-dropdown-z-index)}.vs__no-options{text-align:center}.vs__dropdown-option{clear:both;color:var(--vs-dropdown-option-color);cursor:pointer;display:block;line-height:1.42857143;padding:var(--vs-dropdown-option-padding);white-space:nowrap}.vs__dropdown-option--highlight{background:var(--vs-dropdown-option--active-bg);color:var(--vs-dropdown-option--active-color)}.vs__dropdown-option--deselect{background:var(--vs-dropdown-option--deselect-bg);color:var(--vs-dropdown-option--deselect-color)}.vs__dropdown-option--disabled{background:var(--vs-state-disabled-bg);color:var(--vs-state-disabled-color);cursor:var(--vs-state-disabled-cursor)}.vs__selected{align-items:center;background-color:var(--vs-selected-bg);border:var(--vs-selected-border-width) var(--vs-selected-border-style) var(--vs-selected-border-color);border-radius:var(--vs-border-radius);color:var(--vs-selected-color);display:flex;line-height:var(--vs-line-height);margin:4px 2px 0;padding:0 .25em;z-index:0}.vs__deselect{fill:var(--vs-controls-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-flex;margin-left:4px;padding:0;text-shadow:var(--vs-controls--deselect-text-shadow)}.vs--single .vs__selected{background-color:transparent;border-color:transparent}.vs--single.vs--loading .vs__selected,.vs--single.vs--open .vs__selected{opacity:.4;position:absolute}.vs--single.vs--searching .vs__selected{display:none}.vs__search::-webkit-search-cancel-button{display:none}.vs__search::-ms-clear,.vs__search::-webkit-search-decoration,.vs__search::-webkit-search-results-button,.vs__search::-webkit-search-results-decoration{display:none}.vs__search,.vs__search:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid transparent;border-left:none;box-shadow:none;color:var(--vs-search-input-color);flex-grow:1;font-size:var(--vs-font-size);line-height:var(--vs-line-height);margin:4px 0 0;max-width:100%;outline:none;padding:0 7px;width:0;z-index:1}.vs__search::-moz-placeholder{color:var(--vs-search-input-placeholder-color)}.vs__search::placeholder{color:var(--vs-search-input-placeholder-color)}.vs--unsearchable .vs__search{opacity:1}.vs--unsearchable:not(.vs--disabled) .vs__search{cursor:pointer}.vs--single.vs--searching:not(.vs--open):not(.vs--loading) .vs__search{opacity:.2}.vs__spinner{align-self:center;animation:vSelectSpinner 1.1s linear infinite;border:.9em solid hsla(0,0%,39%,.1);border-left-color:rgba(60,60,60,.45);font-size:5px;opacity:0;overflow:hidden;text-indent:-9999em;transform:translateZ(0) scale(var(--vs-controls--spinner-size,var(--vs-controls-size)));transition:opacity .1s}.vs__spinner,.vs__spinner:after{border-radius:50%;height:5em;transform:scale(var(--vs-controls--spinner-size,var(--vs-controls-size)));width:5em}.vs--loading .vs__spinner{opacity:1}",""]);const a=r},199:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(1519),r=n.n(i)()((function(e){return e[1]}));r.push([e.id,'@keyframes passing-through{0%{opacity:0;transform:translateY(40px)}30%,70%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-40px)}}@keyframes slide-in{0%{opacity:0;transform:translateY(40px)}30%{opacity:1;transform:translateY(0)}}@keyframes pulse{0%{transform:scale(1)}10%{transform:scale(1.1)}20%{transform:scale(1)}}.dropzone,.dropzone *{box-sizing:border-box}.dropzone{background:#fff;border:2px solid rgba(0,0,0,.3);min-height:150px;padding:20px}.dropzone.dz-clickable{cursor:pointer}.dropzone.dz-clickable *{cursor:default}.dropzone.dz-clickable .dz-message,.dropzone.dz-clickable .dz-message *{cursor:pointer}.dropzone.dz-started .dz-message{display:none}.dropzone.dz-drag-hover{border-style:solid}.dropzone.dz-drag-hover .dz-message{opacity:.5}.dropzone .dz-message{margin:2em 0;text-align:center}.dropzone .dz-preview{display:inline-block;margin:16px;min-height:100px;position:relative;vertical-align:top}.dropzone .dz-preview:hover{z-index:1000}.dropzone .dz-preview.dz-file-preview .dz-image{background:#999;background:linear-gradient(180deg,#eee,#ddd);border-radius:20px}.dropzone .dz-preview.dz-file-preview .dz-details{opacity:1}.dropzone .dz-preview.dz-image-preview{background:#fff}.dropzone .dz-preview.dz-image-preview .dz-details{transition:opacity .2s linear}.dropzone .dz-preview .dz-remove{border:none;cursor:pointer;display:block;font-size:14px;text-align:center}.dropzone .dz-preview .dz-remove:hover{text-decoration:underline}.dropzone .dz-preview:hover .dz-details{opacity:1}.dropzone .dz-preview .dz-details{color:rgba(0,0,0,.9);font-size:13px;left:0;line-height:150%;max-width:100%;min-width:100%;opacity:0;padding:2em 1em;position:absolute;text-align:center;top:0;z-index:20}.dropzone .dz-preview .dz-details .dz-size{font-size:16px;margin-bottom:1em}.dropzone .dz-preview .dz-details .dz-filename{white-space:nowrap}.dropzone .dz-preview .dz-details .dz-filename:hover span{background-color:hsla(0,0%,100%,.8);border:1px solid hsla(0,0%,78%,.8)}.dropzone .dz-preview .dz-details .dz-filename:not(:hover){overflow:hidden;text-overflow:ellipsis}.dropzone .dz-preview .dz-details .dz-filename:not(:hover) span{border:1px solid transparent}.dropzone .dz-preview .dz-details .dz-filename span,.dropzone .dz-preview .dz-details .dz-size span{background-color:hsla(0,0%,100%,.4);border-radius:3px;padding:0 .4em}.dropzone .dz-preview:hover .dz-image img{filter:blur(8px);transform:scale(1.05)}.dropzone .dz-preview .dz-image{border-radius:20px;display:block;height:120px;overflow:hidden;position:relative;width:120px;z-index:10}.dropzone .dz-preview .dz-image img{display:block}.dropzone .dz-preview.dz-success .dz-success-mark{animation:passing-through 3s cubic-bezier(.77,0,.175,1)}.dropzone .dz-preview.dz-error .dz-error-mark{animation:slide-in 3s cubic-bezier(.77,0,.175,1);opacity:1}.dropzone .dz-preview .dz-error-mark,.dropzone .dz-preview .dz-success-mark{display:block;left:50%;margin-left:-27px;margin-top:-27px;opacity:0;pointer-events:none;position:absolute;top:50%;z-index:500}.dropzone .dz-preview .dz-error-mark svg,.dropzone .dz-preview .dz-success-mark svg{display:block;height:54px;width:54px}.dropzone .dz-preview.dz-processing .dz-progress{opacity:1;transition:all .2s linear}.dropzone .dz-preview.dz-complete .dz-progress{opacity:0;transition:opacity .4s ease-in}.dropzone .dz-preview:not(.dz-processing) .dz-progress{animation:pulse 6s ease infinite}.dropzone .dz-preview .dz-progress{background:hsla(0,0%,100%,.9);border-radius:8px;height:16px;left:50%;margin-left:-40px;margin-top:-8px;opacity:1;overflow:hidden;pointer-events:none;position:absolute;top:50%;-webkit-transform:scale(1);width:80px;z-index:1000}.dropzone .dz-preview .dz-progress .dz-upload{background:#333;background:linear-gradient(180deg,#666,#444);bottom:0;left:0;position:absolute;top:0;transition:width .3s ease-in-out;width:0}.dropzone .dz-preview.dz-error .dz-error-message{display:block}.dropzone .dz-preview.dz-error:hover .dz-error-message{opacity:1;pointer-events:auto}.dropzone .dz-preview .dz-error-message{background:#be2626;background:linear-gradient(180deg,#be2626,#a92222);border-radius:8px;color:#fff;display:block;display:none;font-size:13px;left:-10px;opacity:0;padding:.5em 1.2em;pointer-events:none;position:absolute;top:130px;transition:opacity .3s ease;width:140px;z-index:1000}.dropzone .dz-preview .dz-error-message:after{border-bottom:6px solid #be2626;border-left:6px solid transparent;border-right:6px solid transparent;content:"";height:0;left:64px;position:absolute;top:-6px;width:0}.vue-dropzone{border:2px solid #e5e5e5;color:#777;font-family:Arial,sans-serif;letter-spacing:.2px;transition:.2s linear}.vue-dropzone:hover{background-color:#f6f6f6}.vue-dropzone>i{color:#ccc}.vue-dropzone>.dz-preview .dz-image{border-radius:0;height:100%;width:100%}.vue-dropzone>.dz-preview .dz-image img:not([src]){height:200px;width:200px}.vue-dropzone>.dz-preview .dz-image:hover img{-webkit-filter:none;transform:none}.vue-dropzone>.dz-preview .dz-details{background-color:rgba(33,150,243,.8);bottom:0;color:#fff;text-align:left;top:0;transition:opacity .2s linear}.vue-dropzone>.dz-preview .dz-details .dz-filename{overflow:hidden}.vue-dropzone>.dz-preview .dz-details .dz-filename span,.vue-dropzone>.dz-preview .dz-details .dz-size span{background-color:transparent}.vue-dropzone>.dz-preview .dz-details .dz-filename:not(:hover) span{border:none}.vue-dropzone>.dz-preview .dz-details .dz-filename:hover span{background-color:transparent;border:none}.vue-dropzone>.dz-preview .dz-progress .dz-upload{background:#ccc}.vue-dropzone>.dz-preview .dz-remove{border:2px solid #fff;bottom:15px;color:#fff;font-size:.8rem;font-weight:800;letter-spacing:1.1px;margin-left:15px;opacity:0;padding:10px;position:absolute;text-decoration:none;text-transform:uppercase;top:inherit;z-index:30}.vue-dropzone>.dz-preview:hover .dz-remove{opacity:1}.vue-dropzone>.dz-preview .dz-error-mark,.vue-dropzone>.dz-preview .dz-success-mark{left:0;margin-left:auto;margin-top:auto;top:35%;width:100%}.vue-dropzone>.dz-preview .dz-error-mark svg,.vue-dropzone>.dz-preview .dz-success-mark svg{margin-left:auto;margin-right:auto}.vue-dropzone>.dz-preview .dz-error-message{left:0;margin-left:auto;margin-right:auto;text-align:center;width:100%}.vue-dropzone>.dz-preview .dz-error-message:after{display:none}',""]);const a=r},1519:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(r[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},2446:(e,t,n)=>{"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function s(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},i=[],r=0;r<e.length;r++){var a=e[r],l=t.base?a[0]+t.base:a[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),h={css:a[1],media:a[2],sourceMap:a[3]};-1!==d?(o[d].references++,o[d].updater(h)):o.push({identifier:u,updater:g(h,t),references:1}),i.push(u)}return i}function c(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var o=a(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function h(e,t,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=d(t,r);else{var a=document.createTextNode(r),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function f(e,t,n){var i=n.css,r=n.media,a=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var p=null,m=0;function g(e,t){var n,i,r;if(t.singleton){var a=m++;n=p||(p=c(t)),i=h.bind(null,n,a,!1),r=h.bind(null,n,a,!0)}else n=c(t),i=f.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var r=s(n[i]);o[r].references--}for(var a=l(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=a}}}},6486:function(e,t,n){var i;e=n.nmd(e),function(){var r,a="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,h=256,f=1/0,p=9007199254740991,m=NaN,g=4294967295,_=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",h]],v="[object Arguments]",y="[object Array]",b="[object Boolean]",w="[object Date]",x="[object Error]",k="[object Function]",A="[object GeneratorFunction]",S="[object Map]",M="[object Number]",T="[object Object]",L="[object Promise]",E="[object RegExp]",C="[object Set]",D="[object String]",O="[object Symbol]",Y="[object WeakMap]",P="[object ArrayBuffer]",j="[object DataView]",I="[object Float32Array]",F="[object Float64Array]",N="[object Int8Array]",R="[object Int16Array]",H="[object Int32Array]",z="[object Uint8Array]",q="[object Uint8ClampedArray]",B="[object Uint16Array]",$="[object Uint32Array]",W=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,X=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,J=RegExp(X.source),Q=RegExp(G.source),K=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(re.source),oe=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,_e=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,Ae="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Me="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Le="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",De="['’]",Oe="["+Ae+"]",Ye="["+Ce+"]",Pe="["+Se+"]",je="\\d+",Ie="["+Me+"]",Fe="["+Te+"]",Ne="[^"+Ae+Ce+je+Me+Te+Le+"]",Re="\\ud83c[\\udffb-\\udfff]",He="[^"+Ae+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Le+"]",$e="\\u200d",We="(?:"+Fe+"|"+Ne+")",Ue="(?:"+Be+"|"+Ne+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",Xe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Pe+"|"+Re+")"+"?",Je="["+Ee+"]?",Qe=Je+Ge+("(?:"+$e+"(?:"+[He,ze,qe].join("|")+")"+Je+Ge+")*"),Ke="(?:"+[Ie,ze,qe].join("|")+")"+Qe,Ze="(?:"+[He+Pe+"?",Pe,ze,qe,Oe].join("|")+")",et=RegExp(De,"g"),tt=RegExp(Pe,"g"),nt=RegExp(Re+"(?="+Re+")|"+Ze+Qe,"g"),it=RegExp([Be+"?"+Fe+"+"+Ve+"(?="+[Ye,Be,"$"].join("|")+")",Ue+"+"+Xe+"(?="+[Ye,Be+We,"$"].join("|")+")",Be+"?"+We+"+"+Ve,Be+"+"+Xe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",je,Ke].join("|"),"g"),rt=RegExp("["+$e+Ae+Se+Ee+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,lt={};lt[I]=lt[F]=lt[N]=lt[R]=lt[H]=lt[z]=lt[q]=lt[B]=lt[$]=!0,lt[v]=lt[y]=lt[P]=lt[b]=lt[j]=lt[w]=lt[x]=lt[k]=lt[S]=lt[M]=lt[T]=lt[E]=lt[C]=lt[D]=lt[Y]=!1;var ct={};ct[v]=ct[y]=ct[P]=ct[j]=ct[b]=ct[w]=ct[I]=ct[F]=ct[N]=ct[R]=ct[H]=ct[S]=ct[M]=ct[T]=ct[E]=ct[C]=ct[D]=ct[O]=ct[z]=ct[q]=ct[B]=ct[$]=!0,ct[x]=ct[k]=ct[Y]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ht=parseInt,ft="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,mt=ft||pt||Function("return this")(),gt=t&&!t.nodeType&&t,_t=gt&&e&&!e.nodeType&&e,vt=_t&&_t.exports===gt,yt=vt&&ft.process,bt=function(){try{var e=_t&&_t.require&&_t.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),wt=bt&&bt.isArrayBuffer,xt=bt&&bt.isDate,kt=bt&&bt.isMap,At=bt&&bt.isRegExp,St=bt&&bt.isSet,Mt=bt&&bt.isTypedArray;function Tt(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 Lt(e,t,n,i){for(var r=-1,a=null==e?0:e.length;++r<a;){var o=e[r];t(i,o,n(o),e)}return i}function Et(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Dt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,i=null==e?0:e.length,r=0,a=[];++n<i;){var o=e[n];t(o,n,e)&&(a[r++]=o)}return a}function Yt(e,t){return!!(null==e?0:e.length)&&Bt(e,t,0)>-1}function Pt(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function jt(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function It(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function Ft(e,t,n,i){var r=-1,a=null==e?0:e.length;for(i&&a&&(n=e[++r]);++r<a;)n=t(n,e[r],r,e);return n}function Nt(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function Rt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var Ht=Vt("length");function zt(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function qt(e,t,n,i){for(var r=e.length,a=n+(i?1:-1);i?a--:++a<r;)if(t(e[a],a,e))return a;return-1}function Bt(e,t,n){return t==t?function(e,t,n){var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):qt(e,Wt,n)}function $t(e,t,n,i){for(var r=n-1,a=e.length;++r<a;)if(i(e[r],t))return r;return-1}function Wt(e){return e!=e}function Ut(e,t){var n=null==e?0:e.length;return n?Jt(e,t)/n:m}function Vt(e){return function(t){return null==t?r:t[e]}}function Xt(e){return function(t){return null==e?r:e[t]}}function Gt(e,t,n,i,r){return r(e,(function(e,r,a){n=i?(i=!1,e):t(n,e,r,a)})),n}function Jt(e,t){for(var n,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==r&&(n=n===r?o:n+o)}return n}function Qt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Kt(e){return e?e.slice(0,gn(e)+1).replace(oe,""):e}function Zt(e){return function(t){return e(t)}}function en(e,t){return jt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,i=e.length;++n<i&&Bt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Bt(t,e[n],0)>-1;);return n}var an=Xt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"}),on=Xt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sn(e){return"\\"+ut[e]}function ln(e){return rt.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,i=e.length,r=0,a=[];++n<i;){var o=e[n];o!==t&&o!==s||(e[n]=s,a[r++]=n)}return a}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Ht(e)}function mn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var _n=Xt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vn=function e(t){var n,i=(t=null==t?mt:vn.defaults(mt.Object(),t,vn.pick(mt,ot))).Array,se=t.Date,Ae=t.Error,Se=t.Function,Me=t.Math,Te=t.Object,Le=t.RegExp,Ee=t.String,Ce=t.TypeError,De=i.prototype,Oe=Se.prototype,Ye=Te.prototype,Pe=t["__core-js_shared__"],je=Oe.toString,Ie=Ye.hasOwnProperty,Fe=0,Ne=(n=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Re=Ye.toString,He=je.call(Te),ze=mt._,qe=Le("^"+je.call(Ie).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=vt?t.Buffer:r,$e=t.Symbol,We=t.Uint8Array,Ue=Be?Be.allocUnsafe:r,Ve=un(Te.getPrototypeOf,Te),Xe=Te.create,Ge=Ye.propertyIsEnumerable,Je=De.splice,Qe=$e?$e.isConcatSpreadable:r,Ke=$e?$e.iterator:r,Ze=$e?$e.toStringTag:r,nt=function(){try{var e=ha(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),rt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,ut=se&&se.now!==mt.Date.now&&se.now,ft=t.setTimeout!==mt.setTimeout&&t.setTimeout,pt=Me.ceil,gt=Me.floor,_t=Te.getOwnPropertySymbols,yt=Be?Be.isBuffer:r,bt=t.isFinite,Ht=De.join,Xt=un(Te.keys,Te),yn=Me.max,bn=Me.min,wn=se.now,xn=t.parseInt,kn=Me.random,An=De.reverse,Sn=ha(t,"DataView"),Mn=ha(t,"Map"),Tn=ha(t,"Promise"),Ln=ha(t,"Set"),En=ha(t,"WeakMap"),Cn=ha(Te,"create"),Dn=En&&new En,On={},Yn=Na(Sn),Pn=Na(Mn),jn=Na(Tn),In=Na(Ln),Fn=Na(En),Nn=$e?$e.prototype:r,Rn=Nn?Nn.valueOf:r,Hn=Nn?Nn.toString:r;function zn(e){if(ns(e)&&!Wo(e)&&!(e instanceof Wn)){if(e instanceof $n)return e;if(Ie.call(e,"__wrapped__"))return Ra(e)}return new $n(e)}var qn=function(){function e(){}return function(t){if(!ts(t))return{};if(Xe)return Xe(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Bn(){}function $n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Xn;++t<n;)this.add(e[t])}function Jn(e){var t=this.__data__=new Vn(e);this.size=t.size}function Qn(e,t){var n=Wo(e),i=!n&&$o(e),r=!n&&!i&&Go(e),a=!n&&!i&&!r&&us(e),o=n||i||r||a,s=o?Qt(e.length,Ee):[],l=s.length;for(var c in e)!t&&!Ie.call(e,c)||o&&("length"==c||r&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ya(c,l))||s.push(c);return s}function Kn(e){var t=e.length;return t?e[Gi(0,t-1)]:r}function Zn(e,t){return ja(Cr(e),li(t,0,e.length))}function ei(e){return ja(Cr(e))}function ti(e,t,n){(n!==r&&!zo(e[t],n)||n===r&&!(t in e))&&oi(e,t,n)}function ni(e,t,n){var i=e[t];Ie.call(e,t)&&zo(i,n)&&(n!==r||t in e)||oi(e,t,n)}function ii(e,t){for(var n=e.length;n--;)if(zo(e[n][0],t))return n;return-1}function ri(e,t,n,i){return fi(e,(function(e,r,a){t(i,e,n(e),a)})),i}function ai(e,t){return e&&Dr(t,Os(t),e)}function oi(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function si(e,t){for(var n=-1,a=t.length,o=i(a),s=null==e;++n<a;)o[n]=s?r:Ts(e,t[n]);return o}function li(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function ci(e,t,n,i,a,o){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=a?n(e,i,a,o):n(e)),s!==r)return s;if(!ts(e))return e;var d=Wo(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Cr(e,s)}else{var h=ma(e),f=h==k||h==A;if(Go(e))return Ar(e,l);if(h==T||h==v||f&&!a){if(s=c||f?{}:_a(e),!l)return c?function(e,t){return Dr(e,pa(e),t)}(e,function(e,t){return e&&Dr(t,Ys(t),e)}(s,e)):function(e,t){return Dr(e,fa(e),t)}(e,ai(s,e))}else{if(!ct[h])return a?e:{};s=function(e,t,n){var i=e.constructor;switch(t){case P:return Sr(e);case b:case w:return new i(+e);case j:return function(e,t){var n=t?Sr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case F:case N:case R:case H:case z:case q:case B:case $:return Mr(e,n);case S:return new i;case M:case D:return new i(e);case E:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new i;case O:return r=e,Rn?Te(Rn.call(r)):{}}var r}(e,h,l)}}o||(o=new Jn);var p=o.get(e);if(p)return p;o.set(e,s),ss(e)?e.forEach((function(i){s.add(ci(i,t,n,i,e,o))})):is(e)&&e.forEach((function(i,r){s.set(r,ci(i,t,n,r,e,o))}));var m=d?r:(u?c?aa:ra:c?Ys:Os)(e);return Et(m||e,(function(i,r){m&&(i=e[r=i]),ni(s,r,ci(i,t,n,r,e,o))})),s}function ui(e,t,n){var i=n.length;if(null==e)return!i;for(e=Te(e);i--;){var a=n[i],o=t[a],s=e[a];if(s===r&&!(a in e)||!o(s))return!1}return!0}function di(e,t,n){if("function"!=typeof e)throw new Ce(a);return Da((function(){e.apply(r,n)}),t)}function hi(e,t,n,i){var r=-1,a=Yt,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=jt(t,Zt(n))),i?(a=Pt,o=!1):t.length>=200&&(a=tn,o=!1,t=new Gn(t));e:for(;++r<s;){var u=e[r],d=null==n?u:n(u);if(u=i||0!==u?u:0,o&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else a(t,d,i)||l.push(u)}return l}zn.templateSettings={escape:K,evaluate:Z,interpolate:ee,variable:"",imports:{_:zn}},zn.prototype=Bn.prototype,zn.prototype.constructor=zn,$n.prototype=qn(Bn.prototype),$n.prototype.constructor=$n,Wn.prototype=qn(Bn.prototype),Wn.prototype.constructor=Wn,Un.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Un.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Un.prototype.get=function(e){var t=this.__data__;if(Cn){var n=t[e];return n===o?r:n}return Ie.call(t,e)?t[e]:r},Un.prototype.has=function(e){var t=this.__data__;return Cn?t[e]!==r:Ie.call(t,e)},Un.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Cn&&t===r?o:t,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=ii(t,e);return!(n<0)&&(n==t.length-1?t.pop():Je.call(t,n,1),--this.size,!0)},Vn.prototype.get=function(e){var t=this.__data__,n=ii(t,e);return n<0?r:t[n][1]},Vn.prototype.has=function(e){return ii(this.__data__,e)>-1},Vn.prototype.set=function(e,t){var n=this.__data__,i=ii(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Xn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(Mn||Vn),string:new Un}},Xn.prototype.delete=function(e){var t=ua(this,e).delete(e);return this.size-=t?1:0,t},Xn.prototype.get=function(e){return ua(this,e).get(e)},Xn.prototype.has=function(e){return ua(this,e).has(e)},Xn.prototype.set=function(e,t){var n=ua(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,o),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var i=n.__data__;if(!Mn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xn(i)}return n.set(e,t),this.size=n.size,this};var fi=Pr(wi),pi=Pr(xi,!0);function mi(e,t){var n=!0;return fi(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function gi(e,t,n){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(null!=s&&(l===r?s==s&&!cs(s):n(s,l)))var l=s,c=o}return c}function _i(e,t){var n=[];return fi(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function vi(e,t,n,i,r){var a=-1,o=e.length;for(n||(n=va),r||(r=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?vi(s,t-1,n,i,r):It(r,s):i||(r[r.length]=s)}return r}var yi=jr(),bi=jr(!0);function wi(e,t){return e&&yi(e,t,Os)}function xi(e,t){return e&&bi(e,t,Os)}function ki(e,t){return Ot(t,(function(t){return Ko(e[t])}))}function Ai(e,t){for(var n=0,i=(t=br(t,e)).length;null!=e&&n<i;)e=e[Fa(t[n++])];return n&&n==i?e:r}function Si(e,t,n){var i=t(e);return Wo(e)?i:It(i,n(e))}function Mi(e){return null==e?e===r?"[object Undefined]":"[object Null]":Ze&&Ze in Te(e)?function(e){var t=Ie.call(e,Ze),n=e[Ze];try{e[Ze]=r;var i=!0}catch(e){}var a=Re.call(e);i&&(t?e[Ze]=n:delete e[Ze]);return a}(e):function(e){return Re.call(e)}(e)}function Ti(e,t){return e>t}function Li(e,t){return null!=e&&Ie.call(e,t)}function Ei(e,t){return null!=e&&t in Te(e)}function Ci(e,t,n){for(var a=n?Pt:Yt,o=e[0].length,s=e.length,l=s,c=i(s),u=1/0,d=[];l--;){var h=e[l];l&&t&&(h=jt(h,Zt(t))),u=bn(h.length,u),c[l]=!n&&(t||o>=120&&h.length>=120)?new Gn(l&&h):r}h=e[0];var f=-1,p=c[0];e:for(;++f<o&&d.length<u;){var m=h[f],g=t?t(m):m;if(m=n||0!==m?m:0,!(p?tn(p,g):a(d,g,n))){for(l=s;--l;){var _=c[l];if(!(_?tn(_,g):a(e[l],g,n)))continue e}p&&p.push(g),d.push(m)}}return d}function Di(e,t,n){var i=null==(e=La(e,t=br(t,e)))?e:e[Fa(Ja(t))];return null==i?r:Tt(i,e,n)}function Oi(e){return ns(e)&&Mi(e)==v}function Yi(e,t,n,i,a){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,i,a,o){var s=Wo(e),l=Wo(t),c=s?y:ma(e),u=l?y:ma(t),d=(c=c==v?T:c)==T,h=(u=u==v?T:u)==T,f=c==u;if(f&&Go(e)){if(!Go(t))return!1;s=!0,d=!1}if(f&&!d)return o||(o=new Jn),s||us(e)?na(e,t,n,i,a,o):function(e,t,n,i,r,a,o){switch(n){case j:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!a(new We(e),new We(t)));case b:case w:case M:return zo(+e,+t);case x:return e.name==t.name&&e.message==t.message;case E:case D:return e==t+"";case S:var s=cn;case C:var l=1&i;if(s||(s=hn),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;i|=2,o.set(e,t);var u=na(s(e),s(t),i,r,a,o);return o.delete(e),u;case O:if(Rn)return Rn.call(e)==Rn.call(t)}return!1}(e,t,c,n,i,a,o);if(!(1&n)){var p=d&&Ie.call(e,"__wrapped__"),m=h&&Ie.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,_=m?t.value():t;return o||(o=new Jn),a(g,_,n,i,o)}}if(!f)return!1;return o||(o=new Jn),function(e,t,n,i,a,o){var s=1&n,l=ra(e),c=l.length,u=ra(t),d=u.length;if(c!=d&&!s)return!1;var h=c;for(;h--;){var f=l[h];if(!(s?f in t:Ie.call(t,f)))return!1}var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);var _=s;for(;++h<c;){var v=e[f=l[h]],y=t[f];if(i)var b=s?i(y,v,f,t,e,o):i(v,y,f,e,t,o);if(!(b===r?v===y||a(v,y,n,i,o):b)){g=!1;break}_||(_="constructor"==f)}if(g&&!_){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(g=!1)}return o.delete(e),o.delete(t),g}(e,t,n,i,a,o)}(e,t,n,i,Yi,a))}function Pi(e,t,n,i){var a=n.length,o=a,s=!i;if(null==e)return!o;for(e=Te(e);a--;){var l=n[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){var c=(l=n[a])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===r&&!(c in e))return!1}else{var h=new Jn;if(i)var f=i(u,d,c,e,t,h);if(!(f===r?Yi(d,u,3,i,h):f))return!1}}return!0}function ji(e){return!(!ts(e)||(t=e,Ne&&Ne in t))&&(Ko(e)?qe:ve).test(Na(e));var t}function Ii(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?Wo(e)?qi(e[0],e[1]):zi(e):fl(e)}function Fi(e){if(!Aa(e))return Xt(e);var t=[];for(var n in Te(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ni(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=Aa(e),n=[];for(var i in e)("constructor"!=i||!t&&Ie.call(e,i))&&n.push(i);return n}function Ri(e,t){return e<t}function Hi(e,t){var n=-1,r=Vo(e)?i(e.length):[];return fi(e,(function(e,i,a){r[++n]=t(e,i,a)})),r}function zi(e){var t=da(e);return 1==t.length&&t[0][2]?Ma(t[0][0],t[0][1]):function(n){return n===e||Pi(n,e,t)}}function qi(e,t){return wa(e)&&Sa(t)?Ma(Fa(e),t):function(n){var i=Ts(n,e);return i===r&&i===t?Ls(n,e):Yi(t,i,3)}}function Bi(e,t,n,i,a){e!==t&&yi(t,(function(o,s){if(a||(a=new Jn),ts(o))!function(e,t,n,i,a,o,s){var l=Ea(e,n),c=Ea(t,n),u=s.get(c);if(u)return void ti(e,n,u);var d=o?o(l,c,n+"",e,t,s):r,h=d===r;if(h){var f=Wo(c),p=!f&&Go(c),m=!f&&!p&&us(c);d=c,f||p||m?Wo(l)?d=l:Xo(l)?d=Cr(l):p?(h=!1,d=Ar(c,!0)):m?(h=!1,d=Mr(c,!0)):d=[]:as(c)||$o(c)?(d=l,$o(l)?d=vs(l):ts(l)&&!Ko(l)||(d=_a(c))):h=!1}h&&(s.set(c,d),a(d,c,i,o,s),s.delete(c));ti(e,n,d)}(e,t,s,n,Bi,i,a);else{var l=i?i(Ea(e,s),o,s+"",e,t,a):r;l===r&&(l=o),ti(e,s,l)}}),Ys)}function $i(e,t){var n=e.length;if(n)return ya(t+=t<0?n:0,n)?e[t]:r}function Wi(e,t,n){t=t.length?jt(t,(function(e){return Wo(e)?function(t){return Ai(t,1===e.length?e[0]:e)}:e})):[rl];var i=-1;t=jt(t,Zt(ca()));var r=Hi(e,(function(e,n,r){var a=jt(t,(function(t){return t(e)}));return{criteria:a,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,(function(e,t){return function(e,t,n){var i=-1,r=e.criteria,a=t.criteria,o=r.length,s=n.length;for(;++i<o;){var l=Tr(r[i],a[i]);if(l)return i>=s?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Ui(e,t,n){for(var i=-1,r=t.length,a={};++i<r;){var o=t[i],s=Ai(e,o);n(s,o)&&er(a,br(o,e),s)}return a}function Vi(e,t,n,i){var r=i?$t:Bt,a=-1,o=t.length,s=e;for(e===t&&(t=Cr(t)),n&&(s=jt(e,Zt(n)));++a<o;)for(var l=0,c=t[a],u=n?n(c):c;(l=r(s,u,l,i))>-1;)s!==e&&Je.call(s,l,1),Je.call(e,l,1);return e}function Xi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==a){var a=r;ya(r)?Je.call(e,r,1):hr(e,r)}}return e}function Gi(e,t){return e+gt(kn()*(t-e+1))}function Ji(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Qi(e,t){return Oa(Ta(e,t,rl),e+"")}function Ki(e){return Kn(zs(e))}function Zi(e,t){var n=zs(e);return ja(n,li(t,0,n.length))}function er(e,t,n,i){if(!ts(e))return e;for(var a=-1,o=(t=br(t,e)).length,s=o-1,l=e;null!=l&&++a<o;){var c=Fa(t[a]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=s){var d=l[c];(u=i?i(d,c,l):r)===r&&(u=ts(d)?d:ya(t[a+1])?[]:{})}ni(l,c,u),l=l[c]}return e}var tr=Dn?function(e,t){return Dn.set(e,t),e}:rl,nr=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:rl;function ir(e){return ja(zs(e))}function rr(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=i(a);++r<a;)o[r]=e[r+t];return o}function ar(e,t){var n;return fi(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function or(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;i<r;){var a=i+r>>>1,o=e[a];null!==o&&!cs(o)&&(n?o<=t:o<t)?i=a+1:r=a}return r}return sr(e,t,rl,n)}function sr(e,t,n,i){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!=t,l=null===t,c=cs(t),u=t===r;a<o;){var d=gt((a+o)/2),h=n(e[d]),f=h!==r,p=null===h,m=h==h,g=cs(h);if(s)var _=i||m;else _=u?m&&(i||f):l?m&&f&&(i||!p):c?m&&f&&!p&&(i||!g):!p&&!g&&(i?h<=t:h<t);_?a=d+1:o=d}return bn(o,4294967294)}function lr(e,t){for(var n=-1,i=e.length,r=0,a=[];++n<i;){var o=e[n],s=t?t(o):o;if(!n||!zo(s,l)){var l=s;a[r++]=0===o?0:o}}return a}function cr(e){return"number"==typeof e?e:cs(e)?m:+e}function ur(e){if("string"==typeof e)return e;if(Wo(e))return jt(e,ur)+"";if(cs(e))return Hn?Hn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function dr(e,t,n){var i=-1,r=Yt,a=e.length,o=!0,s=[],l=s;if(n)o=!1,r=Pt;else if(a>=200){var c=t?null:Jr(e);if(c)return hn(c);o=!1,r=tn,l=new Gn}else l=t?[]:s;e:for(;++i<a;){var u=e[i],d=t?t(u):u;if(u=n||0!==u?u:0,o&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else r(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function hr(e,t){return null==(e=La(e,t=br(t,e)))||delete e[Fa(Ja(t))]}function fr(e,t,n,i){return er(e,t,n(Ai(e,t)),i)}function pr(e,t,n,i){for(var r=e.length,a=i?r:-1;(i?a--:++a<r)&&t(e[a],a,e););return n?rr(e,i?0:a,i?a+1:r):rr(e,i?a+1:0,i?r:a)}function mr(e,t){var n=e;return n instanceof Wn&&(n=n.value()),Ft(t,(function(e,t){return t.func.apply(t.thisArg,It([e],t.args))}),n)}function gr(e,t,n){var r=e.length;if(r<2)return r?dr(e[0]):[];for(var a=-1,o=i(r);++a<r;)for(var s=e[a],l=-1;++l<r;)l!=a&&(o[a]=hi(o[a]||s,e[l],t,n));return dr(vi(o,1),t,n)}function _r(e,t,n){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var l=i<o?t[i]:r;n(s,e[i],l)}return s}function vr(e){return Xo(e)?e:[]}function yr(e){return"function"==typeof e?e:rl}function br(e,t){return Wo(e)?e:wa(e,t)?[e]:Ia(ys(e))}var wr=Qi;function xr(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:rr(e,t,n)}var kr=rt||function(e){return mt.clearTimeout(e)};function Ar(e,t){if(t)return e.slice();var n=e.length,i=Ue?Ue(n):new e.constructor(n);return e.copy(i),i}function Sr(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Mr(e,t){var n=t?Sr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Tr(e,t){if(e!==t){var n=e!==r,i=null===e,a=e==e,o=cs(e),s=t!==r,l=null===t,c=t==t,u=cs(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!a)return 1;if(!i&&!o&&!u&&e<t||u&&n&&a&&!i&&!o||l&&n&&a||!s&&a||!c)return-1}return 0}function Lr(e,t,n,r){for(var a=-1,o=e.length,s=n.length,l=-1,c=t.length,u=yn(o-s,0),d=i(c+u),h=!r;++l<c;)d[l]=t[l];for(;++a<s;)(h||a<o)&&(d[n[a]]=e[a]);for(;u--;)d[l++]=e[a++];return d}function Er(e,t,n,r){for(var a=-1,o=e.length,s=-1,l=n.length,c=-1,u=t.length,d=yn(o-l,0),h=i(d+u),f=!r;++a<d;)h[a]=e[a];for(var p=a;++c<u;)h[p+c]=t[c];for(;++s<l;)(f||a<o)&&(h[p+n[s]]=e[a++]);return h}function Cr(e,t){var n=-1,r=e.length;for(t||(t=i(r));++n<r;)t[n]=e[n];return t}function Dr(e,t,n,i){var a=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var l=t[o],c=i?i(n[l],e[l],l,n,e):r;c===r&&(c=e[l]),a?oi(n,l,c):ni(n,l,c)}return n}function Or(e,t){return function(n,i){var r=Wo(n)?Lt:ri,a=t?t():{};return r(n,e,ca(i,2),a)}}function Yr(e){return Qi((function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:r,s=a>2?n[2]:r;for(o=e.length>3&&"function"==typeof o?(a--,o):r,s&&ba(n[0],n[1],s)&&(o=a<3?r:o,a=1),t=Te(t);++i<a;){var l=n[i];l&&e(t,l,i,o)}return t}))}function Pr(e,t){return function(n,i){if(null==n)return n;if(!Vo(n))return e(n,i);for(var r=n.length,a=t?r:-1,o=Te(n);(t?a--:++a<r)&&!1!==i(o[a],a,o););return n}}function jr(e){return function(t,n,i){for(var r=-1,a=Te(t),o=i(t),s=o.length;s--;){var l=o[e?s:++r];if(!1===n(a[l],l,a))break}return t}}function Ir(e){return function(t){var n=ln(t=ys(t))?mn(t):r,i=n?n[0]:t.charAt(0),a=n?xr(n,1).join(""):t.slice(1);return i[e]()+a}}function Fr(e){return function(t){return Ft(Ks($s(t).replace(et,"")),e,"")}}function Nr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=qn(e.prototype),i=e.apply(n,t);return ts(i)?i:n}}function Rr(e){return function(t,n,i){var a=Te(t);if(!Vo(t)){var o=ca(n,3);t=Os(t),n=function(e){return o(a[e],e,a)}}var s=e(t,n,i);return s>-1?a[o?t[s]:s]:r}}function Hr(e){return ia((function(t){var n=t.length,i=n,o=$n.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new Ce(a);if(o&&!l&&"wrapper"==sa(s))var l=new $n([],!0)}for(i=l?i:n;++i<n;){var c=sa(s=t[i]),u="wrapper"==c?oa(s):r;l=u&&xa(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[sa(u[0])].apply(l,u[3]):1==s.length&&xa(s)?l[c]():l.thru(s)}return function(){var e=arguments,i=e[0];if(l&&1==e.length&&Wo(i))return l.plant(i).value();for(var r=0,a=n?t[r].apply(this,e):i;++r<n;)a=t[r].call(this,a);return a}}))}function zr(e,t,n,a,o,s,l,c,u,h){var f=t&d,p=1&t,m=2&t,g=24&t,_=512&t,v=m?r:Nr(e);return function d(){for(var y=arguments.length,b=i(y),w=y;w--;)b[w]=arguments[w];if(g)var x=la(d),k=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(b,x);if(a&&(b=Lr(b,a,o,g)),s&&(b=Er(b,s,l,g)),y-=k,g&&y<h){var A=dn(b,x);return Xr(e,t,zr,d.placeholder,n,b,A,c,u,h-y)}var S=p?n:this,M=m?S[e]:e;return y=b.length,c?b=function(e,t){var n=e.length,i=bn(t.length,n),a=Cr(e);for(;i--;){var o=t[i];e[i]=ya(o,n)?a[o]:r}return e}(b,c):_&&y>1&&b.reverse(),f&&u<y&&(b.length=u),this&&this!==mt&&this instanceof d&&(M=v||Nr(M)),M.apply(S,b)}}function qr(e,t){return function(n,i){return function(e,t,n,i){return wi(e,(function(e,r,a){t(i,n(e),r,a)})),i}(n,e,t(i),{})}}function Br(e,t){return function(n,i){var a;if(n===r&&i===r)return t;if(n!==r&&(a=n),i!==r){if(a===r)return i;"string"==typeof n||"string"==typeof i?(n=ur(n),i=ur(i)):(n=cr(n),i=cr(i)),a=e(n,i)}return a}}function $r(e){return ia((function(t){return t=jt(t,Zt(ca())),Qi((function(n){var i=this;return e(t,(function(e){return Tt(e,i,n)}))}))}))}function Wr(e,t){var n=(t=t===r?" ":ur(t)).length;if(n<2)return n?Ji(t,e):t;var i=Ji(t,pt(e/pn(t)));return ln(t)?xr(mn(i),0,e).join(""):i.slice(0,e)}function Ur(e){return function(t,n,a){return a&&"number"!=typeof a&&ba(t,n,a)&&(n=a=r),t=ps(t),n===r?(n=t,t=0):n=ps(n),function(e,t,n,r){for(var a=-1,o=yn(pt((t-e)/(n||1)),0),s=i(o);o--;)s[r?o:++a]=e,e+=n;return s}(t,n,a=a===r?t<n?1:-1:ps(a),e)}}function Vr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=_s(t),n=_s(n)),e(t,n)}}function Xr(e,t,n,i,a,o,s,l,d,h){var f=8&t;t|=f?c:u,4&(t&=~(f?u:c))||(t&=-4);var p=[e,t,a,f?o:r,f?s:r,f?r:o,f?r:s,l,d,h],m=n.apply(r,p);return xa(e)&&Ca(m,p),m.placeholder=i,Ya(m,e,t)}function Gr(e){var t=Me[e];return function(e,n){if(e=_s(e),(n=null==n?0:bn(ms(n),292))&&bt(e)){var i=(ys(e)+"e").split("e");return+((i=(ys(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Jr=Ln&&1/hn(new Ln([,-0]))[1]==f?function(e){return new Ln(e)}:cl;function Qr(e){return function(t){var n=ma(t);return n==S?cn(t):n==C?fn(t):function(e,t){return jt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Kr(e,t,n,o,f,p,m,g){var _=2&t;if(!_&&"function"!=typeof e)throw new Ce(a);var v=o?o.length:0;if(v||(t&=-97,o=f=r),m=m===r?m:yn(ms(m),0),g=g===r?g:ms(g),v-=f?f.length:0,t&u){var y=o,b=f;o=f=r}var w=_?r:oa(e),x=[e,t,n,o,f,y,b,p,m,g];if(w&&function(e,t){var n=e[1],i=t[1],r=n|i,a=r<131,o=i==d&&8==n||i==d&&n==h&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!a&&!o)return e;1&i&&(e[2]=t[2],r|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Lr(c,l,t[4]):l,e[4]=c?dn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Er(c,l,t[6]):l,e[6]=c?dn(e[5],s):t[6]);(l=t[7])&&(e[7]=l);i&d&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(x,w),e=x[0],t=x[1],n=x[2],o=x[3],f=x[4],!(g=x[9]=x[9]===r?_?0:e.length:yn(x[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)k=8==t||t==l?function(e,t,n){var a=Nr(e);return function o(){for(var s=arguments.length,l=i(s),c=s,u=la(o);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:dn(l,u);return(s-=d.length)<n?Xr(e,t,zr,o.placeholder,r,l,d,r,r,n-s):Tt(this&&this!==mt&&this instanceof o?a:e,this,l)}}(e,t,g):t!=c&&33!=t||f.length?zr.apply(r,x):function(e,t,n,r){var a=1&t,o=Nr(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=r.length,d=i(u+l),h=this&&this!==mt&&this instanceof t?o:e;++c<u;)d[c]=r[c];for(;l--;)d[c++]=arguments[++s];return Tt(h,a?n:this,d)}}(e,t,n,o);else var k=function(e,t,n){var i=1&t,r=Nr(e);return function t(){return(this&&this!==mt&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,n);return Ya((w?tr:Ca)(k,x),e,t)}function Zr(e,t,n,i){return e===r||zo(e,Ye[n])&&!Ie.call(i,n)?t:e}function ea(e,t,n,i,a,o){return ts(e)&&ts(t)&&(o.set(t,e),Bi(e,t,r,ea,o),o.delete(t)),e}function ta(e){return as(e)?r:e}function na(e,t,n,i,a,o){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,p=2&n?new Gn:r;for(o.set(e,t),o.set(t,e);++h<l;){var m=e[h],g=t[h];if(i)var _=s?i(g,m,h,t,e,o):i(m,g,h,e,t,o);if(_!==r){if(_)continue;f=!1;break}if(p){if(!Rt(t,(function(e,t){if(!tn(p,t)&&(m===e||a(m,e,n,i,o)))return p.push(t)}))){f=!1;break}}else if(m!==g&&!a(m,g,n,i,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function ia(e){return Oa(Ta(e,r,Wa),e+"")}function ra(e){return Si(e,Os,fa)}function aa(e){return Si(e,Ys,pa)}var oa=Dn?function(e){return Dn.get(e)}:cl;function sa(e){for(var t=e.name+"",n=On[t],i=Ie.call(On,t)?n.length:0;i--;){var r=n[i],a=r.func;if(null==a||a==e)return r.name}return t}function la(e){return(Ie.call(zn,"placeholder")?zn:e).placeholder}function ca(){var e=zn.iteratee||al;return e=e===al?Ii:e,arguments.length?e(arguments[0],arguments[1]):e}function ua(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function da(e){for(var t=Os(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,Sa(r)]}return t}function ha(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return ji(n)?n:r}var fa=_t?function(e){return null==e?[]:(e=Te(e),Ot(_t(e),(function(t){return Ge.call(e,t)})))}:gl,pa=_t?function(e){for(var t=[];e;)It(t,fa(e)),e=Ve(e);return t}:gl,ma=Mi;function ga(e,t,n){for(var i=-1,r=(t=br(t,e)).length,a=!1;++i<r;){var o=Fa(t[i]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++i!=r?a:!!(r=null==e?0:e.length)&&es(r)&&ya(o,r)&&(Wo(e)||$o(e))}function _a(e){return"function"!=typeof e.constructor||Aa(e)?{}:qn(Ve(e))}function va(e){return Wo(e)||$o(e)||!!(Qe&&e&&e[Qe])}function ya(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function ba(e,t,n){if(!ts(n))return!1;var i=typeof t;return!!("number"==i?Vo(n)&&ya(t,n.length):"string"==i&&t in n)&&zo(n[t],e)}function wa(e,t){if(Wo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Te(t))}function xa(e){var t=sa(e),n=zn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var i=oa(n);return!!i&&e===i[0]}(Sn&&ma(new Sn(new ArrayBuffer(1)))!=j||Mn&&ma(new Mn)!=S||Tn&&ma(Tn.resolve())!=L||Ln&&ma(new Ln)!=C||En&&ma(new En)!=Y)&&(ma=function(e){var t=Mi(e),n=t==T?e.constructor:r,i=n?Na(n):"";if(i)switch(i){case Yn:return j;case Pn:return S;case jn:return L;case In:return C;case Fn:return Y}return t});var ka=Pe?Ko:_l;function Aa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ye)}function Sa(e){return e==e&&!ts(e)}function Ma(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in Te(n)))}}function Ta(e,t,n){return t=yn(t===r?e.length-1:t,0),function(){for(var r=arguments,a=-1,o=yn(r.length-t,0),s=i(o);++a<o;)s[a]=r[t+a];a=-1;for(var l=i(t+1);++a<t;)l[a]=r[a];return l[t]=n(s),Tt(e,this,l)}}function La(e,t){return t.length<2?e:Ai(e,rr(t,0,-1))}function Ea(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ca=Pa(tr),Da=ft||function(e,t){return mt.setTimeout(e,t)},Oa=Pa(nr);function Ya(e,t,n){var i=t+"";return Oa(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Et(_,(function(n){var i="_."+n[0];t&n[1]&&!Yt(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(i),n)))}function Pa(e){var t=0,n=0;return function(){var i=wn(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function ja(e,t){var n=-1,i=e.length,a=i-1;for(t=t===r?i:t;++n<t;){var o=Gi(n,a),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var Ia=function(e){var t=jo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ie,(function(e,n,i,r){t.push(i?r.replace(fe,"$1"):n||e)})),t}));function Fa(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Na(e){if(null!=e){try{return je.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ra(e){if(e instanceof Wn)return e.clone();var t=new $n(e.__wrapped__,e.__chain__);return t.__actions__=Cr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ha=Qi((function(e,t){return Xo(e)?hi(e,vi(t,1,Xo,!0)):[]})),za=Qi((function(e,t){var n=Ja(t);return Xo(n)&&(n=r),Xo(e)?hi(e,vi(t,1,Xo,!0),ca(n,2)):[]})),qa=Qi((function(e,t){var n=Ja(t);return Xo(n)&&(n=r),Xo(e)?hi(e,vi(t,1,Xo,!0),r,n):[]}));function Ba(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:ms(n);return r<0&&(r=yn(i+r,0)),qt(e,ca(t,3),r)}function $a(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i-1;return n!==r&&(a=ms(n),a=n<0?yn(i+a,0):bn(a,i-1)),qt(e,ca(t,3),a,!0)}function Wa(e){return(null==e?0:e.length)?vi(e,1):[]}function Ua(e){return e&&e.length?e[0]:r}var Va=Qi((function(e){var t=jt(e,vr);return t.length&&t[0]===e[0]?Ci(t):[]})),Xa=Qi((function(e){var t=Ja(e),n=jt(e,vr);return t===Ja(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Ci(n,ca(t,2)):[]})),Ga=Qi((function(e){var t=Ja(e),n=jt(e,vr);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Ci(n,r,t):[]}));function Ja(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Qa=Qi(Ka);function Ka(e,t){return e&&e.length&&t&&t.length?Vi(e,t):e}var Za=ia((function(e,t){var n=null==e?0:e.length,i=si(e,t);return Xi(e,jt(t,(function(e){return ya(e,n)?+e:e})).sort(Tr)),i}));function eo(e){return null==e?e:An.call(e)}var to=Qi((function(e){return dr(vi(e,1,Xo,!0))})),no=Qi((function(e){var t=Ja(e);return Xo(t)&&(t=r),dr(vi(e,1,Xo,!0),ca(t,2))})),io=Qi((function(e){var t=Ja(e);return t="function"==typeof t?t:r,dr(vi(e,1,Xo,!0),r,t)}));function ro(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,(function(e){if(Xo(e))return t=yn(e.length,t),!0})),Qt(t,(function(t){return jt(e,Vt(t))}))}function ao(e,t){if(!e||!e.length)return[];var n=ro(e);return null==t?n:jt(n,(function(e){return Tt(t,r,e)}))}var oo=Qi((function(e,t){return Xo(e)?hi(e,t):[]})),so=Qi((function(e){return gr(Ot(e,Xo))})),lo=Qi((function(e){var t=Ja(e);return Xo(t)&&(t=r),gr(Ot(e,Xo),ca(t,2))})),co=Qi((function(e){var t=Ja(e);return t="function"==typeof t?t:r,gr(Ot(e,Xo),r,t)})),uo=Qi(ro);var ho=Qi((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,ao(e,n)}));function fo(e){var t=zn(e);return t.__chain__=!0,t}function po(e,t){return t(e)}var mo=ia((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,a=function(t){return si(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Wn&&ya(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:po,args:[a],thisArg:r}),new $n(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(a)}));var go=Or((function(e,t,n){Ie.call(e,n)?++e[n]:oi(e,n,1)}));var _o=Rr(Ba),vo=Rr($a);function yo(e,t){return(Wo(e)?Et:fi)(e,ca(t,3))}function bo(e,t){return(Wo(e)?Ct:pi)(e,ca(t,3))}var wo=Or((function(e,t,n){Ie.call(e,n)?e[n].push(t):oi(e,n,[t])}));var xo=Qi((function(e,t,n){var r=-1,a="function"==typeof t,o=Vo(e)?i(e.length):[];return fi(e,(function(e){o[++r]=a?Tt(t,e,n):Di(e,t,n)})),o})),ko=Or((function(e,t,n){oi(e,n,t)}));function Ao(e,t){return(Wo(e)?jt:Hi)(e,ca(t,3))}var So=Or((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Mo=Qi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ba(e,t[0],t[1])?t=[]:n>2&&ba(t[0],t[1],t[2])&&(t=[t[0]]),Wi(e,vi(t,1),[])})),To=ut||function(){return mt.Date.now()};function Lo(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Kr(e,d,r,r,r,r,t)}function Eo(e,t){var n;if("function"!=typeof t)throw new Ce(a);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Co=Qi((function(e,t,n){var i=1;if(n.length){var r=dn(n,la(Co));i|=c}return Kr(e,i,t,n,r)})),Do=Qi((function(e,t,n){var i=3;if(n.length){var r=dn(n,la(Do));i|=c}return Kr(t,i,e,n,r)}));function Oo(e,t,n){var i,o,s,l,c,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Ce(a);function m(t){var n=i,a=o;return i=o=r,d=t,l=e.apply(a,n)}function g(e){var n=e-u;return u===r||n>=t||n<0||f&&e-d>=s}function _(){var e=To();if(g(e))return v(e);c=Da(_,function(e){var n=t-(e-u);return f?bn(n,s-(e-d)):n}(e))}function v(e){return c=r,p&&i?m(e):(i=o=r,l)}function y(){var e=To(),n=g(e);if(i=arguments,o=this,u=e,n){if(c===r)return function(e){return d=e,c=Da(_,t),h?m(e):l}(u);if(f)return kr(c),c=Da(_,t),m(u)}return c===r&&(c=Da(_,t)),l}return t=_s(t)||0,ts(n)&&(h=!!n.leading,s=(f="maxWait"in n)?yn(_s(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),y.cancel=function(){c!==r&&kr(c),d=0,i=u=o=c=r},y.flush=function(){return c===r?l:v(To())},y}var Yo=Qi((function(e,t){return di(e,1,t)})),Po=Qi((function(e,t,n){return di(e,_s(t)||0,n)}));function jo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(a);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var o=e.apply(this,i);return n.cache=a.set(r,o)||a,o};return n.cache=new(jo.Cache||Xn),n}function Io(e){if("function"!=typeof e)throw new Ce(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}jo.Cache=Xn;var Fo=wr((function(e,t){var n=(t=1==t.length&&Wo(t[0])?jt(t[0],Zt(ca())):jt(vi(t,1),Zt(ca()))).length;return Qi((function(i){for(var r=-1,a=bn(i.length,n);++r<a;)i[r]=t[r].call(this,i[r]);return Tt(e,this,i)}))})),No=Qi((function(e,t){var n=dn(t,la(No));return Kr(e,c,r,t,n)})),Ro=Qi((function(e,t){var n=dn(t,la(Ro));return Kr(e,u,r,t,n)})),Ho=ia((function(e,t){return Kr(e,h,r,r,r,t)}));function zo(e,t){return e===t||e!=e&&t!=t}var qo=Vr(Ti),Bo=Vr((function(e,t){return e>=t})),$o=Oi(function(){return arguments}())?Oi:function(e){return ns(e)&&Ie.call(e,"callee")&&!Ge.call(e,"callee")},Wo=i.isArray,Uo=wt?Zt(wt):function(e){return ns(e)&&Mi(e)==P};function Vo(e){return null!=e&&es(e.length)&&!Ko(e)}function Xo(e){return ns(e)&&Vo(e)}var Go=yt||_l,Jo=xt?Zt(xt):function(e){return ns(e)&&Mi(e)==w};function Qo(e){if(!ns(e))return!1;var t=Mi(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Ko(e){if(!ts(e))return!1;var t=Mi(e);return t==k||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zo(e){return"number"==typeof e&&e==ms(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var is=kt?Zt(kt):function(e){return ns(e)&&ma(e)==S};function rs(e){return"number"==typeof e||ns(e)&&Mi(e)==M}function as(e){if(!ns(e)||Mi(e)!=T)return!1;var t=Ve(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&je.call(n)==He}var os=At?Zt(At):function(e){return ns(e)&&Mi(e)==E};var ss=St?Zt(St):function(e){return ns(e)&&ma(e)==C};function ls(e){return"string"==typeof e||!Wo(e)&&ns(e)&&Mi(e)==D}function cs(e){return"symbol"==typeof e||ns(e)&&Mi(e)==O}var us=Mt?Zt(Mt):function(e){return ns(e)&&es(e.length)&&!!lt[Mi(e)]};var ds=Vr(Ri),hs=Vr((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Vo(e))return ls(e)?mn(e):Cr(e);if(Ke&&e[Ke])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ke]());var t=ma(e);return(t==S?cn:t==C?hn:zs)(e)}function ps(e){return e?(e=_s(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function gs(e){return e?li(ms(e),0,g):0}function _s(e){if("number"==typeof e)return e;if(cs(e))return m;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=_e.test(e);return n||ye.test(e)?ht(e.slice(2),n?2:8):ge.test(e)?m:+e}function vs(e){return Dr(e,Ys(e))}function ys(e){return null==e?"":ur(e)}var bs=Yr((function(e,t){if(Aa(t)||Vo(t))Dr(t,Os(t),e);else for(var n in t)Ie.call(t,n)&&ni(e,n,t[n])})),ws=Yr((function(e,t){Dr(t,Ys(t),e)})),xs=Yr((function(e,t,n,i){Dr(t,Ys(t),e,i)})),ks=Yr((function(e,t,n,i){Dr(t,Os(t),e,i)})),As=ia(si);var Ss=Qi((function(e,t){e=Te(e);var n=-1,i=t.length,a=i>2?t[2]:r;for(a&&ba(t[0],t[1],a)&&(i=1);++n<i;)for(var o=t[n],s=Ys(o),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===r||zo(d,Ye[u])&&!Ie.call(e,u))&&(e[u]=o[u])}return e})),Ms=Qi((function(e){return e.push(r,ea),Tt(js,r,e)}));function Ts(e,t,n){var i=null==e?r:Ai(e,t);return i===r?n:i}function Ls(e,t){return null!=e&&ga(e,t,Ei)}var Es=qr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Re.call(t)),e[t]=n}),tl(rl)),Cs=qr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Re.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]}),ca),Ds=Qi(Di);function Os(e){return Vo(e)?Qn(e):Fi(e)}function Ys(e){return Vo(e)?Qn(e,!0):Ni(e)}var Ps=Yr((function(e,t,n){Bi(e,t,n)})),js=Yr((function(e,t,n,i){Bi(e,t,n,i)})),Is=ia((function(e,t){var n={};if(null==e)return n;var i=!1;t=jt(t,(function(t){return t=br(t,e),i||(i=t.length>1),t})),Dr(e,aa(e),n),i&&(n=ci(n,7,ta));for(var r=t.length;r--;)hr(n,t[r]);return n}));var Fs=ia((function(e,t){return null==e?{}:function(e,t){return Ui(e,t,(function(t,n){return Ls(e,n)}))}(e,t)}));function Ns(e,t){if(null==e)return{};var n=jt(aa(e),(function(e){return[e]}));return t=ca(t),Ui(e,n,(function(e,n){return t(e,n[0])}))}var Rs=Qr(Os),Hs=Qr(Ys);function zs(e){return null==e?[]:en(e,Os(e))}var qs=Fr((function(e,t,n){return t=t.toLowerCase(),e+(n?Bs(t):t)}));function Bs(e){return Qs(ys(e).toLowerCase())}function $s(e){return(e=ys(e))&&e.replace(we,an).replace(tt,"")}var Ws=Fr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Us=Fr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Vs=Ir("toLowerCase");var Xs=Fr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Gs=Fr((function(e,t,n){return e+(n?" ":"")+Qs(t)}));var Js=Fr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Qs=Ir("toUpperCase");function Ks(e,t,n){return e=ys(e),(t=n?r:t)===r?function(e){return at.test(e)}(e)?function(e){return e.match(it)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Zs=Qi((function(e,t){try{return Tt(e,r,t)}catch(e){return Qo(e)?e:new Ae(e)}})),el=ia((function(e,t){return Et(t,(function(t){t=Fa(t),oi(e,t,Co(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Hr(),il=Hr(!0);function rl(e){return e}function al(e){return Ii("function"==typeof e?e:ci(e,1))}var ol=Qi((function(e,t){return function(n){return Di(n,e,t)}})),sl=Qi((function(e,t){return function(n){return Di(e,n,t)}}));function ll(e,t,n){var i=Os(t),r=ki(t,i);null!=n||ts(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=ki(t,Os(t)));var a=!(ts(n)&&"chain"in n&&!n.chain),o=Ko(e);return Et(r,(function(n){var i=t[n];e[n]=i,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Cr(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,It([this.value()],arguments))})})),e}function cl(){}var ul=$r(jt),dl=$r(Dt),hl=$r(Rt);function fl(e){return wa(e)?Vt(Fa(e)):function(e){return function(t){return Ai(t,e)}}(e)}var pl=Ur(),ml=Ur(!0);function gl(){return[]}function _l(){return!1}var vl=Br((function(e,t){return e+t}),0),yl=Gr("ceil"),bl=Br((function(e,t){return e/t}),1),wl=Gr("floor");var xl,kl=Br((function(e,t){return e*t}),1),Al=Gr("round"),Sl=Br((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Ce(a);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Lo,zn.assign=bs,zn.assignIn=ws,zn.assignInWith=xs,zn.assignWith=ks,zn.at=As,zn.before=Eo,zn.bind=Co,zn.bindAll=el,zn.bindKey=Do,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wo(e)?e:[e]},zn.chain=fo,zn.chunk=function(e,t,n){t=(n?ba(e,t,n):t===r)?1:yn(ms(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var o=0,s=0,l=i(pt(a/t));o<a;)l[s++]=rr(e,o,o+=t);return l},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var a=e[t];a&&(r[i++]=a)}return r},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=i(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return It(Wo(n)?Cr(n):[n],vi(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=ca();return e=t?jt(e,(function(e){if("function"!=typeof e[1])throw new Ce(a);return[n(e[0]),e[1]]})):[],Qi((function(n){for(var i=-1;++i<t;){var r=e[i];if(Tt(r[0],this,n))return Tt(r[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Os(e);return function(n){return ui(n,e,t)}}(ci(e,1))},zn.constant=tl,zn.countBy=go,zn.create=function(e,t){var n=qn(e);return null==t?n:ai(n,t)},zn.curry=function e(t,n,i){var a=Kr(t,8,r,r,r,r,r,n=i?r:n);return a.placeholder=e.placeholder,a},zn.curryRight=function e(t,n,i){var a=Kr(t,l,r,r,r,r,r,n=i?r:n);return a.placeholder=e.placeholder,a},zn.debounce=Oo,zn.defaults=Ss,zn.defaultsDeep=Ms,zn.defer=Yo,zn.delay=Po,zn.difference=Ha,zn.differenceBy=za,zn.differenceWith=qa,zn.drop=function(e,t,n){var i=null==e?0:e.length;return i?rr(e,(t=n||t===r?1:ms(t))<0?0:t,i):[]},zn.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?rr(e,0,(t=i-(t=n||t===r?1:ms(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?pr(e,ca(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?pr(e,ca(t,3),!0):[]},zn.fill=function(e,t,n,i){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&ba(e,t,n)&&(n=0,i=a),function(e,t,n,i){var a=e.length;for((n=ms(n))<0&&(n=-n>a?0:a+n),(i=i===r||i>a?a:ms(i))<0&&(i+=a),i=n>i?0:gs(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},zn.filter=function(e,t){return(Wo(e)?Ot:_i)(e,ca(t,3))},zn.flatMap=function(e,t){return vi(Ao(e,t),1)},zn.flatMapDeep=function(e,t){return vi(Ao(e,t),f)},zn.flatMapDepth=function(e,t,n){return n=n===r?1:ms(n),vi(Ao(e,t),n)},zn.flatten=Wa,zn.flattenDeep=function(e){return(null==e?0:e.length)?vi(e,f):[]},zn.flattenDepth=function(e,t){return(null==e?0:e.length)?vi(e,t=t===r?1:ms(t)):[]},zn.flip=function(e){return Kr(e,512)},zn.flow=nl,zn.flowRight=il,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},zn.functions=function(e){return null==e?[]:ki(e,Os(e))},zn.functionsIn=function(e){return null==e?[]:ki(e,Ys(e))},zn.groupBy=wo,zn.initial=function(e){return(null==e?0:e.length)?rr(e,0,-1):[]},zn.intersection=Va,zn.intersectionBy=Xa,zn.intersectionWith=Ga,zn.invert=Es,zn.invertBy=Cs,zn.invokeMap=xo,zn.iteratee=al,zn.keyBy=ko,zn.keys=Os,zn.keysIn=Ys,zn.map=Ao,zn.mapKeys=function(e,t){var n={};return t=ca(t,3),wi(e,(function(e,i,r){oi(n,t(e,i,r),e)})),n},zn.mapValues=function(e,t){var n={};return t=ca(t,3),wi(e,(function(e,i,r){oi(n,i,t(e,i,r))})),n},zn.matches=function(e){return zi(ci(e,1))},zn.matchesProperty=function(e,t){return qi(e,ci(t,1))},zn.memoize=jo,zn.merge=Ps,zn.mergeWith=js,zn.method=ol,zn.methodOf=sl,zn.mixin=ll,zn.negate=Io,zn.nthArg=function(e){return e=ms(e),Qi((function(t){return $i(t,e)}))},zn.omit=Is,zn.omitBy=function(e,t){return Ns(e,Io(ca(t)))},zn.once=function(e){return Eo(2,e)},zn.orderBy=function(e,t,n,i){return null==e?[]:(Wo(t)||(t=null==t?[]:[t]),Wo(n=i?r:n)||(n=null==n?[]:[n]),Wi(e,t,n))},zn.over=ul,zn.overArgs=Fo,zn.overEvery=dl,zn.overSome=hl,zn.partial=No,zn.partialRight=Ro,zn.partition=So,zn.pick=Fs,zn.pickBy=Ns,zn.property=fl,zn.propertyOf=function(e){return function(t){return null==e?r:Ai(e,t)}},zn.pull=Qa,zn.pullAll=Ka,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Vi(e,t,ca(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Vi(e,t,r,n):e},zn.pullAt=Za,zn.range=pl,zn.rangeRight=ml,zn.rearg=Ho,zn.reject=function(e,t){return(Wo(e)?Ot:_i)(e,Io(ca(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],a=e.length;for(t=ca(t,3);++i<a;){var o=e[i];t(o,i,e)&&(n.push(o),r.push(i))}return Xi(e,r),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Ce(a);return Qi(e,t=t===r?t:ms(t))},zn.reverse=eo,zn.sampleSize=function(e,t,n){return t=(n?ba(e,t,n):t===r)?1:ms(t),(Wo(e)?Zn:Zi)(e,t)},zn.set=function(e,t,n){return null==e?e:er(e,t,n)},zn.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:er(e,t,n,i)},zn.shuffle=function(e){return(Wo(e)?ei:ir)(e)},zn.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ba(e,t,n)?(t=0,n=i):(t=null==t?0:ms(t),n=n===r?i:ms(n)),rr(e,t,n)):[]},zn.sortBy=Mo,zn.sortedUniq=function(e){return e&&e.length?lr(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?lr(e,ca(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&ba(e,t,n)&&(t=n=r),(n=n===r?g:n>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=ur(t))&&ln(e)?xr(mn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Ce(a);return t=null==t?0:yn(ms(t),0),Qi((function(n){var i=n[t],r=xr(n,0,t);return i&&It(r,i),Tt(e,this,r)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?rr(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?rr(e,0,(t=n||t===r?1:ms(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?rr(e,(t=i-(t=n||t===r?1:ms(t)))<0?0:t,i):[]},zn.takeRightWhile=function(e,t){return e&&e.length?pr(e,ca(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?pr(e,ca(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new Ce(a);return ts(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Oo(e,t,{leading:i,maxWait:t,trailing:r})},zn.thru=po,zn.toArray=fs,zn.toPairs=Rs,zn.toPairsIn=Hs,zn.toPath=function(e){return Wo(e)?jt(e,Fa):cs(e)?[e]:Cr(Ia(ys(e)))},zn.toPlainObject=vs,zn.transform=function(e,t,n){var i=Wo(e),r=i||Go(e)||us(e);if(t=ca(t,4),null==n){var a=e&&e.constructor;n=r?i?new a:[]:ts(e)&&Ko(a)?qn(Ve(e)):{}}return(r?Et:wi)(e,(function(e,i,r){return t(n,e,i,r)})),n},zn.unary=function(e){return Lo(e,1)},zn.union=to,zn.unionBy=no,zn.unionWith=io,zn.uniq=function(e){return e&&e.length?dr(e):[]},zn.uniqBy=function(e,t){return e&&e.length?dr(e,ca(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?dr(e,r,t):[]},zn.unset=function(e,t){return null==e||hr(e,t)},zn.unzip=ro,zn.unzipWith=ao,zn.update=function(e,t,n){return null==e?e:fr(e,t,yr(n))},zn.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:fr(e,t,yr(n),i)},zn.values=zs,zn.valuesIn=function(e){return null==e?[]:en(e,Ys(e))},zn.without=oo,zn.words=Ks,zn.wrap=function(e,t){return No(yr(t),e)},zn.xor=so,zn.xorBy=lo,zn.xorWith=co,zn.zip=uo,zn.zipObject=function(e,t){return _r(e||[],t||[],ni)},zn.zipObjectDeep=function(e,t){return _r(e||[],t||[],er)},zn.zipWith=ho,zn.entries=Rs,zn.entriesIn=Hs,zn.extend=ws,zn.extendWith=xs,ll(zn,zn),zn.add=vl,zn.attempt=Zs,zn.camelCase=qs,zn.capitalize=Bs,zn.ceil=yl,zn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=_s(n))==n?n:0),t!==r&&(t=(t=_s(t))==t?t:0),li(_s(e),t,n)},zn.clone=function(e){return ci(e,4)},zn.cloneDeep=function(e){return ci(e,5)},zn.cloneDeepWith=function(e,t){return ci(e,5,t="function"==typeof t?t:r)},zn.cloneWith=function(e,t){return ci(e,4,t="function"==typeof t?t:r)},zn.conformsTo=function(e,t){return null==t||ui(e,t,Os(t))},zn.deburr=$s,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=bl,zn.endsWith=function(e,t,n){e=ys(e),t=ur(t);var i=e.length,a=n=n===r?i:li(ms(n),0,i);return(n-=t.length)>=0&&e.slice(n,a)==t},zn.eq=zo,zn.escape=function(e){return(e=ys(e))&&Q.test(e)?e.replace(G,on):e},zn.escapeRegExp=function(e){return(e=ys(e))&&ae.test(e)?e.replace(re,"\\$&"):e},zn.every=function(e,t,n){var i=Wo(e)?Dt:mi;return n&&ba(e,t,n)&&(t=r),i(e,ca(t,3))},zn.find=_o,zn.findIndex=Ba,zn.findKey=function(e,t){return zt(e,ca(t,3),wi)},zn.findLast=vo,zn.findLastIndex=$a,zn.findLastKey=function(e,t){return zt(e,ca(t,3),xi)},zn.floor=wl,zn.forEach=yo,zn.forEachRight=bo,zn.forIn=function(e,t){return null==e?e:yi(e,ca(t,3),Ys)},zn.forInRight=function(e,t){return null==e?e:bi(e,ca(t,3),Ys)},zn.forOwn=function(e,t){return e&&wi(e,ca(t,3))},zn.forOwnRight=function(e,t){return e&&xi(e,ca(t,3))},zn.get=Ts,zn.gt=qo,zn.gte=Bo,zn.has=function(e,t){return null!=e&&ga(e,t,Li)},zn.hasIn=Ls,zn.head=Ua,zn.identity=rl,zn.includes=function(e,t,n,i){e=Vo(e)?e:zs(e),n=n&&!i?ms(n):0;var r=e.length;return n<0&&(n=yn(r+n,0)),ls(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&Bt(e,t,n)>-1},zn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:ms(n);return r<0&&(r=yn(i+r,0)),Bt(e,t,r)},zn.inRange=function(e,t,n){return t=ps(t),n===r?(n=t,t=0):n=ps(n),function(e,t,n){return e>=bn(t,n)&&e<yn(t,n)}(e=_s(e),t,n)},zn.invoke=Ds,zn.isArguments=$o,zn.isArray=Wo,zn.isArrayBuffer=Uo,zn.isArrayLike=Vo,zn.isArrayLikeObject=Xo,zn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Mi(e)==b},zn.isBuffer=Go,zn.isDate=Jo,zn.isElement=function(e){return ns(e)&&1===e.nodeType&&!as(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Vo(e)&&(Wo(e)||"string"==typeof e||"function"==typeof e.splice||Go(e)||us(e)||$o(e)))return!e.length;var t=ma(e);if(t==S||t==C)return!e.size;if(Aa(e))return!Fi(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Yi(e,t)},zn.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?Yi(e,t,r,n):!!i},zn.isError=Qo,zn.isFinite=function(e){return"number"==typeof e&&bt(e)},zn.isFunction=Ko,zn.isInteger=Zo,zn.isLength=es,zn.isMap=is,zn.isMatch=function(e,t){return e===t||Pi(e,t,da(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Pi(e,t,da(t),n)},zn.isNaN=function(e){return rs(e)&&e!=+e},zn.isNative=function(e){if(ka(e))throw new Ae("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ji(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=rs,zn.isObject=ts,zn.isObjectLike=ns,zn.isPlainObject=as,zn.isRegExp=os,zn.isSafeInteger=function(e){return Zo(e)&&e>=-9007199254740991&&e<=p},zn.isSet=ss,zn.isString=ls,zn.isSymbol=cs,zn.isTypedArray=us,zn.isUndefined=function(e){return e===r},zn.isWeakMap=function(e){return ns(e)&&ma(e)==Y},zn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Mi(e)},zn.join=function(e,t){return null==e?"":Ht.call(e,t)},zn.kebabCase=Ws,zn.last=Ja,zn.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i;return n!==r&&(a=(a=ms(n))<0?yn(i+a,0):bn(a,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,a):qt(e,Wt,a,!0)},zn.lowerCase=Us,zn.lowerFirst=Vs,zn.lt=ds,zn.lte=hs,zn.max=function(e){return e&&e.length?gi(e,rl,Ti):r},zn.maxBy=function(e,t){return e&&e.length?gi(e,ca(t,2),Ti):r},zn.mean=function(e){return Ut(e,rl)},zn.meanBy=function(e,t){return Ut(e,ca(t,2))},zn.min=function(e){return e&&e.length?gi(e,rl,Ri):r},zn.minBy=function(e,t){return e&&e.length?gi(e,ca(t,2),Ri):r},zn.stubArray=gl,zn.stubFalse=_l,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=kl,zn.nth=function(e,t){return e&&e.length?$i(e,ms(t)):r},zn.noConflict=function(){return mt._===this&&(mt._=ze),this},zn.noop=cl,zn.now=To,zn.pad=function(e,t,n){e=ys(e);var i=(t=ms(t))?pn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Wr(gt(r),n)+e+Wr(pt(r),n)},zn.padEnd=function(e,t,n){e=ys(e);var i=(t=ms(t))?pn(e):0;return t&&i<t?e+Wr(t-i,n):e},zn.padStart=function(e,t,n){e=ys(e);var i=(t=ms(t))?pn(e):0;return t&&i<t?Wr(t-i,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(ys(e).replace(oe,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ba(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=ps(e),t===r?(t=e,e=0):t=ps(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var a=kn();return bn(e+a*(t-e+dt("1e-"+((a+"").length-1))),t)}return Gi(e,t)},zn.reduce=function(e,t,n){var i=Wo(e)?Ft:Gt,r=arguments.length<3;return i(e,ca(t,4),n,r,fi)},zn.reduceRight=function(e,t,n){var i=Wo(e)?Nt:Gt,r=arguments.length<3;return i(e,ca(t,4),n,r,pi)},zn.repeat=function(e,t,n){return t=(n?ba(e,t,n):t===r)?1:ms(t),Ji(ys(e),t)},zn.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var i=-1,a=(t=br(t,e)).length;for(a||(a=1,e=r);++i<a;){var o=null==e?r:e[Fa(t[i])];o===r&&(i=a,o=n),e=Ko(o)?o.call(e):o}return e},zn.round=Al,zn.runInContext=e,zn.sample=function(e){return(Wo(e)?Kn:Ki)(e)},zn.size=function(e){if(null==e)return 0;if(Vo(e))return ls(e)?pn(e):e.length;var t=ma(e);return t==S||t==C?e.size:Fi(e).length},zn.snakeCase=Xs,zn.some=function(e,t,n){var i=Wo(e)?Rt:ar;return n&&ba(e,t,n)&&(t=r),i(e,ca(t,3))},zn.sortedIndex=function(e,t){return or(e,t)},zn.sortedIndexBy=function(e,t,n){return sr(e,t,ca(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=or(e,t);if(i<n&&zo(e[i],t))return i}return-1},zn.sortedLastIndex=function(e,t){return or(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return sr(e,t,ca(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=or(e,t,!0)-1;if(zo(e[n],t))return n}return-1},zn.startCase=Gs,zn.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:li(ms(n),0,e.length),t=ur(t),e.slice(n,n+t.length)==t},zn.subtract=Sl,zn.sum=function(e){return e&&e.length?Jt(e,rl):0},zn.sumBy=function(e,t){return e&&e.length?Jt(e,ca(t,2)):0},zn.template=function(e,t,n){var i=zn.templateSettings;n&&ba(e,t,n)&&(t=r),e=ys(e),t=xs({},t,i,Zr);var a,o,s=xs({},t.imports,i.imports,Zr),l=Os(s),c=en(s,l),u=0,d=t.interpolate||xe,h="__p += '",f=Le((t.escape||xe).source+"|"+d.source+"|"+(d===ee?pe:xe).source+"|"+(t.evaluate||xe).source+"|$","g"),p="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(f,(function(t,n,i,r,s,l){return i||(i=r),h+=e.slice(u,l).replace(ke,sn),n&&(a=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),h+="';\n";var m=Ie.call(t,"variable")&&t.variable;if(m){if(he.test(m))throw new Ae("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(W,""):h).replace(U,"$1").replace(V,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Zs((function(){return Se(l,p+"return "+h).apply(r,c)}));if(g.source=h,Qo(g))throw g;return g},zn.times=function(e,t){if((e=ms(e))<1||e>p)return[];var n=g,i=bn(e,g);t=ca(t),e-=g;for(var r=Qt(i,t);++n<e;)t(n);return r},zn.toFinite=ps,zn.toInteger=ms,zn.toLength=gs,zn.toLower=function(e){return ys(e).toLowerCase()},zn.toNumber=_s,zn.toSafeInteger=function(e){return e?li(ms(e),-9007199254740991,p):0===e?e:0},zn.toString=ys,zn.toUpper=function(e){return ys(e).toUpperCase()},zn.trim=function(e,t,n){if((e=ys(e))&&(n||t===r))return Kt(e);if(!e||!(t=ur(t)))return e;var i=mn(e),a=mn(t);return xr(i,nn(i,a),rn(i,a)+1).join("")},zn.trimEnd=function(e,t,n){if((e=ys(e))&&(n||t===r))return e.slice(0,gn(e)+1);if(!e||!(t=ur(t)))return e;var i=mn(e);return xr(i,0,rn(i,mn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=ys(e))&&(n||t===r))return e.replace(oe,"");if(!e||!(t=ur(t)))return e;var i=mn(e);return xr(i,nn(i,mn(t))).join("")},zn.truncate=function(e,t){var n=30,i="...";if(ts(t)){var a="separator"in t?t.separator:a;n="length"in t?ms(t.length):n,i="omission"in t?ur(t.omission):i}var o=(e=ys(e)).length;if(ln(e)){var s=mn(e);o=s.length}if(n>=o)return e;var l=n-pn(i);if(l<1)return i;var c=s?xr(s,0,l).join(""):e.slice(0,l);if(a===r)return c+i;if(s&&(l+=c.length-l),os(a)){if(e.slice(l).search(a)){var u,d=c;for(a.global||(a=Le(a.source,ys(me.exec(a))+"g")),a.lastIndex=0;u=a.exec(d);)var h=u.index;c=c.slice(0,h===r?l:h)}}else if(e.indexOf(ur(a),l)!=l){var f=c.lastIndexOf(a);f>-1&&(c=c.slice(0,f))}return c+i},zn.unescape=function(e){return(e=ys(e))&&J.test(e)?e.replace(X,_n):e},zn.uniqueId=function(e){var t=++Fe;return ys(e)+t},zn.upperCase=Js,zn.upperFirst=Qs,zn.each=yo,zn.eachRight=bo,zn.first=Ua,ll(zn,(xl={},wi(zn,(function(e,t){Ie.call(zn.prototype,t)||(xl[t]=e)})),xl),{chain:!1}),zn.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Et(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===r?1:yn(ms(n),0);var i=this.__filtered__&&!t?new Wn(this):this.clone();return i.__filtered__?i.__takeCount__=bn(n,i.__takeCount__):i.__views__.push({size:bn(n,g),type:e+(i.__dir__<0?"Right":"")}),i},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Et(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ca(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),Et(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Et(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(rl)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Qi((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Di(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Io(ca(e)))},Wn.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(g)},wi(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=zn[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);a&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof Wn,c=s[0],u=l||Wo(t),d=function(e){var t=a.apply(zn,It([e],s));return i&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=o&&!h,m=l&&!f;if(!o&&u){t=m?t:new Wn(this);var g=e.apply(t,s);return g.__actions__.push({func:po,args:[d],thisArg:r}),new $n(g,h)}return p&&m?e.apply(this,s):(g=this.thru(d),p?i?g.value()[0]:g.value():g)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(e){var t=De[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Wo(r)?r:[],e)}return this[n]((function(n){return t.apply(Wo(n)?n:[],e)}))}})),wi(Wn.prototype,(function(e,t){var n=zn[t];if(n){var i=n.name+"";Ie.call(On,i)||(On[i]=[]),On[i].push({name:t,func:n})}})),On[zr(r,2).name]=[{name:"wrapper",func:r}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Cr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Cr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Cr(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wo(e),i=t<0,r=n?e.length:0,a=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var a=n[i],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=bn(t,e+o);break;case"takeRight":e=yn(e,t-o)}}return{start:e,end:t}}(0,r,this.__views__),o=a.start,s=a.end,l=s-o,c=i?s:o-1,u=this.__iteratees__,d=u.length,h=0,f=bn(l,this.__takeCount__);if(!n||!i&&r==l&&f==l)return mr(e,this.__actions__);var p=[];e:for(;l--&&h<f;){for(var m=-1,g=e[c+=t];++m<d;){var _=u[m],v=_.iteratee,y=_.type,b=v(g);if(2==y)g=b;else if(!b){if(1==y)continue e;break e}}p[h++]=g}return p},zn.prototype.at=mo,zn.prototype.chain=function(){return fo(this)},zn.prototype.commit=function(){return new $n(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===r&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var i=Ra(n);i.__index__=0,i.__values__=r,t?a.__wrapped__=i:t=i;var a=i;n=n.__wrapped__}return a.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:po,args:[eo],thisArg:r}),new $n(t,this.__chain__)}return this.thru(eo)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return mr(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Ke&&(zn.prototype[Ke]=function(){return this}),zn}();mt._=vn,(i=function(){return vn}.call(t,n,t,e))===r||(e.exports=i)}.call(this)},5705:()=>{},7936:()=>{},2786:function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(381))},4130:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(i,r,a,o){var s=t(i),l=n[e][t(i)];return 2===s&&(l=l[r?0:1]),l.replace(/%d/i,i)}},r=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(381))},6135:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(381))},6440:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,r,a,o){var s=n(t),l=i[e][n(t)];return 2===s&&(l=l[r?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(381))},7702:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(381))},6040:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(381))},7100:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(381))},867:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,o){var s=i(t),l=r[e][i(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(381))},1083:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,i=e%100-n,r=e>=100?100:null;return e+(t[n]||t[i]||t[r])},week:{dow:1,doy:7}})}(n(381))},9808:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,i){return"m"===i?n?"хвіліна":"хвіліну":"h"===i?n?"гадзіна":"гадзіну":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[i],+e)}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(381))},8338:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(381))},7438:function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(381))},6225:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(381))},8905:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(381))},1560:function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(381))},1278:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+r({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){switch(i(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function i(e){return e>9?i(e%10):e}function r(e,t){return 2===t?a(e):e}function a(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var o=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],s=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,l=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,c=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,u=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],d=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],h=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:h,fullWeekdaysParse:u,shortWeekdaysParse:d,minWeekdaysParse:h,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:l,monthsShortStrictRegex:c,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(381))},622:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return i+=1===e?"dan":"dana";case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(381))},2468:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(381))},5822:function(e,t,n){!function(e){"use strict";var t={format:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),standalone:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_")},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),i=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],r=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"pár sekund":"pár sekundami";case"ss":return t||i?r+(a(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?r+(a(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(a(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?r+(a(e)?"dny":"dní"):r+"dny";case"M":return t||i?"měsíc":"měsícem";case"MM":return t||i?r+(a(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?r+(a(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},877:function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(381))},7373:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(381))},4780:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},217:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},894:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},9740:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},5300:function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(381))},837:function(e,t,n){!function(e){"use strict";function t(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,n){var i=this._calendarEl[e],r=n&&n.hours();return t(i)&&(i=i.apply(n)),i.replace("{}",r%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(381))},8348:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(381))},7925:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(381))},2243:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(381))},6436:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(381))},7207:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(381))},4175:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(381))},6319:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(381))},1662:function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(381))},2915:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(381))},5251:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},6112:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(381))},1146:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(381))},5655:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(381))},5603:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},7763:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(381))},6959:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(381))},1897:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function i(e,t,n,i){var a="";switch(n){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"ss":a=i?"sekunnin":"sekuntia";break;case"m":return i?"minuutin":"minuutti";case"mm":a=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":a=i?"tunnin":"tuntia";break;case"d":return i?"päivän":"päivä";case"dd":a=i?"päivän":"päivää";break;case"M":return i?"kuukauden":"kuukausi";case"MM":a=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":a=i?"vuoden":"vuotta"}return a=r(e,i)+" "+a}function r(e,i){return e<10?i?n[e]:t[e]:e}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},2549:function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(381))},4694:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},3049:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(381))},2330:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(381))},4470:function(e,t,n){!function(e){"use strict";var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,i=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,r=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(381))},5044:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(381))},9295:function(e,t,n){!function(e){"use strict";var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],i=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],r=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],a=["Do","Lu","Má","Cé","Dé","A","Sa"];e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:i,weekdaysShort:r,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(381))},2101:function(e,t,n){!function(e){"use strict";var t=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],i=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],r=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],a=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];e.defineLocale("gd",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:i,weekdaysShort:r,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(381))},8794:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},7884:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return i?r[n][0]:r[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){return"D"===t?e+"वेर":e},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n(381))},3168:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return i?r[n][0]:r[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(381))},5349:function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(381))},4206:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(381))},94:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},i=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],r=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:i,longMonthsParse:i,shortMonthsParse:r,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(381))},316:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return i+=1===e?"dan":"dana";case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(381))},2138:function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,i){var r=e;switch(n){case"s":return i||t?"néhány másodperc":"néhány másodperce";case"ss":return r+(i||t)?" másodperc":" másodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return r+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" óra":" órája");case"hh":return r+(i||t?" óra":" órája");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return r+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" hónap":" hónapja");case"MM":return r+(i||t?" hónap":" hónapja");case"y":return"egy"+(i||t?" év":" éve");case"yy":return r+(i||t?" év":" éve")}return""}function i(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},1423:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(381))},9218:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(381))},135:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,i,r){var a=e+" ";switch(i){case"s":return n||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||r?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||r?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||r?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(r?"daga":"dögum"):n?a+"dagur":a+(r?"dag":"degi");case"M":return n?"mánuður":r?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(r?"mánuði":"mánuðum"):n?a+"mánuður":a+(r?"mánuð":"mánuði");case"y":return n||r?"ár":"ári";case"yy":return t(e)?a+(n||r?"ár":"árum"):a+(n||r?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},150:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},626:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},9183:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(381))},4286:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(381))},2105:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(381))},7772:function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var n=e%10,i=e>=100?100:null;return e+(t[e]||t[n]||t[i])},week:{dow:1,doy:7}})}(n(381))},8758:function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(381))},9282:function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(381))},3730:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(381))},1408:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:i,monthsShort:i,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(381))},3291:function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var n=e%10,i=e>=100?100:null;return e+(t[e]||t[n]||t[i])},week:{dow:1,doy:7}})}(n(381))},6841:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[n][0]:r[n][1]}function n(e){return r(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function i(e){return r(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function r(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return r(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return r(e)}return r(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:i,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},5466:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(381))},7010:function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,i){return t?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"}function i(e,t,n,i){return t?a(n)[0]:i?a(n)[1]:a(n)[2]}function r(e){return e%10==0||e>10&&e<20}function a(e){return t[e].split("_")}function o(e,t,n,o){var s=e+" ";return 1===e?s+i(e,t,n[0],o):t?s+(r(e)?a(n)[1]:a(n)[0]):o?s+a(n)[1]:s+(r(e)?a(n)[1]:a(n)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:o,m:i,mm:o,h:i,hh:o,d:i,dd:o,M:i,MM:o,y:i,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(381))},7595:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,r){return e+" "+n(t[r],e,i)}function r(e,i,r){return n(t[r],e,i)}function a(e,t){return t?"dažas sekundes":"dažām sekundēm"}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:a,ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},9861:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(381))},5493:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},5966:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(381))},7341:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(381))},5115:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(381))},370:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function i(e,t,n,i){var r="";if(t)switch(n){case"s":r="काही सेकंद";break;case"ss":r="%d सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे"}else switch(n){case"s":r="काही सेकंदां";break;case"ss":r="%d सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां"}return r.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(381))},1237:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(381))},9847:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(381))},2126:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},6165:function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(381))},4924:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},6744:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(381))},9814:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(381))},3901:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(381))},3877:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},2135:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(381))},5858:function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(381))},4495:function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),i=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function a(e,t,n){var i=e+" ";switch(n){case"ss":return i+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(r(e)?"godziny":"godzin");case"ww":return i+(r(e)?"tygodnie":"tygodni");case"MM":return i+(r(e)?"miesiące":"miesięcy");case"yy":return i+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return e?/D MMMM/.test(i)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:a,m:a,mm:a,h:a,hh:a,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:a,M:"miesiąc",MM:a,y:"rok",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},7971:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(381))},9520:function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},6459:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(381))},1793:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,i){return"m"===i?n?"минута":"минуту":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[i],+e)}var i=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(381))},950:function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(381))},490:function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},124:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(381))},4249:function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function r(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":return t||r?a+(i(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?a+(i(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?a+(i(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?a+(i(e)?"dni":"dní"):a+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?a+(i(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?a+(i(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},4985:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+=1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return r+=1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return r+=1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami";case"d":return t||i?"en dan":"enim dnem";case"dd":return r+=1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi";case"M":return t||i?"en mesec":"enim mesecem";case"MM":return r+=1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci";case"y":return t||i?"eno leto":"enim letom";case"yy":return r+=1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(381))},1104:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},9915:function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,i,r){var a,o=t.words[i];return 1===i.length?"y"===i&&n?"једна година":r||n?o[0]:o[1]:(a=t.correctGrammaticalCase(e,o),"yy"===i&&n&&"годину"===a?e+" година":e+" "+a)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(381))},9131:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,i,r){var a,o=t.words[i];return 1===i.length?"y"===i&&n?"jedna godina":r||n?o[0]:o[1]:(a=t.correctGrammaticalCase(e,o),"yy"===i&&n&&"godinu"===a?e+" godina":e+" "+a)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(381))},5893:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(381))},8760:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(381))},1172:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(381))},7333:function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(381))},3110:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(381))},2095:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(381))},7321:function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var n=e%10,i=e>=100?100:null;return e+(t[e]||t[n]||t[i])},week:{dow:1,doy:7}})}(n(381))},9041:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(381))},9005:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var i=e%10,r=e%100-i,a=e>=100?100:null;return e+(t[i]||t[r]||t[a])}},week:{dow:1,doy:7}})}(n(381))},5768:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(381))},9444:function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"}function i(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"}function r(e,t,n,i){var r=a(e);switch(n){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function a(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),r=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),i>0&&(a+=(""!==a?" ":"")+t[i]+"maH"),r>0&&(a+=(""!==a?" ":"")+t[r]),""===a?"pagh":a}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:i,s:"puS lup",ss:r,m:"wa’ tup",mm:r,h:"wa’ rep",hh:r,d:"wa’ jaj",dd:r,M:"wa’ jar",MM:r,y:"wa’ DIS",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},2397:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var i=e%10,r=e%100-i,a=e>=100?100:null;return e+(t[i]||t[r]||t[a])}},week:{dow:1,doy:7}})}(n(381))},8254:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i||t?r[n][0]:r[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},699:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(381))},1106:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(381))},9288:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"يېرىم كېچە":i<900?"سەھەر":i<1130?"چۈشتىن بۇرۇن":i<1230?"چۈش":i<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(381))},7691:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,i){return"m"===i?n?"хвилина":"хвилину":"h"===i?n?"година":"годину":e+" "+t({ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[i],+e)}function i(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative}function r(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:i,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:r("[Сьогодні "),nextDay:r("[Завтра "),lastDay:r("[Вчора "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[Минулої] dddd [").call(this);case 1:case 2:case 4:return r("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(381))},3795:function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(381))},588:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(381))},6791:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(381))},5666:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(381))},4378:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(381))},5805:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(381))},3839:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(381))},5726:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1200?"上午":1200===i?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(381))},9807:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(381))},4152:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(381))},6700:(e,t,n)=>{var i={"./af":2786,"./af.js":2786,"./ar":867,"./ar-dz":4130,"./ar-dz.js":4130,"./ar-kw":6135,"./ar-kw.js":6135,"./ar-ly":6440,"./ar-ly.js":6440,"./ar-ma":7702,"./ar-ma.js":7702,"./ar-sa":6040,"./ar-sa.js":6040,"./ar-tn":7100,"./ar-tn.js":7100,"./ar.js":867,"./az":1083,"./az.js":1083,"./be":9808,"./be.js":9808,"./bg":8338,"./bg.js":8338,"./bm":7438,"./bm.js":7438,"./bn":8905,"./bn-bd":6225,"./bn-bd.js":6225,"./bn.js":8905,"./bo":1560,"./bo.js":1560,"./br":1278,"./br.js":1278,"./bs":622,"./bs.js":622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":877,"./cv.js":877,"./cy":7373,"./cy.js":7373,"./da":4780,"./da.js":4780,"./de":9740,"./de-at":217,"./de-at.js":217,"./de-ch":894,"./de-ch.js":894,"./de.js":9740,"./dv":5300,"./dv.js":5300,"./el":837,"./el.js":837,"./en-au":8348,"./en-au.js":8348,"./en-ca":7925,"./en-ca.js":7925,"./en-gb":2243,"./en-gb.js":2243,"./en-ie":6436,"./en-ie.js":6436,"./en-il":7207,"./en-il.js":7207,"./en-in":4175,"./en-in.js":4175,"./en-nz":6319,"./en-nz.js":6319,"./en-sg":1662,"./en-sg.js":1662,"./eo":2915,"./eo.js":2915,"./es":5655,"./es-do":5251,"./es-do.js":5251,"./es-mx":6112,"./es-mx.js":6112,"./es-us":1146,"./es-us.js":1146,"./es.js":5655,"./et":5603,"./et.js":5603,"./eu":7763,"./eu.js":7763,"./fa":6959,"./fa.js":6959,"./fi":1897,"./fi.js":1897,"./fil":2549,"./fil.js":2549,"./fo":4694,"./fo.js":4694,"./fr":4470,"./fr-ca":3049,"./fr-ca.js":3049,"./fr-ch":2330,"./fr-ch.js":2330,"./fr.js":4470,"./fy":5044,"./fy.js":5044,"./ga":9295,"./ga.js":9295,"./gd":2101,"./gd.js":2101,"./gl":8794,"./gl.js":8794,"./gom-deva":7884,"./gom-deva.js":7884,"./gom-latn":3168,"./gom-latn.js":3168,"./gu":5349,"./gu.js":5349,"./he":4206,"./he.js":4206,"./hi":94,"./hi.js":94,"./hr":316,"./hr.js":316,"./hu":2138,"./hu.js":2138,"./hy-am":1423,"./hy-am.js":1423,"./id":9218,"./id.js":9218,"./is":135,"./is.js":135,"./it":626,"./it-ch":150,"./it-ch.js":150,"./it.js":626,"./ja":9183,"./ja.js":9183,"./jv":4286,"./jv.js":4286,"./ka":2105,"./ka.js":2105,"./kk":7772,"./kk.js":7772,"./km":8758,"./km.js":8758,"./kn":9282,"./kn.js":9282,"./ko":3730,"./ko.js":3730,"./ku":1408,"./ku.js":1408,"./ky":3291,"./ky.js":3291,"./lb":6841,"./lb.js":6841,"./lo":5466,"./lo.js":5466,"./lt":7010,"./lt.js":7010,"./lv":7595,"./lv.js":7595,"./me":9861,"./me.js":9861,"./mi":5493,"./mi.js":5493,"./mk":5966,"./mk.js":5966,"./ml":7341,"./ml.js":7341,"./mn":5115,"./mn.js":5115,"./mr":370,"./mr.js":370,"./ms":9847,"./ms-my":1237,"./ms-my.js":1237,"./ms.js":9847,"./mt":2126,"./mt.js":2126,"./my":6165,"./my.js":6165,"./nb":4924,"./nb.js":4924,"./ne":6744,"./ne.js":6744,"./nl":3901,"./nl-be":9814,"./nl-be.js":9814,"./nl.js":3901,"./nn":3877,"./nn.js":3877,"./oc-lnc":2135,"./oc-lnc.js":2135,"./pa-in":5858,"./pa-in.js":5858,"./pl":4495,"./pl.js":4495,"./pt":9520,"./pt-br":7971,"./pt-br.js":7971,"./pt.js":9520,"./ro":6459,"./ro.js":6459,"./ru":1793,"./ru.js":1793,"./sd":950,"./sd.js":950,"./se":490,"./se.js":490,"./si":124,"./si.js":124,"./sk":4249,"./sk.js":4249,"./sl":4985,"./sl.js":4985,"./sq":1104,"./sq.js":1104,"./sr":9131,"./sr-cyrl":9915,"./sr-cyrl.js":9915,"./sr.js":9131,"./ss":5893,"./ss.js":5893,"./sv":8760,"./sv.js":8760,"./sw":1172,"./sw.js":1172,"./ta":7333,"./ta.js":7333,"./te":3110,"./te.js":3110,"./tet":2095,"./tet.js":2095,"./tg":7321,"./tg.js":7321,"./th":9041,"./th.js":9041,"./tk":9005,"./tk.js":9005,"./tl-ph":5768,"./tl-ph.js":5768,"./tlh":9444,"./tlh.js":9444,"./tr":2397,"./tr.js":2397,"./tzl":8254,"./tzl.js":8254,"./tzm":1106,"./tzm-latn":699,"./tzm-latn.js":699,"./tzm.js":1106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":7691,"./uk.js":7691,"./ur":3795,"./ur.js":3795,"./uz":6791,"./uz-latn":588,"./uz-latn.js":588,"./uz.js":6791,"./vi":5666,"./vi.js":5666,"./x-pseudo":4378,"./x-pseudo.js":4378,"./yo":5805,"./yo.js":5805,"./zh-cn":3839,"./zh-cn.js":3839,"./zh-hk":5726,"./zh-hk.js":5726,"./zh-mo":9807,"./zh-mo.js":9807,"./zh-tw":4152,"./zh-tw.js":4152};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id=6700},381:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,i;function r(){return t.apply(null,arguments)}function a(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function u(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,i=[],r=e.length;for(n=0;n<r;++n)i.push(t(e[n],n));return i}function p(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,i){return Gn(e,t,n,i,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function _(e){return null==e._pf&&(e._pf=g()),e._pf}function v(e){if(null==e._isValid){var t=_(e),n=i.call(t.parsedDateParts,(function(e){return null!=e})),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function y(e){var t=m(NaN);return null!=e?p(_(t),e):_(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function x(e,t){var n,i,r,a=b.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=_(t)),u(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)u(r=t[i=b[n]])||(e[i]=r);return e}function k(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function A(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function S(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function M(e,t){var n=!0;return p((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,a,o,s=[],c=arguments.length;for(a=0;a<c;a++){if(i="","object"==typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])l(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];s.push(i)}S(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var T,L={};function E(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),L[e]||(S(t),L[e]=!0)}function C(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function D(e){var t,n;for(n in e)l(e,n)&&(C(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function O(e,t){var n,i=p({},e);for(n in t)l(t,n)&&(s(e[n])&&s(t[n])?(i[n]={},p(i[n],e[n]),p(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)l(e,n)&&!l(t,n)&&s(e[n])&&(i[n]=p({},i[n]));return i}function Y(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var P={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function j(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return C(i)?i.call(t,n):i}function I(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},H={};function z(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(H[e]=r),t&&(H[t[0]]=function(){return I(r.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function q(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function B(e){var t,n,i=e.match(F);for(t=0,n=i.length;t<n;t++)H[i[t]]?i[t]=H[i[t]]:i[t]=q(i[t]);return function(t){var r,a="";for(r=0;r<n;r++)a+=C(i[r])?i[r].call(t,e):i[r];return a}}function $(e,t){return e.isValid()?(t=W(t,e.localeData()),R[t]=R[t]||B(t),R[t](e)):e.localeData().invalidDate()}function W(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;n>=0&&N.test(e);)e=e.replace(N,i),N.lastIndex=0,n-=1;return e}var U={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(F).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var X="Invalid date";function G(){return this._invalidDate}var J="%d",Q=/\d{1,2}/;function K(e){return this._ordinal.replace("%d",e)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,i){var r=this._relativeTime[n];return C(r)?r(e,t,n,i):r.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)}var ne={};function ie(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function re(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function ae(e){var t,n,i={};for(n in e)l(e,n)&&(t=re(n))&&(i[t]=e[n]);return i}var oe={};function se(e,t){oe[e]=t}function le(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ce(e){return e%4==0&&e%100!=0||e%400==0}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ue(t)),n}function he(e,t){return function(n){return null!=n?(pe(this,e,n),r.updateOffset(this,t),this):fe(this,e)}}function fe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ce(e.year())&&1===e.month()&&29===e.date()?(n=de(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function me(e){return C(this[e=re(e)])?this[e]():this}function ge(e,t){if("object"==typeof e){var n,i=le(e=ae(e)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](e[i[n].unit])}else if(C(this[e=re(e)]))return this[e](t);return this}var _e,ve=/\d/,ye=/\d\d/,be=/\d{3}/,we=/\d{4}/,xe=/[+-]?\d{6}/,ke=/\d\d?/,Ae=/\d\d\d\d?/,Se=/\d\d\d\d\d\d?/,Me=/\d{1,3}/,Te=/\d{1,4}/,Le=/[+-]?\d{1,6}/,Ee=/\d+/,Ce=/[+-]?\d+/,De=/Z|[+-]\d\d:?\d\d/gi,Oe=/Z|[+-]\d\d(?::?\d\d)?/gi,Ye=/[+-]?\d+(\.\d{1,3})?/,Pe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function je(e,t,n){_e[e]=C(t)?t:function(e,i){return e&&n?n:t}}function Ie(e,t){return l(_e,e)?_e[e](t._strict,t._locale):new RegExp(Fe(e))}function Fe(e){return Ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r})))}function Ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}_e={};var Re={};function He(e,t){var n,i,r=t;for("string"==typeof e&&(e=[e]),d(t)&&(r=function(e,n){n[t]=de(e)}),i=e.length,n=0;n<i;n++)Re[e[n]]=r}function ze(e,t){He(e,(function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)}))}function qe(e,t,n){null!=t&&l(Re,e)&&Re[e](t,n._a,n,e)}var Be,$e=0,We=1,Ue=2,Ve=3,Xe=4,Ge=5,Je=6,Qe=7,Ke=8;function Ze(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Ze(t,12);return e+=(t-n)/12,1===n?ce(e)?29:28:31-n%7%2}Be=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),z("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ie("month","M"),se("month",8),je("M",ke),je("MM",ke,ye),je("MMM",(function(e,t){return t.monthsShortRegex(e)})),je("MMMM",(function(e,t){return t.monthsRegex(e)})),He(["M","MM"],(function(e,t){t[We]=de(e)-1})),He(["MMM","MMMM"],(function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[We]=r:_(n).invalidMonth=e}));var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),it=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Pe,at=Pe;function ot(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||it).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function st(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[it.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var i,r,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)a=m([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=Be.call(this._shortMonthsParse,o))?r:null:-1!==(r=Be.call(this._longMonthsParse,o))?r:null:"MMM"===t?-1!==(r=Be.call(this._shortMonthsParse,o))||-1!==(r=Be.call(this._longMonthsParse,o))?r:null:-1!==(r=Be.call(this._longMonthsParse,o))||-1!==(r=Be.call(this._shortMonthsParse,o))?r:null}function ct(e,t,n){var i,r,a;if(this._monthsParseExact)return lt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=m([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function ut(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=de(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function dt(e){return null!=e?(ut(this,e),r.updateOffset(this,!0),this):fe(this,"Month")}function ht(){return et(this.year(),this.month())}function ft(e){return this._monthsParseExact?(l(this,"_monthsRegex")||mt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||mt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=at),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function mt(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],a=[];for(t=0;t<12;t++)n=m([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),a.sort(e),t=0;t<12;t++)i[t]=Ne(i[t]),r[t]=Ne(r[t]);for(t=0;t<24;t++)a[t]=Ne(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function gt(e){return ce(e)?366:365}z("Y",0,0,(function(){var e=this.year();return e<=9999?I(e,4):"+"+e})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),ie("year","y"),se("year",1),je("Y",Ce),je("YY",ke,ye),je("YYYY",Te,we),je("YYYYY",Le,xe),je("YYYYYY",Le,xe),He(["YYYYY","YYYYYY"],$e),He("YYYY",(function(e,t){t[$e]=2===e.length?r.parseTwoDigitYear(e):de(e)})),He("YY",(function(e,t){t[$e]=r.parseTwoDigitYear(e)})),He("Y",(function(e,t){t[$e]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var _t=he("FullYear",!0);function vt(){return ce(this.year())}function yt(e,t,n,i,r,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,i,r,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,a,o),s}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var i=7+t-n;return-(7+bt(e,0,i).getUTCDay()-t)%7+i-1}function xt(e,t,n,i,r){var a,o,s=1+7*(t-1)+(7+n-i)%7+wt(e,i,r);return s<=0?o=gt(a=e-1)+s:s>gt(e)?(a=e+1,o=s-gt(e)):(a=e,o=s),{year:a,dayOfYear:o}}function kt(e,t,n){var i,r,a=wt(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?i=o+At(r=e.year()-1,t,n):o>At(e.year(),t,n)?(i=o-At(e.year(),t,n),r=e.year()+1):(r=e.year(),i=o),{week:i,year:r}}function At(e,t,n){var i=wt(e,t,n),r=wt(e+1,t,n);return(gt(e)-i+r)/7}function St(e){return kt(e,this._week.dow,this._week.doy).week}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),ie("week","w"),ie("isoWeek","W"),se("week",5),se("isoWeek",5),je("w",ke),je("ww",ke,ye),je("W",ke),je("WW",ke,ye),ze(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=de(e)}));var Mt={dow:0,doy:6};function Tt(){return this._week.dow}function Lt(){return this._week.doy}function Et(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ct(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Dt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ot(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Yt(e,t){return e.slice(t,7).concat(e.slice(0,t))}z("d",0,"do","day"),z("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),z("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),z("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),ie("day","d"),ie("weekday","e"),ie("isoWeekday","E"),se("day",11),se("weekday",11),se("isoWeekday",11),je("d",ke),je("e",ke),je("E",ke),je("dd",(function(e,t){return t.weekdaysMinRegex(e)})),je("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),je("dddd",(function(e,t){return t.weekdaysRegex(e)})),ze(["dd","ddd","dddd"],(function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:_(n).invalidWeekday=e})),ze(["d","e","E"],(function(e,t,n,i){t[i]=de(e)}));var Pt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),It="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ft=Pe,Nt=Pe,Rt=Pe;function Ht(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Yt(n,this._week.dow):e?n[e.day()]:n}function zt(e){return!0===e?Yt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function qt(e){return!0===e?Yt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Bt(e,t,n){var i,r,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=m([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Be.call(this._weekdaysParse,o))?r:null:"ddd"===t?-1!==(r=Be.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=Be.call(this._minWeekdaysParse,o))?r:null:"dddd"===t?-1!==(r=Be.call(this._weekdaysParse,o))||-1!==(r=Be.call(this._shortWeekdaysParse,o))||-1!==(r=Be.call(this._minWeekdaysParse,o))?r:null:"ddd"===t?-1!==(r=Be.call(this._shortWeekdaysParse,o))||-1!==(r=Be.call(this._weekdaysParse,o))||-1!==(r=Be.call(this._minWeekdaysParse,o))?r:null:-1!==(r=Be.call(this._minWeekdaysParse,o))||-1!==(r=Be.call(this._weekdaysParse,o))||-1!==(r=Be.call(this._shortWeekdaysParse,o))?r:null}function $t(e,t,n){var i,r,a;if(this._weekdaysParseExact)return Bt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=m([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Dt(e,this.localeData()),this.add(e-t,"d")):t}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Vt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ot(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Xt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ft),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Nt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Rt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,i,r,a,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),i=Ne(this.weekdaysMin(n,"")),r=Ne(this.weekdaysShort(n,"")),a=Ne(this.weekdays(n,"")),o.push(i),s.push(r),l.push(a),c.push(i),c.push(r),c.push(a);o.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Kt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function en(e,t){z(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Kt),z("k",["kk",2],0,Zt),z("hmm",0,0,(function(){return""+Kt.apply(this)+I(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Kt.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),en("a",!0),en("A",!1),ie("hour","h"),se("hour",13),je("a",tn),je("A",tn),je("H",ke),je("h",ke),je("k",ke),je("HH",ke,ye),je("hh",ke,ye),je("kk",ke,ye),je("hmm",Ae),je("hmmss",Se),je("Hmm",Ae),je("Hmmss",Se),He(["H","HH"],Ve),He(["k","kk"],(function(e,t,n){var i=de(e);t[Ve]=24===i?0:i})),He(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),He(["h","hh"],(function(e,t,n){t[Ve]=de(e),_(n).bigHour=!0})),He("hmm",(function(e,t,n){var i=e.length-2;t[Ve]=de(e.substr(0,i)),t[Xe]=de(e.substr(i)),_(n).bigHour=!0})),He("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[Ve]=de(e.substr(0,i)),t[Xe]=de(e.substr(i,2)),t[Ge]=de(e.substr(r)),_(n).bigHour=!0})),He("Hmm",(function(e,t,n){var i=e.length-2;t[Ve]=de(e.substr(0,i)),t[Xe]=de(e.substr(i))})),He("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[Ve]=de(e.substr(0,i)),t[Xe]=de(e.substr(i,2)),t[Ge]=de(e.substr(r))}));var rn=/[ap]\.?m?\.?/i,an=he("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:P,longDateFormat:U,invalidDate:X,ordinal:J,dayOfMonthOrdinalParse:Q,relativeTime:Z,months:tt,monthsShort:nt,week:Mt,weekdays:Pt,weekdaysMin:It,weekdaysShort:jt,meridiemParse:rn},cn={},un={};function dn(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function hn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(e){for(var t,n,i,r,a=0;a<e.length;){for(t=(r=hn(e[a]).split("-")).length,n=(n=hn(e[a+1]))?n.split("-"):null;t>0;){if(i=mn(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&dn(r,n)>=t-1)break;t--}a++}return sn}function pn(e){return null!=e.match("^[^/\\\\]*$")}function mn(t){var i=null;if(void 0===cn[t]&&e&&e.exports&&pn(t))try{i=sn._abbr,n(6700)("./"+t),gn(i)}catch(e){cn[t]=null}return cn[t]}function gn(e,t){var n;return e&&((n=u(t)?yn(e):_n(e,t))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function _n(e,t){if(null!==t){var n,i=ln;if(t.abbr=e,null!=cn[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])i=cn[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;i=n._config}return cn[e]=new Y(O(i,t)),un[e]&&un[e].forEach((function(e){_n(e.name,e.config)})),gn(e),cn[e]}return delete cn[e],null}function vn(e,t){if(null!=t){var n,i,r=ln;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(O(cn[e]._config,t)):(null!=(i=mn(e))&&(r=i._config),t=O(r,t),null==i&&(t.abbr=e),(n=new Y(t)).parentLocale=cn[e],cn[e]=n),gn(e)}else null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===gn()&&gn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}function yn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!o(e)){if(t=mn(e))return t;e=[e]}return fn(e)}function bn(){return T(cn)}function wn(e){var t,n=e._a;return n&&-2===_(e).overflow&&(t=n[We]<0||n[We]>11?We:n[Ue]<1||n[Ue]>et(n[$e],n[We])?Ue:n[Ve]<0||n[Ve]>24||24===n[Ve]&&(0!==n[Xe]||0!==n[Ge]||0!==n[Je])?Ve:n[Xe]<0||n[Xe]>59?Xe:n[Ge]<0||n[Ge]>59?Ge:n[Je]<0||n[Je]>999?Je:-1,_(e)._overflowDayOfYear&&(t<$e||t>Ue)&&(t=Ue),_(e)._overflowWeeks&&-1===t&&(t=Qe),_(e)._overflowWeekday&&-1===t&&(t=Ke),_(e).overflow=t),e}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,An=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Mn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Tn=/^\/?Date\((-?\d+)/i,Ln=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,En={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Cn(e){var t,n,i,r,a,o,s=e._i,l=xn.exec(s)||kn.exec(s),c=Sn.length,u=Mn.length;if(l){for(_(e).iso=!0,t=0,n=c;t<n;t++)if(Sn[t][1].exec(l[1])){r=Sn[t][0],i=!1!==Sn[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(Mn[t][1].exec(l[3])){a=(l[2]||" ")+Mn[t][0];break}if(null==a)return void(e._isValid=!1)}if(!i&&null!=a)return void(e._isValid=!1);if(l[4]){if(!An.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=r+(a||"")+(o||""),qn(e)}else e._isValid=!1}function Dn(e,t,n,i,r,a){var o=[On(e),nt.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return a&&o.push(parseInt(a,10)),o}function On(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Yn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Pn(e,t,n){return!e||jt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(_(n).weekdayMismatch=!0,n._isValid=!1,!1)}function jn(e,t,n){if(e)return En[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}function In(e){var t,n=Ln.exec(Yn(e._i));if(n){if(t=Dn(n[4],n[3],n[2],n[5],n[6],n[7]),!Pn(n[1],t,e))return;e._a=t,e._tzm=jn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),_(e).rfc2822=!0}else e._isValid=!1}function Fn(e){var t=Tn.exec(e._i);null===t?(Cn(e),!1===e._isValid&&(delete e._isValid,In(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Nn(e,t,n){return null!=e?e:null!=t?t:n}function Rn(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Hn(e){var t,n,i,r,a,o=[];if(!e._d){for(i=Rn(e),e._w&&null==e._a[Ue]&&null==e._a[We]&&zn(e),null!=e._dayOfYear&&(a=Nn(e._a[$e],i[$e]),(e._dayOfYear>gt(a)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),n=bt(a,0,e._dayOfYear),e._a[We]=n.getUTCMonth(),e._a[Ue]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ve]&&0===e._a[Xe]&&0===e._a[Ge]&&0===e._a[Je]&&(e._nextDay=!0,e._a[Ve]=0),e._d=(e._useUTC?bt:yt).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(_(e).weekdayMismatch=!0)}}function zn(e){var t,n,i,r,a,o,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,o=4,n=Nn(t.GG,e._a[$e],kt(Jn(),1,4).year),i=Nn(t.W,1),((r=Nn(t.E,1))<1||r>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,c=kt(Jn(),a,o),n=Nn(t.gg,e._a[$e],c.year),i=Nn(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+a,(t.e<0||t.e>6)&&(l=!0)):r=a),i<1||i>At(n,a,o)?_(e)._overflowWeeks=!0:null!=l?_(e)._overflowWeekday=!0:(s=xt(n,i,r,a,o),e._a[$e]=s.year,e._dayOfYear=s.dayOfYear)}function qn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],_(e).empty=!0;var t,n,i,a,o,s,l,c=""+e._i,u=c.length,d=0;for(l=(i=W(e._f,e._locale).match(F)||[]).length,t=0;t<l;t++)a=i[t],(n=(c.match(Ie(a,e))||[])[0])&&((o=c.substr(0,c.indexOf(n))).length>0&&_(e).unusedInput.push(o),c=c.slice(c.indexOf(n)+n.length),d+=n.length),H[a]?(n?_(e).empty=!1:_(e).unusedTokens.push(a),qe(a,n,e)):e._strict&&!n&&_(e).unusedTokens.push(a);_(e).charsLeftOver=u-d,c.length>0&&_(e).unusedInput.push(c),e._a[Ve]<=12&&!0===_(e).bigHour&&e._a[Ve]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[Ve]=Bn(e._locale,e._a[Ve],e._meridiem),null!==(s=_(e).era)&&(e._a[$e]=e._locale.erasConvertYear(s,e._a[$e])),Hn(e),wn(e)}else In(e);else Cn(e)}function Bn(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function $n(e){var t,n,i,r,a,o,s=!1,l=e._f.length;if(0===l)return _(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<l;r++)a=0,o=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],qn(t),v(t)&&(o=!0),a+=_(t).charsLeftOver,a+=10*_(t).unusedTokens.length,_(t).score=a,s?a<i&&(i=a,n=t):(null==i||a<i||o)&&(i=a,n=t,o&&(s=!0));p(e,n||t)}function Wn(e){if(!e._d){var t=ae(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Hn(e)}}function Un(e){var t=new k(wn(Vn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Vn(e){var t=e._i,n=e._f;return e._locale=e._locale||yn(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),A(t)?new k(wn(t)):(h(t)?e._d=t:o(n)?$n(e):n?qn(e):Xn(e),v(e)||(e._d=null),e))}function Xn(e){var t=e._i;u(t)?e._d=new Date(r.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Fn(e):o(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),Hn(e)):s(t)?Wn(e):d(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Gn(e,t,n,i,r){var a={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(s(e)&&c(e)||o(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=e,a._f=t,a._strict=i,Un(a)}function Jn(e,t,n,i){return Gn(e,t,n,i,!1)}r.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Qn=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Kn=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Jn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Zn(e,t){var n,i;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Jn();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function ei(){return Zn("isBefore",[].slice.call(arguments,0))}function ti(){return Zn("isAfter",[].slice.call(arguments,0))}var ni=function(){return Date.now?Date.now():+new Date},ii=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ri(e){var t,n,i=!1,r=ii.length;for(t in e)if(l(e,t)&&(-1===Be.call(ii,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<r;++n)if(e[ii[n]]){if(i)return!1;parseFloat(e[ii[n]])!==de(e[ii[n]])&&(i=!0)}return!0}function ai(){return this._isValid}function oi(){return Ei(NaN)}function si(e){var t=ae(e),n=t.year||0,i=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=ri(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+o+7*a,this._months=+r+3*i+12*n,this._data={},this._locale=yn(),this._bubble()}function li(e){return e instanceof si}function ci(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ui(e,t,n){var i,r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&de(e[i])!==de(t[i]))&&o++;return o+a}function di(e,t){z(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+I(~~(e/60),2)+t+I(~~e%60,2)}))}di("Z",":"),di("ZZ",""),je("Z",Oe),je("ZZ",Oe),He(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fi(Oe,e)}));var hi=/([\+\-]|\d\d)/gi;function fi(e,t){var n,i,r=(t||"").match(e);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(hi)||["-",0,0])[1]+de(n[2]))?0:"+"===n[0]?i:-i}function pi(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(A(e)||h(e)?e.valueOf():Jn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Jn(e).local()}function mi(e){return-Math.round(e._d.getTimezoneOffset())}function gi(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fi(Oe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=mi(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Pi(this,Ei(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:mi(this)}function _i(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vi(e){return this.utcOffset(0,e)}function yi(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mi(this),"m")),this}function bi(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fi(De,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wi(e){return!!this.isValid()&&(e=e?Jn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function xi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ki(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=Vn(t))._a?(e=t._isUTC?m(t._a):Jn(t._a),this._isDSTShifted=this.isValid()&&ui(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ai(){return!!this.isValid()&&!this._isUTC}function Si(){return!!this.isValid()&&this._isUTC}function Mi(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Ti=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Li=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ei(e,t){var n,i,r,a=e,o=null;return li(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(o=Ti.exec(e))?(n="-"===o[1]?-1:1,a={y:0,d:de(o[Ue])*n,h:de(o[Ve])*n,m:de(o[Xe])*n,s:de(o[Ge])*n,ms:de(ci(1e3*o[Je]))*n}):(o=Li.exec(e))?(n="-"===o[1]?-1:1,a={y:Ci(o[2],n),M:Ci(o[3],n),w:Ci(o[4],n),d:Ci(o[5],n),h:Ci(o[6],n),m:Ci(o[7],n),s:Ci(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=Oi(Jn(a.from),Jn(a.to)),(a={}).ms=r.milliseconds,a.M=r.months),i=new si(a),li(e)&&l(e,"_locale")&&(i._locale=e._locale),li(e)&&l(e,"_isValid")&&(i._isValid=e._isValid),i}function Ci(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Di(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Oi(e,t){var n;return e.isValid()&&t.isValid()?(t=pi(t,e),e.isBefore(t)?n=Di(e,t):((n=Di(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Yi(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Pi(this,Ei(n,i),e),this}}function Pi(e,t,n,i){var a=t._milliseconds,o=ci(t._days),s=ci(t._months);e.isValid()&&(i=null==i||i,s&&ut(e,fe(e,"Month")+s*n),o&&pe(e,"Date",fe(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&r.updateOffset(e,o||s))}Ei.fn=si.prototype,Ei.invalid=oi;var ji=Yi(1,"add"),Ii=Yi(-1,"subtract");function Fi(e){return"string"==typeof e||e instanceof String}function Ni(e){return A(e)||h(e)||Fi(e)||d(e)||Hi(e)||Ri(e)||null==e}function Ri(e){var t,n,i=s(e)&&!c(e),r=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=a.length;for(t=0;t<o;t+=1)n=a[t],r=r||l(e,n);return i&&r}function Hi(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&Fi(e)})).length),t&&n}function zi(e){var t,n,i=s(e)&&!c(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],r=r||l(e,n);return i&&r}function qi(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Bi(e,t){1===arguments.length&&(arguments[0]?Ni(arguments[0])?(e=arguments[0],t=void 0):zi(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Jn(),i=pi(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",o=t&&(C(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Jn(n)))}function $i(){return new k(this)}function Wi(e,t){var n=A(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Ui(e,t){var n=A(e)?e:Jn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Vi(e,t,n,i){var r=A(e)?e:Jn(e),a=A(t)?t:Jn(t);return!!(this.isValid()&&r.isValid()&&a.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Xi(e,t){var n,i=A(e)?e:Jn(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Gi(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Ji(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Qi(e,t,n){var i,r,a;if(!this.isValid())return NaN;if(!(i=pi(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=re(t)){case"year":a=Ki(this,i)/12;break;case"month":a=Ki(this,i);break;case"quarter":a=Ki(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-r)/864e5;break;case"week":a=(this-i-r)/6048e5;break;default:a=this-i}return n?a:ue(a)}function Ki(e,t){if(e.date()<t.date())return-Ki(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function Zi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function er(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(n,"Z")):$(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function tr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i,r="moment",a="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=a+'[")]',this.format(e+t+n+i)}function nr(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)}function ir(e,t){return this.isValid()&&(A(e)&&e.isValid()||Jn(e).isValid())?Ei({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rr(e){return this.from(Jn(),e)}function ar(e,t){return this.isValid()&&(A(e)&&e.isValid()||Jn(e).isValid())?Ei({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function or(e){return this.to(Jn(),e)}function sr(e){var t;return void 0===e?this._locale._abbr:(null!=(t=yn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lr=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function cr(){return this._locale}var ur=1e3,dr=60*ur,hr=60*dr,fr=3506328*hr;function pr(e,t){return(e%t+t)%t}function mr(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fr:new Date(e,t,n).valueOf()}function gr(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fr:Date.UTC(e,t,n)}function _r(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gr:mr,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pr(t+(this._isUTC?0:this.utcOffset()*dr),hr);break;case"minute":t=this._d.valueOf(),t-=pr(t,dr);break;case"second":t=this._d.valueOf(),t-=pr(t,ur)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vr(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gr:mr,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hr-pr(t+(this._isUTC?0:this.utcOffset()*dr),hr)-1;break;case"minute":t=this._d.valueOf(),t+=dr-pr(t,dr)-1;break;case"second":t=this._d.valueOf(),t+=ur-pr(t,ur)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function yr(){return this._d.valueOf()-6e4*(this._offset||0)}function br(){return Math.floor(this.valueOf()/1e3)}function wr(){return new Date(this.valueOf())}function xr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function kr(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ar(){return this.isValid()?this.toISOString():null}function Sr(){return v(this)}function Mr(){return p({},_(this))}function Tr(){return _(this).overflow}function Lr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Er(e,t){var n,i,a,o=this._eras||yn("en")._eras;for(n=0,i=o.length;n<i;++n)switch("string"==typeof o[n].since&&(a=r(o[n].since).startOf("day"),o[n].since=a.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":a=r(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf()}return o}function Cr(e,t,n){var i,r,a,o,s,l=this.eras();for(e=e.toUpperCase(),i=0,r=l.length;i<r;++i)if(a=l[i].name.toUpperCase(),o=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[i];break;case"NNNN":if(a===e)return l[i];break;case"NNNNN":if(s===e)return l[i]}else if([a,o,s].indexOf(e)>=0)return l[i]}function Dr(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Or(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""}function Yr(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""}function Pr(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""}function jr(){var e,t,n,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function Ir(e){return l(this,"_erasNameRegex")||Br.call(this),e?this._erasNameRegex:this._erasRegex}function Fr(e){return l(this,"_erasAbbrRegex")||Br.call(this),e?this._erasAbbrRegex:this._erasRegex}function Nr(e){return l(this,"_erasNarrowRegex")||Br.call(this),e?this._erasNarrowRegex:this._erasRegex}function Rr(e,t){return t.erasAbbrRegex(e)}function Hr(e,t){return t.erasNameRegex(e)}function zr(e,t){return t.erasNarrowRegex(e)}function qr(e,t){return t._eraYearOrdinalRegex||Ee}function Br(){var e,t,n=[],i=[],r=[],a=[],o=this.eras();for(e=0,t=o.length;e<t;++e)i.push(Ne(o[e].name)),n.push(Ne(o[e].abbr)),r.push(Ne(o[e].narrow)),a.push(Ne(o[e].name)),a.push(Ne(o[e].abbr)),a.push(Ne(o[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function $r(e,t){z(0,[e,e.length],0,t)}function Wr(e){return Qr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ur(e){return Qr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Vr(){return At(this.year(),1,4)}function Xr(){return At(this.isoWeekYear(),1,4)}function Gr(){var e=this.localeData()._week;return At(this.year(),e.dow,e.doy)}function Jr(){var e=this.localeData()._week;return At(this.weekYear(),e.dow,e.doy)}function Qr(e,t,n,i,r){var a;return null==e?kt(this,i,r).year:(t>(a=At(e,i,r))&&(t=a),Kr.call(this,e,t,n,i,r))}function Kr(e,t,n,i,r){var a=xt(e,t,n,i,r),o=bt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Zr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}z("N",0,0,"eraAbbr"),z("NN",0,0,"eraAbbr"),z("NNN",0,0,"eraAbbr"),z("NNNN",0,0,"eraName"),z("NNNNN",0,0,"eraNarrow"),z("y",["y",1],"yo","eraYear"),z("y",["yy",2],0,"eraYear"),z("y",["yyy",3],0,"eraYear"),z("y",["yyyy",4],0,"eraYear"),je("N",Rr),je("NN",Rr),je("NNN",Rr),je("NNNN",Hr),je("NNNNN",zr),He(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?_(n).era=r:_(n).invalidEra=e})),je("y",Ee),je("yy",Ee),je("yyy",Ee),je("yyyy",Ee),je("yo",qr),He(["y","yy","yyy","yyyy"],$e),He(["yo"],(function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[$e]=n._locale.eraYearOrdinalParse(e,r):t[$e]=parseInt(e,10)})),z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),$r("gggg","weekYear"),$r("ggggg","weekYear"),$r("GGGG","isoWeekYear"),$r("GGGGG","isoWeekYear"),ie("weekYear","gg"),ie("isoWeekYear","GG"),se("weekYear",1),se("isoWeekYear",1),je("G",Ce),je("g",Ce),je("GG",ke,ye),je("gg",ke,ye),je("GGGG",Te,we),je("gggg",Te,we),je("GGGGG",Le,xe),je("ggggg",Le,xe),ze(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=de(e)})),ze(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),z("Q",0,"Qo","quarter"),ie("quarter","Q"),se("quarter",7),je("Q",ve),He("Q",(function(e,t){t[We]=3*(de(e)-1)})),z("D",["DD",2],"Do","date"),ie("date","D"),se("date",9),je("D",ke),je("DD",ke,ye),je("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),He(["D","DD"],Ue),He("Do",(function(e,t){t[Ue]=de(e.match(ke)[0])}));var ea=he("Date",!0);function ta(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}z("DDD",["DDDD",3],"DDDo","dayOfYear"),ie("dayOfYear","DDD"),se("dayOfYear",4),je("DDD",Me),je("DDDD",be),He(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=de(e)})),z("m",["mm",2],0,"minute"),ie("minute","m"),se("minute",14),je("m",ke),je("mm",ke,ye),He(["m","mm"],Xe);var na=he("Minutes",!1);z("s",["ss",2],0,"second"),ie("second","s"),se("second",15),je("s",ke),je("ss",ke,ye),He(["s","ss"],Ge);var ia,ra,aa=he("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ie("millisecond","ms"),se("millisecond",16),je("S",Me,ve),je("SS",Me,ye),je("SSS",Me,be),ia="SSSS";ia.length<=9;ia+="S")je(ia,Ee);function oa(e,t){t[Je]=de(1e3*("0."+e))}for(ia="S";ia.length<=9;ia+="S")He(ia,oa);function sa(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}ra=he("Milliseconds",!1),z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var ca=k.prototype;function ua(e){return Jn(1e3*e)}function da(){return Jn.apply(null,arguments).parseZone()}function ha(e){return e}ca.add=ji,ca.calendar=Bi,ca.clone=$i,ca.diff=Qi,ca.endOf=vr,ca.format=nr,ca.from=ir,ca.fromNow=rr,ca.to=ar,ca.toNow=or,ca.get=me,ca.invalidAt=Tr,ca.isAfter=Wi,ca.isBefore=Ui,ca.isBetween=Vi,ca.isSame=Xi,ca.isSameOrAfter=Gi,ca.isSameOrBefore=Ji,ca.isValid=Sr,ca.lang=lr,ca.locale=sr,ca.localeData=cr,ca.max=Kn,ca.min=Qn,ca.parsingFlags=Mr,ca.set=ge,ca.startOf=_r,ca.subtract=Ii,ca.toArray=xr,ca.toObject=kr,ca.toDate=wr,ca.toISOString=er,ca.inspect=tr,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ca[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ca.toJSON=Ar,ca.toString=Zi,ca.unix=br,ca.valueOf=yr,ca.creationData=Lr,ca.eraName=Or,ca.eraNarrow=Yr,ca.eraAbbr=Pr,ca.eraYear=jr,ca.year=_t,ca.isLeapYear=vt,ca.weekYear=Wr,ca.isoWeekYear=Ur,ca.quarter=ca.quarters=Zr,ca.month=dt,ca.daysInMonth=ht,ca.week=ca.weeks=Et,ca.isoWeek=ca.isoWeeks=Ct,ca.weeksInYear=Gr,ca.weeksInWeekYear=Jr,ca.isoWeeksInYear=Vr,ca.isoWeeksInISOWeekYear=Xr,ca.date=ea,ca.day=ca.days=Wt,ca.weekday=Ut,ca.isoWeekday=Vt,ca.dayOfYear=ta,ca.hour=ca.hours=an,ca.minute=ca.minutes=na,ca.second=ca.seconds=aa,ca.millisecond=ca.milliseconds=ra,ca.utcOffset=gi,ca.utc=vi,ca.local=yi,ca.parseZone=bi,ca.hasAlignedHourOffset=wi,ca.isDST=xi,ca.isLocal=Ai,ca.isUtcOffset=Si,ca.isUtc=Mi,ca.isUTC=Mi,ca.zoneAbbr=sa,ca.zoneName=la,ca.dates=M("dates accessor is deprecated. Use date instead.",ea),ca.months=M("months accessor is deprecated. Use month instead",dt),ca.years=M("years accessor is deprecated. Use year instead",_t),ca.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",_i),ca.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ki);var fa=Y.prototype;function pa(e,t,n,i){var r=yn(),a=m().set(i,t);return r[n](a,e)}function ma(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return pa(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=pa(e,i,n,"month");return r}function ga(e,t,n,i){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var r,a=yn(),o=e?a._week.dow:0,s=[];if(null!=n)return pa(t,(n+o)%7,i,"day");for(r=0;r<7;r++)s[r]=pa(t,(r+o)%7,i,"day");return s}function _a(e,t){return ma(e,t,"months")}function va(e,t){return ma(e,t,"monthsShort")}function ya(e,t,n){return ga(e,t,n,"weekdays")}function ba(e,t,n){return ga(e,t,n,"weekdaysShort")}function wa(e,t,n){return ga(e,t,n,"weekdaysMin")}fa.calendar=j,fa.longDateFormat=V,fa.invalidDate=G,fa.ordinal=K,fa.preparse=ha,fa.postformat=ha,fa.relativeTime=ee,fa.pastFuture=te,fa.set=D,fa.eras=Er,fa.erasParse=Cr,fa.erasConvertYear=Dr,fa.erasAbbrRegex=Fr,fa.erasNameRegex=Ir,fa.erasNarrowRegex=Nr,fa.months=ot,fa.monthsShort=st,fa.monthsParse=ct,fa.monthsRegex=pt,fa.monthsShortRegex=ft,fa.week=St,fa.firstDayOfYear=Lt,fa.firstDayOfWeek=Tt,fa.weekdays=Ht,fa.weekdaysMin=qt,fa.weekdaysShort=zt,fa.weekdaysParse=$t,fa.weekdaysRegex=Xt,fa.weekdaysShortRegex=Gt,fa.weekdaysMinRegex=Jt,fa.isPM=nn,fa.meridiem=on,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===de(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=M("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=M("moment.langData is deprecated. Use moment.localeData instead.",yn);var xa=Math.abs;function ka(){var e=this._data;return this._milliseconds=xa(this._milliseconds),this._days=xa(this._days),this._months=xa(this._months),e.milliseconds=xa(e.milliseconds),e.seconds=xa(e.seconds),e.minutes=xa(e.minutes),e.hours=xa(e.hours),e.months=xa(e.months),e.years=xa(e.years),this}function Aa(e,t,n,i){var r=Ei(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Sa(e,t){return Aa(this,e,t,1)}function Ma(e,t){return Aa(this,e,t,-1)}function Ta(e){return e<0?Math.floor(e):Math.ceil(e)}function La(){var e,t,n,i,r,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Ta(Ca(s)+o),o=0,s=0),l.milliseconds=a%1e3,e=ue(a/1e3),l.seconds=e%60,t=ue(e/60),l.minutes=t%60,n=ue(t/60),l.hours=n%24,o+=ue(n/24),s+=r=ue(Ea(o)),o-=Ta(Ca(r)),i=ue(s/12),s%=12,l.days=o,l.months=s,l.years=i,this}function Ea(e){return 4800*e/146097}function Ca(e){return 146097*e/4800}function Da(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Ea(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ca(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function Oa(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN}function Ya(e){return function(){return this.as(e)}}var Pa=Ya("ms"),ja=Ya("s"),Ia=Ya("m"),Fa=Ya("h"),Na=Ya("d"),Ra=Ya("w"),Ha=Ya("M"),za=Ya("Q"),qa=Ya("y");function Ba(){return Ei(this)}function $a(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Wa(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ua=Wa("milliseconds"),Va=Wa("seconds"),Xa=Wa("minutes"),Ga=Wa("hours"),Ja=Wa("days"),Qa=Wa("months"),Ka=Wa("years");function Za(){return ue(this.days()/7)}var eo=Math.round,to={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function no(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function io(e,t,n,i){var r=Ei(e).abs(),a=eo(r.as("s")),o=eo(r.as("m")),s=eo(r.as("h")),l=eo(r.as("d")),c=eo(r.as("M")),u=eo(r.as("w")),d=eo(r.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=i,no.apply(null,h)}function ro(e){return void 0===e?eo:"function"==typeof e&&(eo=e,!0)}function ao(e,t){return void 0!==to[e]&&(void 0===t?to[e]:(to[e]=t,"s"===e&&(to.ss=t-1),!0))}function oo(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,a=to;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(a=Object.assign({},to,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),i=io(this,!r,a,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)}var so=Math.abs;function lo(e){return(e>0)-(e<0)||+e}function co(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,a,o,s,l=so(this._milliseconds)/1e3,c=so(this._days),u=so(this._months),d=this.asSeconds();return d?(e=ue(l/60),t=ue(e/60),l%=60,e%=60,n=ue(u/12),u%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",a=lo(this._months)!==lo(d)?"-":"",o=lo(this._days)!==lo(d)?"-":"",s=lo(this._milliseconds)!==lo(d)?"-":"",r+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(c?o+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+i+"S":"")):"P0D"}var uo=si.prototype;return uo.isValid=ai,uo.abs=ka,uo.add=Sa,uo.subtract=Ma,uo.as=Da,uo.asMilliseconds=Pa,uo.asSeconds=ja,uo.asMinutes=Ia,uo.asHours=Fa,uo.asDays=Na,uo.asWeeks=Ra,uo.asMonths=Ha,uo.asQuarters=za,uo.asYears=qa,uo.valueOf=Oa,uo._bubble=La,uo.clone=Ba,uo.get=$a,uo.milliseconds=Ua,uo.seconds=Va,uo.minutes=Xa,uo.hours=Ga,uo.days=Ja,uo.weeks=Za,uo.months=Qa,uo.years=Ka,uo.humanize=oo,uo.toISOString=co,uo.toString=co,uo.toJSON=co,uo.locale=sr,uo.localeData=cr,uo.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",co),uo.lang=lr,z("X",0,0,"unix"),z("x",0,0,"valueOf"),je("x",Ce),je("X",Ye),He("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),He("x",(function(e,t,n){n._d=new Date(de(e))})),r.version="2.29.4",a(Jn),r.fn=ca,r.min=ei,r.max=ti,r.now=ni,r.utc=m,r.unix=ua,r.months=_a,r.isDate=h,r.locale=gn,r.invalid=y,r.duration=Ei,r.isMoment=A,r.weekdays=ya,r.parseZone=da,r.localeData=yn,r.isDuration=li,r.monthsShort=va,r.weekdaysMin=wa,r.defineLocale=_n,r.updateLocale=vn,r.locales=bn,r.weekdaysShort=ba,r.normalizeUnits=re,r.relativeTimeRounding=ro,r.relativeTimeThreshold=ao,r.calendarFormat=qi,r.prototype=ca,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},8981:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>oe});var i="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(i&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var a=i&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function s(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function l(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=s(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?e:c(l(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var d=i&&!(!window.MSInputMethodContext||!document.documentMode),h=i&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?d:10===e?h:d||h}function p(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function m(e){return null!==e.parentNode?m(e.parentNode):e}function g(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,a=document.createRange();a.setStart(i,0),a.setEnd(r,0);var o,s,l=a.commonAncestorContainer;if(e!==l&&t!==l||i.contains(r))return"BODY"===(s=(o=l).nodeName)||"HTML"!==s&&p(o.firstElementChild)!==o?p(l):l;var c=m(e);return c.host?g(c.host,t):g(e,m(t).host)}function _(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[t]}return e[t]}function v(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function y(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function b(e){var t=e.body,n=e.documentElement,i=f(10)&&getComputedStyle(n);return{height:y("Height",t,n,i),width:y("Width",t,n,i)}}var w=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),x=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function A(e){return k({},e,{right:e.left+e.width,bottom:e.top+e.height})}function S(e){var t={};try{if(f(10)){t=e.getBoundingClientRect();var n=_(e,"top"),i=_(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?b(e.ownerDocument):{},o=a.width||e.clientWidth||r.width,l=a.height||e.clientHeight||r.height,c=e.offsetWidth-o,u=e.offsetHeight-l;if(c||u){var d=s(e);c-=v(d,"x"),u-=v(d,"y"),r.width-=c,r.height-=u}return A(r)}function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=f(10),r="HTML"===t.nodeName,a=S(e),o=S(t),l=c(e),u=s(t),d=parseFloat(u.borderTopWidth),h=parseFloat(u.borderLeftWidth);n&&r&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var p=A({top:a.top-o.top-d,left:a.left-o.left-h,width:a.width,height:a.height});if(p.marginTop=0,p.marginLeft=0,!i&&r){var m=parseFloat(u.marginTop),g=parseFloat(u.marginLeft);p.top-=d-m,p.bottom-=d-m,p.left-=h-g,p.right-=h-g,p.marginTop=m,p.marginLeft=g}return(i&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=_(t,"top"),r=_(t,"left"),a=n?-1:1;return e.top+=i*a,e.bottom+=i*a,e.left+=r*a,e.right+=r*a,e}(p,t)),p}function T(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===s(e,"position"))return!0;var n=l(e);return!!n&&T(n)}function L(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===s(t,"transform");)t=t.parentElement;return t||document.documentElement}function E(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},o=r?L(e):g(e,u(t));if("viewport"===i)a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=M(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:_(n),s=t?0:_(n,"left");return A({top:o-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:a})}(o,r);else{var s=void 0;"scrollParent"===i?"BODY"===(s=c(l(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===i?e.ownerDocument.documentElement:i;var d=M(s,o,r);if("HTML"!==s.nodeName||T(o))a=d;else{var h=b(e.ownerDocument),f=h.height,p=h.width;a.top+=d.top-d.marginTop,a.bottom=f+d.top,a.left+=d.left-d.marginLeft,a.right=p+d.left}}var m="number"==typeof(n=n||0);return a.left+=m?n:n.left||0,a.top+=m?n:n.top||0,a.right-=m?n:n.right||0,a.bottom-=m?n:n.bottom||0,a}function C(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=E(n,i,a,r),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map((function(e){return k({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function D(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return M(n,i?L(t):g(t,u(n)),i)}function O(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function Y(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function P(e,t,n){n=n.split("-")[0];var i=O(e),r={width:i.width,height:i.height},a=-1!==["right","left"].indexOf(n),o=a?"top":"left",s=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return r[o]=t[o]+t[l]/2-i[l]/2,r[s]=n===s?t[s]-i[c]:t[Y(s)],r}function j(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function I(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var i=j(e,(function(e){return e[t]===n}));return e.indexOf(i)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=A(t.offsets.popper),t.offsets.reference=A(t.offsets.reference),t=n(t,e))})),t}function F(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=D(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=C(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=P(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=I(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function N(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function R(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],a=r?""+r+n:e;if(void 0!==document.body.style[a])return a}return null}function H(){return this.state.isDestroyed=!0,N(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function z(e){var t=e.ownerDocument;return t?t.defaultView:window}function q(e,t,n,i){var r="BODY"===e.nodeName,a=r?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),r||q(c(a.parentNode),t,n,i),i.push(a)}function B(e,t,n,i){n.updateBound=i,z(e).addEventListener("resize",n.updateBound,{passive:!0});var r=c(e);return q(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function $(){this.state.eventsEnabled||(this.state=B(this.reference,this.options,this.state,this.scheduleUpdate))}function W(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,z(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function U(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function V(e,t){Object.keys(t).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&U(t[n])&&(i="px"),e.style[n]=t[n]+i}))}var X=i&&/Firefox/i.test(navigator.userAgent);function G(e,t,n){var i=j(e,(function(e){return e.name===t})),r=!!i&&e.some((function(e){return e.name===n&&e.enabled&&e.order<i.order}));if(!r){var a="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return r}var J=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Q=J.slice(3);function K(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(e),i=Q.slice(n+1).concat(Q.slice(0,n));return t?i.reverse():i}var Z="flip",ee="clockwise",te="counterclockwise";function ne(e,t,n,i){var r=[0,0],a=-1!==["right","left"].indexOf(i),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=o.indexOf(j(o,(function(e){return-1!==e.search(/,|\s/)})));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return c=c.map((function(e,i){var r=(1===i?!a:a)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+r[1],o=r[2];if(!a)return e;if(0===o.indexOf("%")){return A("%p"===o?n:i)[t]/100*a}if("vh"===o||"vw"===o)return("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,r,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,i){U(n)&&(r[t]+=n*("-"===e[i-1]?-1:1))}))})),r}var ie={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets,a=r.reference,o=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:x({},l,a[l]),end:x({},l,a[l]+a[c]-o[c])};e.offsets.popper=k({},o,u[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,r=e.offsets,a=r.popper,o=r.reference,s=i.split("-")[0],l=void 0;return l=U(+n)?[+n,0]:ne(n,a,o,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var i=R("transform"),r=e.instance.popper.style,a=r.top,o=r.left,s=r[i];r.top="",r.left="",r[i]="";var l=E(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=a,r.left=o,r[i]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),x({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(i=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),x({},n,i)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=k({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],a=Math.floor,o=-1!==["top","bottom"].indexOf(r),s=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[s]<a(i[l])&&(e.offsets.popper[l]=a(i[l])-n[c]),n[l]>a(i[s])&&(e.offsets.popper[l]=a(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!G(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],a=e.offsets,o=a.popper,l=a.reference,c=-1!==["left","right"].indexOf(r),u=c?"height":"width",d=c?"Top":"Left",h=d.toLowerCase(),f=c?"left":"top",p=c?"bottom":"right",m=O(i)[u];l[p]-m<o[h]&&(e.offsets.popper[h]-=o[h]-(l[p]-m)),l[h]+m>o[p]&&(e.offsets.popper[h]+=l[h]+m-o[p]),e.offsets.popper=A(e.offsets.popper);var g=l[h]+l[u]/2-m/2,_=s(e.instance.popper),v=parseFloat(_["margin"+d]),y=parseFloat(_["border"+d+"Width"]),b=g-e.offsets.popper[h]-v-y;return b=Math.max(Math.min(o[u]-m,b),0),e.arrowElement=i,e.offsets.arrow=(x(n={},h,Math.round(b)),x(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(N(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=E(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],r=Y(i),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Z:o=[i,r];break;case ee:o=K(i);break;case te:o=K(i,!0);break;default:o=t.behavior}return o.forEach((function(s,l){if(i!==s||o.length===l+1)return e;i=e.placement.split("-")[0],r=Y(i);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,h="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),f=d(c.left)<d(n.left),p=d(c.right)>d(n.right),m=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),_="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,v=-1!==["top","bottom"].indexOf(i),y=!!t.flipVariations&&(v&&"start"===a&&f||v&&"end"===a&&p||!v&&"start"===a&&m||!v&&"end"===a&&g),b=!!t.flipVariationsByContent&&(v&&"start"===a&&p||v&&"end"===a&&f||!v&&"start"===a&&g||!v&&"end"===a&&m),w=y||b;(h||_||w)&&(e.flipped=!0,(h||_)&&(i=o[l+1]),w&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=i+(a?"-"+a:""),e.offsets.popper=k({},e.offsets.popper,P(e.instance.popper,e.offsets.reference,e.placement)),e=I(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,a=i.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[o?"left":"top"]=a[n]-(s?r[o?"width":"height"]:0),e.placement=Y(t),e.offsets.popper=A(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!G(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=j(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,r=e.offsets.popper,a=j(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=void 0!==a?a:t.gpuAcceleration,s=p(e.instance.popper),l=S(s),c={position:r.position},u=function(e,t){var n=e.offsets,i=n.popper,r=n.reference,a=Math.round,o=Math.floor,s=function(e){return e},l=a(r.width),c=a(i.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),h=t?u||d||l%2==c%2?a:o:s,f=t?a:s;return{left:h(l%2==1&&c%2==1&&!d&&t?i.left-1:i.left),top:f(i.top),bottom:f(i.bottom),right:h(i.right)}}(e,window.devicePixelRatio<2||!X),d="bottom"===n?"top":"bottom",h="right"===i?"left":"right",f=R("transform"),m=void 0,g=void 0;if(g="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===h?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,o&&f)c[f]="translate3d("+m+"px, "+g+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var _="bottom"===d?-1:1,v="right"===h?-1:1;c[d]=g*_,c[h]=m*v,c.willChange=d+", "+h}var y={"x-placement":e.placement};return e.attributes=k({},y,e.attributes),e.styles=k({},c,e.styles),e.arrowStyles=k({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return V(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&V(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,r){var a=D(r,t,e,n.positionFixed),o=C(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),V(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},re={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ie},ae=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=a(this.update.bind(this)),this.options=k({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(k({},e.Defaults.modifiers,r.modifiers)).forEach((function(t){i.options.modifiers[t]=k({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return k({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return w(e,[{key:"update",value:function(){return F.call(this)}},{key:"destroy",value:function(){return H.call(this)}},{key:"enableEventListeners",value:function(){return $.call(this)}},{key:"disableEventListeners",value:function(){return W.call(this)}}]),e}();ae.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,ae.placements=J,ae.Defaults=re;const oe=ae},4155:e=>{var t,n,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&h())}function h(){if(!c){var e=o(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||c||o(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},8259:(e,t,n)=>{"use strict";e.exports=n(2159)},3434:(e,t,n)=>{"use strict";var i=n(723);function r(){}var a=null,o={};function s(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("Promise constructor's argument is not a function");this._40=0,this._65=0,this._55=null,this._72=null,e!==r&&f(e,this)}function l(e,t){for(;3===e._65;)e=e._55;if(s._37&&s._37(e),0===e._65)return 0===e._40?(e._40=1,void(e._72=t)):1===e._40?(e._40=2,void(e._72=[e._72,t])):void e._72.push(t);!function(e,t){i((function(){var n=1===e._65?t.onFulfilled:t.onRejected;if(null!==n){var i=function(e,t){try{return e(t)}catch(e){return a=e,o}}(n,e._55);i===o?u(t.promise,a):c(t.promise,i)}else 1===e._65?c(t.promise,e._55):u(t.promise,e._55)}))}(e,t)}function c(e,t){if(t===e)return u(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var n=function(e){try{return e.then}catch(e){return a=e,o}}(t);if(n===o)return u(e,a);if(n===e.then&&t instanceof s)return e._65=3,e._55=t,void d(e);if("function"==typeof n)return void f(n.bind(t),e)}e._65=1,e._55=t,d(e)}function u(e,t){e._65=2,e._55=t,s._87&&s._87(e,t),d(e)}function d(e){if(1===e._40&&(l(e,e._72),e._72=null),2===e._40){for(var t=0;t<e._72.length;t++)l(e,e._72[t]);e._72=null}}function h(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function f(e,t){var n=!1,i=function(e,t,n){try{e(t,n)}catch(e){return a=e,o}}(e,(function(e){n||(n=!0,c(t,e))}),(function(e){n||(n=!0,u(t,e))}));n||i!==o||(n=!0,u(t,a))}e.exports=s,s._37=null,s._87=null,s._61=r,s.prototype.then=function(e,t){if(this.constructor!==s)return function(e,t,n){return new e.constructor((function(i,a){var o=new s(r);o.then(i,a),l(e,new h(t,n,o))}))}(this,e,t);var n=new s(r);return l(this,new h(e,t,n)),n}},4445:(e,t,n)=>{"use strict";var i=n(3434);e.exports=i,i.prototype.done=function(e,t){(arguments.length?this.then.apply(this,arguments):this).then(null,(function(e){setTimeout((function(){throw e}),0)}))}},1803:(e,t,n)=>{"use strict";var i=n(3434);e.exports=i;var r=u(!0),a=u(!1),o=u(null),s=u(void 0),l=u(0),c=u("");function u(e){var t=new i(i._61);return t._65=1,t._55=e,t}i.resolve=function(e){if(e instanceof i)return e;if(null===e)return o;if(void 0===e)return s;if(!0===e)return r;if(!1===e)return a;if(0===e)return l;if(""===e)return c;if("object"==typeof e||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new i(t.bind(e))}catch(e){return new i((function(t,n){n(e)}))}return u(e)},i.all=function(e){var t=Array.prototype.slice.call(e);return new i((function(e,n){if(0===t.length)return e([]);var r=t.length;function a(o,s){if(s&&("object"==typeof s||"function"==typeof s)){if(s instanceof i&&s.then===i.prototype.then){for(;3===s._65;)s=s._55;return 1===s._65?a(o,s._55):(2===s._65&&n(s._55),void s.then((function(e){a(o,e)}),n))}var l=s.then;if("function"==typeof l)return void new i(l.bind(s)).then((function(e){a(o,e)}),n)}t[o]=s,0==--r&&e(t)}for(var o=0;o<t.length;o++)a(o,t[o])}))},i.reject=function(e){return new i((function(t,n){n(e)}))},i.race=function(e){return new i((function(t,n){e.forEach((function(e){i.resolve(e).then(t,n)}))}))},i.prototype.catch=function(e){return this.then(null,e)}},8029:(e,t,n)=>{"use strict";var i=n(3434);e.exports=i,i.prototype.finally=function(e){return this.then((function(t){return i.resolve(e()).then((function(){return t}))}),(function(t){return i.resolve(e()).then((function(){throw t}))}))}},2159:(e,t,n)=>{"use strict";e.exports=n(3434),n(4445),n(8029),n(1803),n(2490),n(3690)},2490:(e,t,n)=>{"use strict";var i=n(3434),r=n(9272);e.exports=i,i.denodeify=function(e,t){return"number"==typeof t&&t!==1/0?function(e,t){for(var n=[],r=0;r<t;r++)n.push("a"+r);var o=["return function ("+n.join(",")+") {","var self = this;","return new Promise(function (rs, rj) {","var res = fn.call(",["self"].concat(n).concat([a]).join(","),");","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],o)(i,e)}(e,t):function(e){for(var t=Math.max(e.length-1,3),n=[],r=0;r<t;r++)n.push("a"+r);var o=["return function ("+n.join(",")+") {","var self = this;","var args;","var argLength = arguments.length;","if (arguments.length > "+t+") {","args = new Array(arguments.length + 1);","for (var i = 0; i < arguments.length; i++) {","args[i] = arguments[i];","}","}","return new Promise(function (rs, rj) {","var cb = "+a+";","var res;","switch (argLength) {",n.concat(["extra"]).map((function(e,t){return"case "+t+":res = fn.call("+["self"].concat(n.slice(0,t)).concat("cb").join(",")+");break;"})).join(""),"default:","args[argLength] = cb;","res = fn.apply(self, args);","}","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],o)(i,e)}(e)};var a="function (err, res) {if (err) { rj(err); } else { rs(res); }}";i.nodeify=function(e){return function(){var t=Array.prototype.slice.call(arguments),n="function"==typeof t[t.length-1]?t.pop():null,a=this;try{return e.apply(this,arguments).nodeify(n,a)}catch(e){if(null==n)return new i((function(t,n){n(e)}));r((function(){n.call(a,e)}))}}},i.prototype.nodeify=function(e,t){if("function"!=typeof e)return this;this.then((function(n){r((function(){e.call(t,null,n)}))}),(function(n){r((function(){e.call(t,n)}))}))}},3690:(e,t,n)=>{"use strict";var i=n(3434);e.exports=i,i.enableSynchronous=function(){i.prototype.isPending=function(){return 0==this.getState()},i.prototype.isFulfilled=function(){return 1==this.getState()},i.prototype.isRejected=function(){return 2==this.getState()},i.prototype.getValue=function(){if(3===this._65)return this._55.getValue();if(!this.isFulfilled())throw new Error("Cannot get a value of an unfulfilled promise.");return this._55},i.prototype.getReason=function(){if(3===this._65)return this._55.getReason();if(!this.isRejected())throw new Error("Cannot get a rejection reason of a non-rejected promise.");return this._55},i.prototype.getState=function(){return 3===this._65?this._55.getState():-1===this._65||-2===this._65?0:this._65}},i.disableSynchronous=function(){i.prototype.isPending=void 0,i.prototype.isFulfilled=void 0,i.prototype.isRejected=void 0,i.prototype.getValue=void 0,i.prototype.getReason=void 0,i.prototype.getState=void 0}},6095:function(e,t,n){var i,r=n(8764).lW;"undefined"!=typeof self&&self,i=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),r=n(18),a=n(19),o=n(45),s=n(46),l=n(47),c=n(48),u=n(49),d=n(12),h=n(32),f=n(33),p=n(31),m=n(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:i.default,Format:r.default,Leaf:a.default,Embed:c.default,Scroll:o.default,Block:l.default,Inline:s.default,Text:u.default,Attributor:{Attribute:d.default,Class:h.default,Style:f.default,Store:p.default}};t.default=g},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=a;var o,s={},l={},c={},u={};function d(e,t){var n;if(void 0===t&&(t=o.ANY),"string"==typeof e)n=u[e]||s[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof e)e&o.LEVEL&o.BLOCK?n=u.block:e&o.LEVEL&o.INLINE&&(n=u.inline);else if(e instanceof HTMLElement){var i=(e.getAttribute("class")||"").split(/\s+/);for(var r in i)if(n=l[i[r]])break;n=n||c[e.tagName]}return null==n?null:t&o.LEVEL&n.scope&&t&o.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(o=t.Scope||(t.Scope={})),t.create=function(e,t){var n=d(e);if(null==n)throw new a("Unable to create "+e+" blot");var i=n,r=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:i.create(t);return new i(r,t)},t.find=function e(n,i){return void 0===i&&(i=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:i?e(n.parentNode,i):null},t.query=d,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var i=t[0];if("string"!=typeof i.blotName&&"string"!=typeof i.attrName)throw new a("Invalid definition");if("abstract"===i.blotName)throw new a("Cannot register abstract class");return u[i.blotName||i.attrName]=i,"string"==typeof i.keyName?s[i.keyName]=i:(null!=i.className&&(l[i.className]=i),null!=i.tagName&&(Array.isArray(i.tagName)?i.tagName=i.tagName.map((function(e){return e.toUpperCase()})):i.tagName=i.tagName.toUpperCase(),(Array.isArray(i.tagName)?i.tagName:[i.tagName]).forEach((function(e){null!=c[e]&&null!=i.className||(c[e]=i)})))),i}},function(e,t,n){var i=n(51),r=n(11),a=n(3),o=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=a(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(i){(e(i)?t:n).push(i)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+o.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+o.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],i=o.iterator(this.ops),r=0;r<t&&i.hasNext();){var a;r<e?a=i.next(e-r):(a=i.next(t-r),n.push(a)),r+=o.length(a)}return new l(n)},l.prototype.compose=function(e){var t=o.iterator(this.ops),n=o.iterator(e.ops),i=[],a=n.peek();if(null!=a&&"number"==typeof a.retain&&null==a.attributes){for(var s=a.retain;"insert"===t.peekType()&&t.peekLength()<=s;)s-=t.peekLength(),i.push(t.next());a.retain-s>0&&n.next(a.retain-s)}for(var c=new l(i);t.hasNext()||n.hasNext();)if("insert"===n.peekType())c.push(n.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),d=t.next(u),h=n.next(u);if("number"==typeof h.retain){var f={};"number"==typeof d.retain?f.retain=u:f.insert=d.insert;var p=o.attributes.compose(d.attributes,h.attributes,"number"==typeof d.retain);if(p&&(f.attributes=p),c.push(f),!n.hasNext()&&r(c.ops[c.ops.length-1],f)){var m=new l(t.rest());return c.concat(m).chop()}}else"number"==typeof h.delete&&"number"==typeof d.retain&&c.push(h)}return c.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:s;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),a=new l,c=i(n[0],n[1],t),u=o.iterator(this.ops),d=o.iterator(e.ops);return c.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case i.INSERT:n=Math.min(d.peekLength(),t),a.push(d.next(n));break;case i.DELETE:n=Math.min(t,u.peekLength()),u.next(n),a.delete(n);break;case i.EQUAL:n=Math.min(u.peekLength(),d.peekLength(),t);var s=u.next(n),l=d.next(n);r(s.insert,l.insert)?a.retain(n,o.attributes.diff(s.attributes,l.attributes)):a.push(l).delete(n)}t-=n}})),a.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var n=o.iterator(this.ops),i=new l,r=0;n.hasNext();){if("insert"!==n.peekType())return;var a=n.peek(),s=o.length(a)-n.peekLength(),c="string"==typeof a.insert?a.insert.indexOf(t,s)-s:-1;if(c<0)i.push(n.next());else if(c>0)i.push(n.next(c));else{if(!1===e(i,n.next(1).attributes||{},r))return;r+=1,i=new l}}i.length()>0&&e(i,{},r)},l.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=o.iterator(this.ops),i=o.iterator(e.ops),r=new l;n.hasNext()||i.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===i.peekType())if("insert"===i.peekType())r.push(i.next());else{var a=Math.min(n.peekLength(),i.peekLength()),s=n.next(a),c=i.next(a);if(s.delete)continue;c.delete?r.push(c):r.retain(a,o.attributes.transform(s.attributes,c.attributes,t))}else r.retain(o.length(n.next()));return r.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var n=o.iterator(this.ops),i=0;n.hasNext()&&i<=e;){var r=n.peekLength(),a=n.peekType();n.next(),"delete"!==a?("insert"===a&&(i<e||!t)&&(e+=r),i+=r):e-=Math.min(r,e-i)}return e},e.exports=l},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},s=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,r=n.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!a)return!1;for(t in e);return void 0===t||n.call(e,t)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,n,i,r,a,u,d=arguments[0],h=1,f=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<f;++h)if(null!=(t=arguments[h]))for(n in t)i=c(d,n),d!==(r=c(t,n))&&(p&&r&&(s(r)||(a=o(r)))?(a?(a=!1,u=i&&o(i)?i:[]):u=i&&s(i)?i:{},l(d,{name:n,newValue:e(p,u,r)})):void 0!==r&&l(d,{name:n,newValue:r}));return d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},a=d(n(3)),o=d(n(2)),s=d(n(0)),l=d(n(16)),c=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return h(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),i(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new o.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=s.default.query(e,s.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,i){this.format(n,i)}},{key:"insertAt",value:function(e,n,i){if("string"==typeof n&&n.endsWith("\n")){var a=s.default.create(g.blotName);this.parent.insertBefore(a,0===e?this:this.next),a.insertAt(0,n.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,i)}}]),t}(s.default.Embed);m.scope=s.default.Scope.BLOCK_BLOT;var g=function(e){function t(e){h(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return p(t,e),i(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),_(t))}),new o.default).insert("\n",_(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,i,a){n<=0||(s.default.query(i,s.default.Scope.BLOCK)?e+n===this.length()&&this.format(i,a):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),i,a),this.cache={})}},{key:"insertAt",value:function(e,n,i){if(null!=i)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,i);if(0!==n.length){var a=n.split("\n"),o=a.shift();o.length>0&&(e<this.length()-1||null==this.children.tail?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});var s=this;a.reduce((function(e,t){return(s=s.split(e,!0)).insertAt(0,t),t.length}),e+o.length)}}},{key:"insertBefore",value:function(e,n){var i=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),i instanceof l.default&&i.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var i=this.clone();return 0===e?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}var a=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},a}}]),t}(s.default.Block);function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,a.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:_(e.parent,t))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[c.default,s.default.Embed,u.default],t.bubbleFormats=_,t.BlockEmbed=m,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var i="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=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();n(50);var o=g(n(2)),s=g(n(14)),l=g(n(8)),c=g(n(9)),u=g(n(0)),d=n(15),h=g(d),f=g(n(3)),p=g(n(10)),m=g(n(34));function g(e){return e&&e.__esModule?e:{default:e}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,p.default)("quill"),y=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=b(t,i),this.container=this.options.container,null==this.container)return v.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new h.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e){e===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(e,t){var i=n.selection.lastRange,r=i&&0===i.length?i.index:void 0;w.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var a=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(a),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return a(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),p.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&v.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var r=e.attrName||e.blotName;"string"==typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(i){n.register(i,e[i],t)}))}else null==this.imports[e]||i||v.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),a(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var i=this,a=x(e,t,n),o=r(a,4);return e=o[0],t=o[1],n=o[3],w.call(this,(function(){return i.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return w.call(this,(function(){var i=n.getSelection(!0),r=new o.default;if(null==i)return r;if(u.default.query(e,u.default.Scope.BLOCK))r=n.editor.formatLine(i.index,i.length,_({},e,t));else{if(0===i.length)return n.selection.format(e,t),r;r=n.editor.formatText(i.index,i.length,_({},e,t))}return n.setSelection(i,l.default.sources.SILENT),r}),i)}},{key:"formatLine",value:function(e,t,n,i,a){var o,s=this,l=x(e,t,n,i,a),c=r(l,4);return e=c[0],t=c[1],o=c[2],a=c[3],w.call(this,(function(){return s.editor.formatLine(e,t,o)}),a,e,0)}},{key:"formatText",value:function(e,t,n,i,a){var o,s=this,l=x(e,t,n,i,a),c=r(l,4);return e=c[0],t=c[1],o=c[2],a=c[3],w.call(this,(function(){return s.editor.formatText(e,t,o)}),a,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=x(e,t),i=r(n,2);return e=i[0],t=i[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=x(e,t),i=r(n,2);return e=i[0],t=i[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return w.call(this,(function(){return r.editor.insertEmbed(t,n,i)}),a,t)}},{key:"insertText",value:function(e,t,n,i,a){var o,s=this,l=x(e,0,n,i,a),c=r(l,4);return e=c[0],o=c[2],a=c[3],w.call(this,(function(){return s.editor.insertText(e,t,o)}),a,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var i=this,a=x(e,t,n),o=r(a,4);return e=o[0],t=o[1],n=o[3],w.call(this,(function(){return i.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,(function(){e=new o.default(e);var n=t.getLength(),i=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),a=r.ops[r.ops.length-1];return null!=a&&"string"==typeof a.insert&&"\n"===a.insert[a.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1)),i.compose(r)}),n)}},{key:"setSelection",value:function(t,n,i){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var a=x(t,n,i),o=r(a,4);t=o[0],n=o[1],i=o[3],this.selection.setRange(new d.Range(t,n),i),i!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,n=(new o.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,(function(){return e=new o.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function b(e,t){if((t=(0,f.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==y.DEFAULTS.theme){if(t.theme=y.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var n=(0,f.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var i=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=y.import("modules/"+t);return null==n?v.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,f.default)(!0,{},y.DEFAULTS,{modules:i},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function w(e,t,n,i){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new o.default;var r=null==n?null:this.getSelection(),a=this.editor.delta,s=e();if(null!=r&&(!0===n&&(n=r.index),null==i?r=k(r,s,t):0!==i&&(r=k(r,n,i,t)),this.setSelection(r,l.default.sources.SILENT)),s.length()>0){var c,u,d=[l.default.events.TEXT_CHANGE,s,a,t];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(d)),t!==l.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}return s}function x(e,t,n,r,a){var o={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(a=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(a=r,r=n,n=t,t=0),"object"===(void 0===n?"undefined":i(n))?(o=n,a=r):"string"==typeof n&&(null!=r?o[n]=r:a=n),[e,t,o,a=a||l.default.sources.API]}function k(e,t,n,i){if(null==e)return null;var a=void 0,s=void 0;if(t instanceof o.default){var c=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,i!==l.default.sources.USER)})),u=r(c,2);a=u[0],s=u[1]}else{var h=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&i===l.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),f=r(h,2);a=f[0],s=f[1]}return new d.Range(a,s-a)}y.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},y.events=l.default.events,y.sources=l.default.sources,y.version="1.3.7",y.imports={delta:o.default,parchment:u.default,"core/module":c.default,"core/theme":m.default},t.expandConfig=b,t.overload=x,t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},a=s(n(7)),o=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"formatAt",value:function(e,n,i,a){if(t.compare(this.statics.blotName,i)<0&&o.default.query(i,o.default.Scope.BLOT)){var s=this.isolate(e,n);a&&s.wrap(i,a)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,i,a)}},{key:"optimize",value:function(e){if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var i=t.order.indexOf(e),r=t.order.indexOf(n);return i>=0||r>=0?i-r:e===n?0:e<n?-1:1}}]),t}(o.default.Inline);l.allowedChildren=[l,o.default.Embed,a.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((i=r)&&i.__esModule?i:{default:i}).default.Text);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},a=o(n(54));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,o(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var l=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",s.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"emit",value:function(){s.log.apply(s,arguments),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(this.listeners[e.type]||[]).forEach((function(t){var i=t.node,r=t.handler;(e.target===i||i.contains(e.target))&&r.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(a.default);l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n};i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],r="warn";function a(e){if(i.indexOf(e)<=i.indexOf(r)){for(var t,n=arguments.length,a=Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];(t=console)[e].apply(t,a)}}function o(e){return i.reduce((function(t,n){return t[n]=a.bind(console,n,e),t}),{})}a.level=o.level=function(e){r=e},t.default=o},function(e,t,n){var i=Array.prototype.slice,r=n(52),a=n(53),o=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var c,u;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(a(e))return!!a(t)&&(e=i.call(e),t=i.call(t),o(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}try{var d=r(e),h=r(t)}catch(e){return!1}if(d.length!=h.length)return!1;for(d.sort(),h.sort(),c=d.length-1;c>=0;c--)if(d[c]!=h[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!o(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function s(e){return null==e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=i.Scope.TYPE&i.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&i.Scope.LEVEL|r:this.scope=i.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=i.query(e,i.Scope.BLOT&(this.scope|i.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},o=d(n(2)),s=d(n(0)),l=d(n(4)),c=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return h(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),t}(c.default);m.blotName="code",m.tagName="CODE";var g=function(e){function t(){return h(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),r(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new o.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(u.default,this.length()-1),o=i(r,1)[0];null!=o&&o.deleteAt(o.length()-1,1),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,i,r){if(0!==n&&null!=s.default.query(i,s.default.Scope.BLOCK)&&(i!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var a=this.newlineIndex(e);if(!(a<0||a>=e+n)){var o=this.newlineIndex(e,!0)+1,l=a-o+1,c=this.isolate(o,l),u=c.next;c.format(i,r),u instanceof t&&u.formatAt(0,e-o+n-l,i,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(u.default,e),a=i(r,2),o=a[0],s=a[1];o.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=s.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof s.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(l.default);g.blotName="code-block",g.tagName="PRE",g.TAB="  ",t.Code=m,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="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=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=_(n(2)),s=_(n(20)),l=_(n(0)),c=_(n(13)),u=_(n(24)),d=n(4),h=_(d),f=_(n(16)),p=_(n(21)),m=_(n(11)),g=_(n(3));function _(e){return e&&e.__esModule?e:{default:e}}var v=/^[ -~]*$/,y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return a(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var a=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,p.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,p.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var i=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(i,t.attributes)}return e.push(t)}),new o.default)}(e)).reduce((function(e,o){var c=o.retain||o.delete||o.insert.length||1,u=o.attributes||{};if(null!=o.insert){if("string"==typeof o.insert){var f=o.insert;f.endsWith("\n")&&n&&(n=!1,f=f.slice(0,-1)),e>=a&&!f.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,f);var p=t.scroll.line(e),m=r(p,2),_=m[0],v=m[1],y=(0,g.default)({},(0,d.bubbleFormats)(_));if(_ instanceof h.default){var b=_.descendant(l.default.Leaf,v),w=r(b,1)[0];y=(0,g.default)(y,(0,d.bubbleFormats)(w))}u=s.default.attributes.diff(y,u)||{}}else if("object"===i(o.insert)){var x=Object.keys(o.insert)[0];if(null==x)return e;t.scroll.insertAt(e,x,o.insert[x])}a+=c}return Object.keys(u).forEach((function(n){t.scroll.formatAt(e,c,n,u[n])})),e+c}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new o.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(i).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var a=n.scroll.lines(e,Math.max(t,1)),o=t;a.forEach((function(t){var a=t.length();if(t instanceof c.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+o)-s+1;t.formatAt(s,l,r,i[r])}else t.format(r,i[r]);o-=a}))}})),this.scroll.optimize(),this.update((new o.default).retain(e).retain(t,(0,p.default)(i)))}},{key:"formatText",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(i).forEach((function(r){n.scroll.formatAt(e,t,r,i[r])})),this.update((new o.default).retain(e).retain(t,(0,p.default)(i)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new o.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],i=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1)[0];t instanceof h.default?n.push(t):t instanceof l.default.Leaf&&i.push(t)})):(n=this.scroll.lines(e,t),i=this.scroll.descendants(l.default.Leaf,e,t));var a=[n,i].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=b((0,d.bubbleFormats)(n),t)}return t}));return g.default.apply(g.default,a)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new o.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(i).forEach((function(r){n.scroll.formatAt(e,t.length,r,i[r])})),this.update((new o.default).retain(e).insert(t,(0,p.default)(i)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===h.default.blotName&&!(e.children.length>1)&&e.children.head instanceof f.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),i=this.scroll.line(e+t),a=r(i,2),s=a[0],l=a[1],u=0,d=new o.default;null!=s&&(u=s instanceof c.default?s.newlineIndex(l)-l+1:s.length()-l,d=s.delta().slice(l,l+u-1).insert("\n"));var h=this.getContents(e,t+u).diff((new o.default).insert(n).concat(d)),f=(new o.default).retain(e).concat(h);return this.applyDelta(f)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(v)&&l.default.find(t[0].target)){var r=l.default.find(t[0].target),a=(0,d.bubbleFormats)(r),s=r.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),h=(new o.default).insert(c),f=(new o.default).insert(r.value());e=(new o.default).retain(s).concat(h.diff(f,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,a):e.push(t)}),new o.default),this.delta=i.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(i.compose(e),this.delta)||(e=i.diff(this.delta,n));return e}}]),e}();function b(e,t){return Object.keys(t).reduce((function(n,i){return null==e[i]||(t[i]===e[i]?n[i]=t[i]:Array.isArray(t[i])?t[i].indexOf(e[i])<0&&(n[i]=t[i].concat([e[i]])):n[i]=[t[i],e[i]]),n}),{})}t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=c(n(0)),o=c(n(21)),s=c(n(11)),l=c(n(8));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h=(0,c(n(10)).default)("quill:selection"),f=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},p=function(){function e(t,n){var i=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){i.mouseDown||setTimeout(i.update.bind(i,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.TEXT_CHANGE&&t.length()>0&&i.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(i.hasFocus()){var e=i.getNativeRange();null!=e&&e.start.node!==i.cursor.textNode&&i.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{i.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,r=n.startNode,a=n.startOffset,o=n.endNode,s=n.endOffset;i.setNativeRange(r,a,o,s)}})),this.update(l.default.sources.SILENT)}return r(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(e,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var i=a.default.find(n.start.node,!1);if(null==i)return;if(i instanceof a.default.Leaf){var r=i.split(n.start.offset);i.parent.insertBefore(this.cursor,r)}else i.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,a=this.scroll.leaf(e),o=i(a,2),s=o[0],l=o[1];if(null==s)return null;var c=s.position(l,!0),u=i(c,2);r=u[0],l=u[1];var d=document.createRange();if(t>0){d.setStart(r,l);var h=this.scroll.leaf(e+t),f=i(h,2);if(s=f[0],l=f[1],null==s)return null;var p=s.position(l,!0),m=i(p,2);return r=m[0],l=m[1],d.setEnd(r,l),d.getBoundingClientRect()}var g="left",_=void 0;return r instanceof Text?(l<r.data.length?(d.setStart(r,l),d.setEnd(r,l+1)):(d.setStart(r,l-1),d.setEnd(r,l),g="right"),_=d.getBoundingClientRect()):(_=s.domNode.getBoundingClientRect(),l>0&&(g="right")),{bottom:_.top+_.height,height:_.height,left:_[g],right:_[g],top:_.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return h.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=i(e,2),r=n[0],o=n[1],s=a.default.find(r,!0),l=s.offset(t.scroll);return 0===o?l:s instanceof a.default.Container?l+s.length():l+s.index(r,o)})),o=Math.min(Math.max.apply(Math,u(r)),this.scroll.length()-1),s=Math.min.apply(Math,[o].concat(u(r)));return new f(s,o-s)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],a=this.scroll.length();return n.forEach((function(e,n){e=Math.min(a-1,e);var o,s=t.scroll.leaf(e),l=i(s,2),c=l[0],u=l[1],d=c.position(u,0!==n),h=i(d,2);o=h[0],u=h[1],r.push(o,u)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,a=this.scroll.line(Math.min(t.index,r)),o=i(a,1)[0],s=o;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,r));s=i(l,1)[0]}if(null!=o&&null!=s){var c=e.getBoundingClientRect();n.top<c.top?e.scrollTop-=c.top-n.top:n.bottom>c.bottom&&(e.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(h.info("setNativeRange",e,t,n,i),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var a=document.getSelection();if(null!=a)if(null!=e){this.hasFocus()||this.root.focus();var o=(this.getNativeRange()||{}).native;if(null==o||r||e!==o.startContainer||t!==o.startOffset||n!==o.endContainer||i!==o.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(i=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,i),a.removeAllRanges(),a.addRange(s)}}else a.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof t&&(n=t,t=!1),h.info("setRange",e),null!=e){var i=this.rangeToNative(e);this.setNativeRange.apply(this,u(i).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,n=this.getRange(),r=i(n,2),a=r[0],c=r[1];if(this.lastRange=a,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(t,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var d,h=[l.default.events.SELECTION_CHANGE,(0,o.default)(this.lastRange),(0,o.default)(t),e];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(h)),e!==l.default.sources.SILENT&&(d=this.emitter).emit.apply(d,h)}}}]),e}();function m(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=f,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},o=n(0),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"insertInto",value:function(e,n){0===e.children.length?a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((i=o)&&i.__esModule?i:{default:i}).default.Embed);s.blotName="break",s.tagName="BR",t.default=s},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(44),o=n(30),s=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new a.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=c(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof s.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var i=this.children.find(n),r=i[0],a=i[1];return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,a]:r instanceof t?r.descendant(e,a):[null,-1]},t.prototype.descendants=function(e,n,i){void 0===n&&(n=0),void 0===i&&(i=Number.MAX_VALUE);var r=[],a=i;return this.children.forEachAt(n,i,(function(n,i,o){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&r.push(n),n instanceof t&&(r=r.concat(n.descendants(e,i,a))),a-=o})),r},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,i){this.children.forEachAt(e,t,(function(e,t,r){e.formatAt(t,r,n,i)}))},t.prototype.insertAt=function(e,t,n){var i=this.children.find(e),r=i[0],a=i[1];if(r)r.insertAt(a,t,n);else{var o=null==n?s.create("text",t):s.create(t,n);this.appendChild(o)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new s.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=s.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var i=this.children.find(e,n),r=i[0],a=i[1],o=[[this,e]];return r instanceof t?o.concat(r.path(a,n)):(null!=r&&o.push([r,a]),o)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,i,r){e=e.split(i,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,i=[],r=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(i.push.apply(i,e.addedNodes),r.push.apply(r,e.removedNodes))})),r.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=s.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),i.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=s.find(e.nextSibling));var i=c(e);i.next==t&&null!=i.next||(null!=i.parent&&i.parent.removeChild(n),n.insertBefore(i,t||void 0))}))},t}(o.default);function c(e){var t=s.find(e);if(null==t)try{t=s.create(e)}catch(n){t=s.create(s.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=l},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(12),o=n(31),s=n(17),l=n(1),c=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new o.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=l.query(e);n instanceof a.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var i=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(i),i},t.prototype.update=function(t,n){var i=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===i.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,i){var r=e.prototype.wrap.call(this,n,i);return r instanceof t&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},t}(s.default);t.default=c},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(30),o=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=o.Scope.INLINE_BLOT,t}(a.default);t.default=s},function(e,t,n){var i=n(11),r=n(3),a={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var i=r(!0,{},t);for(var a in n||(i=Object.keys(i).reduce((function(e,t){return null!=i[t]&&(e[t]=i[t]),e}),{})),e)void 0!==e[a]&&void 0===t[a]&&(i[a]=e[a]);return Object.keys(i).length>0?i:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return i(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var i=Object.keys(t).reduce((function(n,i){return void 0===e[i]&&(n[i]=t[i]),n}),{});return Object.keys(i).length>0?i:void 0}}},iterator:function(e){return new o(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function o(e){this.ops=e,this.index=0,this.offset=0}o.prototype.hasNext=function(){return this.peekLength()<1/0},o.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,i=a.length(t);if(e>=i-n?(e=i-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}return{retain:1/0}},o.prototype.peek=function(){return this.ops[this.index]},o.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},o.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},o.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),i=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(i)}return[]},e.exports=a},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,i;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{i=Promise}catch(e){i=function(){}}function a(o,l,c,u,d){"object"==typeof l&&(c=l.depth,u=l.prototype,d=l.includeNonEnumerable,l=l.circular);var h=[],f=[],p=void 0!==r;return void 0===l&&(l=!0),void 0===c&&(c=1/0),function o(c,m){if(null===c)return null;if(0===m)return c;var g,_;if("object"!=typeof c)return c;if(e(c,t))g=new t;else if(e(c,n))g=new n;else if(e(c,i))g=new i((function(e,t){c.then((function(t){e(o(t,m-1))}),(function(e){t(o(e,m-1))}))}));else if(a.__isArray(c))g=[];else if(a.__isRegExp(c))g=new RegExp(c.source,s(c)),c.lastIndex&&(g.lastIndex=c.lastIndex);else if(a.__isDate(c))g=new Date(c.getTime());else{if(p&&r.isBuffer(c))return g=r.allocUnsafe?r.allocUnsafe(c.length):new r(c.length),c.copy(g),g;e(c,Error)?g=Object.create(c):void 0===u?(_=Object.getPrototypeOf(c),g=Object.create(_)):(g=Object.create(u),_=u)}if(l){var v=h.indexOf(c);if(-1!=v)return f[v];h.push(c),f.push(g)}for(var y in e(c,t)&&c.forEach((function(e,t){var n=o(t,m-1),i=o(e,m-1);g.set(n,i)})),e(c,n)&&c.forEach((function(e){var t=o(e,m-1);g.add(t)})),c){var b;_&&(b=Object.getOwnPropertyDescriptor(_,y)),b&&null==b.set||(g[y]=o(c[y],m-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(c);for(y=0;y<w.length;y++){var x=w[y];(!(A=Object.getOwnPropertyDescriptor(c,x))||A.enumerable||d)&&(g[x]=o(c[x],m-1),A.enumerable||Object.defineProperty(g,x,{enumerable:!1}))}}if(d){var k=Object.getOwnPropertyNames(c);for(y=0;y<k.length;y++){var A,S=k[y];(A=Object.getOwnPropertyDescriptor(c,S))&&A.enumerable||(g[S]=o(c[S],m-1),Object.defineProperty(g,S,{enumerable:!1}))}}return g}(o,c)}function o(e){return Object.prototype.toString.call(e)}function s(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return a.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},a.__objToStr=o,a.__isDate=function(e){return"object"==typeof e&&"[object Date]"===o(e)},a.__isArray=function(e){return"object"==typeof e&&"[object Array]"===o(e)},a.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===o(e)},a.__getRegExpFlags=s,a}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},o=f(n(0)),s=f(n(8)),l=n(4),c=f(l),u=f(n(16)),d=f(n(13)),h=f(n(25));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return e instanceof c.default||e instanceof l.BlockEmbed}var m=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.emitter=n.emitter,Array.isArray(n.whitelist)&&(i.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),i.domNode.addEventListener("DOMNodeInserted",(function(){})),i.optimize(),i.enable(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var r=this.line(e),o=i(r,2),s=o[0],c=o[1],h=this.line(e+n),f=i(h,1)[0];if(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=f&&s!==f&&c>0){if(s instanceof l.BlockEmbed||f instanceof l.BlockEmbed)return void this.optimize();if(s instanceof d.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1))===f)return void this.optimize()}else if(f instanceof d.default){var m=f.newlineIndex(0);m>-1&&f.split(m+1)}var g=f.children.head instanceof u.default?null:f.children.head;s.moveChildren(f,g),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,i,r){(null==this.whitelist||this.whitelist[i])&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,i,r),this.optimize())}},{key:"insertAt",value:function(e,n,i){if(null==i||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==i||null==o.default.query(n,o.default.Scope.BLOCK)){var r=o.default.create(this.statics.defaultChild);this.appendChild(r),null==i&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,i)}else{var s=o.default.create(n,i);this.appendChild(s)}else a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,i);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===o.default.Scope.INLINE_BLOT){var i=o.default.create(this.statics.defaultChild);i.appendChild(e),e=i}a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(p,e)}},{key:"lines",value:function(){return function e(t,n,i){var r=[],a=i;return t.children.forEachAt(n,i,(function(t,n,i){p(t)?r.push(t):t instanceof o.default.Container&&(r=r.concat(e(t,n,a))),a-=i})),r}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=s.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,e),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,e)}}}]),t}(o.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[c.default,l.BlockEmbed,h.default],t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var i="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=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=m(n(21)),s=m(n(11)),l=m(n(3)),c=m(n(2)),u=m(n(20)),d=m(n(0)),h=m(n(5)),f=m(n(10)),p=m(n(9));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=(0,f.default)("quill:keyboard"),v=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",y=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.bindings={},Object.keys(i.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&i.options.bindings[t]&&i.addBinding(i.options.bindings[t])})),i.addBinding({key:t.keys.ENTER,shiftKey:null},A),i.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(i.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},w),i.addBinding({key:t.keys.DELETE},{collapsed:!0},x)):(i.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),i.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},x)),i.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},k),i.addBinding({key:t.keys.DELETE},{collapsed:!1},k),i.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),i.listen(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,null,[{key:"match",value:function(e,t){return t=T(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),a(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=T(e);if(null==i||null==i.key)return _.warn("Attempted to add invalid keyboard binding",i);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),i=(0,l.default)(i,t,n),this.bindings[i.key]=this.bindings[i.key]||[],this.bindings[i.key].push(i)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var a=n.which||n.keyCode,o=(e.bindings[a]||[]).filter((function(e){return t.match(n,e)}));if(0!==o.length){var l=e.quill.getSelection();if(null!=l&&e.quill.hasFocus()){var c=e.quill.getLine(l.index),u=r(c,2),h=u[0],f=u[1],p=e.quill.getLeaf(l.index),m=r(p,2),g=m[0],_=m[1],v=0===l.length?[g,_]:e.quill.getLeaf(l.index+l.length),y=r(v,2),b=y[0],w=y[1],x=g instanceof d.default.Text?g.value().slice(0,_):"",k=b instanceof d.default.Text?b.value().slice(w):"",A={collapsed:0===l.length,empty:0===l.length&&h.length()<=1,format:e.quill.getFormat(l),offset:f,prefix:x,suffix:k};o.some((function(t){if(null!=t.collapsed&&t.collapsed!==A.collapsed)return!1;if(null!=t.empty&&t.empty!==A.empty)return!1;if(null!=t.offset&&t.offset!==A.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==A.format[e]})))return!1}else if("object"===i(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=A.format[e]:!1===t.format[e]?null==A.format[e]:(0,s.default)(t.format[e],A.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(A.prefix)||null!=t.suffix&&!t.suffix.test(A.suffix)||!0===t.handler.call(e,l,A))}))&&n.preventDefault()}}}}))}}]),t}(p.default);function b(e,t){var n,i=e===y.keys.LEFT?"prefix":"suffix";return g(n={key:e,shiftKey:t,altKey:null},i,/^$/),g(n,"handler",(function(n){var i=n.index;e===y.keys.RIGHT&&(i+=n.length+1);var a=this.quill.getLeaf(i);return!(r(a,1)[0]instanceof d.default.Embed&&(e===y.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index-1,h.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index+n.length+1,h.default.sources.USER),1))})),n}function w(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),i=r(n,1)[0],a={};if(0===t.offset){var o=this.quill.getLine(e.index-1),s=r(o,1)[0];if(null!=s&&s.length()>1){var l=i.formats(),c=this.quill.getFormat(e.index-1,1);a=u.default.attributes.diff(l,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,h.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(e.index-d,d,a,h.default.sources.USER),this.quill.focus()}}function x(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var i={},a=0,o=this.quill.getLine(e.index),s=r(o,1)[0];if(t.offset>=s.length()-1){var l=this.quill.getLine(e.index+1),c=r(l,1)[0];if(c){var d=s.formats(),f=this.quill.getFormat(e.index,1);i=u.default.attributes.diff(d,f)||{},a=c.length()}}this.quill.deleteText(e.index,n,h.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index+a-1,n,i,h.default.sources.USER)}}function k(e){var t=this.quill.getLines(e),n={};if(t.length>1){var i=t[0].formats(),r=t[t.length-1].formats();n=u.default.attributes.diff(r,i)||{}}this.quill.deleteText(e,h.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,h.default.sources.USER),this.quill.setSelection(e.index,h.default.sources.SILENT),this.quill.focus()}function A(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var i=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",i,h.default.sources.USER),this.quill.setSelection(e.index+1,h.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==i[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],h.default.sources.USER))}))}function S(e){return{key:y.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),i=t.index,a=t.length,o=this.quill.scroll.descendant(n,i),s=r(o,2),l=s[0],c=s[1];if(null!=l){var u=this.quill.getIndex(l),f=l.newlineIndex(c,!0)+1,p=l.newlineIndex(u+c+a),m=l.domNode.textContent.slice(f,p).split("\n");c=0,m.forEach((function(t,r){e?(l.insertAt(f+c,n.TAB),c+=n.TAB.length,0===r?i+=n.TAB.length:a+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(f+c,n.TAB.length),c-=n.TAB.length,0===r?i-=n.TAB.length:a-=n.TAB.length),c+=t.length+1})),this.quill.update(h.default.sources.USER),this.quill.setSelection(i,a,h.default.sources.SILENT)}}}}function M(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],h.default.sources.USER)}}}function T(e){if("string"==typeof e||"number"==typeof e)return T({key:e});if("object"===(void 0===e?"undefined":i(e))&&(e=(0,o.default)(e,!1)),"string"==typeof e.key)if(null!=y.keys[e.key.toUpperCase()])e.key=y.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[v]=e.shortKey,delete e.shortKey),e}y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},y.DEFAULTS={bindings:{bold:M("bold"),italic:M("italic"),underline:M("underline"),indent:{key:y.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",h.default.sources.USER)}},outdent:{key:y.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",h.default.sources.USER)}},"outdent backspace":{key:y.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",h.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,h.default.sources.USER)}},"indent code-block":S(!0),"outdent code-block":S(!1),"remove tab":{key:y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,h.default.sources.USER)}},tab:{key:y.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,h.default.sources.SILENT)}},"list empty enter":{key:y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,h.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,h.default.sources.USER)}},"checklist enter":{key:y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),i=n[0],a=n[1],o=(0,l.default)({},i.formats(),{list:"checked"}),s=(new c.default).retain(e.index).insert("\n",o).retain(i.length()-a-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,h.default.sources.USER),this.quill.setSelection(e.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),i=r(n,2),a=i[0],o=i[1],s=(new c.default).retain(e.index).insert("\n",t.format).retain(a.length()-o-1).retain(1,{header:null});this.quill.updateContents(s,h.default.sources.USER),this.quill.setSelection(e.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,i=this.quill.getLine(e.index),a=r(i,2),o=a[0],s=a[1];if(s>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",h.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-s).delete(n+1).retain(o.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,h.default.sources.SILENT)}},"code exit":{key:y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),i=n[0],a=n[1],o=(new c.default).retain(e.index+i.length()-a-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(o,h.default.sources.USER)}},"embed left":b(y.keys.LEFT,!1),"embed left shift":b(y.keys.LEFT,!0),"embed right":b(y.keys.RIGHT,!1),"embed right shift":b(y.keys.RIGHT,!0)}},t.default=y,t.SHORTKEY=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=l(n(0)),s=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.selection=n,i.textNode=document.createTextNode(t.CONTENTS),i.domNode.appendChild(i.textNode),i._length=0,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,null,[{key:"value",value:function(){}}]),a(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var i=this,a=0;null!=i&&i.statics.scope!==o.default.Scope.BLOCK_BLOT;)a+=i.offset(i.parent),i=i.parent;null!=i&&(this._length=t.CONTENTS.length,i.optimize(),i.formatAt(a,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,a=void 0,l=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var c=[e,n.start.offset,n.end.offset];r=c[0],a=c[1],l=c[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof s.default?(r=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(o.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=a){var d=[a,l].map((function(e){return Math.max(0,Math.min(r.data.length,e-1))})),h=i(d,2);return a=h[0],l=h[1],{startNode:r,startOffset:a,endNode:r,endOffset:l}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var i=this.restore();i&&(t.range=i)}}},{key:"value",value:function(){return""}}]),t}(o.default.Embed);c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\ufeff",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(0)),r=n(4),a=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default.Container);s.allowedChildren=[a.default,r.BlockEmbed,s],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},o=n(0),s=(i=o)&&i.__esModule?i:{default:i},l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"value",value:function(e){var n=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(s.default.Attributor.Style),c=new s.default.Attributor.Class("color","ql-color",{scope:s.default.Scope.INLINE}),u=new l("color","color",{scope:s.default.Scope.INLINE});t.ColorAttributor=l,t.ColorClass=c,t.ColorStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},o=n(6),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return l(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((i=o)&&i.__esModule?i:{default:i}).default);function l(e,t){var n=document.createElement("a");n.href=e;var i=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(i)>-1}s.blotName="link",s.tagName="A",s.SANITIZED_URL="about:blank",s.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=s,t.sanitize=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="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=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=s(n(23)),o=s(n(107));function s(e){return e&&e.__esModule?e:{default:e}}var l=0;function c(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case a.default.keys.ENTER:n.togglePicker();break;case a.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return r(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case a.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case a.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=o.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var i=e.buildItem(n);t.appendChild(i),!0===n.selected&&e.selectItem(i)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":i(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=_(n(0)),r=_(n(5)),a=n(4),o=_(a),s=_(n(16)),l=_(n(25)),c=_(n(24)),u=_(n(35)),d=_(n(6)),h=_(n(22)),f=_(n(7)),p=_(n(55)),m=_(n(42)),g=_(n(23));function _(e){return e&&e.__esModule?e:{default:e}}r.default.register({"blots/block":o.default,"blots/block/embed":a.BlockEmbed,"blots/break":s.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":h.default,"blots/text":f.default,"modules/clipboard":p.default,"modules/history":m.default,"modules/keyboard":g.default}),i.default.register(o.default,s.default,c.default,d.default,h.default,f.default),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e){this.domNode=e,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new i.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return i.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,r){var a=this.isolate(e,t);if(null!=i.query(n,i.Scope.BLOT)&&r)a.wrap(n,r);else if(null!=i.query(n,i.Scope.ATTRIBUTE)){var o=i.create(this.statics.scope);a.wrap(o),o.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?i.create("text",t):i.create(t,n),a=this.split(e);this.parent.insertBefore(r,a)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[i.DATA_KEY]&&delete this.domNode[i.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?i.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?i.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(32),a=n(33),o=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=i.default.keys(this.domNode),n=r.default.keys(this.domNode),s=a.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=o.query(t,o.Scope.ATTRIBUTE);n instanceof i.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var i=t.attributes[n].value(t.domNode);e.format(n,i)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function a(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){a(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(a(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=o},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function a(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[a(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[a(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[a(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return i(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();r.DEFAULTS={modules:{}},r.themes={default:r},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},a=s(n(0)),o=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}var l="\ufeff",c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,i=e.data.split(l).join("");if(e===this.leftGuard)if(this.prev instanceof o.default){var r=this.prev.length();this.prev.insertAt(r,i),t={startNode:this.prev.domNode,startOffset:r+i.length}}else n=document.createTextNode(i),this.parent.insertBefore(a.default.create(n),this),t={startNode:n,startOffset:i.length};else e===this.rightGuard&&(this.next instanceof o.default?(this.next.insertAt(0,i),t={startNode:this.next.domNode,startOffset:i.length}):(n=document.createTextNode(i),this.parent.insertBefore(a.default.create(n),this.next),t={startNode:n,startOffset:i.length}));return e.data=l,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var i=n.restore(e.target);i&&(t.range=i)}}))}}]),t}(a.default.Embed);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var i,r=n(0),a=(i=r)&&i.__esModule?i:{default:i},o={scope:a.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new a.default.Attributor.Attribute("align","align",o),l=new a.default.Attributor.Class("align","ql-align",o),c=new a.default.Attributor.Style("align","text-align",o);t.AlignAttribute=s,t.AlignClass=l,t.AlignStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var i,r=n(0),a=(i=r)&&i.__esModule?i:{default:i},o=n(26),s=new a.default.Attributor.Class("background","ql-bg",{scope:a.default.Scope.INLINE}),l=new o.ColorAttributor("background","background-color",{scope:a.default.Scope.INLINE});t.BackgroundClass=s,t.BackgroundStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var i,r=n(0),a=(i=r)&&i.__esModule?i:{default:i},o={scope:a.default.Scope.BLOCK,whitelist:["rtl"]},s=new a.default.Attributor.Attribute("direction","dir",o),l=new a.default.Attributor.Class("direction","ql-direction",o),c=new a.default.Attributor.Style("direction","direction",o);t.DirectionAttribute=s,t.DirectionClass=l,t.DirectionStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},o=n(0),s=(i=o)&&i.__esModule?i:{default:i},l={scope:s.default.Scope.INLINE,whitelist:["serif","monospace"]},c=new s.default.Attributor.Class("font","ql-font",l),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"value",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(s.default.Attributor.Style),d=new u("font","font-family",l);t.FontStyle=d,t.FontClass=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var i,r=n(0),a=(i=r)&&i.__esModule?i:{default:i},o=new a.default.Attributor.Class("size","ql-size",{scope:a.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new a.default.Attributor.Style("size","font-size",{scope:a.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=o,t.SizeStyle=s},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=o(n(0)),a=o(n(5));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.lastRecorded=0,i.ignoreChange=!1,i.clear(),i.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,r){e!==a.default.events.TEXT_CHANGE||i.ignoreChange||(i.options.userOnly&&r!==a.default.sources.USER?i.transform(t):i.record(t,n))})),i.quill.keyboard.addBinding({key:"Z",shortKey:!0},i.undo.bind(i)),i.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},i.redo.bind(i)),/Win/i.test(navigator.platform)&&i.quill.keyboard.addBinding({key:"Y",shortKey:!0},i.redo.bind(i)),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],a.default.sources.USER),this.ignoreChange=!1;var i=l(n[e]);this.quill.setSelection(i)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=i;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(o(n(9)).default);function l(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=r.default.query(e,r.default.Scope.BLOCK)})))}(e)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=s,t.getLastChangeIndex=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},a=p(n(3)),o=p(n(2)),s=p(n(8)),l=p(n(23)),c=p(n(34)),u=p(n(59)),d=p(n(60)),h=p(n(28)),f=p(n(61));function p(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[!1,"center","right","justify"],y=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],b=[!1,"serif","monospace"],w=["1","2","3",!1],x=["small",!1,"large","huge"],k=function(e){function t(e,n){m(this,t);var i=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==i.tooltip||i.tooltip.root.contains(n.target)||document.activeElement===i.tooltip.textbox||i.quill.hasFocus()||i.tooltip.hide(),null!=i.pickers&&i.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))})),i}return _(t,e),i(t,[{key:"addModule",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var i=e.value||"";null!=i&&t[n][i]&&(e.innerHTML=t[n][i])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&S(e,v),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&S(e,y,"background"===n?"#ffffff":"#000000"),new u.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?S(e,b):e.classList.contains("ql-header")?S(e,w):e.classList.contains("ql-size")&&S(e,x)),new h.default(e)})),this.quill.on(s.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(c.default);k.DEFAULTS=(0,a.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var i=e.quill.getSelection(!0);e.quill.updateContents((new o.default).retain(i.index).delete(i.length).insert({image:n.target.result}),s.default.sources.USER),e.quill.setSelection(i.index+1,s.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var A=function(e){function t(e,n){m(this,t);var i=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.textbox=i.root.querySelector('input[type="text"]'),i.listen(),i}return _(t,e),i(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){l.default.match(t,"enter")?(e.save(),t.preventDefault()):l.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var i=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,s.default.sources.USER)),this.quill.root.scrollTop=i;break;case"video":n=(t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var r=this.quill.getSelection(!0);if(null!=r){var a=r.index+r.length;this.quill.insertEmbed(a,this.root.getAttribute("data-mode"),n,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(a+1," ",s.default.sources.USER),this.quill.setSelection(a+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(f.default);function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var i=document.createElement("option");t===n?i.setAttribute("selected","selected"):i.setAttribute("value",t),e.appendChild(i)}))}t.BaseTooltip=A,t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,i=this.iterator();n=i();){var r=n.length();if(e<r||t&&e===r&&(null==n.next||0!==n.next.length()))return[n,e];e-=r}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var i,r=this.find(e),a=r[0],o=e-r[1],s=this.iterator(a);(i=s())&&o<e+t;){var l=i.length();e>o?n(i,e-o,Math.min(t,o+l-e)):n(i,0,Math.min(l,e+t-o)),o+=l}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,i=this.iterator();n=i();)t=e(t,n);return t},e}();t.default=i},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(17),o=n(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,s),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,i,r){this.update(),e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.insertAt=function(t,n,i){this.update(),e.prototype.insertAt.call(this,t,n,i)},t.prototype.optimize=function(t,n){var i=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var s=function(e,t){void 0===t&&(t=!0),null!=e&&e!==i&&null!=e.domNode.parentNode&&(null==e.domNode[o.DATA_KEY].mutations&&(e.domNode[o.DATA_KEY].mutations=[]),t&&s(e.parent))},l=function(e){null!=e.domNode[o.DATA_KEY]&&null!=e.domNode[o.DATA_KEY].mutations&&(e instanceof a.default&&e.children.forEach(l),e.optimize(n))},c=t,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=o.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(s(o.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=o.find(e,!1);s(t,!1),t instanceof a.default&&t.children.forEach((function(e){s(e,!1)}))}))):"attributes"===e.type&&s(t.prev)),s(t))})),this.children.forEach(l),r=(c=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t,n){var i=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=o.find(e.target,!0);return null==t?null:null==t.domNode[o.DATA_KEY].mutations?(t.domNode[o.DATA_KEY].mutations=[e],t):(t.domNode[o.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==i&&null!=e.domNode[o.DATA_KEY]&&e.update(e.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="DIV",t}(a.default);t.default=l},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(18),o=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,i){var r=this;n!==this.statics.blotName||i?e.prototype.format.call(this,n,i):(this.children.forEach((function(e){e instanceof a.default||(e=e.wrap(t.blotName,!0)),r.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,i,r){null!=this.formats()[i]||o.query(i,o.Scope.ATTRIBUTE)?this.isolate(t,n).format(i,r):e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var i=this.formats();if(0===Object.keys(i).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(i,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=o.Scope.INLINE_BLOT,t.tagName="SPAN",t}(a.default);t.default=s},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(18),o=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var i=o.query(t.blotName).tagName;if(n.tagName!==i)return e.formats.call(this,n)},t.prototype.format=function(n,i){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||i?e.prototype.format.call(this,n,i):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,i,r){null!=o.query(i,o.Scope.BLOCK)?this.format(i,r):e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.insertAt=function(t,n,i){if(null==i||null!=o.query(n,o.Scope.INLINE))e.prototype.insertAt.call(this,t,n,i);else{var r=this.split(t),a=o.create(n,i);r.parent.insertBefore(a,r)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="P",t}(a.default);t.default=s},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,i,r){0===t&&n===this.length()?this.format(i,r):e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(19),o=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,i){null==i?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,i)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=o.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=o.Scope.INLINE_BLOT,t}(a.default);t.default=s},function(e,t,n){"use strict";var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:r.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return-1!==i&&i===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),i=n.length>>>0,r=arguments[1],a=0;a<i;a++)if(t=n[a],e.call(r,t,a,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,i=1,r=0;function a(e,t,u){if(e==t)return e?[[r,e]]:[];(u<0||e.length<u)&&(u=null);var h=s(e,t),f=e.substring(0,h);h=l(e=e.substring(h),t=t.substring(h));var p=e.substring(e.length-h),m=function(e,t){var c;if(!e)return[[i,t]];if(!t)return[[n,e]];var u=e.length>t.length?e:t,d=e.length>t.length?t:e,h=u.indexOf(d);if(-1!=h)return c=[[i,u.substring(0,h)],[r,d],[i,u.substring(h+d.length)]],e.length>t.length&&(c[0][0]=c[2][0]=n),c;if(1==d.length)return[[n,e],[i,t]];var f=function(e,t){var n=e.length>t.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length<n.length)return null;function r(e,t,n){for(var i,r,a,o,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(c,u+1));){var h=s(e.substring(n),t.substring(u)),f=l(e.substring(0,n),t.substring(0,u));d.length<f+h&&(d=t.substring(u-f,u)+t.substring(u,u+h),i=e.substring(0,n-f),r=e.substring(n+h),a=t.substring(0,u-f),o=t.substring(u+h))}return 2*d.length>=e.length?[i,r,a,o,d]:null}var a,o,c,u,d,h=r(n,i,Math.ceil(n.length/4)),f=r(n,i,Math.ceil(n.length/2));if(!h&&!f)return null;a=f?h&&h[4].length>f[4].length?h:f:h,e.length>t.length?(o=a[0],c=a[1],u=a[2],d=a[3]):(u=a[0],d=a[1],o=a[2],c=a[3]);var p=a[4];return[o,c,u,d,p]}(e,t);if(f){var p=f[0],m=f[1],g=f[2],_=f[3],v=f[4],y=a(p,g),b=a(m,_);return y.concat([[r,v]],b)}return function(e,t){for(var r=e.length,a=t.length,s=Math.ceil((r+a)/2),l=s,c=2*s,u=new Array(c),d=new Array(c),h=0;h<c;h++)u[h]=-1,d[h]=-1;u[l+1]=0,d[l+1]=0;for(var f=r-a,p=f%2!=0,m=0,g=0,_=0,v=0,y=0;y<s;y++){for(var b=-y+m;b<=y-g;b+=2){for(var w=l+b,x=(T=b==-y||b!=y&&u[w-1]<u[w+1]?u[w+1]:u[w-1]+1)-b;T<r&&x<a&&e.charAt(T)==t.charAt(x);)T++,x++;if(u[w]=T,T>r)g+=2;else if(x>a)m+=2;else if(p&&(S=l+f-b)>=0&&S<c&&-1!=d[S]&&T>=(A=r-d[S]))return o(e,t,T,x)}for(var k=-y+_;k<=y-v;k+=2){for(var A,S=l+k,M=(A=k==-y||k!=y&&d[S-1]<d[S+1]?d[S+1]:d[S-1]+1)-k;A<r&&M<a&&e.charAt(r-A-1)==t.charAt(a-M-1);)A++,M++;if(d[S]=A,A>r)v+=2;else if(M>a)_+=2;else if(!p){var T;if((w=l+f-k)>=0&&w<c&&-1!=u[w])if(x=l+(T=u[w])-w,T>=(A=r-A))return o(e,t,T,x)}}}return[[n,e],[i,t]]}(e,t)}(e=e.substring(0,e.length-h),t=t.substring(0,t.length-h));return f&&m.unshift([r,f]),p&&m.push([r,p]),c(m),null!=u&&(m=function(e,t){var i=function(e,t){if(0===t)return[r,e];for(var i=0,a=0;a<e.length;a++){var o=e[a];if(o[0]===n||o[0]===r){var s=i+o[1].length;if(t===s)return[a+1,e];if(t<s){e=e.slice();var l=t-i,c=[o[0],o[1].slice(0,l)],u=[o[0],o[1].slice(l)];return e.splice(a,1,c,u),[a+1,e]}i=s}}throw new Error("cursor_pos is out of bounds!")}(e,t),a=i[1],o=i[0],s=a[o],l=a[o+1];if(null==s)return e;if(s[0]!==r)return e;if(null!=l&&s[1]+l[1]===l[1]+s[1])return a.splice(o,2,l,s),d(a,o,2);if(null!=l&&0===l[1].indexOf(s[1])){a.splice(o,2,[l[0],s[1]],[0,s[1]]);var c=l[1].slice(s[1].length);return c.length>0&&a.splice(o+2,0,[l[0],c]),d(a,o,3)}return e}(m,u)),m=function(e){for(var t=!1,a=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},o=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},s=2;s<e.length;s+=1)e[s-2][0]===r&&o(e[s-2][1])&&e[s-1][0]===n&&a(e[s-1][1])&&e[s][0]===i&&a(e[s][1])&&(t=!0,e[s-1][1]=e[s-2][1].slice(-1)+e[s-1][1],e[s][1]=e[s-2][1].slice(-1)+e[s][1],e[s-2][1]=e[s-2][1].slice(0,-1));if(!t)return e;var l=[];for(s=0;s<e.length;s+=1)e[s][1].length>0&&l.push(e[s]);return l}(m)}function o(e,t,n,i){var r=e.substring(0,n),o=t.substring(0,i),s=e.substring(n),l=t.substring(i),c=a(r,o),u=a(s,l);return c.concat(u)}function s(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,a=0;n<r;)e.substring(a,r)==t.substring(a,r)?a=n=r:i=r,r=Math.floor((i-n)/2+n);return r}function l(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,a=0;n<r;)e.substring(e.length-r,e.length-a)==t.substring(t.length-r,t.length-a)?a=n=r:i=r,r=Math.floor((i-n)/2+n);return r}function c(e){e.push([r,""]);for(var t,a=0,o=0,u=0,d="",h="";a<e.length;)switch(e[a][0]){case i:u++,h+=e[a][1],a++;break;case n:o++,d+=e[a][1],a++;break;case r:o+u>1?(0!==o&&0!==u&&(0!==(t=s(h,d))&&(a-o-u>0&&e[a-o-u-1][0]==r?e[a-o-u-1][1]+=h.substring(0,t):(e.splice(0,0,[r,h.substring(0,t)]),a++),h=h.substring(t),d=d.substring(t)),0!==(t=l(h,d))&&(e[a][1]=h.substring(h.length-t)+e[a][1],h=h.substring(0,h.length-t),d=d.substring(0,d.length-t))),0===o?e.splice(a-u,o+u,[i,h]):0===u?e.splice(a-o,o+u,[n,d]):e.splice(a-o-u,o+u,[n,d],[i,h]),a=a-o-u+(o?1:0)+(u?1:0)+1):0!==a&&e[a-1][0]==r?(e[a-1][1]+=e[a][1],e.splice(a,1)):a++,u=0,o=0,d="",h=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(a=1;a<e.length-1;)e[a-1][0]==r&&e[a+1][0]==r&&(e[a][1].substring(e[a][1].length-e[a-1][1].length)==e[a-1][1]?(e[a][1]=e[a-1][1]+e[a][1].substring(0,e[a][1].length-e[a-1][1].length),e[a+1][1]=e[a-1][1]+e[a+1][1],e.splice(a-1,1),f=!0):e[a][1].substring(0,e[a+1][1].length)==e[a+1][1]&&(e[a-1][1]+=e[a+1][1],e[a][1]=e[a][1].substring(e[a+1][1].length)+e[a+1][1],e.splice(a+1,1),f=!0)),a++;f&&c(e)}var u=a;function d(e,t,n){for(var i=t+n-1;i>=0&&i>=t-1;i--)if(i+1<e.length){var r=e[i],a=e[i+1];r[0]===a[1]&&e.splice(i,2,[r[0],r[1]+a[1]])}return e}u.INSERT=i,u.DELETE=n,u.EQUAL=r,e.exports=u},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function i(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?i:r).supported=i,t.unsupported=r},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function r(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(i=!1)),o.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},o.prototype.listeners=function(e,t){var n=i?i+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var a=0,o=r.length,s=new Array(o);a<o;a++)s[a]=r[a].fn;return s},o.prototype.emit=function(e,t,n,r,a,o){var s=i?i+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,a),!0;case 6:return u.fn.call(u.context,t,n,r,a,o),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},o.prototype.on=function(e,t,n){var r=new a(t,n||this),o=i?i+e:e;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],r]:this._events[o].push(r):(this._events[o]=r,this._eventsCount++),this},o.prototype.once=function(e,t,n){var r=new a(t,n||this,!0),o=i?i+e:e;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],r]:this._events[o].push(r):(this._events[o]=r,this._eventsCount++),this},o.prototype.removeListener=function(e,t,n,a){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return 0==--this._eventsCount?this._events=new r:delete this._events[o],this;var s=this._events[o];if(s.fn)s.fn!==t||a&&!s.once||n&&s.context!==n||(0==--this._eventsCount?this._events=new r:delete this._events[o]);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||a&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[o]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new r:delete this._events[o]}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new r:delete this._events[t])):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prototype.setMaxListeners=function(){return this},o.prefixed=i,o.EventEmitter=o,void 0!==e&&(e.exports=o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var i="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=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=y(n(3)),s=y(n(2)),l=y(n(0)),c=y(n(5)),u=y(n(10)),d=y(n(9)),h=n(36),f=n(37),p=y(n(13)),m=n(26),g=n(38),_=n(39),v=n(40);function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=(0,u.default)("quill:clipboard"),x="__ql-matcher",k=[[Node.TEXT_NODE,F],[Node.TEXT_NODE,j],["br",function(e,t){return E(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,j],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,function(e,t){var n={},i=e.style||{};return i.fontStyle&&"italic"===L(e).fontStyle&&(n.italic=!0),i.fontWeight&&(L(e).fontWeight.startsWith("bold")||parseInt(L(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=T(t,n)),parseFloat(i.textIndent||0)>0&&(t=(new s.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=l.default.query(e);if(null==n||"list-item"!==n.blotName||!E(t,"\n"))return t;for(var i=-1,r=e.parentNode;!r.classList.contains("ql-clipboard");)"list"===(l.default.query(r)||{}).blotName&&(i+=1),r=r.parentNode;return i<=0?t:t.compose((new s.default).retain(t.length()-1).retain(1,{indent:i}))}],["b",O.bind(O,"bold")],["i",O.bind(O,"italic")],["style",function(){return new s.default}]],A=[h.AlignAttribute,g.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=[h.AlignStyle,f.BackgroundStyle,m.ColorStyle,g.DirectionStyle,_.FontStyle,v.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),M=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.quill.root.addEventListener("paste",i.onPaste.bind(i)),i.container=i.quill.addContainer("ql-clipboard"),i.container.setAttribute("contenteditable",!0),i.container.setAttribute("tabindex",-1),i.matchers=[],k.concat(i.options.matchers).forEach((function(e){var t=r(e,2),a=t[0],o=t[1];(n.matchVisual||o!==I)&&i.addMatcher(a,o)})),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[p.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,b({},p.default.blotName,t[p.default.blotName]))}var i=this.prepareMatching(),a=r(i,2),o=a[0],l=a[1],c=D(this.container,o,l);return E(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new s.default).retain(c.length()-1).delete(1))),w.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,c.default.sources.SILENT);else{var i=this.convert(t);this.quill.updateContents((new s.default).retain(e).concat(i),n),this.quill.setSelection(e+i.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),i=(new s.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){i=i.concat(t.convert()).delete(n.length),t.quill.updateContents(i,c.default.sources.USER),t.quill.setSelection(i.length()-n.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(i){var a=r(i,2),o=a[0],s=a[1];switch(o){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(o),(function(e){e[x]=e[x]||[],e[x].push(s)}))}})),[t,n]}}]),t}(d.default);function T(e,t,n){return"object"===(void 0===t?"undefined":i(t))?Object.keys(t).reduce((function(e,n){return T(e,n,t[n])}),e):e.reduce((function(e,i){return i.attributes&&i.attributes[t]?e.push(i):e.insert(i.insert,(0,o.default)({},b({},t,n),i.attributes))}),new s.default)}function L(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function E(e,t){for(var n="",i=e.ops.length-1;i>=0&&n.length<t.length;--i){var r=e.ops[i];if("string"!=typeof r.insert)break;n=r.insert+n}return n.slice(-1*t.length)===t}function C(e){if(0===e.childNodes.length)return!1;var t=L(e);return["block","list-item"].indexOf(t.display)>-1}function D(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(i,r){var a=D(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(a=t.reduce((function(e,t){return t(r,e)}),a),a=(r[x]||[]).reduce((function(e,t){return t(r,e)}),a)),i.concat(a)}),new s.default):new s.default}function O(e,t,n){return T(n,e,!0)}function Y(e,t){var n=l.default.Attributor.Attribute.keys(e),i=l.default.Attributor.Class.keys(e),r=l.default.Attributor.Style.keys(e),a={};return n.concat(i).concat(r).forEach((function(t){var n=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=n&&(a[n.attrName]=n.value(e),a[n.attrName])||(null==(n=A[t])||n.attrName!==t&&n.keyName!==t||(a[n.attrName]=n.value(e)||void 0),null==(n=S[t])||n.attrName!==t&&n.keyName!==t||(n=S[t],a[n.attrName]=n.value(e)||void 0))})),Object.keys(a).length>0&&(t=T(t,a)),t}function P(e,t){var n=l.default.query(e);if(null==n)return t;if(n.prototype instanceof l.default.Embed){var i={},r=n.value(e);null!=r&&(i[n.blotName]=r,t=(new s.default).insert(i,n.formats(e)))}else"function"==typeof n.formats&&(t=T(t,n.blotName,n.formats(e)));return t}function j(e,t){return E(t,"\n")||(C(e)||t.length()>0&&e.nextSibling&&C(e.nextSibling))&&t.insert("\n"),t}function I(e,t){if(C(e)&&null!=e.nextElementSibling&&!E(t,"\n\n")){var n=e.offsetHeight+parseFloat(L(e).marginTop)+parseFloat(L(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function F(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!L(e.parentNode).whiteSpace.startsWith("pre")){var i=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,i.bind(i,!0)),(null==e.previousSibling&&C(e.parentNode)||null!=e.previousSibling&&C(e.previousSibling))&&(n=n.replace(/^\s+/,i.bind(i,!1))),(null==e.nextSibling&&C(e.parentNode)||null!=e.nextSibling&&C(e.nextSibling))&&(n=n.replace(/\s+$/,i.bind(i,!1)))}return t.insert(n)}M.DEFAULTS={matchers:[],matchVisual:!0},t.default=M,t.matchAttributor=Y,t.matchBlot=P,t.matchNewline=j,t.matchSpacing=I,t.matchText=F},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},o=n(6),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"optimize",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((i=o)&&i.__esModule?i:{default:i}).default);s.blotName="bold",s.tagName=["STRONG","B"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=u(n(2)),o=u(n(0)),s=u(n(5)),l=u(n(10)),c=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=(0,l.default)("quill:toolbar"),f=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r,a=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(a.options.container)){var o=document.createElement("div");m(o,a.options.container),e.container.parentNode.insertBefore(o,e.container),a.container=o}else"string"==typeof a.options.container?a.container=document.querySelector(a.options.container):a.container=a.options.container;return a.container instanceof HTMLElement?(a.container.classList.add("ql-toolbar"),a.controls=[],a.handlers={},Object.keys(a.options.handlers).forEach((function(e){a.addHandler(e,a.options.handlers[e])})),[].forEach.call(a.container.querySelectorAll("button, select"),(function(e){a.attach(e)})),a.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.SELECTION_CHANGE&&a.update(t)})),a.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){var e=a.quill.selection.getRange(),t=i(e,1)[0];a.update(t)})),a):(r=h.error("Container required for toolbar",a.options),d(a,r))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void h.warn("ignoring attaching to disabled format",n,e);if(null==o.default.query(n))return void h.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var l=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var c=e.options[e.selectedIndex];l=!c.hasAttribute("selected")&&(c.value||!1)}else l=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=i(u,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,l);else if(o.default.query(n).prototype instanceof o.default.Embed){if(!(l=prompt("Enter "+n)))return;t.quill.updateContents((new a.default).retain(d.index).delete(d.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,l)),s.default.sources.USER)}else t.quill.format(n,l,s.default.sources.USER);t.update(d)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=i(n,2),a=r[0],o=r[1];if("SELECT"===o.tagName){var s=void 0;if(null==e)s=null;else if(null==t[a])s=o.querySelector("option[selected]");else if(!Array.isArray(t[a])){var l=t[a];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),s=o.querySelector('option[value="'+l+'"]')}null==s?(o.value="",o.selectedIndex=-1):s.selected=!0}else if(null==e)o.classList.remove("ql-active");else if(o.hasAttribute("value")){var c=t[a]===o.getAttribute("value")||null!=t[a]&&t[a].toString()===o.getAttribute("value")||null==t[a]&&!o.getAttribute("value");o.classList.toggle("ql-active",c)}else o.classList.toggle("ql-active",null!=t[a])}))}}]),t}(c.default);function p(e,t,n){var i=document.createElement("button");i.setAttribute("type","button"),i.classList.add("ql-"+t),null!=n&&(i.value=n),e.appendChild(i)}function m(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)p(n,e);else{var t=Object.keys(e)[0],i=e[t];Array.isArray(i)?function(e,t,n){var i=document.createElement("select");i.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),i.appendChild(t)})),e.appendChild(i)}(n,t,i):p(n,t,i)}})),e.appendChild(n)}))}f.DEFAULTS={},f.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=o.default.query(t,o.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,s.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",s.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",e,s.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),i=parseInt(n.indent||0);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",i+r,s.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,s.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",e,s.default.sources.USER)}}},t.default=f,t.addControls=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},o=n(28),s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.label.innerHTML=n,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"buildItem",value:function(e){var n=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var i=this.label.querySelector(".ql-color-label"),r=e&&e.getAttribute("data-value")||"";i&&("line"===i.tagName?i.style.stroke=r:i.style.fill=r)}}]),t}(((i=o)&&i.__esModule?i:{default:i}).default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},o=n(28),s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"selectItem",value:function(e,n){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((i=o)&&i.__esModule?i:{default:i}).default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(){function e(t,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"})),this.hide()}return i(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var i=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),a=0;if(r.right>i.right&&(a=i.right-r.right,this.root.style.left=t+a+"px"),r.left<i.left&&(a=i.left-r.left,this.root.style.left=t+a+"px"),r.bottom>i.bottom){var o=r.bottom-r.top,s=e.bottom-e.top+o;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return a}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=f(n(3)),s=f(n(8)),l=n(43),c=f(l),u=f(n(27)),d=n(15),h=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],v=function(e){function t(e,n){p(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=_);var i=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.quill.container.classList.add("ql-snow"),i}return g(t,e),a(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),h.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(c.default);v.DEFAULTS=(0,o.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var y=function(e){function t(e,n){p(this,t);var i=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.preview=i.root.querySelector("a.ql-preview"),i}return g(t,e),a(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,s.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(s.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===s.default.sources.USER){var a=e.quill.scroll.descendant(u.default,t.index),o=i(a,2),l=o[0],c=o[1];if(null!=l){e.linkRange=new d.Range(t.index-c,l.length());var h=u.default.formats(l.domNode);return e.preview.textContent=h,e.preview.setAttribute("href",h),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(l.BaseTooltip);y.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=j(n(29)),r=n(36),a=n(38),o=n(64),s=j(n(65)),l=j(n(66)),c=n(67),u=j(c),d=n(37),h=n(26),f=n(39),p=n(40),m=j(n(56)),g=j(n(68)),_=j(n(27)),v=j(n(69)),y=j(n(70)),b=j(n(71)),w=j(n(72)),x=j(n(73)),k=n(13),A=j(k),S=j(n(74)),M=j(n(75)),T=j(n(57)),L=j(n(41)),E=j(n(28)),C=j(n(59)),D=j(n(60)),O=j(n(61)),Y=j(n(108)),P=j(n(62));function j(e){return e&&e.__esModule?e:{default:e}}i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":p.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":p.SizeStyle},!0),i.default.register({"formats/align":r.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":o.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":f.FontClass,"formats/size":p.SizeClass,"formats/blockquote":s.default,"formats/code-block":A.default,"formats/header":l.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":k.Code,"formats/italic":g.default,"formats/link":_.default,"formats/script":v.default,"formats/strike":y.default,"formats/underline":b.default,"formats/image":w.default,"formats/video":x.default,"formats/list/item":c.ListItem,"modules/formula":S.default,"modules/syntax":M.default,"modules/toolbar":T.default,"themes/bubble":Y.default,"themes/snow":P.default,"ui/icons":L.default,"ui/picker":E.default,"ui/icon-picker":D.default,"ui/color-picker":C.default,"ui/tooltip":O.default},!0),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},o=n(0),s=(i=o)&&i.__esModule?i:{default:i},l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var i=this.value(e)||0;n="+1"===n?i+1:i-1}return 0===n?(this.remove(e),!0):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(s.default.Attributor.Class),c=new l("indent","ql-indent",{scope:s.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(4),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((i=r)&&i.__esModule?i:{default:i}).default);a.blotName="blockquote",a.tagName="blockquote",t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=n(4),o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((i=a)&&i.__esModule?i:{default:i}).default);o.blotName="header",o.tagName=["H1","H2","H3","H4","H5","H6"],t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},a=l(n(0)),o=l(n(4)),s=l(n(25));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),i(t,[{key:"format",value:function(e,n){e!==f.blotName||n?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(o.default);h.blotName="list-item",h.tagName="LI";var f=function(e){function t(e){c(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=function(t){if(t.target.parentNode===e){var i=n.statics.formats(e),r=a.default.find(t.target);"checked"===i?r.format("list","unchecked"):"unchecked"===i&&r.format("list","checked")}};return e.addEventListener("touchstart",i),e.addEventListener("mousedown",i),n}return d(t,e),i(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",i=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||i.setAttribute("data-checked","checked"===e),i}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),i(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof h)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var i=null==n?this.length():n.offset(this),a=this.split(i);a.parent.insertBefore(e,a)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(s.default);f.blotName="list",f.scope=a.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[h],t.ListItem=h,t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(56),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((i=r)&&i.__esModule?i:{default:i}).default);a.blotName="italic",a.tagName=["EM","I"],t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},o=n(6),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((i=o)&&i.__esModule?i:{default:i}).default);s.blotName="script",s.tagName=["SUB","SUP"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((i=r)&&i.__esModule?i:{default:i}).default);a.blotName="strike",a.tagName="S",t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((i=r)&&i.__esModule?i:{default:i}).default);a.blotName="underline",a.tagName="U",t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},o=n(0),s=(i=o)&&i.__esModule?i:{default:i},l=n(27),c=["alt","height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"format",value:function(e,n){c.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return c.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,l.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(s.default.Embed);u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},o=n(4),s=n(27),l=(i=s)&&i.__esModule?i:{default:i},c=["height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"format",value:function(e,n){c.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return c.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return l.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(o.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},a=l(n(35)),o=l(n(5)),s=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),i(t,null,[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(a.default);h.blotName="formula",h.className="ql-formula",h.tagName="SPAN";var f=function(e){function t(){c(this,t);var e=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),i(t,null,[{key:"register",value:function(){o.default.register(h,!0)}}]),t}(s.default);t.FormulaBlot=h,t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},a=l(n(0)),o=l(n(5)),s=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),i(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(l(n(13)).default);h.className="ql-syntax";var f=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),p=function(e){function t(e,n){c(this,t);var i=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof i.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return i.quill.on(o.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){i.highlight(),r=null}),i.options.interval)})),i.highlight(),i}return d(t,e),i(t,null,[{key:"register",value:function(){o.default.register(f,!0),o.default.register(h,!0)}}]),i(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(o.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(h).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(o.default.sources.SILENT),null!=t&&this.quill.setSelection(t,o.default.sources.SILENT)}}}]),t}(s.default);p.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=h,t.CodeToken=f,t.default=p},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var i=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=d(n(3)),o=d(n(8)),s=n(43),l=d(s),c=n(15),u=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.quill.container.classList.add("ql-bubble"),i}return p(t,e),r(t,[{key:"extendToolbar",value:function(e){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),u.default)}}]),t}(l.default);g.DEFAULTS=(0,a.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(e){function t(e,n){h(this,t);var i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.quill.on(o.default.events.EDITOR_CHANGE,(function(e,t,n,r){if(e===o.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===o.default.sources.USER){i.show(),i.root.style.left="0px",i.root.style.width="",i.root.style.width=i.root.offsetWidth+"px";var a=i.quill.getLines(t.index,t.length);if(1===a.length)i.position(i.quill.getBounds(t));else{var s=a[a.length-1],l=i.quill.getIndex(s),u=Math.min(s.length()-1,t.index+t.length-l),d=i.quill.getBounds(new c.Range(l,u));i.position(d)}}else document.activeElement!==i.textbox&&i.quill.hasFocus()&&i.hide()})),i}return p(t,e),r(t,[{key:"listen",value:function(){var e=this;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(o.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(s.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=_,t.default=g},function(e,t,n){e.exports=n(63)}]).default},e.exports=i()},7771:(e,t,n)=>{"use strict";var i=n(210),r=n(2296),a=n(1044)(),o=n(7296),s=n(4453),l=i("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,c=!0;if("length"in e&&o){var u=o(e,"length");u&&!u.configurable&&(i=!1),u&&!u.writable&&(c=!1)}return(i||c||!n)&&(a?r(e,"length",t,!0,!0):r(e,"length",t)),e}},2251:function(e,t,n){var i,r;!function(a,o){"use strict";e.exports?e.exports=o():void 0===(r="function"==typeof(i=o)?i.call(t,n,t,e):i)||(e.exports=r)}(0,(function(e){"use strict";var t=e&&e.IPv6;return{best:function(e){var t,n,i=e.toLowerCase().split(":"),r=i.length,a=8;for(""===i[0]&&""===i[1]&&""===i[2]?(i.shift(),i.shift()):""===i[0]&&""===i[1]?i.shift():""===i[r-1]&&""===i[r-2]&&i.pop(),-1!==i[(r=i.length)-1].indexOf(".")&&(a=7),t=0;t<r&&""!==i[t];t++);if(t<a)for(i.splice(t,1,"0000");i.length<a;)i.splice(t,0,"0000");for(var o=0;o<a;o++){n=i[o].split("");for(var s=0;s<3&&("0"===n[0]&&n.length>1);s++)n.splice(0,1);i[o]=n.join("")}var l=-1,c=0,u=0,d=-1,h=!1;for(o=0;o<a;o++)h?"0"===i[o]?u+=1:(h=!1,u>c&&(l=d,c=u)):"0"===i[o]&&(h=!0,d=o,u=1);u>c&&(l=d,c=u),c>1&&i.splice(l,c,""),r=i.length;var f="";for(""===i[0]&&(f=":"),o=0;o<r&&(f+=i[o],o!==r-1);o++)f+=":";return""===i[r-1]&&(f+=":"),f},noConflict:function(){return e.IPv6===this&&(e.IPv6=t),this}}}))},6106:function(e,t,n){var i,r;!function(a,o){"use strict";e.exports?e.exports=o():void 0===(r="function"==typeof(i=o)?i.call(t,n,t,e):i)||(e.exports=r)}(0,(function(e){"use strict";var t=e&&e.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var i=e.lastIndexOf(".",t-1);if(i<=0||i>=t-1)return!1;var r=n.list[e.slice(t+1)];return!!r&&r.indexOf(" "+e.slice(i+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var i=n.list[e.slice(t+1)];return!!i&&i.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var i=e.lastIndexOf(".",t-1);if(i<=0||i>=t-1)return null;var r=n.list[e.slice(t+1)];return r?r.indexOf(" "+e.slice(i+1,t)+" ")<0?null:e.slice(i+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n}))},4998:function(e,t,n){var i,r,a;!function(o,s){"use strict";e.exports?e.exports=s(n(3132),n(2251),n(6106)):(r=[n(3132),n(2251),n(6106)],void 0===(a="function"==typeof(i=s)?i.apply(t,r):i)||(e.exports=a))}(0,(function(e,t,n,i){"use strict";var r=i&&i.URI;function a(e,t){var n=arguments.length>=1;if(!(this instanceof a))return n?arguments.length>=2?new a(e,t):new a(e):new a;if(void 0===e){if(n)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&n)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}a.version="1.19.11";var o=a.prototype,s=Object.prototype.hasOwnProperty;function l(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function c(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function u(e){return"Array"===c(e)}function d(e,t){var n,i,r={};if("RegExp"===c(t))r=null;else if(u(t))for(n=0,i=t.length;n<i;n++)r[t[n]]=!0;else r[t]=!0;for(n=0,i=e.length;n<i;n++){(r&&void 0!==r[e[n]]||!r&&t.test(e[n]))&&(e.splice(n,1),i--,n--)}return e}function h(e,t){var n,i;if(u(t)){for(n=0,i=t.length;n<i;n++)if(!h(e,t[n]))return!1;return!0}var r=c(t);for(n=0,i=e.length;n<i;n++)if("RegExp"===r){if("string"==typeof e[n]&&e[n].match(t))return!0}else if(e[n]===t)return!0;return!1}function f(e,t){if(!u(e)||!u(t))return!1;if(e.length!==t.length)return!1;e.sort(),t.sort();for(var n=0,i=e.length;n<i;n++)if(e[n]!==t[n])return!1;return!0}function p(e){return e.replace(/^\/+|\/+$/g,"")}function m(e){return escape(e)}function g(e){return encodeURIComponent(e).replace(/[!'()*]/g,m).replace(/\*/g,"%2A")}a._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:a.preventInvalidHostname,duplicateQueryParameters:a.duplicateQueryParameters,escapeQuerySpace:a.escapeQuerySpace}},a.preventInvalidHostname=!1,a.duplicateQueryParameters=!1,a.escapeQuerySpace=!0,a.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,a.idn_expression=/[^a-z0-9\._-]/i,a.punycode_expression=/(xn--)/i,a.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,a.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,a.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,a.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},a.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,a.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},a.hostProtocols=["http","https"],a.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,a.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},a.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return a.domAttributes[t]}},a.encode=g,a.decode=decodeURIComponent,a.iso8859=function(){a.encode=escape,a.decode=unescape},a.unicode=function(){a.encode=g,a.decode=decodeURIComponent},a.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},a.encodeQuery=function(e,t){var n=a.encode(e+"");return void 0===t&&(t=a.escapeQuerySpace),t?n.replace(/%20/g,"+"):n},a.decodeQuery=function(e,t){e+="",void 0===t&&(t=a.escapeQuerySpace);try{return a.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var _,v={encode:"encode",decode:"decode"},y=function(e,t){return function(n){try{return a[t](n+"").replace(a.characters[e][t].expression,(function(n){return a.characters[e][t].map[n]}))}catch(e){return n}}};for(_ in v)a[_+"PathSegment"]=y("pathname",v[_]),a[_+"UrnPathSegment"]=y("urnpath",v[_]);var b=function(e,t,n){return function(i){var r;r=n?function(e){return a[t](a[n](e))}:a[t];for(var o=(i+"").split(e),s=0,l=o.length;s<l;s++)o[s]=r(o[s]);return o.join(e)}};function w(e){return function(t,n){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!n),this)}}function x(e,t){return function(n,i){return void 0===n?this._parts[e]||"":(null!==n&&(n+="").charAt(0)===t&&(n=n.substring(1)),this._parts[e]=n,this.build(!i),this)}}a.decodePath=b("/","decodePathSegment"),a.decodeUrnPath=b(":","decodeUrnPathSegment"),a.recodePath=b("/","encodePathSegment","decode"),a.recodeUrnPath=b(":","encodeUrnPathSegment","decode"),a.encodeReserved=y("reserved","encode"),a.parse=function(e,t){var n;return t||(t={preventInvalidHostname:a.preventInvalidHostname}),(n=(e=(e=e.replace(a.leading_whitespace_expression,"")).replace(a.ascii_tab_whitespace,"")).indexOf("#"))>-1&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),(n=e.indexOf("?"))>-1&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),"//"===(e=(e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)?(t.protocol=null,e=e.substring(2),e=a.parseAuthority(e,t)):(n=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(a.protocol_expression)?t.protocol=void 0:"//"===e.substring(n+1,n+3).replace(/\\/g,"/")?(e=e.substring(n+3),e=a.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0)),t.path=e,t},a.parseHost=function(e,t){e||(e="");var n,i,r=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===r&&(r=e.length),"["===e.charAt(0))n=e.indexOf("]"),t.hostname=e.substring(1,n)||null,t.port=e.substring(n+2,r)||null,"/"===t.port&&(t.port=null);else{var o=e.indexOf(":"),s=e.indexOf("/"),l=e.indexOf(":",o+1);-1!==l&&(-1===s||l<s)?(t.hostname=e.substring(0,r)||null,t.port=null):(i=e.substring(0,r).split(":"),t.hostname=i[0]||null,t.port=i[1]||null)}return t.hostname&&"/"!==e.substring(r).charAt(0)&&(r++,e="/"+e),t.preventInvalidHostname&&a.ensureValidHostname(t.hostname,t.protocol),t.port&&a.ensureValidPort(t.port),e.substring(r)||"/"},a.parseAuthority=function(e,t){return e=a.parseUserinfo(e,t),a.parseHost(e,t)},a.parseUserinfo=function(e,t){var n=e;-1!==e.indexOf("\\")&&(e=e.replace(/\\/g,"/"));var i,r=e.indexOf("/"),o=e.lastIndexOf("@",r>-1?r:e.length-1);return o>-1&&(-1===r||o<r)?(i=e.substring(0,o).split(":"),t.username=i[0]?a.decode(i[0]):null,i.shift(),t.password=i[0]?a.decode(i.join(":")):null,e=n.substring(o+1)):(t.username=null,t.password=null),e},a.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,i,r,o={},l=e.split("&"),c=l.length,u=0;u<c;u++)n=l[u].split("="),i=a.decodeQuery(n.shift(),t),r=n.length?a.decodeQuery(n.join("="),t):null,"__proto__"!==i&&(s.call(o,i)?("string"!=typeof o[i]&&null!==o[i]||(o[i]=[o[i]]),o[i].push(r)):o[i]=r);return o},a.build=function(e){var t="",n=!1;return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//",n=!0),t+=a.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&n&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},a.buildHost=function(e){var t="";return e.hostname?(a.ip6_expression.test(e.hostname)?t+="["+e.hostname+"]":t+=e.hostname,e.port&&(t+=":"+e.port),t):""},a.buildAuthority=function(e){return a.buildUserinfo(e)+a.buildHost(e)},a.buildUserinfo=function(e){var t="";return e.username&&(t+=a.encode(e.username)),e.password&&(t+=":"+a.encode(e.password)),t&&(t+="@"),t},a.buildQuery=function(e,t,n){var i,r,o,l,c="";for(r in e)if("__proto__"!==r&&s.call(e,r))if(u(e[r]))for(i={},o=0,l=e[r].length;o<l;o++)void 0!==e[r][o]&&void 0===i[e[r][o]+""]&&(c+="&"+a.buildQueryParameter(r,e[r][o],n),!0!==t&&(i[e[r][o]+""]=!0));else void 0!==e[r]&&(c+="&"+a.buildQueryParameter(r,e[r],n));return c.substring(1)},a.buildQueryParameter=function(e,t,n){return a.encodeQuery(e,n)+(null!==t?"="+a.encodeQuery(t,n):"")},a.addQuery=function(e,t,n){if("object"==typeof t)for(var i in t)s.call(t,i)&&a.addQuery(e,i,t[i]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=n);"string"==typeof e[t]&&(e[t]=[e[t]]),u(n)||(n=[n]),e[t]=(e[t]||[]).concat(n)}},a.setQuery=function(e,t,n){if("object"==typeof t)for(var i in t)s.call(t,i)&&a.setQuery(e,i,t[i]);else{if("string"!=typeof t)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");e[t]=void 0===n?null:n}},a.removeQuery=function(e,t,n){var i,r,o;if(u(t))for(i=0,r=t.length;i<r;i++)e[t[i]]=void 0;else if("RegExp"===c(t))for(o in e)t.test(o)&&(e[o]=void 0);else if("object"==typeof t)for(o in t)s.call(t,o)&&a.removeQuery(e,o,t[o]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===c(n)?!u(e[t])&&n.test(e[t])?e[t]=void 0:e[t]=d(e[t],n):e[t]!==String(n)||u(n)&&1!==n.length?u(e[t])&&(e[t]=d(e[t],n)):e[t]=void 0:e[t]=void 0}},a.hasQuery=function(e,t,n,i){switch(c(t)){case"String":break;case"RegExp":for(var r in e)if(s.call(e,r)&&t.test(r)&&(void 0===n||a.hasQuery(e,r,n)))return!0;return!1;case"Object":for(var o in t)if(s.call(t,o)&&!a.hasQuery(e,o,t[o]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(c(n)){case"Undefined":return t in e;case"Boolean":return n===Boolean(u(e[t])?e[t].length:e[t]);case"Function":return!!n(e[t],t,e);case"Array":return!!u(e[t])&&(i?h:f)(e[t],n);case"RegExp":return u(e[t])?!!i&&h(e[t],n):Boolean(e[t]&&e[t].match(n));case"Number":n=String(n);case"String":return u(e[t])?!!i&&h(e[t],n):e[t]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},a.joinPaths=function(){for(var e=[],t=[],n=0,i=0;i<arguments.length;i++){var r=new a(arguments[i]);e.push(r);for(var o=r.segment(),s=0;s<o.length;s++)"string"==typeof o[s]&&t.push(o[s]),o[s]&&n++}if(!t.length||!n)return new a("");var l=new a("").segment(t);return""!==e[0].path()&&"/"!==e[0].path().slice(0,1)||l.path("/"+l.path()),l.normalize()},a.commonPath=function(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n++)if(e.charAt(n)!==t.charAt(n)){n--;break}return n<1?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":("/"===e.charAt(n)&&"/"===t.charAt(n)||(n=e.substring(0,n).lastIndexOf("/")),e.substring(0,n+1))},a.withinString=function(e,t,n){n||(n={});var i=n.start||a.findUri.start,r=n.end||a.findUri.end,o=n.trim||a.findUri.trim,s=n.parens||a.findUri.parens,l=/[a-z0-9-]=["']?$/i;for(i.lastIndex=0;;){var c=i.exec(e);if(!c)break;var u=c.index;if(n.ignoreHtml){var d=e.slice(Math.max(u-3,0),u);if(d&&l.test(d))continue}for(var h=u+e.slice(u).search(r),f=e.slice(u,h),p=-1;;){var m=s.exec(f);if(!m)break;var g=m.index+m[0].length;p=Math.max(p,g)}if(!((f=p>-1?f.slice(0,p)+f.slice(p).replace(o,""):f.replace(o,"")).length<=c[0].length||n.ignore&&n.ignore.test(f))){var _=t(f,u,h=u+f.length,e);void 0!==_?(_=String(_),e=e.slice(0,u)+_+e.slice(h),i.lastIndex=u+_.length):i.lastIndex=h}}return i.lastIndex=0,e},a.ensureValidHostname=function(t,n){var i=!!t,r=!1;if(!!n&&(r=h(a.hostProtocols,n)),r&&!i)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(t&&t.match(a.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(a.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},a.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},a.noConflict=function(e){if(e){var t={URI:this.noConflict()};return i.URITemplate&&"function"==typeof i.URITemplate.noConflict&&(t.URITemplate=i.URITemplate.noConflict()),i.IPv6&&"function"==typeof i.IPv6.noConflict&&(t.IPv6=i.IPv6.noConflict()),i.SecondLevelDomains&&"function"==typeof i.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=i.SecondLevelDomains.noConflict()),t}return i.URI===this&&(i.URI=r),this},o.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=a.build(this._parts),this._deferred_build=!1),this},o.clone=function(){return new a(this)},o.valueOf=o.toString=function(){return this.build(!1)._string},o.protocol=w("protocol"),o.username=w("username"),o.password=w("password"),o.hostname=w("hostname"),o.port=w("port"),o.query=x("query","?"),o.fragment=x("fragment","#"),o.search=function(e,t){var n=this.query(e,t);return"string"==typeof n&&n.length?"?"+n:n},o.hash=function(e,t){var n=this.fragment(e,t);return"string"==typeof n&&n.length?"#"+n:n},o.pathname=function(e,t){if(void 0===e||!0===e){var n=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?a.decodeUrnPath:a.decodePath)(n):n}return this._parts.urn?this._parts.path=e?a.recodeUrnPath(e):"":this._parts.path=e?a.recodePath(e):"/",this.build(!t),this},o.path=o.pathname,o.href=function(e,t){var n;if(void 0===e)return this.toString();this._string="",this._parts=a._parts();var i=e instanceof a,r="object"==typeof e&&(e.hostname||e.path||e.pathname);e.nodeName&&(e=e[a.getDomAttribute(e)]||"",r=!1);if(!i&&r&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=a.parse(String(e),this._parts);else{if(!i&&!r)throw new TypeError("invalid input");var o=i?e._parts:e;for(n in o)"query"!==n&&s.call(this._parts,n)&&(this._parts[n]=o[n]);o.query&&this.query(o.query,!1)}return this.build(!t),this},o.is=function(e){var t=!1,i=!1,r=!1,o=!1,s=!1,l=!1,c=!1,u=!this._parts.urn;switch(this._parts.hostname&&(u=!1,i=a.ip4_expression.test(this._parts.hostname),r=a.ip6_expression.test(this._parts.hostname),s=(o=!(t=i||r))&&n&&n.has(this._parts.hostname),l=o&&a.idn_expression.test(this._parts.hostname),c=o&&a.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return u;case"absolute":return!u;case"domain":case"name":return o;case"sld":return s;case"ip":return t;case"ip4":case"ipv4":case"inet4":return i;case"ip6":case"ipv6":case"inet6":return r;case"idn":return l;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var k=o.protocol,A=o.port,S=o.hostname;o.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(a.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return k.call(this,e,t)},o.scheme=o.protocol,o.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),a.ensureValidPort(e))),A.call(this,e,t))},o.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==a.parseHost(e,n))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=n.hostname,this._parts.preventInvalidHostname&&a.ensureValidHostname(e,this._parts.protocol)}return S.call(this,e,t)},o.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var i=a(e);return this.protocol(i.protocol()).authority(i.authority()).build(!t),this},o.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?a.buildHost(this._parts):"";if("/"!==a.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},o.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?a.buildAuthority(this._parts):"";if("/"!==a.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},o.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=a.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==e[e.length-1]&&(e+="@"),a.parseUserinfo(e,this._parts),this.build(!t),this},o.resource=function(e,t){var n;return void 0===e?this.path()+this.search()+this.hash():(n=a.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},o.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var i=this._parts.hostname.length-this.domain().length,r=this._parts.hostname.substring(0,i),o=new RegExp("^"+l(r));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&a.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(o,e),this.build(!t),this},o.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var i=this._parts.hostname.length-this.tld(t).length-1;return i=this._parts.hostname.lastIndexOf(".",i-1)+1,this._parts.hostname.substring(i)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(a.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var r=new RegExp(l(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(r,e)}return this.build(!t),this},o.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var i=this._parts.hostname.lastIndexOf("."),r=this._parts.hostname.substring(i+1);return!0!==t&&n&&n.list[r.toLowerCase()]&&n.get(this._parts.hostname)||r}var a;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');a=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(a,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");a=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(a,e)}return this.build(!t),this},o.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,i=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return e?a.decodePath(i):i}var r=this._parts.path.length-this.filename().length,o=this._parts.path.substring(0,r),s=new RegExp("^"+l(o));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=a.recodePath(e),this._parts.path=this._parts.path.replace(s,e),this.build(!t),this},o.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),i=this._parts.path.substring(n+1);return e?a.decodePathSegment(i):i}var r=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(r=!0);var o=new RegExp(l(this.filename())+"$");return e=a.recodePath(e),this._parts.path=this._parts.path.replace(o,e),r?this.normalizePath(t):this.build(!t),this},o.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var n,i,r=this.filename(),o=r.lastIndexOf(".");return-1===o?"":(n=r.substring(o+1),i=/^[a-z0-9%]+$/i.test(n)?n:"",e?a.decodePathSegment(i):i)}"."===e.charAt(0)&&(e=e.substring(1));var s,c=this.suffix();if(c)s=e?new RegExp(l(c)+"$"):new RegExp(l("."+c)+"$");else{if(!e)return this;this._parts.path+="."+a.recodePath(e)}return s&&(e=a.recodePath(e),this._parts.path=this._parts.path.replace(s,e)),this.build(!t),this},o.segment=function(e,t,n){var i=this._parts.urn?":":"/",r=this.path(),a="/"===r.substring(0,1),o=r.split(i);if(void 0!==e&&"number"!=typeof e&&(n=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(a&&o.shift(),e<0&&(e=Math.max(o.length+e,0)),void 0===t)return void 0===e?o:o[e];if(null===e||void 0===o[e])if(u(t)){o=[];for(var s=0,l=t.length;s<l;s++)(t[s].length||o.length&&o[o.length-1].length)&&(o.length&&!o[o.length-1].length&&o.pop(),o.push(p(t[s])))}else(t||"string"==typeof t)&&(t=p(t),""===o[o.length-1]?o[o.length-1]=t:o.push(t));else t?o[e]=p(t):o.splice(e,1);return a&&o.unshift(""),this.path(o.join(i),n)},o.segmentCoded=function(e,t,n){var i,r,o;if("number"!=typeof e&&(n=t,t=e,e=void 0),void 0===t){if(u(i=this.segment(e,t,n)))for(r=0,o=i.length;r<o;r++)i[r]=a.decode(i[r]);else i=void 0!==i?a.decode(i):void 0;return i}if(u(t))for(r=0,o=t.length;r<o;r++)t[r]=a.encode(t[r]);else t="string"==typeof t||t instanceof String?a.encode(t):t;return this.segment(e,t,n)};var M=o.query;return o.query=function(e,t){if(!0===e)return a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var n=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace),i=e.call(this,n);return this._parts.query=a.buildQuery(i||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=a.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):M.call(this,e,t)},o.setQuery=function(e,t,n){var i=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)i[e]=void 0!==t?t:null;else{if("object"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var r in e)s.call(e,r)&&(i[r]=e[r])}return this._parts.query=a.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},o.addQuery=function(e,t,n){var i=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.addQuery(i,e,void 0===t?null:t),this._parts.query=a.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},o.removeQuery=function(e,t,n){var i=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.removeQuery(i,e,t),this._parts.query=a.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},o.hasQuery=function(e,t,n){var i=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.hasQuery(i,e,t,n)},o.setSearch=o.setQuery,o.addSearch=o.addQuery,o.removeSearch=o.removeQuery,o.hasSearch=o.hasQuery,o.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},o.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},o.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},o.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===a.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},o.normalizePath=function(e){var t,n=this._parts.path;if(!n)return this;if(this._parts.urn)return this._parts.path=a.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var i,r,o="";for("/"!==(n=a.recodePath(n)).charAt(0)&&(t=!0,n="/"+n),"/.."!==n.slice(-3)&&"/."!==n.slice(-2)||(n+="/"),n=n.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(o=n.substring(1).match(/^(\.\.\/)+/)||"")&&(o=o[0]);-1!==(i=n.search(/\/\.\.(\/|$)/));)0!==i?(-1===(r=n.substring(0,i).lastIndexOf("/"))&&(r=i),n=n.substring(0,r)+n.substring(i+3)):n=n.substring(3);return t&&this.is("relative")&&(n=o+n.substring(1)),this._parts.path=n,this.build(!e),this},o.normalizePathname=o.normalizePath,o.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(a.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},o.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},o.normalizeSearch=o.normalizeQuery,o.normalizeHash=o.normalizeFragment,o.iso8859=function(){var e=a.encode,t=a.decode;a.encode=escape,a.decode=decodeURIComponent;try{this.normalize()}finally{a.encode=e,a.decode=t}return this},o.unicode=function(){var e=a.encode,t=a.decode;a.encode=g,a.decode=unescape;try{this.normalize()}finally{a.encode=e,a.decode=t}return this},o.readable=function(){var t=this.clone();t.username("").password("").normalize();var n="";if(t._parts.protocol&&(n+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(n+=e.toUnicode(t._parts.hostname),t._parts.port&&(n+=":"+t._parts.port)):n+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(n+="/"),n+=t.path(!0),t._parts.query){for(var i="",r=0,o=t._parts.query.split("&"),s=o.length;r<s;r++){var l=(o[r]||"").split("=");i+="&"+a.decodeQuery(l[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==l[1]&&(i+="="+a.decodeQuery(l[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+i.substring(1)}return n+=a.decodeQuery(t.hash(),!0)},o.absoluteTo=function(e){var t,n,i,r=this.clone(),o=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof a||(e=new a(e)),r._parts.protocol)return r;if(r._parts.protocol=e._parts.protocol,this._parts.hostname)return r;for(n=0;i=o[n];n++)r._parts[i]=e._parts[i];return r._parts.path?(".."===r._parts.path.substring(-2)&&(r._parts.path+="/"),"/"!==r.path().charAt(0)&&(t=(t=e.directory())||(0===e.path().indexOf("/")?"/":""),r._parts.path=(t?t+"/":"")+r._parts.path,r.normalizePath())):(r._parts.path=e._parts.path,r._parts.query||(r._parts.query=e._parts.query)),r.build(),r},o.relativeTo=function(e){var t,n,i,r,o,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new a(e).normalize(),t=s._parts,n=e._parts,r=s.path(),o=e.path(),"/"!==r.charAt(0))throw new Error("URI is already relative");if("/"!==o.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===n.protocol&&(t.protocol=null),t.username!==n.username||t.password!==n.password)return s.build();if(null!==t.protocol||null!==t.username||null!==t.password)return s.build();if(t.hostname!==n.hostname||t.port!==n.port)return s.build();if(t.hostname=null,t.port=null,r===o)return t.path="",s.build();if(!(i=a.commonPath(r,o)))return s.build();var l=n.path.substring(i.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=l+t.path.substring(i.length)||"./",s.build()},o.equals=function(e){var t,n,i,r,o,l=this.clone(),c=new a(e),d={};if(l.normalize(),c.normalize(),l.toString()===c.toString())return!0;if(i=l.query(),r=c.query(),l.query(""),c.query(""),l.toString()!==c.toString())return!1;if(i.length!==r.length)return!1;for(o in t=a.parseQuery(i,this._parts.escapeQuerySpace),n=a.parseQuery(r,this._parts.escapeQuerySpace),t)if(s.call(t,o)){if(u(t[o])){if(!f(t[o],n[o]))return!1}else if(t[o]!==n[o])return!1;d[o]=!0}for(o in n)if(s.call(n,o)&&!d[o])return!1;return!0},o.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},o.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},o.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},a}))},3132:function(e,t,n){var i;e=n.nmd(e),function(r){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof n.g&&n.g;a.global!==a&&a.window!==a&&a.self;var o,s=2147483647,l=36,c=1,u=26,d=38,h=700,f=72,p=128,m="-",g=/^xn--/,_=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=l-c,w=Math.floor,x=String.fromCharCode;function k(e){throw new RangeError(y[e])}function A(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n]);return i}function S(e,t){var n=e.split("@"),i="";return n.length>1&&(i=n[0]+"@",e=n[1]),i+A((e=e.replace(v,".")).split("."),t).join(".")}function M(e){for(var t,n,i=[],r=0,a=e.length;r<a;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<a?56320==(64512&(n=e.charCodeAt(r++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--):i.push(t);return i}function T(e){return A(e,(function(e){var t="";return e>65535&&(t+=x((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=x(e)})).join("")}function L(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,n){var i=0;for(e=n?w(e/h):e>>1,e+=w(e/t);e>b*u>>1;i+=l)e=w(e/b);return w(i+(b+1)*e/(e+d))}function C(e){var t,n,i,r,a,o,d,h,g,_,v,y=[],b=e.length,x=0,A=p,S=f;for((n=e.lastIndexOf(m))<0&&(n=0),i=0;i<n;++i)e.charCodeAt(i)>=128&&k("not-basic"),y.push(e.charCodeAt(i));for(r=n>0?n+1:0;r<b;){for(a=x,o=1,d=l;r>=b&&k("invalid-input"),((h=(v=e.charCodeAt(r++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:l)>=l||h>w((s-x)/o))&&k("overflow"),x+=h*o,!(h<(g=d<=S?c:d>=S+u?u:d-S));d+=l)o>w(s/(_=l-g))&&k("overflow"),o*=_;S=E(x-a,t=y.length+1,0==a),w(x/t)>s-A&&k("overflow"),A+=w(x/t),x%=t,y.splice(x++,0,A)}return T(y)}function D(e){var t,n,i,r,a,o,d,h,g,_,v,y,b,A,S,T=[];for(y=(e=M(e)).length,t=p,n=0,a=f,o=0;o<y;++o)(v=e[o])<128&&T.push(x(v));for(i=r=T.length,r&&T.push(m);i<y;){for(d=s,o=0;o<y;++o)(v=e[o])>=t&&v<d&&(d=v);for(d-t>w((s-n)/(b=i+1))&&k("overflow"),n+=(d-t)*b,t=d,o=0;o<y;++o)if((v=e[o])<t&&++n>s&&k("overflow"),v==t){for(h=n,g=l;!(h<(_=g<=a?c:g>=a+u?u:g-a));g+=l)S=h-_,A=l-_,T.push(x(L(_+S%A,0))),h=w(S/A);T.push(x(L(h,0))),a=E(n,b,i==r),n=0,++i}++n,++t}return T.join("")}o={version:"1.3.2",ucs2:{decode:M,encode:T},decode:C,encode:D,toASCII:function(e){return S(e,(function(e){return _.test(e)?"xn--"+D(e):e}))},toUnicode:function(e){return S(e,(function(e){return g.test(e)?C(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)}()},384:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},5955:(e,t,n)=>{"use strict";var i=n(2584),r=n(8662),a=n(6430),o=n(5692);function s(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=s(Object.prototype.toString),d=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),f=s(Boolean.prototype.valueOf);if(l)var p=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function _(e){return"[object Map]"===u(e)}function v(e){return"[object Set]"===u(e)}function y(e){return"[object WeakMap]"===u(e)}function b(e){return"[object WeakSet]"===u(e)}function w(e){return"[object ArrayBuffer]"===u(e)}function x(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===u(e)}function A(e){return"undefined"!=typeof DataView&&(k.working?k(e):e instanceof DataView)}t.isArgumentsObject=i,t.isGeneratorFunction=r,t.isTypedArray=o,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||A(e)},t.isUint8Array=function(e){return"Uint8Array"===a(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===a(e)},t.isUint16Array=function(e){return"Uint16Array"===a(e)},t.isUint32Array=function(e){return"Uint32Array"===a(e)},t.isInt8Array=function(e){return"Int8Array"===a(e)},t.isInt16Array=function(e){return"Int16Array"===a(e)},t.isInt32Array=function(e){return"Int32Array"===a(e)},t.isFloat32Array=function(e){return"Float32Array"===a(e)},t.isFloat64Array=function(e){return"Float64Array"===a(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===a(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===a(e)},_.working="undefined"!=typeof Map&&_(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(_.working?_(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},y.working="undefined"!=typeof WeakMap&&y(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(y.working?y(e):e instanceof WeakMap)},b.working="undefined"!=typeof WeakSet&&b(new WeakSet),t.isWeakSet=function(e){return b(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=x,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=A;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function M(e){return"[object SharedArrayBuffer]"===u(e)}function T(e){return void 0!==S&&(void 0===M.working&&(M.working=M(new S)),M.working?M(e):e instanceof S)}function L(e){return g(e,d)}function E(e){return g(e,h)}function C(e){return g(e,f)}function D(e){return l&&g(e,p)}function O(e){return c&&g(e,m)}t.isSharedArrayBuffer=T,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===u(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===u(e)},t.isGeneratorObject=function(e){return"[object Generator]"===u(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===u(e)},t.isNumberObject=L,t.isStringObject=E,t.isBooleanObject=C,t.isBigIntObject=D,t.isSymbolObject=O,t.isBoxedPrimitive=function(e){return L(e)||E(e)||C(e)||D(e)||O(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(x(e)||T(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},9539:(e,t,n)=>{var i=n(4155),r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++)n[t[i]]=Object.getOwnPropertyDescriptor(e,t[i]);return n},a=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var i=arguments,r=i.length,o=String(e).replace(a,(function(e){if("%%"===e)return"%";if(n>=r)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}})),s=i[n];n<r;s=i[++n])_(s)||!x(s)?o+=" "+s:o+=" "+c(s);return o},t.deprecate=function(e,n){if(void 0!==i&&!0===i.noDeprecation)return e;if(void 0===i)return function(){return t.deprecate(e,n).apply(this,arguments)};var r=!1;return function(){if(!r){if(i.throwDeprecation)throw new Error(n);i.traceDeprecation?console.trace(n):console.error(n),r=!0}return e.apply(this,arguments)}};var o={},s=/^$/;if(i.env.NODE_DEBUG){var l=i.env.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+l+"$","i")}function c(e,n){var i={seen:[],stylize:d};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),g(n)?i.showHidden=n:n&&t._extend(i,n),b(i.showHidden)&&(i.showHidden=!1),b(i.depth)&&(i.depth=2),b(i.colors)&&(i.colors=!1),b(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=u),h(i,e,i.depth)}function u(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function d(e,t){return e}function h(e,n,i){if(e.customInspect&&n&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,e);return y(r)||(r=h(e,r,i)),r}var a=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(v(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(_(t))return e.stylize("null","null")}(e,n);if(a)return a;var o=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),A(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(n);if(0===o.length){if(S(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(w(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(A(n))return f(n)}var c,u="",d=!1,x=["{","}"];(m(n)&&(d=!0,x=["[","]"]),S(n))&&(u=" [Function"+(n.name?": "+n.name:"")+"]");return w(n)&&(u=" "+RegExp.prototype.toString.call(n)),k(n)&&(u=" "+Date.prototype.toUTCString.call(n)),A(n)&&(u=" "+f(n)),0!==o.length||d&&0!=n.length?i<0?w(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=d?function(e,t,n,i,r){for(var a=[],o=0,s=t.length;o<s;++o)E(t,String(o))?a.push(p(e,t,n,i,String(o),!0)):a.push("");return r.forEach((function(r){r.match(/^\d+$/)||a.push(p(e,t,n,i,r,!0))})),a}(e,n,i,s,o):o.map((function(t){return p(e,n,i,s,t,d)})),e.seen.pop(),function(e,t,n){var i=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(i>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,u,x)):x[0]+u+x[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,i,r,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),E(i,r)||(o="["+r+"]"),s||(e.seen.indexOf(l.value)<0?(s=_(n)?h(e,l.value,null):h(e,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return"  "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return"   "+e})).join("\n")):s=e.stylize("[Circular]","special")),b(o)){if(a&&r.match(/^\d+$/))return s;(o=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function m(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function _(e){return null===e}function v(e){return"number"==typeof e}function y(e){return"string"==typeof e}function b(e){return void 0===e}function w(e){return x(e)&&"[object RegExp]"===M(e)}function x(e){return"object"==typeof e&&null!==e}function k(e){return x(e)&&"[object Date]"===M(e)}function A(e){return x(e)&&("[object Error]"===M(e)||e instanceof Error)}function S(e){return"function"==typeof e}function M(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(s.test(e)){var n=i.pid;o[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,i)}}else o[e]=function(){};return o[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(5955),t.isArray=m,t.isBoolean=g,t.isNull=_,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=w,t.types.isRegExp=w,t.isObject=x,t.isDate=k,t.types.isDate=k,t.isError=A,t.types.isNativeError=A,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(384);var L=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(e=new Date,n=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":"),[e.getDate(),L[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(5717),t._extend=function(e,t){if(!t||!x(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e};var C="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(C&&e[C]){var t;if("function"!=typeof(t=e[C]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,i=new Promise((function(e,i){t=e,n=i})),r=[],a=0;a<arguments.length;a++)r.push(arguments[a]);r.push((function(e,i){e?n(e):t(i)}));try{e.apply(this,r)}catch(e){n(e)}return i}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),C&&Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=C,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return r.apply(a,arguments)};e.apply(this,t).then((function(e){i.nextTick(o.bind(null,null,e))}),(function(e){i.nextTick(D.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,r(e)),t}},4023:function(e,t,n){"undefined"!=typeof self&&self,e.exports=function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},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=60)}([function(e,t){function n(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var a=i(r);return[n].concat(r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}))).concat([a]).join("\n")}return[n].join("\n")}function i(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=n(t,e);return t[2]?"@media "+t[2]+"{"+i+"}":i})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var a=this[r][0];"number"==typeof a&&(i[a]=!0)}for(r=0;r<e.length;r++){var o=e[r];"number"==typeof o[0]&&i[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},function(e,t,n){function i(e){for(var t=0;t<e.length;t++){var n=e[t],i=u[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(a(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var o=[];for(r=0;r<n.parts.length;r++)o.push(a(n.parts[r]));u[n.id]={id:n.id,refs:1,parts:o}}}}function r(){var e=document.createElement("style");return e.type="text/css",d.appendChild(e),e}function a(e){var t,n,i=document.querySelector("style["+_+'~="'+e.id+'"]');if(i){if(p)return m;i.parentNode.removeChild(i)}if(v){var a=f++;i=h||(h=r()),t=o.bind(null,i,a,!1),n=o.bind(null,i,a,!0)}else i=r(),t=s.bind(null,i),n=function(){i.parentNode.removeChild(i)};return t(e),function(i){if(i){if(i.css===e.css&&i.media===e.media&&i.sourceMap===e.sourceMap)return;t(e=i)}else n()}}function o(e,t,n,i){var r=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=y(t,r);else{var a=document.createTextNode(r),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function s(e,t){var n=t.css,i=t.media,r=t.sourceMap;if(i&&e.setAttribute("media",i),g.ssrId&&e.setAttribute(_,t.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=n(64),u={},d=l&&(document.head||document.getElementsByTagName("head")[0]),h=null,f=0,p=!1,m=function(){},g=null,_="data-vue-ssr-id",v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,r){p=n,g=r||{};var a=c(e,t);return i(a),function(t){for(var n=[],r=0;r<a.length;r++){var o=a[r];(s=u[o.id]).refs--,n.push(s)}for(t?i(a=c(e,t)):a=[],r=0;r<n.length;r++){var s;if(0===(s=n[r]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete u[s.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t,n,i,r,a){var o,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(o=e,s=e.default);var c,u="function"==typeof s?s.options:s;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=i),c){var d=u.functional,h=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(e,t){return c.call(t),h(e,t)}):u.beforeCreate=h?[].concat(h,c):[c]}return{esModule:o,exports:s,options:u}}},function(e,t,n){"use strict";function i(e,t){var n,i=e&&e.a;!(n=e&&e.hsl?(0,r.default)(e.hsl):e&&e.hex&&e.hex.length>0?(0,r.default)(e.hex):e&&e.hsv?(0,r.default)(e.hsv):e&&e.rgba?(0,r.default)(e.rgba):e&&e.rgb?(0,r.default)(e.rgb):(0,r.default)(e))||void 0!==n._a&&null!==n._a||n.setAlpha(i||1);var a=n.toHsl(),o=n.toHsv();return 0===a.s&&(o.h=a.h=e.h||e.hsl&&e.hsl.h||t||0),{hsl:a,hex:n.toHexString().toUpperCase(),hex8:n.toHex8String().toUpperCase(),rgba:n.toRgb(),hsv:o,oldHue:e.h||t||a.h,source:e.source,a:e.a||n.getAlpha()}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(65));t.default={props:["value"],data:function(){return{val:i(this.value)}},computed:{colors:{get:function(){return this.val},set:function(e){this.val=e,this.$emit("input",e)}}},watch:{value:function(e){this.val=i(e)}},methods:{colorChange:function(e,t){this.oldHue=this.colors.hsl.h,this.colors=i(e,t||this.oldHue)},isValidHex:function(e){return(0,r.default)(e).isValid()},simpleCheckForValidColor:function(e){for(var t=["r","g","b","a","h","s","l","v"],n=0,i=0,r=0;r<t.length;r++){var a=t[r];e[a]&&(n++,isNaN(e[a])||i++)}if(n===i)return e},paletteUpperCase:function(e){return e.map((function(e){return e.toUpperCase()}))},isTransparent:function(e){return 0===(0,r.default)(e).getAlpha()}}}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function i(e){l||n(66)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(36),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var s=n(68),l=!1,c=i,u=n(2)(a.a,s.a,!1,c,null,null);u.options.__file="src/components/common/EditableInput.vue",t.default=u.exports},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(8),r=n(18);e.exports=n(9)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(16),r=n(42),a=n(25),o=Object.defineProperty;t.f=n(9)?Object.defineProperty:function(e,t,n){if(i(e),t=a(t,!0),i(n),r)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(17)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var i=n(90),r=n(24);e.exports=function(e){return i(r(e))}},function(e,t,n){var i=n(29)("wks"),r=n(19),a=n(4).Symbol,o="function"==typeof a;(e.exports=function(e){return i[e]||(i[e]=o&&a[e]||(o?a:r)("Symbol."+e))}).store=i},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";function i(e){l||n(111)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(51),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var s=n(113),l=!1,c=i,u=n(2)(a.a,s.a,!1,c,null,null);u.options.__file="src/components/common/Hue.vue",t.default=u.exports},function(e,t){e.exports=!0},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(12);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){"use strict";function i(e){l||n(123)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(54),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var s=n(127),l=!1,c=i,u=n(2)(a.a,s.a,!1,c,null,null);u.options.__file="src/components/common/Saturation.vue",t.default=u.exports},function(e,t,n){"use strict";function i(e){l||n(128)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(55),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var s=n(133),l=!1,c=i,u=n(2)(a.a,s.a,!1,c,null,null);u.options.__file="src/components/common/Alpha.vue",t.default=u.exports},function(e,t,n){"use strict";function i(e){l||n(130)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(56),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var s=n(132),l=!1,c=i,u=n(2)(a.a,s.a,!1,c,null,null);u.options.__file="src/components/common/Checkboard.vue",t.default=u.exports},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){var i=n(12);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports={}},function(e,t,n){var i=n(46),r=n(30);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(29)("keys"),r=n(19);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){var i=n(15),r=n(4),a=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(14)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(8).f,r=n(6),a=n(11)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,a)&&i(e,a,{configurable:!0,value:t})}},function(e,t,n){t.f=n(11)},function(e,t,n){var i=n(4),r=n(15),a=n(14),o=n(32),s=n(8).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=a?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(3)),a=i(n(5)),o=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#CCCCCC","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];t.default={name:"Compact",mixins:[r.default],props:{palette:{type:Array,default:function(){return o}}},components:{"ed-in":a.default},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(e){this.colorChange({hex:e,source:"hex"})}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"editableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get:function(){return this.value},set:function(e){if(!(void 0!==this.max&&+e>this.max))return e;this.$refs.input.value=this.max}},labelId:function(){return"input__label__"+this.label+"__"+Math.random().toString().slice(2,5)},labelSpanText:function(){return this.labelText||this.label}},methods:{update:function(e){this.handleChange(e.target.value)},handleChange:function(e){var t={};t[this.label]=e,(void 0===t.hex&&void 0===t["#"]||e.length>5)&&this.$emit("change",t)},handleKeyDown:function(e){var t=this.val,n=Number(t);if(n){var i=this.arrowOffset||1;38===e.keyCode&&(t=n+i,this.handleChange(t),e.preventDefault()),40===e.keyCode&&(t=n-i,this.handleChange(t),e.preventDefault())}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(3)),r=["#FFFFFF","#F2F2F2","#E6E6E6","#D9D9D9","#CCCCCC","#BFBFBF","#B3B3B3","#A6A6A6","#999999","#8C8C8C","#808080","#737373","#666666","#595959","#4D4D4D","#404040","#333333","#262626","#0D0D0D","#000000"];t.default={name:"Grayscale",mixins:[i.default],props:{palette:{type:Array,default:function(){return r}}},components:{},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(e){this.colorChange({hex:e,source:"hex"})}}}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(5)),a=i(n(3));t.default={name:"Material",mixins:[a.default],components:{"ed-in":r.default},methods:{onChange:function(e){e&&(e.hex?this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"}):(e.r||e.g||e.b)&&this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}))}}}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(81)),a=i(n(3)),o=i(n(13));t.default={name:"Slider",mixins:[a.default],props:{swatches:{type:Array,default:function(){return[{s:.5,l:.8},{s:.5,l:.65},{s:.5,l:.5},{s:.5,l:.35},{s:.5,l:.2}]}}},components:{hue:o.default},computed:{normalizedSwatches:function(){return this.swatches.map((function(e){return"object"!==(void 0===e?"undefined":(0,r.default)(e))?{s:.5,l:e}:e}))}},methods:{isActive:function(e,t){var n=this.colors.hsl;return 1===n.l&&1===e.l||0===n.l&&0===e.l||Math.abs(n.l-e.l)<.01&&Math.abs(n.s-e.s)<.01},hueChange:function(e){this.colorChange(e)},handleSwClick:function(e,t){this.colorChange({h:this.colors.hsl.h,s:t.s,l:t.l,source:"hsl"})}}}},function(e,t,n){"use strict";var i=n(14),r=n(41),a=n(44),o=n(7),s=n(26),l=n(88),c=n(31),u=n(95),d=n(11)("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,m,g,_){l(n,t,p);var v,y,b,w=function(e){if(!h&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",k="values"==m,A=!1,S=e.prototype,M=S[d]||S["@@iterator"]||m&&S[m],T=M||w(m),L=m?k?w("entries"):T:void 0,E="Array"==t&&S.entries||M;if(E&&(b=u(E.call(new e)))!==Object.prototype&&b.next&&(c(b,x,!0),i||"function"==typeof b[d]||o(b,d,f)),k&&M&&"values"!==M.name&&(A=!0,T=function(){return M.call(this)}),i&&!_||!h&&!A&&S[d]||o(S,d,T),s[t]=T,s[x]=f,m)if(v={values:k?T:w("values"),keys:g?T:w("keys"),entries:L},_)for(y in v)y in S||a(S,y,v[y]);else r(r.P+r.F*(h||A),t,v);return v}},function(e,t,n){var i=n(4),r=n(15),a=n(86),o=n(7),s=n(6),l=function(e,t,n){var c,u,d,h=e&l.F,f=e&l.G,p=e&l.S,m=e&l.P,g=e&l.B,_=e&l.W,v=f?r:r[t]||(r[t]={}),y=v.prototype,b=f?i:p?i[t]:(i[t]||{}).prototype;for(c in f&&(n=t),n)(u=!h&&b&&void 0!==b[c])&&s(v,c)||(d=u?b[c]:n[c],v[c]=f&&"function"!=typeof b[c]?n[c]:g&&u?a(d,i):_&&b[c]==d?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?a(Function.call,d):d,m&&((v.virtual||(v.virtual={}))[c]=d,e&l.R&&y&&!y[c]&&o(y,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){e.exports=!n(9)&&!n(17)((function(){return 7!=Object.defineProperty(n(43)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var i=n(12),r=n(4).document,a=i(r)&&i(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},function(e,t,n){e.exports=n(7)},function(e,t,n){var i=n(16),r=n(89),a=n(30),o=n(28)("IE_PROTO"),s=function(){},l=function(){var e,t=n(43)("iframe"),i=a.length;for(t.style.display="none",n(94).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;i--;)delete l.prototype[a[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=i(e),n=new s,s.prototype=null,n[o]=e):n=l(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(6),r=n(10),a=n(91)(!1),o=n(28)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)n!=o&&i(s,n)&&c.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~a(c,n)||c.push(n));return c}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(24);e.exports=function(e){return Object(i(e))}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(46),r=n(30).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data:function(){return{oldHue:0,pullDirection:""}},computed:{colors:function(){var e=this.value.hsl.h;return 0!==e&&e-this.oldHue>0&&(this.pullDirection="right"),0!==e&&e-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=e,this.value},directionClass:function(){return{"vc-hue--horizontal":"horizontal"===this.direction,"vc-hue--vertical":"vertical"===this.direction}},pointerTop:function(){return"vertical"===this.direction?0===this.colors.hsl.h&&"right"===this.pullDirection?0:-100*this.colors.hsl.h/360+100+"%":0},pointerLeft:function(){return"vertical"===this.direction?0:0===this.colors.hsl.h&&"right"===this.pullDirection?"100%":100*this.colors.hsl.h/360+"%"}},methods:{handleChange:function(e,t){!t&&e.preventDefault();var n=this.$refs.container;if(n){var i,r=n.clientWidth,a=n.clientHeight,o=n.getBoundingClientRect().left+window.pageXOffset,s=n.getBoundingClientRect().top+window.pageYOffset,l=(e.pageX||(e.touches?e.touches[0].pageX:0))-o,c=(e.pageY||(e.touches?e.touches[0].pageY:0))-s;"vertical"===this.direction?(i=c<0?360:c>a?0:360*(-100*c/a+100)/100,this.colors.hsl.h!==i&&this.$emit("change",{h:i,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(i=l<0?0:l>r?360:100*l/r*360/100,this.colors.hsl.h!==i&&this.$emit("change",{h:i,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))}},handleMouseDown:function(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(e){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(118)),a=i(n(3)),o=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","blueGrey","black"],s=["900","700","500","300","100"],l=function(){var e=[];return o.forEach((function(t){var n=[];"black"===t.toLowerCase()||"white"===t.toLowerCase()?n=n.concat(["#000000","#FFFFFF"]):s.forEach((function(e){var i=r.default[t][e];n.push(i.toUpperCase())})),e.push(n)})),e}();t.default={name:"Swatches",mixins:[a.default],props:{palette:{type:Array,default:function(){return l}}},computed:{pick:function(){return this.colors.hex}},methods:{equal:function(e){return e.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick:function(e){this.colorChange({hex:e,source:"hex"})}}}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(3)),a=i(n(5)),o=i(n(20)),s=i(n(13)),l=i(n(21));t.default={name:"Photoshop",mixins:[r.default],props:{head:{type:String,default:"Color Picker"},disableFields:{type:Boolean,default:!1},hasResetButton:{type:Boolean,default:!1},acceptLabel:{type:String,default:"OK"},cancelLabel:{type:String,default:"Cancel"},resetLabel:{type:String,default:"Reset"},newLabel:{type:String,default:"new"},currentLabel:{type:String,default:"current"}},components:{saturation:o.default,hue:s.default,alpha:l.default,"ed-in":a.default},data:function(){return{currentColor:"#FFF"}},computed:{hsv:function(){var e=this.colors.hsv;return{h:e.h.toFixed(),s:(100*e.s).toFixed(),v:(100*e.v).toFixed()}},hex:function(){var e=this.colors.hex;return e&&e.replace("#","")}},created:function(){this.currentColor=this.colors.hex},methods:{childChange:function(e){this.colorChange(e)},inputChange:function(e){e&&(e["#"]?this.isValidHex(e["#"])&&this.colorChange({hex:e["#"],source:"hex"}):e.r||e.g||e.b||e.a?this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}):(e.h||e.s||e.v)&&this.colorChange({h:e.h||this.colors.hsv.h,s:e.s/100||this.colors.hsv.s,v:e.v/100||this.colors.hsv.v,source:"hsv"}))},clickCurrentColor:function(){this.colorChange({hex:this.currentColor,source:"hex"})},handleAccept:function(){this.$emit("ok")},handleCancel:function(){this.$emit("cancel")},handleReset:function(){this.$emit("reset")}}}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(125)),a=i(n(126));t.default={name:"Saturation",props:{value:Object},computed:{colors:function(){return this.value},bgColor:function(){return"hsl("+this.colors.hsv.h+", 100%, 50%)"},pointerTop:function(){return-100*this.colors.hsv.v+1+100+"%"},pointerLeft:function(){return 100*this.colors.hsv.s+"%"}},methods:{throttle:(0,a.default)((function(e,t){e(t)}),20,{leading:!0,trailing:!1}),handleChange:function(e,t){!t&&e.preventDefault();var n=this.$refs.container;if(n){var i=n.clientWidth,a=n.clientHeight,o=n.getBoundingClientRect().left+window.pageXOffset,s=n.getBoundingClientRect().top+window.pageYOffset,l=e.pageX||(e.touches?e.touches[0].pageX:0),c=e.pageY||(e.touches?e.touches[0].pageY:0),u=(0,r.default)(l-o,0,i),d=(0,r.default)(c-s,0,a),h=u/i,f=(0,r.default)(-d/a+1,0,1);this.throttle(this.onChange,{h:this.colors.hsv.h,s:h,v:f,a:this.colors.hsv.a,source:"hsva"})}},onChange:function(e){this.$emit("change",e)},handleMouseDown:function(e){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(e){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(22));t.default={name:"Alpha",props:{value:Object,onChange:Function},components:{checkboard:i.default},computed:{colors:function(){return this.value},gradientColor:function(){var e=this.colors.rgba,t=[e.r,e.g,e.b].join(",");return"linear-gradient(to right, rgba("+t+", 0) 0%, rgba("+t+", 1) 100%)"}},methods:{handleChange:function(e,t){!t&&e.preventDefault();var n=this.$refs.container;if(n){var i,r=n.clientWidth,a=n.getBoundingClientRect().left+window.pageXOffset,o=(e.pageX||(e.touches?e.touches[0].pageX:0))-a;i=o<0?0:o>r?1:Math.round(100*o/r)/100,this.colors.a!==i&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:i,source:"rgba"})}},handleMouseDown:function(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(e,t,n){"use strict";function i(e,t,n){if("undefined"==typeof document)return null;var i=document.createElement("canvas");i.width=i.height=2*n;var r=i.getContext("2d");return r?(r.fillStyle=e,r.fillRect(0,0,i.width,i.height),r.fillStyle=t,r.fillRect(0,0,n,n),r.translate(n,n),r.fillRect(0,0,n,n),i.toDataURL()):null}function r(e,t,n){var r=e+","+t+","+n;if(a[r])return a[r];var o=i(e,t,n);return a[r]=o,o}Object.defineProperty(t,"__esModule",{value:!0});var a={};t.default={name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle:function(){return{"background-image":"url("+r(this.white,this.grey,this.size)+")"}}}}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(3)),a=i(n(5)),o=i(n(20)),s=i(n(13)),l=i(n(21)),c=i(n(22)),u=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF","rgba(0,0,0,0)"];t.default={name:"Sketch",mixins:[r.default],components:{saturation:o.default,hue:s.default,alpha:l.default,"ed-in":a.default,checkboard:c.default},props:{presetColors:{type:Array,default:function(){return u}},disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},computed:{hex:function(){return(this.colors.a<1?this.colors.hex8:this.colors.hex).replace("#","")},activeColor:function(){var e=this.colors.rgba;return"rgba("+[e.r,e.g,e.b,e.a].join(",")+")"}},methods:{handlePreset:function(e){this.colorChange({hex:e,source:"hex"})},childChange:function(e){this.colorChange(e)},inputChange:function(e){e&&(e.hex?this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"}):(e.r||e.g||e.b||e.a)&&this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}))}}}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(3)),a=i(n(5)),o=i(n(20)),s=i(n(13)),l=i(n(21)),c=i(n(22));t.default={name:"Chrome",mixins:[r.default],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},components:{saturation:o.default,hue:s.default,alpha:l.default,"ed-in":a.default,checkboard:c.default},data:function(){return{fieldsIndex:0,highlight:!1}},computed:{hsl:function(){var e=this.colors.hsl,t=e.h,n=e.s,i=e.l;return{h:t.toFixed(),s:(100*n).toFixed()+"%",l:(100*i).toFixed()+"%"}},activeColor:function(){var e=this.colors.rgba;return"rgba("+[e.r,e.g,e.b,e.a].join(",")+")"},hasAlpha:function(){return this.colors.a<1}},methods:{childChange:function(e){this.colorChange(e)},inputChange:function(e){if(e)if(e.hex)this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"});else if(e.r||e.g||e.b||e.a)this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"});else if(e.h||e.s||e.l){var t=e.s?e.s.replace("%","")/100:this.colors.hsl.s,n=e.l?e.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:e.h||this.colors.hsl.h,s:t,l:n,source:"hsl"})}},toggleViews:function(){this.fieldsIndex>=2?this.fieldsIndex=0:this.fieldsIndex++},showHighlight:function(){this.highlight=!0},hideHighlight:function(){this.highlight=!1}}}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(5)),a=i(n(3)),o=["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"];t.default={name:"Twitter",mixins:[a.default],components:{editableInput:r.default},props:{width:{type:[String,Number],default:276},defaultColors:{type:Array,default:function(){return o}},triangle:{default:"top-left",validator:function(e){return["hide","top-left","top-right"].includes(e)}}},computed:{hsv:function(){var e=this.colors.hsv;return{h:e.h.toFixed(),s:(100*e.s).toFixed(),v:(100*e.v).toFixed()}},hex:function(){var e=this.colors.hex;return e&&e.replace("#","")}},methods:{equal:function(e){return e.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick:function(e){this.colorChange({hex:e,source:"hex"})},inputChange:function(e){e&&(e["#"]?this.isValidHex(e["#"])&&this.colorChange({hex:e["#"],source:"hex"}):e.r||e.g||e.b||e.a?this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"}):(e.h||e.s||e.v)&&this.colorChange({h:e.h||this.colors.hsv.h,s:e.s/100||this.colors.hsv.s,v:e.v/100||this.colors.hsv.v,source:"hsv"}))}}}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var r=i(n(61)),a=i(n(70)),o=i(n(74)),s=i(n(78)),l=i(n(115)),c=i(n(120)),u=i(n(135)),d=i(n(139)),h=i(n(143)),f=i(n(21)),p=i(n(22)),m=i(n(5)),g=i(n(13)),_=i(n(20)),v=i(n(3)),y={version:"2.8.1",Compact:r.default,Grayscale:a.default,Twitter:h.default,Material:o.default,Slider:s.default,Swatches:l.default,Photoshop:c.default,Sketch:u.default,Chrome:d.default,Alpha:f.default,Checkboard:p.default,EditableInput:m.default,Hue:g.default,Saturation:_.default,ColorMixin:v.default};e.exports=y},function(e,t,n){"use strict";function i(e){l||n(62)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(35),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var s=n(69),l=!1,c=i,u=n(2)(a.a,s.a,!1,c,null,null);u.options.__file="src/components/Compact.vue",t.default=u.exports},function(e,t,n){var i=n(63);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("6ce8a5a8",i,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-compact {\n  padding-top: 5px;\n  padding-left: 5px;\n  width: 245px;\n  border-radius: 2px;\n  box-sizing: border-box;\n  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);\n  background-color: #fff;\n}\n.vc-compact-colors {\n  overflow: hidden;\n  padding: 0;\n  margin: 0;\n}\n.vc-compact-color-item {\n  list-style: none;\n  width: 15px;\n  height: 15px;\n  float: left;\n  margin-right: 5px;\n  margin-bottom: 5px;\n  position: relative;\n  cursor: pointer;\n}\n.vc-compact-color-item--white {\n  box-shadow: inset 0 0 0 1px #ddd;\n}\n.vc-compact-color-item--white .vc-compact-dot {\n  background: #000;\n}\n.vc-compact-dot {\n  position: absolute;\n  top: 5px;\n  right: 5px;\n  bottom: 5px;\n  left: 5px;\n  border-radius: 50%;\n  opacity: 1;\n  background: #fff;\n}\n",""])},function(e,t){e.exports=function(e,t){for(var n=[],i={},r=0;r<t.length;r++){var a=t[r],o=a[0],s={id:e+":"+r,css:a[1],media:a[2],sourceMap:a[3]};i[o]?i[o].parts.push(s):n.push(i[o]={id:o,parts:[s]})}return n}},function(e,t,n){var i;!function(r){function a(e,t){if(t=t||{},(e=e||"")instanceof a)return e;if(!(this instanceof a))return new a(e,t);var n=o(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=$(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=$(this._r)),this._g<1&&(this._g=$(this._g)),this._b<1&&(this._b=$(this._b)),this._ok=n.ok,this._tc_id=B++}function o(e){var t={r:0,g:0,b:0},n=1,i=null,r=null,a=null,o=!1,l=!1;return"string"==typeof e&&(e=R(e)),"object"==typeof e&&(N(e.r)&&N(e.g)&&N(e.b)?(t=s(e.r,e.g,e.b),o=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):N(e.h)&&N(e.s)&&N(e.v)?(i=j(e.s),r=j(e.v),t=d(e.h,i,r),o=!0,l="hsv"):N(e.h)&&N(e.s)&&N(e.l)&&(i=j(e.s),a=j(e.l),t=c(e.h,i,a),o=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=L(n),{ok:o,format:e.format||l,r:W(255,U(t.r,0)),g:W(255,U(t.g,0)),b:W(255,U(t.b,0)),a:n}}function s(e,t,n){return{r:255*E(e,255),g:255*E(t,255),b:255*E(n,255)}}function l(e,t,n){e=E(e,255),t=E(t,255),n=E(n,255);var i,r,a=U(e,t,n),o=W(e,t,n),s=(a+o)/2;if(a==o)i=r=0;else{var l=a-o;switch(r=s>.5?l/(2-a-o):l/(a+o),a){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:r,l:s}}function c(e,t,n){function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var r,a,o;if(e=E(e,360),t=E(t,100),n=E(n,100),0===t)r=a=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=i(l,s,e+1/3),a=i(l,s,e),o=i(l,s,e-1/3)}return{r:255*r,g:255*a,b:255*o}}function u(e,t,n){e=E(e,255),t=E(t,255),n=E(n,255);var i,r,a=U(e,t,n),o=W(e,t,n),s=a,l=a-o;if(r=0===a?0:l/a,a==o)i=0;else{switch(a){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:r,v:s}}function d(e,t,n){e=6*E(e,360),t=E(t,100),n=E(n,100);var i=r.floor(e),a=e-i,o=n*(1-t),s=n*(1-a*t),l=n*(1-(1-a)*t),c=i%6;return{r:255*[n,s,o,o,l,n][c],g:255*[l,n,n,s,o,o][c],b:255*[o,o,l,n,n,s][c]}}function h(e,t,n,i){var r=[P($(e).toString(16)),P($(t).toString(16)),P($(n).toString(16))];return i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function f(e,t,n,i,r){var a=[P($(e).toString(16)),P($(t).toString(16)),P($(n).toString(16)),P(I(i))];return r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function p(e,t,n,i){return[P(I(i)),P($(e).toString(16)),P($(t).toString(16)),P($(n).toString(16))].join("")}function m(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.s-=t/100,n.s=C(n.s),a(n)}function g(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.s+=t/100,n.s=C(n.s),a(n)}function _(e){return a(e).desaturate(100)}function v(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.l+=t/100,n.l=C(n.l),a(n)}function y(e,t){t=0===t?0:t||10;var n=a(e).toRgb();return n.r=U(0,W(255,n.r-$(-t/100*255))),n.g=U(0,W(255,n.g-$(-t/100*255))),n.b=U(0,W(255,n.b-$(-t/100*255))),a(n)}function b(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.l-=t/100,n.l=C(n.l),a(n)}function w(e,t){var n=a(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,a(n)}function x(e){var t=a(e).toHsl();return t.h=(t.h+180)%360,a(t)}function k(e){var t=a(e).toHsl(),n=t.h;return[a(e),a({h:(n+120)%360,s:t.s,l:t.l}),a({h:(n+240)%360,s:t.s,l:t.l})]}function A(e){var t=a(e).toHsl(),n=t.h;return[a(e),a({h:(n+90)%360,s:t.s,l:t.l}),a({h:(n+180)%360,s:t.s,l:t.l}),a({h:(n+270)%360,s:t.s,l:t.l})]}function S(e){var t=a(e).toHsl(),n=t.h;return[a(e),a({h:(n+72)%360,s:t.s,l:t.l}),a({h:(n+216)%360,s:t.s,l:t.l})]}function M(e,t,n){t=t||6,n=n||30;var i=a(e).toHsl(),r=360/n,o=[a(e)];for(i.h=(i.h-(r*t>>1)+720)%360;--t;)i.h=(i.h+r)%360,o.push(a(i));return o}function T(e,t){t=t||6;for(var n=a(e).toHsv(),i=n.h,r=n.s,o=n.v,s=[],l=1/t;t--;)s.push(a({h:i,s:r,v:o})),o=(o+l)%1;return s}function L(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function E(e,t){O(e)&&(e="100%");var n=Y(e);return e=W(t,U(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),r.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function C(e){return W(1,U(0,e))}function D(e){return parseInt(e,16)}function O(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function Y(e){return"string"==typeof e&&-1!=e.indexOf("%")}function P(e){return 1==e.length?"0"+e:""+e}function j(e){return e<=1&&(e=100*e+"%"),e}function I(e){return r.round(255*parseFloat(e)).toString(16)}function F(e){return D(e)/255}function N(e){return!!J.CSS_UNIT.exec(e)}function R(e){e=e.replace(z,"").replace(q,"").toLowerCase();var t,n=!1;if(X[e])e=X[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=J.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=J.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=J.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=J.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=J.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=J.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=J.hex8.exec(e))?{r:D(t[1]),g:D(t[2]),b:D(t[3]),a:F(t[4]),format:n?"name":"hex8"}:(t=J.hex6.exec(e))?{r:D(t[1]),g:D(t[2]),b:D(t[3]),format:n?"name":"hex"}:(t=J.hex4.exec(e))?{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=J.hex3.exec(e))&&{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),format:n?"name":"hex"}}function H(e){var t,n;return"AA"!==(t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==t&&(t="AA"),"small"!==(n=(e.size||"small").toLowerCase())&&"large"!==n&&(n="small"),{level:t,size:n}}var z=/^\s+/,q=/\s+$/,B=0,$=r.round,W=r.min,U=r.max,V=r.random;a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,i=this.toRgb();return e=i.r/255,t=i.g/255,n=i.b/255,.2126*(e<=.03928?e/12.92:r.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:r.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:r.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=L(e),this._roundA=$(100*this._a)/100,this},toHsv:function(){var e=u(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=u(this._r,this._g,this._b),t=$(360*e.h),n=$(100*e.s),i=$(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=l(this._r,this._g,this._b),t=$(360*e.h),n=$(100*e.s),i=$(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return f(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:$(this._r),g:$(this._g),b:$(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+$(this._r)+", "+$(this._g)+", "+$(this._b)+")":"rgba("+$(this._r)+", "+$(this._g)+", "+$(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:$(100*E(this._r,255))+"%",g:$(100*E(this._g,255))+"%",b:$(100*E(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+$(100*E(this._r,255))+"%, "+$(100*E(this._g,255))+"%, "+$(100*E(this._b,255))+"%)":"rgba("+$(100*E(this._r,255))+"%, "+$(100*E(this._g,255))+"%, "+$(100*E(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(G[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+p(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var r=a(e);n="#"+p(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,i=this._a<1&&this._a>=0;return t||!i||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return a(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(_,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},a.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]="a"===i?e[i]:j(e[i]));e=n}return a(e,t)},a.equals=function(e,t){return!(!e||!t)&&a(e).toRgbString()==a(t).toRgbString()},a.random=function(){return a.fromRatio({r:V(),g:V(),b:V()})},a.mix=function(e,t,n){n=0===n?0:n||50;var i=a(e).toRgb(),r=a(t).toRgb(),o=n/100;return a({r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a})},a.readability=function(e,t){var n=a(e),i=a(t);return(r.max(n.getLuminance(),i.getLuminance())+.05)/(r.min(n.getLuminance(),i.getLuminance())+.05)},a.isReadable=function(e,t,n){var i,r,o=a.readability(e,t);switch(r=!1,(i=H(n)).level+i.size){case"AAsmall":case"AAAlarge":r=o>=4.5;break;case"AAlarge":r=o>=3;break;case"AAAsmall":r=o>=7}return r},a.mostReadable=function(e,t,n){var i,r,o,s,l=null,c=0;r=(n=n||{}).includeFallbackColors,o=n.level,s=n.size;for(var u=0;u<t.length;u++)(i=a.readability(e,t[u]))>c&&(c=i,l=a(t[u]));return a.isReadable(e,l,{level:o,size:s})||!r?l:(n.includeFallbackColors=!1,a.mostReadable(e,["#fff","#000"],n))};var X=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},G=a.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(X),J=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();void 0!==e&&e.exports?e.exports=a:void 0!==(i=function(){return a}.call(t,n,t,e))&&(e.exports=i)}(Math)},function(e,t,n){var i=n(67);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("0f73e73c",i,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-editable-input {\n  position: relative;\n}\n.vc-input__input {\n  padding: 0;\n  border: 0;\n  outline: none;\n}\n.vc-input__label {\n  text-transform: capitalize;\n}\n",""])},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-editable-input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"val"}],ref:"input",staticClass:"vc-input__input",attrs:{"aria-labelledby":e.labelId},domProps:{value:e.val},on:{keydown:e.handleKeyDown,input:[function(t){t.target.composing||(e.val=t.target.value)},e.update]}}),e._v(" "),n("span",{staticClass:"vc-input__label",attrs:{for:e.label,id:e.labelId}},[e._v(e._s(e.labelSpanText))]),e._v(" "),n("span",{staticClass:"vc-input__desc"},[e._v(e._s(e.desc))])])},r=[];i._withStripped=!0;var a={render:i,staticRenderFns:r};t.a=a},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-compact",attrs:{role:"application","aria-label":"Compact color picker"}},[n("ul",{staticClass:"vc-compact-colors",attrs:{role:"listbox"}},e._l(e.paletteUpperCase(e.palette),(function(t){return n("li",{key:t,staticClass:"vc-compact-color-item",class:{"vc-compact-color-item--white":"#FFFFFF"===t},style:{background:t},attrs:{role:"option","aria-label":"color:"+t,"aria-selected":t===e.pick},on:{click:function(n){return e.handlerClick(t)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t===e.pick,expression:"c === pick"}],staticClass:"vc-compact-dot"})])})),0)])},r=[];i._withStripped=!0;var a={render:i,staticRenderFns:r};t.a=a},function(e,t,n){"use strict";function i(e){l||n(71)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(37),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var s=n(73),l=!1,c=i,u=n(2)(a.a,s.a,!1,c,null,null);u.options.__file="src/components/Grayscale.vue",t.default=u.exports},function(e,t,n){var i=n(72);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("21ddbb74",i,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-grayscale {\n  width: 125px;\n  border-radius: 2px;\n  box-shadow: 0 2px 15px rgba(0,0,0,.12), 0 2px 10px rgba(0,0,0,.16);\n  background-color: #fff;\n}\n.vc-grayscale-colors {\n  border-radius: 2px;\n  overflow: hidden;\n  padding: 0;\n  margin: 0;\n}\n.vc-grayscale-color-item {\n  list-style: none;\n  width: 25px;\n  height: 25px;\n  float: left;\n  position: relative;\n  cursor: pointer;\n}\n.vc-grayscale-color-item--white .vc-grayscale-dot {\n  background: #000;\n}\n.vc-grayscale-dot {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  width: 6px;\n  height: 6px;\n  margin: -3px 0 0 -2px;\n  border-radius: 50%;\n  opacity: 1;\n  background: #fff;\n}\n",""])},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-grayscale",attrs:{role:"application","aria-label":"Grayscale color picker"}},[n("ul",{staticClass:"vc-grayscale-colors",attrs:{role:"listbox"}},e._l(e.paletteUpperCase(e.palette),(function(t){return n("li",{key:t,staticClass:"vc-grayscale-color-item",class:{"vc-grayscale-color-item--white":"#FFFFFF"==t},style:{background:t},attrs:{role:"option","aria-label":"Color:"+t,"aria-selected":t===e.pick},on:{click:function(n){return e.handlerClick(t)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t===e.pick,expression:"c === pick"}],staticClass:"vc-grayscale-dot"})])})),0)])},r=[];i._withStripped=!0;var a={render:i,staticRenderFns:r};t.a=a},function(e,t,n){"use strict";function i(e){l||n(75)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(38),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var s=n(77),l=!1,c=i,u=n(2)(a.a,s.a,!1,c,null,null);u.options.__file="src/components/Material.vue",t.default=u.exports},function(e,t,n){var i=n(76);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("1ff3af73",i,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,'\n.vc-material {\n  width: 98px;\n  height: 98px;\n  padding: 16px;\n  font-family: "Roboto";\n  position: relative;\n  border-radius: 2px;\n  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);\n  background-color: #fff;\n}\n.vc-material .vc-input__input {\n  width: 100%;\n  margin-top: 12px;\n  font-size: 15px;\n  color: #333;\n  height: 30px;\n}\n.vc-material .vc-input__label {\n  position: absolute;\n  top: 0;\n  left: 0;\n  font-size: 11px;\n  color: #999;\n  text-transform: capitalize;\n}\n.vc-material-hex {\n  border-bottom-width: 2px;\n  border-bottom-style: solid;\n}\n.vc-material-split {\n  display: flex;\n  margin-right: -10px;\n  padding-top: 11px;\n}\n.vc-material-third {\n  flex: 1;\n  padding-right: 10px;\n}\n',""])},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-material",attrs:{role:"application","aria-label":"Material color picker"}},[n("ed-in",{staticClass:"vc-material-hex",style:{borderColor:e.colors.hex},attrs:{label:"hex"},on:{change:e.onChange},model:{value:e.colors.hex,callback:function(t){e.$set(e.colors,"hex",t)},expression:"colors.hex"}}),e._v(" "),n("div",{staticClass:"vc-material-split"},[n("div",{staticClass:"vc-material-third"},[n("ed-in",{attrs:{label:"r"},on:{change:e.onChange},model:{value:e.colors.rgba.r,callback:function(t){e.$set(e.colors.rgba,"r",t)},expression:"colors.rgba.r"}})],1),e._v(" "),n("div",{staticClass:"vc-material-third"},[n("ed-in",{attrs:{label:"g"},on:{change:e.onChange},model:{value:e.colors.rgba.g,callback:function(t){e.$set(e.colors.rgba,"g",t)},expression:"colors.rgba.g"}})],1),e._v(" "),n("div",{staticClass:"vc-material-third"},[n("ed-in",{attrs:{label:"b"},on:{change:e.onChange},model:{value:e.colors.rgba.b,callback:function(t){e.$set(e.colors.rgba,"b",t)},expression:"colors.rgba.b"}})],1)])],1)},r=[];i._withStripped=!0;var a={render:i,staticRenderFns:r};t.a=a},function(e,t,n){"use strict";function i(e){l||n(79)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var s=n(114),l=!1,c=i,u=n(2)(a.a,s.a,!1,c,null,null);u.options.__file="src/components/Slider.vue",t.default=u.exports},function(e,t,n){var i=n(80);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("7982aa43",i,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-slider {\n  position: relative;\n  width: 410px;\n}\n.vc-slider-hue-warp {\n  height: 12px;\n  position: relative;\n}\n.vc-slider-hue-warp .vc-hue-picker {\n  width: 14px;\n  height: 14px;\n  border-radius: 6px;\n  transform: translate(-7px, -2px);\n  background-color: rgb(248, 248, 248);\n  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\n}\n.vc-slider-swatches {\n  display: flex;\n  margin-top: 20px;\n}\n.vc-slider-swatch {\n  margin-right: 1px;\n  flex: 1;\n  width: 20%;\n}\n.vc-slider-swatch:first-child {\n  margin-right: 1px;\n}\n.vc-slider-swatch:first-child .vc-slider-swatch-picker {\n  border-radius: 2px 0px 0px 2px;\n}\n.vc-slider-swatch:last-child {\n  margin-right: 0;\n}\n.vc-slider-swatch:last-child .vc-slider-swatch-picker {\n  border-radius: 0px 2px 2px 0px;\n}\n.vc-slider-swatch-picker {\n  cursor: pointer;\n  height: 12px;\n}\n.vc-slider-swatch:nth-child(n) .vc-slider-swatch-picker.vc-slider-swatch-picker--active {\n  transform: scaleY(1.8);\n  border-radius: 3.6px/2px;\n}\n.vc-slider-swatch-picker--white {\n  box-shadow: inset 0 0 0 1px #ddd;\n}\n.vc-slider-swatch-picker--active.vc-slider-swatch-picker--white {\n  box-shadow: inset 0 0 0 0.6px #ddd;\n}\n",""])},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=i(n(82)),a=i(n(100)),o="function"==typeof a.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};t.default="function"==typeof a.default&&"symbol"===o(r.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":void 0===e?"undefined":o(e)}},function(e,t,n){e.exports={default:n(83),__esModule:!0}},function(e,t,n){n(84),n(96),e.exports=n(32).f("iterator")},function(e,t,n){"use strict";var i=n(85)(!0);n(40)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var i=n(23),r=n(24);e.exports=function(e){return function(t,n){var a,o,s=String(r(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):a:e?s.slice(l,l+2):o-56320+(a-55296<<10)+65536}}},function(e,t,n){var i=n(87);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var i=n(45),r=n(18),a=n(31),o={};n(7)(o,n(11)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(o,{next:r(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var i=n(8),r=n(16),a=n(27);e.exports=n(9)?Object.defineProperties:function(e,t){r(e);for(var n,o=a(t),s=o.length,l=0;s>l;)i.f(e,n=o[l++],t[n]);return e}},function(e,t,n){var i=n(47);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){var i=n(10),r=n(92),a=n(93);e.exports=function(e){return function(t,n,o){var s,l=i(t),c=r(l.length),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var i=n(23),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){var i=n(23),r=Math.max,a=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):a(e,t)}},function(e,t,n){var i=n(4).document;e.exports=i&&i.documentElement},function(e,t,n){var i=n(6),r=n(48),a=n(28)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){n(97);for(var i=n(4),r=n(7),a=n(26),o=n(11)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=i[c],d=u&&u.prototype;d&&!d[o]&&r(d,o,c),a[c]=a.Array}},function(e,t,n){"use strict";var i=n(98),r=n(99),a=n(26),o=n(10);e.exports=n(40)(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(101),__esModule:!0}},function(e,t,n){n(102),n(108),n(109),n(110),e.exports=n(15).Symbol},function(e,t,n){"use strict";var i=n(4),r=n(6),a=n(9),o=n(41),s=n(44),l=n(103).KEY,c=n(17),u=n(29),d=n(31),h=n(19),f=n(11),p=n(32),m=n(33),g=n(104),_=n(105),v=n(16),y=n(12),b=n(48),w=n(10),x=n(25),k=n(18),A=n(45),S=n(106),M=n(107),T=n(49),L=n(8),E=n(27),C=M.f,D=L.f,O=S.f,Y=i.Symbol,P=i.JSON,j=P&&P.stringify,I=f("_hidden"),F=f("toPrimitive"),N={}.propertyIsEnumerable,R=u("symbol-registry"),H=u("symbols"),z=u("op-symbols"),q=Object.prototype,B="function"==typeof Y&&!!T.f,$=i.QObject,W=!$||!$.prototype||!$.prototype.findChild,U=a&&c((function(){return 7!=A(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=C(q,t);i&&delete q[t],D(e,t,n),i&&e!==q&&D(q,t,i)}:D,V=function(e){var t=H[e]=A(Y.prototype);return t._k=e,t},X=B&&"symbol"==typeof Y.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof Y},G=function(e,t,n){return e===q&&G(z,t,n),v(e),t=x(t,!0),v(n),r(H,t)?(n.enumerable?(r(e,I)&&e[I][t]&&(e[I][t]=!1),n=A(n,{enumerable:k(0,!1)})):(r(e,I)||D(e,I,k(1,{})),e[I][t]=!0),U(e,t,n)):D(e,t,n)},J=function(e,t){v(e);for(var n,i=g(t=w(t)),r=0,a=i.length;a>r;)G(e,n=i[r++],t[n]);return e},Q=function(e,t){return void 0===t?A(e):J(A(e),t)},K=function(e){var t=N.call(this,e=x(e,!0));return!(this===q&&r(H,e)&&!r(z,e))&&(!(t||!r(this,e)||!r(H,e)||r(this,I)&&this[I][e])||t)},Z=function(e,t){if(e=w(e),t=x(t,!0),e!==q||!r(H,t)||r(z,t)){var n=C(e,t);return!n||!r(H,t)||r(e,I)&&e[I][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=O(w(e)),i=[],a=0;n.length>a;)r(H,t=n[a++])||t==I||t==l||i.push(t);return i},te=function(e){for(var t,n=e===q,i=O(n?z:w(e)),a=[],o=0;i.length>o;)!r(H,t=i[o++])||n&&!r(q,t)||a.push(H[t]);return a};B||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===q&&t.call(z,n),r(this,I)&&r(this[I],e)&&(this[I][e]=!1),U(this,e,k(1,n))};return a&&W&&U(q,e,{configurable:!0,set:t}),V(e)},s(Y.prototype,"toString",(function(){return this._k})),M.f=Z,L.f=G,n(50).f=S.f=ee,n(34).f=K,T.f=te,a&&!n(14)&&s(q,"propertyIsEnumerable",K,!0),p.f=function(e){return V(f(e))}),o(o.G+o.W+o.F*!B,{Symbol:Y});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;ne.length>ie;)f(ne[ie++]);for(var re=E(f.store),ae=0;re.length>ae;)m(re[ae++]);o(o.S+o.F*!B,"Symbol",{for:function(e){return r(R,e+="")?R[e]:R[e]=Y(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),o(o.S+o.F*!B,"Object",{create:Q,defineProperty:G,defineProperties:J,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var oe=c((function(){T.f(1)}));o(o.S+o.F*oe,"Object",{getOwnPropertySymbols:function(e){return T.f(b(e))}}),P&&o(o.S+o.F*(!B||c((function(){var e=Y();return"[null]"!=j([e])||"{}"!=j({a:e})||"{}"!=j(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=t=i[1],(y(t)||void 0!==e)&&!X(e))return _(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!X(t))return t}),i[1]=t,j.apply(P,i)}}),Y.prototype[F]||n(7)(Y.prototype,F,Y.prototype.valueOf),d(Y,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){var i=n(19)("meta"),r=n(12),a=n(6),o=n(8).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(17)((function(){return l(Object.preventExtensions({}))})),u=function(e){o(e,i,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[i].i},h=function(e,t){if(!a(e,i)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[i].w},f=function(e){return c&&p.NEED&&l(e)&&!a(e,i)&&u(e),e},p=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:h,onFreeze:f}},function(e,t,n){var i=n(27),r=n(49),a=n(34);e.exports=function(e){var t=i(e),n=r.f;if(n)for(var o,s=n(e),l=a.f,c=0;s.length>c;)l.call(e,o=s[c++])&&t.push(o);return t}},function(e,t,n){var i=n(47);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(10),r=n(50).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(e){return o.slice()}};e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?s(e):r(i(e))}},function(e,t,n){var i=n(34),r=n(18),a=n(10),o=n(25),s=n(6),l=n(42),c=Object.getOwnPropertyDescriptor;t.f=n(9)?c:function(e,t){if(e=a(e),t=o(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(33)("asyncIterator")},function(e,t,n){n(33)("observable")},function(e,t,n){var i=n(112);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("7c5f1a1c",i,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-hue {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n  border-radius: 2px;\n}\n.vc-hue--horizontal {\n  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n}\n.vc-hue--vertical {\n  background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n}\n.vc-hue-container {\n  cursor: pointer;\n  margin: 0 2px;\n  position: relative;\n  height: 100%;\n}\n.vc-hue-pointer {\n  z-index: 2;\n  position: absolute;\n}\n.vc-hue-picker {\n  cursor: pointer;\n  margin-top: 1px;\n  width: 4px;\n  border-radius: 1px;\n  height: 8px;\n  box-shadow: 0 0 2px rgba(0, 0, 0, .6);\n  background: #fff;\n  transform: translateX(-2px) ;\n}\n",""])},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["vc-hue",e.directionClass]},[n("div",{ref:"container",staticClass:"vc-hue-container",attrs:{role:"slider","aria-valuenow":e.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360"},on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[n("div",{staticClass:"vc-hue-pointer",style:{top:e.pointerTop,left:e.pointerLeft},attrs:{role:"presentation"}},[n("div",{staticClass:"vc-hue-picker"})])])])},r=[];i._withStripped=!0;var a={render:i,staticRenderFns:r};t.a=a},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-slider",attrs:{role:"application","aria-label":"Slider color picker"}},[n("div",{staticClass:"vc-slider-hue-warp"},[n("hue",{on:{change:e.hueChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),n("div",{staticClass:"vc-slider-swatches",attrs:{role:"group"}},e._l(e.normalizedSwatches,(function(t,i){return n("div",{key:i,staticClass:"vc-slider-swatch",attrs:{"data-index":i,"aria-label":"color:"+e.colors.hex,role:"button"},on:{click:function(n){return e.handleSwClick(i,t)}}},[n("div",{staticClass:"vc-slider-swatch-picker",class:{"vc-slider-swatch-picker--active":e.isActive(t,i),"vc-slider-swatch-picker--white":1===t.l},style:{background:"hsl("+e.colors.hsl.h+", "+100*t.s+"%, "+100*t.l+"%)"}})])})),0)])},r=[];i._withStripped=!0;var a={render:i,staticRenderFns:r};t.a=a},function(e,t,n){"use strict";function i(e){l||n(116)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(52),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var s=n(119),l=!1,c=i,u=n(2)(a.a,s.a,!1,c,null,null);u.options.__file="src/components/Swatches.vue",t.default=u.exports},function(e,t,n){var i=n(117);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("10f839a2",i,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-swatches {\n  width: 320px;\n  height: 240px;\n  overflow-y: scroll;\n  background-color: #fff;\n  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);\n}\n.vc-swatches-box {\n  padding: 16px 0 6px 16px;\n  overflow: hidden;\n}\n.vc-swatches-color-group {\n  padding-bottom: 10px;\n  width: 40px;\n  float: left;\n  margin-right: 10px;\n}\n.vc-swatches-color-it {\n  box-sizing: border-box;\n  width: 40px;\n  height: 24px;\n  cursor: pointer;\n  background: #880e4f;\n  margin-bottom: 1px;\n  overflow: hidden;\n  -ms-border-radius: 2px 2px 0 0;\n  -moz-border-radius: 2px 2px 0 0;\n  -o-border-radius: 2px 2px 0 0;\n  -webkit-border-radius: 2px 2px 0 0;\n  border-radius: 2px 2px 0 0;\n}\n.vc-swatches-color--white {\n  border: 1px solid #DDD;\n}\n.vc-swatches-pick {\n  fill: rgb(255, 255, 255);\n  margin-left: 8px;\n  display: block;\n}\n.vc-swatches-color--white .vc-swatches-pick {\n  fill: rgb(51, 51, 51);\n}\n",""])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"red",(function(){return i})),n.d(t,"pink",(function(){return r})),n.d(t,"purple",(function(){return a})),n.d(t,"deepPurple",(function(){return o})),n.d(t,"indigo",(function(){return s})),n.d(t,"blue",(function(){return l})),n.d(t,"lightBlue",(function(){return c})),n.d(t,"cyan",(function(){return u})),n.d(t,"teal",(function(){return d})),n.d(t,"green",(function(){return h})),n.d(t,"lightGreen",(function(){return f})),n.d(t,"lime",(function(){return p})),n.d(t,"yellow",(function(){return m})),n.d(t,"amber",(function(){return g})),n.d(t,"orange",(function(){return _})),n.d(t,"deepOrange",(function(){return v})),n.d(t,"brown",(function(){return y})),n.d(t,"grey",(function(){return b})),n.d(t,"blueGrey",(function(){return w})),n.d(t,"darkText",(function(){return x})),n.d(t,"lightText",(function(){return k})),n.d(t,"darkIcons",(function(){return A})),n.d(t,"lightIcons",(function(){return S})),n.d(t,"white",(function(){return M})),n.d(t,"black",(function(){return T}));var i={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},r={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},a={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},o={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},s={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},l={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},c={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},u={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},d={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},h={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},f={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},p={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},m={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},g={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},_={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},v={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},y={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},b={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},w={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},x={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},k={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},A={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},S={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},M="#ffffff",T="#000000";t.default={red:i,pink:r,purple:a,deepPurple:o,indigo:s,blue:l,lightBlue:c,cyan:u,teal:d,green:h,lightGreen:f,lime:p,yellow:m,amber:g,orange:_,deepOrange:v,brown:y,grey:b,blueGrey:w,darkText:x,lightText:k,darkIcons:A,lightIcons:S,white:M,black:T}},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-swatches",attrs:{role:"application","aria-label":"Swatches color picker","data-pick":e.pick}},[n("div",{staticClass:"vc-swatches-box",attrs:{role:"listbox"}},e._l(e.palette,(function(t,i){return n("div",{key:i,staticClass:"vc-swatches-color-group"},e._l(t,(function(t){return n("div",{key:t,class:["vc-swatches-color-it",{"vc-swatches-color--white":"#FFFFFF"===t}],style:{background:t},attrs:{role:"option","aria-label":"Color:"+t,"aria-selected":e.equal(t),"data-color":t},on:{click:function(n){return e.handlerClick(t)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.equal(t),expression:"equal(c)"}],staticClass:"vc-swatches-pick"},[n("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}})])])])})),0)})),0)])},r=[];i._withStripped=!0;var a={render:i,staticRenderFns:r};t.a=a},function(e,t,n){"use strict";function i(e){l||n(121)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(53),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var s=n(134),l=!1,c=i,u=n(2)(a.a,s.a,!1,c,null,null);u.options.__file="src/components/Photoshop.vue",t.default=u.exports},function(e,t,n){var i=n(122);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("080365d4",i,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,'\n.vc-photoshop {\n  background: #DCDCDC;\n  border-radius: 4px;\n  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15);\n  box-sizing: initial;\n  width: 513px;\n  font-family: Roboto;\n}\n.vc-photoshop__disable-fields {\n  width: 390px;\n}\n.vc-ps-head {\n  background-image: linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%);\n  border-bottom: 1px solid #B1B1B1;\n  box-shadow: inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02);\n  height: 23px;\n  line-height: 24px;\n  border-radius: 4px 4px 0 0;\n  font-size: 13px;\n  color: #4D4D4D;\n  text-align: center;\n}\n.vc-ps-body {\n  padding: 15px;\n  display: flex;\n}\n.vc-ps-saturation-wrap {\n  width: 256px;\n  height: 256px;\n  position: relative;\n  border: 2px solid #B3B3B3;\n  border-bottom: 2px solid #F0F0F0;\n  overflow: hidden;\n}\n.vc-ps-saturation-wrap .vc-saturation-circle {\n  width: 12px;\n  height: 12px;\n}\n.vc-ps-hue-wrap {\n  position: relative;\n  height: 256px;\n  width: 19px;\n  margin-left: 10px;\n  border: 2px solid #B3B3B3;\n  border-bottom: 2px solid #F0F0F0;\n}\n.vc-ps-hue-pointer {\n  position: relative;\n}\n.vc-ps-hue-pointer--left,\n.vc-ps-hue-pointer--right {\n  position: absolute;\n  width: 0;\n  height: 0;\n  border-style: solid;\n  border-width: 5px 0 5px 8px;\n  border-color: transparent transparent transparent #555;\n}\n.vc-ps-hue-pointer--left:after,\n.vc-ps-hue-pointer--right:after {\n  content: "";\n  width: 0;\n  height: 0;\n  border-style: solid;\n  border-width: 4px 0 4px 6px;\n  border-color: transparent transparent transparent #fff;\n  position: absolute;\n  top: 1px;\n  left: 1px;\n  transform: translate(-8px, -5px);\n}\n.vc-ps-hue-pointer--left {\n  transform: translate(-13px, -4px);\n}\n.vc-ps-hue-pointer--right {\n  transform: translate(20px, -4px) rotate(180deg);\n}\n.vc-ps-controls {\n  width: 180px;\n  margin-left: 10px;\n  display: flex;\n}\n.vc-ps-controls__disable-fields {\n  width: auto;\n}\n.vc-ps-actions {\n  margin-left: 20px;\n  flex: 1;\n}\n.vc-ps-ac-btn {\n  cursor: pointer;\n  background-image: linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%);\n  border: 1px solid #878787;\n  border-radius: 2px;\n  height: 20px;\n  box-shadow: 0 1px 0 0 #EAEAEA;\n  font-size: 14px;\n  color: #000;\n  line-height: 20px;\n  text-align: center;\n  margin-bottom: 10px;\n}\n.vc-ps-previews {\n  width: 60px;\n}\n.vc-ps-previews__swatches {\n  border: 1px solid #B3B3B3;\n  border-bottom: 1px solid #F0F0F0;\n  margin-bottom: 2px;\n  margin-top: 1px;\n}\n.vc-ps-previews__pr-color {\n  height: 34px;\n  box-shadow: inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000;\n}\n.vc-ps-previews__label {\n  font-size: 14px;\n  color: #000;\n  text-align: center;\n}\n.vc-ps-fields {\n  padding-top: 5px;\n  padding-bottom: 9px;\n  width: 80px;\n  position: relative;\n}\n.vc-ps-fields .vc-input__input {\n  margin-left: 40%;\n  width: 40%;\n  height: 18px;\n  border: 1px solid #888888;\n  box-shadow: inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC;\n  margin-bottom: 5px;\n  font-size: 13px;\n  padding-left: 3px;\n  margin-right: 10px;\n}\n.vc-ps-fields .vc-input__label, .vc-ps-fields .vc-input__desc {\n  top: 0;\n  text-transform: uppercase;\n  font-size: 13px;\n  height: 18px;\n  line-height: 22px;\n  position: absolute;\n}\n.vc-ps-fields .vc-input__label {\n  left: 0;\n  width: 34px;\n}\n.vc-ps-fields .vc-input__desc {\n  right: 0;\n  width: 0;\n}\n.vc-ps-fields__divider {\n  height: 5px;\n}\n.vc-ps-fields__hex .vc-input__input {\n  margin-left: 20%;\n  width: 80%;\n  height: 18px;\n  border: 1px solid #888888;\n  box-shadow: inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC;\n  margin-bottom: 6px;\n  font-size: 13px;\n  padding-left: 3px;\n}\n.vc-ps-fields__hex .vc-input__label {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 14px;\n  text-transform: uppercase;\n  font-size: 13px;\n  height: 18px;\n  line-height: 22px;\n}\n',""])},function(e,t,n){var i=n(124);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("b5380e52",i,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-saturation,\n.vc-saturation--white,\n.vc-saturation--black {\n  cursor: pointer;\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n}\n.vc-saturation--white {\n  background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n}\n.vc-saturation--black {\n  background: linear-gradient(to top, #000, rgba(0,0,0,0));\n}\n.vc-saturation-pointer {\n  cursor: pointer;\n  position: absolute;\n}\n.vc-saturation-circle {\n  cursor: head;\n  width: 4px;\n  height: 4px;\n  box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), 0 0 1px 2px rgba(0,0,0,.4);\n  border-radius: 50%;\n  transform: translate(-2px, -2px);\n}\n",""])},function(e,t){function n(e,t,n){return t<n?e<t?t:e>n?n:e:e<n?n:e>t?t:e}e.exports=n},function(e,t){function i(e,t,n){function i(t){var n=m,i=g;return m=g=void 0,A=t,v=e.apply(i,n)}function r(e){return A=e,y=setTimeout(u,t),S?i(e):v}function o(e){var n=t-(e-b);return M?x(n,_-(e-A)):n}function s(e){var n=e-b;return void 0===b||n>=t||n<0||M&&e-A>=_}function u(){var e=k();if(s(e))return d(e);y=setTimeout(u,o(e))}function d(e){return y=void 0,T&&m?i(e):(m=g=void 0,v)}function h(){void 0!==y&&clearTimeout(y),A=0,m=b=g=y=void 0}function f(){return void 0===y?v:d(k())}function p(){var e=k(),n=s(e);if(m=arguments,g=this,b=e,n){if(void 0===y)return r(b);if(M)return y=setTimeout(u,t),i(b)}return void 0===y&&(y=setTimeout(u,t)),v}var m,g,_,v,y,b,A=0,S=!1,M=!1,T=!0;if("function"!=typeof e)throw new TypeError(c);return t=l(t)||0,a(n)&&(S=!!n.leading,_=(M="maxWait"in n)?w(l(n.maxWait)||0,t):_,T="trailing"in n?!!n.trailing:T),p.cancel=h,p.flush=f,p}function r(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(c);return a(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),i(e,t,{leading:r,maxWait:t,trailing:o})}function a(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==typeof e}function s(e){return"symbol"==typeof e||o(e)&&b.call(e)==d}function l(e){if("number"==typeof e)return e;if(s(e))return u;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(h,"");var n=p.test(e);return n||m.test(e)?g(e.slice(2),n?2:8):f.test(e)?u:+e}var c="Expected a function",u=NaN,d="[object Symbol]",h=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,m=/^0o[0-7]+$/i,g=parseInt,_="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,v="object"==typeof self&&self&&self.Object===Object&&self,y=_||v||Function("return this")(),b=Object.prototype.toString,w=Math.max,x=Math.min,k=function(){return y.Date.now()};e.exports=r},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"container",staticClass:"vc-saturation",style:{background:e.bgColor},on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[n("div",{staticClass:"vc-saturation--white"}),e._v(" "),n("div",{staticClass:"vc-saturation--black"}),e._v(" "),n("div",{staticClass:"vc-saturation-pointer",style:{top:e.pointerTop,left:e.pointerLeft}},[n("div",{staticClass:"vc-saturation-circle"})])])},r=[];i._withStripped=!0;var a={render:i,staticRenderFns:r};t.a=a},function(e,t,n){var i=n(129);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("4dc1b086",i,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-alpha {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n}\n.vc-alpha-checkboard-wrap {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n  overflow: hidden;\n}\n.vc-alpha-gradient {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n}\n.vc-alpha-container {\n  cursor: pointer;\n  position: relative;\n  z-index: 2;\n  height: 100%;\n  margin: 0 3px;\n}\n.vc-alpha-pointer {\n  z-index: 2;\n  position: absolute;\n}\n.vc-alpha-picker {\n  cursor: pointer;\n  width: 4px;\n  border-radius: 1px;\n  height: 8px;\n  box-shadow: 0 0 2px rgba(0, 0, 0, .6);\n  background: #fff;\n  margin-top: 1px;\n  transform: translateX(-2px);\n}\n",""])},function(e,t,n){var i=n(131);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("7e15c05b",i,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-checkerboard {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n  background-size: contain;\n}\n",""])},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"vc-checkerboard",style:e.bgStyle})},r=[];i._withStripped=!0;var a={render:i,staticRenderFns:r};t.a=a},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-alpha"},[n("div",{staticClass:"vc-alpha-checkboard-wrap"},[n("checkboard")],1),e._v(" "),n("div",{staticClass:"vc-alpha-gradient",style:{background:e.gradientColor}}),e._v(" "),n("div",{ref:"container",staticClass:"vc-alpha-container",on:{mousedown:e.handleMouseDown,touchmove:e.handleChange,touchstart:e.handleChange}},[n("div",{staticClass:"vc-alpha-pointer",style:{left:100*e.colors.a+"%"}},[n("div",{staticClass:"vc-alpha-picker"})])])])},r=[];i._withStripped=!0;var a={render:i,staticRenderFns:r};t.a=a},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["vc-photoshop",e.disableFields?"vc-photoshop__disable-fields":""],attrs:{role:"application","aria-label":"PhotoShop color picker"}},[n("div",{staticClass:"vc-ps-head",attrs:{role:"heading"}},[e._v(e._s(e.head))]),e._v(" "),n("div",{staticClass:"vc-ps-body"},[n("div",{staticClass:"vc-ps-saturation-wrap"},[n("saturation",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),n("div",{staticClass:"vc-ps-hue-wrap"},[n("hue",{attrs:{direction:"vertical"},on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}},[n("div",{staticClass:"vc-ps-hue-pointer"},[n("i",{staticClass:"vc-ps-hue-pointer--left"}),n("i",{staticClass:"vc-ps-hue-pointer--right"})])])],1),e._v(" "),n("div",{class:["vc-ps-controls",e.disableFields?"vc-ps-controls__disable-fields":""]},[n("div",{staticClass:"vc-ps-previews"},[n("div",{staticClass:"vc-ps-previews__label"},[e._v(e._s(e.newLabel))]),e._v(" "),n("div",{staticClass:"vc-ps-previews__swatches"},[n("div",{staticClass:"vc-ps-previews__pr-color",style:{background:e.colors.hex},attrs:{"aria-label":"New color is "+e.colors.hex}}),e._v(" "),n("div",{staticClass:"vc-ps-previews__pr-color",style:{background:e.currentColor},attrs:{"aria-label":"Current color is "+e.currentColor},on:{click:e.clickCurrentColor}})]),e._v(" "),n("div",{staticClass:"vc-ps-previews__label"},[e._v(e._s(e.currentLabel))])]),e._v(" "),e.disableFields?e._e():n("div",{staticClass:"vc-ps-actions"},[n("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":e.acceptLabel},on:{click:e.handleAccept}},[e._v(e._s(e.acceptLabel))]),e._v(" "),n("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":e.cancelLabel},on:{click:e.handleCancel}},[e._v(e._s(e.cancelLabel))]),e._v(" "),n("div",{staticClass:"vc-ps-fields"},[n("ed-in",{attrs:{label:"h",desc:"°",value:e.hsv.h},on:{change:e.inputChange}}),e._v(" "),n("ed-in",{attrs:{label:"s",desc:"%",value:e.hsv.s,max:100},on:{change:e.inputChange}}),e._v(" "),n("ed-in",{attrs:{label:"v",desc:"%",value:e.hsv.v,max:100},on:{change:e.inputChange}}),e._v(" "),n("div",{staticClass:"vc-ps-fields__divider"}),e._v(" "),n("ed-in",{attrs:{label:"r",value:e.colors.rgba.r},on:{change:e.inputChange}}),e._v(" "),n("ed-in",{attrs:{label:"g",value:e.colors.rgba.g},on:{change:e.inputChange}}),e._v(" "),n("ed-in",{attrs:{label:"b",value:e.colors.rgba.b},on:{change:e.inputChange}}),e._v(" "),n("div",{staticClass:"vc-ps-fields__divider"}),e._v(" "),n("ed-in",{staticClass:"vc-ps-fields__hex",attrs:{label:"#",value:e.hex},on:{change:e.inputChange}})],1),e._v(" "),e.hasResetButton?n("div",{staticClass:"vc-ps-ac-btn",attrs:{"aria-label":"reset"},on:{click:e.handleReset}},[e._v(e._s(e.resetLabel))]):e._e()])])])])},r=[];i._withStripped=!0;var a={render:i,staticRenderFns:r};t.a=a},function(e,t,n){"use strict";function i(e){l||n(136)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(57),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var s=n(138),l=!1,c=i,u=n(2)(a.a,s.a,!1,c,null,null);u.options.__file="src/components/Sketch.vue",t.default=u.exports},function(e,t,n){var i=n(137);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("612c6604",i,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-sketch {\n  position: relative;\n  width: 200px;\n  padding: 10px 10px 0;\n  box-sizing: initial;\n  background: #fff;\n  border-radius: 4px;\n  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 8px 16px rgba(0, 0, 0, .15);\n}\n.vc-sketch-saturation-wrap {\n  width: 100%;\n  padding-bottom: 75%;\n  position: relative;\n  overflow: hidden;\n}\n.vc-sketch-controls {\n  display: flex;\n}\n.vc-sketch-sliders {\n  padding: 4px 0;\n  flex: 1;\n}\n.vc-sketch-sliders .vc-hue,\n.vc-sketch-sliders .vc-alpha-gradient {\n  border-radius: 2px;\n}\n.vc-sketch-hue-wrap {\n  position: relative;\n  height: 10px;\n}\n.vc-sketch-alpha-wrap {\n  position: relative;\n  height: 10px;\n  margin-top: 4px;\n  overflow: hidden;\n}\n.vc-sketch-color-wrap {\n  width: 24px;\n  height: 24px;\n  position: relative;\n  margin-top: 4px;\n  margin-left: 4px;\n  border-radius: 3px;\n}\n.vc-sketch-active-color {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  border-radius: 2px;\n  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), inset 0 0 4px rgba(0, 0, 0, .25);\n  z-index: 2;\n}\n.vc-sketch-color-wrap .vc-checkerboard {\n  background-size: auto;\n}\n.vc-sketch-field {\n  display: flex;\n  padding-top: 4px;\n}\n.vc-sketch-field .vc-input__input {\n  width: 90%;\n  padding: 4px 0 3px 10%;\n  border: none;\n  box-shadow: inset 0 0 0 1px #ccc;\n  font-size: 10px;\n}\n.vc-sketch-field .vc-input__label {\n  display: block;\n  text-align: center;\n  font-size: 11px;\n  color: #222;\n  padding-top: 3px;\n  padding-bottom: 4px;\n  text-transform: capitalize;\n}\n.vc-sketch-field--single {\n  flex: 1;\n  padding-left: 6px;\n}\n.vc-sketch-field--double {\n  flex: 2;\n}\n.vc-sketch-presets {\n  margin-right: -10px;\n  margin-left: -10px;\n  padding-left: 10px;\n  padding-top: 10px;\n  border-top: 1px solid #eee;\n}\n.vc-sketch-presets-color {\n  border-radius: 3px;\n  overflow: hidden;\n  position: relative;\n  display: inline-block;\n  margin: 0 10px 10px 0;\n  vertical-align: top;\n  cursor: pointer;\n  width: 16px;\n  height: 16px;\n  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);\n}\n.vc-sketch-presets-color .vc-checkerboard {\n  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);\n  border-radius: 3px;\n}\n.vc-sketch__disable-alpha .vc-sketch-color-wrap {\n  height: 10px;\n}\n",""])},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["vc-sketch",e.disableAlpha?"vc-sketch__disable-alpha":""],attrs:{role:"application","aria-label":"Sketch color picker"}},[n("div",{staticClass:"vc-sketch-saturation-wrap"},[n("saturation",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),n("div",{staticClass:"vc-sketch-controls"},[n("div",{staticClass:"vc-sketch-sliders"},[n("div",{staticClass:"vc-sketch-hue-wrap"},[n("hue",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),e.disableAlpha?e._e():n("div",{staticClass:"vc-sketch-alpha-wrap"},[n("alpha",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1)]),e._v(" "),n("div",{staticClass:"vc-sketch-color-wrap"},[n("div",{staticClass:"vc-sketch-active-color",style:{background:e.activeColor},attrs:{"aria-label":"Current color is "+e.activeColor}}),e._v(" "),n("checkboard")],1)]),e._v(" "),e.disableFields?e._e():n("div",{staticClass:"vc-sketch-field"},[n("div",{staticClass:"vc-sketch-field--double"},[n("ed-in",{attrs:{label:"hex",value:e.hex},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"r",value:e.colors.rgba.r},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"g",value:e.colors.rgba.g},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"b",value:e.colors.rgba.b},on:{change:e.inputChange}})],1),e._v(" "),e.disableAlpha?e._e():n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"a",value:e.colors.a,"arrow-offset":.01,max:1},on:{change:e.inputChange}})],1)]),e._v(" "),n("div",{staticClass:"vc-sketch-presets",attrs:{role:"group","aria-label":"A color preset, pick one to set as current color"}},[e._l(e.presetColors,(function(t){return[e.isTransparent(t)?n("div",{key:t,staticClass:"vc-sketch-presets-color",attrs:{"aria-label":"Color:"+t},on:{click:function(n){return e.handlePreset(t)}}},[n("checkboard")],1):n("div",{key:t,staticClass:"vc-sketch-presets-color",style:{background:t},attrs:{"aria-label":"Color:"+t},on:{click:function(n){return e.handlePreset(t)}}})]}))],2)])},r=[];i._withStripped=!0;var a={render:i,staticRenderFns:r};t.a=a},function(e,t,n){"use strict";function i(e){l||n(140)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var s=n(142),l=!1,c=i,u=n(2)(a.a,s.a,!1,c,null,null);u.options.__file="src/components/Chrome.vue",t.default=u.exports},function(e,t,n){var i=n(141);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("1cd16048",i,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-chrome {\n  background: #fff;\n  border-radius: 2px;\n  box-shadow: 0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3);\n  box-sizing: initial;\n  width: 225px;\n  font-family: Menlo;\n  background-color: #fff;\n}\n.vc-chrome-controls {\n  display: flex;\n}\n.vc-chrome-color-wrap {\n  position: relative;\n  width: 36px;\n}\n.vc-chrome-active-color {\n  position: relative;\n  width: 30px;\n  height: 30px;\n  border-radius: 15px;\n  overflow: hidden;\n  z-index: 1;\n}\n.vc-chrome-color-wrap .vc-checkerboard {\n  width: 30px;\n  height: 30px;\n  border-radius: 15px;\n  background-size: auto;\n}\n.vc-chrome-sliders {\n  flex: 1;\n}\n.vc-chrome-fields-wrap {\n  display: flex;\n  padding-top: 16px;\n}\n.vc-chrome-fields {\n  display: flex;\n  margin-left: -6px;\n  flex: 1;\n}\n.vc-chrome-field {\n  padding-left: 6px;\n  width: 100%;\n}\n.vc-chrome-toggle-btn {\n  width: 32px;\n  text-align: right;\n  position: relative;\n}\n.vc-chrome-toggle-icon {\n  margin-right: -4px;\n  margin-top: 12px;\n  cursor: pointer;\n  position: relative;\n  z-index: 2;\n}\n.vc-chrome-toggle-icon-highlight {\n  position: absolute;\n  width: 24px;\n  height: 28px;\n  background: #eee;\n  border-radius: 4px;\n  top: 10px;\n  left: 12px;\n}\n.vc-chrome-hue-wrap {\n  position: relative;\n  height: 10px;\n  margin-bottom: 8px;\n}\n.vc-chrome-alpha-wrap {\n  position: relative;\n  height: 10px;\n}\n.vc-chrome-hue-wrap .vc-hue {\n  border-radius: 2px;\n}\n.vc-chrome-alpha-wrap .vc-alpha-gradient {\n  border-radius: 2px;\n}\n.vc-chrome-hue-wrap .vc-hue-picker, .vc-chrome-alpha-wrap .vc-alpha-picker {\n  width: 12px;\n  height: 12px;\n  border-radius: 6px;\n  transform: translate(-6px, -2px);\n  background-color: rgb(248, 248, 248);\n  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);\n}\n.vc-chrome-body {\n  padding: 16px 16px 12px;\n  background-color: #fff;\n}\n.vc-chrome-saturation-wrap {\n  width: 100%;\n  padding-bottom: 55%;\n  position: relative;\n  border-radius: 2px 2px 0 0;\n  overflow: hidden;\n}\n.vc-chrome-saturation-wrap .vc-saturation-circle {\n  width: 12px;\n  height: 12px;\n}\n.vc-chrome-fields .vc-input__input {\n  font-size: 11px;\n  color: #333;\n  width: 100%;\n  border-radius: 2px;\n  border: none;\n  box-shadow: inset 0 0 0 1px #dadada;\n  height: 21px;\n  text-align: center;\n}\n.vc-chrome-fields .vc-input__label {\n  text-transform: uppercase;\n  font-size: 11px;\n  line-height: 11px;\n  color: #969696;\n  text-align: center;\n  display: block;\n  margin-top: 12px;\n}\n.vc-chrome__disable-alpha .vc-chrome-active-color {\n  width: 18px;\n  height: 18px;\n}\n.vc-chrome__disable-alpha .vc-chrome-color-wrap {\n  width: 30px;\n}\n.vc-chrome__disable-alpha .vc-chrome-hue-wrap {\n  margin-top: 4px;\n  margin-bottom: 4px;\n}\n",""])},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["vc-chrome",e.disableAlpha?"vc-chrome__disable-alpha":""],attrs:{role:"application","aria-label":"Chrome color picker"}},[n("div",{staticClass:"vc-chrome-saturation-wrap"},[n("saturation",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),n("div",{staticClass:"vc-chrome-body"},[n("div",{staticClass:"vc-chrome-controls"},[n("div",{staticClass:"vc-chrome-color-wrap"},[n("div",{staticClass:"vc-chrome-active-color",style:{background:e.activeColor},attrs:{"aria-label":"current color is "+e.colors.hex}}),e._v(" "),e.disableAlpha?e._e():n("checkboard")],1),e._v(" "),n("div",{staticClass:"vc-chrome-sliders"},[n("div",{staticClass:"vc-chrome-hue-wrap"},[n("hue",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1),e._v(" "),e.disableAlpha?e._e():n("div",{staticClass:"vc-chrome-alpha-wrap"},[n("alpha",{on:{change:e.childChange},model:{value:e.colors,callback:function(t){e.colors=t},expression:"colors"}})],1)])]),e._v(" "),e.disableFields?e._e():n("div",{staticClass:"vc-chrome-fields-wrap"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0===e.fieldsIndex,expression:"fieldsIndex === 0"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[e.hasAlpha?e._e():n("ed-in",{attrs:{label:"hex",value:e.colors.hex},on:{change:e.inputChange}}),e._v(" "),e.hasAlpha?n("ed-in",{attrs:{label:"hex",value:e.colors.hex8},on:{change:e.inputChange}}):e._e()],1)]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:1===e.fieldsIndex,expression:"fieldsIndex === 1"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"r",value:e.colors.rgba.r},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"g",value:e.colors.rgba.g},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"b",value:e.colors.rgba.b},on:{change:e.inputChange}})],1),e._v(" "),e.disableAlpha?e._e():n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"a",value:e.colors.a,"arrow-offset":.01,max:1},on:{change:e.inputChange}})],1)]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:2===e.fieldsIndex,expression:"fieldsIndex === 2"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"h",value:e.hsl.h},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"s",value:e.hsl.s},on:{change:e.inputChange}})],1),e._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"l",value:e.hsl.l},on:{change:e.inputChange}})],1),e._v(" "),e.disableAlpha?e._e():n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"a",value:e.colors.a,"arrow-offset":.01,max:1},on:{change:e.inputChange}})],1)]),e._v(" "),n("div",{staticClass:"vc-chrome-toggle-btn",attrs:{role:"button","aria-label":"Change another color definition"},on:{click:e.toggleViews}},[n("div",{staticClass:"vc-chrome-toggle-icon"},[n("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"},on:{mouseover:e.showHighlight,mouseenter:e.showHighlight,mouseout:e.hideHighlight}},[n("path",{attrs:{fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}})])]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.highlight,expression:"highlight"}],staticClass:"vc-chrome-toggle-icon-highlight"})])])])])},r=[];i._withStripped=!0;var a={render:i,staticRenderFns:r};t.a=a},function(e,t,n){"use strict";function i(e){l||n(144)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(59),a=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var s=n(146),l=!1,c=i,u=n(2)(a.a,s.a,!1,c,null,null);u.options.__file="src/components/Twitter.vue",t.default=u.exports},function(e,t,n){var i=n(145);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),n(1)("669a48a5",i,!1,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.vc-twitter {\n  background: #fff;\n  border: 0 solid rgba(0,0,0,0.25);\n  box-shadow: 0 1px 4px rgba(0,0,0,0.25);\n  border-radius: 4px;\n  position: relative;\n}\n.vc-twitter-triangle {\n  width: 0px;\n  height: 0px;\n  border-style: solid;\n  border-width: 0 9px 10px 9px;\n  border-color: transparent transparent #fff transparent;\n  position: absolute;\n}\n.vc-twitter-triangle-shadow {\n  width: 0px;\n  height: 0px;\n  border-style: solid;\n  border-width: 0 9px 10px 9px;\n  border-color: transparent transparent rgba(0, 0, 0, .1) transparent;\n  position: absolute;\n}\n.vc-twitter-body {\n  padding: 15px 9px 9px 15px;\n}\n.vc-twitter .vc-editable-input {\n  position: relative;\n}\n.vc-twitter .vc-editable-input input {\n  width: 100px;\n  font-size: 14px;\n  color: #666;\n  border: 0px;\n  outline: none;\n  height: 28px;\n  box-shadow: inset 0 0 0 1px #F0F0F0;\n  box-sizing: content-box;\n  border-radius: 0 4px 4px 0;\n  float: left;\n  padding: 1px;\n  padding-left: 8px;\n}\n.vc-twitter .vc-editable-input span {\n  display: none;\n}\n.vc-twitter-hash {\n  background: #F0F0F0;\n  height: 30px;\n  width: 30px;\n  border-radius: 4px 0 0 4px;\n  float: left;\n  color: #98A1A4;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n.vc-twitter-swatch {\n  width: 30px;\n  height: 30px;\n  float: left;\n  border-radius: 4px;\n  margin: 0 6px 6px 0;\n  cursor: pointer;\n  position: relative;\n  outline: none;\n}\n.vc-twitter-clear {\n  clear: both;\n}\n.vc-twitter-hide-triangle .vc-twitter-triangle {\n  display: none;\n}\n.vc-twitter-hide-triangle .vc-twitter-triangle-shadow {\n  display: none;\n}\n.vc-twitter-top-left-triangle .vc-twitter-triangle{\n  top: -10px;\n  left: 12px;\n}\n.vc-twitter-top-left-triangle .vc-twitter-triangle-shadow{\n  top: -11px;\n  left: 12px;\n}\n.vc-twitter-top-right-triangle .vc-twitter-triangle{\n  top: -10px;\n  right: 12px;\n}\n.vc-twitter-top-right-triangle .vc-twitter-triangle-shadow{\n  top: -11px;\n  right: 12px;\n}\n",""])},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vc-twitter",class:{"vc-twitter-hide-triangle ":"hide"===e.triangle,"vc-twitter-top-left-triangle ":"top-left"===e.triangle,"vc-twitter-top-right-triangle ":"top-right"===e.triangle},style:{width:"number"==typeof e.width?e.width+"px":e.width}},[n("div",{staticClass:"vc-twitter-triangle-shadow"}),e._v(" "),n("div",{staticClass:"vc-twitter-triangle"}),e._v(" "),n("div",{staticClass:"vc-twitter-body"},[e._l(e.defaultColors,(function(t,i){return n("span",{key:i,staticClass:"vc-twitter-swatch",style:{background:t,boxShadow:"0 0 4px "+(e.equal(t)?t:"transparent")},on:{click:function(n){return e.handlerClick(t)}}})})),e._v(" "),n("div",{staticClass:"vc-twitter-hash"},[e._v("#")]),e._v(" "),n("editable-input",{attrs:{label:"#",value:e.hex},on:{change:e.inputChange}}),e._v(" "),n("div",{staticClass:"vc-twitter-clear"})],2)])},r=[];i._withStripped=!0;var a={render:i,staticRenderFns:r};t.a=a}])},9938:function(e){"undefined"!=typeof self&&self,e.exports=(()=>{var e={646:e=>{e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},713:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},860:e=>{e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},206:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(e,t,n)=>{var i=n(646),r=n(860),a=n(206);e.exports=function(e){return i(e)||r(e)||a()}},8:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.r(i),n.d(i,{VueSelect:()=>y,default:()=>w,mixins:()=>b});var e=n(319),t=n.n(e),r=n(8),a=n.n(r),o=n(713),s=n.n(o);const l={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(e){var t=this;this.autoscroll&&e&&this.$nextTick((function(){return t.maybeAdjustScroll()}))}},methods:{maybeAdjustScroll:function(){var e,t=(null===(e=this.$refs.dropdownMenu)||void 0===e?void 0:e.children[this.typeAheadPointer])||!1;if(t){var n=this.getDropdownViewport(),i=t.getBoundingClientRect(),r=i.top,a=i.bottom,o=i.height;if(r<n.top)return this.$refs.dropdownMenu.scrollTop=t.offsetTop;if(a>n.bottom)return this.$refs.dropdownMenu.scrollTop=t.offsetTop-(n.height-o)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},c={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var e=0;e<this.filteredOptions.length;e++)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},open:function(e){e&&this.typeAheadToLastSelected()},selectedValue:function(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp:function(){for(var e=this.typeAheadPointer-1;e>=0;e--)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadDown:function(){for(var e=this.typeAheadPointer+1;e<this.filteredOptions.length;e++)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadSelect:function(){var e=this.filteredOptions[this.typeAheadPointer];e&&this.selectable(e)&&this.select(e)},typeAheadToLastSelected:function(){var e=0!==this.selectedValue.length?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1;-1!==e&&(this.typeAheadPointer=e)}}},u={props:{loading:{type:Boolean,default:!1}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.$emit("search",this.search,this.toggleLoading)},loading:function(e){this.mutableLoading=e}},methods:{toggleLoading:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.mutableLoading=null==e?!this.mutableLoading:e}}};function d(e,t,n,i,r,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}const h={Deselect:d({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[t("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])}),[],!1,null,null,null).exports,OpenIndicator:d({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[t("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])}),[],!1,null,null,null).exports},f={inserted:function(e,t,n){var i=n.context;if(i.appendToBody){var r=i.$refs.toggle.getBoundingClientRect(),a=r.height,o=r.top,s=r.left,l=r.width,c=window.scrollX||window.pageXOffset,u=window.scrollY||window.pageYOffset;e.unbindPosition=i.calculatePosition(e,i,{width:l+"px",left:c+s+"px",top:u+o+a+"px"}),document.body.appendChild(e)}},unbind:function(e,t,n){n.context.appendToBody&&(e.unbindPosition&&"function"==typeof e.unbindPosition&&e.unbindPosition(),e.parentNode&&e.parentNode.removeChild(e))}},p=function(e){var t={};return Object.keys(e).sort().forEach((function(n){t[n]=e[n]})),JSON.stringify(t)};var m=0;const g=function(){return++m};function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const y=d({components:v({},h),directives:{appendToBody:f},mixins:[l,c,u],props:{value:{},components:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:function(e){return e}},selectable:{type:Function,default:function(e){return!0}},getOptionLabel:{type:Function,default:function(e){return"object"===a()(e)?e.hasOwnProperty(this.label)?e[this.label]:console.warn('[vue-select warn]: Label key "option.'.concat(this.label,'" does not')+" exist in options object ".concat(JSON.stringify(e),".\n")+"https://vue-select.org/api/props.html#getoptionlabel"):e}},getOptionKey:{type:Function,default:function(e){if("object"!==a()(e))return e;try{return e.hasOwnProperty("id")?e.id:p(e)}catch(t){return console.warn("[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.\nhttps://vue-select.org/api/props.html#getoptionkey",e,t)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(e,t,n){return(t||"").toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default:function(e,t){var n=this;return e.filter((function(e){var i=n.getOptionLabel(e);return"number"==typeof i&&(i=i.toString()),n.filterBy(e,i,t)}))}},createOption:{type:Function,default:function(e){return"object"===a()(this.optionList[0])?s()({},this.label,e):e}},resetOnOptionsChange:{default:!1,validator:function(e){return["function","boolean"].includes(a()(e))}},clearSearchOnBlur:{type:Function,default:function(e){var t=e.clearSearchOnSelect,n=e.multiple;return t&&!n}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(e,t){return e}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(e,t,n){var i=n.width,r=n.top,a=n.left;e.style.top=r,e.style.left=a,e.style.width=i}},dropdownShouldOpen:{type:Function,default:function(e){var t=e.noDrop,n=e.open,i=e.mutableLoading;return!t&&n&&!i}},uid:{type:[String,Number],default:function(){return g()}}},data:function(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return void 0===this.value||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var e=this.value;return this.isTrackingValues&&(e=this.$data._value),null!=e&&""!==e?[].concat(e):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var e=this,t={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:v({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return e.isComposing=!0},compositionend:function(){return e.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(t){return e.search=t.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:t,listFooter:t,header:v({},t,{deselect:this.deselect}),footer:v({},t,{deselect:this.deselect})}},childComponents:function(){return v({},h,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var e=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return e;var t=this.search.length?this.filter(e,this.search,this):e;if(this.taggable&&this.search.length){var n=this.createOption(this.search);this.optionExists(n)||t.unshift(n)}return t},isValueEmpty:function(){return 0===this.selectedValue.length},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(e,t){var n=this;!this.taggable&&("function"==typeof n.resetOnOptionsChange?n.resetOnOptionsChange(e,t,n.selectedValue):n.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(e){this.isTrackingValues&&this.setInternalValueFromOptions(e)}},multiple:function(){this.clearSelection()},open:function(e){this.$emit(e?"open":"close")},search:function(e){e.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(e){var t=this;Array.isArray(e)?this.$data._value=e.map((function(e){return t.findOptionFromReducedValue(e)})):this.$data._value=this.findOptionFromReducedValue(e)},select:function(e){this.$emit("option:selecting",e),this.isOptionSelected(e)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(e):(this.taggable&&!this.optionExists(e)&&this.$emit("option:created",e),this.multiple&&(e=this.selectedValue.concat(e)),this.updateValue(e),this.$emit("option:selected",e)),this.onAfterSelect(e)},deselect:function(e){var t=this;this.$emit("option:deselecting",e),this.updateValue(this.selectedValue.filter((function(n){return!t.optionComparator(n,e)}))),this.$emit("option:deselected",e)},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(e){var t=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick((function(){return t.$refs.search.focus()}))},updateValue:function(e){var t=this;void 0===this.value&&(this.$data._value=e),null!==e&&(e=Array.isArray(e)?e.map((function(e){return t.reduce(e)})):this.reduce(e)),this.$emit("input",e)},toggleDropdown:function(e){var n=e.target!==this.searchEl;n&&e.preventDefault();var i=[].concat(t()(this.$refs.deselectButtons||[]),t()([this.$refs.clearButton]||0));void 0===this.searchEl||i.filter(Boolean).some((function(t){return t.contains(e.target)||t===e.target}))?e.preventDefault():this.open&&n?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(e){var t=this;return this.selectedValue.some((function(n){return t.optionComparator(n,e)}))},isOptionDeselectable:function(e){return this.isOptionSelected(e)&&this.deselectFromDropdown},optionComparator:function(e,t){return this.getOptionKey(e)===this.getOptionKey(t)},findOptionFromReducedValue:function(e){var n=this,i=[].concat(t()(this.options),t()(this.pushedTags)).filter((function(t){return JSON.stringify(n.reduce(t))===JSON.stringify(e)}));return 1===i.length?i[0]:i.find((function(e){return n.optionComparator(e,n.$data._value)}))||e},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var e=null;this.multiple&&(e=t()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(e)}},optionExists:function(e){var t=this;return this.optionList.some((function(n){return t.optionComparator(n,e)}))},normalizeOptionForSlot:function(e){return"object"===a()(e)?e:s()({},this.label,e)},pushTag:function(e){this.pushedTags.push(e)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var e=this.clearSearchOnSelect,t=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:e,multiple:t})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,0!==this.search.length||0!==this.options.length||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(e){var t=this,n=function(e){return e.preventDefault(),!t.isComposing&&t.typeAheadSelect()},i={8:function(e){return t.maybeDeleteValue()},9:function(e){return t.onTab()},27:function(e){return t.onEscape()},38:function(e){if(e.preventDefault(),t.open)return t.typeAheadUp();t.open=!0},40:function(e){if(e.preventDefault(),t.open)return t.typeAheadDown();t.open=!0}};this.selectOnKeyCodes.forEach((function(e){return i[e]=n}));var r=this.mapKeydown(i,this);if("function"==typeof r[e.keyCode])return r[e.keyCode](e)},onSearchKeyPress:function(e){this.open||32!==e.keyCode||(e.preventDefault(),this.open=!0)}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"v-select",class:e.stateClasses,attrs:{dir:e.dir}},[e._t("header",null,null,e.scope.header),e._v(" "),n("div",{ref:"toggle",staticClass:"vs__dropdown-toggle",attrs:{id:"vs"+e.uid+"__combobox",role:"combobox","aria-expanded":e.dropdownOpen.toString(),"aria-owns":"vs"+e.uid+"__listbox","aria-label":"Search for option"},on:{mousedown:function(t){return e.toggleDropdown(t)}}},[n("div",{ref:"selectedOptions",staticClass:"vs__selected-options"},[e._l(e.selectedValue,(function(t){return e._t("selected-option-container",[n("span",{key:e.getOptionKey(t),staticClass:"vs__selected"},[e._t("selected-option",[e._v("\n            "+e._s(e.getOptionLabel(t))+"\n          ")],null,e.normalizeOptionForSlot(t)),e._v(" "),e.multiple?n("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:e.disabled,type:"button",title:"Deselect "+e.getOptionLabel(t),"aria-label":"Deselect "+e.getOptionLabel(t)},on:{click:function(n){return e.deselect(t)}}},[n(e.childComponents.Deselect,{tag:"component"})],1):e._e()],2)],{option:e.normalizeOptionForSlot(t),deselect:e.deselect,multiple:e.multiple,disabled:e.disabled})})),e._v(" "),e._t("search",[n("input",e._g(e._b({staticClass:"vs__search"},"input",e.scope.search.attributes,!1),e.scope.search.events))],null,e.scope.search)],2),e._v(" "),n("div",{ref:"actions",staticClass:"vs__actions"},[n("button",{directives:[{name:"show",rawName:"v-show",value:e.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:e.disabled,type:"button",title:"Clear Selected","aria-label":"Clear Selected"},on:{click:e.clearSelection}},[n(e.childComponents.Deselect,{tag:"component"})],1),e._v(" "),e._t("open-indicator",[e.noDrop?e._e():n(e.childComponents.OpenIndicator,e._b({tag:"component"},"component",e.scope.openIndicator.attributes,!1))],null,e.scope.openIndicator),e._v(" "),e._t("spinner",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[e._v("Loading...")])],null,e.scope.spinner)],2)]),e._v(" "),n("transition",{attrs:{name:e.transition}},[e.dropdownOpen?n("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs"+e.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs"+e.uid+"__listbox",role:"listbox",tabindex:"-1"},on:{mousedown:function(t){return t.preventDefault(),e.onMousedown(t)},mouseup:e.onMouseUp}},[e._t("list-header",null,null,e.scope.listHeader),e._v(" "),e._l(e.filteredOptions,(function(t,i){return n("li",{key:e.getOptionKey(t),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":e.isOptionDeselectable(t)&&i===e.typeAheadPointer,"vs__dropdown-option--selected":e.isOptionSelected(t),"vs__dropdown-option--highlight":i===e.typeAheadPointer,"vs__dropdown-option--disabled":!e.selectable(t)},attrs:{id:"vs"+e.uid+"__option-"+i,role:"option","aria-selected":i===e.typeAheadPointer||null},on:{mouseover:function(n){e.selectable(t)&&(e.typeAheadPointer=i)},click:function(n){n.preventDefault(),n.stopPropagation(),e.selectable(t)&&e.select(t)}}},[e._t("option",[e._v("\n          "+e._s(e.getOptionLabel(t))+"\n        ")],null,e.normalizeOptionForSlot(t))],2)})),e._v(" "),0===e.filteredOptions.length?n("li",{staticClass:"vs__no-options"},[e._t("no-options",[e._v("\n          Sorry, no matching options.\n        ")],null,e.scope.noOptions)],2):e._e(),e._v(" "),e._t("list-footer",null,null,e.scope.listFooter)],2):n("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs"+e.uid+"__listbox",role:"listbox"}})]),e._v(" "),e._t("footer",null,null,e.scope.footer)],2)}),[],!1,null,null,null).exports,b={ajax:u,pointer:c,pointerScroll:l},w=y})(),i})()},1485:function(e){e.exports=function(){"use strict";var e,t=(function(e){var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(){i(this,e)}return t(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];for(var a=0,o=o=t;!(a>=o.length);)o[a++].apply(this,i)}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var i=0;i<n.length;i++)if(n[i]===t){n.splice(i,1);break}return this}}]),e}(),a=function(e){function a(e,t){i(this,a);var r,o=n(this,(a.__proto__||Object.getPrototypeOf(a)).call(this)),s=void 0;if(o.element=e,o.version=a.version,o.defaultOptions.previewTemplate=o.defaultOptions.previewTemplate.replace(/\n*/g,""),o.clickableElements=[],o.listeners=[],o.files=[],"string"==typeof o.element&&(o.element=document.querySelector(o.element)),!o.element||null==o.element.nodeType)throw new Error("Invalid dropzone element.");if(o.element.dropzone)throw new Error("Dropzone already attached.");a.instances.push(o),o.element.dropzone=o;var l,c=null!=(r=a.optionsForElement(o.element))?r:{};if(o.options=a.extend({},o.defaultOptions,c,null!=t?t:{}),o.options.forceFallback||!a.isBrowserSupported())return l=o.options.fallback.call(o),n(o,l);if(null==o.options.url&&(o.options.url=o.element.getAttribute("action")),!o.options.url)throw new Error("No URL provided.");if(o.options.acceptedFiles&&o.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(o.options.uploadMultiple&&o.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return o.options.acceptedMimeTypes&&(o.options.acceptedFiles=o.options.acceptedMimeTypes,delete o.options.acceptedMimeTypes),null!=o.options.renameFilename&&(o.options.renameFile=function(e){return o.options.renameFilename.call(o,e.name,e)}),o.options.method=o.options.method.toUpperCase(),(s=o.getExistingFallback())&&s.parentNode&&s.parentNode.removeChild(s),!1!==o.options.previewsContainer&&(o.options.previewsContainer?o.previewsContainer=a.getElement(o.options.previewsContainer,"previewsContainer"):o.previewsContainer=o.element),o.options.clickable&&(!0===o.options.clickable?o.clickableElements=[o.element]:o.clickableElements=a.getElements(o.options.clickable,"clickable")),o.init(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,r),t(a,null,[{key:"initClass",value:function(){this.prototype.Emitter=r,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var t=0,n=n=this.element.getElementsByTagName("div");!(t>=n.length);){var i=n[t++];if(/(^| )dz-message($| )/.test(i.className)){e=i,i.className="dz-message";break}}e||(e=a.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var r=e.getElementsByTagName("span")[0];return r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,i){var r={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},a=e.width/e.height;null==t&&null==n?(t=r.srcWidth,n=r.srcHeight):null==t?t=n*a:null==n&&(n=t/a);var o=(t=Math.min(t,r.srcWidth))/(n=Math.min(n,r.srcHeight));if(r.srcWidth>t||r.srcHeight>n)if("crop"===i)a>o?(r.srcHeight=e.height,r.srcWidth=r.srcHeight*o):(r.srcWidth=e.width,r.srcHeight=r.srcWidth/o);else{if("contain"!==i)throw new Error("Unknown resizeMethod '"+i+"'");a>o?n=t/a:t=n*a}return r.srcX=(e.width-r.srcWidth)/2,r.srcY=(e.height-r.srcHeight)/2,r.trgWidth=t,r.trgHeight=n,r},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview">\n  <div class="dz-image"><img data-dz-thumbnail /></div>\n  <div class="dz-details">\n    <div class="dz-size"><span data-dz-size></span></div>\n    <div class="dz-filename"><span data-dz-name></span></div>\n  </div>\n  <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n  <div class="dz-error-message"><span data-dz-errormessage></span></div>\n  <div class="dz-success-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Check</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n      </g>\n    </svg>\n  </div>\n  <div class="dz-error-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Error</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n          <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n        </g>\n      </g>\n    </svg>\n  </div>\n</div>',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){e.previewElement=a.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);for(var n=0,i=i=e.previewElement.querySelectorAll("[data-dz-name]");!(n>=i.length);){var r=i[n++];r.textContent=e.name}for(var o=0,s=s=e.previewElement.querySelectorAll("[data-dz-size]");!(o>=s.length);)(r=s[o++]).innerHTML=this.filesize(e.size);this.options.addRemoveLinks&&(e._removeLink=a.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink));for(var l=function(n){return n.preventDefault(),n.stopPropagation(),e.status===a.UPLOADING?a.confirm(t.options.dictCancelUploadConfirmation,(function(){return t.removeFile(e)})):t.options.dictRemoveFileConfirmation?a.confirm(t.options.dictRemoveFileConfirmation,(function(){return t.removeFile(e)})):t.removeFile(e)},c=0,u=u=e.previewElement.querySelectorAll("[data-dz-remove]");!(c>=u.length);)u[c++].addEventListener("click",l)}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");for(var n=0,i=i=e.previewElement.querySelectorAll("[data-dz-thumbnail]");!(n>=i.length);){var r=i[n++];r.alt=e.name,r.src=t}return setTimeout((function(){return e.previewElement.classList.add("dz-image-preview")}),1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);for(var n=0,i=i=e.previewElement.querySelectorAll("[data-dz-errormessage]");!(n>=i.length);)i[n++].textContent=t}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement)for(var i=0,r=r=e.previewElement.querySelectorAll("[data-dz-uploadprogress]");!(i>=r.length);){var a=r[i++];"PROGRESS"===a.nodeName?a.value=t:a.style.width=t+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,a=a=n;!(r>=a.length);){var o=a[r++];for(var s in o){var l=o[s];e[s]=l}}return e}}]),t(a,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(e){return e.accepted})).map((function(e){return e}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(e){return!e.accepted})).map((function(e){return e}))}},{key:"getFilesWithStatus",value:function(e){return this.files.filter((function(t){return t.status===e})).map((function(e){return e}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(a.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(a.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(a.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(e){return e.status===a.UPLOADING||e.status===a.QUEUED})).map((function(e){return e}))}},{key:"init",value:function(){var e=this;"form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(a.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length&&function t(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",a.getElement(e.options.hiddenInputContainer,"hiddenInputContainer").appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",(function(){var n=e.hiddenFileInput.files;if(n.length)for(var i=0,r=r=n;!(i>=r.length);){var a=r[i++];e.addFile(a)}return e.emit("addedfiles",n),t()}))}(),this.URL=null!==window.URL?window.URL:window.webkitURL;for(var t=0,n=n=this.events;!(t>=n.length);){var i=n[t++];this.on(i,this.options[i])}this.on("uploadprogress",(function(){return e.updateTotalUploadProgress()})),this.on("removedfile",(function(){return e.updateTotalUploadProgress()})),this.on("canceled",(function(t){return e.emit("complete",t)})),this.on("complete",(function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout((function(){return e.emit("queuecomplete")}),0)}));var r=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return r(t),e.emit("dragenter",t)},dragover:function(t){var n=void 0;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",r(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return r(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach((function(t){return e.listeners.push({element:t,events:{click:function(n){return(t!==e.element||n.target===e.element||a.elementInside(n.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,a.instances.splice(a.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=void 0,t=0,n=0;if(this.getActiveFiles().length){for(var i=0,r=r=this.getActiveFiles();!(i>=r.length);){var a=r[i++];t+=a.upload.bytesSent,n+=a.upload.total}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e,t=void 0;if(e=this.getExistingFallback())return e;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>"+this.options.dictFallbackText+"</p>"),n+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';var i=a.createElement(n);return"FORM"!==this.element.tagName?(t=a.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>')).appendChild(i):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:i}},{key:"getExistingFallback",value:function(){for(var e=function(e){for(var t=0,n=n=e;!(t>=n.length);){var i=n[t++];if(/(^| )fallback($| )/.test(i.className))return i}},t=["div","form"],n=0;n<t.length;n++){var i,r=t[n];if(i=e(this.element.getElementsByTagName(r)))return i}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var i=e.events[n];t.push(e.element.addEventListener(n,i,!1))}return t}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var i=e.events[n];t.push(e.element.removeEventListener(n,i,!1))}return t}()}))}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach((function(e){return e.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(t){return e.cancelUpload(t)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(e){return e.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(e>0){for(var i=["tb","gb","mb","kb","b"],r=0;r<i.length;r++){var a=i[r];if(e>=Math.pow(this.options.filesizeBase,4-r)/10){t=e/Math.pow(this.options.filesizeBase,4-r),n=a;break}}t=Math.round(10*t)/10}return"<strong>"+t+"</strong> "+this.options.dictFileSizeUnits[n]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(this.emit("addedfiles",t),t.length){var i=e.dataTransfer.items;i&&i.length&&null!=i[0].webkitGetAsEntry?this._addFilesFromItems(i):this.handleFiles(t)}}}},{key:"paste",value:function(e){if(null!=(n=function(e){return e.items},null!=(t=null!=e?e.clipboardData:void 0)?n(t):void 0)){var t,n;this.emit("paste",e);var i=e.clipboardData.items;return i.length?this._addFilesFromItems(i):void 0}}},{key:"handleFiles",value:function(e){for(var t=0,n=n=e;!(t>=n.length);){var i=n[t++];this.addFile(i)}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var n=[],i=0,r=r=e;!(i>=r.length);){var a,o=r[i++];null!=o.webkitGetAsEntry&&(a=o.webkitGetAsEntry())?a.isFile?n.push(t.addFile(o.getAsFile())):a.isDirectory?n.push(t._addFilesFromDirectory(a,a.name)):n.push(void 0):null==o.getAsFile||null!=o.kind&&"file"!==o.kind?n.push(void 0):n.push(t.addFile(o.getAsFile()))}return n}()}},{key:"_addFilesFromDirectory",value:function(e,t){var n=this,i=e.createReader(),r=function(e){return n="log",i=function(t){return t.log(e)},null!=(t=console)&&"function"==typeof t[n]?i(t,n):void 0;var t,n,i};return function e(){return i.readEntries((function(i){if(i.length>0){for(var r=0,a=a=i;!(r>=a.length);){var o=a[r++];o.isFile?o.file((function(e){if(!n.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=t+"/"+e.name,n.addFile(e)})):o.isDirectory&&n._addFilesFromDirectory(o,t+"/"+o.name)}e()}return null}),r)}()}},{key:"accept",value:function(e,t){return this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):a.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var t=this;return e.upload={uuid:a.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e),chunked:this.options.chunking&&(this.options.forceChunking||e.size>this.options.chunkSize),totalChunkCount:Math.ceil(e.size/this.options.chunkSize)},this.files.push(e),e.status=a.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,(function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(e){for(var t=0,n=n=e;!(t>=n.length);){var i=n[t++];this.enqueueFile(i)}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==a.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=a.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return t.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout((function(){return t._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return e.emit("thumbnail",t,n),e._processingThumbnail=!1,e._processThumbnailQueue()}))}}},{key:"removeFile",value:function(e){if(e.status===a.UPLOADING&&this.cancelUpload(e),this.files=o(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);for(var t=0,n=n=this.files.slice();!(t>=n.length);){var i=n[t++];(i.status!==a.UPLOADING||e)&&this.removeFile(i)}return null}},{key:"resizeImage",value:function(e,t,n,i,r){var o=this;return this.createThumbnail(e,t,n,i,!0,(function(t,n){if(null==n)return r(e);var i=o.options.resizeMimeType;null==i&&(i=e.type);var s=n.toDataURL(i,o.options.resizeQuality);return"image/jpeg"!==i&&"image/jpg"!==i||(s=c.restore(e.dataURL,s)),r(a.dataURItoBlob(s))}))}},{key:"createThumbnail",value:function(e,t,n,i,r,a){var o=this,s=new FileReader;return s.onload=function(){if(e.dataURL=s.result,"image/svg+xml"!==e.type)return o.createThumbnailFromUrl(e,t,n,i,r,a);null!=a&&a(s.result)},s.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,n,i,r,a,o){var s=this,c=document.createElement("img");return o&&(c.crossOrigin=o),c.onload=function(){var o=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&r&&(o=function(e){return EXIF.getData(c,(function(){return e(EXIF.getTag(this,"Orientation"))}))}),o((function(r){e.width=c.width,e.height=c.height;var o=s.options.resize.call(s,e,t,n,i),u=document.createElement("canvas"),d=u.getContext("2d");switch(u.width=o.trgWidth,u.height=o.trgHeight,r>4&&(u.width=o.trgHeight,u.height=o.trgWidth),r){case 2:d.translate(u.width,0),d.scale(-1,1);break;case 3:d.translate(u.width,u.height),d.rotate(Math.PI);break;case 4:d.translate(0,u.height),d.scale(1,-1);break;case 5:d.rotate(.5*Math.PI),d.scale(1,-1);break;case 6:d.rotate(.5*Math.PI),d.translate(0,-u.width);break;case 7:d.rotate(.5*Math.PI),d.translate(u.height,-u.width),d.scale(-1,1);break;case 8:d.rotate(-.5*Math.PI),d.translate(-u.height,0)}l(d,c,null!=o.srcX?o.srcX:0,null!=o.srcY?o.srcY:0,o.srcWidth,o.srcHeight,null!=o.trgX?o.trgX:0,null!=o.trgY?o.trgY:0,o.trgWidth,o.trgHeight);var h=u.toDataURL("image/png");if(null!=a)return a(h,u)}))},null!=a&&(c.onerror=a),c.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var i=this.getQueuedFiles();if(i.length>0){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,e-t));for(;n<e;){if(!i.length)return;this.processFile(i.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){for(var t=0,n=n=e;!(t>=n.length);){var i=n[t++];i.processing=!0,i.status=a.UPLOADING,this.emit("processing",i)}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter((function(t){return t.xhr===e})).map((function(e){return e}))}},{key:"cancelUpload",value:function(e){if(e.status===a.UPLOADING){for(var t=this._getFilesWithXhr(e.xhr),n=0,i=i=t;!(n>=i.length);)i[n++].status=a.CANCELED;void 0!==e.xhr&&e.xhr.abort();for(var r=0,o=o=t;!(r>=o.length);){var s=o[r++];this.emit("canceled",s)}this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==a.ADDED&&e.status!==a.QUEUED||(e.status=a.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.apply(this,n)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var t=this;this._transformFiles(e,(function(n){if(e[0].upload.chunked){var i=e[0],r=n[0];i.upload.chunks=[];var o=function(){for(var n=0;void 0!==i.upload.chunks[n];)n++;if(!(n>=i.upload.totalChunkCount)){var o=n*t.options.chunkSize,s=Math.min(o+t.options.chunkSize,i.size),l={name:t._getParamName(0),data:r.webkitSlice?r.webkitSlice(o,s):r.slice(o,s),filename:i.upload.filename,chunkIndex:n};i.upload.chunks[n]={file:i,index:n,dataBlock:l,status:a.UPLOADING,progress:0,retries:0},t._uploadData(e,[l])}};if(i.upload.finishedChunkUpload=function(n){var r=!0;n.status=a.SUCCESS,n.dataBlock=null,n.xhr=null;for(var s=0;s<i.upload.totalChunkCount;s++){if(void 0===i.upload.chunks[s])return o();i.upload.chunks[s].status!==a.SUCCESS&&(r=!1)}r&&t.options.chunksUploaded(i,(function(){t._finished(e,"",null)}))},t.options.parallelChunkUploads)for(var s=0;s<i.upload.totalChunkCount;s++)o();else o()}else{for(var l=[],c=0;c<e.length;c++)l[c]={name:t._getParamName(c),data:n[c],filename:e[c].upload.filename};t._uploadData(e,l)}}))}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(e,t){for(var n=this,i=new XMLHttpRequest,r=0,o=o=e;!(r>=o.length);)o[r++].xhr=i;e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=i);var s=this.resolveOption(this.options.method,e),l=this.resolveOption(this.options.url,e);i.open(s,l,!0),i.timeout=this.resolveOption(this.options.timeout,e),i.withCredentials=!!this.options.withCredentials,i.onload=function(t){n._finishedUploading(e,i,t)},i.onerror=function(){n._handleUploadError(e,i)},(null!=i.upload?i.upload:i).onprogress=function(t){return n._updateFilesUploadProgress(e,i,t)};var c={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var u in this.options.headers&&a.extend(c,this.options.headers),c){var d=c[u];d&&i.setRequestHeader(u,d)}var h=new FormData;if(this.options.params){var f=this.options.params;for(var p in"function"==typeof f&&(f=f.call(this,e,i,e[0].upload.chunked?this._getChunk(e[0],i):null)),f){var m=f[p];h.append(p,m)}}for(var g=0,_=_=e;!(g>=_.length);){var v=_[g++];this.emit("sending",v,i,h)}this.options.uploadMultiple&&this.emit("sendingmultiple",e,i,h),this._addFormElementData(h);for(var y=0;y<t.length;y++){var b=t[y];h.append(b.name,b.data,b.filename)}this.submitRequest(i,h,e)}},{key:"_transformFiles",value:function(e,t){for(var n=this,i=[],r=0,a=function(a){n.options.transformFile.call(n,e[a],(function(n){i[a]=n,++r===e.length&&t(i)}))},o=0;o<e.length;o++)a(o)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName)for(var t=0,n=n=this.element.querySelectorAll("input, textarea, select, button");!(t>=n.length);){var i=n[t++],r=i.getAttribute("name"),a=i.getAttribute("type");if(a&&(a=a.toLowerCase()),null!=r)if("SELECT"===i.tagName&&i.hasAttribute("multiple"))for(var o=0,s=s=i.options;!(o>=s.length);){var l=s[o++];l.selected&&e.append(r,l.value)}else(!a||"checkbox"!==a&&"radio"!==a||i.checked)&&e.append(r,i.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var i=void 0;if(void 0!==n){if(i=100*n.loaded/n.total,e[0].upload.chunked){var r=e[0],a=this._getChunk(r,t);a.progress=i,a.total=n.total,a.bytesSent=n.loaded,r.upload.progress=0,r.upload.total=0,r.upload.bytesSent=0;for(var o=0;o<r.upload.totalChunkCount;o++)void 0!==r.upload.chunks[o]&&void 0!==r.upload.chunks[o].progress&&(r.upload.progress+=r.upload.chunks[o].progress,r.upload.total+=r.upload.chunks[o].total,r.upload.bytesSent+=r.upload.chunks[o].bytesSent);r.upload.progress=r.upload.progress/r.upload.totalChunkCount}else for(var s=0,l=l=e;!(s>=l.length);){var c=l[s++];c.upload.progress=i,c.upload.total=n.total,c.upload.bytesSent=n.loaded}for(var u=0,d=d=e;!(u>=d.length);){var h=d[u++];this.emit("uploadprogress",h,h.upload.progress,h.upload.bytesSent)}}else{var f=!0;i=100;for(var p=0,m=m=e;!(p>=m.length);){var g=m[p++];100===g.upload.progress&&g.upload.bytesSent===g.upload.total||(f=!1),g.upload.progress=i,g.upload.bytesSent=g.upload.total}if(f)return;for(var _=0,v=v=e;!(_>=v.length);){var y=v[_++];this.emit("uploadprogress",y,i,y.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(e,t,n){var i=void 0;if(e[0].status!==a.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(i=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{i=JSON.parse(i)}catch(e){n=e,i="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t)):this._finished(e,i,n):this._handleUploadError(e,t,i)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==a.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var i=this._getChunk(e[0],t);if(i.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[i.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var r=0,o=o=e;!(r>=o.length);)o[r++],this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}},{key:"submitRequest",value:function(e,t,n){e.send(t)}},{key:"_finished",value:function(e,t,n){for(var i=0,r=r=e;!(i>=r.length);){var o=r[i++];o.status=a.SUCCESS,this.emit("success",o,t,n),this.emit("complete",o)}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,n){for(var i=0,r=r=e;!(i>=r.length);){var o=r[i++];o.status=a.ERROR,this.emit("error",o,t,n),this.emit("complete",o)}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}]),a}();a.initClass(),a.version="5.5.1",a.options={},a.optionsForElement=function(e){return e.getAttribute("id")?a.options[s(e.getAttribute("id"))]:void 0},a.instances=[],a.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},a.autoDiscover=!0,a.discover=function(){var e=void 0;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){for(var n=[],i=0,r=r=t;!(i>=r.length);){var a=r[i++];/(^| )dropzone($| )/.test(a.className)?n.push(e.push(a)):n.push(void 0)}return n}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){for(var t=[],n=0,i=i=e;!(n>=i.length);){var r=i[n++];!1!==a.optionsForElement(r)?t.push(new a(r)):t.push(void 0)}return t}()},a.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],a.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var t=0,n=n=a.blacklistedBrowsers;!(t>=n.length);)n[t++].test(navigator.userAgent)&&(e=!1);else e=!1;else e=!1;return e},a.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(t.length),r=new Uint8Array(i),a=0,o=t.length,s=0<=o;s?a<=o:a>=o;s?a++:a--)r[a]=t.charCodeAt(a);return new Blob([i],{type:n})};var o=function(e,t){return e.filter((function(e){return e!==t})).map((function(e){return e}))},s=function(e){return e.replace(/[\-_](\w)/g,(function(e){return e.charAt(1).toUpperCase()}))};a.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},a.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},a.getElement=function(e,t){var n=void 0;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},a.getElements=function(e,t){var n=void 0,i=void 0;if(e instanceof Array){i=[];try{for(var r=0,a=a=e;!(r>=a.length);)n=a[r++],i.push(this.getElement(n,t))}catch(e){i=null}}else if("string"==typeof e){i=[];for(var o=0,s=s=document.querySelectorAll(e);!(o>=s.length);)n=s[o++],i.push(n)}else null!=e.nodeType&&(i=[e]);if(null==i||!i.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return i},a.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},a.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");for(var n=e.type,i=n.replace(/\/.*$/,""),r=0,a=a=t;!(r>=a.length);){var o=a[r++];if("."===(o=o.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(o.toLowerCase(),e.name.length-o.length))return!0}else if(/\/\*$/.test(o)){if(i===o.replace(/\/.*$/,""))return!0}else if(n===o)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each((function(){return new a(this,e)}))}),null!==e?e.exports=a:window.Dropzone=a,a.ADDED="added",a.QUEUED="queued",a.ACCEPTED=a.QUEUED,a.UPLOADING="uploading",a.PROCESSING=a.UPLOADING,a.CANCELED="canceled",a.ERROR="error",a.SUCCESS="success";var l=function(e,t,n,i,r,a,o,s,l,c){var u=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;var i=n.getContext("2d");i.drawImage(e,0,0);for(var r=i.getImageData(1,0,1,t).data,a=0,o=t,s=t;s>a;)0===r[4*(s-1)+3]?o=s:a=s,s=o+a>>1;var l=s/t;return 0===l?1:l}(t);return e.drawImage(t,n,i,r,a,o,s,l,c/u)},c=function(){function e(){i(this,e)}return t(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,i=void 0,r="",a=void 0,o=void 0,s=void 0,l="",c=0;a=(n=e[c++])>>2,o=(3&n)<<4|(i=e[c++])>>4,s=(15&i)<<2|(r=e[c++])>>6,l=63&r,isNaN(i)?s=l=64:isNaN(r)&&(l=64),t=t+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(l),n=i=r="",a=o=s=l="",c<e.length;);return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),i=this.slice2Segments(n),r=this.exifManipulation(t,i);return"data:image/jpeg;base64,"+this.encode64(r)}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),i=this.insertExif(e,n);return new Uint8Array(i)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(255===(t=e[n])[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),i=this.decode64(n),r=i.indexOf(255,3),a=i.slice(0,r),o=i.slice(r),s=a;return(s=s.concat(t)).concat(o)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];!(255===e[t]&218===e[t+1]);){if(255===e[t]&216===e[t+1])t+=2;else{var i=t+(256*e[t+2]+e[t+3])+2,r=e.slice(t,i);n.push(r),t=i}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,i="",r=void 0,a=void 0,o="",s=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(s++))<<2|(r=this.KEY_STR.indexOf(e.charAt(s++)))>>4,n=(15&r)<<4|(a=this.KEY_STR.indexOf(e.charAt(s++)))>>2,i=(3&a)<<6|(o=this.KEY_STR.indexOf(e.charAt(s++))),l.push(t),64!==a&&l.push(n),64!==o&&l.push(i),t=n=i="",r=a=o="",s<e.length;);return l}}]),e}();c.initClass(),a._autoDiscoverFunction=function(){if(a.autoDiscover)return a.discover()},function(e,t){var n=!1,i=!0,r=e.document,a=r.documentElement,o=r.addEventListener?"addEventListener":"attachEvent",s=r.addEventListener?"removeEventListener":"detachEvent",l=r.addEventListener?"":"on",c=function i(a){if("readystatechange"!==a.type||"complete"===r.readyState)return("load"===a.type?e:r)[s](l+a.type,i,!1),!n&&(n=!0)?t.call(e,a.type||a):void 0};if("complete"!==r.readyState){if(r.createEventObject&&a.doScroll){try{i=!e.frameElement}catch(e){}i&&function e(){try{a.doScroll("left")}catch(t){return void setTimeout(e,50)}return c("poll")}()}r[o](l+"DOMContentLoaded",c,!1),r[o](l+"readystatechange",c,!1),e[o](l+"load",c,!1)}}(window,a._autoDiscoverFunction)}(e={exports:{}},e.exports),e.exports),n={getSignedURL(e,t){let n={filePath:e.name,contentType:e.type};return new Promise(((i,r)=>{var a=new FormData;let o=new XMLHttpRequest,s="function"==typeof t.signingURL?t.signingURL(e):t.signingURL;o.open("POST",s),o.onload=function(){200==o.status?i(JSON.parse(o.response)):r(o.statusText)},o.onerror=function(e){console.error("Network Error : Could not send request to AWS (Maybe CORS errors)"),r(e)},!0===t.withCredentials&&(o.withCredentials=!0),Object.entries(t.headers||{}).forEach((([e,t])=>{o.setRequestHeader(e,t)})),n=Object.assign(n,t.params||{}),Object.entries(n).forEach((([e,t])=>{a.append(e,t)})),o.send(a)}))},sendFile(e,t,n){var i=n?this.setResponseHandler:this.sendS3Handler;return this.getSignedURL(e,t).then((t=>i(t,e))).catch((e=>e))},setResponseHandler(e,t){t.s3Signature=e.signature,t.s3Url=e.postEndpoint},sendS3Handler(e,t){let n=new FormData,i=e.signature;return Object.keys(i).forEach((function(e){n.append(e,i[e])})),n.append("file",t),new Promise(((t,i)=>{let r=new XMLHttpRequest;r.open("POST",e.postEndpoint),r.onload=function(){if(201==r.status){var e=(new window.DOMParser).parseFromString(r.response,"text/xml").firstChild.children[0].innerHTML;t({success:!0,message:e})}else{var n=(new window.DOMParser).parseFromString(r.response,"text/xml").firstChild.children[0].innerHTML;i({success:!1,message:n+". Request is marked as resolved when returns as status 201"})}},r.onerror=function(e){var t=(new window.DOMParser).parseFromString(r.response,"text/xml").firstChild.children[1].innerHTML;i({success:!1,message:t})},r.send(n)}))}};return t.autoDiscover=!1,function(e,t,n,i,r,a,o,s,l,c){"boolean"!=typeof o&&(l=s,s=o,o=!1);var u,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=u):t&&(u=o?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),u)if(d.functional){var h=d.render;d.render=function(e,t){return u.call(t),h(e,t)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,u):[u]}return n}({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"dropzoneElement",class:{"vue-dropzone dropzone":this.includeStyling},attrs:{id:this.id}},[this.useCustomSlot?t("div",{staticClass:"dz-message"},[this._t("default",[this._v("Drop files here to upload")])],2):this._e()])},staticRenderFns:[]},void 0,{props:{id:{type:String,required:!0,default:"dropzone"},options:{type:Object,required:!0},includeStyling:{type:Boolean,default:!0,required:!1},awss3:{type:Object,required:!1,default:null},destroyDropzone:{type:Boolean,default:!0,required:!1},duplicateCheck:{type:Boolean,default:!1,required:!1},useCustomSlot:{type:Boolean,default:!1,required:!1}},data:()=>({isS3:!1,isS3OverridesServerPropagation:!1,wasQueueAutoProcess:!0}),computed:{dropzoneSettings(){let e={thumbnailWidth:200,thumbnailHeight:200};return Object.keys(this.options).forEach((function(t){e[t]=this.options[t]}),this),null!==this.awss3&&(e.autoProcessQueue=!1,this.isS3=!0,this.isS3OverridesServerPropagation=!1===this.awss3.sendFileToServer,void 0!==this.options.autoProcessQueue&&(this.wasQueueAutoProcess=this.options.autoProcessQueue),this.isS3OverridesServerPropagation&&(e.url=e=>e[0].s3Url)),e}},mounted(){if(this.$isServer&&this.hasBeenMounted)return;this.hasBeenMounted=!0,this.dropzone=new t(this.$refs.dropzoneElement,this.dropzoneSettings);let e=this;this.dropzone.on("thumbnail",(function(t,n){e.$emit("vdropzone-thumbnail",t,n)})),this.dropzone.on("addedfile",(function(t){var n,i;if(e.duplicateCheck&&this.files.length)for(n=0,i=this.files.length;n<i-1;n++)this.files[n].name===t.name&&this.files[n].size===t.size&&this.files[n].lastModifiedDate.toString()===t.lastModifiedDate.toString()&&(this.removeFile(t),e.$emit("vdropzone-duplicate-file",t));e.$emit("vdropzone-file-added",t),e.isS3&&e.wasQueueAutoProcess&&!t.manuallyAdded&&e.getSignedAndUploadToS3(t)})),this.dropzone.on("addedfiles",(function(t){e.$emit("vdropzone-files-added",t)})),this.dropzone.on("removedfile",(function(t){e.$emit("vdropzone-removed-file",t),t.manuallyAdded&&null!==e.dropzone.options.maxFiles&&e.dropzone.options.maxFiles++})),this.dropzone.on("success",(function(t,n){if(e.$emit("vdropzone-success",t,n),e.isS3){if(e.isS3OverridesServerPropagation){var i=(new window.DOMParser).parseFromString(n,"text/xml").firstChild.children[0].innerHTML;e.$emit("vdropzone-s3-upload-success",i)}e.wasQueueAutoProcess&&e.setOption("autoProcessQueue",!1)}})),this.dropzone.on("successmultiple",(function(t,n){e.$emit("vdropzone-success-multiple",t,n)})),this.dropzone.on("error",(function(t,n,i){e.$emit("vdropzone-error",t,n,i),this.isS3&&e.$emit("vdropzone-s3-upload-error")})),this.dropzone.on("errormultiple",(function(t,n,i){e.$emit("vdropzone-error-multiple",t,n,i)})),this.dropzone.on("sending",(function(t,n,i){if(e.isS3)if(e.isS3OverridesServerPropagation){let e=t.s3Signature;Object.keys(e).forEach((function(t){i.append(t,e[t])}))}else i.append("s3ObjectLocation",t.s3ObjectLocation);e.$emit("vdropzone-sending",t,n,i)})),this.dropzone.on("sendingmultiple",(function(t,n,i){e.$emit("vdropzone-sending-multiple",t,n,i)})),this.dropzone.on("complete",(function(t){e.$emit("vdropzone-complete",t)})),this.dropzone.on("completemultiple",(function(t){e.$emit("vdropzone-complete-multiple",t)})),this.dropzone.on("canceled",(function(t){e.$emit("vdropzone-canceled",t)})),this.dropzone.on("canceledmultiple",(function(t){e.$emit("vdropzone-canceled-multiple",t)})),this.dropzone.on("maxfilesreached",(function(t){e.$emit("vdropzone-max-files-reached",t)})),this.dropzone.on("maxfilesexceeded",(function(t){e.$emit("vdropzone-max-files-exceeded",t)})),this.dropzone.on("processing",(function(t){e.$emit("vdropzone-processing",t)})),this.dropzone.on("processingmultiple",(function(t){e.$emit("vdropzone-processing-multiple",t)})),this.dropzone.on("uploadprogress",(function(t,n,i){e.$emit("vdropzone-upload-progress",t,n,i)})),this.dropzone.on("totaluploadprogress",(function(t,n,i){e.$emit("vdropzone-total-upload-progress",t,n,i)})),this.dropzone.on("reset",(function(){e.$emit("vdropzone-reset")})),this.dropzone.on("queuecomplete",(function(){e.$emit("vdropzone-queue-complete")})),this.dropzone.on("drop",(function(t){e.$emit("vdropzone-drop",t)})),this.dropzone.on("dragstart",(function(t){e.$emit("vdropzone-drag-start",t)})),this.dropzone.on("dragend",(function(t){e.$emit("vdropzone-drag-end",t)})),this.dropzone.on("dragenter",(function(t){e.$emit("vdropzone-drag-enter",t)})),this.dropzone.on("dragover",(function(t){e.$emit("vdropzone-drag-over",t)})),this.dropzone.on("dragleave",(function(t){e.$emit("vdropzone-drag-leave",t)})),e.$emit("vdropzone-mounted")},beforeDestroy(){this.destroyDropzone&&this.dropzone.destroy()},methods:{manuallyAddFile:function(e,t){e.manuallyAdded=!0,this.dropzone.emit("addedfile",e);let n=!1;if((t.indexOf(".svg")>-1||t.indexOf(".png")>-1||t.indexOf(".jpg")>-1||t.indexOf(".jpeg")>-1||t.indexOf(".gif")>-1||t.indexOf(".webp")>-1)&&(n=!0),this.dropzone.options.createImageThumbnails&&n&&e.size<=1024*this.dropzone.options.maxThumbnailFilesize*1024){t&&this.dropzone.emit("thumbnail",e,t);for(var i=e.previewElement.querySelectorAll("[data-dz-thumbnail]"),r=0;r<i.length;r++)i[r].style.width=this.dropzoneSettings.thumbnailWidth+"px",i[r].style.height=this.dropzoneSettings.thumbnailHeight+"px",i[r].style["object-fit"]="contain"}this.dropzone.emit("complete",e),this.dropzone.options.maxFiles&&this.dropzone.options.maxFiles--,this.dropzone.files.push(e),this.$emit("vdropzone-file-added-manually",e)},setOption:function(e,t){this.dropzone.options[e]=t},removeAllFiles:function(e){this.dropzone.removeAllFiles(e)},processQueue:function(){let e=this.dropzone;this.isS3&&!this.wasQueueAutoProcess?this.getQueuedFiles().forEach((e=>{this.getSignedAndUploadToS3(e)})):this.dropzone.processQueue(),this.dropzone.on("success",(function(){e.options.autoProcessQueue=!0})),this.dropzone.on("queuecomplete",(function(){e.options.autoProcessQueue=!1}))},init:function(){return this.dropzone.init()},destroy:function(){return this.dropzone.destroy()},updateTotalUploadProgress:function(){return this.dropzone.updateTotalUploadProgress()},getFallbackForm:function(){return this.dropzone.getFallbackForm()},getExistingFallback:function(){return this.dropzone.getExistingFallback()},setupEventListeners:function(){return this.dropzone.setupEventListeners()},removeEventListeners:function(){return this.dropzone.removeEventListeners()},disable:function(){return this.dropzone.disable()},enable:function(){return this.dropzone.enable()},filesize:function(e){return this.dropzone.filesize(e)},accept:function(e,t){return this.dropzone.accept(e,t)},addFile:function(e){return this.dropzone.addFile(e)},removeFile:function(e){this.dropzone.removeFile(e)},getAcceptedFiles:function(){return this.dropzone.getAcceptedFiles()},getRejectedFiles:function(){return this.dropzone.getRejectedFiles()},getFilesWithStatus:function(){return this.dropzone.getFilesWithStatus()},getQueuedFiles:function(){return this.dropzone.getQueuedFiles()},getUploadingFiles:function(){return this.dropzone.getUploadingFiles()},getAddedFiles:function(){return this.dropzone.getAddedFiles()},getActiveFiles:function(){return this.dropzone.getActiveFiles()},getSignedAndUploadToS3(e){var t=n.sendFile(e,this.awss3,this.isS3OverridesServerPropagation);this.isS3OverridesServerPropagation?t.then((()=>{setTimeout((()=>this.dropzone.processFile(e)))})):t.then((t=>{t.success?(e.s3ObjectLocation=t.message,setTimeout((()=>this.dropzone.processFile(e))),this.$emit("vdropzone-s3-upload-success",t.message)):void 0!==t.message?this.$emit("vdropzone-s3-upload-error",t.message):this.$emit("vdropzone-s3-upload-error","Network Error : Could not send request to AWS. (Maybe CORS error)")})),t.catch((e=>{alert(e)}))},setAWSSigningURL(e){this.isS3&&(this.awss3.signingURL=e)}}},void 0,!1,void 0,void 0,void 0)}()},2739:(e,t,n)=>{"use strict";n.d(t,{bR:()=>x});var i=n(6095),r=n.n(i),a=[[{header:[!1,1,2,3,4,5,6]}],["bold","italic","underline","strike"],[{align:""},{align:"center"},{align:"right"},{align:"justify"}],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{list:"check"}],[{indent:"-1"},{indent:"+1"}],[{color:[]},{background:[]}],["link","image","video"],["clean"]],o={props:{customModules:Array},methods:{registerCustomModules:function(e){void 0!==this.customModules&&this.customModules.forEach((function(t){e.register("modules/"+t.alias,t.module)}))}}};function s(e){return s="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},s(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function p(e,t){var n=function(e){return e&&"object"===s(e)};return n(e)&&n(t)?(Object.keys(t).forEach((function(i){var r=e[i],a=t[i];Array.isArray(r)&&Array.isArray(a)?e[i]=r.concat(a):n(r)&&n(a)?e[i]=p(Object.assign({},r),a):e[i]=a})),e):t}var m=function(e){function t(){return l(this,t),h(this,u(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),t}(r().import("blots/block/embed"));m.blotName="hr",m.tagName="hr",r().register("formats/horizontal",m);var g=function(){function e(t,n){var i=this;l(this,e),this.quill=t,this.options=n,this.ignoreTags=["PRE"],this.matches=[{name:"header",pattern:/^(#){1,6}\s/g,action:function(e,t,n){var r=n.exec(e);if(r){var a=r[0].length;setTimeout((function(){i.quill.formatLine(t.index,0,"header",a-1),i.quill.deleteText(t.index-a,a)}),0)}}},{name:"blockquote",pattern:/^(>)\s/g,action:function(e,t){setTimeout((function(){i.quill.formatLine(t.index,1,"blockquote",!0),i.quill.deleteText(t.index-2,2)}),0)}},{name:"code-block",pattern:/^`{3}(?:\s|\n)/g,action:function(e,t){setTimeout((function(){i.quill.formatLine(t.index,1,"code-block",!0),i.quill.deleteText(t.index-4,4)}),0)}},{name:"bolditalic",pattern:/(?:\*|_){3}(.+?)(?:\*|_){3}/g,action:function(e,t,n,r){var a=n.exec(e),o=a[0],s=a[1],l=r+a.index;e.match(/^([*_ \n]+)$/g)||setTimeout((function(){i.quill.deleteText(l,o.length),i.quill.insertText(l,s,{bold:!0,italic:!0}),i.quill.format("bold",!1)}),0)}},{name:"bold",pattern:/(?:\*|_){2}(.+?)(?:\*|_){2}/g,action:function(e,t,n,r){var a=n.exec(e),o=a[0],s=a[1],l=r+a.index;e.match(/^([*_ \n]+)$/g)||setTimeout((function(){i.quill.deleteText(l,o.length),i.quill.insertText(l,s,{bold:!0}),i.quill.format("bold",!1)}),0)}},{name:"italic",pattern:/(?:\*|_){1}(.+?)(?:\*|_){1}/g,action:function(e,t,n,r){var a=n.exec(e),o=a[0],s=a[1],l=r+a.index;e.match(/^([*_ \n]+)$/g)||setTimeout((function(){i.quill.deleteText(l,o.length),i.quill.insertText(l,s,{italic:!0}),i.quill.format("italic",!1)}),0)}},{name:"strikethrough",pattern:/(?:~~)(.+?)(?:~~)/g,action:function(e,t,n,r){var a=n.exec(e),o=a[0],s=a[1],l=r+a.index;e.match(/^([*_ \n]+)$/g)||setTimeout((function(){i.quill.deleteText(l,o.length),i.quill.insertText(l,s,{strike:!0}),i.quill.format("strike",!1)}),0)}},{name:"code",pattern:/(?:`)(.+?)(?:`)/g,action:function(e,t,n,r){var a=n.exec(e),o=a[0],s=a[1],l=r+a.index;e.match(/^([*_ \n]+)$/g)||setTimeout((function(){i.quill.deleteText(l,o.length),i.quill.insertText(l,s,{code:!0}),i.quill.format("code",!1),i.quill.insertText(i.quill.getSelection()," ")}),0)}},{name:"hr",pattern:/^([-*]\s?){3}/g,action:function(e,t){var n=t.index-e.length;setTimeout((function(){i.quill.deleteText(n,e.length),i.quill.insertEmbed(n+1,"hr",!0,r().sources.USER),i.quill.insertText(n+2,"\n",r().sources.SILENT),i.quill.setSelection(n+2,r().sources.SILENT)}),0)}},{name:"asterisk-ul",pattern:/^(\*|\+)\s$/g,action:function(e,t,n){setTimeout((function(){i.quill.formatLine(t.index,1,"list","unordered"),i.quill.deleteText(t.index-2,2)}),0)}},{name:"image",pattern:/(?:!\[(.+?)\])(?:\((.+?)\))/g,action:function(e,t,n){var r=e.search(n),a=e.match(n)[0],o=e.match(/(?:\((.*?)\))/g)[0],s=t.index-a.length-1;-1!==r&&setTimeout((function(){i.quill.deleteText(s,a.length),i.quill.insertEmbed(s,"image",o.slice(1,o.length-1))}),0)}},{name:"link",pattern:/(?:\[(.+?)\])(?:\((.+?)\))/g,action:function(e,t,n){var r=e.search(n),a=e.match(n)[0],o=e.match(/(?:\[(.*?)\])/g)[0],s=e.match(/(?:\((.*?)\))/g)[0],l=t.index-a.length-1;-1!==r&&setTimeout((function(){i.quill.deleteText(l,a.length),i.quill.insertText(l,o.slice(1,o.length-1),"link",s.slice(1,s.length-1))}),0)}}],this.quill.on("text-change",(function(e,t,n){for(var r=0;r<e.ops.length;r++)e.ops[r].hasOwnProperty("insert")&&(" "===e.ops[r].insert?i.onSpace():"\n"===e.ops[r].insert&&i.onEnter())}))}var t,n,i;return t=e,(n=[{key:"isValid",value:function(e,t){return void 0!==e&&e&&-1===this.ignoreTags.indexOf(t)}},{key:"onSpace",value:function(){var e=this.quill.getSelection();if(e){var t=f(this.quill.getLine(e.index),2),n=t[0],i=t[1],r=n.domNode.textContent,a=e.index-i;if(this.isValid(r,n.domNode.tagName)){var o=!0,s=!1,l=void 0;try{for(var c,u=this.matches[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var d=c.value;if(r.match(d.pattern))return console.log("matched:",d.name,r),void d.action(r,e,d.pattern,a)}}catch(e){s=!0,l=e}finally{try{o||null==u.return||u.return()}finally{if(s)throw l}}}}}},{key:"onEnter",value:function(){var e=this.quill.getSelection();if(e){var t=f(this.quill.getLine(e.index),2),n=t[0],i=t[1],r=n.domNode.textContent+" ",a=e.index-i;if(e.length=e.index++,this.isValid(r,n.domNode.tagName)){var o=!0,s=!1,l=void 0;try{for(var c,u=this.matches[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var d=c.value;if(r.match(d.pattern))return console.log("matched",d.name,r),void d.action(r,e,d.pattern,a)}}catch(e){s=!0,l=e}finally{try{o||null==u.return||u.return()}finally{if(s)throw l}}}}}}])&&c(t.prototype,n),i&&c(t,i),e}(),_={name:"VueEditor",mixins:[o],props:{id:{type:String,default:"quill-container"},placeholder:{type:String,default:""},value:{type:String,default:""},disabled:{type:Boolean},editorToolbar:{type:Array,default:function(){return[]}},editorOptions:{type:Object,required:!1,default:function(){return{}}},useCustomImageHandler:{type:Boolean,default:!1},useMarkdownShortcuts:{type:Boolean,default:!1}},data:function(){return{quill:null}},watch:{value:function(e){e==this.quill.root.innerHTML||this.quill.hasFocus()||(this.quill.root.innerHTML=e)},disabled:function(e){this.quill.enable(!e)}},mounted:function(){this.registerCustomModules(r()),this.registerPrototypes(),this.initializeEditor()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initializeEditor:function(){this.setupQuillEditor(),this.checkForCustomImageHandler(),this.handleInitialContent(),this.registerEditorEventListeners(),this.$emit("ready",this.quill)},setupQuillEditor:function(){var e={debug:!1,modules:this.setModules(),theme:"snow",placeholder:this.placeholder?this.placeholder:"",readOnly:!!this.disabled&&this.disabled};this.prepareEditorConfig(e),this.quill=new(r())(this.$refs.quillContainer,e)},setModules:function(){var e={toolbar:this.editorToolbar.length?this.editorToolbar:a};return this.useMarkdownShortcuts&&(r().register("modules/markdownShortcuts",g,!0),e.markdownShortcuts={}),e},prepareEditorConfig:function(e){Object.keys(this.editorOptions).length>0&&this.editorOptions.constructor===Object&&(this.editorOptions.modules&&void 0!==this.editorOptions.modules.toolbar&&delete e.modules.toolbar,p(e,this.editorOptions))},registerPrototypes:function(){r().prototype.getHTML=function(){return this.container.querySelector(".ql-editor").innerHTML},r().prototype.getWordCount=function(){return this.container.querySelector(".ql-editor").innerText.length}},registerEditorEventListeners:function(){this.quill.on("text-change",this.handleTextChange),this.quill.on("selection-change",this.handleSelectionChange),this.listenForEditorEvent("text-change"),this.listenForEditorEvent("selection-change"),this.listenForEditorEvent("editor-change")},listenForEditorEvent:function(e){var t=this;this.quill.on(e,(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];t.$emit.apply(t,[e].concat(i))}))},handleInitialContent:function(){this.value&&(this.quill.root.innerHTML=this.value)},handleSelectionChange:function(e,t){!e&&t?this.$emit("blur",this.quill):e&&!t&&this.$emit("focus",this.quill)},handleTextChange:function(e,t){var n="<p><br></p>"===this.quill.getHTML()?"":this.quill.getHTML();this.$emit("input",n),this.useCustomImageHandler&&this.handleImageRemoved(e,t)},handleImageRemoved:function(e,t){var n=this;this.quill.getContents().diff(t).ops.map((function(e){if(e.insert&&e.insert.hasOwnProperty("image")){var t=e.insert.image;n.$emit("image-removed",t)}}))},checkForCustomImageHandler:function(){!0===this.useCustomImageHandler&&this.setupCustomImageHandler()},setupCustomImageHandler:function(){this.quill.getModule("toolbar").addHandler("image",this.customImageHandler)},customImageHandler:function(){this.$refs.fileInput.click()},emitImageInfo:function(e){var t=e.target.files[0],n=this.quill,i=n.getSelection().index;this.$emit("image-added",t,n,i,(function(){document.getElementById("file-upload").value=""}))}}};var v,y=function(e,t,n,i,r,a,o,s,l,c){"boolean"!=typeof o&&(l=s,s=o,o=!1);var u,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=u):t&&(u=o?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),u)if(d.functional){var h=d.render;d.render=function(e,t){return u.call(t),h(e,t)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,u):[u]}return n},b="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var w={};var x=y({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"quillWrapper"},[e._t("toolbar"),e._v(" "),n("div",{ref:"quillContainer",attrs:{id:e.id}}),e._v(" "),e.useCustomImageHandler?n("input",{ref:"fileInput",staticStyle:{display:"none"},attrs:{id:"file-upload",type:"file",accept:"image/*"},on:{change:function(t){return e.emitImageInfo(t)}}}):e._e()],2)},staticRenderFns:[]},(function(e){e&&(e("data-v-776e788e_0",{source:"/*!\n * Quill Editor v1.3.6\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li::before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:0;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li::before{content:'\\2022'}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li::before,.ql-editor ul[data-checked=true]>li::before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li::before{content:'\\2611'}.ql-editor ul[data-checked=false]>li::before{content:'\\2610'}.ql-editor li::before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl)::before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl::before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) '. '}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) '. '}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) '. '}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) '. '}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) '. '}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) '. '}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) '. '}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) '. '}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) '. '}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank::before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow .ql-toolbar:after,.ql-snow.ql-toolbar:after{clear:both;content:'';display:table}.ql-snow .ql-toolbar button,.ql-snow.ql-toolbar button{background:0 0;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow .ql-toolbar button svg,.ql-snow.ql-toolbar button svg{float:left;height:100%}.ql-snow .ql-toolbar button:active:hover,.ql-snow.ql-toolbar button:active:hover{outline:0}.ql-snow .ql-toolbar input.ql-image[type=file],.ql-snow.ql-toolbar input.ql-image[type=file]{display:none}.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar button.ql-active,.ql-snow .ql-toolbar button:focus,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover{color:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow .ql-toolbar button:hover:not(.ql-active),.ql-snow.ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow{box-sizing:border-box}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:'';display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label::before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item::before,.ql-snow .ql-picker.ql-header .ql-picker-label::before{content:'Normal'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before{content:'Heading 1'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before{content:'Heading 2'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before{content:'Heading 3'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before{content:'Heading 4'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before{content:'Heading 5'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before{content:'Heading 6'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item::before,.ql-snow .ql-picker.ql-font .ql-picker-label::before{content:'Sans Serif'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before{content:'Serif'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before{content:'Monospace'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item::before,.ql-snow .ql-picker.ql-size .ql-picker-label::before{content:'Normal'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before{content:'Small'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before{content:'Large'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before{content:'Huge'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:rgba(0,0,0,.2) 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:#ccc}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip::before{content:\"Visit URL:\";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action::after{border-right:1px solid #ccc;content:'Edit';margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove::before{content:'Remove';margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action::after{border-right:0;content:'Save';padding-right:0}.ql-snow .ql-tooltip[data-mode=link]::before{content:\"Enter link:\"}.ql-snow .ql-tooltip[data-mode=formula]::before{content:\"Enter formula:\"}.ql-snow .ql-tooltip[data-mode=video]::before{content:\"Enter video:\"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}",map:void 0,media:void 0}),e("data-v-776e788e_1",{source:".ql-editor{min-height:200px;font-size:16px}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1px!important}.quillWrapper .ql-snow.ql-toolbar{padding-top:8px;padding-bottom:4px}.quillWrapper .ql-snow.ql-toolbar .ql-formats{margin-bottom:10px}.ql-snow .ql-toolbar button svg,.quillWrapper .ql-snow.ql-toolbar button svg{width:22px;height:22px}.quillWrapper .ql-editor ul[data-checked=false]>li::before,.quillWrapper .ql-editor ul[data-checked=true]>li::before{font-size:1.35em;vertical-align:baseline;bottom:-.065em;font-weight:900;color:#222}.quillWrapper .ql-snow .ql-stroke{stroke:rgba(63,63,63,.95);stroke-linecap:square;stroke-linejoin:initial;stroke-width:1.7px}.quillWrapper .ql-picker-label{font-size:15px}.quillWrapper .ql-snow .ql-active .ql-stroke{stroke-width:2.25px}.quillWrapper .ql-toolbar.ql-snow .ql-formats{vertical-align:top}.ql-picker:not(.ql-background){position:relative;top:2px}.ql-picker.ql-color-picker svg{width:22px!important;height:22px!important}.quillWrapper .imageResizeActive img{display:block;cursor:pointer}.quillWrapper .imageResizeActive~div svg{cursor:pointer}",map:void 0,media:void 0}))}),_,undefined,!1,undefined,(function(e){return function(e,t){return function(e,t){var n=b?t.media||"default":e,i=w[n]||(w[n]={ids:new Set,styles:[]});if(!i.ids.has(e)){i.ids.add(e);var r=t.source;if(t.map&&(r+="\n/*# sourceURL="+t.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",t.media&&i.element.setAttribute("media",t.media),void 0===v&&(v=document.head||document.getElementsByTagName("head")[0]),v.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(r),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{var a=i.ids.size-1,o=document.createTextNode(r),s=i.element.childNodes;s[a]&&i.element.removeChild(s[a]),s.length?i.element.insertBefore(o,s[a]):i.element.appendChild(o)}}}(e,t)}}),void 0);var k={install:function e(t){e.installed||(e.installed=!0,t.component("VueEditor",x))},version:"2.10.3",Quill:r(),VueEditor:x},A=null;"undefined"!=typeof window?A=window.Vue:void 0!==n.g&&(A=n.g.Vue),A&&A.use(k)},1094:function(e,t,n){e.exports=function(){"use strict";var e=Object.freeze({}),t=Array.isArray;function i(e){return null==e}function r(e){return null!=e}function a(e){return!0===e}function o(e){return!1===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return"function"==typeof e}function c(e){return null!==e&&"object"==typeof e}var u=Object.prototype.toString;function d(e){return u.call(e).slice(8,-1)}function h(e){return"[object Object]"===u.call(e)}function f(e){return"[object RegExp]"===u.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function m(e){return r(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function g(e){return null==e?"":Array.isArray(e)||h(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function _(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var y=v("slot,component",!0),b=v("key,ref,slot,slot-scope,is");function w(e,t){var n=e.length;if(n){if(t===e[n-1])return void(e.length=n-1);var i=e.indexOf(t);if(i>-1)return e.splice(i,1)}}var x=Object.prototype.hasOwnProperty;function k(e,t){return x.call(e,t)}function A(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var S=/-(\w)/g,M=A((function(e){return e.replace(S,(function(e,t){return t?t.toUpperCase():""}))})),T=A((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),L=/\B([A-Z])/g,E=A((function(e){return e.replace(L,"-$1").toLowerCase()}));function C(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function D(e,t){return e.bind(t)}var O=Function.prototype.bind?D:C;function Y(e,t){t=t||0;for(var n=e.length-t,i=new Array(n);n--;)i[n]=e[n+t];return i}function P(e,t){for(var n in t)e[n]=t[n];return e}function j(e){for(var t={},n=0;n<e.length;n++)e[n]&&P(t,e[n]);return t}function I(e,t,n){}var F=function(e,t,n){return!1},N=function(e){return e};function R(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}function H(e,t){if(e===t)return!0;var n=c(e),i=c(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var r=Array.isArray(e),a=Array.isArray(t);if(r&&a)return e.length===t.length&&e.every((function(e,n){return H(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(r||a)return!1;var o=Object.keys(e),s=Object.keys(t);return o.length===s.length&&o.every((function(n){return H(e[n],t[n])}))}catch(e){return!1}}function z(e,t){for(var n=0;n<e.length;n++)if(H(e[n],t))return n;return-1}function q(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function B(e,t){return e===t?0===e&&1/e!=1/t:e==e||t==t}var $="data-server-rendered",W=["component","directive","filter"],U=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],V={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!0,devtools:!0,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:F,isReservedAttr:F,isUnknownElement:F,getTagNamespace:I,parsePlatformTagName:N,mustUseProp:F,async:!0,_lifecycleHooks:U},X=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function G(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function J(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var Q=new RegExp("[^".concat(X.source,".$_\\d]"));function K(e){if(!Q.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var Z="__proto__"in{},ee="undefined"!=typeof window,te=ee&&window.navigator.userAgent.toLowerCase(),ne=te&&/msie|trident/.test(te),ie=te&&te.indexOf("msie 9.0")>0,re=te&&te.indexOf("edge/")>0;te&&te.indexOf("android");var ae=te&&/iphone|ipad|ipod|ios/.test(te);te&&/chrome\/\d+/.test(te),te&&/phantomjs/.test(te);var oe,se=te&&te.match(/firefox\/(\d+)/),le={}.watch,ce=!1;if(ee)try{var ue={};Object.defineProperty(ue,"passive",{get:function(){ce=!0}}),window.addEventListener("test-passive",null,ue)}catch(e){}var de=function(){return void 0===oe&&(oe=!ee&&void 0!==n.g&&n.g.process&&"server"===n.g.process.env.VUE_ENV),oe},he=ee&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function fe(e){return"function"==typeof e&&/native code/.test(e.toString())}var pe,me="undefined"!=typeof Symbol&&fe(Symbol)&&"undefined"!=typeof Reflect&&fe(Reflect.ownKeys);pe="undefined"!=typeof Set&&fe(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ge=null;function _e(){return ge&&{proxy:ge}}function ve(e){void 0===e&&(e=null),e||ge&&ge._scope.off(),ge=e,e&&e._scope.on()}var ye,be=function(){function e(e,t,n,i,r,a,o,s){this.tag=e,this.data=t,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),we=function(e){void 0===e&&(e="");var t=new be;return t.text=e,t.isComment=!0,t};function xe(e){return new be(void 0,void 0,void 0,String(e))}function ke(e){var t=new be(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Ae=v("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,require"),Se=function(e,t){ra('Property or method "'.concat(t,'" is not defined on the instance but ')+"referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.",e)},Me=function(e,t){ra('Property "'.concat(t,'" must be accessed with "$data.').concat(t,'" because ')+'properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internals. See: https://v2.vuejs.org/v2/api/#data',e)},Te="undefined"!=typeof Proxy&&fe(Proxy);if(Te){var Le=v("stop,prevent,self,ctrl,shift,alt,meta,exact");V.keyCodes=new Proxy(V.keyCodes,{set:function(e,t,n){return Le(t)?(ra("Avoid overwriting built-in modifier in config.keyCodes: .".concat(t)),!1):(e[t]=n,!0)}})}var Ee={has:function(e,t){var n=t in e,i=Ae(t)||"string"==typeof t&&"_"===t.charAt(0)&&!(t in e.$data);return n||i||(t in e.$data?Me(e,t):Se(e,t)),n||!i}},Ce={get:function(e,t){return"string"!=typeof t||t in e||(t in e.$data?Me(e,t):Se(e,t)),e[t]}};ye=function(e){if(Te){var t=e.$options,n=t.render&&t.render._withStripped?Ce:Ee;e._renderProxy=new Proxy(e,n)}else e._renderProxy=e};var De=function(){return De=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},De.apply(this,arguments)},Oe=0,Ye=[],Pe=function(){for(var e=0;e<Ye.length;e++){var t=Ye[e];t.subs=t.subs.filter((function(e){return e})),t._pending=!1}Ye.length=0},je=function(){function e(){this._pending=!1,this.id=Oe++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,Ye.push(this))},e.prototype.depend=function(t){e.target&&(e.target.addDep(this),t&&e.target.onTrack&&e.target.onTrack(De({effect:e.target},t)))},e.prototype.notify=function(e){var t=this.subs.filter((function(e){return e}));V.async||t.sort((function(e,t){return e.id-t.id}));for(var n=0,i=t.length;n<i;n++){var r=t[n];e&&r.onTrigger&&r.onTrigger(De({effect:t[n]},e)),r.update()}},e}();je.target=null;var Ie=[];function Fe(e){Ie.push(e),je.target=e}function Ne(){Ie.pop(),je.target=Ie[Ie.length-1]}var Re=Array.prototype,He=Object.create(Re);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=Re[e];J(He,e,(function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r,a=t.apply(this,n),o=this.__ob__;switch(e){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&o.observeArray(r),o.dep.notify({type:"array mutation",target:this,key:e}),a}))}));var ze=Object.getOwnPropertyNames(He),qe={},Be=!0;function $e(e){Be=e}var We={notify:I,depend:I,addSub:I,removeSub:I},Ue=function(){function e(e,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!1),this.value=e,this.shallow=n,this.mock=i,this.dep=i?We:new je,this.vmCount=0,J(e,"__ob__",this),t(e)){if(!i)if(Z)e.__proto__=He;else for(var r=0,a=ze.length;r<a;r++)J(e,s=ze[r],He[s]);n||this.observeArray(e)}else{var o=Object.keys(e);for(r=0;r<o.length;r++){var s;Xe(e,s=o[r],qe,void 0,n,i)}}}return e.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ve(e[t],!1,this.mock)},e}();function Ve(e,n,i){return e&&k(e,"__ob__")&&e.__ob__ instanceof Ue?e.__ob__:!Be||!i&&de()||!t(e)&&!h(e)||!Object.isExtensible(e)||e.__v_skip||ct(e)||e instanceof be?void 0:new Ue(e,n,i)}function Xe(e,n,i,r,a,o){var s=new je,l=Object.getOwnPropertyDescriptor(e,n);if(!l||!1!==l.configurable){var c=l&&l.get,u=l&&l.set;c&&!u||i!==qe&&2!==arguments.length||(i=e[n]);var d=!a&&Ve(i,!1,o);return Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var r=c?c.call(e):i;return je.target&&(s.depend({target:e,type:"get",key:n}),d&&(d.dep.depend(),t(r)&&Qe(r))),ct(r)&&!a?r.value:r},set:function(t){var l=c?c.call(e):i;if(B(l,t)){if(r&&r(),u)u.call(e,t);else{if(c)return;if(!a&&ct(l)&&!ct(t))return void(l.value=t);i=t}d=!a&&Ve(t,!1,o),s.notify({type:"set",target:e,key:n,newValue:t,oldValue:l})}}}),s}}function Ge(e,n,r){if((i(e)||s(e))&&ra("Cannot set reactive property on undefined, null, or primitive value: ".concat(e)),!it(e)){var a=e.__ob__;return t(e)&&p(n)?(e.length=Math.max(e.length,n),e.splice(n,1,r),a&&!a.shallow&&a.mock&&Ve(r,!1,!0),r):n in e&&!(n in Object.prototype)?(e[n]=r,r):e._isVue||a&&a.vmCount?(ra("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),r):a?(Xe(a.value,n,r,void 0,a.shallow,a.mock),a.dep.notify({type:"add",target:e,key:n,newValue:r,oldValue:void 0}),r):(e[n]=r,r)}ra('Set operation on key "'.concat(n,'" failed: target is readonly.'))}function Je(e,n){if((i(e)||s(e))&&ra("Cannot delete reactive property on undefined, null, or primitive value: ".concat(e)),t(e)&&p(n))e.splice(n,1);else{var r=e.__ob__;e._isVue||r&&r.vmCount?ra("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):it(e)?ra('Delete operation on key "'.concat(n,'" failed: target is readonly.')):k(e,n)&&(delete e[n],r&&r.dep.notify({type:"delete",target:e,key:n}))}}function Qe(e){for(var n=void 0,i=0,r=e.length;i<r;i++)(n=e[i])&&n.__ob__&&n.__ob__.dep.depend(),t(n)&&Qe(n)}function Ke(e){return et(e,!1),e}function Ze(e){return et(e,!0),J(e,"__v_isShallow",!0),e}function et(e,n){if(!it(e)){t(e)&&ra("Avoid using Array as root value for ".concat(n?"shallowReactive()":"reactive()"," as it cannot be tracked in watch() or watchEffect(). Use ").concat(n?"shallowRef()":"ref()"," instead. This is a Vue-2-only limitation."));var i=e&&e.__ob__;i&&i.shallow!==n&&ra("Target is already a ".concat(i.shallow?"":"non-","shallow reactive object, and cannot be converted to ").concat(n?"":"non-","shallow.")),Ve(e,n,de())||((null==e||s(e))&&ra("value cannot be made reactive: ".concat(String(e))),st(e)&&ra("Vue 2 does not support reactive collection types such as Map or Set."))}}function tt(e){return it(e)?tt(e.__v_raw):!(!e||!e.__ob__)}function nt(e){return!(!e||!e.__v_isShallow)}function it(e){return!(!e||!e.__v_isReadonly)}function rt(e){return tt(e)||it(e)}function at(e){var t=e&&e.__v_raw;return t?at(t):e}function ot(e){return Object.isExtensible(e)&&J(e,"__v_skip",!0),e}function st(e){var t=d(e);return"Map"===t||"WeakMap"===t||"Set"===t||"WeakSet"===t}var lt="__v_isRef";function ct(e){return!(!e||!0!==e.__v_isRef)}function ut(e){return ht(e,!1)}function dt(e){return ht(e,!0)}function ht(e,t){if(ct(e))return e;var n={};return J(n,lt,!0),J(n,"__v_isShallow",t),J(n,"dep",Xe(n,"value",e,null,t,de())),n}function ft(e){e.dep||ra("received object is not a triggerable ref."),e.dep&&e.dep.notify({type:"set",target:e,key:"value"})}function pt(e){return ct(e)?e.value:e}function mt(e){if(tt(e))return e;for(var t={},n=Object.keys(e),i=0;i<n.length;i++)gt(t,e,n[i]);return t}function gt(e,t,n){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];if(ct(e))return e.value;var i=e&&e.__ob__;return i&&i.dep.depend(),e},set:function(e){var i=t[n];ct(i)&&!ct(e)?i.value=e:t[n]=e}})}function _t(e){var t=new je,n=e((function(){t.depend({target:a,type:"get",key:"value"})}),(function(){t.notify({target:a,type:"set",key:"value"})})),i=n.get,r=n.set,a={get value(){return i()},set value(e){r(e)}};return J(a,lt,!0),a}function vt(e){tt(e)||ra("toRefs() expects a reactive object but received a plain one.");var n=t(e)?new Array(e.length):{};for(var i in e)n[i]=yt(e,i);return n}function yt(e,t,n){var i=e[t];if(ct(i))return i;var r={get value(){var i=e[t];return void 0===i?n:i},set value(n){e[t]=n}};return J(r,lt,!0),r}var bt,wt,xt="__v_rawToReadonly",kt="__v_rawToShallowReadonly";function At(e){return St(e,!1)}function St(e,n){if(!h(e))return t(e)?ra("Vue 2 does not support readonly arrays."):st(e)?ra("Vue 2 does not support readonly collection types such as Map or Set."):ra("value cannot be made readonly: ".concat(typeof e)),e;if(Object.isExtensible(e)||ra("Vue 2 does not support creating readonly proxy for non-extensible object."),it(e))return e;var i=n?kt:xt,r=e[i];if(r)return r;var a=Object.create(Object.getPrototypeOf(e));J(e,i,a),J(a,"__v_isReadonly",!0),J(a,"__v_raw",e),ct(e)&&J(a,lt,!0),(n||nt(e))&&J(a,"__v_isShallow",!0);for(var o=Object.keys(e),s=0;s<o.length;s++)Mt(a,e,o[s],n);return a}function Mt(e,t,n,i){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];return i||!h(e)?e:At(e)},set:function(){ra('Set operation on key "'.concat(n,'" failed: target is readonly.'))}})}function Tt(e){return St(e,!0)}function Lt(e,t){var n,i,r=l(e);r?(n=e,i=function(){ra("Write operation failed: computed value is readonly")}):(n=e.get,i=e.set);var a=de()?null:new br(ge,n,I,{lazy:!0});a&&t&&(a.onTrack=t.onTrack,a.onTrigger=t.onTrigger);var o={effect:a,get value(){return a?(a.dirty&&a.evaluate(),je.target&&(je.target.onTrack&&je.target.onTrack({effect:je.target,target:o,type:"get",key:"value"}),a.depend()),a.value):n()},set value(e){i(e)}};return J(o,lt,!0),J(o,"__v_isReadonly",r),o}var Et=ee&&window.performance;Et&&Et.mark&&Et.measure&&Et.clearMarks&&Et.clearMeasures&&(bt=function(e){return Et.mark(e)},wt=function(e,t,n){Et.measure(e,t,n),Et.clearMarks(t),Et.clearMarks(n)});var Ct=A((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),i="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=i?e.slice(1):e,once:n,capture:i,passive:t}}));function Dt(e,n){function i(){var e=i.fns;if(!t(e))return ji(e,null,arguments,n,"v-on handler");for(var r=e.slice(),a=0;a<r.length;a++)ji(r[a],null,arguments,n,"v-on handler")}return i.fns=e,i}function Ot(e,t,n,r,o,s){var l,c,u,d;for(l in e)c=e[l],u=t[l],d=Ct(l),i(c)?ra('Invalid handler for event "'.concat(d.name,'": got ')+String(c),s):i(u)?(i(c.fns)&&(c=e[l]=Dt(c,s)),a(d.once)&&(c=e[l]=o(d.name,c,d.capture)),n(d.name,c,d.capture,d.passive,d.params)):c!==u&&(u.fns=c,e[l]=u);for(l in t)i(e[l])&&r((d=Ct(l)).name,t[l],d.capture)}function Yt(e,t,n){var o;e instanceof be&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function l(){n.apply(this,arguments),w(o.fns,l)}i(s)?o=Dt([l]):r(s.fns)&&a(s.merged)?(o=s).fns.push(l):o=Dt([s,l]),o.merged=!0,e[t]=o}function Pt(e,t,n){var a=t.options.props;if(!i(a)){var o={},s=e.attrs,l=e.props;if(r(s)||r(l))for(var c in a){var u=E(c),d=c.toLowerCase();c!==d&&s&&k(s,d)&&aa('Prop "'.concat(d,'" is passed to component ')+"".concat(ia(n||t),", but the declared prop name is")+' "'.concat(c,'". ')+"Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM "+'templates. You should probably use "'.concat(u,'" instead of "').concat(c,'".')),jt(o,l,c,u,!0)||jt(o,s,c,u,!1)}return o}}function jt(e,t,n,i,a){if(r(t)){if(k(t,n))return e[n]=t[n],a||delete t[n],!0;if(k(t,i))return e[n]=t[i],a||delete t[i],!0}return!1}function It(e){for(var n=0;n<e.length;n++)if(t(e[n]))return Array.prototype.concat.apply([],e);return e}function Ft(e){return s(e)?[xe(e)]:t(e)?Rt(e):void 0}function Nt(e){return r(e)&&r(e.text)&&o(e.isComment)}function Rt(e,n){var o,l,c,u,d=[];for(o=0;o<e.length;o++)i(l=e[o])||"boolean"==typeof l||(u=d[c=d.length-1],t(l)?l.length>0&&(Nt((l=Rt(l,"".concat(n||"","_").concat(o)))[0])&&Nt(u)&&(d[c]=xe(u.text+l[0].text),l.shift()),d.push.apply(d,l)):s(l)?Nt(u)?d[c]=xe(u.text+l):""!==l&&d.push(xe(l)):Nt(l)&&Nt(u)?d[c]=xe(u.text+l.text):(a(e._isVList)&&r(l.tag)&&i(l.key)&&r(n)&&(l.key="__vlist".concat(n,"_").concat(o,"__")),d.push(l)));return d}var Ht=1,zt=2;function qt(e,n,i,r,o,l){return(t(i)||s(i))&&(o=r,r=i,i=void 0),a(l)&&(o=zt),Bt(e,n,i,r,o)}function Bt(e,n,i,a,o){if(r(i)&&r(i.__ob__))return ra("Avoid using observed data object as vnode data: ".concat(JSON.stringify(i),"\n")+"Always create fresh vnode data objects in each render!",e),we();if(r(i)&&r(i.is)&&(n=i.is),!n)return we();var c,u;if(r(i)&&r(i.key)&&!s(i.key)&&ra("Avoid using non-primitive value as key, use string/number value instead.",e),t(a)&&l(a[0])&&((i=i||{}).scopedSlots={default:a[0]},a.length=0),o===zt?a=Ft(a):o===Ht&&(a=It(a)),"string"==typeof n){var d=void 0;u=e.$vnode&&e.$vnode.ns||V.getTagNamespace(n),V.isReservedTag(n)?(r(i)&&r(i.nativeOn)&&"component"!==i.tag&&ra("The .native modifier for v-on is only valid on components but it was used on <".concat(n,">."),e),c=new be(V.parsePlatformTagName(n),i,a,void 0,void 0,e)):c=i&&i.pre||!r(d=Aa(e.$options,"components",n))?new be(n,i,a,void 0,void 0,e):Qr(d,i,e,a,n)}else c=Qr(n,i,e,a);return t(c)?c:r(c)?(r(u)&&$t(c,u),r(i)&&Wt(i),c):we()}function $t(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),r(e.children))for(var o=0,s=e.children.length;o<s;o++){var l=e.children[o];r(l.tag)&&(i(l.ns)||a(n)&&"svg"!==l.tag)&&$t(l,t,n)}}function Wt(e){c(e.style)&&_r(e.style),c(e.class)&&_r(e.class)}function Ut(e,n){var i,a,o,s,l=null;if(t(e)||"string"==typeof e)for(l=new Array(e.length),i=0,a=e.length;i<a;i++)l[i]=n(e[i],i);else if("number"==typeof e)for(l=new Array(e),i=0;i<e;i++)l[i]=n(i+1,i);else if(c(e))if(me&&e[Symbol.iterator]){l=[];for(var u=e[Symbol.iterator](),d=u.next();!d.done;)l.push(n(d.value,l.length)),d=u.next()}else for(o=Object.keys(e),l=new Array(o.length),i=0,a=o.length;i<a;i++)s=o[i],l[i]=n(e[s],s,i);return r(l)||(l=[]),l._isVList=!0,l}function Vt(e,t,n,i){var r,a=this.$scopedSlots[e];a?(n=n||{},i&&(c(i)||ra("slot v-bind without argument expects an Object",this),n=P(P({},i),n)),r=a(n)||(l(t)?t():t)):r=this.$slots[e]||(l(t)?t():t);var o=n&&n.slot;return o?this.$createElement("template",{slot:o},r):r}function Xt(e){return Aa(this.$options,"filters",e,!0)||N}function Gt(e,n){return t(e)?-1===e.indexOf(n):e!==n}function Jt(e,t,n,i,r){var a=V.keyCodes[t]||n;return r&&i&&!V.keyCodes[t]?Gt(r,i):a?Gt(a,e):i?E(i)!==t:void 0===e}function Qt(e,n,i,r,a){if(i)if(c(i)){t(i)&&(i=j(i));var o=void 0,s=function(t){if("class"===t||"style"===t||b(t))o=e;else{var s=e.attrs&&e.attrs.type;o=r||V.mustUseProp(n,s,t)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=M(t),c=E(t);l in o||c in o||(o[t]=i[t],a&&((e.on||(e.on={}))["update:".concat(t)]=function(e){i[t]=e}))};for(var l in i)s(l)}else ra("v-bind without argument expects an Object or Array value",this);return e}function Kt(e,t){var n=this._staticTrees||(this._staticTrees=[]),i=n[e];return i&&!t||en(i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),"__static__".concat(e),!1),i}function Zt(e,t,n){return en(e,"__once__".concat(t).concat(n?"_".concat(n):""),!0),e}function en(e,n,i){if(t(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&tn(e[r],"".concat(n,"_").concat(r),i);else tn(e,n,i)}function tn(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function nn(e,t){if(t)if(h(t)){var n=e.on=e.on?P({},e.on):{};for(var i in t){var r=n[i],a=t[i];n[i]=r?[].concat(r,a):a}}else ra("v-on without argument expects an Object value",this);return e}function rn(e,n,i,r){n=n||{$stable:!i};for(var a=0;a<e.length;a++){var o=e[a];t(o)?rn(o,n,i):o&&(o.proxy&&(o.fn.proxy=!0),n[o.key]=o.fn)}return r&&(n.$key=r),n}function an(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];"string"==typeof i&&i?e[t[n]]=t[n+1]:""!==i&&null!==i&&ra("Invalid value for dynamic directive argument (expected string or null): ".concat(i),this)}return e}function on(e,t){return"string"==typeof e?t+e:e}function sn(e){e._o=Zt,e._n=_,e._s=g,e._l=Ut,e._t=Vt,e._q=H,e._i=z,e._m=Kt,e._f=Xt,e._k=Jt,e._b=Qt,e._v=xe,e._e=we,e._u=rn,e._g=nn,e._d=an,e._p=on}function ln(e,t){if(!e||!e.length)return{};for(var n={},i=0,r=e.length;i<r;i++){var a=e[i],o=a.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,a.context!==t&&a.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(a);else{var s=o.slot,l=n[s]||(n[s]=[]);"template"===a.tag?l.push.apply(l,a.children||[]):l.push(a)}}for(var c in n)n[c].every(cn)&&delete n[c];return n}function cn(e){return e.isComment&&!e.asyncFactory||" "===e.text}function un(e){return e.isComment&&e.asyncFactory}function dn(t,n,i,r){var a,o=Object.keys(i).length>0,s=n?!!n.$stable:!o,l=n&&n.$key;if(n){if(n._normalized)return n._normalized;if(s&&r&&r!==e&&l===r.$key&&!o&&!r.$hasNormal)return r;for(var c in a={},n)n[c]&&"$"!==c[0]&&(a[c]=hn(t,i,c,n[c]))}else a={};for(var u in i)u in a||(a[u]=fn(i,u));return n&&Object.isExtensible(n)&&(n._normalized=a),J(a,"$stable",s),J(a,"$key",l),J(a,"$hasNormal",o),a}function hn(e,n,i,r){var a=function(){var n=ge;ve(e);var i=arguments.length?r.apply(null,arguments):r({}),a=(i=i&&"object"==typeof i&&!t(i)?[i]:Ft(i))&&i[0];return ve(n),i&&(!a||1===i.length&&a.isComment&&!un(a))?void 0:i};return r.proxy&&Object.defineProperty(n,i,{get:a,enumerable:!0,configurable:!0}),a}function fn(e,t){return function(){return e[t]}}function pn(e){var t=e.$options,n=t.setup;if(n){var i=e._setupContext=mn(e);ve(e),Fe();var r=ji(n,null,[e._props||Ze({}),i],e,"setup");if(Ne(),ve(),l(r))t.render=r;else if(c(r))if(r instanceof be&&ra("setup() should not return VNodes directly - return a render function instead."),e._setupState=r,r.__sfc){var a=e._setupProxy={};for(var o in r)"__sfc"!==o&&gt(a,r,o)}else for(var o in r)G(o)?ra("Avoid using variables that start with _ or $ in setup()."):gt(e,r,o);else void 0!==r&&ra("setup() should return an object. Received: ".concat(null===r?"null":typeof r))}}function mn(t){var n=!1;return{get attrs(){if(!t._attrsProxy){var n=t._attrsProxy={};J(n,"_v_attr_proxy",!0),gn(n,t.$attrs,e,t,"$attrs")}return t._attrsProxy},get listeners(){return t._listenersProxy||gn(t._listenersProxy={},t.$listeners,e,t,"$listeners"),t._listenersProxy},get slots(){return vn(t)},emit:O(t.$emit,t),expose:function(e){n&&ra("expose() should be called only once per setup().",t),n=!0,e&&Object.keys(e).forEach((function(n){return gt(t,e,n)}))}}}function gn(e,t,n,i,r){var a=!1;for(var o in t)o in e?t[o]!==n[o]&&(a=!0):(a=!0,_n(e,o,i,r));for(var o in e)o in t||(a=!0,delete e[o]);return a}function _n(e,t,n,i){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[i][t]}})}function vn(e){return e._slotsProxy||yn(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}function yn(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function bn(){return kn().slots}function wn(){return kn().attrs}function xn(){return kn().listeners}function kn(){ge||ra("useContext() called without active instance.");var e=ge;return e._setupContext||(e._setupContext=mn(e))}function An(e,n){var i=t(e)?e.reduce((function(e,t){return e[t]={},e}),{}):e;for(var r in n){var a=i[r];a?t(a)||l(a)?i[r]={type:a,default:n[r]}:a.default=n[r]:null===a?i[r]={default:n[r]}:ra('props default key "'.concat(r,'" has no corresponding declaration.'))}return i}function Sn(t){t._vnode=null,t._staticTrees=null;var n=t.$options,i=t.$vnode=n._parentVnode,r=i&&i.context;t.$slots=ln(n._renderChildren,r),t.$scopedSlots=i?dn(t.$parent,i.data.scopedSlots,t.$slots):e,t._c=function(e,n,i,r){return qt(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return qt(t,e,n,i,r,!0)};var a=i&&i.data;Xe(t,"$attrs",a&&a.attrs||e,(function(){!Un&&ra("$attrs is readonly.",t)}),!0),Xe(t,"$listeners",n._parentListeners||e,(function(){!Un&&ra("$listeners is readonly.",t)}),!0)}var Mn,Tn,Ln=null;function En(e){sn(e.prototype),e.prototype.$nextTick=function(e){return Vi(e,this)},e.prototype._render=function(){var e,n=this,i=n.$options,r=i.render,a=i._parentVnode;a&&n._isMounted&&(n.$scopedSlots=dn(n.$parent,a.data.scopedSlots,n.$slots,n.$scopedSlots),n._slotsProxy&&yn(n._slotsProxy,n.$scopedSlots)),n.$vnode=a;try{ve(n),Ln=n,e=r.call(n._renderProxy,n.$createElement)}catch(t){if(Pi(t,n,"render"),n.$options.renderError)try{e=n.$options.renderError.call(n._renderProxy,n.$createElement,t)}catch(t){Pi(t,n,"renderError"),e=n._vnode}else e=n._vnode}finally{Ln=null,ve()}return t(e)&&1===e.length&&(e=e[0]),e instanceof be||(t(e)&&ra("Multiple root nodes returned from render function. Render function should return a single root node.",n),e=we()),e.parent=a,e}}function Cn(e,t){return(e.__esModule||me&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function Dn(e,t,n,i,r){var a=we();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:i,tag:r},a}function On(e,t){if(a(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;var n=Ln;if(n&&r(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),a(e.loading)&&r(e.loadingComp))return e.loadingComp;if(n&&!r(e.owners)){var o=e.owners=[n],s=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return w(o,n)}));var d=function(e){for(var t=0,n=o.length;t<n;t++)o[t].$forceUpdate();e&&(o.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},h=q((function(n){e.resolved=Cn(n,t),s?o.length=0:d(!0)})),f=q((function(t){ra("Failed to resolve async component: ".concat(String(e))+(t?"\nReason: ".concat(t):"")),r(e.errorComp)&&(e.error=!0,d(!0))})),p=e(h,f);return c(p)&&(m(p)?i(e.resolved)&&p.then(h,f):m(p.component)&&(p.component.then(h,f),r(p.error)&&(e.errorComp=Cn(p.error,t)),r(p.loading)&&(e.loadingComp=Cn(p.loading,t),0===p.delay?e.loading=!0:l=setTimeout((function(){l=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,d(!1))}),p.delay||200)),r(p.timeout)&&(u=setTimeout((function(){u=null,i(e.resolved)&&f("timeout (".concat(p.timeout,"ms)"))}),p.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function Yn(e){if(t(e))for(var n=0;n<e.length;n++){var i=e[n];if(r(i)&&(r(i.componentOptions)||un(i)))return i}}function Pn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Nn(e,t)}function jn(e,t){Mn.$on(e,t)}function In(e,t){Mn.$off(e,t)}function Fn(e,t){var n=Mn;return function i(){null!==t.apply(null,arguments)&&n.$off(e,i)}}function Nn(e,t,n){Mn=e,Ot(t,n||{},jn,In,Fn,e),Mn=void 0}function Rn(e){var n=/^hook:/;e.prototype.$on=function(e,i){var r=this;if(t(e))for(var a=0,o=e.length;a<o;a++)r.$on(e[a],i);else(r._events[e]||(r._events[e]=[])).push(i),n.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i),t.apply(n,arguments)}return i.fn=t,n.$on(e,i),n},e.prototype.$off=function(e,n){var i=this;if(!arguments.length)return i._events=Object.create(null),i;if(t(e)){for(var r=0,a=e.length;r<a;r++)i.$off(e[r],n);return i}var o,s=i._events[e];if(!s)return i;if(!n)return i._events[e]=null,i;for(var l=s.length;l--;)if((o=s[l])===n||o.fn===n){s.splice(l,1);break}return i},e.prototype.$emit=function(e){var t=this,n=e.toLowerCase();n!==e&&t._events[n]&&aa('Event "'.concat(n,'" is emitted in component ')+"".concat(ia(t),' but the handler is registered for "').concat(e,'". ')+"Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. "+'You should probably use "'.concat(E(e),'" instead of "').concat(e,'".'));var i=t._events[e];if(i){i=i.length>1?Y(i):i;for(var r=Y(arguments,1),a='event handler for "'.concat(e,'"'),o=0,s=i.length;o<s;o++)ji(i[o],t,r,t,a)}return t}}var Hn=function(){function e(e){void 0===e&&(e=!1),this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Tn,!e&&Tn&&(this.index=(Tn.scopes||(Tn.scopes=[])).push(this)-1)}return e.prototype.run=function(e){if(this.active){var t=Tn;try{return Tn=this,e()}finally{Tn=t}}else ra("cannot run an inactive effect scope.")},e.prototype.on=function(){Tn=this},e.prototype.off=function(){Tn=this.parent},e.prototype.stop=function(e){if(this.active){var t=void 0,n=void 0;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].teardown();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){var i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this.active=!1}},e}();function zn(e){return new Hn(e)}function qn(e,t){void 0===t&&(t=Tn),t&&t.active&&t.effects.push(e)}function Bn(){return Tn}function $n(e){Tn?Tn.cleanups.push(e):ra("onScopeDispose() is called when there is no active effect scope to be associated with.")}var Wn=null,Un=!1;function Vn(e){var t=Wn;return Wn=e,function(){Wn=t}}function Xn(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Gn(e){e.prototype._update=function(e,t){var n=this,i=n.$el,r=n._vnode,a=Vn(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),a(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n);for(var o=n;o&&o.$vnode&&o.$parent&&o.$vnode===o.$parent._vnode;)o.$parent.$el=o.$el,o=o.$parent},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){ti(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||w(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),ti(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Jn(e,t,n){var i;e.$el=t,e.$options.render||(e.$options.render=we,e.$options.template&&"#"!==e.$options.template.charAt(0)||e.$options.el||t?ra("You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",e):ra("Failed to mount component: template or render function not defined.",e)),ti(e,"beforeMount"),i=V.performance&&bt?function(){var t=e._name,i=e._uid,r="vue-perf-start:".concat(i),a="vue-perf-end:".concat(i);bt(r);var o=e._render();bt(a),wt("vue ".concat(t," render"),r,a),bt(r),e._update(o,n),bt(a),wt("vue ".concat(t," patch"),r,a)}:function(){e._update(e._render(),n)};var r={before:function(){e._isMounted&&!e._isDestroyed&&ti(e,"beforeUpdate")},onTrack:function(t){return ti(e,"renderTracked",[t])},onTrigger:function(t){return ti(e,"renderTriggered",[t])}};new br(e,i,I,r,!0),n=!1;var a=e._preWatchers;if(a)for(var o=0;o<a.length;o++)a[o].run();return null==e.$vnode&&(e._isMounted=!0,ti(e,"mounted")),e}function Qn(t,n,i,r,a){Un=!0;var o=r.data.scopedSlots,s=t.$scopedSlots,l=!!(o&&!o.$stable||s!==e&&!s.$stable||o&&t.$scopedSlots.$key!==o.$key||!o&&t.$scopedSlots.$key),c=!!(a||t.$options._renderChildren||l),u=t.$vnode;t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=a;var d=r.data.attrs||e;t._attrsProxy&&gn(t._attrsProxy,d,u.data&&u.data.attrs||e,t,"$attrs")&&(c=!0),t.$attrs=d,i=i||e;var h=t.$options._parentListeners;if(t._listenersProxy&&gn(t._listenersProxy,i,h||e,t,"$listeners"),t.$listeners=t.$options._parentListeners=i,Nn(t,i,h),n&&t.$options.props){$e(!1);for(var f=t._props,p=t.$options._propKeys||[],m=0;m<p.length;m++){var g=p[m],_=t.$options.props;f[g]=Sa(g,_,n,t)}$e(!0),t.$options.propsData=n}c&&(t.$slots=ln(a,r.context),t.$forceUpdate()),Un=!1}function Kn(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Zn(e,t){if(t){if(e._directInactive=!1,Kn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Zn(e.$children[n]);ti(e,"activated")}}function ei(e,t){if(!(t&&(e._directInactive=!0,Kn(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)ei(e.$children[n]);ti(e,"deactivated")}}function ti(e,t,n,i){void 0===i&&(i=!0),Fe();var r=ge,a=Bn();i&&ve(e);var o=e.$options[t],s="".concat(t," hook");if(o)for(var l=0,c=o.length;l<c;l++)ji(o[l],e,n||null,e,s);e._hasHookEvent&&e.$emit("hook:"+t),i&&(ve(r),a&&a.on()),Ne()}var ni=100,ii=[],ri=[],ai={},oi={},si=!1,li=!1,ci=0;function ui(){ci=ii.length=ri.length=0,ai={},oi={},si=li=!1}var di=0,hi=Date.now;if(ee&&!ne){var fi=window.performance;fi&&"function"==typeof fi.now&&hi()>document.createEvent("Event").timeStamp&&(hi=function(){return fi.now()})}var pi=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function mi(){var e,t;for(di=hi(),li=!0,ii.sort(pi),ci=0;ci<ii.length;ci++)if((e=ii[ci]).before&&e.before(),t=e.id,ai[t]=null,e.run(),null!=ai[t]&&(oi[t]=(oi[t]||0)+1,oi[t]>ni)){ra("You may have an infinite update loop "+(e.user?'in watcher with expression "'.concat(e.expression,'"'):"in a component render function."),e.vm);break}var n=ri.slice(),i=ii.slice();ui(),vi(n),gi(i),Pe(),he&&V.devtools&&he.emit("flush")}function gi(e){for(var t=e.length;t--;){var n=e[t],i=n.vm;i&&i._watcher===n&&i._isMounted&&!i._isDestroyed&&ti(i,"updated")}}function _i(e){e._inactive=!1,ri.push(e)}function vi(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Zn(e[t],!0)}function yi(e){var t=e.id;if(null==ai[t]&&(e!==je.target||!e.noRecurse)){if(ai[t]=!0,li){for(var n=ii.length-1;n>ci&&ii[n].id>e.id;)n--;ii.splice(n+1,0,e)}else ii.push(e);if(!si){if(si=!0,!V.async)return void mi();Vi(mi)}}}var bi="watcher",wi="".concat(bi," callback"),xi="".concat(bi," getter"),ki="".concat(bi," cleanup");function Ai(e,t){return Ei(e,null,t)}function Si(e,t){return Ei(e,null,De(De({},t),{flush:"post"}))}function Mi(e,t){return Ei(e,null,De(De({},t),{flush:"sync"}))}var Ti={};function Li(e,t,n){return"function"!=typeof t&&ra("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Ei(e,t,n)}function Ei(n,i,r){var a=void 0===r?e:r,o=a.immediate,s=a.deep,c=a.flush,u=void 0===c?"pre":c,d=a.onTrack,h=a.onTrigger;i||(void 0!==o&&ra('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==s&&ra('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));var f,p,m=function(e){ra("Invalid watch source: ".concat(e,". A watch source can only be a getter/effect ")+"function, a ref, a reactive object, or an array of these types.")},g=ge,_=function(e,t,n){return void 0===n&&(n=null),ji(e,null,n,g,t)},v=!1,y=!1;if(ct(n)?(f=function(){return n.value},v=nt(n)):tt(n)?(f=function(){return n.__ob__.dep.depend(),n},s=!0):t(n)?(y=!0,v=n.some((function(e){return tt(e)||nt(e)})),f=function(){return n.map((function(e){return ct(e)?e.value:tt(e)?_r(e):l(e)?_(e,xi):void m(e)}))}):l(n)?f=i?function(){return _(n,xi)}:function(){if(!g||!g._isDestroyed)return p&&p(),_(n,bi,[w])}:(f=I,m(n)),i&&s){var b=f;f=function(){return _r(b())}}var w=function(e){p=x.onStop=function(){_(e,ki)}};if(de())return w=I,i?o&&_(i,wi,[f(),y?[]:void 0,w]):f(),I;var x=new br(ge,f,I,{lazy:!0});x.noRecurse=!i;var k=y?[]:Ti;return x.run=function(){if(x.active)if(i){var e=x.get();(s||v||(y?e.some((function(e,t){return B(e,k[t])})):B(e,k)))&&(p&&p(),_(i,wi,[e,k===Ti?void 0:k,w]),k=e)}else x.get()},"sync"===u?x.update=x.run:"post"===u?(x.post=!0,x.update=function(){return yi(x)}):x.update=function(){if(g&&g===ge&&!g._isMounted){var e=g._preWatchers||(g._preWatchers=[]);e.indexOf(x)<0&&e.push(x)}else yi(x)},x.onTrack=d,x.onTrigger=h,i?o?x.run():k=x.get():"post"===u&&g?g.$once("hook:mounted",(function(){return x.get()})):x.get(),function(){x.teardown()}}function Ci(e,t){ge?Di(ge)[e]=t:ra("provide() can only be used inside setup().")}function Di(e){var t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}function Oi(e,t,n){void 0===n&&(n=!1);var i=ge;if(i){var r=i.$parent&&i.$parent._provided;if(r&&e in r)return r[e];if(arguments.length>1)return n&&l(t)?t.call(i):t;ra('injection "'.concat(String(e),'" not found.'))}else ra("inject() can only be used inside setup() or functional components.")}function Yi(e,t,n){return ge||ra("globally imported h() can only be invoked when there is an active component instance, e.g. synchronously in a component's render or setup function."),qt(ge,e,t,n,2,!0)}function Pi(e,t,n){Fe();try{if(t)for(var i=t;i=i.$parent;){var r=i.$options.errorCaptured;if(r)for(var a=0;a<r.length;a++)try{if(!1===r[a].call(i,e,t,n))return}catch(e){Ii(e,i,"errorCaptured hook")}}Ii(e,t,n)}finally{Ne()}}function ji(e,t,n,i,r){var a;try{(a=n?e.apply(t,n):e.call(t))&&!a._isVue&&m(a)&&!a._handled&&(a.catch((function(e){return Pi(e,i,r+" (Promise/async)")})),a._handled=!0)}catch(e){Pi(e,i,r)}return a}function Ii(e,t,n){if(V.errorHandler)try{return V.errorHandler.call(null,e,t,n)}catch(t){t!==e&&Fi(t,null,"config.errorHandler")}Fi(e,t,n)}function Fi(e,t,n){if(ra("Error in ".concat(n,': "').concat(e.toString(),'"'),t),!ee||"undefined"==typeof console)throw e;console.error(e)}var Ni,Ri=!1,Hi=[],zi=!1;function qi(){zi=!1;var e=Hi.slice(0);Hi.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&fe(Promise)){var Bi=Promise.resolve();Ni=function(){Bi.then(qi),ae&&setTimeout(I)},Ri=!0}else if(ne||"undefined"==typeof MutationObserver||!fe(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ni="undefined"!=typeof setImmediate&&fe(setImmediate)?function(){setImmediate(qi)}:function(){setTimeout(qi,0)};else{var $i=1,Wi=new MutationObserver(qi),Ui=document.createTextNode(String($i));Wi.observe(Ui,{characterData:!0}),Ni=function(){$i=($i+1)%2,Ui.data=String($i)},Ri=!0}function Vi(e,t){var n;if(Hi.push((function(){if(e)try{e.call(t)}catch(e){Pi(e,t,"nextTick")}else n&&n(t)})),zi||(zi=!0,Ni()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}function Xi(t){return ra("useCssModule() is not supported in the global build."),e}function Gi(e){if(ee){var t=ge;t?Si((function(){var n=t.$el,i=e(t,t._setupProxy);if(n&&1===n.nodeType){var r=n.style;for(var a in i)r.setProperty("--".concat(a),i[a])}})):ra("useCssVars is called without current active component instance.")}}function Ji(e){l(e)&&(e={loader:e});var t=e.loader,n=e.loadingComponent,i=e.errorComponent,r=e.delay,a=void 0===r?200:r,o=e.timeout,s=e.suspensible,u=void 0!==s&&s,d=e.onError;u&&ra("The suspensible option for async components is not supported in Vue2. It is ignored.");var h=null,f=0,p=function(){return f++,h=null,m()},m=function(){var e;return h||(e=h=t().catch((function(e){if(e=e instanceof Error?e:new Error(String(e)),d)return new Promise((function(t,n){d(e,(function(){return t(p())}),(function(){return n(e)}),f+1)}));throw e})).then((function(t){if(e!==h&&h)return h;if(t||ra("Async component loader resolved to undefined. If you are using retry(), make sure to return its return value."),t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t&&!c(t)&&!l(t))throw new Error("Invalid async component load result: ".concat(t));return t})))};return function(){return{component:m(),delay:a,timeout:o,error:i,loading:n}}}function Qi(e){return function(t,n){if(void 0===n&&(n=ge),n)return Zi(n,e,t);ra("".concat(Ki(e)," is called when there is no active component instance to be ")+"associated with. Lifecycle injection APIs can only be used during execution of setup().")}}function Ki(e){return"beforeDestroy"===e?e="beforeUnmount":"destroyed"===e&&(e="unmounted"),"on".concat(e[0].toUpperCase()+e.slice(1))}function Zi(e,t,n){var i=e.$options;i[t]=fa(i[t],n)}var er=Qi("beforeMount"),tr=Qi("mounted"),nr=Qi("beforeUpdate"),ir=Qi("updated"),rr=Qi("beforeDestroy"),ar=Qi("destroyed"),or=Qi("activated"),sr=Qi("deactivated"),lr=Qi("serverPrefetch"),cr=Qi("renderTracked"),ur=Qi("renderTriggered"),dr=Qi("errorCaptured");function hr(e,t){void 0===t&&(t=ge),dr(e,t)}var fr="2.7.15";function pr(e){return e}var mr=Object.freeze({__proto__:null,version:fr,defineComponent:pr,ref:ut,shallowRef:dt,isRef:ct,toRef:yt,toRefs:vt,unref:pt,proxyRefs:mt,customRef:_t,triggerRef:ft,reactive:Ke,isReactive:tt,isReadonly:it,isShallow:nt,isProxy:rt,shallowReactive:Ze,markRaw:ot,toRaw:at,readonly:At,shallowReadonly:Tt,computed:Lt,watch:Li,watchEffect:Ai,watchPostEffect:Si,watchSyncEffect:Mi,EffectScope:Hn,effectScope:zn,onScopeDispose:$n,getCurrentScope:Bn,provide:Ci,inject:Oi,h:Yi,getCurrentInstance:_e,useSlots:bn,useAttrs:wn,useListeners:xn,mergeDefaults:An,nextTick:Vi,set:Ge,del:Je,useCssModule:Xi,useCssVars:Gi,defineAsyncComponent:Ji,onBeforeMount:er,onMounted:tr,onBeforeUpdate:nr,onUpdated:ir,onBeforeUnmount:rr,onUnmounted:ar,onActivated:or,onDeactivated:sr,onServerPrefetch:lr,onRenderTracked:cr,onRenderTriggered:ur,onErrorCaptured:hr}),gr=new pe;function _r(e){return vr(e,gr),gr.clear(),e}function vr(e,n){var i,r,a=t(e);if(!(!a&&!c(e)||e.__v_skip||Object.isFrozen(e)||e instanceof be)){if(e.__ob__){var o=e.__ob__.dep.id;if(n.has(o))return;n.add(o)}if(a)for(i=e.length;i--;)vr(e[i],n);else if(ct(e))vr(e.value,n);else for(i=(r=Object.keys(e)).length;i--;)vr(e[r[i]],n)}}var yr=0,br=function(){function e(e,t,n,i,r){qn(this,Tn&&!Tn._vm?Tn:e?e._scope:void 0),(this.vm=e)&&r&&(e._watcher=this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before,this.onTrack=i.onTrack,this.onTrigger=i.onTrigger):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++yr,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new pe,this.newDepIds=new pe,this.expression=t.toString(),l(t)?this.getter=t:(this.getter=K(t),this.getter||(this.getter=I,ra('Failed watching path: "'.concat(t,'" ')+"Watcher only accepts simple dot-delimited paths. For full control, use a function instead.",e))),this.value=this.lazy?void 0:this.get()}return e.prototype.get=function(){var e;Fe(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Pi(e,t,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&_r(e),Ne(),this.cleanupDeps()}return e},e.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},e.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},e.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():yi(this)},e.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');ji(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},e.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},e.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},e.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&w(this.vm._scope.effects,this),this.active){for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},e}(),wr={enumerable:!0,configurable:!0,get:I,set:I};function xr(e,t,n){wr.get=function(){return this[t][n]},wr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,wr)}function kr(e){var t=e.$options;if(t.props&&Ar(e,t.props),pn(e),t.methods&&Or(e,t.methods),t.data)Sr(e);else{var n=Ve(e._data={});n&&n.vmCount++}t.computed&&Lr(e,t.computed),t.watch&&t.watch!==le&&Yr(e,t.watch)}function Ar(e,t){var n=e.$options.propsData||{},i=e._props=Ze({}),r=e.$options._propKeys=[],a=!e.$parent;a||$e(!1);var o=function(o){r.push(o);var s=Sa(o,t,n,e),l=E(o);(b(l)||V.isReservedAttr(l))&&ra('"'.concat(l,'" is a reserved attribute and cannot be used as component prop.'),e),Xe(i,o,s,(function(){a||Un||ra("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's "+'value. Prop being mutated: "'.concat(o,'"'),e)})),o in e||xr(e,"_props",o)};for(var s in t)o(s);$e(!0)}function Sr(e){var t=e.$options.data;h(t=e._data=l(t)?Mr(t,e):t||{})||(t={},ra("data functions should return an object:\nhttps://v2.vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));for(var n=Object.keys(t),i=e.$options.props,r=e.$options.methods,a=n.length;a--;){var o=n[a];r&&k(r,o)&&ra('Method "'.concat(o,'" has already been defined as a data property.'),e),i&&k(i,o)?ra('The data property "'.concat(o,'" is already declared as a prop. ')+"Use prop default value instead.",e):G(o)||xr(e,"_data",o)}var s=Ve(t);s&&s.vmCount++}function Mr(e,t){Fe();try{return e.call(t,t)}catch(e){return Pi(e,t,"data()"),{}}finally{Ne()}}var Tr={lazy:!0};function Lr(e,t){var n=e._computedWatchers=Object.create(null),i=de();for(var r in t){var a=t[r],o=l(a)?a:a.get;null==o&&ra('Getter is missing for computed property "'.concat(r,'".'),e),i||(n[r]=new br(e,o||I,I,Tr)),r in e?r in e.$data?ra('The computed property "'.concat(r,'" is already defined in data.'),e):e.$options.props&&r in e.$options.props?ra('The computed property "'.concat(r,'" is already defined as a prop.'),e):e.$options.methods&&r in e.$options.methods&&ra('The computed property "'.concat(r,'" is already defined as a method.'),e):Er(e,r,a)}}function Er(e,t,n){var i=!de();l(n)?(wr.get=i?Cr(t):Dr(n),wr.set=I):(wr.get=n.get?i&&!1!==n.cache?Cr(t):Dr(n.get):I,wr.set=n.set||I),wr.set===I&&(wr.set=function(){ra('Computed property "'.concat(t,'" was assigned to but it has no setter.'),this)}),Object.defineProperty(e,t,wr)}function Cr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),je.target&&(je.target.onTrack&&je.target.onTrack({effect:je.target,target:this,type:"get",key:e}),t.depend()),t.value}}function Dr(e){return function(){return e.call(this,this)}}function Or(e,t){var n=e.$options.props;for(var i in t)"function"!=typeof t[i]&&ra('Method "'.concat(i,'" has type "').concat(typeof t[i],'" in the component definition. ')+"Did you reference the function correctly?",e),n&&k(n,i)&&ra('Method "'.concat(i,'" has already been defined as a prop.'),e),i in e&&G(i)&&ra('Method "'.concat(i,'" conflicts with an existing Vue instance method. ')+"Avoid defining component methods that start with _ or $."),e[i]="function"!=typeof t[i]?I:O(t[i],e)}function Yr(e,n){for(var i in n){var r=n[i];if(t(r))for(var a=0;a<r.length;a++)Pr(e,i,r[a]);else Pr(e,i,r)}}function Pr(e,t,n,i){return h(n)&&(i=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,i)}function jr(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};t.set=function(){ra("Avoid replacing instance root $data. Use nested data properties instead.",this)},n.set=function(){ra("$props is readonly.",this)},Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ge,e.prototype.$delete=Je,e.prototype.$watch=function(e,t,n){var i=this;if(h(t))return Pr(i,e,t,n);(n=n||{}).user=!0;var r=new br(i,e,t,n);if(n.immediate){var a='callback for immediate watcher "'.concat(r.expression,'"');Fe(),ji(t,i,[r.value],i,a),Ne()}return function(){r.teardown()}}}function Ir(e){var t=e.$options.provide;if(t){var n=l(t)?t.call(e):t;if(!c(n))return;for(var i=Di(e),r=me?Reflect.ownKeys(n):Object.keys(n),a=0;a<r.length;a++){var o=r[a];Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(n,o))}}}function Fr(e){var t=Nr(e.$options.inject,e);t&&($e(!1),Object.keys(t).forEach((function(n){Xe(e,n,t[n],(function(){ra("Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. "+'injection being mutated: "'.concat(n,'"'),e)}))})),$e(!0))}function Nr(e,t){if(e){for(var n=Object.create(null),i=me?Reflect.ownKeys(e):Object.keys(e),r=0;r<i.length;r++){var a=i[r];if("__ob__"!==a){var o=e[a].from;if(o in t._provided)n[a]=t._provided[o];else if("default"in e[a]){var s=e[a].default;n[a]=l(s)?s.call(t):s}else ra('Injection "'.concat(a,'" not found'),t)}}return n}}var Rr=0;function Hr(e){e.prototype._init=function(e){var t,n,i=this;i._uid=Rr++,V.performance&&bt&&(t="vue-perf-start:".concat(i._uid),n="vue-perf-end:".concat(i._uid),bt(t)),i._isVue=!0,i.__v_skip=!0,i._scope=new Hn(!0),i._scope._vm=!0,e&&e._isComponent?zr(i,e):i.$options=ka(qr(i.constructor),e||{},i),ye(i),i._self=i,Xn(i),Pn(i),Sn(i),ti(i,"beforeCreate",void 0,!1),Fr(i),kr(i),Ir(i),ti(i,"created"),V.performance&&bt&&(i._name=ia(i,!1),bt(n),wt("vue ".concat(i._name," init"),t,n)),i.$options.el&&i.$mount(i.$options.el)}}function zr(e,t){var n=e.$options=Object.create(e.constructor.options),i=t._parentVnode;n.parent=t.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function qr(e){var t=e.options;if(e.super){var n=qr(e.super);if(n!==e.superOptions){e.superOptions=n;var i=Br(e);i&&P(e.extendOptions,i),(t=e.options=ka(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Br(e){var t,n=e.options,i=e.sealedOptions;for(var r in n)n[r]!==i[r]&&(t||(t={}),t[r]=n[r]);return t}function $r(n,i,r,o,s){var l,c=this,u=s.options;k(o,"_uid")?(l=Object.create(o))._original=o:(l=o,o=o._original);var d=a(u._compiled),h=!d;this.data=n,this.props=i,this.children=r,this.parent=o,this.listeners=n.on||e,this.injections=Nr(u.inject,o),this.slots=function(){return c.$slots||dn(o,n.scopedSlots,c.$slots=ln(r,o)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return dn(o,n.scopedSlots,this.slots())}}),d&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=dn(o,n.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,n,i,r){var a=qt(l,e,n,i,r,h);return a&&!t(a)&&(a.fnScopeId=u._scopeId,a.fnContext=o),a}:this._c=function(e,t,n,i){return qt(l,e,t,n,i,h)}}function Wr(n,i,a,o,s){var l=n.options,c={},u=l.props;if(r(u))for(var d in u)c[d]=Sa(d,u,i||e);else r(a.attrs)&&Vr(c,a.attrs),r(a.props)&&Vr(c,a.props);var h=new $r(a,c,s,o,n),f=l.render.call(null,h._c,h);if(f instanceof be)return Ur(f,a,h.parent,l,h);if(t(f)){for(var p=Ft(f)||[],m=new Array(p.length),g=0;g<p.length;g++)m[g]=Ur(p[g],a,h.parent,l,h);return m}}function Ur(e,t,n,i,r){var a=ke(e);return a.fnContext=n,a.fnOptions=i,(a.devtoolsMeta=a.devtoolsMeta||{}).renderContext=r,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function Vr(e,t){for(var n in t)e[M(n)]=t[n]}function Xr(e){return e.name||e.__name||e._componentTag}sn($r.prototype);var Gr={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Gr.prepatch(n,n)}else(e.componentInstance=Kr(e,Wn)).$mount(t?e.elm:void 0,t)},prepatch:function(e,t){var n=t.componentOptions;Qn(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,ti(n,"mounted")),e.data.keepAlive&&(t._isMounted?_i(n):Zn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?ei(t,!0):t.$destroy())}},Jr=Object.keys(Gr);function Qr(e,t,n,o,s){if(!i(e)){var l=n.$options._base;if(c(e)&&(e=l.extend(e)),"function"==typeof e){var u;if(i(e.cid)&&void 0===(e=On(u=e,l)))return Dn(u,t,n,o,s);t=t||{},qr(e),r(t.model)&&ta(e.options,t);var d=Pt(t,e,s);if(a(e.options.functional))return Wr(e,d,t,n,o);var h=t.on;if(t.on=t.nativeOn,a(e.options.abstract)){var f=t.slot;t={},f&&(t.slot=f)}Zr(t);var p=Xr(e.options)||s;return new be("vue-component-".concat(e.cid).concat(p?"-".concat(p):""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:d,listeners:h,tag:s,children:o},u)}ra("Invalid Component definition: ".concat(String(e)),n)}}function Kr(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;return r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new e.componentOptions.Ctor(n)}function Zr(e){for(var t=e.hook||(e.hook={}),n=0;n<Jr.length;n++){var i=Jr[n],r=t[i],a=Gr[i];r===a||r&&r._merged||(t[i]=r?ea(a,r):a)}}function ea(e,t){var n=function(n,i){e(n,i),t(n,i)};return n._merged=!0,n}function ta(e,n){var i=e.model&&e.model.prop||"value",a=e.model&&e.model.event||"input";(n.attrs||(n.attrs={}))[i]=n.model.value;var o=n.on||(n.on={}),s=o[a],l=n.model.callback;r(s)?(t(s)?-1===s.indexOf(l):s!==l)&&(o[a]=[l].concat(s)):o[a]=l}var na,ia,ra=I,aa=I,oa="undefined"!=typeof console,sa=/(?:^|[-_])(\w)/g,la=function(e){return e.replace(sa,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};ra=function(e,t){void 0===t&&(t=ge);var n=t?na(t):"";V.warnHandler?V.warnHandler.call(null,e,t,n):oa&&!V.silent&&console.error("[Vue warn]: ".concat(e).concat(n))},aa=function(e,t){oa&&!V.silent&&console.warn("[Vue tip]: ".concat(e)+(t?na(t):""))},ia=function(e,t){if(e.$root===e)return"<Root>";var n=l(e)&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e,i=Xr(n),r=n.__file;if(!i&&r){var a=r.match(/([^/\\]+)\.vue$/);i=a&&a[1]}return(i?"<".concat(la(i),">"):"<Anonymous>")+(r&&!1!==t?" at ".concat(r):"")};var ca=function(e,t){for(var n="";t;)t%2==1&&(n+=e),t>1&&(e+=e),t>>=1;return n};na=function(e){if(e._isVue&&e.$parent){for(var n=[],i=0;e;){if(n.length>0){var r=n[n.length-1];if(r.constructor===e.constructor){i++,e=e.$parent;continue}i>0&&(n[n.length-1]=[r,i],i=0)}n.push(e),e=e.$parent}return"\n\nfound in\n\n"+n.map((function(e,n){return"".concat(0===n?"---\x3e ":ca(" ",5+2*n)).concat(t(e)?"".concat(ia(e[0]),"... (").concat(e[1]," recursive calls)"):ia(e))})).join("\n")}return"\n\n(found in ".concat(ia(e),")")};var ua=V.optionMergeStrategies;function da(e,t,n){if(void 0===n&&(n=!0),!t)return e;for(var i,r,a,o=me?Reflect.ownKeys(t):Object.keys(t),s=0;s<o.length;s++)"__ob__"!==(i=o[s])&&(r=e[i],a=t[i],n&&k(e,i)?r!==a&&h(r)&&h(a)&&da(r,a):Ge(e,i,a));return e}function ha(e,t,n){return n?function(){var i=l(t)?t.call(n,n):t,r=l(e)?e.call(n,n):e;return i?da(i,r):r}:t?e?function(){return da(l(t)?t.call(this,this):t,l(e)?e.call(this,this):e)}:t:e}function fa(e,n){var i=n?e?e.concat(n):t(n)?n:[n]:e;return i?pa(i):i}function pa(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function ma(e,t,n,i){var r=Object.create(e||null);return t?(xa(i,t,n),P(r,t)):r}ua.el=ua.propsData=function(e,t,n,i){return n||ra('option "'.concat(i,'" can only be used during instance ')+"creation with the `new` keyword."),ga(e,t)},ua.data=function(e,t,n){return n?ha(e,t,n):t&&"function"!=typeof t?(ra('The "data" option should be a function that returns a per-instance value in component definitions.',n),e):ha(e,t)},U.forEach((function(e){ua[e]=fa})),W.forEach((function(e){ua[e+"s"]=ma})),ua.watch=function(e,n,i,r){if(e===le&&(e=void 0),n===le&&(n=void 0),!n)return Object.create(e||null);if(xa(r,n,i),!e)return n;var a={};for(var o in P(a,e),n){var s=a[o],l=n[o];s&&!t(s)&&(s=[s]),a[o]=s?s.concat(l):t(l)?l:[l]}return a},ua.props=ua.methods=ua.inject=ua.computed=function(e,t,n,i){if(t&&xa(i,t,n),!e)return t;var r=Object.create(null);return P(r,e),t&&P(r,t),r},ua.provide=function(e,t){return e?function(){var n=Object.create(null);return da(n,l(e)?e.call(this):e),t&&da(n,l(t)?t.call(this):t,!1),n}:t};var ga=function(e,t){return void 0===t?e:t};function _a(e){for(var t in e.components)va(t)}function va(e){new RegExp("^[a-zA-Z][\\-\\.0-9_".concat(X.source,"]*$")).test(e)||ra('Invalid component name: "'+e+'". Component names should conform to valid custom element name in html5 specification.'),(y(e)||V.isReservedTag(e))&&ra("Do not use built-in or reserved HTML elements as component id: "+e)}function ya(e,n){var i=e.props;if(i){var r,a,o={};if(t(i))for(r=i.length;r--;)"string"==typeof(a=i[r])?o[M(a)]={type:null}:ra("props must be strings when using array syntax.");else if(h(i))for(var s in i)a=i[s],o[M(s)]=h(a)?a:{type:a};else ra('Invalid value for option "props": expected an Array or an Object, '+"but got ".concat(d(i),"."),n);e.props=o}}function ba(e,n){var i=e.inject;if(i){var r=e.inject={};if(t(i))for(var a=0;a<i.length;a++)r[i[a]]={from:i[a]};else if(h(i))for(var o in i){var s=i[o];r[o]=h(s)?P({from:o},s):{from:s}}else ra('Invalid value for option "inject": expected an Array or an Object, '+"but got ".concat(d(i),"."),n)}}function wa(e){var t=e.directives;if(t)for(var n in t){var i=t[n];l(i)&&(t[n]={bind:i,update:i})}}function xa(e,t,n){h(t)||ra('Invalid value for option "'.concat(e,'": expected an Object, ')+"but got ".concat(d(t),"."),n)}function ka(e,t,n){if(_a(t),l(t)&&(t=t.options),ya(t,n),ba(t,n),wa(t),!t._base&&(t.extends&&(e=ka(e,t.extends,n)),t.mixins))for(var i=0,r=t.mixins.length;i<r;i++)e=ka(e,t.mixins[i],n);var a,o={};for(a in e)s(a);for(a in t)k(e,a)||s(a);function s(i){var r=ua[i]||ga;o[i]=r(e[i],t[i],n,i)}return o}function Aa(e,t,n,i){if("string"==typeof n){var r=e[t];if(k(r,n))return r[n];var a=M(n);if(k(r,a))return r[a];var o=T(a);if(k(r,o))return r[o];var s=r[n]||r[a]||r[o];return i&&!s&&ra("Failed to resolve "+t.slice(0,-1)+": "+n),s}}function Sa(e,t,n,i){var r=t[e],a=!k(n,e),o=n[e],s=Ya(Boolean,r.type);if(s>-1)if(a&&!k(r,"default"))o=!1;else if(""===o||o===E(e)){var l=Ya(String,r.type);(l<0||s<l)&&(o=!0)}if(void 0===o){o=Ma(i,r,e);var c=Be;$e(!0),Ve(o),$e(c)}return Ta(r,e,o,i,a),o}function Ma(e,t,n){if(k(t,"default")){var i=t.default;return c(i)&&ra('Invalid default value for prop "'+n+'": Props with type Object/Array must use a factory function to return the default value.',e),e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:l(i)&&"Function"!==Da(t.type)?i.call(e):i}}function Ta(e,n,i,r,a){if(e.required&&a)ra('Missing required prop: "'+n+'"',r);else if(null!=i||e.required){var o=e.type,s=!o||!0===o,l=[];if(o){t(o)||(o=[o]);for(var c=0;c<o.length&&!s;c++){var u=Ea(i,o[c],r);l.push(u.expectedType||""),s=u.valid}}var d=l.some((function(e){return e}));if(s||!d){var h=e.validator;h&&(h(i)||ra('Invalid prop: custom validator check failed for prop "'+n+'".',r))}else ra(Pa(n,i,l),r)}}var La=/^(String|Number|Boolean|Function|Symbol|BigInt)$/;function Ea(e,n,i){var r,a=Da(n);if(La.test(a)){var o=typeof e;(r=o===a.toLowerCase())||"object"!==o||(r=e instanceof n)}else if("Object"===a)r=h(e);else if("Array"===a)r=t(e);else try{r=e instanceof n}catch(e){ra('Invalid prop type: "'+String(n)+'" is not a constructor',i),r=!1}return{valid:r,expectedType:a}}var Ca=/^\s*function (\w+)/;function Da(e){var t=e&&e.toString().match(Ca);return t?t[1]:""}function Oa(e,t){return Da(e)===Da(t)}function Ya(e,n){if(!t(n))return Oa(n,e)?0:-1;for(var i=0,r=n.length;i<r;i++)if(Oa(n[i],e))return i;return-1}function Pa(e,t,n){var i='Invalid prop: type check failed for prop "'.concat(e,'".')+" Expected ".concat(n.map(T).join(", ")),r=n[0],a=d(t);return 1===n.length&&Fa(r)&&Fa(typeof t)&&!Na(r,a)&&(i+=" with value ".concat(ja(t,r))),i+=", got ".concat(a," "),Fa(a)&&(i+="with value ".concat(ja(t,a),".")),i}function ja(e,t){return"String"===t?'"'.concat(e,'"'):"".concat("Number"===t?Number(e):e)}var Ia=["string","number","boolean"];function Fa(e){return Ia.some((function(t){return e.toLowerCase()===t}))}function Na(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.some((function(e){return"boolean"===e.toLowerCase()}))}function Ra(e){this instanceof Ra||ra("Vue is a constructor and should be called with the `new` keyword"),this._init(e)}function Ha(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=Y(arguments,1);return n.unshift(this),l(e.install)?e.install.apply(e,n):l(e)&&e.apply(null,n),t.push(e),this}}function za(e){e.mixin=function(e){return this.options=ka(this.options,e),this}}function qa(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var a=Xr(e)||Xr(n.options);a&&va(a);var o=function(e){this._init(e)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=t++,o.options=ka(n.options,e),o.super=n,o.options.props&&Ba(o),o.options.computed&&$a(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,W.forEach((function(e){o[e]=n[e]})),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=P({},o.options),r[i]=o,o}}function Ba(e){var t=e.options.props;for(var n in t)xr(e.prototype,"_props",n)}function $a(e){var t=e.options.computed;for(var n in t)Er(e.prototype,n,t[n])}function Wa(e){W.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&va(e),"component"===t&&h(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&l(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Ua(e){return e&&(Xr(e.Ctor.options)||e.tag)}function Va(e,n){return t(e)?e.indexOf(n)>-1:"string"==typeof e?e.split(",").indexOf(n)>-1:!!f(e)&&e.test(n)}function Xa(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var a in n){var o=n[a];if(o){var s=o.name;s&&!t(s)&&Ga(n,a,i,r)}}}function Ga(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,w(n,t)}Hr(Ra),jr(Ra),Rn(Ra),Gn(Ra),En(Ra);var Ja=[String,RegExp,Array],Qa={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Ja,exclude:Ja,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,i=e.vnodeToCache,r=e.keyToCache;if(i){var a=i.tag,o=i.componentInstance,s=i.componentOptions;t[r]={name:Ua(s),tag:a,componentInstance:o},n.push(r),this.max&&n.length>parseInt(this.max)&&Ga(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Ga(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Xa(e,(function(e){return Va(t,e)}))})),this.$watch("exclude",(function(t){Xa(e,(function(e){return!Va(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Yn(e),n=t&&t.componentOptions;if(n){var i=Ua(n),r=this,a=r.include,o=r.exclude;if(a&&(!i||!Va(a,i))||o&&i&&Va(o,i))return t;var s=this,l=s.cache,c=s.keys,u=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;l[u]?(t.componentInstance=l[u].componentInstance,w(c,u),c.push(u)):(this.vnodeToCache=t,this.keyToCache=u),t.data.keepAlive=!0}return t||e&&e[0]}}};function Ka(e){var t={get:function(){return V},set:function(){ra("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(e,"config",t),e.util={warn:ra,extend:P,mergeOptions:ka,defineReactive:Xe},e.set=Ge,e.delete=Je,e.nextTick=Vi,e.observable=function(e){return Ve(e),e},e.options=Object.create(null),W.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,P(e.options.components,Qa),Ha(e),za(e),qa(e),Wa(e)}Ka(Ra),Object.defineProperty(Ra.prototype,"$isServer",{get:de}),Object.defineProperty(Ra.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ra,"FunctionalRenderContext",{value:$r}),Ra.version=fr;var Za=v("style,class"),eo=v("input,textarea,option,select,progress"),to=function(e,t,n){return"value"===n&&eo(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},no=v("contenteditable,draggable,spellcheck"),io=v("events,caret,typing,plaintext-only"),ro=function(e,t){return co(t)||"false"===t?"false":"contenteditable"===e&&io(t)?t:"true"},ao=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),oo="http://www.w3.org/1999/xlink",so=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},lo=function(e){return so(e)?e.slice(6,e.length):""},co=function(e){return null==e||!1===e};function uo(e){for(var t=e.data,n=e,i=e;r(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=ho(i.data,t));for(;r(n=n.parent);)n&&n.data&&(t=ho(t,n.data));return fo(t.staticClass,t.class)}function ho(e,t){return{staticClass:po(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function fo(e,t){return r(e)||r(t)?po(e,mo(t)):""}function po(e,t){return e?t?e+" "+t:e:t||""}function mo(e){return Array.isArray(e)?go(e):c(e)?_o(e):"string"==typeof e?e:""}function go(e){for(var t,n="",i=0,a=e.length;i<a;i++)r(t=mo(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function _o(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var vo={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},yo=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),bo=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),wo=function(e){return"pre"===e},xo=function(e){return yo(e)||bo(e)};function ko(e){return bo(e)?"svg":"math"===e?"math":void 0}var Ao=Object.create(null);function So(e){if(!ee)return!0;if(xo(e))return!1;if(e=e.toLowerCase(),null!=Ao[e])return Ao[e];var t=document.createElement(e);return e.indexOf("-")>-1?Ao[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Ao[e]=/HTMLUnknownElement/.test(t.toString())}var Mo=v("text,number,password,search,email,tel,url");function To(e){if("string"==typeof e){var t=document.querySelector(e);return t||(ra("Cannot find element: "+e),document.createElement("div"))}return e}function Lo(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function Eo(e,t){return document.createElementNS(vo[e],t)}function Co(e){return document.createTextNode(e)}function Do(e){return document.createComment(e)}function Oo(e,t,n){e.insertBefore(t,n)}function Yo(e,t){e.removeChild(t)}function Po(e,t){e.appendChild(t)}function jo(e){return e.parentNode}function Io(e){return e.nextSibling}function Fo(e){return e.tagName}function No(e,t){e.textContent=t}function Ro(e,t){e.setAttribute(t,"")}var Ho=Object.freeze({__proto__:null,createElement:Lo,createElementNS:Eo,createTextNode:Co,createComment:Do,insertBefore:Oo,removeChild:Yo,appendChild:Po,parentNode:jo,nextSibling:Io,tagName:Fo,setTextContent:No,setStyleScope:Ro}),zo={create:function(e,t){qo(t)},update:function(e,t){e.data.ref!==t.data.ref&&(qo(e,!0),qo(t))},destroy:function(e){qo(e,!0)}};function qo(e,n){var i=e.data.ref;if(r(i)){var a=e.context,o=e.componentInstance||e.elm,s=n?null:o,c=n?void 0:o;if(l(i))ji(i,a,[s],a,"template ref function");else{var u=e.data.refInFor,d="string"==typeof i||"number"==typeof i,h=ct(i),f=a.$refs;if(d||h)if(u){var p=d?f[i]:i.value;n?t(p)&&w(p,o):t(p)?p.includes(o)||p.push(o):d?(f[i]=[o],Bo(a,i,f[i])):i.value=[o]}else if(d){if(n&&f[i]!==o)return;f[i]=c,Bo(a,i,s)}else if(h){if(n&&i.value!==o)return;i.value=s}else ra("Invalid template ref type: ".concat(typeof i))}}}function Bo(e,t,n){var i=e._setupState;i&&k(i,t)&&(ct(i[t])?i[t].value=n:i[t]=n)}var $o=new be("",{},[]),Wo=["create","activate","update","remove","destroy"];function Uo(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&Vo(e,t)||a(e.isAsyncPlaceholder)&&i(t.asyncFactory.error))}function Vo(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,a=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===a||Mo(i)&&Mo(a)}function Xo(e,t,n){var i,a,o={};for(i=t;i<=n;++i)r(a=e[i].key)&&(o[a]=i);return o}function Go(e){var n,o,l={},c=e.modules,u=e.nodeOps;for(n=0;n<Wo.length;++n)for(l[Wo[n]]=[],o=0;o<c.length;++o)r(c[o][Wo[n]])&&l[Wo[n]].push(c[o][Wo[n]]);function d(e){return new be(u.tagName(e).toLowerCase(),{},[],void 0,e)}function h(e,t){function n(){0==--n.listeners&&p(e)}return n.listeners=t,n}function p(e){var t=u.parentNode(e);r(t)&&u.removeChild(t,e)}function m(e,t){return!t&&!e.ns&&!(V.ignoredElements.length&&V.ignoredElements.some((function(t){return f(t)?t.test(e.tag):t===e.tag})))&&V.isUnknownElement(e.tag)}var g=0;function _(e,t,n,i,o,s,l){if(r(e.elm)&&r(s)&&(e=s[l]=ke(e)),e.isRootInsert=!o,!y(e,t,n,i)){var c=e.data,d=e.children,h=e.tag;r(h)?(c&&c.pre&&g++,m(e,g)&&ra("Unknown custom element: <"+h+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',e.context),e.elm=e.ns?u.createElementNS(e.ns,h):u.createElement(h,e),M(e),k(e,d,t),r(c)&&S(e,t),x(n,e.elm,i),c&&c.pre&&g--):a(e.isComment)?(e.elm=u.createComment(e.text),x(n,e.elm,i)):(e.elm=u.createTextNode(e.text),x(n,e.elm,i))}}function y(e,t,n,i){var o=e.data;if(r(o)){var s=r(e.componentInstance)&&o.keepAlive;if(r(o=o.hook)&&r(o=o.init)&&o(e,!1),r(e.componentInstance))return b(e,t),x(n,e.elm,i),a(s)&&w(e,t,n,i),!0}}function b(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,A(e)?(S(e,t),M(e)):(qo(e),t.push(e))}function w(e,t,n,i){for(var a,o=e;o.componentInstance;)if(r(a=(o=o.componentInstance._vnode).data)&&r(a=a.transition)){for(a=0;a<l.activate.length;++a)l.activate[a]($o,o);t.push(o);break}x(n,e.elm,i)}function x(e,t,n){r(e)&&(r(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function k(e,n,i){if(t(n)){O(n);for(var r=0;r<n.length;++r)_(n[r],i,e.elm,null,!0,n,r)}else s(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function A(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return r(e.tag)}function S(e,t){for(var i=0;i<l.create.length;++i)l.create[i]($o,e);r(n=e.data.hook)&&(r(n.create)&&n.create($o,e),r(n.insert)&&t.push(e))}function M(e){var t;if(r(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var n=e;n;)r(t=n.context)&&r(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent;r(t=Wn)&&t!==e.context&&t!==e.fnContext&&r(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function T(e,t,n,i,r,a){for(;i<=r;++i)_(n[i],a,e,t,!1,n,i)}function L(e){var t,n,i=e.data;if(r(i))for(r(t=i.hook)&&r(t=t.destroy)&&t(e),t=0;t<l.destroy.length;++t)l.destroy[t](e);if(r(t=e.children))for(n=0;n<e.children.length;++n)L(e.children[n])}function E(e,t,n){for(;t<=n;++t){var i=e[t];r(i)&&(r(i.tag)?(C(i),L(i)):p(i.elm))}}function C(e,t){if(r(t)||r(e.data)){var n,i=l.remove.length+1;for(r(t)?t.listeners+=i:t=h(e.elm,i),r(n=e.componentInstance)&&r(n=n._vnode)&&r(n.data)&&C(n,t),n=0;n<l.remove.length;++n)l.remove[n](e,t);r(n=e.data.hook)&&r(n=n.remove)?n(e,t):t()}else p(e.elm)}function D(e,t,n,a,o){var s,l,c,d=0,h=0,f=t.length-1,p=t[0],m=t[f],g=n.length-1,v=n[0],y=n[g],b=!o;for(O(n);d<=f&&h<=g;)i(p)?p=t[++d]:i(m)?m=t[--f]:Uo(p,v)?(P(p,v,a,n,h),p=t[++d],v=n[++h]):Uo(m,y)?(P(m,y,a,n,g),m=t[--f],y=n[--g]):Uo(p,y)?(P(p,y,a,n,g),b&&u.insertBefore(e,p.elm,u.nextSibling(m.elm)),p=t[++d],y=n[--g]):Uo(m,v)?(P(m,v,a,n,h),b&&u.insertBefore(e,m.elm,p.elm),m=t[--f],v=n[++h]):(i(s)&&(s=Xo(t,d,f)),i(l=r(v.key)?s[v.key]:Y(v,t,d,f))?_(v,a,e,p.elm,!1,n,h):Uo(c=t[l],v)?(P(c,v,a,n,h),t[l]=void 0,b&&u.insertBefore(e,c.elm,p.elm)):_(v,a,e,p.elm,!1,n,h),v=n[++h]);d>f?T(e,i(n[g+1])?null:n[g+1].elm,n,h,g,a):h>g&&E(t,d,f)}function O(e){for(var t={},n=0;n<e.length;n++){var i=e[n],a=i.key;r(a)&&(t[a]?ra("Duplicate keys detected: '".concat(a,"'. This may cause an update error."),i.context):t[a]=!0)}}function Y(e,t,n,i){for(var a=n;a<i;a++){var o=t[a];if(r(o)&&Uo(e,o))return a}}function P(e,t,n,o,s,c){if(e!==t){r(t.elm)&&r(o)&&(t=o[s]=ke(t));var d=t.elm=e.elm;if(a(e.isAsyncPlaceholder))r(t.asyncFactory.resolved)?N(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(a(t.isStatic)&&a(e.isStatic)&&t.key===e.key&&(a(t.isCloned)||a(t.isOnce)))t.componentInstance=e.componentInstance;else{var h,f=t.data;r(f)&&r(h=f.hook)&&r(h=h.prepatch)&&h(e,t);var p=e.children,m=t.children;if(r(f)&&A(t)){for(h=0;h<l.update.length;++h)l.update[h](e,t);r(h=f.hook)&&r(h=h.update)&&h(e,t)}i(t.text)?r(p)&&r(m)?p!==m&&D(d,p,m,n,c):r(m)?(O(m),r(e.text)&&u.setTextContent(d,""),T(d,null,m,0,m.length-1,n)):r(p)?E(p,0,p.length-1):r(e.text)&&u.setTextContent(d,""):e.text!==t.text&&u.setTextContent(d,t.text),r(f)&&r(h=f.hook)&&r(h=h.postpatch)&&h(e,t)}}}function j(e,t,n){if(a(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}var I=!1,F=v("attrs,class,staticClass,staticStyle,key");function N(e,t,n,i){var o,s=t.tag,l=t.data,c=t.children;if(i=i||l&&l.pre,t.elm=e,a(t.isComment)&&r(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(!R(e,t,i))return!1;if(r(l)&&(r(o=l.hook)&&r(o=o.init)&&o(t,!0),r(o=t.componentInstance)))return b(t,n),!0;if(r(s)){if(r(c))if(e.hasChildNodes())if(r(o=l)&&r(o=o.domProps)&&r(o=o.innerHTML)){if(o!==e.innerHTML)return"undefined"==typeof console||I||(I=!0,console.warn("Parent: ",e),console.warn("server innerHTML: ",o),console.warn("client innerHTML: ",e.innerHTML)),!1}else{for(var u=!0,d=e.firstChild,h=0;h<c.length;h++){if(!d||!N(d,c[h],n,i)){u=!1;break}d=d.nextSibling}if(!u||d)return"undefined"==typeof console||I||(I=!0,console.warn("Parent: ",e),console.warn("Mismatching childNodes vs. VNodes: ",e.childNodes,c)),!1}else k(t,c,n);if(r(l)){var f=!1;for(var p in l)if(!F(p)){f=!0,S(t,n);break}!f&&l.class&&_r(l.class)}}else e.data!==t.text&&(e.data=t.text);return!0}function R(e,t,n){return r(t.tag)?0===t.tag.indexOf("vue-component")||!m(t,n)&&t.tag.toLowerCase()===(e.tagName&&e.tagName.toLowerCase()):e.nodeType===(t.isComment?8:3)}return function(e,t,n,o){if(!i(t)){var s=!1,c=[];if(i(e))s=!0,_(t,c);else{var h=r(e.nodeType);if(!h&&Uo(e,t))P(e,t,c,null,null,o);else{if(h){if(1===e.nodeType&&e.hasAttribute($)&&(e.removeAttribute($),n=!0),a(n)){if(N(e,t,c))return j(t,c,!0),e;ra("The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.")}e=d(e)}var f=e.elm,p=u.parentNode(f);if(_(t,c,f._leaveCb?null:p,u.nextSibling(f)),r(t.parent))for(var m=t.parent,g=A(t);m;){for(var v=0;v<l.destroy.length;++v)l.destroy[v](m);if(m.elm=t.elm,g){for(var y=0;y<l.create.length;++y)l.create[y]($o,m);var b=m.data.hook.insert;if(b.merged)for(var w=b.fns.slice(1),x=0;x<w.length;x++)w[x]()}else qo(m);m=m.parent}r(p)?E([e],0,0):r(e.tag)&&L(e)}}return j(t,c,s),t.elm}r(e)&&L(e)}}var Jo={create:Qo,update:Qo,destroy:function(e){Qo(e,$o)}};function Qo(e,t){(e.data.directives||t.data.directives)&&Ko(e,t)}function Ko(e,t){var n,i,r,a=e===$o,o=t===$o,s=es(e.data.directives,e.context),l=es(t.data.directives,t.context),c=[],u=[];for(n in l)i=s[n],r=l[n],i?(r.oldValue=i.value,r.oldArg=i.arg,ns(r,"update",t,e),r.def&&r.def.componentUpdated&&u.push(r)):(ns(r,"bind",t,e),r.def&&r.def.inserted&&c.push(r));if(c.length){var d=function(){for(var n=0;n<c.length;n++)ns(c[n],"inserted",t,e)};a?Yt(t,"insert",d):d()}if(u.length&&Yt(t,"postpatch",(function(){for(var n=0;n<u.length;n++)ns(u[n],"componentUpdated",t,e)})),!a)for(n in s)l[n]||ns(s[n],"unbind",e,e,o)}var Zo=Object.create(null);function es(e,t){var n,i,r=Object.create(null);if(!e)return r;for(n=0;n<e.length;n++){if((i=e[n]).modifiers||(i.modifiers=Zo),r[ts(i)]=i,t._setupState&&t._setupState.__sfc){var a=i.def||Aa(t,"_setupState","v-"+i.name);i.def="function"==typeof a?{bind:a,update:a}:a}i.def=i.def||Aa(t.$options,"directives",i.name,!0)}return r}function ts(e){return e.rawName||"".concat(e.name,".").concat(Object.keys(e.modifiers||{}).join("."))}function ns(e,t,n,i,r){var a=e.def&&e.def[t];if(a)try{a(n.elm,e,n,i,r)}catch(i){Pi(i,n.context,"directive ".concat(e.name," ").concat(t," hook"))}}var is=[zo,Jo];function rs(e,t){var n=t.componentOptions;if(!(r(n)&&!1===n.Ctor.options.inheritAttrs||i(e.data.attrs)&&i(t.data.attrs))){var o,s,l=t.elm,c=e.data.attrs||{},u=t.data.attrs||{};for(o in(r(u.__ob__)||a(u._v_attr_proxy))&&(u=t.data.attrs=P({},u)),u)s=u[o],c[o]!==s&&as(l,o,s,t.data.pre);for(o in(ne||re)&&u.value!==c.value&&as(l,"value",u.value),c)i(u[o])&&(so(o)?l.removeAttributeNS(oo,lo(o)):no(o)||l.removeAttribute(o))}}function as(e,t,n,i){i||e.tagName.indexOf("-")>-1?os(e,t,n):ao(t)?co(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):no(t)?e.setAttribute(t,ro(t,n)):so(t)?co(n)?e.removeAttributeNS(oo,lo(t)):e.setAttributeNS(oo,t,n):os(e,t,n)}function os(e,t,n){if(co(n))e.removeAttribute(t);else{if(ne&&!ie&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var ss={create:rs,update:rs};function ls(e,t){var n=t.elm,a=t.data,o=e.data;if(!(i(a.staticClass)&&i(a.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=uo(t),l=n._transitionClasses;r(l)&&(s=po(s,mo(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var cs,us,ds,hs,fs,ps,ms,gs={create:ls,update:ls},_s=/[\w).+\-_$\]]/;function vs(e){var t,n,i,r,a,o=!1,s=!1,l=!1,c=!1,u=0,d=0,h=0,f=0;for(i=0;i<e.length;i++)if(n=t,t=e.charCodeAt(i),o)39===t&&92!==n&&(o=!1);else if(s)34===t&&92!==n&&(s=!1);else if(l)96===t&&92!==n&&(l=!1);else if(c)47===t&&92!==n&&(c=!1);else if(124!==t||124===e.charCodeAt(i+1)||124===e.charCodeAt(i-1)||u||d||h){switch(t){case 34:s=!0;break;case 39:o=!0;break;case 96:l=!0;break;case 40:h++;break;case 41:h--;break;case 91:d++;break;case 93:d--;break;case 123:u++;break;case 125:u--}if(47===t){for(var p=i-1,m=void 0;p>=0&&" "===(m=e.charAt(p));p--);m&&_s.test(m)||(c=!0)}}else void 0===r?(f=i+1,r=e.slice(0,i).trim()):g();function g(){(a||(a=[])).push(e.slice(f,i).trim()),f=i+1}if(void 0===r?r=e.slice(0,i).trim():0!==f&&g(),a)for(i=0;i<a.length;i++)r=ys(r,a[i]);return r}function ys(e,t){var n=t.indexOf("(");if(n<0)return'_f("'.concat(t,'")(').concat(e,")");var i=t.slice(0,n),r=t.slice(n+1);return'_f("'.concat(i,'")(').concat(e).concat(")"!==r?","+r:r)}function bs(e,t){console.error("[Vue compiler]: ".concat(e))}function ws(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function xs(e,t,n,i,r){(e.props||(e.props=[])).push(Os({name:t,value:n,dynamic:r},i)),e.plain=!1}function ks(e,t,n,i,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Os({name:t,value:n,dynamic:r},i)),e.plain=!1}function As(e,t,n,i){e.attrsMap[t]=n,e.attrsList.push(Os({name:t,value:n},i))}function Ss(e,t,n,i,r,a,o,s){(e.directives||(e.directives=[])).push(Os({name:t,rawName:n,value:i,arg:r,isDynamicArg:a,modifiers:o},s)),e.plain=!1}function Ms(e,t,n){return n?"_p(".concat(t,',"').concat(e,'")'):e+t}function Ts(t,n,i,r,a,o,s,l){var c;r=r||e,o&&r.prevent&&r.passive&&o("passive and prevent can't be used together. Passive handler can't prevent default event.",s),r.right?l?n="(".concat(n,")==='click'?'contextmenu':(").concat(n,")"):"click"===n&&(n="contextmenu",delete r.right):r.middle&&(l?n="(".concat(n,")==='click'?'mouseup':(").concat(n,")"):"click"===n&&(n="mouseup")),r.capture&&(delete r.capture,n=Ms("!",n,l)),r.once&&(delete r.once,n=Ms("~",n,l)),r.passive&&(delete r.passive,n=Ms("&",n,l)),r.native?(delete r.native,c=t.nativeEvents||(t.nativeEvents={})):c=t.events||(t.events={});var u=Os({value:i.trim(),dynamic:l},s);r!==e&&(u.modifiers=r);var d=c[n];Array.isArray(d)?a?d.unshift(u):d.push(u):c[n]=d?a?[u,d]:[d,u]:u,t.plain=!1}function Ls(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}function Es(e,t,n){var i=Cs(e,":"+t)||Cs(e,"v-bind:"+t);if(null!=i)return vs(i);if(!1!==n){var r=Cs(e,t);if(null!=r)return JSON.stringify(r)}}function Cs(e,t,n){var i;if(null!=(i=e.attrsMap[t]))for(var r=e.attrsList,a=0,o=r.length;a<o;a++)if(r[a].name===t){r.splice(a,1);break}return n&&delete e.attrsMap[t],i}function Ds(e,t){for(var n=e.attrsList,i=0,r=n.length;i<r;i++){var a=n[i];if(t.test(a.name))return n.splice(i,1),a}}function Os(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Ys(e,t,n){var i=n||{},r=i.number,a="$$v",o=a;i.trim&&(o="(typeof ".concat(a," === 'string'")+"? ".concat(a,".trim()")+": ".concat(a,")")),r&&(o="_n(".concat(o,")"));var s=Ps(t,o);e.model={value:"(".concat(t,")"),expression:JSON.stringify(t),callback:"function (".concat(a,") {").concat(s,"}")}}function Ps(e,t){var n=js(e);return null===n.key?"".concat(e,"=").concat(t):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(t,")")}function js(e){if(e=e.trim(),cs=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<cs-1)return(hs=e.lastIndexOf("."))>-1?{exp:e.slice(0,hs),key:'"'+e.slice(hs+1)+'"'}:{exp:e,key:null};for(us=e,hs=fs=ps=0;!Fs();)Ns(ds=Is())?Hs(ds):91===ds&&Rs(ds);return{exp:e.slice(0,fs),key:e.slice(fs+1,ps)}}function Is(){return us.charCodeAt(++hs)}function Fs(){return hs>=cs}function Ns(e){return 34===e||39===e}function Rs(e){var t=1;for(fs=hs;!Fs();)if(Ns(e=Is()))Hs(e);else if(91===e&&t++,93===e&&t--,0===t){ps=hs;break}}function Hs(e){for(var t=e;!Fs()&&(e=Is())!==t;);}var zs,qs="__r",Bs="__c";function $s(e,t,n){ms=n;var i=t.value,r=t.modifiers,a=e.tag,o=e.attrsMap.type;if("input"===a&&"file"===o&&ms("<".concat(e.tag,' v-model="').concat(i,'" type="file">:\n')+"File inputs are read only. Use a v-on:change listener instead.",e.rawAttrsMap["v-model"]),e.component)return Ys(e,i,r),!1;if("select"===a)Vs(e,i,r);else if("input"===a&&"checkbox"===o)Ws(e,i,r);else if("input"===a&&"radio"===o)Us(e,i,r);else if("input"===a||"textarea"===a)Xs(e,i,r);else{if(!V.isReservedTag(a))return Ys(e,i,r),!1;ms("<".concat(e.tag,' v-model="').concat(i,'">: ')+"v-model is not supported on this element type. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.",e.rawAttrsMap["v-model"])}return!0}function Ws(e,t,n){var i=n&&n.number,r=Es(e,"value")||"null",a=Es(e,"true-value")||"true",o=Es(e,"false-value")||"false";xs(e,"checked","Array.isArray(".concat(t,")")+"?_i(".concat(t,",").concat(r,")>-1")+("true"===a?":(".concat(t,")"):":_q(".concat(t,",").concat(a,")"))),Ts(e,"change","var $$a=".concat(t,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(a,"):(").concat(o,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(i?"_n("+r+")":r,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(Ps(t,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(Ps(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(Ps(t,"$$c"),"}"),null,!0)}function Us(e,t,n){var i=n&&n.number,r=Es(e,"value")||"null";r=i?"_n(".concat(r,")"):r,xs(e,"checked","_q(".concat(t,",").concat(r,")")),Ts(e,"change",Ps(t,r),null,!0)}function Vs(e,t,n){var i=n&&n.number,r='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;'+"return ".concat(i?"_n(val)":"val","})"),a="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",o="var $$selectedVal = ".concat(r,";");Ts(e,"change",o="".concat(o," ").concat(Ps(t,a)),null,!0)}function Xs(e,t,n){var i=e.attrsMap.type,r=e.attrsMap["v-bind:value"]||e.attrsMap[":value"],a=e.attrsMap["v-bind:type"]||e.attrsMap[":type"];if(r&&!a){var o=e.attrsMap["v-bind:value"]?"v-bind:value":":value";ms("".concat(o,'="').concat(r,'" conflicts with v-model on the same element ')+"because the latter already expands to a value binding internally",e.rawAttrsMap[o])}var s=n||{},l=s.lazy,c=s.number,u=s.trim,d=!l&&"range"!==i,h=l?"change":"range"===i?qs:"input",f="$event.target.value";u&&(f="$event.target.value.trim()"),c&&(f="_n(".concat(f,")"));var p=Ps(t,f);d&&(p="if($event.target.composing)return;".concat(p)),xs(e,"value","(".concat(t,")")),Ts(e,h,p,null,!0),(u||c)&&Ts(e,"blur","$forceUpdate()")}function Gs(e){if(r(e[qs])){var t=ne?"change":"input";e[t]=[].concat(e[qs],e[t]||[]),delete e[qs]}r(e[Bs])&&(e.change=[].concat(e[Bs],e.change||[]),delete e[Bs])}function Js(e,t,n){var i=zs;return function r(){null!==t.apply(null,arguments)&&Zs(e,r,n,i)}}var Qs=Ri&&!(se&&Number(se[1])<=53);function Ks(e,t,n,i){if(Qs){var r=di,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}zs.addEventListener(e,t,ce?{capture:n,passive:i}:n)}function Zs(e,t,n,i){(i||zs).removeEventListener(e,t._wrapper||t,n)}function el(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};zs=t.elm||e.elm,Gs(n),Ot(n,r,Ks,Zs,Js,t.context),zs=void 0}}var tl,nl={create:el,update:el,destroy:function(e){return el(e,$o)}};function il(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,o,s=t.elm,l=e.data.domProps||{},c=t.data.domProps||{};for(n in(r(c.__ob__)||a(c._v_attr_proxy))&&(c=t.data.domProps=P({},c)),l)n in c||(s[n]="");for(n in c){if(o=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===l[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=o;var u=i(o)?"":String(o);rl(s,u)&&(s.value=u)}else if("innerHTML"===n&&bo(s.tagName)&&i(s.innerHTML)){(tl=tl||document.createElement("div")).innerHTML="<svg>".concat(o,"</svg>");for(var d=tl.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;d.firstChild;)s.appendChild(d.firstChild)}else if(o!==l[n])try{s[n]=o}catch(e){}}}}function rl(e,t){return!e.composing&&("OPTION"===e.tagName||al(e,t)||ol(e,t))}function al(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}function ol(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return _(n)!==_(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var sl={create:il,update:il},ll=A((function(e){var t={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function cl(e){var t=ul(e.style);return e.staticStyle?P(e.staticStyle,t):t}function ul(e){return Array.isArray(e)?j(e):"string"==typeof e?ll(e):e}function dl(e,t){var n,i={};if(t)for(var r=e;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(n=cl(r.data))&&P(i,n);(n=cl(e.data))&&P(i,n);for(var a=e;a=a.parent;)a.data&&(n=cl(a.data))&&P(i,n);return i}var hl,fl=/^--/,pl=/\s*!important$/,ml=function(e,t,n){if(fl.test(t))e.style.setProperty(t,n);else if(pl.test(n))e.style.setProperty(E(t),n.replace(pl,""),"important");else{var i=_l(t);if(Array.isArray(n))for(var r=0,a=n.length;r<a;r++)e.style[i]=n[r];else e.style[i]=n}},gl=["Webkit","Moz","ms"],_l=A((function(e){if(hl=hl||document.createElement("div").style,"filter"!==(e=M(e))&&e in hl)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<gl.length;n++){var i=gl[n]+t;if(i in hl)return i}}));function vl(e,t){var n=t.data,a=e.data;if(!(i(n.staticStyle)&&i(n.style)&&i(a.staticStyle)&&i(a.style))){var o,s,l=t.elm,c=a.staticStyle,u=a.normalizedStyle||a.style||{},d=c||u,h=ul(t.data.style)||{};t.data.normalizedStyle=r(h.__ob__)?P({},h):h;var f=dl(t,!0);for(s in d)i(f[s])&&ml(l,s,"");for(s in f)(o=f[s])!==d[s]&&ml(l,s,null==o?"":o)}}var yl={create:vl,update:vl},bl=/\s+/;function wl(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(bl).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function xl(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(bl).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" ".concat(e.getAttribute("class")||""," "),i=" "+t+" ";n.indexOf(i)>=0;)n=n.replace(i," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function kl(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&P(t,Al(e.name||"v")),P(t,e),t}return"string"==typeof e?Al(e):void 0}}var Al=A((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),Sl=ee&&!ie,Ml="transition",Tl="animation",Ll="transition",El="transitionend",Cl="animation",Dl="animationend";Sl&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ll="WebkitTransition",El="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Cl="WebkitAnimation",Dl="webkitAnimationEnd"));var Ol=ee?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Yl(e){Ol((function(){Ol(e)}))}function Pl(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),wl(e,t))}function jl(e,t){e._transitionClasses&&w(e._transitionClasses,t),xl(e,t)}function Il(e,t,n){var i=Nl(e,t),r=i.type,a=i.timeout,o=i.propCount;if(!r)return n();var s=r===Ml?El:Dl,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=o&&c()};setTimeout((function(){l<o&&c()}),a+1),e.addEventListener(s,u)}var Fl=/\b(transform|all)(,|$)/;function Nl(e,t){var n,i=window.getComputedStyle(e),r=(i[Ll+"Delay"]||"").split(", "),a=(i[Ll+"Duration"]||"").split(", "),o=Rl(r,a),s=(i[Cl+"Delay"]||"").split(", "),l=(i[Cl+"Duration"]||"").split(", "),c=Rl(s,l),u=0,d=0;return t===Ml?o>0&&(n=Ml,u=o,d=a.length):t===Tl?c>0&&(n=Tl,u=c,d=l.length):d=(n=(u=Math.max(o,c))>0?o>c?Ml:Tl:null)?n===Ml?a.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===Ml&&Fl.test(i[Ll+"Property"])}}function Rl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Hl(t)+Hl(e[n])})))}function Hl(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function zl(e,t){var n=e.elm;r(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var a=kl(e.data.transition);if(!i(a)&&!r(n._enterCb)&&1===n.nodeType){for(var o=a.css,s=a.type,u=a.enterClass,d=a.enterToClass,h=a.enterActiveClass,f=a.appearClass,p=a.appearToClass,m=a.appearActiveClass,g=a.beforeEnter,v=a.enter,y=a.afterEnter,b=a.enterCancelled,w=a.beforeAppear,x=a.appear,k=a.afterAppear,A=a.appearCancelled,S=a.duration,M=Wn,T=Wn.$vnode;T&&T.parent;)M=T.context,T=T.parent;var L=!M._isMounted||!e.isRootInsert;if(!L||x||""===x){var E=L&&f?f:u,C=L&&m?m:h,D=L&&p?p:d,O=L&&w||g,Y=L&&l(x)?x:v,P=L&&k||y,j=L&&A||b,I=_(c(S)?S.enter:S);null!=I&&Bl(I,"enter",e);var F=!1!==o&&!ie,N=Wl(Y),R=n._enterCb=q((function(){F&&(jl(n,D),jl(n,C)),R.cancelled?(F&&jl(n,E),j&&j(n)):P&&P(n),n._enterCb=null}));e.data.show||Yt(e,"insert",(function(){var t=n.parentNode,i=t&&t._pending&&t._pending[e.key];i&&i.tag===e.tag&&i.elm._leaveCb&&i.elm._leaveCb(),Y&&Y(n,R)})),O&&O(n),F&&(Pl(n,E),Pl(n,C),Yl((function(){jl(n,E),R.cancelled||(Pl(n,D),N||($l(I)?setTimeout(R,I):Il(n,s,R)))}))),e.data.show&&(t&&t(),Y&&Y(n,R)),F||N||R()}}}function ql(e,t){var n=e.elm;r(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var a=kl(e.data.transition);if(i(a)||1!==n.nodeType)return t();if(!r(n._leaveCb)){var o=a.css,s=a.type,l=a.leaveClass,u=a.leaveToClass,d=a.leaveActiveClass,h=a.beforeLeave,f=a.leave,p=a.afterLeave,m=a.leaveCancelled,g=a.delayLeave,v=a.duration,y=!1!==o&&!ie,b=Wl(f),w=_(c(v)?v.leave:v);r(w)&&Bl(w,"leave",e);var x=n._leaveCb=q((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(jl(n,u),jl(n,d)),x.cancelled?(y&&jl(n,l),m&&m(n)):(t(),p&&p(n)),n._leaveCb=null}));g?g(k):k()}function k(){x.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),y&&(Pl(n,l),Pl(n,d),Yl((function(){jl(n,l),x.cancelled||(Pl(n,u),b||($l(w)?setTimeout(x,w):Il(n,s,x)))}))),f&&f(n,x),y||b||x())}}function Bl(e,t,n){"number"!=typeof e?ra("<transition> explicit ".concat(t," duration is not a valid number - ")+"got ".concat(JSON.stringify(e),"."),n.context):isNaN(e)&&ra("<transition> explicit ".concat(t," duration is NaN - ")+"the duration expression might be incorrect.",n.context)}function $l(e){return"number"==typeof e&&!isNaN(e)}function Wl(e){if(i(e))return!1;var t=e.fns;return r(t)?Wl(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Ul(e,t){!0!==t.data.show&&zl(t)}var Vl=[ss,gs,nl,sl,yl,ee?{create:Ul,activate:Ul,remove:function(e,t){!0!==e.data.show?ql(e,t):t()}}:{}].concat(is),Xl=Go({nodeOps:Ho,modules:Vl});ie&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&nc(e,"input")}));var Gl={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?Yt(n,"postpatch",(function(){Gl.componentUpdated(e,t,n)})):Jl(e,t,n.context),e._vOptions=[].map.call(e.options,Zl)):("textarea"===n.tag||Mo(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ec),e.addEventListener("compositionend",tc),e.addEventListener("change",tc),ie&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Jl(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,Zl);r.some((function(e,t){return!H(e,i[t])}))&&(e.multiple?t.value.some((function(e){return Kl(e,r)})):t.value!==t.oldValue&&Kl(t.value,r))&&nc(e,"change")}}};function Jl(e,t,n){Ql(e,t,n),(ne||re)&&setTimeout((function(){Ql(e,t,n)}),0)}function Ql(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var a,o,s=0,l=e.options.length;s<l;s++)if(o=e.options[s],r)a=z(i,Zl(o))>-1,o.selected!==a&&(o.selected=a);else if(H(Zl(o),i))return void(e.selectedIndex!==s&&(e.selectedIndex=s));r||(e.selectedIndex=-1)}else ra('<select multiple v-model="'.concat(t.expression,'"> ')+"expects an Array value for its binding, but got ".concat(Object.prototype.toString.call(i).slice(8,-1)),n)}function Kl(e,t){return t.every((function(t){return!H(t,e)}))}function Zl(e){return"_value"in e?e._value:e.value}function ec(e){e.target.composing=!0}function tc(e){e.target.composing&&(e.target.composing=!1,nc(e.target,"input"))}function nc(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ic(e){return!e.componentInstance||e.data&&e.data.transition?e:ic(e.componentInstance._vnode)}var rc={model:Gl,show:{bind:function(e,t,n){var i=t.value,r=(n=ic(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,zl(n,(function(){e.style.display=a}))):e.style.display=i?a:"none"},update:function(e,t,n){var i=t.value;!i!=!t.oldValue&&((n=ic(n)).data&&n.data.transition?(n.data.show=!0,i?zl(n,(function(){e.style.display=e.__vOriginalDisplay})):ql(n,(function(){e.style.display="none"}))):e.style.display=i?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}}},ac={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function oc(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?oc(Yn(t.children)):e}function sc(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var i in r)t[M(i)]=r[i];return t}function lc(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function cc(e){for(;e=e.parent;)if(e.data.transition)return!0}function uc(e,t){return t.key===e.key&&t.tag===e.tag}var dc=function(e){return e.tag||un(e)},hc=function(e){return"show"===e.name},fc={name:"transition",props:ac,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(dc)).length){n.length>1&&ra("<transition> can only be used on a single element. Use <transition-group> for lists.",this.$parent);var i=this.mode;i&&"in-out"!==i&&"out-in"!==i&&ra("invalid <transition> mode: "+i,this.$parent);var r=n[0];if(cc(this.$vnode))return r;var a=oc(r);if(!a)return r;if(this._leaving)return lc(e,r);var o="__transition-".concat(this._uid,"-");a.key=null==a.key?a.isComment?o+"comment":o+a.tag:s(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var l=(a.data||(a.data={})).transition=sc(this),c=this._vnode,u=oc(c);if(a.data.directives&&a.data.directives.some(hc)&&(a.data.show=!0),u&&u.data&&!uc(a,u)&&!un(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=P({},l);if("out-in"===i)return this._leaving=!0,Yt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),lc(e,r);if("in-out"===i){if(un(a))return c;var h,f=function(){h()};Yt(l,"afterEnter",f),Yt(l,"enterCancelled",f),Yt(d,"delayLeave",(function(e){h=e}))}}return r}}},pc=P({tag:String,moveClass:String},ac);function mc(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function gc(e){e.data.newPos=e.elm.getBoundingClientRect()}function _c(e){var t=e.data.pos,n=e.data.newPos,i=t.left-n.left,r=t.top-n.top;if(i||r){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate(".concat(i,"px,").concat(r,"px)"),a.transitionDuration="0s"}}delete pc.mode;var vc={Transition:fc,TransitionGroup:{props:pc,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=Vn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],a=this.children=[],o=sc(this),s=0;s<r.length;s++)if((h=r[s]).tag)if(null!=h.key&&0!==String(h.key).indexOf("__vlist"))a.push(h),n[h.key]=h,(h.data||(h.data={})).transition=o;else{var l=h.componentOptions,c=l?Xr(l.Ctor.options)||l.tag||"":h.tag;ra("<transition-group> children must be keyed: <".concat(c,">"))}if(i){var u=[],d=[];for(s=0;s<i.length;s++){var h;(h=i[s]).data.transition=o,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?u.push(h):d.push(h)}this.kept=e(t,null,u),this.removed=d}return e(t,null,a)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(mc),e.forEach(gc),e.forEach(_c),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,i=n.style;Pl(n,t),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(El,n._moveCb=function e(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(El,e),n._moveCb=null,jl(n,t))})}})))},methods:{hasMove:function(e,t){if(!Sl)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){xl(n,e)})),wl(n,t),n.style.display="none",this.$el.appendChild(n);var i=Nl(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}}};Ra.config.mustUseProp=to,Ra.config.isReservedTag=xo,Ra.config.isReservedAttr=Za,Ra.config.getTagNamespace=ko,Ra.config.isUnknownElement=So,P(Ra.options.directives,rc),P(Ra.options.components,vc),Ra.prototype.__patch__=ee?Xl:I,Ra.prototype.$mount=function(e,t){return Jn(this,e=e&&ee?To(e):void 0,t)},ee&&setTimeout((function(){V.devtools&&(he?he.emit("init",Ra):console[console.info?"info":"log"]("Download the Vue Devtools extension for a better development experience:\nhttps://github.com/vuejs/vue-devtools")),!1!==V.productionTip&&"undefined"!=typeof console&&console[console.info?"info":"log"]("You are running Vue in development mode.\nMake sure to turn on production mode when deploying for production.\nSee more tips at https://vuejs.org/guide/deployment.html")}),0);var yc=/\{\{((?:.|\r?\n)+?)\}\}/g,bc=/[-.*+?^${}()|[\]\/\\]/g,wc=A((function(e){var t=e[0].replace(bc,"\\$&"),n=e[1].replace(bc,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));function xc(e,t){var n=t?wc(t):yc;if(n.test(e)){for(var i,r,a,o=[],s=[],l=n.lastIndex=0;i=n.exec(e);){(r=i.index)>l&&(s.push(a=e.slice(l,r)),o.push(JSON.stringify(a)));var c=vs(i[1].trim());o.push("_s(".concat(c,")")),s.push({"@binding":c}),l=r+i[0].length}return l<e.length&&(s.push(a=e.slice(l)),o.push(JSON.stringify(a))),{expression:o.join("+"),tokens:s}}}function kc(e,t){var n=t.warn||bs,i=Cs(e,"class");i&&xc(i,t.delimiters)&&n('class="'.concat(i,'": ')+'Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div class="{{ val }}">, use <div :class="val">.',e.rawAttrsMap.class),i&&(e.staticClass=JSON.stringify(i.replace(/\s+/g," ").trim()));var r=Es(e,"class",!1);r&&(e.classBinding=r)}function Ac(e){var t="";return e.staticClass&&(t+="staticClass:".concat(e.staticClass,",")),e.classBinding&&(t+="class:".concat(e.classBinding,",")),t}var Sc={staticKeys:["staticClass"],transformNode:kc,genData:Ac};function Mc(e,t){var n=t.warn||bs,i=Cs(e,"style");i&&(xc(i,t.delimiters)&&n('style="'.concat(i,'": ')+'Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div style="{{ val }}">, use <div :style="val">.',e.rawAttrsMap.style),e.staticStyle=JSON.stringify(ll(i)));var r=Es(e,"style",!1);r&&(e.styleBinding=r)}function Tc(e){var t="";return e.staticStyle&&(t+="staticStyle:".concat(e.staticStyle,",")),e.styleBinding&&(t+="style:(".concat(e.styleBinding,"),")),t}var Lc,Ec={staticKeys:["staticStyle"],transformNode:Mc,genData:Tc},Cc={decode:function(e){return(Lc=Lc||document.createElement("div")).innerHTML=e,Lc.textContent}},Dc=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Oc=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Yc=v("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Pc=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,jc=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ic="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(X.source,"]*"),Fc="((?:".concat(Ic,"\\:)?").concat(Ic,")"),Nc=new RegExp("^<".concat(Fc)),Rc=/^\s*(\/?)>/,Hc=new RegExp("^<\\/".concat(Fc,"[^>]*>")),zc=/^<!DOCTYPE [^>]+>/i,qc=/^<!\--/,Bc=/^<!\[/,$c=v("script,style,textarea",!0),Wc={},Uc={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Vc=/&(?:lt|gt|quot|amp|#39);/g,Xc=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Gc=v("pre,textarea",!0),Jc=function(e,t){return e&&Gc(e)&&"\n"===t[0]};function Qc(e,t){var n=t?Xc:Vc;return e.replace(n,(function(e){return Uc[e]}))}function Kc(e,t){for(var n,i,r=[],a=t.expectHTML,o=t.isUnaryTag||F,s=t.canBeLeftOpenTag||F,l=0,c=function(){if(n=e,i&&$c(i)){var a=0,o=i.toLowerCase(),s=Wc[o]||(Wc[o]=new RegExp("([\\s\\S]*?)(</"+o+"[^>]*>)","i"));w=e.replace(s,(function(e,n,i){return a=i.length,$c(o)||"noscript"===o||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Jc(o,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""})),l+=e.length-w.length,e=w,f(o,l-a,l)}else{var c=e.indexOf("<");if(0===c){if(qc.test(e)){var p=e.indexOf("--\x3e");if(p>=0)return t.shouldKeepComment&&t.comment&&t.comment(e.substring(4,p),l,l+p+3),u(p+3),"continue"}if(Bc.test(e)){var m=e.indexOf("]>");if(m>=0)return u(m+2),"continue"}var g=e.match(zc);if(g)return u(g[0].length),"continue";var _=e.match(Hc);if(_){var v=l;return u(_[0].length),f(_[1],v,l),"continue"}var y=d();if(y)return h(y),Jc(y.tagName,e)&&u(1),"continue"}var b=void 0,w=void 0,x=void 0;if(c>=0){for(w=e.slice(c);!(Hc.test(w)||Nc.test(w)||qc.test(w)||Bc.test(w)||(x=w.indexOf("<",1))<0);)c+=x,w=e.slice(c);b=e.substring(0,c)}c<0&&(b=e),b&&u(b.length),t.chars&&b&&t.chars(b,l-b.length,l)}if(e===n)return t.chars&&t.chars(e),!r.length&&t.warn&&t.warn('Mal-formatted tag at end of template: "'.concat(e,'"'),{start:l+e.length}),"break"};e&&"break"!==c(););function u(t){l+=t,e=e.substring(t)}function d(){var t=e.match(Nc);if(t){var n={tagName:t[1],attrs:[],start:l};u(t[0].length);for(var i=void 0,r=void 0;!(i=e.match(Rc))&&(r=e.match(jc)||e.match(Pc));)r.start=l,u(r[0].length),r.end=l,n.attrs.push(r);if(i)return n.unarySlash=i[1],u(i[0].length),n.end=l,n}}function h(e){var n=e.tagName,l=e.unarySlash;a&&("p"===i&&Yc(n)&&f(i),s(n)&&i===n&&f(n));for(var c=o(n)||!!l,u=e.attrs.length,d=new Array(u),h=0;h<u;h++){var p=e.attrs[h],m=p[3]||p[4]||p[5]||"",g="a"===n&&"href"===p[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;d[h]={name:p[1],value:Qc(m,g)},t.outputSourceRange&&(d[h].start=p.start+p[0].match(/^\s*/).length,d[h].end=p.end)}c||(r.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:e.start,end:e.end}),i=n),t.start&&t.start(n,d,c,e.start,e.end)}function f(e,n,a){var o,s;if(null==n&&(n=l),null==a&&(a=l),e)for(s=e.toLowerCase(),o=r.length-1;o>=0&&r[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=r.length-1;c>=o;c--)(c>o||!e)&&t.warn&&t.warn("tag <".concat(r[c].tag,"> has no matching end tag."),{start:r[c].start,end:r[c].end}),t.end&&t.end(r[c].tag,n,a);r.length=o,i=o&&r[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,a):"p"===s&&(t.start&&t.start(e,[],!1,n,a),t.end&&t.end(e,n,a))}f()}var Zc,eu,tu,nu,iu,ru,au,ou,su,lu=/^@|^v-on:/,cu=/^v-|^@|^:|^#/,uu=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,du=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,hu=/^\(|\)$/g,fu=/^\[.*\]$/,pu=/:(.*)$/,mu=/^:|^\.|^v-bind:/,gu=/\.[^.\]]+(?=[^\]]*$)/g,_u=/^v-slot(:|$)|^#/,vu=/[\r\n]/,yu=/[ \f\t\r\n]+/g,bu=/[\s"'<>\/=]/,wu=A(Cc.decode),xu="_empty_";function ku(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:$u(t),rawAttrsMap:{},parent:n,children:[]}}function Au(e,t){Zc=t.warn||bs,ru=t.isPreTag||F,au=t.mustUseProp||F,ou=t.getTagNamespace||F;var n=t.isReservedTag||F;su=function(e){return!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag)))},tu=ws(t.modules,"transformNode"),nu=ws(t.modules,"preTransformNode"),iu=ws(t.modules,"postTransformNode"),eu=t.delimiters;var i,r,a=[],o=!1!==t.preserveWhitespace,s=t.whitespace,l=!1,c=!1,u=!1;function d(e,t){u||(u=!0,Zc(e,t))}function h(e){if(f(e),l||e.processed||(e=Tu(e,t)),a.length||e===i||(i.if&&(e.elseif||e.else)?(p(e),ju(i,{exp:e.elseif,block:e})):d("Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.",{start:e.start})),r&&!e.forbidden)if(e.elseif||e.else)Yu(e,r);else{if(e.slotScope){var n=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[n]=e}r.children.push(e),e.parent=r}e.children=e.children.filter((function(e){return!e.slotScope})),f(e),e.pre&&(l=!1),ru(e.tag)&&(c=!1);for(var o=0;o<iu.length;o++)iu[o](e,t)}function f(e){if(!c)for(var t=void 0;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}function p(e){"slot"!==e.tag&&"template"!==e.tag||d("Cannot use <".concat(e.tag,"> as component root element because it may ")+"contain multiple nodes.",{start:e.start}),e.attrsMap.hasOwnProperty("v-for")&&d("Cannot use v-for on stateful component root element because it renders multiple elements.",e.rawAttrsMap["v-for"])}return Kc(e,{warn:Zc,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,o,s,u){var d=r&&r.ns||ou(e);ne&&"svg"===d&&(n=Gu(n));var f=ku(e,n,r);d&&(f.ns=d),t.outputSourceRange&&(f.start=s,f.end=u,f.rawAttrsMap=f.attrsList.reduce((function(e,t){return e[t.name]=t,e}),{})),n.forEach((function(e){bu.test(e.name)&&Zc("Invalid dynamic argument expression: attribute names cannot contain spaces, quotes, <, >, / or =.",t.outputSourceRange?{start:e.start+e.name.indexOf("["),end:e.start+e.name.length}:void 0)})),Uu(f)&&!de()&&(f.forbidden=!0,Zc("Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as "+"<".concat(e,">")+", as they will not be parsed.",{start:f.start}));for(var m=0;m<nu.length;m++)f=nu[m](f,t)||f;l||(Su(f),f.pre&&(l=!0)),ru(f.tag)&&(c=!0),l?Mu(f):f.processed||(Cu(f),Ou(f),Iu(f)),i||p(i=f),o?h(f):(r=f,a.push(f))},end:function(e,n,i){var o=a[a.length-1];a.length-=1,r=a[a.length-1],t.outputSourceRange&&(o.end=i),h(o)},chars:function(n,i,a){if(r){if(!ne||"textarea"!==r.tag||r.attrsMap.placeholder!==n){var u=r.children;if(n=c||n.trim()?Wu(r)?n:wu(n):u.length?s?"condense"===s&&vu.test(n)?"":" ":o?" ":"":""){c||"condense"!==s||(n=n.replace(yu," "));var h=void 0,f=void 0;!l&&" "!==n&&(h=xc(n,eu))?f={type:2,expression:h.expression,tokens:h.tokens,text:n}:" "===n&&u.length&&" "===u[u.length-1].text||(f={type:3,text:n}),f&&(t.outputSourceRange&&(f.start=i,f.end=a),u.push(f))}}}else n===e?d("Component template requires a root element, rather than just text.",{start:i}):(n=n.trim())&&d('text "'.concat(n,'" outside root element will be ignored.'),{start:i})},comment:function(e,n,i){if(r){var a={type:3,text:e,isComment:!0};t.outputSourceRange&&(a.start=n,a.end=i),r.children.push(a)}}}),i}function Su(e){null!=Cs(e,"v-pre")&&(e.pre=!0)}function Mu(e){var t=e.attrsList,n=t.length;if(n)for(var i=e.attrs=new Array(n),r=0;r<n;r++)i[r]={name:t[r].name,value:JSON.stringify(t[r].value)},null!=t[r].start&&(i[r].start=t[r].start,i[r].end=t[r].end);else e.pre||(e.plain=!0)}function Tu(e,t){Lu(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,Eu(e),Fu(e),Ru(e),Hu(e);for(var n=0;n<tu.length;n++)e=tu[n](e,t)||e;return zu(e),e}function Lu(e){var t=Es(e,"key");if(t){if("template"===e.tag&&Zc("<template> cannot be keyed. Place the key on real elements instead.",Ls(e,"key")),e.for){var n=e.iterator2||e.iterator1,i=e.parent;n&&n===t&&i&&"transition-group"===i.tag&&Zc("Do not use v-for index as key on <transition-group> children, this is the same as not using keys.",Ls(e,"key"),!0)}e.key=t}}function Eu(e){var t=Es(e,"ref");t&&(e.ref=t,e.refInFor=qu(e))}function Cu(e){var t;if(t=Cs(e,"v-for")){var n=Du(t);n?P(e,n):Zc("Invalid v-for expression: ".concat(t),e.rawAttrsMap["v-for"])}}function Du(e){var t=e.match(uu);if(t){var n={};n.for=t[2].trim();var i=t[1].trim().replace(hu,""),r=i.match(du);return r?(n.alias=i.replace(du,"").trim(),n.iterator1=r[1].trim(),r[2]&&(n.iterator2=r[2].trim())):n.alias=i,n}}function Ou(e){var t=Cs(e,"v-if");if(t)e.if=t,ju(e,{exp:t,block:e});else{null!=Cs(e,"v-else")&&(e.else=!0);var n=Cs(e,"v-else-if");n&&(e.elseif=n)}}function Yu(e,t){var n=Pu(t.children);n&&n.if?ju(n,{exp:e.elseif,block:e}):Zc("v-".concat(e.elseif?'else-if="'+e.elseif+'"':"else"," ")+"used on element <".concat(e.tag,"> without corresponding v-if."),e.rawAttrsMap[e.elseif?"v-else-if":"v-else"])}function Pu(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];" "!==e[t].text&&Zc('text "'.concat(e[t].text.trim(),'" between v-if and v-else(-if) ')+"will be ignored.",e[t]),e.pop()}}function ju(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function Iu(e){null!=Cs(e,"v-once")&&(e.once=!0)}function Fu(e){var t;"template"===e.tag?((t=Cs(e,"scope"))&&Zc('the "scope" attribute for scoped slots have been deprecated and replaced by "slot-scope" since 2.5. The new "slot-scope" attribute can also be used on plain elements in addition to <template> to denote scoped slots.',e.rawAttrsMap.scope,!0),e.slotScope=t||Cs(e,"slot-scope")):(t=Cs(e,"slot-scope"))&&(e.attrsMap["v-for"]&&Zc("Ambiguous combined usage of slot-scope and v-for on <".concat(e.tag,"> ")+"(v-for takes higher priority). Use a wrapper <template> for the scoped slot to make it clearer.",e.rawAttrsMap["slot-scope"],!0),e.slotScope=t);var n,i=Es(e,"slot");if(i&&(e.slotTarget='""'===i?'"default"':i,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||ks(e,"slot",i,Ls(e,"slot"))),"template"===e.tag){if(n=Ds(e,_u)){(e.slotTarget||e.slotScope)&&Zc("Unexpected mixed usage of different slot syntaxes.",e),e.parent&&!su(e.parent)&&Zc("<template v-slot> can only appear at the root level inside the receiving component",e);var r=Nu(n),a=r.name,o=r.dynamic;e.slotTarget=a,e.slotTargetDynamic=o,e.slotScope=n.value||xu}}else if(n=Ds(e,_u)){su(e)||Zc("v-slot can only be used on components or <template>.",n),(e.slotScope||e.slotTarget)&&Zc("Unexpected mixed usage of different slot syntaxes.",e),e.scopedSlots&&Zc("To avoid scope ambiguity, the default slot should also use <template> syntax when there are other named slots.",n);var s=e.scopedSlots||(e.scopedSlots={}),l=Nu(n),c=l.name,u=(o=l.dynamic,s[c]=ku("template",[],e));u.slotTarget=c,u.slotTargetDynamic=o,u.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=u,!0})),u.slotScope=n.value||xu,e.children=[],e.plain=!1}}function Nu(e){var t=e.name.replace(_u,"");return t||("#"!==e.name[0]?t="default":Zc("v-slot shorthand syntax requires a slot name.",e)),fu.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'.concat(t,'"'),dynamic:!1}}function Ru(e){"slot"===e.tag&&(e.slotName=Es(e,"name"),e.key&&Zc("`key` does not work on <slot> because slots are abstract outlets and can possibly expand into multiple elements. Use the key on a wrapping element instead.",Ls(e,"key")))}function Hu(e){var t;(t=Es(e,"is"))&&(e.component=t),null!=Cs(e,"inline-template")&&(e.inlineTemplate=!0)}function zu(e){var t,n,i,r,a,o,s,l,c=e.attrsList;for(t=0,n=c.length;t<n;t++)if(i=r=c[t].name,a=c[t].value,cu.test(i))if(e.hasBindings=!0,(o=Bu(i.replace(cu,"")))&&(i=i.replace(gu,"")),mu.test(i))i=i.replace(mu,""),a=vs(a),(l=fu.test(i))&&(i=i.slice(1,-1)),0===a.trim().length&&Zc('The value for a v-bind expression cannot be empty. Found in "v-bind:'.concat(i,'"')),o&&(o.prop&&!l&&"innerHtml"===(i=M(i))&&(i="innerHTML"),o.camel&&!l&&(i=M(i)),o.sync&&(s=Ps(a,"$event"),l?Ts(e,'"update:"+('.concat(i,")"),s,null,!1,Zc,c[t],!0):(Ts(e,"update:".concat(M(i)),s,null,!1,Zc,c[t]),E(i)!==M(i)&&Ts(e,"update:".concat(E(i)),s,null,!1,Zc,c[t])))),o&&o.prop||!e.component&&au(e.tag,e.attrsMap.type,i)?xs(e,i,a,c[t],l):ks(e,i,a,c[t],l);else if(lu.test(i))i=i.replace(lu,""),(l=fu.test(i))&&(i=i.slice(1,-1)),Ts(e,i,a,o,!1,Zc,c[t],l);else{var u=(i=i.replace(cu,"")).match(pu),d=u&&u[1];l=!1,d&&(i=i.slice(0,-(d.length+1)),fu.test(d)&&(d=d.slice(1,-1),l=!0)),Ss(e,i,r,a,d,l,o,c[t]),"model"===i&&Ju(e,a)}else xc(a,eu)&&Zc("".concat(i,'="').concat(a,'": ')+'Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div id="{{ val }}">, use <div :id="val">.',c[t]),ks(e,i,JSON.stringify(a),c[t]),!e.component&&"muted"===i&&au(e.tag,e.attrsMap.type,i)&&xs(e,i,"true",c[t])}function qu(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}function Bu(e){var t=e.match(gu);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function $u(e){for(var t={},n=0,i=e.length;n<i;n++)!t[e[n].name]||ne||re||Zc("duplicate attribute: "+e[n].name,e[n]),t[e[n].name]=e[n].value;return t}function Wu(e){return"script"===e.tag||"style"===e.tag}function Uu(e){return"style"===e.tag||"script"===e.tag&&(!e.attrsMap.type||"text/javascript"===e.attrsMap.type)}var Vu=/^xmlns:NS\d+/,Xu=/^NS\d+:/;function Gu(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Vu.test(i.name)||(i.name=i.name.replace(Xu,""),t.push(i))}return t}function Ju(e,t){for(var n=e;n;)n.for&&n.alias===t&&Zc("<".concat(e.tag,' v-model="').concat(t,'">: ')+"You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an array of objects and use v-model on an object property instead.",e.rawAttrsMap["v-model"]),n=n.parent}function Qu(e,t){if("input"===e.tag){var n=e.attrsMap;if(!n["v-model"])return;var i=void 0;if((n[":type"]||n["v-bind:type"])&&(i=Es(e,"type")),n.type||i||!n["v-bind"]||(i="(".concat(n["v-bind"],").type")),i){var r=Cs(e,"v-if",!0),a=r?"&&(".concat(r,")"):"",o=null!=Cs(e,"v-else",!0),s=Cs(e,"v-else-if",!0),l=Ku(e);Cu(l),As(l,"type","checkbox"),Tu(l,t),l.processed=!0,l.if="(".concat(i,")==='checkbox'")+a,ju(l,{exp:l.if,block:l});var c=Ku(e);Cs(c,"v-for",!0),As(c,"type","radio"),Tu(c,t),ju(l,{exp:"(".concat(i,")==='radio'")+a,block:c});var u=Ku(e);return Cs(u,"v-for",!0),As(u,":type",i),Tu(u,t),ju(l,{exp:r,block:u}),o?l.else=!0:s&&(l.elseif=s),l}}}function Ku(e){return ku(e.tag,e.attrsList.slice(),e.parent)}var Zu=[Sc,Ec,{preTransformNode:Qu}];function ed(e,t){t.value&&xs(e,"textContent","_s(".concat(t.value,")"),t)}function td(e,t){t.value&&xs(e,"innerHTML","_s(".concat(t.value,")"),t)}var nd,id,rd={expectHTML:!0,modules:Zu,directives:{model:$s,text:ed,html:td},isPreTag:wo,isUnaryTag:Dc,mustUseProp:to,canBeLeftOpenTag:Oc,isReservedTag:xo,getTagNamespace:ko,staticKeys:R(Zu)},ad=A(sd);function od(e,t){e&&(nd=ad(t.staticKeys||""),id=t.isReservedTag||F,ld(e),cd(e,!1))}function sd(e){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}function ld(e){if(e.static=ud(e),1===e.type){if(!id(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t<n;t++){var i=e.children[t];ld(i),i.static||(e.static=!1)}if(e.ifConditions)for(t=1,n=e.ifConditions.length;t<n;t++){var r=e.ifConditions[t].block;ld(r),r.static||(e.static=!1)}}}function cd(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,i=e.children.length;n<i;n++)cd(e.children[n],t||!!e.for);if(e.ifConditions)for(n=1,i=e.ifConditions.length;n<i;n++)cd(e.ifConditions[n].block,t)}}function ud(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||y(e.tag)||!id(e.tag)||dd(e)||!Object.keys(e).every(nd))))}function dd(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}var hd=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,fd=/\([^)]*?\);*$/,pd=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,md={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},gd={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},_d=function(e){return"if(".concat(e,")return null;")},vd={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:_d("$event.target !== $event.currentTarget"),ctrl:_d("!$event.ctrlKey"),shift:_d("!$event.shiftKey"),alt:_d("!$event.altKey"),meta:_d("!$event.metaKey"),left:_d("'button' in $event && $event.button !== 0"),middle:_d("'button' in $event && $event.button !== 1"),right:_d("'button' in $event && $event.button !== 2")};function yd(e,t){var n=t?"nativeOn:":"on:",i="",r="";for(var a in e){var o=bd(e[a]);e[a]&&e[a].dynamic?r+="".concat(a,",").concat(o,","):i+='"'.concat(a,'":').concat(o,",")}return i="{".concat(i.slice(0,-1),"}"),r?n+"_d(".concat(i,",[").concat(r.slice(0,-1),"])"):n+i}function bd(e){if(!e)return"function(){}";if(Array.isArray(e))return"[".concat(e.map((function(e){return bd(e)})).join(","),"]");var t=pd.test(e.value),n=hd.test(e.value),i=pd.test(e.value.replace(fd,""));if(e.modifiers){var r="",a="",o=[],s=function(t){if(vd[t])a+=vd[t],md[t]&&o.push(t);else if("exact"===t){var n=e.modifiers;a+=_d(["ctrl","shift","alt","meta"].filter((function(e){return!n[e]})).map((function(e){return"$event.".concat(e,"Key")})).join("||"))}else o.push(t)};for(var l in e.modifiers)s(l);o.length&&(r+=wd(o)),a&&(r+=a);var c=t?"return ".concat(e.value,".apply(null, arguments)"):n?"return (".concat(e.value,").apply(null, arguments)"):i?"return ".concat(e.value):e.value;return"function($event){".concat(r).concat(c,"}")}return t||n?e.value:"function($event){".concat(i?"return ".concat(e.value):e.value,"}")}function wd(e){return"if(!$event.type.indexOf('key')&&"+"".concat(e.map(xd).join("&&"),")return null;")}function xd(e){var t=parseInt(e,10);if(t)return"$event.keyCode!==".concat(t);var n=md[e],i=gd[e];return"_k($event.keyCode,"+"".concat(JSON.stringify(e),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(i))+")"}function kd(e,t){t.modifiers&&ra("v-on without argument does not support modifiers."),e.wrapListeners=function(e){return"_g(".concat(e,",").concat(t.value,")")}}function Ad(e,t){e.wrapData=function(n){return"_b(".concat(n,",'").concat(e.tag,"',").concat(t.value,",").concat(t.modifiers&&t.modifiers.prop?"true":"false").concat(t.modifiers&&t.modifiers.sync?",true":"",")")}}var Sd={on:kd,bind:Ad,cloak:I},Md=function(){function e(e){this.options=e,this.warn=e.warn||bs,this.transforms=ws(e.modules,"transformCode"),this.dataGenFns=ws(e.modules,"genData"),this.directives=P(P({},Sd),e.directives);var t=e.isReservedTag||F;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1}return e}();function Td(e,t){var n=new Md(t),i=e?"script"===e.tag?"null":Ld(e,n):'_c("div")';return{render:"with(this){return ".concat(i,"}"),staticRenderFns:n.staticRenderFns}}function Ld(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Cd(e,t);if(e.once&&!e.onceProcessed)return Dd(e,t);if(e.for&&!e.forProcessed)return Pd(e,t);if(e.if&&!e.ifProcessed)return Od(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return Xd(e,t);var n=void 0;if(e.component)n=Gd(e.component,e,t);else{var i=void 0,r=t.maybeComponent(e);(!e.plain||e.pre&&r)&&(i=jd(e,t));var a=void 0,o=t.options.bindings;r&&o&&!1!==o.__isScriptSetup&&(a=Ed(o,e.tag)),a||(a="'".concat(e.tag,"'"));var s=e.inlineTemplate?null:qd(e,t,!0);n="_c(".concat(a).concat(i?",".concat(i):"").concat(s?",".concat(s):"",")")}for(var l=0;l<t.transforms.length;l++)n=t.transforms[l](e,n);return n}return qd(e,t)||"void 0"}function Ed(e,t){var n=M(t),i=T(n),r=function(r){return e[t]===r?t:e[n]===r?n:e[i]===r?i:void 0},a=r("setup-const")||r("setup-reactive-const");if(a)return a;var o=r("setup-let")||r("setup-ref")||r("setup-maybe-ref");return o||void 0}function Cd(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return ".concat(Ld(e,t),"}")),t.pre=n,"_m(".concat(t.staticRenderFns.length-1).concat(e.staticInFor?",true":"",")")}function Dd(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Od(e,t);if(e.staticInFor){for(var n="",i=e.parent;i;){if(i.for){n=i.key;break}i=i.parent}return n?"_o(".concat(Ld(e,t),",").concat(t.onceId++,",").concat(n,")"):(t.warn("v-once can only be used inside v-for that is keyed. ",e.rawAttrsMap["v-once"]),Ld(e,t))}return Cd(e,t)}function Od(e,t,n,i){return e.ifProcessed=!0,Yd(e.ifConditions.slice(),t,n,i)}function Yd(e,t,n,i){if(!e.length)return i||"_e()";var r=e.shift();return r.exp?"(".concat(r.exp,")?").concat(a(r.block),":").concat(Yd(e,t,n,i)):"".concat(a(r.block));function a(e){return n?n(e,t):e.once?Dd(e,t):Ld(e,t)}}function Pd(e,t,n,i){var r=e.for,a=e.alias,o=e.iterator1?",".concat(e.iterator1):"",s=e.iterator2?",".concat(e.iterator2):"";return t.maybeComponent(e)&&"slot"!==e.tag&&"template"!==e.tag&&!e.key&&t.warn("<".concat(e.tag,' v-for="').concat(a," in ").concat(r,'">: component lists rendered with ')+"v-for should have explicit keys. See https://v2.vuejs.org/v2/guide/list.html#key for more info.",e.rawAttrsMap["v-for"],!0),e.forProcessed=!0,"".concat(i||"_l","((").concat(r,"),")+"function(".concat(a).concat(o).concat(s,"){")+"return ".concat((n||Ld)(e,t))+"})"}function jd(e,t){var n="{",i=Id(e,t);i&&(n+=i+","),e.key&&(n+="key:".concat(e.key,",")),e.ref&&(n+="ref:".concat(e.ref,",")),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'.concat(e.tag,'",'));for(var r=0;r<t.dataGenFns.length;r++)n+=t.dataGenFns[r](e);if(e.attrs&&(n+="attrs:".concat(Jd(e.attrs),",")),e.props&&(n+="domProps:".concat(Jd(e.props),",")),e.events&&(n+="".concat(yd(e.events,!1),",")),e.nativeEvents&&(n+="".concat(yd(e.nativeEvents,!0),",")),e.slotTarget&&!e.slotScope&&(n+="slot:".concat(e.slotTarget,",")),e.scopedSlots&&(n+="".concat(Nd(e,e.scopedSlots,t),",")),e.model&&(n+="model:{value:".concat(e.model.value,",callback:").concat(e.model.callback,",expression:").concat(e.model.expression,"},")),e.inlineTemplate){var a=Fd(e,t);a&&(n+="".concat(a,","))}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b(".concat(n,',"').concat(e.tag,'",').concat(Jd(e.dynamicAttrs),")")),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Id(e,t){var n=e.directives;if(n){var i,r,a,o,s="directives:[",l=!1;for(i=0,r=n.length;i<r;i++){a=n[i],o=!0;var c=t.directives[a.name];c&&(o=!!c(e,a,t.warn)),o&&(l=!0,s+='{name:"'.concat(a.name,'",rawName:"').concat(a.rawName,'"').concat(a.value?",value:(".concat(a.value,"),expression:").concat(JSON.stringify(a.value)):"").concat(a.arg?",arg:".concat(a.isDynamicArg?a.arg:'"'.concat(a.arg,'"')):"").concat(a.modifiers?",modifiers:".concat(JSON.stringify(a.modifiers)):"","},"))}return l?s.slice(0,-1)+"]":void 0}}function Fd(e,t){var n=e.children[0];if(1===e.children.length&&1===n.type||t.warn("Inline-template components must have exactly one child element.",{start:e.start}),n&&1===n.type){var i=Td(n,t.options);return"inlineTemplate:{render:function(){".concat(i.render,"},staticRenderFns:[").concat(i.staticRenderFns.map((function(e){return"function(){".concat(e,"}")})).join(","),"]}")}}function Nd(e,t,n){var i=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||Hd(n)})),r=!!e.if;if(!i)for(var a=e.parent;a;){if(a.slotScope&&a.slotScope!==xu||a.for){i=!0;break}a.if&&(r=!0),a=a.parent}var o=Object.keys(t).map((function(e){return zd(t[e],n)})).join(",");return"scopedSlots:_u([".concat(o,"]").concat(i?",null,true":"").concat(!i&&r?",null,false,".concat(Rd(o)):"",")")}function Rd(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}function Hd(e){return 1===e.type&&("slot"===e.tag||e.children.some(Hd))}function zd(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Od(e,t,zd,"null");if(e.for&&!e.forProcessed)return Pd(e,t,zd);var i=e.slotScope===xu?"":String(e.slotScope),r="function(".concat(i,"){")+"return ".concat("template"===e.tag?e.if&&n?"(".concat(e.if,")?").concat(qd(e,t)||"undefined",":undefined"):qd(e,t)||"undefined":Ld(e,t),"}"),a=i?"":",proxy:true";return"{key:".concat(e.slotTarget||'"default"',",fn:").concat(r).concat(a,"}")}function qd(e,t,n,i,r){var a=e.children;if(a.length){var o=a[0];if(1===a.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var s=n?t.maybeComponent(o)?",1":",0":"";return"".concat((i||Ld)(o,t)).concat(s)}var l=n?Bd(a,t.maybeComponent):0,c=r||Wd;return"[".concat(a.map((function(e){return c(e,t)})).join(","),"]").concat(l?",".concat(l):"")}}function Bd(e,t){for(var n=0,i=0;i<e.length;i++){var r=e[i];if(1===r.type){if($d(r)||r.ifConditions&&r.ifConditions.some((function(e){return $d(e.block)}))){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}function $d(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Wd(e,t){return 1===e.type?Ld(e,t):3===e.type&&e.isComment?Vd(e):Ud(e)}function Ud(e){return"_v(".concat(2===e.type?e.expression:Qd(JSON.stringify(e.text)),")")}function Vd(e){return"_e(".concat(JSON.stringify(e.text),")")}function Xd(e,t){var n=e.slotName||'"default"',i=qd(e,t),r="_t(".concat(n).concat(i?",function(){return ".concat(i,"}"):""),a=e.attrs||e.dynamicAttrs?Jd((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:M(e.name),value:e.value,dynamic:e.dynamic}}))):null,o=e.attrsMap["v-bind"];return!a&&!o||i||(r+=",null"),a&&(r+=",".concat(a)),o&&(r+="".concat(a?"":",null",",").concat(o)),r+")"}function Gd(e,t,n){var i=t.inlineTemplate?null:qd(t,n,!0);return"_c(".concat(e,",").concat(jd(t,n)).concat(i?",".concat(i):"",")")}function Jd(e){for(var t="",n="",i=0;i<e.length;i++){var r=e[i],a=Qd(r.value);r.dynamic?n+="".concat(r.name,",").concat(a,","):t+='"'.concat(r.name,'":').concat(a,",")}return t="{".concat(t.slice(0,-1),"}"),n?"_d(".concat(t,",[").concat(n.slice(0,-1),"])"):t}function Qd(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}var Kd=new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),Zd=new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),eh=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function th(e,t){e&&nh(e,t)}function nh(e,t){if(1===e.type){for(var n in e.attrsMap)if(cu.test(n)){var i=e.attrsMap[n];if(i){var r=e.rawAttrsMap[n];"v-for"===n?rh(e,'v-for="'.concat(i,'"'),t,r):"v-slot"===n||"#"===n[0]?sh(i,"".concat(n,'="').concat(i,'"'),t,r):lu.test(n)?ih(i,"".concat(n,'="').concat(i,'"'),t,r):oh(i,"".concat(n,'="').concat(i,'"'),t,r)}}if(e.children)for(var a=0;a<e.children.length;a++)nh(e.children[a],t)}else 2===e.type&&oh(e.expression,e.text,t,e)}function ih(e,t,n,i){var r=e.replace(eh,""),a=r.match(Zd);a&&"$"!==r.charAt(a.index-1)&&n("avoid using JavaScript unary operator as property name: "+'"'.concat(a[0],'" in expression ').concat(t.trim()),i),oh(e,t,n,i)}function rh(e,t,n,i){oh(e.for||"",t,n,i),ah(e.alias,"v-for alias",t,n,i),ah(e.iterator1,"v-for iterator",t,n,i),ah(e.iterator2,"v-for iterator",t,n,i)}function ah(e,t,n,i,r){if("string"==typeof e)try{new Function("var ".concat(e,"=_"))}catch(a){i("invalid ".concat(t,' "').concat(e,'" in expression: ').concat(n.trim()),r)}}function oh(e,t,n,i){try{new Function("return ".concat(e))}catch(a){var r=e.replace(eh,"").match(Kd);n(r?"avoid using JavaScript keyword as property name: "+'"'.concat(r[0],'"\n  Raw expression: ').concat(t.trim()):"invalid expression: ".concat(a.message," in\n\n")+"    ".concat(e,"\n\n")+"  Raw expression: ".concat(t.trim(),"\n"),i)}}function sh(e,t,n,i){try{new Function(e,"")}catch(r){n("invalid function parameter expression: ".concat(r.message," in\n\n")+"    ".concat(e,"\n\n")+"  Raw expression: ".concat(t.trim(),"\n"),i)}}var lh=2;function ch(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i=e.split(/\r?\n/),r=0,a=[],o=0;o<i.length;o++)if((r+=i[o].length+1)>=t){for(var s=o-lh;s<=o+lh||n>r;s++)if(!(s<0||s>=i.length)){a.push("".concat(s+1).concat(uh(" ",3-String(s+1).length),"|  ").concat(i[s]));var l=i[s].length;if(s===o){var c=t-(r-l)+1,u=n>r?l-c:n-t;a.push("   |  "+uh(" ",c)+uh("^",u))}else if(s>o){if(n>r){var d=Math.min(n-r,l);a.push("   |  "+uh("^",d))}r+=l+1}}break}return a.join("\n")}function uh(e,t){var n="";if(t>0)for(;1&t&&(n+=e),!((t>>>=1)<=0);)e+=e;return n}function dh(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),I}}function hh(e){var t=Object.create(null);return function(n,i,r){var a=(i=P({},i)).warn||ra;delete i.warn;try{new Function("return 1")}catch(e){e.toString().match(/unsafe-eval|CSP/)&&a("It seems you are using the standalone build of Vue.js in an environment with Content Security Policy that prohibits unsafe-eval. The template compiler cannot work in this environment. Consider relaxing the policy to allow unsafe-eval or pre-compiling your templates into render functions.")}var o=i.delimiters?String(i.delimiters)+n:n;if(t[o])return t[o];var s=e(n,i);s.errors&&s.errors.length&&(i.outputSourceRange?s.errors.forEach((function(e){a("Error compiling template:\n\n".concat(e.msg,"\n\n")+ch(n,e.start,e.end),r)})):a("Error compiling template:\n\n".concat(n,"\n\n")+s.errors.map((function(e){return"- ".concat(e)})).join("\n")+"\n",r)),s.tips&&s.tips.length&&(i.outputSourceRange?s.tips.forEach((function(e){return aa(e.msg,r)})):s.tips.forEach((function(e){return aa(e,r)})));var l={},c=[];return l.render=dh(s.render,c),l.staticRenderFns=s.staticRenderFns.map((function(e){return dh(e,c)})),s.errors&&s.errors.length||!c.length||a("Failed to generate render function:\n\n"+c.map((function(e){var t=e.err,n=e.code;return"".concat(t.toString()," in\n\n").concat(n,"\n")})).join("\n"),r),t[o]=l}}function fh(e){return function(t){function n(n,i){var r=Object.create(t),a=[],o=[],s=function(e,t,n){(n?o:a).push(e)};if(i){if(i.outputSourceRange){var l=n.match(/^\s*/)[0].length;s=function(e,t,n){var i="string"==typeof e?{msg:e}:e;t&&(null!=t.start&&(i.start=t.start+l),null!=t.end&&(i.end=t.end+l)),(n?o:a).push(i)}}for(var c in i.modules&&(r.modules=(t.modules||[]).concat(i.modules)),i.directives&&(r.directives=P(Object.create(t.directives||null),i.directives)),i)"modules"!==c&&"directives"!==c&&(r[c]=i[c])}r.warn=s;var u=e(n.trim(),r);return th(u.ast,s),u.errors=a,u.tips=o,u}return{compile:n,compileToFunctions:hh(n)}}}var ph,mh=fh((function(e,t){var n=Au(e.trim(),t);!1!==t.optimize&&od(n,t);var i=Td(n,t);return{ast:n,render:i.render,staticRenderFns:i.staticRenderFns}}))(rd).compileToFunctions;function gh(e){return(ph=ph||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',ph.innerHTML.indexOf("&#10;")>0}var _h=!!ee&&gh(!1),vh=!!ee&&gh(!0),yh=A((function(e){var t=To(e);return t&&t.innerHTML})),bh=Ra.prototype.$mount;function wh(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}function xh(e,t){var n=new br(ge,e,I,{sync:!0});t&&(n.update=function(){t((function(){return n.run()}))})}return Ra.prototype.$mount=function(e,t){if((e=e&&To(e))===document.body||e===document.documentElement)return ra("Do not mount Vue to <html> or <body> - mount to normal elements instead."),this;var n=this.$options;if(!n.render){var i=n.template;if(i)if("string"==typeof i)"#"===i.charAt(0)&&((i=yh(i))||ra("Template element not found or is empty: ".concat(n.template),this));else{if(!i.nodeType)return ra("invalid template option:"+i,this),this;i=i.innerHTML}else e&&(i=wh(e));if(i){V.performance&&bt&&bt("compile");var r=mh(i,{outputSourceRange:!0,shouldDecodeNewlines:_h,shouldDecodeNewlinesForHref:vh,delimiters:n.delimiters,comments:n.comments},this),a=r.render,o=r.staticRenderFns;n.render=a,n.staticRenderFns=o,V.performance&&bt&&(bt("compile end"),wt("vue ".concat(this._name," compile"),"compile","compile end"))}}return bh.call(this,e,t)},Ra.compile=mh,P(Ra,mr),Ra.effect=xh,Ra}()},9980:function(e,t,n){var i;"undefined"!=typeof self&&self,i=function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var i=n("2d00"),r=n("5ca1"),a=n("2aba"),o=n("32e9"),s=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="keys",p="values",m=function(){return this};e.exports=function(e,t,n,g,_,v,y){l(n,t,g);var b,w,x,k=function(e){if(!h&&e in T)return T[e];switch(e){case f:case p:return function(){return new n(this,e)}}return function(){return new n(this,e)}},A=t+" Iterator",S=_==p,M=!1,T=e.prototype,L=T[d]||T["@@iterator"]||_&&T[_],E=L||k(_),C=_?S?k("entries"):E:void 0,D="Array"==t&&T.entries||L;if(D&&(x=u(D.call(new e)))!==Object.prototype&&x.next&&(c(x,A,!0),i||"function"==typeof x[d]||o(x,d,m)),S&&L&&L.name!==p&&(M=!0,E=function(){return L.call(this)}),i&&!y||!h&&!M&&T[d]||o(T,d,E),s[t]=E,s[A]=m,_)if(b={values:S?E:k(p),keys:v?E:k(f),entries:C},y)for(w in b)w in T||a(T,w,b[w]);else r(r.P+r.F*(h||M),t,b);return b}},"02f4":function(e,t,n){var i=n("4588"),r=n("be13");e.exports=function(e){return function(t,n){var a,o,s=String(r(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):a:e?s.slice(l,l+2):o-56320+(a-55296<<10)+65536}}},"0390":function(e,t,n){"use strict";var i=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var i=n("ce10"),r=n("e11e");e.exports=Object.keys||function(e){return i(e,r)}},1495:function(e,t,n){var i=n("86cc"),r=n("cb7c"),a=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){r(e);for(var n,o=a(t),s=o.length,l=0;s>l;)i.f(e,n=o[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),a=n("79e5"),o=n("be13"),s=n("2b4c"),l=n("520a"),c=s("species"),u=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=s(e),f=!a((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f?!a((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!t})):void 0;if(!f||!p||"replace"===e&&!u||"split"===e&&!d){var m=/./[h],g=n(o,h,""[e],(function(e,t,n,i,r){return t.exec===l?f&&!r?{done:!0,value:m.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}})),_=g[0],v=g[1];i(String.prototype,e,_),r(RegExp.prototype,h,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},"230e":function(e,t,n){var i=n("d3f4"),r=n("7726").document,a=i(r)&&i(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},"23c6":function(e,t,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:a?i(t):"Object"==(o=i(t))&&"function"==typeof t.callee?"Arguments":o}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var i=n("7726"),r=n("32e9"),a=n("69a8"),o=n("ca5a")("src"),s=n("fa5b"),l="toString",c=(""+s).split(l);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(a(n,"name")||r(n,"name",t)),e[t]!==n&&(l&&(a(n,o)||r(n,o,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[o]||s.call(this)}))},"2aeb":function(e,t,n){var i=n("cb7c"),r=n("1495"),a=n("e11e"),o=n("613b")("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n("230e")("iframe"),i=a.length;for(t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;i--;)delete c[l][a[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=i(e),n=new s,s[l]=null,n[o]=e):n=c(),void 0===t?n:r(n,t)}},"2b4c":function(e,t,n){var i=n("5537")("wks"),r=n("ca5a"),a=n("7726").Symbol,o="function"==typeof a;(e.exports=function(e){return i[e]||(i[e]=o&&a[e]||(o?a:r)("Symbol."+e))}).store=i},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var i=n("5ca1"),r=n("d2c8"),a="includes";i(i.P+i.F*n("5147")(a),"String",{includes:function(e){return!!~r(this,e,a).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var i=n("86cc"),r=n("4630");e.exports=n("9e1e")?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var i=n("69a8"),r=n("4bf8"),a=n("613b")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},"41a0":function(e,t,n){"use strict";var i=n("2aeb"),r=n("4630"),a=n("7f20"),o={};n("32e9")(o,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(o,{next:r(1,n)}),a(e,t+" Iterator")}},"456d":function(e,t,n){var i=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(e){return r(i(e))}}))},4588:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var i=n("be13");e.exports=function(e){return Object(i(e))}},5147:function(e,t,n){var i=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(e){}}return!0}},"520a":function(e,t,n){"use strict";var i,r,a=n("0bfb"),o=RegExp.prototype.exec,s=String.prototype.replace,l=o,c="lastIndex",u=(i=/a/,r=/b*/g,o.call(i,"a"),o.call(r,"a"),0!==i[c]||0!==r[c]),d=void 0!==/()??/.exec("")[1];(u||d)&&(l=function(e){var t,n,i,r,l=this;return d&&(n=new RegExp("^"+l.source+"$(?!\\s)",a.call(l))),u&&(t=l[c]),i=o.call(l,e),u&&i&&(l[c]=l.global?i.index+i[0].length:t),d&&i&&i.length>1&&s.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i}),e.exports=l},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var i=n("8378"),r=n("7726"),a="__core-js_shared__",o=r[a]||(r[a]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var i=n("7726"),r=n("8378"),a=n("32e9"),o=n("2aba"),s=n("9b43"),l="prototype",c=function(e,t,n){var u,d,h,f,p=e&c.F,m=e&c.G,g=e&c.S,_=e&c.P,v=e&c.B,y=m?i:g?i[t]||(i[t]={}):(i[t]||{})[l],b=m?r:r[t]||(r[t]={}),w=b[l]||(b[l]={});for(u in m&&(n=t),n)h=((d=!p&&y&&void 0!==y[u])?y:n)[u],f=v&&d?s(h,i):_&&"function"==typeof h?s(Function.call,h):h,y&&o(y,u,h,e&c.U),b[u]!=h&&a(b,u,f),_&&w[u]!=h&&(w[u]=h)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5eda":function(e,t,n){var i=n("5ca1"),r=n("8378"),a=n("79e5");e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],o={};o[e]=t(n),i(i.S+i.F*a((function(){n(1)})),"Object",o)}},"5f1b":function(e,t,n){"use strict";var i=n("23c6"),r=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"613b":function(e,t,n){var i=n("5537")("keys"),r=n("ca5a");e.exports=function(e){return i[e]||(i[e]=r(e))}},"626a":function(e,t,n){var i=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var i=n("5ca1"),r=n("c366")(!0);i(i.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var i=n("626a"),r=n("be13");e.exports=function(e){return i(r(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var i=n("0d58"),r=n("2621"),a=n("52a7"),o=n("4bf8"),s=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i}))?function(e,t){for(var n=o(e),l=arguments.length,c=1,u=r.f,d=a.f;l>c;)for(var h,f=s(arguments[c++]),p=u?i(f).concat(u(f)):i(f),m=p.length,g=0;m>g;)d.call(f,h=p[g++])&&(n[h]=f[h]);return n}:l},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var i=n("4588"),r=Math.max,a=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):a(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7f20":function(e,t,n){var i=n("86cc").f,r=n("69a8"),a=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,a)&&i(e,a,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var i=n("cb7c"),r=n("c69a"),a=n("6a99"),o=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(i(e),t=a(t,!0),i(n),r)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var i=n("d8e8");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var i=n("2b4c")("unscopables"),r=Array.prototype;null==r[i]&&n("32e9")(r,i,{}),e.exports=function(e){r[i][e]=!0}},"9def":function(e,t,n){var i=n("4588"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var i=n("cb7c"),r=n("4bf8"),a=n("9def"),o=n("4588"),s=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(e,t,n,p){return[function(i,r){var a=e(this),o=null==i?void 0:i[t];return void 0!==o?o.call(i,a,r):n.call(String(a),i,r)},function(e,t){var r=p(n,e,this,t);if(r.done)return r.value;var d=i(e),h=String(this),f="function"==typeof t;f||(t=String(t));var g=d.global;if(g){var _=d.unicode;d.lastIndex=0}for(var v=[];;){var y=l(d,h);if(null===y)break;if(v.push(y),!g)break;""===String(y[0])&&(d.lastIndex=s(h,a(d.lastIndex),_))}for(var b,w="",x=0,k=0;k<v.length;k++){y=v[k];for(var A=String(y[0]),S=c(u(o(y.index),h.length),0),M=[],T=1;T<y.length;T++)M.push(void 0===(b=y[T])?b:String(b));var L=y.groups;if(f){var E=[A].concat(M,S,h);void 0!==L&&E.push(L);var C=String(t.apply(void 0,E))}else C=m(A,h,S,M,L,t);S>=x&&(w+=h.slice(x,S)+C,x=S+A.length)}return w+h.slice(x)}];function m(e,t,i,a,o,s){var l=i+e.length,c=a.length,u=f;return void 0!==o&&(o=r(o),u=h),n.call(s,u,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":s=o[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var h=d(u/10);return 0===h?n:h<=c?void 0===a[h-1]?r.charAt(1):a[h-1]+r.charAt(1):n}s=a[u-1]}return void 0===s?"":s}))}}))},aae3:function(e,t,n){var i=n("d3f4"),r=n("2d95"),a=n("2b4c")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==r(e))}},ac6a:function(e,t,n){for(var i=n("cadf"),r=n("0d58"),a=n("2aba"),o=n("7726"),s=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),h=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(f),m=0;m<p.length;m++){var g,_=p[m],v=f[_],y=o[_],b=y&&y.prototype;if(b&&(b[u]||s(b,u,h),b[d]||s(b,d,_),l[_]=h,v))for(g in i)b[g]||a(b,g,i[g],!0)}},b0c5:function(e,t,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},c366:function(e,t,n){var i=n("6821"),r=n("9def"),a=n("77f1");e.exports=function(e){return function(t,n,o){var s,l=i(t),c=r(l.length),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return l})),n("a481");var i,r,a="undefined"!=typeof window?window.console:e.console,o=/-(\w)/g,s=(i=function(e){return e.replace(o,(function(e,t){return t?t.toUpperCase():""}))},r=Object.create(null),function(e){return r[e]||(r[e]=i(e))});function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){var i=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,i)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},cadf:function(e,t,n){"use strict";var i=n("9c6c"),r=n("d53b"),a=n("84f2"),o=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},cb7c:function(e,t,n){var i=n("d3f4");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var i=n("69a8"),r=n("6821"),a=n("c366")(!1),o=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)n!=o&&i(s,n)&&c.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~a(c,n)||c.push(n));return c}},d2c8:function(e,t,n){var i=n("aae3"),r=n("be13");e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(e))}},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var i=n("5ca1"),r=n("9def"),a=n("d2c8"),o="startsWith",s=""[o];i(i.P+i.F*n("5147")(o),"String",{startsWith:function(e){var t=a(this,e,o),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return s?s.call(t,i,n):t.slice(n,n+i.length)===i}})},f6fd:function(e,t){!function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(i){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})}(document)},f751:function(e,t,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var i=n("7726").document;e.exports=i&&i.documentElement},fb15:function(e,t,n){"use strict";var i;function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(t),"undefined"!=typeof window&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1])),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var l=n("a352"),c=n.n(l),u=n("c649");function d(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function h(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),d.call(t,e,n)}}function f(e){return["transition-group","TransitionGroup"].includes(e)}function p(e,t,n){return e[n]||(t[n]?t[n]():void 0)}var m=["Start","Add","Remove","Update","End"],g=["Choose","Unchoose","Sort","Filter","Clone"],_=["Move"].concat(m,g).map((function(e){return"on"+e})),v=null,y={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=function(e){if(!e||1!==e.length)return!1;var t=o(e,1)[0].componentOptions;return!!t&&f(t.tag)}(t);var n=function(e,t,n){var i=0,r=0,a=p(t,n,"header");a&&(i=a.length,e=e?[].concat(s(a),s(e)):s(a));var o=p(t,n,"footer");return o&&(r=o.length,e=e?[].concat(s(e),s(o)):s(o)),{children:e,headerOffset:i,footerOffset:r}}(t,this.$slots,this.$scopedSlots),i=n.children,r=n.headerOffset,a=n.footerOffset;this.headerOffset=r,this.footerOffset=a;var l=function(e,t){var n=null,i=function(e,t){n=function(e,t,n){return void 0===n||((e=e||{})[t]=n),e}(n,e,t)};if(i("attrs",Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{})),!t)return n;var r=t.on,a=t.props,o=t.attrs;return i("on",r),i("props",a),Object.assign(n.attrs,o),n}(this.$attrs,this.componentData);return e(this.getTag(),l,i)},created:function(){null!==this.list&&null!==this.value&&u.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&u.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&u.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};m.forEach((function(n){t["on"+n]=h.call(e,n)})),g.forEach((function(n){t["on"+n]=d.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(u.a)(n)]=e.$attrs[n],t}),{}),i=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in i)&&(i.draggable=">*"),this._sortable=new c.a(this.rootContainer,i),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(u.a)(t);-1===_.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=function(e,t,n,i){if(!e)return[];var r=e.map((function(e){return e.elm})),a=t.length-i,o=s(t).map((function(e,t){return t>=a?r.length:r.indexOf(e)}));return n?o.filter((function(e){return-1!==e})):o}(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=function(e,t){return e.map((function(e){return e.elm})).indexOf(t)}(this.getChildrenNodes()||[],e);return-1===t?null:{index:t,element:this.realList[t]}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&f(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=s(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,s(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,i=this.getUnderlyingPotencialDraggableComponent(t);if(!i)return{component:i};var r=i.realList,a={list:r,component:i};if(t!==n&&r&&i.getUnderlyingVm){var o=i.getUnderlyingVm(n);if(o)return Object.assign(o,a)}return a},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[e].data=null;var t=this.getComponent();t.children=[],t.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),v=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(u.d)(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var i={element:t,newIndex:n};this.emitChanges({added:i})}},onDragRemove:function(e){if(Object(u.c)(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(u.d)(e.clone)},onDragUpdate:function(e){Object(u.d)(e.item),Object(u.c)(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var i={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:i})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=s(t.to.children).filter((function(e){return"none"!==e.style.display})),i=n.indexOf(t.related),r=e.component.getVmIndex(i);return-1===n.indexOf(v)&&t.willInsertAfter?r+1:r},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(e),r=this.context,a=this.computeFutureIndex(i,e);return Object.assign(r,{futureIndex:a}),n(Object.assign({},e,{relatedContext:i,draggedContext:r}),t)},onDragEnd:function(){this.computeIndexes(),v=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",y);var b=y;t.default=b}}).default},e.exports=i(n(8244))},8244:(e,t,n)=>{"use strict";function i(e){return i="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},i(e)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(this,arguments)}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){r(e,t,n[t])}))}return e}function s(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.r(t),n.d(t,{MultiDrag:()=>yt,Sortable:()=>He,Swap:()=>lt,default:()=>xt});function c(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),h=c(/firefox/i),f=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),p=c(/iP(ad|od|hone)/i),m=c(/chrome/i)&&c(/android/i),g={capture:!1,passive:!1};function _(e,t,n){e.addEventListener(t,n,!u&&g)}function v(e,t,n){e.removeEventListener(t,n,!u&&g)}function y(e,t){if(t){if(">"===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(e){return!1}return!1}}function b(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function w(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&y(e,t):y(e,t))||i&&e===n)return e;if(e===n)break}while(e=b(e))}return null}var x,k=/\s+/g;function A(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(k," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(k," ")}}function S(e,t,n){var i=e&&e.style;if(i){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 i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function M(e,t){var n="";if("string"==typeof e)n=e;else do{var i=S(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function T(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,a=i.length;if(n)for(;r<a;r++)n(i[r],r);return i}return[]}function L(){var e=document.scrollingElement;return e||document.documentElement}function E(e,t,n,i,r){if(e.getBoundingClientRect||e===window){var a,o,s,l,c,d,h;if(e!==window&&e!==L()?(o=(a=e.getBoundingClientRect()).top,s=a.left,l=a.bottom,c=a.right,d=a.height,h=a.width):(o=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!u))do{if(r&&r.getBoundingClientRect&&("none"!==S(r,"transform")||n&&"static"!==S(r,"position"))){var f=r.getBoundingClientRect();o-=f.top+parseInt(S(r,"border-top-width")),s-=f.left+parseInt(S(r,"border-left-width")),l=o+a.height,c=s+a.width;break}}while(r=r.parentNode);if(i&&e!==window){var p=M(r||e),m=p&&p.a,g=p&&p.d;p&&(l=(o/=g)+(d/=g),c=(s/=m)+(h/=m))}return{top:o,left:s,bottom:l,right:c,width:h,height:d}}}function C(e,t,n){for(var i=j(e,!0),r=E(e)[t];i;){var a=E(i)[n];if(!("top"===n||"left"===n?r>=a:r<=a))return i;if(i===L())break;i=j(i,!1)}return!1}function D(e,t,n){for(var i=0,r=0,a=e.children;r<a.length;){if("none"!==a[r].style.display&&a[r]!==He.ghost&&a[r]!==He.dragged&&w(a[r],n.draggable,e,!1)){if(i===t)return a[r];i++}r++}return null}function O(e,t){for(var n=e.lastElementChild;n&&(n===He.ghost||"none"===S(n,"display")||t&&!y(n,t));)n=n.previousElementSibling;return n||null}function Y(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===He.clone||t&&!y(e,t)||n++;return n}function P(e){var t=0,n=0,i=L();if(e)do{var r=M(e),a=r.a,o=r.d;t+=e.scrollLeft*a,n+=e.scrollTop*o}while(e!==i&&(e=e.parentNode));return[t,n]}function j(e,t){if(!e||!e.getBoundingClientRect)return L();var n=e,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=S(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return L();if(i||t)return n;i=!0}}}while(n=n.parentNode);return L()}function I(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function F(e,t){return function(){if(!x){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),x=setTimeout((function(){x=void 0}),t)}}}function N(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function R(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function H(e,t){S(e,"position","absolute"),S(e,"top",t.top),S(e,"left",t.left),S(e,"width",t.width),S(e,"height",t.height)}function z(e){S(e,"position",""),S(e,"top",""),S(e,"left",""),S(e,"width",""),S(e,"height","")}var q="Sortable"+(new Date).getTime();function B(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==S(e,"display")&&e!==He.ghost){t.push({target:e,rect:E(e)});var n=o({},t[t.length-1].rect);if(e.thisAnimationDuration){var i=M(e,!0);i&&(n.top-=i.f,n.left-=i.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var i=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var r=!1,a=0;t.forEach((function(e){var t=0,n=e.target,o=n.fromRect,s=E(n),l=n.prevFromRect,c=n.prevToRect,u=e.rect,d=M(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&I(l,s)&&!I(o,s)&&(u.top-s.top)/(u.left-s.left)==(o.top-s.top)/(o.left-s.left)&&(t=function(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}(u,l,c,i.options)),I(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||(t=i.options.animation),i.animate(n,u,s,t)),t&&(r=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),r?e=setTimeout((function(){"function"==typeof n&&n()}),a):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,i){if(i){S(e,"transition",""),S(e,"transform","");var r=M(this.el),a=r&&r.a,o=r&&r.d,s=(t.left-n.left)/(a||1),l=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!l,S(e,"transform","translate3d("+s+"px,"+l+"px,0)"),function(e){e.offsetWidth}(e),S(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),S(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){S(e,"transition",""),S(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i)}}}}var $=[],W={initializeByDefault:!0},U={mount:function(e){for(var t in W)W.hasOwnProperty(t)&&!(t in e)&&(e[t]=W[t]);$.push(e)},pluginEvent:function(e,t,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var r=e+"Global";$.forEach((function(i){t[i.pluginName]&&(t[i.pluginName][r]&&t[i.pluginName][r](o({sortable:t},n)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,i){for(var r in $.forEach((function(i){var r=i.pluginName;if(e.options[r]||i.initializeByDefault){var o=new i(e,t,e.options);o.sortable=e,o.options=e.options,e[r]=o,a(n,o.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var o=this.modifyOption(e,r,e.options[r]);void 0!==o&&(e.options[r]=o)}},getEventProperties:function(e,t){var n={};return $.forEach((function(i){"function"==typeof i.eventProperties&&a(n,i.eventProperties.call(t[i.pluginName],e))})),n},modifyOption:function(e,t,n){var i;return $.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[t]&&(i=r.optionListeners[t].call(e[r.pluginName],n))})),i}};function V(e){var t=e.sortable,n=e.rootEl,i=e.name,r=e.targetEl,a=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,h=e.newIndex,f=e.oldDraggableIndex,p=e.newDraggableIndex,m=e.originalEvent,g=e.putSortable,_=e.extraEventProperties;if(t=t||n&&n[q]){var v,y=t.options,b="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||u||d?(v=document.createEvent("Event")).initEvent(i,!0,!0):v=new CustomEvent(i,{bubbles:!0,cancelable:!0}),v.to=s||n,v.from=l||n,v.item=r||n,v.clone=a,v.oldIndex=c,v.newIndex=h,v.oldDraggableIndex=f,v.newDraggableIndex=p,v.originalEvent=m,v.pullMode=g?g.lastPutMode:void 0;var w=o({},_,U.getEventProperties(i,t));for(var x in w)v[x]=w[x];n&&n.dispatchEvent(v),y[b]&&y[b].call(t,v)}}var X=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,r=s(n,["evt"]);U.pluginEvent.bind(He)(e,t,o({dragEl:J,parentEl:Q,ghostEl:K,rootEl:Z,nextEl:ee,lastDownEl:te,cloneEl:ne,cloneHidden:ie,dragStarted:ge,putSortable:ce,activeSortable:He.active,originalEvent:i,oldIndex:re,oldDraggableIndex:oe,newIndex:ae,newDraggableIndex:se,hideGhostForTarget:Ie,unhideGhostForTarget:Fe,cloneNowHidden:function(){ie=!0},cloneNowShown:function(){ie=!1},dispatchSortableEvent:function(e){G({sortable:t,name:e,originalEvent:i})}},r))};function G(e){V(o({putSortable:ce,cloneEl:ne,targetEl:J,rootEl:Z,oldIndex:re,oldDraggableIndex:oe,newIndex:ae,newDraggableIndex:se},e))}var J,Q,K,Z,ee,te,ne,ie,re,ae,oe,se,le,ce,ue,de,he,fe,pe,me,ge,_e,ve,ye,be,we=!1,xe=!1,ke=[],Ae=!1,Se=!1,Me=[],Te=!1,Le=[],Ee="undefined"!=typeof document,Ce=p,De=d||u?"cssFloat":"float",Oe=Ee&&!m&&!p&&"draggable"in document.createElement("div"),Ye=function(){if(Ee){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Pe=function(e,t){var n=S(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=D(e,0,t),a=D(e,1,t),o=r&&S(r),s=a&&S(a),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+E(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+E(a).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(r&&o.float&&"none"!==o.float){var u="left"===o.float?"left":"right";return!a||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return r&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=i&&"none"===n[De]||a&&"none"===n[De]&&l+c>i)?"vertical":"horizontal"},je=function(e){function t(e,n){return function(i,r,a,o){var s=i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(i,r,a,o),n)(i,r,a,o);var l=(n?i:r).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==i(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Ie=function(){!Ye&&K&&S(K,"display","none")},Fe=function(){!Ye&&K&&S(K,"display","")};Ee&&document.addEventListener("click",(function(e){if(xe)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),xe=!1,!1}),!0);var Ne=function(e){if(J){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,a=e.clientY,ke.some((function(e){if(!O(e)){var t=E(e),n=e[q].options.emptyInsertThreshold,i=r>=t.left-n&&r<=t.right+n,s=a>=t.top-n&&a<=t.bottom+n;return n&&i&&s?o=e:void 0}})),o);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[q]._onDragOver(n)}}var r,a,o},Re=function(e){J&&J.parentNode[q]._isOutsideThisEl(e.target)};function He(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=a({},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 Pe(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!==He.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in U.initializePlugins(this,e,n),n)!(i in t)&&(t[i]=n[i]);for(var r in je(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Oe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?_(e,"pointerdown",this._onTapStart):(_(e,"mousedown",this._onTapStart),_(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(_(e,"dragover",this),_(e,"dragenter",this)),ke.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),a(this,B())}function ze(e,t,n,i,r,a,o,s){var l,c,h=e[q],f=h.options.onMove;return!window.CustomEvent||u||d?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=r||t,l.relatedRect=a||E(t),l.willInsertAfter=s,l.originalEvent=o,e.dispatchEvent(l),f&&(c=f.call(h,l,o)),c}function qe(e){e.draggable=!1}function Be(){Te=!1}function $e(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function We(e){return setTimeout(e,0)}function Ue(e){return clearTimeout(e)}He.prototype={constructor:He,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(_e=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,J):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,r=i.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(o||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=i.filter;if(function(e){Le.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var i=t[n];i.checked&&Le.push(i)}}(n),!J&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||i.disabled||l.isContentEditable||(s=w(s,i.draggable,n,!1))&&s.animated||te===s)){if(re=Y(s),oe=Y(s,i.draggable),"function"==typeof c){if(c.call(this,e,s,this))return G({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),X("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(i){if(i=w(l,i.trim(),n,!1))return G({sortable:t,rootEl:i,name:"filter",targetEl:s,fromEl:n,toEl:n}),X("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());i.handle&&!w(l,i.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var i,r=this,a=r.el,o=r.options,s=a.ownerDocument;if(n&&!J&&n.parentNode===a){var l=E(n);if(Z=a,Q=(J=n).parentNode,ee=J.nextSibling,te=n,le=o.group,He.dragged=J,ue={target:J,clientX:(t||e).clientX,clientY:(t||e).clientY},pe=ue.clientX-l.left,me=ue.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,J.style["will-change"]="all",i=function(){X("delayEnded",r,{evt:e}),He.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!h&&r.nativeDraggable&&(J.draggable=!0),r._triggerDragStart(e,t),G({sortable:r,name:"choose",originalEvent:e}),A(J,o.chosenClass,!0))},o.ignore.split(",").forEach((function(e){T(J,e.trim(),qe)})),_(s,"dragover",Ne),_(s,"mousemove",Ne),_(s,"touchmove",Ne),_(s,"mouseup",r._onDrop),_(s,"touchend",r._onDrop),_(s,"touchcancel",r._onDrop),h&&this.nativeDraggable&&(this.options.touchStartThreshold=4,J.draggable=!0),X("delayStart",this,{evt:e}),!o.delay||o.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||u))i();else{if(He.eventCanceled)return void this._onDrop();_(s,"mouseup",r._disableDelayedDrag),_(s,"touchend",r._disableDelayedDrag),_(s,"touchcancel",r._disableDelayedDrag),_(s,"mousemove",r._delayedDragTouchMoveHandler),_(s,"touchmove",r._delayedDragTouchMoveHandler),o.supportPointer&&_(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(i,o.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){J&&qe(J),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._disableDelayedDrag),v(e,"touchend",this._disableDelayedDrag),v(e,"touchcancel",this._disableDelayedDrag),v(e,"mousemove",this._delayedDragTouchMoveHandler),v(e,"touchmove",this._delayedDragTouchMoveHandler),v(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?_(document,"pointermove",this._onTouchMove):_(document,t?"touchmove":"mousemove",this._onTouchMove):(_(J,"dragend",this),_(Z,"dragstart",this._onDragStart));try{document.selection?We((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(we=!1,Z&&J){X("dragStarted",this,{evt:t}),this.nativeDraggable&&_(document,"dragover",Re);var n=this.options;!e&&A(J,n.dragClass,!1),A(J,n.ghostClass,!0),He.active=this,e&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(de){this._lastX=de.clientX,this._lastY=de.clientY,Ie();for(var e=document.elementFromPoint(de.clientX,de.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(de.clientX,de.clientY))!==t;)t=e;if(J.parentNode[q]._isOutsideThisEl(e),t)do{if(t[q]){if(t[q]._onDragOver({clientX:de.clientX,clientY:de.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Fe()}},_onTouchMove:function(e){if(ue){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,a=K&&M(K,!0),o=K&&a&&a.a,s=K&&a&&a.d,l=Ce&&be&&P(be),c=(r.clientX-ue.clientX+i.x)/(o||1)+(l?l[0]-Me[0]:0)/(o||1),u=(r.clientY-ue.clientY+i.y)/(s||1)+(l?l[1]-Me[1]:0)/(s||1);if(!He.active&&!we){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(K){a?(a.e+=c-(he||0),a.f+=u-(fe||0)):a={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");S(K,"webkitTransform",d),S(K,"mozTransform",d),S(K,"msTransform",d),S(K,"transform",d),he=c,fe=u,de=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!K){var e=this.options.fallbackOnBody?document.body:Z,t=E(J,!0,Ce,!0,e),n=this.options;if(Ce){for(be=e;"static"===S(be,"position")&&"none"===S(be,"transform")&&be!==document;)be=be.parentNode;be!==document.body&&be!==document.documentElement?(be===document&&(be=L()),t.top+=be.scrollTop,t.left+=be.scrollLeft):be=L(),Me=P(be)}A(K=J.cloneNode(!0),n.ghostClass,!1),A(K,n.fallbackClass,!0),A(K,n.dragClass,!0),S(K,"transition",""),S(K,"transform",""),S(K,"box-sizing","border-box"),S(K,"margin",0),S(K,"top",t.top),S(K,"left",t.left),S(K,"width",t.width),S(K,"height",t.height),S(K,"opacity","0.8"),S(K,"position",Ce?"absolute":"fixed"),S(K,"zIndex","100000"),S(K,"pointerEvents","none"),He.ghost=K,e.appendChild(K),S(K,"transform-origin",pe/parseInt(K.style.width)*100+"% "+me/parseInt(K.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,r=n.options;X("dragStart",this,{evt:e}),He.eventCanceled?this._onDrop():(X("setupClone",this),He.eventCanceled||((ne=R(J)).draggable=!1,ne.style["will-change"]="",this._hideClone(),A(ne,this.options.chosenClass,!1),He.clone=ne),n.cloneId=We((function(){X("clone",n),He.eventCanceled||(n.options.removeCloneOnHide||Z.insertBefore(ne,J),n._hideClone(),G({sortable:n,name:"clone"}))})),!t&&A(J,r.dragClass,!0),t?(xe=!0,n._loopId=setInterval(n._emulateDragOver,50)):(v(document,"mouseup",n._onDrop),v(document,"touchend",n._onDrop),v(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(n,i,J)),_(document,"drop",n),S(J,"transform","translateZ(0)")),we=!0,n._dragStartId=We(n._dragStarted.bind(n,t,e)),_(document,"selectstart",n),ge=!0,f&&S(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,i,r,a=this.el,s=e.target,l=this.options,c=l.group,u=He.active,d=le===c,h=l.sort,f=ce||u,p=this,m=!1;if(!Te){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=w(s,l.draggable,a,!0),I("dragOver"),He.eventCanceled)return m;if(J.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return R(!1);if(xe=!1,u&&!l.disabled&&(d?h||(i=!Z.contains(J)):ce===this||(this.lastPutMode=le.checkPull(this,u,J,e))&&c.checkPut(this,u,J,e))){if(r="vertical"===this._getDirection(e,s),t=E(J),I("dragOverValid"),He.eventCanceled)return m;if(i)return Q=Z,F(),this._hideClone(),I("revert"),He.eventCanceled||(ee?Z.insertBefore(J,ee):Z.appendChild(J)),R(!0);var g=O(a,l.draggable);if(!g||function(e,t,n){var i=E(O(n.el,n.options.draggable)),r=10;return t?e.clientX>i.right+r||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+r}(e,r,this)&&!g.animated){if(g===J)return R(!1);if(g&&a===e.target&&(s=g),s&&(n=E(s)),!1!==ze(Z,a,J,t,s,n,e,!!s))return F(),a.appendChild(J),Q=a,H(),R(!0)}else if(s.parentNode===a){n=E(s);var _,v,y,b=J.parentNode!==a,x=!function(e,t,n){var i=n?e.left:e.top,r=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return i===o||r===s||i+a/2===o+l/2}(J.animated&&J.toRect||t,s.animated&&s.toRect||n,r),k=r?"top":"left",M=C(s,"top","top")||C(J,"top","top"),T=M?M.scrollTop:void 0;if(_e!==s&&(v=n[k],Ae=!1,Se=!x&&l.invertSwap||b),_=function(e,t,n,i,r,a,o,s){var l=i?e.clientY:e.clientX,c=i?n.height:n.width,u=i?n.top:n.left,d=i?n.bottom:n.right,h=!1;if(!o)if(s&&ye<c*r){if(!Ae&&(1===ve?l>u+c*a/2:l<d-c*a/2)&&(Ae=!0),Ae)h=!0;else if(1===ve?l<u+ye:l>d-ye)return-ve}else if(l>u+c*(1-r)/2&&l<d-c*(1-r)/2)return function(e){return Y(J)<Y(e)?1:-1}(t);if((h=h||o)&&(l<u+c*a/2||l>d-c*a/2))return l>u+c/2?1:-1;return 0}(e,s,n,r,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Se,_e===s),0!==_){var L=Y(J);do{L-=_,y=Q.children[L]}while(y&&("none"===S(y,"display")||y===K))}if(0===_||y===s)return R(!1);_e=s,ve=_;var D=s.nextElementSibling,P=!1,j=ze(Z,a,J,t,s,n,e,P=1===_);if(!1!==j)return 1!==j&&-1!==j||(P=1===j),Te=!0,setTimeout(Be,30),F(),P&&!D?a.appendChild(J):s.parentNode.insertBefore(J,P?D:s),M&&N(M,0,T-M.scrollTop),Q=J.parentNode,void 0===v||Se||(ye=Math.abs(v-E(s)[k])),H(),R(!0)}if(a.contains(J))return R(!1)}return!1}function I(l,c){X(l,p,o({evt:e,isOwner:d,axis:r?"vertical":"horizontal",revert:i,dragRect:t,targetRect:n,canSort:h,fromSortable:f,target:s,completed:R,onMove:function(n,i){return ze(Z,a,J,t,n,E(n),e,i)},changed:H},c))}function F(){I("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function R(t){return I("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(p),p!==f&&(A(J,ce?ce.options.ghostClass:u.options.ghostClass,!1),A(J,l.ghostClass,!0)),ce!==p&&p!==He.active?ce=p:p===He.active&&ce&&(ce=null),f===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){I("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===J&&!J.animated||s===a&&!s.animated)&&(_e=null),l.dragoverBubble||e.rootEl||s===document||(J.parentNode[q]._isOutsideThisEl(e.target),!t&&Ne(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function H(){ae=Y(J),se=Y(J,l.draggable),G({sortable:p,name:"change",toEl:a,newIndex:ae,newDraggableIndex:se,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",Ne),v(document,"mousemove",Ne),v(document,"touchmove",Ne)},_offUpEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._onDrop),v(e,"touchend",this._onDrop),v(e,"pointerup",this._onDrop),v(e,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ae=Y(J),se=Y(J,n.draggable),X("drop",this,{evt:e}),Q=J&&J.parentNode,ae=Y(J),se=Y(J,n.draggable),He.eventCanceled||(we=!1,Se=!1,Ae=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ue(this.cloneId),Ue(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&S(document.body,"user-select",""),S(J,"transform",""),e&&(ge&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),K&&K.parentNode&&K.parentNode.removeChild(K),(Z===Q||ce&&"clone"!==ce.lastPutMode)&&ne&&ne.parentNode&&ne.parentNode.removeChild(ne),J&&(this.nativeDraggable&&v(J,"dragend",this),qe(J),J.style["will-change"]="",ge&&!we&&A(J,ce?ce.options.ghostClass:this.options.ghostClass,!1),A(J,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:Q,newIndex:null,newDraggableIndex:null,originalEvent:e}),Z!==Q?(ae>=0&&(G({rootEl:Q,name:"add",toEl:Q,fromEl:Z,originalEvent:e}),G({sortable:this,name:"remove",toEl:Q,originalEvent:e}),G({rootEl:Q,name:"sort",toEl:Q,fromEl:Z,originalEvent:e}),G({sortable:this,name:"sort",toEl:Q,originalEvent:e})),ce&&ce.save()):ae!==re&&ae>=0&&(G({sortable:this,name:"update",toEl:Q,originalEvent:e}),G({sortable:this,name:"sort",toEl:Q,originalEvent:e})),He.active&&(null!=ae&&-1!==ae||(ae=re,se=oe),G({sortable:this,name:"end",toEl:Q,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){X("nulling",this),Z=J=Q=K=ee=ne=te=ie=ue=de=ge=ae=se=re=oe=_e=ve=ce=le=He.dragged=He.ghost=He.clone=He.active=null,Le.forEach((function(e){e.checked=!0})),Le.length=he=fe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":J&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,r=n.length,a=this.options;i<r;i++)w(e=n[i],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||$e(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,i){var r=n.children[i];w(r,this.options.draggable,n,!1)&&(t[e]=r)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return w(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var i=U.modifyOption(this,e,t);n[e]=void 0!==i?i:t,"group"===e&&je(n)},destroy:function(){X("destroy",this);var e=this.el;e[q]=null,v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart),v(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),ke.splice(ke.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ie){if(X("hideClone",this),He.eventCanceled)return;S(ne,"display","none"),this.options.removeCloneOnHide&&ne.parentNode&&ne.parentNode.removeChild(ne),ie=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ie){if(X("showClone",this),He.eventCanceled)return;Z.contains(J)&&!this.options.group.revertClone?Z.insertBefore(ne,J):ee?Z.insertBefore(ne,ee):Z.appendChild(ne),this.options.group.revertClone&&this.animate(J,ne),S(ne,"display",""),ie=!1}}else this._hideClone()}},Ee&&_(document,"touchmove",(function(e){(He.active||we)&&e.cancelable&&e.preventDefault()})),He.utils={on:_,off:v,css:S,find:T,is:function(e,t){return!!w(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:F,closest:w,toggleClass:A,clone:R,index:Y,nextTick:We,cancelNextTick:Ue,detectDirection:Pe,getChild:D},He.get=function(e){return e[q]},He.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(He.utils=o({},He.utils,e.utils)),U.mount(e)}))},He.create=function(e,t){return new He(e,t)},He.version="1.10.2";var Ve,Xe,Ge,Je,Qe,Ke,Ze=[],et=!1;function tt(){Ze.forEach((function(e){clearInterval(e.pid)})),Ze=[]}function nt(){clearInterval(Ke)}var it,rt=F((function(e,t,n,i){if(t.scroll){var r,a=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=L(),u=!1;Xe!==n&&(Xe=n,tt(),Ve=t.scroll,r=t.scrollFn,!0===Ve&&(Ve=j(n,!0)));var d=0,h=Ve;do{var f=h,p=E(f),m=p.top,g=p.bottom,_=p.left,v=p.right,y=p.width,b=p.height,w=void 0,x=void 0,k=f.scrollWidth,A=f.scrollHeight,M=S(f),T=f.scrollLeft,C=f.scrollTop;f===c?(w=y<k&&("auto"===M.overflowX||"scroll"===M.overflowX||"visible"===M.overflowX),x=b<A&&("auto"===M.overflowY||"scroll"===M.overflowY||"visible"===M.overflowY)):(w=y<k&&("auto"===M.overflowX||"scroll"===M.overflowX),x=b<A&&("auto"===M.overflowY||"scroll"===M.overflowY));var D=w&&(Math.abs(v-a)<=s&&T+y<k)-(Math.abs(_-a)<=s&&!!T),O=x&&(Math.abs(g-o)<=s&&C+b<A)-(Math.abs(m-o)<=s&&!!C);if(!Ze[d])for(var Y=0;Y<=d;Y++)Ze[Y]||(Ze[Y]={});Ze[d].vx==D&&Ze[d].vy==O&&Ze[d].el===f||(Ze[d].el=f,Ze[d].vx=D,Ze[d].vy=O,clearInterval(Ze[d].pid),0==D&&0==O||(u=!0,Ze[d].pid=setInterval(function(){i&&0===this.layer&&He.active._onTouchMove(Qe);var t=Ze[this.layer].vy?Ze[this.layer].vy*l:0,n=Ze[this.layer].vx?Ze[this.layer].vx*l:0;"function"==typeof r&&"continue"!==r.call(He.dragged.parentNode[q],n,t,e,Qe,Ze[this.layer].el)||N(Ze[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==c&&(h=j(h,!1)));et=u}}),30),at=function(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,r=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||r;o();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(a("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function ot(){}function st(){}function lt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;it=t},dragOverValid:function(e){var t=e.completed,n=e.target,i=e.onMove,r=e.activeSortable,a=e.changed,o=e.cancel;if(r.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=it;!1!==i(n)?(A(n,l.swapClass,!0),it=n):it=null,c&&c!==it&&A(c,l.swapClass,!1)}a(),t(!0),o()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,i=e.dragEl,r=n||this.sortable,a=this.options;it&&A(it,a.swapClass,!1),it&&(a.swap||n&&n.options.swap)&&i!==it&&(r.captureAnimationState(),r!==t&&t.captureAnimationState(),function(e,t){var n,i,r=e.parentNode,a=t.parentNode;if(!r||!a||r.isEqualNode(t)||a.isEqualNode(e))return;n=Y(e),i=Y(t),r.isEqualNode(a)&&n<i&&i++;r.insertBefore(t,r.children[n]),a.insertBefore(e,a.children[i])}(i,it),r.animateAll(),r!==t&&t.animateAll())},nulling:function(){it=null}},a(e,{pluginName:"swap",eventProperties:function(){return{swapItem:it}}})}ot.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=D(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:at},a(ot,{pluginName:"revertOnSpill"}),st.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:at},a(st,{pluginName:"removeOnSpill"});var ct,ut,dt,ht,ft,pt=[],mt=[],gt=!1,_t=!1,vt=!1;function yt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?_(document,"pointerup",this._deselectMultiDrag):(_(document,"mouseup",this._deselectMultiDrag),_(document,"touchend",this._deselectMultiDrag)),_(document,"keydown",this._checkKeyDown),_(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var i="";pt.length&&ut===e?pt.forEach((function(e,t){i+=(t?", ":"")+e.textContent})):i=n.textContent,t.setData("Text",i)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;dt=t},delayEnded:function(){this.isMultiDrag=~pt.indexOf(dt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var i=0;i<pt.length;i++)mt.push(R(pt[i])),mt[i].sortableIndex=pt[i].sortableIndex,mt[i].draggable=!1,mt[i].style["will-change"]="",A(mt[i],this.options.selectedClass,!1),pt[i]===dt&&A(mt[i],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,i=e.dispatchSortableEvent,r=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||pt.length&&ut===t&&(bt(!0,n),i("clone"),r()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,i=e.cancel;this.isMultiDrag&&(bt(!1,n),mt.forEach((function(e){S(e,"display","")})),t(),ft=!1,i())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),i=e.cancel;this.isMultiDrag&&(mt.forEach((function(e){S(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),ft=!0,i())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&ut&&ut.multiDrag._deselectMultiDrag(),pt.forEach((function(e){e.sortableIndex=Y(e)})),pt=pt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),vt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){pt.forEach((function(e){e!==dt&&S(e,"position","absolute")}));var i=E(dt,!1,!0,!0);pt.forEach((function(e){e!==dt&&H(e,i)})),_t=!0,gt=!0}n.animateAll((function(){_t=!1,gt=!1,t.options.animation&&pt.forEach((function(e){z(e)})),t.options.sort&&wt()}))}},dragOver:function(e){var t=e.target,n=e.completed,i=e.cancel;_t&&~pt.indexOf(t)&&(n(!1),i())},revert:function(e){var t=e.fromSortable,n=e.rootEl,i=e.sortable,r=e.dragRect;pt.length>1&&(pt.forEach((function(e){i.addAnimationState({target:e,rect:_t?E(e):r}),z(e),e.fromRect=r,t.removeAnimationState(e)})),_t=!1,function(e,t){pt.forEach((function(n,i){var r=t.children[n.sortableIndex+(e?Number(i):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,i=e.insertion,r=e.activeSortable,a=e.parentEl,o=e.putSortable,s=this.options;if(i){if(n&&r._hideClone(),gt=!1,s.animation&&pt.length>1&&(_t||!n&&!r.options.sort&&!o)){var l=E(dt,!1,!0,!0);pt.forEach((function(e){e!==dt&&(H(e,l),a.appendChild(e))})),_t=!0}if(!n)if(_t||wt(),pt.length>1){var c=ft;r._showClone(t),r.options.animation&&!ft&&c&&mt.forEach((function(e){r.addAnimationState({target:e,rect:ht}),e.fromRect=ht,e.thisAnimationDuration=null}))}else r._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,i=e.activeSortable;if(pt.forEach((function(e){e.thisAnimationDuration=null})),i.options.animation&&!n&&i.multiDrag.isMultiDrag){ht=a({},t);var r=M(dt,!0);ht.top-=r.f,ht.left-=r.e}},dragOverAnimationComplete:function(){_t&&(_t=!1,wt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,i=e.parentEl,r=e.sortable,a=e.dispatchSortableEvent,o=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,u=i.children;if(!vt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),A(dt,c.selectedClass,!~pt.indexOf(dt)),~pt.indexOf(dt))pt.splice(pt.indexOf(dt),1),ct=null,V({sortable:r,rootEl:n,name:"deselect",targetEl:dt,originalEvt:t});else{if(pt.push(dt),V({sortable:r,rootEl:n,name:"select",targetEl:dt,originalEvt:t}),t.shiftKey&&ct&&r.el.contains(ct)){var d,h,f=Y(ct),p=Y(dt);if(~f&&~p&&f!==p)for(p>f?(h=f,d=p):(h=p,d=f+1);h<d;h++)~pt.indexOf(u[h])||(A(u[h],c.selectedClass,!0),pt.push(u[h]),V({sortable:r,rootEl:n,name:"select",targetEl:u[h],originalEvt:t}))}else ct=dt;ut=l}if(vt&&this.isMultiDrag){if((i[q].options.sort||i!==n)&&pt.length>1){var m=E(dt),g=Y(dt,":not(."+this.options.selectedClass+")");if(!gt&&c.animation&&(dt.thisAnimationDuration=null),l.captureAnimationState(),!gt&&(c.animation&&(dt.fromRect=m,pt.forEach((function(e){if(e.thisAnimationDuration=null,e!==dt){var t=_t?E(e):m;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),wt(),pt.forEach((function(e){u[g]?i.insertBefore(e,u[g]):i.appendChild(e),g++})),o===Y(dt))){var _=!1;pt.forEach((function(e){e.sortableIndex===Y(e)||(_=!0)})),_&&a("update")}pt.forEach((function(e){z(e)})),l.animateAll()}ut=l}(n===i||s&&"clone"!==s.lastPutMode)&&mt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=vt=!1,mt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),v(document,"pointerup",this._deselectMultiDrag),v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==vt&&vt||ut!==this.sortable||e&&w(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;pt.length;){var t=pt[0];A(t,this.options.selectedClass,!1),pt.shift(),V({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)}},a(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[q];t&&t.options.multiDrag&&!~pt.indexOf(e)&&(ut&&ut!==t&&(ut.multiDrag._deselectMultiDrag(),ut=t),A(e,t.options.selectedClass,!0),pt.push(e))},deselect:function(e){var t=e.parentNode[q],n=pt.indexOf(e);t&&t.options.multiDrag&&~n&&(A(e,t.options.selectedClass,!1),pt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return pt.forEach((function(i){var r;t.push({multiDragElement:i,index:i.sortableIndex}),r=_t&&i!==dt?-1:_t?Y(i,":not(."+e.options.selectedClass+")"):Y(i),n.push({multiDragElement:i,index:r})})),{items:l(pt),clones:[].concat(mt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function bt(e,t){mt.forEach((function(n,i){var r=t.children[n.sortableIndex+(e?Number(i):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}function wt(){pt.forEach((function(e){e!==dt&&e.parentNode&&e.parentNode.removeChild(e)}))}He.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):this.options.supportPointer?_(document,"pointermove",this._handleFallbackAutoScroll):t.touches?_(document,"touchmove",this._handleFallbackAutoScroll):_(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),nt(),tt(),clearTimeout(x),x=void 0},nulling:function(){Qe=Xe=Ve=et=Ke=Ge=Je=null,Ze.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(i,r);if(Qe=e,t||d||u||f){rt(e,this.options,a,t);var o=j(a,!0);!et||Ke&&i===Ge&&r===Je||(Ke&&nt(),Ke=setInterval((function(){var a=j(document.elementFromPoint(i,r),!0);a!==o&&(o=a,tt()),rt(e,n.options,a,t)}),10),Ge=i,Je=r)}else{if(!this.options.bubbleScroll||j(a,!0)===L())return void tt();rt(e,this.options,j(a,!1),!1)}}},a(e,{pluginName:"scroll",initializeByDefault:!0})}),He.mount(st,ot);const xt=He},6368:function(e,t){!function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var n=function(){function e(t,n,i,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.language=t,this.months=n,this.monthsAbbr=i,this.days=r,this.rtl=!1,this.ymd=!1,this.yearSuffix=""}var n,i,r;return n=e,(i=[{key:"language",get:function(){return this._language},set:function(e){if("string"!=typeof e)throw new TypeError("Language must be a string");this._language=e}},{key:"months",get:function(){return this._months},set:function(e){if(12!==e.length)throw new RangeError("There must be 12 months for ".concat(this.language," language"));this._months=e}},{key:"monthsAbbr",get:function(){return this._monthsAbbr},set:function(e){if(12!==e.length)throw new RangeError("There must be 12 abbreviated months for ".concat(this.language," language"));this._monthsAbbr=e}},{key:"days",get:function(){return this._days},set:function(e){if(7!==e.length)throw new RangeError("There must be 7 days for ".concat(this.language," language"));this._days=e}}])&&t(n.prototype,i),r&&t(n,r),e}(),i=new n("Afrikaans",["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"],["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],["So.","Ma.","Di.","Wo.","Do.","Vr.","Sa."]),r=new n("Arabic",["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوڤمبر","ديسمبر"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوڤمبر","ديسمبر"],["أحد","إثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"]);r.rtl=!0;var a=new n("Bulgarian",["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],["Ян","Фев","Мар","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Ное","Дек"],["Нд","Пн","Вт","Ср","Чт","Пт","Сб"]),o=new n("Bosnian",["Januar","Februar","Mart","April","Maj","Juni","Juli","Avgust","Septembar","Oktobar","Novembar","Decembar"],["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],["Ned","Pon","Uto","Sri","Čet","Pet","Sub"]),s=new n("Catalan",["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],["Gen","Feb","Mar","Abr","Mai","Jun","Jul","Ago","Set","Oct","Nov","Des"],["Diu","Dil","Dmr","Dmc","Dij","Div","Dis"]),l=new n("Czech",["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],["led","úno","bře","dub","kvě","čer","čec","srp","zář","říj","lis","pro"],["ne","po","út","st","čt","pá","so"]),c=new n("Danish",["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],["Sø","Ma","Ti","On","To","Fr","Lø"]),u=new n("German",["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]),d=new n("Estonian",["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],["Jaan","Veebr","Märts","Apr","Mai","Juuni","Juuli","Aug","Sept","Okt","Nov","Dets"],["P","E","T","K","N","R","L"]),h=new n("Greek",["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάϊος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],["Ιαν","Φεβ","Μαρ","Απρ","Μαι","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"]),f=new n("English",["January","February","March","April","May","June","July","August","September","October","November","December"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),p=new n("Spanish",["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"]),m=new n("Persian",["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],["فرو","ارد","خرد","تیر","مرد","شهر","مهر","آبا","آذر","دی","بهم","اسف"],["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]),g=new n("Finnish",["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],["su","ma","ti","ke","to","pe","la"]),_=new n("Faroese",["Januar","Februar","Mars","Apríl","Mai","Juni","Juli","August","Septembur","Oktobur","Novembur","Desembur"],["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],["Sun","Mán","Týs","Mik","Hós","Frí","Ley"]),v=new n("French",["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],["Jan","Fév","Mar","Avr","Mai","Juin","Juil","Août","Sep","Oct","Nov","Déc"],["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"]),y=new n("Georgia",["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],["იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ"],["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"]),b=new n("Galician",["Xaneiro","Febreiro","Marzo","Abril","Maio","Xuño","Xullo","Agosto","Setembro","Outubro","Novembro","Decembro"],["Xan","Feb","Mar","Abr","Mai","Xuñ","Xul","Ago","Set","Out","Nov","Dec"],["Dom","Lun","Mar","Mér","Xov","Ven","Sáb"]),w=new n("Hebrew",["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],["ינו","פבר","מרץ","אפר","מאי","יונ","יול","אוג","ספט","אוק","נוב","דצמ"],["א","ב","ג","ד","ה","ו","ש"]);w.rtl=!0;var x=new n("Croatian",["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],["Sij","Velj","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],["Ned","Pon","Uto","Sri","Čet","Pet","Sub"]),k=new n("Hungarian",["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],["Jan","Febr","Márc","Ápr","Máj","Jún","Júl","Aug","Szept","Okt","Nov","Dec"],["Vas","Hét","Ke","Sze","Csü","Pén","Szo"]),A=new n("Indonesian",["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],["Min","Sen","Sel","Rab","Kam","Jum","Sab"]),S=new n("Icelandic",["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],["Jan","Feb","Mars","Apr","Maí","Jún","Júl","Ágú","Sep","Okt","Nóv","Des"],["Sun","Mán","Þri","Mið","Fim","Fös","Lau"]),M=new n("Italian",["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],["Dom","Lun","Mar","Mer","Gio","Ven","Sab"]),T=new n("Japanese",["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],["日","月","火","水","木","金","土"]);T.yearSuffix="年",T.ymd=!0;var L=new n("Kazakh",["Қаңтар","Ақпан","Наурыз","Сәуір","Мамыр","Маусым","Шілде","Тамыз","Қыркүйек","Қазан","Қараша","Желтоқсан"],["Қаң","Ақп","Нау","Сәу","Мам","Мау","Шіл","Там","Қыр","Қаз","Қар","Жел"],["Жк","Дй","Сй","Ср","Бй","Жм","Сн"]),E=new n("Korean",["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],["일","월","화","수","목","금","토"]);E.yearSuffix="년",E.ymd=!0;var C=new n("Luxembourgish",["Januar","Februar","Mäerz","Abrëll","Mee","Juni","Juli","August","September","Oktober","November","Dezember"],["Jan","Feb","Mäe","Abr","Mee","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["So.","Mé.","Dë.","Më.","Do.","Fr.","Sa."]),D=new n("Lithuanian",["Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis","Gruodis"],["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gru"],["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"]);D.ymd=!0;var O=new n("Latvian",["Janvāris","Februāris","Marts","Aprīlis","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],["Jan","Feb","Mar","Apr","Mai","Jūn","Jūl","Aug","Sep","Okt","Nov","Dec"],["Sv","Pr","Ot","Tr","Ce","Pk","Se"]),Y=new n("Macedonian",["Јануари","Февруари","Март","Април","Мај","Јуни","Јули","Август","Септември","Октомври","Ноември","Декември"],["Јан","Фев","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Ное","Дек"],["Нед","Пон","Вто","Сре","Чет","Пет","Саб"]),P=new n("Mongolia",["1 дүгээр сар","2 дугаар сар","3 дугаар сар","4 дүгээр сар","5 дугаар сар","6 дугаар сар","7 дугаар сар","8 дугаар сар","9 дүгээр сар","10 дугаар сар","11 дүгээр сар","12 дугаар сар"],["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],["Ня","Да","Мя","Лх","Пү","Ба","Бя"]);P.ymd=!0;var j=new n("Norwegian Bokmål",["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],["Sø","Ma","Ti","On","To","Fr","Lø"]),I=new n("Dutch",["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],["zo","ma","di","wo","do","vr","za"]),F=new n("Polish",["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],["Nd","Pn","Wt","Śr","Czw","Pt","Sob"]),N=new n("Brazilian",["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],["Dom","Seg","Ter","Qua","Qui","Sex","Sab"]),R=new n("Romanian",["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Noi","Dec"],["D","L","Ma","Mi","J","V","S"]),H=new n("Russian",["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],["Янв","Февр","Март","Апр","Май","Июнь","Июль","Авг","Сент","Окт","Нояб","Дек"],["Вс","Пн","Вт","Ср","Чт","Пт","Сб"]),z=new n("Slovakian",["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"],["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],["ne","po","ut","st","št","pi","so"]),q=new n("Sloveian",["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],["Ned","Pon","Tor","Sre","Čet","Pet","Sob"]),B=new n("Serbian in Cyrillic script",["Јануар","Фебруар","Март","Април","Мај","Јун","Јул","Август","Септембар","Октобар","Новембар","Децембар"],["Јан","Феб","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Нов","Дец"],["Нед","Пон","Уто","Сре","Чет","Пет","Суб"]),$=new n("Serbian",["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],["Ned","Pon","Uto","Sre","Čet","Pet","Sub"]),W=new n("Swedish",["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]),U=new n("Thai",["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],["อา","จ","อ","พ","พฤ","ศ","ส"]),V=new n("Turkish",["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"]),X=new n("Ukraine",["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],["Січ","Лют","Бер","Квіт","Трав","Чер","Лип","Серп","Вер","Жовт","Лист","Груд"],["Нд","Пн","Вт","Ср","Чт","Пт","Сб"]),G=new n("Urdu",["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","سپتمبر","اکتوبر","نومبر","دسمبر"],["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","سپتمبر","اکتوبر","نومبر","دسمبر"],["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"]);G.rtl=!0;var J=new n("Vietnamese",["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],["T 01","T 02","T 03","T 04","T 05","T 06","T 07","T 08","T 09","T 10","T 11","T 12"],["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"]),Q=new n("Chinese",["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],["日","一","二","三","四","五","六"]);Q.yearSuffix="年";var K=new n("Chinese_HK",["壹月","贰月","叁月","肆月","伍月","陆月","柒月","捌月","玖月","拾月","拾壹月","拾贰月"],["壹月","贰月","叁月","肆月","伍月","陆月","柒月","捌月","玖月","拾月","拾壹月","拾贰月"],["日","壹","贰","叁","肆","伍","陆"]);K.yearSuffix="年",e.af=i,e.ar=r,e.bg=a,e.bs=o,e.ca=s,e.cs=l,e.da=c,e.de=u,e.ee=d,e.el=h,e.en=f,e.es=p,e.fa=m,e.fi=g,e.fo=_,e.fr=v,e.ge=y,e.gl=b,e.he=w,e.hr=x,e.hu=k,e.id=A,e.is=S,e.it=M,e.ja=T,e.kk=L,e.ko=E,e.lb=C,e.lt=D,e.lv=O,e.mk=Y,e.mn=P,e.nbNO=j,e.nl=I,e.pl=F,e.ptBR=N,e.ro=R,e.ru=H,e.sk=z,e.slSI=q,e.sr=$,e.srCYRL=B,e.sv=W,e.th=U,e.tr=V,e.uk=X,e.ur=G,e.vi=J,e.zh=Q,e.zhHK=K,Object.defineProperty(e,"__esModule",{value:!0})}(t)},7540:(e,t,n)=>{"use strict";function i(e){return i="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},i(e)}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(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(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){a(e,t,n[t])}))}return e}n.d(t,{Z:()=>C});var s=new(function(){function e(t,n,i,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.language=t,this.months=n,this.monthsAbbr=i,this.days=r,this.rtl=!1,this.ymd=!1,this.yearSuffix=""}var t,n,i;return t=e,(n=[{key:"language",get:function(){return this._language},set:function(e){if("string"!=typeof e)throw new TypeError("Language must be a string");this._language=e}},{key:"months",get:function(){return this._months},set:function(e){if(12!==e.length)throw new RangeError("There must be 12 months for ".concat(this.language," language"));this._months=e}},{key:"monthsAbbr",get:function(){return this._monthsAbbr},set:function(e){if(12!==e.length)throw new RangeError("There must be 12 abbreviated months for ".concat(this.language," language"));this._monthsAbbr=e}},{key:"days",get:function(){return this._days},set:function(e){if(7!==e.length)throw new RangeError("There must be 7 days for ".concat(this.language," language"));this._days=e}}])&&r(t.prototype,n),i&&r(t,i),e}())("English",["January","February","March","April","May","June","July","August","September","October","November","December"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),l={useUtc:!1,getFullYear:function(e){return this.useUtc?e.getUTCFullYear():e.getFullYear()},getMonth:function(e){return this.useUtc?e.getUTCMonth():e.getMonth()},getDate:function(e){return this.useUtc?e.getUTCDate():e.getDate()},getDay:function(e){return this.useUtc?e.getUTCDay():e.getDay()},getHours:function(e){return this.useUtc?e.getUTCHours():e.getHours()},getMinutes:function(e){return this.useUtc?e.getUTCMinutes():e.getMinutes()},setFullYear:function(e,t,n){return this.useUtc?e.setUTCFullYear(t):e.setFullYear(t)},setMonth:function(e,t,n){return this.useUtc?e.setUTCMonth(t):e.setMonth(t)},setDate:function(e,t,n){return this.useUtc?e.setUTCDate(t):e.setDate(t)},compareDates:function(e,t){var n=new Date(e.getTime()),i=new Date(t.getTime());return this.useUtc?(n.setUTCHours(0,0,0,0),i.setUTCHours(0,0,0,0)):(n.setHours(0,0,0,0),i.setHours(0,0,0,0)),n.getTime()===i.getTime()},isValidDate:function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},getDayNameAbbr:function(e,t){if("object"!==i(e))throw TypeError("Invalid Type");return t[this.getDay(e)]},getMonthName:function(e,t){if(!t)throw Error("missing 2nd parameter Months array");if("object"===i(e))return t[this.getMonth(e)];if("number"==typeof e)return t[e];throw TypeError("Invalid type")},getMonthNameAbbr:function(e,t){if(!t)throw Error("missing 2nd paramter Months array");if("object"===i(e))return t[this.getMonth(e)];if("number"==typeof e)return t[e];throw TypeError("Invalid type")},daysInMonth:function(e,t){return/8|3|5|10/.test(t)?30:1===t?(e%4||!(e%100))&&e%400?28:29:31},getNthSuffix:function(e){switch(e){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},formatDate:function(e,t,n){n=n||s;var i=this.getFullYear(e),r=this.getMonth(e)+1,a=this.getDate(e);return t.replace(/dd/,("0"+a).slice(-2)).replace(/d/,a).replace(/yyyy/,i).replace(/yy/,String(i).slice(2)).replace(/MMMM/,this.getMonthName(this.getMonth(e),n.months)).replace(/MMM/,this.getMonthNameAbbr(this.getMonth(e),n.monthsAbbr)).replace(/MM/,("0"+r).slice(-2)).replace(/M(?!a|ä|e)/,r).replace(/su/,this.getNthSuffix(this.getDate(e))).replace(/D(?!e|é|i)/,this.getDayNameAbbr(e,n.days))},createDateArray:function(e,t){for(var n=[];e<=t;)n.push(new Date(e)),e=this.setDate(new Date(e),this.getDate(new Date(e))+1);return n},validateDateInput:function(e){return null===e||e instanceof Date||"string"==typeof e||"number"==typeof e}},c=function(e){return o({},l,{useUtc:e})},u=o({},l);var d=function(e,t,n,i,r,a,o,s,l,c){"boolean"!=typeof o&&(l=s,s=o,o=!1);var u,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,r&&(d.functional=!0)),i&&(d._scopeId=i),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=u):t&&(u=o?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),u)if(d.functional){var h=d.render;d.render=function(e,t){return u.call(t),h(e,t)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,u):[u]}return n};const h={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},data:function(){return{input:null,typedDate:!1,utils:c(this.useUtc)}},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},computedInputClass:function(){return this.bootstrapStyling?"string"==typeof this.inputClass?[this.inputClass,"form-control"].join(" "):o({"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")}};var f=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",{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.formattedValue},on:{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)};f._withStripped=!0;var p=d({render:f,staticRenderFns:[]},undefined,h,undefined,!1,undefined,void 0,void 0);const m={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},data:function(){return{utils:c(this.useUtc)}},computed:{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()),i=this.utils.daysInMonth(this.utils.getFullYear(n),this.utils.getMonth(n)),r=0;r<i;r++)t.push({date:this.utils.getDate(n),timestamp:n.getTime(),isSelected:this.isSelectedDate(n),isDisabled:this.isDisabledDate(n),isHighlighted:this.isHighlightedDate(n),isHighlightStart:this.isHighlightStart(n),isHighlightEnd:this.isHighlightEnd(n),isToday:this.utils.compareDates(n,new Date),isWeekend:0===this.utils.getDay(n)||6===this.utils.getDay(n),isSaturday:6===this.utils.getDay(n),isSunday:0===this.utils.getDay(n)}),this.utils.setDate(n,this.utils.getDate(n)+1);return t},currMonthName:function(){var e=this.fullMonthName?this.translation.months:this.translation.monthsAbbr;return this.utils.getMonthNameAbbr(this.utils.getMonth(this.pageDate),e)},currYearName:function(){var e=this.translation.yearSuffix;return"".concat(this.utils.getFullYear(this.pageDate)).concat(e)},isYmd:function(){return this.translation.ymd&&!0===this.translation.ymd},isLeftNavDisabled:function(){return this.isRtl?this.isNextMonthDisabled(this.pageTimestamp):this.isPreviousMonthDisabled(this.pageTimestamp)},isRightNavDisabled:function(){return this.isRtl?this.isPreviousMonthDisabled(this.pageTimestamp):this.isNextMonthDisabled(this.pageTimestamp)}},methods:{selectDate:function(e){if(e.isDisabled)return this.$emit("selectedDisabled",e),!1;this.$emit("selectDate",e)},getPageMonth:function(){return this.utils.getMonth(this.pageDate)},showMonthCalendar:function(){this.$emit("showMonthCalendar")},changeMonth:function(e){var t=this.pageDate;this.utils.setMonth(t,this.utils.getMonth(t)+e),this.$emit("changedMonth",t)},previousMonth:function(){this.isPreviousMonthDisabled()||this.changeMonth(-1)},isPreviousMonthDisabled:function(){if(!this.disabledDates||!this.disabledDates.to)return!1;var e=this.pageDate;return this.utils.getMonth(this.disabledDates.to)>=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 void 0!==this.disabledDates&&(void 0!==this.disabledDates.dates&&this.disabledDates.dates.forEach((function(i){if(t.utils.compareDates(e,i))return n=!0,!0})),void 0!==this.disabledDates.to&&this.disabledDates.to&&e<this.disabledDates.to&&(n=!0),void 0!==this.disabledDates.from&&this.disabledDates.from&&e>this.disabledDates.from&&(n=!0),void 0!==this.disabledDates.ranges&&this.disabledDates.ranges.forEach((function(t){if(void 0!==t.from&&t.from&&void 0!==t.to&&t.to&&e<t.to&&e>t.from)return n=!0,!0})),void 0!==this.disabledDates.days&&-1!==this.disabledDates.days.indexOf(this.utils.getDay(e))&&(n=!0),void 0!==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 void 0!==this.highlighted&&(void 0!==this.highlighted.dates&&this.highlighted.dates.forEach((function(i){if(t.utils.compareDates(e,i))return n=!0,!0})),this.isDefined(this.highlighted.from)&&this.isDefined(this.highlighted.to)&&(n=e>=this.highlighted.from&&e<=this.highlighted.to),void 0!==this.highlighted.days&&-1!==this.highlighted.days.indexOf(this.utils.getDay(e))&&(n=!0),void 0!==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 void 0!==e&&e}}};var g=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)],2)};g._withStripped=!0;var _=d({render:g,staticRenderFns:[]},undefined,m,undefined,!1,undefined,void 0,void 0);const v={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(){return{utils:c(this.useUtc)}},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()),i=0;i<12;i++)t.push({month:this.utils.getMonthName(i,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 void 0!==this.disabledDates&&(void 0!==this.disabledDates.to&&this.disabledDates.to&&(this.utils.getMonth(e)<this.utils.getMonth(this.disabledDates.to)&&this.utils.getFullYear(e)<=this.utils.getFullYear(this.disabledDates.to)||this.utils.getFullYear(e)<this.utils.getFullYear(this.disabledDates.to))&&(t=!0),void 0!==this.disabledDates.from&&this.disabledDates.from&&(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)}}};var y=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)};y._withStripped=!0;var b=d({render:y,staticRenderFns:[]},undefined,v,undefined,!1,undefined,void 0,void 0);const w={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()),i=0;i<10;i++)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(){return{utils:c(this.useUtc)}},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(){return!(!this.disabledDates||!this.disabledDates.to)&&this.utils.getFullYear(this.disabledDates.to)>10*Math.floor(this.utils.getFullYear(this.pageDate)/10)-1},nextDecade:function(){if(this.isNextDecadeDisabled())return!1;this.changeYear(10)},isNextDecadeDisabled:function(){return!(!this.disabledDates||!this.disabledDates.from)&&this.utils.getFullYear(this.disabledDates.from)<10*Math.ceil(this.utils.getFullYear(this.pageDate)/10)},isSelectedYear:function(e){return this.selectedDate&&this.utils.getFullYear(this.selectedDate)===this.utils.getFullYear(e)},isDisabledYear:function(e){var t=!1;return!(void 0===this.disabledDates||!this.disabledDates)&&(void 0!==this.disabledDates.to&&this.disabledDates.to&&this.utils.getFullYear(e)<this.utils.getFullYear(this.disabledDates.to)&&(t=!0),void 0!==this.disabledDates.from&&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)}}};var x=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)};x._withStripped=!0;var k={components:{DateInput:p,PickerDay:_,PickerMonth:b,PickerYear:d({render:x,staticRenderFns:[]},undefined,w,undefined,!1,undefined,void 0,void 0)},props:{value:{validator:function(e){return u.validateDateInput(e)}},name:String,refName:String,id:String,format:{type:[String,Function],default:"dd MMM yyyy"},language:{type:Object,default:function(){return s}},openDate:{validator:function(e){return u.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,minimumView:{type:String,default:"day"},maximumView:{type:String,default:"year"}},data:function(){var e=this.openDate?new Date(this.openDate):new Date,t=c(this.useUtc);return{pageTimestamp:t.setDate(e,1),selectedDate:null,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.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(){return!this.disabled&&!this.isInline&&(this.isOpen?this.close(!0):void 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()}},allowedToShowView:function(e){var t=["day","month","year"],n=t.indexOf(this.minimumView),i=t.indexOf(this.maximumView),r=t.indexOf(e);return r>=n&&r<=i},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.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.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()}},A="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var S=document.head||document.getElementsByTagName("head")[0],M={};var T=function(e){return function(e,t){return function(e,t){var n=A?t.media||"default":e,i=M[n]||(M[n]={ids:new Set,styles:[]});if(!i.ids.has(e)){i.ids.add(e);var r=t.source;if(t.map&&(r+="\n/*# sourceURL="+t.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",t.media&&i.element.setAttribute("media",t.media),S.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(r),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{var a=i.ids.size-1,o=document.createTextNode(r),s=i.element.childNodes;s[a]&&i.element.removeChild(s[a]),s.length?i.element.insertBefore(o,s[a]):i.element.appendChild(o)}}}(e,t)}};const L=k;var E=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},on:{showCalendar:e.showCalendar,closeCalendar:e.close,typedDate:e.setTypedDate,clearDate:e.clearDate}},[e._t("afterDateInput",null,{slot:"afterDateInput"})],2),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},on:{changedMonth:e.handleChangedMonthFromDayPicker,selectDate:e.selectDate,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)};E._withStripped=!0;const C=d({render:E,staticRenderFns:[]},(function(e){e&&e("data-v-64ca2bb5_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 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 .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).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).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__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;AACnB;AACA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,yBAAyB;EACzB,WAAW;AACb;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;;;EAGE,eAAe;AACjB;AACA;;;EAGE,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;;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 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 .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).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).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__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})}),L,undefined,!1,undefined,T,void 0)},6430:(e,t,n)=>{"use strict";var i=n(7335),r=n(5797),a=n(5559),o=n(1924),s=n(7296),l=o("Object.prototype.toString"),c=n(6410)(),u="undefined"==typeof globalThis?n.g:globalThis,d=r(),h=o("String.prototype.slice"),f=Object.getPrototypeOf,p=o("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};i(d,c&&s&&f?function(e){var t=new u[e];if(Symbol.toStringTag in t){var n=f(t),i=s(n,Symbol.toStringTag);if(!i){var r=f(n);i=s(r,Symbol.toStringTag)}m["$"+e]=a(i.get)}}:function(e){var t=new u[e],n=t.slice||t.set;n&&(m["$"+e]=a(n))});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=h(l(e),8,-1);return p(d,t)>-1?t:"Object"===t&&function(e){var t=!1;return i(m,(function(n,i){if(!t)try{n(e),t=h(i,1)}catch(e){}})),t}(e)}return s?function(e){var t=!1;return i(m,(function(n,i){if(!t)try{"$"+n(e)===i&&(t=h(i,1))}catch(e){}})),t}(e):null}},7335:(e,t,n)=>{"use strict";var i=n(5320),r=Object.prototype.toString,a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!i(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),"[object Array]"===r.call(e)?function(e,t,n){for(var i=0,r=e.length;i<r;i++)a.call(e,i)&&(null==n?t(e[i],i,e):t.call(n,e[i],i,e))}(e,t,o):"string"==typeof e?function(e,t,n){for(var i=0,r=e.length;i<r;i++)null==n?t(e.charAt(i),i,e):t.call(n,e.charAt(i),i,e)}(e,t,o):function(e,t,n){for(var i in e)a.call(e,i)&&(null==n?t(e[i],i,e):t.call(n,e[i],i,e))}(e,t,o)}},7218:(e,t,n)=>{"use strict";var i=n(8764).lW;function r(e,t){return function(){return e.apply(t,arguments)}}const{toString:a}=Object.prototype,{getPrototypeOf:o}=Object,s=(l=Object.create(null),e=>{const t=a.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const c=e=>(e=e.toLowerCase(),t=>s(t)===e),u=e=>t=>typeof t===e,{isArray:d}=Array,h=u("undefined");const f=c("ArrayBuffer");const p=u("string"),m=u("function"),g=u("number"),_=e=>null!==e&&"object"==typeof e,v=e=>{if("object"!==s(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},y=c("Date"),b=c("File"),w=c("Blob"),x=c("FileList"),k=c("URLSearchParams");function A(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,r;if("object"!=typeof e&&(e=[e]),d(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;let o;for(i=0;i<a;i++)o=r[i],t.call(null,e[o],o,e)}}function S(e,t){t=t.toLowerCase();const n=Object.keys(e);let i,r=n.length;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,T=e=>!h(e)&&e!==M;const L=(E="undefined"!=typeof Uint8Array&&o(Uint8Array),e=>E&&e instanceof E);var E;const C=c("HTMLFormElement"),D=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),O=c("RegExp"),Y=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};A(n,((n,r)=>{let a;!1!==(a=t(n,r,e))&&(i[r]=a||n)})),Object.defineProperties(e,i)},P="abcdefghijklmnopqrstuvwxyz",j="0123456789",I={DIGIT:j,ALPHA:P,ALPHA_DIGIT:P+P.toUpperCase()+j};const F=c("AsyncFunction");var N={isArray:d,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&m(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||m(e.append)&&("formdata"===(t=s(e))||"object"===t&&m(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:p,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:_,isPlainObject:v,isUndefined:h,isDate:y,isFile:b,isBlob:w,isRegExp:O,isFunction:m,isStream:e=>_(e)&&m(e.pipe),isURLSearchParams:k,isTypedArray:L,isFileList:x,forEach:A,merge:function e(){const{caseless:t}=T(this)&&this||{},n={},i=(i,r)=>{const a=t&&S(n,r)||r;v(n[a])&&v(i)?n[a]=e(n[a],i):v(i)?n[a]=e({},i):d(i)?n[a]=i.slice():n[a]=i};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&A(arguments[e],i);return n},extend:(e,t,n,{allOwnKeys:i}={})=>(A(t,((t,i)=>{n&&m(t)?e[i]=r(t,n):e[i]=t}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let r,a,s;const l={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)s=r[a],i&&!i(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==n&&o(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:c,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!g(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:C,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors:Y,freezeMethods:e=>{Y(e,((t,n)=>{if(m(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];m(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return d(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:S,global:M,isContextDefined:T,ALPHABET:I,generateString:(e=16,t=I.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n},isSpecCompliantForm:function(e){return!!(e&&m(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(_(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const r=d(e)?[]:{};return A(e,((e,t)=>{const a=n(e,i+1);!h(a)&&(r[t]=a)})),t[i]=void 0,r}}return e};return n(e,0)},isAsyncFn:F,isThenable:e=>e&&(_(e)||m(e))&&m(e.then)&&m(e.catch)};function R(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}N.inherits(R,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:N.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const H=R.prototype,z={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{z[e]={value:e}})),Object.defineProperties(R,z),Object.defineProperty(H,"isAxiosError",{value:!0}),R.from=(e,t,n,i,r,a)=>{const o=Object.create(H);return N.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),R.call(o,e.message,t,n,i,r),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};function q(e){return N.isPlainObject(e)||N.isArray(e)}function B(e){return N.endsWith(e,"[]")?e.slice(0,-2):e}function $(e,t,n){return e?e.concat(t).map((function(e,t){return e=B(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const W=N.toFlatObject(N,{},null,(function(e){return/^is[A-Z]/.test(e)}));function U(e,t,n){if(!N.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=N.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!N.isUndefined(t[e])}))).metaTokens,a=n.visitor||u,o=n.dots,s=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&N.isSpecCompliantForm(t);if(!N.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(N.isDate(e))return e.toISOString();if(!l&&N.isBlob(e))throw new R("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(e)||N.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):i.from(e):e}function u(e,n,i){let a=e;if(e&&!i&&"object"==typeof e)if(N.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(N.isArray(e)&&function(e){return N.isArray(e)&&!e.some(q)}(e)||(N.isFileList(e)||N.endsWith(n,"[]"))&&(a=N.toArray(e)))return n=B(n),a.forEach((function(e,i){!N.isUndefined(e)&&null!==e&&t.append(!0===s?$([n],i,o):null===s?n:n+"[]",c(e))})),!1;return!!q(e)||(t.append($(i,n,o),c(e)),!1)}const d=[],h=Object.assign(W,{defaultVisitor:u,convertValue:c,isVisitable:q});if(!N.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!N.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+i.join("."));d.push(n),N.forEach(n,(function(n,r){!0===(!(N.isUndefined(n)||null===n)&&a.call(t,n,N.isString(r)?r.trim():r,i,h))&&e(n,i?i.concat(r):[r])})),d.pop()}}(e),t}function V(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function X(e,t){this._pairs=[],e&&U(e,this,t)}const G=X.prototype;function J(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Q(e,t,n){if(!t)return e;const i=n&&n.encode||J,r=n&&n.serialize;let a;if(a=r?r(t,n):N.isURLSearchParams(t)?t.toString():new X(t,n).toString(i),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}G.append=function(e,t){this._pairs.push([e,t])},G.toString=function(e){const t=e?function(t){return e.call(this,t,V)}:V;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var K=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){N.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Z={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ee={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:X,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const te="undefined"!=typeof window&&"undefined"!=typeof document,ne=(ie="undefined"!=typeof navigator&&navigator.product,te&&["ReactNative","NativeScript","NS"].indexOf(ie)<0);var ie;const re="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var ae={...Object.freeze({__proto__:null,hasBrowserEnv:te,hasStandardBrowserWebWorkerEnv:re,hasStandardBrowserEnv:ne}),...ee};function oe(e){function t(e,n,i,r){let a=e[r++];if("__proto__"===a)return!0;const o=Number.isFinite(+a),s=r>=e.length;if(a=!a&&N.isArray(i)?i.length:a,s)return N.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!o;i[a]&&N.isObject(i[a])||(i[a]=[]);return t(e,n,i[a],r)&&N.isArray(i[a])&&(i[a]=function(e){const t={},n=Object.keys(e);let i;const r=n.length;let a;for(i=0;i<r;i++)a=n[i],t[a]=e[a];return t}(i[a])),!o}if(N.isFormData(e)&&N.isFunction(e.entries)){const n={};return N.forEachEntry(e,((e,i)=>{t(function(e){return N.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),i,n,0)})),n}return null}const se={transitional:Z,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=N.isObject(e);r&&N.isHTMLForm(e)&&(e=new FormData(e));if(N.isFormData(e))return i?JSON.stringify(oe(e)):e;if(N.isArrayBuffer(e)||N.isBuffer(e)||N.isStream(e)||N.isFile(e)||N.isBlob(e))return e;if(N.isArrayBufferView(e))return e.buffer;if(N.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return U(e,new ae.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return ae.isNode&&N.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=N.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return U(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),function(e,t,n){if(N.isString(e))try{return(t||JSON.parse)(e),N.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||se.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&N.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw R.from(e,R.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ae.classes.FormData,Blob:ae.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch"],(e=>{se.headers[e]={}}));var le=se;const ce=N.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const ue=Symbol("internals");function de(e){return e&&String(e).trim().toLowerCase()}function he(e){return!1===e||null==e?e:N.isArray(e)?e.map(he):String(e)}function fe(e,t,n,i,r){return N.isFunction(i)?i.call(this,t,n):(r&&(t=n),N.isString(t)?N.isString(i)?-1!==t.indexOf(i):N.isRegExp(i)?i.test(t):void 0:void 0)}class pe{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=de(t);if(!r)throw new Error("header name must be a non-empty string");const a=N.findKey(i,r);(!a||void 0===i[a]||!0===n||void 0===n&&!1!==i[a])&&(i[a||t]=he(e))}const a=(e,t)=>N.forEach(e,((e,n)=>r(e,n,t)));return N.isPlainObject(e)||e instanceof this.constructor?a(e,t):N.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?a((e=>{const t={};let n,i,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim(),!n||t[n]&&ce[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=de(e)){const n=N.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(N.isFunction(t))return t.call(this,e,n);if(N.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=de(e)){const n=N.findKey(this,e);return!(!n||void 0===this[n]||t&&!fe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=de(e)){const r=N.findKey(n,e);!r||t&&!fe(0,n[r],r,t)||(delete n[r],i=!0)}}return N.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const r=t[n];e&&!fe(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return N.forEach(this,((i,r)=>{const a=N.findKey(n,r);if(a)return t[a]=he(i),void delete t[r];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();o!==r&&delete t[r],t[o]=he(i),n[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return N.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&N.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ue]=this[ue]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=de(e);t[i]||(!function(e,t){const n=N.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[i]=!0)}return N.isArray(e)?e.forEach(i):i(e),this}}pe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),N.reduceDescriptors(pe.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),N.freezeMethods(pe);var me=pe;function ge(e,t){const n=this||le,i=t||n,r=me.from(i.headers);let a=i.data;return N.forEach(e,(function(e){a=e.call(n,a,r.normalize(),t?t.status:void 0)})),r.normalize(),a}function _e(e){return!(!e||!e.__CANCEL__)}function ve(e,t,n){R.call(this,null==e?"canceled":e,R.ERR_CANCELED,t,n),this.name="CanceledError"}N.inherits(ve,R,{__CANCEL__:!0});var ye=ae.hasStandardBrowserEnv?{write(e,t,n,i,r,a){const o=[e+"="+encodeURIComponent(t)];N.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),N.isString(i)&&o.push("path="+i),N.isString(r)&&o.push("domain="+r),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function be(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var we=ae.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function i(n){let i=n;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(e){const t=N.isString(e)?i(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function xe(e,t){let n=0;const i=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,a=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=i[o];r||(r=l),n[a]=s,i[a]=l;let u=o,d=0;for(;u!==a;)d+=n[u++],u%=e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),l-r<t)return;const h=c&&l-c;return h?Math.round(1e3*d/h):void 0}}(50,250);return r=>{const a=r.loaded,o=r.lengthComputable?r.total:void 0,s=a-n,l=i(s);n=a;const c={loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&a<=o?(o-a)/l:void 0,event:r};c[t?"download":"upload"]=!0,e(c)}}const ke={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let i=e.data;const r=me.from(e.headers).normalize();let a,o,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}if(N.isFormData(i))if(ae.hasStandardBrowserEnv||ae.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if(!1!==(o=r.getContentType())){const[e,...t]=o?o.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(t+":"+n))}const d=be(e.baseURL,e.url);function h(){if(!u)return;const i=me.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new R("Request failed with status code "+n.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:i,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),Q(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(h)},u.onabort=function(){u&&(n(new R("Request aborted",R.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new R("Network Error",R.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const i=e.transitional||Z;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new R(t,i.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,e,u)),u=null},ae.hasStandardBrowserEnv&&(l&&N.isFunction(l)&&(l=l(e)),l||!1!==l&&we(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&ye.read(e.xsrfCookieName);t&&r.set(e.xsrfHeaderName,t)}void 0===i&&r.setContentType(null),"setRequestHeader"in u&&N.forEach(r.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),N.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",xe(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",xe(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{u&&(n(!t||t.type?new ve(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);f&&-1===ae.protocols.indexOf(f)?n(new R("Unsupported protocol "+f+":",R.ERR_BAD_REQUEST,e)):u.send(i||null)}))}};N.forEach(ke,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ae=e=>`- ${e}`,Se=e=>N.isFunction(e)||null===e||!1===e;var Me=e=>{e=N.isArray(e)?e:[e];const{length:t}=e;let n,i;const r={};for(let a=0;a<t;a++){let t;if(n=e[a],i=n,!Se(n)&&(i=ke[(t=String(n)).toLowerCase()],void 0===i))throw new R(`Unknown adapter '${t}'`);if(i)break;r[t||"#"+a]=i}if(!i){const e=Object.entries(r).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new R("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ae).join("\n"):" "+Ae(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function Te(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ve(null,e)}function Le(e){Te(e),e.headers=me.from(e.headers),e.data=ge.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Me(e.adapter||le.adapter)(e).then((function(t){return Te(e),t.data=ge.call(e,e.transformResponse,t),t.headers=me.from(t.headers),t}),(function(t){return _e(t)||(Te(e),t&&t.response&&(t.response.data=ge.call(e,e.transformResponse,t.response),t.response.headers=me.from(t.response.headers))),Promise.reject(t)}))}const Ee=e=>e instanceof me?e.toJSON():e;function Ce(e,t){t=t||{};const n={};function i(e,t,n){return N.isPlainObject(e)&&N.isPlainObject(t)?N.merge.call({caseless:n},e,t):N.isPlainObject(t)?N.merge({},t):N.isArray(t)?t.slice():t}function r(e,t,n){return N.isUndefined(t)?N.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function a(e,t){if(!N.isUndefined(t))return i(void 0,t)}function o(e,t){return N.isUndefined(t)?N.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,r,a){return a in t?i(n,r):a in e?i(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t)=>r(Ee(e),Ee(t),!0)};return N.forEach(Object.keys(Object.assign({},e,t)),(function(i){const a=l[i]||r,o=a(e[i],t[i],i);N.isUndefined(o)&&a!==s||(n[i]=o)})),n}const De="1.6.7",Oe={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Oe[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Ye={};Oe.transitional=function(e,t,n){function i(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,a)=>{if(!1===e)throw new R(i(r," has been removed"+(t?" in "+t:"")),R.ERR_DEPRECATED);return t&&!Ye[r]&&(Ye[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}};var Pe={assertOptions:function(e,t,n){if("object"!=typeof e)throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const a=i[r],o=t[a];if(o){const t=e[a],n=void 0===t||o(t,a,e);if(!0!==n)throw new R("option "+a+" must be "+n,R.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new R("Unknown option "+a,R.ERR_BAD_OPTION)}},validators:Oe};const je=Pe.validators;class Ie{constructor(e){this.defaults=e,this.interceptors={request:new K,response:new K}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ce(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&Pe.assertOptions(n,{silentJSONParsing:je.transitional(je.boolean),forcedJSONParsing:je.transitional(je.boolean),clarifyTimeoutError:je.transitional(je.boolean)},!1),null!=i&&(N.isFunction(i)?t.paramsSerializer={serialize:i}:Pe.assertOptions(i,{encode:je.function,serialize:je.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=r&&N.merge(r.common,r[t.method]);r&&N.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=me.concat(a,r);const o=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Le.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=o.length;let h=t;for(d=0;d<u;){const e=o[d++],t=o[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{c=Le.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Q(be((e=Ce(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}N.forEach(["delete","get","head","options"],(function(e){Ie.prototype[e]=function(t,n){return this.request(Ce(n||{},{method:e,url:t,data:(n||{}).data}))}})),N.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(Ce(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ie.prototype[e]=t(),Ie.prototype[e+"Form"]=t(!0)}));var Fe=Ie;class Ne{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,r){n.reason||(n.reason=new ve(e,i,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Ne((function(t){e=t})),cancel:e}}}var Re=Ne;const He={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(He).forEach((([e,t])=>{He[t]=e}));var ze=He;const qe=function e(t){const n=new Fe(t),i=r(Fe.prototype.request,n);return N.extend(i,Fe.prototype,n,{allOwnKeys:!0}),N.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(Ce(t,n))},i}(le);qe.Axios=Fe,qe.CanceledError=ve,qe.CancelToken=Re,qe.isCancel=_e,qe.VERSION=De,qe.toFormData=U,qe.AxiosError=R,qe.Cancel=qe.CanceledError,qe.all=function(e){return Promise.all(e)},qe.spread=function(e){return function(t){return e.apply(null,t)}},qe.isAxiosError=function(e){return N.isObject(e)&&!0===e.isAxiosError},qe.mergeConfig=Ce,qe.AxiosHeaders=me,qe.formToJSON=e=>oe(N.isHTMLForm(e)?new FormData(e):e),qe.getAdapter=Me,qe.HttpStatusCode=ze,qe.default=qe,e.exports=qe},5797:(e,t,n)=>{"use strict";var i=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],r="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<i.length;t++)"function"==typeof r[i[t]]&&(e[e.length]=i[t]);return e}}},__webpack_module_cache__={},deferred;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,deferred=[],__webpack_require__.O=(e,t,n,i)=>{if(!t){var r=1/0;for(l=0;l<deferred.length;l++){for(var[t,n,i]=deferred[l],a=!0,o=0;o<t.length;o++)(!1&i||r>=i)&&Object.keys(__webpack_require__.O).every((e=>__webpack_require__.O[e](t[o])))?t.splice(o--,1):(a=!1,i<r&&(r=i));if(a){deferred.splice(l--,1);var s=n();void 0!==s&&(e=s)}}return e}i=i||0;for(var l=deferred.length;l>0&&deferred[l-1][2]>i;l--)deferred[l]=deferred[l-1];deferred[l]=[t,n,i]},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={773:0,829:0,170:0};__webpack_require__.O.j=t=>0===e[t];var t=(t,n)=>{var i,r,[a,o,s]=n,l=0;if(a.some((t=>0!==e[t]))){for(i in o)__webpack_require__.o(o,i)&&(__webpack_require__.m[i]=o[i]);if(s)var c=s(__webpack_require__)}for(t&&t(n);l<a.length;l++)r=a[l],__webpack_require__.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return __webpack_require__.O(c)},n=self.webpackChunkcode=self.webpackChunkcode||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),__webpack_require__.nc=void 0,__webpack_require__.O(void 0,[829,170],(()=>__webpack_require__(5924))),__webpack_require__.O(void 0,[829,170],(()=>__webpack_require__(5705)));var __webpack_exports__=__webpack_require__.O(void 0,[829,170],(()=>__webpack_require__(7936)));__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();