| 55 |
*/function UB(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function HB(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?UB(Object(a),!0).forEach(function(t){YB(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):UB(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function zB(e){return(zB="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)}function YB(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function GB(){return GB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},GB.apply(this,arguments)}function WB(e,t){if(null==e)return{};var a,i,s=function(e,t){if(null==e)return{};var a,i,s={},n=Object.keys(e);for(i=0;i<n.length;i++)a=n[i],t.indexOf(a)>=0||(s[a]=e[a]);return s}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)a=n[i],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(s[a]=e[a])}return s}function jB(e){return function(e){if(Array.isArray(e))return qB(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 qB(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return qB(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 qB(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a<t;a++)i[a]=e[a];return i}function KB(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var XB=KB(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),QB=KB(/Edge/i),ZB=KB(/firefox/i),JB=KB(/safari/i)&&!KB(/chrome/i)&&!KB(/android/i),eV=KB(/iP(ad|od|hone)/i),tV=KB(/chrome/i)&&KB(/android/i),aV={capture:!1,passive:!1};function iV(e,t,a){e.addEventListener(t,a,!XB&&aV)}function sV(e,t,a){e.removeEventListener(t,a,!XB&&aV)}function nV(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(a){return!1}return!1}}function oV(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function rV(e,t,a,i){if(e){a=a||document;do{if(null!=t&&(">"===t[0]?e.parentNode===a&&nV(e,t):nV(e,t))||i&&e===a)return e;if(e===a)break}while(e=oV(e))}return null}var lV,cV=/\s+/g;function dV(e,t,a){if(e&&t)if(e.classList)e.classList[a?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(cV," ").replace(" "+t+" "," ");e.className=(i+(a?" "+t:"")).replace(cV," ")}}function uV(e,t,a){var i=e&&e.style;if(i){if(void 0===a)return document.defaultView&&document.defaultView.getComputedStyle?a=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(a=e.currentStyle),void 0===t?a:a[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=a+("string"==typeof a?"":"px")}}function pV(e,t){var a="";if("string"==typeof e)a=e;else do{var i=uV(e,"transform");i&&"none"!==i&&(a=i+" "+a)}while(!t&&(e=e.parentNode));var s=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return s&&new s(a)}function hV(e,t,a){if(e){var i=e.getElementsByTagName(t),s=0,n=i.length;if(a)for(;s<n;s++)a(i[s],s);return i}return[]}function gV(){var e=document.scrollingElement;return e||document.documentElement}function mV(e,t,a,i,s){if(e.getBoundingClientRect||e===window){var n,o,r,l,c,d,u;if(e!==window&&e.parentNode&&e!==gV()?(o=(n=e.getBoundingClientRect()).top,r=n.left,l=n.bottom,c=n.right,d=n.height,u=n.width):(o=0,r=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,u=window.innerWidth),(t||a)&&e!==window&&(s=s||e.parentNode,!XB))do{if(s&&s.getBoundingClientRect&&("none"!==uV(s,"transform")||a&&"static"!==uV(s,"position"))){var p=s.getBoundingClientRect();o-=p.top+parseInt(uV(s,"border-top-width")),r-=p.left+parseInt(uV(s,"border-left-width")),l=o+n.height,c=r+n.width;break}}while(s=s.parentNode);if(i&&e!==window){var h=pV(s||e),g=h&&h.a,m=h&&h.d;h&&(l=(o/=m)+(d/=m),c=(r/=g)+(u/=g))}return{top:o,left:r,bottom:l,right:c,width:u,height:d}}}function fV(e,t,a){for(var i=SV(e,!0),s=mV(e)[t];i;){if(!(s>=mV(i)[a]))return i;if(i===gV())break;i=SV(i,!1)}return!1}function _V(e,t,a,i){for(var s=0,n=0,o=e.children;n<o.length;){if("none"!==o[n].style.display&&o[n]!==TU.ghost&&(i||o[n]!==TU.dragged)&&rV(o[n],a.draggable,e,!1)){if(s===t)return o[n];s++}n++}return null}function bV(e,t){for(var a=e.lastElementChild;a&&(a===TU.ghost||"none"===uV(a,"display")||t&&!nV(a,t));)a=a.previousElementSibling;return a||null}function vV(e,t){var a=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===TU.clone||t&&!nV(e,t)||a++;return a}function yV(e){var t=0,a=0,i=gV();if(e)do{var s=pV(e),n=s.a,o=s.d;t+=e.scrollLeft*n,a+=e.scrollTop*o}while(e!==i&&(e=e.parentNode));return[t,a]}function SV(e,t){if(!e||!e.getBoundingClientRect)return gV();var a=e,i=!1;do{if(a.clientWidth<a.scrollWidth||a.clientHeight<a.scrollHeight){var s=uV(a);if(a.clientWidth<a.scrollWidth&&("auto"==s.overflowX||"scroll"==s.overflowX)||a.clientHeight<a.scrollHeight&&("auto"==s.overflowY||"scroll"==s.overflowY)){if(!a.getBoundingClientRect||a===document.body)return gV();if(i||t)return a;i=!0}}}while(a=a.parentNode);return gV()}function xV(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 wV(e,t){return function(){if(!lV){var a=arguments;1===a.length?e.call(this,a[0]):e.apply(this,a),lV=setTimeout(function(){lV=void 0},t)}}}function EV(e,t,a){e.scrollLeft+=t,e.scrollTop+=a}function CV(e){var t=window.Polymer,a=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):a?a(e).clone(!0)[0]:e.cloneNode(!0)}function kV(e,t){uV(e,"position","absolute"),uV(e,"top",t.top),uV(e,"left",t.left),uV(e,"width",t.width),uV(e,"height",t.height)}function TV(e){uV(e,"position",""),uV(e,"top",""),uV(e,"left",""),uV(e,"width",""),uV(e,"height","")}var AV="Sortable"+(new Date).getTime();function RV(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(e){if("none"!==uV(e,"display")&&e!==TU.ghost){t.push({target:e,rect:mV(e)});var a=HB({},t[t.length-1].rect);if(e.thisAnimationDuration){var i=pV(e,!0);i&&(a.top-=i.f,a.left-=i.e)}e.fromRect=a}})},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var a in e)if(e.hasOwnProperty(a))for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[a][i])return Number(a);return-1}(t,{target:e}),1)},animateAll:function(a){var i=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof a&&a());var s=!1,n=0;t.forEach(function(e){var t=0,a=e.target,o=a.fromRect,r=mV(a),l=a.prevFromRect,c=a.prevToRect,d=e.rect,u=pV(a,!0);u&&(r.top-=u.f,r.left-=u.e),a.toRect=r,a.thisAnimationDuration&&xV(l,r)&&!xV(o,r)&&(d.top-r.top)/(d.left-r.left)===(o.top-r.top)/(o.left-r.left)&&(t=function(e,t,a,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-a.top,2)+Math.pow(t.left-a.left,2))*i.animation}(d,l,c,i.options)),xV(r,o)||(a.prevFromRect=o,a.prevToRect=r,t||(t=i.options.animation),i.animate(a,d,r,t)),t&&(s=!0,n=Math.max(n,t),clearTimeout(a.animationResetTimer),a.animationResetTimer=setTimeout(function(){a.animationTime=0,a.prevFromRect=null,a.fromRect=null,a.prevToRect=null,a.thisAnimationDuration=null},t),a.thisAnimationDuration=t)}),clearTimeout(e),s?e=setTimeout(function(){"function"==typeof a&&a()},n):"function"==typeof a&&a(),t=[]},animate:function(e,t,a,i){if(i){uV(e,"transition",""),uV(e,"transform","");var s=pV(this.el),n=s&&s.a,o=s&&s.d,r=(t.left-a.left)/(n||1),l=(t.top-a.top)/(o||1);e.animatingX=!!r,e.animatingY=!!l,uV(e,"transform","translate3d("+r+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),uV(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),uV(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout(function(){uV(e,"transition",""),uV(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},i)}}}}var OV=[],NV={initializeByDefault:!0},IV={mount:function(e){for(var t in NV)NV.hasOwnProperty(t)&&!(t in e)&&(e[t]=NV[t]);OV.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),OV.push(e)},pluginEvent:function(e,t,a){var i=this;this.eventCanceled=!1,a.cancel=function(){i.eventCanceled=!0};var s=e+"Global";OV.forEach(function(i){t[i.pluginName]&&(t[i.pluginName][s]&&t[i.pluginName][s](HB({sortable:t},a)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](HB({sortable:t},a)))})},initializePlugins:function(e,t,a,i){for(var s in OV.forEach(function(i){var s=i.pluginName;if(e.options[s]||i.initializeByDefault){var n=new i(e,t,e.options);n.sortable=e,n.options=e.options,e[s]=n,GB(a,n.defaults)}}),e.options)if(e.options.hasOwnProperty(s)){var n=this.modifyOption(e,s,e.options[s]);void 0!==n&&(e.options[s]=n)}},getEventProperties:function(e,t){var a={};return OV.forEach(function(i){"function"==typeof i.eventProperties&&GB(a,i.eventProperties.call(t[i.pluginName],e))}),a},modifyOption:function(e,t,a){var i;return OV.forEach(function(s){e[s.pluginName]&&s.optionListeners&&"function"==typeof s.optionListeners[t]&&(i=s.optionListeners[t].call(e[s.pluginName],a))}),i}};function DV(e){var t=e.sortable,a=e.rootEl,i=e.name,s=e.targetEl,n=e.cloneEl,o=e.toEl,r=e.fromEl,l=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,u=e.newDraggableIndex,p=e.originalEvent,h=e.putSortable,g=e.extraEventProperties;if(t=t||a&&a[AV]){var m,f=t.options,_="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||XB||QB?(m=document.createEvent("Event")).initEvent(i,!0,!0):m=new CustomEvent(i,{bubbles:!0,cancelable:!0}),m.to=o||a,m.from=r||a,m.item=s||a,m.clone=n,m.oldIndex=l,m.newIndex=c,m.oldDraggableIndex=d,m.newDraggableIndex=u,m.originalEvent=p,m.pullMode=h?h.lastPutMode:void 0;var b=HB(HB({},g),IV.getEventProperties(i,t));for(var v in b)m[v]=b[v];a&&a.dispatchEvent(m),f[_]&&f[_].call(t,m)}}var MV=["evt"],LV=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a.evt,s=WB(a,MV);IV.pluginEvent.bind(TU)(e,t,HB({dragEl:FV,parentEl:$V,ghostEl:BV,rootEl:VV,nextEl:UV,lastDownEl:HV,cloneEl:zV,cloneHidden:YV,dragStarted:iU,putSortable:XV,activeSortable:TU.active,originalEvent:i,oldIndex:GV,oldDraggableIndex:jV,newIndex:WV,newDraggableIndex:qV,hideGhostForTarget:wU,unhideGhostForTarget:EU,cloneNowHidden:function(){YV=!0},cloneNowShown:function(){YV=!1},dispatchSortableEvent:function(e){PV({sortable:t,name:e,originalEvent:i})}},s))};function PV(e){DV(HB({putSortable:XV,cloneEl:zV,targetEl:FV,rootEl:VV,oldIndex:GV,oldDraggableIndex:jV,newIndex:WV,newDraggableIndex:qV},e))}var FV,$V,BV,VV,UV,HV,zV,YV,GV,WV,jV,qV,KV,XV,QV,ZV,JV,eU,tU,aU,iU,sU,nU,oU,rU,lU=!1,cU=!1,dU=[],uU=!1,pU=!1,hU=[],gU=!1,mU=[],fU="undefined"!=typeof document,_U=eV,bU=QB||XB?"cssFloat":"float",vU=fU&&!tV&&!eV&&"draggable"in document.createElement("div"),yU=function(){if(fU){if(XB)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),SU=function(e,t){var a=uV(e),i=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),s=_V(e,0,t),n=_V(e,1,t),o=s&&uV(s),r=n&&uV(n),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+mV(s).width,c=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+mV(n).width;if("flex"===a.display)return"column"===a.flexDirection||"column-reverse"===a.flexDirection?"vertical":"horizontal";if("grid"===a.display)return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&o.float&&"none"!==o.float){var d="left"===o.float?"left":"right";return!n||"both"!==r.clear&&r.clear!==d?"horizontal":"vertical"}return s&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=i&&"none"===a[bU]||n&&"none"===a[bU]&&l+c>i)?"vertical":"horizontal"},xU=function(e){function t(e,a){return function(i,s,n,o){var r=i.options.group.name&&s.options.group.name&&i.options.group.name===s.options.group.name;if(null==e&&(a||r))return!0;if(null==e||!1===e)return!1;if(a&&"clone"===e)return e;if("function"==typeof e)return t(e(i,s,n,o),a)(i,s,n,o);var l=(a?i:s).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var a={},i=e.group;i&&"object"==zB(i)||(i={name:i}),a.name=i.name,a.checkPull=t(i.pull,!0),a.checkPut=t(i.put),a.revertClone=i.revertClone,e.group=a},wU=function(){!yU&&BV&&uV(BV,"display","none")},EU=function(){!yU&&BV&&uV(BV,"display","")};fU&&document.addEventListener("click",function(e){if(cU)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),cU=!1,!1},!0);var CU=function(e){if(FV){e=e.touches?e.touches[0]:e;var t=(s=e.clientX,n=e.clientY,dU.some(function(e){var t=e[AV].options.emptyInsertThreshold;if(t&&!bV(e)){var a=mV(e),i=s>=a.left-t&&s<=a.right+t,r=n>=a.top-t&&n<=a.bottom+t;return i&&r?o=e:void 0}}),o);if(t){var a={};for(var i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);a.target=a.rootEl=t,a.preventDefault=void 0,a.stopPropagation=void 0,t[AV]._onDragOver(a)}}var s,n,o},kU=function(e){FV&&FV.parentNode[AV]._isOutsideThisEl(e.target)};function TU(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=GB({},t),e[AV]=this;var a={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 SU(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!==TU.supportPointer&&"PointerEvent"in window&&!JB,emptyInsertThreshold:5};for(var i in IV.initializePlugins(this,e,a),a)!(i in t)&&(t[i]=a[i]);for(var s in xU(t),this)"_"===s.charAt(0)&&"function"==typeof this[s]&&(this[s]=this[s].bind(this));this.nativeDraggable=!t.forceFallback&&vU,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?iV(e,"pointerdown",this._onTapStart):(iV(e,"mousedown",this._onTapStart),iV(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(iV(e,"dragover",this),iV(e,"dragenter",this)),dU.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),GB(this,RV())}function AU(e,t,a,i,s,n,o,r){var l,c,d=e[AV],u=d.options.onMove;return!window.CustomEvent||XB||QB?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=a,l.draggedRect=i,l.related=s||t,l.relatedRect=n||mV(t),l.willInsertAfter=r,l.originalEvent=o,e.dispatchEvent(l),u&&(c=u.call(d,l,o)),c}function RU(e){e.draggable=!1}function OU(){gU=!1}function NU(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,a=t.length,i=0;a--;)i+=t.charCodeAt(a);return i.toString(36)}function IU(e){return setTimeout(e,0)}function DU(e){return clearTimeout(e)}TU.prototype={constructor:TU,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(sU=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,FV):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,a=this.el,i=this.options,s=i.preventOnFilter,n=e.type,o=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,r=(o||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||r,c=i.filter;if(function(e){mU.length=0;var t=e.getElementsByTagName("input"),a=t.length;for(;a--;){var i=t[a];i.checked&&mU.push(i)}}(a),!FV&&!(/mousedown|pointerdown/.test(n)&&0!==e.button||i.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!JB||!r||"SELECT"!==r.tagName.toUpperCase())&&!((r=rV(r,i.draggable,a,!1))&&r.animated||HV===r)){if(GV=vV(r),jV=vV(r,i.draggable),"function"==typeof c){if(c.call(this,e,r,this))return PV({sortable:t,rootEl:l,name:"filter",targetEl:r,toEl:a,fromEl:a}),LV("filter",t,{evt:e}),void(s&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some(function(i){if(i=rV(l,i.trim(),a,!1))return PV({sortable:t,rootEl:i,name:"filter",targetEl:r,fromEl:a,toEl:a}),LV("filter",t,{evt:e}),!0})))return void(s&&e.cancelable&&e.preventDefault());i.handle&&!rV(l,i.handle,a,!1)||this._prepareDragStart(e,o,r)}}},_prepareDragStart:function(e,t,a){var i,s=this,n=s.el,o=s.options,r=n.ownerDocument;if(a&&!FV&&a.parentNode===n){var l=mV(a);if(VV=n,$V=(FV=a).parentNode,UV=FV.nextSibling,HV=a,KV=o.group,TU.dragged=FV,QV={target:FV,clientX:(t||e).clientX,clientY:(t||e).clientY},tU=QV.clientX-l.left,aU=QV.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,FV.style["will-change"]="all",i=function(){LV("delayEnded",s,{evt:e}),TU.eventCanceled?s._onDrop():(s._disableDelayedDragEvents(),!ZB&&s.nativeDraggable&&(FV.draggable=!0),s._triggerDragStart(e,t),PV({sortable:s,name:"choose",originalEvent:e}),dV(FV,o.chosenClass,!0))},o.ignore.split(",").forEach(function(e){hV(FV,e.trim(),RU)}),iV(r,"dragover",CU),iV(r,"mousemove",CU),iV(r,"touchmove",CU),iV(r,"mouseup",s._onDrop),iV(r,"touchend",s._onDrop),iV(r,"touchcancel",s._onDrop),ZB&&this.nativeDraggable&&(this.options.touchStartThreshold=4,FV.draggable=!0),LV("delayStart",this,{evt:e}),!o.delay||o.delayOnTouchOnly&&!t||this.nativeDraggable&&(QB||XB))i();else{if(TU.eventCanceled)return void this._onDrop();iV(r,"mouseup",s._disableDelayedDrag),iV(r,"touchend",s._disableDelayedDrag),iV(r,"touchcancel",s._disableDelayedDrag),iV(r,"mousemove",s._delayedDragTouchMoveHandler),iV(r,"touchmove",s._delayedDragTouchMoveHandler),o.supportPointer&&iV(r,"pointermove",s._delayedDragTouchMoveHandler),s._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(){FV&&RU(FV),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;sV(e,"mouseup",this._disableDelayedDrag),sV(e,"touchend",this._disableDelayedDrag),sV(e,"touchcancel",this._disableDelayedDrag),sV(e,"mousemove",this._delayedDragTouchMoveHandler),sV(e,"touchmove",this._delayedDragTouchMoveHandler),sV(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?iV(document,"pointermove",this._onTouchMove):iV(document,t?"touchmove":"mousemove",this._onTouchMove):(iV(FV,"dragend",this),iV(VV,"dragstart",this._onDragStart));try{document.selection?IU(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(a){}},_dragStarted:function(e,t){if(lU=!1,VV&&FV){LV("dragStarted",this,{evt:t}),this.nativeDraggable&&iV(document,"dragover",kU);var a=this.options;!e&&dV(FV,a.dragClass,!1),dV(FV,a.ghostClass,!0),TU.active=this,e&&this._appendGhost(),PV({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ZV){this._lastX=ZV.clientX,this._lastY=ZV.clientY,wU();for(var e=document.elementFromPoint(ZV.clientX,ZV.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ZV.clientX,ZV.clientY))!==t;)t=e;if(FV.parentNode[AV]._isOutsideThisEl(e),t)do{if(t[AV]){if(t[AV]._onDragOver({clientX:ZV.clientX,clientY:ZV.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);EU()}},_onTouchMove:function(e){if(QV){var t=this.options,a=t.fallbackTolerance,i=t.fallbackOffset,s=e.touches?e.touches[0]:e,n=BV&&pV(BV,!0),o=BV&&n&&n.a,r=BV&&n&&n.d,l=_U&&rU&&yV(rU),c=(s.clientX-QV.clientX+i.x)/(o||1)+(l?l[0]-hU[0]:0)/(o||1),d=(s.clientY-QV.clientY+i.y)/(r||1)+(l?l[1]-hU[1]:0)/(r||1);if(!TU.active&&!lU){if(a&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<a)return;this._onDragStart(e,!0)}if(BV){n?(n.e+=c-(JV||0),n.f+=d-(eU||0)):n={a:1,b:0,c:0,d:1,e:c,f:d};var u="matrix(".concat(n.a,",").concat(n.b,",").concat(n.c,",").concat(n.d,",").concat(n.e,",").concat(n.f,")");uV(BV,"webkitTransform",u),uV(BV,"mozTransform",u),uV(BV,"msTransform",u),uV(BV,"transform",u),JV=c,eU=d,ZV=s}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!BV){var e=this.options.fallbackOnBody?document.body:VV,t=mV(FV,!0,_U,!0,e),a=this.options;if(_U){for(rU=e;"static"===uV(rU,"position")&&"none"===uV(rU,"transform")&&rU!==document;)rU=rU.parentNode;rU!==document.body&&rU!==document.documentElement?(rU===document&&(rU=gV()),t.top+=rU.scrollTop,t.left+=rU.scrollLeft):rU=gV(),hU=yV(rU)}dV(BV=FV.cloneNode(!0),a.ghostClass,!1),dV(BV,a.fallbackClass,!0),dV(BV,a.dragClass,!0),uV(BV,"transition",""),uV(BV,"transform",""),uV(BV,"box-sizing","border-box"),uV(BV,"margin",0),uV(BV,"top",t.top),uV(BV,"left",t.left),uV(BV,"width",t.width),uV(BV,"height",t.height),uV(BV,"opacity","0.8"),uV(BV,"position",_U?"absolute":"fixed"),uV(BV,"zIndex","100000"),uV(BV,"pointerEvents","none"),TU.ghost=BV,e.appendChild(BV),uV(BV,"transform-origin",tU/parseInt(BV.style.width)*100+"% "+aU/parseInt(BV.style.height)*100+"%")}},_onDragStart:function(e,t){var a=this,i=e.dataTransfer,s=a.options;LV("dragStart",this,{evt:e}),TU.eventCanceled?this._onDrop():(LV("setupClone",this),TU.eventCanceled||((zV=CV(FV)).draggable=!1,zV.style["will-change"]="",this._hideClone(),dV(zV,this.options.chosenClass,!1),TU.clone=zV),a.cloneId=IU(function(){LV("clone",a),TU.eventCanceled||(a.options.removeCloneOnHide||VV.insertBefore(zV,FV),a._hideClone(),PV({sortable:a,name:"clone"}))}),!t&&dV(FV,s.dragClass,!0),t?(cU=!0,a._loopId=setInterval(a._emulateDragOver,50)):(sV(document,"mouseup",a._onDrop),sV(document,"touchend",a._onDrop),sV(document,"touchcancel",a._onDrop),i&&(i.effectAllowed="move",s.setData&&s.setData.call(a,i,FV)),iV(document,"drop",a),uV(FV,"transform","translateZ(0)")),lU=!0,a._dragStartId=IU(a._dragStarted.bind(a,t,e)),iV(document,"selectstart",a),iU=!0,JB&&uV(document.body,"user-select","none"))},_onDragOver:function(e){var t,a,i,s,n=this.el,o=e.target,r=this.options,l=r.group,c=TU.active,d=KV===l,u=r.sort,p=XV||c,h=this,g=!1;if(!gU){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),o=rV(o,r.draggable,n,!0),R("dragOver"),TU.eventCanceled)return g;if(FV.contains(e.target)||o.animated&&o.animatingX&&o.animatingY||h._ignoreWhileAnimating===o)return N(!1);if(cU=!1,c&&!r.disabled&&(d?u||(i=$V!==VV):XV===this||(this.lastPutMode=KV.checkPull(this,c,FV,e))&&l.checkPut(this,c,FV,e))){if(s="vertical"===this._getDirection(e,o),t=mV(FV),R("dragOverValid"),TU.eventCanceled)return g;if(i)return $V=VV,O(),this._hideClone(),R("revert"),TU.eventCanceled||(UV?VV.insertBefore(FV,UV):VV.appendChild(FV)),N(!0);var m=bV(n,r.draggable);if(!m||function(e,t,a){var i=mV(bV(a.el,a.options.draggable)),s=10;return t?e.clientX>i.right+s||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+s}(e,s,this)&&!m.animated){if(m===FV)return N(!1);if(m&&n===e.target&&(o=m),o&&(a=mV(o)),!1!==AU(VV,n,FV,t,o,a,e,!!o))return O(),n.appendChild(FV),$V=n,I(),N(!0)}else if(m&&function(e,t,a){var i=mV(_V(a.el,0,a.options,!0)),s=10;return t?e.clientX<i.left-s||e.clientY<i.top&&e.clientX<i.right:e.clientY<i.top-s||e.clientY<i.bottom&&e.clientX<i.left}(e,s,this)){var f=_V(n,0,r,!0);if(f===FV)return N(!1);if(a=mV(o=f),!1!==AU(VV,n,FV,t,o,a,e,!1))return O(),n.insertBefore(FV,f),$V=n,I(),N(!0)}else if(o.parentNode===n){a=mV(o);var _,b,v,y=FV.parentNode!==n,S=!function(e,t,a){var i=a?e.left:e.top,s=a?e.right:e.bottom,n=a?e.width:e.height,o=a?t.left:t.top,r=a?t.right:t.bottom,l=a?t.width:t.height;return i===o||s===r||i+n/2===o+l/2}(FV.animated&&FV.toRect||t,o.animated&&o.toRect||a,s),x=s?"top":"left",w=fV(o,"top","top")||fV(FV,"top","top"),E=w?w.scrollTop:void 0;if(sU!==o&&(b=a[x],uU=!1,pU=!S&&r.invertSwap||y),_=function(e,t,a,i,s,n,o,r){var l=i?e.clientY:e.clientX,c=i?a.height:a.width,d=i?a.top:a.left,u=i?a.bottom:a.right,p=!1;if(!o)if(r&&oU<c*s){if(!uU&&(1===nU?l>d+c*n/2:l<u-c*n/2)&&(uU=!0),uU)p=!0;else if(1===nU?l<d+oU:l>u-oU)return-nU}else if(l>d+c*(1-s)/2&&l<u-c*(1-s)/2)return function(e){return vV(FV)<vV(e)?1:-1}(t);if((p=p||o)&&(l<d+c*n/2||l>u-c*n/2))return l>d+c/2?1:-1;return 0}(e,o,a,s,S?1:r.swapThreshold,null==r.invertedSwapThreshold?r.swapThreshold:r.invertedSwapThreshold,pU,sU===o),0!==_){var C=vV(FV);do{C-=_,v=$V.children[C]}while(v&&("none"===uV(v,"display")||v===BV))}if(0===_||v===o)return N(!1);sU=o,nU=_;var k=o.nextElementSibling,T=!1,A=AU(VV,n,FV,t,o,a,e,T=1===_);if(!1!==A)return 1!==A&&-1!==A||(T=1===A),gU=!0,setTimeout(OU,30),O(),T&&!k?n.appendChild(FV):o.parentNode.insertBefore(FV,T?k:o),w&&EV(w,0,E-w.scrollTop),$V=FV.parentNode,void 0===b||pU||(oU=Math.abs(b-mV(o)[x])),I(),N(!0)}if(n.contains(FV))return N(!1)}return!1}function R(r,l){LV(r,h,HB({evt:e,isOwner:d,axis:s?"vertical":"horizontal",revert:i,dragRect:t,targetRect:a,canSort:u,fromSortable:p,target:o,completed:N,onMove:function(a,i){return AU(VV,n,FV,t,a,mV(a),e,i)},changed:I},l))}function O(){R("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function N(t){return R("dragOverCompleted",{insertion:t}),t&&(d?c._hideClone():c._showClone(h),h!==p&&(dV(FV,XV?XV.options.ghostClass:c.options.ghostClass,!1),dV(FV,r.ghostClass,!0)),XV!==h&&h!==TU.active?XV=h:h===TU.active&&XV&&(XV=null),p===h&&(h._ignoreWhileAnimating=o),h.animateAll(function(){R("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(o===FV&&!FV.animated||o===n&&!o.animated)&&(sU=null),r.dragoverBubble||e.rootEl||o===document||(FV.parentNode[AV]._isOutsideThisEl(e.target),!t&&CU(e)),!r.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function I(){WV=vV(FV),qV=vV(FV,r.draggable),PV({sortable:h,name:"change",toEl:n,newIndex:WV,newDraggableIndex:qV,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){sV(document,"mousemove",this._onTouchMove),sV(document,"touchmove",this._onTouchMove),sV(document,"pointermove",this._onTouchMove),sV(document,"dragover",CU),sV(document,"mousemove",CU),sV(document,"touchmove",CU)},_offUpEvents:function(){var e=this.el.ownerDocument;sV(e,"mouseup",this._onDrop),sV(e,"touchend",this._onDrop),sV(e,"pointerup",this._onDrop),sV(e,"touchcancel",this._onDrop),sV(document,"selectstart",this)},_onDrop:function(e){var t=this.el,a=this.options;WV=vV(FV),qV=vV(FV,a.draggable),LV("drop",this,{evt:e}),$V=FV&&FV.parentNode,WV=vV(FV),qV=vV(FV,a.draggable),TU.eventCanceled||(lU=!1,pU=!1,uU=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),DU(this.cloneId),DU(this._dragStartId),this.nativeDraggable&&(sV(document,"drop",this),sV(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),JB&&uV(document.body,"user-select",""),uV(FV,"transform",""),e&&(iU&&(e.cancelable&&e.preventDefault(),!a.dropBubble&&e.stopPropagation()),BV&&BV.parentNode&&BV.parentNode.removeChild(BV),(VV===$V||XV&&"clone"!==XV.lastPutMode)&&zV&&zV.parentNode&&zV.parentNode.removeChild(zV),FV&&(this.nativeDraggable&&sV(FV,"dragend",this),RU(FV),FV.style["will-change"]="",iU&&!lU&&dV(FV,XV?XV.options.ghostClass:this.options.ghostClass,!1),dV(FV,this.options.chosenClass,!1),PV({sortable:this,name:"unchoose",toEl:$V,newIndex:null,newDraggableIndex:null,originalEvent:e}),VV!==$V?(WV>=0&&(PV({rootEl:$V,name:"add",toEl:$V,fromEl:VV,originalEvent:e}),PV({sortable:this,name:"remove",toEl:$V,originalEvent:e}),PV({rootEl:$V,name:"sort",toEl:$V,fromEl:VV,originalEvent:e}),PV({sortable:this,name:"sort",toEl:$V,originalEvent:e})),XV&&XV.save()):WV!==GV&&WV>=0&&(PV({sortable:this,name:"update",toEl:$V,originalEvent:e}),PV({sortable:this,name:"sort",toEl:$V,originalEvent:e})),TU.active&&(null!=WV&&-1!==WV||(WV=GV,qV=jV),PV({sortable:this,name:"end",toEl:$V,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){LV("nulling",this),VV=FV=$V=BV=UV=zV=HV=YV=QV=ZV=iU=WV=qV=GV=jV=sU=nU=XV=KV=TU.dragged=TU.ghost=TU.clone=TU.active=null,mU.forEach(function(e){e.checked=!0}),mU.length=JV=eU=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":FV&&(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=[],a=this.el.children,i=0,s=a.length,n=this.options;i<s;i++)rV(e=a[i],n.draggable,this.el,!1)&&t.push(e.getAttribute(n.dataIdAttr)||NU(e));return t},sort:function(e,t){var a={},i=this.el;this.toArray().forEach(function(e,t){var s=i.children[t];rV(s,this.options.draggable,i,!1)&&(a[e]=s)},this),t&&this.captureAnimationState(),e.forEach(function(e){a[e]&&(i.removeChild(a[e]),i.appendChild(a[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return rV(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var a=this.options;if(void 0===t)return a[e];var i=IV.modifyOption(this,e,t);a[e]=void 0!==i?i:t,"group"===e&&xU(a)},destroy:function(){LV("destroy",this);var e=this.el;e[AV]=null,sV(e,"mousedown",this._onTapStart),sV(e,"touchstart",this._onTapStart),sV(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(sV(e,"dragover",this),sV(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),dU.splice(dU.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!YV){if(LV("hideClone",this),TU.eventCanceled)return;uV(zV,"display","none"),this.options.removeCloneOnHide&&zV.parentNode&&zV.parentNode.removeChild(zV),YV=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(YV){if(LV("showClone",this),TU.eventCanceled)return;FV.parentNode!=VV||this.options.group.revertClone?UV?VV.insertBefore(zV,UV):VV.appendChild(zV):VV.insertBefore(zV,FV),this.options.group.revertClone&&this.animate(FV,zV),uV(zV,"display",""),YV=!1}}else this._hideClone()}},fU&&iV(document,"touchmove",function(e){(TU.active||lU)&&e.cancelable&&e.preventDefault()}),TU.utils={on:iV,off:sV,css:uV,find:hV,is:function(e,t){return!!rV(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a]);return e},throttle:wV,closest:rV,toggleClass:dV,clone:CV,index:vV,nextTick:IU,cancelNextTick:DU,detectDirection:SU,getChild:_V},TU.get=function(e){return e[AV]},TU.mount=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];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&&(TU.utils=HB(HB({},TU.utils),e.utils)),IV.mount(e)})},TU.create=function(e,t){return new TU(e,t)},TU.version="1.14.0";var MU,LU,PU,FU,$U,BU,VU=[],UU=!1;function HU(){VU.forEach(function(e){clearInterval(e.pid)}),VU=[]}function zU(){clearInterval(BU)}var YU,GU=wV(function(e,t,a,i){if(t.scroll){var s,n=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,r=t.scrollSensitivity,l=t.scrollSpeed,c=gV(),d=!1;LU!==a&&(LU=a,HU(),MU=t.scroll,s=t.scrollFn,!0===MU&&(MU=SV(a,!0)));var u=0,p=MU;do{var h=p,g=mV(h),m=g.top,f=g.bottom,_=g.left,b=g.right,v=g.width,y=g.height,S=void 0,x=void 0,w=h.scrollWidth,E=h.scrollHeight,C=uV(h),k=h.scrollLeft,T=h.scrollTop;h===c?(S=v<w&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),x=y<E&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(S=v<w&&("auto"===C.overflowX||"scroll"===C.overflowX),x=y<E&&("auto"===C.overflowY||"scroll"===C.overflowY));var A=S&&(Math.abs(b-n)<=r&&k+v<w)-(Math.abs(_-n)<=r&&!!k),R=x&&(Math.abs(f-o)<=r&&T+y<E)-(Math.abs(m-o)<=r&&!!T);if(!VU[u])for(var O=0;O<=u;O++)VU[O]||(VU[O]={});VU[u].vx==A&&VU[u].vy==R&&VU[u].el===h||(VU[u].el=h,VU[u].vx=A,VU[u].vy=R,clearInterval(VU[u].pid),0==A&&0==R||(d=!0,VU[u].pid=setInterval(function(){i&&0===this.layer&&TU.active._onTouchMove($U);var t=VU[this.layer].vy?VU[this.layer].vy*l:0,a=VU[this.layer].vx?VU[this.layer].vx*l:0;"function"==typeof s&&"continue"!==s.call(TU.dragged.parentNode[AV],a,t,e,$U,VU[this.layer].el)||EV(VU[this.layer].el,a,t)}.bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==c&&(p=SV(p,!1)));UU=d}},30),WU=function(e){var t=e.originalEvent,a=e.putSortable,i=e.dragEl,s=e.activeSortable,n=e.dispatchSortableEvent,o=e.hideGhostForTarget,r=e.unhideGhostForTarget;if(t){var l=a||s;o();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(c.clientX,c.clientY);r(),l&&!l.el.contains(d)&&(n("spill"),this.onSpill({dragEl:i,putSortable:a}))}};function jU(){}function qU(){}jU.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,a=e.putSortable;this.sortable.captureAnimationState(),a&&a.captureAnimationState();var i=_V(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),a&&a.animateAll()},drop:WU},GB(jU,{pluginName:"revertOnSpill"}),qU.prototype={onSpill:function(e){var t=e.dragEl,a=e.putSortable||this.sortable;a.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),a.animateAll()},drop:WU},GB(qU,{pluginName:"removeOnSpill"});var KU,XU,QU,ZU,JU,eH=[],tH=[],aH=!1,iH=!1,sH=!1;function nH(e,t){tH.forEach(function(a,i){var s=t.children[a.sortableIndex+(e?Number(i):0)];s?t.insertBefore(a,s):t.appendChild(a)})}function oH(){eH.forEach(function(e){e!==QU&&e.parentNode&&e.parentNode.removeChild(e)})}TU.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,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?iV(document,"dragover",this._handleAutoScroll):this.options.supportPointer?iV(document,"pointermove",this._handleFallbackAutoScroll):t.touches?iV(document,"touchmove",this._handleFallbackAutoScroll):iV(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?sV(document,"dragover",this._handleAutoScroll):(sV(document,"pointermove",this._handleFallbackAutoScroll),sV(document,"touchmove",this._handleFallbackAutoScroll),sV(document,"mousemove",this._handleFallbackAutoScroll)),zU(),HU(),clearTimeout(lV),lV=void 0},nulling:function(){$U=LU=MU=UU=BU=PU=FU=null,VU.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var a=this,i=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,n=document.elementFromPoint(i,s);if($U=e,t||this.options.forceAutoScrollFallback||QB||XB||JB){GU(e,this.options,n,t);var o=SV(n,!0);!UU||BU&&i===PU&&s===FU||(BU&&zU(),BU=setInterval(function(){var n=SV(document.elementFromPoint(i,s),!0);n!==o&&(o=n,HU()),GU(e,a.options,n,t)},10),PU=i,FU=s)}else{if(!this.options.bubbleScroll||SV(n,!0)===gV())return void HU();GU(e,this.options,SV(n,!1),!1)}}},GB(e,{pluginName:"scroll",initializeByDefault:!0})}),TU.mount(qU,jU);const rH=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:function(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?iV(document,"pointerup",this._deselectMultiDrag):(iV(document,"mouseup",this._deselectMultiDrag),iV(document,"touchend",this._deselectMultiDrag)),iV(document,"keydown",this._checkKeyDown),iV(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,a){var i="";eH.length&&XU===e?eH.forEach(function(e,t){i+=(t?", ":"")+e.textContent}):i=a.textContent,t.setData("Text",i)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;QU=t},delayEnded:function(){this.isMultiDrag=~eH.indexOf(QU)},setupClone:function(e){var t=e.sortable,a=e.cancel;if(this.isMultiDrag){for(var i=0;i<eH.length;i++)tH.push(CV(eH[i])),tH[i].sortableIndex=eH[i].sortableIndex,tH[i].draggable=!1,tH[i].style["will-change"]="",dV(tH[i],this.options.selectedClass,!1),eH[i]===QU&&dV(tH[i],this.options.chosenClass,!1);t._hideClone(),a()}},clone:function(e){var t=e.sortable,a=e.rootEl,i=e.dispatchSortableEvent,s=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||eH.length&&XU===t&&(nH(!0,a),i("clone"),s()))},showClone:function(e){var t=e.cloneNowShown,a=e.rootEl,i=e.cancel;this.isMultiDrag&&(nH(!1,a),tH.forEach(function(e){uV(e,"display","")}),t(),JU=!1,i())},hideClone:function(e){var t=this;e.sortable;var a=e.cloneNowHidden,i=e.cancel;this.isMultiDrag&&(tH.forEach(function(e){uV(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)}),a(),JU=!0,i())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&XU&&XU.multiDrag._deselectMultiDrag(),eH.forEach(function(e){e.sortableIndex=vV(e)}),eH=eH.sort(function(e,t){return e.sortableIndex-t.sortableIndex}),sH=!0},dragStarted:function(e){var t=this,a=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(a.captureAnimationState(),this.options.animation)){eH.forEach(function(e){e!==QU&&uV(e,"position","absolute")});var i=mV(QU,!1,!0,!0);eH.forEach(function(e){e!==QU&&kV(e,i)}),iH=!0,aH=!0}a.animateAll(function(){iH=!1,aH=!1,t.options.animation&&eH.forEach(function(e){TV(e)}),t.options.sort&&oH()})}},dragOver:function(e){var t=e.target,a=e.completed,i=e.cancel;iH&&~eH.indexOf(t)&&(a(!1),i())},revert:function(e){var t=e.fromSortable,a=e.rootEl,i=e.sortable,s=e.dragRect;eH.length>1&&(eH.forEach(function(e){i.addAnimationState({target:e,rect:iH?mV(e):s}),TV(e),e.fromRect=s,t.removeAnimationState(e)}),iH=!1,function(e,t){eH.forEach(function(a,i){var s=t.children[a.sortableIndex+(e?Number(i):0)];s?t.insertBefore(a,s):t.appendChild(a)})}(!this.options.removeCloneOnHide,a))},dragOverCompleted:function(e){var t=e.sortable,a=e.isOwner,i=e.insertion,s=e.activeSortable,n=e.parentEl,o=e.putSortable,r=this.options;if(i){if(a&&s._hideClone(),aH=!1,r.animation&&eH.length>1&&(iH||!a&&!s.options.sort&&!o)){var l=mV(QU,!1,!0,!0);eH.forEach(function(e){e!==QU&&(kV(e,l),n.appendChild(e))}),iH=!0}if(!a)if(iH||oH(),eH.length>1){var c=JU;s._showClone(t),s.options.animation&&!JU&&c&&tH.forEach(function(e){s.addAnimationState({target:e,rect:ZU}),e.fromRect=ZU,e.thisAnimationDuration=null})}else s._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,a=e.isOwner,i=e.activeSortable;if(eH.forEach(function(e){e.thisAnimationDuration=null}),i.options.animation&&!a&&i.multiDrag.isMultiDrag){ZU=GB({},t);var s=pV(QU,!0);ZU.top-=s.f,ZU.left-=s.e}},dragOverAnimationComplete:function(){iH&&(iH=!1,oH())},drop:function(e){var t=e.originalEvent,a=e.rootEl,i=e.parentEl,s=e.sortable,n=e.dispatchSortableEvent,o=e.oldIndex,r=e.putSortable,l=r||this.sortable;if(t){var c=this.options,d=i.children;if(!sH)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),dV(QU,c.selectedClass,!~eH.indexOf(QU)),~eH.indexOf(QU))eH.splice(eH.indexOf(QU),1),KU=null,DV({sortable:s,rootEl:a,name:"deselect",targetEl:QU});else{if(eH.push(QU),DV({sortable:s,rootEl:a,name:"select",targetEl:QU}),t.shiftKey&&KU&&s.el.contains(KU)){var u,p,h=vV(KU),g=vV(QU);if(~h&&~g&&h!==g)for(g>h?(p=h,u=g):(p=g,u=h+1);p<u;p++)~eH.indexOf(d[p])||(dV(d[p],c.selectedClass,!0),eH.push(d[p]),DV({sortable:s,rootEl:a,name:"select",targetEl:d[p]}))}else KU=QU;XU=l}if(sH&&this.isMultiDrag){if(iH=!1,(i[AV].options.sort||i!==a)&&eH.length>1){var m=mV(QU),f=vV(QU,":not(."+this.options.selectedClass+")");if(!aH&&c.animation&&(QU.thisAnimationDuration=null),l.captureAnimationState(),!aH&&(c.animation&&(QU.fromRect=m,eH.forEach(function(e){if(e.thisAnimationDuration=null,e!==QU){var t=iH?mV(e):m;e.fromRect=t,l.addAnimationState({target:e,rect:t})}})),oH(),eH.forEach(function(e){d[f]?i.insertBefore(e,d[f]):i.appendChild(e),f++}),o===vV(QU))){var _=!1;eH.forEach(function(e){e.sortableIndex===vV(e)||(_=!0)}),_&&n("update")}eH.forEach(function(e){TV(e)}),l.animateAll()}XU=l}(a===i||r&&"clone"!==r.lastPutMode)&&tH.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})}},nullingGlobal:function(){this.isMultiDrag=sH=!1,tH.length=0},destroyGlobal:function(){this._deselectMultiDrag(),sV(document,"pointerup",this._deselectMultiDrag),sV(document,"mouseup",this._deselectMultiDrag),sV(document,"touchend",this._deselectMultiDrag),sV(document,"keydown",this._checkKeyDown),sV(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==sH&&sH||XU!==this.sortable||e&&rV(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;eH.length;){var t=eH[0];dV(t,this.options.selectedClass,!1),eH.shift(),DV({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},GB(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[AV];t&&t.options.multiDrag&&!~eH.indexOf(e)&&(XU&&XU!==t&&(XU.multiDrag._deselectMultiDrag(),XU=t),dV(e,t.options.selectedClass,!0),eH.push(e))},deselect:function(e){var t=e.parentNode[AV],a=eH.indexOf(e);t&&t.options.multiDrag&&~a&&(dV(e,t.options.selectedClass,!1),eH.splice(a,1))}},eventProperties:function(){var e=this,t=[],a=[];return eH.forEach(function(i){var s;t.push({multiDragElement:i,index:i.sortableIndex}),s=iH&&i!==QU?-1:iH?vV(i,":not(."+e.options.selectedClass+")"):vV(i),a.push({multiDragElement:i,index:s})}),{items:jB(eH),clones:[].concat(tH),oldIndicies:t,newIndicies:a}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})},Sortable:TU,Swap:function(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;YU=t},dragOverValid:function(e){var t=e.completed,a=e.target,i=e.onMove,s=e.activeSortable,n=e.changed,o=e.cancel;if(s.options.swap){var r=this.sortable.el,l=this.options;if(a&&a!==r){var c=YU;!1!==i(a)?(dV(a,l.swapClass,!0),YU=a):YU=null,c&&c!==YU&&dV(c,l.swapClass,!1)}n(),t(!0),o()}},drop:function(e){var t=e.activeSortable,a=e.putSortable,i=e.dragEl,s=a||this.sortable,n=this.options;YU&&dV(YU,n.swapClass,!1),YU&&(n.swap||a&&a.options.swap)&&i!==YU&&(s.captureAnimationState(),s!==t&&t.captureAnimationState(),function(e,t){var a,i,s=e.parentNode,n=t.parentNode;if(!s||!n||s.isEqualNode(t)||n.isEqualNode(e))return;a=vV(e),i=vV(t),s.isEqualNode(n)&&a<i&&i++;s.insertBefore(t,s.children[a]),n.insertBefore(e,n.children[i])}(i,YU),s.animateAll(),s!==t&&t.animateAll())},nulling:function(){YU=null}},GB(e,{pluginName:"swap",eventProperties:function(){return{swapItem:YU}}})},default:TU},Symbol.toStringTag,{value:"Module"}));var lH;"undefined"!=typeof self&&self,lH=function(e,t){return function(e){var t={};function a(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=e,a.c=t,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)a.d(i,s,function(t){return e[t]}.bind(null,s));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s="fb15")}({"00ee":function(e,t,a){var i={};i[a("b622")("toStringTag")]="z",e.exports="[object z]"===String(i)},"0366":function(e,t,a){var i=a("1c0b");e.exports=function(e,t,a){if(i(e),void 0===t)return e;switch(a){case 0:return function(){return e.call(t)};case 1:return function(a){return e.call(t,a)};case 2:return function(a,i){return e.call(t,a,i)};case 3:return function(a,i,s){return e.call(t,a,i,s)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,a){var i=a("fc6a"),s=a("241c").f,n={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==n.call(e)?function(e){try{return s(e)}catch(t){return o.slice()}}(e):s(i(e))}},"06cf":function(e,t,a){var i=a("83ab"),s=a("d1e7"),n=a("5c6c"),o=a("fc6a"),r=a("c04e"),l=a("5135"),c=a("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=i?d:function(e,t){if(e=o(e),t=r(t,!0),c)try{return d(e,t)}catch(a){}if(l(e,t))return n(!s.f.call(e,t),e[t])}},"0cfb":function(e,t,a){var i=a("83ab"),s=a("d039"),n=a("cc12");e.exports=!i&&!s(function(){return 7!=Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})},"13d5":function(e,t,a){var i=a("23e7"),s=a("d58f").left,n=a("a640"),o=a("ae40"),r=n("reduce"),l=o("reduce",{1:0});i({target:"Array",proto:!0,forced:!r||!l},{reduce:function(e){return s(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,a){var i=a("c6b6"),s=a("9263");e.exports=function(e,t){var a=e.exec;if("function"==typeof a){var n=a.call(e,t);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return s.call(e,t)}},"159b":function(e,t,a){var i=a("da84"),s=a("fdbc"),n=a("17c2"),o=a("9112");for(var r in s){var l=i[r],c=l&&l.prototype;if(c&&c.forEach!==n)try{o(c,"forEach",n)}catch(d){c.forEach=n}}},"17c2":function(e,t,a){var i=a("b727").forEach,s=a("a640"),n=a("ae40"),o=s("forEach"),r=n("forEach");e.exports=o&&r?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,a){var i=a("d066");e.exports=i("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,a){var i=a("b622")("iterator"),s=!1;try{var n=0,o={next:function(){return{done:!!n++}},return:function(){s=!0}};o[i]=function(){return this},Array.from(o,function(){throw 2})}catch(r){}e.exports=function(e,t){if(!t&&!s)return!1;var a=!1;try{var n={};n[i]=function(){return{next:function(){return{done:a=!0}}}},e(n)}catch(r){}return a}},"1d80":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,a){var i=a("d039"),s=a("b622"),n=a("2d00"),o=s("species");e.exports=function(e){return n>=51||!i(function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},"23cb":function(e,t,a){var i=a("a691"),s=Math.max,n=Math.min;e.exports=function(e,t){var a=i(e);return a<0?s(a+t,0):n(a,t)}},"23e7":function(e,t,a){var i=a("da84"),s=a("06cf").f,n=a("9112"),o=a("6eeb"),r=a("ce4e"),l=a("e893"),c=a("94ca");e.exports=function(e,t){var a,d,u,p,h,g=e.target,m=e.global,f=e.stat;if(a=m?i:f?i[g]||r(g,{}):(i[g]||{}).prototype)for(d in t){if(p=t[d],u=e.noTargetGet?(h=s(a,d))&&h.value:a[d],!c(m?d:g+(f?".":"#")+d,e.forced)&&void 0!==u){if(typeof p==typeof u)continue;l(p,u)}(e.sham||u&&u.sham)&&n(p,"sham",!0),o(a,d,p,e)}}},"241c":function(e,t,a){var i=a("ca84"),s=a("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,s)}},"25f0":function(e,t,a){var i=a("6eeb"),s=a("825a"),n=a("d039"),o=a("ad6d"),r="toString",l=RegExp.prototype,c=l[r],d=n(function(){return"/a/b"!=c.call({source:"a",flags:"b"})}),u=c.name!=r;(d||u)&&i(RegExp.prototype,r,function(){var e=s(this),t=String(e.source),a=e.flags;return"/"+t+"/"+String(void 0===a&&e instanceof RegExp&&!("flags"in l)?o.call(e):a)},{unsafe:!0})},"2ca0":function(e,t,a){var i,s=a("23e7"),n=a("06cf").f,o=a("50c4"),r=a("5a34"),l=a("1d80"),c=a("ab13"),d=a("c430"),u="".startsWith,p=Math.min,h=c("startsWith");s({target:"String",proto:!0,forced:!(!d&&!h&&(i=n(String.prototype,"startsWith"),i&&!i.writable)||h)},{startsWith:function(e){var t=String(l(this));r(e);var a=o(p(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return u?u.call(t,i,a):t.slice(a,a+i.length)===i}})},"2d00":function(e,t,a){var i,s,n=a("da84"),o=a("342f"),r=n.process,l=r&&r.versions,c=l&&l.v8;c?s=(i=c.split("."))[0]+i[1]:o&&(!(i=o.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/))&&(s=i[1]),e.exports=s&&+s},"342f":function(e,t,a){var i=a("d066");e.exports=i("navigator","userAgent")||""},"35a1":function(e,t,a){var i=a("f5df"),s=a("3f8c"),n=a("b622")("iterator");e.exports=function(e){if(null!=e)return e[n]||e["@@iterator"]||s[i(e)]}},"37e8":function(e,t,a){var i=a("83ab"),s=a("9bf2"),n=a("825a"),o=a("df75");e.exports=i?Object.defineProperties:function(e,t){n(e);for(var a,i=o(t),r=i.length,l=0;r>l;)s.f(e,a=i[l++],t[a]);return e}},"3bbe":function(e,t,a){var i=a("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,a){var i=a("6547").charAt,s=a("69f3"),n=a("7dd0"),o="String Iterator",r=s.set,l=s.getterFor(o);n(String,"String",function(e){r(this,{type:o,string:String(e),index:0})},function(){var e,t=l(this),a=t.string,s=t.index;return s>=a.length?{value:void 0,done:!0}:(e=i(a,s),t.index+=e.length,{value:e,done:!1})})},"3f8c":function(e,t){e.exports={}},4160:function(e,t,a){var i=a("23e7"),s=a("17c2");i({target:"Array",proto:!0,forced:[].forEach!=s},{forEach:s})},"428f":function(e,t,a){var i=a("da84");e.exports=i},"44ad":function(e,t,a){var i=a("d039"),s=a("c6b6"),n="".split;e.exports=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==s(e)?n.call(e,""):Object(e)}:Object},"44d2":function(e,t,a){var i=a("b622"),s=a("7c73"),n=a("9bf2"),o=i("unscopables"),r=Array.prototype;null==r[o]&&n.f(r,o,{configurable:!0,value:s(null)}),e.exports=function(e){r[o][e]=!0}},"44e7":function(e,t,a){var i=a("861d"),s=a("c6b6"),n=a("b622")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[n])?!!t:"RegExp"==s(e))}},4930:function(e,t,a){var i=a("d039");e.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())})},"4d64":function(e,t,a){var i=a("fc6a"),s=a("50c4"),n=a("23cb"),o=function(e){return function(t,a,o){var r,l=i(t),c=s(l.length),d=n(o,c);if(e&&a!=a){for(;c>d;)if((r=l[d++])!=r)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===a)return e||d||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"4de4":function(e,t,a){var i=a("23e7"),s=a("b727").filter,n=a("1dde"),o=a("ae40"),r=n("filter"),l=o("filter");i({target:"Array",proto:!0,forced:!r||!l},{filter:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,a){var i=a("0366"),s=a("7b0b"),n=a("9bdd"),o=a("e95a"),r=a("50c4"),l=a("8418"),c=a("35a1");e.exports=function(e){var t,a,d,u,p,h,g=s(e),m="function"==typeof this?this:Array,f=arguments.length,_=f>1?arguments[1]:void 0,b=void 0!==_,v=c(g),y=0;if(b&&(_=i(_,f>2?arguments[2]:void 0,2)),null==v||m==Array&&o(v))for(a=new m(t=r(g.length));t>y;y++)h=b?_(g[y],y):g[y],l(a,y,h);else for(p=(u=v.call(g)).next,a=new m;!(d=p.call(u)).done;y++)h=b?n(u,_,[d.value,y],!0):d.value,l(a,y,h);return a.length=y,a}},"4fad":function(e,t,a){var i=a("23e7"),s=a("6f53").entries;i({target:"Object",stat:!0},{entries:function(e){return s(e)}})},"50c4":function(e,t,a){var i=a("a691"),s=Math.min;e.exports=function(e){return e>0?s(i(e),9007199254740991):0}},5135:function(e,t){var a={}.hasOwnProperty;e.exports=function(e,t){return a.call(e,t)}},5319:function(e,t,a){var i=a("d784"),s=a("825a"),n=a("7b0b"),o=a("50c4"),r=a("a691"),l=a("1d80"),c=a("8aa5"),d=a("14c3"),u=Math.max,p=Math.min,h=Math.floor,g=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g,f=function(e){return void 0===e?e:String(e)};i("replace",2,function(e,t,a,i){var _=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,b=i.REPLACE_KEEPS_$0,v=_?"$":"$0";return[function(a,i){var s=l(this),n=null==a?void 0:a[e];return void 0!==n?n.call(a,s,i):t.call(String(s),a,i)},function(e,i){if(!_&&b||"string"==typeof i&&-1===i.indexOf(v)){var n=a(t,e,this,i);if(n.done)return n.value}var l=s(e),h=String(this),g="function"==typeof i;g||(i=String(i));var m=l.global;if(m){var S=l.unicode;l.lastIndex=0}for(var x=[];;){var w=d(l,h);if(null===w)break;if(x.push(w),!m)break;""===String(w[0])&&(l.lastIndex=c(h,o(l.lastIndex),S))}for(var E="",C=0,k=0;k<x.length;k++){w=x[k];for(var T=String(w[0]),A=u(p(r(w.index),h.length),0),R=[],O=1;O<w.length;O++)R.push(f(w[O]));var N=w.groups;if(g){var I=[T].concat(R,A,h);void 0!==N&&I.push(N);var D=String(i.apply(void 0,I))}else D=y(T,h,A,R,N,i);A>=C&&(E+=h.slice(C,A)+D,C=A+T.length)}return E+h.slice(C)}];function y(e,a,i,s,o,r){var l=i+e.length,c=s.length,d=m;return void 0!==o&&(o=n(o),d=g),t.call(r,d,function(t,n){var r;switch(n.charAt(0)){case"$":return"$";case"&":return e;case"`":return a.slice(0,i);case"'":return a.slice(l);case"<":r=o[n.slice(1,-1)];break;default:var d=+n;if(0===d)return t;if(d>c){var u=h(d/10);return 0===u?t:u<=c?void 0===s[u-1]?n.charAt(1):s[u-1]+n.charAt(1):t}r=s[d-1]}return void 0===r?"":r})}})},5692:function(e,t,a){var i=a("c430"),s=a("c6cd");(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,a){var i=a("d066"),s=a("241c"),n=a("7418"),o=a("825a");e.exports=i("Reflect","ownKeys")||function(e){var t=s.f(o(e)),a=n.f;return a?t.concat(a(e)):t}},"5a34":function(e,t,a){var i=a("44e7");e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5db7":function(e,t,a){var i=a("23e7"),s=a("a2bf"),n=a("7b0b"),o=a("50c4"),r=a("1c0b"),l=a("65f0");i({target:"Array",proto:!0},{flatMap:function(e){var t,a=n(this),i=o(a.length);return r(e),(t=l(a,0)).length=s(t,a,a,i,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},6547:function(e,t,a){var i=a("a691"),s=a("1d80"),n=function(e){return function(t,a){var n,o,r=String(s(t)),l=i(a),c=r.length;return l<0||l>=c?e?"":void 0:(n=r.charCodeAt(l))<55296||n>56319||l+1===c||(o=r.charCodeAt(l+1))<56320||o>57343?e?r.charAt(l):n:e?r.slice(l,l+2):o-56320+(n-55296<<10)+65536}};e.exports={codeAt:n(!1),charAt:n(!0)}},"65f0":function(e,t,a){var i=a("861d"),s=a("e8b5"),n=a("b622")("species");e.exports=function(e,t){var a;return s(e)&&("function"!=typeof(a=e.constructor)||a!==Array&&!s(a.prototype)?i(a)&&null===(a=a[n])&&(a=void 0):a=void 0),new(void 0===a?Array:a)(0===t?0:t)}},"69f3":function(e,t,a){var i,s,n,o=a("7f9a"),r=a("da84"),l=a("861d"),c=a("9112"),d=a("5135"),u=a("f772"),p=a("d012"),h=r.WeakMap;if(o){var g=new h,m=g.get,f=g.has,_=g.set;i=function(e,t){return _.call(g,e,t),t},s=function(e){return m.call(g,e)||{}},n=function(e){return f.call(g,e)}}else{var b=u("state");p[b]=!0,i=function(e,t){return c(e,b,t),t},s=function(e){return d(e,b)?e[b]:{}},n=function(e){return d(e,b)}}e.exports={set:i,get:s,has:n,enforce:function(e){return n(e)?s(e):i(e,{})},getterFor:function(e){return function(t){var a;if(!l(t)||(a=s(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return a}}}},"6eeb":function(e,t,a){var i=a("da84"),s=a("9112"),n=a("5135"),o=a("ce4e"),r=a("8925"),l=a("69f3"),c=l.get,d=l.enforce,u=String(String).split("String");(e.exports=function(e,t,a,r){var l=!!r&&!!r.unsafe,c=!!r&&!!r.enumerable,p=!!r&&!!r.noTargetGet;"function"==typeof a&&("string"!=typeof t||n(a,"name")||s(a,"name",t),d(a).source=u.join("string"==typeof t?t:"")),e!==i?(l?!p&&e[t]&&(c=!0):delete e[t],c?e[t]=a:s(e,t,a)):c?e[t]=a:o(t,a)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||r(this)})},"6f53":function(e,t,a){var i=a("83ab"),s=a("df75"),n=a("fc6a"),o=a("d1e7").f,r=function(e){return function(t){for(var a,r=n(t),l=s(r),c=l.length,d=0,u=[];c>d;)a=l[d++],i&&!o.call(r,a)||u.push(e?[a,r[a]]:r[a]);return u}};e.exports={entries:r(!0),values:r(!1)}},"73d9":function(e,t,a){a("44d2")("flatMap")},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,a){var i=a("428f"),s=a("5135"),n=a("e538"),o=a("9bf2").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});s(t,e)||o(t,e,{value:n.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,a){var i=a("1d80");e.exports=function(e){return Object(i(e))}},"7c73":function(e,t,a){var i,s=a("825a"),n=a("37e8"),o=a("7839"),r=a("d012"),l=a("1be4"),c=a("cc12"),d=a("f772"),u="prototype",p="script",h=d("IE_PROTO"),g=function(){},m=function(e){return"<"+p+">"+e+"</"+p+">"},f=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(n){}var e,t,a;f=i?function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t}(i):(t=c("iframe"),a="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(a),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F);for(var s=o.length;s--;)delete f[u][o[s]];return f()};r[h]=!0,e.exports=Object.create||function(e,t){var a;return null!==e?(g[u]=s(e),a=new g,g[u]=null,a[h]=e):a=f(),void 0===t?a:n(a,t)}},"7dd0":function(e,t,a){var i=a("23e7"),s=a("9ed3"),n=a("e163"),o=a("d2bb"),r=a("d44e"),l=a("9112"),c=a("6eeb"),d=a("b622"),u=a("c430"),p=a("3f8c"),h=a("ae93"),g=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,f=d("iterator"),_="keys",b="values",v="entries",y=function(){return this};e.exports=function(e,t,a,d,h,S,x){s(a,t,d);var w,E,C,k=function(e){if(e===h&&N)return N;if(!m&&e in R)return R[e];switch(e){case _:case b:case v:return function(){return new a(this,e)}}return function(){return new a(this)}},T=t+" Iterator",A=!1,R=e.prototype,O=R[f]||R["@@iterator"]||h&&R[h],N=!m&&O||k(h),I="Array"==t&&R.entries||O;if(I&&(w=n(I.call(new e)),g!==Object.prototype&&w.next&&(u||n(w)===g||(o?o(w,g):"function"!=typeof w[f]&&l(w,f,y)),r(w,T,!0,!0),u&&(p[T]=y))),h==b&&O&&O.name!==b&&(A=!0,N=function(){return O.call(this)}),u&&!x||R[f]===N||l(R,f,N),p[t]=N,h)if(E={values:k(b),keys:S?N:k(_),entries:k(v)},x)for(C in E)(m||A||!(C in R))&&c(R,C,E[C]);else i({target:t,proto:!0,forced:m||A},E);return E}},"7f9a":function(e,t,a){var i=a("da84"),s=a("8925"),n=i.WeakMap;e.exports="function"==typeof n&&/native code/.test(s(n))},"825a":function(e,t,a){var i=a("861d");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,a){var i=a("d039");e.exports=!i(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},8418:function(e,t,a){var i=a("c04e"),s=a("9bf2"),n=a("5c6c");e.exports=function(e,t,a){var o=i(t);o in e?s.f(e,o,n(0,a)):e[o]=a}},"861d":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},8875:function(e,t,a){var i,s,n;"undefined"!=typeof self&&self,s=[],void 0===(n="function"==typeof(i=function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var a,i,s,n=/@([^@]*):(\d+):(\d+)\s*$/gi,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(p.stack)||n.exec(p.stack),r=o&&o[1]||!1,l=o&&o[2]||!1,c=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");r===c&&(a=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),s=a.replace(i,"$1").trim());for(var u=0;u<d.length;u++){if("interactive"===d[u].readyState)return d[u];if(d[u].src===r)return d[u];if(r===c&&d[u].innerHTML&&d[u].innerHTML.trim()===s)return d[u]}return null}}return e})?i.apply(t,s):i)||(e.exports=n)},8925:function(e,t,a){var i=a("c6cd"),s=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return s.call(e)}),e.exports=i.inspectSource},"8aa5":function(e,t,a){var i=a("6547").charAt;e.exports=function(e,t,a){return t+(a?i(e,t).length:1)}},"8bbf":function(t,a){t.exports=e},"90e3":function(e,t){var a=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++a+i).toString(36)}},9112:function(e,t,a){var i=a("83ab"),s=a("9bf2"),n=a("5c6c");e.exports=i?function(e,t,a){return s.f(e,t,n(1,a))}:function(e,t,a){return e[t]=a,e}},9263:function(e,t,a){var i,s,n=a("ad6d"),o=a("9f7f"),r=RegExp.prototype.exec,l=String.prototype.replace,c=r,d=(i=/a/,s=/b*/g,r.call(i,"a"),r.call(s,"a"),0!==i.lastIndex||0!==s.lastIndex),u=o.UNSUPPORTED_Y||o.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(d||p||u)&&(c=function(e){var t,a,i,s,o=this,c=u&&o.sticky,h=n.call(o),g=o.source,m=0,f=e;return c&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),f=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(g="(?: "+g+")",f=" "+f,m++),a=new RegExp("^(?:"+g+")",h)),p&&(a=new RegExp("^"+g+"$(?!\\s)",h)),d&&(t=o.lastIndex),i=r.call(c?a:o,f),c?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=o.lastIndex,o.lastIndex+=i[0].length):o.lastIndex=0:d&&i&&(o.lastIndex=o.global?i.index+i[0].length:t),p&&i&&i.length>1&&l.call(i[0],a,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)}),i}),e.exports=c},"94ca":function(e,t,a){var i=a("d039"),s=/#|\.prototype\./,n=function(e,t){var a=r[o(e)];return a==c||a!=l&&("function"==typeof t?i(t):!!t)},o=n.normalize=function(e){return String(e).replace(s,".").toLowerCase()},r=n.data={},l=n.NATIVE="N",c=n.POLYFILL="P";e.exports=n},"99af":function(e,t,a){var i=a("23e7"),s=a("d039"),n=a("e8b5"),o=a("861d"),r=a("7b0b"),l=a("50c4"),c=a("8418"),d=a("65f0"),u=a("1dde"),p=a("b622"),h=a("2d00"),g=p("isConcatSpreadable"),m=9007199254740991,f="Maximum allowed index exceeded",_=h>=51||!s(function(){var e=[];return e[g]=!1,e.concat()[0]!==e}),b=u("concat"),v=function(e){if(!o(e))return!1;var t=e[g];return void 0!==t?!!t:n(e)};i({target:"Array",proto:!0,forced:!_||!b},{concat:function(e){var t,a,i,s,n,o=r(this),u=d(o,0),p=0;for(t=-1,i=arguments.length;t<i;t++)if(v(n=-1===t?o:arguments[t])){if(p+(s=l(n.length))>m)throw TypeError(f);for(a=0;a<s;a++,p++)a in n&&c(u,p,n[a])}else{if(p>=m)throw TypeError(f);c(u,p++,n)}return u.length=p,u}})},"9bdd":function(e,t,a){var i=a("825a");e.exports=function(e,t,a,s){try{return s?t(i(a)[0],a[1]):t(a)}catch(o){var n=e.return;throw void 0!==n&&i(n.call(e)),o}}},"9bf2":function(e,t,a){var i=a("83ab"),s=a("0cfb"),n=a("825a"),o=a("c04e"),r=Object.defineProperty;t.f=i?r:function(e,t,a){if(n(e),t=o(t,!0),n(a),s)try{return r(e,t,a)}catch(i){}if("get"in a||"set"in a)throw TypeError("Accessors not supported");return"value"in a&&(e[t]=a.value),e}},"9ed3":function(e,t,a){var i=a("ae93").IteratorPrototype,s=a("7c73"),n=a("5c6c"),o=a("d44e"),r=a("3f8c"),l=function(){return this};e.exports=function(e,t,a){var c=t+" Iterator";return e.prototype=s(i,{next:n(1,a)}),o(e,c,!1,!0),r[c]=l,e}},"9f7f":function(e,t,a){var i=a("d039");function s(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=i(function(){var e=s("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),t.BROKEN_CARET=i(function(){var e=s("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},a2bf:function(e,t,a){var i=a("e8b5"),s=a("50c4"),n=a("0366"),o=function(e,t,a,r,l,c,d,u){for(var p,h=l,g=0,m=!!d&&n(d,u,3);g<r;){if(g in a){if(p=m?m(a[g],g,t):a[g],c>0&&i(p))h=o(e,t,p,s(p.length),h,c-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[h]=p}h++}g++}return h};e.exports=o},a352:function(e,a){e.exports=t},a434:function(e,t,a){var i=a("23e7"),s=a("23cb"),n=a("a691"),o=a("50c4"),r=a("7b0b"),l=a("65f0"),c=a("8418"),d=a("1dde"),u=a("ae40"),p=d("splice"),h=u("splice",{ACCESSORS:!0,0:0,1:2}),g=Math.max,m=Math.min;i({target:"Array",proto:!0,forced:!p||!h},{splice:function(e,t){var a,i,d,u,p,h,f=r(this),_=o(f.length),b=s(e,_),v=arguments.length;if(0===v?a=i=0:1===v?(a=0,i=_-b):(a=v-2,i=m(g(n(t),0),_-b)),_+a-i>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(d=l(f,i),u=0;u<i;u++)(p=b+u)in f&&c(d,u,f[p]);if(d.length=i,a<i){for(u=b;u<_-i;u++)h=u+a,(p=u+i)in f?f[h]=f[p]:delete f[h];for(u=_;u>_-i+a;u--)delete f[u-1]}else if(a>i)for(u=_-i;u>b;u--)h=u+a-1,(p=u+i-1)in f?f[h]=f[p]:delete f[h];for(u=0;u<a;u++)f[u+b]=arguments[u+2];return f.length=_-i+a,d}})},a4d3:function(e,t,a){var i=a("23e7"),s=a("da84"),n=a("d066"),o=a("c430"),r=a("83ab"),l=a("4930"),c=a("fdbf"),d=a("d039"),u=a("5135"),p=a("e8b5"),h=a("861d"),g=a("825a"),m=a("7b0b"),f=a("fc6a"),_=a("c04e"),b=a("5c6c"),v=a("7c73"),y=a("df75"),S=a("241c"),x=a("057f"),w=a("7418"),E=a("06cf"),C=a("9bf2"),k=a("d1e7"),T=a("9112"),A=a("6eeb"),R=a("5692"),O=a("f772"),N=a("d012"),I=a("90e3"),D=a("b622"),M=a("e538"),L=a("746f"),P=a("d44e"),F=a("69f3"),$=a("b727").forEach,B=O("hidden"),V="Symbol",U="prototype",H=D("toPrimitive"),z=F.set,Y=F.getterFor(V),G=Object[U],W=s.Symbol,j=n("JSON","stringify"),q=E.f,K=C.f,X=x.f,Q=k.f,Z=R("symbols"),J=R("op-symbols"),ee=R("string-to-symbol-registry"),te=R("symbol-to-string-registry"),ae=R("wks"),ie=s.QObject,se=!ie||!ie[U]||!ie[U].findChild,ne=r&&d(function(){return 7!=v(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a})?function(e,t,a){var i=q(G,t);i&&delete G[t],K(e,t,a),i&&e!==G&&K(G,t,i)}:K,oe=function(e,t){var a=Z[e]=v(W[U]);return z(a,{type:V,tag:e,description:t}),r||(a.description=t),a},re=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},le=function(e,t,a){e===G&&le(J,t,a),g(e);var i=_(t,!0);return g(a),u(Z,i)?(a.enumerable?(u(e,B)&&e[B][i]&&(e[B][i]=!1),a=v(a,{enumerable:b(0,!1)})):(u(e,B)||K(e,B,b(1,{})),e[B][i]=!0),ne(e,i,a)):K(e,i,a)},ce=function(e,t){g(e);var a=f(t),i=y(a).concat(he(a));return $(i,function(t){r&&!de.call(a,t)||le(e,t,a[t])}),e},de=function(e){var t=_(e,!0),a=Q.call(this,t);return!(this===G&&u(Z,t)&&!u(J,t))&&(!(a||!u(this,t)||!u(Z,t)||u(this,B)&&this[B][t])||a)},ue=function(e,t){var a=f(e),i=_(t,!0);if(a!==G||!u(Z,i)||u(J,i)){var s=q(a,i);return!s||!u(Z,i)||u(a,B)&&a[B][i]||(s.enumerable=!0),s}},pe=function(e){var t=X(f(e)),a=[];return $(t,function(e){u(Z,e)||u(N,e)||a.push(e)}),a},he=function(e){var t=e===G,a=X(t?J:f(e)),i=[];return $(a,function(e){!u(Z,e)||t&&!u(G,e)||i.push(Z[e])}),i};l||(W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=I(e),a=function(e){this===G&&a.call(J,e),u(this,B)&&u(this[B],t)&&(this[B][t]=!1),ne(this,t,b(1,e))};return r&&se&&ne(G,t,{configurable:!0,set:a}),oe(t,e)},A(W[U],"toString",function(){return Y(this).tag}),A(W,"withoutSetter",function(e){return oe(I(e),e)}),k.f=de,C.f=le,E.f=ue,S.f=x.f=pe,w.f=he,M.f=function(e){return oe(D(e),e)},r&&(K(W[U],"description",{configurable:!0,get:function(){return Y(this).description}}),o||A(G,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),$(y(ae),function(e){L(e)}),i({target:V,stat:!0,forced:!l},{for:function(e){var t=String(e);if(u(ee,t))return ee[t];var a=W(t);return ee[t]=a,te[a]=t,a},keyFor:function(e){if(!re(e))throw TypeError(e+" is not a symbol");if(u(te,e))return te[e]},useSetter:function(){se=!0},useSimple:function(){se=!1}}),i({target:"Object",stat:!0,forced:!l,sham:!r},{create:function(e,t){return void 0===t?v(e):ce(v(e),t)},defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:ue}),i({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe,getOwnPropertySymbols:he}),i({target:"Object",stat:!0,forced:d(function(){w.f(1)})},{getOwnPropertySymbols:function(e){return w.f(m(e))}}),j&&i({target:"JSON",stat:!0,forced:!l||d(function(){var e=W();return"[null]"!=j([e])||"{}"!=j({a:e})||"{}"!=j(Object(e))})},{stringify:function(e,t,a){for(var i,s=[e],n=1;arguments.length>n;)s.push(arguments[n++]);if(i=t,(h(t)||void 0!==e)&&!re(e))return p(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!re(t))return t}),s[1]=t,j.apply(null,s)}}),W[U][H]||T(W[U],H,W[U].valueOf),P(W,V),N[B]=!0},a630:function(e,t,a){var i=a("23e7"),s=a("4df4");i({target:"Array",stat:!0,forced:!a("1c7e")(function(e){Array.from(e)})},{from:s})},a640:function(e,t,a){var i=a("d039");e.exports=function(e,t){var a=[][e];return!!a&&i(function(){a.call(null,t||function(){throw 1},1)})}},a691:function(e,t){var a=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:a)(e)}},ab13:function(e,t,a){var i=a("b622")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(PI){try{return t[i]=!1,"/./"[e](t)}catch(a){}}return!1}},ac1f:function(e,t,a){var i=a("23e7"),s=a("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},ad6d:function(e,t,a){var i=a("825a");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,a){var i=a("83ab"),s=a("d039"),n=a("5135"),o=Object.defineProperty,r={},l=function(e){throw e};e.exports=function(e,t){if(n(r,e))return r[e];t||(t={});var a=[][e],c=!!n(t,"ACCESSORS")&&t.ACCESSORS,d=n(t,0)?t[0]:l,u=n(t,1)?t[1]:void 0;return r[e]=!!a&&!s(function(){if(c&&!i)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:l}):e[1]=1,a.call(e,d,u)})}},ae93:function(e,t,a){var i,s,n,o=a("e163"),r=a("9112"),l=a("5135"),c=a("b622"),d=a("c430"),u=c("iterator"),p=!1;[].keys&&("next"in(n=[].keys())?(s=o(o(n)))!==Object.prototype&&(i=s):p=!0),null==i&&(i={}),d||l(i,u)||r(i,u,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},b041:function(e,t,a){var i=a("00ee"),s=a("f5df");e.exports=i?{}.toString:function(){return"[object "+s(this)+"]"}},b0c0:function(e,t,a){var i=a("83ab"),s=a("9bf2").f,n=Function.prototype,o=n.toString,r=/^\s*function ([^ (]*)/,l="name";i&&!(l in n)&&s(n,l,{configurable:!0,get:function(){try{return o.call(this).match(r)[1]}catch(e){return""}}})},b622:function(e,t,a){var i=a("da84"),s=a("5692"),n=a("5135"),o=a("90e3"),r=a("4930"),l=a("fdbf"),c=s("wks"),d=i.Symbol,u=l?d:d&&d.withoutSetter||o;e.exports=function(e){return n(c,e)||(r&&n(d,e)?c[e]=d[e]:c[e]=u("Symbol."+e)),c[e]}},b64b:function(e,t,a){var i=a("23e7"),s=a("7b0b"),n=a("df75");i({target:"Object",stat:!0,forced:a("d039")(function(){n(1)})},{keys:function(e){return n(s(e))}})},b727:function(e,t,a){var i=a("0366"),s=a("44ad"),n=a("7b0b"),o=a("50c4"),r=a("65f0"),l=[].push,c=function(e){var t=1==e,a=2==e,c=3==e,d=4==e,u=6==e,p=5==e||u;return function(h,g,m,f){for(var _,b,v=n(h),y=s(v),S=i(g,m,3),x=o(y.length),w=0,E=f||r,C=t?E(h,x):a?E(h,0):void 0;x>w;w++)if((p||w in y)&&(b=S(_=y[w],w,v),e))if(t)C[w]=b;else if(b)switch(e){case 3:return!0;case 5:return _;case 6:return w;case 2:l.call(C,_)}else if(d)return!1;return u?-1:c||d?d:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},c04e:function(e,t,a){var i=a("861d");e.exports=function(e,t){if(!i(e))return e;var a,s;if(t&&"function"==typeof(a=e.toString)&&!i(s=a.call(e)))return s;if("function"==typeof(a=e.valueOf)&&!i(s=a.call(e)))return s;if(!t&&"function"==typeof(a=e.toString)&&!i(s=a.call(e)))return s;throw TypeError("Can't convert object to primitive value")}},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var a={}.toString;e.exports=function(e){return a.call(e).slice(8,-1)}},c6cd:function(e,t,a){var i=a("da84"),s=a("ce4e"),n="__core-js_shared__",o=i[n]||s(n,{});e.exports=o},c740:function(e,t,a){var i=a("23e7"),s=a("b727").findIndex,n=a("44d2"),o=a("ae40"),r="findIndex",l=!0,c=o(r);r in[]&&Array(1)[r](function(){l=!1}),i({target:"Array",proto:!0,forced:l||!c},{findIndex:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}}),n(r)},c8ba:function(e,t){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch(PI){"object"==typeof window&&(a=window)}e.exports=a},c975:function(e,t,a){var i=a("23e7"),s=a("4d64").indexOf,n=a("a640"),o=a("ae40"),r=[].indexOf,l=!!r&&1/[1].indexOf(1,-0)<0,c=n("indexOf"),d=o("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:l||!c||!d},{indexOf:function(e){return l?r.apply(this,arguments)||0:s(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,a){var i=a("5135"),s=a("fc6a"),n=a("4d64").indexOf,o=a("d012");e.exports=function(e,t){var a,r=s(e),l=0,c=[];for(a in r)!i(o,a)&&i(r,a)&&c.push(a);for(;t.length>l;)i(r,a=t[l++])&&(~n(c,a)||c.push(a));return c}},caad:function(e,t,a){var i=a("23e7"),s=a("4d64").includes,n=a("44d2");i({target:"Array",proto:!0,forced:!a("ae40")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}}),n("includes")},cc12:function(e,t,a){var i=a("da84"),s=a("861d"),n=i.document,o=s(n)&&s(n.createElement);e.exports=function(e){return o?n.createElement(e):{}}},ce4e:function(e,t,a){var i=a("da84"),s=a("9112");e.exports=function(e,t){try{s(i,e,t)}catch(a){i[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,a){var i=a("428f"),s=a("da84"),n=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?n(i[e])||n(s[e]):i[e]&&i[e][t]||s[e]&&s[e][t]}},d1e7:function(e,t,a){var i={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!i.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:i},d28b:function(e,t,a){a("746f")("iterator")},d2bb:function(e,t,a){var i=a("825a"),s=a("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,a={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(a,[]),t=a instanceof Array}catch(n){}return function(a,n){return i(a),s(n),t?e.call(a,n):a.__proto__=n,a}}():void 0)},d3b7:function(e,t,a){var i=a("00ee"),s=a("6eeb"),n=a("b041");i||s(Object.prototype,"toString",n,{unsafe:!0})},d44e:function(e,t,a){var i=a("9bf2").f,s=a("5135"),n=a("b622")("toStringTag");e.exports=function(e,t,a){e&&!s(e=a?e:e.prototype,n)&&i(e,n,{configurable:!0,value:t})}},d58f:function(e,t,a){var i=a("1c0b"),s=a("7b0b"),n=a("44ad"),o=a("50c4"),r=function(e){return function(t,a,r,l){i(a);var c=s(t),d=n(c),u=o(c.length),p=e?u-1:0,h=e?-1:1;if(r<2)for(;;){if(p in d){l=d[p],p+=h;break}if(p+=h,e?p<0:u<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:u>p;p+=h)p in d&&(l=a(l,d[p],p,c));return l}};e.exports={left:r(!1),right:r(!0)}},d784:function(e,t,a){a("ac1f");var i=a("6eeb"),s=a("d039"),n=a("b622"),o=a("9263"),r=a("9112"),l=n("species"),c=!s(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),d="$0"==="a".replace(/./,"$0"),u=n("replace"),p=!!/./[u]&&""===/./[u]("a","$0"),h=!s(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var a="ab".split(e);return 2!==a.length||"a"!==a[0]||"b"!==a[1]});e.exports=function(e,t,a,u){var g=n(e),m=!s(function(){var t={};return t[g]=function(){return 7},7!=""[e](t)}),f=m&&!s(function(){var t=!1,a=/a/;return"split"===e&&((a={}).constructor={},a.constructor[l]=function(){return a},a.flags="",a[g]=/./[g]),a.exec=function(){return t=!0,null},a[g](""),!t});if(!m||!f||"replace"===e&&(!c||!d||p)||"split"===e&&!h){var _=/./[g],b=a(g,""[e],function(e,t,a,i,s){return t.exec===o?m&&!s?{done:!0,value:_.call(t,a,i)}:{done:!0,value:e.call(a,t,i)}:{done:!1}},{REPLACE_KEEPS_$0:d,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),v=b[0],y=b[1];i(String.prototype,e,v),i(RegExp.prototype,g,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}u&&r(RegExp.prototype[g],"sham",!0)}},d81d:function(e,t,a){var i=a("23e7"),s=a("b727").map,n=a("1dde"),o=a("ae40"),r=n("map"),l=o("map");i({target:"Array",proto:!0,forced:!r||!l},{map:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,a){(function(t){var a=function(e){return e&&e.Math==Math&&e};e.exports=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||Function("return this")()}).call(this,a("c8ba"))},dbb4:function(e,t,a){var i=a("23e7"),s=a("83ab"),n=a("56ef"),o=a("fc6a"),r=a("06cf"),l=a("8418");i({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(e){for(var t,a,i=o(e),s=r.f,c=n(i),d={},u=0;c.length>u;)void 0!==(a=s(i,t=c[u++]))&&l(d,t,a);return d}})},dbf1:function(e,t,a){(function(e){a.d(t,"a",function(){return i});var i="undefined"!=typeof window?window.console:e.console}).call(this,a("c8ba"))},ddb0:function(e,t,a){var i=a("da84"),s=a("fdbc"),n=a("e260"),o=a("9112"),r=a("b622"),l=r("iterator"),c=r("toStringTag"),d=n.values;for(var u in s){var p=i[u],h=p&&p.prototype;if(h){if(h[l]!==d)try{o(h,l,d)}catch(m){h[l]=d}if(h[c]||o(h,c,u),s[u])for(var g in n)if(h[g]!==n[g])try{o(h,g,n[g])}catch(m){h[g]=n[g]}}}},df75:function(e,t,a){var i=a("ca84"),s=a("7839");e.exports=Object.keys||function(e){return i(e,s)}},e01a:function(e,t,a){var i=a("23e7"),s=a("83ab"),n=a("da84"),o=a("5135"),r=a("861d"),l=a("9bf2").f,c=a("e893"),d=n.Symbol;if(s&&"function"==typeof d&&(!("description"in d.prototype)||void 0!==d().description)){var u={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new d(e):void 0===e?d():d(e);return""===e&&(u[t]=!0),t};c(p,d);var h=p.prototype=d.prototype;h.constructor=p;var g=h.toString,m="Symbol(test)"==String(d("test")),f=/^Symbol\((.*)\)[^)]+$/;l(h,"description",{configurable:!0,get:function(){var e=r(this)?this.valueOf():this,t=g.call(e);if(o(u,e))return"";var a=m?t.slice(7,-1):t.replace(f,"$1");return""===a?void 0:a}}),i({global:!0,forced:!0},{Symbol:p})}},e163:function(e,t,a){var i=a("5135"),s=a("7b0b"),n=a("f772"),o=a("e177"),r=n("IE_PROTO"),l=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=s(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},e177:function(e,t,a){var i=a("d039");e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},e260:function(e,t,a){var i=a("fc6a"),s=a("44d2"),n=a("3f8c"),o=a("69f3"),r=a("7dd0"),l="Array Iterator",c=o.set,d=o.getterFor(l);e.exports=r(Array,"Array",function(e,t){c(this,{type:l,target:i(e),index:0,kind:t})},function(){var e=d(this),t=e.target,a=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==a?{value:i,done:!1}:"values"==a?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}},"values"),n.Arguments=n.Array,s("keys"),s("values"),s("entries")},e439:function(e,t,a){var i=a("23e7"),s=a("d039"),n=a("fc6a"),o=a("06cf").f,r=a("83ab"),l=s(function(){o(1)});i({target:"Object",stat:!0,forced:!r||l,sham:!r},{getOwnPropertyDescriptor:function(e,t){return o(n(e),t)}})},e538:function(e,t,a){var i=a("b622");t.f=i},e893:function(e,t,a){var i=a("5135"),s=a("56ef"),n=a("06cf"),o=a("9bf2");e.exports=function(e,t){for(var a=s(t),r=o.f,l=n.f,c=0;c<a.length;c++){var d=a[c];i(e,d)||r(e,d,l(t,d))}}},e8b5:function(e,t,a){var i=a("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e95a:function(e,t,a){var i=a("b622"),s=a("3f8c"),n=i("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[n]===e)}},f5df:function(e,t,a){var i=a("00ee"),s=a("c6b6"),n=a("b622")("toStringTag"),o="Arguments"==s(function(){return arguments}());e.exports=i?s:function(e){var t,a,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=function(e,t){try{return e[t]}catch(a){}}(t=Object(e),n))?a:o?s(t):"Object"==(i=s(t))&&"function"==typeof t.callee?"Arguments":i}},f772:function(e,t,a){var i=a("5692"),s=a("90e3"),n=i("keys");e.exports=function(e){return n[e]||(n[e]=s(e))}},fb15:function(e,t,a){if(a.r(t),"undefined"!=typeof window){var i=window.document.currentScript,s=a("8875");i=s(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:s});var n=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(a.p=n[1])}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function l(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach(function(t){o(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a<t;a++)i[a]=e[a];return i}function d(e,t){if(e){if("string"==typeof e)return c(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?c(e,t):void 0}}function u(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 a=[],i=!0,s=!1,n=void 0;try{for(var o,r=e[Symbol.iterator]();!(i=(o=r.next()).done)&&(a.push(o.value),!t||a.length!==t);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==r.return||r.return()}finally{if(s)throw n}}return a}}(e,t)||d(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 p(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||d(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.")}()}a("99af"),a("4de4"),a("4160"),a("c975"),a("d81d"),a("a434"),a("159b"),a("a4d3"),a("e439"),a("dbb4"),a("b64b"),a("e01a"),a("d28b"),a("e260"),a("d3b7"),a("3ca3"),a("ddb0"),a("a630"),a("fb6a"),a("b0c0"),a("25f0");var h=a("a352"),g=a.n(h);function m(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function f(e,t,a){var i=0===a?e.children[0]:e.children[a-1].nextSibling;e.insertBefore(t,i)}var _=a("dbf1");a("13d5"),a("4fad"),a("ac1f"),a("5319");var b,v,y=/-(\w)/g,S=(b=function(e){return e.replace(y,function(e,t){return t.toUpperCase()})},v=Object.create(null),function(e){return v[e]||(v[e]=b(e))});a("5db7"),a("73d9");var x=["Start","Add","Remove","Update","End"],w=["Choose","Unchoose","Sort","Filter","Clone"],E=["Move"],C=[E,x,w].flatMap(function(e){return e}).map(function(e){return"on".concat(e)}),k={manage:E,manageAndEmit:x,emit:w};a("caad"),a("2ca0");var T=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function A(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function R(e){return e.reduce(function(e,t){var a=u(t,2),i=a[0],s=a[1];return e[i]=s,e},{})}function O(e){return Object.entries(e).filter(function(e){var t=u(e,2),a=t[0];return t[1],!A(a)}).map(function(e){var t=u(e,2),a=t[0],i=t[1];return[S(a),i]}).filter(function(e){var t,a=u(e,2),i=a[0];return a[1],t=i,!(-1!==C.indexOf(t))})}function N(e,t,a){return t&&function(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,t),e}a("c740");var I=function(e){return e.el},D=function(e){return e.__draggable_context},M=function(){function e(t){var a=t.nodes,i=a.header,s=a.default,n=a.footer,o=t.root,r=t.realList;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultNodes=s,this.children=[].concat(p(i),p(s),p(n)),this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=r}return N(e,[{key:"render",value:function(e,t){var a=this.tag,i=this.children;return e(a,t,this._isRootComponent?{default:function(){return i}}:i)}},{key:"updated",value:function(){var e=this.defaultNodes,t=this.realList;e.forEach(function(e,a){var i,s;i=I(e),s={element:t[a],index:a},i.__draggable_context=s})}},{key:"getUnderlyingVm",value:function(e){return D(e)}},{key:"getVmIndexFromDomIndex",value:function(e,t){var a=this.defaultNodes,i=a.length,s=t.children,n=s.item(e);if(null===n)return i;var o=D(n);if(o)return o.index;if(0===i)return 0;var r=I(a[0]);return e<p(s).findIndex(function(e){return e===r})?0:i}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),e}(),L=a("8bbf");function P(e){var t=function(e){return["transition-group","TransitionGroup"].includes(e)}(e),a=!function(e){return T.includes(e)}(e)&&!t;return{transition:t,externalComponent:a,tag:a?Object(L.resolveComponent)(e):t?L.TransitionGroup:e}}function F(e){var t=e.$slots,a=e.tag,i=e.realList,s=function(e){var t=e.$slots,a=e.realList,i=e.getKey,s=a||[],n=["header","footer"].map(function(e){return(a=t[e])?a():[];var a}),o=u(n,2),r=o[0],c=o[1],d=t.item;if(!d)throw new Error("draggable element must have an item slot");var p=s.flatMap(function(e,t){return d({element:e,index:t}).map(function(t){return t.key=i(e),t.props=l(l({},t.props||{}),{},{"data-draggable":!0}),t})});if(p.length!==s.length)throw new Error("Item slot must have only one child");return{header:r,footer:c,default:p}}({$slots:t,realList:i,getKey:e.getKey}),n=P(a);return new M({nodes:s,root:n,realList:i})}function $(e,t){var a=this;Object(L.nextTick)(function(){return a.$emit(e.toLowerCase(),t)})}function B(e){var t=this;return function(a,i){if(null!==t.realList)return t["onDrag".concat(e)](a,i)}}function V(e){var t=this,a=B.call(this,e);return function(i,s){a.call(t,i,s),$.call(t,e,i)}}var U=null,H={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(e){return e}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},z=["update:modelValue","change"].concat(p([].concat(p(k.manageAndEmit),p(k.emit)).map(function(e){return e.toLowerCase()}))),Y=Object(L.defineComponent)({name:"draggable",inheritAttrs:!1,props:H,emits:z,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,t=this.$attrs,a=this.tag,i=this.componentData,s=F({$slots:e,tag:a,realList:this.realList,getKey:this.getKey});this.componentStructure=s;var n=function(e){var t=e.$attrs,a=e.componentData,i=void 0===a?{}:a;return l(l({},R(Object.entries(t).filter(function(e){var t=u(e,2),a=t[0];return t[1],A(a)}))),i)}({$attrs:t,componentData:i});return s.render(L.h,n)}catch(o){return this.error=!0,Object(L.h)("pre",{style:{color:"red"}},o.stack)}},created:function(){null!==this.list&&null!==this.modelValue&&_.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var e=this;if(!this.error){var t=this.$attrs,a=this.$el;this.componentStructure.updated();var i=function(e){var t=e.$attrs,a=e.callBackBuilder,i=R(O(t));Object.entries(a).forEach(function(e){var t=u(e,2),a=t[0],s=t[1];k[a].forEach(function(e){i["on".concat(e)]=s(e)})});var s="[data-draggable]".concat(i.draggable||"");return l(l({},i),{},{draggable:s})}({$attrs:t,callBackBuilder:{manageAndEmit:function(t){return V.call(e,t)},emit:function(t){return $.bind(e,t)},manage:function(t){return B.call(e,t)}}}),s=1===a.nodeType?a:a.parentElement;this._sortable=new g.a(s,i),this.targetDomElement=s,s.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{realList:function(){var e=this.list;return e||this.modelValue},getKey:function(){var e=this.itemKey;return"function"==typeof e?e:function(t){return t[e]}}},watch:{$attrs:{handler:function(e){var t=this._sortable;t&&O(e).forEach(function(e){var a=u(e,2),i=a[0],s=a[1];t.option(i,s)})},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var t=this;Object(L.nextTick)(function(){return t.$emit("change",e)})},alterList:function(e){if(this.list)e(this.list);else{var t=p(this.modelValue);e(t),this.$emit("update:modelValue",t)}},spliceList:function(){var e=arguments;this.alterList(function(t){return t.splice.apply(t,p(e))})},updatePosition:function(e,t){this.alterList(function(a){return a.splice(t,0,a.splice(e,1)[0])})},getRelatedContextFromMoveEvent:function(e){var t=e.to,a=e.related,i=this.getUnderlyingPotencialDraggableComponent(t);if(!i)return{component:i};var s=i.realList,n={list:s,component:i};return t!==a&&s?l(l({},i.getUnderlyingVm(a)||{}),n):n},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),U=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){m(e.item);var a=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(a,0,t);var i={element:t,newIndex:a};this.emitChanges({added:i})}},onDragRemove:function(e){if(f(this.$el,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context,a=t.index,i=t.element;this.spliceList(a,1);var s={element:i,oldIndex:a};this.emitChanges({removed:s})}else m(e.clone)},onDragUpdate:function(e){m(e.item),f(e.from,e.item,e.oldIndex);var t=this.context.index,a=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,a);var i={element:this.context.element,oldIndex:t,newIndex:a};this.emitChanges({moved:i})},computeFutureIndex:function(e,t){if(!e.element)return 0;var a=p(t.to.children).filter(function(e){return"none"!==e.style.display}),i=a.indexOf(t.related),s=e.component.getVmIndexFromDomIndex(i);return-1===a.indexOf(U)&&t.willInsertAfter?s+1:s},onDragMove:function(e,t){var a=this.move,i=this.realList;if(!a||!i)return!0;var s=this.getRelatedContextFromMoveEvent(e),n=this.computeFutureIndex(s,e),o=l(l({},this.context),{},{futureIndex:n});return a(l(l({},e),{},{relatedContext:s,draggedContext:o}),t)},onDragEnd:function(){U=null}}}),G=Y;t.default=G},fb6a:function(e,t,a){var i=a("23e7"),s=a("861d"),n=a("e8b5"),o=a("23cb"),r=a("50c4"),l=a("fc6a"),c=a("8418"),d=a("b622"),u=a("1dde"),p=a("ae40"),h=u("slice"),g=p("slice",{ACCESSORS:!0,0:0,1:2}),m=d("species"),f=[].slice,_=Math.max;i({target:"Array",proto:!0,forced:!h||!g},{slice:function(e,t){var a,i,d,u=l(this),p=r(u.length),h=o(e,p),g=o(void 0===t?p:t,p);if(n(u)&&("function"!=typeof(a=u.constructor)||a!==Array&&!n(a.prototype)?s(a)&&null===(a=a[m])&&(a=void 0):a=void 0,a===Array||void 0===a))return f.call(u,h,g);for(i=new(void 0===a?Array:a)(_(g-h,0)),d=0;h<g;h++,d++)h in u&&c(i,d,u[h]);return i.length=d,i}})},fc6a:function(e,t,a){var i=a("44ad"),s=a("1d80");e.exports=function(e){return i(s(e))}},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,a){var i=a("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}).default};const cH=Ak(BB.exports=lH(VB,Rk(rH))),dH=(e,t)=>{const a=e.__vccOpts||e;for(const[i,s]of t)a[i]=s;return a},uH={name:"ticketTags",props:["ticket_id","tags","creatable","mode"],data:()=>({doing_action:!1,adding_tag:!1}),computed:{available_tags(){if(!this.creatable)return[];const e=this.tags.map(e=>parseInt(e.id));return this.appVars.ticket_tags.filter(t=>-1===e.indexOf(parseInt(t.id)))}},methods:{removeTag(e,t){this.doing_action=!0,this.$del(`tickets/${this.ticket_id}/tags/${t.id}`).then(t=>{this.tags.splice(e,1),this.$notify({message:t.message,type:"success",position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.doing_action=!1})},attachTag(e){this.adding_tag=!0,this.$post(`tickets/${this.ticket_id}/tags`,{tag_id:e.id}).then(t=>{this.tags.push(e),this.$notify({message:t.message,type:"success",position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.adding_tag=!1})}}},pH={key:0,class:"fs_tag_item"},hH=["src"],gH={class:"fs_tag_text"},mH={class:"fs_tag_count"},fH=["src"],_H={class:"fs_tag_text"},bH={style:{cursor:"pointer"},class:"fs_add_tag_icon fs_tag_item"},vH={class:"fs_tags_add_wrapper"},yH={key:0},SH=["onClick"],xH={key:1};const wH=dH(uH,[["render",function(e,t,a,i,s,n){const o=KE,r=Zl("Close"),l=jx,c=Zl("Plus"),d=$B,u=q$;return e.appVars.ticket_tags.length?vr((Hd(),jd("div",{key:0,class:ne(["fs_tags",{fs_ticket_tags_mode:!0}])},["ticket_list"===a.mode&&a.tags&&a.tags.length?(Hd(),jd("div",pH,[eu("img",{src:e.appVars.asset_url+"images/tags.svg",alt:""},null,8,hH),eu("span",gH,fe(a.tags[0].title),1),a.tags.length>1?(Hd(),qd(o,{key:0,effect:"dark",placement:"top","popper-class":"fc-tooltip"},{content:br(()=>[(Hd(!0),jd(Pd,null,sc(a.tags.slice(1),e=>(Hd(),jd("div",{key:e.id},fe(e.title),1))),128))]),default:br(()=>[eu("span",mH,"+"+fe(a.tags.length-1),1)],void 0),_:1})):ou("",!0)])):(Hd(),jd(Pd,{key:1},[(Hd(!0),jd(Pd,null,sc(a.tags,(t,i)=>(Hd(),jd("div",{class:"fs_tag_item",key:t.id},[eu("img",{src:e.appVars.asset_url+"images/tags.svg",alt:""},null,8,fH),eu("div",_H,fe(t.title),1),a.creatable?(Hd(),qd(l,{key:0,class:"fs_tag_close_icon",onClick:e=>n.removeTag(i,t)},{default:br(()=>[tu(r)],void 0),_:1},8,["onClick"])):ou("",!0)]))),128)),a.creatable?(Hd(),qd(d,{key:0,placement:"bottom",trigger:"click"},{reference:br(()=>[eu("span",bH,[tu(l,null,{default:br(()=>[tu(c)],void 0),_:1})])]),default:br(()=>[eu("div",vH,[eu("h3",null,fe(e.$t("Add Tags")),1),n.available_tags.length?vr((Hd(),jd("ul",yH,[(Hd(!0),jd(Pd,null,sc(n.available_tags,e=>(Hd(),jd("li",{key:e.id,onClick:t=>n.attachTag(e)},[tu(l,null,{default:br(()=>[tu(c)],void 0),_:1}),su(" "+fe(e.title),1)],8,SH))),128))])),[[u,s.adding_tag]]):(Hd(),jd("p",xH,fe(e.$t("No available tags found")),1))])],void 0),_:1})):ou("",!0)],64))])),[[u,s.doing_action]]):ou("",!0)}]]),EH=["width","height"],CH=["width","height"],kH=["width","height"],TH={key:3,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},AH=["width","height"],RH=["width","height"],OH=["width","height"],NH=["width","height"],IH={key:8,xmlns:"http://www.w3.org/2000/svg",width:"10",height:"6",viewBox:"0 0 10 6",fill:"none"},DH={key:9,xmlns:"http://www.w3.org/2000/svg",width:"10",height:"6",viewBox:"0 0 10 6",fill:"none"},MH={key:10,xmlns:"http://www.w3.org/2000/svg",width:"15",height:"19",viewBox:"0 0 15 19",fill:"none"},LH={key:11,xmlns:"http://www.w3.org/2000/svg",width:"15",height:"19",viewBox:"0 0 15 19",fill:"none"},PH={key:12,xmlns:"http://www.w3.org/2000/svg",width:"15",height:"17",viewBox:"0 0 15 17",fill:"none"},FH={key:13,xmlns:"http://www.w3.org/2000/svg",width:"15",height:"19",viewBox:"0 0 15 19",fill:"none"},$H={key:14,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},BH={key:15,xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},VH=["width","height"],UH={key:17,xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none"},HH=["width","height"],zH={key:19,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},YH={key:20,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},GH=["width","height"],WH={key:22,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},jH={key:23,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},qH={key:24,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},KH={key:25,xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"0 0 11 13",fill:"none"},XH={key:26,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"11",viewBox:"0 0 14 11",fill:"none"},QH=["width","height"],ZH=["width","height"],JH=["width","height"],ez=["width","height"],tz=["width","height"],az=["width","height","fill"],iz=["fill"],sz=["width","height","fill"],nz=["fill"],oz=["width","height","fill"],rz=["fill"],lz=["width","height","fill"],cz=["fill"],dz=["width","height"],uz=["width","height"],pz=["width","height"],hz=["width","height"],gz=["width","height"],mz=["width","height"],fz=["width","height"],_z={key:43,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},bz=["width","height"],vz=["width","height"],yz=["width","height"],Sz=["width","height"],xz=["width","height"],wz=["width","height"],Ez=["width","height"],Cz=["width","height"],kz=["width","height"],Tz=["width","height"],Az=["fill"],Rz=["width","height"],Oz=["width","height"],Nz=["width","height"],Iz={key:57,width:"16",height:"16",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Dz=["width","height"],Mz=["width","height"],Lz={key:60,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pz={key:61,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fz={key:62,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const $z=dH({name:"ChatEditorAccordionsIconPack",props:{iconKey:{type:String,required:!0},width:{type:[String,Number],default:15},height:{type:[String,Number],default:14},fill:{type:String,default:""}}},[["render",function(e,t,a,i,s,n){return"new_tickets"===a.iconKey?(Hd(),jd("svg",{key:0,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[0]||(t[0]=[eu("path",{d:"M16.75 3.25C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V8.125C17.0027 8.125 16.5258 8.32254 16.1742 8.67418C15.8225 9.02581 15.625 9.50272 15.625 10C15.625 10.4973 15.8225 10.9742 16.1742 11.3258C16.5258 11.6775 17.0027 11.875 17.5 11.875V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V11.875C2.99728 11.875 3.47419 11.6775 3.82583 11.3258C4.17746 10.9742 4.375 10.4973 4.375 10C4.375 9.50272 4.17746 9.02581 3.82583 8.67418C3.47419 8.32254 2.99728 8.125 2.5 8.125V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H16.75ZM16 4.75H4V6.976L4.117 7.03675C4.62574 7.31429 5.05445 7.71814 5.36183 8.20943C5.66921 8.70071 5.8449 9.26287 5.872 9.84175L5.875 10C5.87509 10.6062 5.71189 11.2012 5.40254 11.7225C5.09319 12.2438 4.64912 12.6721 4.117 12.9625L4 13.024V15.25H16V13.0233L15.883 12.9633C15.3743 12.6857 14.9456 12.2819 14.6382 11.7906C14.3308 11.2993 14.1551 10.7371 14.128 10.1583L14.125 10C14.125 8.722 14.8352 7.60975 15.883 7.0375L16 6.97525V4.75Z",fill:"#525866"},null,-1)])],8,EH)):"open_tickets"===a.iconKey?(Hd(),jd("svg",{key:1,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[1]||(t[1]=[eu("path",{d:"M16.75 3.25C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V8.125C17.0027 8.125 16.5258 8.32254 16.1742 8.67418C15.8225 9.02581 15.625 9.50272 15.625 10C15.625 10.4973 15.8225 10.9742 16.1742 11.3258C16.5258 11.6775 17.0027 11.875 17.5 11.875V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V11.875C2.99728 11.875 3.47419 11.6775 3.82583 11.3258C4.17746 10.9742 4.375 10.4973 4.375 10C4.375 9.50272 4.17746 9.02581 3.82583 8.67418C3.47419 8.32254 2.99728 8.125 2.5 8.125V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H16.75ZM16 4.75H4V6.976L4.117 7.03675C4.62574 7.31429 5.05445 7.71814 5.36183 8.20943C5.66921 8.70071 5.8449 9.26287 5.872 9.84175L5.875 10C5.87509 10.6062 5.71189 11.2012 5.40254 11.7225C5.09319 12.2438 4.64912 12.6721 4.117 12.9625L4 13.024V15.25H16V13.0233L15.883 12.9633C15.3743 12.6857 14.9456 12.2819 14.6382 11.7906C14.3308 11.2993 14.1551 10.7371 14.128 10.1583L14.125 10C14.125 8.722 14.8352 7.60975 15.883 7.0375L16 6.97525V4.75ZM13 7.75V12.25H7V7.75H13Z",fill:"#525866"},null,-1)])],8,CH)):"closed_tickets"===a.iconKey?(Hd(),jd("svg",{key:2,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[2]||(t[2]=[eu("path",{d:"M9.7015 11.3201L10.7605 12.3791L17.11 6.02962L18.1705 7.09012L10.7605 14.5001L5.9875 9.72712L7.048 8.66663L8.64175 10.2604L9.7015 11.3194V11.3201ZM9.703 9.19913L13.417 5.48438L14.4745 6.54187L10.7605 10.2566L9.703 9.19913ZM7.58275 13.4404L6.523 14.5001L1.75 9.72712L2.8105 8.66663L3.87025 9.72638L3.8695 9.72712L7.58275 13.4404V13.4404Z",fill:"#525866"},null,-1)])],8,kH)):"active_agents"===a.iconKey?(Hd(),jd("svg",TH,[...t[3]||(t[3]=[eu("path",{d:"M17.0442 6.29903H18C18.4774 6.29903 18.9352 6.48867 19.2728 6.82624C19.6104 7.16381 19.8 7.62164 19.8 8.09903V11.699C19.8 12.1764 19.6104 12.6343 19.2728 12.9718C18.9352 13.3094 18.4774 13.499 18 13.499H17.0442C16.8248 15.239 15.9779 16.8391 14.6626 17.999C13.3472 19.159 11.6537 19.799 9.9 19.799V17.999C11.3322 17.999 12.7057 17.4301 13.7184 16.4174C14.7311 15.4047 15.3 14.0312 15.3 12.599V7.19903C15.3 5.76686 14.7311 4.39335 13.7184 3.38066C12.7057 2.36796 11.3322 1.79903 9.9 1.79903C8.46783 1.79903 7.09432 2.36796 6.08162 3.38066C5.06893 4.39335 4.5 5.76686 4.5 7.19903V13.499H1.8C1.32261 13.499 0.864773 13.3094 0.527208 12.9718C0.189642 12.6343 0 12.1764 0 11.699V8.09903C0 7.62164 0.189642 7.16381 0.527208 6.82624C0.864773 6.48867 1.32261 6.29903 1.8 6.29903H2.7558C2.97543 4.55924 3.82237 2.95938 5.13772 1.79964C6.45306 0.639902 8.1464 0 9.9 0C11.6536 0 13.3469 0.639902 14.6623 1.79964C15.9776 2.95938 16.8246 4.55924 17.0442 6.29903ZM1.8 8.09903V11.699H2.7V8.09903H1.8ZM17.1 8.09903V11.699H18V8.09903H17.1ZM6.084 13.3055L7.038 11.7791C7.89577 12.3165 8.88783 12.6007 9.9 12.599C10.9122 12.6007 11.9042 12.3165 12.762 11.7791L13.716 13.3055C12.5723 14.0221 11.2496 14.4011 9.9 14.399C8.55041 14.4011 7.22767 14.0221 6.084 13.3055Z",fill:"#525866"},null,-1)])])):"active_tickets"===a.iconKey?(Hd(),jd("svg",{key:4,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[4]||(t[4]=[eu("path",{d:"M8.5 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H8.5C8.5 3.64782 8.65804 4.02936 8.93934 4.31066C9.22064 4.59196 9.60218 4.75 10 4.75C10.3978 4.75 10.7794 4.59196 11.0607 4.31066C11.342 4.02936 11.5 3.64782 11.5 3.25H16.75C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H11.5C11.5 16.3522 11.342 15.9706 11.0607 15.6893C10.7794 15.408 10.3978 15.25 10 15.25C9.60218 15.25 9.22064 15.408 8.93934 15.6893C8.65804 15.9706 8.5 16.3522 8.5 16.75ZM7.40125 15.25C7.6645 14.7937 8.04329 14.4149 8.4995 14.1516C8.95571 13.8882 9.47325 13.7497 10 13.75C11.11 13.75 12.0798 14.353 12.5988 15.25H16V4.75H12.5988C12.3355 5.20626 11.9567 5.58512 11.5005 5.84845C11.0443 6.11177 10.5268 6.25027 10 6.25C9.47325 6.25027 8.95571 6.11177 8.4995 5.84845C8.04329 5.58512 7.6645 5.20626 7.40125 4.75H4V15.25H7.40125ZM5.5 7H7V13H5.5V7ZM13 7H14.5V13H13V7Z",fill:"#525866"},null,-1)])],8,AH)):"responses"===a.iconKey?(Hd(),jd("svg",{key:5,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[5]||(t[5]=[eu("path",{d:"M5.84125 15.25L2.5 17.875V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H16.75C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V14.5C17.5 14.6989 17.421 14.8897 17.2803 15.0303C17.1397 15.171 16.9489 15.25 16.75 15.25H5.84125ZM5.32225 13.75H16V4.75H4V14.7887L5.32225 13.75ZM9.25 8.5H10.75V10H9.25V8.5ZM6.25 8.5H7.75V10H6.25V8.5ZM12.25 8.5H13.75V10H12.25V8.5Z",fill:"#525866"},null,-1)])],8,RH)):"interactions"===a.iconKey?(Hd(),jd("svg",{key:6,width:a.width,height:a.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[6]||(t[6]=[eu("path",{d:"M15.75 7.5C15.3358 7.5 15 7.16421 15 6.75C15 6.33579 15.3358 6 15.75 6C16.1642 6 16.5 6.33579 16.5 6.75C16.5 7.16421 16.1642 7.5 15.75 7.5ZM15.75 9C16.9927 9 18 7.99264 18 6.75C18 5.50736 16.9927 4.5 15.75 4.5C14.5073 4.5 13.5 5.50736 13.5 6.75C13.5 7.99264 14.5073 9 15.75 9ZM8.25 5.25C6.59314 5.25 5.25 6.59314 5.25 8.25V9.75H6.75V8.25C6.75 7.42157 7.42157 6.75 8.25 6.75H10.5V5.25H8.25ZM15.75 18.75C17.4068 18.75 18.75 17.4068 18.75 15.75V14.25H17.25V15.75C17.25 16.5785 16.5785 17.25 15.75 17.25H13.5V18.75H15.75ZM9 12.75C9 12.3358 8.66421 12 8.25 12C7.83579 12 7.5 12.3358 7.5 12.75C7.5 13.1642 7.83579 13.5 8.25 13.5C8.66421 13.5 9 13.1642 9 12.75ZM10.5 12.75C10.5 13.9927 9.49264 15 8.25 15C7.00736 15 6 13.9927 6 12.75C6 11.5073 7.00736 10.5 8.25 10.5C9.49264 10.5 10.5 11.5073 10.5 12.75ZM15.75 11.25C14.9215 11.25 14.25 11.9215 14.25 12.75H12.75C12.75 11.0932 14.0932 9.75 15.75 9.75C17.4068 9.75 18.75 11.0932 18.75 12.75H17.25C17.25 11.9215 16.5785 11.25 15.75 11.25ZM6.75 18.75C6.75 17.9215 7.42157 17.25 8.25 17.25C9.07843 17.25 9.75 17.9215 9.75 18.75H11.25C11.25 17.0932 9.90686 15.75 8.25 15.75C6.59314 15.75 5.25 17.0932 5.25 18.75H6.75Z",fill:"#525866"},null,-1)])],8,OH)):"unassigned_tickets"===a.iconKey?(Hd(),jd("svg",{key:7,width:a.width,height:a.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[7]||(t[7]=[eu("path",{d:"M13.8 14.0269V15.9079C12.9855 15.6199 12.1137 15.5316 11.2579 15.6503C10.4021 15.769 9.58733 16.0914 8.88194 16.5903C8.17655 17.0892 7.60116 17.75 7.2041 18.5174C6.80703 19.2847 6.59988 20.1361 6.60005 21.0001L4.80005 20.9992C4.79977 19.9002 5.05108 18.8157 5.53472 17.8289C6.01836 16.842 6.72149 15.9789 7.59024 15.3058C8.459 14.6327 9.47031 14.1674 10.5467 13.9456C11.6231 13.7237 12.7359 13.7512 13.8 14.026V14.0269ZM12 12.9001C9.01655 12.9001 6.60005 10.4836 6.60005 7.5001C6.60005 4.5166 9.01655 2.1001 12 2.1001C14.9835 2.1001 17.4 4.5166 17.4 7.5001C17.4 10.4836 14.9835 12.9001 12 12.9001ZM12 11.1001C13.989 11.1001 15.6 9.4891 15.6 7.5001C15.6 5.5111 13.989 3.9001 12 3.9001C10.011 3.9001 8.40005 5.5111 8.40005 7.5001C8.40005 9.4891 10.011 11.1001 12 11.1001ZM18.3 17.0275L20.209 15.1177L21.4824 16.3912L19.5726 18.3001L21.4824 20.209L20.209 21.4825L18.3 19.5727L16.3911 21.4825L15.1176 20.209L17.0274 18.3001L15.1176 16.3912L16.3911 15.1177L18.3 17.0275Z",fill:"#525866"},null,-1)])],8,NH)):"upward_chevron"===a.iconKey?(Hd(),jd("svg",IH,[...t[8]||(t[8]=[eu("path",{d:"M4.773 2.121L1.0605 5.8335L0 4.773L4.773 0L9.546 4.773L8.4855 5.8335L4.773 2.121Z",fill:"#525866"},null,-1)])])):"downward_chevron"===a.iconKey?(Hd(),jd("svg",DH,[...t[9]||(t[9]=[eu("path",{d:"M4.773 3.879L1.0605 0.1665L0 1.227L4.773 6L9.546 1.227L8.4855 0.1665L4.773 3.879Z",fill:"#525866"},null,-1)])])):"bookmark"===a.iconKey?(Hd(),jd("svg",MH,[...t[10]||(t[10]=[eu("path",{d:"M0.9 0H13.5C13.7387 0 13.9676 0.0948211 14.1364 0.263604C14.3052 0.432387 14.4 0.661305 14.4 0.9V18.1287C14.4001 18.2092 14.3786 18.2882 14.3378 18.3575C14.297 18.4269 14.2383 18.484 14.1679 18.523C14.0975 18.5619 14.018 18.5813 13.9375 18.5791C13.8571 18.5769 13.7787 18.5531 13.7106 18.5103L7.2 14.427L0.6894 18.5094C0.621331 18.5522 0.543049 18.5759 0.462692 18.5782C0.382335 18.5805 0.302838 18.5612 0.232466 18.5223C0.162094 18.4834 0.103416 18.4264 0.0625345 18.3572C0.0216529 18.288 5.98238e-05 18.2091 0 18.1287V0.9C0 0.661305 0.0948213 0.432387 0.263604 0.263604C0.432387 0.0948211 0.661305 0 0.9 0ZM12.6 1.8H1.8V15.6888L7.2 12.3039L12.6 15.6888V1.8Z",fill:"#525866"},null,-1)])])):"lightbulb"===a.iconKey?(Hd(),jd("svg",LH,[...t[11]||(t[11]=[eu("path",{d:"M5.37588 14.3991H6.30018V9.8991H8.10018V14.3991H9.02448C9.14328 13.3173 9.69498 12.4245 10.5905 11.4498C10.6922 11.34 11.3393 10.6695 11.4158 10.5741C12.0514 9.77997 12.4499 8.82244 12.5652 7.81179C12.6805 6.80115 12.508 5.77848 12.0676 4.86156C11.6272 3.94465 10.9367 3.17077 10.0758 2.62906C9.21482 2.08734 8.21836 1.79982 7.20116 1.79961C6.18395 1.79939 5.18737 2.08648 4.32618 2.62783C3.46499 3.16918 2.77421 3.94276 2.3334 4.85949C1.89259 5.77621 1.71967 6.79881 1.83456 7.8095C1.94944 8.8202 2.34747 9.77789 2.98278 10.5723C3.06018 10.6686 3.70908 11.34 3.80898 11.4489C4.70538 12.4245 5.25708 13.3173 5.37588 14.3991ZM5.40018 16.1991V17.0991H9.00018V16.1991H5.40018ZM1.57878 11.6991C0.731155 10.6401 0.199937 9.36312 0.0463215 8.01537C-0.107294 6.66762 0.122944 5.30389 0.710512 4.08127C1.29808 2.85865 2.21907 1.82688 3.3674 1.10482C4.51573 0.382763 5.84468 -0.000217118 7.20116 9.2343e-08C8.55763 0.000217303 9.88646 0.383623 11.0346 1.10605C12.1827 1.82848 13.1033 2.86054 13.6905 4.08335C14.2777 5.30615 14.5075 6.66996 14.3534 8.01766C14.1994 9.36536 13.6678 10.6421 12.8198 11.7009C12.2618 12.3957 10.8002 13.4991 10.8002 14.8491V17.0991C10.8002 17.5765 10.6105 18.0343 10.273 18.3719C9.93541 18.7095 9.47757 18.8991 9.00018 18.8991H5.40018C4.92279 18.8991 4.46496 18.7095 4.12739 18.3719C3.78983 18.0343 3.60018 17.5765 3.60018 17.0991V14.8491C3.60018 13.4991 2.13768 12.3957 1.57878 11.6991Z",fill:"#525866"},null,-1)])])):"box"===a.iconKey?(Hd(),jd("svg",PH,[...t[12]||(t[12]=[eu("path",{d:"M7.125 0L14.25 4.125V12.375L7.125 16.5L0 12.375V4.125L7.125 0ZM2.24541 4.55828L7.12508 7.3833L12.0047 4.55831L7.125 1.73325L2.24541 4.55828ZM1.5 5.85997V11.5102L6.37508 14.3326V8.68237L1.5 5.85997ZM7.87508 14.3325L12.75 11.5102V5.86003L7.87508 8.68237V14.3325Z",fill:"#525866"},null,-1)])])):"user_avatar"===a.iconKey?(Hd(),jd("svg",FH,[...t[13]||(t[13]=[eu("path",{d:"M0 18.9C0 16.9904 0.758569 15.1591 2.10883 13.8088C3.45909 12.4586 5.29044 11.7 7.2 11.7C9.10956 11.7 10.9409 12.4586 12.2912 13.8088C13.6414 15.1591 14.4 16.9904 14.4 18.9H12.6C12.6 17.4678 12.0311 16.0943 11.0184 15.0816C10.0057 14.0689 8.63217 13.5 7.2 13.5C5.76783 13.5 4.39432 14.0689 3.38162 15.0816C2.36893 16.0943 1.8 17.4678 1.8 18.9H0ZM7.2 10.8C4.2165 10.8 1.8 8.3835 1.8 5.4C1.8 2.4165 4.2165 0 7.2 0C10.1835 0 12.6 2.4165 12.6 5.4C12.6 8.3835 10.1835 10.8 7.2 10.8ZM7.2 9C9.189 9 10.8 7.389 10.8 5.4C10.8 3.411 9.189 1.8 7.2 1.8C5.211 1.8 3.6 3.411 3.6 5.4C3.6 7.389 5.211 9 7.2 9Z",fill:"#525866"},null,-1)])])):"search"===a.iconKey?(Hd(),jd("svg",$H,[...t[14]||(t[14]=[eu("path",{d:"M14.5232 13.4627L17.7355 16.6742L16.6742 17.7355L13.4627 14.5232C12.2678 15.4812 10.7815 16.0022 9.25 16C5.524 16 2.5 12.976 2.5 9.25C2.5 5.524 5.524 2.5 9.25 2.5C12.976 2.5 16 5.524 16 9.25C16.0022 10.7815 15.4812 12.2678 14.5232 13.4627ZM13.0187 12.9062C13.9706 11.9274 14.5021 10.6153 14.5 9.25C14.5 6.349 12.1502 4 9.25 4C6.349 4 4 6.349 4 9.25C4 12.1502 6.349 14.5 9.25 14.5C10.6153 14.5021 11.9274 13.9706 12.9062 13.0187L13.0187 12.9062V12.9062Z",fill:"#525866"},null,-1)])])):"close"===a.iconKey?(Hd(),jd("svg",BH,[...t[15]||(t[15]=[eu("path",{d:"M4.773 3.7125L8.4855 0L9.546 1.0605L5.8335 4.773L9.546 8.4855L8.4855 9.546L4.773 5.8335L1.0605 9.546L0 8.4855L3.7125 4.773L0 1.0605L1.0605 0L4.773 3.7125Z",fill:"#525866"},null,-1)])])):"total_replies"===a.iconKey?(Hd(),jd("svg",{key:16,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[16]||(t[16]=[eu("path",{d:"M9.25 16L1.75 10L9.25 4V7.75C13.3922 7.75 16.75 11.1078 16.75 15.25C16.75 15.4548 16.7425 15.6572 16.726 15.8575C15.6288 13.777 13.4785 12.3393 10.9847 12.2538L10.75 12.25H9.25V16ZM7.75 10.75H10.7755L11.0357 10.7552C11.9995 10.7875 12.9287 10.9877 13.7927 11.3297C12.6925 10.0562 11.065 9.25 9.25 9.25H7.75V7.12075L4.1515 10L7.75 12.8792V10.75Z",fill:"#525866"},null,-1)])],8,VH)):"reply"===a.iconKey?(Hd(),jd("svg",UH,[...t[17]||(t[17]=[eu("path",{d:"M3.34125 12L0 14.625V0.75C0 0.551088 0.0790176 0.360322 0.21967 0.21967C0.360322 0.0790176 0.551088 0 0.75 0H14.25C14.4489 0 14.6397 0.0790176 14.7803 0.21967C14.921 0.360322 15 0.551088 15 0.75V11.25C15 11.4489 14.921 11.6397 14.7803 11.7803C14.6397 11.921 14.4489 12 14.25 12H3.34125ZM2.82225 10.5H13.5V1.5H1.5V11.5387L2.82225 10.5ZM6.75 5.25H8.25V6.75H6.75V5.25ZM3.75 5.25H5.25V6.75H3.75V5.25ZM9.75 5.25H11.25V6.75H9.75V5.25Z",fill:"#99A0AE"},null,-1)])])):"agent"===a.iconKey?(Hd(),jd("svg",{key:18,xmlns:"http://www.w3.org/2000/svg",width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none"},[...t[18]||(t[18]=[eu("path",{d:"M15.9535 6.99919H16.75C17.1478 6.99919 17.5294 7.15723 17.8107 7.43853C18.092 7.71984 18.25 8.10137 18.25 8.49919V11.4992C18.25 11.897 18.092 12.2785 17.8107 12.5599C17.5294 12.8412 17.1478 12.9992 16.75 12.9992H15.9535C15.7707 14.4492 15.0649 15.7826 13.9688 16.7492C12.8727 17.7158 11.4615 18.2492 10 18.2492V16.7492C11.1935 16.7492 12.3381 16.2751 13.182 15.4312C14.0259 14.5873 14.5 13.4427 14.5 12.2492V7.74919C14.5 6.55572 14.0259 5.41113 13.182 4.56721C12.3381 3.7233 11.1935 3.24919 10 3.24919C8.80653 3.24919 7.66193 3.7233 6.81802 4.56721C5.97411 5.41113 5.5 6.55572 5.5 7.74919V12.9992H3.25C2.85218 12.9992 2.47064 12.8412 2.18934 12.5599C1.90804 12.2785 1.75 11.897 1.75 11.4992V8.49919C1.75 8.10137 1.90804 7.71984 2.18934 7.43853C2.47064 7.15723 2.85218 6.99919 3.25 6.99919H4.0465C4.22952 5.54936 4.93531 4.21615 6.03143 3.2497C7.12755 2.28325 8.53866 1.75 10 1.75C11.4613 1.75 12.8724 2.28325 13.9686 3.2497C15.0647 4.21615 15.7705 5.54936 15.9535 6.99919ZM3.25 8.49919V11.4992H4V8.49919H3.25ZM16 8.49919V11.4992H16.75V8.49919H16ZM6.82 12.8379L7.615 11.5659C8.32981 12.0137 9.15652 12.2506 10 12.2492C10.8435 12.2506 11.6702 12.0137 12.385 11.5659L13.18 12.8379C12.2269 13.4351 11.1247 13.7509 10 13.7492C8.87534 13.7509 7.77306 13.4351 6.82 12.8379Z",fill:"#99A0AE"},null,-1)])],8,HH)):"workflow"===a.iconKey?(Hd(),jd("svg",zH,[...t[19]||(t[19]=[eu("path",{d:"M10.75 7.75H16.75L9.25 19V12.25H4L10.75 1V7.75ZM9.25 9.25V6.415L6.649 10.75H10.75V14.0455L13.9473 9.25H9.25Z",fill:"#99A0AE"},null,-1)])])):"tags"===a.iconKey?(Hd(),jd("svg",YH,[...t[20]||(t[20]=[eu("path",{d:"M10.6412 5.17807L10.0045 5.81437L9.6863 5.49622L7.7774 7.40513L7.45925 8.99632L6.8225 9.63262L4.9136 7.72327L2.6861 9.95077L2.0498 9.31447L4.2773 7.08697L2.36795 5.17807L3.00425 4.54132L4.5959 4.22318L6.5048 2.31428L6.18665 1.99613L6.82295 1.35938L10.6412 5.17807Z",fill:"#99A0AE"},null,-1)])])):"clock"===a.iconKey?(Hd(),jd("svg",{key:21,xmlns:"http://www.w3.org/2000/svg",width:a.width,height:a.height,viewBox:"0 0 16 16",fill:"none"},[...t[21]||(t[21]=[eu("path",{d:"M8 14C4.6862 14 2 11.3138 2 8C2 4.6862 4.6862 2 8 2C11.3138 2 14 4.6862 14 8C14 11.3138 11.3138 14 8 14ZM8 12.8C9.27304 12.8 10.4939 12.2943 11.3941 11.3941C12.2943 10.4939 12.8 9.27304 12.8 8C12.8 6.72696 12.2943 5.50606 11.3941 4.60589C10.4939 3.70571 9.27304 3.2 8 3.2C6.72696 3.2 5.50606 3.70571 4.60589 4.60589C3.70571 5.50606 3.2 6.72696 3.2 8C3.2 9.27304 3.70571 10.4939 4.60589 11.3941C5.50606 12.2943 6.72696 12.8 8 12.8ZM8.6 8H11V9.2H7.4V5H8.6V8Z",fill:"#99A0AE"},null,-1)])],8,GH)):"closeTicket"===a.iconKey?(Hd(),jd("svg",WH,[...t[22]||(t[22]=[eu("path",{d:"M9.7015 11.3201L10.7605 12.3791L17.11 6.02962L18.1705 7.09012L10.7605 14.5001L5.9875 9.72712L7.048 8.66663L8.64175 10.2604L9.7015 11.3194V11.3201ZM9.703 9.19913L13.417 5.48438L14.4745 6.54187L10.7605 10.2566L9.703 9.19913ZM7.58275 13.4404L6.523 14.5001L1.75 9.72712L2.8105 8.66663L3.87025 9.72638L3.8695 9.72712L7.58275 13.4404Z",fill:"#99A0AE"},null,-1)])])):"delete"===a.iconKey?(Hd(),jd("svg",jH,[...t[23]||(t[23]=[eu("path",{d:"M13.75 5.5H17.5V7H16V16.75C16 16.9489 15.921 17.1397 15.7803 17.2803C15.6397 17.421 15.4489 17.5 15.25 17.5H4.75C4.55109 17.5 4.36032 17.421 4.21967 17.2803C4.07902 17.1397 4 16.9489 4 16.75V7H2.5V5.5H6.25V3.25C6.25 3.05109 6.32902 2.86032 6.46967 2.71967C6.61032 2.57902 6.80109 2.5 7 2.5H13C13.1989 2.5 13.3897 2.57902 13.5303 2.71967C13.671 2.86032 13.75 3.05109 13.75 3.25V5.5ZM14.5 7H5.5V16H14.5V7ZM7.75 9.25H9.25V13.75H7.75V9.25ZM10.75 9.25H12.25V13.75H10.75V9.25ZM7.75 4V5.5H12.25V4H7.75Z",fill:"#99A0AE"},null,-1)])])):"ticketCount"===a.iconKey?(Hd(),jd("svg",qH,[...t[24]||(t[24]=[eu("path",{d:"M2.673 9.6L0 11.7V0.6C0 0.44087 0.0632141 0.288258 0.175736 0.175736C0.288258 0.0632141 0.44087 0 0.6 0H11.4C11.5591 0 11.7117 0.0632141 11.8243 0.175736C11.9368 0.288258 12 0.44087 12 0.6V9C12 9.15913 11.9368 9.31174 11.8243 9.42426C11.7117 9.53679 11.5591 9.6 11.4 9.6H2.673ZM2.2578 8.4H10.8V1.2H1.2V9.231L2.2578 8.4ZM3.6 4.2H8.4V5.4H3.6V4.2Z",fill:"#99A0AE"},null,-1)])])):"productIcon"===a.iconKey?(Hd(),jd("svg",KH,[...t[25]||(t[25]=[eu("path",{d:"M2.4 4.2V3C2.4 2.20435 2.71607 1.44129 3.27868 0.87868C3.84129 0.31607 4.60435 0 5.4 0C6.19565 0 6.95871 0.31607 7.52132 0.87868C8.08393 1.44129 8.4 2.20435 8.4 3V4.2H10.2C10.3591 4.2 10.5117 4.26321 10.6243 4.37574C10.7368 4.48826 10.8 4.64087 10.8 4.8V12C10.8 12.1591 10.7368 12.3117 10.6243 12.4243C10.5117 12.5368 10.3591 12.6 10.2 12.6H0.6C0.44087 12.6 0.288258 12.5368 0.175736 12.4243C0.0632141 12.3117 0 12.1591 0 12V4.8C0 4.64087 0.0632141 4.48826 0.175736 4.37574C0.288258 4.26321 0.44087 4.2 0.6 4.2H2.4ZM2.4 5.4H1.2V11.4H9.6V5.4H8.4V6.6H7.2V5.4H3.6V6.6H2.4V5.4ZM3.6 4.2H7.2V3C7.2 2.52261 7.01036 2.06477 6.67279 1.72721C6.33523 1.38964 5.87739 1.2 5.4 1.2C4.92261 1.2 4.46477 1.38964 4.12721 1.72721C3.78964 2.06477 3.6 2.52261 3.6 3V4.2Z",fill:"#99A0AE"},null,-1)])])):"businessBoxIcon"===a.iconKey?(Hd(),jd("svg",XH,[...t[26]||(t[26]=[eu("path",{d:"M12 9.6H13.2V10.8H0V9.6H1.2V0.6C1.2 0.44087 1.26321 0.288258 1.37574 0.175736C1.48826 0.0632141 1.64087 0 1.8 0H7.8C7.95913 0 8.11174 0.0632141 8.22426 0.175736C8.33679 0.288258 8.4 0.44087 8.4 0.6V9.6H10.8V4.8H9.6V3.6H11.4C11.5591 3.6 11.7117 3.66321 11.8243 3.77574C11.9368 3.88826 12 4.04087 12 4.2V9.6ZM2.4 1.2V9.6H7.2V1.2H2.4ZM3.6 4.8H6V6H3.6V4.8ZM3.6 2.4H6V3.6H3.6V2.4Z",fill:"#99A0AE"},null,-1)])])):"like"===a.iconKey?(Hd(),jd("svg",{key:27,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[27]||(t[27]=[eu("path",{d:"M11.95 6.99981H16.75C17.1478 6.99981 17.5294 7.15784 17.8107 7.43915C18.092 7.72045 18.25 8.10198 18.25 8.4998V10.0778C18.2502 10.2738 18.212 10.468 18.1375 10.6493L15.8162 16.2856C15.7596 16.423 15.6634 16.5405 15.5399 16.6231C15.4164 16.7058 15.2711 16.7499 15.1225 16.7498H2.5C2.30109 16.7498 2.11032 16.6708 1.96967 16.5301C1.82902 16.3895 1.75 16.1987 1.75 15.9998V8.4998C1.75 8.30089 1.82902 8.11013 1.96967 7.96948C2.11032 7.82882 2.30109 7.7498 2.5 7.7498H5.1115C5.23157 7.74984 5.3499 7.72104 5.45653 7.66583C5.56315 7.61062 5.65497 7.53062 5.72425 7.43256L9.814 1.63731C9.8657 1.56404 9.94194 1.51173 10.0289 1.48985C10.1159 1.46797 10.2078 1.47798 10.288 1.51806L11.6485 2.19831C12.0314 2.38968 12.3372 2.70629 12.5153 3.09554C12.6933 3.48479 12.7329 3.92325 12.6273 4.33806L11.95 6.99981ZM6.25 8.94081V15.2498H14.62L16.75 10.0778V8.4998H11.95C11.7215 8.49977 11.4961 8.44756 11.2909 8.34715C11.0857 8.24674 10.9062 8.10078 10.766 7.92042C10.6257 7.74006 10.5286 7.53005 10.4819 7.30642C10.4352 7.0828 10.4402 6.85146 10.4965 6.63006L11.1737 3.96906C11.1949 3.88605 11.1871 3.79829 11.1515 3.72038C11.1159 3.64246 11.0546 3.57909 10.978 3.54081L10.4823 3.29331L6.94975 8.2973C6.76225 8.5628 6.52225 8.78031 6.25 8.94081ZM4.75 9.2498H3.25V15.2498H4.75V9.2498Z",fill:"#525866"},null,-1)])],8,QH)):"dislike"===a.iconKey?(Hd(),jd("svg",{key:28,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[28]||(t[28]=[eu("path",{d:"M11.95 13L16.75 13C17.1478 13 17.5294 12.842 17.8107 12.5607C18.092 12.2794 18.25 11.8978 18.25 11.5L18.25 9.922C18.2502 9.72598 18.212 9.53182 18.1375 9.3505L15.8155 3.715C15.759 3.57756 15.663 3.46 15.5396 3.37721C15.4163 3.29442 15.2711 3.25015 15.1225 3.25L2.5 3.25C2.30109 3.25 2.11032 3.32902 1.96967 3.46967C1.82902 3.61032 1.75 3.80109 1.75 4L1.75 11.5C1.75 11.6989 1.82901 11.8897 1.96967 12.0303C2.11032 12.171 2.30109 12.25 2.5 12.25L5.1115 12.25C5.23157 12.25 5.34989 12.2788 5.45652 12.334C5.56315 12.3892 5.65497 12.4692 5.72425 12.5672L9.814 18.3617C9.8657 18.435 9.94194 18.4873 10.0289 18.5092C10.1159 18.5311 10.2078 18.5211 10.288 18.481L11.6485 17.8C12.0314 17.6086 12.3372 17.292 12.5153 16.9028C12.6933 16.5135 12.7329 16.0751 12.6272 15.6603L11.95 13ZM6.25 11.059L6.25 4.75L14.62 4.75L16.75 9.922L16.75 11.5L11.95 11.5C11.7215 11.5 11.4961 11.5522 11.2909 11.6527C11.0857 11.7531 10.9062 11.899 10.766 12.0794C10.6257 12.2597 10.5286 12.4698 10.4819 12.6934C10.4352 12.917 10.4402 13.1483 10.4965 13.3697L11.1737 16.0307C11.1949 16.1138 11.1871 16.2015 11.1515 16.2794C11.1159 16.3573 11.0546 16.4207 10.978 16.459L10.4822 16.7065L6.94975 11.7025C6.76225 11.437 6.52225 11.2195 6.25 11.059ZM4.75 10.75L3.25 10.75L3.25 4.75L4.75 4.75L4.75 10.75Z",fill:"#525866"},null,-1)])],8,ZH)):"max_waiting"===a.iconKey?(Hd(),jd("svg",{key:29,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[29]||(t[29]=[eu("path",{d:"M6.25 5H5V3.75H15V5H13.75V6.25C13.75 7.25964 13.2399 8.07168 12.5976 8.73542C12.1582 9.18937 11.6237 9.6075 11.0818 10C11.6237 10.3925 12.1582 10.8106 12.5976 11.2646C13.2399 11.9283 13.75 12.7404 13.75 13.75V15H15V16.25H5V15H6.25V13.75C6.25 12.7404 6.7601 11.9283 7.40244 11.2646C7.84176 10.8106 8.37626 10.3925 8.91819 10C8.37626 9.6075 7.84176 9.18937 7.40244 8.73542C6.7601 8.07168 6.25 7.25964 6.25 6.25V5ZM7.5 5V6.25C7.5 6.80286 7.77115 7.31895 8.30069 7.86614C8.755 8.33562 9.34675 8.77488 10 9.23631C10.6533 8.77488 11.245 8.33562 11.6993 7.86614C12.2289 7.31895 12.5 6.80286 12.5 6.25V5H7.5ZM10 10.7637C9.34675 11.2251 8.755 11.6644 8.30069 12.1339C7.77115 12.6811 7.5 13.1971 7.5 13.75V15H12.5V13.75C12.5 13.1971 12.2289 12.6811 11.6993 12.1339C11.245 11.6644 10.6533 11.2251 10 10.7637Z",fill:"#525866"},null,-1)])],8,JH)):"average_waiting"===a.iconKey?(Hd(),jd("svg",{key:30,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[30]||(t[30]=[eu("path",{d:"M10 2.5C14.1422 2.5 17.5 5.85775 17.5 10C17.5 14.1422 14.1422 17.5 10 17.5C5.85775 17.5 2.5 14.1422 2.5 10H4C4 13.3135 6.6865 16 10 16C13.3135 16 16 13.3135 16 10C16 6.6865 13.3135 4 10 4C7.9375 4 6.118 5.04025 5.03875 6.625H7V8.125H2.5V3.625H4V5.5C5.368 3.6775 7.54675 2.5 10 2.5ZM10.75 6.25V9.68875L13.1823 12.121L12.121 13.1823L9.25 10.3098V6.25H10.75Z",fill:"#525866"},null,-1)])],8,ez)):"waiting_tickets"===a.iconKey?(Hd(),jd("svg",{key:31,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[31]||(t[31]=[eu("path",{d:"M10 2.5C14.14 2.5 17.5 5.86 17.5 10C17.5 14.14 14.14 17.5 10 17.5C5.86 17.5 2.5 14.14 2.5 10C2.5 5.86 5.86 2.5 10 2.5ZM10 16C13.315 16 16 13.315 16 10C16 6.685 13.315 4 10 4C6.685 4 4 6.685 4 10C4 13.315 6.685 16 10 16ZM12.652 6.2875L13.7125 7.348L10 11.0605L8.9395 10L12.652 6.2875Z",fill:"#525866"},null,-1)])],8,tz)):"Tickets"===a.iconKey?(Hd(),jd("svg",{key:32,width:a.width,height:a.height,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:a.fill},[eu("path",{d:"M16.75 3.25C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V8.125C17.0027 8.125 16.5258 8.32254 16.1742 8.67418C15.8225 9.02581 15.625 9.50272 15.625 10C15.625 10.4973 15.8225 10.9742 16.1742 11.3258C16.5258 11.6775 17.0027 11.875 17.5 11.875V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V11.875C2.99728 11.875 3.47419 11.6775 3.82583 11.3258C4.17746 10.9742 4.375 10.4973 4.375 10C4.375 9.50272 4.17746 9.02581 3.82583 8.67418C3.47419 8.32254 2.99728 8.125 2.5 8.125V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H16.75ZM16 4.75H4V6.976L4.117 7.03675C4.62574 7.31429 5.05445 7.71814 5.36183 8.20943C5.66921 8.70071 5.8449 9.26287 5.872 9.84175L5.875 10C5.87509 10.6062 5.71189 11.2012 5.40254 11.7225C5.09319 12.2438 4.64912 12.6721 4.117 12.9625L4 13.024V15.25H16V13.0233L15.883 12.9633C15.3743 12.6857 14.9456 12.2819 14.6382 11.7906C14.3308 11.2993 14.1551 10.7371 14.128 10.1583L14.125 10C14.125 8.722 14.8352 7.60975 15.883 7.0375L16 6.97525V4.75Z",fill:a.fill},null,8,iz)],8,az)):"User"===a.iconKey?(Hd(),jd("svg",{key:33,width:a.width,height:a.height,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:a.fill},[eu("path",{d:"M10.3105 4.75H16.75C16.9489 4.75 17.1397 4.82902 17.2803 4.96967C17.421 5.11032 17.5 5.30109 17.5 5.5V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H8.8105L10.3105 4.75ZM4 4.75V15.25H16V6.25H9.6895L8.1895 4.75H4ZM7 14.5C7 13.7044 7.31607 12.9413 7.87868 12.3787C8.44129 11.8161 9.20435 11.5 10 11.5C10.7956 11.5 11.5587 11.8161 12.1213 12.3787C12.6839 12.9413 13 13.7044 13 14.5H7ZM10 10.75C9.50272 10.75 9.02581 10.5525 8.67417 10.2008C8.32254 9.8492 8.125 9.37228 8.125 8.875C8.125 8.37772 8.32254 7.90081 8.67417 7.54918C9.02581 7.19754 9.50272 7 10 7C10.4973 7 10.9742 7.19754 11.3258 7.54918C11.6775 7.90081 11.875 8.37772 11.875 8.875C11.875 9.37228 11.6775 9.8492 11.3258 10.2008C10.9742 10.5525 10.4973 10.75 10 10.75Z",fill:a.fill},null,8,nz)],8,sz)):"View"===a.iconKey?(Hd(),jd("svg",{key:34,width:a.width,height:a.height,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:a.fill},[eu("path",{d:"M11.5 11.689V13.2565C10.8212 13.0165 10.0947 12.9429 9.38155 13.0418C8.6684 13.1408 7.9894 13.4094 7.40157 13.8252C6.81375 14.2409 6.33426 14.7916 6.00337 15.4311C5.67249 16.0705 5.49986 16.78 5.5 17.5L4 17.4993C3.99977 16.5834 4.20919 15.6797 4.61222 14.8573C5.01526 14.0349 5.6012 13.3157 6.32516 12.7548C7.04912 12.1939 7.89188 11.8061 8.78887 11.6212C9.68585 11.4364 10.6132 11.4593 11.5 11.6883V11.689ZM10 10.75C7.51375 10.75 5.5 8.73625 5.5 6.25C5.5 3.76375 7.51375 1.75 10 1.75C12.4862 1.75 14.5 3.76375 14.5 6.25C14.5 8.73625 12.4862 10.75 10 10.75ZM10 9.25C11.6575 9.25 13 7.9075 13 6.25C13 4.5925 11.6575 3.25 10 3.25C8.3425 3.25 7 4.5925 7 6.25C7 7.9075 8.3425 9.25 10 9.25ZM15.25 14.1895L16.8407 12.598L17.902 13.6593L16.3105 15.25L17.902 16.8408L16.8407 17.902L15.25 16.3105L13.6593 17.902L12.598 16.8408L14.1895 15.25L12.598 13.6593L13.6593 12.598L15.25 14.1895Z",fill:a.fill},null,8,rz)],8,oz)):"CollectionTag"===a.iconKey?(Hd(),jd("svg",{key:35,width:a.width,height:a.height,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:a.fill},[eu("path",{d:"M4.75 2.5H15.25C15.4489 2.5 15.6397 2.57902 15.7803 2.71967C15.921 2.86032 16 3.05109 16 3.25V17.6073C16.0001 17.6743 15.9822 17.7402 15.9482 17.7979C15.9142 17.8557 15.8653 17.9033 15.8066 17.9358C15.7479 17.9683 15.6816 17.9844 15.6146 17.9826C15.5476 17.9807 15.4823 17.9609 15.4255 17.9252L10 14.5225L4.5745 17.9245C4.51778 17.9601 4.45254 17.9799 4.38558 17.9818C4.31861 17.9837 4.25236 17.9676 4.19372 17.9352C4.13508 17.9029 4.08618 17.8554 4.05211 17.7977C4.01804 17.74 4.00005 17.6742 4 17.6073V3.25C4 3.05109 4.07902 2.86032 4.21967 2.71967C4.36032 2.57902 4.55109 2.5 4.75 2.5ZM14.5 4H5.5V15.574L10 12.7533L14.5 15.574V4Z",fill:a.fill},null,8,cz)],8,lz)):"warning"===a.iconKey?(Hd(),jd("svg",{key:36,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[32]||(t[32]=[eu("path",{d:"M10 2L2 18H18L10 2Z",fill:"#f97316"},null,-1),eu("path",{d:"M10 7V11M10 13H10.01",stroke:"white","stroke-width":"1.5","stroke-linecap":"round"},null,-1)])],8,dz)):"clock"===a.iconKey?(Hd(),jd("svg",{key:37,width:a.width,height:a.height,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[33]||(t[33]=[eu("path",{d:"M8 14C4.6862 14 2 11.3138 2 8C2 4.6862 4.6862 2 8 2C11.3138 2 14 4.6862 14 8C14 11.3138 11.3138 14 8 14ZM8 12.8C9.27304 12.8 10.4939 12.2943 11.3941 11.3941C12.2943 10.4939 12.8 9.27304 12.8 8C12.8 6.72696 12.2943 5.50606 11.3941 4.60589C10.4939 3.70571 9.27304 3.2 8 3.2C6.72696 3.2 5.50606 3.70571 4.60589 4.60589C3.70571 5.50606 3.2 6.72696 3.2 8C3.2 9.27304 3.70571 10.4939 4.60589 11.3941C5.50606 12.2943 6.72696 12.8 8 12.8ZM8.6 8H11V9.2H7.4V5H8.6V8Z",fill:"#99A0AE"},null,-1)])],8,uz)):"businessBoxIcon"===a.iconKey?(Hd(),jd("svg",{key:38,width:a.width,height:a.height,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[34]||(t[34]=[eu("path",{d:"M13.3999 12.1996H14.5999V13.3996H1.3999V12.1996H2.5999V3.19961C2.5999 3.04048 2.66312 2.88787 2.77564 2.77535C2.88816 2.66961 3.1999 2.59961H9.1999C9.35903 2.59961 9.51164 2.66282 9.62417 2.77535C9.73669 2.88787 9.7999 3.04048 9.7999 3.19961V12.1996H12.1999V7.39961H10.9999V6.19961H12.7999C12.959 6.19961 13.1116 6.26282 13.2242 6.37535C13.3367 6.48787 13.3999 6.64048 13.3999 6.79961V12.1996ZM3.7999 3.79961V12.1996H8.5999V3.79961H3.7999ZM4.9999 7.39961H7.3999V8.59961H4.9999V7.39961ZM4.9999 4.99961H7.3999V6.19961H4.9999V4.99961Z",fill:"#99A0AE"},null,-1)])],8,pz)):"calendar"===a.iconKey?(Hd(),jd("svg",{key:39,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[35]||(t[35]=[eu("path",{d:"M13.75 3.25H16.75C16.9489 3.25 17.1397 3.32902 17.2803 3.46967C17.421 3.61032 17.5 3.80109 17.5 4V16C17.5 16.1989 17.421 16.3897 17.2803 16.5303C17.1397 16.671 16.9489 16.75 16.75 16.75H3.25C3.05109 16.75 2.86032 16.671 2.71967 16.5303C2.57902 16.3897 2.5 16.1989 2.5 16V4C2.5 3.80109 2.57902 3.61032 2.71967 3.46967C2.86032 3.32902 3.05109 3.25 3.25 3.25H6.25V1.75H7.75V3.25H12.25V1.75H13.75V3.25ZM12.25 4.75H7.75V6.25H6.25V4.75H4V7.75H16V4.75H13.75V6.25H12.25V4.75ZM16 9.25H4V15.25H16V9.25Z",fill:"#525866"},null,-1)])],8,hz)):"call_meeting"===a.iconKey?(Hd(),jd("svg",{key:40,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[36]||(t[36]=[eu("path",{d:"M16.5 12.3175L12.1169 17L9.60483 14.5389L10.5049 13.6573L12.0774 15.1967L15.5611 11.4747L16.5 12.3175ZM14.9633 9.23725H4.77321V15.4745H9.23167V16.7222H3.5V4.24701H6.36584V3H7.63904V4.24701H12.0975V3H13.3707V4.24701H16.2366V10.7964H14.9633V9.23725ZM12.0975 5.49475H7.63904V6.74249H6.36584V5.49475H4.77321V7.98951H14.9633V5.49475H13.3707V6.74249H12.0975V5.49475Z",fill:"#525866"},null,-1)])],8,gz)):"refresh"===a.iconKey?(Hd(),jd("svg",{key:41,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[37]||(t[37]=[eu("path",{d:"M5.09725 4.32476C6.45817 3.1455 8.19924 2.4975 10 2.50001C14.1423 2.50001 17.5 5.85776 17.5 10C17.5 11.602 16.9975 13.087 16.1425 14.305L13.75 10H16C16.0001 8.82373 15.6544 7.67336 15.006 6.69195C14.3576 5.71054 13.4349 4.94138 12.3529 4.4801C11.2708 4.01882 10.077 3.88578 8.91997 4.09752C7.7629 4.30926 6.69359 4.85643 5.845 5.67101L5.09725 4.32476ZM14.9028 15.6753C13.5418 16.8545 11.8008 17.5025 10 17.5C5.85775 17.5 2.5 14.1423 2.5 10C2.5 8.39801 3.0025 6.91301 3.8575 5.69501L6.25 10H4C3.9999 11.1763 4.34556 12.3267 4.994 13.3081C5.64244 14.2895 6.56505 15.0586 7.64712 15.5199C8.72918 15.9812 9.92296 16.1142 11.08 15.9025C12.2371 15.6908 13.3064 15.1436 14.155 14.329L14.9028 15.6753Z",fill:"#525866"},null,-1)])],8,mz)):"filtersAgentIcon"===a.iconKey?(Hd(),jd("svg",{key:42,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[38]||(t[38]=[eu("path",{d:"M15.9535 6.99919H16.75C17.1478 6.99919 17.5294 7.15723 17.8107 7.43853C18.092 7.71984 18.25 8.10137 18.25 8.49919V11.4992C18.25 11.897 18.092 12.2785 17.8107 12.5599C17.5294 12.8412 17.1478 12.9992 16.75 12.9992H15.9535C15.7707 14.4492 15.0649 15.7826 13.9688 16.7492C12.8727 17.7158 11.4615 18.2492 10 18.2492V16.7492C11.1935 16.7492 12.3381 16.2751 13.182 15.4312C14.0259 14.5873 14.5 13.4427 14.5 12.2492V7.74919C14.5 6.55572 14.0259 5.41113 13.182 4.56721C12.3381 3.7233 11.1935 3.24919 10 3.24919C8.80653 3.24919 7.66193 3.7233 6.81802 4.56721C5.97411 5.41113 5.5 6.55572 5.5 7.74919V12.9992H3.25C2.85218 12.9992 2.47064 12.8412 2.18934 12.5599C1.90804 12.2785 1.75 11.897 1.75 11.4992V8.49919C1.75 8.10137 1.90804 7.71984 2.18934 7.43853C2.47064 7.15723 2.85218 6.99919 3.25 6.99919H4.0465C4.22952 5.54936 4.93531 4.21615 6.03143 3.2497C7.12755 2.28325 8.53866 1.75 10 1.75C11.4613 1.75 12.8724 2.28325 13.9686 3.2497C15.0647 4.21615 15.7705 5.54936 15.9535 6.99919ZM3.25 8.49919V11.4992H4V8.49919H3.25ZM16 8.49919V11.4992H16.75V8.49919H16ZM6.82 12.8379L7.615 11.5659C8.32981 12.0137 9.15652 12.2506 10 12.2492C10.8435 12.2506 11.6702 12.0137 12.385 11.5659L13.18 12.8379C12.2269 13.4351 11.1247 13.7509 10 13.7492C8.87534 13.7509 7.77306 13.4351 6.82 12.8379Z",fill:"#525866"},null,-1)])],8,fz)):"agentGroupIcon"===a.iconKey?(Hd(),jd("svg",_z,[...t[39]||(t[39]=[eu("path",{d:"M10 9.25C10.9946 9.25 11.9484 9.64509 12.6517 10.3483C13.3549 11.0516 13.75 12.0054 13.75 13V17.5H12.25V13C12.25 12.4261 12.0308 11.8739 11.637 11.4563C11.2433 11.0387 10.7049 10.7874 10.132 10.7538L10 10.75C9.42609 10.75 8.87386 10.9692 8.4563 11.363C8.03874 11.7567 7.78742 12.2951 7.75375 12.868L7.75 13V17.5H6.25V13C6.25 12.0054 6.64509 11.0516 7.34835 10.3483C8.05161 9.64509 9.00544 9.25 10 9.25ZM5.125 11.5C5.33425 11.5 5.5375 11.5247 5.7325 11.5705C5.60427 11.9523 5.52833 12.3496 5.50675 12.7517L5.5 13V13.0645C5.41379 13.0337 5.32412 13.0135 5.233 13.0045L5.125 13C4.84534 13 4.57571 13.1042 4.36869 13.2922C4.16166 13.4802 4.0321 13.7386 4.00525 14.017L4 14.125V17.5H2.5V14.125C2.5 13.4288 2.77656 12.7611 3.26884 12.2688C3.76113 11.7766 4.42881 11.5 5.125 11.5V11.5ZM14.875 11.5C15.5712 11.5 16.2389 11.7766 16.7312 12.2688C17.2234 12.7611 17.5 13.4288 17.5 14.125V17.5H16V14.125C16 13.8453 15.8958 13.5757 15.7078 13.3687C15.5198 13.1617 15.2614 13.0321 14.983 13.0052L14.875 13C14.7438 13 14.6178 13.0225 14.5 13.0637V13C14.5 12.5005 14.419 12.0205 14.2682 11.572C14.4625 11.5247 14.6657 11.5 14.875 11.5ZM5.125 7C5.62228 7 6.09919 7.19754 6.45083 7.54917C6.80246 7.90081 7 8.37772 7 8.875C7 9.37228 6.80246 9.84919 6.45083 10.2008C6.09919 10.5525 5.62228 10.75 5.125 10.75C4.62772 10.75 4.15081 10.5525 3.79917 10.2008C3.44754 9.84919 3.25 9.37228 3.25 8.875C3.25 8.37772 3.44754 7.90081 3.79917 7.54917C4.15081 7.19754 4.62772 7 5.125 7V7ZM14.875 7C15.3723 7 15.8492 7.19754 16.2008 7.54917C16.5525 7.90081 16.75 8.37772 16.75 8.875C16.75 9.37228 16.5525 9.84919 16.2008 10.2008C15.8492 10.5525 15.3723 10.75 14.875 10.75C14.3777 10.75 13.9008 10.5525 13.5492 10.2008C13.1975 9.84919 13 9.37228 13 8.875C13 8.37772 13.1975 7.90081 13.5492 7.54917C13.9008 7.19754 14.3777 7 14.875 7V7ZM5.125 8.5C5.02554 8.5 4.93016 8.53951 4.85984 8.60983C4.78951 8.68016 4.75 8.77554 4.75 8.875C4.75 8.97446 4.78951 9.06984 4.85984 9.14017C4.93016 9.21049 5.02554 9.25 5.125 9.25C5.22446 9.25 5.31984 9.21049 5.39016 9.14017C5.46049 9.06984 5.5 8.97446 5.5 8.875C5.5 8.77554 5.46049 8.68016 5.39016 8.60983C5.31984 8.53951 5.22446 8.5 5.125 8.5ZM14.875 8.5C14.7755 8.5 14.6802 8.53951 14.6098 8.60983C14.5395 8.68016 14.5 8.77554 14.5 8.875C14.5 8.97446 14.5395 9.06984 14.6098 9.14017C14.6802 9.21049 14.7755 9.25 14.875 9.25C14.9745 9.25 15.0698 9.21049 15.1402 9.14017C15.2105 9.06984 15.25 8.97446 15.25 8.875C15.25 8.77554 15.2105 8.68016 15.1402 8.60983C15.0698 8.53951 14.9745 8.5 14.875 8.5ZM10 2.5C10.7956 2.5 11.5587 2.81607 12.1213 3.37868C12.6839 3.94129 13 4.70435 13 5.5C13 6.29565 12.6839 7.05871 12.1213 7.62132C11.5587 8.18393 10.7956 8.5 10 8.5C9.20435 8.5 8.44129 8.18393 7.87868 7.62132C7.31607 7.05871 7 6.29565 7 5.5C7 4.70435 7.31607 3.94129 7.87868 3.37868C8.44129 2.81607 9.20435 2.5 10 2.5V2.5ZM10 4C9.60218 4 9.22064 4.15804 8.93934 4.43934C8.65804 4.72064 8.5 5.10218 8.5 5.5C8.5 5.89782 8.65804 6.27936 8.93934 6.56066C9.22064 6.84196 9.60218 7 10 7C10.3978 7 10.7794 6.84196 11.0607 6.56066C11.342 6.27936 11.5 5.89782 11.5 5.5C11.5 5.10218 11.342 4.72064 11.0607 4.43934C10.7794 4.15804 10.3978 4 10 4V4Z",fill:"#525866"},null,-1)])])):"filter"===a.iconKey?(Hd(),jd("svg",{key:44,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[40]||(t[40]=[eu("path",{d:"M16.75 4V5.5H16L12.25 11.125V17.5H7.75V11.125L4 5.5H3.25V4H16.75ZM5.803 5.5L9.25 10.6705V16H10.75V10.6705L14.197 5.5H5.803Z",fill:"#525866"},null,-1)])],8,bz)):"labelSearch"===a.iconKey?(Hd(),jd("svg",{key:45,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[41]||(t[41]=[eu("path",{d:"M6.25 15.25V10.75H13.75V15.25H15.25V6.871L13.129 4.75H4.75V15.25H6.25ZM4 3.25H13.75L16.75 6.25V16C16.75 16.1989 16.671 16.3897 16.5303 16.5303C16.3897 16.671 16.1989 16.75 16 16.75H4C3.80109 16.75 3.61032 16.671 3.46967 16.5303C3.32902 16.3897 3.25 16.1989 3.25 16V4C3.25 3.80109 3.32902 3.61032 3.46967 3.46967C3.61032 3.32902 3.80109 3.25 4 3.25ZM7.75 12.25V15.25H12.25V12.25H7.75Z",fill:"#525866"},null,-1)])],8,vz)):"filtersBusinessBox"===a.iconKey?(Hd(),jd("svg",{key:46,xmlns:"http://www.w3.org/2000/svg",width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none"},[...t[42]||(t[42]=[eu("path",{d:"M3.25 3.75H16.75C16.9489 3.75 17.1397 3.82902 17.2803 3.96967C17.421 4.11032 17.5 4.30109 17.5 4.5V15.5C17.5 15.6989 17.421 15.8897 17.2803 16.0303C17.1397 16.171 16.9489 16.25 16.75 16.25H3.25C3.05109 16.25 2.86032 16.171 2.71967 16.0303C2.57902 15.8897 2.5 15.6989 2.5 15.5V4.5C2.5 4.30109 2.57902 4.11032 2.71967 3.96967C2.86032 3.82902 3.05109 3.75 3.25 3.75ZM16 6.9285L10.054 12.2535L4 6.912V14.75H16V6.9285ZM4.38325 5.25L10.0457 10.2465L15.6265 5.25H4.38325Z",fill:"#525866"},null,-1)])],8,yz)):"filtersProduct"===a.iconKey?(Hd(),jd("svg",{key:47,xmlns:"http://www.w3.org/2000/svg",width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none"},[...t[43]||(t[43]=[eu("path",{d:"M16.75 9.7345V16.75C16.75 16.9489 16.671 17.1397 16.5303 17.2803C16.3897 17.421 16.1989 17.5 16 17.5H4C3.80109 17.5 3.61033 17.421 3.46967 17.2803C3.32902 17.1397 3.25 16.9489 3.25 16.75V9.7345C2.76574 9.18697 2.49892 8.48096 2.5 7.75V3.25C2.5 3.05109 2.57902 2.86032 2.71967 2.71967C2.86033 2.57902 3.05109 2.5 3.25 2.5H16.75C16.9489 2.5 17.1397 2.57902 17.2803 2.71967C17.421 2.86032 17.5 3.05109 17.5 3.25V7.75C17.5 8.5105 17.2165 9.205 16.75 9.7345ZM15.25 10.6555C14.7136 10.7933 14.1496 10.7802 13.6202 10.6177C13.0908 10.4552 12.6167 10.1495 12.25 9.7345C11.9688 10.0541 11.6226 10.3099 11.2346 10.4851C10.8466 10.6602 10.4257 10.7505 10 10.75C9.57431 10.7505 9.15342 10.6602 8.76541 10.4851C8.37741 10.3099 8.03124 10.0541 7.75 9.7345C7.38424 10.1507 6.9101 10.4572 6.38042 10.6198C5.85073 10.7824 5.2863 10.7948 4.75 10.6555V16H15.25V10.6555V10.6555ZM11.5 7.75C11.5 7.55109 11.579 7.36032 11.7197 7.21967C11.8603 7.07902 12.0511 7 12.25 7C12.4489 7 12.6397 7.07902 12.7803 7.21967C12.921 7.36032 13 7.55109 13 7.75C13 8.14782 13.158 8.52936 13.4393 8.81066C13.7206 9.09196 14.1022 9.25 14.5 9.25C14.8978 9.25 15.2794 9.09196 15.5607 8.81066C15.842 8.52936 16 8.14782 16 7.75V4H4V7.75C4 8.14782 4.15804 8.52936 4.43934 8.81066C4.72065 9.09196 5.10218 9.25 5.5 9.25C5.89783 9.25 6.27936 9.09196 6.56066 8.81066C6.84197 8.52936 7 8.14782 7 7.75C7 7.55109 7.07902 7.36032 7.21967 7.21967C7.36033 7.07902 7.55109 7 7.75 7C7.94892 7 8.13968 7.07902 8.28033 7.21967C8.42099 7.36032 8.5 7.55109 8.5 7.75C8.5 8.14782 8.65804 8.52936 8.93934 8.81066C9.22065 9.09196 9.60218 9.25 10 9.25C10.3978 9.25 10.7794 9.09196 11.0607 8.81066C11.342 8.52936 11.5 8.14782 11.5 7.75Z",fill:"#525866"},null,-1)])],8,Sz)):"filtersAdminPriority"===a.iconKey?(Hd(),jd("svg",{key:48,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[44]||(t[44]=[eu("path",{d:"M10 11.5V13C8.80653 13 7.66193 13.4741 6.81802 14.318C5.97411 15.1619 5.5 16.3065 5.5 17.5H4C4 15.9087 4.63214 14.3826 5.75736 13.2574C6.88258 12.1321 8.4087 11.5 10 11.5ZM10 10.75C7.51375 10.75 5.5 8.73625 5.5 6.25C5.5 3.76375 7.51375 1.75 10 1.75C12.4862 1.75 14.5 3.76375 14.5 6.25C14.5 8.73625 12.4862 10.75 10 10.75ZM10 9.25C11.6575 9.25 13 7.9075 13 6.25C13 4.5925 11.6575 3.25 10 3.25C8.3425 3.25 7 4.5925 7 6.25C7 7.9075 8.3425 9.25 10 9.25ZM11.9462 15.109C11.8512 14.7088 11.8512 14.2919 11.9462 13.8917L11.2022 13.462L11.9522 12.163L12.6962 12.5927C12.9949 12.3099 13.3558 12.1013 13.75 11.9838V11.125H15.25V11.9838C15.649 12.1023 16.009 12.3138 16.3037 12.5927L17.0477 12.163L17.7977 13.462L17.0537 13.8917C17.1487 14.2917 17.1487 14.7083 17.0537 15.1083L17.7977 15.538L17.0477 16.837L16.3037 16.4072C16.0051 16.6901 15.6442 16.8987 15.25 17.0162V17.875H13.75V17.0162C13.3558 16.8987 12.9949 16.6901 12.6962 16.4072L11.9522 16.837L11.2022 15.538L11.9462 15.109ZM14.5 15.625C14.7984 15.625 15.0845 15.5065 15.2955 15.2955C15.5065 15.0845 15.625 14.7984 15.625 14.5C15.625 14.2016 15.5065 13.9155 15.2955 13.7045C15.0845 13.4935 14.7984 13.375 14.5 13.375C14.2016 13.375 13.9155 13.4935 13.7045 13.7045C13.4935 13.9155 13.375 14.2016 13.375 14.5C13.375 14.7984 13.4935 15.0845 13.7045 15.2955C13.9155 15.5065 14.2016 15.625 14.5 15.625Z",fill:"#525866"},null,-1)])],8,xz)):"filtersCustomerPriority"===a.iconKey?(Hd(),jd("svg",{key:49,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[45]||(t[45]=[eu("path",{d:"M2.5 17.5C2.5 15.9087 3.13214 14.3826 4.25736 13.2574C5.38258 12.1321 6.9087 11.5 8.5 11.5C10.0913 11.5 11.6174 12.1321 12.7426 13.2574C13.8679 14.3826 14.5 15.9087 14.5 17.5H13C13 16.3065 12.5259 15.1619 11.682 14.318C10.8381 13.4741 9.69347 13 8.5 13C7.30653 13 6.16193 13.4741 5.31802 14.318C4.47411 15.1619 4 16.3065 4 17.5H2.5ZM8.5 10.75C6.01375 10.75 4 8.73625 4 6.25C4 3.76375 6.01375 1.75 8.5 1.75C10.9862 1.75 13 3.76375 13 6.25C13 8.73625 10.9862 10.75 8.5 10.75ZM8.5 9.25C10.1575 9.25 11.5 7.9075 11.5 6.25C11.5 4.5925 10.1575 3.25 8.5 3.25C6.8425 3.25 5.5 4.5925 5.5 6.25C5.5 7.9075 6.8425 9.25 8.5 9.25ZM14.713 12.0273C15.767 12.5019 16.6615 13.2709 17.2889 14.2418C17.9164 15.2126 18.2501 16.344 18.25 17.5H16.75C16.7502 16.633 16.4999 15.7844 16.0293 15.0562C15.5587 14.328 14.8878 13.7512 14.0972 13.3953L14.7123 12.0273H14.713ZM14.197 3.55975C14.9526 3.87122 15.5987 4.40015 16.0533 5.07942C16.5078 5.75869 16.7503 6.55768 16.75 7.375C16.7503 8.40425 16.3658 9.39642 15.6719 10.1566C14.978 10.9168 14.025 11.3901 13 11.4835V9.97375C13.5557 9.89416 14.0713 9.63851 14.471 9.24434C14.8707 8.85017 15.1335 8.33824 15.2209 7.7837C15.3082 7.22916 15.2155 6.66122 14.9563 6.16327C14.6971 5.66531 14.2851 5.26356 13.7808 5.017L14.197 3.55975Z",fill:"#525866"},null,-1)])],8,wz)):"filtersTagIcon"===a.iconKey?(Hd(),jd("svg",{key:50,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[46]||(t[46]=[eu("path",{d:"M9.17489 2.57422L16.5991 3.63547L17.6596 11.0605L10.7656 17.9545C10.625 18.0951 10.4343 18.1741 10.2354 18.1741C10.0365 18.1741 9.84578 18.0951 9.70514 17.9545L2.28014 10.5295C2.13953 10.3888 2.06055 10.1981 2.06055 9.99922C2.06055 9.80035 2.13953 9.60962 2.28014 9.46897L9.17489 2.57422ZM9.70514 4.16572L3.87089 9.99922L10.2354 16.363L16.0689 10.5295L15.2739 4.96072L9.70514 4.16572ZM11.2951 8.93872C11.0138 8.65726 10.8557 8.27555 10.8558 7.87758C10.8559 7.68052 10.8947 7.4854 10.9701 7.30336C11.0456 7.12131 11.1561 6.95591 11.2955 6.81659C11.4349 6.67728 11.6003 6.56678 11.7824 6.4914C11.9645 6.41602 12.1596 6.37724 12.3567 6.37727C12.7546 6.37735 13.1363 6.53551 13.4176 6.81697C13.699 7.09843 13.857 7.48013 13.857 7.87811C13.8569 8.27608 13.6987 8.65773 13.4173 8.93909C13.1358 9.22046 12.7541 9.37848 12.3561 9.37841C11.9581 9.37834 11.5765 9.22018 11.2951 8.93872Z",fill:"#525866"},null,-1)])],8,Ez)):"backIcon"===a.iconKey?(Hd(),jd("svg",{key:51,width:a.width,height:a.height,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[47]||(t[47]=[eu("path",{d:"M6.184 8.32515H14.4001V9.67515H6.184L9.8047 13.2958L8.85025 14.2503L3.6001 9.00015L8.85025 3.75L9.8047 4.70445L6.184 8.32515Z",fill:"#525866"},null,-1)])],8,Cz)):"sort"===a.iconKey?(Hd(),jd("svg",{key:52,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[48]||(t[48]=[eu("path",{d:"M9.9626 6.9625L8.9021 8.023L7.0001 6.121V16H5.5001V6.121L3.59885 8.023L2.5376 6.9625L6.2501 3.25L9.9626 6.9625ZM17.4626 13.0375L13.7501 16.75L10.0376 13.0375L11.0981 11.977L13.0008 13.879L13.0001 4H14.5001V13.879L16.4021 11.977L17.4626 13.0375Z",fill:"#525866"},null,-1)])],8,kz)):"layoutView"===a.iconKey?(Hd(),jd("svg",{key:53,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M9.25 4.75H4.75V15.25H9.25V4.75ZM10.75 4.75V15.25H15.25V4.75H10.75ZM4 3.25H16C16.1989 3.25 16.3897 3.32902 16.5303 3.46967C16.671 3.61032 16.75 3.80109 16.75 4V16C16.75 16.1989 16.671 16.3897 16.5303 16.5303C16.3897 16.671 16.1989 16.75 16 16.75H4C3.80109 16.75 3.61032 16.671 3.46967 16.5303C3.32902 16.3897 3.25 16.1989 3.25 16V4C3.25 3.80109 3.32902 3.61032 3.46967 3.46967C3.61032 3.32902 3.80109 3.25 4 3.25V3.25Z",fill:a.fill||"#525866"},null,8,Az)],8,Tz)):"theme_light"===a.iconKey?(Hd(),jd("svg",{key:54,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[49]||(t[49]=[eu("path",{d:"M8.15361 10.4991C7.81992 10.0496 7.52001 9.57734 7.25389 9.08222C7.13939 9.2999 7.05215 9.52861 6.99215 9.76835C6.93216 10.008 6.90216 10.2541 6.90216 10.5068C6.91337 11.499 7.26591 12.3428 7.9598 13.0381C8.65369 13.7334 9.49675 14.0866 10.489 14.0978C10.7417 14.0978 10.9836 14.0685 11.2147 14.0099C11.4458 13.9514 11.6729 13.8634 11.8961 13.7461C11.4011 13.48 10.9317 13.1794 10.4881 12.8443C10.0443 12.5093 9.62771 12.1471 9.23822 11.7576C8.84885 11.3681 8.48731 10.9486 8.15361 10.4991ZM12.3313 12.3339C13.0878 12.7847 13.896 13.1329 14.756 13.3784C14.2718 14.0912 13.6562 14.6461 12.9091 15.0431C12.162 15.44 11.3589 15.6385 10.5 15.6385C9.0702 15.6385 7.85633 15.1395 6.85839 14.1416C5.86045 13.1437 5.36148 11.9298 5.36148 10.5C5.36148 9.64492 5.56288 8.83998 5.96567 8.08516C6.36847 7.33023 6.92627 6.71069 7.63906 6.22654C7.88464 7.09819 8.22989 7.91224 8.67482 8.66869C9.11975 9.42526 9.65128 10.1126 10.2694 10.7306C10.8874 11.3487 11.5747 11.8832 12.3313 12.3339ZM15.3351 12.228C15.0922 12.172 14.8533 12.1055 14.6183 12.0284C14.3833 11.9514 14.1523 11.8597 13.9254 11.7534C14.0049 11.5394 14.0652 11.3272 14.1062 11.1168C14.1473 10.9064 14.1679 10.6887 14.1679 10.4638C14.1679 9.45088 13.8158 8.59242 13.1116 7.88837C12.4076 7.18421 11.5487 6.83213 10.535 6.83213C10.3267 6.83213 10.1134 6.84906 9.89511 6.88291C9.67673 6.91675 9.46821 6.97342 9.26956 7.0529C9.15587 6.82659 9.06203 6.59934 8.98803 6.37115C8.91403 6.14309 8.84785 5.90767 8.7895 5.66489C9.0702 5.56813 9.35208 5.49338 9.63512 5.44062C9.91816 5.38786 10.2065 5.36148 10.5 5.36148C11.9298 5.36148 13.1437 5.86045 14.1416 6.85839C15.1395 7.85633 15.6385 9.0702 15.6385 10.5C15.6385 10.7895 15.6151 11.0797 15.5681 11.3707C15.5212 11.6615 15.4435 11.9473 15.3351 12.228ZM9.77343 4.10093V2H11.2266V4.10093H9.77343ZM9.77343 19V16.8991H11.2266V19H9.77343ZM15.5361 6.49493L14.5093 5.4639L15.9974 3.97154L17.0243 5.00257L15.5361 6.49493ZM5.00257 17.0285L3.97575 15.9974L5.4639 14.5051L6.49073 15.5361L5.00257 17.0285ZM16.8991 11.2266V9.77343H19V11.2266H16.8991ZM2 11.2266V9.77343H4.10093V11.2266H2ZM15.9974 17.0243L14.5093 15.5403L15.5403 14.5135L17.0285 15.9974L15.9974 17.0243ZM5.4639 6.49073L3.97154 5.00257L5.00257 3.97575L6.49493 5.4639L5.4639 6.49073Z",fill:"currentColor"},null,-1)])],8,Rz)):"theme_dark"===a.iconKey?(Hd(),jd("svg",{key:55,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[50]||(t[50]=[eu("path",{d:"M8.5 6.25C8.49985 7.29298 8.81035 8.31237 9.39192 9.17816C9.97348 10.0439 10.7997 10.7169 11.7653 11.1112C12.7309 11.5055 13.7921 11.6032 14.8134 11.3919C15.8348 11.1807 16.7701 10.67 17.5 9.925V10C17.5 14.1423 14.1423 17.5 10 17.5C5.85775 17.5 2.5 14.1423 2.5 10C2.5 5.85775 5.85775 2.5 10 2.5H10.075C9.57553 2.98834 9.17886 3.57172 8.90836 4.21576C8.63786 4.8598 8.49902 5.55146 8.5 6.25ZM4 10C3.99945 11.3387 4.44665 12.6392 5.27042 13.6945C6.09419 14.7497 7.24723 15.4992 8.54606 15.8236C9.84489 16.148 11.2149 16.0287 12.4381 15.4847C13.6614 14.9407 14.6675 14.0033 15.2965 12.8215C14.1771 13.0852 13.0088 13.0586 11.9026 12.744C10.7964 12.4295 9.78888 11.8376 8.97566 11.0243C8.16244 10.2111 7.57048 9.20361 7.25596 8.09738C6.94144 6.99116 6.91477 5.82292 7.1785 4.7035C6.21818 5.2151 5.41509 5.97825 4.85519 6.91123C4.2953 7.84422 3.99968 8.91191 4 10Z",fill:"currentColor"},null,-1)])],8,Oz)):"theme_system"===a.iconKey?(Hd(),jd("svg",{key:56,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[51]||(t[51]=[eu("path",{d:"M6.875 4.375V6.25H4.375V7.5H6.875V9.375H8.125V4.375H6.875ZM9.375 7.5H15.625V6.25H9.375V7.5ZM13.125 10.625V12.5H15.625V13.75H13.125V15.625H11.875V10.625H13.125ZM10.625 13.75H4.375V12.5H10.625V13.75Z",fill:"currentColor"},null,-1)])],8,Nz)):"cancel"===a.iconKey?(Hd(),jd("svg",Iz,[...t[52]||(t[52]=[eu("path",{d:"M9.5 2.5L2.5 9.5M2.5 2.5L9.5 9.5",stroke:"#696778","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):"arrow_down"===a.iconKey?(Hd(),jd("svg",{key:58,width:a.width,height:a.height,viewBox:"-4.18 -5.73 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[53]||(t[53]=[eu("path",{d:"M3.8184 2.97L6.7884 0L7.6368 0.8484L3.8184 4.6668L0 0.8484L0.8484 0L3.8184 2.97Z",fill:"currentColor"},null,-1)])],8,Dz)):"arrow_right_close"===a.iconKey?(Hd(),jd("svg",{key:59,width:a.width,height:a.height,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...t[54]||(t[54]=[eu("path",{d:"M13.5914 9.30589L10.3575 6.07193L11.3395 5.08984L16.25 10.0003L11.3395 14.9107L10.3575 13.9287L13.5914 10.6948L7.22208 10.6948L7.22206 9.30595L13.5914 9.30589ZM4.44434 14.8614V5.13916H5.83322V14.8614H4.44434Z",fill:"#525866"},null,-1)])],8,Mz)):"arrow_left_open"===a.iconKey?(Hd(),jd("svg",Lz,[...t[55]||(t[55]=[eu("path",{d:"M8.66049 5.08984L9.64257 6.07193L6.40861 9.30589L12.778 9.30595V10.6948L6.40865 10.6948L9.64257 13.9287L8.66049 14.9107L3.75 10.0003L8.66049 5.08984ZM14.1668 14.8614V5.13916H15.5557V14.8614H14.1668Z",fill:"#525866"},null,-1)])])):"agent_icon"===a.iconKey?(Hd(),jd("svg",Pz,[...t[56]||(t[56]=[eu("path",{d:"M12.7628 5.59975H13.4C13.7183 5.59975 14.0235 5.72617 14.2485 5.95122C14.4736 6.17626 14.6 6.48148 14.6 6.79974V9.19974C14.6 9.518 14.4736 9.82323 14.2485 10.0483C14.0235 10.2733 13.7183 10.3997 13.4 10.3997H12.7628C12.6165 11.5597 12.052 12.6265 11.175 13.3997C10.2981 14.173 9.16916 14.5997 7.99999 14.5997V13.3997C8.95477 13.3997 9.87045 13.0205 10.5456 12.3453C11.2207 11.6702 11.6 10.7545 11.6 9.79974V6.19975C11.6 5.24497 11.2207 4.32929 10.5456 3.65416C9.87045 2.97903 8.95477 2.59974 7.99999 2.59974C7.04521 2.59974 6.12954 2.97903 5.45441 3.65416C4.77928 4.32929 4.39999 5.24497 4.39999 6.19975V10.3997H2.59999C2.28173 10.3997 1.97651 10.2733 1.75147 10.0483C1.52642 9.82323 1.39999 9.518 1.39999 9.19974V6.79974C1.39999 6.48148 1.52642 6.17626 1.75147 5.95122C1.97651 5.72617 2.28173 5.59975 2.59999 5.59975H3.23719C3.38361 4.43988 3.94824 3.37331 4.82514 2.60015C5.70203 1.82699 6.83093 1.40039 7.99999 1.40039C9.16906 1.40039 10.298 1.82699 11.1748 2.60015C12.0517 3.37331 12.6164 4.43988 12.7628 5.59975ZM2.59999 6.79974V9.19974H3.19999V6.79974H2.59999ZM12.8 6.79974V9.19974H13.4V6.79974H12.8ZM5.45599 10.2707L6.09199 9.25314C6.66384 9.61137 7.32521 9.80083 7.99999 9.79974C8.67477 9.80083 9.33615 9.61137 9.90799 9.25314L10.544 10.2707C9.78155 10.7484 8.89972 11.0011 7.99999 10.9997C7.10027 11.0011 6.21844 10.7484 5.45599 10.2707Z",fill:"#0B4627"},null,-1)])])):"user_icon"===a.iconKey?(Hd(),jd("svg",Fz,[...t[57]||(t[57]=[eu("path",{d:"M12.8 14.0004H11.6V12.8004C11.6 12.323 11.4104 11.8652 11.0728 11.5276C10.7352 11.19 10.2774 11.0004 9.80001 11.0004H6.20001C5.72262 11.0004 5.26479 11.19 4.92722 11.5276C4.58965 11.8652 4.40001 12.323 4.40001 12.8004V14.0004H3.20001V12.8004C3.20001 12.0047 3.51608 11.2417 4.07869 10.6791C4.6413 10.1165 5.40436 9.80039 6.20001 9.80039H9.80001C10.5957 9.80039 11.3587 10.1165 11.9213 10.6791C12.4839 11.2417 12.8 12.0047 12.8 12.8004V14.0004ZM8.00001 8.60039C7.52725 8.60039 7.05912 8.50727 6.62235 8.32636C6.18558 8.14544 5.78872 7.88027 5.45443 7.54597C5.12014 7.21168 4.85496 6.81482 4.67405 6.37805C4.49313 5.94128 4.40001 5.47315 4.40001 5.00039C4.40001 4.52763 4.49313 4.0595 4.67405 3.62273C4.85496 3.18596 5.12014 2.7891 5.45443 2.45481C5.78872 2.12052 6.18558 1.85534 6.62235 1.67442C7.05912 1.49351 7.52725 1.40039 8.00001 1.40039C8.95479 1.40039 9.87047 1.77968 10.5456 2.45481C11.2207 3.12994 11.6 4.04561 11.6 5.00039C11.6 5.95517 11.2207 6.87084 10.5456 7.54597C9.87047 8.22111 8.95479 8.60039 8.00001 8.60039ZM8.00001 7.40039C8.63653 7.40039 9.24698 7.14753 9.69707 6.69745C10.1472 6.24736 10.4 5.63691 10.4 5.00039C10.4 4.36387 10.1472 3.75342 9.69707 3.30333C9.24698 2.85325 8.63653 2.60039 8.00001 2.60039C7.36349 2.60039 6.75304 2.85325 6.30296 3.30333C5.85287 3.75342 5.60001 4.36387 5.60001 5.00039C5.60001 5.63691 5.85287 6.24736 6.30296 6.69745C6.75304 7.14753 7.36349 7.40039 8.00001 7.40039Z",fill:"#122368"},null,-1)])])):ou("",!0)}]]),Bz={name:"Ticket",components:{TicketTags:wH,IconPack:$z},props:{ticket:{type:Object,required:!0},showCheckbox:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1},assetUrl:{type:String,default:"/wp-content/plugins/fluent-support-dev/assets/"}},methods:{handleTicketClick(){this.$emit("ticket-click",this.ticket,event)},handleSelection(e){this.$emit("ticket-select",this.ticket.id,e)}}},Vz={class:"fs_ticket_title_row"},Uz={class:"fs_ticket_title"},Hz={key:1,class:"fs_ticket_author"},zz={class:"fs_ticket_id"},Yz={key:2,class:"fs_status_dot fs_status_dot_new"},Gz={class:"fs_ticket_source"},Wz=["src","alt"],jz={key:1,class:"fs_ticket_source_text"},qz={class:"fs_ticket_meta_row"},Kz={class:"fs_ticket_meta_left"},Xz={class:"fs_priority_indicator"},Qz={class:"fs_priority_text"},Zz={class:"fs_waiting_time"},Jz={class:"fs_waiting_text"},eY={class:"fs_ticket_meta_right"};const tY=dH(Bz,[["render",function(e,t,a,i,s,n){const o=wR,r=KE,l=Zl("IconPack"),c=Zl("ticket-tags");return Hd(),jd("div",{class:"fs_ticket_item",onClick:t[2]||(t[2]=(...e)=>n.handleTicketClick&&n.handleTicketClick(...e)),style:{cursor:"pointer"}},[eu("div",Vz,[a.showCheckbox?(Hd(),qd(o,{key:0,onClick:t[0]||(t[0]=Th(()=>{},["stop"])),"model-value":a.isSelected,onChange:n.handleSelection,class:"fs_ticket_checkbox"},null,8,["model-value","onChange"])):ou("",!0),eu("h3",Uz,fe(a.ticket.title),1),a.ticket.customer?(Hd(),jd("span",Hz,"by "+fe(a.ticket.customer.first_name||a.ticket.customer.email),1)):ou("",!0),eu("span",zz,"#"+fe(a.ticket.id),1),"new"===a.ticket.status?(Hd(),jd("span",Yz)):ou("",!0),a.ticket.source?(Hd(),qd(r,{key:3,effect:"dark",content:e.ucFirst(a.ticket.source),placement:"top"},{default:br(()=>[eu("span",Gz,[e.$getSourceIcon(a.ticket.source)?(Hd(),jd("img",{key:0,src:e.$getSourceIcon(a.ticket.source),alt:e.ucFirst(a.ticket.source)},null,8,Wz)):(Hd(),jd("span",jz,fe(e.ucFirst(a.ticket.source)),1))])],void 0),_:1},8,["content"])):ou("",!0)]),eu("div",qz,[eu("div",Kz,["new"!==a.ticket.status?(Hd(),qd(r,{key:0,effect:"dark",content:e.$t("Status")+": "+(e.appVars.ticket_statuses[a.ticket.status]||a.ticket.status),placement:"top",trigger:"hover"},{default:br(()=>[eu("span",{class:ne(["fs_status_badge",`fs_status_${(a.ticket.status||"").toLowerCase()}`])},fe(e.appVars.ticket_statuses[a.ticket.status]||a.ticket.status),3)],void 0),_:1},8,["content"])):ou("",!0),a.ticket.client_priority?(Hd(),qd(r,{key:1,effect:"dark",content:e.$t("Client Priority")+": "+(e.appVars.client_priorities[a.ticket.client_priority]||a.ticket.client_priority),placement:"top",trigger:"hover"},{default:br(()=>[eu("span",Xz,[eu("span",{class:ne(["fs_priority_dot",`fs_priority_dot_${(a.ticket.client_priority||"normal").toLowerCase()}`])},null,2),eu("span",Qz,fe(e.appVars.client_priorities[a.ticket.client_priority]||a.ticket.client_priority),1)])],void 0),_:1},8,["content"])):ou("",!0),a.ticket.waiting_since?(Hd(),qd(r,{key:2,effect:"dark",content:e.$t("Waiting Time")+": "+a.ticket.waiting_since,placement:"top",trigger:"hover"},{default:br(()=>[eu("span",Zz,[tu(l,{iconKey:"clock",width:16,height:16}),eu("span",Jz,fe(e.$timeDiff(a.ticket.waiting_since)),1)])],void 0),_:1},8,["content"])):ou("",!0)]),eu("div",eY,[a.ticket.tags&&a.ticket.tags.length?(Hd(),qd(c,{key:0,tags:a.ticket.tags,ticket_id:a.ticket.id,mode:"ticket_list",class:"fs_ticket_tags",onClick:t[1]||(t[1]=Th(()=>{},["stop"]))},null,8,["tags","ticket_id"])):ou("",!0)])])])}]]),aY={class:"fs_all_tickets"},iY={key:0,class:"fs_box_body"},sY={class:"fs_tickets_list"},nY={key:0,class:"fs_ticket_divider"},oY={key:1,class:"fs_no_book_tk"},rY={key:2,class:"fs_stats_info"},lY={class:"fs_stat_helper"};const cY=dH({name:"SuggestedTicket",components:{DashboardTicket:tY},props:{component_data:{type:Object,default:()=>({})}},emits:["navigate-to-ticket"],methods:{navigateToTicket(e){this.$emit("navigate-to-ticket",e)}}},[["render",function(e,t,a,i,s,n){const o=Zl("DashboardTicket");return Hd(),jd("div",aY,[a.component_data.suggested_tickets.length?(Hd(),jd("div",iY,[eu("div",sY,[(Hd(!0),jd(Pd,null,sc(a.component_data.suggested_tickets,(e,t)=>(Hd(),jd(Pd,{key:e.id},[tu(o,{ticket:e,"show-checkbox":!1,onTicketClick:n.navigateToTicket},null,8,["ticket","onTicketClick"]),t<a.component_data.suggested_tickets.length-1?(Hd(),jd("div",nY)):ou("",!0)],64))),128))])])):(Hd(),jd("div",oY,[eu("span",null,[su(fe(e.$t("dashboard_all_catch_up"))+" ",1),eu("b",null,fe(e.$t("Good Job"))+", "+fe(e.appVars.me.full_name)+"!",1)])])),a.component_data.overall_stats?(Hd(),jd("div",rY,[eu("p",lY,[eu("span",null,fe(a.component_data.overall_stats.waiting_tickets)+" "+fe(e.$t("tickets")),1),su(" "+fe(e.$t("are waiting for reply with"))+" ",1),eu("span",null,fe(e.$t("average"))+" "+fe(a.component_data.overall_stats.average_waiting)+" "+fe(e.$t("wait time")),1),su(" & "+fe(e.$t("max wait time"))+" ",1),eu("span",null,fe(a.component_data.overall_stats.max_waiting),1)])])):ou("",!0)])}]]),dY={key:0,class:"fs_all_tickets"},uY={key:0,class:"fs_box_body"},pY={class:"fs_tickets_list"},hY={key:0,class:"fs_ticket_divider"},gY={key:1,class:"fs_no_book_tk"},mY={key:1,class:"fs_all_tickets"},fY={class:"fs_no_book_tk"},_Y={href:"https://fluentsupport.com",target:"_blank",rel:"noopener noreferrer"};const bY=dH({name:"MentionedTicket",components:{DashboardTicket:tY},props:{component_data:{type:Array,default:()=>[]}},emits:["navigate-to-ticket"],methods:{navigateToTicket(e){this.$emit("navigate-to-ticket",e)}}},[["render",function(e,t,a,i,s,n){const o=Zl("DashboardTicket");return e.has_pro?(Hd(),jd("div",dY,[a.component_data.length?(Hd(),jd("div",uY,[eu("div",pY,[(Hd(!0),jd(Pd,null,sc(a.component_data,(e,t)=>(Hd(),jd(Pd,{key:e.id},[tu(o,{ticket:e,"show-checkbox":!1,onTicketClick:n.navigateToTicket},null,8,["ticket","onTicketClick"]),t<a.component_data.length-1?(Hd(),jd("div",hY)):ou("",!0)],64))),128))])])):(Hd(),jd("div",gY,[eu("span",null,fe(e.$t("no_bookmarked_ticket")),1)]))])):(Hd(),jd("div",mY,[eu("div",fY,[eu("span",null,[su(fe(e.$t("bookmarked_ticket_pro_feature"))+" ",1),eu("a",_Y,fe(e.$t("upgrade_now")),1)])])]))}]]),vY={class:"fs_tickets_by_product"},yY={key:0,class:"fs_product_grid"},SY={class:"fs_product_label"},xY={class:"fs_product_count"},wY={key:1,class:"fs_no_products"};const EY=dH({name:"TicketsByProduct",props:{component_data:{type:Object,default:()=>({})}},computed:{hasData(){return this.component_data&&"object"==typeof this.component_data&&Object.keys(this.component_data).length>0}}},[["render",function(e,t,a,i,s,n){return Hd(),jd("div",vY,[n.hasData?(Hd(),jd("div",yY,[(Hd(!0),jd(Pd,null,sc(a.component_data,(e,t)=>(Hd(),jd("div",{key:t,class:"fs_product_item"},[eu("p",SY,fe(e.title),1),eu("p",xY,fe(e.count),1)]))),128))])):(Hd(),jd("div",wY,[eu("span",null,fe(e.$t("No product data available")),1)]))])}]]),CY={name:"AgentPerformance",components:{IconPack:$z},data:()=>({fetching:!1,todayStats:[]}),methods:{async fetchAgentPerformance(){this.fetching=!0;try{const e=await this.$get("tickets/agent_performance");this.todayStats=e.agent_today_stats}catch(e){this.$handleError(e)}finally{this.fetching=!1}},getDefaultAvatar:e=>`https://ui-avatars.com/api/?name=${encodeURIComponent(e)}&size=40&background=f0f0f0&color=525866&font-size=0.33`,formatWaitingTime:e=>0===e?"0 days":1===e?"1 day":`${e} days`},mounted(){this.fetchAgentPerformance()}},kY={key:0,class:"fs_box_body"},TY={class:"fs_agent_performance_list"},AY={class:"fs_agent_info_row"},RY={class:"fs_agent_info"},OY={class:"fs_agent_avatar"},NY=["src","alt"],IY={class:"fs_agent_details"},DY={class:"fs_agent_name"},MY={class:"fs_agent_email"},LY={class:"fs_agent_stats_column"},PY={class:"fs_closed_badge"},FY={class:"fs_agent_stats_row"},$Y={class:"fs_agent_stat"},BY={class:"fs_agent_stat"},VY={key:0,class:"fs_agent_divider"},UY={key:1,class:"fs_no_agents_data"};const HY={name:"DashboardDraggableContent",components:{draggable:cH,SuggestedTicket:cY,MentionedTicket:bY,TicketsByProduct:EY,AgentPerformance:dH(CY,[["render",function(e,t,a,i,s,n){const o=Zl("IconPack");return s.todayStats.length?(Hd(),jd("div",kY,[eu("div",TY,[(Hd(!0),jd(Pd,null,sc(s.todayStats,(e,t)=>(Hd(),jd("div",{key:e.agent_id,class:"fs_agent_performance_item"},[eu("div",AY,[eu("div",RY,[eu("div",OY,[eu("img",{src:e.avatar||n.getDefaultAvatar(e.agent_name),alt:e.agent_name,class:"fs_avatar_image"},null,8,NY)]),eu("div",IY,[eu("p",DY,fe(e.agent_name.trim().length>0?e.agent_name:"No name"),1),eu("p",MY,fe(e.agent_email||"agent@example.com"),1)])]),eu("div",LY,[eu("div",PY,[tu(o,{"icon-key":"closed_tickets"}),eu("span",null,"Closed "+fe(e.stats.closed_tickets.count)+" tickets",1)]),eu("div",FY,[eu("div",$Y,[tu(o,{iconKey:"clock",width:16,height:16,class:"fs_meta_icon"}),eu("span",null,fe(n.formatWaitingTime(e.stats.waiting_today.count)),1)]),eu("div",BY,[tu(o,{iconKey:"responses",width:16,height:16,class:"fs_meta_icon"}),eu("span",null,fe(e.stats.responses.count)+" responses",1)])])])]),t<s.todayStats.length-1?(Hd(),jd("div",VY)):ou("",!0)]))),128))])])):(Hd(),jd("div",UY,[eu("span",null,fe(e.$t("No agent performance data available")),1)]))}]]),IconPack:$z},props:{loading:{type:Boolean,required:!0},dashboard_notice:{type:String,default:""},dashboard_param:{type:Object,required:!0},active_names:{type:Object,required:!0},total_data:{type:Object,required:!0}},emits:["change"],methods:{handleChange(){this.$emit("change")},navigateToTicket(e){this.$router.push({name:"view_ticket",params:{ticket_id:e.id}})}}},zY={key:0,class:"dashboard fs_box_wrapper"},YY={key:0,class:"draggable"},GY={class:"draggable_component"},WY={class:"fs_component_header fs_label_medium fs_dashboard_component_header"},jY={key:0,class:"draggable"},qY={class:"draggable_component"},KY={class:"fs_component_header"},XY={key:1,class:"fs_padded_20"},QY={class:"fs_component_skeleton"},ZY={class:"fs_component_skeleton"};const JY=dH(HY,[["render",function(e,t,a,i,s,n){const o=wO,r=xO,l=Zl("draggable"),c=lO,d=rO,u=OL;return a.loading?(Hd(),jd("div",XY,[tu(d,{gutter:20},{default:br(()=>[tu(c,{span:12},{default:br(()=>[eu("div",QY,[tu(u,{rows:6,animated:""})])],void 0),_:1}),tu(c,{span:12},{default:br(()=>[eu("div",ZY,[tu(u,{rows:6,animated:""})])],void 0),_:1})],void 0),_:1})])):(Hd(),jd("div",zY,[tu(d,{gutter:20},{default:br(()=>[tu(c,{span:12},{default:br(()=>[tu(l,{modelValue:a.dashboard_param.first_column,"onUpdate:modelValue":t[0]||(t[0]=e=>a.dashboard_param.first_column=e),"ghost-class":"ghost",group:"dashboard_component","item-key":"id",handle:".fs_component_header"},nc({_:2},[a.loading?void 0:{name:"item",fn:br(({element:e})=>[e.show?(Hd(),jd("div",YY,[eu("div",GY,[tu(r,{modelValue:a.active_names[e.active_names],"onUpdate:modelValue":t=>a.active_names[e.active_names]=t,onChange:n.handleChange},{default:br(()=>[tu(o,{name:e.active_names,class:"fs_box_board"},{title:br(()=>[eu("div",WY,fe(e.heading),1)]),default:br(()=>[(Hd(),qd(ec(e.component),{component_data:a.total_data[e.component],onNavigateToTicket:n.navigateToTicket},null,40,["component_data","onNavigateToTicket"]))],void 0),_:2},1032,["name"])],void 0),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])])])):ou("",!0)]),key:"0"}]),1032,["modelValue"])],void 0),_:1}),tu(c,{span:12},{default:br(()=>[tu(l,{modelValue:a.dashboard_param.second_column,"onUpdate:modelValue":t[1]||(t[1]=e=>a.dashboard_param.second_column=e),"ghost-class":"ghost",group:"dashboard_component","item-key":"id",handle:".fs_component_header"},{item:br(({element:e})=>[e.show?(Hd(),jd("div",jY,[eu("div",qY,[tu(r,{modelValue:a.active_names[e.active_names],"onUpdate:modelValue":t=>a.active_names[e.active_names]=t,onChange:n.handleChange},{default:br(()=>[tu(o,{name:e.active_names,class:"fs_box_board"},{title:br(()=>[eu("div",KY,fe(e.heading),1)]),default:br(()=>[(Hd(),qd(ec(e.component),{component_data:a.total_data[e.component],onNavigateToTicket:n.navigateToTicket},null,40,["component_data","onNavigateToTicket"]))],void 0),_:2},1032,["name"])],void 0),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])])])):ou("",!0)]),_:1},8,["modelValue"])],void 0),_:1})],void 0),_:1})]))}]]),eG={class:"fs_dashboard_statistics"},tG={class:"fs_stats_grid"},aG={class:"fs_stat_icon"},iG={class:"fs_stat_content"},sG={class:"fs_stat_label"},nG={class:"fs_stat_number"};const oG=dH({name:"DashboardStatistics",components:{IconPack:$z},props:{stats:{type:Object,default:()=>({})}},methods:{getIconKey:e=>({new_tickets:"new_tickets",open_tickets:"open_tickets",active_tickets:"open_tickets",closed_tickets:"closed_tickets",active_agents:"active_agents",responses:"responses",interactions:"interactions",unassigned_tickets:"unassigned_tickets"}[e]||"new_tickets")}},[["render",function(e,t,a,i,s,n){const o=Zl("IconPack");return Hd(),jd("div",eG,[eu("div",tG,[(Hd(!0),jd(Pd,null,sc(a.stats,(e,t)=>(Hd(),jd("div",{key:t,class:"fs_stat_card"},[eu("div",aG,[tu(o,{iconKey:n.getIconKey(t),width:24,height:24},null,8,["iconKey"])]),eu("div",iG,[eu("p",sG,fe(e.title),1),eu("p",nG,fe(e.count),1)])]))),128))])])}]]),rG={name:"DashboardSettingsDrawer",components:{Close:DS,Search:xx,Plus:fx,Check:AS,Message:lx,Star:Ax,DataAnalysis:BS,Box:yS,User:$x,IconPack:$z},props:{modelValue:{type:Boolean,default:!1},dashboardParam:{type:Object,required:!0}},emits:["update:modelValue","close","widget-toggled"],data:()=>({searchQuery:"",greetingImage:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMjQiIGN5PSIyNCIgcj0iMjQiIGZpbGw9IiNFMUU0RUEiLz4KPHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBzdHlsZT0idHJhbnNmb3JtOiB0cmFuc2xhdGUoMTJweCwgMTJweCk7Ij4KPHBhdGggZD0iTTEyIDJDNi40OCAyIDIgNi40OCAyIDEyQzIgMTcuNTIgNi40OCAyMiAxMiAyMkMxNy41MiAyMiAyMiAxNy41MiAyMiAxMkMyMiA2LjQ4IDE3LjUyIDIgMTIgMloiIGZpbGw9IiM5OUEwQUUiLz4KPC9zdmc+Cjwvc3ZnPgo="}),computed:{isOpen:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},isGreetingVisible(){return!this.searchQuery||this.$t("Greeting Message").toLowerCase().includes(this.searchQuery.toLowerCase())}},methods:{handleClose(){this.$emit("close"),this.isOpen=!1},toggleWidget(e,t="greeting"){"greeting"===t?this.dashboardParam.greetingMessage=!this.dashboardParam.greetingMessage:e.show=!e.show,this.$emit("widget-toggled",{widget:e,type:t})},getWidgetIcon:e=>({MentionedTicket:"Star",SuggestedTicket:"Lightbulb",TicketsByProduct:"Box",AgentPerformance:"User",TicketStatistics:"DataAnalysis"}[e]||"Star"),getWidgetDisplayName:e=>({MentionedTicket:"Bookmarked Tickets",SuggestedTicket:"Suggested Tickets",TicketsByProduct:"Tickets by Products",AgentPerformance:"Agent Performance",TicketStatistics:"Tickets Statistic"}[e]||e),isWidgetVisible(e){if(!this.searchQuery)return!0;const t=this.getWidgetDisplayName(e.component);return this.$t(t).toLowerCase().includes(this.searchQuery.toLowerCase())}}},lG={class:"fs_drawer_header"},cG={class:"fs_drawer_header_content"},dG={class:"fs_drawer_title"},uG={class:"fs_drawer_search"},pG={class:"fs_drawer_content"},hG={class:"fs_widget_header"},gG={class:"fs_widget_info"},mG={class:"fs_widget_title"},fG={class:"fs_widget_preview"},_G={class:"fs_widget_skeleton"},bG=["src"];const vG={name:"DynamicDashboard",components:{DashboardDraggableContent:JY,DashboardStatistics:oG,DashboardSettingsDrawer:dH(rG,[["render",function(e,t,a,i,s,n){const o=Zl("IconPack"),r=vk,l=oC,c=Zl("Check"),d=Zl("Plus"),u=jx,p=SD;return Hd(),qd(p,{class:"fs_dashboard_settings",modelValue:n.isOpen,"onUpdate:modelValue":t[1]||(t[1]=e=>n.isOpen=e),"with-header":!1,size:"400px"},{default:br(()=>[eu("div",lG,[eu("div",cG,[eu("div",dG,[eu("h2",null,fe(e.$t("All Widgets")),1)]),tu(r,{class:"fs_drawer_close_btn",onClick:n.handleClose,text:"",circle:""},{default:br(()=>[tu(o,{"icon-key":"close"})],void 0),_:1},8,["onClick"])])]),eu("div",uG,[tu(l,{modelValue:s.searchQuery,"onUpdate:modelValue":t[0]||(t[0]=e=>s.searchQuery=e),class:"fs_text_input",placeholder:e.$t("Search Widget..."),clearable:""},{prefix:br(()=>[tu(o,{"icon-key":"search",class:"fs_search_icon"})]),_:1},8,["modelValue","placeholder"])]),eu("div",pG,[(Hd(!0),jd(Pd,null,sc(a.dashboardParam,t=>(Hd(),jd(Pd,{key:t},[(Hd(!0),jd(Pd,null,sc(t,t=>vr((Hd(),jd("div",{key:t.id,class:"fs_widget_card"},[eu("div",hG,[eu("div",gG,[tu(o,{"icon-key":t.icon,class:"fs_widget_icon"},null,8,["icon-key"]),eu("span",mG,fe(e.$t(n.getWidgetDisplayName(t.component))),1)]),tu(r,{class:ne(["fs_widget_action_btn",{added:t.show}]),onClick:e=>n.toggleWidget(t,"component"),size:"small"},{default:br(()=>[tu(u,null,{default:br(()=>[t.show?(Hd(),qd(c,{key:0})):(Hd(),qd(d,{key:1}))],void 0),_:2},1024),eu("span",null,fe(t.show?e.$t("Added"):e.$t("Add to home")),1)],void 0),_:2},1032,["class","onClick"])]),eu("div",fG,[eu("div",_G,[eu("img",{src:e.appVars.asset_url+t.image,class:"fs_widget_preview_image"},null,8,bG)])])])),[[vp,n.isWidgetVisible(t)]])),128))],64))),128))])],void 0),_:1},8,["modelValue"])}]])},data(){return{drawer:!1,me:this.appVars.me,can_access_unassigned_tickets:!1,loading:!1,dashboard_notice:"",total_data:{MentionedTicket:{},TicketStatistics:{stats:{},individual_stat:{}},SuggestedTicket:{suggested_tickets:[],overall_stats:{}},TicketsByProduct:{},AgentPerformance:{}},dashboard_param:{},dashboard_settings_data:{first_column:[{id:1,component:"MentionedTicket",icon:"bookmark",show:!0,heading:this.$t("Your Bookmarked Tickets"),active_names:"mentionedTicket",image:"/images/dashboard_drawer_bookmark.png"},{id:4,component:"TicketsByProduct",show:!0,icon:"box",heading:this.$t("active_tickets_by_products"),active_names:"ticketsByProduct",image:"/images/dashboard_drawer_product_wise_tickets.png"}],second_column:[{id:3,component:"SuggestedTicket",show:!0,icon:"lightbulb",heading:this.$t("Here Are A Few Tickets You May Want To Take A Look At"),active_names:"suggestedTicket",image:"/images/dashboard_drawer_suggested_tickets.png"},{id:5,component:"AgentPerformance",icon:"user_avatar",show:this.appVars.me.permissions.includes("fst_agent_today_performance"),heading:this.$t("Agent Performance (Today)"),active_names:"agentPerformance",image:"/images/dashboard_drawer_agent_performance.png"}],greetingMessage:!0},settings_data:{},app_ready:!1,active_names:{},default_active_names:{mentionedTicket:["mentionedTicket"],suggestedTicket:["suggestedTicket"],ticketsByProduct:["ticketsByProduct"],agentPerformance:["agentPerformance"]}}},computed:{greetingTime(){const e=this.$dayjs();let t=null;if(!e||!e.isValid())return;const a=parseFloat(e.format("HH"));return t=a>=12&&a<=17?this.$t("afternoon"):a>=17?this.$t("evening"):this.$t("morning"),t}},watch:{dashboard_param:{handler(e,t){this.$saveData("dashboard_settings_data",e),this.$saveData("prev_dashboard_default_settings",this.dashboard_settings_data)},deep:!0}},mounted(){this.appVars.mailboxes.length||this.$router.push({name:"setup",query:{t:Date.now()}}),this.can_access_unassigned_tickets=this.appVars.me.permissions.indexOf("fst_manage_unassigned_tickets")>-1,this.migrateDashboardSettings(),this.fetchStat(),this.getDashboardSettings(),this.getComponentState(),jQuery(".update-nag,.notice, #wpbody-content > .updated, #wpbody-content > .error").remove()},methods:{migrateDashboardSettings(){var e,t;if(this.$getData("dashboard_migration_v2_done"))return;const a=this.$getData("dashboard_settings_data");if(!a)return void this.$saveData("dashboard_migration_v2_done",!0);const i=null==(e=a.first_column)?void 0:e.some(e=>"TicketStatistics"===e.component),s=null==(t=a.second_column)?void 0:t.some(e=>"TicketStatistics"===e.component);if(i||s){const e={first_column:(a.first_column||[]).filter(e=>"TicketStatistics"!==e.component),second_column:(a.second_column||[]).filter(e=>"TicketStatistics"!==e.component),greetingMessage:!1!==a.greetingMessage};e.first_column=e.first_column.map(e=>({...e,icon:e.icon||this.getIconForComponent(e.component),image:e.image||this.getImageForComponent(e.component)})),e.second_column=e.second_column.map(e=>({...e,icon:e.icon||this.getIconForComponent(e.component),image:e.image||this.getImageForComponent(e.component)})),e.first_column.forEach((e,t)=>{e.id=t+1}),e.second_column.forEach((t,a)=>{t.id=e.first_column.length+a+1}),this.$saveData("dashboard_settings_data",e),this.$saveData("prev_dashboard_default_settings",this.dashboard_settings_data);const t=this.$getData("component_collapse_data");t&&t.ticketStatistics&&(delete t.ticketStatistics,this.$saveData("component_collapse_data",t))}this.$saveData("dashboard_migration_v2_done",!0)},getIconForComponent:e=>({MentionedTicket:"bookmark",SuggestedTicket:"lightbulb",TicketsByProduct:"box",AgentPerformance:"user_avatar"}[e]||"box"),getImageForComponent:e=>({MentionedTicket:"/images/dashboard_drawer_bookmark.png",SuggestedTicket:"/images/dashboard_drawer_suggested_tickets.png",TicketsByProduct:"/images/dashboard_drawer_product_wise_tickets.png",AgentPerformance:"/images/dashboard_drawer_agent_performance.png"}[e]||"/images/dashboard_drawer_bookmark.png"),handleChange(){this.$saveData("component_collapse_data",this.active_names)},defalutSettings(){this.$saveData("dashboard_settings_data",this.dashboard_settings_data),this.$saveData("component_collapse_data",this.default_active_names),this.getComponentState(),this.getDashboardSettings()},cancelClick(){this.drawer=!1},handleWidgetToggle(e){this.$saveData("dashboard_settings_data",this.dashboard_param)},checkMove(e){window.console.log("Future index: "+e.draggedContext.futureIndex)},getComponentState(){let e=this.$getData("component_collapse_data");this.active_names=e||this.default_active_names},getDashboardSettings(){let e=this.$getData("prev_dashboard_default_settings");this.settings_data=this.$getData("dashboard_settings_data"),JSON.stringify(e)===JSON.stringify(this.dashboard_settings_data)?this.dashboard_param=this.settings_data:(this.$saveData("prev_dashboard_default_settings",this.dashboard_settings_data),this.dashboard_param=this.$getData("prev_dashboard_default_settings"))},fetchStat(){this.loading=!0;let e=["suggested_tickets","overall_stats","individual_stat","ticket_to_watch","tickets_by_products"];this.appVars.me.permissions.includes("fst_agent_today_performance")&&e.push("agent_today_stats"),this.$get("tickets/my_stats",{with:e}).then(e=>{this.dashboard_notice=e.dashboard_notice,this.total_data.MentionedTicket=e.ticket_to_watch,this.total_data.SuggestedTicket.suggested_tickets=e.suggested_tickets,this.total_data.SuggestedTicket.overall_stats=e.overall_stats,this.total_data.TicketStatistics.stats=e.stats,this.total_data.TicketStatistics.individual_stat=e.individual_stat,this.total_data.TicketsByProduct=e.tickets_by_product,e.agent_today_stats&&(this.total_data.AgentPerformance=e.agent_today_stats),this.app_ready=!0}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}}},yG={class:"fs_box_wrapper"},SG={class:"fs_dashboard_wrapper"},xG=["innerHTML"],wG={class:"fs_head_section"},EG={class:"fs_user_greetings_section"},CG={class:"fs_greetings_content"},kG={class:"fs_user_avatar"},TG=["src","alt"],AG={class:"fs_greetings_text"},RG={class:"fs_greeting_main"},OG={class:"fs_page_title fs_page_title_secondary_color"},NG={class:"fs_page_title"},IG={class:"fs_page_subtitle"},DG={class:"fs_button_group"},MG={class:"fs_button_group_inner"};const LG=dH(vG,[["render",function(e,t,a,i,s,n){const o=Zl("DashboardStatistics"),r=Zl("DashboardDraggableContent"),l=Zl("DashboardSettingsDrawer");return Hd(),jd("div",yG,[eu("div",SG,[eu("div",{innerHTML:s.dashboard_notice},null,8,xG),eu("div",wG,[eu("div",EG,[eu("div",CG,[eu("div",kG,[eu("img",{src:s.me.photo,alt:s.me.full_name},null,8,TG)]),eu("div",AG,[eu("h1",RG,[eu("span",OG,fe(e.$t("Good"))+" "+fe(n.greetingTime),1),eu("span",NG,", "+fe(s.me.full_name)+" 👋🏻",1)]),eu("p",IG,fe(e.$t("Welcome back to Fluent Support")),1)])])]),t[5]||(t[5]=eu("div",null,null,-1)),eu("div",DG,[eu("div",MG,[eu("button",{onClick:t[0]||(t[0]=e=>s.drawer=!0),class:"fs_settings_button"},[...t[3]||(t[3]=[eu("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M3.26954 5.72492C3.38204 5.48742 3.51329 5.26242 3.66329 5.04367L3.63829 3.41867C3.63829 3.26867 3.70079 3.12492 3.81954 3.02492C4.40079 2.53742 5.06329 2.14367 5.79454 1.88117C5.93829 1.83117 6.09454 1.84367 6.21954 1.92492L7.61329 2.76242C7.87579 2.74367 8.13829 2.74367 8.40079 2.76242L9.79454 1.92492C9.92579 1.84992 10.082 1.83117 10.2258 1.88117C10.9383 2.13742 11.607 2.51867 12.2008 3.01867C12.3133 3.11242 12.382 3.26242 12.3758 3.41242L12.3508 5.03742C12.5008 5.25617 12.632 5.48117 12.7445 5.71867L14.1633 6.50617C14.2945 6.58117 14.3883 6.70617 14.4133 6.85617C14.5445 7.59992 14.5508 8.37492 14.4133 9.13117C14.3883 9.28117 14.2945 9.40617 14.1633 9.48117L12.7445 10.2687C12.632 10.5062 12.5008 10.7312 12.3508 10.9499L12.3758 12.5749C12.3758 12.7249 12.3133 12.8687 12.1945 12.9687C11.6133 13.4562 10.9508 13.8499 10.2195 14.1124C10.0758 14.1624 9.91954 14.1499 9.79454 14.0687L8.40079 13.2312C8.13829 13.2499 7.87579 13.2499 7.61329 13.2312L6.21954 14.0687C6.08829 14.1437 5.93204 14.1624 5.78829 14.1124C5.07579 13.8562 4.40704 13.4749 3.81329 12.9749C3.70079 12.8812 3.63204 12.7312 3.63829 12.5812L3.66329 10.9562C3.51329 10.7374 3.38204 10.5124 3.26954 10.2749L1.85079 9.48742C1.71954 9.41242 1.62579 9.28742 1.60079 9.13742C1.46954 8.39367 1.46329 7.61867 1.60079 6.86242C1.62579 6.71242 1.71954 6.58742 1.85079 6.51242L3.26954 5.72492Z",stroke:"#525866","stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),eu("path",{d:"M8.00073 10.9999C9.65759 10.9999 11.0007 9.65679 11.0007 7.99994C11.0007 6.34308 9.65759 4.99994 8.00073 4.99994C6.34388 4.99994 5.00073 6.34308 5.00073 7.99994C5.00073 9.65679 6.34388 10.9999 8.00073 10.9999Z",stroke:"#525866","stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]),eu("button",{class:"fs_refresh_button",onClick:t[1]||(t[1]=e=>n.defalutSettings())},[t[4]||(t[4]=eu("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M2.59725 1.82476C3.95817 0.645503 5.69924 -0.0025049 7.5 7.27699e-06C11.6423 7.27699e-06 15 3.35776 15 7.50001C15 9.10201 14.4975 10.587 13.6425 11.805L11.25 7.50001H13.5C13.5001 6.32373 13.1544 5.17336 12.506 4.19195C11.8576 3.21054 10.9349 2.44138 9.85288 1.9801C8.77082 1.51882 7.57704 1.38578 6.41997 1.59752C5.2629 1.80926 4.19359 2.35643 3.345 3.17101L2.59725 1.82476ZM12.4028 13.1753C11.0418 14.3545 9.30076 15.0025 7.5 15C3.35775 15 0 11.6423 0 7.50001C0 5.89801 0.5025 4.41301 1.3575 3.19501L3.75 7.50001H1.5C1.4999 8.67629 1.84556 9.82665 2.494 10.8081C3.14244 11.7895 4.06505 12.5586 5.14712 13.0199C6.22918 13.4812 7.42296 13.6142 8.58003 13.4025C9.7371 13.1908 10.8064 12.6436 11.655 11.829L12.4028 13.1753Z",fill:"#525866"})],-1)),eu("span",null,fe(e.$t("Reset")),1)])])])]),tu(o,{stats:s.total_data.TicketStatistics.stats},null,8,["stats"]),tu(r,{loading:s.loading,dashboard_notice:s.dashboard_notice,dashboard_param:s.dashboard_param,active_names:s.active_names,total_data:s.total_data,onChange:n.handleChange},null,8,["loading","dashboard_notice","dashboard_param","active_names","total_data","onChange"]),tu(l,{modelValue:s.drawer,"onUpdate:modelValue":t[2]||(t[2]=e=>s.drawer=e),"dashboard-param":s.dashboard_param,onClose:n.cancelClick,onWidgetToggled:n.handleWidgetToggle},null,8,["modelValue","dashboard-param","onClose","onWidgetToggled"])])])}]]),PG={class:"fs_logo_section"},FG={class:"fs_brand_logo"},$G=["src"];const BG={class:"fs_setup"},VG={class:"fs_box_wrapper"},UG={class:"fs_card fs_table_container"},HG={class:"fs_table_wrapper"},zG={class:"fs_setup_header"},YG={class:"fs_header_content"},GG={class:"fs_step_indicator"},WG={class:"fs_setup_content"},jG={class:"fs_welcome_section"},qG={class:"fs_welcome_title"},KG={class:"fs_welcome_subtitle"},XG={class:"fs_form_section"},QG={style:{float:"left"}},ZG={style:{float:"right",color:"#8492a6","font-size":"13px"}},JG={class:"fs_shortcode_info"},eW={class:"fs_shortcode_text"},tW={class:"fs_setup_header"},aW={class:"fs_header_content"},iW={class:"fs_step_indicator"},sW={class:"fs_setup_content"},nW={class:"fs_welcome_section"},oW={class:"fs_welcome_title"},rW={class:"fs_welcome_subtitle"},lW={class:"fs_form_section fs_maintenance_form"},cW={class:"fs_newsletter_section"},dW={class:"fs_section_header"},uW={class:"fs_section_title"},pW={class:"fs_section_subtitle"},hW={class:"fs_input_group"},gW={class:"fs_essentials_section"},mW={class:"fs_section_header"},fW={class:"fs_section_title"},_W={class:"fs_section_subtitle"},bW={class:"fs_checkbox_group"},vW={key:0,class:"fs_essential_details"},yW={key:0},SW={class:"fs_setup_header"},xW={class:"fs_header_content"},wW={class:"fs_step_indicator"},EW={class:"fs_setup_content"},CW={class:"fs_welcome_section"},kW={class:"fs_welcome_title"},TW={class:"fs_welcome_subtitle"},AW={class:"fs_form_section fs_completion_section"},RW={class:"fs_section_header"},OW={class:"fs_section_title"},NW={class:"fs_section_subtitle"},IW={class:"fs_quick_actions_grid"},DW={class:"fs_action_icon"},MW={class:"fs_action_content"},LW={class:"fs_action_title"},PW={class:"fs_action_description"},FW={class:"fs_action_arrow"},$W={class:"fs_action_icon"},BW={class:"fs_action_content"},VW={class:"fs_action_title"},UW={class:"fs_action_description"},HW={class:"fs_action_arrow"},zW={class:"fs_action_icon"},YW={class:"fs_action_content"},GW={class:"fs_action_title"},WW={class:"fs_action_description"},jW={class:"fs_action_arrow"},qW={class:"fs_action_icon"},KW={class:"fs_action_content"},XW={class:"fs_action_title"},QW={class:"fs_action_description"},ZW={class:"fs_action_arrow"},JW={class:"fs_sticky_footer"},ej={class:"fs_footer_content"},tj={class:"fs_help_section"},aj={class:"fs_help_text"},ij={href:"https://fluentsupport.com/docs/",target:"_blank",rel:"noopener noreferrer",class:"fs_doc_link"},sj={key:0,class:"fs_footer_actions"},nj={key:1,class:"fs_footer_actions"},oj={key:2,class:"fs_footer_actions"},rj={class:"fs_dialog_footer"};const lj=dH({name:"FluentSupportSetup",components:{BrandLogo:dH({name:"BrandLogo",props:{assetUrl:{type:String,required:!0}},data:()=>({isDark:document.body.classList.contains("fs-dark-mode")}),computed:{logoSrc(){const e=this.isDark?"dashboard_onboarding_logo_dark.png":"dashboard_onboarding_logo.png";return this.assetUrl+"images/"+e}},mounted(){this.observer=new MutationObserver(()=>{this.isDark=document.body.classList.contains("fs-dark-mode")}),this.observer.observe(document.body,{attributes:!0,attributeFilter:["class"]})},beforeUnmount(){this.observer&&this.observer.disconnect()}},[["render",function(e,t,a,i,s,n){return Hd(),jd("div",PG,[eu("span",FG,[eu("img",{src:n.logoSrc},null,8,$G)])])}]])},data:()=>({global_settings:{portal_page_id:"",create_portal_page:"no"},mailbox:{name:"",email:"",box_type:"web",is_default:"yes"},created_box:{},step:"mailbox",pages:[],loading_pages:!1,saving:!1,has_fluentform:!1,install_fluentforms:"no",share_essentials:"no",show_essential:!1,email_address:"",show_essential_modal:!1}),methods:{fetchPages(){this.loading_pages=!0,this.$get("settings/pages").then(e=>{this.pages=e.pages}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading_pages=!1})},completeSetup(){this.saving=!0,this.$post("settings/setup",{mailbox:this.mailbox,global_settings:this.global_settings}).then(e=>{this.created_box=e.mailbox,this.appVars.mailboxes=e.mailboxes,this.has_fluentform=e.has_fluentform,this.step="maintenance"}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},handleDataShare(e){this.share_essentials=e,this.show_essential_modal=!1,this.completeTrack(!0)},completeTrack(e=!1){"yes"===this.share_essentials||e?(this.saving=!0,this.$post("settings/setup-installation",{install_fluentform:this.install_fluentforms,share_essentials:this.share_essentials,optin_email:this.email_address}).then(e=>{this.$notify({type:"success",title:this.$t("Great!"),message:e.message,offset:19})}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1,this.step="completed"})):this.show_essential_modal=!0},showNavbar(){const e=document.querySelector(".fs_main_navbar");e&&e.style.removeProperty("display")},hideNavbar(){const e=document.querySelector(".fs_main_navbar");e&&(e.style.display="none")}},mounted(){this.appVars.mailboxes.length?this.$router.push({name:"dashboard",query:{t:Date.now()}}):this.fetchPages(),this.hideNavbar()},beforeUnmount(){this.showNavbar()}},[["render",function(e,t,a,i,s,n){const o=Zl("BrandLogo"),r=oC,l=sE,c=bA,d=_A,u=wR,p=iE,h=Zl("Message"),g=jx,m=Zl("ArrowRight"),f=Zl("router-link"),_=Zl("Box"),b=Zl("UserFilled"),v=Zl("Setting"),y=vk,S=pD,x=q$;return Hd(),jd("div",BG,[eu("div",VG,[eu("div",UG,[eu("div",HG,["mailbox"===s.step?(Hd(),jd(Pd,{key:0},[eu("div",zG,[eu("div",YG,[tu(o,{"asset-url":e.appVars.asset_url},null,8,["asset-url"]),eu("div",GG,[eu("span",null,fe(e.$t("Step 1 of 2")),1)])]),t[16]||(t[16]=eu("div",{class:"fs_progress_container"},[eu("div",{class:"fs_progress_track"}),eu("div",{class:"fs_progress_fill"})],-1))]),eu("div",WG,[eu("div",jG,[eu("h1",qG,fe(e.$t("Welcome aboard!"))+"👋🏻",1),eu("p",KG,fe(e.$t("Please setup your support portal first")),1)]),eu("div",XG,[tu(p,{data:s.mailbox,"label-position":"top"},{default:br(()=>[tu(l,{label:e.$t("Business name"),class:"fs_form_item"},{default:br(()=>[tu(r,{placeholder:e.$t("eg: Awesome Business Inc"),type:"text",modelValue:s.mailbox.name,"onUpdate:modelValue":t[0]||(t[0]=e=>s.mailbox.name=e),class:"fs_text_input"},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),tu(l,{label:e.$t("Business Email"),class:"fs_form_item"},{default:br(()=>[tu(r,{placeholder:e.$t("From Email Address"),type:"email",modelValue:s.mailbox.email,"onUpdate:modelValue":t[1]||(t[1]=e=>s.mailbox.email=e),class:"fs_text_input"},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),tu(l,{label:e.$t("Support Portal Page (For Customers)"),class:"fs_form_item"},{default:br(()=>[vr((Hd(),qd(d,{disabled:"yes"===s.global_settings.create_portal_page,clearable:"",filterable:"",placeholder:e.$t("Select a Page"),modelValue:s.global_settings.portal_page_id,"onUpdate:modelValue":t[2]||(t[2]=e=>s.global_settings.portal_page_id=e),class:"fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.pages,e=>(Hd(),qd(c,{key:e.id,label:e.title,value:e.id},{default:br(()=>[eu("span",QG,fe(e.title),1),eu("span",ZG,fe(e.id),1)],void 0),_:2},1032,["label","value"]))),128))],void 0),_:1},8,["disabled","placeholder","modelValue"])),[[x,s.loading_pages]]),eu("div",JG,[eu("span",eW,fe(e.$t("Use Shortcode")),1),t[17]||(t[17]=eu("code",{class:"fs_shortcode_badge"},"[fluent_support_portal]",-1)),t[18]||(t[18]=eu("span",{class:"fs_shortcode_text"},"in the selected page",-1))])],void 0),_:1},8,["label"]),eu("div",null,[s.global_settings.portal_page_id?ou("",!0):(Hd(),qd(u,{key:0,"true-label":"yes","false-label":"no",modelValue:s.global_settings.create_portal_page,"onUpdate:modelValue":t[3]||(t[3]=e=>s.global_settings.create_portal_page=e),class:"fs_auto_page_checkbox"},{default:br(()=>[su(fe(e.$t("Create a page automatically with the shortcode")),1)],void 0),_:1},8,["modelValue"]))])],void 0),_:1},8,["data"])])])],64)):"maintenance"===s.step?(Hd(),jd(Pd,{key:1},[eu("div",tW,[eu("div",aW,[tu(o,{"asset-url":e.appVars.asset_url},null,8,["asset-url"]),eu("div",iW,[eu("span",null,fe(e.$t("Step 2 of 2")),1)])]),t[19]||(t[19]=eu("div",{class:"fs_progress_container"},[eu("div",{class:"fs_progress_track"}),eu("div",{class:"fs_progress_fill fs_progress_complete"})],-1))]),eu("div",sW,[eu("div",nW,[eu("h1",oW,fe(e.$t("You're Almost There!"))+"👏🏻",1),eu("p",rW,fe(e.$t("Please setup your support portal first")),1)]),eu("div",lW,[eu("div",cW,[eu("div",dW,[eu("h3",uW,fe(e.$t("Subscribe to our Bi-Monthly newsletter")),1),eu("p",pW,fe(e.$t("We will send tips and advanced usage of FluentSupport (monthly)")),1)]),eu("div",hW,[tu(r,{placeholder:e.$t("Email address for bi-monthly newsletter"),type:"email",modelValue:s.email_address,"onUpdate:modelValue":t[4]||(t[4]=e=>s.email_address=e),class:"fs_text_input"},null,8,["placeholder","modelValue"])])]),eu("div",gW,[eu("div",mW,[eu("h3",fW,fe(e.$t("Help us to make FluentSupport better")),1),eu("p",_W,[su(fe(e.$t("Allow Fluent Support to collect non-sensitive data and usage information."))+" ",1),eu("span",{class:"fs_link_text",onClick:t[5]||(t[5]=e=>s.show_essential=!s.show_essential)},fe(e.$t("What we collect")),1)])]),eu("div",bW,[tu(u,{"true-label":"yes","false-label":"no",modelValue:s.share_essentials,"onUpdate:modelValue":t[6]||(t[6]=e=>s.share_essentials=e),class:"fs_share_checkbox"},{default:br(()=>[su(fe(e.$t("Share Essentials")),1)],void 0),_:1},8,["modelValue"])]),s.show_essential?(Hd(),jd("div",vW,[...t[20]||(t[20]=[eu("p",null," Server environment details (php, mysql, server, WordPress versions), Site language, Number of active plugins, Site name and url, Your name and email address. No sensitive data is tracked. ",-1)])])):ou("",!0)]),s.has_fluentform?ou("",!0):(Hd(),jd("div",yW,[tu(u,{"true-label":"yes","false-label":"no",modelValue:s.install_fluentforms,"onUpdate:modelValue":t[7]||(t[7]=e=>s.install_fluentforms=e)},{default:br(()=>[su(fe(e.$t("Install Fluent Forms Plugin for custom Ticket Forms.")),1)],void 0),_:1},8,["modelValue"])]))])])],64)):(Hd(),jd(Pd,{key:2},[eu("div",SW,[eu("div",xW,[tu(o,{"asset-url":e.appVars.asset_url},null,8,["asset-url"]),eu("div",wW,[eu("span",null,fe(e.$t("Step 2 of 2")),1)])]),t[21]||(t[21]=eu("div",{class:"fs_progress_container"},[eu("div",{class:"fs_progress_track"}),eu("div",{class:"fs_progress_fill fs_progress_complete"})],-1))]),eu("div",EW,[eu("div",CW,[eu("h1",kW,fe(e.$t("Congrats! Your Support Portal"))+" 🎉",1),eu("p",TW,fe(e.$t("Your support portal is now configured and ready to help your customers.")),1)]),eu("div",AW,[eu("div",RW,[eu("h3",OW,fe(e.$t("Quick Setup Options")),1),eu("p",NW,fe(e.$t("Configure these settings to get the most out of FluentSupport")),1)]),eu("div",IW,[tu(f,{to:{name:"email_settings",params:{box_id:s.created_box.id}},class:"fs_action_card"},{default:br(()=>[eu("div",DW,[tu(g,null,{default:br(()=>[tu(h)],void 0),_:1})]),eu("div",MW,[eu("h4",LW,fe(e.$t("Ticket Email Settings")),1),eu("p",PW,fe(e.$t("Configure email notifications and responses")),1)]),eu("div",FW,[tu(g,null,{default:br(()=>[tu(m)],void 0),_:1})])],void 0),_:1},8,["to"]),tu(f,{to:{name:"products"},class:"fs_action_card"},{default:br(()=>[eu("div",$W,[tu(g,null,{default:br(()=>[tu(_)],void 0),_:1})]),eu("div",BW,[eu("h4",VW,fe(e.$t("Products & Services")),1),eu("p",UW,fe(e.$t("Setup products/services for ticket categorization")),1)]),eu("div",HW,[tu(g,null,{default:br(()=>[tu(m)],void 0),_:1})])],void 0),_:1}),tu(f,{to:{name:"support-staffs"},class:"fs_action_card"},{default:br(()=>[eu("div",zW,[tu(g,null,{default:br(()=>[tu(b)],void 0),_:1})]),eu("div",YW,[eu("h4",GW,fe(e.$t("Support Staff")),1),eu("p",WW,fe(e.$t("Add team members to handle support tickets")),1)]),eu("div",jW,[tu(g,null,{default:br(()=>[tu(m)],void 0),_:1})])],void 0),_:1}),tu(f,{to:{name:"global_settings"},class:"fs_action_card"},{default:br(()=>[eu("div",qW,[tu(g,null,{default:br(()=>[tu(v)],void 0),_:1})]),eu("div",KW,[eu("h4",XW,fe(e.$t("Global Settings")),1),eu("p",QW,fe(e.$t("Customize your support portal preferences")),1)]),eu("div",ZW,[tu(g,null,{default:br(()=>[tu(m)],void 0),_:1})])],void 0),_:1})])])])],64)),eu("div",JW,[eu("div",ej,[eu("div",tj,[eu("span",aj,fe(e.$t("Need Help?")),1),eu("a",ij,fe(e.$t("Read Documentation")),1)]),"mailbox"===s.step?(Hd(),jd("div",sj,[vr((Hd(),qd(y,{disabled:s.saving,onClick:t[8]||(t[8]=e=>n.completeSetup()),class:"fs_filled_btn"},{default:br(()=>[su(fe(e.$t("Next Step")),1)],void 0),_:1},8,["disabled"])),[[x,s.saving]])])):"maintenance"===s.step?(Hd(),jd("div",nj,[tu(y,{onClick:t[9]||(t[9]=e=>s.step="mailbox"),class:"fs_outline_btn"},{default:br(()=>[su(fe(e.$t("Back")),1)],void 0),_:1}),vr((Hd(),qd(y,{disabled:s.saving,onClick:t[10]||(t[10]=e=>n.completeTrack()),class:"fs_filled_btn"},{default:br(()=>[su(fe(e.$t("Finish")),1)],void 0),_:1},8,["disabled"])),[[x,s.saving]])])):"completed"===s.step?(Hd(),jd("div",oj,[tu(y,{onClick:t[11]||(t[11]=e=>s.step="maintenance"),class:"fs_outline_btn"},{default:br(()=>[su(fe(e.$t("Go Back")),1)],void 0),_:1}),tu(y,{class:"fs_filled_btn",onClick:t[12]||(t[12]=t=>e.$router.push({name:"dashboard"}))},{default:br(()=>[su(fe(e.$t("Go to Dashboard")),1)],void 0),_:1})])):ou("",!0)])])])])]),tu(S,{title:e.$t("Build a better Fluent Support"),"close-on-click-modal":!1,"show-close":!1,"append-to-body":!0,top:"30vh","custom-class":"fc_essential_modal",modelValue:s.show_essential_modal,"onUpdate:modelValue":t[15]||(t[15]=e=>s.show_essential_modal=e),class:"fs_dialog",width:"90%",style:{"max-width":"420px"}},{footer:br(()=>[eu("span",rj,[tu(y,{class:"fs_outline_btn",onClick:t[13]||(t[13]=e=>n.handleDataShare("no"))},{default:br(()=>[su(fe(e.$t("No Thanks")),1)],void 0),_:1}),tu(y,{class:"fs_filled_btn",onClick:t[14]||(t[14]=e=>n.handleDataShare("yes"))},{default:br(()=>[su(fe(e.$t("Yes, Count me in!")),1)],void 0),_:1})])]),default:br(()=>[t[22]||(t[22]=eu("p",null," Get improved features and faster fixes by sharing non-sensitive data via usage tracking that shows us how FluentSupport is used. No personal data is tracked or stored. ",-1))],void 0),_:1},8,["title","modelValue"])])}]]);let cj;const dj=e=>cj=e,uj=Symbol();function pj(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var hj,gj;(gj=hj||(hj={})).direct="direct",gj.patchObject="patch object",gj.patchFunction="patch function";const mj=()=>{};function fj(e,t,a,i=mj){e.add(t);const s=()=>{e.delete(t)&&i()};return!a&&Hs()&&zs(s),s}function _j(e,...t){e.forEach(e=>{e(...t)})}const bj=e=>e(),vj=Symbol(),yj=Symbol();function Sj(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,a)=>e.set(a,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const a in t){if(!t.hasOwnProperty(a))continue;const i=t[a],s=e[a];pj(s)&&pj(i)&&e.hasOwnProperty(a)&&!mo(i)&&!oo(i)?e[a]=Sj(s,i):e[a]=i}return e}const xj=Symbol();function wj(e){return!pj(e)||!Object.prototype.hasOwnProperty.call(e,xj)}const{assign:Ej}=Object;function Cj(e){return!(!mo(e)||!e.effect)}function kj(e,t,a={},i,s,n){let o;const r=Ej({actions:{}},a),l={deep:!0};let c,d,u,p=new Set,h=new Set;const g=i.state.value[e];let m;function f(t){let a;c=d=!1,"function"==typeof t?(t(i.state.value[e]),a={type:hj.patchFunction,storeId:e,events:u}):(Sj(i.state.value[e],t),a={type:hj.patchObject,payload:t,storeId:e,events:u});const s=m=Symbol();ar().then(()=>{m===s&&(c=!0)}),d=!0,_j(p,a,i.state.value[e])}n||g||(i.state.value[e]={});const _=n?function(){const{state:e}=a,t=e?e():{};this.$patch(e=>{Ej(e,t)})}:mj;const b=(t,a="")=>{if(vj in t)return t[yj]=a,t;const s=function(){dj(i);const a=Array.from(arguments),n=new Set,o=new Set;let r;_j(h,{args:a,name:s[yj],store:v,after:function(e){n.add(e)},onError:function(e){o.add(e)}});try{r=t.apply(this&&this.$id===e?this:v,a)}catch(l){throw _j(o,l),l}return r instanceof Promise?r.then(e=>(_j(n,e),e)).catch(e=>(_j(o,e),Promise.reject(e))):(_j(n,r),r)};return s[vj]=!0,s[yj]=a,s},v=to({_p:i,$id:e,$onAction:fj.bind(null,h),$patch:f,$reset:_,$subscribe(t,a={}){const s=fj(p,t,a.detached,()=>n()),n=o.run(()=>Rr(()=>i.state.value[e],i=>{("sync"===a.flush?d:c)&&t({storeId:e,type:hj.direct,events:u},i)},Ej({},l,a)));return s},$dispose:function(){o.stop(),p.clear(),h.clear(),i._s.delete(e)}});i._s.set(e,v);const y=(i._a&&i._a.runWithContext||bj)(()=>i._e.run(()=>(o=Us()).run(()=>t({action:b}))));for(const S in y){const t=y[S];if(mo(t)&&!Cj(t)||oo(t))n||(g&&wj(t)&&(mo(t)?t.value=g[S]:Sj(t,g[S])),i.state.value[e][S]=t);else if("function"==typeof t){const e=b(t,S);y[S]=e,r.actions[S]=t}}return Ej(v,y),Ej(uo(v),y),Object.defineProperty(v,"$state",{get:()=>i.state.value[e],set:e=>{f(t=>{Ej(t,e)})}}),i._p.forEach(e=>{Ej(v,o.run(()=>e({store:v,app:i._a,pinia:i,options:r})))}),g&&n&&a.hydrate&&a.hydrate(v.$state,g),c=!0,d=!0,v}function Tj(e,t,a){let i;const s="function"==typeof t;function n(a,n){const o=wr();(a=a||(o?xr(uj,null):null))&&dj(a),(a=cj)._s.has(e)||(s?kj(e,t,i,a):function(e,t,a){const{state:i,actions:s,getters:n}=t,o=a.state.value[e];let r;r=kj(e,function(){o||(a.state.value[e]=i?i():{});const t=To(a.state.value[e]);return Ej(t,s,Object.keys(n||{}).reduce((t,i)=>(t[i]=po(Mu(()=>{dj(a);const t=a._s.get(e);return n[i].call(t,t)})),t),{}))},t,a,0,!0)}(e,i,a));return a._s.get(e)}return i=s?a:t,n.$id=e,n}function Aj(e,t){return Array.isArray(t)?t.reduce((t,a)=>(t[a]=function(){return e(this.$pinia)[a]},t),{}):Object.keys(t).reduce((a,i)=>(a[i]=function(){const a=e(this.$pinia),s=t[i];return"function"==typeof s?s.call(this,a):a[s]},a),{})}const Rj=function(e,t,a={},i=null){const s=`${i||window.fluentSupportAdmin.rest.url}/${t}`,n={"X-WP-Nonce":window.fluentSupportAdmin.rest.nonce};return-1!==["PUT","PATCH","DELETE"].indexOf(e.toUpperCase())&&(n["X-HTTP-Method-Override"]=e,e="POST"),window.jQuery.ajax({url:s,type:e,data:a,headers:n})},Oj={get:(e,t={},a=null)=>Rj("GET",e,t,a),post:(e,t={},a=null)=>Rj("POST",e,t,a),delete:(e,t={},a=null)=>Rj("DELETE",e,t,a),put:(e,t={},a=null)=>Rj("PUT",e,t,a),patch:(e,t={},a=null)=>Rj("PATCH",e,t,a)};jQuery(document).ajaxSuccess((e,t,a)=>{const i=t.getResponseHeader("X-WP-Nonce");i&&(window.fluentSupportAdmin.rest.nonce=i)}),jQuery(e=>{e.ajaxSetup({success:function(e,t,a){const i=a.getResponseHeader("X-WP-Nonce");i&&(window.fluentSupportAdmin.rest.nonce=i)},error:function(e,t,a){e.responseJSON&&"rest_cookie_invalid_nonce"==e.responseJSON.code&&jQuery.post(window.fluentSupportAdmin.ajaxurl,{action:"fluent_support_renew_rest_nonce"}).then(e=>{window.fluentSupportAdmin.rest.nonce=e.nonce})}})});const Nj={fetchList:e=>Oj.get("tickets",e),bulkAction:e=>Oj.post("tickets/bulk-actions",e),bulkClose:e=>Oj.post("tickets/bulk-actions",{...e,bulk_action:"close_tickets"}),bulkDelete:e=>Oj.post("tickets/bulk-actions",{...e,bulk_action:"delete_tickets"}),saveLabelSearch:e=>Oj.post("tickets/label-search",e),fetchLabelSearches:()=>Oj.get("tickets/label-search"),deleteLabelSearch:e=>Oj.delete("tickets/"+e+"/label-search")};function Ij(e){var t,a;try{return JSON.stringify({filters:"advanced"!==e.filter_type?e.filters:null,search:"advanced"!==e.filter_type?e.search:null,filter_type:e.filter_type,advanced_filters:"advanced"===e.filter_type?e.advanced_filters:null,order_by:e.order_by,order_type:e.order_type,page:(null==(t=e.pagination)?void 0:t.current_page)||1,per_page:(null==(a=e.pagination)?void 0:a.per_page)||10})}catch(PI){return""}}const Dj=Tj("ticketList",{state:()=>({tickets:[],pagination:{current_page:1,total:0,per_page:10},ticket_statuses_group:{},filters:{status_type:"open",product_id:[],agent_id:[],agent_group:[],priority:[],client_priority:[],waiting_for_reply:"",ticket_tags:[],mailbox_id:[],watcher:""},search:"",searchActive:!1,order_by:"last_customer_response",order_type:"ASC",filter_type:"simple",advanced_filters:[[]],label_search_id:"",label_search_name:"",labelSearchList:[],ticket_selections:[],loading:!1,first_time_loading:!0,app_ready:!1,appReady:!1,doing_bulk:!1,fieldVisibility:{title:!0,author:!0,tags:!0,source:!0,description:!0,response_count:!0,product:!0,mailbox:!0,agent:!0,status:!0,client_priority:!0,waiting_time:!0},gridFieldVisibility:{title:!0,author:!0,tags:!0,source:!0,description:!0,response_count:!0,product:!0,mailbox:!1,agent:!0,status:!1,client_priority:!0,waiting_time:!0},ticketLayout:"default",viewMode:"list",cache_metadata:{last_fetch_time:null,cache_key_hash:null,is_stale:!1},_fetchId:0}),getters:{activeFilters(e){if(!e.filters)return{};const t={};return e.filters.product_id&&e.filters.product_id.length>0&&(t.product_id=e.filters.product_id),e.filters.agent_id&&e.filters.agent_id.length>0&&(t.agent_id=e.filters.agent_id),e.filters.priority&&e.filters.priority.length>0&&(t.priority=e.filters.priority),e.filters.client_priority&&e.filters.client_priority.length>0&&(t.client_priority=e.filters.client_priority),e.filters.ticket_tags&&e.filters.ticket_tags.length>0&&(t.ticket_tags=e.filters.ticket_tags),e.filters.mailbox_id&&e.filters.mailbox_id.length>0&&(t.mailbox_id=e.filters.mailbox_id),e.filters.agent_group&&e.filters.agent_group.length>0&&(t.agent_group=e.filters.agent_group),t},selectAllChecked:e=>e.tickets.length>0&&e.ticket_selections.length===e.tickets.length,isIndeterminate:e=>e.ticket_selections.length>0&&e.ticket_selections.length<e.tickets.length,isCacheValid:e=>!(!e.cache_metadata.last_fetch_time||e.cache_metadata.is_stale)&&Date.now()-e.cache_metadata.last_fetch_time<3e5,filterHash:e=>Ij({filters:e.filters,search:e.search,filter_type:e.filter_type,advanced_filters:e.advanced_filters,order_by:e.order_by,order_type:e.order_type,pagination:e.pagination}),hasCachedDataForCurrentFilters:e=>!!e.cache_metadata.cache_key_hash&&e.cache_metadata.cache_key_hash===Ij({filters:e.filters,search:e.search,filter_type:e.filter_type,advanced_filters:e.advanced_filters,order_by:e.order_by,order_type:e.order_type,pagination:e.pagination}),shouldShowCache(){return this.isCacheValid&&this.hasCachedDataForCurrentFilters&&this.tickets.length>0}},actions:{async fetchTickets(e=!1,t=!1){if(!e&&this.shouldShowCache)return;const a=++this._fetchId;this.ticket_selections=[],t||(this.loading=!0);try{const e=this._buildQuery(),t=await Nj.fetchList(e);if(a!==this._fetchId)return;if(t.tickets.total&&!t.tickets.from&&this.pagination.current_page>1)return this.pagination.current_page=1,this.fetchTickets(!0);this.tickets=t.tickets.data,this.pagination.total=t.tickets.total,this.cache_metadata.last_fetch_time=Date.now(),this.cache_metadata.cache_key_hash=this.filterHash,this.cache_metadata.is_stale=!1}catch(i){throw i}finally{a===this._fetchId&&(this.loading=!1,this.first_time_loading=!1)}},_buildQuery(){var e;const t={page:this.pagination.current_page,per_page:this.pagination.per_page,order_by:this.order_by,order_type:this.order_type,filter_type:this.filter_type},a=null==(e=window.fluentSupportAdmin)?void 0:e.has_pro;return"advanced"===this.filter_type&&a?t.advanced_filters=JSON.stringify(this.advanced_filters):(t.filters=this.filters,t.search=this.search,a||(t.filter_type="simple",this.filter_type="simple")),t},invalidateCache(){this.cache_metadata.is_stale=!0,this.cache_metadata.last_fetch_time=null,this.cache_metadata.cache_key_hash=null},setStatus(e){this.filters.status_type=e},resetFilters(e){this.filters={status_type:"open",product_id:[],agent_id:[],agent_group:[],priority:[],client_priority:[],waiting_for_reply:"",ticket_tags:[],mailbox_id:[],watcher:""},this.search="",this.order_type="ASC",this.order_by="last_customer_response",this.pagination.current_page=1,e&&e.agent_id&&(this.filters.agent_id=e.agent_id),e&&e.watcher&&(this.filters.watcher=e.watcher)},resetWithOutFetch(){this.filters={status_type:"open",product_id:[],agent_id:[],agent_group:[],priority:[],client_priority:[],waiting_for_reply:"",ticket_tags:[],mailbox_id:[],watcher:""},this.search="",this.pagination.current_page=1},clearAllFilters(){this.filters={...this.filters,status_type:"open",mailbox_id:[],product_id:[],agent_id:[],agent_group:[],priority:[],client_priority:[],ticket_tags:[],waiting_for_reply:"",watcher:""}},resetAdvancedFilters(){this.advanced_filters=[[]]},handleCustomFilter(e,t){switch(e){case"status":this.filters.status_type=t;break;case"priority":this.filters.priority=Array.isArray(t)?t:[t];break;case"client_priority":this.filters.client_priority=Array.isArray(t)?t:[t];break;case"agent_id":this.filters.agent_id=Array.isArray(t)?t:[t];break;case"product_id":this.filters.product_id=Array.isArray(t)?t:[t];break;case"mailbox_id":this.filters.mailbox_id=Array.isArray(t)?t:[t];break;case"ticket_tags":this.filters.ticket_tags=Array.isArray(t)?t.map(e=>parseInt(e)):[parseInt(t)];break;case"agent_group":this.filters.agent_group=Array.isArray(t)?t.map(e=>parseInt(e)):[parseInt(t)]}},handleSelectAll(e){this.ticket_selections=e?this.tickets.map(e=>e.id):[]},handleTicketSelection(e){const t=this.ticket_selections.indexOf(e);t>-1?this.ticket_selections.splice(t,1):this.ticket_selections.push(e)},deleteSelected(){if(this.ticket_selections.length)return this.doing_bulk=!0,Nj.bulkDelete({ticket_ids:this.ticket_selections}).then(()=>{this.invalidateCache()}).always(()=>{this.doing_bulk=!1})},closeSelected(){return this.doing_bulk=!0,Nj.bulkClose({ticket_ids:this.ticket_selections,bulk_action:"close_tickets"}).then(()=>{this.invalidateCache()}).always(()=>{this.doing_bulk=!1})},handleSaveSearch:e=>Nj.saveLabelSearch({query:e}),fetchLabelSearches(){return Nj.fetchLabelSearches().then(e=>{this.labelSearchList=e})},handleLabelSearchDelete(e){return Nj.deleteLabelSearch(e).then(t=>(t&&(this.label_search_id===e&&(this.label_search_id=null),this.labelSearchList=this.labelSearchList.filter(t=>t.id!==e)),t))},handleAdvanceSearch(e){this.advanced_filters=JSON.parse(e.advanced_filters),this.filter_type=e.filter_type,this.label_search_name="",this.label_search_id=""},handleLabelSearchEdit(e){this.advanced_filters=JSON.parse(e.advanced_filters),this.filter_type=e.filter_type,this.label_search_name=e.label_search_name,this.label_search_id=e.id}}}),Mj={name:"TicketsMenu",components:{IconPack:$z},props:{isCollapsed:{type:Boolean,default:!1}},emits:["toggle-collapse"],data(){return{isMobile:!1,dynamicRoutes:[{name:"allTickets",label:"All Tickets",to:{name:"tickets"},icon:"Tickets",onClick:()=>this.saveRoutes()},{name:"myTickets",label:"My Tickets",to:{name:"tickets",query:{agent_id:this.appVars.me.id}},icon:"User",onClick:()=>this.saveRoutes({agent_id:this.appVars.me.id})},{name:"unassignedTickets",label:"Unassigned",to:{name:"tickets",query:{agent_id:"unassigned"}},icon:"View",onClick:()=>this.saveRoutes({agent_id:"unassigned"})},...this.has_pro?[{name:"mentionedTickets",label:"Bookmarks",to:{name:"tickets",query:{watcher:"watcher",agent_id:this.appVars.me.id}},icon:"CollectionTag",onClick:()=>this.saveRoutes({watcher:"watcher",agent_id:this.appVars.me.id})}]:[]]}},computed:{...Aj(Dj,{storeTickets:"tickets"}),currentTickets(){return"view_ticket"===this.$route.name&&this.storeTickets&&this.storeTickets.length?this.storeTickets:null},isViewingTicket(){return"view_ticket"===this.$route.name},hasViewRoute(){return this.$route.name&&this.$route.name.includes("view")},isAll(){return this.$route.query.agent_id},isMine(){return!("watcher"!==this.$route.query.watcher&&this.appVars.me.id===parseInt(this.$route.query.agent_id))},isUnassigned(){return!("unassigned"===this.$route.query.agent_id&&!this.$route.query.watcher)},isMentioned(){return!("watcher"===this.$route.query.watcher&&this.appVars.me.id===parseInt(this.$route.query.agent_id))}},methods:{getExcerpt(e){let t=e.preview_response?e.preview_response.content:e.content;return t?(t=t.replace(/<\/?("[^"]*"|'[^']*'|[^>])*(>|$)/g,""),t.substring(0,100)):""},isCurrentRouteMatched(e){const t={allTickets:this.isAll,myTickets:this.isMine,unassignedTickets:this.isUnassigned,mentionedTickets:this.isMentioned};return e in t&&t[e]},isRouteActive(e){return!this.isCurrentRouteMatched(e)},saveRoutes(e={}){this.$saveData("routesData",JSON.stringify(e))},handleKeydown(e){const{metaKey:t,shiftKey:a,code:i}=e;if(!t||!a)return;const s={KeyA:()=>this.$router.push(this.dynamicRoutes[0].to),KeyM:()=>this.$router.push(this.dynamicRoutes[1].to),KeyU:()=>this.$router.push(this.dynamicRoutes[2].to),KeyB:()=>{var e;return this.$router.push(null==(e=this.dynamicRoutes[3])?void 0:e.to)}}[i];s&&(e.preventDefault(),s())}},mounted(){this.isMobile=window.innerWidth<768,"yes"===this.appVars.keyboard_shortcuts&&window.addEventListener("keydown",this.handleKeydown)},unmounted(){"yes"===this.appVars.keyboard_shortcuts&&window.removeEventListener("keydown",this.handleKeydown)}},Lj={class:"fs_ticket_nav"},Pj=["title","alt","src"],Fj={class:"fs_ticket_content"},$j={class:"fs_ticket_title_row"},Bj={class:"fs_ticket_title_text"},Vj={class:"fs_ticket_meta_row"},Uj={class:"fs_ticket_excerpt"},Hj=["data-ticket-time"],zj={key:0,class:"fs_sidebar_header"},Yj={class:"fs_sidebar_title"},Gj=["src"],Wj={class:"fs_sidebar_items"},jj={key:2,class:"fs_sidebar_label"};const qj={name:"ticketsView",components:{TicketsMenu:dH(Mj,[["render",function(e,t,a,i,s,n){const o=Zl("router-link"),r=gO,l=vk,c=Zl("IconPack"),d=KE;return n.currentTickets&&!s.isMobile?(Hd(),jd("div",{key:0,class:ne(["fs_tickets_tiny_nav",{"is-collapsed":a.isCollapsed}])},[tu(r,null,{default:br(()=>[vr(eu("div",Lj,[(Hd(!0),jd(Pd,null,sc(n.currentTickets,t=>(Hd(),qd(o,{key:t.id,to:{name:"view_ticket",params:{ticket_id:t.id}},class:"fs_ticket_card"},{default:br(()=>[t.customer?(Hd(),jd("img",{key:0,title:t.customer.email+" - "+t.customer.full_name,alt:t.customer.full_name,class:"fs_ticket_avatar",src:t.customer.photo},null,8,Pj)):ou("",!0),eu("div",Fj,[eu("div",$j,[eu("p",Bj,fe(t.title),1)]),eu("div",Vj,[eu("p",Uj,fe(n.getExcerpt(t)),1),eu("p",{class:"fs_ticket_time","data-ticket-time":t.updated_at||t.created_at},fe(e.$timeDiff(t.updated_at||t.created_at)),9,Hj)])])],void 0),_:2},1032,["to"]))),128))],512),[[vp,!a.isCollapsed]])],void 0),_:1})],2)):(Hd(),jd("div",{key:1,class:ne(["fs_tk_inner_sidebar",{"is-collapsed":a.isCollapsed,"has-view-route":n.hasViewRoute}])},[n.isViewingTicket?ou("",!0):(Hd(),jd("div",zj,[eu("h3",Yj,fe(e.$t("Ticket Filters")),1),tu(l,{class:ne(["fs_tickets_collapse_btn",{collapsed:a.isCollapsed}]),onClick:t[0]||(t[0]=t=>e.$emit("toggle-collapse")),title:e.$t(a.isCollapsed?"Expand Sidebar":"Collapse Sidebar"),text:""},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/arrowLeftLine.svg",alt:""},null,8,Gj)],void 0),_:1},8,["class","title"])])),eu("div",Wj,[eu("ul",null,[(Hd(!0),jd(Pd,null,sc(s.dynamicRoutes,(t,i)=>(Hd(),jd("li",{key:`${t.name}-${i}`},[tu(o,{class:ne({router_not_exactly_matched:n.isCurrentRouteMatched(t.name)}),to:t.to,onClick:t.onClick},{default:br(()=>[a.isCollapsed?(Hd(),qd(d,{key:0,content:e.$t(t.label),placement:"right",enterable:!0,"popper-class":t.name},{default:br(()=>[tu(c,{"icon-key":t.icon,class:"fs_sidebar_icons",width:20,height:20,fill:n.isRouteActive(t.name)?"var(--fs-text-primary)":"var(--fs-text-secondary)"},null,8,["icon-key","fill"])],void 0),_:2},1032,["content","popper-class"])):(Hd(),qd(c,{key:1,"icon-key":t.icon,class:"fs_sidebar_icons",width:20,height:20,fill:n.isRouteActive(t.name)?"var(--fs-text-primary)":"var(--fs-text-secondary)"},null,8,["icon-key","fill"])),a.isCollapsed?ou("",!0):(Hd(),jd("span",jj,fe(e.$t(t.label)),1))],void 0),_:2},1032,["class","to","onClick"])]))),128))])])],2))}]])},data(){let e=!1;try{if("function"==typeof this.$getData)e=this.$getData("ticketsMenuCollapsed");else{const t=window.localStorage.getItem("__fluentsupport_data");if(t){const a=JSON.parse(t);a&&a.ticketsMenuCollapsed&&(e=a.ticketsMenuCollapsed)}}}catch(PI){e=!1}return{isSidebarCollapsed:"yes"===e,viewedTicket:null}},computed:{...Aj(Dj,{storeTickets:"tickets"}),isViewingTicket(){return"view_ticket"===this.$route.name},currentTicketId(){return this.$route.params.ticket_id||""},currentTicket(){const e=String(this.currentTicketId||""),t=this.viewedTicket;return!t||String(t.id)!==e&&String(t.serial_number||"")!==e?(this.storeTickets||[]).find(t=>String(t.id)===e||String(t.serial_number||"")===e):t},currentTicketNumber(){const e=this.currentTicket;return e?e.display_ticket_number||e.serial_number||e.id:this.currentTicketId},currentActualTicketNumber(){const e=this.currentTicket;return e?e.id:this.currentTicketId},currentTickets(){return"view_ticket"!==this.$route.name?null:this.storeTickets&&this.storeTickets.length>0?this.storeTickets:null}},watch:{"$route.name"(){this.loadRouteDataFromLocalStorage()},currentTicketId(){this.viewedTicket=null}},methods:{toggleSidebar(){this.isSidebarCollapsed=!this.isSidebarCollapsed,this.$saveData("ticketsMenuCollapsed",this.isSidebarCollapsed?"yes":"no")},loadRouteDataFromLocalStorage(){const e=this.$route.name,t=this.$getData("routesData");if("tickets"!==e||!t||0===Object.keys(t).length)return;const a="string"==typeof t?JSON.parse(t):t;"agent_id"in a&&"unassigned"!==a.agent_id&&(a.agent_id=this.appVars.me.id),this.$router.replace({name:"tickets",query:a})},setViewedTicket(e){const t=e&&e.detail&&e.detail.response&&e.detail.response.ticket;t&&(this.viewedTicket=t)}},mounted(){document.body.addEventListener("fs_ticket_viewed",this.setViewedTicket),this.loadRouteDataFromLocalStorage()},beforeUnmount(){document.body.removeEventListener("fs_ticket_viewed",this.setViewedTicket)}},Kj={class:"fs_tickets_view_wrapper"},Xj={key:0,class:"fs_combined_top_bar"},Qj={class:"fs_top_bar_left"},Zj={class:"fs_filtered_tickets_section"},Jj={key:0,class:"fs_filtered_tickets_title"},eq={key:1,class:"fs_filtered_tickets_title"},tq=["src"],aq={key:0,class:"fs_top_bar_right"},iq={class:"fs_breadcrumbs_group"},sq={class:"fs_breadcrumb_item"},nq={class:"fs_breadcrumb_separator"},oq={class:"fs_breadcrumb_item"},rq={class:"fs_breadcrumb_current"},lq={class:"fs_tk_inner_body"};const cq=dH(qj,[["render",function(e,t,a,i,s,n){const o=vk,r=Zl("router-link"),l=Zl("ArrowRight"),c=jx,d=KE,u=Zl("tickets-menu"),p=Zl("router-view");return Hd(),jd("div",Kj,[n.isViewingTicket?(Hd(),jd("div",Xj,[eu("div",Qj,[eu("div",Zj,[n.currentTickets&&n.currentTickets.length?(Hd(),jd("h3",Jj,fe(e.$t("Filtered Tickets")),1)):(Hd(),jd("h3",eq,fe(e.$t("Ticket Filters")),1)),tu(o,{class:ne(["fs_tickets_collapse_btn",{collapsed:s.isSidebarCollapsed}]),onClick:n.toggleSidebar,title:e.$t(s.isSidebarCollapsed?"Expand Sidebar":"Collapse Sidebar"),text:""},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/arrowLeftLine.svg",alt:""},null,8,tq)],void 0),_:1},8,["class","onClick","title"])])]),n.isViewingTicket?(Hd(),jd("div",aq,[eu("div",iq,[eu("div",sq,[tu(r,{to:"/tickets",class:"fs_breadcrumb_link"},{default:br(()=>[su(fe(e.$t("All Tickets")),1)],void 0),_:1})]),eu("div",nq,[tu(c,null,{default:br(()=>[tu(l)],void 0),_:1})]),eu("div",oq,[tu(d,{effect:"dark",content:e.$t("Internal Ticket ID")+": #"+n.currentActualTicketNumber,placement:"top",trigger:"hover"},{default:br(()=>[eu("span",rq,"#"+fe(n.currentTicketNumber),1)],void 0),_:1},8,["content"])])]),t[0]||(t[0]=eu("div",{id:"fs_top_bar_actions_slot",class:"fs_top_bar_actions"},null,-1))])):ou("",!0)])):ou("",!0),eu("div",{class:ne(["fs_tickets_view",{"sidebar-collapsed":s.isSidebarCollapsed}])},[tu(u,{"is-collapsed":s.isSidebarCollapsed,onToggleCollapse:n.toggleSidebar},null,8,["is-collapsed","onToggleCollapse"]),eu("div",lq,[tu(p,{key:"tickets_view"})])],2)])}]]);const dq=dH({name:"Pagination",props:{pagination:{required:!0,type:Object},layout:{type:String,default:"total, sizes, prev, pager, next"},background:{type:[Boolean,String],default:!1}},emits:["fetch"],computed:{page_sizes:()=>[10,20,50,80,100,120,150]},methods:{changePage(e){this.pagination.current_page=e,this.$emit("fetch")},changeSize(e){this.pagination.per_page=e,this.$emit("fetch")}}},[["render",function(e,t,a,i,s,n){const o=_L;return Hd(),qd(o,{background:a.background,layout:a.layout,onCurrentChange:n.changePage,onSizeChange:n.changeSize,"hide-on-single-page":!1,"current-page":a.pagination.current_page,"page-sizes":n.page_sizes,"page-size":a.pagination.per_page,total:a.pagination.total},null,8,["background","layout","onCurrentChange","onSizeChange","current-page","page-sizes","page-size","total"])}]]);var uq=function(e,t){for(var a=-1,i=null==e?0:e.length;++a<i&&!1!==t(e[a],a,e););return e};var pq=function(e){return function(t,a,i){for(var s=-1,n=Object(t),o=i(t),r=o.length;r--;){var l=o[e?r:++s];if(!1===a(n[l],l,n))break}return t}}();var hq=function(e,t){for(var a=-1,i=Array(e);++a<e;)i[a]=t(a);return i},gq="object"==typeof Tk&&Tk&&Tk.Object===Object&&Tk,mq=gq,fq="object"==typeof self&&self&&self.Object===Object&&self,_q=mq||fq||Function("return this")(),bq=_q.Symbol,vq=bq,yq=Object.prototype,Sq=yq.hasOwnProperty,xq=yq.toString,wq=vq?vq.toStringTag:void 0;var Eq=function(e){var t=Sq.call(e,wq),a=e[wq];try{e[wq]=void 0;var i=!0}catch(PI){}var s=xq.call(e);return i&&(t?e[wq]=a:delete e[wq]),s},Cq=Object.prototype.toString;var kq=Eq,Tq=function(e){return Cq.call(e)},Aq=bq?bq.toStringTag:void 0;var Rq=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Aq&&Aq in Object(e)?kq(e):Tq(e)};var Oq=function(e){return null!=e&&"object"==typeof e},Nq=Rq,Iq=Oq;var Dq=function(e){return Iq(e)&&"[object Arguments]"==Nq(e)},Mq=Oq,Lq=Object.prototype,Pq=Lq.hasOwnProperty,Fq=Lq.propertyIsEnumerable,$q=Dq(function(){return arguments}())?Dq:function(e){return Mq(e)&&Pq.call(e,"callee")&&!Fq.call(e,"callee")},Bq=Array.isArray;const Vq=Ak(Bq);var Uq,Hq,zq,Yq,Gq,Wq,jq,qq,Kq={exports:{}};Uq=Kq,zq=_q,Yq=function(){return!1},Gq=(Hq=Kq.exports)&&!Hq.nodeType&&Hq,Wq=Gq&&Uq&&!Uq.nodeType&&Uq,jq=Wq&&Wq.exports===Gq?zq.Buffer:void 0,qq=(jq?jq.isBuffer:void 0)||Yq,Uq.exports=qq;var Xq=Kq.exports,Qq=/^(?:0|[1-9]\d*)$/;var Zq=function(e,t){var a=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==a||"symbol"!=a&&Qq.test(e))&&e>-1&&e%1==0&&e<t};var Jq=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},eK=Rq,tK=Jq,aK=Oq,iK={};iK["[object Float32Array]"]=iK["[object Float64Array]"]=iK["[object Int8Array]"]=iK["[object Int16Array]"]=iK["[object Int32Array]"]=iK["[object Uint8Array]"]=iK["[object Uint8ClampedArray]"]=iK["[object Uint16Array]"]=iK["[object Uint32Array]"]=!0,iK["[object Arguments]"]=iK["[object Array]"]=iK["[object ArrayBuffer]"]=iK["[object Boolean]"]=iK["[object DataView]"]=iK["[object Date]"]=iK["[object Error]"]=iK["[object Function]"]=iK["[object Map]"]=iK["[object Number]"]=iK["[object Object]"]=iK["[object RegExp]"]=iK["[object Set]"]=iK["[object String]"]=iK["[object WeakMap]"]=!1;var sK=function(e){return aK(e)&&tK(e.length)&&!!iK[eK(e)]};var nK=function(e){return function(t){return e(t)}},oK={exports:{}};!function(e,t){var a=gq,i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,n=s&&s.exports===i&&a.process,o=function(){try{var e=s&&s.require&&s.require("util").types;return e||n&&n.binding&&n.binding("util")}catch(PI){}}();e.exports=o}(oK,oK.exports);var rK=oK.exports,lK=sK,cK=nK,dK=rK&&rK.isTypedArray,uK=dK?cK(dK):lK,pK=hq,hK=$q,gK=Bq,mK=Xq,fK=Zq,_K=uK,bK=Object.prototype.hasOwnProperty;var vK=function(e,t){var a=gK(e),i=!a&&hK(e),s=!a&&!i&&mK(e),n=!a&&!i&&!s&&_K(e),o=a||i||s||n,r=o?pK(e.length,String):[],l=r.length;for(var c in e)!t&&!bK.call(e,c)||o&&("length"==c||s&&("offset"==c||"parent"==c)||n&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||fK(c,l))||r.push(c);return r},yK=Object.prototype;var SK=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||yK)};var xK=function(e,t){return function(a){return e(t(a))}},wK=xK(Object.keys,Object),EK=SK,CK=wK,kK=Object.prototype.hasOwnProperty;var TK=function(e){if(!EK(e))return CK(e);var t=[];for(var a in Object(e))kK.call(e,a)&&"constructor"!=a&&t.push(a);return t};var AK=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},RK=Rq,OK=AK;var NK=function(e){if(!OK(e))return!1;var t=RK(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},IK=NK,DK=Jq;var MK=function(e){return null!=e&&DK(e.length)&&!IK(e)},LK=vK,PK=TK,FK=MK;var $K=pq,BK=function(e){return FK(e)?LK(e):PK(e)};var VK=MK;var UK=function(e,t){return function(a,i){if(null==a)return a;if(!VK(a))return e(a,i);for(var s=a.length,n=t?s:-1,o=Object(a);(t?n--:++n<s)&&!1!==i(o[n],n,o););return a}},HK=UK(function(e,t){return e&&$K(e,t,BK)});var zK=function(e){return e};var YK=uq,GK=HK,WK=function(e){return"function"==typeof e?e:zK},jK=Bq;const qK=Ak(function(e,t){return(jK(e)?YK:GK)(e,WK(t))});const KK=dH({name:"ImagePasteUploader",data(){return{upload_url:this.appVars.rest.url+"/ticket_file_upload",upload_data:{ticket_id:"",intended_ticket_hash:this.appVars.intended_ticket_hash,is_agent:""},file_lists:[],requestHeaders:{"X-WP-Nonce":this.appVars.rest.nonce},error_message:"",dialogImageUrl:"",dialogImageTitle:"",dialogVisible:!1}},methods:{handleImagePaste(e,t,a){this.upload_data.ticket_id=t,this.upload_data.is_agent=a;const i=e.clipboardData||window.clipboardData;if(i&&i.items)for(let s=0;s<i.items.length;s++){const t=i.items[s];if("file"===t.kind&&-1!==t.type.indexOf("image")){const a=t.getAsFile();if(a){const e=new File([a],a.name,{type:a.type});this.uploadImage(e)}e.preventDefault()}else this.$notify({message:this.$t("Invalid image"),type:"error"})}},uploadImage(e){const t=new FormData;(e instanceof Blob||e instanceof File)&&(t.append("file",e),t.append("ticket_id",this.upload_data.ticket_id),t.append("is_agent",this.upload_data.is_agent),t.append("intended_ticket_hash",this.appVars.intended_ticket_hash),t.append("type","direct_paste"),fetch(this.upload_url,{method:"POST",body:t,headers:{"X-WP-Nonce":this.appVars.rest.nonce}}).then(e=>e.ok?e.json():e.json().then(e=>{throw new Error(e.file.mimetypes||"Upload failed")})).then(e=>{this.$notify({message:this.$t("Image successfully uploaded."),type:"success"}),this.$emit("imagePath",e.attachments)}).catch(e=>{this.$notify({message:e,type:"error"})}))}}},[["render",function(e,t,a,i,s,n){return Hd(),jd("div")}],["__scopeId","data-v-2c3a2f0a"]]),XK={class:"fs_template_inserter"},QK={class:"fs_template_filters"},ZK={class:"fs_filter_item"},JK={class:"fs_filter_label"},eX={class:"fs_filter_item"},tX={class:"fs_filter_label"},aX={class:"doc_blocks fs_saved_blocks"},iX={key:0,class:"fs_saved_replies"},sX=["onClick"],nX={class:"fs_reply_title"},oX={key:0,class:"fs_reply_badge"},rX={class:"fs_reply_excerpt"},lX={key:1,class:"fs_template_empty"},cX={key:2,class:"fs_pagination_wrapper"},dX={class:"fs_pagination_left"},uX={class:"fs_pagination_right"};const pX=dH({name:"TemplateInserter",components:{Pagination:dq},data(){return{selected_product:"",search:"",products:this.appVars.support_products,replies:[],visible:!1,loading:!1,pagination:{per_page:10,current_page:1,total:0}}},methods:{async searchTemplates(){this.loading=!0;try{const e=await this.$get("saved-replies",{page:this.pagination.current_page,product_id:this.selected_product,search:this.search,per_page:this.pagination.per_page});window.fst_last_replies=e.replies,window.fst_last_replies.product_id=this.selected_product,window.fst_last_replies.search=this.search,this.replies=e.replies.data,this.pagination.total=e.replies.total}catch(e){this.$handleError(e)}finally{this.loading=!1}},initModal(){this.visible=!this.visible,this.visible&&!window.fst_last_replies&&this.searchTemplates()},insertReply(e){this.$emit("insert",e.content),this.visible=!1},getExcerpt:(e,t=200)=>e?e.replace(/<\/?("[^"]*"|'[^']*'|[^>])*(>|$)/g,"").substring(0,t)+"...":""},mounted(){window.fst_last_replies&&(this.selected_product=window.fst_last_replies.product_id,this.search=window.fst_last_replies.search,this.replies=window.fst_last_replies.data,this.pagination.total=window.fst_last_replies.total,this.pagination.current_page=window.fst_last_replies.current_page)}},[["render",function(e,t,a,i,s,n){const o=Zl("ArrowDown"),r=jx,l=vk,c=bA,d=_A,u=Zl("Search"),p=oC,h=Zl("pagination"),g=$B,m=q$;return Hd(),qd(g,{placement:"bottom-start",width:640,trigger:"manual",visible:s.visible,"popper-class":"fs_popover fs_template_popover"},{reference:br(()=>[tu(l,{class:"fs_text_btn",onClick:t[0]||(t[0]=e=>n.initModal()),size:"small",type:"default"},{default:br(()=>[su(fe(e.$t("Templates"))+" ",1),tu(r,{class:"el-icon--right"},{default:br(()=>[tu(o)],void 0),_:1})],void 0),_:1})]),default:br(()=>[eu("div",XK,[eu("div",QK,[eu("div",ZK,[eu("label",JK,fe(e.$t("Product")),1),tu(d,{onChange:t[1]||(t[1]=e=>n.searchTemplates()),clearable:"",modelValue:s.selected_product,"onUpdate:modelValue":t[2]||(t[2]=e=>s.selected_product=e),placeholder:e.$t("All Products"),class:"fs_select_field fs_template_select"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.products,e=>(Hd(),qd(c,{label:e.title,value:e.id,key:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder"])]),eu("div",eX,[eu("label",tX,fe(e.$t("Search")),1),tu(p,{onKeyup:t[3]||(t[3]=Rh(e=>n.searchTemplates(),["enter"])),onClear:t[4]||(t[4]=e=>n.searchTemplates()),clearable:"",placeholder:e.$t("Search replies"),modelValue:s.search,"onUpdate:modelValue":t[5]||(t[5]=e=>s.search=e),class:"fs_text_input fs_table_search_input fs_template_search_input"},{prefix:br(()=>[tu(r,{class:"el-input__icon"},{default:br(()=>[tu(u)],void 0),_:1})]),_:1},8,["placeholder","modelValue"])])]),vr((Hd(),jd("div",aX,[s.replies.length?(Hd(),jd("ul",iX,[(Hd(!0),jd(Pd,null,sc(s.replies,e=>{var t;return Hd(),jd("li",{class:"fs_saved_reply_item",onClick:t=>n.insertReply(e),key:e.id},[eu("div",nX,[eu("span",null,fe(e.title),1),(null==(t=e.product)?void 0:t.title)?(Hd(),jd("span",oX,fe(e.product.title),1)):ou("",!0)]),eu("p",rX,fe(n.getExcerpt(e.content)),1)],8,sX)}),128))])):(Hd(),jd("div",lX,[eu("p",null,fe(e.$t("No saved replies found.")),1)])),s.pagination.total?(Hd(),jd("div",cX,[eu("span",dX,[eu("p",null,"Page "+fe(s.pagination.current_page)+" of "+fe(Math.ceil(s.pagination.total/s.pagination.per_page)),1),tu(h,{onFetch:t[6]||(t[6]=e=>n.searchTemplates()),pagination:s.pagination,layout:"sizes"},null,8,["pagination"])]),eu("span",uX,[tu(h,{onFetch:t[7]||(t[7]=e=>n.searchTemplates()),pagination:s.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ou("",!0)])),[[m,s.loading]])])],void 0),_:1},8,["visible"])}]]);function hX(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var gX={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function mX(e){gX=e}var fX={exec:()=>null};function _X(e,t=""){let a="string"==typeof e?e:e.source,i={replace:(e,t)=>{let s="string"==typeof t?t:t.source;return s=s.replace(vX.caret,"$1"),a=a.replace(e,s),i},getRegex:()=>new RegExp(a,t)};return i}var bX=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),vX={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},yX=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,SX=/(?:[*+-]|\d{1,9}[.)])/,xX=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wX=_X(xX).replace(/bull/g,SX).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),EX=_X(xX).replace(/bull/g,SX).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),CX=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,kX=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,TX=_X(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",kX).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),AX=_X(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,SX).getRegex(),RX="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",OX=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,NX=_X("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",OX).replace("tag",RX).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),IX=_X(CX).replace("hr",yX).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",RX).getRegex(),DX={blockquote:_X(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",IX).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:TX,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:yX,html:NX,lheading:wX,list:AX,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:IX,table:fX,text:/^[^\n]+/},MX=_X("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",yX).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",RX).getRegex(),LX={...DX,lheading:EX,table:MX,paragraph:_X(CX).replace("hr",yX).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",MX).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",RX).getRegex()},PX={...DX,html:_X("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",OX).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:fX,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_X(CX).replace("hr",yX).replace("heading"," *#{1,6} *[^\n]").replace("lheading",wX).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},FX=/^( {2,}|\\)\n(?!\s*$)/,$X=/[\p{P}\p{S}]/u,BX=/[\s\p{P}\p{S}]/u,VX=/[^\s\p{P}\p{S}]/u,UX=_X(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,BX).getRegex(),HX=/(?!~)[\p{P}\p{S}]/u,zX=_X(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",bX?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),YX=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,GX=_X(YX,"u").replace(/punct/g,$X).getRegex(),WX=_X(YX,"u").replace(/punct/g,HX).getRegex(),jX="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",qX=_X(jX,"gu").replace(/notPunctSpace/g,VX).replace(/punctSpace/g,BX).replace(/punct/g,$X).getRegex(),KX=_X(jX,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,HX).getRegex(),XX=_X("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,VX).replace(/punctSpace/g,BX).replace(/punct/g,$X).getRegex(),QX=_X(/\\(punct)/,"gu").replace(/punct/g,$X).getRegex(),ZX=_X(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),JX=_X(OX).replace("(?:--\x3e|$)","--\x3e").getRegex(),eQ=_X("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",JX).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),tQ=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,aQ=_X(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",tQ).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),iQ=_X(/^!?\[(label)\]\[(ref)\]/).replace("label",tQ).replace("ref",kX).getRegex(),sQ=_X(/^!?\[(ref)\](?:\[\])?/).replace("ref",kX).getRegex(),nQ=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,oQ={_backpedal:fX,anyPunctuation:QX,autolink:ZX,blockSkip:zX,br:FX,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:fX,emStrongLDelim:GX,emStrongRDelimAst:qX,emStrongRDelimUnd:XX,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:aQ,nolink:sQ,punctuation:UX,reflink:iQ,reflinkSearch:_X("reflink|nolink(?!\\()","g").replace("reflink",iQ).replace("nolink",sQ).getRegex(),tag:eQ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:fX},rQ={...oQ,link:_X(/^!?\[(label)\]\((.*?)\)/).replace("label",tQ).getRegex(),reflink:_X(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",tQ).getRegex()},lQ={...oQ,emStrongRDelimAst:KX,emStrongLDelim:WX,url:_X(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",nQ).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:_X(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",nQ).getRegex()},cQ={...lQ,br:_X(FX).replace("{2,}","*").getRegex(),text:_X(lQ.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},dQ={normal:DX,gfm:LX,pedantic:PX},uQ={normal:oQ,gfm:lQ,breaks:cQ,pedantic:rQ},pQ={"&":"&","<":"<",">":">",'"':""","'":"'"},hQ=e=>pQ[e];function gQ(e,t){if(t){if(vX.escapeTest.test(e))return e.replace(vX.escapeReplace,hQ)}else if(vX.escapeTestNoEncode.test(e))return e.replace(vX.escapeReplaceNoEncode,hQ);return e}function mQ(e){try{e=encodeURI(e).replace(vX.percentDecode,"%")}catch{return null}return e}function fQ(e,t){var a;let i=e.replace(vX.findPipe,(e,t,a)=>{let i=!1,s=t;for(;--s>=0&&"\\"===a[s];)i=!i;return i?"|":" |"}).split(vX.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!(null==(a=i.at(-1))?void 0:a.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(vX.slashPipe,"|");return i}function _Q(e,t,a){let i=e.length;if(0===i)return"";let s=0;for(;s<i;){if(e.charAt(i-s-1)!==t)break;s++}return e.slice(0,i-s)}function bQ(e,t,a,i,s){let n=t.href,o=t.title||null,r=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:a,href:n,title:o,text:r,tokens:i.inlineTokens(r)};return i.state.inLink=!1,l}var vQ=class{constructor(e){o(this,"options"),o(this,"rules"),o(this,"lexer"),this.options=e||gX}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:_Q(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],a=function(e,t,a){let i=e.match(a.other.indentCodeCompensation);if(null===i)return t;let s=i[1];return t.split("\n").map(e=>{let t=e.match(a.other.beginningSpace);if(null===t)return e;let[i]=t;return i.length>=s.length?e.slice(s.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:a}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=_Q(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:_Q(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=_Q(t[0],"\n").split("\n"),a="",i="",s=[];for(;e.length>0;){let t,n=!1,o=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))o.push(e[t]),n=!0;else{if(n)break;o.push(e[t])}e=e.slice(t);let r=o.join("\n"),l=r.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a}\n${r}`:r,i=i?`${i}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,s,!0),this.lexer.state.top=c,0===e.length)break;let d=s.at(-1);if("code"===(null==d?void 0:d.type))break;if("blockquote"===(null==d?void 0:d.type)){let t=d,n=t.raw+"\n"+e.join("\n"),o=this.blockquote(n);s[s.length-1]=o,a=a.substring(0,a.length-t.raw.length)+o.raw,i=i.substring(0,i.length-t.text.length)+o.text;break}if("list"===(null==d?void 0:d.type)){let t=d,n=t.raw+"\n"+e.join("\n"),o=this.list(n);s[s.length-1]=o,a=a.substring(0,a.length-d.raw.length)+o.raw,i=i.substring(0,i.length-t.raw.length)+o.raw,e=n.substring(s.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:a,tokens:s,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let a=t[1].trim(),i=a.length>1,s={type:"list",raw:"",ordered:i,start:i?+a.slice(0,-1):"",loose:!1,items:[]};a=i?`\\d{1,9}\\${a.slice(-1)}`:`\\${a}`,this.options.pedantic&&(a=i?a:"[*+-]");let n=this.rules.other.listItemRegex(a),o=!1;for(;e;){let a=!1,i="",r="";if(!(t=n.exec(e))||this.rules.block.hr.test(e))break;i=t[0],e=e.substring(i.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],d=!l.trim(),u=0;if(this.options.pedantic?(u=2,r=l.trimStart()):d?u=t[1].length+1:(u=t[2].search(this.rules.other.nonSpaceChar),u=u>4?1:u,r=l.slice(u),u+=t[1].length),d&&this.rules.other.blankLine.test(c)&&(i+=c+"\n",e=e.substring(c.length+1),a=!0),!a){let t=this.rules.other.nextBulletRegex(u),a=this.rules.other.hrRegex(u),s=this.rules.other.fencesBeginRegex(u),n=this.rules.other.headingBeginRegex(u),o=this.rules.other.htmlBeginRegex(u);for(;e;){let p,h=e.split("\n",1)[0];if(c=h,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),p=c):p=c.replace(this.rules.other.tabCharGlobal," "),s.test(c)||n.test(c)||o.test(c)||t.test(c)||a.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=u||!c.trim())r+="\n"+p.slice(u);else{if(d||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||s.test(l)||n.test(l)||a.test(l))break;r+="\n"+c}!d&&!c.trim()&&(d=!0),i+=h+"\n",e=e.substring(h.length+1),l=p.slice(u)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(i)&&(o=!0));let p,h=null;this.options.gfm&&(h=this.rules.other.listIsTask.exec(r),h&&(p="[ ] "!==h[0],r=r.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:i,task:!!h,checked:p,loose:!1,text:r,tokens:[]}),s.raw+=i}let r=s.items.at(-1);if(!r)return;r.raw=r.raw.trimEnd(),r.text=r.text.trimEnd(),s.raw=s.raw.trimEnd();for(let e=0;e<s.items.length;e++)if(this.lexer.state.top=!1,s.items[e].tokens=this.lexer.blockTokens(s.items[e].text,[]),!s.loose){let t=s.items[e].tokens.filter(e=>"space"===e.type),a=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));s.loose=a}if(s.loose)for(let e=0;e<s.items.length;e++)s.items[e].loose=!0;return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:a,title:i}}}table(e){var t;let a=this.rules.block.table.exec(e);if(!a||!this.rules.other.tableDelimiter.test(a[2]))return;let i=fQ(a[1]),s=a[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(null==(t=a[3])?void 0:t.trim())?a[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:a[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let e of s)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<i.length;e++)o.header.push({text:i[e],tokens:this.lexer.inline(i[e]),header:!0,align:o.align[e]});for(let e of n)o.rows.push(fQ(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=_Q(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let a=0;for(let i=0;i<e.length;i++)if("\\"===e[i])i++;else if(e[i]===t[0])a++;else if(e[i]===t[1]&&(a--,a<0))return i;return a>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let a=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let a=t[2],i="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(a);e&&(a=e[1],i=e[3])}else i=t[3]?t[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(a=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?a.slice(1):a.slice(1,-1)),bQ(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let a;if((a=this.rules.inline.reflink.exec(e))||(a=this.rules.inline.nolink.exec(e))){let e=t[(a[2]||a[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=a[0].charAt(0);return{type:"text",raw:e,text:e}}return bQ(a,e,a[0],this.lexer,this.rules)}}emStrong(e,t,a=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||i[3]&&a.match(this.rules.other.unicodeAlphaNumeric))&&(!i[1]&&!i[2]||!a||this.rules.inline.punctuation.exec(a))){let a,s,n=[...i[0]].length-1,o=n,r=0,l="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(i=l.exec(t));){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(s=[...a].length,i[3]||i[4]){o+=s;continue}if((i[5]||i[6])&&n%3&&!((n+s)%3)){r+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+r);let t=[...i[0]][0].length,l=e.slice(0,n+i.index+t+s);if(Math.min(n,s)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(e),i=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return a&&i&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,a;return"@"===t[2]?(e=t[1],a="mailto:"+e):(e=t[1],a=e),{type:"link",raw:t[0],text:e,href:a,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let a;if(a=this.rules.inline.url.exec(e)){let e,i;if("@"===a[2])e=a[0],i="mailto:"+e;else{let s;do{s=a[0],a[0]=(null==(t=this.rules.inline._backpedal.exec(a[0]))?void 0:t[0])??""}while(s!==a[0]);e=a[0],i="www."===a[1]?"http://"+a[0]:a[0]}return{type:"link",raw:a[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},yQ=class e{constructor(e){o(this,"tokens"),o(this,"options"),o(this,"state"),o(this,"tokenizer"),o(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||gX,this.options.tokenizer=this.options.tokenizer||new vQ,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:vX,block:dQ.normal,inline:uQ.normal};this.options.pedantic?(t.block=dQ.pedantic,t.inline=uQ.pedantic):this.options.gfm&&(t.block=dQ.gfm,this.options.breaks?t.inline=uQ.breaks:t.inline=uQ.gfm),this.tokenizer.rules=t}static get rules(){return{block:dQ,inline:uQ}}static lex(t,a){return new e(a).lex(t)}static lexInline(t,a){return new e(a).inlineTokens(t)}lex(e){e=e.replace(vX.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],a=!1){var i,s,n;for(this.options.pedantic&&(e=e.replace(vX.tabCharGlobal," ").replace(vX.spaceLine,""));e;){let o;if(null==(s=null==(i=this.options.extensions)?void 0:i.block)?void 0:s.some(a=>!!(o=a.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let a=t.at(-1);1===o.raw.length&&void 0!==a?a.raw+="\n":t.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let a=t.at(-1);"paragraph"===(null==a?void 0:a.type)||"text"===(null==a?void 0:a.type)?(a.raw+=(a.raw.endsWith("\n")?"":"\n")+o.raw,a.text+="\n"+o.text,this.inlineQueue.at(-1).src=a.text):t.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let a=t.at(-1);"paragraph"===(null==a?void 0:a.type)||"text"===(null==a?void 0:a.type)?(a.raw+=(a.raw.endsWith("\n")?"":"\n")+o.raw,a.text+="\n"+o.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},t.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),t.push(o);continue}let r=e;if(null==(n=this.options.extensions)?void 0:n.startBlock){let t,a=1/0,i=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},i),"number"==typeof t&&t>=0&&(a=Math.min(a,t))}),a<1/0&&a>=0&&(r=e.substring(0,a+1))}if(this.state.top&&(o=this.tokenizer.paragraph(r))){let i=t.at(-1);a&&"paragraph"===(null==i?void 0:i.type)?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+o.raw,i.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(o),a=r.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let a=t.at(-1);"text"===(null==a?void 0:a.type)?(a.raw+=(a.raw.endsWith("\n")?"":"\n")+o.raw,a.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(o);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var a,i,s,n,o;let r,l=e,c=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(c=this.tokenizer.rules.inline.reflinkSearch.exec(l));)e.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(c=this.tokenizer.rules.inline.anyPunctuation.exec(l));)l=l.slice(0,c.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(c=this.tokenizer.rules.inline.blockSkip.exec(l));)r=c[2]?c[2].length:0,l=l.slice(0,c.index+r)+"["+"a".repeat(c[0].length-r-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);l=(null==(i=null==(a=this.options.hooks)?void 0:a.emStrongMask)?void 0:i.call({lexer:this},l))??l;let d=!1,u="";for(;e;){let a;if(d||(u=""),d=!1,null==(n=null==(s=this.options.extensions)?void 0:s.inline)?void 0:n.some(i=>!!(a=i.call({lexer:this},e,t))&&(e=e.substring(a.raw.length),t.push(a),!0)))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);let i=t.at(-1);"text"===a.type&&"text"===(null==i?void 0:i.type)?(i.raw+=a.raw,i.text+=a.text):t.push(a);continue}if(a=this.tokenizer.emStrong(e,l,u)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.del(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),t.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),t.push(a);continue}let i=e;if(null==(o=this.options.extensions)?void 0:o.startInline){let t,a=1/0,s=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},s),"number"==typeof t&&t>=0&&(a=Math.min(a,t))}),a<1/0&&a>=0&&(i=e.substring(0,a+1))}if(a=this.tokenizer.inlineText(i)){e=e.substring(a.raw.length),"_"!==a.raw.slice(-1)&&(u=a.raw.slice(-1)),d=!0;let i=t.at(-1);"text"===(null==i?void 0:i.type)?(i.raw+=a.raw,i.text+=a.text):t.push(a);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(t)}}return t}},SQ=class{constructor(e){o(this,"options"),o(this,"parser"),this.options=e||gX}space(e){return""}code({text:e,lang:t,escaped:a}){var i;let s=null==(i=(t||"").match(vX.notSpaceStart))?void 0:i[0],n=e.replace(vX.endingNewline,"")+"\n";return s?'<pre><code class="language-'+gQ(s)+'">'+(a?n:gQ(n,!0))+"</code></pre>\n":"<pre><code>"+(a?n:gQ(n,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,a=e.start,i="";for(let n=0;n<e.items.length;n++){let t=e.items[n];i+=this.listitem(t)}let s=t?"ol":"ul";return"<"+s+(t&&1!==a?' start="'+a+'"':"")+">\n"+i+"</"+s+">\n"}listitem(e){var t;let a="";if(e.task){let i=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===(null==(t=e.tokens[0])?void 0:t.type)?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=i+" "+gQ(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):a+=i+" "}return a+=this.parser.parse(e.tokens,!!e.loose),`<li>${a}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",a="";for(let s=0;s<e.header.length;s++)a+=this.tablecell(e.header[s]);t+=this.tablerow({text:a});let i="";for(let s=0;s<e.rows.length;s++){let t=e.rows[s];a="";for(let e=0;e<t.length;e++)a+=this.tablecell(t[e]);i+=this.tablerow({text:a})}return i&&(i=`<tbody>${i}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+i+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),a=e.header?"th":"td";return(e.align?`<${a} align="${e.align}">`:`<${a}>`)+t+`</${a}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${gQ(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:a}){let i=this.parser.parseInline(a),s=mQ(e);if(null===s)return i;let n='<a href="'+(e=s)+'"';return t&&(n+=' title="'+gQ(t)+'"'),n+=">"+i+"</a>",n}image({href:e,title:t,text:a,tokens:i}){i&&(a=this.parser.parseInline(i,this.parser.textRenderer));let s=mQ(e);if(null===s)return gQ(a);let n=`<img src="${e=s}" alt="${a}"`;return t&&(n+=` title="${gQ(t)}"`),n+=">",n}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:gQ(e.text)}},xQ=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},wQ=class e{constructor(e){o(this,"options"),o(this,"renderer"),o(this,"textRenderer"),this.options=e||gX,this.options.renderer=this.options.renderer||new SQ,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new xQ}static parse(t,a){return new e(a).parse(t)}static parseInline(t,a){return new e(a).parseInline(t)}parse(e,t=!0){var a,i;let s="";for(let n=0;n<e.length;n++){let o=e[n];if(null==(i=null==(a=this.options.extensions)?void 0:a.renderers)?void 0:i[o.type]){let e=o,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){s+=t||"";continue}}let r=o;switch(r.type){case"space":s+=this.renderer.space(r);continue;case"hr":s+=this.renderer.hr(r);continue;case"heading":s+=this.renderer.heading(r);continue;case"code":s+=this.renderer.code(r);continue;case"table":s+=this.renderer.table(r);continue;case"blockquote":s+=this.renderer.blockquote(r);continue;case"list":s+=this.renderer.list(r);continue;case"html":s+=this.renderer.html(r);continue;case"def":s+=this.renderer.def(r);continue;case"paragraph":s+=this.renderer.paragraph(r);continue;case"text":{let a=r,i=this.renderer.text(a);for(;n+1<e.length&&"text"===e[n+1].type;)a=e[++n],i+="\n"+this.renderer.text(a);s+=t?this.renderer.paragraph({type:"paragraph",raw:i,text:i,tokens:[{type:"text",raw:i,text:i,escaped:!0}]}):i;continue}default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return s}parseInline(e,t=this.renderer){var a,i;let s="";for(let n=0;n<e.length;n++){let o=e[n];if(null==(i=null==(a=this.options.extensions)?void 0:a.renderers)?void 0:i[o.type]){let e=this.options.extensions.renderers[o.type].call({parser:this},o);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){s+=e||"";continue}}let r=o;switch(r.type){case"escape":case"text":s+=t.text(r);break;case"html":s+=t.html(r);break;case"link":s+=t.link(r);break;case"image":s+=t.image(r);break;case"strong":s+=t.strong(r);break;case"em":s+=t.em(r);break;case"codespan":s+=t.codespan(r);break;case"br":s+=t.br(r);break;case"del":s+=t.del(r);break;default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return"";throw new Error(e)}}}return s}},EQ=(t=class{constructor(e){o(this,"options"),o(this,"block"),this.options=e||gX}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?yQ.lex:yQ.lexInline}provideParser(){return this.block?wQ.parse:wQ.parseInline}},o(t,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),o(t,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),t),CQ=new class{constructor(...e){o(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),o(this,"options",this.setOptions),o(this,"parse",this.parseMarkdown(!0)),o(this,"parseInline",this.parseMarkdown(!1)),o(this,"Parser",wQ),o(this,"Renderer",SQ),o(this,"TextRenderer",xQ),o(this,"Lexer",yQ),o(this,"Tokenizer",vQ),o(this,"Hooks",EQ),this.use(...e)}walkTokens(e,t){var a,i;let s=[];for(let n of e)switch(s=s.concat(t.call(this,n)),n.type){case"table":{let e=n;for(let a of e.header)s=s.concat(this.walkTokens(a.tokens,t));for(let a of e.rows)for(let e of a)s=s.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=n;s=s.concat(this.walkTokens(e.items,t));break}default:{let e=n;(null==(i=null==(a=this.defaults.extensions)?void 0:a.childTokens)?void 0:i[e.type])?this.defaults.extensions.childTokens[e.type].forEach(a=>{let i=e[a].flat(1/0);s=s.concat(this.walkTokens(i,t))}):e.tokens&&(s=s.concat(this.walkTokens(e.tokens,t)))}}return s}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let a={...e};if(a.async=this.defaults.async||a.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let a=t.renderers[e.name];t.renderers[e.name]=a?function(...t){let i=e.renderer.apply(this,t);return!1===i&&(i=a.apply(this,t)),i}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let a=t[e.level];a?a.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),a.extensions=t),e.renderer){let t=this.defaults.renderer||new SQ(this.defaults);for(let a in e.renderer){if(!(a in t))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let i=a,s=e.renderer[i],n=t[i];t[i]=(...e)=>{let a=s.apply(t,e);return!1===a&&(a=n.apply(t,e)),a||""}}a.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new vQ(this.defaults);for(let a in e.tokenizer){if(!(a in t))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let i=a,s=e.tokenizer[i],n=t[i];t[i]=(...e)=>{let a=s.apply(t,e);return!1===a&&(a=n.apply(t,e)),a}}a.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new EQ;for(let a in e.hooks){if(!(a in t))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let i=a,s=e.hooks[i],n=t[i];EQ.passThroughHooks.has(a)?t[i]=e=>{if(this.defaults.async&&EQ.passThroughHooksRespectAsync.has(a))return(async()=>{let a=await s.call(t,e);return n.call(t,a)})();let i=s.call(t,e);return n.call(t,i)}:t[i]=(...e)=>{if(this.defaults.async)return(async()=>{let a=await s.apply(t,e);return!1===a&&(a=await n.apply(t,e)),a})();let a=s.apply(t,e);return!1===a&&(a=n.apply(t,e)),a}}a.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,i=e.walkTokens;a.walkTokens=function(e){let a=[];return a.push(i.call(this,e)),t&&(a=a.concat(t.call(this,e))),a}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return yQ.lex(e,t??this.defaults)}parser(e,t){return wQ.parse(e,t??this.defaults)}parseMarkdown(e){return(t,a)=>{let i={...a},s={...this.defaults,...i},n=this.onError(!!s.silent,!!s.async);if(!0===this.defaults.async&&!1===i.async)return n(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return n(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return n(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let a=s.hooks?await s.hooks.preprocess(t):t,i=await(s.hooks?await s.hooks.provideLexer():e?yQ.lex:yQ.lexInline)(a,s),n=s.hooks?await s.hooks.processAllTokens(i):i;s.walkTokens&&await Promise.all(this.walkTokens(n,s.walkTokens));let o=await(s.hooks?await s.hooks.provideParser():e?wQ.parse:wQ.parseInline)(n,s);return s.hooks?await s.hooks.postprocess(o):o})().catch(n);try{s.hooks&&(t=s.hooks.preprocess(t));let a=(s.hooks?s.hooks.provideLexer():e?yQ.lex:yQ.lexInline)(t,s);s.hooks&&(a=s.hooks.processAllTokens(a)),s.walkTokens&&this.walkTokens(a,s.walkTokens);let i=(s.hooks?s.hooks.provideParser():e?wQ.parse:wQ.parseInline)(a,s);return s.hooks&&(i=s.hooks.postprocess(i)),i}catch(o){return n(o)}}}onError(e,t){return a=>{if(a.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+gQ(a.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(a);throw a}}};function kQ(e,t){return CQ.parse(e,t)}function TQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}function AQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,s,n,o,r=[],l=!0,c=!1;try{if(n=(a=a.call(e)).next,0===t);else for(;!(l=(i=n.call(a)).done)&&(r.push(i.value),r.length!==t);l=!0);}catch(d){c=!0,s=d}finally{try{if(!l&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(c)throw s}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return TQ(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?TQ(e,t):void 0}}(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.")}()}kQ.options=kQ.setOptions=function(e){return CQ.setOptions(e),kQ.defaults=CQ.defaults,mX(kQ.defaults),kQ},kQ.getDefaults=hX,kQ.defaults=gX,kQ.use=function(...e){return CQ.use(...e),kQ.defaults=CQ.defaults,mX(kQ.defaults),kQ},kQ.walkTokens=function(e,t){return CQ.walkTokens(e,t)},kQ.parseInline=CQ.parseInline,kQ.Parser=wQ,kQ.parser=wQ.parse,kQ.Renderer=SQ,kQ.TextRenderer=xQ,kQ.Lexer=yQ,kQ.lexer=yQ.lex,kQ.Tokenizer=vQ,kQ.Hooks=EQ,kQ.parse=kQ,kQ.options,kQ.setOptions,kQ.use,kQ.walkTokens,kQ.parseInline,wQ.parse,yQ.lex;const RQ=Object.entries,OQ=Object.setPrototypeOf,NQ=Object.isFrozen,IQ=Object.getPrototypeOf,DQ=Object.getOwnPropertyDescriptor;let MQ=Object.freeze,LQ=Object.seal,PQ=Object.create,FQ="undefined"!=typeof Reflect&&Reflect,$Q=FQ.apply,BQ=FQ.construct;MQ||(MQ=function(e){return e}),LQ||(LQ=function(e){return e}),$Q||($Q=function(e,t){for(var a=arguments.length,i=new Array(a>2?a-2:0),s=2;s<a;s++)i[s-2]=arguments[s];return e.apply(t,i)}),BQ||(BQ=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];return new e(...a)});const VQ=rZ(Array.prototype.forEach),UQ=rZ(Array.prototype.lastIndexOf),HQ=rZ(Array.prototype.pop),zQ=rZ(Array.prototype.push),YQ=rZ(Array.prototype.splice),GQ=Array.isArray,WQ=rZ(String.prototype.toLowerCase),jQ=rZ(String.prototype.toString),qQ=rZ(String.prototype.match),KQ=rZ(String.prototype.replace),XQ=rZ(String.prototype.indexOf),QQ=rZ(String.prototype.trim),ZQ=rZ(Number.prototype.toString),JQ=rZ(Boolean.prototype.toString),eZ="undefined"==typeof BigInt?null:rZ(BigInt.prototype.toString),tZ="undefined"==typeof Symbol?null:rZ(Symbol.prototype.toString),aZ=rZ(Object.prototype.hasOwnProperty),iZ=rZ(Object.prototype.toString),sZ=rZ(RegExp.prototype.test),nZ=(oZ=TypeError,function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return BQ(oZ,t)});var oZ;function rZ(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];return $Q(e,t,i)}}function lZ(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:WQ;if(OQ&&OQ(e,null),!GQ(t))return e;let i=t.length;for(;i--;){let s=t[i];if("string"==typeof s){const e=a(s);e!==s&&(NQ(t)||(t[i]=e),s=e)}e[s]=!0}return e}function cZ(e){for(let t=0;t<e.length;t++){aZ(e,t)||(e[t]=null)}return e}function dZ(e){const t=PQ(null);for(const i of RQ(e)){var a=AQ(i,2);const s=a[0],n=a[1];aZ(e,s)&&(GQ(n)?t[s]=cZ(n):n&&"object"==typeof n&&n.constructor===Object?t[s]=dZ(n):t[s]=n)}return t}function uZ(e,t){for(;null!==e;){const a=DQ(e,t);if(a){if(a.get)return rZ(a.get);if("function"==typeof a.value)return rZ(a.value)}e=IQ(e)}return function(){return null}}const pZ=MQ(["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","search","section","select","shadow","slot","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"]),hZ=MQ(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),gZ=MQ(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),mZ=MQ(["animate","color-profile","cursor","discard","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"]),fZ=MQ(["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","mprescripts"]),_Z=MQ(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),bZ=MQ(["#text"]),vZ=MQ(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),yZ=MQ(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","mask-type","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","slope","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","tablevalues","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"]),SZ=MQ(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),xZ=MQ(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),wZ=LQ(/{{[\w\W]*|^[\w\W]*}}/g),EZ=LQ(/<%[\w\W]*|^[\w\W]*%>/g),CZ=LQ(/\${[\w\W]*/g),kZ=LQ(/^data-[\-\w.\u00B7-\uFFFF]+$/),TZ=LQ(/^aria-[\-\w]+$/),AZ=LQ(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),RZ=LQ(/^(?:\w+script|data):/i),OZ=LQ(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),NZ=LQ(/^html$/i),IZ=LQ(/^[a-z][.\w]*(-[.\w]+)+$/i),DZ=1,MZ=3,LZ=7,PZ=8,FZ=9,$Z=11;var BZ=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const a=t=>e(t);if(a.version="3.4.8",a.removed=[],!t||!t.document||t.document.nodeType!==FZ||!t.Element)return a.isSupported=!1,a;let i=t.document;const s=i,n=s.currentScript;t.DocumentFragment;const o=t.HTMLTemplateElement,r=t.Node,l=t.Element,c=t.NodeFilter,d=t.NamedNodeMap;void 0===d&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const u=t.DOMParser,p=t.trustedTypes,h=l.prototype,g=uZ(h,"cloneNode"),m=uZ(h,"remove"),f=uZ(h,"nextSibling"),_=uZ(h,"childNodes"),b=uZ(h,"parentNode"),v=uZ(h,"shadowRoot"),y=uZ(h,"attributes"),S=r&&r.prototype?uZ(r.prototype,"nodeType"):null,x=r&&r.prototype?uZ(r.prototype,"nodeName"):null;if("function"==typeof o){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let w,E="",C=0;const k=function(e){if(C>0)throw nZ('The configured TRUSTED_TYPES_POLICY.createHTML must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose createHTML wraps DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');C++;try{return w.createHTML(e)}finally{C--}},T=i,A=T.implementation,R=T.createNodeIterator,O=T.createDocumentFragment,N=T.getElementsByTagName,I=s.importNode;let D={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};a.isSupported="function"==typeof RQ&&"function"==typeof b&&A&&void 0!==A.createHTMLDocument;const M=wZ,L=EZ,P=CZ,F=kZ,$=TZ,B=RZ,V=OZ,U=IZ;let H=AZ,z=null;const Y=lZ({},[...pZ,...hZ,...gZ,...fZ,...bZ]);let G=null;const W=lZ({},[...vZ,...yZ,...SZ,...xZ]);let j=Object.seal(PQ(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}})),q=null,K=null;const X=Object.seal(PQ(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Q=!0,Z=!0,J=!1,ee=!0,te=!1,ae=!0,ie=!1,se=!1,ne=!1,oe=!1,re=!1,le=!1,ce=!0,de=!1;const ue="user-content-";let pe=!0,he=!1,ge={},me=null;const fe=lZ({},["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"]);let _e=null;const be=lZ({},["audio","video","img","source","image","track"]);let ve=null;const ye=lZ({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Se="http://www.w3.org/1998/Math/MathML",xe="http://www.w3.org/2000/svg",we="http://www.w3.org/1999/xhtml";let Ee=we,Ce=!1,ke=null;const Te=lZ({},[Se,xe,we],jQ);let Ae=lZ({},["mi","mo","mn","ms","mtext"]),Re=lZ({},["annotation-xml"]);const Oe=lZ({},["title","style","font","a","script"]);let Ne=null;const Ie=["application/xhtml+xml","text/html"];let De=null,Me=null;const Le=i.createElement("form"),Pe=function(e){return e instanceof RegExp||e instanceof Function},Fe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Me&&Me===e)return;e&&"object"==typeof e||(e={}),e=dZ(e),Ne=-1===Ie.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,De="application/xhtml+xml"===Ne?jQ:WQ,z=aZ(e,"ALLOWED_TAGS")&&GQ(e.ALLOWED_TAGS)?lZ({},e.ALLOWED_TAGS,De):Y,G=aZ(e,"ALLOWED_ATTR")&&GQ(e.ALLOWED_ATTR)?lZ({},e.ALLOWED_ATTR,De):W,ke=aZ(e,"ALLOWED_NAMESPACES")&&GQ(e.ALLOWED_NAMESPACES)?lZ({},e.ALLOWED_NAMESPACES,jQ):Te,ve=aZ(e,"ADD_URI_SAFE_ATTR")&&GQ(e.ADD_URI_SAFE_ATTR)?lZ(dZ(ye),e.ADD_URI_SAFE_ATTR,De):ye,_e=aZ(e,"ADD_DATA_URI_TAGS")&&GQ(e.ADD_DATA_URI_TAGS)?lZ(dZ(be),e.ADD_DATA_URI_TAGS,De):be,me=aZ(e,"FORBID_CONTENTS")&&GQ(e.FORBID_CONTENTS)?lZ({},e.FORBID_CONTENTS,De):fe,q=aZ(e,"FORBID_TAGS")&&GQ(e.FORBID_TAGS)?lZ({},e.FORBID_TAGS,De):dZ({}),K=aZ(e,"FORBID_ATTR")&&GQ(e.FORBID_ATTR)?lZ({},e.FORBID_ATTR,De):dZ({}),ge=!!aZ(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?dZ(e.USE_PROFILES):e.USE_PROFILES),Q=!1!==e.ALLOW_ARIA_ATTR,Z=!1!==e.ALLOW_DATA_ATTR,J=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ee=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,te=e.SAFE_FOR_TEMPLATES||!1,ae=!1!==e.SAFE_FOR_XML,ie=e.WHOLE_DOCUMENT||!1,oe=e.RETURN_DOM||!1,re=e.RETURN_DOM_FRAGMENT||!1,le=e.RETURN_TRUSTED_TYPE||!1,ne=e.FORCE_BODY||!1,ce=!1!==e.SANITIZE_DOM,de=e.SANITIZE_NAMED_PROPS||!1,pe=!1!==e.KEEP_CONTENT,he=e.IN_PLACE||!1,H=function(e){try{return sZ(e,""),!0}catch(t){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:AZ,Ee="string"==typeof e.NAMESPACE?e.NAMESPACE:we,Ae=aZ(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?dZ(e.MATHML_TEXT_INTEGRATION_POINTS):lZ({},["mi","mo","mn","ms","mtext"]),Re=aZ(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?dZ(e.HTML_INTEGRATION_POINTS):lZ({},["annotation-xml"]);const t=aZ(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?dZ(e.CUSTOM_ELEMENT_HANDLING):PQ(null);if(j=PQ(null),aZ(t,"tagNameCheck")&&Pe(t.tagNameCheck)&&(j.tagNameCheck=t.tagNameCheck),aZ(t,"attributeNameCheck")&&Pe(t.attributeNameCheck)&&(j.attributeNameCheck=t.attributeNameCheck),aZ(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),te&&(Z=!1),re&&(oe=!0),ge&&(z=lZ({},bZ),G=PQ(null),!0===ge.html&&(lZ(z,pZ),lZ(G,vZ)),!0===ge.svg&&(lZ(z,hZ),lZ(G,yZ),lZ(G,xZ)),!0===ge.svgFilters&&(lZ(z,gZ),lZ(G,yZ),lZ(G,xZ)),!0===ge.mathMl&&(lZ(z,fZ),lZ(G,SZ),lZ(G,xZ))),X.tagCheck=null,X.attributeCheck=null,aZ(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?X.tagCheck=e.ADD_TAGS:GQ(e.ADD_TAGS)&&(z===Y&&(z=dZ(z)),lZ(z,e.ADD_TAGS,De))),aZ(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?X.attributeCheck=e.ADD_ATTR:GQ(e.ADD_ATTR)&&(G===W&&(G=dZ(G)),lZ(G,e.ADD_ATTR,De))),aZ(e,"ADD_URI_SAFE_ATTR")&&GQ(e.ADD_URI_SAFE_ATTR)&&lZ(ve,e.ADD_URI_SAFE_ATTR,De),aZ(e,"FORBID_CONTENTS")&&GQ(e.FORBID_CONTENTS)&&(me===fe&&(me=dZ(me)),lZ(me,e.FORBID_CONTENTS,De)),aZ(e,"ADD_FORBID_CONTENTS")&&GQ(e.ADD_FORBID_CONTENTS)&&(me===fe&&(me=dZ(me)),lZ(me,e.ADD_FORBID_CONTENTS,De)),pe&&(z["#text"]=!0),ie&&lZ(z,["html","head","body"]),z.table&&(lZ(z,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw nZ('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw nZ('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=w;w=e.TRUSTED_TYPES_POLICY;try{E=k("")}catch(a){throw w=t,a}}else void 0===w&&null!==e.TRUSTED_TYPES_POLICY&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let a=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(a=t.getAttribute(i));const s="dompurify"+(a?"#"+a:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(n){return null}}(p,n)),w&&"string"==typeof E&&(E=k(""));(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&z===Y&&(z=dZ(z)),D.uponSanitizeAttribute.length>0&&G===W&&(G=dZ(G)),MQ&&MQ(e),Me=e},$e=lZ({},[...hZ,...gZ,...mZ]),Be=lZ({},[...fZ,..._Z]),Ve=function(e){zQ(a.removed,{element:e});try{b(e).removeChild(e)}catch(t){m(e)}},Ue=function(e,t){try{zQ(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(i){zQ(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(oe||re)try{Ve(t)}catch(i){}else try{t.setAttribute(e,"")}catch(i){}},He=function(e){let t=null,a=null;if(ne)e="<remove></remove>"+e;else{const t=qQ(e,/^[\r\n\t ]+/);a=t&&t[0]}"application/xhtml+xml"===Ne&&Ee===we&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=w?k(e):e;if(Ee===we)try{t=(new u).parseFromString(s,Ne)}catch(o){}if(!t||!t.documentElement){t=A.createDocument(Ee,"template",null);try{t.documentElement.innerHTML=Ce?E:s}catch(o){}}const n=t.body||t.documentElement;return e&&a&&n.insertBefore(i.createTextNode(a),n.childNodes[0]||null),Ee===we?N.call(t,ie?"html":"body")[0]:ie?t.documentElement:n},ze=function(e){return R.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ye=function(e){var t,a;e.normalize();const i=R.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let s=i.nextNode();for(;s;){let e=s.data;VQ([M,L,P],t=>{e=KQ(e,t," ")}),s.data=e,s=i.nextNode()}const n=null!==(t=null===(a=e.querySelectorAll)||void 0===a?void 0:a.call(e,"template"))&&void 0!==t?t:[];VQ(Array.from(n),e=>{We(e.content)&&Ye(e.content)})},Ge=function(e){const t=x?x(e):null;return"string"==typeof t&&("form"===De(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==y(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==S(e)||e.childNodes!==_(e)))},We=function(e){if(!S||"object"!=typeof e||null===e)return!1;try{return S(e)===$Z}catch(t){return!1}},je=function(e){if(!S||"object"!=typeof e||null===e)return!1;try{return"number"==typeof S(e)}catch(t){return!1}};function qe(e,t,i){VQ(e,e=>{e.call(a,t,i,Me)})}const Ke=function(e){let t=null;if(qe(D.beforeSanitizeElements,e,null),Ge(e))return Ve(e),!0;const i=De(x?x(e):e.nodeName);if(qe(D.uponSanitizeElement,e,{tagName:i,allowedTags:z}),ae&&e.hasChildNodes()&&!je(e.firstElementChild)&&sZ(/<[/\w!]/g,e.innerHTML)&&sZ(/<[/\w!]/g,e.textContent))return Ve(e),!0;if(ae&&e.namespaceURI===we&&"style"===i&&je(e.firstElementChild))return Ve(e),!0;if(e.nodeType===LZ)return Ve(e),!0;if(ae&&e.nodeType===PZ&&sZ(/<[/\w]/g,e.data))return Ve(e),!0;if(q[i]||!(X.tagCheck instanceof Function&&X.tagCheck(i))&&!z[i]){if(!q[i]&&Ze(i)){if(j.tagNameCheck instanceof RegExp&&sZ(j.tagNameCheck,i))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(i))return!1}if(pe&&!me[i]){const t=b(e),a=_(e);if(a&&t){for(let i=a.length-1;i>=0;--i){const s=g(a[i],!0);t.insertBefore(s,f(e))}}}return Ve(e),!0}return((S?S(e):e.nodeType)!==DZ||function(e){let t=b(e);t&&t.tagName||(t={namespaceURI:Ee,tagName:"template"});const a=WQ(e.tagName),i=WQ(t.tagName);return!!ke[e.namespaceURI]&&(e.namespaceURI===xe?t.namespaceURI===we?"svg"===a:t.namespaceURI===Se?"svg"===a&&("annotation-xml"===i||Ae[i]):Boolean($e[a]):e.namespaceURI===Se?t.namespaceURI===we?"math"===a:t.namespaceURI===xe?"math"===a&&Re[i]:Boolean(Be[a]):e.namespaceURI===we?!(t.namespaceURI===xe&&!Re[i])&&!(t.namespaceURI===Se&&!Ae[i])&&!Be[a]&&(Oe[a]||!$e[a]):!("application/xhtml+xml"!==Ne||!ke[e.namespaceURI]))}(e))&&("noscript"!==i&&"noembed"!==i&&"noframes"!==i||!sZ(/<\/no(script|embed|frames)/i,e.innerHTML))?(te&&e.nodeType===MZ&&(t=e.textContent,VQ([M,L,P],e=>{t=KQ(t,e," ")}),e.textContent!==t&&(zQ(a.removed,{element:e.cloneNode()}),e.textContent=t)),qe(D.afterSanitizeElements,e,null),!1):(Ve(e),!0)},Xe=function(e,t,a){if(K[t])return!1;if(ce&&("id"===t||"name"===t)&&(a in i||a in Le))return!1;const s=G[t]||X.attributeCheck instanceof Function&&X.attributeCheck(t,e);if(Z&&!K[t]&&sZ(F,t));else if(Q&&sZ($,t));else if(!s||K[t]){if(!(Ze(e)&&(j.tagNameCheck instanceof RegExp&&sZ(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&sZ(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t,e))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&sZ(j.tagNameCheck,a)||j.tagNameCheck instanceof Function&&j.tagNameCheck(a))))return!1}else if(ve[t]);else if(sZ(H,KQ(a,V,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==XQ(a,"data:")||!_e[e]){if(J&&!sZ(B,KQ(a,V,"")));else if(a)return!1}else;return!0},Qe=lZ({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ze=function(e){return!Qe[WQ(e)]&&sZ(U,e)},Je=function(e){qe(D.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||Ge(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G,forceKeepAttr:void 0};let s=t.length;for(;s--;){const o=t[s],r=o.name,l=o.namespaceURI,c=o.value,d=De(r),u=c;let h="value"===r?u:QQ(u);if(i.attrName=d,i.attrValue=h,i.keepAttr=!0,i.forceKeepAttr=void 0,qe(D.uponSanitizeAttribute,e,i),h=i.attrValue,!de||"id"!==d&&"name"!==d||0===XQ(h,ue)||(Ue(r,e),h=ue+h),ae&&sZ(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)){Ue(r,e);continue}if("attributename"===d&&qQ(h,"href")){Ue(r,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){Ue(r,e);continue}if(!ee&&sZ(/\/>/i,h)){Ue(r,e);continue}te&&VQ([M,L,P],e=>{h=KQ(h,e," ")});const g=De(e.nodeName);if(Xe(g,d,h)){if(w&&"object"==typeof p&&"function"==typeof p.getAttributeType)if(l);else switch(p.getAttributeType(g,d)){case"TrustedHTML":h=k(h);break;case"TrustedScriptURL":h=w.createScriptURL(h)}if(h!==u)try{l?e.setAttributeNS(l,r,h):e.setAttribute(r,h),Ge(e)?Ve(e):HQ(a.removed)}catch(n){Ue(r,e)}}else Ue(r,e)}qe(D.afterSanitizeAttributes,e,null)},et=function(e){let t=null;const a=ze(e);for(qe(D.beforeSanitizeShadowDOM,e,null);t=a.nextNode();){qe(D.uponSanitizeShadowNode,t,null),Ke(t),Je(t),We(t.content)&&et(t.content);if((S?S(t):t.nodeType)===DZ){const e=v?v(t):t.shadowRoot;We(e)&&(tt(e),et(e))}}qe(D.afterSanitizeShadowDOM,e,null)},tt=function(e){const t=S?S(e):e.nodeType;if(t===DZ){const t=v?v(e):e.shadowRoot;We(t)&&(tt(t),et(t))}const a=_?_(e):e.childNodes;if(!a)return;const i=[];VQ(a,e=>{zQ(i,e)});for(const s of i)tt(s);if(t===DZ){const t=x?x(e):null;if("string"==typeof t&&"template"===De(t)){const t=e.content;We(t)&&tt(t)}}};return a.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,n=null,o=null,r=null;if(Ce=!e,Ce&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return ZQ(e);case"boolean":return JQ(e);case"bigint":return eZ?eZ(e):"0";case"symbol":return tZ?tZ(e):"Symbol()";case"undefined":default:return iZ(e);case"function":case"object":{if(null===e)return iZ(e);const t=e,a=uZ(t,"toString");if("function"==typeof a){const e=a(t);return"string"==typeof e?e:iZ(e)}return iZ(e)}}}(e)))throw nZ("dirty is not a string, aborting");if(!a.isSupported)return e;if(se||Fe(t),a.removed=[],"string"==typeof e&&(he=!1),he){const t=x?x(e):e.nodeName;if("string"==typeof t){const e=De(t);if(!z[e]||q[e])throw nZ("root node is forbidden and cannot be sanitized in-place")}if(Ge(e))throw nZ("root node is clobbered and cannot be sanitized in-place");tt(e)}else if(je(e))i=He("\x3c!----\x3e"),n=i.ownerDocument.importNode(e,!0),n.nodeType===DZ&&"BODY"===n.nodeName||"HTML"===n.nodeName?i=n:i.appendChild(n),tt(n);else{if(!oe&&!te&&!ie&&-1===e.indexOf("<"))return w&&le?k(e):e;if(i=He(e),!i)return oe?null:le?E:""}i&&ne&&Ve(i.firstChild);const l=ze(he?e:i);for(;o=l.nextNode();)Ke(o),Je(o),We(o.content)&&et(o.content);if(he)return te&&Ye(e),e;if(oe){if(te&&Ye(i),re)for(r=O.call(i.ownerDocument);i.firstChild;)r.appendChild(i.firstChild);else r=i;return(G.shadowroot||G.shadowrootmode)&&(r=I.call(s,r,!0)),r}let c=ie?i.outerHTML:i.innerHTML;return ie&&z["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&sZ(NZ,i.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+c),te&&VQ([M,L,P],e=>{c=KQ(c,e," ")}),w&&le?k(c):c},a.setConfig=function(){Fe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),se=!0},a.clearConfig=function(){Me=null,se=!1},a.isValidAttribute=function(e,t,a){Me||Fe({});const i=De(e),s=De(t);return Xe(i,s,a)},a.addHook=function(e,t){"function"==typeof t&&zQ(D[e],t)},a.removeHook=function(e,t){if(void 0!==t){const a=UQ(D[e],t);return-1===a?void 0:YQ(D[e],a,1)[0]}return HQ(D[e])},a.removeHooks=function(e){D[e]=[]},a.removeAllHooks=function(){D={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},a}();function VZ(e){e&&!e.__fsStripReservedElClassHook&&(e.addHook("uponSanitizeAttribute",(e,t)=>{"class"===t.attrName&&t.attrValue&&(t.attrValue=t.attrValue.split(/\s+/).filter(e=>!/^el-/.test(e)).join(" "))}),e.__fsStripReservedElClassHook=!0)}VZ(BZ);const UZ={gfm:!0,breaks:!0};function HZ(e){if(!e)return"";try{return BZ.sanitize(kQ.parse(e,UZ))}catch(PI){return BZ.sanitize(e.replace(/\n/g,"<br>"))}}const zZ={class:"fs_container"},YZ={class:"fs_ai_header_section"},GZ={class:"fs_icon_container"},WZ=["src"],jZ={class:"fs_text_container"},qZ={class:"fs_header_text"},KZ={class:"fs_description_text"},XZ={class:"fs_close"},QZ=["src"],ZZ={key:0,class:"fs_draft"},JZ=["src"],eJ={class:"fs_draft_widget"},tJ=["onClick"],aJ={class:"fs_response_section"},iJ={key:0,class:"fs_response_container"},sJ={class:"fs_response_header"},nJ={class:"fs_resize"},oJ=["src"],rJ={class:"fs_response_actions"},lJ={class:"fs_copy_text"},cJ=["src"],dJ={class:"fs_regenerate"},uJ=["src"],pJ={class:"fs_response_insert_button"},hJ=["innerHTML"],gJ={key:1,class:"fs_ai_response_loading"},mJ={class:"fs_main_content"},fJ={class:"fs_prompt_wrapper"},_J=["placeholder"],bJ={class:"fs_prompt_button"},vJ=["src"],yJ={key:0,class:"fs_error_message"},SJ={class:"fs_prompt_subtitle"},xJ={class:"fs_prompt_options_container"},wJ=["onClick"],EJ={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},CJ=["fill"],kJ={class:"fs_prompt_option_text"};const TJ=dH({name:"AIResponseGenerator",props:["selectedText","type"],data:()=>({prompt:"",presetPrompt:"",errorMessage:"",aiResponse:"",loading:!1,ticketID:0,selectedPrompt:"",isFullSize:!1,presetPrompts:[],draftData:[],showDraft:!1,finalPrompts:[]}),computed:{title(){return"modifyResponse"===this.type?"Enhance Responses with AI":"Generate Responses with AI"},description(){return"modifyResponse"===this.type?"Refine ticket responses with AI to enhance clarity and precision.":"Let AI generate ticket responses to enhance support efficiency."},formattedResponse(){return HZ(this.aiResponse)}},methods:{saveDraft(){const e="modifyResponse"===this.type?"modifyResponseDraft":"createResponseDraft",t=JSON.parse(this.$getData(e)||"[]")||[];t.length>=3&&t.shift(),t.push(this.aiResponse),this.$saveData(e,JSON.stringify(t)),this.draftData=t},generateResponse(e){if(!e.trim())return void(this.errorMessage="Prompt is required.");this.errorMessage="",this.loading=!0;const t={content:e,id:this.ticketID,type:this.type};"createResponse"!==this.type&&(t.selectedText=this.selectedText,t.type=this.type),this.$post(`ai/${this.ticketID}/generate-response`,t).then(t=>{this.aiResponse=t,this.loading=!1,this.finalPrompts=e,(this.prompt||this.aiResponse)&&(this.selectedPrompt="",this.saveDraft())}).catch(e=>{this.loading=!1,this.$handleError(e)})},selectPresetPrompt(e){this.selectedPrompt=e;const t=this.presetPrompts.find(t=>t.text===e.text);this.presetPrompt=`${t.description}`,this.prompt="",this.generateResponse(this.presetPrompt)},isSelected(e){return this.selectedPrompt===e},closeModal(){this.removeDraft(),this.$emit("close"),this.resetData()},async copyText(){try{await navigator.clipboard.writeText(this.aiResponse),this.$notify({message:this.$t("Copied to clipboard"),type:"success",position:"bottom-right"})}catch(e){this.$notify({message:this.$t("Something went wrong"),type:"danger",position:"bottom-right"})}},resetData(){this.aiResponse="",this.selectedPrompt="",this.prompt="",this.removeDraft()},insertReply(){this.$emit("insert",this.formattedResponse),this.resetData()},fetchPresets(){this.$get("ai/preset-prompts",{type:this.type}).then(e=>{this.presetPrompts=e}).catch(e=>{this.$handleError(e)})},removeDraft(){const e="modifyResponse"===this.type?"modifyResponseDraft":"createResponseDraft";this.removeData(e),this.draftData=[]},removeData(e){let t=this.$getData("__fluentsupport_data");t&&(t=JSON.parse(t),delete t[e],this.$saveData("__fluentsupport_data",JSON.stringify(t)))},getSnippet:e=>e.length>30?e.substring(0,30)+"...":e,selectDraft(e){this.aiResponse=e}},mounted(){this.ticketID=parseInt(this.$route.params.ticket_id),this.fetchPresets(),this.removeDraft()}},[["render",function(e,t,a,i,s,n){const o=vk,r=gO,l=OL,c=q$;return Hd(),jd("div",zZ,[eu("div",YZ,[eu("div",GZ,[eu("img",{loading:"lazy",src:e.appVars.asset_url+"images/aiMagicIcon.svg",class:"fs_icon"},null,8,WZ)]),eu("div",jZ,[eu("div",qZ,fe(e.$t(n.title)),1),eu("div",KZ,fe(e.$t(n.description)),1)]),eu("div",XZ,[tu(o,{class:"fs_close_button",onClick:n.closeModal},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/closeIcon.svg",alt:""},null,8,QZ)],void 0),_:1},8,["onClick"])])]),s.draftData.length>1?(Hd(),jd("div",ZZ,[tu(o,{class:"fs_draft_button",onClick:t[0]||(t[0]=e=>s.showDraft=!s.showDraft)},{default:br(()=>[eu("span",null,fe(e.$t("Draft")),1),eu("img",{class:ne(["fs_draft_arrow",{"rotate-down":s.showDraft}]),src:e.appVars.asset_url+"images/arrowRight.svg",alt:""},null,10,JZ)],void 0),_:1}),eu("div",null,[tu(r,null,{default:br(()=>[vr(eu("div",eJ,[(Hd(!0),jd(Pd,null,sc(s.draftData,(e,t)=>(Hd(),jd("div",{key:t,class:"fs_draft_item",onClick:t=>n.selectDraft(e)},[eu("h3",null,"Draft "+fe(t+1),1),eu("p",null,fe(n.getSnippet(e)),1)],8,tJ))),128))],512),[[vp,s.showDraft]])],void 0),_:1})])])):ou("",!0),eu("div",aJ,[s.aiResponse&&!s.loading?vr((Hd(),jd("div",iJ,[eu("div",sJ,[eu("div",nJ,[tu(o,{class:"fs_resize_button",text:"",onClick:t[1]||(t[1]=e=>s.isFullSize=!s.isFullSize)},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/resize.svg",alt:""},null,8,oJ)],void 0),_:1})]),eu("div",rJ,[eu("div",lJ,[tu(o,{class:"fs_copy_text_button",text:"",onClick:n.copyText},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/copyText.svg",alt:""},null,8,cJ)],void 0),_:1},8,["onClick"])]),eu("div",dJ,[tu(o,{class:"fs_regenerate_button",onClick:t[2]||(t[2]=e=>n.generateResponse(s.finalPrompts))},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/regenerate.svg",alt:""},null,8,uJ)],void 0),_:1})]),eu("div",pJ,[tu(o,{class:"fs_insert_button",onClick:t[3]||(t[3]=e=>n.insertReply())},{default:br(()=>[su(fe(e.$t("Insert Content")),1)],void 0),_:1})])])]),eu("div",{class:ne(["fs_response_content",{"full-size":s.isFullSize}])},[eu("div",{innerHTML:n.formattedResponse},null,8,hJ)],2)])),[[c,s.loading]]):ou("",!0),s.loading?(Hd(),jd("div",gJ,[tu(l,{rows:4,animated:""})])):ou("",!0)]),eu("div",mJ,[eu("div",fJ,[vr(eu("textarea",{"onUpdate:modelValue":t[4]||(t[4]=e=>s.prompt=e),rows:"3",placeholder:e.$t("Enter your prompt here..."),class:"fs_textarea",required:""},null,8,_J),[[gh,s.prompt]]),eu("div",bJ,[tu(o,{class:"fs_prompt_submit",onClick:t[5]||(t[5]=e=>n.generateResponse(s.prompt))},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/aiPromptSubmitButton.svg",alt:""},null,8,vJ)],void 0),_:1})])]),s.errorMessage?(Hd(),jd("div",yJ,fe(s.errorMessage),1)):ou("",!0),eu("div",null,[eu("div",SJ,fe(e.$t("Some General Prompts")),1),eu("div",xJ,[(Hd(!0),jd(Pd,null,sc(s.presetPrompts,e=>(Hd(),jd("div",{key:e.text,class:ne(["fs_prompt_option",{fs_prompt_option_selected:e===s.selectedPrompt}]),onClick:t=>n.selectPresetPrompt(e)},[(Hd(),jd("svg",EJ,[eu("circle",{cx:"8",cy:"8",r:"2",fill:n.isSelected(e)?"#FFF":"#717784"},null,8,CJ)])),eu("div",kJ,fe(e.label),1)],10,wJ))),128))])])])])}]]);function AJ(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const a=e[t],i=typeof a;"object"!==i&&"function"!==i||Object.isFrozen(a)||AJ(a)}),e}class RJ{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function OJ(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function NJ(e,...t){const a=Object.create(null);for(const i in e)a[i]=e[i];return t.forEach(function(e){for(const t in e)a[t]=e[t]}),a}const IJ=e=>!!e.scope;class DJ{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=OJ(e)}openNode(e){if(!IJ(e))return;const t=((e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const a=e.split(".");return[`${t}${a.shift()}`,...a.map((e,t)=>`${e}${"_".repeat(t+1)}`)].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){IJ(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const MJ=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class LJ{constructor(){this.rootNode=MJ(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=MJ({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{LJ._collapse(e)}))}}class PJ extends LJ{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const a=e.root;t&&(a.scope=`language:${t}`),this.add(a)}toHTML(){return new DJ(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function FJ(e){return e?"string"==typeof e?e:e.source:null}function $J(e){return UJ("(?=",e,")")}function BJ(e){return UJ("(?:",e,")*")}function VJ(e){return UJ("(?:",e,")?")}function UJ(...e){return e.map(e=>FJ(e)).join("")}function HJ(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e);return"("+(t.capture?"":"?:")+e.map(e=>FJ(e)).join("|")+")"}function zJ(e){return new RegExp(e.toString()+"|").exec("").length-1}const YJ=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function GJ(e,{joinWith:t}){let a=0;return e.map(e=>{a+=1;const t=a;let i=FJ(e),s="";for(;i.length>0;){const e=YJ.exec(i);if(!e){s+=i;break}s+=i.substring(0,e.index),i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?s+="\\"+String(Number(e[1])+t):(s+=e[0],"("===e[0]&&a++)}return s}).map(e=>`(${e})`).join(t)}const WJ="[a-zA-Z]\\w*",jJ="[a-zA-Z_]\\w*",qJ="\\b\\d+(\\.\\d+)?",KJ="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",XJ="\\b(0b[01]+)",QJ={begin:"\\\\[\\s\\S]",relevance:0},ZJ={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[QJ]},JJ={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[QJ]},e0=function(e,t,a={}){const i=NJ({scope:"comment",begin:e,end:t,contains:[]},a);i.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const s=HJ("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return i.contains.push({begin:UJ(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},t0=e0("//","$"),a0=e0("/\\*","\\*/"),i0=e0("#","$"),s0={scope:"number",begin:qJ,relevance:0},n0={scope:"number",begin:KJ,relevance:0},o0={scope:"number",begin:XJ,relevance:0},r0={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[QJ,{begin:/\[/,end:/\]/,relevance:0,contains:[QJ]}]},l0={scope:"title",begin:WJ,relevance:0},c0={scope:"title",begin:jJ,relevance:0},d0={begin:"\\.\\s*"+jJ,relevance:0};var u0=Object.freeze({__proto__:null,APOS_STRING_MODE:ZJ,BACKSLASH_ESCAPE:QJ,BINARY_NUMBER_MODE:o0,BINARY_NUMBER_RE:XJ,COMMENT:e0,C_BLOCK_COMMENT_MODE:a0,C_LINE_COMMENT_MODE:t0,C_NUMBER_MODE:n0,C_NUMBER_RE:KJ,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:i0,IDENT_RE:WJ,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:d0,NUMBER_MODE:s0,NUMBER_RE:qJ,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:JJ,REGEXP_MODE:r0,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=UJ(t,/.*\b/,e.binary,/\b.*/)),NJ({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},TITLE_MODE:l0,UNDERSCORE_IDENT_RE:jJ,UNDERSCORE_TITLE_MODE:c0});function p0(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function h0(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function g0(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=p0,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function m0(e,t){Array.isArray(e.illegal)&&(e.illegal=HJ(...e.illegal))}function f0(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function _0(e,t){void 0===e.relevance&&(e.relevance=1)}const b0=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const a=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=a.keywords,e.begin=UJ(a.beforeMatch,$J(a.begin)),e.starts={relevance:0,contains:[Object.assign(a,{endsParent:!0})]},e.relevance=0,delete a.beforeMatch},v0=["of","and","for","in","not","or","if","then","parent","list","value"];function y0(e,t,a="keyword"){const i=Object.create(null);return"string"==typeof e?s(a,e.split(" ")):Array.isArray(e)?s(a,e):Object.keys(e).forEach(function(a){Object.assign(i,y0(e[a],t,a))}),i;function s(e,a){t&&(a=a.map(e=>e.toLowerCase())),a.forEach(function(t){const a=t.split("|");i[a[0]]=[e,S0(a[0],a[1])]})}}function S0(e,t){return t?Number(t):function(e){return v0.includes(e.toLowerCase())}(e)?0:1}const x0={},w0=(e,t)=>{x0[`${e}/${t}`]||(x0[`${e}/${t}`]=!0)},E0=new Error;function C0(e,t,{key:a}){let i=0;const s=e[a],n={},o={};for(let r=1;r<=t.length;r++)o[r+i]=s[r],n[r+i]=!0,i+=zJ(t[r-1]);e[a]=o,e[a]._emit=n,e[a]._multi=!0}function k0(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw E0;if("object"!=typeof e.beginScope||null===e.beginScope)throw E0;C0(e,e.begin,{key:"beginScope"}),e.begin=GJ(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw E0;if("object"!=typeof e.endScope||null===e.endScope)throw E0;C0(e,e.end,{key:"endScope"}),e.end=GJ(e.end,{joinWith:""})}}(e)}function T0(e){function t(t,a){return new RegExp(FJ(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(a?"g":""))}class a{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=zJ(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=t(GJ(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const a=t.findIndex((e,t)=>t>0&&void 0!==e),i=this.matchIndexes[a];return t.splice(0,a),Object.assign(t,i)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new a;return this.rules.slice(e).forEach(([e,a])=>t.addRule(e,a)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let a=t.exec(e);if(this.resumingScanAtSamePosition())if(a&&a.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,a=t.exec(e)}return a&&(this.regexIndex+=a.position+1,this.regexIndex===this.count&&this.considerAll()),a}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=NJ(e.classNameAliases||{}),function a(s,n){const o=s;if(s.isCompiled)return o;[h0,f0,k0,b0].forEach(e=>e(s,n)),e.compilerExtensions.forEach(e=>e(s,n)),s.__beforeBegin=null,[g0,m0,_0].forEach(e=>e(s,n)),s.isCompiled=!0;let r=null;return"object"==typeof s.keywords&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),r=s.keywords.$pattern,delete s.keywords.$pattern),r=r||/\w+/,s.keywords&&(s.keywords=y0(s.keywords,e.case_insensitive)),o.keywordPatternRe=t(r,!0),n&&(s.begin||(s.begin=/\B|\b/),o.beginRe=t(o.begin),s.end||s.endsWithParent||(s.end=/\B|\b/),s.end&&(o.endRe=t(o.end)),o.terminatorEnd=FJ(o.end)||"",s.endsWithParent&&n.terminatorEnd&&(o.terminatorEnd+=(s.end?"|":"")+n.terminatorEnd)),s.illegal&&(o.illegalRe=t(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return NJ(e,{variants:null},t)}));if(e.cachedVariants)return e.cachedVariants;if(A0(e))return NJ(e,{starts:e.starts?NJ(e.starts):null});if(Object.isFrozen(e))return NJ(e);return e}("self"===e?s:e)})),s.contains.forEach(function(e){a(e,o)}),s.starts&&a(s.starts,n),o.matcher=function(e){const t=new i;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(o),o}(e)}function A0(e){return!!e&&(e.endsWithParent||A0(e.starts))}class R0 extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const O0=OJ,N0=NJ,I0=Symbol("nomatch"),D0=function(e){const t=Object.create(null),a=Object.create(null),i=[];let s=!0;const n="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let r={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:PJ};function l(e){return r.noHighlightRe.test(e)}function c(e,t,a){let i="",s="";"object"==typeof t?(i=e,a=t.ignoreIllegals,s=t.language):(w0("10.7.0","highlight(lang, code, ...args) has been deprecated."),w0("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),s=e,i=t),void 0===a&&(a=!0);const n={code:i,language:s};b("before:highlight",n);const o=n.result?n.result:d(n.language,n.code,a);return o.code=n.code,b("after:highlight",o),o}function d(e,a,i,o){const l=Object.create(null);function c(e,t){return e.keywords[t]}function p(){if(!k.keywords)return void A.addText(R);let e=0;k.keywordPatternRe.lastIndex=0;let t=k.keywordPatternRe.exec(R),a="";for(;t;){a+=R.substring(e,t.index);const i=w.case_insensitive?t[0].toLowerCase():t[0],s=c(k,i);if(s){const[e,n]=s;if(A.addText(a),a="",l[i]=(l[i]||0)+1,l[i]<=7&&(O+=n),e.startsWith("_"))a+=t[0];else{const a=w.classNameAliases[e]||e;g(t[0],a)}}else a+=t[0];e=k.keywordPatternRe.lastIndex,t=k.keywordPatternRe.exec(R)}a+=R.substring(e),A.addText(a)}function h(){null!=k.subLanguage?function(){if(""===R)return;let e=null;if("string"==typeof k.subLanguage){if(!t[k.subLanguage])return void A.addText(R);e=d(k.subLanguage,R,!0,T[k.subLanguage]),T[k.subLanguage]=e._top}else e=u(R,k.subLanguage.length?k.subLanguage:null);k.relevance>0&&(O+=e.relevance),A.__addSublanguage(e._emitter,e.language)}():p(),R=""}function g(e,t){""!==e&&(A.startScope(t),A.addText(e),A.endScope())}function f(e,t){let a=1;const i=t.length-1;for(;a<=i;){if(!e._emit[a]){a++;continue}const i=w.classNameAliases[e[a]]||e[a],s=t[a];i?g(s,i):(R=s,p(),R=""),a++}}function _(e,t){return e.scope&&"string"==typeof e.scope&&A.openNode(w.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(g(R,w.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),R=""):e.beginScope._multi&&(f(e.beginScope,t),R="")),k=Object.create(e,{parent:{value:k}}),k}function b(e,t,a){let i=function(e,t){const a=e&&e.exec(t);return a&&0===a.index}(e.endRe,a);if(i){if(e["on:end"]){const a=new RJ(e);e["on:end"](t,a),a.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return b(e.parent,t,a)}function v(e){return 0===k.matcher.regexIndex?(R+=e[0],1):(D=!0,0)}function y(e){const t=e[0],i=a.substring(e.index),s=b(k,e,i);if(!s)return I0;const n=k;k.endScope&&k.endScope._wrap?(h(),g(t,k.endScope._wrap)):k.endScope&&k.endScope._multi?(h(),f(k.endScope,e)):n.skip?R+=t:(n.returnEnd||n.excludeEnd||(R+=t),h(),n.excludeEnd&&(R=t));do{k.scope&&A.closeNode(),k.skip||k.subLanguage||(O+=k.relevance),k=k.parent}while(k!==s.parent);return s.starts&&_(s.starts,e),n.returnEnd?0:t.length}let S={};function x(t,n){const o=n&&n[0];if(R+=t,null==o)return h(),0;if("begin"===S.type&&"end"===n.type&&S.index===n.index&&""===o){if(R+=a.slice(n.index,n.index+1),!s){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=S.rule,t}return 1}if(S=n,"begin"===n.type)return function(e){const t=e[0],a=e.rule,i=new RJ(a),s=[a.__beforeBegin,a["on:begin"]];for(const n of s)if(n&&(n(e,i),i.isMatchIgnored))return v(t);return a.skip?R+=t:(a.excludeBegin&&(R+=t),h(),a.returnBegin||a.excludeBegin||(R=t)),_(a,e),a.returnBegin?0:t.length}(n);if("illegal"===n.type&&!i){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(k.scope||"<unnamed>")+'"');throw e.mode=k,e}if("end"===n.type){const e=y(n);if(e!==I0)return e}if("illegal"===n.type&&""===o)return R+="\n",1;if(I>1e5&&I>3*n.index){throw new Error("potential infinite loop, way more iterations than matches")}return R+=o,o.length}const w=m(e);if(!w)throw n.replace("{}",e),new Error('Unknown language: "'+e+'"');const E=T0(w);let C="",k=o||E;const T={},A=new r.__emitter(r);!function(){const e=[];for(let t=k;t!==w;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>A.openNode(e))}();let R="",O=0,N=0,I=0,D=!1;try{if(w.__emitTokens)w.__emitTokens(a,A);else{for(k.matcher.considerAll();;){I++,D?D=!1:k.matcher.considerAll(),k.matcher.lastIndex=N;const e=k.matcher.exec(a);if(!e)break;const t=x(a.substring(N,e.index),e);N=e.index+t}x(a.substring(N))}return A.finalize(),C=A.toHTML(),{language:e,value:C,relevance:O,illegal:!1,_emitter:A,_top:k}}catch(M){if(M.message&&M.message.includes("Illegal"))return{language:e,value:O0(a),illegal:!0,relevance:0,_illegalBy:{message:M.message,index:N,context:a.slice(N-100,N+100),mode:M.mode,resultSoFar:C},_emitter:A};if(s)return{language:e,value:O0(a),illegal:!1,relevance:0,errorRaised:M,_emitter:A,_top:k};throw M}}function u(e,a){a=a||r.languages||Object.keys(t);const i=function(e){const t={value:O0(e),illegal:!1,relevance:0,_top:o,_emitter:new r.__emitter(r)};return t._emitter.addText(e),t}(e),s=a.filter(m).filter(_).map(t=>d(t,e,!1));s.unshift(i);const n=s.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(m(e.language).supersetOf===t.language)return 1;if(m(t.language).supersetOf===e.language)return-1}return 0}),[l,c]=n,u=l;return u.secondBest=c,u}function p(e){let t=null;const i=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const a=r.languageDetectRe.exec(t);if(a){const e=m(a[1]);return e||n.replace("{}",a[1]),e?a[1]:"no-highlight"}return t.split(/\s+/).find(e=>l(e)||m(e))}(e);if(l(i))return;if(b("before:highlightElement",{el:e,language:i}),e.dataset.highlighted)return;if(e.children.length>0&&(r.ignoreUnescapedHTML,r.throwUnescapedHTML)){throw new R0("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e;const s=t.textContent,o=i?c(s,{language:i,ignoreIllegals:!0}):u(s);e.innerHTML=o.value,e.dataset.highlighted="yes",function(e,t,i){const s=t&&a[t]||i;e.classList.add("hljs"),e.classList.add(`language-${s}`)}(e,i,o.language),e.result={language:o.language,re:o.relevance,relevance:o.relevance},o.secondBest&&(e.secondBest={language:o.secondBest.language,relevance:o.secondBest.relevance}),b("after:highlightElement",{el:e,result:o,text:s})}let h=!1;function g(){if("loading"===document.readyState)return h||window.addEventListener("DOMContentLoaded",function(){g()},!1),void(h=!0);document.querySelectorAll(r.cssSelector).forEach(p)}function m(e){return e=(e||"").toLowerCase(),t[e]||t[a[e]]}function f(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{a[e.toLowerCase()]=t})}function _(e){const t=m(e);return t&&!t.disableAutodetect}function b(e,t){const a=e;i.forEach(function(e){e[a]&&e[a](t)})}Object.assign(e,{highlight:c,highlightAuto:u,highlightAll:g,highlightElement:p,highlightBlock:function(e){return w0("10.7.0","highlightBlock will be removed entirely in v12.0"),w0("10.7.0","Please use highlightElement now."),p(e)},configure:function(e){r=N0(r,e)},initHighlighting:()=>{g(),w0("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){g(),w0("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(a,i){let n=null;try{n=i(e)}catch(r){if("Language definition for '{}' could not be registered.".replace("{}",a),!s)throw r;n=o}n.name||(n.name=a),t[a]=n,n.rawDefinition=i.bind(null,e),n.aliases&&f(n.aliases,{languageName:a})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(a))a[t]===e&&delete a[t]},listLanguages:function(){return Object.keys(t)},getLanguage:m,registerAliases:f,autoDetection:_,inherit:N0,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),i.push(e)},removePlugin:function(e){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}}),e.debugMode=function(){s=!1},e.safeMode=function(){s=!0},e.versionString="11.11.1",e.regex={concat:UJ,lookahead:$J,either:HJ,optional:VJ,anyNumberOfTimes:BJ};for(const v in u0)"object"==typeof u0[v]&&AJ(u0[v]);return Object.assign(e,u0),e},M0=D0({});M0.newInstance=()=>D0({});var L0,P0,F0,$0,B0,V0,U0,H0,z0,Y0,G0,W0,j0,q0,K0,X0,Q0,Z0,J0,e1,t1,a1,i1,s1,n1,o1,r1,l1,c1,d1,u1,p1,h1,g1,m1,f1,_1,b1,v1,y1,S1,x1,w1,E1,C1,k1,T1,A1,R1,O1,N1,I1,D1,M1,L1,P1,F1,$1,B1,V1,U1,H1,z1,Y1,G1,W1,j1,q1,K1,X1,Q1,Z1,J1,e2,t2,a2,i2,s2,n2,o2,r2,l2,c2,d2,u2,p2,h2,g2,m2,f2,_2,b2,v2,y2,S2,x2,w2,E2,C2,k2,T2,A2,R2,O2,N2,I2,D2,M2,L2,P2,F2,$2,B2,V2,U2,H2,z2,Y2,G2,W2,j2,q2,K2,X2,Q2,Z2,J2,e3,t3,a3,i3,s3,n3,o3,r3,l3,c3,d3,u3,p3,h3,g3,m3,f3,_3,b3,v3,y3,S3,x3,w3,E3,C3,k3,T3,A3,R3,O3,N3,I3,D3,M3,L3,P3,F3,$3,B3,V3,U3,H3,z3,Y3,G3,W3,j3,q3,K3,X3,Q3,Z3,J3,e5,t5,a5,i5,s5,n5,o5,r5,l5,c5,d5,u5,p5,h5,g5,m5,f5,_5,b5,v5,y5,S5,x5,w5,E5,C5,k5,T5,A5,R5,O5,N5,I5,D5,M5,L5,P5,F5,$5,B5,V5,U5,H5,z5,Y5,G5,W5,j5,q5,K5,X5,Q5,Z5,J5,e4,t4,a4,i4,s4,n4,o4,r4,l4,c4,d4,u4,p4,h4,g4,m4,f4,_4,b4,v4,y4,S4,x4,w4,E4,C4,k4,T4,A4,R4,O4,N4,I4,D4,M4,L4,P4,F4,$4,B4,V4,U4,H4,z4,Y4,G4,W4,j4,q4,K4,X4,Q4,Z4,J4,e8,t8,a8,i8,s8,n8,o8,r8,l8,c8,d8,u8,p8,h8,g8,m8,f8,_8,b8,v8,y8,S8,x8,w8,E8,C8,k8,T8,A8,R8,O8,N8,I8,D8,M8,L8,P8,F8,$8,B8,V8,U8,H8,z8,Y8,G8,W8,j8,q8,K8,X8,Q8,Z8,J8,e6,t6,a6,i6,s6,n6,o6,r6,l6,c6,d6,u6,p6,h6,g6,m6,f6,_6,b6,v6,y6,S6,x6,w6,E6,C6,k6,T6,A6,R6,O6,N6,I6,D6,M6,L6,P6,F6,$6,B6,V6,U6=M0;M0.HighlightJS=M0,M0.default=M0;var H6=U6;H6.registerLanguage("1c",P0?L0:(P0=1,L0=function(e){const t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",a="далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",i="null истина ложь неопределено",s=e.inherit(e.NUMBER_MODE),n={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},o={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},r=e.inherit(e.C_LINE_COMMENT_MODE);return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:a,built_in:"разделительстраниц разделительстрок символтабуляции ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",class:"webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц отображениевремениэлементовпланировщика типфайлаформатированногодокумента обходрезультатазапроса типзаписизапроса видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов доступкфайлу режимдиалогавыборафайла режимоткрытияфайла типизмеренияпостроителязапроса видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",type:"comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",literal:i},contains:[{className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,keyword:a+"загрузитьизфайла вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент "},contains:[r]},{className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:"знач",literal:i},contains:[s,n,o]},r]},e.inherit(e.TITLE_MODE,{begin:t})]},r,{className:"symbol",begin:"~",end:";|:",excludeEnd:!0},s,n,o,{match:/[;()+\-:=,]/,className:"punctuation",relevance:0}]}})),H6.registerLanguage("abnf",$0?F0:($0=1,F0=function(e){const t=e.regex,a=e.COMMENT(/;/,/$/);return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],contains:[{scope:"operator",match:/=\/?/},{scope:"attribute",match:t.concat(/^[a-zA-Z][a-zA-Z0-9-]*/,/(?=\s*=)/)},a,{scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},{scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},{scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},{scope:"symbol",match:/%[si](?=".*")/},e.QUOTE_STRING_MODE,e.NUMBER_MODE]}})),H6.registerLanguage("accesslog",V0?B0:(V0=1,B0=function(e){const t=e.regex,a=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:t.concat(/"/,t.either(...a)),end:/"/,keywords:a,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}})),H6.registerLanguage("actionscript",H0?U0:(H0=1,U0=function(e){const t=e.regex,a=/[a-zA-Z_$][a-zA-Z0-9_$]*/,i=t.concat(a,t.concat("(\\.",a,")*")),s={className:"rest_arg",begin:/[.]{3}/,end:a,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s]},{begin:t.concat(/:\s*/,/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/)}]},e.METHOD_GUARD],illegal:/#/}})),H6.registerLanguage("ada",Y0?z0:(Y0=1,z0=function(e){const t="\\d(_|\\d)*",a="[eE][-+]?"+t,i="\\b("+t+"#\\w+(\\.\\w+)?#("+a+")?|"+t+"(\\."+t+")?("+a+")?)",s="[A-Za-z](_?[A-Za-z0-9.])*",n="[]\\{\\}%#'\"",o=e.COMMENT("--","$"),r={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:n,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:s,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[o,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:i,relevance:0},{className:"symbol",begin:"'"+s},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:n},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[o,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:n},r,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:n}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:n},r]}})),H6.registerLanguage("angelscript",W0?G0:(W0=1,G0=function(e){const t={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},a={className:"symbol",begin:"[a-zA-Z0-9_]+@"},i={className:"keyword",begin:"<",end:">",contains:[t,a]};return t.contains=[i],a.contains=[i],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,a,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}})),H6.registerLanguage("apache",q0?j0:(q0=1,j0=function(e){const t={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[t,{className:"number",begin:/:\d{1,5}/},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",{className:"number",begin:/[$%]\d+/}]},t,{className:"number",begin:/\b\d+/},e.QUOTE_STRING_MODE]}}],illegal:/\S/}})),H6.registerLanguage("applescript",X0?K0:(X0=1,K0=function(e){const t=e.regex,a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),i={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,a]},s=e.COMMENT(/--/,/$/),n=[s,e.COMMENT(/\(\*/,/\*\)/,{contains:["self",s]}),e.HASH_COMMENT_MODE];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[a,e.C_NUMBER_MODE,{className:"built_in",begin:t.concat(/\b/,t.either(/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:t.concat(/\b/,t.either(/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,i]},...n],illegal:/\/\/|->|=>|\[\[/}})),H6.registerLanguage("arcade",Z0?Q0:(Z0=1,Q0=function(e){const t="[A-Za-z_][0-9A-Za-z_]*",a={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","of","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","DistanceToCoordinate","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureInFilter","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","FilterBySubtypeCode","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","KnowledgeGraphByPortalItem","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","MeasureToCoordinate","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","PointToCoordinate","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","QueryGraph","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeFilename","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]},i={className:"symbol",begin:"\\$"+e.regex.either("aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","graph","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","userInput","value","variables","view")},s={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},n={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},o={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,n]};n.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,s,e.REGEXP_MODE];const r=n.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:a,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,s,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:r}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:r}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}})),H6.registerLanguage("arduino",e1?J0:(e1=1,J0=function(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},a=function(e){const t=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",n="(?!struct)("+i+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",o={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},r={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(r,{className:"string"}),{className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},d={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},u=t.optional(s)+e.IDENT_RE+"\\s*\\(",p={type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]},h={className:"function.dispatch",relevance:0,keywords:{_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},g=[h,c,o,a,e.C_BLOCK_COMMENT_MODE,l,r],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:p,contains:g.concat([{begin:/\(/,end:/\)/,keywords:p,contains:g.concat(["self"]),relevance:0}]),relevance:0},f={className:"function",begin:"("+n+"[\\*&\\s]+)+"+u,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:p,relevance:0},{begin:u,returnBegin:!0,contains:[d],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[r,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,r,l,o,{begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,r,l,o]}]},o,a,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(m,f,h,g,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:p,contains:["self",o]},{begin:e.IDENT_RE+"::",keywords:p},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}(e),i=a.keywords;return i.type=[...i.type,...t.type],i.literal=[...i.literal,...t.literal],i.built_in=[...i.built_in,...t.built_in],i._hints=t._hints,a.name="Arduino",a.aliases=["ino"],a.supersetOf="cpp",a})),H6.registerLanguage("armasm",a1?t1:(a1=1,t1=function(e){const t={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},t,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}})),H6.registerLanguage("xml",s1?i1:(s1=1,i1=function(e){const t=e.regex,a=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},n=e.inherit(s,{begin:/\(/,end:/\)/}),o=e.inherit(e.APOS_STRING_MODE,{className:"string"}),r=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,r,o,n,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,n,r,o]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[r]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(a,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}})),H6.registerLanguage("asciidoc",o1?n1:(o1=1,n1=function(e){const t=e.regex,a=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],i=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:t.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}];return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ \t].+?([ \t]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},{className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"},{className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/},...a,...i,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},{begin:"^'{3,}[ \\t]*$",relevance:10},{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}})),H6.registerLanguage("aspectj",l1?r1:(l1=1,r1=function(e){const t=e.regex,a=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],i=["get","set","args","call"];return{name:"AspectJ",keywords:a,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:a.concat(i),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:a,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:a.concat(i),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:a,excludeEnd:!0,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:a,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}})),H6.registerLanguage("autohotkey",d1?c1:(d1=1,c1=function(e){const t={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}})),H6.registerLanguage("autoit",p1?u1:(p1=1,u1=function(e){const t={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},a={begin:"\\$[A-z0-9_]+"},i={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},s={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",built_in:"Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",literal:"True False And Null Not Or Default"},contains:[t,a,i,s,{className:"meta",begin:"#",end:"$",keywords:{keyword:["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"]},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[i,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},i,t]},{className:"symbol",begin:"@[A-z0-9_]+"},{beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[a,i,s]}]}]}})),H6.registerLanguage("avrasm",g1?h1:(g1=1,h1=function(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}})),H6.registerLanguage("awk",f1?m1:(f1=1,m1=function(e){return{name:"Awk",keywords:{keyword:"BEGIN END if else while do for in break continue delete next nextfile function func exit|10"},contains:[{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}})),H6.registerLanguage("axapta",b1?_1:(b1=1,_1=function(e){const t=e.UNDERSCORE_IDENT_RE,a={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},i={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a};return{name:"X++",aliases:["x++"],keywords:a,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},i]}})),H6.registerLanguage("bash",y1?v1:(y1=1,v1=function(e){const t=e.regex,a={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},n=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},r={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,s]};s.contains.push(r);const l={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,a]},c=e.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),d={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],literal:["true","false"],built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"]},contains:[c,e.SHEBANG(),d,l,n,o,{match:/(\/[a-z._-]+)+/},r,{match:/\\"/},{className:"string",begin:/'/,end:/'/},{match:/\\'/},a]}})),H6.registerLanguage("basic",x1?S1:(x1=1,S1=function(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[{scope:"string",begin:/"/,end:/"|$/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}})),H6.registerLanguage("bnf",E1?w1:(E1=1,w1=function(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}})),H6.registerLanguage("brainfuck",k1?C1:(k1=1,C1=function(e){const t={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[t]},t]}})),H6.registerLanguage("c",A1?T1:(A1=1,T1=function(e){const t=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",n="("+i+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",o={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},r={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(r,{className:"string"}),{className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},d={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},u=t.optional(s)+e.IDENT_RE+"\\s*\\(",p={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},h=[c,o,a,e.C_BLOCK_COMMENT_MODE,l,r],g={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:p,contains:h.concat([{begin:/\(/,end:/\)/,keywords:p,contains:h.concat(["self"]),relevance:0}]),relevance:0},m={begin:"("+n+"[\\*&\\s]+)+"+u,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:p,relevance:0},{begin:u,returnBegin:!0,contains:[e.inherit(d,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,r,l,o,{begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,r,l,o]}]},o,a,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:p,disableAutodetect:!0,illegal:"</",contains:[].concat(g,m,h,[c,{begin:e.IDENT_RE+"::",keywords:p},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c,strings:r,keywords:p}}})),H6.registerLanguage("cal",O1?R1:(O1=1,R1=function(e){const t=e.regex,a=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],s={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},n={className:"string",begin:/(#\d+)+/},o={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:a,contains:[s,n,e.NUMBER_MODE]},...i]},r={match:[/OBJECT/,/\s+/,t.either("Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:a,literal:"false true"},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},s,n,{className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},{className:"string",begin:'"',end:'"'},e.NUMBER_MODE,r,o]}})),H6.registerLanguage("capnproto",I1?N1:(I1=1,N1=function(e){const t={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],type:["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},t]}})),H6.registerLanguage("ceylon",M1?D1:(M1=1,D1=function(e){const t=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],a={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},i=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[a]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return a.contains=i,{name:"Ceylon",keywords:{keyword:t.concat(["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"]),meta:["doc","by","license","see","throws","tagged"]},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(i)}})),H6.registerLanguage("clean",P1?L1:(P1=1,L1=function(e){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}})),H6.registerLanguage("clojure",$1?F1:($1=1,F1=function(e){const t="a-zA-Z_\\-!.?+*=<>&'",a="[#]?["+t+"]["+t+"0-9/;:$#]*",i="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",s={$pattern:a,built_in:i+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},n={begin:a,relevance:0},o={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},r={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},l={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),d={scope:"punctuation",match:/,/,relevance:0},u=e.COMMENT(";","$",{relevance:0}),p={className:"literal",begin:/\b(true|false|nil)\b/},h={begin:"\\[|(#::?"+a+")?\\{",end:"[\\]\\}]",relevance:0},g={className:"symbol",begin:"[:]{1,2}"+a},m={begin:"\\(",end:"\\)"},f={endsWithParent:!0,relevance:0},_={keywords:s,className:"name",begin:a,relevance:0,starts:f},b=[d,m,r,l,c,u,g,h,o,p,n],v={beginKeywords:i,keywords:{$pattern:a,keyword:i},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:a,relevance:0,excludeEnd:!0,endsParent:!0}].concat(b)};return m.contains=[v,_,f],f.contains=b,h.contains=b,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[d,m,r,l,c,u,g,h,o,p]}})),H6.registerLanguage("clojure-repl",V1?B1:(V1=1,B1=function(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}})),H6.registerLanguage("cmake",H1?U1:(H1=1,U1=function(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}})),H6.registerLanguage("coffeescript",function(){if(Y1)return z1;Y1=1;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],t=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);return z1=function(i){const s={keyword:e.concat(["then","unless","until","loop","by","when","and","or","is","isnt","not"]).filter((n=["var","const","let","function","static"],e=>!n.includes(e))),literal:t.concat(["yes","no","on","off"]),built_in:a.concat(["npm","print"])};var n;const o="[A-Za-z$_][0-9A-Za-z$_]*",r={className:"subst",begin:/#\{/,end:/\}/,keywords:s},l=[i.BINARY_NUMBER_MODE,i.inherit(i.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[i.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,r]},{begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,r]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[r,i.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+o},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];r.contains=l;const c=i.inherit(i.TITLE_MODE,{begin:o}),d="(\\(.*\\)\\s*)?\\B[-=]>",u={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(l)}]},p={variants:[{match:[/class\s+/,o,/\s+extends\s+/,o]},{match:[/class\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:s,illegal:/\/\*/,contains:[...l,i.COMMENT("###","###"),i.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+o+"\\s*=\\s*"+d,end:"[-=]>",returnBegin:!0,contains:[c,u]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:d,end:"[-=]>",returnBegin:!0,contains:[u]}]},p,{begin:o+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}}()),H6.registerLanguage("coq",W1?G1:(W1=1,G1=function(e){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}})),H6.registerLanguage("cos",q1?j1:(q1=1,j1=function(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}})),H6.registerLanguage("cpp",X1?K1:(X1=1,K1=function(e){const t=e.regex,a=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",s="[a-zA-Z_]\\w*::",n="(?!struct)("+i+"|"+t.optional(s)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",o={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},r={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(r,{className:"string"}),{className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},d={className:"title",begin:t.optional(s)+e.IDENT_RE,relevance:0},u=t.optional(s)+e.IDENT_RE+"\\s*\\(",p={type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]},h={className:"function.dispatch",relevance:0,keywords:{_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},g=[h,c,o,a,e.C_BLOCK_COMMENT_MODE,l,r],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:p,contains:g.concat([{begin:/\(/,end:/\)/,keywords:p,contains:g.concat(["self"]),relevance:0}]),relevance:0},f={className:"function",begin:"("+n+"[\\*&\\s]+)+"+u,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:p,relevance:0},{begin:u,returnBegin:!0,contains:[d],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[r,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[a,e.C_BLOCK_COMMENT_MODE,r,l,o,{begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,r,l,o]}]},o,a,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(m,f,h,g,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:p,contains:["self",o]},{begin:e.IDENT_RE+"::",keywords:p},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}})),H6.registerLanguage("crmsh",Z1?Q1:(Z1=1,Q1=function(e){const t="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\ number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:"primitive rsc_template",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+t.split(" ").join("|")+")\\s+",keywords:t,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}})),H6.registerLanguage("crystal",e2?J1:(e2=1,J1=function(e){const t="(_?[ui](8|16|32|64|128))?",a="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",i="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",s={$pattern:"[a-zA-Z_]\\w*[!?=]?",keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},n={className:"subst",begin:/#\{/,end:/\}/,keywords:s},o={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},r={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:s};function l(e,t){const a=[{begin:e,end:t}];return a[0].contains=a,a}const c={className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:l("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:l("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:l(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:l("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},d={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:l("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:l("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:l(/\{/,/\}/)},{begin:"%q<",end:">",contains:l("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},u={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},p=[r,c,d,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"%r\\(",end:"\\)",contains:l("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:l("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:l(/\{/,/\}/)},{begin:"%r<",end:">",contains:l("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},u,{className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},o,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:i}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:i})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:i})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[c,{begin:a}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?(_?f(32|64))?(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return n.contains=p,r.contains=p.slice(1),{name:"Crystal",aliases:["cr"],keywords:s,contains:p}})),H6.registerLanguage("csharp",a2?t2:(a2=1,t2=function(e){const t={keyword:["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"]),built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],literal:["default","false","null","true"]},a=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),i={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},s={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},n=e.inherit(s,{illegal:/\n/}),o={className:"subst",begin:/\{/,end:/\}/,keywords:t},r=e.inherit(o,{illegal:/\n/}),l={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,r]},c={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},o]},d=e.inherit(c,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},r]});o.contains=[c,l,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_BLOCK_COMMENT_MODE],r.contains=[d,l,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const u={variants:[{className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},c,l,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p={begin:"<",end:">",contains:[{beginKeywords:"in out"},a]},h=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",g={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:t,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},u,i,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},a,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+h+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:t,contains:[{beginKeywords:["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"].join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,p],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,relevance:0,contains:[u,i,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},g]}})),H6.registerLanguage("csp",s2?i2:(s2=1,i2=function(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}})),H6.registerLanguage("css",function(){if(o2)return n2;o2=1;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video","defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),s=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();return n2=function(n){const o=n.regex,r=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}))(n),l=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+a.join("|")+")"},{begin:":(:)?("+i.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+s.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...l,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...l,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:o.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b"}]}}}()),H6.registerLanguage("d",l2?r2:(l2=1,r2=function(e){const t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},a="(0|[1-9][\\d_]*)",i="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",s="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",n="([eE][+-]?"+i+")",o="("+a+"|0[bB][01_]+|0[xX]"+s+")",r="\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",l={className:"number",begin:"\\b"+o+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},c={className:"number",begin:"\\b(((0[xX]("+s+"\\."+s+"|\\.?"+s+")[pP][+-]?"+i+")|("+i+"(\\.\\d*|"+n+")|\\d+\\."+i+"|\\."+a+n+"?))([fF]|L|i|[fF]i|Li)?|"+o+"(i|[fF]i|Li))",relevance:0},d={className:"string",begin:"'("+r+"|.)",end:"'",illegal:"."},u={className:"string",begin:'"',contains:[{begin:r,relevance:0}],end:'"[cwd]?'},p=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,{className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},u,{className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},{className:"string",begin:"`",end:"`[cwd]?"},{className:"string",begin:'q"\\{',end:'\\}"'},c,l,d,{className:"meta",begin:"^#!",end:"$",relevance:5},{className:"meta",begin:"#(line)",end:"$",relevance:5},{className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"}]}})),H6.registerLanguage("markdown",d2?c2:(d2=1,c2=function(e){const t={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},a={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.regex.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},i={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},s={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},n=e.inherit(i,{contains:[]}),o=e.inherit(s,{contains:[]});i.contains.push(o),s.contains.push(n);let r=[t,a];return[i,s,n,o].forEach(e=>{e.contains=e.contains.concat(r)}),r=r.concat(i,s),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:r},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:r}]}]},t,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},i,s,{className:"quote",begin:"^>\\s+",contains:r,end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},a,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}})),H6.registerLanguage("dart",(p2||(p2=1,u2=function(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},a={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},i={className:"number",relevance:0,variants:[{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},s={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,a]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,a]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,a]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,a]}]};a.contains=[i,s];const n=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=n.map(e=>`${e}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:n.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[s,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},i,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}),u2)),H6.registerLanguage("delphi",g2?h2:(g2=1,h2=function(e){const t=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],a=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],i={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},s={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},n={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},o={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},r={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[s,n,i].concat(a)},i].concat(a)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[s,n,{className:"number",relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},o,r,i].concat(a)}})),H6.registerLanguage("diff",f2?m2:(f2=1,m2=function(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}})),H6.registerLanguage("django",b2?_2:(b2=1,_2=function(e){const t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[t]}]}})),H6.registerLanguage("dns",y2?v2:(y2=1,v2=function(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([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}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}})),H6.registerLanguage("dockerfile",x2?S2:(x2=1,S2=function(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}})),H6.registerLanguage("dos",E2?w2:(E2=1,w2=function(e){const t=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:["if","else","goto","for","in","do","call","exit","not","exist","errorlevel","defined","equ","neq","lss","leq","gtr","geq"],built_in:["prn","nul","lpt3","lpt2","lpt1","con","com4","com3","com2","com1","aux","shift","cd","dir","echo","setlocal","endlocal","set","pause","copy","append","assoc","at","attrib","break","cacls","cd","chcp","chdir","chkdsk","chkntfs","cls","cmd","color","comp","compact","convert","date","dir","diskcomp","diskcopy","doskey","erase","fs","find","findstr","format","ftype","graftabl","help","keyb","label","md","mkdir","mode","more","move","path","pause","print","popd","pushd","promt","rd","recover","rem","rename","replace","restore","rmdir","shift","sort","start","subst","time","title","tree","type","ver","verify","vol","ping","net","ipconfig","taskkill","xcopy","ren","del"]},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",end:"goto:eof",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),t]},{className:"number",begin:"\\b\\d+",relevance:0},t]}})),H6.registerLanguage("dsconfig",k2?C2:(k2=1,C2=function(e){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}})),H6.registerLanguage("dts",A2?T2:(A2=1,T2=function(e){const t={className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},a={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},i={className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[e.inherit(t,{className:"string"}),{className:"string",begin:"<",end:">",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},s={className:"variable",begin:/&[a-z\d_]*\b/};return{name:"Device Tree",contains:[{className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},s,{className:"keyword",begin:"/[a-z][a-z\\d-]*/"},{className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},{className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},{relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},{match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},{className:"params",relevance:0,begin:"<",end:">",contains:[a,s]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,t,i,{scope:"punctuation",relevance:0,match:/\};|[;{}]/},{begin:e.IDENT_RE+"::",keywords:""}]}})),H6.registerLanguage("dust",O2?R2:(O2=1,R2=function(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}})),H6.registerLanguage("ebnf",I2?N2:(I2=1,N2=function(e){const t=e.COMMENT(/\(\*/,/\*\)/);return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,{className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},{begin:/=/,end:/[.;]/,contains:[t,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]}]}})),H6.registerLanguage("elixir",M2?D2:(M2=1,D2=function(e){const t=e.regex,a="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",i={$pattern:a,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},s={className:"subst",begin:/#\{/,end:/\}/,keywords:i},n={match:/\\[\s\S]/,scope:"char.escape",relevance:0},o="[/|([{<\"']",r=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],l=e=>({scope:"char.escape",begin:t.concat(/\\/,e),relevance:0}),c={className:"string",begin:"~[a-z](?="+o+")",contains:r.map(t=>e.inherit(t,{contains:[l(t.end),n,s]}))},d={className:"string",begin:"~[A-Z](?="+o+")",contains:r.map(t=>e.inherit(t,{contains:[l(t.end)]}))},u={className:"regex",variants:[{begin:"~r(?="+o+")",contains:r.map(a=>e.inherit(a,{end:t.concat(a.end,/[uismxfU]{0,7}/),contains:[l(a.end),n,s]}))},{begin:"~R(?="+o+")",contains:r.map(a=>e.inherit(a,{end:t.concat(a.end,/[uismxfU]{0,7}/),contains:[l(a.end)]}))}]},p={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},h={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},g=e.inherit(h,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),m=[p,u,d,c,e.HASH_COMMENT_MODE,g,h,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[p,{begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"}],relevance:0},{className:"symbol",begin:a+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},{className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return s.contains=m,{name:"Elixir",aliases:["ex","exs"],keywords:i,contains:m}})),H6.registerLanguage("elm",P2?L2:(P2=1,L2=function(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},a={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[i,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[a,i,{begin:/\{/,end:/\}/,contains:i.contains},t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},{className:"string",begin:"'\\\\?.",end:"'",illegal:"."},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,a,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}})),H6.registerLanguage("ruby",$2?F2:($2=1,F2=function(e){const t=e.regex,a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),s=t.concat(i,/(::\w+)*/),n={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield","include","extend","prepend","public","private","protected","raise","throw"],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},o={className:"doctag",begin:"@[A-Za-z]+"},r={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[o]}),e.COMMENT("^=begin","^=end",{contains:[o],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:n},d={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},u="[0-9](_?[0-9])*",p={className:"number",relevance:0,variants:[{begin:`\\b([1-9](_?[0-9])*|0)(\\.(${u}))?([eE][+-]?(${u})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},h={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:n}]},g=[d,{variants:[{match:[/class\s+/,s,/\s+<\s+/,s]},{match:[/\b(class|module)\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:n},{match:[/(include|extend)\s+/,s],scope:{2:"title.class"},keywords:n},{relevance:0,match:[s,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[h]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:a}],relevance:0},p,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:n},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(r,l),relevance:0}].concat(r,l);c.contains=g,h.contains=g;const m=[{begin:/^\s*=>/,starts:{end:"$",contains:g}},{className:"meta.prompt",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])",starts:{end:"$",keywords:n,contains:g}}];return l.unshift(r),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:n,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(m).concat(l).concat(g)}})),H6.registerLanguage("erb",V2?B2:(V2=1,B2=function(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}})),H6.registerLanguage("erlang-repl",H2?U2:(H2=1,U2=function(e){const t=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:t.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}})),H6.registerLanguage("erlang",Y2?z2:(Y2=1,z2=function(e){const t="[a-z'][a-zA-Z0-9_']*",a="("+t+":"+t+"|"+t+")",i={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor maybe else",literal:"false true"},s=e.COMMENT("%","$"),n={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+t+"/\\d+"},r={begin:a+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:a,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:/\{/,end:/\}/,relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},d={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},u={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},p={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},h={scope:"string",match:/"""("*)(?!")[\s\S]*?"""\1/},g={scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{match:/~\w?"""("*)(?!")[\s\S]*?"""\1/},{begin:/~\w?\(/,end:/\)/},{begin:/~\w?\[/,end:/\]/},{begin:/~\w?{/,end:/}/},{begin:/~\w?</,end:/>/},{begin:/~\w?\//,end:/\//},{begin:/~\w?\|/,end:/\|/},{begin:/~\w?'/,end:/'/},{begin:/~\w?"/,end:/"/},{begin:/~\w?`/,end:/`/},{begin:/~\w?#/,end:/#/}]},m={beginKeywords:"fun receive if try case maybe",end:"end",keywords:i};m.contains=[s,o,e.inherit(e.APOS_STRING_MODE,{className:""}),m,r,g,h,e.QUOTE_STRING_MODE,n,l,c,d,u,p];const f=[s,o,m,r,g,h,e.QUOTE_STRING_MODE,n,l,c,d,u,p];r.contains[1].contains=f,l.contains=f,u.contains[1].contains=f;const _={className:"params",begin:"\\(",end:"\\)",contains:f};return{name:"Erlang",aliases:["erl"],keywords:i,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+t+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[_,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:i,contains:f}},s,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-moduledoc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec","-on_load","-nifs"].map(e=>`${e}|1.5`).join(" ")},contains:[_,g,h,e.QUOTE_STRING_MODE]},n,g,h,e.QUOTE_STRING_MODE,u,c,d,l,p,{begin:/\.$/}]}})),H6.registerLanguage("excel",W2?G2:(W2=1,G2=function(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ARRAYTOTEXT","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","BYCOL","BYROW","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CHOOSECOLS","CHOOSEROWS","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DROP","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPAND","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE","F.DIST","FDIST","F.DIST.RT","FILTER","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HSTACK","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGE","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISOMITTED","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LAMBDA","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LET","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MAKEARRAY","MAP","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDB","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDARRAY","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REDUCE","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SCAN","SEARCH","SEARCHB","SEC","SECH","SECOND","SEQUENCE","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SORT","SORTBY","SQRT","SQRTPI","SQL.REQUEST","STANDARDIZE","STOCKHISTORY","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TAKE","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTAFTER","TEXTBEFORE","TEXTJOIN","TEXTSPLIT","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TOCOL","TOROW","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UNIQUE","UPPER","VALUE","VALUETOTEXT","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","VSTACK","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","WRAPCOLS","WRAPROWS","XIRR","XLOOKUP","XMATCH","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}})),H6.registerLanguage("fix",q2?j2:(q2=1,j2=function(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}})),H6.registerLanguage("flix",X2?K2:(X2=1,K2=function(e){const t={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},{className:"string",variants:[{begin:'"',end:'"'}]},t,e.C_NUMBER_MODE]}})),H6.registerLanguage("fortran",Z2?Q2:(Z2=1,Q2=function(e){const t=e.regex,a={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},i=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,n={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,s,i)},{begin:t.concat(/\b\d+/,s,i)},{begin:t.concat(/\.\d+/,s,i)}],relevance:0},o={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[{className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},o,{begin:/^C\s*=(?!=)/,relevance:0},a,n]}})),H6.registerLanguage("fsharp",function(){if(e3)return J2;function e(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function t(e){return e?"string"==typeof e?e:e.source:null}function a(e){return i("(?=",e,")")}function i(...e){return e.map(e=>t(e)).join("")}function s(...e){const a=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e);return"("+(a.capture?"":"?:")+e.map(e=>t(e)).join("|")+")"}return e3=1,J2=function(t){const n={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},o=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],r={keyword:["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],literal:["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"]},l={variants:[t.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),t.C_LINE_COMMENT_MODE]},c={scope:"variable",begin:/``/,end:/``/},d=/\B('|\^)/,u={scope:"symbol",variants:[{match:i(d,/``.*?``/)},{match:i(d,t.UNDERSCORE_IDENT_RE)}],relevance:0},p=function({includeEqual:t}){let n;n=t?"!%&*+-/<=>@^|~?":"!%&*+-/<>@^|~?";const o=i("[",...Array.from(n).map(e),"]"),r=s(o,/\./),l=i(r,a(r)),c=s(i(l,r,"*"),i(o,"+"));return{scope:"operator",match:s(c,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},h=p({includeEqual:!0}),g=p({includeEqual:!1}),m=function(e,n){return{begin:i(e,a(i(/\s*/,s(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:n,end:a(s(/\n/,/=/)),relevance:0,keywords:t.inherit(r,{type:o}),contains:[l,u,t.inherit(c,{scope:null}),g]}},f=m(/:/,"operator"),_=m(/\bof\b/,"keyword"),b={begin:[/(^|\s+)/,/type/,/\s+/,/[a-zA-Z_](\w|')*/],beginScope:{2:"keyword",4:"title.class"},end:a(/\(|=|$/),keywords:r,contains:[l,t.inherit(c,{scope:null}),u,{scope:"operator",match:/<|>/},f]},v={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},y={begin:[/^\s*/,i(/#/,s("if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit")),/\b/],beginScope:{2:"meta"},end:a(/\s|$/)},S={variants:[t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]},x={scope:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]},w={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},t.BACKSLASH_ESCAPE]},E={scope:"string",begin:/"""/,end:/"""/,relevance:2},C={scope:"subst",begin:/\{/,end:/\}/,keywords:r},k={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},t.BACKSLASH_ESCAPE,C]},T={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},t.BACKSLASH_ESCAPE,C]},A={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},C],relevance:2},R={scope:"string",match:i(/'/,s(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return C.contains=[T,k,w,x,R,n,l,c,f,v,y,S,u,h],{name:"F#",aliases:["fs","f#"],keywords:r,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[n,{variants:[A,T,k,E,w,x,R]},l,c,b,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[c,E,w,x,R,S]},_,f,v,y,S,u,h]}}}()),H6.registerLanguage("gams",a3?t3:(a3=1,t3=function(e){const t=e.regex,a={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},i={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},s={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},n={begin:"/",end:"/",keywords:a,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},o=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,r={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[s,n,{className:"comment",begin:t.concat(o,t.anyNumberOfTimes(t.concat(/[ ]+/,o))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:a,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n,r]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[r]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i]},e.C_NUMBER_MODE,i]}})),H6.registerLanguage("gauss",s3?i3:(s3=1,i3=function(e){const t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},a=e.COMMENT("@","@"),i={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a]},s={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},n=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,s]}],o={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},r=function(t,i,s){const r=e.inherit({className:"function",beginKeywords:t,end:i,excludeEnd:!0,contains:[].concat(n)},{});return r.contains.push(o),r.contains.push(e.C_NUMBER_MODE),r.contains.push(e.C_BLOCK_COMMENT_MODE),r.contains.push(a),r},l={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},c={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},d={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},l,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},u={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,l,d,c,"self"]};return d.contains.push(u),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,c,i,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},r("proc keyword",";"),r("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,a,u]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},d,s]}})),H6.registerLanguage("gcode",o3?n3:(o3=1,n3=function(e){const t=e.regex,a=/\b/;function i(e,t){if(0===e.index)return;const a=e.input[e.index-1];a>="0"&&a<="9"||"_"!==a&&t.ignoreMatch()}const s=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,n=/[GM]\s*\d+(\.\d+)?/,o=/T\s*\d+/,r=/O\s*\d+/,l=/O<.+>/,c=/[ABCUVWXYZ]\s*/,d=/[FHIJKPQRS]\s*/;return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:{$pattern:/[A-Z]+|%/,keyword:["THEN","ELSE","ENDIF","IF","GOTO","DO","WHILE","WH","END","CALL","SUB","ENDSUB","EQ","NE","LT","GT","LE","GE","AND","OR","XOR","%"],built_in:["ATAN","ABS","ACOS","ASIN","COS","EXP","FIX","FUP","ROUND","LN","SIN","SQRT","TAN","EXISTS"]},contains:[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:"title.function",variants:[{match:t.concat(a,n)},{begin:n,"on:begin":i},{match:t.concat(a,o)},{begin:o,"on:begin":i}]},{scope:"symbol",variants:[{match:t.concat(a,r)},{begin:r,"on:begin":i},{match:t.concat(a,l)},{begin:l,"on:begin":i},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:t.concat(a,c,s)},{begin:t.concat(c,s),"on:begin":i}]},{scope:"params",variants:[{match:t.concat(a,d,s)},{begin:t.concat(d,s),"on:begin":i}]}]}})),H6.registerLanguage("gherkin",l3?r3:(l3=1,r3=function(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}})),H6.registerLanguage("glsl",d3?c3:(d3=1,c3=function(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}})),H6.registerLanguage("gml",p3?u3:(p3=1,u3=function(e){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],built_in:["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_get_assets","audio_group_get_gain","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_frequency","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_circle_precision","draw_set_color","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_to_mp_grid","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_is_list","ds_list_is_map","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_is_list","ds_map_is_map","ds_map_keys_to_array","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_values_to_array","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_depth","gpu_get_fog","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_depth","gpu_set_fog","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","lin_to_db","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","method","method_call","method_get_index","method_get_self","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_and_collide","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_check_permission","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_info","part_system_get_layer","part_system_global_space","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_f_buffer","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_message_ext","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],symbol:["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","dropShadowEnabled","dropShadowEnabled","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","infinity","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up","wallpaper_config","wallpaper_subscription_data","wrap"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}})),H6.registerLanguage("go",g3?h3:(g3=1,h3=function(e){const t={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:t,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,illegal:/["']/}]}]}})),H6.registerLanguage("golo",f3?m3:(f3=1,m3=function(e){return{name:"Golo",keywords:{keyword:["println","readln","print","import","module","function","local","return","let","var","while","for","foreach","times","in","case","when","match","with","break","continue","augment","augmentation","each","find","filter","reduce","if","then","else","otherwise","try","catch","finally","raise","throw","orIfNull","DynamicObject|10","DynamicVariable","struct","Observable","map","set","vector","list","array"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}})),H6.registerLanguage("gradle",b3?_3:(b3=1,_3=function(e){return{name:"Gradle",case_insensitive:!0,keywords:["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"],contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}})),H6.registerLanguage("graphql",y3?v3:(y3=1,v3=function(e){const t=e.regex;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(/[_A-Za-z][_0-9A-Za-z]*/,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}})),H6.registerLanguage("groovy",function(){if(x3)return S3;function e(e,t={}){return t.variants=e,t}return x3=1,S3=function(t){const a=t.regex,i="[A-Za-z0-9_$]+",s=e([t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),n={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[t.BACKSLASH_ESCAPE]},o=e([t.BINARY_NUMBER_MODE,t.C_NUMBER_MODE]),r=e([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE],{className:"string"}),l={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,t.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:["byte","short","char","int","long","boolean","float","double","void"],keyword:["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof","var"]},contains:[t.SHEBANG({binary:"groovy",relevance:10}),s,r,n,o,l,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:i+"[ \t]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[s,r,n,o,"self"]},{className:"symbol",begin:"^[ \t]*"+a.lookahead(i+":"),excludeBegin:!0,end:i+":",relevance:0}],illegal:/#|<\//}}}()),H6.registerLanguage("haml",E3?w3:(E3=1,w3=function(e){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}})),H6.registerLanguage("handlebars",k3?C3:(k3=1,C3=function(e){const t=e.regex,a={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},i=/\[\]|\[[^\]]+\]/,s=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,n=t.either(/""|"[^"]+"/,/''|'[^']+'/,i,s),o=t.concat(t.optional(/\.|\.\/|\//),n,t.anyNumberOfTimes(t.concat(/(\.|\/)/,n))),r=t.concat("(",i,"|",s,")(?==)"),l={begin:o},c=e.inherit(l,{keywords:{$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]}}),d={begin:/\(/,end:/\)/},u={className:"attr",begin:r,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,c,d]}}},p={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},u,c,d],returnEnd:!0},h=e.inherit(l,{className:"name",keywords:a,starts:e.inherit(p,{end:/\)/})});d.contains=[h];const g=e.inherit(l,{keywords:a,className:"name",starts:e.inherit(p,{end:/\}\}/})}),m=e.inherit(l,{keywords:a,className:"name"}),f=e.inherit(l,{className:"name",keywords:a,starts:e.inherit(p,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[g],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[m]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[g]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[m]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[f]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[f]}]}})),H6.registerLanguage("haskell",A3?T3:(A3=1,T3=function(e){const t="([0-9]_*)+",a="([0-9a-fA-F]_*)+",i="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",s={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"meta",begin:/\{-#/,end:/#-\}/},o={className:"meta",begin:"^#",end:"$"},r={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},l={begin:"\\(",end:"\\)",illegal:'"',contains:[n,o,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),s]},c={className:"number",relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${a})(\\.(${a}))?([pP][+-]?(${t}))?\\b`},{match:"\\b0[oO](([0-7]_*)+)\\b"},{match:"\\b0[bB](([01]_*)+)\\b"}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[l,s],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[l,s],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[r,l,s]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[n,r,l,{begin:/\{/,end:/\}/,contains:l.contains},s]},{beginKeywords:"default",end:"$",contains:[r,l,s]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,s]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[r,e.QUOTE_STRING_MODE,s]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},n,o,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,c,r,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${i}--+|--+(?!-)${i}`},s,{begin:"->|<-"}]}})),H6.registerLanguage("haxe",O3?R3:(O3=1,R3=function(e){return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/,relevance:0},{className:"variable",begin:"\\$[a-zA-Z_$][a-zA-Z0-9_$]*"},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",beginKeywords:"new",end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}})),H6.registerLanguage("hsp",I3?N3:(I3=1,N3=function(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}})),H6.registerLanguage("http",M3?D3:(M3=1,D3=function(e){const t="HTTP/([32]|1\\.[01])",a={className:"attribute",begin:e.regex.concat("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},i=[a,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+t+" \\d{3})",end:/$/,contains:[{className:"meta",begin:t},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},{begin:"(?=^[A-Z]+ (.*?) "+t+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:t},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},e.inherit(a,{relevance:0})]}})),H6.registerLanguage("hy",P3?L3:(P3=1,L3=function(e){const t="a-zA-Z_\\-!.?+*=<>&#'",a="["+t+"]["+t+"0-9/;:]*",i={$pattern:a,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},s={begin:a,relevance:0},n={className:"number",begin:"[-+]?\\d+(\\.\\d+)?",relevance:0},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r=e.COMMENT(";","$",{relevance:0}),l={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},c={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},d={className:"comment",begin:"\\^"+a},u=e.COMMENT("\\^\\{","\\}"),p={className:"symbol",begin:"[:]{1,2}"+a},h={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},m={className:"name",relevance:0,keywords:i,begin:a,starts:g},f=[h,o,d,u,r,p,c,n,l,s];return h.contains=[e.COMMENT("comment",""),m,g],g.contains=f,c.contains=f,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),h,o,d,u,r,p,c,n,l]}})),H6.registerLanguage("inform7",$3?F3:($3=1,F3=function(e){return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:"\\[",end:"\\]"}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:"\\[",end:"\\]",contains:["self"]}]}})),H6.registerLanguage("ini",V3?B3:(V3=1,B3=function(e){const t=e.regex,a={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const s={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},n={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},r={begin:/\[/,end:/\]/,contains:[i,n,s,o,a,"self"],relevance:0},l=t.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:t.concat(l,"(\\s*\\.\\s*",l,")*",t.lookahead(/\s*=\s*[^#\s]/)),className:"attr",starts:{end:/$/,contains:[i,r,n,s,o,a]}}]}})),H6.registerLanguage("irpf90",H3?U3:(H3=1,U3=function(e){const t=e.regex,a=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,s={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,i,a)},{begin:t.concat(/\b\d+/,i,a)},{begin:t.concat(/\.\d+/,i,a)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),s]}})),H6.registerLanguage("isbl",Y3?z3:(Y3=1,z3=function(e){const t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",a={className:"number",begin:e.NUMBER_RE,relevance:0},i={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},n={variants:[{className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,s]},{className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,s]}]},o={$pattern:t,keyword:"and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",built_in:"SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE smHidden smMaximized smMinimized smNormal wmNo wmYes COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID RESULT_VAR_NAME RESULT_VAR_NAME_ENG AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ISBL_SYNTAX NO_SYNTAX XML_SYNTAX WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP atUser atGroup atRole aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty apBegin apEnd alLeft alRight asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways cirCommon cirRevoked ctSignature ctEncode ctSignatureEncode clbUnchecked clbChecked clbGrayed ceISB ceAlways ceNever ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob cfInternal cfDisplay ciUnspecified ciWrite ciRead ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton cctDate cctInteger cctNumeric cctPick cctReference cctString cctText cltInternal cltPrimary cltGUI dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange dssEdit dssInsert dssBrowse dssInActive dftDate dftShortDate dftDateTime dftTimeStamp dotDays dotHours dotMinutes dotSeconds dtkndLocal dtkndUTC arNone arView arEdit arFull ddaView ddaEdit emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ecotFile ecotProcess eaGet eaCopy eaCreate eaCreateStandardRoute edltAll edltNothing edltQuery essmText essmCard esvtLast esvtLastActive esvtSpecified edsfExecutive edsfArchive edstSQLServer edstFile edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile vsDefault vsDesign vsActive vsObsolete etNone etCertificate etPassword etCertificatePassword ecException ecWarning ecInformation estAll estApprovingOnly evtLast evtLastActive evtQuery fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch grhAuto grhX1 grhX2 grhX3 hltText hltRTF hltHTML iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG im8bGrayscale im24bRGB im1bMonochrome itBMP itJPEG itWMF itPNG ikhInformation ikhWarning ikhError ikhNoIcon icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler isShow isHide isByUserSettings jkJob jkNotice jkControlJob jtInner jtLeft jtRight jtFull jtCross lbpAbove lbpBelow lbpLeft lbpRight eltPerConnection eltPerUser sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac sfsItalic sfsStrikeout sfsNormal ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom vtEqual vtGreaterOrEqual vtLessOrEqual vtRange rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth rdWindow rdFile rdPrinter rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument reOnChange reOnChangeValues ttGlobal ttLocal ttUser ttSystem ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal smSelect smLike smCard stNone stAuthenticating stApproving sctString sctStream sstAnsiSort sstNaturalSort svtEqual svtContain soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown tarAbortByUser tarAbortByWorkflowException tvtAllWords tvtExactPhrase tvtAnyWord usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected btAnd btDetailAnd btOr btNotOr btOnly vmView vmSelect vmNavigation vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection wfatPrevious wfatNext wfatCancel wfatFinish wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 wfetQueryParameter wfetText wfetDelimiter wfetLabel wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal waAll waPerformers waManual wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection wiLow wiNormal wiHigh wrtSoft wrtHard wsInit wsRunning wsDone wsControlled wsAborted wsContinued wtmFull wtmFromCurrent wtmOnlyCurrent ",class:"AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",literal:"null true false nil "},r={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:o,relevance:0},l={className:"type",begin:":[ \\t]*("+"IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ".trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},c={className:"variable",keywords:o,begin:t,relevance:0,contains:[l,r]},d="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*\\(";return{name:"ISBL",case_insensitive:!0,keywords:o,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:d,end:"\\)$",returnBegin:!0,keywords:o,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:t,built_in:"AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр "},begin:d,end:"\\(",returnBegin:!0,excludeEnd:!0},r,c,i,a,n]},l,r,c,i,a,n]}})),H6.registerLanguage("java",function(){if(W3)return G3;W3=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,a="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${a})\\.?|(${a})?\\.(${a}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${a})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(e,t,a){return-1===a?"":e.replace(t,i=>s(e,t,a-1))}return G3=function(e){const t=e.regex,a="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",n=a+s("(?:<"+a+"~~~(?:\\s*,\\s*"+a+"~~~)*>)?",/~~~/g,2),o={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},r={className:"meta",begin:"@"+a,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},l={className:"params",begin:/\(/,end:/\)/,keywords:o,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:o,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,a),/\s+/,a,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,a],className:{1:"keyword",3:"title.class"},contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+n+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:o,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:o,relevance:0,contains:[r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i,r]}}}()),H6.registerLanguage("javascript",function(){if(q3)return j3;q3=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],a=["true","false","null","undefined","NaN","Infinity"],i=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],n=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],r=[].concat(n,i,s);return j3=function(l){const c=l.regex,d=e,u="<>",p="</>",h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const a=e[0].length+e.index,i=e.input[a];if("<"===i||","===i)return void t.ignoreMatch();let s;">"===i&&(((e,{after:t})=>{const a="</"+e[0].slice(1);return-1!==e.input.indexOf(a,t)})(e,{after:a})||t.ignoreMatch());const n=e.input.substring(a);((s=n.match(/^\s*=/))||(s=n.match(/^\s+extends\s+/))&&0===s.index)&&t.ignoreMatch()}},g={$pattern:e,keyword:t,literal:a,built_in:r,"variable.language":o},m="[0-9](_?[0-9])*",f=`\\.(${m})`,_="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${_})((${f})|\\.)?|(${f}))[eE][+-]?(${m})\\b`},{begin:`\\b(${_})\\b((${f})\\b|\\.)?|(${f})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},y={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},S={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,v],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,v],subLanguage:"graphql"}},w={className:"string",begin:"`",end:"`",contains:[l.BACKSLASH_ESCAPE,v]},E={className:"comment",variants:[l.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),l.C_BLOCK_COMMENT_MODE,l.C_LINE_COMMENT_MODE]},C=[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,S,x,w,{match:/\$\d+/},b];v.contains=C.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(C)});const k=[].concat(E,v.contains),T=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(k)}]),A={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:T},R={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,c.concat(d,"(",c.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...i,...s]}},N={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[A],illegal:/%/},I={match:c.concat(/\b/,(D=[...n,"super","import"].map(e=>`${e}\\s*\\(`),c.concat("(?!",D.join("|"),")")),d,c.lookahead(/\s*\(/)),className:"title.function",relevance:0};var D;const M={begin:c.concat(/\./,c.lookahead(c.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},L={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},A]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+l.UNDERSCORE_IDENT_RE+")\\s*=>",F={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[A]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[l.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,S,x,w,E,{match:/\$\d+/},b,O,{scope:"attr",match:d+c.lookahead(":"),relevance:0},F,{begin:"("+l.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,l.REGEXP_MODE,{className:"function",begin:P,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:l.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:u,end:p},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:"xml",contains:[{begin:h.begin,end:h.end,skip:!0,contains:["self"]}]}]},N,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+l.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[A,l.inherit(l.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},M,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[A]},I,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},R,L,{match:/\$[(.]/}]}}}()),H6.registerLanguage("jboss-cli",X3?K3:(X3=1,K3=function(e){const t={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"params",begin:/--[\w\-=\/]+/},{className:"function",begin:/:[\w\-.]+/,relevance:0},{className:"string",begin:/\B([\/.])[\w\-.\/=]+/},t]}})),H6.registerLanguage("json",Z3?Q3:(Z3=1,Q3=function(e){const t=["true","false","null"],a={scope:"literal",beginKeywords:t.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:t},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},e.QUOTE_STRING_MODE,a,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}})),H6.registerLanguage("julia",e5?J3:(e5=1,J3=function(e){const t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",a={$pattern:t,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},i={keywords:a,illegal:/<\//},s={className:"subst",begin:/\$\(/,end:/\)/,keywords:a},n={className:"variable",begin:"\\$"+t},o={className:"string",contains:[e.BACKSLASH_ESCAPE,s,n],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},r={className:"string",contains:[e.BACKSLASH_ESCAPE,s,n],begin:"`",end:"`"},l={className:"meta",begin:"@"+t};return i.name="Julia",i.contains=[{className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},o,r,l,{className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]},e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],s.contains=i.contains,i})),H6.registerLanguage("julia-repl",a5?t5:(a5=1,t5=function(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}})),H6.registerLanguage("kotlin",function(){if(s5)return i5;s5=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,a="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${a})\\.?|(${a})?\\.(${a}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${a})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};return i5=function(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},s={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},n={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[n,s]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,n,s]}]};s.contains.push(o);const r={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},c=i,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),u={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=u;return p.variants[1].contains=[u],u.variants[1].contains=[p],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},a,r,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[u,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,r,l,o,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},r,l]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},c]}}}()),H6.registerLanguage("lasso",o5?n5:(o5=1,n5=function(e){const t="[a-zA-Z_][\\w.]*",a="<\\?(lasso(script)?|=)",i="\\]|\\?>",s={$pattern:t+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},n=e.COMMENT("\x3c!--","--\x3e",{relevance:0}),o={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[n]}},r={className:"meta",begin:"\\[/noprocess|"+a},l={className:"symbol",begin:"'"+t+"'"},c=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+t},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:t,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+t,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[l]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:t+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:s,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[|"+a,returnEnd:!0,relevance:0,contains:[n]}},o,r,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:s,contains:[{className:"meta",begin:i,relevance:0,starts:{end:"\\[noprocess\\]|"+a,returnEnd:!0,contains:[n]}},o,r].concat(c)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(c)}})),H6.registerLanguage("latex",l5?r5:(l5=1,r5=function(e){const t=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],a=[{className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(e=>e+"(?![a-zA-Z@:_])"))},{endsParent:!0,begin:new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(e=>e+"(?![a-zA-Z:_])").join("|"))},{endsParent:!0,variants:t},{endsParent:!0,relevance:0,variants:[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}]}]},{className:"params",relevance:0,begin:/#+\d?/},{variants:t},{className:"built_in",relevance:0,begin:/[$&^_]/},{className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},e.COMMENT("%","$",{relevance:0})],i={begin:/\{/,end:/\}/,relevance:0,contains:["self",...a]},s=e.inherit(i,{relevance:0,endsParent:!0,contains:[i,...a]}),n={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[i,...a]},o={begin:/\s+/,relevance:0},r=[s],l=[n],c=function(e,t){return{contains:[o],starts:{relevance:0,contains:e,starts:t}}},d=function(e,t){return{begin:"\\\\"+e+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+e},relevance:0,contains:[o],starts:t}},u=function(t,a){return e.inherit({begin:"\\\\begin(?=[ \t]*(\\r?\\n[ \t]*)?\\{"+t+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},c(r,a))},p=(t="string")=>e.END_SAME_AS_BEGIN({className:t,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),h=function(e){return{className:"string",end:"(?=\\\\end\\{"+e+"\\})"}},g=(e="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:e,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}});return{name:"LaTeX",aliases:["tex"],contains:[...["verb","lstinline"].map(e=>d(e,{contains:[p()]})),d("mint",c(r,{contains:[p()]})),d("mintinline",c(r,{contains:[g(),p()]})),d("url",{contains:[g("link"),g("link")]}),d("hyperref",{contains:[g("link")]}),d("href",c(l,{contains:[g("link")]})),...[].concat(...["","\\*"].map(e=>[u("verbatim"+e,h("verbatim"+e)),u("filecontents"+e,c(r,h("filecontents"+e))),...["","B","L"].map(t=>u(t+"Verbatim"+e,c(l,h(t+"Verbatim"+e))))])),u("minted",c(l,c(r,h("minted")))),...a]}})),H6.registerLanguage("ldif",d5?c5:(d5=1,c5=function(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}})),H6.registerLanguage("leaf",p5?u5:(p5=1,u5=function(e){const t=/([A-Za-z_][A-Za-z_0-9]*)?/,a={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},i={match:[t,/(?=\()/],scope:{1:"keyword"},contains:[a]};return a.contains.unshift(i),{name:"Leaf",contains:[{match:[/#+/,t,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[a]},{match:[/#+/,t,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}})),H6.registerLanguage("less",function(){if(g5)return h5;g5=1;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video","defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),s=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),n=a.concat(i).sort().reverse();return h5=function(o){const r=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}))(o),l=n,c="[\\w-]+",d="("+c+"|@\\{"+c+"\\})",u=[],p=[],h=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},g=function(e,t,a){return{className:e,begin:t,relevance:a}},m={$pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},f={begin:"\\(",end:"\\)",contains:p,keywords:m,relevance:0};p.push(o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,h("'"),h('"'),r.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},r.HEXCOLOR,f,g("variable","@@?"+c,10),g("variable","@\\{"+c+"\\}"),g("built_in","~?`[^`]*?`"),{className:"attribute",begin:c+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},r.IMPORTANT,{beginKeywords:"and not"},r.FUNCTION_DISPATCH);const _=p.concat({begin:/\{/,end:/\}/,contains:u}),b={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(p)},v={begin:d+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+s.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:p}}]},y={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:m,returnEnd:!0,contains:p,relevance:0}},S={className:"variable",variants:[{begin:"@"+c+"\\s*:",relevance:15},{begin:"@"+c}],starts:{end:"[;}]",returnEnd:!0,contains:_}},x={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:d,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,b,g("keyword","all\\b"),g("variable","@\\{"+c+"\\}"),{begin:"\\b("+e.join("|")+")\\b",className:"selector-tag"},r.CSS_NUMBER_MODE,g("selector-tag",d,0),g("selector-id","#"+d),g("selector-class","\\."+d,0),g("selector-tag","&",0),r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+a.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+i.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:_},{begin:"!important"},r.FUNCTION_DISPATCH]},w={begin:c+`:(:)?(${l.join("|")})`,returnBegin:!0,contains:[x]};return u.push(o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,y,S,w,v,x,b,r.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:u}},h5}()),H6.registerLanguage("lisp",f5?m5:(f5=1,m5=function(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",a="\\|[^]*?\\|",i="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",s={className:"literal",begin:"\\b(t{1}|nil)\\b"},n={className:"number",variants:[{begin:i,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+i+" +"+i,end:"\\)"}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r=e.COMMENT(";","$",{relevance:0}),l={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+t},d={begin:t,relevance:0},u={begin:a},p={contains:[n,o,l,c,{begin:"\\(",end:"\\)",contains:["self",s,o,n,d]},d],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+a}]},h={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},g={begin:"\\(\\s*",end:"\\)"},m={endsWithParent:!0,relevance:0};return g.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:a}]},m],m.contains=[p,h,g,s,n,o,r,l,c,u,d],{name:"Lisp",illegal:/\S/,contains:[n,e.SHEBANG(),s,o,r,p,h,g,d]}})),H6.registerLanguage("livecodeserver",b5?_5:(b5=1,_5=function(e){const t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},a=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],i=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),s=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[s,i],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,i].concat(a),illegal:";$|^\\[|^=|&|\\{"}})),H6.registerLanguage("livescript",function(){if(y5)return v5;y5=1;const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],t=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);return v5=function(i){const s={keyword:e.concat(["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"]),literal:t.concat(["yes","no","on","off","it","that","void"]),built_in:a.concat(["npm","print"])},n="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",o=i.inherit(i.TITLE_MODE,{begin:n}),r={className:"subst",begin:/#\{/,end:/\}/,keywords:s},l={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:s},c=[i.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[i.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[i.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[i.BACKSLASH_ESCAPE,r,l]},{begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,r,l]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[r,i.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+n},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];r.contains=c;const d={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(c)}]},u={variants:[{match:[/class\s+/,n,/\s+extends\s+/,n]},{match:[/class\s+/,n]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s};return{name:"LiveScript",aliases:["ls"],keywords:s,illegal:/\/\*/,contains:c.concat([i.COMMENT("\\/\\*","\\*\\/"),i.HASH_COMMENT_MODE,{begin:"(#=>|=>|\\|>>|-?->|!->)"},{className:"function",contains:[o,d],returnBegin:!0,variants:[{begin:"("+n+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+n+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+n+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},u,{begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}}()),H6.registerLanguage("llvm",x5?S5:(x5=1,S5=function(e){const t=e.regex,a=/([-a-zA-Z$._][\w$.-]*)/,i={className:"variable",variants:[{begin:t.concat(/%/,a)},{begin:/%\d+/},{begin:/#\d+/}]},s={className:"title",variants:[{begin:t.concat(/@/,a)},{begin:/@\d+/},{begin:t.concat(/!/,a)},{begin:t.concat(/!\d+/,a)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[{className:"type",begin:/\bi\d+(?=\s|\b)/},e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},s,{className:"punctuation",relevance:0,begin:/,/},{className:"operator",relevance:0,begin:/=/},i,{className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},{className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0}]}})),H6.registerLanguage("lsl",E5?w5:(E5=1,w5=function(e){const t={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},a={className:"number",relevance:0,begin:e.C_NUMBER_RE};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[t,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},a,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},{className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"},{className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}})),H6.registerLanguage("lua",k5?C5:(k5=1,C5=function(e){const t="\\[=*\\[",a="\\]=*\\]",i={begin:t,end:a,contains:["self"]},s=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,a,{contains:[i],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:s.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:s}].concat(s)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:a,contains:[i],relevance:5}])}})),H6.registerLanguage("makefile",A5?T5:(A5=1,T5=function(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},i={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,a]},s={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},n={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,a,i,s,{className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},n]}})),H6.registerLanguage("mathematica",function(){if(O5)return R5;O5=1;const e=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","AcousticAbsorbingValue","AcousticImpedanceValue","AcousticNormalVelocityValue","AcousticPDEComponent","AcousticPressureCondition","AcousticRadiationValue","AcousticSoundHardValue","AcousticSoundSoftCondition","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","Adjugate","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirSoundAttenuation","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowChatServices","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimatedImage","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","AnimationVideo","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","Antihermitian","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Application","Apply","ApplyReaction","ApplySides","ApplyTo","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ArgumentsOptions","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayPlot3D","ArrayQ","ArrayReduce","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssessmentFunction","AssessmentResultObject","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstroAngularSeparation","AstroBackground","AstroCenter","AstroDistance","AstroGraphics","AstroGridLines","AstroGridLinesStyle","AstronomicalData","AstroPosition","AstroProjection","AstroRange","AstroRangePadding","AstroReferenceFrame","AstroStyling","AstroZoomLevel","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticExpectation","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProbability","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomLabels","AtomLabelStyle","AtomList","AtomQ","AttachCell","AttachedCell","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTrackApply","AudioTrackSelection","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoOperatorRenderings","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","Axis3DBox","Axis3DBoxOptions","AxisBox","AxisBoxOptions","AxisLabel","AxisObject","AxisStyle","BabyMonsterGroupB","Back","BackFaceColor","BackFaceGlowColor","BackFaceOpacity","BackFaceSpecularColor","BackFaceSpecularExponent","BackFaceSurfaceAppearance","BackFaceTexture","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesagL","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","Beveled","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","BilateralLaplaceTransform","BilateralZTransform","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","BinnedVariogramList","Binomial","BinomialDistribution","BinomialPointProcess","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BioSequence","BioSequenceBackTranslateList","BioSequenceComplement","BioSequenceInstances","BioSequenceModify","BioSequencePlot","BioSequenceQ","BioSequenceReverseComplement","BioSequenceTranscribe","BioSequenceTranslate","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitRate","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockDiagonalMatrix","BlockLowerTriangularMatrix","BlockMap","BlockRandom","BlockUpperTriangularMatrix","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","Blurring","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondLabels","BondLabelStyle","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuckyballGraph","BuildCompiledComponent","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayFormatQ","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalizeRegion","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Canvas","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CaputoD","CardinalBSplineBasis","CarlemanLinearize","CarlsonRC","CarlsonRD","CarlsonRE","CarlsonRF","CarlsonRG","CarlsonRJ","CarlsonRK","CarlsonRM","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Cast","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyMatrix","CauchyPointProcess","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDingbatMargin","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellFrameStyle","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellInsertionPointCell","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellTrayPosition","CellTrayWidgets","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CenteredInterval","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","CheckArguments","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalConvert","ChemicalData","ChemicalFormula","ChemicalInstance","ChemicalReaction","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularArcThrough","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","ClickToCopy","ClickToCopyEnabled","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringMeasurements","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","CollinearPoints","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionBinning","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinatorB","CombinatorC","CombinatorI","CombinatorK","CombinatorS","CombinatorW","CombinatorY","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledComponent","CompiledExpressionDeclaration","CompiledFunction","CompiledLayer","CompilerCallback","CompilerEnvironment","CompilerEnvironmentAppend","CompilerEnvironmentAppendTo","CompilerEnvironmentObject","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteIntegral","CompleteKaryTree","CompletionsListPacket","Complex","ComplexArrayPlot","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","ConcaveHullMesh","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","Confirm","ConfirmAssert","ConfirmBy","ConfirmMatch","ConfirmQuiet","ConformationMethod","ConformAudio","ConformImages","Congruent","ConicGradientFilling","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegion3DBoxOptions","ConicHullRegionBox","ConicHullRegionBoxOptions","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnectSystemModelController","ConnesWindow","ConoverTest","ConservativeConvectionPDETerm","ConsoleMessage","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentDetectorFunction","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","ConvectionPDETerm","Convergents","ConversionOptions","ConversionRules","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexHullRegion","ConvexOptimization","ConvexPolygonQ","ConvexPolyhedronQ","ConvexRegionQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoplanarPoints","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyFunction","CopyTag","CopyToClipboard","CoreNilpotentDecomposition","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","CoulombF","CoulombG","CoulombH1","CoulombH2","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateCompilerEnvironment","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateLicenseEntitlement","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateTypeInstance","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CSGRegion","CSGRegionQ","CSGRegionTree","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","CuboidBoxOptions","Cumulant","CumulantGeneratingFunction","CumulativeFeatureImpactPlot","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylinderBoxOptions","CylindricalDecomposition","CylindricalDecompositionFunction","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinSubmit","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DatasetTheme","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateGranularity","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateScale","DateSelect","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareCompiledComponent","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","Default2DTool","Default3DTool","DefaultAttachedCellStyle","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDockedCellStyle","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAdjacentDuplicates","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteElements","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterAutoMatching","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivativePDETerm","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DiffusionPDETerm","DiggleGatesPointProcess","DiggleGrattonPointProcess","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","DirectionalLight","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteInputOutputModel","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskBoxOptions","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCell","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DominatorTreeGraph","DominatorVertexList","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DownValuesFunction","DragAndDrop","DrawBackFaces","DrawEdges","DrawFrontFaces","DrawHighlighted","DrazinInverse","Drop","DropoutLayer","DropShadowing","DSolve","DSolveChangeVariables","DSolveValue","Dt","DualLinearProgramming","DualPlanarGraph","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoEvaluation","EchoFunction","EchoLabel","EchoTiming","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeChromaticNumber","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeTransitiveGraphQ","EdgeValueRange","EdgeValueSizes","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddedSQLEntityClass","EmbeddedSQLExpression","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EmptySpaceF","EnableConsolePrintPacket","Enabled","Enclose","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedPointNormals","EstimatedPointProcess","EstimatedProcess","EstimatedVariogramModel","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","EvaluationPrivileges","EvaluationRateLimit","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedContexts","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionTree","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FaceRecognize","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureImpactPlot","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FeatureValueDependencyPlot","FeatureValueImpactPlot","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileFormatProperties","FileFormatQ","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FileNameToFormatList","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileSystemTree","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","FilledTorus","FillForm","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeColoring","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindIsomers","FindIsomorphicSubgraph","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPlanarColoring","FindPointProcessParameters","FindPostmanTour","FindProcessParameters","FindRegionTransform","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSubgraphIsomorphism","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexColoring","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","FlatShading","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlightData","FlipView","Floor","FlowPolynomial","Fold","FoldList","FoldPair","FoldPairList","FoldWhile","FoldWhileList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForAllType","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormProtectionMethod","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","ForwardCloudCredentials","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FoxH","FoxHReduce","FractionalBrownianMotionProcess","FractionalD","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameListVideo","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDateString","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRawPointer","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceGlowColor","FrontFaceOpacity","FrontFaceSpecularColor","FrontFaceSpecularExponent","FrontFaceSurfaceAppearance","FrontFaceTexture","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionAnalytic","FunctionBijective","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionContinuous","FunctionConvexity","FunctionDeclaration","FunctionDiscontinuities","FunctionDomain","FunctionExpand","FunctionInjective","FunctionInterpolation","FunctionLayer","FunctionMeromorphic","FunctionMonotonicity","FunctionPeriod","FunctionPoles","FunctionRange","FunctionSign","FunctionSingularities","FunctionSpace","FunctionSurjective","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedAssetFormat","GeneratedAssetLocation","GeneratedCell","GeneratedCellStyles","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundary","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBoundsRegionBoundary","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeodesicPolyhedron","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeoGraphPlot","GeoGraphValuePlot","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricStep","GeometricStylingRules","GeometricTest","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoOrientationData","GeoPath","GeoPolygon","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetContext","GetEnvironment","GetFileName","GetLinebreakInformationPacket","GibbsPointProcess","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","GouraudShading","Grad","Gradient","GradientFilter","GradientFittedMesh","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphJoin","GraphLayerLabels","GraphLayers","GraphLayerStyle","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphProduct","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphSum","GraphTree","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","GreekStyle","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GridVideo","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOpenerColor","GroupOpenerInsideFrame","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HardcorePointProcess","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","Headers","HeaderSize","HeaderStyle","Heads","HeatFluxValue","HeatInsulationValue","HeatOutflowValue","HeatRadiationValue","HeatSymmetryValue","HeatTemperatureCondition","HeatTransferPDEComponent","HeatTransferValue","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelmholtzPDEComponent","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","HelpViewerSettings","Here","HermiteDecomposition","HermiteH","Hermitian","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighlightString","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramPointDensity","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IfCompiled","IgnoreCase","IgnoreDiacritics","IgnoreIsotopes","IgnorePunctuation","IgnoreSpellCheck","IgnoreStereochemistry","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEditMode","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageStitch","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImageVectorscopePlot","ImageWaveformPlot","ImagingDevice","ImplicitD","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportedObject","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","InactiveStyle","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludedContexts","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularSolutions","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InertEvaluate","InertExpression","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfiniteLineThrough","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonPointProcess","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObject","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputPorts","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","IntegrateChangeVariables","Interactive","InteractiveTradingChart","InterfaceSwitched","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseBilateralLaplaceTransform","InverseBilateralZTransform","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsomorphicSubgraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiEpsilon","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JacobiZN","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelConfiguration","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LameC","LameCPrime","LameEigenvalueA","LameEigenvalueB","LameS","LameSPrime","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","LaplacianPDETerm","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayeredGraphPlot3D","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapVariant","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LexicographicOrder","LexicographicSort","LibraryDataType","LibraryFunction","LibraryFunctionDeclaration","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseEntitlementObject","LicenseEntitlements","LicenseID","LicensingSettings","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientFilling","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLinePlot3D","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListStreamPlot3D","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorDisplacementPlot","ListVectorDisplacementPlot3D","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LiteralType","LoadCompiledComponent","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalEvaluate","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrix","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapApply","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MassConcentrationCondition","MassFluxValue","MassImpermeableBoundaryValue","MassOutflowValue","MassSymmetryValue","MassTransferValue","MassTransportPDEComponent","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MaterialShading","MaternPointProcess","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDisplayedChildren","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanPointDensity","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","MIMETypeToFormatList","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinPointSeparation","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MissingValueSynthesis","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","ModelPredictiveController","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeAlign","MoleculeContainsQ","MoleculeDraw","MoleculeEquivalentQ","MoleculeFreeQ","MoleculeGraph","MoleculeMatchQ","MoleculeMaximumCommonSubstructure","MoleculeModify","MoleculeName","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeSubstructureCount","MoleculeValue","Moment","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","MultiaxisArrangement","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","MultiscriptBoxOptions","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NCaputoD","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborG","NearestNeighborGraph","NearestTo","NebulaData","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativelyOrientedPoints","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestTree","NestWhile","NestWhileList","NetAppend","NetArray","NetArrayLayer","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExternalObject","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetUnfold","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NeymanScottPointProcess","NFractionalD","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalScale","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookBrowseDirectory","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookGet","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookPath","NotebookPrint","NotebookPut","NotebookRead","Notebooks","NotebookSave","NotebookSelection","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSolveValues","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberDigit","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObjectExistsQ","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrdinalScale","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputPorts","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","OverlayVideo","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletSymbol","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairCorrelationG","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalettesMenuSettings","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelAxisPlot","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelKernels","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricConvexOptimization","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentEdgeLabel","ParentEdgeLabelFunction","ParentEdgeLabelStyle","ParentEdgeShapeFunction","ParentEdgeStyle","ParentEdgeStyleFunction","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternReaction","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PenttinenPointProcess","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMatrix","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentSymbol","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhongShading","PhysicalSystemData","Pi","Pick","PickedElements","PickMode","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderLayer","PlaceholderReplace","Plain","PlanarAngle","PlanarFaceList","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlaybackSettings","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointCountDistribution","PointDensity","PointDensityFunction","PointFigureChart","PointLegend","PointLight","PointProcessEstimator","PointProcessFitTest","PointProcessParameterAssumptions","PointProcessParameterQ","PointSize","PointStatisticFunction","PointValuePlot","PoissonConsulDistribution","PoissonDistribution","PoissonPDEComponent","PoissonPointProcess","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronBox","PolyhedronBoxOptions","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExpressionQ","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PolynomialSumOfSquaresList","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","PositionLargest","PositionSmallest","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositivelyOrientedPoints","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","PreferencesSettings","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","ProgressReporting","Projection","Prolog","PromptForm","ProofObject","PropagateAborts","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QuestionGenerator","QuestionInterface","QuestionObject","QuestionSelector","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","QuietEcho","Quit","Quotient","QuotientRemainder","RadialAxisPlot","RadialGradientFilling","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomArrayLayer","RandomChoice","RandomColor","RandomComplex","RandomDate","RandomEntity","RandomFunction","RandomGeneratorState","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPointConfiguration","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomTime","RandomTree","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalExpressionQ","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","ReactionBalance","ReactionBalancedQ","ReactionPDETerm","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecalibrationFunction","RecognitionPrior","RecognitionThreshold","ReconstructionMesh","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionCongruent","RegionConvert","RegionDifference","RegionDilation","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionErosion","RegionFillingStyle","RegionFit","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSimilar","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteBatchJobAbort","RemoteBatchJobObject","RemoteBatchJobs","RemoteBatchMapSubmit","RemoteBatchSubmissionEnvironment","RemoteBatchSubmit","RemoteConnect","RemoteConnectionObject","RemoteEvaluate","RemoteFile","RemoteInputFiles","RemoteKernelObject","RemoteProviderSettings","RemoteRun","RemoteRunProcess","RemovalConditions","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceAt","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetScheduledTask","ReshapeLayer","Residue","ResidueSum","ResizeLayer","Resolve","ResolveContextAliases","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnCreatesNewCell","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RipleyK","RipleyRassonRegion","RiskAchievementImportance","RiskReductionImportance","RobustConvexOptimization","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","RootTree","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","RulesTree","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameAs","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SecurityCertificate","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceIndicesLayer","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetFileDate","SetFileFormatProperties","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideShowVideo","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SmoothPointDensity","SnDispersion","Snippet","SnippetsVideo","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolarTime","SolidAngle","SolidBoundaryLoadValue","SolidData","SolidDisplacementCondition","SolidFixedCondition","SolidMechanicsPDEComponent","SolidMechanicsStrain","SolidMechanicsStress","SolidRegionQ","Solve","SolveAlways","SolveDelayed","SolveValues","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","SourcePDETerm","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SparseArrayQ","SpatialBinnedPointData","SpatialBoundaryCorrection","SpatialEstimate","SpatialEstimatorFunction","SpatialGraphDistribution","SpatialJ","SpatialMedian","SpatialNoiseLevel","SpatialObservationRegionQ","SpatialPointData","SpatialPointSelect","SpatialRandomnessTest","SpatialTransformationLayer","SpatialTrendFunction","Speak","SpeakerMatchQ","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","Sphere","SphereBox","SphereBoxOptions","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","SpotLight","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StraussHardcorePointProcess","StraussPointProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPlot3D","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","StrictInequalities","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFormatQ","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTakeDrop","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripStyleOnPaste","StripWrapperBoxes","StrokeForm","Struckthrough","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTrackSelection","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricDifference","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelMeasurements","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelControllerData","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxAlignment","TableViewBoxBackground","TableViewBoxHeaders","TableViewBoxItemSize","TableViewBoxItemStyle","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TerminatedEvaluation","TernaryListPlot","TernaryPlotCorners","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThomasPointProcess","ThompsonGroupTh","Thread","Threaded","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","TickDirection","TickLabelOrientation","TickLabelPositioning","TickLabels","TickLengths","TickPositions","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeSystem","TimeSystemConvert","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRawPointer","ToRules","Torus","TorusGraph","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","TourVideo","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackCellChangeTimes","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainImageContentDetector","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TrainTextContentDetector","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapEnterKey","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","Tree","TreeCases","TreeChildren","TreeCount","TreeData","TreeDelete","TreeDepth","TreeElementCoordinates","TreeElementLabel","TreeElementLabelFunction","TreeElementLabelStyle","TreeElementShape","TreeElementShapeFunction","TreeElementSize","TreeElementSizeFunction","TreeElementStyle","TreeElementStyleFunction","TreeExpression","TreeExtract","TreeFold","TreeForm","TreeGraph","TreeGraphQ","TreeInsert","TreeLayout","TreeLeafCount","TreeLeafQ","TreeLeaves","TreeLevel","TreeMap","TreeMapAt","TreeOutline","TreePlot","TreePosition","TreeQ","TreeReplacePart","TreeRules","TreeScan","TreeSelect","TreeSize","TreeTraversalOrder","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeDeclaration","TypeEvaluate","TypeHint","TypeOf","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UniqueElements","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","UnlabeledTree","UnmanageObject","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","Until","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrix","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseEmbeddedLibrary","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValenceFilling","ValidationLength","ValidationSet","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","VandermondeMatrix","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceGammaPointProcess","VarianceTest","VariogramFunction","VariogramModel","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorDisplacementPlot","VectorDisplacementPlot3D","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","VersionedPreferences","VertexAdd","VertexCapacity","VertexChromaticNumber","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInComponentGraph","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutComponentGraph","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexTransitiveGraphQ","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoCapture","VideoCombine","VideoDelete","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoGenerator","VideoInsert","VideoIntervals","VideoJoin","VideoMap","VideoMapList","VideoMapTimeSeries","VideoPadding","VideoPause","VideoPlay","VideoQ","VideoRecord","VideoReplace","VideoScreenCapture","VideoSplit","VideoStop","VideoStream","VideoStreams","VideoTimeStretch","VideoTrackSelection","VideoTranscode","VideoTransparency","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WavePDEComponent","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebColumn","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebItem","WebPageMetaInformation","WebRow","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WholeCellGroupOpener","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WithCleanup","WithLock","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframCloudSettings","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$CompilerEnvironment","$ConditionHold","$ConfiguredKernels","$Context","$ContextAliases","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CryptographicEllipticCurveNames","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultKernels","$DefaultLocalBase","$DefaultLocalKernel","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultRemoteBatchSubmissionEnvironment","$DefaultRemoteKernel","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeneratedAssetLocation","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxDisplayedChildren","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$ProgressReporting","$PublisherID","$RandomGeneratorState","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterCloudUserID","$RequesterCloudUserUUID","$RequesterWolframID","$RequesterWolframUUID","$ResourceSystemBase","$ResourceSystemPath","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TargetSystems","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];return R5=function(t){const a=t.regex,i=a.either(a.concat(/([2-9]|[1-2]\d|[3][0-5])\^\^/,/(\w*\.\w+|\w+\.\w*|\w+)/),/(\d*\.\d+|\d+\.\d*|\d+)/),s=a.either(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/),n={className:"number",relevance:0,begin:a.concat(i,a.optional(s),a.optional(/\*\^[+-]?\d+/))},o=/[a-zA-Z$][a-zA-Z0-9$]*/,r=new Set(e),l={variants:[{className:"builtin-symbol",begin:o,"on:begin":(e,t)=>{r.has(e[0])||t.ignoreMatch()}},{className:"symbol",relevance:0,begin:o}]},c={className:"message-name",relevance:0,begin:a.concat("::",o)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[t.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),{className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},{className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},c,l,{className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},t.QUOTE_STRING_MODE,n,{className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},{className:"brace",relevance:0,begin:/[[\](){}]/}]}}}()),H6.registerLanguage("matlab",I5?N5:(I5=1,N5=function(e){const t="('|\\.')+",a={relevance:0,contains:[{begin:t}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:a},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:a},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:a},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:a},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}})),H6.registerLanguage("maxima",M5?D5:(M5=1,D5=function(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}})),H6.registerLanguage("mel",P5?L5:(P5=1,L5=function(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:"</",contains:[e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}})),H6.registerLanguage("mercury",$5?F5:($5=1,F5=function(e){const t=e.COMMENT("%","$"),a=e.inherit(e.APOS_STRING_MODE,{relevance:0}),i=e.inherit(e.QUOTE_STRING_MODE,{relevance:0});return i.contains=i.contains.slice(),i.contains.push({className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0}),{name:"Mercury",aliases:["m","moo"],keywords:{keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|--\x3e"},{begin:"=",relevance:0}]},t,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},e.NUMBER_MODE,a,i,{begin:/:-/},{begin:/\.$/}]}})),H6.registerLanguage("mipsasm",V5?B5:(V5=1,B5=function(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}})),H6.registerLanguage("mizar",H5?U5:(H5=1,U5=function(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}})),H6.registerLanguage("perl",Y5?z5:(Y5=1,z5=function(e){const t=e.regex,a=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"].join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},n={begin:/->\{/,end:/\}/},o={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},r={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[o]},l={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},c=[e.BACKSLASH_ESCAPE,s,r],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],u=(e,i,s="\\1")=>{const n="\\1"===s?s:t.concat(s,i);return t.concat(t.concat("(?:",e,")"),i,/(?:\\.|[^\\\/])*?/,n,/(?:\\.|[^\\\/])*?/,s,a)},p=(e,i,s)=>t.concat(t.concat("(?:",e,")"),i,/(?:\\.|[^\\\/])*?/,s,a),h=[r,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),n,{className:"string",contains:c,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},l,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:u("s|tr|y",t.either(...d,{capture:!0}))},{begin:u("s|tr|y","\\(","\\)")},{begin:u("s|tr|y","\\[","\\]")},{begin:u("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",t.either(...d,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,o]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,o,l]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=h,n.contains=h,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:h}})),H6.registerLanguage("mojolicious",W5?G5:(W5=1,G5=function(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}})),H6.registerLanguage("monkey",q5?j5:(q5=1,j5=function(e){const t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},a={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},i={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),a,i,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}})),H6.registerLanguage("moonscript",X5?K5:(X5=1,K5=function(e){const t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},a="[A-Za-z$_][0-9A-Za-z$_]*",i={className:"subst",begin:/#\{/,end:/\}/,keywords:t},s=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];i.contains=s;const n=e.inherit(e.TITLE_MODE,{begin:a}),o="(\\(.*\\)\\s*)?\\B[-=]>",r={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(s)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:s.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+a+"\\s*=\\s*"+o,end:"[-=]>",returnBegin:!0,contains:[n,r]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:o,end:"[-=]>",returnBegin:!0,contains:[r]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[n]},n]},{className:"name",begin:a+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}})),H6.registerLanguage("n1ql",Z5?Q5:(Z5=1,Q5=function(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}})),H6.registerLanguage("nestedtext",e4?J5:(e4=1,J5=function(e){return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),{variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}},{match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},{match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},{match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}}]}})),H6.registerLanguage("nginx",a4?t4:(a4=1,t4=function(e){const t=e.regex,a={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[a]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,a],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},a]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}})),H6.registerLanguage("nim",s4?i4:(s4=1,i4=function(e){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","concept","const","continue","converter","defer","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}})),H6.registerLanguage("nix",o4?n4:(o4=1,n4=function(e){const t=e.regex,a={keyword:["assert","else","if","in","inherit","let","or","rec","then","with"],literal:["true","false","null"],built_in:["abort","baseNameOf","builtins","derivation","derivationStrict","dirOf","fetchGit","fetchMercurial","fetchTarball","fetchTree","fromTOML","import","isNull","map","placeholder","removeAttrs","scopedImport","throw","toString"]},i={scope:"built_in",match:t.either(...["abort","add","addDrvOutputDependencies","addErrorContext","all","any","appendContext","attrNames","attrValues","baseNameOf","bitAnd","bitOr","bitXor","break","builtins","catAttrs","ceil","compareVersions","concatLists","concatMap","concatStringsSep","convertHash","currentSystem","currentTime","deepSeq","derivation","derivationStrict","dirOf","div","elem","elemAt","false","fetchGit","fetchMercurial","fetchTarball","fetchTree","fetchurl","filter","filterSource","findFile","flakeRefToString","floor","foldl'","fromJSON","fromTOML","functionArgs","genList","genericClosure","getAttr","getContext","getEnv","getFlake","groupBy","hasAttr","hasContext","hashFile","hashString","head","import","intersectAttrs","isAttrs","isBool","isFloat","isFunction","isInt","isList","isNull","isPath","isString","langVersion","length","lessThan","listToAttrs","map","mapAttrs","match","mul","nixPath","nixVersion","null","parseDrvName","parseFlakeRef","partition","path","pathExists","placeholder","readDir","readFile","readFileType","removeAttrs","replaceStrings","scopedImport","seq","sort","split","splitVersion","storeDir","storePath","stringLength","sub","substring","tail","throw","toFile","toJSON","toPath","toString","toXML","trace","traceVerbose","true","tryEval","typeOf","unsafeDiscardOutputDependency","unsafeDiscardStringContext","unsafeGetAttrPos","warn","zipAttrsWith"].map(e=>`builtins\\.${e}`)),relevance:10},s="[A-Za-z_][A-Za-z0-9_'-]*",n={scope:"symbol",match:new RegExp(`<${s}(/${s})*>`)},o="[A-Za-z0-9_\\+\\.-]+",r={scope:"symbol",match:new RegExp(`(\\.\\.|\\.|~)?/(${o})?(/${o})*(?=[\\s;])`)},l=t.either("==","=","\\+\\+","\\+","<=","<\\|","<",">=",">","->","//","/","!=","!","\\|\\|","\\|>","\\?","\\*","&&"),c={scope:"operator",match:t.concat(l,/(?!-)/),relevance:0},d={scope:"number",match:new RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},u={variants:[{scope:"operator",beforeMatch:/\s/,begin:/-(?!>)/},{begin:[new RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:"number",2:"operator"}},{begin:[l,/-/,/(?!>)/],beginScope:{1:"operator",2:"operator"}}],relevance:0},p={beforeMatch:/(^|\{|;)\s*/,begin:new RegExp(`${s}(\\.${s})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:"attr",match:new RegExp(`${s}(\\.${s})*(?=\\s*=)`),relevance:.2}]},h={scope:"subst",begin:/\$\{/,end:/\}/,keywords:a},g={scope:"char.escape",match:/\\(?!\$)./},m={scope:"string",variants:[{begin:"''",end:"''",contains:[{scope:"char.escape",match:/''\$/},h,{scope:"char.escape",match:/'''/},g]},{begin:'"',end:'"',contains:[{scope:"char.escape",match:/\\\$/},h,g]}]},f={scope:"params",match:new RegExp(`${s}\\s*:(?=\\s)`)},_=[d,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),i,m,n,r,f,p,u,c];return h.contains=_,{name:"Nix",aliases:["nixos"],keywords:a,contains:_.concat([{scope:"meta.prompt",match:/^nix-repl>(?=\s)/,relevance:10},{scope:"meta",beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}])}})),H6.registerLanguage("node-repl",l4?r4:(l4=1,r4=function(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}})),H6.registerLanguage("nsis",d4?c4:(d4=1,c4=function(e){const t=e.regex,a={className:"variable.constant",begin:t.concat(/\$/,t.either("ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"))},i={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},s={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},n={className:"variable",begin:/\$+\([\w^.:!-]+\)/},o={className:"params",begin:t.either("ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY")},r={className:"keyword",begin:t.concat(/!/,t.either("addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"))},l={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[{className:"char.escape",begin:/\$(\\[nrt]|\$)/},a,i,s,n]},c={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},d={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],literal:["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"]},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),d,c,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},l,r,i,s,n,o,{className:"title.function",begin:/\w+::\w+/},e.NUMBER_MODE]}})),H6.registerLanguage("objectivec",p4?u4:(p4=1,u4=function(e){const t=/[a-zA-Z@][a-zA-Z0-9_]*/,a={$pattern:t,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:{"variable.language":["this","super"],$pattern:t,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},illegal:"</",contains:[{className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+a.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:a,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}})),H6.registerLanguage("ocaml",g4?h4:(g4=1,h4=function(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}})),H6.registerLanguage("openscad",f4?m4:(f4=1,m4=function(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},a={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[{className:"params",begin:"\\(",end:"\\)",contains:["self",a,i,t,{className:"literal",begin:"false|true|PI|undef"}]},e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,{className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},i,t,{begin:"[*!#%]",relevance:0},s]}})),H6.registerLanguage("oxygene",b4?_4:(b4=1,_4=function(e){const t={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},a=e.COMMENT(/\{/,/\}/,{relevance:0}),i=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),s={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},n={className:"string",begin:"(#\\d+)+"},o={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[s,n]},a,i]};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[a,i,e.C_LINE_COMMENT_MODE,s,n,e.NUMBER_MODE,o,{scope:"punctuation",match:/;/,relevance:0}]}})),H6.registerLanguage("parser3",y4?v4:(y4=1,v4=function(e){const t=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}})),H6.registerLanguage("pf",x4?S4:(x4=1,S4=function(e){return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,{className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},{className:"variable",begin:/<(?!\/)/,end:/>/}]}})),H6.registerLanguage("pgsql",E4?w4:(E4=1,w4=function(e){const t=e.COMMENT("--","$"),a="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",s=i.trim().split(" ").map(function(e){return e.split("|")[0]}).join("|"),n="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(e){return e.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:"ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",built_in:"CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED "},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+n+")\\s*\\("},{begin:"\\.("+s+")\\b"},{begin:"\\b("+s+")\\s+PATH\\b",keywords:{keyword:"PATH",type:i.replace("PATH ","")}},{className:"type",begin:"\\b("+s+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:a,end:a,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:"<<\\s*[a-zA-Z_][a-zA-Z_0-9$]*\\s*>>",relevance:10}]}})),H6.registerLanguage("php",k4?C4:(k4=1,C4=function(e){const t=e.regex,a=/(?![A-Za-z0-9])(?![$])/,i=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),s=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),n=t.concat(/[A-Z]+/,a),o={scope:"variable",match:"\\$+"+i},r={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),c="[ \t\n]",d={scope:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(r)}),l,{begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(r),"on:begin":(e,t)=>{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/})]},u={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},p=["false","null","true"],h=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],g=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],m={keyword:h,literal:(e=>{const t=[];return e.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t})(p),built_in:g},f=e=>e.map(e=>e.replace(/\|\d+$/,"")),_={variants:[{match:[/new/,t.concat(c,"+"),t.concat("(?!",f(g).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},b=t.concat(i,"\\b(?!\\()"),v={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),b],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,t.concat(/::/,t.lookahead(/(?!class\b)/)),b],scope:{1:"title.class",3:"variable.constant"}},{match:[s,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},y={scope:"attr",match:t.concat(i,t.lookahead(":"),t.lookahead(/(?!::)/))},S={relevance:0,begin:/\(/,end:/\)/,keywords:m,contains:[y,o,v,e.C_BLOCK_COMMENT_MODE,d,u,_]},x={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",f(h).join("\\b|"),"|",f(g).join("\\b|"),"\\b)"),i,t.concat(c,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[S]};S.contains.push(x);const w=[y,v,e.C_BLOCK_COMMENT_MODE,d,u,_],E={begin:t.concat(/#\[\s*\\?/,t.either(s,n)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:p,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:p,keyword:["new","array"]},contains:["self",...w]},...w,{scope:"meta",variants:[{match:s},{match:n}]}]};return{case_insensitive:!1,keywords:m,contains:[E,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},{scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},{scope:"variable.language",match:/\$this\b/},o,x,v,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},_,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:m,contains:["self",E,o,v,e.C_BLOCK_COMMENT_MODE,d,u]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},d,u]}})),H6.registerLanguage("php-template",A4?T4:(A4=1,T4=function(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}})),H6.registerLanguage("plaintext",O4?R4:(O4=1,R4=function(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}})),H6.registerLanguage("pony",I4?N4:(I4=1,N4=function(e){return{name:"Pony",keywords:{keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},contains:[{className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},{begin:e.IDENT_RE+"'",relevance:0},{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}})),H6.registerLanguage("powershell",M4?D4:(M4=1,D4=function(e){const t={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},a={begin:"`[\\s\\S]",relevance:0},i={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},s={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[a,i,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},n={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},o=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),r={className:"built_in",variants:[{begin:"(".concat("Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",")+(-)[\\w\\d]+")}]},l={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},c={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:/\w[\w\d]*((-)[\w\d]+)*/,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[i]}]},d={begin:/using\s/,end:/$/,returnBegin:!0,contains:[s,n,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},u={variants:[{className:"operator",begin:"(".concat("-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},p={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(t.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},h=[p,o,a,e.NUMBER_MODE,s,n,r,i,{className:"literal",begin:/\$(null|true|false)\b/},{className:"selector-tag",begin:/@\B/,relevance:0}],g={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",h,{begin:"("+["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"].join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return p.contains.unshift(g),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:t,contains:h.concat(l,c,d,u,g)}})),H6.registerLanguage("processing",P4?L4:(P4=1,L4=function(e){const t=e.regex,a=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],i=e.IDENT_RE,s={variants:[{match:t.concat(t.either(...a),t.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:t.concat(/\b(?!for|if|while)/,i,t.lookahead(/\s*\(/)),className:"title.function"}]},n={match:[/new\s+/,i],className:{1:"keyword",2:"class.title"}},o={relevance:0,match:[/\./,i],className:{2:"property"}},r={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,i]},{match:[/class/,/\s+/,i]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}};return{name:"Processing",aliases:["pde"],keywords:{keyword:["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...a,"BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"],type:["boolean","byte","char","color","double","float","int","long","short"]},contains:[r,n,s,o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}})),H6.registerLanguage("profile",$4?F4:($4=1,F4=function(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}})),H6.registerLanguage("prolog",V4?B4:(V4=1,B4=function(e){const t={begin:/\(/,end:/\)/,relevance:0},a={begin:/\[/,end:/\]/},i={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},s={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},n=[{begin:/[a-z][A-Za-z0-9_]*/,relevance:0},{className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},t,{begin:/:-/},a,i,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,s,{className:"string",begin:/0'(\\'|.)/},{className:"string",begin:/0'\\s/},e.C_NUMBER_MODE];return t.contains=n,a.contains=n,{name:"Prolog",contains:n.concat([{begin:/\.$/}])}})),H6.registerLanguage("properties",H4?U4:(H4=1,U4=function(e){const t="[ \\t\\f]*",a=t+"[:=]"+t,i="[ \\t\\f]+",s="([^\\\\:= \\t\\f\\n]|\\\\.)+",n={end:"("+a+"|"+i+")",relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:s+a},{begin:s+i}],contains:[{className:"attr",begin:s,endsParent:!0}],starts:n},{className:"attr",begin:s+t+"$"}]}})),H6.registerLanguage("protobuf",Y4?z4:(Y4=1,z4=function(e){const t={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:["package","import","option","optional","required","repeated","group","oneof"],type:["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}})),H6.registerLanguage("puppet",W4?G4:(W4=1,G4=function(e){const t=e.COMMENT("#","$"),a="([A-Za-z_]|::)(\\w|::)*",i=e.inherit(e.TITLE_MODE,{begin:a}),s={className:"variable",begin:"\\$"+a},n={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[t,s,n,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[i,t]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:{keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},relevance:0,contains:[n,t,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},s]}],relevance:0}]}})),H6.registerLanguage("purebasic",q4?j4:(q4=1,j4=function(e){return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},{className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},{className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"}]}})),H6.registerLanguage("python",X4?K4:(X4=1,K4=function(e){const t=e.regex,a=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},n={className:"meta",begin:/^(>>>|\.\.\.) /},o={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},r={begin:/\{\{/,relevance:0},l={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n,r,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n,r,o]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,r,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,o]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c="[0-9](_?[0-9])*",d=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,u=`\\b|${i.join("|")}`,p={className:"number",relevance:0,variants:[{begin:`(\\b(${c})|(${d}))[eE][+-]?(${c})[jJ]?(?=${u})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${u})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${u})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${u})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${u})`},{begin:`\\b(${c})[jJ](?=${u})`}]},h={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},g={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",n,p,l,e.HASH_COMMENT_MODE]}]};return o.contains=[l,p,n],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[n,p,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},l,h,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[g]},{variants:[{match:[/\bclass/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/\bclass/,/\s+/,a]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[p,g,l]}]}})),H6.registerLanguage("python-repl",Z4?Q4:(Z4=1,Q4=function(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}})),H6.registerLanguage("q",e8?J4:(e8=1,J4=function(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}})),H6.registerLanguage("qml",a8?t8:(a8=1,t8=function(e){const t="[a-zA-Z_][a-zA-Z0-9\\._]*",a={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:t,returnEnd:!1}},i={begin:t+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:t,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},s={begin:e.regex.concat(t,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:{keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},{className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},a,i,s],illegal:/#/}})),H6.registerLanguage("r",s8?i8:(s8=1,i8=function(e){const t=e.regex,a=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),s=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,n=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:a,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:a},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[s,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[n,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[a,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:s},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:n},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}})),H6.registerLanguage("reasonml",o8?n8:(o8=1,n8=function(e){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}})),H6.registerLanguage("rib",l8?r8:(l8=1,r8=function(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[e.HASH_COMMENT_MODE,e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}})),H6.registerLanguage("roboconf",d8?c8:(d8=1,c8=function(e){const t="[a-zA-Z-_][^\\n{]+\\{",a={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+t,end:/\}/,keywords:"facet",contains:[a,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+t,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",a,e.HASH_COMMENT_MODE]},{begin:"^"+t,end:/\}/,contains:[a,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}})),H6.registerLanguage("routeros",p8?u8:(p8=1,u8=function(e){const t="foreach do while for if from to step else on-error and or not in",a="true false yes no nothing nil null",i={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},n={className:"string",begin:/'/,end:/'/};return{name:"MikroTik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:a,keyword:t+" :"+t.split(" ").join(" :")+" :"+"global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime".split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT("^#","$"),s,n,i,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[s,n,i,{className:"literal",begin:"\\b("+a.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+"add remove enable disable set get print export edit find run debug error info warning".split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+"traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw".split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}})),H6.registerLanguage("rsl",g8?h8:(g8=1,h8=function(e){const t={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:["while","for","if","do","return","else","break","extern","continue"],built_in:["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],type:["matrix","float","color","point","normal","vector"]},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},t,{beginKeywords:"illuminate illuminance gather",end:"\\("}]}})),H6.registerLanguage("ruleslanguage",f8?m8:(f8=1,m8=function(e){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}})),H6.registerLanguage("rust",b8?_8:(b8=1,_8=function(e){const t=e.regex,a=/(r#)?/,i=t.concat(a,e.UNDERSCORE_IDENT_RE),s=t.concat(a,e.IDENT_RE),n={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,s,t.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",r=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],l=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:l,keyword:["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],literal:["true","false","Some","None","Ok","Err"],built_in:r},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/fn/,/\s+/,i],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,i],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,i,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:r,type:l}},{className:"punctuation",begin:"->"},n]}})),H6.registerLanguage("sas",y8?v8:(y8=1,v8=function(e){const t=e.regex;return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"]},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+t.either("bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window")},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:t.either("abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate")+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}})),H6.registerLanguage("scala",x8?S8:(x8=1,S8=function(e){const t=e.regex,a={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},i={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,a]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[a],relevance:10}]},s={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},n={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},o={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},n]},r={className:"function",beginKeywords:"def",end:t.lookahead(/[:={\[(\n;]/),contains:[n]};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[{begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,s,r,o,e.C_NUMBER_MODE,{begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},{begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"},{begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}},{className:"meta",begin:"@[A-Za-z]+"}]}})),H6.registerLanguage("scheme",E8?w8:(E8=1,w8=function(e){const t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",a="(-|\\+)?\\d+([./]\\d+)?",i={$pattern:t,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},s={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},n={className:"number",variants:[{begin:a,relevance:0},{begin:a+"[+\\-]"+a+"i",relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},o=e.QUOTE_STRING_MODE,r=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],l={begin:t,relevance:0},c={className:"symbol",begin:"'"+t},d={endsWithParent:!0,relevance:0},u={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",s,o,n,l,c]}]},p={className:"name",relevance:0,begin:t,keywords:i},h={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[p,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[l]}]},p,d]};return d.contains=[s,n,o,l,c,u,h].concat(r),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),n,o,c,u,h].concat(r)}})),H6.registerLanguage("scilab",k8?C8:(k8=1,C8=function(e){const t=[e.C_NUMBER_MODE,{className:"string",begin:"'|\"",end:"'|\"",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:t},e.COMMENT("//","$")].concat(t)}})),H6.registerLanguage("scss",function(){if(A8)return T8;A8=1;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video","defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),s=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();return T8=function(n){const o=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}))(n),r=i,l=a,c="@[a-z-]+",d={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,o.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},o.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+e.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+l.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},d,{begin:/\(/,end:/\)/,contains:[o.CSS_NUMBER_MODE]},o.CSS_VARIABLE,{className:"attribute",begin:"\\b("+s.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[o.BLOCK_COMMENT,d,o.HEXCOLOR,o.CSS_NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,o.IMPORTANT,o.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:c,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},contains:[{begin:c,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},d,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,o.HEXCOLOR,o.CSS_NUMBER_MODE]},o.FUNCTION_DISPATCH]}}}()),H6.registerLanguage("shell",O8?R8:(O8=1,R8=function(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}})),H6.registerLanguage("smali",I8?N8:(I8=1,N8=function(e){const t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"].join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"].join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:"L[^(;:\n]*;",relevance:0},{begin:"[vp][0-9]+"}]}})),H6.registerLanguage("smalltalk",M8?D8:(M8=1,D8=function(e){const t="[a-z][a-zA-Z0-9_]*",a={className:"string",begin:"\\$.{1}"},i={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:t+":",relevance:0},e.C_NUMBER_MODE,i,a,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,a,e.C_NUMBER_MODE,i]}]}})),H6.registerLanguage("sml",P8?L8:(P8=1,L8=function(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}})),H6.registerLanguage("sqf",$8?F8:($8=1,F8=function(e){const t={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},a={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(t,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],built_in:["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],literal:["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,{className:"variable",begin:/\b_+[a-zA-Z]\w*/},{className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},t,a],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}})),H6.registerLanguage("sql",V8?B8:(V8=1,B8=function(e){const t=e.regex,a=e.COMMENT("--","$"),i=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],s=i,n=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter(e=>!i.includes(e)),o={match:t.concat(/\b/,t.either(...s),/\s*\(/),relevance:0,keywords:{built_in:s}};function r(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,"\\s+"))),/\b/)}const l={scope:"keyword",match:r(["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"]),relevance:0};return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:function(e,{exceptions:t,when:a}={}){const i=a;return t=t||[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:i(e)?`${e}|0`:e)}(n,{when:e=>e.length<3}),literal:["true","false","unknown"],type:["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"]},contains:[{scope:"type",match:r(["double precision","large object","with timezone","without timezone"])},l,o,{scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},{scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},{begin:/"/,end:/"/,contains:[{match:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,{scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}})),H6.registerLanguage("stan",H8?U8:(H8=1,U8=function(e){const t=e.regex,a=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],i=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),s={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},n=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:["functions","model","data","parameters","quantities","transformed","generated"],type:["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],keyword:["for","in","if","else","while","break","continue","return"],built_in:["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"]},contains:[e.C_LINE_COMMENT_MODE,s,e.HASH_COMMENT_MODE,i,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:t.concat(/[<,]\s*/,t.either(...n),/\s*=/),keywords:n},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,t.either(...a),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:a,begin:t.concat(/\w*/,t.either(...a),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,t.concat(t.either(...a),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+t.either(...a)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:t.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}})),H6.registerLanguage("stata",Y8?z8:(Y8=1,z8=function(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:'`"[^\r\n]*?"\''},{begin:'"[^\r\n"]*"'}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ \t]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}})),H6.registerLanguage("step21",W8?G8:(W8=1,G8=function(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}})),H6.registerLanguage("stylus",function(){if(q8)return j8;q8=1;const e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video","defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],t=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),i=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),s=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();return j8=function(n){const o=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}))(n),r={className:"variable",begin:"\\$"+n.IDENT_RE},l="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,o.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+l,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+l,className:"selector-id"},{begin:"\\b("+e.join("|")+")"+l,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+a.join("|")+")"+l},{className:"selector-pseudo",begin:"&?:(:)?("+i.join("|")+")"+l},o.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:t.join(" ")},contains:[o.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"].join("|")+"))\\b"},r,o.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[o.HEXCOLOR,r,n.APOS_STRING_MODE,o.CSS_NUMBER_MODE,n.QUOTE_STRING_MODE]}]},o.CSS_VARIABLE,{className:"attribute",begin:"\\b("+s.join("|")+")\\b",starts:{end:/;|$/,contains:[o.HEXCOLOR,r,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,o.CSS_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,o.IMPORTANT,o.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},o.FUNCTION_DISPATCH]}}}()),H6.registerLanguage("subunit",X8?K8:(X8=1,K8=function(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:"\\[\n(multipart)?",end:"\\]\n"},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}})),H6.registerLanguage("swift",function(){if(Z8)return Q8;function e(e){return e?"string"==typeof e?e:e.source:null}function t(e){return a("(?=",e,")")}function a(...t){return t.map(t=>e(t)).join("")}function i(...t){const a=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(t);return"("+(a.capture?"":"?:")+t.map(t=>e(t)).join("|")+")"}Z8=1;const s=e=>a(/\b/,e,/\w$/.test(e)?/\b/:/\B/),n=["Protocol","Type"].map(s),o=["init","self"].map(s),r=["Any","Self"],l=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],c=["false","nil","true"],d=["assignment","associativity","higherThan","left","lowerThan","none","right"],u=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],p=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],h=i(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),g=i(h,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),m=a(h,g,"*"),f=i(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),_=i(f,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),b=a(f,_,"*"),v=a(/[A-Z]/,_,"*"),y=["attached","autoclosure",a(/convention\(/,i("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",a(/objc\(/,b,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],S=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];return Q8=function(e){const h={match:/\s+/,relevance:0},f=e.COMMENT("/\\*","\\*/",{contains:["self"]}),x=[e.C_LINE_COMMENT_MODE,f],w={match:[/\./,i(...n,...o)],className:{2:"keyword"}},E={match:a(/\./,i(...l)),relevance:0},C=l.filter(e=>"string"==typeof e).concat(["_|0"]),k={variants:[{className:"keyword",match:i(...l.filter(e=>"string"!=typeof e).concat(r).map(s),...o)}]},T={$pattern:i(/\b\w+/,/#\w+/),keyword:C.concat(u),literal:c},A=[w,E,k],R=[{match:a(/\./,i(...p)),relevance:0},{className:"built_in",match:a(/\b/,i(...p),/(?=\()/)}],O={match:/->/,relevance:0},N=[O,{className:"operator",relevance:0,variants:[{match:m},{match:`\\.(\\.|${g})+`}]}],I="([0-9]_*)+",D="([0-9a-fA-F]_*)+",M={className:"number",relevance:0,variants:[{match:`\\b(${I})(\\.(${I}))?([eE][+-]?(${I}))?\\b`},{match:`\\b0x(${D})(\\.(${D}))?([pP][+-]?(${I}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},L=(e="")=>({className:"subst",variants:[{match:a(/\\/,e,/[0\\tnr"']/)},{match:a(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),P=(e="")=>({className:"subst",match:a(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),F=(e="")=>({className:"subst",label:"interpol",begin:a(/\\/,e,/\(/),end:/\)/}),$=(e="")=>({begin:a(e,/"""/),end:a(/"""/,e),contains:[L(e),P(e),F(e)]}),B=(e="")=>({begin:a(e,/"/),end:a(/"/,e),contains:[L(e),F(e)]}),V={className:"string",variants:[$(),$("#"),$("##"),$("###"),B(),B("#"),B("##"),B("###")]},U=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],H={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:U},z=e=>{const t=a(e,/\//),i=a(/\//,e);return{begin:t,end:i,contains:[...U,{scope:"comment",begin:`#(?!.*${i})`,end:/$/}]}},Y={scope:"regexp",variants:[z("###"),z("##"),z("#"),H]},G={match:a(/`/,b,/`/)},W=[G,{className:"variable",match:/\$\d+/},{className:"variable",match:`\\$${_}+`}],j=[{match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:S,contains:[...N,M,V]}]}},{scope:"keyword",match:a(/@/,i(...y),t(i(/\(/,/\s+/)))},{scope:"meta",match:a(/@/,b)}],q={match:t(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:a(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,_,"+")},{className:"type",match:v,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:a(/\s+&\s+/,t(v)),relevance:0}]},K={begin:/</,end:/>/,keywords:T,contains:[...x,...A,...j,O,q]};q.contains.push(K);const X={begin:/\(/,end:/\)/,relevance:0,keywords:T,contains:["self",{match:a(b,/\s*:/),keywords:"_|0",relevance:0},...x,Y,...A,...R,...N,M,V,...W,...j,q]},Q={begin:/</,end:/>/,keywords:"repeat each",contains:[...x,q]},Z={begin:/\(/,end:/\)/,keywords:T,contains:[{begin:i(t(a(b,/\s*:/)),t(a(b,/\s+/,b,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:b}]},...x,...A,...N,M,V,...j,q,X],endsParent:!0,illegal:/["']/},J={match:[/(func|macro)/,/\s+/,i(G.match,b,m)],className:{1:"keyword",3:"title.function"},contains:[Q,Z,h],illegal:[/\[/,/%/]},ee={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Q,Z,h],illegal:/\[|%/},te={match:[/operator/,/\s+/,m],className:{1:"keyword",3:"title"}},ae={begin:[/precedencegroup/,/\s+/,v],className:{1:"keyword",3:"title"},contains:[q],keywords:[...d,...c],end:/}/},ie={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,b,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:T,contains:[Q,...A,{begin:/:/,end:/\{/,keywords:T,contains:[{scope:"title.class.inherited",match:v},...A],relevance:0}]};for(const t of V.variants){const e=t.contains.find(e=>"interpol"===e.label);e.keywords=T;const a=[...A,...R,...N,M,V,...W];e.contains=[...a,{begin:/\(/,end:/\)/,contains:["self",...a]}]}return{name:"Swift",keywords:T,contains:[...x,J,ee,{match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},{match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},ie,te,ae,{beginKeywords:"import",end:/$/,contains:[...x],relevance:0},Y,...A,...R,...N,M,V,...W,...j,q,X]}}}()),H6.registerLanguage("taggerscript",e6?J8:(e6=1,J8=function(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}})),H6.registerLanguage("yaml",a6?t6:(a6=1,t6=function(e){const t="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},s=e.inherit(i,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),n={className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},o={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},r={begin:/\{/,end:/\}/,contains:[o],illegal:"\\n",relevance:0},l={begin:"\\[",end:"\\]",contains:[o],illegal:"\\n",relevance:0},c=[{className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},n,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},r,l,{className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},i],d=[...c];return d.pop(),d.push(s),o.contains=d,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:c}})),H6.registerLanguage("tap",s6?i6:(s6=1,i6=function(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}})),H6.registerLanguage("tcl",o6?n6:(o6=1,n6=function(e){const t=e.regex,a=/[a-zA-Z_][a-zA-Z0-9_]*/,i={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:t.concat(/\$/,t.optional(/::/),a,"(::",a,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[i]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i]}})),H6.registerLanguage("thrift",l6?r6:(l6=1,r6=function(e){const t=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:t,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...t,"set","list","map"]},end:">",contains:["self"]}]}})),H6.registerLanguage("tp",d6?c6:(d6=1,c6=function(e){const t={className:"number",begin:"[1-9][0-9]*",relevance:0},a={className:"symbol",begin:":[^\\]]+"};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[{className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,a]},{className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,a]},{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}})),H6.registerLanguage("twig",(p6||(p6=1,u6=function(e){const t=e.regex,a=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"];let i=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];i=i.concat(i.map(e=>`end${e}`));const s={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},n={scope:"number",match:/\d+/},o={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[s,n]},r={beginKeywords:a.join(" "),keywords:{name:a},relevance:0,contains:[o]},l={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"]}]},c=(e,{relevance:a})=>({beginScope:{1:"template-tag",3:"name"},relevance:a||2,endScope:"template-tag",begin:[/\{%/,/\s*/,t.either(...e)],end:/%\}/,keywords:"in",contains:[l,r,s,n]}),d=c(i,{relevance:2}),u=c([/[a-z_]+/],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),d,u,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",l,r,s,n]}]}}),u6)),H6.registerLanguage("typescript",function(){if(g6)return h6;g6=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],a=["true","false","null","undefined","NaN","Infinity"],i=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],n=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],r=[].concat(n,i,s);return h6=function(l){const c=l.regex,d=function(l){const c=l.regex,d=e,u="<>",p="</>",h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const a=e[0].length+e.index,i=e.input[a];if("<"===i||","===i)return void t.ignoreMatch();let s;">"===i&&(((e,{after:t})=>{const a="</"+e[0].slice(1);return-1!==e.input.indexOf(a,t)})(e,{after:a})||t.ignoreMatch());const n=e.input.substring(a);((s=n.match(/^\s*=/))||(s=n.match(/^\s+extends\s+/))&&0===s.index)&&t.ignoreMatch()}},g={$pattern:e,keyword:t,literal:a,built_in:r,"variable.language":o},m="[0-9](_?[0-9])*",f=`\\.(${m})`,_="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${_})((${f})|\\.)?|(${f}))[eE][+-]?(${m})\\b`},{begin:`\\b(${_})\\b((${f})\\b|\\.)?|(${f})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},v={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},y={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,v],subLanguage:"xml"}},S={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,v],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,v],subLanguage:"graphql"}},w={className:"string",begin:"`",end:"`",contains:[l.BACKSLASH_ESCAPE,v]},E={className:"comment",variants:[l.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),l.C_BLOCK_COMMENT_MODE,l.C_LINE_COMMENT_MODE]},C=[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,S,x,w,{match:/\$\d+/},b];v.contains=C.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(C)});const k=[].concat(E,v.contains),T=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(k)}]),A={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:T},R={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,c.concat(d,"(",c.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...i,...s]}},N={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[A],illegal:/%/},I={match:c.concat(/\b/,(D=[...n,"super","import"].map(e=>`${e}\\s*\\(`),c.concat("(?!",D.join("|"),")")),d,c.lookahead(/\s*\(/)),className:"title.function",relevance:0};var D;const M={begin:c.concat(/\./,c.lookahead(c.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},L={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},A]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+l.UNDERSCORE_IDENT_RE+")\\s*=>",F={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[A]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[l.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,y,S,x,w,E,{match:/\$\d+/},b,O,{scope:"attr",match:d+c.lookahead(":"),relevance:0},F,{begin:"("+l.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,l.REGEXP_MODE,{className:"function",begin:P,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:l.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:u,end:p},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:"xml",contains:[{begin:h.begin,end:h.end,skip:!0,contains:["self"]}]}]},N,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+l.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[A,l.inherit(l.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},M,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[A]},I,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},R,L,{match:/\$[(.]/}]}}(l),u=e,p=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],h={begin:[/namespace/,/\s+/,l.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},g={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:p},contains:[d.exports.CLASS_REFERENCE]},m={$pattern:e,keyword:t.concat(["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"]),literal:a,built_in:r.concat(p),"variable.language":o},f={className:"meta",begin:"@"+u},_=(e,t,a)=>{const i=e.contains.findIndex(e=>e.label===t);if(-1===i)throw new Error("can not find mode to replace");e.contains.splice(i,1,a)};Object.assign(d.keywords,m),d.exports.PARAMS_CONTAINS.push(f);const b=d.contains.find(e=>"attr"===e.scope),v=Object.assign({},b,{match:c.concat(u,c.lookahead(/\s*\?:/))});return d.exports.PARAMS_CONTAINS.push([d.exports.CLASS_REFERENCE,b,v]),d.contains=d.contains.concat([f,h,g,v]),_(d,"shebang",l.SHEBANG()),_(d,"use_strict",{className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/}),d.contains.find(e=>"func.def"===e.label).relevance=0,Object.assign(d,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),d}}()),H6.registerLanguage("vala",f6?m6:(f6=1,m6=function(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}})),H6.registerLanguage("vbnet",b6?_6:(b6=1,_6=function(e){const t=e.regex,a=/\d{1,2}\/\d{1,2}\/\d{4}/,i=/\d{4}-\d{1,2}-\d{1,2}/,s=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,n=/\d{1,2}(:\d{1,2}){1,2}/,o={className:"literal",variants:[{begin:t.concat(/# */,t.either(i,a),/ *#/)},{begin:t.concat(/# */,n,/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,t.either(i,a),/ +/,t.either(s,n),/ *#/)}]},r=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),l=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[{className:"string",begin:/"(""|[^/n])"C\b/},{className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o,{className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},{className:"label",begin:/^\w+:/},r,l,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[l]}]}})),H6.registerLanguage("vbscript",y6?v6:(y6=1,v6=function(e){const t=e.regex,a=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"];return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[{begin:t.concat(t.either(...a),"\\s*\\("),relevance:0,keywords:{built_in:a}},e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}})),H6.registerLanguage("vbscript-html",x6?S6:(x6=1,S6=function(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}})),H6.registerLanguage("verilog",E6?w6:(E6=1,w6=function(e){const t=e.regex,a=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:{$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:t.concat(/`/,t.either("__FILE__","__LINE__"))},{scope:"meta",begin:t.concat(/`/,t.either(...a)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:a}]}})),H6.registerLanguage("vhdl",k6?C6:(k6=1,C6=function(e){const t="\\d(_|\\d)*",a="[eE][-+]?"+t,i="\\b("+t+"#\\w+(\\.\\w+)?#("+a+")?|"+t+"(\\."+t+")?("+a+")?)";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:i,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}})),H6.registerLanguage("vim",A6?T6:(A6=1,T6=function(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}})),H6.registerLanguage("wasm",O6?R6:(O6=1,R6=function(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);return t.contains.push("self"),{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"]},contains:[e.COMMENT(/;;/,/$/),t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},{className:"variable",begin:/\$[\w_]+/},{match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},{begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},e.QUOTE_STRING_MODE,{match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},{className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/},{className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/}]}})),H6.registerLanguage("wren",I6?N6:(I6=1,N6=function(e){const t=e.regex,a=/[a-zA-Z]\w*/,i=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],s=["true","false","null"],n=["this","super"],o=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],r={relevance:0,match:t.concat(/\b(?!(if|while|for|else|super)\b)/,a,/(?=\s*[({])/),className:"title.function"},l={match:t.concat(t.either(t.concat(/\b(?!(if|while|for|else|super)\b)/,a),t.either(...o)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:a}]}]}},c={variants:[{match:[/class\s+/,a,/\s+is\s+/,a]},{match:[/class\s+/,a]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:i},d={relevance:0,match:t.either(...o),className:"operator"},u={className:"property",begin:t.concat(/\./,t.lookahead(a)),end:a,excludeBegin:!0,relevance:0},p={relevance:0,match:t.concat(/\b_/,a),scope:"variable"},h={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"]}},g=e.C_NUMBER_MODE,m={match:[a,/\s*/,/=/,/\s*/,/\(/,a,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},f=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),_={scope:"subst",begin:/%\(/,end:/\)/,contains:[g,h,r,p,d]},b={scope:"string",begin:/"/,end:/"/,contains:[_,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};_.contains.push(b);const v=[...i,...n,...s],y={relevance:0,match:t.concat("\\b(?!",v.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:i,"variable.language":n,literal:s},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:s},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},g,b,{className:"string",begin:/"""/,end:/"""/},f,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,c,m,l,r,d,p,u,y]}})),H6.registerLanguage("x86asm",M6?D6:(M6=1,D6=function(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}})),H6.registerLanguage("xl",P6?L6:(P6=1,L6=function(e){const t={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],literal:["true","false","nil"],built_in:["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"].concat(["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"])},a={className:"string",begin:'"',end:'"',illegal:"\\n"},i={beginKeywords:"import",end:"$",keywords:t,contains:[a]},s={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:t}})]};return{name:"XL",aliases:["tao"],keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:"<<",end:">>"},s,i,{className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},e.NUMBER_MODE]}})),H6.registerLanguage("xquery",$6?F6:($6=1,F6=function(e){return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}})),H6.registerLanguage("zephir",V6?B6:(V6=1,B6=function(e){const t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},a=e.UNDERSCORE_TITLE_MODE,i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},s="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:s,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[a,{className:"params",begin:/\(/,end:/\)/,keywords:s,contains:["self",e.C_BLOCK_COMMENT_MODE,t,i]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},a]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[a]},{beginKeywords:"use",end:/;/,contains:[a]},{begin:/=>/},t,i]}})),H6.HighlightJS=H6,H6.default=H6;const z6=Ak(H6),Y6={name:"FluentBotAIResponseGenerator",components:{Plus:fx,Clock:IS},props:["aiProvider","ticketId","productID","addContextId","ticketResponses"],emits:["close","insert","contextAdded"],data(){return{prompt:"",presetPrompt:"",errorMessage:"",aiResponse:"",loading:!1,selectedPrompt:"",isFullSize:!0,presetPrompts:[],draftData:[],showDraft:!1,finalPrompts:"",products:[],hasGeneralBot:!1,selectedProduct:this.productID?parseInt(this.productID):0,chatId:null,isStreaming:!1,streamBuffer:"",displayedText:"",typingQueue:[],messages:[],nextCursor:null,loadingMessages:!1,pendingSources:null,feedbackDialogVisible:!1,feedbackComment:"",pendingFeedbackMessageId:null,pastDialogVisible:!1,pastConversations:[],activeChatId:null,loadingPast:!1,switchingConversation:!1,pendingMessageId:null,ticketConversations:[],selectedContextIds:[],showContextPicker:!1,contextSearchQuery:"",includeTicketContent:!0,webSearch:!1,temperature:(()=>{const e=parseFloat(localStorage.getItem("fs_fluentbot_temperature"));return Number.isFinite(e)?Math.min(2,Math.max(0,e)):0})(),contextReady:!1,botSwitchDialogVisible:!1,pendingProductSwitch:null,seedMessages:null,configReady:!1}},created(){this._isRevertingProduct=!1,this._streamAbort=null,this._requestEpoch=0,this._pendingChatReset=!1,this._streamBuffer="",this._streamRafId=null,this._configuredProductIds=new Set},computed:{ticketResponseIds(){return(this.ticketResponses||[]).filter(e=>"response"===e.conversation_type).map(e=>e.id).join(",")},filteredContextConversations(){if(!this.contextSearchQuery.trim())return this.ticketConversations;const e=this.contextSearchQuery.toLowerCase();return this.ticketConversations.filter(t=>t.preview&&t.preview.toLowerCase().includes(e)||t.name&&t.name.toLowerCase().includes(e)||t.role&&t.role.toLowerCase().includes(e))},title:()=>"Generate Responses with FluentBot",noBotAvailable(){return this.configReady&&!this.hasGeneralBot&&0===this.products.length},noBotForThisProduct(){if(!this.configReady||this.hasGeneralBot||0===this.products.length)return!1;const e=parseInt(this.selectedProduct)||0;return 0===e||!this._configuredProductIds.has(e)},composerDisabled(){return this.noBotAvailable||this.noBotForThisProduct},composerPlaceholder(){return this.noBotAvailable?this.$t("Configure a bot in FluentBot settings to start chatting"):this.noBotForThisProduct?this.$t("Pick a configured product from the dropdown to start chatting"):this.$t("Enter your prompt here...")},contextPickerTooltip(){const e=this.ticketConversations.length;if(0===e)return this.$t("No prior replies on this ticket yet — nothing to pick as context");const t=this.selectedContextIds.length;return t===e?this.$t("All ticket replies sent as context"):0===t?this.$t("No ticket replies sent as context"):this.$t("{0} of {1} ticket replies sent as context").replace("{0}",t).replace("{1}",e)},canManageBotSettings(){var e,t,a;return!!(null==(a=null==(t=null==(e=this.appVars)?void 0:e.me)?void 0:t.permissions)?void 0:a.includes("fst_manage_settings"))},description:()=>"Let FluentBot generate ticket responses to enhance support efficiency.",formattedResponse(){return HZ(this.aiResponse)}},watch:{ticketId(e,t){e!==t&&this.resetForTicketChange()},productID(e){const t=e?parseInt(e):0;this.setProductSilently(t),this.configReady&&this.applyProductFallback()},temperature(e){const t=Math.min(2,Math.max(0,Number.isFinite(e)?e:0));if(t===e)try{localStorage.setItem("fs_fluentbot_temperature",String(t))}catch(PI){}else this.temperature=t},addContextId:{handler(e){e&&this.applyPendingContextId(e)},immediate:!0},selectedContextIds:{handler(){this.contextReady&&this.saveContextSelection()},deep:!0},selectedProduct(e,t){this._isRevertingProduct||e===t||(this.chatId||0!==this.messages.length)&&(this.setProductSilently(t),this.pendingProductSwitch=e,this.botSwitchDialogVisible=!0)},includeTicketContent(){this.contextReady&&this.saveContextSelection()},ticketResponseIds(e,t){if(!t||e===t)return;const a=this.ticketConversations.map(e=>e.id);this.buildTicketConversations();const i=this.ticketConversations.filter(e=>!a.includes(e.id)).map(e=>e.id);i.length>0&&(this.selectedContextIds.push(...i),this.contextReady&&this.saveContextSelection())},showContextPicker(e){e?this.$nextTick(()=>{var e;null==(e=this.$refs.contextSearchInput)||e.focus()}):this.contextSearchQuery=""}},methods:{getFormattedTextForEditor:e=>e?e.replace(/#{1,6}\s+(.+)/g,(e,t)=>`\n\n**${t.trim()}**\n\n`).replace(/\*\*([^*]+)\*\*/g,"**$1**").replace(/\*([^*]+)\*/g,"_$1_").replace(/```(\w*)\n?([\s\S]*?)```/g,(e,t,a)=>{const i=a.trim().split("\n").map(e=>` ${e}`).join("\n");return`\n\n${t?`${t.toUpperCase()} Code:`:"Code:"}\n${i}\n\n`}).replace(/`([^`]+)`/g,"`$1`").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"$1 ($2)").replace(/^\s*[-*+]\s+/gm,"• ").replace(/^\s*(\d+)\.\s+/gm,"$1. ").replace(/\n{3,}/g,"\n\n").replace(/(\*\*[^*]+\*\*)/g,"\n$1\n").replace(/\n{3,}/g,"\n\n").trim():"",getCleanTextForEditor:e=>e?e.replace(/#+\s+/g,"").replace(/\*\*/g,"").replace(/\*/g,"").replace(/`{3}[\s\S]*?`{3}/g,e=>e.replace(/^```\w*\n/,"").replace(/```$/,"")).replace(/`([^`]+)`/g,"$1").replace(/\[([^\]]+)\]\(([^)]+)\)/g,"$1").trim():"",saveDraft(){const e="createResponseDraft",t=JSON.parse(this.$getData(e)||"[]")||[];t.length>=3&&t.shift();const a=this.getCleanTextForEditor(this.aiResponse);t.push(a),this.$saveData(e,JSON.stringify(t)),this.draftData=t},addToStream(e){e&&""!==e.trim()&&(this._streamBuffer=(this._streamBuffer||"")+e,this._streamRafId||(this._streamRafId=requestAnimationFrame(()=>{this._streamRafId=null,this._streamBuffer&&(this.aiResponse+=this._streamBuffer,this._streamBuffer="",this.scrollToBottom())})))},flushStreamBuffer(){this._streamRafId&&(cancelAnimationFrame(this._streamRafId),this._streamRafId=null),this._streamBuffer&&(this.aiResponse+=this._streamBuffer,this._streamBuffer="")},handleChatIdReceived(e){e&&e!==this.chatId&&(this.chatId=e,this.saveChatIdToServer(e))},processEventData(e,t,a){if("message"===e&&t&&""!==t.trim())this.streamBuffer+=t,this.addToStream(t);else if("chat_id"===e&&t)this.handleChatIdReceived(t.trim());else if("sources"===e&&t)try{this.pendingSources=JSON.parse(t)}catch(PI){}else if("message_id"===e&&t)this.pendingMessageId=t.trim()||null;else if("token_usage"===e);else{if("done"===e||"end"===e){if(this.flushStreamBuffer(),this.aiResponse){const e={role:"ai",content:this.aiResponse,message_id:this.pendingMessageId,feedback:null};this.pendingSources&&this.pendingSources.length&&(e.sources=this.pendingSources),this.messages.push(this.prepareMessage(e)),this.pendingSources=null,this.pendingMessageId=null}return this.loading=!1,this.isStreaming=!1,this.aiResponse="",this.finalPrompts=a,this.selectedPrompt="",this.scrollToBottom(),!0}if("error"===e){this.loading=!1,this.isStreaming=!1;let e=this.$t("Failed to generate response. Please try again.");try{const a=JSON.parse(t);a&&(a.error||a.message)&&(e=a.error||a.message)}catch(PI){}return this.errorMessage=e,!0}}return!1},sendMessage(){!this.prompt.trim()||this.isStreaming||this.loadingMessages||this.generateResponse(this.prompt)},prepareMessage(e){return"ai"===e.role&&e.content&&!e.htmlContent&&(e.htmlContent=this.formatMarkdown(e.content)),e},formatMarkdown:e=>HZ(e),copyMessageText(e){const t=this.getCleanTextForEditor(e);navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(t).then(()=>{this.$notify({message:this.$t("Copied to clipboard"),type:"success",position:"bottom-right"})}).catch(()=>{this.fallbackCopy(t)}):this.fallbackCopy(t)},fallbackCopy(e){const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();try{document.execCommand("copy"),this.$notify({message:this.$t("Copied to clipboard"),type:"success",position:"bottom-right"})}catch(PI){this.$notify({message:this.$t("Something went wrong"),type:"danger",position:"bottom-right"})}document.body.removeChild(t)},scrollToBottom(){this.$nextTick(()=>{const e=this.$refs.chatContainer;e&&(e.scrollTop=e.scrollHeight)})},generateResponse(e){if(this.noBotAvailable)return void(this.errorMessage=this.$t("Add a bot in FluentBot settings before chatting."));if(this.noBotForThisProduct)return void(this.errorMessage=this.$t("Pick a configured product from the dropdown before sending."));const t=e.trim();if(!t)return void(this.errorMessage="Prompt is required.");this.messages.push({role:"user",content:t}),this.prompt="",this.$nextTick(()=>{const e=this.$refs.promptTextarea;e&&(e.style.height="auto")}),this.errorMessage="",this.loading=!0,this.isStreaming=!0,this.aiResponse="",this.displayedText="",this.typingQueue=[],this.streamBuffer="",this.scrollToBottom();const a={content:t,id:this.ticketId,type:"createResponse",provider:this.aiProvider,product_id:this.selectedProduct,web_search:this.webSearch,temperature:this.temperature};this.contextReady&&(a.selected_conversations=this.selectedContextIds,a.include_ticket_content=this.includeTicketContent),this.chatId&&(a.chat_id=this.chatId),this._pendingChatReset&&(a.reset_chat=!0,this._pendingChatReset=!1),this.seedMessages&&(a.conversation_history=this.seedMessages,this.seedMessages=null);const i=this.appVars.rest.url,s=this.appVars.rest.nonce;this._streamAbort&&this._streamAbort.abort(),this._streamAbort=new AbortController;const n=++this._requestEpoch;fetch(`${i}/fluent-bot/${this.ticketId}/generate-stream-response`,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":s},body:JSON.stringify(a),signal:this._streamAbort.signal}).then(e=>{if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);if(!e.body)throw new Error("Streaming not supported in this browser");const a=e.body.getReader(),i=new TextDecoder;let s="";const o=()=>a.read().then(({done:e,value:a})=>{if(n!==this._requestEpoch)return;if(e){if(this.aiResponse){const e={role:"ai",content:this.aiResponse,message_id:this.pendingMessageId,feedback:null};this.pendingSources&&this.pendingSources.length&&(e.sources=this.pendingSources),this.messages.push(this.prepareMessage(e)),this.pendingSources=null,this.pendingMessageId=null,this.aiResponse=""}return this.loading=!1,this.isStreaming=!1,this.finalPrompts=t,this.selectedPrompt="",void this.scrollToBottom()}const r=i.decode(a,{stream:!0});s+=r;const l=s.split("\n");let c=[],d="message";for(let i=0;i<l.length;i++){const e=l[i];if(e.startsWith("event: ")){if(c.length>0){const e=c.join("\n");if(this.processEventData(d,e,t))return;c=[]}d=e.substring(7).trim()}else if(e.startsWith("id: "))e.substring(4).trim();else if(e.startsWith("data: "))c.push(e.substring(6));else if(""===e.trim()&&c.length>0){const e=c.join("\n");if(this.processEventData(d,e,t))return;c=[]}}if(c.length>0){const e=c.join("\n");if(this.processEventData(d,e,t))return}return s=l[l.length-1]||"",o()});return o()}).catch(e=>{e&&"AbortError"===e.name||(this.loading=!1,this.isStreaming=!1,this.errorMessage="Failed to generate response. Please try again.")})},selectPresetPrompt(e){this.selectedPrompt=e;const t=this.presetPrompts.find(t=>t.text===e.text);this.presetPrompt=`${t.description}`,this.prompt="",this.generateResponse(this.presetPrompt)},isSelected(e){return this.selectedPrompt===e},closeModal(){this.$emit("close")},async copyText(){try{const e=this.getCleanTextForEditor(this.aiResponse);await navigator.clipboard.writeText(e),this.$notify({message:this.$t("Copied to clipboard"),type:"success",position:"bottom-right"})}catch(e){this.$notify({message:this.$t("Something went wrong"),type:"danger",position:"bottom-right"})}},resetData(){this.aiResponse="",this.selectedPrompt="",this.prompt="",this.chatId=null,this.isStreaming=!1,this.displayedText="",this.typingQueue=[],this.streamBuffer="",this.messages=[],this.nextCursor=null,this.pendingSources=null,this.removeDraft()},insertReply(e){this.$emit("insert",HZ(e))},fetchPresets(){this.$get("fluent-bot/preset-prompts",{type:"createResponse",provider:this.aiProvider}).then(e=>{this.presetPrompts=e}).catch(e=>{this.$handleError(e)})},setProductSilently(e){this._isRevertingProduct=!0,this.selectedProduct=e,this.$nextTick(()=>{this._isRevertingProduct=!1})},applyProductFallback(){const e=this._configuredProductIds,t=parseInt(this.selectedProduct)||0;0!==t&&e.has(t)||(this.hasGeneralBot?this.setProductSilently(0):this.setProductSilently(""))},fetchConfiguredProducts(){this.$get("fluent-bot/runtime-config").then(e=>{this.hasGeneralBot=!!e.hasGeneralBot;const t=new Set((e.configuredProductIds||[]).map(e=>parseInt(e))),a=this.appVars.support_products||[];this.products=a.filter(e=>t.has(parseInt(e.id))),this._configuredProductIds=t,this.applyProductFallback(),this.configReady=!0}).catch(e=>{this.products=[],this.hasGeneralBot=!1,this.configReady=!0})},removeDraft(){this.removeData("createResponseDraft"),this.draftData=[]},removeData(e){let t=this.$getData("__fluentsupport_data");t&&(t=JSON.parse(t),delete t[e],this.$saveData("__fluentsupport_data",JSON.stringify(t)))},getSnippet:e=>e.length>30?e.substring(0,30)+"...":e,selectDraft(e){this.aiResponse=e,this.displayedText=e,this.typingQueue=[],this.streamBuffer=e},saveChatIdToServer(e){if(!e)return;const t=this.messages.find(e=>"user"===e.role),a=t?String(t.content||"").slice(0,60):"";this.$post(`fluent-bot/${this.ticketId}/chat-id`,{chat_id:e,product_id:this.selectedProduct,title:a}).catch(e=>{this.errorMessage=this.$t("Failed to save chat session. Your messages may not persist on reload.")})},resetForTicketChange(){this._streamAbort&&(this._streamAbort.abort(),this._streamAbort=null),this._requestEpoch++,this._pendingChatReset=!1,this.messages=[],this.chatId=null,this.nextCursor=null,this.seedMessages=null,this.aiResponse="",this.isStreaming=!1,this.loading=!1,this.streamBuffer="",this.selectedPrompt="",this.errorMessage="",this.prompt="",this.pendingSources=null,this.pendingMessageId=null,this.ticketConversations=[],this.selectedContextIds=[],this.contextReady=!1,this.showContextPicker=!1,this.contextSearchQuery="",this.includeTicketContent=!0,this.botSwitchDialogVisible=!1,this.pendingProductSwitch=null,this.buildTicketConversations(),this.loadContextSelection(),this.restoreChatState()},restoreChatState(){const e=this._requestEpoch,t=this.ticketId;this.$get(`fluent-bot/${t}/chat-id`).then(a=>{e===this._requestEpoch&&t===this.ticketId&&a.chat_id&&(this.chatId=a.chat_id,null!==a.product_id&&void 0!==a.product_id&&this.setProductSilently(a.product_id),this.fetchChatMessages())}).catch(e=>{})},fetchChatMessages(e){if(this.loadingMessages)return;this.loadingMessages=!0;const t=this._requestEpoch,a={product_id:this.selectedProduct};e&&(a.cursor=e),this.$get(`fluent-bot/${this.ticketId}/chat-messages`,a).then(a=>{if(t!==this._requestEpoch)return;const i=new Set(this.messages.map(e=>e.message_id).filter(Boolean)),s=(a.data||[]).map(e=>{const t={role:"visitor"===e.role||"human"===e.role?"user":"ai",content:e.content,message_id:e.id||null,feedback:e.feedback||null};return e.sources&&e.sources.length&&(t.sources=e.sources),this.prepareMessage(t)}).reverse().filter(e=>!e.message_id||!i.has(e.message_id));if(e){const e=this.$refs.chatContainer,t=e?e.scrollHeight:0;this.messages=[...s,...this.messages],this.$nextTick(()=>{e&&(e.scrollTop=e.scrollHeight-t)})}else this.messages=s,this.scrollToBottom();this.nextCursor=a.next_cursor||null}).catch(t=>{this.errorMessage=e?this.$t("Failed to load older messages. Please try again."):this.$t("Failed to load chat history. Please try again.")}).always(()=>{this.loadingMessages=!1})},handleConversationCommand(e){"new"===e?this.startNewConversation():"past"===e&&this.openPastConversations()},startNewConversation(){this._streamAbort&&(this._streamAbort.abort(),this._streamAbort=null),this._requestEpoch++,this._pendingChatReset=!0,this.messages=[],this.aiResponse="",this.chatId=null,this.isStreaming=!1,this.loading=!1,this.streamBuffer="",this.selectedPrompt="",this.errorMessage="",this.nextCursor=null,this.contextReady=!1,this.selectedContextIds=this.ticketConversations.map(e=>e.id),this.includeTicketContent=!0,this.contextReady=!0,this.$del(`fluent-bot/${this.ticketId}/chat-id`).catch(e=>{})},openPastConversations(){this.pastDialogVisible=!0,this.loadingPast=!0,this.$get(`fluent-bot/${this.ticketId}/conversations`).then(e=>{this.pastConversations=e.conversations||[],this.activeChatId=e.active_chat_id||this.chatId||null}).catch(e=>{this.$notify({message:e&&e.message||this.$t("Failed to load past conversations."),type:"warning",position:"bottom-right"})}).always(()=>{this.loadingPast=!1})},switchToConversation(e){e&&e.chat_id&&!this.switchingConversation&&(e.chat_id!==this.chatId?(this.switchingConversation=!0,this.$post(`fluent-bot/${this.ticketId}/conversations/switch`,{chat_id:e.chat_id}).then(e=>{this._streamAbort&&(this._streamAbort.abort(),this._streamAbort=null),this._requestEpoch++,this._pendingChatReset=!1,this.messages=[],this.nextCursor=null,this.aiResponse="",this.errorMessage="",this.chatId=e.chat_id,null!==e.product_id&&void 0!==e.product_id&&this.setProductSilently(e.product_id),this.pastDialogVisible=!1,this.fetchChatMessages()}).catch(e=>{this.$notify({message:e&&e.message||this.$t("Failed to open that conversation."),type:"warning",position:"bottom-right"})}).always(()=>{this.switchingConversation=!1})):this.pastDialogVisible=!1)},formatPastDate(e){if(!e)return"";try{return new Date(1e3*e).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"})}catch(PI){return""}},updateMessageByMessageId(e,t){const a=this.messages.findIndex(t=>t.message_id===e);-1!==a&&(this.messages[a]=t(this.messages[a]))},handleFeedback(e,t){const a=this.messages[e];if(!a||!a.message_id)return;const i=a.message_id;a.feedback&&a.feedback.reaction===t?this.$del(`fluent-bot/${this.ticketId}/feedback/${a.feedback.id}`,{product_id:this.selectedProduct}).then(()=>{this.updateMessageByMessageId(i,e=>({...e,feedback:null}))}).catch(e=>{this.$notify({message:e&&e.message||this.$t("Failed to remove feedback. Please try again."),type:"warning",position:"bottom-right"})}):"positive"!==t?(this.pendingFeedbackMessageId=i,this.feedbackComment="",this.feedbackDialogVisible=!0,this.$nextTick(()=>{this.$refs.feedbackTextarea&&this.$refs.feedbackTextarea.focus()})):this.createFeedback(i,"positive",null)},cancelFeedback(){this.feedbackDialogVisible=!1,this.pendingFeedbackMessageId=null,this.feedbackComment=""},submitNegativeFeedback(e){this.feedbackDialogVisible=!1,null!==this.pendingFeedbackMessageId&&(this.createFeedback(this.pendingFeedbackMessageId,"negative",e||null),this.pendingFeedbackMessageId=null)},createFeedback(e,t,a){this.$post(`fluent-bot/${this.ticketId}/feedback`,{message_id:e,reaction:t,comments:a,product_id:this.selectedProduct}).then(i=>{const s=i.data||i;this.updateMessageByMessageId(e,i=>({...i,feedback:{id:s.id,message_id:e,reaction:t,comments:a}}))}).catch(e=>{this.$notify({message:e&&e.message||this.$t("Failed to save feedback. Please try again."),type:"warning",position:"bottom-right"})})},autoResizeTextarea(){const e=this.$refs.promptTextarea;if(!e)return;e.style.height="auto";const t=16*(parseInt(getComputedStyle(e).lineHeight)||20);e.style.height=Math.min(e.scrollHeight,t)+"px"},buildTicketConversations(){this.ticketConversations=(this.ticketResponses||[]).filter(e=>"response"===e.conversation_type).map(e=>{const t=e.person?e.person.person_type:"agent",a=e.person?(e.person.first_name+" "+(e.person.last_name||"")).trim():"",i=(e.content||"").replace(/<[^>]*>/g,"");return{id:e.id,role:"customer"===t?"customer":"support_agent",name:a,preview:i.length>80?i.substring(0,80)+"...":i}})},loadContextSelection(){const e=this.ticketConversations.map(e=>e.id);this.$get(`fluent-bot/${this.ticketId}/context-selection`).then(t=>{const a=t.data;if(a&&a.selectedIds){const t=a.selectedIds||[],i=a.knownIds||[],s=e.filter(e=>!i.includes(e));this.selectedContextIds=[...t.filter(t=>e.includes(t)),...s],"boolean"==typeof a.includeTicketContent&&(this.includeTicketContent=a.includeTicketContent)}else this.selectedContextIds=e;this.$nextTick(()=>{this.contextReady=!0})}).catch(()=>{this.selectedContextIds=e,this.$nextTick(()=>{this.contextReady=!0})}).always(()=>{if(this._deferredContextId){const e=this._deferredContextId;this._deferredContextId=null,this.selectedContextIds.includes(e)||(this.selectedContextIds.push(e),this.saveContextSelection()),this.$emit("contextAdded")}})},saveContextSelection(){this._contextSaveTimer&&clearTimeout(this._contextSaveTimer),this._contextSaveTimer=setTimeout(()=>{this._contextSaveTimer=null,this.$post(`fluent-bot/${this.ticketId}/context-selection`,{selected_ids:this.selectedContextIds,known_ids:this.ticketConversations.map(e=>e.id),include_ticket_content:this.includeTicketContent}).catch(e=>{})},300)},sanitizeUrl(e){if(!e)return"#";try{const t=new URL(e,window.location.origin);return["http:","https:"].includes(t.protocol)?t.href:"#"}catch(PI){return"#"}},decodeHtml(e){if(!e)return"";const t=document.createElement("textarea");return t.innerHTML=e,t.value},hasOpenMenu(){return this.showContextPicker||this.feedbackDialogVisible},closeMenus(){this.showContextPicker?this.showContextPicker=!1:this.feedbackDialogVisible&&(this.feedbackDialogVisible=!1)},applyPendingContextId(e){e&&(this.ticketConversations.length>0?(this.selectedContextIds.includes(e)||this.selectedContextIds.push(e),this.$emit("contextAdded")):this._deferredContextId=e)},toggleContext(e){const t=this.selectedContextIds.indexOf(e);t>-1?this.selectedContextIds.splice(t,1):this.selectedContextIds.push(e)},cancelProductSwitch(){this.botSwitchDialogVisible=!1,this.pendingProductSwitch=null},forkConversation(){this.botSwitchDialogVisible=!1,this._isRevertingProduct=!0,this._streamAbort&&(this._streamAbort.abort(),this._streamAbort=null),this._requestEpoch++,this._pendingChatReset=!0,this.isStreaming=!1,this.loading=!1,this.aiResponse="";this.seedMessages=this.messages.filter(e=>e.content).slice(-50).map(e=>({role:"user"===e.role?"visitor":"ai",content:String(e.content).slice(0,5e3)})),this.$del(`fluent-bot/${this.ticketId}/chat-id`).catch(e=>{}),this.selectedProduct=this.pendingProductSwitch,this.chatId=null,this.nextCursor=null,this.errorMessage="",this.pendingProductSwitch=null,this.$nextTick(()=>{this._isRevertingProduct=!1})},newConversation(){this.botSwitchDialogVisible=!1,this._isRevertingProduct=!0,this._streamAbort&&(this._streamAbort.abort(),this._streamAbort=null),this._requestEpoch++,this._pendingChatReset=!0,this.selectedProduct=this.pendingProductSwitch,this.messages=[],this.chatId=null,this.seedMessages=null,this.aiResponse="",this.isStreaming=!1,this.loading=!1,this.streamBuffer="",this.selectedPrompt="",this.errorMessage="",this.nextCursor=null,this.contextReady=!1,this.selectedContextIds=this.ticketConversations.map(e=>e.id),this.includeTicketContent=!0,this.contextReady=!0,this.pendingProductSwitch=null,this.$del(`fluent-bot/${this.ticketId}/chat-id`).catch(e=>{}),this.$nextTick(()=>{this._isRevertingProduct=!1})}},mounted(){kQ.setOptions({breaks:!1,gfm:!0,headerIds:!1,mangle:!1,highlight:(e,t)=>t&&z6.getLanguage(t)?z6.highlight(e,{language:t}).value:z6.highlightAuto(e).value}),this.fetchConfiguredProducts(),this.fetchPresets(),this.buildTicketConversations(),this.loadContextSelection(),this.restoreChatState(),this.removeDraft(),this._handleClickOutside=e=>{this.showContextPicker&&this.$el&&!e.target.closest(".fs_context_toggle_wrap")&&(this.showContextPicker=!1)},document.addEventListener("click",this._handleClickOutside)},beforeUnmount(){this._handleClickOutside&&document.removeEventListener("click",this._handleClickOutside),this._contextSaveTimer&&clearTimeout(this._contextSaveTimer),this._streamAbort&&this._streamAbort.abort(),this._streamRafId&&(cancelAnimationFrame(this._streamRafId),this._streamRafId=null)}},G6={class:"fs_container fs_fluent_bot_ai_response_generator"},W6={class:"fs_ai_header_section"},j6={class:"fs_dropdown_item_content"},q6={class:"fs_dropdown_item_content"},K6=["src","alt"],X6={key:0,class:"fs_draft"},Q6=["src"],Z6={class:"fs_draft_widget"},J6=["onClick"],e9={class:"fs_response_section",ref:"chatContainer"},t9={key:0,class:"fs_messages_loading"},a9={key:1,class:"fs_empty_state fs_empty_state_no_bot"},i9={class:"fs_empty_state_icon"},s9=["src"],n9={class:"fs_empty_state_text"},o9={class:"fs_empty_state_description"},r9={key:2,class:"fs_empty_state fs_empty_state_no_bot"},l9={class:"fs_empty_state_icon"},c9=["src"],d9={class:"fs_empty_state_text"},u9={class:"fs_empty_state_description"},p9={key:3,class:"fs_empty_state"},h9={class:"fs_empty_state_icon"},g9=["src"],m9={class:"fs_empty_state_text"},f9={class:"fs_empty_state_description"},_9={key:4,class:"fs_chat_messages"},b9={key:0,class:"fs_load_more"},v9={key:0,class:"fs_chat_bubble_content"},y9=["innerHTML"],S9={key:0,class:"fs_chat_sources"},x9=["href"],w9={key:0,class:"fs_chat_actions"},E9=["aria-pressed","aria-label","onClick"],C9=["aria-pressed","aria-label","onClick"],k9=["onClick","aria-label","title"],T9=["onClick","title"],A9={key:1,class:"fs_chat_bubble fs_chat_ai"},R9=["innerHTML"],O9={key:0,class:"fs_streaming_indicator"},N9={key:2,class:"fs_chat_bubble fs_chat_ai"},I9={key:3,class:"fs_chat_error"},D9={class:"fs_main_content"},M9={class:"fs_prompt_presets_scroll"},L9=["tabindex","aria-disabled","onClick","onKeydown"],P9={class:"fs_prompt_box"},F9=["placeholder","disabled"],$9={class:"fs_prompt_toolbar"},B9={class:"fs_toolbar_left"},V9={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},U9={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},H9={width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},z9={key:0,x1:"2",y1:"2",x2:"20",y2:"20"},Y9=["aria-label"],G9={class:"fs_temp_panel"},W9={class:"fs_temp_head"},j9={class:"fs_temp_value"},q9=["aria-label"],K9={class:"fs_temp_labels"},X9={class:"fs_temp_hint"},Q9={class:"fs_context_toggle_wrap"},Z9=["disabled","aria-label"],J9={key:0,class:"fs_context_picker"},e7={class:"fs_context_search"},t7=["placeholder"],a7={class:"fs_context_list"},i7=["onClick","onKeydown"],s7={class:"fs_context_preview"},n7={class:"fs_context_actions"},o7=["disabled","aria-label"],r7=["src"],l7={class:"fs_dialog_footer"},c7={key:0,class:"fs_past_loading"},d7={key:1,class:"fs_past_empty"},u7={key:2,class:"fs_past_list"},p7=["onClick","onKeydown"],h7={class:"fs_past_title"},g7={class:"fs_past_meta"},m7={key:0,class:"fs_past_active_badge"},f7=["placeholder"],_7={class:"fs_dialog_footer"};const b7=dH(Y6,[["render",function(e,t,a,i,s,n){const o=bA,r=_A,l=vk,c=Zl("Plus"),d=jx,u=oM,p=Zl("Clock"),h=rM,g=nM,m=gO,f=OL,_=Zl("router-link"),b=KE,v=$B,y=wR,S=pD;return Hd(),jd("div",G6,[eu("div",W6,[n.noBotAvailable?ou("",!0):(Hd(),qd(r,{key:0,modelValue:s.selectedProduct,"onUpdate:modelValue":t[0]||(t[0]=e=>s.selectedProduct=e),placeholder:e.$t("Select a product"),size:"small",class:"fs_select_field fs_product_dropdown fs_header_product_select",filterable:"",clearable:"","value-key":"id","default-value":0},{default:br(()=>[s.hasGeneralBot?(Hd(),qd(o,{key:0,label:e.$t("General Bot (No specific product selected)"),value:0},null,8,["label"])):ou("",!0),(Hd(!0),jd(Pd,null,sc(s.products,e=>(Hd(),qd(o,{key:e.id,label:e.title,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder"])),n.noBotAvailable?ou("",!0):(Hd(),qd(g,{key:1,trigger:"click",class:"fs_header_more",onCommand:n.handleConversationCommand},{dropdown:br(()=>[tu(h,{class:"fs_global_dropdown"},{default:br(()=>[tu(u,{command:"new"},{default:br(()=>[eu("div",j6,[tu(d,{class:"fs_dropdown_icon"},{default:br(()=>[tu(c)],void 0),_:1}),su(" "+fe(e.$t("New conversation")),1)])],void 0),_:1}),tu(u,{command:"past",divided:""},{default:br(()=>[eu("div",q6,[tu(d,{class:"fs_dropdown_icon"},{default:br(()=>[tu(p)],void 0),_:1}),su(" "+fe(e.$t("Past conversations")),1)])],void 0),_:1})],void 0),_:1})]),default:br(()=>[tu(l,{class:"fs_action_button fs_header_more_btn",text:"",icon:"More","aria-label":e.$t("Conversation options")},null,8,["aria-label"])],void 0),_:1},8,["onCommand"])),tu(l,{class:"fs_close_button",onClick:n.closeModal,"aria-label":e.$t("Close panel")},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/closeIcon.svg",alt:e.$t("Close panel")},null,8,K6)],void 0),_:1},8,["onClick","aria-label"])]),s.draftData.length>1?(Hd(),jd("div",X6,[tu(l,{class:"fs_draft_button",onClick:t[1]||(t[1]=e=>s.showDraft=!s.showDraft)},{default:br(()=>[eu("span",null,fe(e.$t("Draft")),1),eu("img",{class:ne(["fs_draft_arrow",{"rotate-down":s.showDraft}]),src:e.appVars.asset_url+"images/arrowRight.svg",alt:""},null,10,Q6)],void 0),_:1}),eu("div",null,[tu(m,null,{default:br(()=>[vr(eu("div",Z6,[(Hd(!0),jd(Pd,null,sc(s.draftData,(e,t)=>(Hd(),jd("div",{key:t,class:"fs_draft_item",onClick:t=>n.selectDraft(e)},[eu("h3",null,"Draft "+fe(t+1),1),eu("p",null,fe(n.getSnippet(e)),1)],8,J6))),128))],512),[[vp,s.showDraft]])],void 0),_:1})])])):ou("",!0),eu("div",e9,[s.loadingMessages?(Hd(),jd("div",t9,[tu(f,{rows:3,animated:""})])):!n.noBotAvailable||0!==s.messages.length||s.isStreaming||s.loading?!n.noBotForThisProduct||0!==s.messages.length||s.isStreaming||s.loading?0!==s.messages.length||s.isStreaming||s.loading?ou("",!0):(Hd(),jd("div",p9,[eu("div",h9,[eu("img",{loading:"lazy",src:e.appVars.asset_url+"images/fluentBotDark.svg",class:"fs_icon"},null,8,g9)]),eu("div",m9,fe(e.$t(n.title)),1),eu("div",f9,fe(e.$t(n.description)),1)])):(Hd(),jd("div",r9,[eu("div",l9,[eu("img",{loading:"lazy",src:e.appVars.asset_url+"images/fluentBotDark.svg",class:"fs_icon"},null,8,c9)]),eu("div",d9,fe(e.$t("No bot for this product")),1),eu("div",u9,fe(e.$t("No bot is mapped to this ticket's product. Pick a configured product from the dropdown above, or add a bot for this product in FluentBot settings.")),1),n.canManageBotSettings?(Hd(),qd(_,{key:0,to:{name:"fluent_bot_integration"},class:"el-button el-button--primary fs_filled_btn fs_empty_state_cta"},{default:br(()=>[su(fe(e.$t("Open FluentBot settings")),1)],void 0),_:1})):ou("",!0)])):(Hd(),jd("div",a9,[eu("div",i9,[eu("img",{loading:"lazy",src:e.appVars.asset_url+"images/fluentBotDark.svg",class:"fs_icon"},null,8,s9)]),eu("div",n9,fe(e.$t("No FluentBot configured")),1),eu("div",o9,fe(e.$t("Add a general bot or a product-specific bot in FluentBot settings before chatting.")),1),n.canManageBotSettings?(Hd(),qd(_,{key:0,to:{name:"fluent_bot_integration"},class:"el-button el-button--primary fs_filled_btn fs_empty_state_cta"},{default:br(()=>[su(fe(e.$t("Open FluentBot settings")),1)],void 0),_:1})):ou("",!0)])),s.messages.length>0||s.isStreaming||s.loading?(Hd(),jd("div",_9,[s.nextCursor?(Hd(),jd("div",b9,[tu(l,{text:"",size:"small",disabled:s.loadingMessages,onClick:t[2]||(t[2]=e=>n.fetchChatMessages(s.nextCursor))},{default:br(()=>[su(fe(e.$t("Load older messages")),1)],void 0),_:1},8,["disabled"])])):ou("",!0),(Hd(!0),jd(Pd,null,sc(s.messages,(a,i)=>(Hd(),jd(Pd,{key:a.message_id||`local-${i}`},[eu("div",{class:ne(["fs_chat_row","fs_chat_row_"+a.role])},[eu("div",{class:ne(["fs_chat_bubble","fs_chat_"+a.role])},["user"===a.role?(Hd(),jd("div",v9,fe(a.content),1)):(Hd(),jd(Pd,{key:1},[eu("div",{class:"fs_chat_bubble_content fs_response_text",innerHTML:a.htmlContent},null,8,y9),a.sources&&a.sources.length?(Hd(),jd("div",S9,[eu("ul",null,[(Hd(!0),jd(Pd,null,sc(a.sources,(e,t)=>(Hd(),jd("li",{key:e.url||e.source||t},[eu("a",{href:n.sanitizeUrl(e.url||e.source),target:"_blank",rel:"noopener noreferrer"},fe(e.title),9,x9)]))),128))])])):ou("",!0)],64))],2)],2),"ai"===a.role?(Hd(),jd("div",w9,[!a.message_id||a.feedback&&"positive"!==a.feedback.reaction?ou("",!0):(Hd(),jd("button",{key:0,class:ne(["fs_feedback_btn",{fs_feedback_active:a.feedback&&"positive"===a.feedback.reaction}]),"aria-pressed":a.feedback&&"positive"===a.feedback.reaction,"aria-label":e.$t("Helpful"),onClick:e=>n.handleFeedback(i,"positive")},[...t[19]||(t[19]=[eu("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[eu("path",{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3H14zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"})],-1)])],10,E9)),!a.message_id||a.feedback&&"negative"!==a.feedback.reaction?ou("",!0):(Hd(),jd("button",{key:1,class:ne(["fs_feedback_btn",{"fs_feedback_active fs_feedback_negative":a.feedback&&"negative"===a.feedback.reaction}]),"aria-pressed":a.feedback&&"negative"===a.feedback.reaction,"aria-label":e.$t("Not helpful"),onClick:e=>n.handleFeedback(i,"negative")},[...t[20]||(t[20]=[eu("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[eu("path",{d:"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3H10zM17 2h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"})],-1)])],10,C9)),eu("button",{class:"fs_feedback_btn",onClick:e=>n.copyMessageText(a.content),"aria-label":e.$t("Copy"),title:e.$t("Copy")},[...t[21]||(t[21]=[eu("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[eu("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),eu("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})],-1)])],8,k9),eu("button",{class:"fs_feedback_btn fs_insert_btn",onClick:e=>n.insertReply(a.content),title:e.$t("Insert to editor")},[t[22]||(t[22]=eu("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[eu("path",{d:"M12 5v14M5 12l7 7 7-7"})],-1)),eu("span",null,fe(e.$t("Insert")),1)],8,T9)])):ou("",!0)],64))),128)),s.isStreaming?(Hd(),jd("div",A9,[eu("div",{class:"fs_chat_bubble_content fs_response_text",innerHTML:n.formattedResponse},null,8,R9),0===s.typingQueue.length?(Hd(),jd("div",O9,[eu("span",null,fe(e.$t("Generating")),1),t[23]||(t[23]=eu("span",{class:"fs_typing_dots"},"●●●",-1))])):ou("",!0)])):ou("",!0),!s.loading||s.isStreaming||s.aiResponse?ou("",!0):(Hd(),jd("div",N9,[tu(f,{rows:2,animated:""})])),s.errorMessage?(Hd(),jd("div",I9,fe(s.errorMessage),1)):ou("",!0)])):ou("",!0)],512),eu("div",D9,[eu("div",M9,[(Hd(!0),jd(Pd,null,sc(s.presetPrompts,e=>(Hd(),qd(b,{key:e.text,content:e.description,placement:"top",effect:"dark","popper-class":"fs_tooltip fs_preset_tooltip"},{default:br(()=>[eu("div",{class:ne(["fs_preset_chip",{fs_preset_chip_selected:e===s.selectedPrompt,disabled:s.isStreaming||n.composerDisabled}]),role:"button",tabindex:s.isStreaming||n.composerDisabled?-1:0,"aria-disabled":s.isStreaming||n.composerDisabled,onClick:t=>!s.isStreaming&&!n.composerDisabled&&n.selectPresetPrompt(e),onKeydown:[Rh(Th(t=>!s.isStreaming&&!n.composerDisabled&&n.selectPresetPrompt(e),["prevent"]),["enter"]),Rh(Th(t=>!s.isStreaming&&!n.composerDisabled&&n.selectPresetPrompt(e),["prevent"]),["space"])]},fe(e.label),43,L9)],void 0),_:2},1032,["content"]))),128))]),eu("div",P9,[vr(eu("textarea",{ref:"promptTextarea","onUpdate:modelValue":t[3]||(t[3]=e=>s.prompt=e),rows:"2",placeholder:n.composerPlaceholder,class:"fs_textarea",required:"",disabled:s.isStreaming||n.composerDisabled,onInput:t[4]||(t[4]=(...e)=>n.autoResizeTextarea&&n.autoResizeTextarea(...e)),onKeydown:t[5]||(t[5]=Rh(Th((...e)=>n.sendMessage&&n.sendMessage(...e),["exact","prevent"]),["enter"]))},null,40,F9),[[gh,s.prompt]]),eu("div",$9,[eu("div",B9,[tu(b,{content:s.includeTicketContent?e.$t("Ticket content included"):e.$t("Ticket content excluded"),placement:"top",effect:"dark","popper-class":"fs_tooltip"},{default:br(()=>[eu("button",{type:"button",class:ne(["fs_toolbar_btn",{fs_toolbar_btn_off:!s.includeTicketContent}]),onClick:t[6]||(t[6]=e=>s.includeTicketContent=!s.includeTicketContent)},[s.includeTicketContent?(Hd(),jd("svg",V9,[...t[24]||(t[24]=[eu("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"},null,-1),eu("circle",{cx:"12",cy:"12",r:"3"},null,-1)])])):(Hd(),jd("svg",U9,[...t[25]||(t[25]=[eu("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"},null,-1),eu("line",{x1:"1",y1:"1",x2:"23",y2:"23"},null,-1)])])),eu("span",null,fe(e.$t("Ticket Content")),1)],2)],void 0),_:1},8,["content"]),tu(b,{content:s.webSearch?e.$t("Web search enabled"):e.$t("Web search disabled"),placement:"top",effect:"dark","popper-class":"fs_tooltip"},{default:br(()=>[eu("button",{type:"button",class:ne(["fs_toolbar_btn",{fs_toolbar_btn_off:!s.webSearch}]),onClick:t[7]||(t[7]=e=>s.webSearch=!s.webSearch)},[(Hd(),jd("svg",H9,[t[26]||(t[26]=eu("circle",{cx:"11",cy:"11",r:"8"},null,-1)),t[27]||(t[27]=eu("path",{d:"M11 3a13 13 0 0 0 0 16M11 3a13 13 0 0 1 0 16M3 11h16"},null,-1)),s.webSearch?ou("",!0):(Hd(),jd("line",z9))])),eu("span",null,fe(e.$t("Web Search")),1)],2)],void 0),_:1},8,["content"]),tu(v,{placement:"top",width:240,trigger:"click","popper-class":"fs_temp_popover"},{reference:br(()=>[eu("button",{type:"button",class:"fs_toolbar_btn","aria-label":e.$t("Temperature")},[t[28]||(t[28]=eu("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[eu("path",{d:"M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"})],-1)),eu("span",null,fe(s.temperature.toFixed(1)),1)],8,Y9)]),default:br(()=>[eu("div",G9,[eu("div",W9,[eu("span",null,fe(e.$t("Temperature")),1),eu("span",j9,fe(s.temperature.toFixed(1)),1)]),vr(eu("input",{type:"range",class:"fs_temp_range",min:0,max:2,step:.1,"onUpdate:modelValue":t[8]||(t[8]=e=>s.temperature=e),style:ee({"--fs-temp-pct":s.temperature/2*100+"%"}),"aria-label":e.$t("Temperature")},null,12,q9),[[gh,s.temperature,void 0,{number:!0}]]),eu("div",K9,[eu("span",null,fe(e.$t("Precise (0)")),1),eu("span",null,fe(e.$t("Creative (2)")),1)]),eu("p",X9,fe(e.$t("Higher = more varied answers. Saved in this browser.")),1)])],void 0),_:1}),eu("div",Q9,[tu(b,{content:n.contextPickerTooltip,placement:"top",effect:"dark","popper-class":"fs_tooltip"},{default:br(()=>[eu("button",{type:"button",class:ne(["fs_toolbar_btn",{fs_toolbar_btn_off:0===s.ticketConversations.length}]),disabled:0===s.ticketConversations.length,"aria-label":n.contextPickerTooltip,onClick:t[9]||(t[9]=e=>s.ticketConversations.length>0&&(s.showContextPicker=!s.showContextPicker))},[t[29]||(t[29]=eu("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[eu("path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v5Z"}),eu("path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"})],-1)),eu("span",null,fe(s.selectedContextIds.length)+"/"+fe(s.ticketConversations.length),1)],10,Z9)],void 0),_:1},8,["content"]),s.showContextPicker?(Hd(),jd("div",J9,[eu("div",e7,[vr(eu("input",{ref:"contextSearchInput","onUpdate:modelValue":t[10]||(t[10]=e=>s.contextSearchQuery=e),placeholder:e.$t("Search responses..."),type:"text"},null,8,t7),[[gh,s.contextSearchQuery]])]),eu("div",a7,[(Hd(!0),jd(Pd,null,sc(n.filteredContextConversations,e=>(Hd(),jd("div",{key:e.id,class:"fs_context_item"},[tu(y,{"model-value":s.selectedContextIds.includes(e.id),onChange:t=>n.toggleContext(e.id),size:"small"},null,8,["model-value","onChange"]),tu(b,{content:n.decodeHtml(e.preview),placement:"top",effect:"dark","popper-class":"fs_tooltip fs_context_tooltip","show-after":500,disabled:!e.preview||e.preview.length<25},{default:br(()=>[eu("div",{class:"fs_context_label",role:"button",tabindex:"0",onClick:t=>n.toggleContext(e.id),onKeydown:[Rh(Th(t=>n.toggleContext(e.id),["prevent"]),["enter"]),Rh(Th(t=>n.toggleContext(e.id),["prevent"]),["space"])]},[eu("span",{class:ne(["fs_context_role","fs_role_"+e.role])},fe("customer"===e.role?"Customer":e.name||"Agent"),3),eu("span",s7,fe(e.preview),1)],40,i7)],void 0),_:2},1032,["content","disabled"])]))),128))]),eu("div",n7,[tu(l,{size:"small",text:"",onClick:t[11]||(t[11]=e=>s.selectedContextIds=s.ticketConversations.map(e=>e.id))},{default:br(()=>[su(fe(e.$t("All")),1)],void 0),_:1}),tu(l,{size:"small",text:"",onClick:t[12]||(t[12]=e=>s.selectedContextIds=[])},{default:br(()=>[su(fe(e.$t("None")),1)],void 0),_:1})])])):ou("",!0)])]),eu("button",{type:"button",class:"fs_toolbar_send",onClick:t[13]||(t[13]=e=>n.generateResponse(s.prompt)),disabled:s.isStreaming||s.loadingMessages||n.composerDisabled,"aria-label":e.$t("Send message")},[eu("img",{src:e.appVars.asset_url+"images/aiPromptSubmitButton.svg",alt:""},null,8,r7)],8,o7)])])]),tu(S,{modelValue:s.botSwitchDialogVisible,"onUpdate:modelValue":t[14]||(t[14]=e=>s.botSwitchDialogVisible=e),title:e.$t("Switch Knowledge Base"),width:"400px","close-on-click-modal":!1,"append-to-body":"",class:"fs_dialog",onClose:n.cancelProductSwitch},{footer:br(()=>[eu("div",l7,[tu(l,{onClick:n.cancelProductSwitch},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),tu(l,{onClick:n.forkConversation},{default:br(()=>[su(fe(e.$t("Keep Messages")),1)],void 0),_:1},8,["onClick"]),tu(l,{class:"fs_filled_btn",onClick:n.newConversation},{default:br(()=>[su(fe(e.$t("Start Fresh")),1)],void 0),_:1},8,["onClick"])])]),default:br(()=>[eu("p",null,fe(e.$t("Switching products changes the knowledge base used for responses. What would you like to do with the current conversation?")),1)],void 0),_:1},8,["modelValue","title","onClose"]),tu(S,{modelValue:s.pastDialogVisible,"onUpdate:modelValue":t[15]||(t[15]=e=>s.pastDialogVisible=e),title:e.$t("Past conversations"),width:"400px","append-to-body":"",class:"fs_dialog fs_past_conversations_dialog"},{default:br(()=>[s.loadingPast?(Hd(),jd("div",c7,[tu(f,{rows:3,animated:""})])):0===s.pastConversations.length?(Hd(),jd("div",d7,fe(e.$t("No past conversations yet.")),1)):(Hd(),jd("ul",u7,[(Hd(!0),jd(Pd,null,sc(s.pastConversations,t=>(Hd(),jd("li",{key:t.chat_id,class:ne(["fs_past_item",{fs_past_item_active:t.chat_id===s.activeChatId}]),role:"button",tabindex:"0",onClick:e=>n.switchToConversation(t),onKeydown:Rh(Th(e=>n.switchToConversation(t),["prevent"]),["enter"])},[eu("span",h7,fe(t.title),1),eu("span",g7,[t.chat_id===s.activeChatId?(Hd(),jd("span",m7,fe(e.$t("Active")),1)):ou("",!0),su(" "+fe(n.formatPastDate(t.created_at)),1)])],42,p7))),128))]))],void 0),_:1},8,["modelValue","title"]),tu(S,{modelValue:s.feedbackDialogVisible,"onUpdate:modelValue":t[18]||(t[18]=e=>s.feedbackDialogVisible=e),title:e.$t("We're sorry — can you tell us what went wrong?"),width:"360px","close-on-click-modal":!1,"append-to-body":"",class:"fs_dialog",onClose:n.cancelFeedback},{footer:br(()=>[eu("div",_7,[tu(l,{onClick:n.cancelFeedback},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),tu(l,{class:"fs_filled_btn",onClick:t[17]||(t[17]=e=>n.submitNegativeFeedback(s.feedbackComment))},{default:br(()=>[su(fe(e.$t("Submit")),1)],void 0),_:1})])]),default:br(()=>[vr(eu("textarea",{ref:"feedbackTextarea","onUpdate:modelValue":t[16]||(t[16]=e=>s.feedbackComment=e),placeholder:e.$t("Optional: tell us what was wrong..."),class:"fs_feedback_textarea",rows:"3"},null,8,f7),[[gh,s.feedbackComment]])],void 0),_:1},8,["modelValue","title","onClose"])])}]]),v7={name:"FluentBookingSlotEditor",props:{day:{type:Object,required:!0},visible:{type:Boolean,default:!1},selectedSlotIds:{type:Array,default:()=>[]}},emits:["apply","close"],data:()=>({draftSlotIds:[]}),watch:{visible(e){e&&(this.draftSlotIds=[...this.selectedSlotIds])}},methods:{selectAll(){this.draftSlotIds=this.day.slots.map(e=>e.id)},clearAll(){this.draftSlotIds=[]},toggle(e){this.draftSlotIds.includes(e.id)?this.draftSlotIds=this.draftSlotIds.filter(t=>t!==e.id):this.draftSlotIds.push(e.id)},apply(){this.$emit("apply",this.day.slots.filter(e=>this.draftSlotIds.includes(e.id)))}}},y7={class:"fs_fluent_booking_slot_editor_body"},S7={class:"fs_fluent_booking_slot_editor_header"},x7={class:"fs_fluent_booking_slot_editor_links"},w7={class:"fs_fluent_booking_slot_checks"},E7={class:"fs_fluent_booking_slot_editor_footer"};const C7={key:0,ref:"bookingBox",class:"fs_fluent_booking_box"},k7={class:"fs_fluent_booking_tooltip_target"},T7={ref:"popoverContent",class:"fs_fluent_booking_inserter"},A7={class:"fs_fluent_booking_header"},R7={key:0,class:"fs_fluent_booking_specific_dates"},O7={class:"fs_fluent_booking_specific_dates_meta"},N7={class:"fs_fluent_booking_availability"},I7={class:"fs_fluent_booking_preview_head"},D7={class:"fs_fluent_booking_preview_title"},M7={key:0,class:"fs_fluent_booking_timezone"},L7={key:1,class:"fs_fluent_booking_skeleton"},P7={class:"fs_fluent_booking_day_head"},F7={class:"fs_fluent_booking_day_actions"},$7={class:"fs_action_button_wrapper fs_fluent_booking_action_wrapper"},B7={class:"fs_action_button_wrapper fs_fluent_booking_action_wrapper"},V7={class:"fs_fluent_booking_slots"},U7={key:3,class:"fs_fluent_booking_no_slots"},H7={class:"fs_fluent_booking_actions"},z7={key:1,class:"fs_fluent_booking_empty"},Y7=["href"];const G7={name:"wp_editor",components:{TemplateInserter:pX,AIResponseGenerator:TJ,FluentBookingInserter:dH({name:"FluentBookingInserter",components:{IconPack:$z,FluentBookingSlotEditor:dH(v7,[["render",function(e,t,a,i,s,n){const o=vk,r=wR,l=$B;return Hd(),qd(l,{placement:"bottom-end",width:260,trigger:"click",visible:a.visible,"popper-class":"fs_fluent_booking_slot_editor"},{reference:br(()=>[oc(e.$slots,"reference")]),default:br(()=>[eu("div",y7,[eu("div",S7,[eu("strong",null,fe(e.$t("Available times")),1),eu("span",null,fe(s.draftSlotIds.length)+" "+fe(e.$t("selected")),1)]),eu("div",x7,[tu(o,{class:"fs_outline_btn",text:"",onClick:n.selectAll},{default:br(()=>[su(fe(e.$t("Select all")),1)],void 0),_:1},8,["onClick"]),tu(o,{class:"fs_outline_btn",text:"",onClick:n.clearAll},{default:br(()=>[su(fe(e.$t("Clear")),1)],void 0),_:1},8,["onClick"])]),eu("div",w7,[(Hd(!0),jd(Pd,null,sc(a.day.slots,e=>(Hd(),qd(r,{key:e.id,"model-value":s.draftSlotIds.includes(e.id),class:ne(["fs_fluent_booking_slot_check",{"is-active":s.draftSlotIds.includes(e.id)}]),onChange:t=>n.toggle(e)},{default:br(()=>[eu("span",null,fe(e.time_label),1)],void 0),_:2},1032,["model-value","class","onChange"]))),128))]),eu("div",E7,[tu(o,{class:"fs_outline_btn",onClick:t[0]||(t[0]=t=>e.$emit("close"))},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),tu(o,{class:"fs_filled_btn",onClick:n.apply},{default:br(()=>[su(fe(e.$t("Done")),1)],void 0),_:1},8,["onClick"])])])],void 0),_:3},8,["visible"])}]])},props:{ticketId:{type:[String,Number],required:!0}},emits:["insert"],data(){var e;return{visible:!1,loading:!1,creating:!1,copying:!1,availabilityLoading:!1,availabilityRequestKey:0,specificDateAvailabilityLoading:!1,specificDateAvailabilityRequestKey:0,eventTypes:[],selectedEventId:"",availabilityRange:"next_3_days",availabilityTimezone:"",availabilityMaxLookupDate:"",availabilityDays:[],selectedSlots:[],editingDayDate:"",specificDates:[],specificDatePanelMonth:this.$dayjs().format("YYYY-MM"),specificDateAvailabilityDays:[],message:"",serverEmptyMessage:"",adminUrl:(null==(e=this.appVars.fluent_booking)?void 0:e.admin_url)||""}},computed:{isSpecificDatesRange(){return"specific_dates"===this.availabilityRange},availabilityRanges(){return[{label:this.$t("Next 3 days"),value:"next_3_days"},{label:this.$t("This week"),value:"this_week"},{label:this.$t("Next week"),value:"next_week"},{label:this.$t("Next 14 days"),value:"next_14_days"},{label:this.$t("Specific Dates"),value:"specific_dates"}]},emptyMessage(){return this.serverEmptyMessage||this.$t("No public FluentBooking event types found. Please enable calendar sharing or publish an event type.")},specificDatesHelperText(){return this.specificDateAvailabilityLoading?this.$t("Loading available dates..."):this.$t("Only FluentBooking available dates can be selected")},availabilityEmptyMessage(){return this.isSpecificDatesRange&&!this.specificDates.length?this.$t("Select up to 7 dates to preview availability."):this.isSpecificDatesRange?this.$t("No available times found for the selected dates."):this.$t("No available times found for this range.")}},methods:{togglePopover(){this.visible?this.closePopover():(this.visible=!0,this.eventTypes.length?this.fetchAvailability():this.fetchEventTypes())},closePopover(){this.visible=!1,this.closeSlotEditor()},handleOutsideClick(e){var t;if(!this.visible)return;const a=e.target,i=this.$refs.bookingBox,s=this.$refs.popoverContent;(null==i?void 0:i.contains(a))||(null==s?void 0:s.contains(a))||(null==(t=a.closest)?void 0:t.call(a,".fs_fluent_booking_popover, .fs_fluent_booking_slot_editor, .fs_fluent_booking_specific_dates_panel, .el-select__popper, .fs_tooltip"))||this.closePopover()},fetchEventTypes(){this.loading=!0,this.$get("tickets/fluent-booking/event-types").then(e=>{var t,a;this.eventTypes=e.event_types||[],this.adminUrl=(null==(t=e.status)?void 0:t.admin_url)||this.adminUrl,this.eventTypes.length?this.selectedEventId||(this.selectedEventId=this.eventTypes[0].id,this.handleEventChanged()):this.serverEmptyMessage=(null==(a=e.status)?void 0:a.message)||""}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},handleEventChanged(){this.selectedSlots=[],this.refreshSpecificDatesState(),this.fetchAvailability()},handleAvailabilityRangeChange(){this.refreshSpecificDatesState(),this.fetchAvailability()},fetchAvailability(){const e=++this.availabilityRequestKey;if(!this.selectedEventId)return void this.clearAvailabilityPreview();if(this.isSpecificDatesRange&&!this.specificDates.length)return void this.clearAvailabilityPreview();this.availabilityLoading=!0;const t={event_type_id:this.selectedEventId,range:this.availabilityRange};this.isSpecificDatesRange&&(t.selected_dates=this.specificDates),this.$get(`tickets/${this.ticketId}/fluent-booking/availability`,t).then(t=>{if(e!==this.availabilityRequestKey)return;const a=t.availability||{};this.availabilityTimezone=a.timezone||"",this.availabilityMaxLookupDate=a.max_lookup_date||"",this.availabilityDays=a.days||[],this.selectVisibleSlots(),this.syncSelectedSlots()}).catch(t=>{e===this.availabilityRequestKey&&(this.clearAvailabilityPreview(),this.$handleError(t))}).always(()=>{e===this.availabilityRequestKey&&(this.availabilityLoading=!1)})},clearAvailabilityPreview(){this.availabilityTimezone="",this.availabilityDays=[],this.selectedSlots=[],this.availabilityLoading=!1},refreshSpecificDatesState(){this.isSpecificDatesRange&&(this.specificDates.length&&(this.specificDatePanelMonth=this.$dayjs(this.specificDates[0]).format("YYYY-MM")),this.fetchSpecificDateAvailability())},fetchSpecificDateAvailability(){const e=++this.specificDateAvailabilityRequestKey;if(!this.selectedEventId||!this.isSpecificDatesRange)return this.specificDateAvailabilityDays=[],void(this.specificDateAvailabilityLoading=!1);this.specificDateAvailabilityLoading=!0,this.$get(`tickets/${this.ticketId}/fluent-booking/availability`,{event_type_id:this.selectedEventId,range:this.availabilityRange,calendar_month:this.specificDatePanelMonth}).then(t=>{if(e!==this.specificDateAvailabilityRequestKey)return;const a=t.availability||{};this.availabilityMaxLookupDate=a.max_lookup_date||"",this.specificDateAvailabilityDays=a.days||[],this.syncSpecificDatesWithAvailability()}).catch(t=>{e===this.specificDateAvailabilityRequestKey&&(this.specificDateAvailabilityDays=[],this.$handleError(t))}).always(()=>{e===this.specificDateAvailabilityRequestKey&&(this.specificDateAvailabilityLoading=!1)})},syncSpecificDatesWithAvailability(){const e=new Set(this.specificDateAvailabilityDays.map(e=>e.date)),t=this.specificDates.filter(t=>this.$dayjs(t).format("YYYY-MM")!==this.specificDatePanelMonth||e.has(t));t.length!==this.specificDates.length&&(this.specificDates=t,this.specificDates.length?this.fetchAvailability():this.clearAvailabilityPreview())},handleSpecificDatesChanged(e){let t=Array.isArray(e)?[...new Set(e)].sort():[];t.length>7&&(t=t.slice(0,7),this.$notify({type:"warning",title:this.$t("Limit reached"),message:this.$t("You can select up to 7 dates."),position:"bottom-right"})),this.specificDates=t,this.fetchAvailability()},handleSpecificDatePickerVisibleChange(e){e&&this.fetchSpecificDateAvailability()},handleSpecificDatePanelChange(e){const t=Array.isArray(e)?e[0]:e,a=this.$dayjs(t).format("YYYY-MM");a&&"Invalid Date"!==a&&a!==this.specificDatePanelMonth&&(this.specificDatePanelMonth=a,this.fetchSpecificDateAvailability())},isSpecificDateDisabled(e){const t=this.$dayjs(e).startOf("day");if(!t.isValid()||t.isBefore(this.$dayjs().startOf("day")))return!0;if(this.availabilityMaxLookupDate){const e=this.$dayjs(this.availabilityMaxLookupDate).endOf("day");if(e.isValid()&&t.isAfter(e))return!0}return t.format("YYYY-MM")!==this.specificDatePanelMonth||(!!this.specificDateAvailabilityLoading||!this.specificDateAvailabilityDays.some(e=>e.date===t.format("YYYY-MM-DD")))},syncSelectedSlots(){this.selectedSlots=this.selectedSlots.filter(e=>this.availabilityDays.some(t=>t.slots.some(t=>t.id===e.id)))},selectVisibleSlots(){this.selectedSlots=[],this.availabilityDays.forEach(e=>{this.selectedSlots.push(...this.getDefaultDaySlots(e))})},getDefaultDaySlots:e=>e.slots.slice(0,5),getVisibleDaySlots(e){return e.slots.filter(e=>this.isSlotSelected(e))},getSlotPreviewLabel:e=>e.time_label,getSelectedSlotIdsForDay(e){return e.slots.filter(e=>this.isSlotSelected(e)).map(e=>e.id)},openSlotEditor(e){this.editingDayDate=e.date},closeSlotEditor(){this.editingDayDate=""},onSlotEditorApply(e,t){const a=e.slots.map(e=>e.id);this.selectedSlots=[...this.selectedSlots.filter(e=>!a.includes(e.id)),...t],this.closeSlotEditor()},deleteAvailabilityDay(e){if(this.availabilityDays.length<=1)return;const t=e.slots.map(e=>e.id);this.availabilityDays=this.availabilityDays.filter(t=>t.date!==e.date),this.selectedSlots=this.selectedSlots.filter(e=>!t.includes(e.id)),this.editingDayDate===e.date&&this.closeSlotEditor()},isSlotSelected(e){return this.selectedSlots.some(t=>t.id===e.id)},async copyAvailability(){if(this.selectedSlots.length){this.copying=!0;try{const e=await this.createTokenizedBookingLink(),t=e.html||"",a=e.plain_text||"";window.ClipboardItem?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([t],{type:"text/html"}),"text/plain":new Blob([a],{type:"text/plain"})})]):await navigator.clipboard.writeText(a),this.$notify({type:"success",title:this.$t("Success"),message:this.$t("Copied to clipboard"),position:"bottom-right"})}catch(e){this.$notify({type:"error",title:this.$t("Error"),message:this.$t("Could not copy to clipboard"),position:"bottom-right"})}finally{this.copying=!1}}},createTokenizedBookingLink(){return this.$post(`tickets/${this.ticketId}/fluent-booking/booking-link`,{event_type_id:this.selectedEventId,message:this.message,timezone:this.availabilityTimezone,selected_slots:this.selectedSlots.map(e=>({start:e.start}))})},insertBookingLink(){this.selectedEventId&&(this.creating=!0,this.createTokenizedBookingLink().then(e=>{this.$emit("insert",e.html),this.closePopover()}).catch(e=>{this.$handleError(e)}).always(()=>{this.creating=!1}))},getEventLabel(e){const t=[e.title];return e.calendar_title&&t.push(e.calendar_title),e.duration&&t.push(`${e.duration} ${this.$t("min")}`),t.join(" • ")}},mounted(){document.addEventListener("mousedown",this.handleOutsideClick,!0)},beforeUnmount(){document.removeEventListener("mousedown",this.handleOutsideClick,!0)}},[["render",function(e,t,a,i,s,n){const o=Zl("IconPack"),r=KE,l=vk,c=bA,d=_A,u=sE,p=KI,h=Zl("fluent-booking-slot-editor"),g=oC,m=iE,f=$B,_=q$;return e.appVars.fluent_booking&&e.appVars.fluent_booking.active?(Hd(),jd("div",C7,[tu(f,{placement:"bottom-end",width:560,trigger:"click",visible:s.visible,"popper-class":"fs_popover fs_fluent_booking_popover"},{reference:br(()=>[tu(l,{size:"small",class:"fs_fluent_booking_toolbar_button","aria-label":e.$t("Call a Meeting"),onClick:n.togglePopover},{default:br(()=>[tu(r,{effect:"dark",content:e.$t("Call a Meeting"),placement:"top",trigger:"hover","popper-class":"fs_tooltip",disabled:s.visible},{default:br(()=>[eu("span",k7,[tu(o,{"icon-key":"call_meeting",width:24,height:24})])],void 0),_:1},8,["content","disabled"])],void 0),_:1},8,["aria-label","onClick"])]),default:br(()=>[vr((Hd(),jd("div",T7,[eu("div",A7,[eu("h4",null,fe(e.$t("Call a Meeting")),1),eu("p",null,fe(e.$t("Choose a meeting type, review available times, then insert selected booking links into your reply.")),1)]),s.eventTypes.length?(Hd(),qd(m,{key:0,"label-position":"top"},{default:br(()=>[tu(u,{label:e.$t("Meeting Type")},{default:br(()=>[tu(d,{modelValue:s.selectedEventId,"onUpdate:modelValue":t[0]||(t[0]=e=>s.selectedEventId=e),class:"fs_select_field",filterable:"",placeholder:e.$t("Select Meeting Type"),onChange:n.handleEventChanged},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.eventTypes,e=>(Hd(),qd(c,{key:e.id,value:e.id,label:n.getEventLabel(e)},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder","onChange"])],void 0),_:1},8,["label"]),tu(u,{label:e.$t("Offer Availability")},{default:br(()=>[tu(d,{modelValue:s.availabilityRange,"onUpdate:modelValue":t[1]||(t[1]=e=>s.availabilityRange=e),class:"fs_select_field",onChange:n.handleAvailabilityRangeChange},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(n.availabilityRanges,e=>(Hd(),qd(c,{key:e.value,value:e.value,label:e.label},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","onChange"]),n.isSpecificDatesRange?(Hd(),jd("div",R7,[tu(p,{ref:"specificDatesPicker",modelValue:s.specificDates,"onUpdate:modelValue":t[2]||(t[2]=e=>s.specificDates=e),type:"dates","value-format":"YYYY-MM-DD",class:"fs_text_input fs_fluent_booking_specific_dates_picker","popper-class":"fs_fluent_booking_specific_dates_panel",placeholder:e.$t("Select up to 7 dates"),editable:!1,clearable:!1,disabled:!s.selectedEventId,"disabled-date":n.isSpecificDateDisabled,onChange:n.handleSpecificDatesChanged,onVisibleChange:n.handleSpecificDatePickerVisibleChange,onPanelChange:n.handleSpecificDatePanelChange},null,8,["modelValue","placeholder","disabled","disabled-date","onChange","onVisibleChange","onPanelChange"]),eu("div",O7,[eu("span",null,fe(n.specificDatesHelperText),1),eu("strong",null,fe(s.specificDates.length)+"/7",1)])])):ou("",!0)],void 0),_:1},8,["label"]),eu("div",N7,[eu("div",I7,[eu("div",D7,[eu("strong",null,fe(e.$t("Preview")),1),tu(r,{effect:"dark",content:e.$t("Available times are based off a sample of this event type’s upcoming availability. You can further customize times offered below"),placement:"top","popper-class":"fs_tooltip fs_fluent_booking_preview_tooltip"},{default:br(()=>[tu(l,{text:"",class:"fs_fluent_booking_preview_info","aria-label":e.$t("Preview help")},{default:br(()=>[...t[4]||(t[4]=[su("i",-1)])],void 0),_:1},8,["aria-label"])],void 0),_:1},8,["content"])]),eu("span",null,fe(s.selectedSlots.length)+" "+fe(e.$t("selected")),1)]),s.availabilityTimezone?(Hd(),jd("div",M7,[su(fe(e.$t("Displayed time zone"))+": ",1),eu("strong",null,fe(s.availabilityTimezone),1)])):ou("",!0),s.availabilityLoading?(Hd(),jd("div",L7,[(Hd(),jd(Pd,null,sc(3,e=>eu("div",{key:e,class:"fs_fluent_booking_skeleton_day"},[t[5]||(t[5]=eu("span",null,null,-1)),eu("div",null,[(Hd(),jd(Pd,null,sc(5,e=>eu("i",{key:e})),64))])])),64))])):s.availabilityDays.length?(Hd(!0),jd(Pd,{key:2},sc(s.availabilityDays,t=>(Hd(),jd("div",{key:t.date,class:"fs_fluent_booking_day"},[eu("div",P7,[eu("h5",null,fe(t.label),1),eu("div",F7,[tu(h,{day:t,visible:s.editingDayDate===t.date,"selected-slot-ids":n.getSelectedSlotIdsForDay(t),onApply:e=>n.onSlotEditorApply(t,e),onClose:n.closeSlotEditor},{reference:br(()=>[eu("span",$7,[tu(l,{class:"fs_action_button fs_fluent_booking_day_action",onClick:e=>n.openSlotEditor(t),text:"",icon:"EditPen"},null,8,["onClick"])])]),_:2},1032,["day","visible","selected-slot-ids","onApply","onClose"]),eu("span",B7,[tu(l,{text:"",class:"fs_action_button fs_fluent_booking_day_delete","aria-label":e.$t("Delete row"),disabled:s.availabilityDays.length<=1,onClick:e=>n.deleteAvailabilityDay(t)},{default:br(()=>[tu(o,{"icon-key":"delete",width:16,height:16})],void 0),_:1},8,["aria-label","disabled","onClick"])])])]),eu("div",V7,[(Hd(!0),jd(Pd,null,sc(n.getVisibleDaySlots(t),e=>(Hd(),qd(l,{key:e.id,class:ne(["fs_fluent_booking_slot",{"is-selected":n.isSlotSelected(e)}]),onClick:e=>n.openSlotEditor(t)},{default:br(()=>[su(fe(n.getSlotPreviewLabel(e)),1)],void 0),_:2},1032,["class","onClick"]))),128))])]))),128)):s.availabilityLoading?ou("",!0):(Hd(),jd("div",U7,fe(n.availabilityEmptyMessage),1))]),tu(u,{label:e.$t("Message")},{default:br(()=>[tu(g,{modelValue:s.message,"onUpdate:modelValue":t[3]||(t[3]=e=>s.message=e),type:"textarea",rows:2,placeholder:e.$t("Add a message to include with the booking link (optional)")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),eu("div",H7,[tu(l,{class:"fs_outline_btn",onClick:n.closePopover},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),vr((Hd(),qd(l,{class:"fs_outline_btn",disabled:!s.selectedEventId||!s.selectedSlots.length||s.copying,onClick:n.copyAvailability},{default:br(()=>[su(fe(e.$t("Copy to Clipboard")),1)],void 0),_:1},8,["disabled","onClick"])),[[_,s.copying]]),vr((Hd(),qd(l,{class:"fs_filled_btn",type:"primary",disabled:!s.selectedEventId||s.creating,onClick:n.insertBookingLink},{default:br(()=>[su(fe(s.selectedSlots.length?e.$t("Insert with Times"):e.$t("Insert Booking Link")),1)],void 0),_:1},8,["disabled","onClick"])),[[_,s.creating]])])],void 0),_:1})):s.loading?ou("",!0):(Hd(),jd("div",z7,[eu("p",null,fe(n.emptyMessage),1),s.adminUrl?(Hd(),jd("a",{key:0,href:s.adminUrl,target:"_blank",rel:"noopener"},fe(e.$t("Open FluentBooking")),9,Y7)):ou("",!0)]))])),[[_,s.loading]])],void 0),_:1},8,["visible"])],512)):ou("",!0)}]]),FluentBotAIResponseGenerator:b7,ImagePasteUploader:KK},props:{editor_id:{type:String,default:()=>"wp_editor_"+Date.now()+parseInt(1e3*Math.random())},modelValue:{type:String,default:()=>""},editor_shortcodes:{type:Object,default:()=>({})},height:{type:Number,default:()=>250},mediaButtons:{type:Boolean,default:()=>!0},autofocus:{type:Boolean,default:()=>!1},showCcToggleButton:{type:Boolean,default:()=>!1},add_cc:{type:Boolean,default:()=>!1},showShortcodes:{type:Boolean,default:()=>!1},openAIIntegration:{type:Boolean,default:()=>!1},fluentBotIntegration:{type:Boolean,default:()=>!1},showSavedReplies:{type:Boolean,default:()=>!1},ticketId:{type:[String,Number],default:()=>""},showFluentBooking:{type:Boolean,default:()=>!1},productID:{type:[String,Number],default:()=>""},is_agent:{type:[Boolean,String],default:()=>!1},is_direct_paste:{type:Boolean,default:()=>!1}},emits:["update:modelValue","toggleCcOption","toggleFluentBot"],data(){var e,t,a,i,s;return{showButtonDesigner:!1,hasWpEditor:!!(null==(e=window.wp)?void 0:e.editor)&&!!(null==(t=null==wp?void 0:wp.editor)?void 0:t.autop)||!!(null==(a=window.wp)?void 0:a.oldEditor),editor:(null==(i=window.wp)?void 0:i.oldEditor)||(null==(s=window.wp)?void 0:s.editor),plain_content:this.modelValue,cursorPos:this.modelValue?this.modelValue.length:0,app_ready:!1,buttonInitiated:!1,currentEditor:!1,showActionBar:!1,actionBarStyle:{},showChatGPTPromptBox:!1,showAIResponseBox:!1,showFluentBotAIResponseBox:!1,selectedText:"",editorData:{},loadingImage:!1,showMentionSuggestions:!1,mentionQuery:"",activeMentionIndex:0,mentionSearchResults:[],mentionSearchLoading:!1,mentionSearchTimer:null,mentionSearchLastQuery:"",mentionDropdownStyle:{top:"44px",left:"12px"},isDarkMode:document.body.classList.contains("fs-dark-mode")}},computed:{fluentBotIconSrc(){return this.appVars.asset_url+"images/"+(this.isDarkMode?"fluentBotLight.svg":"fluentBotDark.svg")},shortcodes(){return this.editor_shortcodes},hasShortcodes(){return this.editor_shortcodes&&Object.keys(this.editor_shortcodes).length>0},filteredMentionAgents(){var e;if(this.ticketId)return this.mentionSearchResults.slice(0,50);const t=this.mentionQuery.toLowerCase();return((null==(e=this.appVars)?void 0:e.support_agents)||[]).filter(e=>{if(!(null==e?void 0:e.id))return!1;const a=`${e.first_name} ${e.last_name}`.toLowerCase(),i=(e.email||"").toLowerCase();return a.includes(t)||i.includes(t)}).slice(0,6)}},watch:{plain_content(){this.$emit("update:modelValue",this.plain_content)},ticketId(){this.mentionSearchResults=[],clearTimeout(this.mentionSearchTimer)}},methods:{initEditor(){if(!this.hasWpEditor)return;this.editor.remove(this.editor_id);const e=this,t=document.body.classList.contains("fs-dark-mode");this.getThemeCssValue("--fs-status-info-bg",t?"#1E3A5F":"#E1E4EA");const a=`.fs_agent_mention { display: inline-flex; align-items: center; border-radius: 6px; color: ${this.getThemeCssValue("--fs-status-info-text",t?"#93C5FD":"#1976D2")}; font-weight: 500; white-space: nowrap; } .fs_agent_mention[contenteditable="false"] { user-select: all; }`,i=function(e={}){const{titleColor:t="#0E121B",textSecondary:a="#525866",textPrimary:i="#0E121B",borderColor:s="#E1E4EA",backgroundColor:n="#FFFFFF",subtleBackground:o="#F5F7FA",radius:r="8px",focusRing:l="rgba(153, 160, 174, 0.16)"}=e;return`\n .fs_fluent_booking_suggested_times { margin: 0 0 20px; }\n .fs_fluent_booking_suggested_times__title { margin: 0 0 12px; }\n .fs_fluent_booking_suggested_times__meta { margin: 0 0 8px; color: ${a}; font-size: 13px; line-height: 18px; }\n .fs_fluent_booking_suggested_times__change { color: ${i}; font-weight: 500; text-decoration: none; }\n .fs_fluent_booking_suggested_times__change:hover,\n .fs_fluent_booking_suggested_times__change:focus { color: ${i}; text-decoration: underline; }\n .fs_fluent_booking_suggested_times__group { margin: 0 0 18px; }\n .fs_fluent_booking_suggested_times__heading { margin: 0 0 10px; color: ${t}; font-size: 16px; line-height: 24px; }\n .fs_fluent_booking_suggested_times__slots { font-size: 0; line-height: 0; }\n .fs_fluent_booking_suggested_times__slot {\n display: inline-block;\n margin: 0 8px 8px 0;\n padding: 6px 12px;\n border: 1px solid ${s};\n border-radius: ${r};\n background: transparent;\n color: ${a};\n font-size: 13px;\n line-height: 18px;\n font-weight: 500;\n letter-spacing: -0.084px;\n text-decoration: none;\n white-space: nowrap;\n }\n .fs_fluent_booking_suggested_times__slot:hover,\n .fs_fluent_booking_suggested_times__slot:focus {\n border-color: ${s};\n background: ${o};\n color: ${i};\n text-decoration: none;\n }\n .fs_fluent_booking_suggested_times__slot:focus {\n box-shadow: 0 0 0 2px ${n}, 0 0 0 4px ${l};\n }\n `}({titleColor:this.getThemeCssValue("--fs-text-primary",t?"#E5E7EB":"#0E121B"),textSecondary:this.getThemeCssValue("--fs-text-secondary",t?"#99A0AE":"#525866"),textPrimary:this.getThemeCssValue("--fs-text-primary",t?"#E5E7EB":"#0E121B"),borderColor:this.getThemeCssValue("--fs-stroke-soft",t?"#2B303B":"#E1E4EA"),backgroundColor:this.getThemeCssValue("--fs-bg-primary",t?"#181B25":"#FFFFFF"),subtleBackground:this.getThemeCssValue("--fs-bg-subtle",t?"#202531":"#F5F7FA"),radius:this.getThemeCssValue("--fs-radius-md","8px"),focusRing:this.getThemeCssValue("--fs-shadow-soft","rgba(153, 160, 174, 0.16)")}),s={height:e.height,toolbar1:"formatselect,code,table,bold,italic,bullist,numlist,link,blockquote,alignleft,aligncenter,alignright,underline,strikethrough,forecolor,removeformat,codeformat,outdent,indent,undo,redo",content_style:t?`body { background-color: #181B25; color: #E5E7EB; } a { color: #93C5FD; } ${a} ${i}`:`${a} ${i}`,setup(t){t.on("change",function(t,a){e.changeContentEvent()}),t.on("mouseup",function(a){e.showActionBarOnSelection(t)}),t.on("keyup click NodeChange",function(){e.updateMentionSuggestions()}),t.on("keydown",function(t){e.handleMentionKeydown(t)}),t.on("blur",function(){setTimeout(()=>{e.hideMentionSuggestions()},120)}),e.is_direct_paste&&t.on("paste",function(t){const a=t.clipboardData||window.clipboardData;if(a&&a.items){let i=!1;for(let e=0;e<a.items.length;e++){if("file"===a.items[e].kind){i=!0;break}}i&&(e.loadingImage=!0,e.$refs.imagePasteUploader.handleImagePaste(t,e.ticketId,e.is_agent))}})}};this.autofocus&&(s.auto_focus=this.editor_id);const n=()=>{this.editor.initialize(this.editor_id,{mediaButtons:this.mediaButtons,tinymce:s,quicktags:!0})};"complete"===document.readyState||"interactive"===document.readyState?n():jQuery(document).ready(n),jQuery("#"+this.editor_id).on("change",function(){e.changeContentEvent()})},insertHtml(e){this.currentEditor.insertContent(e)},insertContent(e){if(this.hasWpEditor){let t=tinyMCE.get(this.editor_id)||tinyMCE.get(wpActiveEditor);if(t)return t.focus(),t.insertContent(e),void this.$emit("update:modelValue",t.getContent({format:"html"}))}const t=document.querySelector(`#${this.editor_id}`),a=t?t.selectionStart:this.cursorPos,i=this.plain_content.slice(0,a),s=this.plain_content.slice(a);this.plain_content=i+e+s,this.cursorPos=a+e.length,this.$nextTick(()=>{t&&(t.selectionStart=t.selectionEnd=this.cursorPos,t.focus())})},changeContentEvent(){const e=this.editor.getContent(this.editor_id);this.$emit("update:modelValue",this.normalizeMentionMarkup(e))},getThemeCssValue:(e,t="")=>getComputedStyle(document.body).getPropertyValue(e).trim()||t,normalizeMentionMarkup:e=>e&&"string"==typeof e?e.replace(/\s+contenteditable=["'][^"']*["']/gi,""):e,decodeHtmlEntities(e){const t=document.createElement("textarea");return t.innerHTML=String(e),t.value},getMentionTokenRange(e,t){const a=e.slice(0,t),i=a.match(/(^|[\s(])@([A-Za-z0-9._-]*)$/);return i?{start:a.length-i[0].length+i[1].length,end:t}:null},getEditorMentionRange(e){if(!e||!e.startContainer||3!==e.startContainer.nodeType||!e.collapsed)return null;const t=e.startContainer.nodeValue||"";let a=e.startOffset,i=e.startOffset;for(;a>0&&/[A-Za-z0-9._-]/.test(t.charAt(a-1));)a--;for(;i<t.length&&/[A-Za-z0-9._-]/.test(t.charAt(i));)i++;return 0===a||"@"!==t.charAt(a-1)?null:{start:a-1,end:i}},closeSelectedTextPromptBox(){this.showChatGPTPromptBox=!1,this.showActionBar=!1},closeAIResponsePromptBox(){this.showAIResponseBox=!1},toggleFluentBotPanel(){this.$emit("toggleFluentBot")},closeFluentBotAIResponsePromptBox(){this.showFluentBotAIResponseBox=!1},handleCommand(e){if(this.hasWpEditor)window.tinymce.activeEditor.insertContent(e);else{var t=this.plain_content.slice(0,this.cursorPos),a=this.plain_content.slice(this.cursorPos,this.plain_content.length);this.plain_content=t+e+a,this.cursorPos+=e.length}},updateCursorPos(){var e=jQuery(".wp_vue_editor_plain").prop("selectionStart");this.cursorPos=e},handlePlainInput(){this.updateCursorPos(),this.updateMentionSuggestions()},handlePlainSelectionChange(){this.updateCursorPos(),this.updateMentionSuggestions()},supportsMentionSuggestions(){return!0===this.is_agent||"yes"===this.is_agent||"true"===this.is_agent},getMentionQuery(e){const t=e.match(/(?:^|[\s(])@([A-Za-z0-9._\- ]*)$/);return t?t[1]:null},getEditorTextBeforeCaret(e){const t=null==e?void 0:e.selection;if(!t)return"";const a=t.getRng().cloneRange();return a.setStart(e.getBody(),0),a.toString()},setMentionDropdownPosition(){var e,t;if(this.hasWpEditor){const a=tinyMCE.get(this.editor_id),i=null==(t=null==(e=null==a?void 0:a.selection)?void 0:e.getRng)?void 0:t.call(e);if(!i)return;const s=i.getBoundingClientRect(),n=this.$el.getBoundingClientRect(),o=Math.max(12,s.left-n.left),r=Math.max(44,s.bottom-n.top+8);return void(this.mentionDropdownStyle={top:`${r}px`,left:`${o}px`})}const a=this.$el.querySelector(".wp_vue_editor_plain");a&&(this.mentionDropdownStyle={top:`${a.offsetTop+44}px`,left:`${a.offsetLeft+12}px`})},updateMentionSuggestions(){if(!this.supportsMentionSuggestions())return;let e=null;if(this.hasWpEditor){const t=tinyMCE.get(this.editor_id);if(!t)return void this.hideMentionSuggestions();e=this.getMentionQuery(this.getEditorTextBeforeCaret(t))}else{const t=this.$el.querySelector(".wp_vue_editor_plain"),a=t?t.selectionStart:this.cursorPos;e=this.getMentionQuery(this.plain_content.slice(0,a))}if(null===e||e.length<1)return void this.hideMentionSuggestions();const t=!this.showMentionSuggestions;if(this.mentionQuery=e,this.ticketId)this.triggerMentionSearch(e);else if(!this.filteredMentionAgents.length)return void this.hideMentionSuggestions();(t||this.activeMentionIndex>=this.filteredMentionAgents.length)&&(this.activeMentionIndex=0),this.setMentionDropdownPosition(),this.showMentionSuggestions=!0},triggerMentionSearch(e){const t=e.trim();if(!t||t.length<2)return clearTimeout(this.mentionSearchTimer),this.mentionSearchResults=[],this.mentionSearchLoading=!1,void(this.mentionSearchLastQuery="");if(t===this.mentionSearchLastQuery)return;clearTimeout(this.mentionSearchTimer),this.mentionSearchLoading=!0;const a=t;this.mentionSearchTimer=setTimeout(()=>{this.$get(`tickets/${this.ticketId}/mentionable-agents`,{search:a,limit:50}).then(e=>{a===this.mentionQuery.trim()&&(this.mentionSearchLastQuery=a,this.mentionSearchResults=(null==e?void 0:e.agents)||[],this.activeMentionIndex>=this.mentionSearchResults.length&&(this.activeMentionIndex=0))}).catch(()=>{a===this.mentionQuery.trim()&&(this.mentionSearchResults=[])}).always(()=>{a===this.mentionQuery.trim()&&(this.mentionSearchLoading=!1)})},350)},hideMentionSuggestions(){this.showMentionSuggestions=!1,this.mentionQuery="",this.activeMentionIndex=0,this.mentionSearchResults=[],this.mentionSearchLoading=!1,this.mentionSearchLastQuery="",clearTimeout(this.mentionSearchTimer)},handleMentionKeydown(e){if(this.showMentionSuggestions&&this.filteredMentionAgents.length)return"ArrowDown"===e.key?(e.preventDefault(),void(this.activeMentionIndex=(this.activeMentionIndex+1)%this.filteredMentionAgents.length)):"ArrowUp"===e.key?(e.preventDefault(),void(this.activeMentionIndex=(this.activeMentionIndex-1+this.filteredMentionAgents.length)%this.filteredMentionAgents.length)):"Enter"===e.key||"Tab"===e.key?(e.preventDefault(),void this.selectMentionAgent(this.filteredMentionAgents[this.activeMentionIndex])):void("Escape"===e.key&&(e.preventDefault(),this.hideMentionSuggestions()))},selectMentionAgent(e){var t,a;if(!(null==e?void 0:e.id))return;const i=`${e.first_name} ${e.last_name}`.trim(),s=this.escapeHtmlAttribute(String(e.id)),n=`@[${e.id}:${i}] `,o=`<span class="fs_agent_mention" data-mention-username="${s}" contenteditable="false">@${i}</span> `;if(this.hasWpEditor){const e=tinyMCE.get(this.editor_id);if(e){const i=null==(a=null==(t=e.selection)?void 0:t.getRng)?void 0:a.call(t),s=this.getEditorMentionRange(i);s?(i.setStart(i.startContainer,s.start),i.setEnd(i.startContainer,s.end),e.selection.setRng(i),e.selection.setContent(o)):e.insertContent(o),this.$emit("update:modelValue",this.normalizeMentionMarkup(e.getContent()))}}else{const e=this.$el.querySelector(".wp_vue_editor_plain"),t=e?e.selectionStart:this.cursorPos;e?e.selectionEnd:this.cursorPos;const a=this.getMentionTokenRange(this.plain_content,t);if(!a)return void this.hideMentionSuggestions();const i=this.plain_content.slice(0,a.start),s=this.plain_content.slice(a.end);this.plain_content=`${i}${n}${s}`,this.$nextTick(()=>{if(e){const t=i.length+n.length;e.selectionStart=t,e.selectionEnd=t,e.focus()}})}this.hideMentionSuggestions()},escapeHtmlAttribute:e=>String(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"),handleCc(e){this.$emit("toggleCcOption",e)},insertShortcode(e){const t=e.target._value;if(this.hasWpEditor){let e=tinyMCE.get(this.editor_id);if(e){e.focus(),e.insertContent(t);const a=e.getContent();this.$emit("update:modelValue",a)}}else{const e=document.querySelector(`#${this.editor_id}`);if(e){const a=e.selectionStart,i=e.selectionEnd,s=e.value,n=s.substring(0,a),o=s.substring(i,s.length),r=n+t+o;this.plain_content=r,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=a+t.length,e.focus()})}}},insertTemplate(e){tinyMCE.editors[wpActiveEditor].setContent(this.modelValue+e),this.$emit("update:modelValue",this.modelValue+e)},insertAIResponse(e){let t=tinyMCE.get(wpActiveEditor);t.insertContent(e),this.$emit("update:modelValue",t.getContent({format:"html"})),this.showChatGPTPromptBox=!1,this.showAIResponseBox=!1,this.showFluentBotAIResponseBox=!1,this.showActionBar=!1},showActionBarOnSelection(e){this.editorData=e;const t=this.editorData.selection;if(t.isCollapsed())this.showActionBar=!1;else{const e=t.getContent({format:"text"});if(e.length>0){const a=t.getRng();a.getBoundingClientRect();const i=a.cloneRange();i.setStart(i.startContainer,i.startOffset),i.setEnd(i.startContainer,i.startOffset);const s=i.getBoundingClientRect();this.actionBarStyle={top:`${s.top+80}px`,left:`${s.right+40}px`,position:"absolute",zIndex:1},this.selectedText=e,this.showChatGPTPromptBox=!1,this.showActionBar=!0}}},overallTicketResponse(){this.showAIResponseBox=!this.showAIResponseBox},editSelection(){if(!this.editor)return;const e=this.editorData.selection.getContent({format:"text"}).trim();e&&(this.selectedText=e,this.showChatGPTPromptBox=!0)},setImagePath(e){const t=tinyMCE.get(this.editor_id);if(!t)return;const a=new Image;a.src=e,a.onload=()=>{const i=300,{naturalWidth:s,naturalHeight:n}=a,o=s/n;let r=s,l=n;s>n?(r=i,l=i/o):(l=i,r=i*o);const c=`<img src="${e}" alt="Uploaded Image" style="width: ${r}px; height: ${l}px;" />`;t.insertContent(c),this.loadingImage=!1}}},mounted(){this.initEditor(),this.app_ready=!0}},W7={class:"wp_vue_editor_wrapper"},j7={class:"fs_action_buttons"},q7={key:0,class:"fs_ai_tools_box"},K7=["src"],X7={key:1,class:"fs_ai_tools_box"},Q7=["src"],Z7={class:"fs_template_inserter"},J7={key:2,class:"fs_cc_email_toggle_button"},eee={key:3,class:"fs_saved_replies_box"},tee={key:4,class:"fs_shortcode_box"},aee=["id"],iee=["id"],see=["onMousedown"],nee={class:"fs_mentions_option_name"},oee={key:3,class:"fs_loading_overlay"},ree=["src"],lee={class:"fs_ai_response_box"};const cee=dH(G7,[["render",function(e,t,a,i,s,n){const o=vk,r=Zl("AIResponseGenerator"),l=$B,c=Zl("template-inserter"),d=Zl("ArrowDown"),u=jx,p=oM,h=rM,g=nM,m=Zl("fluent-booking-inserter"),f=Zl("ImagePasteUploader"),_=q$;return Hd(),jd("div",W7,[eu("div",j7,[a.fluentBotIntegration?(Hd(),jd("div",q7,[tu(o,{class:"fs_fluent_bot_response_button",onClick:n.toggleFluentBotPanel},{default:br(()=>[eu("img",{src:n.fluentBotIconSrc,alt:"",class:"fs_fluent_bot_icon"},null,8,K7),eu("p",null,fe(e.$t("Ask FluentBot")),1)],void 0),_:1},8,["onClick"])])):ou("",!0),a.openAIIntegration?(Hd(),jd("div",X7,[tu(l,{placement:"bottom",width:480,trigger:"click",visible:s.showAIResponseBox},{reference:br(()=>[tu(o,{class:"fs_openAI_response_button",onClick:t[0]||(t[0]=e=>s.showAIResponseBox=!s.showAIResponseBox)},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/aiFillButton.svg",alt:""},null,8,Q7),eu("p",null,fe(e.$t("Ask AI")),1)],void 0),_:1})]),default:br(()=>[eu("div",Z7,[eu("div",null,[tu(r,{type:"createResponse",onClose:n.closeAIResponsePromptBox,onInsert:n.insertAIResponse},null,8,["onClose","onInsert"])])])],void 0),_:1},8,["visible"])])):ou("",!0),a.showCcToggleButton?(Hd(),jd("div",J7,[a.add_cc?(Hd(),qd(o,{key:1,size:"small",type:"danger",onClick:t[2]||(t[2]=e=>n.handleCc("hide"))},{default:br(()=>[eu("span",null,fe(e.$t("Discard Cc")),1)],void 0),_:1})):(Hd(),qd(o,{key:0,size:"small",type:"primary",onClick:t[1]||(t[1]=e=>n.handleCc("show"))},{default:br(()=>[eu("span",null,fe(e.$t("Apply Cc")),1)],void 0),_:1}))])):ou("",!0),a.showSavedReplies?(Hd(),jd("div",eee,[tu(c,{onInsert:n.insertTemplate},null,8,["onInsert"])])):ou("",!0),n.hasShortcodes?(Hd(),jd("div",tee,[tu(g,{type:"primary",trigger:"click","popper-options":{strategy:"fixed"}},{dropdown:br(()=>[tu(h,{class:"fs_global_dropdown fs_shortcode_dropdown"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(n.shortcodes,(e,t)=>(Hd(),qd(p,{key:t,value:t,onClick:n.insertShortcode},{default:br(()=>[su(fe(e),1)],void 0),_:2},1032,["value","onClick"]))),128))],void 0),_:1})]),default:br(()=>[tu(o,{size:"small",type:"primary"},{default:br(()=>[su(fe(e.$t("Smart Codes"))+" ",1),tu(u,{style:{"vertical-align":"middle"}},{default:br(()=>[tu(d)],void 0),_:1})],void 0),_:1})],void 0),_:1})])):ou("",!0),a.showFluentBooking&&a.ticketId?(Hd(),qd(m,{key:5,"ticket-id":a.ticketId,onInsert:n.insertContent},null,8,["ticket-id","onInsert"])):ou("",!0)]),vr(tu(f,{ref:"imagePasteUploader",onImagePath:n.setImagePath},null,8,["onImagePath"]),[[_,s.loadingImage]]),s.hasWpEditor?(Hd(),jd("textarea",{key:0,class:"wp_vue_editor",id:a.editor_id}," "+fe(a.modelValue)+"\n ",9,aee)):vr((Hd(),jd("textarea",{key:1,id:a.editor_id,class:"wp_vue_editor wp_vue_editor_plain","onUpdate:modelValue":t[3]||(t[3]=e=>s.plain_content=e),onInput:t[4]||(t[4]=(...e)=>n.handlePlainInput&&n.handlePlainInput(...e)),onClick:t[5]||(t[5]=(...e)=>n.handlePlainSelectionChange&&n.handlePlainSelectionChange(...e)),onKeyup:t[6]||(t[6]=(...e)=>n.handlePlainSelectionChange&&n.handlePlainSelectionChange(...e)),onKeydown:t[7]||(t[7]=(...e)=>n.handleMentionKeydown&&n.handleMentionKeydown(...e)),onBlur:t[8]||(t[8]=(...e)=>n.hideMentionSuggestions&&n.hideMentionSuggestions(...e))},null,40,iee)),[[gh,s.plain_content]]),s.showMentionSuggestions&&n.filteredMentionAgents.length?(Hd(),jd("div",{key:2,class:"fs_mentions_dropdown",style:ee(s.mentionDropdownStyle)},[(Hd(!0),jd(Pd,null,sc(n.filteredMentionAgents,(e,t)=>(Hd(),jd("button",{key:e.id,type:"button",class:ne(["fs_mentions_option",{"is-active":t===s.activeMentionIndex}]),onMousedown:Th(t=>n.selectMentionAgent(e),["prevent"])},[eu("span",nee,fe(e.first_name)+" "+fe(e.last_name),1)],42,see))),128))],4)):ou("",!0),s.loadingImage?(Hd(),jd("div",oee)):ou("",!0),s.showActionBar&&a.openAIIntegration?(Hd(),jd("div",{key:4,class:"fs_ai_modify_response_box",style:ee(s.actionBarStyle)},[tu(l,{placement:"bottom",width:480,trigger:"click",visible:s.showChatGPTPromptBox,"popper-class":"fs_ai_response_popover"},{reference:br(()=>[tu(o,{class:"fs_ai_popover_button",onClick:t[9]||(t[9]=e=>n.editSelection()),size:"small",type:"default"},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/aiIcon.svg",alt:""},null,8,ree)],void 0),_:1})]),default:br(()=>[eu("div",lee,[eu("div",null,[tu(r,{type:"modifyResponse",selectedText:s.selectedText,onClose:n.closeSelectedTextPromptBox,onInsert:n.insertAIResponse},null,8,["selectedText","onClose","onInsert"])])])],void 0),_:1},8,["visible"])],4)):ou("",!0)])}]]),dee={name:"RemoteSelector",props:{api_path:String,response_key:String,value_selector:String,label_selectors:Array,label_joiner:{type:String,default:" - "},modelValue:[String,Number],clearable:{type:Boolean,default:!1}},emits:["update:modelValue","change"],watch:{modelValue(e){this.modelValueLocal=e},modelValueLocal(e){this.$emit("update:modelValue",e)}},data(){return{options:[],loading:!1,modelValueLocal:this.modelValue}},methods:{fetchData(e){e||(e=this.modelValue),""!==e?(this.loading=!0,this.$get(this.api_path,{search:e,order_by:this.value_selector,order_type:"ASC"}).then(e=>{e[this.response_key].data&&(this.options=e[this.response_key].data)}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})):this.options=[]},getLabel(e){const t=[];return qK(this.label_selectors,a=>{t.push(e[a])}),t.join(this.label_joiner)},handleChange(e){this.$emit("change",e)}},mounted(){this.fetchData(this.modelValue)}},uee={class:"fs_remote_selector"};const pee=dH(dee,[["render",function(e,t,a,i,s,n){const o=bA,r=_A;return Hd(),jd("div",uee,[tu(r,{modelValue:s.modelValueLocal,"onUpdate:modelValue":t[0]||(t[0]=e=>s.modelValueLocal=e),filterable:"",remote:"",class:"fs_select_field",placeholder:e.$t("Search"),"remote-method":n.fetchData,loading:s.loading,clearable:a.clearable,onChange:n.handleChange},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.options,e=>(Hd(),qd(o,{key:e[a.value_selector],label:n.getLabel(e),value:e[a.value_selector]},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder","remote-method","loading","clearable","onChange"])])}]]),hee={key:0,class:"el-form-item__error"};const gee=dH({name:"Error",props:["error"]},[["render",function(e,t,a,i,s,n){return a.error?(Hd(),jd("span",hee,fe(a.error),1)):ou("",!0)}]]);class mee{constructor(){this.errors={}}get(e){if(this.errors[e])return Object.values(this.errors[e])[0]}has(e){return!!this.errors[e]}record(e){this.errors="responseJSON"in e?e.responseJSON:e}clear(){this.errors={}}}var fee=_q["__core-js_shared__"],_ee=function(){var e=/[^.]+$/.exec(fee&&fee.keys&&fee.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var bee=function(e){return!!_ee&&_ee in e},vee=Function.prototype.toString;var yee=function(e){if(null!=e){try{return vee.call(e)}catch(PI){}try{return e+""}catch(PI){}}return""},See=NK,xee=bee,wee=AK,Eee=yee,Cee=/^\[object .+?Constructor\]$/,kee=Function.prototype,Tee=Object.prototype,Aee=kee.toString,Ree=Tee.hasOwnProperty,Oee=RegExp("^"+Aee.call(Ree).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Nee=function(e){return!(!wee(e)||xee(e))&&(See(e)?Oee:Cee).test(Eee(e))},Iee=function(e,t){return null==e?void 0:e[t]};var Dee=function(e,t){var a=Iee(e,t);return Nee(a)?a:void 0},Mee=Dee(_q,"DataView"),Lee=Dee(_q,"Map"),Pee=Dee(_q,"Promise"),Fee=Dee(_q,"Set"),$ee=Dee(_q,"WeakMap"),Bee=Rq,Vee=yee,Uee="[object Map]",Hee="[object Promise]",zee="[object Set]",Yee="[object WeakMap]",Gee="[object DataView]",Wee=Vee(Mee),jee=Vee(Lee),qee=Vee(Pee),Kee=Vee(Fee),Xee=Vee($ee),Qee=Bee;(Mee&&Qee(new Mee(new ArrayBuffer(1)))!=Gee||Lee&&Qee(new Lee)!=Uee||Pee&&Qee(Pee.resolve())!=Hee||Fee&&Qee(new Fee)!=zee||$ee&&Qee(new $ee)!=Yee)&&(Qee=function(e){var t=Bee(e),a="[object Object]"==t?e.constructor:void 0,i=a?Vee(a):"";if(i)switch(i){case Wee:return Gee;case jee:return Uee;case qee:return Hee;case Kee:return zee;case Xee:return Yee}return t});var Zee=TK,Jee=Qee,ete=$q,tte=Bq,ate=MK,ite=Xq,ste=SK,nte=uK,ote=Object.prototype.hasOwnProperty;const rte=Ak(function(e){if(null==e)return!0;if(ate(e)&&(tte(e)||"string"==typeof e||"function"==typeof e.splice||ite(e)||nte(e)||ete(e)))return!e.length;var t=Jee(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(ste(e))return!Zee(e).length;for(var a in e)if(ote.call(e,a))return!1;return!0}),lte={class:"fs_custom_fields"},cte={key:5};const dte=dH({name:"CustomFieldForm",props:["custom_data","ticket_id","ticket","type"],emits:["syncData"],data:()=>({appReady:!1,fields:!1,labelPosition:"top",formData:{},formattedProducts:{},saving:!1,loading_remote:!1}),methods:{fetchRemoteFields(){this.loading_remote=!0,this.$get("tickets/"+this.ticket_id+"/custom-data",{with:["rendered_fields"]}).then(e=>{this.formData=e.custom_data,this.fields=e.rendered_fields,this.initFields()}).catch(e=>{}).always(()=>{this.loading_remote=!1})},initFields(){if(rte(this.fields))return!1;this.ticket_id||(this.formData=this.custom_data),rte(this.custom_data)||(this.formData=this.custom_data),rte(this.formData)&&(this.formData={}),qK(this.fields,(e,t)=>{"checkbox"==e.type&&(this.formData[t]&&Vq(this.formData[t])?this.formData[t]||(this.formData[t]=""):this.formData[t]=[])}),qK(this.appVars.support_products,e=>{this.formattedProducts[e.id]=e.title}),this.appReady=!0},saveEditedCustomFieldData(){this.saving=!0,this.$post(`ticket-custom-fields/${this.ticket_id}/sync`,{custom_fields:this.formData}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.$emit("syncData",e.custom_data_rendered)}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},handleFormSubmit(e){e.preventDefault(),this.ticket_id&&!this.saving&&this.saveEditedCustomFieldData()},handleEnterKey(e){e.preventDefault(),this.ticket_id&&!this.saving&&this.saveEditedCustomFieldData()},isRenderable(e){if("yes"!=e.has_logics||!e.conditions||!e.conditions.length||"update_ticket"===this.type)return!0;let t=!1,a=!0;return qK(e.conditions,i=>{this.dependencyPass(i)?t=!0:(this.custom_data[e.slug]=[],a=!1)}),"all"==e.match_type?t&&a:t},compare(e,t,a){if(void 0===a)return!1;switch("string"==typeof e&&(e=e.toLowerCase()),"string"==typeof a&&(a=a.toLowerCase()),Vq(a)&&(a=a.map(e=>e.toLowerCase())),t){case"=":return Vq(a)?-1!==a.indexOf(e):e==a;case"!=":return Vq(a)?-1===a.indexOf(e):(""===e||""!==a&&void 0!==a)&&e!=a;case"contains":return e=e.toString(),-1!==a.indexOf(e);case"not_contains":return e=e.toString(),-1===a.indexOf(e);case"lt":return a<e;case"gt":return a>e;default:return!1}},dependencyPass(e){if(e&&e.item_key&&e.operator){let t=e.item_key,a="";return 0===t.indexOf("ticket_")?(t=t.replace("ticket_",""),a="product_id"==t?this.formattedProducts[this.ticket[t]]:this.ticket[t]):a=this.custom_data[t],a||(a=""),!!this.compare(e.value,e.operator,a)}return!0}},computed:{computedFields(){let e=Object.keys(this.fields),t=this.fields;return e.forEach(e=>{t[e].is_renderable=this.isRenderable(t[e])}),t}},mounted(){if(rte(this.appVars.custom_fields))return!1;this.appVars.has_custom_ajax_fields&&this.ticket_id?this.fetchRemoteFields():(this.fields=this.appVars.custom_fields,this.initFields())}},[["render",function(e,t,a,i,s,n){const o=oC,r=bA,l=_A,c=UR,d=HR,u=wR,p=ER,h=sE,g=iE,m=lO,f=rO,_=vk,b=OL,v=q$;return Hd(),jd("div",lte,[s.appReady?(Hd(),qd(g,{key:0,onSubmit:Th(n.handleFormSubmit,["prevent"]),data:s.formData,"label-position":s.labelPosition},{default:br(()=>[s.fields?(Hd(),qd(f,{key:0,gutter:30},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(n.computedFields,(t,a)=>vr((Hd(),qd(m,{key:a,xs:24,md:12},{default:br(()=>[tu(g,{data:s.formData,"label-position":s.labelPosition,onSubmit:Th(n.handleFormSubmit,["prevent"])},{default:br(()=>[tu(h,{label:t.label},{default:br(()=>["text"==t.type||"number"==t.type||"textarea"==t.type?(Hd(),qd(o,{key:0,type:t.type,modelValue:s.formData[t.slug],"onUpdate:modelValue":e=>s.formData[t.slug]=e,onKeyup:Rh(Th(n.handleEnterKey,["prevent"]),["enter"]),class:"fs_text_input fs_text_input_40"},null,8,["type","modelValue","onUpdate:modelValue","onKeyup"])):"select-one"==t.type?(Hd(),qd(l,{key:1,class:"fs_select_field",modelValue:s.formData[t.slug],"onUpdate:modelValue":e=>s.formData[t.slug]=e},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(t.options,e=>(Hd(),qd(r,{key:e,value:e,label:e},null,8,["value","label"]))),128))],void 0),_:2},1032,["modelValue","onUpdate:modelValue"])):"select"==t.type?(Hd(),qd(l,{key:2,class:"fs_select_field",filterable:t.filterable,multiple:t.multiple,modelValue:s.formData[t.slug],"onUpdate:modelValue":e=>s.formData[t.slug]=e},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(t.options,e=>(Hd(),qd(r,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:2},1032,["filterable","multiple","modelValue","onUpdate:modelValue"])):"radio"==t.type?(Hd(),qd(d,{key:3,modelValue:s.formData[t.slug],"onUpdate:modelValue":e=>s.formData[t.slug]=e},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(t.options,e=>(Hd(),qd(c,{key:e,value:e},{default:br(()=>[su(fe(e),1)],void 0),_:2},1032,["value"]))),128))],void 0),_:2},1032,["modelValue","onUpdate:modelValue"])):"checkbox"==t.type?(Hd(),qd(p,{key:4,modelValue:s.formData[t.slug],"onUpdate:modelValue":e=>s.formData[t.slug]=e},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(t.options,e=>(Hd(),qd(u,{key:e,value:e,label:e},null,8,["value","label"]))),128))],void 0),_:2},1032,["modelValue","onUpdate:modelValue"])):(Hd(),jd("p",cte,fe(e.$t("Not editable")),1))],void 0),_:2},1032,["label"])],void 0),_:2},1032,["data","label-position","onSubmit"])],void 0),_:2},1024)),[[vp,t.is_renderable]])),128))],void 0),_:1})):ou("",!0),a.ticket_id?vr((Hd(),qd(_,{key:1,disabled:s.saving,onClick:t[0]||(t[0]=Th(e=>n.saveEditedCustomFieldData(),["prevent"])),type:"primary","native-type":"button",class:"fs_filled_btn fs_button_right"},{default:br(()=>[su(fe(e.$t("Save")),1)],void 0),_:1},8,["disabled"])),[[v,s.saving]]):ou("",!0)],void 0),_:1},8,["onSubmit","data","label-position"])):s.loading_remote?(Hd(),qd(b,{key:1,rows:3,animated:""})):ou("",!0)])}]]),ute={name:"AttachmentForm",props:["ticket","attachments","is_agent"],emits:["upload-state-change"],computed:{acceptedTypes(){return this.appVars.allowed_file_types||"*"},uploadLimit(){const e=parseInt(this.appVars.max_file_upload,10)||0;return Math.max(0,e-this.attachments.length-this.uploadingCount)},uploadingCount(){return this.pendingUploads},uploadingMessage(){return 1===this.uploadingCount?this.$t("Uploading 1 attachment. Please wait before submitting."):`Uploading ${this.uploadingCount} attachments. Please wait before submitting.`}},data(){return{upload_url:this.appVars.rest.url+"/ticket_file_upload",upload_data:{ticket_id:this.ticket.id,intended_ticket_hash:this.appVars.intended_ticket_hash,is_agent:this.is_agent},requestHeaders:{"X-WP-Nonce":this.appVars.rest.nonce},error_message:"",showAttachmentList:!1,attachmentInfo:{},pendingUploads:0}},watch:{pendingUploads:{handler(e){this.$emit("upload-state-change",{uploading:e>0,count:e})},immediate:!0}},methods:{beforeUpload(){const e=parseInt(this.appVars.max_file_upload,10);return!(this.attachments.length+this.uploadingCount>=e)||(this.error_message=`${this.$t("You can upload maximum")} ${this.appVars.max_file_upload} ${this.$t("files")}`,!1)},handleExceed(){this.error_message=`${this.$t("You can upload maximum")} ${this.appVars.max_file_upload} ${this.$t("files")}`},customUpload(e){const{file:t,onSuccess:a,onError:i}=e,s=new FormData,n=`${t.uid||t.name}-${Date.now()}`;this.pendingUploads+=1,s.append("file",t),Object.keys(this.upload_data).forEach(e=>{s.append(e,this.upload_data[e])}),fetch(this.upload_url,{method:"POST",headers:this.requestHeaders,credentials:"include",body:s}).then(e=>e.json()).then(e=>{if(!e.attachments)throw new Error(e.message||"Upload failed");e.__uploadKey=n,a(e)}).catch(e=>{e.__uploadKey=n,i(e)})},handleUploadSuccess(e,t){this.error_message="";const a=t.raw||t,i=e.__uploadKey;e.attachments&&Array.isArray(e.attachments)&&(e.attachments.forEach(e=>{this.attachmentInfo[e]={title:a.name,file_name:a.name,name:a.name,file_size:a.size,file_type:a.type},this.attachments.push(e)}),this.showAttachmentList=!0),this.finishUpload(i)},handleUploadError(e,t){this.finishUpload(e.__uploadKey),this.handleError(e,t.raw||t)},handleError(e,t){let a=this.$t("File failed to upload");if(e.message)try{const t=JSON.parse(e.message);a=this.convertToText(t)||a}catch(PI){a=e.message}this.error_message=`${t.name}: ${a}`},finishUpload(e){e&&this.pendingUploads>0&&(this.pendingUploads-=1)},removeAttachment(e){var t;const a=this.attachments[e];this.attachmentInfo[a]&&delete this.attachmentInfo[a],this.attachments.splice(e,1),null==(t=this.$refs.uploadRef)||t.clearFiles(),0===this.attachments.length&&(this.showAttachmentList=!1)},getAttachmentName(e){if("string"==typeof e){const t=this.attachmentInfo[e];return(null==t?void 0:t.title)||(null==t?void 0:t.file_name)||(null==t?void 0:t.name)||this.$t("Unknown File")}return e.title||e.file_name||e.name||e.original_name||this.$t("Unknown File")},getFileExtension(e){if(!e||e===this.$t("Unknown File"))return"FILE";const t=e.split(".");return t.length>1?t.pop().toUpperCase():"FILE"},getFileTypeClass(e){if(!e||e===this.$t("Unknown File"))return"fs_file_default";const t=e.split(".");if(t.length<=1)return"fs_file_default";return{pdf:"fs_file_pdf",jpg:"fs_file_jpg",jpeg:"fs_file_jpg",png:"fs_file_png",gif:"fs_file_gif",doc:"fs_file_doc",docx:"fs_file_doc",csv:"fs_file_csv",zip:"fs_file_zip",json:"fs_file_json",txt:"fs_file_txt"}[t.pop().toLowerCase()]||"fs_file_default"},formatFileSize(e){if(!e||0===e)return"0 KB";const t=e/1024;return t<1024?`${Math.round(t)} KB`:`${Math.round(t/1024)} MB`},getAttachmentSize(e){if("string"==typeof e){const t=this.attachmentInfo[e];return this.formatFileSize((null==t?void 0:t.file_size)||0)}return this.formatFileSize(e.file_size||0)},clearAllAttachments(){var e;this.attachmentInfo={},this.attachments.splice(0,this.attachments.length),null==(e=this.$refs.uploadRef)||e.clearFiles(),this.showAttachmentList=!1}}},pte={class:"fs_attachments_form"},hte={class:"fs_attachment_header"},gte={class:"fs_attachment_row"},mte={class:"fs_attachment_actions"},fte={class:"fs_upload_dragger"},_te=["src"],bte={class:"fs_upload_dragger_text"},vte=["src"],yte={class:"fs_attachment_icon"},Ste={class:"fs_attachment_details"},xte={class:"fs_attachment_name"},wte={class:"fs_attachment_size"},Ete=["onClick"],Cte=["src"],kte={class:"fs_attachment_help"},Tte={key:1,class:"fs_attachment_uploading"};const Ate=dH(ute,[["render",function(e,t,a,i,s,n){const o=$$,r=vk,l=Zl("Delete"),c=jx,d=rM,u=nM,p=KE;return Hd(),jd("div",pte,[eu("div",hte,[eu("h4",null,fe(e.$t("Add Attachment")),1),eu("div",gte,[eu("div",mte,[tu(o,{ref:"uploadRef",class:"fs_attachment_upload",drag:"",accept:n.acceptedTypes,multiple:"","show-file-list":!1,limit:n.uploadLimit,disabled:n.uploadLimit<=0,"on-exceed":n.handleExceed,"before-upload":n.beforeUpload,"on-success":n.handleUploadSuccess,"on-error":n.handleUploadError,"http-request":n.customUpload},{default:br(()=>[eu("div",fte,[eu("img",{src:e.appVars.asset_url+"images/uploadIcon.svg",alt:""},null,8,_te),eu("p",bte,fe(e.$t("Browse File")),1)])],void 0),_:1},8,["accept","limit","disabled","on-exceed","before-upload","on-success","on-error","http-request"]),a.attachments.length>0?(Hd(),qd(u,{key:0,placement:"bottom-start",trigger:"click"},{dropdown:br(()=>[tu(d,{class:"fs_global_dropdown fs_attachment_dropdown"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(a.attachments,(e,t)=>(Hd(),jd("div",{key:"string"==typeof e?e:e.id||t,class:"fs_attachment_item"},[eu("div",yte,[eu("span",{class:ne(n.getFileTypeClass(n.getAttachmentName(e)))},fe(n.getFileExtension(n.getAttachmentName(e))),3)]),eu("div",Ste,[eu("div",xte,fe(n.getAttachmentName(e)),1),eu("div",wte,fe(n.getAttachmentSize(e)),1)]),eu("button",{type:"button",class:"fs_attachment_remove",onClick:e=>n.removeAttachment(t)},[tu(c,null,{default:br(()=>[tu(l)],void 0),_:1})],8,Ete)]))),128))],void 0),_:1})]),default:br(()=>[tu(r,{class:"fs_outline_btn"},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/attachmentIcon.svg",alt:""},null,8,vte),su(" "+fe(a.attachments.length),1)],void 0),_:1})],void 0),_:1})):ou("",!0),a.attachments.length>0?(Hd(),qd(p,{key:1,effect:"dark",content:e.$t("Clear All Attachments"),placement:"top"},{default:br(()=>[tu(r,{class:"fs_outline_btn",onClick:n.clearAllAttachments},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/deleteIcon.svg",alt:""},null,8,Cte)],void 0),_:1},8,["onClick"])],void 0),_:1},8,["content"])):ou("",!0)]),eu("p",kte," ("+fe(e.$t("allowed_files_and_size"))+") ",1)])]),s.error_message?(Hd(),jd("p",{key:0,class:"fs_error_message",onClick:t[0]||(t[0]=e=>s.error_message="")},fe(s.error_message),1)):ou("",!0),n.uploadingCount?(Hd(),jd("p",Tte,fe(n.uploadingMessage),1)):ou("",!0)])}],["__scopeId","data-v-c16a41c5"]]),Rte={name:"CreateTicketForm",components:{AttachmentForm:Ate,WpEditor:cee,RemoteSelector:pee,Error:gee,CustomFieldForm:dte},emits:["close"],data:()=>({step:"search",creating:!1,editor_ready:!0,products:[],priorities:{},mailboxes:[],errors:new mee,ticket:{customer_id:"",mailbox_id:"",title:"",content:"",product_id:"",client_priority:"normal",custom_fields:dte.data(),create_customer:"no",create_wp_user:"no",agent_initiated:"no"},new_customer:{},customer_search_item:{provider:"",id:""},search_customer:"",search_results:{provider:"",data:[]},searching:!1,searched:!1,attachments:[],validation_errors:{email:"",username:"",password:""},has_pro:!1,searchDebounceTimer:null,attachmentUploadState:{uploading:!1,count:0}}),watch:{search_customer(e){clearTimeout(this.searchDebounceTimer),e&&e.length>=3&&(this.searchDebounceTimer=setTimeout(()=>{this.searchCustomers()},400))}},computed:{canProceedToTicket(){return!(!this.new_customer.email||"yes"===this.ticket.create_customer)||!("yes"!==this.ticket.create_customer||!this.new_customer.email)}},created(){this.products=this.appVars.support_products||[],this.priorities=this.appVars.client_priorities||{},this.mailboxes=this.appVars.mailboxes||[],this.has_pro=this.appVars.has_pro||!1},methods:{updateAttachmentUploadState(e){this.attachmentUploadState=e},notifyAttachmentUploadPending(){const e=this.attachmentUploadState.count>1?this.$t("Please wait for all attachments to finish uploading before creating the ticket."):this.$t("Please wait for the attachment to finish uploading before creating the ticket.");this.$notify({message:e,position:"bottom-right",type:"warning"})},create(){this.attachmentUploadState.uploading?this.notifyAttachmentUploadPending():(this.errors.clear(),this.creating=!0,this.$post("tickets",{ticket:this.ticket,newCustomer:this.new_customer,attachments:this.attachments}).then(e=>{this.$notify({message:e.message,position:"bottom-right",type:"success"}),this.$router.push({name:"view_ticket",params:{ticket_id:e.ticket.id}})}).catch(e=>{this.$handleError(e)}).always(()=>{this.creating=!1}))},labelMaker:(e,t)=>`${e} - ${t}`,insertTemplate(e){this.editor_ready=!1,this.ticket.content=this.ticket.content+e,this.$nextTick(()=>{this.editor_ready=!0})},searchCustomers(){this.searching=!0,this.searched=!1,this.$get("tickets/search-contact",{search:this.search_customer}).then(e=>{this.search_results=e}).catch(e=>{this.$handleError(e)}).always(()=>{this.searching=!1,this.searched=!0})},customerSelected(e,t){this.new_customer={...e},this.new_customer.provider=t,this.step="ticket"},isValidEmail:e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),resetValidationErrors(){this.validation_errors.email="",this.validation_errors.username="",this.validation_errors.password=""},validateEmail(){const e=this.new_customer.email;return!(!e||!this.isValidEmail(e))||(this.validation_errors.email=this.$t("Please provide a valid email address."),!1)},validateWpUser(){if("yes"!==this.ticket.create_wp_user)return!0;let e=!0;return this.new_customer.username||(this.validation_errors.username=this.$t("Username is required for WordPress user."),e=!1),e},goToTicketStep(){if(this.resetValidationErrors(),"yes"===this.ticket.create_customer){const e=this.validateEmail(),t=this.validateWpUser();if(!e||!t)return}this.step="ticket"}}},Ote={class:"fs_create_ticket_form fs_global_form_builder"},Nte={class:"fs_ticket_header"},Ite={class:"fs_ticket_header_text"},Dte={class:"fs_ticket_title"},Mte={class:"fs_ticket_subtitle"},Lte={class:"fs_dialog_body"},Pte={key:0,class:"fs_step_content"},Fte={key:0,class:"fs_customer_selector"},$te={class:"fs_contact_results"},Bte=["onClick"],Vte={class:"fs_create_contact_link"},Ute={class:"fs_checkbox_text"},Hte={class:"fs_link_text"},zte={key:0,class:"fs_tk_create_customer"},Yte={key:1,class:"fs_step_content fs_step_content_ticket_form"},Gte={class:"fs_contact_details_card"},Wte={class:"fs_card_label"},jte={class:"fs_contact_info"},qte={class:"fs_contact_info_item"},Kte={class:"fs_info_label"},Xte={class:"fs_contact_info_item"},Qte={class:"fs_info_label"},Zte={class:"fs_dialog_footer"},Jte={class:"fs_progress_indicator"},eae={class:"fs_progress_bar"},tae={class:"fs_progress_text"},aae={class:"fs_dialog_actions"};const iae=dH(Rte,[["render",function(e,t,a,i,s,n){const o=Zl("Close"),r=jx,l=vk,c=oC,d=sE,u=wR,p=lO,h=rO,g=bA,m=_A,f=Zl("error"),_=Zl("wp-editor"),b=Zl("attachment-form"),v=Zl("custom-field-form"),y=iE,S=q$;return Hd(),jd("div",Ote,[eu("div",Nte,[eu("div",Ite,[eu("h3",Dte,fe(e.$t("Create a Ticket")),1),eu("p",Mte,fe(e.$t("Enter your query to create a support request.")),1)]),eu("button",{class:"el-dialog__headerbtn",onClick:t[0]||(t[0]=t=>e.$emit("close")),type:"button"},[tu(r,{class:"el-dialog__close"},{default:br(()=>[tu(o)],void 0),_:1})])]),eu("div",Lte,[tu(y,{data:s.ticket,"label-position":"top"},{default:br(()=>["search"==s.step?(Hd(),jd("div",Pte,[tu(d,{label:e.$t("Search Existing contact or provide email address")},{default:br(()=>[tu(c,{onKeypress:t[2]||(t[2]=Rh(Th(e=>n.searchCustomers(),["prevent"]),["enter","native"])),modelValue:s.search_customer,"onUpdate:modelValue":t[3]||(t[3]=e=>s.search_customer=e),placeholder:e.$t("Search or provide email address")},{suffix:br(()=>[tu(l,{onClick:t[1]||(t[1]=e=>n.searchCustomers()),disabled:!s.search_customer||s.searching,loading:s.searching,link:"",type:"primary",size:"small"},{default:br(()=>[su(fe(e.$t("Search")),1)],void 0),_:1},8,["disabled","loading"])]),_:1},8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),s.searching||s.search_results&&s.search_results.data&&s.search_results.data.length&&"yes"!=s.ticket.create_customer?vr((Hd(),jd("div",Fte,[eu("h3",null,fe(e.$t("Please Select a contact"))+" ["+fe(s.search_results.provider)+"]",1),eu("ul",$te,[(Hd(!0),jd(Pd,null,sc(s.search_results.data,e=>(Hd(),jd("li",{key:e.id,onClick:t=>n.customerSelected(e,s.search_results.provider)},fe(e.email)+" - "+fe(e.first_name)+" "+fe(e.last_name),9,Bte))),128))])])),[[S,s.searching]]):ou("",!0),s.searched?(Hd(),jd(Pd,{key:1},[eu("div",Vte,[tu(u,{"true-value":"yes","false-value":"no",modelValue:s.ticket.create_customer,"onUpdate:modelValue":t[4]||(t[4]=e=>s.ticket.create_customer=e)},{default:br(()=>[eu("span",Ute,[su(fe(e.$t("Could not find a contact?"))+" ",1),eu("span",Hte,fe(e.$t("Create a new one.")),1)])],void 0),_:1},8,["modelValue"])]),"yes"==s.ticket.create_customer?(Hd(),jd("div",zte,[tu(h,{gutter:20},{default:br(()=>[tu(p,{md:12,xs:24},{default:br(()=>[tu(d,{label:e.$t("First Name")},{default:br(()=>[tu(c,{placeholder:e.$t("First name"),type:"text",modelValue:s.new_customer.first_name,"onUpdate:modelValue":t[5]||(t[5]=e=>s.new_customer.first_name=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1}),tu(p,{md:12,xs:24},{default:br(()=>[tu(d,{label:e.$t("Last Name")},{default:br(()=>[tu(c,{placeholder:e.$t("Last name"),type:"text",modelValue:s.new_customer.last_name,"onUpdate:modelValue":t[6]||(t[6]=e=>s.new_customer.last_name=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1}),tu(d,{label:e.$t("Email"),error:s.validation_errors.email},{default:br(()=>[tu(c,{placeholder:e.$t("Email"),type:"email",modelValue:s.new_customer.email,"onUpdate:modelValue":t[7]||(t[7]=e=>s.new_customer.email=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label","error"]),"yes"==s.ticket.create_wp_user?(Hd(),qd(h,{key:0,gutter:20},{default:br(()=>[tu(p,{md:12,xs:24},{default:br(()=>[tu(d,{label:e.$t("Username"),error:s.validation_errors.username},{default:br(()=>[tu(c,{placeholder:e.$t("Username"),type:"text",modelValue:s.new_customer.username,"onUpdate:modelValue":t[8]||(t[8]=e=>s.new_customer.username=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label","error"])],void 0),_:1}),tu(p,{md:12,xs:24},{default:br(()=>[tu(d,{label:e.$t("Password"),error:s.validation_errors.password},{default:br(()=>[tu(c,{placeholder:e.$t("Password (Leave blank for auto generated)"),type:"password","show-password":"",modelValue:s.new_customer.password,"onUpdate:modelValue":t[9]||(t[9]=e=>s.new_customer.password=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label","error"])],void 0),_:1})],void 0),_:1})):ou("",!0),tu(d,null,{default:br(()=>[tu(u,{"true-value":"yes","false-value":"no",modelValue:s.ticket.create_wp_user,"onUpdate:modelValue":t[10]||(t[10]=e=>s.ticket.create_wp_user=e)},{default:br(()=>[su(fe(e.$t("Create New User in WordPress")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1})])):ou("",!0)],64)):ou("",!0)])):"ticket"==s.step?(Hd(),jd("div",Yte,[eu("div",Gte,[eu("h4",Wte,fe(e.$t("Contact Details")),1),eu("div",jte,[eu("p",qte,[eu("span",Kte,fe(e.$t("Name:")),1),su(" "+fe(s.new_customer.first_name)+" "+fe(s.new_customer.last_name),1)]),eu("p",Xte,[eu("span",Qte,fe(e.$t("Customer Email:")),1),su(" "+fe(s.new_customer.email),1)])])]),s.mailboxes&&s.mailboxes.length>1?(Hd(),qd(d,{key:0,label:e.$t("Select Business Inbox")},{default:br(()=>[tu(m,{modelValue:s.ticket.mailbox_id,"onUpdate:modelValue":t[11]||(t[11]=e=>s.ticket.mailbox_id=e),placeholder:e.$t("Select Business Inbox"),clearable:"",filterable:"","popper-class":"fs_select_dropdown"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.mailboxes,e=>(Hd(),qd(g,{key:e.id,value:e.id,label:e.name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"]),tu(f,{error:s.errors.get("mailbox_id")},null,8,["error"])],void 0),_:1},8,["label"])):ou("",!0),tu(d,{label:e.$t("Subject")},{default:br(()=>[tu(c,{placeholder:e.$t("What's this support ticket about?"),type:"text",modelValue:s.ticket.title,"onUpdate:modelValue":t[12]||(t[12]=e=>s.ticket.title=e)},null,8,["placeholder","modelValue"]),tu(f,{error:s.errors.get("title")},null,8,["error"])],void 0),_:1},8,["label"]),tu(d,{label:e.$t("Ticket Details"),class:"fs_reply_editor"},{default:br(()=>[s.editor_ready?(Hd(),qd(_,{key:0,height:150,autofocus:!0,"media-buttons":!1,is_direct_paste:!0,modelValue:s.ticket.content,"onUpdate:modelValue":t[13]||(t[13]=e=>s.ticket.content=e),"show-saved-replies":!0},null,8,["modelValue"])):ou("",!0),tu(f,{error:s.errors.get("content")},null,8,["error"])],void 0),_:1},8,["label"]),tu(b,{ticket:s.ticket,attachments:s.attachments,errors:s.errors,onUploadStateChange:n.updateAttachmentUploadState},null,8,["ticket","attachments","errors","onUploadStateChange"]),tu(h,{gutter:20},{default:br(()=>[s.products&&s.products.length?(Hd(),qd(p,{key:0,md:12,xs:24},{default:br(()=>[tu(d,{label:e.$t("Related Product/Service")},{default:br(()=>[tu(m,{modelValue:s.ticket.product_id,"onUpdate:modelValue":t[14]||(t[14]=e=>s.ticket.product_id=e),placeholder:e.$t("Select related Product/Service"),clearable:"",filterable:"","popper-class":"fs_select_dropdown"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.products,e=>(Hd(),qd(g,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"]),tu(f,{error:s.errors.get("product_id")},null,8,["error"])],void 0),_:1},8,["label"])],void 0),_:1})):ou("",!0),tu(p,{md:12,xs:24},{default:br(()=>[tu(d,{label:e.$t("Priority (Customer)")},{default:br(()=>[tu(m,{modelValue:s.ticket.client_priority,"onUpdate:modelValue":t[15]||(t[15]=e=>s.ticket.client_priority=e),placeholder:e.$t("Normal"),clearable:"",filterable:"","popper-class":"fs_select_dropdown"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.priorities,(e,t)=>(Hd(),qd(g,{key:t,value:t,label:e},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"]),tu(f,{error:s.errors.get("client_priority")},null,8,["error"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1}),s.has_pro?(Hd(),qd(v,{key:1,custom_data:s.ticket.custom_fields,ticket:s.ticket,type:"create_ticket"},null,8,["custom_data","ticket"])):ou("",!0),tu(d,null,{default:br(()=>[tu(u,{"true-value":"yes","false-value":"no",modelValue:s.ticket.agent_initiated,"onUpdate:modelValue":t[16]||(t[16]=e=>s.ticket.agent_initiated=e)},{default:br(()=>[su(fe(e.$t("Initiated by agent")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1})])):ou("",!0)],void 0),_:1},8,["data"])]),eu("div",Zte,[eu("div",Jte,[eu("div",eae,[eu("div",{class:"fs_progress_fill",style:ee({width:"search"===s.step?"50%":"100%"})},null,4)]),eu("p",tae,fe("search"===s.step?e.$t("Step 1 of 2"):e.$t("Step 2 of 2")),1)]),eu("div",aae,["search"===s.step?(Hd(),qd(l,{key:0,onClick:t[17]||(t[17]=t=>e.$emit("close")),class:"fs_outline_btn"},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1})):ou("",!0),"ticket"===s.step?(Hd(),qd(l,{key:1,onClick:t[18]||(t[18]=e=>s.step="search"),class:"fs_outline_btn"},{default:br(()=>[su(fe(e.$t("Back")),1)],void 0),_:1})):ou("",!0),"search"===s.step?(Hd(),qd(l,{key:2,onClick:t[19]||(t[19]=e=>n.goToTicketStep()),disabled:!n.canProceedToTicket,class:"fs_filled_btn"},{default:br(()=>[su(fe(e.$t("Next")),1)],void 0),_:1},8,["disabled"])):ou("",!0),"ticket"===s.step?vr((Hd(),qd(l,{key:3,onClick:t[20]||(t[20]=e=>n.create()),disabled:s.creating||s.attachmentUploadState.uploading,class:"fs_filled_btn"},{default:br(()=>[su(fe(e.$t("Create Ticket")),1)],void 0),_:1},8,["disabled"])),[[S,s.creating]]):ou("",!0)])])])}]]),sae={class:"fs_label_search_drawer"},nae={class:"fs_label_search_drawer_header"},oae={class:"fs_label_search_drawer_header_head"},rae={class:"fs_label_search_title"},lae={class:"fs_label_search_close_btn"},cae={class:"fs-table-items"},dae=["onClick"],uae={class:"fs-search-name"},pae={class:"fs-search-actions"},hae={key:1},gae={class:"fs-table-no-data"};const mae=dH({name:"LabelSearchDrawer",props:{labelSearchList:{type:Array,required:!0,default:()=>[]},filtersValue:{type:Array,required:!0,default:()=>[]}},data:()=>({selectedItem:null,userSelected:!1}),watch:{filtersValue:{handler(e){this.userSelected||(this.selectedItem=null),this.userSelected=!1},deep:!0}},methods:{closeModal(){this.$emit("close",!1)},selectItem(e){this.selectedItem=e,this.userSelected=!0;const t=this.labelSearchList[e];this.handleSavedSearch(t)},handleSavedSearch(e){this.$emit("getSavedSearch",e)},handleLabelSearchEdit(e){this.$emit("setLabelSearchItem",e)},handleLabelSearchDelete(e){this.$emit("delete",e),this.selectedItem=null}}},[["render",function(e,t,a,i,s,n){const o=vk,r=yL;return Hd(),jd("div",sae,[eu("div",nae,[eu("div",oae,[eu("div",rae,fe(e.$t("Saved Filters")),1),eu("div",lae,[eu("div",{class:"icon",onClick:t[0]||(t[0]=(...e)=>n.closeModal&&n.closeModal(...e))},[...t[2]||(t[2]=[eu("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[eu("path",{d:"M8 8L16 16M16 8L8 16",stroke:"#1B2533","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])])])]),eu("div",cae,[a.labelSearchList.length?(Hd(!0),jd(Pd,{key:0},sc(a.labelSearchList,(a,i)=>(Hd(),jd("div",{class:ne(["fs-each-search",{selected:s.selectedItem===i}]),key:i,onClick:e=>n.selectItem(i)},[eu("div",uae,fe(a.label_search_name),1),eu("div",pae,[tu(o,{icon:"EditPen",onClick:Th(e=>n.handleLabelSearchEdit(a),["stop"])},null,8,["onClick"]),tu(r,{title:e.$t("Are you sure to delete this?"),onConfirm:e=>n.handleLabelSearchDelete(a.id)},{reference:br(()=>[tu(o,{icon:"Delete",onClick:t[1]||(t[1]=Th(()=>{},["stop"]))})]),_:1},8,["title","onConfirm"])])],10,dae))),128)):a.labelSearchList.length?ou("",!0):(Hd(),jd("div",hae,[eu("p",gae,fe(e.$t("No Data Found")),1)]))])])}]]),fae={key:0,class:"fs_workflow_pop"},_ae={class:"fs_workflow_trigger"},bae={class:"fs_workflows_list"},vae=["onClick"],yae={key:0,class:"fs_workflow_desc"},Sae={class:"fs_workflow_items"},xae={key:0},wae={class:"fs_dialog_footer"};const Eae=dH({name:"WorkflowRunner",props:["ticket_ids"],data(){return{workflows:this.appVars.manual_workflows,selected_workflow:!1,visible:!1,modalVisible:!1,workflow_actions:[],fetchingActions:!1,applying:!1}},methods:{showWorkflowModal(e){this.selected_workflow=e,this.fetchActions(),this.visible=!1,this.modalVisible=!0},fetchActions(){this.workflow_actions=[],this.fetchingActions=!0,this.$get("workflows/"+this.selected_workflow.id+"/actions").then(e=>{this.workflow_actions=e.actions}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetchingActions=!1})},runWorkFow(){this.applying=!0,this.$post("workflows/"+this.selected_workflow.id+"/run",{ticket_ids:this.ticket_ids}).then(e=>{this.$notify({message:e.message,position:"bottom-right",type:"success"}),this.modalVisible=!1,this.workflow_actions.some(e=>"fs_delete_ticket"===e.action_name)?this.$router.push({name:"tickets"}):this.$emit("reloadTickets")}).catch(e=>{this.$handleError(e)}).always(()=>{this.applying=!1})}}},[["render",function(e,t,a,i,s,n){const o=$B,r=vk,l=pD,c=q$;return s.workflows&&s.workflows.length?(Hd(),jd("span",fae,[tu(o,{placement:"bottom",width:400,trigger:"click"},{reference:br(()=>[eu("span",_ae,[oc(e.$slots,"default")])]),default:br(()=>[eu("ul",bae,[(Hd(!0),jd(Pd,null,sc(s.workflows,e=>(Hd(),jd("li",{onClick:t=>n.showWorkflowModal(e),key:e.id},fe(e.title),9,vae))),128))])],void 0),_:3}),tu(l,{modelValue:s.modalVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>s.modalVisible=e),"append-to-body":!0,title:e.$t("Review your Workflow"),width:"60%",class:"fs_dialog"},{footer:br(()=>[eu("span",wae,[vr((Hd(),qd(r,{disabled:s.applying||s.fetchingActions,class:"fs_filled_btn",onClick:t[0]||(t[0]=e=>n.runWorkFow())},{default:br(()=>[su(fe(e.$t("Run Workflow")),1)],void 0),_:1},8,["disabled"])),[[c,s.applying]])])]),default:br(()=>[s.modalVisible?vr((Hd(),jd("div",yae,[eu("h3",null,[su(fe(e.$t("Running the"))+" ",1),eu("b",null,fe(s.selected_workflow.title),1),su(" "+fe(e.$t("workflow will perform the following actions:")),1)]),eu("ul",Sae,[(Hd(!0),jd(Pd,null,sc(s.workflow_actions,(t,a)=>(Hd(),jd("li",{key:t.id},[0!=a?(Hd(),jd("span",xae,fe(e.$t("and")),1)):ou("",!0),su(" "+fe(t.title||t.action_name),1)]))),128))])])),[[c,s.fetchingActions]]):ou("",!0)],void 0),_:1},8,["modelValue","title"])])):ou("",!0)}]]),Cae={key:0,class:"fs_row"},kae={class:"fs_row fs_attachment_section"},Tae={class:"fs_full"},Aae={class:"fs_draft_response_actions fs_row fs_actions_row"},Rae={class:"fs_half fs_left_section"},Oae={key:0,class:"fs_informational_reply_container"},Nae={key:1,class:"fs_note_warning"},Iae={class:"fs_half fs_right_section"},Dae={class:"fs_response_actions fs_button_group"},Mae=["src"],Lae={key:0},Pae={key:1},Fae={key:2};const $ae=dH({name:"CreateResponse",props:["ticket","type","draft","openAIIntegration","is_agent","fluentBotIntegration"],components:{WpEditor:cee,AttachmentForm:Ate},emits:["discardDraft","created","toggleFluentBot"],data:()=>({informational_reply:!1,response_body:"",show_cc_option:!1,selected_cc:[],cc_emails:[],creating:!1,close_ticket:"no",attachments:[],editor_ready:!0,shortcodes:{"{{customer.first_name}}":"Customer First Name","{{customer.last_name}}":"Customer Last Name","{{customer.full_name}}":"Customer Full Name","{{customer.email}}":"Customer Email","{{agent.first_name}}":"Agent First Name","{{agent.last_name}}":"Agent Last Name","{{agent.full_name}}":"Agent Full Name","{{agent.email}}":"Agent Email"},draftID:"",loading:!1,saveResponseDraftTimer:null,isCreatingResponse:!1,attachmentUploadState:{uploading:!1,count:0}}),watch:{response_body(){"yes"!==this.appVars.enable_draft_mode||Array.isArray(this.ticket)||(""===this.response_body&&this.draftID&&this.removeDraft(),"response"!==this.type&&"draft_response"!==this.type||this.saveResponseDraft())},selected_cc(){"yes"!==this.appVars.enable_draft_mode||Array.isArray(this.ticket)||(""===this.response_body&&this.draftID&&this.removeDraft(),"response"!==this.type&&"draft_response"!==this.type||this.saveResponseDraft())},type(e){"note"===e&&(this.show_cc_option=!1,this.selected_cc=[])}},methods:{saveResponseDraft(){this.saveResponseDraftTimer&&clearTimeout(this.saveResponseDraftTimer),this.saveResponseDraftTimer=setTimeout(()=>{const e={content:this.response_body,draftID:this.draftID,selected_cc:this.selected_cc,conversation_type:this.type};if(""!==this.response_body&&!1===this.isCreatingResponse){let t=`tickets/${this.ticket.id}/draft`;this.$post(t,e).then(e=>{this.draftID=e.draftID}).catch(e=>{this.$handleError(e)})}},5e3)},removeDraft(){this.$emit("discardDraft",this.draftID),this.draftID=""},toggleCcOption(e){"show"===e?this.show_cc_option=!0:(this.selected_cc=[],this.show_cc_option=!1)},updateAttachmentUploadState(e){this.attachmentUploadState=e},notifyAttachmentUploadPending(){const e=this.attachmentUploadState.count>1?this.$t("Please wait for all attachments to finish uploading before submitting the reply."):this.$t("Please wait for the attachment to finish uploading before submitting the reply.");this.$notify({message:e,type:"warning",position:"bottom-right",offset:50})},create(e="no"){if(this.attachmentUploadState.uploading)return void this.notifyAttachmentUploadPending();this.isCreatingResponse=!0;const t={content:this.response_body,conversation_type:this.type,close_ticket:e,attachments:this.attachments,cc_emails:this.selected_cc,informational_reply:this.informational_reply};let a=`tickets/${this.ticket.id}/responses`;Array.isArray(this.ticket)&&(t.ticket_ids=this.ticket,t.bulk_action="reply_tickets",a="tickets/bulk-reply"),this.creating=!0,this.$post(a,t).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right",offset:50}),this.isCreatingResponse=!1,this.draftID&&this.removeDraft(),this.response_body="",this.selected_cc=[],this.$emit("created",e.response,e),this.attachments=[]}).catch(e=>{this.$handleError(e)}).always(()=>{this.creating=!1})},handleCcChange(e){e.length||(this.selected_cc=[],this.show_cc_option=!1)}},mounted(){var e,t;if("yes"!==this.appVars.enable_draft_mode||Array.isArray(this.ticket)||this.draft&&(this.response_body=this.draft.value.content,this.draftID=this.draft.id,this.selected_cc=this.draft.value.selected_cc),Array.isArray(this.ticket))this.selected_cc=[];else if(0===this.ticket.responses.length)this.ticket.carbon_copy&&""!==this.ticket.carbon_copy&&(this.selected_cc=(null==(e=this.ticket.carbon_copy)?void 0:e.split(","))||[]);else{let e=this.ticket.responses[0];e.cc_info&&0===(null==(t=this.selected_cc)?void 0:t.length)&&(this.selected_cc=e.cc_info)}},beforeUnmount(){this.saveResponseDraftTimer&&clearTimeout(this.saveResponseDraftTimer)}},[["render",function(e,t,a,i,s,n){var o,r,l;const c=bA,d=_A,u=sE,p=Zl("wp-editor"),h=Zl("attachment-form"),g=wR,m=KE,f=vk,_=q$;return Hd(),jd("div",{class:ne(["fs_create_response","fs_reply_type_"+a.type])},["email"===a.ticket.source?(Hd(),jd("div",Cae,[(null==(o=s.selected_cc)?void 0:o.length)||s.show_cc_option?(Hd(),qd(u,{key:0,label:e.$t("Cc")},{default:br(()=>[tu(d,{modelValue:s.selected_cc,"onUpdate:modelValue":t[0]||(t[0]=e=>s.selected_cc=e),multiple:"",filterable:"",remote:"",placeholder:e.$t("Please enter email"),"allow-create":"",class:"fs_select_field fs_cc_selector","default-first-option":"","reserve-keyword":!1,onChange:n.handleCcChange,loading:s.loading,style:{"padding-left":"10px"}},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.cc_emails,e=>(Hd(),qd(c,{key:e,label:e,value:e},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder","onChange","loading"])],void 0),_:1},8,["label"])):ou("",!0)])):ou("",!0),s.editor_ready?(Hd(),qd(p,{key:1,autofocus:!0,modelValue:s.response_body,"onUpdate:modelValue":t[1]||(t[1]=e=>s.response_body=e),height:170,ticketId:a.ticket.id,productID:a.ticket.product_id,is_agent:a.is_agent,is_direct_paste:!0,editor_shortcodes:s.shortcodes,openAIIntegration:a.openAIIntegration,fluentBotIntegration:a.fluentBotIntegration,"show-fluent-booking":"response"===a.type&&!!(null==(r=e.appVars.fluent_booking)?void 0:r.active),"show-saved-replies":!0,"show-cc-toggle-button":"email"===a.ticket.source&&"note"!==a.type,add_cc:(null==(l=s.selected_cc)?void 0:l.length)>0||s.show_cc_option,onToggleCcOption:n.toggleCcOption,onToggleFluentBot:t[2]||(t[2]=t=>e.$emit("toggleFluentBot"))},null,8,["modelValue","ticketId","productID","is_agent","editor_shortcodes","openAIIntegration","fluentBotIntegration","show-fluent-booking","show-cc-toggle-button","add_cc","onToggleCcOption"])):ou("",!0),eu("div",kae,[eu("div",Tae,[e.appVars.has_file_upload?(Hd(),qd(h,{key:0,is_agent:"yes",ticket:a.ticket,attachments:s.attachments,onUploadStateChange:n.updateAttachmentUploadState},null,8,["ticket","attachments","onUploadStateChange"])):ou("",!0)])]),eu("div",Aae,[eu("div",Rae,["response"===a.type?(Hd(),jd("div",Oae,[tu(m,{effect:"dark",content:e.$t("informational_reply_info"),placement:"bottom","popper-class":"fs_tooltip"},{default:br(()=>[tu(g,{modelValue:s.informational_reply,"onUpdate:modelValue":t[3]||(t[3]=e=>s.informational_reply=e),class:"fs_informational_reply"},{default:br(()=>[su(fe(e.$t("Send as Informational Reply")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1},8,["content"])])):ou("",!0),"note"==a.type?(Hd(),jd("p",Nae,fe(e.$t("You are adding internal Note. Only support staff can see this note.")),1)):ou("",!0)]),eu("div",Iae,[eu("div",Dae,["note"!=a.type&&"draft_response"!==a.type?(Hd(),qd(f,{key:0,disabled:s.creating||s.attachmentUploadState.uploading,onClick:t[4]||(t[4]=e=>n.create("yes")),size:"large",class:"fs_reply_close_btn"},{default:br(()=>[su(fe(e.$t("Reply and Close Ticket")),1)],void 0),_:1},8,["disabled"])):ou("",!0),vr((Hd(),qd(f,{class:"fs_reply_btn fs_filled_btn",disabled:s.creating||s.attachmentUploadState.uploading,onClick:t[5]||(t[5]=e=>n.create("no"))},{default:br(()=>[eu("img",{class:"fs_header_icon",src:e.appVars.asset_url+"images/replyIconWhite.svg",alt:""},null,8,Mae),"draft_response"===a.type?(Hd(),jd("span",Lae,fe(e.$t("Add Draft Reply")),1)):"note"===a.type?(Hd(),jd("span",Pae,fe(e.$t("Add Internal Note")),1)):(Hd(),jd("span",Fae,fe(e.$t("Reply")),1))],void 0),_:1},8,["disabled"])),[[_,s.creating]])])])])],2)}]]);function Bae(e,t,a="Other"){const i=[],s=new Set;for(const o of t){const t=(o.agent_ids||[]).map(Number),a=e.filter(e=>t.includes(Number(e.id)));a.length&&(i.push({label:o.title,agents:a}),a.forEach(e=>s.add(Number(e.id))))}const n=e.filter(e=>!s.has(Number(e.id)));return n.length&&i.push({label:a,agents:n}),i}const Vae={name:"TicketBulkActions",components:{WorkFlowSelector:Eae,CreateResponse:$ae,IconPack:$z},computed:{...Aj(Dj,["ticket_selections"]),agentGroups(){return this.appVars.agent_groups||[]},groupedAgentOptions(){return Bae(this.appVars.support_agents||[],this.agentGroups,this.$t("Other"))}},data:()=>({agent_id:"",agent_group_id:"",tag_ids:[],workflow_id:"",add_response_modal:!1,working:!1,assignAgentPop:!1,assignGroupPop:!1,addTagPop:!1}),methods:{fetchTickets(){this.agent_id="",this.agent_group_id="",this.tag_ids=[],this.workflow_id="",this.addTagPop=!1,this.assignAgentPop=!1,this.assignGroupPop=!1,this.add_response_modal=!1,this.$emit("fetchTickets")},doBulkActions(e){this.working=!0,e.ticket_ids=this.ticket_selections,this.$post("tickets/bulk-actions",e).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fetchTickets()}).catch(e=>{this.$handleError(e)}).always(()=>{this.working=!1})},assignAgent(){if(!this.agent_id)return this.$notify({type:"error",message:this.$t("Please select an agent first"),position:"bottom-right"}),!1;this.doBulkActions({bulk_action:"assign_agent",agent_id:this.agent_id})},assignAgentGroup(){if(!this.agent_group_id)return this.$notify({type:"error",message:this.$t("Please select an agent group first"),position:"bottom-right"}),!1;this.doBulkActions({bulk_action:"assign_agent_group",agent_group_id:this.agent_group_id})},assignTags(){if(!this.tag_ids.length)return this.$notify({type:"error",message:this.$t("Please select tag first"),position:"bottom-right"}),!1;this.doBulkActions({bulk_action:"assign_tags",tag_ids:this.tag_ids})},closeTickets(){this.doBulkActions({bulk_action:"close_tickets"})},deleteTickets(){this.doBulkActions({bulk_action:"delete_tickets"})},togglePop(e){e&&this[e]?this[e]=!1:(this.assignAgentPop=!1,this.assignGroupPop=!1,this.addTagPop=!1,e&&(this[e]=!0))}}},Uae={class:"fs_bulk_actions_wrap"},Hae={key:0,class:"fs_bulk_actions_bar"},zae={class:"fs_extended_pop"},Yae={class:"fs_popover_action_btn"},Gae={class:"fs_extended_pop"},Wae={class:"fs_popover_action_btn"},jae={class:"fs_bulk_action_item"},qae={class:"fs_extended_pop"},Kae={class:"fs_popover_action_btn"},Xae={class:"fs_bulk_action_item"},Qae={style:{margin:"0 0 1em 0"}},Zae={class:"fs_bulk_action_item"},Jae={style:{margin:"0 0 1em 0"}},eie={class:"fs_bulk_action_create_response"};const tie=dH(Vae,[["render",function(e,t,a,i,s,n){const o=Zl("IconPack"),r=bA,l=vA,c=_A,d=vk,u=$B,p=Zl("work-flow-selector"),h=Zl("create-response"),g=pD,m=q$;return vr((Hd(),jd("div",Uae,[e.ticket_selections.length?(Hd(),jd("div",Hae,[eu("div",{class:"fs_bulk_action_item",onClick:t[0]||(t[0]=e=>s.add_response_modal=!0)},[tu(o,{"icon-key":"reply"}),eu("span",null,fe(e.$t("Reply")),1)]),tu(u,{placement:"bottom",width:400,trigger:"manual",class:"fs_popover",visible:s.assignAgentPop},{reference:br(()=>[eu("div",{class:ne(["fs_bulk_action_item",{fs_pop_active:s.assignAgentPop}]),onClick:t[1]||(t[1]=e=>n.togglePop("assignAgentPop"))},[tu(o,{"icon-key":"agent"}),eu("span",null,fe(e.$t("Agent")),1)],2)]),default:br(()=>[eu("div",zae,[tu(c,{class:"fs_select_field","popper-class":"fs_agent_group_popper",filterable:"",modelValue:s.agent_id,"onUpdate:modelValue":t[2]||(t[2]=e=>s.agent_id=e)},{default:br(()=>[n.agentGroups.length?(Hd(!0),jd(Pd,{key:0},sc(n.groupedAgentOptions,e=>(Hd(),qd(l,{key:e.label,label:e.label},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(e.agents,e=>(Hd(),qd(r,{key:e.id,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:2},1032,["label"]))),128)):(Hd(!0),jd(Pd,{key:1},sc(e.appVars.support_agents,e=>(Hd(),qd(r,{key:e.id,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"]),eu("div",Yae,[tu(d,{class:"fs_filled_btn",onClick:t[3]||(t[3]=e=>n.assignAgent()),style:{"margin-top":"10px"},disabled:!s.agent_id,size:"small",type:"danger"},{default:br(()=>[su(fe(e.$t("Assign Agent")),1)],void 0),_:1},8,["disabled"]),tu(d,{class:"fs_outline_btn",onClick:t[4]||(t[4]=e=>s.assignAgentPop=!1),size:"small",type:"default",style:{"margin-top":"10px"}},{default:br(()=>[su(fe(e.$t("Close")),1)],void 0),_:1})])])],void 0),_:1},8,["visible"]),tu(u,{placement:"bottom",width:400,trigger:"manual",class:"fs_popover",visible:s.assignGroupPop},{reference:br(()=>[eu("div",{class:ne(["fs_bulk_action_item",{fs_pop_active:s.assignGroupPop}]),onClick:t[5]||(t[5]=e=>n.togglePop("assignGroupPop"))},[tu(o,{"icon-key":"agentGroupIcon"}),eu("span",null,fe(e.$t("Group")),1)],2)]),default:br(()=>[eu("div",Gae,[tu(c,{class:"fs_select_field",filterable:"",modelValue:s.agent_group_id,"onUpdate:modelValue":t[6]||(t[6]=e=>s.agent_group_id=e),placeholder:e.$t("Select Agent Group")},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(e.appVars.agent_groups,e=>(Hd(),qd(r,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"]),eu("div",Wae,[tu(d,{class:"fs_filled_btn",onClick:t[7]||(t[7]=e=>n.assignAgentGroup()),style:{"margin-top":"10px"},disabled:!s.agent_group_id,size:"small",type:"danger"},{default:br(()=>[su(fe(e.$t("Assign via Group")),1)],void 0),_:1},8,["disabled"]),tu(d,{class:"fs_outline_btn",onClick:t[8]||(t[8]=e=>s.assignGroupPop=!1),size:"small",type:"default",style:{"margin-top":"10px"}},{default:br(()=>[su(fe(e.$t("Close")),1)],void 0),_:1})])])],void 0),_:1},8,["visible"]),tu(p,{onReloadTickets:t[9]||(t[9]=e=>n.fetchTickets()),ticket_ids:e.ticket_selections},{default:br(()=>[eu("div",jae,[tu(o,{"icon-key":"workflow"}),eu("span",null,fe(e.$t("Workflow")),1)])],void 0),_:1},8,["ticket_ids"]),tu(u,{placement:"bottom",width:400,trigger:"manual",class:"fs_popover",visible:s.addTagPop},{reference:br(()=>[eu("div",{class:ne(["fs_bulk_action_item",{fs_pop_active:s.addTagPop}]),onClick:t[10]||(t[10]=e=>n.togglePop("addTagPop"))},[tu(o,{"icon-key":"tags"}),eu("span",null,fe(e.$t("Tags")),1)],2)]),default:br(()=>[eu("div",qae,[tu(c,{class:"fs_select_field",multiple:!0,filterable:"",modelValue:s.tag_ids,"onUpdate:modelValue":t[11]||(t[11]=e=>s.tag_ids=e)},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(e.appVars.ticket_tags,e=>(Hd(),qd(r,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"]),eu("div",Kae,[tu(d,{class:"fs_filled_btn",style:{"margin-top":"10px"},size:"small",type:"success",onClick:t[12]||(t[12]=e=>n.assignTags())},{default:br(()=>[su(fe(e.$t("Apply Tags")),1)],void 0),_:1}),tu(d,{class:"fs_outline_btn",style:{"margin-top":"10px"},onClick:t[13]||(t[13]=e=>s.addTagPop=!1),size:"small",type:"default"},{default:br(()=>[su(fe(e.$t("Close")),1)],void 0),_:1})])])],void 0),_:1},8,["visible"]),tu(u,{placement:"bottom",width:400,trigger:"click"},{reference:br(()=>[eu("div",Xae,[tu(o,{"icon-key":"closeTicket"}),eu("span",null,fe(e.$t("Close")),1)])]),default:br(()=>[eu("p",Qae,fe(e.$t("close_selected_ticket_warning")),1),tu(d,{class:"fs_filled_btn",style:{"margin-top":"0"},size:"small",type:"success",onClick:t[14]||(t[14]=e=>n.closeTickets())},{default:br(()=>[su(fe(e.$t("Close Selected Tickets")),1)],void 0),_:1})],void 0),_:1}),tu(u,{placement:"bottom",width:400,trigger:"click"},{reference:br(()=>[eu("div",Zae,[tu(o,{"icon-key":"delete"}),eu("span",null,fe(e.$t("Delete")),1)])]),default:br(()=>[eu("p",Jae,fe(e.$t("delete_selected_ticket_warning")),1),tu(d,{class:"fs_filled_btn",style:{"margin-top":"0"},size:"small",type:"danger",onClick:t[15]||(t[15]=e=>n.deleteTickets())},{default:br(()=>[su(fe(e.$t("Yes, Delete Selected Tickets")),1)],void 0),_:1})],void 0),_:1})])):ou("",!0),tu(g,{title:e.$t("Reply To Selected Tickets"),modelValue:s.add_response_modal,"onUpdate:modelValue":t[17]||(t[17]=e=>s.add_response_modal=e),width:"60%",class:"fs_dialog fs_bulk_action_modal"},{default:br(()=>[eu("div",eie,[s.add_response_modal?(Hd(),qd(h,{key:0,onCreated:t[16]||(t[16]=e=>n.fetchTickets()),ticket:e.ticket_selections},null,8,["ticket"])):ou("",!0)])],void 0),_:1},8,["title","modelValue"])])),[[m,s.working]])}]]),aie={class:"fs_options_selector"},iie=["innerHTML"];const sie={class:"fs_rich_filter_item"},nie={class:"fs_action_filter_field"},oie={class:"fs_filter_operator fs_action_filter_field"},rie={class:"fs_filter_value fs_action_filter_value"},lie={key:2};const cie={class:"fs_rich_filters"},die={class:"fs_rich_filters_wrapper"},uie={key:0,class:"fs_full_width"},pie={class:"fs_rich_filters_body"},hie={key:1,class:"fs_filter_intro fs_rich_filter_actions fs_mt-4"},gie={key:2,class:"fs_filter_intro fs_rich_filter_actions"};const mie=dH({name:"RichFilter",components:{RichFilterItem:dH({name:"RichFilterItem",props:["item","filterLabels"],components:{OptionSelector:dH({name:"OptionSelector",props:["value","field","modelValue"],data(){return{options:[],model:this.modelValue,element_ready:!1}},watch:{model(e){this.$emit("update:modelValue",e)}},methods:{setOptions(){const e={ticket_statuses:"object_type",client_priorities:"object_type",admin_priorities:"object_type",ticket_tags:"array_type",support_products:"array_type",support_agents:"object_type",mailboxes:"object_type"},t=this.field.option_key;if(!e[t]||!this.appVars[t])return!1;"object_type"==e[t]?qK(this.appVars[t],"support_agents"==t?e=>{this.options.push({id:e.id,title:e.full_name})}:"mailboxes"==t?e=>{this.options.push({id:e.id,title:e.name})}:(e,t)=>{this.options.push({id:t,title:e})}):this.options=this.appVars[t]}},mounted(){this.setOptions()}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A;return Hd(),jd("div",aie,[tu(r,{class:"fs_select_field",size:a.field.size,modelValue:s.model,"onUpdate:modelValue":t[0]||(t[0]=e=>s.model=e),multiple:a.field.is_multiple,placeholder:a.field.placeholder,clearable:"",filterable:""},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.options,e=>(Hd(),qd(o,{key:e.id,value:e.id,label:e.title},{default:br(()=>[eu("span",{innerHTML:e.title},null,8,iie)],void 0),_:2},1032,["value","label"]))),128))],void 0),_:1},8,["size","modelValue","multiple","placeholder"])])}]])},data:()=>({}),computed:{operatorOptions(){const e=this.itemConfig.type;return e&&"text"!==e?"selections"===e?this.itemConfig.is_singular_value?{in:"includes in",not_in:"not includes in"}:this.itemConfig.is_multiple?{in:"includes in any of",not_in:"not includes in any",in_all:"includes all of",not_in_all:"includes none of"}:"waiting_for_reply"===this.itemConfig.option_key?{"=":"equal","!=":"does not equal"}:{in:"includes in",not_in:"not includes in"}:"dates"===e?{before:"before",after:"after",date_equal:"in the date",days_before:"before days",days_within:"within days",date_range:"within dates"}:{}:"tickets"===this.itemConfig.provider?{contains:"includes",not_contains:"does not includes"}:{"=":"equal","!=":"does not equal",contains:"includes",not_contains:"does not includes"}},itemConfig(){const e=this.item.source.join("-");return this.filterLabels[e]||{}}},methods:{closingSource(e){e||setTimeout(()=>{jQuery(this.$el).find(".fs_filter_operator .el-select").trigger("click")},300)},maybeOperatorSelected(e){!e&&this.item.operator&&("dates"==this.itemConfig.type&&(this.item.value=""),setTimeout(()=>{jQuery(this.$el).find(".fs_filter_value input").focus()},200))},removeItem(){this.$emit("removeItem")}},mounted(){if(this.itemConfig.is_multiple&&!Vq(this.item.value)&&(this.item.value=[]),!this.item.operator){const e=Object.keys(this.operatorOptions);e.length&&(this.item.operator=e[0],jQuery(this.$el).find(".fs_filter_operator .el-select").trigger("click"))}}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A,l=oC,c=Zl("option-selector"),d=KI;return Hd(),jd("tr",sie,[eu("td",nie,[su(fe(e.ucFirst(n.itemConfig.provider))+" ",1),t[8]||(t[8]=eu("span",{class:"fs_provider_separator"},"/",-1)),su(" "+fe(n.itemConfig.label),1)]),eu("td",oie,[tu(r,{class:"fs_select_field",placeholder:e.$t("Select Operator"),onVisibleChange:n.maybeOperatorSelected,modelValue:a.item.operator,"onUpdate:modelValue":t[0]||(t[0]=e=>a.item.operator=e)},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(n.operatorOptions,(e,t)=>(Hd(),qd(o,{key:t,value:t,label:e},null,8,["value","label"]))),128))],void 0),_:1},8,["placeholder","onVisibleChange","modelValue"])]),eu("td",rie,[n.itemConfig.type&&"text"!==n.itemConfig.type?ou("",!0):(Hd(),qd(l,{key:0,class:"fs_text_input",placeholder:e.$t("Condition Value"),type:"text",modelValue:a.item.value,"onUpdate:modelValue":t[1]||(t[1]=e=>a.item.value=e)},null,8,["placeholder","modelValue"])),"selections"===n.itemConfig.type?(Hd(),jd(Pd,{key:1},["options_selector"===n.itemConfig.component?(Hd(),qd(c,{key:0,modelValue:a.item.value,"onUpdate:modelValue":t[2]||(t[2]=e=>a.item.value=e),field:{is_multiple:n.itemConfig.is_multiple,size:"mini",option_key:n.itemConfig.option_key}},null,8,["modelValue","field"])):n.itemConfig.options?(Hd(),qd(r,{key:1,class:"fs_select_field",multiple:n.itemConfig.is_multiple,placeholder:e.$t("Select Option"),modelValue:a.item.value,"onUpdate:modelValue":t[3]||(t[3]=e=>a.item.value=e)},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(n.itemConfig.options,(e,t)=>(Hd(),qd(o,{key:t,value:t,label:e},null,8,["value","label"]))),128))],void 0),_:1},8,["multiple","placeholder","modelValue"])):(Hd(),jd("pre",lie,fe(n.itemConfig),1))],64)):"dates"===n.itemConfig.type?(Hd(),jd(Pd,{key:2},["days_before"===a.item.operator||"days_within"===a.item.operator?(Hd(),qd(l,{key:0,class:"fs_text_input",type:"number",placeholder:e.$t("Days"),modelValue:a.item.value,"onUpdate:modelValue":t[4]||(t[4]=e=>a.item.value=e)},null,8,["placeholder","modelValue"])):"date_range"===a.item.operator?(Hd(),qd(d,{key:1,"value-format":"YYYY-MM-DD",modelValue:a.item.value,"onUpdate:modelValue":t[5]||(t[5]=e=>a.item.value=e),type:"daterange","range-separator":e.$t("To"),"start-placeholder":e.$t("Start"),"end-placeholder":e.$t("End"),"unlink-panels":!0},null,8,["modelValue","range-separator","start-placeholder","end-placeholder"])):(Hd(),qd(d,{key:2,"value-format":"YYYY-MM-DD",modelValue:a.item.value,"onUpdate:modelValue":t[6]||(t[6]=e=>a.item.value=e)},null,8,["modelValue"]))],64)):ou("",!0)]),eu("td",null,[eu("div",{class:"fs_delete_condition_btn",onClick:t[7]||(t[7]=e=>n.removeItem()),type:"danger",plain:""},[...t[9]||(t[9]=[eu("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M11.25 3H15V4.5H13.5V14.25C13.5 14.4489 13.421 14.6397 13.2803 14.7803C13.1397 14.921 12.9489 15 12.75 15H2.25C2.05109 15 1.86032 14.921 1.71967 14.7803C1.57902 14.6397 1.5 14.4489 1.5 14.25V4.5H0V3H3.75V0.75C3.75 0.551088 3.82902 0.360322 3.96967 0.21967C4.11032 0.0790176 4.30109 0 4.5 0H10.5C10.6989 0 10.8897 0.0790176 11.0303 0.21967C11.171 0.360322 11.25 0.551088 11.25 0.75V3ZM12 4.5H3V13.5H12V4.5ZM5.25 6.75H6.75V11.25H5.25V6.75ZM8.25 6.75H9.75V11.25H8.25V6.75ZM5.25 1.5V3H9.75V1.5H5.25Z",fill:"#525866"})],-1)])])])])}]])},props:["items"],data(){return{addVisible:!1,new_item:[],filterOptions:this.appVars.advanced_filter_options}},computed:{filterLabels(){const e={};return qK(this.filterOptions,t=>{qK(t.children,a=>{e[t.value+"-"+a.value]={provider:t.value,...a}})}),e}},methods:{maybeSelected(){if(2===this.new_item.length){let e="";"customer"===this.new_item[0]&&"agent"!==this.new_item[1]&&(e="contains");let t=this.new_item,a=!1;qK(this.items,e=>{e.source[0]===t[0]&&e.source[1]===t[1]&&(a=!0)}),a?this.$notify({type:"error",message:this.$t("Selected item already selected"),position:"bottom-right"}):this.items.push({source:[...this.new_item],operator:e,value:""}),this.addVisible=!1,this.new_item=[]}},removeItem(e){this.items.splice(e,1),this.items.length||this.$emit("maybeRemove")},deleteSection(){this.items.splice(0,this.items.length),this.$emit("maybeRemove")}}},[["render",function(e,t,a,i,s,n){const o=Zl("rich-filter-item"),r=iO,l=vk,c=$B;return Hd(),jd("div",cie,[eu("div",die,[a.items.length?(Hd(),jd("table",uie,[eu("tbody",pie,[(Hd(!0),jd(Pd,null,sc(a.items,(e,t)=>(Hd(),qd(o,{onRemoveItem:e=>n.removeItem(t),key:t,filterLabels:n.filterLabels,item:e},null,8,["onRemoveItem","filterLabels","item"]))),128))])])):ou("",!0),0===Object.keys(a.items).length?(Hd(),jd("div",hie,[tu(c,{placement:"right",width:"450",visible:s.addVisible,"onUpdate:visible":t[2]||(t[2]=e=>s.addVisible=e),trigger:"manual"},{reference:br(()=>[tu(l,{class:"fs_add_action_property",onClick:t[1]||(t[1]=e=>s.addVisible=!s.addVisible),size:"small"},{default:br(()=>[t[9]||(t[9]=eu("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[eu("path",{d:"M9.25 9.25V4.75H10.75V9.25H15.25V10.75H10.75V15.25H9.25V10.75H4.75V9.25H9.25Z",fill:"#0E121B"})],-1)),su(" "+fe(e.$t("Add")),1)],void 0),_:1})]),default:br(()=>[tu(r,{onChange:n.maybeSelected,style:{width:"100%"},options:s.filterOptions,modelValue:s.new_item,"onUpdate:modelValue":t[0]||(t[0]=e=>s.new_item=e)},null,8,["onChange","options","modelValue"])],void 0),_:1},8,["visible"]),eu("div",{class:"fs_delete_condition_btn",role:"button",tabindex:"0",onClick:t[3]||(t[3]=(...e)=>n.deleteSection&&n.deleteSection(...e)),onKeydown:[t[4]||(t[4]=Rh(Th((...e)=>n.deleteSection&&n.deleteSection(...e),["prevent"]),["enter"])),t[5]||(t[5]=Rh(Th((...e)=>n.deleteSection&&n.deleteSection(...e),["prevent"]),["space"]))]},[...t[10]||(t[10]=[eu("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M11.25 3H15V4.5H13.5V14.25C13.5 14.4489 13.421 14.6397 13.2803 14.7803C13.1397 14.921 12.9489 15 12.75 15H2.25C2.05109 15 1.86032 14.921 1.71967 14.7803C1.57902 14.6397 1.5 14.4489 1.5 14.25V4.5H0V3H3.75V0.75C3.75 0.551088 3.82902 0.360322 3.96967 0.21967C4.11032 0.0790176 4.30109 0 4.5 0H10.5C10.6989 0 10.8897 0.0790176 11.0303 0.21967C11.171 0.360322 11.25 0.551088 11.25 0.75V3ZM12 4.5H3V13.5H12V4.5ZM5.25 6.75H6.75V11.25H5.25V6.75ZM8.25 6.75H9.75V11.25H8.25V6.75ZM5.25 1.5V3H9.75V1.5H5.25Z",fill:"#525866"})],-1)])],32)])):(Hd(),jd("div",gie,[tu(c,{placement:"right",width:"450",visible:s.addVisible,"onUpdate:visible":t[8]||(t[8]=e=>s.addVisible=e),trigger:"manual"},{reference:br(()=>[tu(l,{class:"fs_add_action_property",onClick:t[7]||(t[7]=e=>s.addVisible=!s.addVisible),size:"small"},{default:br(()=>[t[11]||(t[11]=eu("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[eu("path",{d:"M9.25 9.25V4.75H10.75V9.25H15.25V10.75H10.75V15.25H9.25V10.75H4.75V9.25H9.25Z",fill:"#0E121B"})],-1)),su(" "+fe(e.$t("Add")),1)],void 0),_:1})]),default:br(()=>[tu(r,{onChange:n.maybeSelected,style:{width:"100%"},options:s.filterOptions,modelValue:s.new_item,"onUpdate:modelValue":t[6]||(t[6]=e=>s.new_item=e)},null,8,["onChange","options","modelValue"])],void 0),_:1},8,["visible"])]))])])}]]),fie={name:"Modal",props:{show:{type:Boolean},title:{type:String,default:()=>""}}},_ie={key:0,class:"fs-modal-mask"},bie={class:"fs-modal-wrapper"},vie={class:"fs-modal-container"},yie={class:"fs-modal-header"},Sie={class:"fs-modal-title"},xie={class:"fs-modal-body"},wie={class:"fs-modal-footer"};const Eie=dH(fie,[["render",function(e,t,a,i,s,n){const o=vk;return Hd(),qd(ip,{name:"fs-modal"},{default:br(()=>[a.show?(Hd(),jd("div",_ie,[eu("div",bie,[eu("div",vie,[eu("div",yie,[oc(e.$slots,"header",{},()=>[eu("h3",Sie,fe(a.title),1),tu(o,{style:{color:"red",border:"none","font-size":"20px"},icon:"Close",onClick:t[0]||(t[0]=t=>e.$emit("close"))})])]),eu("div",xie,[oc(e.$slots,"body")]),eu("div",wie,[oc(e.$slots,"footer")])])])])):ou("",!0)],void 0),_:3})}]]),Cie={name:"TicketFilters",components:{IconPack:$z},props:{disabled:{type:Boolean,default:!1}},emits:["apply-filter"],data:()=>({filterPopoverVisible:!1,selectedCategory:null,selectedOptions:{}}),computed:{filterCategories(){var e,t,a,i,s,n,o;return[{value:"mailbox_id",label:this.$t("Inbox"),icon:"filtersBusinessBox",isMultiple:!0,options:((null==(e=this.appVars)?void 0:e.mailboxes)||[]).map(e=>({value:e.id,label:e.name,filterType:"mailbox_id",filterValue:e.id}))},{value:"product_id",label:this.$t("Product"),icon:"filtersProduct",isMultiple:!0,options:((null==(t=this.appVars)?void 0:t.support_products)||[]).map(e=>({value:e.id,label:e.title,filterType:"product_id",filterValue:e.id}))},{value:"agent_id",label:this.$t("Support Staff"),icon:"filtersAgentIcon",isMultiple:!0,options:[{value:"unassigned",label:this.$t("Un-Assigned"),filterType:"agent_id",filterValue:"unassigned"},...((null==(a=this.appVars)?void 0:a.support_agents)||[]).map(e=>({value:e.id,label:e.full_name,filterType:"agent_id",filterValue:e.id}))]},{value:"agent_group",label:this.$t("Agent Group"),icon:"agentGroupIcon",isMultiple:!0,options:((null==(i=this.appVars)?void 0:i.agent_groups)||[]).map(e=>({value:e.id,label:e.title,filterType:"agent_group",filterValue:e.id}))},{value:"priority",label:this.$t("Admin Priority"),icon:"filtersAdminPriority",isMultiple:!0,options:Object.entries((null==(s=this.appVars)?void 0:s.admin_priorities)||{}).map(([e,t])=>({value:e,label:t,filterType:"priority",filterValue:e}))},{value:"client_priority",label:this.$t("Customer Priority"),icon:"filtersCustomerPriority",isMultiple:!0,options:Object.entries((null==(n=this.appVars)?void 0:n.client_priorities)||{}).map(([e,t])=>({value:e,label:t,filterType:"client_priority",filterValue:e}))},{value:"ticket_tags",label:this.$t("Tags"),icon:"filtersTagIcon",isMultiple:!0,options:((null==(o=this.appVars)?void 0:o.ticket_tags)||[]).map(e=>({value:e.id,label:e.title,filterType:"ticket_tags",filterValue:e.id}))}]},filteredCategories(){return this.filterCategories},filteredOptions(){return this.selectedCategory?this.selectedCategory.options:[]}},methods:{selectCategory(e){this.selectedCategory=e},goBackToCategories(){this.selectedCategory=null},toggleMultiOption(e){const t=this.selectedCategory.value;this.selectedOptions[t]||(this.selectedOptions[t]=[]);const a=this.selectedOptions[t].findIndex(t=>t.value===e.value);a>-1?this.selectedOptions[t].splice(a,1):this.selectedOptions[t].push(e);const i=this.selectedOptions[t].map(e=>e.filterValue);this.$emit("apply-filter",e.filterType,i)},selectSingleOption(e){const t=this.selectedCategory.value;this.selectedOptions[t]=[e],this.$emit("apply-filter",e.filterType,e.filterValue),this.filterPopoverVisible=!1,this.selectedCategory=null},isOptionSelected(e){const t=this.selectedCategory.value;return!!this.selectedOptions[t]&&this.selectedOptions[t].some(t=>t.value===e.value)},isSingleOptionSelected(e){var t,a;const i=this.selectedCategory.value;return(null==(a=null==(t=this.selectedOptions[i])?void 0:t[0])?void 0:a.value)===e.value||!1},clearAllSelections(){this.selectedOptions={}},clearFilterSelection(e){this.selectedOptions[e]&&delete this.selectedOptions[e]},updateFilterSelection(e,t){const a=this.filterCategories.find(t=>t.value===e);a&&(Array.isArray(t)&&t.length>0?this.selectedOptions[e]=t.map(t=>a.options.find(e=>e.value==t)||{value:t,label:t,filterType:e,filterValue:t}):delete this.selectedOptions[e])}}},kie={class:"fs_custom_filter_container"},Tie={class:"fs_filter_panels"},Aie={key:0,class:"fs_filter_left_panel"},Rie={class:"fs_filter_categories"},Oie=["onClick"],Nie={key:1,class:"fs_filter_right_panel"},Iie={class:"fs_filter_header"},Die={class:"fs_category_title"},Mie={class:"fs_filter_options"},Lie=["onClick"],Pie=["onClick"];const Fie=dH(Cie,[["render",function(e,t,a,i,s,n){const o=Zl("IconPack"),r=vk,l=wR,c=UR,d=$B,u=KE;return Hd(),jd("div",kie,[tu(u,{effect:"dark",content:e.$t("Filter"),placement:"top",trigger:"hover"},{default:br(()=>[eu("span",null,[tu(d,{placement:"bottom-start",width:"600",visible:s.filterPopoverVisible,"onUpdate:visible":t[1]||(t[1]=e=>s.filterPopoverVisible=e),trigger:"manual","popper-class":"fs_filter_dropdown"},{reference:br(()=>[tu(r,{onClick:t[0]||(t[0]=e=>s.filterPopoverVisible=!s.filterPopoverVisible),class:"fs_outline_btn",disabled:a.disabled},{default:br(()=>[tu(o,{iconKey:"filter",width:20,height:20})],void 0),_:1},8,["disabled"])]),default:br(()=>[eu("div",Tie,[s.selectedCategory?ou("",!0):(Hd(),jd("div",Aie,[eu("div",Rie,[(Hd(!0),jd(Pd,null,sc(n.filteredCategories,e=>(Hd(),jd("div",{key:e.value,onClick:t=>n.selectCategory(e),class:"fs_filter_category"},[tu(o,{iconKey:e.icon,width:20,height:20,class:"fs_category_icon"},null,8,["iconKey"]),su(" "+fe(e.label),1)],8,Oie))),128))])])),s.selectedCategory?(Hd(),jd("div",Nie,[eu("div",Iie,[tu(r,{onClick:n.goBackToCategories,text:"",class:"fs_back_button"},{default:br(()=>[tu(o,{iconKey:"backIcon",width:18,height:18})],void 0),_:1},8,["onClick"]),eu("span",Die,fe(s.selectedCategory.label),1)]),eu("div",Mie,[s.selectedCategory.isMultiple?(Hd(!0),jd(Pd,{key:0},sc(n.filteredOptions,e=>(Hd(),jd("div",{key:e.value,onClick:t=>n.toggleMultiOption(e),class:"fs_filter_option"},[tu(l,{"model-value":n.isOptionSelected(e),class:"fs_option_checkbox"},null,8,["model-value"]),su(" "+fe(e.label),1)],8,Lie))),128)):(Hd(!0),jd(Pd,{key:1},sc(n.filteredOptions,e=>(Hd(),jd("div",{key:e.value,onClick:t=>n.selectSingleOption(e),class:"fs_filter_option"},[tu(c,{"model-value":n.isSingleOptionSelected(e),class:"fs_option_radio"},null,8,["model-value"]),su(" "+fe(e.label),1)],8,Pie))),128))])])):ou("",!0)])],void 0),_:1},8,["visible"])])],void 0),_:1},8,["content"])])}]]),$ie=["src","alt"],Bie={key:1},Vie={key:2},Uie=["href","target","rel"];const Hie=dH({name:"NarrowPromo",props:{heading:{type:String,default:""},description:{type:String,default:""},buttonText:{type:String,default:""},buttonUrl:{type:String,default:"https://fluentsupport.com"},buttonTarget:{type:String,default:"_blank"},buttonRel:{type:String,default:"noopener"},buttonClass:{type:String,default:"el-button fs_filled_btn"},imageSrc:{type:String,default:""},customClass:{type:String,default:""}}},[["render",function(e,t,a,i,s,n){return Hd(),jd("div",{class:ne(["fs_narrow_promo",a.customClass])},[a.imageSrc?(Hd(),jd("img",{key:0,src:a.imageSrc,alt:a.heading},null,8,$ie)):ou("",!0),a.heading?(Hd(),jd("h3",Bie,fe(a.heading),1)):ou("",!0),a.description?(Hd(),jd("p",Vie,fe(a.description),1)):ou("",!0),a.buttonText?(Hd(),jd("a",{key:3,href:a.buttonUrl,target:a.buttonTarget,rel:a.buttonRel,class:ne(a.buttonClass)},fe(a.buttonText),11,Uie)):ou("",!0),oc(e.$slots,"default")],2)}]]),zie={key:0,class:"fs_inline_avatars avatars_small fs_live_activity_avatars"},Yie=["title","src","alt"],Gie={class:"fs_live_activity_popover_content"},Wie=["title","src","alt"],jie={class:"fs_live_activity_count"};const qie=[{width:"52px"},{width:"1fr"},{key:"agent",width:"110px"},{key:"product",width:"130px"},{key:"response_count",width:"100px"},{key:"client_priority",width:"110px"},{key:"waiting_time",width:"120px"},{key:"tags",width:"140px"},{key:"status",width:"90px"},{key:"mailbox",width:"130px"}],Kie={name:"AllTickets",components:{IconPack:$z,Modal:Eie,Pagination:dq,AddTicket:iae,TicketTags:wH,TicketBulkActions:tie,RichFilter:mie,LabelSearchDrawer:mae,CustomTicketFilters:Fie,NarrowPromo:Hie,LiveActivityAvatars:dH({name:"LiveActivityAvatars",props:{activities:{type:Array,default:()=>[]}}},[["render",function(e,t,a,i,s,n){const o=$B;return a.activities&&a.activities.length?(Hd(),jd("span",zie,[eu("span",null,[(Hd(!0),jd(Pd,null,sc(a.activities.slice(0,2),e=>(Hd(),jd("img",{key:e.id,title:e.full_name||e.name,src:e.photo,alt:e.full_name||"Agent"},null,8,Yie))),128))]),a.activities.length>2?(Hd(),qd(o,{key:0,placement:"top",trigger:"hover","popper-class":"fs_popover fs_live_activity_popover"},{reference:br(()=>[eu("span",jie," +"+fe(a.activities.length-2),1)]),default:br(()=>[eu("div",Gie,[(Hd(!0),jd(Pd,null,sc(a.activities.slice(1),e=>(Hd(),jd("img",{key:"more-"+e.id,title:e.full_name||e.name,src:e.photo,alt:e.full_name||"Agent"},null,8,Wie))),128))])],void 0),_:1})):ou("",!0)])):ou("",!0)}]])},data:()=>({add_ticket_modal:!1,add_response_modal:!1,show_filters:!0,openTicketInNewTab:!1,filterPopoverVisible:!1,selectedFilterPath:[],show_bulk_actions:!0,imageErrors:{},openLabelSearchDrawer:!1,isLabelSearchOpen:!1,saving:!1}),computed:{...Aj(Dj,["tickets","pagination","ticket_statuses_group","loading","first_time_loading","app_ready","appReady","doing_bulk","labelSearchList","activeFilters","selectAllChecked","isIndeterminate"]),...(Xie=Dj,Qie=["filters","search","order_by","order_type","filter_type","advanced_filters","ticket_selections","searchActive","fieldVisibility","gridFieldVisibility","ticketLayout","viewMode","label_search_id","label_search_name"],Array.isArray(Qie)?Qie.reduce((e,t)=>(e[t]={get(){return Xie(this.$pinia)[t]},set(e){return Xie(this.$pinia)[t]=e}},e),{}):Object.keys(Qie).reduce((e,t)=>(e[t]={get(){return Xie(this.$pinia)[Qie[t]]},set(e){return Xie(this.$pinia)[Qie[t]]=e}},e),{})),filterColumns(){return{id:this.$t("Ticket ID"),product_id:this.$t("Product ID"),priority:this.$t("Priority"),client_priority:this.$t("Client Priority"),title:this.$t("Title"),last_agent_response:this.$t("Last Agent Response"),last_customer_response:this.$t("Last Customer Response"),waiting_since:this.$t("Waiting Time"),response_count:this.$t("Response Count"),created_at:this.$t("Created At")}},fieldVisibilityOptions(){return[{key:"title",label:this.$t("Ticket Title")},{key:"author",label:this.$t("Author Name")},{key:"tags",label:this.$t("Tags")},{key:"source",label:this.$t("Source")},{key:"description",label:this.$t("Description")},{key:"response_count",label:this.$t("Response Count")},{key:"product",label:this.$t("Product")},{key:"mailbox",label:this.$t("Mailbox")},{key:"agent",label:this.$t("Assigned Agent")},{key:"status",label:this.$t("Status")},{key:"client_priority",label:this.$t("Client Priority")},{key:"waiting_time",label:this.$t("Waiting Time")}]},gridVisibilityOptions(){return[{key:"agent",label:this.$t("Assigned Agent")},{key:"tags",label:this.$t("Tags")},{key:"status",label:this.$t("Status")},{key:"response_count",label:this.$t("Response Count")},{key:"product",label:this.$t("Product")},{key:"mailbox",label:this.$t("Mailbox")},{key:"client_priority",label:this.$t("Client Priority")},{key:"waiting_time",label:this.$t("Waiting Time")},{key:"author",label:this.$t("Author Name")},{key:"description",label:this.$t("Description")},{key:"source",label:this.$t("Source")}]},activeVisibility(){return"grid"===this.ticketLayout?this.gridFieldVisibility:this.fieldVisibility},activeVisibilityOptions(){return"grid"===this.ticketLayout?this.gridVisibilityOptions:this.fieldVisibilityOptions},gridTemplateColumns(){const e=this.gridFieldVisibility;return qie.filter(t=>!t.key||e[t.key]).map(e=>e.width).join(" ")}},watch:{"$route.query.agent_id"(e,t){const a=Dj();a.app_ready&&"view_ticket"!==this.$route.name&&e!==t&&(a.filters.agent_id=e,this.fetchTickets())},"$route.query.watcher"(e,t){const a=Dj();a.app_ready&&"view_ticket"!==this.$route.name&&e!==t&&(a.filters.watcher=e,this.fetchTickets())}},methods:{...function(e,t){return Array.isArray(t)?t.reduce((t,a)=>(t[a]=function(...t){return e(this.$pinia)[a](...t)},t),{}):Object.keys(t).reduce((a,i)=>(a[i]=function(...a){return e(this.$pinia)[t[i]](...a)},a),{})}(Dj,{storeSetStatus:"setStatus",storeResetFilters:"resetFilters",storeResetWithOutFetch:"resetWithOutFetch",storeClearAllFilters:"clearAllFilters",storeResetAdvancedFilters:"resetAdvancedFilters",storeHandleCustomFilter:"handleCustomFilter",storeHandleSelectAll:"handleSelectAll",storeHandleTicketSelection:"handleTicketSelection",storeDeleteSelected:"deleteSelected",storeCloseSelected:"closeSelected",storeHandleSaveSearch:"handleSaveSearch",storeFetchLabelSearches:"fetchLabelSearches",storeHandleLabelSearchDelete:"handleLabelSearchDelete",storeHandleAdvanceSearch:"handleAdvanceSearch",storeHandleLabelSearchEdit:"handleLabelSearchEdit"}),closeSavedSearchListModal(){this.openLabelSearchDrawer=!1},async fetchTickets(){const e=Dj();if(!e.app_ready)return!1;try{await e.fetchTickets(),this.saveFilters()}catch(PI){this.$handleError(PI)}},refreshTickets(){Dj().invalidateCache(),this.fetchTickets()},addConditionGroup(){this.advanced_filters.push([])},maybeRemoveGroup(e){this.advanced_filters.length>1&&this.advanced_filters.splice(e,1)},gotToTicket(e,t){t.target&&"a"===t.target.tagName.toLowerCase()||this.$router.push({name:"view_ticket",params:{ticket_id:e.id}})},goToTicketView(e,t){if(t.ctrlKey||t.metaKey){const a=this.$router.resolve({name:"view_ticket",params:{ticket_id:e.id}});window.open(a.href,"_blank"),t.preventDefault(),t.stopPropagation()}},handleImageError(e){e.target.style.display="none"},setFromSaveFilters(){const e=Dj();e.filter_type=this.$getData("tickets_filter_type","simple"),e.ticket_statuses_group=this.appVars.ticket_statuses_group||{};const t=this.$getData("tickets_filter",{});qK(t,(t,a)=>{e.filters[a]=t});const a=this.$getData("tickets_pref",!1);a&&(e.order_by=a.order_by,e.order_type=a.order_type,e.pagination.per_page=a.per_page,e.pagination.current_page=a.current_page,e.search=a.search);const i=this.$getData("tickets_advanced_filters",[[]]);i&&(e.advanced_filters=i);const s=this.$getData("tickets_show_bulk_actions","yes");this.show_bulk_actions="no"!==s;const n=this.$getData("tickets_field_visibility",null);n&&(e.fieldVisibility={...e.fieldVisibility,...n});const o=this.$getData("tickets_grid_field_visibility",null);o&&(e.gridFieldVisibility={...e.gridFieldVisibility,...o});const r=this.$getData("tickets_layout","default");e.ticketLayout=r,this.openTicketInNewTab="yes"===this.appVars.open_ticket_in_new_tab,e.appReady=!0},saveFilters(){const e=Dj();this.$saveData("tickets_pref",{order_by:e.order_by,order_type:e.order_type,per_page:e.pagination.per_page,search:e.search,current_page:e.pagination.current_page}),this.$saveData("tickets_filter_type",e.filter_type),"advanced"===e.filter_type?this.$saveData("tickets_advanced_filters",e.advanced_filters):this.$saveData("tickets_filter",e.filters)},changeOrderType(){"DESC"===this.order_type?this.order_type="ASC":this.order_type="DESC",this.fetchTickets()},getWaitingStatus(e){return"closed"==e.status?"":"new"===e.status?"new":e.last_agent_response?e.last_customer_response?this.$dayjs(e.last_agent_response).isAfter(e.last_customer_response,"seconds")?"":"waiting":"":"waiting"},getLastResponse(e){return this.$dayjs(e.last_agent_response).isAfter(e.last_customer_response,"seconds")?this.$timeDiff(e.last_agent_response):this.$timeDiff(e.last_customer_response)},handleSelectionChange(e){const t=[];qK(e,e=>{t.push(e.id)}),this.ticket_selections=t},deleteSelected(){this.storeDeleteSelected().then(e=>{e&&e.success&&this.fetchTickets()}).catch(e=>{this.$handleError(e)})},closeSelected(){this.storeCloseSelected().then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetchTickets()}).catch(e=>{this.$handleError(e)})},getExcerpt(e){let t=e.preview_response?e.preview_response.content:e.content;return t?t.replace(/<\/?("[^"]*"|'[^']*'|[^>])*(>|$)/g,""):""},resetFilters(){this.storeResetFilters(this.$route.query),this.fetchTickets()},resetWithOutFetch(){this.storeResetWithOutFetch()},getExcerptBox:e=>e&&"string"==typeof e?e.substring(0,3).padEnd(5,"."):"",countAdvancedFilterData:e=>e.reduce((e,t)=>{if(Array.isArray(t)){return e+t.filter(e=>"string"==typeof e.value?""!==e.value.trim():!!Array.isArray(e.value)&&e.value.some(e=>"string"==typeof e&&""!==e.trim())).length}return e},0),handleSaveSearch(){const e=Dj();if(!e.label_search_name||"advanced"===e.filter_type&&!e.advanced_filters.length)return void this.$notify({message:this.$t("Please provide a valid name or filter criteria."),type:"warning",position:"bottom-right"});this.isLabelSearchOpen=!1,e.ticket_selections=[],e.loading=!0;let t={filter_type:e.filter_type,label_search_name:e.label_search_name};"advanced"===e.filter_type&&this.has_pro&&(t.advanced_filters=JSON.stringify(e.advanced_filters)),e.label_search_id&&(t.id=e.label_search_id),this.storeHandleSaveSearch(t).then(t=>{this.$notify({message:t.message,type:"success",position:"bottom-right"}),e.label_search_id=null,e.loading=!1}).catch(e=>{this.$handleError(e)}).always(()=>{})},fetchLabelSearch(){this.openLabelSearchDrawer=!0,this.storeFetchLabelSearches().always(()=>{Dj().loading=!1}).catch(e=>{this.$handleError(e)})},handleAdvanceSearch(e){this.storeHandleAdvanceSearch(e),this.openLabelSearchDrawer=!1,this.fetchTickets()},handleLabelSearchEdit(e){this.storeHandleLabelSearchEdit(e),this.openLabelSearchDrawer=!1},openSaveSearchModal(){this.isLabelSearchOpen=!0,this.label_search_name=this.label_search_id?this.label_search_name:""},handleLabelSearchDelete(e){this.storeHandleLabelSearchDelete(e).then(e=>{e&&this.$notify({message:e.message,type:"success",position:"bottom-right"})}).catch(e=>{this.$handleError(e)})},handleKeydown(e){const{metaKey:t,altKey:a,shiftKey:i,code:s}=e;if(!t||!a||"KeyI"!==s){if(t&&i&&("ArrowRight"===s||"ArrowLeft"===s)){e.preventDefault();const t=Object.keys(this.ticket_statuses_group||{});if(0===t.length)return;const a=t.indexOf(this.filters.status_type);let i;return i="ArrowRight"===s?(a+1)%t.length:(a-1+t.length)%t.length,void this.setStatus(t[i])}if(t&&a){e.preventDefault();const t={KeyN:()=>{this.add_ticket_modal=!0},KeyQ:()=>{this.refreshTickets()},KeyF:()=>{this.toggleAdvancedFilter("advanced"!==this.filter_type)},KeyR:()=>{this.resetAdvancedFilters()},KeyW:()=>{this.filters.waiting_for_reply="yes"!==this.filters.waiting_for_reply&&"yes",this.maybeChangeWaitingReply()}}[s];t&&t()}}},handleTicketSelection(e){this.storeHandleTicketSelection(e)},maybeChangeWaitingReply(){this.fetchTickets()},toggleWaitingForReply(){this.filters.waiting_for_reply="yes"!==this.filters.waiting_for_reply&&"yes",this.maybeChangeWaitingReply()},openSearch(){this.searchActive=!0,this.$nextTick(()=>{this.$refs.searchInput&&this.$refs.searchInput.focus()})},closeSearch(){this.searchActive=!1,this.search="",this.fetchTickets()},setStatus(e){this.storeSetStatus(e),this.fetchTickets()},toggleAdvancedFilter(e){this.has_pro&&(e&&(this.search="",this.searchActive=!1),this.filter_type=e?"advanced":"simple",this.saveFilters(),e||this.fetchTickets())},handleFilterSelect(e){this.showFilterSelection(e)},showFilterSelection(e){switch(e){case"status":this.showStatusFilter();break;case"priority":this.showPriorityFilter();break;case"client_priority":this.showClientPriorityFilter();break;case"agent_id":this.showAgentFilter();break;case"product_id":this.showProductFilter();break;case"mailbox_id":this.showMailboxFilter();break;case"ticket_tags":this.showTagsFilter()}},showFilterDialog(e,t,a){let i="";xB({title:this.$t("title"),message:Lu("div",[Lu("p",{style:"margin-bottom: 10px;"},this.$t("Select an option:")),Lu(_A,{modelValue:i,placeholder:this.$t("Please select"),style:"width: 100%","onUpdate:modelValue":e=>{i=e}},{default:()=>Object.entries(t).map(([e,t])=>Lu(bA,{key:e,label:t,value:e}))})]),showCancelButton:!0,confirmButtonText:this.$t("Apply"),cancelButtonText:this.$t("Cancel"),beforeClose:(e,t,s)=>{"confirm"===e?i?(a(i),s()):cB.warning(this.$t("Please select an option")):s()}}).catch(()=>{})},showStatusFilter(){const e=this.appVars.ticket_statuses||{},t=Object.keys(this.ticket_statuses_group||{}).reduce((t,a)=>(t[a]=e[a]||this.$t(a),t),{});this.showFilterDialog("Select Status",t,e=>{this.filters.status_type=e,this.fetchTickets()})},showPriorityFilter(){var e;const t=(null==(e=this.appVars)?void 0:e.admin_priorities)||{low:"Low",normal:"Normal",medium:"Medium",high:"High",critical:"Critical"};this.showFilterDialog("Select Priority",t,e=>{this.filters.priority=e,this.fetchTickets()})},showClientPriorityFilter(){var e;const t=(null==(e=this.appVars)?void 0:e.client_priorities)||{low:"Low",normal:"Normal",medium:"Medium",high:"High",critical:"Critical"};this.showFilterDialog("Select Client Priority",t,e=>{this.filters.client_priority=e,this.fetchTickets()})},showAgentFilter(){var e;const t=(null==(e=this.appVars)?void 0:e.support_agents)||[],a={unassigned:this.$t("Un-Assigned"),...t.reduce((e,t)=>(e[t.id]=t.full_name,e),{})};this.showFilterDialog("Select Agent",a,e=>{this.filters.agent_id=e,this.fetchTickets()})},showProductFilter(){var e;const t=((null==(e=this.appVars)?void 0:e.support_products)||[]).reduce((e,t)=>(e[t.id]=t.title,e),{});this.showFilterDialog("Select Product",t,e=>{this.filters.product_id=[e],this.fetchTickets()})},showMailboxFilter(){var e;const t=((null==(e=this.appVars)?void 0:e.mailboxes)||[]).reduce((e,t)=>(e[t.id]=t.name,e),{});this.showFilterDialog("Select Mailbox",t,e=>{this.filters.mailbox_id=e,this.fetchTickets()})},showTagsFilter(){var e;const t=((null==(e=this.appVars)?void 0:e.ticket_tags)||[]).reduce((e,t)=>(e[t.id]=t.title,e),{});this.showFilterDialog("Select Tags",t,e=>{this.filters.ticket_tags=[parseInt(e)],this.fetchTickets()})},removeFilter(e){"status_type"===e?this.filters.status_type="open":Array.isArray(this.filters[e])?this.filters[e]=[]:delete this.filters[e],this.$refs.customTicketFiltersRef&&this.$refs.customTicketFiltersRef.clearFilterSelection&&this.$refs.customTicketFiltersRef.clearFilterSelection(e),this.fetchTickets()},getFilterLabel(e){return{status_type:this.$t("Status"),priority:this.$t("Priority"),client_priority:this.$t("Client Priority"),agent_id:this.$t("Agent"),product_id:this.$t("Product"),mailbox_id:this.$t("Mailbox"),ticket_tags:this.$t("Tags"),agent_group:this.$t("Agent Group"),waiting_for_reply:this.$t("Waiting For Reply")}[e]||e},getFilterDisplayValue(e,t){var a,i,s,n,o,r,l,c;if(!t)return"";if("status_type"===e)return(this.appVars.ticket_statuses||{})[t]||this.$t(t);if("priority"===e)return Array.isArray(t)?t.map(e=>{var t,a;return(null==(a=null==(t=this.appVars)?void 0:t.admin_priorities)?void 0:a[e])||e}).join(", "):(null==(i=null==(a=this.appVars)?void 0:a.admin_priorities)?void 0:i[t])||t;if("client_priority"===e)return Array.isArray(t)?t.map(e=>{var t,a;return(null==(a=null==(t=this.appVars)?void 0:t.client_priorities)?void 0:a[e])||e}).join(", "):(null==(n=null==(s=this.appVars)?void 0:s.client_priorities)?void 0:n[t])||t;if("agent_id"===e){if(Array.isArray(t))return t.map(e=>{var t,a;if("unassigned"===e)return this.$t("Un-Assigned");const i=null==(a=null==(t=this.appVars)?void 0:t.support_agents)?void 0:a.find(t=>t.id==e);return i?i.full_name:e}).join(", ");if("unassigned"===t)return this.$t("Un-Assigned");const e=null==(r=null==(o=this.appVars)?void 0:o.support_agents)?void 0:r.find(e=>e.id==t);return e?e.full_name:t}if("product_id"===e&&Array.isArray(t))return t.map(e=>{var t,a;const i=null==(a=null==(t=this.appVars)?void 0:t.support_products)?void 0:a.find(t=>t.id==e);return i?i.title:e}).join(", ");if("mailbox_id"===e){if(Array.isArray(t))return t.map(e=>{var t,a;const i=null==(a=null==(t=this.appVars)?void 0:t.mailboxes)?void 0:a.find(t=>t.id==e);return i?i.name:e}).join(", ");const e=null==(c=null==(l=this.appVars)?void 0:l.mailboxes)?void 0:c.find(e=>e.id==t);return e?e.name:t}return"ticket_tags"===e&&Array.isArray(t)?t.map(e=>{var t,a;const i=null==(a=null==(t=this.appVars)?void 0:t.ticket_tags)?void 0:a.find(t=>t.id==e);return i?i.title:e}).join(", "):"agent_group"===e&&Array.isArray(t)?t.map(e=>{var t,a;const i=null==(a=null==(t=this.appVars)?void 0:t.agent_groups)?void 0:a.find(t=>t.id==e);return i?i.title:e}).join(", "):"waiting_for_reply"===e?"yes"===t?this.$t("Yes"):this.$t("No"):t},filterCascaderOptions(){var e,t,a,i,s,n;return[{value:"status",label:this.$t("Status"),children:Object.keys(this.ticket_statuses_group||{}).map(e=>({value:e,label:(this.appVars.ticket_statuses||{})[e]||this.$t(e),filterType:"status",filterValue:e}))},{value:"priority",label:this.$t("Priority"),children:Object.entries((null==(e=this.appVars)?void 0:e.admin_priorities)||{}).map(([e,t])=>({value:e,label:t,filterType:"priority",filterValue:e}))},{value:"client_priority",label:this.$t("Client Priority"),children:Object.entries((null==(t=this.appVars)?void 0:t.client_priorities)||{}).map(([e,t])=>({value:e,label:t,filterType:"client_priority",filterValue:e}))},{value:"agent_id",label:this.$t("Agent"),children:[{value:"unassigned",label:this.$t("Un-Assigned"),filterType:"agent_id",filterValue:"unassigned"},...((null==(a=this.appVars)?void 0:a.support_agents)||[]).map(e=>({value:e.id,label:e.full_name,filterType:"agent_id",filterValue:e.id}))]},{value:"product_id",label:this.$t("Product"),children:((null==(i=this.appVars)?void 0:i.support_products)||[]).map(e=>({value:e.id,label:e.title,filterType:"product_id",filterValue:e.id}))},{value:"mailbox_id",label:this.$t("Mailbox"),children:((null==(s=this.appVars)?void 0:s.mailboxes)||[]).map(e=>({value:e.id,label:e.name,filterType:"mailbox_id",filterValue:e.id}))},{value:"ticket_tags",label:this.$t("Tags"),children:((null==(n=this.appVars)?void 0:n.ticket_tags)||[]).map(e=>({value:e.id,label:e.title,filterType:"ticket_tags",filterValue:e.id}))}]},handleFilterCascaderChange(){if(2===this.selectedFilterPath.length){const[e,t]=this.selectedFilterPath,a=this.filterCascaderOptions.find(t=>t.value===e);if(a){const e=a.children.find(e=>e.value===t);if(e){const{filterType:t,filterValue:a}=e;switch(t){case"status":this.filters.status_type=a;break;case"priority":this.filters.priority=a;break;case"client_priority":this.filters.client_priority=a;break;case"agent_id":this.filters.agent_id=a;break;case"product_id":this.filters.product_id=[a];break;case"mailbox_id":this.filters.mailbox_id=a;break;case"ticket_tags":this.filters.ticket_tags=[parseInt(a)]}this.fetchTickets(),this.filterPopoverVisible=!1,this.selectedFilterPath=[]}}}},getFilterIcon:e=>({mailbox_id:"filtersBusinessBox",product_id:"filtersProduct",agent_id:"filtersAgentIcon",agent_group:"agentGroupIcon",priority:"filtersAdminPriority",client_priority:"filtersCustomerPriority",ticket_tags:"filtersTagIcon",status_type:"circleCheck"}[e]||"filter"),removeData(e){let t=this.$getData("__fluentsupport_data");t&&(t=JSON.parse(t),delete t[e],this.$saveData("__fluentsupport_data",JSON.stringify(t)))},clearAllFilters(){this.storeClearAllFilters(),this.$refs.customTicketFiltersRef&&this.$refs.customTicketFiltersRef.clearAllSelections(),this.removeData("tickets_filter"),this.removeData("tickets_pref"),this.fetchTickets()},resetAdvancedFilters(){this.storeResetAdvancedFilters(),this.removeData("tickets_advanced_filters"),this.removeData("tickets_filter_type"),this.removeData("tickets_pref"),this.fetchTickets()},handleProductFilterChange(){this.$refs.customTicketFiltersRef&&this.$refs.customTicketFiltersRef.updateFilterSelection&&this.$refs.customTicketFiltersRef.updateFilterSelection("product_id",this.filters.product_id),this.fetchTickets()},handleCustomFilter(e,t){this.storeHandleCustomFilter(e,t),this.fetchTickets()},handleSelectAll(e){this.storeHandleSelectAll(e)},handleBulkActionsToggle(e){this.$saveData("tickets_show_bulk_actions",e?"yes":"no"),e||(this.ticket_selections=[])},handleMoreAction(e){"show_bulk"===e?(this.show_bulk_actions=!0,this.handleBulkActionsToggle(!0)):"hide_bulk"===e&&(this.show_bulk_actions=!1,this.handleBulkActionsToggle(!1))},setViewMode(e){this.viewMode=e,this.$saveData("tickets_view_mode",e)},getInitials(e){if(!e)return"?";return(((e.first_name||"")[0]||"")+((e.last_name||"")[0]||"")).toUpperCase()||"?"},saveFieldVisibility(){this.$saveData("tickets_field_visibility",this.fieldVisibility)},saveGridFieldVisibility(){this.$saveData("tickets_grid_field_visibility",this.gridFieldVisibility)},saveActiveVisibility(){"grid"===this.ticketLayout?this.saveGridFieldVisibility():this.saveFieldVisibility()},resetFieldVisibility(){Dj().fieldVisibility={title:!0,author:!0,tags:!0,source:!0,description:!0,response_count:!0,product:!0,mailbox:!0,agent:!0,status:!0,client_priority:!0,waiting_time:!0},this.saveFieldVisibility()},resetGridFieldVisibility(){Dj().gridFieldVisibility={title:!0,author:!0,tags:!0,source:!0,description:!0,response_count:!0,product:!0,mailbox:!1,agent:!0,status:!1,client_priority:!0,waiting_time:!0},this.saveGridFieldVisibility()},resetActiveVisibility(){"grid"===this.ticketLayout?this.resetGridFieldVisibility():this.resetFieldVisibility()},setTicketLayout(e){this.$saveData("tickets_layout",e)}},mounted(){const e=Dj();if(e.app_ready=!0,this.setFromSaveFilters(),this.$route.query.search&&(this.storeResetWithOutFetch(),e.filter_type="simple",e.advanced_filters=[[]]),this.$route.query.agent_id&&(e.filters.agent_id=this.$route.query.agent_id,e.filters.watcher=this.$route.query.watcher),this.$route.query.waiting_for_reply&&(e.filters.waiting_for_reply=this.$route.query.waiting_for_reply),this.$route.query.tags){const t=this.$route.query.tags;e.filters.ticket_tags="object"==typeof t?t.map(e=>parseInt(e)):[parseInt(t)]}this.$route.query.search&&(e.search=this.$route.query.search),this.$route.query.filter_type&&(e.filter_type=this.$route.query.filter_type,e.filters.status_type=this.$route.query.status_type),e.shouldShowCache?(e.first_time_loading=!1,this.$nextTick(()=>{e.fetchTickets(!0,!0).then(()=>this.saveFilters()).catch(()=>{})})):this.$nextTick(()=>{this.fetchTickets()}),this.$setTitle(this.$t("All Tickets")),"yes"===this.appVars.keyboard_shortcuts&&window.addEventListener("keydown",this.handleKeydown)},beforeUnmount(){"yes"===this.appVars.keyboard_shortcuts&&window.removeEventListener("keydown",this.handleKeydown)}};var Xie,Qie;const Zie={class:"fs_all_tickets"},Jie={class:"fs_box_wrapper"},ese={class:"fs_component_header"},tse={class:"fs_component_head"},ase={class:"fs_page_title"},ise={class:"fs_box_actions fs_tickets_actions_btn"},sse={class:"fs_box_header"},nse={class:"fs_box_head fs_status_tabs_wrapper"},ose={key:0,class:"fs_status_tabs"},rse={class:"fs_segmented_control"},lse=["onClick"],cse={class:"fs_filter_controls"},dse={key:0,class:"fs_tk_filter fs_advanced_button"},use={class:"fs_tk_filter fs_table_search_field"},pse={class:"fs_filter_right_section"},hse={class:"fs_popover_item"},gse={class:"fs_popover_title"},mse={class:"fs_radio_blocks"},fse={class:"fs_popover_item"},_se={class:"fs_popover_header"},bse={class:"fs_popover_title"},vse={class:"fs_radio_blocks fs_layout_options"},yse={class:"fs-radio__sublabel"},Sse={class:"fs-radio__sublabel"},xse={class:"fs-radio__sublabel"},wse={class:"fs_popover_header"},Ese={class:"fs_popover_title"},Cse={class:"fs_checkbox_list"},kse={key:0,class:"fs_search_bar_section"},Tse={class:"fs_search_bar_container"},Ase={key:0,class:"fs_active_filters_section"},Rse={class:"fs_active_filters_container"},Ose={class:"fs_filter_icon_name"},Nse={key:0,class:"fs_filter_value"},Ise={key:1,class:"fs_filter_value"},Dse=["onClick"],Mse={class:"fs_filter_actions"},Lse={class:"fs_box_body"},Pse={key:0},Fse={key:0,class:"fs_rich_container"},$se={key:0,class:"fs_rich_wrap"},Bse={class:"fs_rich_filter"},Vse={key:0,class:"fs_filter_separator"},Use={class:"fs_condition_sign"},Hse={class:"fs_condition_sign fs_button"},zse={class:"fs_advanced_filter_actions"},Yse={class:"fs_advanced_filter_actions_left"},Gse={class:"fs_saved_search_btn_text"},Wse={class:"fs_advanced_filter_actions_right"},jse={class:"fs_select_all_container"},qse={class:"fs_select_all"},Kse={class:"fs_total_count"},Xse=["onClick"],Qse={class:"fs_ticket_main_content"},Zse={class:"fs_ticket_left_section"},Jse={class:"fs_ticket_title_row"},ene={class:"fs_ticket_title_group"},tne=["href","onClick"],ane={key:1,class:"fs_ticket_inline_description"},ine=["innerHTML"],sne={key:2,class:"fs_ticket_author"},nne={class:"fs_tk_number"},one={class:"fs_ticket_source_wrap"},rne=["src","alt","onError"],lne={key:1,class:"fs_source_initial_badge"},cne={key:3,class:"fs_status_dot fs_status_dot_new"},dne={key:0,class:"fs_ticket_description"},une=["innerHTML"],pne={class:"fs_ticket_right_section"},hne={class:"fs_ticket_meta_info"},gne={class:"fs_ticket_conversation_count"},mne={class:"fs_ticket_product"},fne={class:"fs_ticket_mailbox"},_ne={class:"fs_ticket_status_group"},bne={class:"fs_ticket_waiting_time"},vne={class:"fs_ticket_agent_badge"},yne={class:"fs_ticket_agent_name"},Sne={key:0,class:"fs_tickets_empty_state"},xne=["src"],wne={key:1,"element-loading-text":"Loading...",class:"fs_tickets_grid_view"},Ene={class:"fs_grid_scroll_wrapper"},Cne={class:"fs_grid_header_row"},kne={class:"fs_grid_th fs_grid_th_checkbox"},Tne={class:"fs_grid_th fs_grid_th_title"},Ane={key:0,class:"fs_grid_th fs_grid_th_agent"},Rne={key:1,class:"fs_grid_th fs_grid_th_product"},One={key:2,class:"fs_grid_th fs_grid_th_responses"},Nne={key:3,class:"fs_grid_th fs_grid_th_priority"},Ine={key:4,class:"fs_grid_th fs_grid_th_date"},Dne={key:5,class:"fs_grid_th fs_grid_th_tags"},Mne={key:6,class:"fs_grid_th fs_grid_th_status"},Lne={key:7,class:"fs_grid_th fs_grid_th_mailbox"},Pne=["onClick"],Fne={class:"fs_grid_td fs_grid_td_checkbox"},$ne={class:"fs_grid_td fs_grid_td_title"},Bne={class:"fs_grid_avatar"},Vne=["src","alt"],Une={key:1,class:"fs_grid_avatar_initials"},Hne={class:"fs_grid_title_content"},zne={class:"fs_grid_title_row"},Yne=["href","onClick"],Gne={key:0,class:"fs_grid_author"},Wne={class:"fs_ticket_source_wrap"},jne=["src","alt","onError"],qne={key:1,class:"fs_source_initial_badge"},Kne={key:2,class:"fs_status_dot fs_status_dot_new"},Xne=["innerHTML"],Qne={key:0,class:"fs_grid_td fs_grid_td_agent"},Zne={class:"fs_grid_cell_text"},Jne={key:1,class:"fs_grid_cell_muted"},eoe={key:1,class:"fs_grid_td fs_grid_td_product"},toe={class:"fs_grid_cell_text"},aoe={key:1,class:"fs_grid_cell_muted"},ioe={key:2,class:"fs_grid_td fs_grid_td_responses"},soe={key:0,class:"fs_grid_response_count"},noe={key:1,class:"fs_grid_cell_muted"},ooe={key:3,class:"fs_grid_td fs_grid_td_priority"},roe={key:1,class:"fs_grid_cell_muted"},loe={key:4,class:"fs_grid_td fs_grid_td_date"},coe={class:"fs_grid_date_stack"},doe={class:"fs_grid_date fs_grid_date_muted"},uoe={class:"fs_grid_date"},poe={key:5,class:"fs_grid_td fs_grid_td_tags"},hoe={key:1,class:"fs_grid_cell_muted"},goe={key:6,class:"fs_grid_td fs_grid_td_status"},moe={key:1,class:"fs_grid_cell_muted"},foe={key:7,class:"fs_grid_td fs_grid_td_mailbox"},_oe={key:0,class:"fs_grid_cell_text"},boe={key:1,class:"fs_grid_cell_muted"},voe={key:0,class:"fs_tickets_empty_state"},yoe=["src"],Soe={key:3,class:"fs_skeleton_loader"},xoe={key:4,class:"fs_pagination_wrapper"},woe={class:"fs_pagination_left"},Eoe={class:"fs_pagination_right"},Coe={class:"fs_dialog_footer"},koe={class:"fs_text_right"};const Toe=dH(Kie,[["render",function(e,t,a,i,s,n){const o=Zl("IconPack"),r=vk,l=KE,c=wR,d=Zl("ArrowDown"),u=jx,p=Zl("View"),h=Zl("Hide"),g=oM,m=rM,f=nM,_=VL,b=Zl("CustomTicketFilters"),v=UR,y=HR,S=zR,x=$B,w=Zl("Search"),E=oC,C=bA,k=_A,T=Zl("rich-filter"),A=Zl("NarrowPromo"),R=Zl("ticket-tags"),O=Zl("LiveActivityAvatars"),N=OL,I=Zl("pagination"),D=Zl("add-ticket"),M=pD,L=sE,P=iE,F=Zl("label-search-drawer"),$=SD,B=Zl("ticket-bulk-actions"),V=q$;return Hd(),jd("div",Zie,[eu("div",Jie,[eu("div",ese,[eu("div",tse,[eu("h3",ase,[su(fe(e.$t("Tickets"))+" ",1),eu("span",null,"("+fe(e.pagination.total)+")",1)])]),eu("div",ise,[tu(l,{effect:"dark",content:e.$t("Refresh"),placement:"top"},{default:br(()=>[tu(r,{onClick:t[0]||(t[0]=e=>n.refreshTickets()),class:"fs_outline_btn fs_refresh_btn"},{default:br(()=>[tu(o,{iconKey:"refresh",width:20,height:20})],void 0),_:1})],void 0),_:1},8,["content"]),tu(r,{onClick:t[2]||(t[2]=e=>n.toggleWaitingForReply()),class:ne(["fs_outline_btn","fs_waiting_reply_btn",{fs_waiting_reply_btn_active:"yes"===e.filters.waiting_for_reply}])},{default:br(()=>[tu(c,{"model-value":"yes"===e.filters.waiting_for_reply,onClick:t[1]||(t[1]=Th(()=>{},["prevent","stop"])),class:"fs_waiting_reply_checkbox"},null,8,["model-value"]),su(" "+fe(e.$t("Waiting For Reply")),1)],void 0),_:1},8,["class"]),tu(f,{trigger:"click",onCommand:n.handleMoreAction},{dropdown:br(()=>[tu(m,{class:"fs_global_dropdown fs_global_dropdown"},{default:br(()=>[tu(g,{command:s.show_bulk_actions?"hide_bulk":"show_bulk"},{default:br(()=>[s.show_bulk_actions?(Hd(),qd(u,{key:1},{default:br(()=>[tu(h)],void 0),_:1})):(Hd(),qd(u,{key:0},{default:br(()=>[tu(p)],void 0),_:1})),eu("span",null,fe(s.show_bulk_actions?e.$t("Hide Bulk Action"):e.$t("Show Bulk Action")),1)],void 0),_:1},8,["command"])],void 0),_:1})]),default:br(()=>[tu(r,{class:"fs_outline_btn fs_more_action_btn"},{default:br(()=>[su(fe(e.$t("More Action"))+" ",1),tu(u,{class:"el-icon--right"},{default:br(()=>[tu(d)],void 0),_:1})],void 0),_:1})],void 0),_:1},8,["onCommand"]),tu(r,{onClick:t[3]||(t[3]=e=>s.add_ticket_modal=!0),class:"fs_filled_btn",icon:"Plus"},{default:br(()=>[su(fe(e.$t("Add Ticket")),1)],void 0),_:1})])]),eu("div",sse,[eu("div",nse,["advanced"!==e.filter_type?(Hd(),jd("div",ose,[eu("div",rse,[(Hd(!0),jd(Pd,null,sc(e.ticket_statuses_group,(t,a)=>(Hd(),jd("button",{key:a,onClick:e=>n.setStatus(a),class:ne(["fs_segment_button",{fs_segment_active:e.filters.status_type===a}])},fe(e.appVars.ticket_statuses[a]||e.$t(a)),11,lse))),128))])])):ou("",!0),eu("div",cse,[eu("div",{class:ne(["fs_filter_left_section",{fs_search_active:e.searchActive}])},[e.searchActive?ou("",!0):(Hd(),jd("div",dse,[tu(_,{onChange:n.toggleAdvancedFilter,"model-value":"advanced"===e.filter_type,disabled:!e.has_pro,"active-text":e.$t("Advanced filter"),"inactive-text":""},null,8,["onChange","model-value","disabled","active-text"])])),eu("div",use,[tu(l,{effect:"dark",content:e.$t("Search"),placement:"top"},{default:br(()=>[tu(r,{onClick:t[4]||(t[4]=e=>n.openSearch()),class:"fs_outline_btn fs_search_button",disabled:"advanced"===e.filter_type},{default:br(()=>[tu(o,{iconKey:"search",width:20,height:20})],void 0),_:1},8,["disabled"])],void 0),_:1},8,["content"])])],2),eu("div",pse,[tu(b,{ref:"customTicketFiltersRef",onApplyFilter:n.handleCustomFilter,disabled:"advanced"===e.filter_type},null,8,["onApplyFilter","disabled"]),tu(l,{effect:"dark",content:e.$t("Saved Filters"),placement:"top"},{default:br(()=>[e.has_pro?(Hd(),qd(r,{key:0,onClick:t[5]||(t[5]=e=>n.fetchLabelSearch()),class:"fs_outline_btn"},{default:br(()=>[tu(o,{iconKey:"labelSearch",width:20,height:20})],void 0),_:1})):ou("",!0)],void 0),_:1},8,["content"]),tu(x,{trigger:"click",placement:"bottom-start",width:"300","popper-class":"fs_popover"},{reference:br(()=>[eu("span",null,[tu(l,{effect:"dark",content:e.$t("Sort"),placement:"top"},{default:br(()=>[tu(r,{class:"fs_outline_btn"},{default:br(()=>[tu(o,{iconKey:"sort",width:20,height:20})],void 0),_:1})],void 0),_:1},8,["content"])])]),default:br(()=>[eu("div",hse,[eu("label",gse,fe(e.$t("Sort By")),1),eu("div",mse,[tu(y,{onChange:n.fetchTickets,modelValue:e.order_by,"onUpdate:modelValue":t[6]||(t[6]=t=>e.order_by=t)},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(n.filterColumns,(e,t)=>(Hd(),qd(v,{key:t,value:t},{default:br(()=>[su(fe(e),1)],void 0),_:2},1032,["value"]))),128))],void 0),_:1},8,["onChange","modelValue"])]),t[37]||(t[37]=eu("hr",null,null,-1)),tu(y,{class:"fs_switch_button",size:"small",modelValue:e.order_type,"onUpdate:modelValue":t[7]||(t[7]=t=>e.order_type=t),onChange:n.fetchTickets},{default:br(()=>[tu(S,{value:"ASC"},{default:br(()=>[su(fe(e.$t("Ascending")),1)],void 0),_:1}),tu(S,{value:"DESC"},{default:br(()=>[su(fe(e.$t("Descending")),1)],void 0),_:1})],void 0),_:1},8,["modelValue","onChange"])])],void 0),_:1}),tu(x,{trigger:"click",placement:"bottom-end",width:"280","popper-class":"fs_popover fs_display_settings_popover"},{reference:br(()=>[eu("span",null,[tu(l,{effect:"dark",content:e.$t("Display Settings"),placement:"top"},{default:br(()=>[tu(r,{class:"fs_outline_btn"},{default:br(()=>[tu(o,{iconKey:"layoutView",width:20,height:20})],void 0),_:1})],void 0),_:1},8,["content"])])]),default:br(()=>[eu("div",fse,[eu("div",_se,[eu("label",bse,fe(e.$t("Layout Type")),1)]),eu("div",vse,[tu(y,{modelValue:e.ticketLayout,"onUpdate:modelValue":t[8]||(t[8]=t=>e.ticketLayout=t),onChange:n.setTicketLayout},{default:br(()=>[tu(v,{value:"default"},{default:br(()=>[su(fe(e.$t("Default"))+" ",1),eu("span",yse,fe(e.$t("(Standard spacing)")),1)],void 0),_:1}),tu(v,{value:"compact"},{default:br(()=>[su(fe(e.$t("Compact"))+" ",1),eu("span",Sse,fe(e.$t("(Maximum visibility)")),1)],void 0),_:1}),tu(v,{value:"grid"},{default:br(()=>[su(fe(e.$t("Grid View"))+" ",1),eu("span",xse,fe(e.$t("(Table columns)")),1)],void 0),_:1})],void 0),_:1},8,["modelValue","onChange"])]),t[38]||(t[38]=eu("hr",null,null,-1)),eu("div",wse,[eu("label",Ese,fe(e.$t("Display Settings")),1),tu(r,{onClick:t[9]||(t[9]=e=>n.resetActiveVisibility()),link:"",size:"small"},{default:br(()=>[tu(o,{iconKey:"refresh",width:20,height:20})],void 0),_:1})]),eu("div",Cse,[(Hd(!0),jd(Pd,null,sc(n.activeVisibilityOptions,e=>(Hd(),qd(c,{key:e.key,modelValue:n.activeVisibility[e.key],"onUpdate:modelValue":t=>n.activeVisibility[e.key]=t,onChange:t[10]||(t[10]=e=>n.saveActiveVisibility())},{default:br(()=>[su(fe(e.label),1)],void 0),_:2},1032,["modelValue","onUpdate:modelValue"]))),128))])])],void 0),_:1})])])]),e.searchActive||e.search.length>0?(Hd(),jd("div",kse,[eu("div",Tse,[tu(E,{onKeyup:t[11]||(t[11]=Rh(e=>n.fetchTickets(),["enter"])),placeholder:e.$t("Search"),modelValue:e.search,"onUpdate:modelValue":t[12]||(t[12]=t=>e.search=t),class:"fs_text_input fs_table_search_input",ref:"searchInput",disabled:"advanced"===e.filter_type,clearable:""},{prefix:br(()=>[tu(u,null,{default:br(()=>[tu(w)],void 0),_:1})]),_:1},8,["placeholder","modelValue","disabled"]),tu(r,{onClick:t[13]||(t[13]=e=>n.closeSearch()),class:"fs_text_btn",text:""},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1})])])):ou("",!0)]),e.activeFilters&&Object.keys(e.activeFilters).length?(Hd(),jd("div",Ase,[eu("div",Rse,[(Hd(!0),jd(Pd,null,sc(e.activeFilters,(a,i)=>(Hd(),jd("div",{key:i,class:ne(["fs_filter_tag",{fs_filter_tag_with_select:"product_id"===i}])},[eu("div",Ose,[tu(o,{iconKey:n.getFilterIcon(i),width:20,height:20,class:"fs_filter_icon"},null,8,["iconKey"]),su(" "+fe(n.getFilterLabel(i)),1)]),"product_id"!==i?(Hd(),jd("div",Nse,[eu("span",null,fe(n.getFilterDisplayValue(i,a)),1)])):(Hd(),jd("div",Ise,[tu(k,{modelValue:e.filters.product_id,"onUpdate:modelValue":t[14]||(t[14]=t=>e.filters.product_id=t),multiple:"","collapse-tags":"","collapse-tags-tooltip":"","max-collapse-tags":2,placeholder:e.$t("Select products"),class:"fs_product_filter_select",onChange:n.handleProductFilterChange},{default:br(()=>{var t;return[(Hd(!0),jd(Pd,null,sc((null==(t=e.appVars)?void 0:t.support_products)||[],e=>(Hd(),qd(C,{key:e.id,label:e.title,value:e.id},null,8,["label","value"]))),128))]},void 0),_:1},8,["modelValue","placeholder","onChange"])])),eu("div",{class:"fs_filter_close",onClick:e=>n.removeFilter(i)},[...t[39]||(t[39]=[eu("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[eu("path",{d:"M10.0001 8.93906L13.7126 5.22656L14.7731 6.28706L11.0606 9.99956L14.7731 13.7121L13.7126 14.7726L10.0001 11.0601L6.28755 14.7726L5.22705 13.7121L8.93955 9.99956L5.22705 6.28706L6.28755 5.22656L10.0001 8.93906Z",fill:"#525866"})],-1)])],8,Dse)],2))),128))]),eu("div",Mse,[tu(r,{onClick:t[15]||(t[15]=e=>n.clearAllFilters()),link:"",class:"fs_reset_filter_btn"},{default:br(()=>[su(fe(e.$t("Reset Filter")),1)],void 0),_:1})])])):ou("",!0),eu("div",Lse,["advanced"===e.filter_type?(Hd(),jd("div",Pse,[e.has_pro?(Hd(),jd("div",Fse,[e.appReady?(Hd(),jd("div",$se,[(Hd(!0),jd(Pd,null,sc(e.advanced_filters,(t,a)=>(Hd(),jd("div",{key:a},[eu("div",Bse,[tu(T,{onMaybeRemove:e=>n.maybeRemoveGroup(a),items:t},null,8,["onMaybeRemove","items"])]),a+1!=e.advanced_filters.length?(Hd(),jd("div",Vse,[eu("div",Use,fe(e.$t("OR")),1)])):ou("",!0)]))),128))])):ou("",!0),eu("div",{class:"fs_filter_separator",onClick:t[16]||(t[16]=e=>n.addConditionGroup())},[eu("div",Hse,[t[40]||(t[40]=eu("svg",{class:"fs_add_and_icon",width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M4.5 4.5V0H6V4.5H10.5V6H6V10.5H4.5V6H0V4.5H4.5Z",fill:"#0E121B"})],-1)),su(" "+fe(e.$t("OR")),1)])]),eu("div",zse,[eu("div",Yse,[n.countAdvancedFilterData(e.advanced_filters)?(Hd(),qd(r,{key:0,type:"primary",onClick:n.openSaveSearchModal,class:"fs_saved_search_btn"},{default:br(()=>[tu(o,{iconKey:"labelSearch",width:20,height:20}),eu("span",Gse,fe(e.label_search_id?e.$t("Update Filter"):e.$t("Save Filter")),1)],void 0),_:1},8,["onClick"])):ou("",!0)]),eu("div",Wse,[eu("a",{class:"fs_filter_clear_btn",onClick:t[17]||(t[17]=(...e)=>n.resetAdvancedFilters&&n.resetAdvancedFilters(...e))},fe(e.$t("Reset Filters")),1),tu(r,{class:"fs_filled_btn",type:"primary",onClick:t[18]||(t[18]=e=>n.fetchTickets())},{default:br(()=>[su(fe(e.$t("Apply Filter")),1)],void 0),_:1})])])])):(Hd(),qd(A,{key:1,heading:e.$t("advance_filter_promo"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))])):ou("",!0),e.tickets.length&&s.show_bulk_actions&&"grid"!==e.ticketLayout?(Hd(),jd("div",{key:1,class:ne(["fs_select_all_section",{fs_advance_section_display:"advanced"===e.filter_type}])},[eu("div",jse,[eu("div",qse,[tu(c,{indeterminate:e.isIndeterminate,modelValue:e.selectAllChecked,"onUpdate:modelValue":t[19]||(t[19]=t=>e.selectAllChecked=t),onChange:n.handleSelectAll},{default:br(()=>[su(fe(e.$t("Select All")),1)],void 0),_:1},8,["indeterminate","modelValue","onChange"]),eu("span",Kse,fe(e.ticket_selections.length)+" "+fe(e.$t("out of"))+" "+fe(e.pagination.total)+" "+fe(e.$t("tickets")),1)])])],2)):ou("",!0),e.app_ready&&!e.first_time_loading?(Hd(),jd(Pd,{key:2},["grid"!==e.ticketLayout?vr((Hd(),jd("div",{key:0,"element-loading-text":"Loading...",class:ne(["fs_tickets_list",{fs_tickets_list_compact:"compact"===e.ticketLayout}])},[(Hd(!0),jd(Pd,null,sc(e.tickets,a=>{var i,r,d,u,p,h;return Hd(),jd("div",{class:"fs_ticket_item",key:a.id,onClick:e=>n.gotToTicket(a,e)},[eu("div",Qse,[eu("div",Zse,[eu("div",Jse,[s.show_bulk_actions?(Hd(),qd(c,{key:0,onClick:t[20]||(t[20]=Th(()=>{},["stop"])),"model-value":e.ticket_selections.includes(a.id),onChange:e=>n.handleTicketSelection(a.id)},null,8,["model-value","onChange"])):ou("",!0),eu("div",ene,[e.fieldVisibility.title?(Hd(),jd("a",{key:0,href:e.$router.resolve({name:"view_ticket",params:{ticket_id:a.id}}).href,onClick:e=>n.goToTicketView(a,e),class:"fs_ticket_title"},[eu("span",null,fe(a.title),1)],8,tne)):ou("",!0),e.fieldVisibility.description&&"compact"===e.ticketLayout?(Hd(),jd("span",ane,[t[41]||(t[41]=eu("span",{class:"fs_inline_separator"},"–",-1)),eu("span",{class:"fs_inline_desc_text",innerHTML:n.getExcerpt(a)},null,8,ine)])):ou("",!0),e.fieldVisibility.author?(Hd(),jd("span",sne,"by "+fe(null==(i=a.customer)?void 0:i.first_name),1)):ou("",!0),tu(l,{effect:"dark",content:e.$t("Internal Ticket ID")+": #"+a.id,placement:"top",trigger:"hover"},{default:br(()=>[eu("span",nne," #"+fe(a.display_ticket_number||a.serial_number||a.id),1)],void 0),_:2},1032,["content"])]),e.fieldVisibility.tags&&a.tags.length?(Hd(),qd(R,{key:1,onClick:t[21]||(t[21]=Th(()=>{},["stop"])),tags:a.tags,ticket_id:a.id,mode:"ticket_list"},null,8,["tags","ticket_id"])):ou("",!0),a.source&&e.fieldVisibility.source?(Hd(),qd(l,{key:2,effect:"dark",content:e.ucFirst(a.source),placement:"top"},{default:br(()=>[eu("span",one,[s.imageErrors[a.id+"_"+a.source]?(Hd(),jd("span",lne,fe(a.source.charAt(0).toUpperCase()),1)):(Hd(),jd("img",{key:0,src:e.$getSourceIcon(a.source),alt:e.ucFirst(a.source),onError:e=>s.imageErrors[a.id+"_"+a.source]=!0,class:"fs_ticket_source_img"},null,40,rne))])],void 0),_:2},1032,["content"])):ou("",!0),e.fieldVisibility.status&&"new"===a.status?(Hd(),jd("span",cne)):ou("",!0)]),e.fieldVisibility.description?(Hd(),jd("div",dne,[eu("p",{class:"fs_tk_preview_text",innerHTML:n.getExcerpt(a)},null,8,une)])):ou("",!0)]),eu("div",pne,[eu("div",hne,[e.fieldVisibility.response_count&&a.response_count?(Hd(),qd(l,{key:0,effect:"dark",content:e.$t("Response Count"),placement:"top",trigger:"hover"},{default:br(()=>[eu("span",gne,[tu(o,{iconKey:"ticketCount",width:16,height:16}),su(" "+fe(a.response_count),1)])],void 0),_:2},1032,["content"])):ou("",!0),e.fieldVisibility.product&&a.product&&a.product.title?(Hd(),qd(l,{key:1,effect:"dark",content:e.$t("Product")+": "+((null==(r=a.product)?void 0:r.title)||""),placement:"top",trigger:"hover"},{default:br(()=>[eu("span",mne,[tu(o,{iconKey:"productIcon",width:16,height:16}),su(" "+fe(a.product.title),1)])],void 0),_:2},1032,["content"])):ou("",!0),e.fieldVisibility.mailbox&&a.mailbox&&a.mailbox.name&&(null==(u=null==(d=e.appVars)?void 0:d.mailboxes)?void 0:u.length)>1?(Hd(),qd(l,{key:2,effect:"dark",content:e.$t("Mailbox")+": "+((null==(p=a.mailbox)?void 0:p.name)||""),placement:"top",trigger:"hover"},{default:br(()=>[eu("span",fne,[tu(o,{iconKey:"businessBoxIcon",width:16,height:16}),su(" "+fe(a.mailbox.name),1)])],void 0),_:2},1032,["content"])):ou("",!0),ou("",!0)]),eu("div",_ne,[tu(O,{activities:a.live_activity},null,8,["activities"]),e.fieldVisibility.status&&"new"!==a.status?(Hd(),qd(l,{key:0,effect:"dark",content:e.$t("Status")+": "+(e.appVars.ticket_statuses[a.status]||a.status),placement:"top",trigger:"hover"},{default:br(()=>{var t;return[eu("span",{class:ne(["fs_status_badge",`fs_status_${null==(t=a.status)?void 0:t.toLowerCase()}`])},fe(e.appVars.ticket_statuses[a.status]||a.status),3)]},void 0),_:2},1032,["content"])):ou("",!0),e.fieldVisibility.client_priority&&a.client_priority?(Hd(),qd(l,{key:1,effect:"dark",content:e.$t("Client Priority")+": "+(e.appVars.client_priorities[a.client_priority]||a.client_priority),placement:"top",trigger:"hover"},{default:br(()=>{var t,i;return[eu("span",{class:ne(["fs_client_priority_badge",`fs_client_priority_${null==(t=a.client_priority)?void 0:t.toLowerCase()}`])},[eu("span",{class:ne(["fs_priority_dot",`fs_priority_dot_${null==(i=a.client_priority)?void 0:i.toLowerCase()}`])},null,2),su(" "+fe(e.appVars.client_priorities[a.client_priority]||a.client_priority),1)],2)]},void 0),_:2},1032,["content"])):ou("",!0),e.fieldVisibility.waiting_time&&a.waiting_since?(Hd(),qd(l,{key:2,effect:"dark",content:e.$t("Waiting Time")+": "+a.waiting_since,placement:"top",trigger:"hover"},{default:br(()=>[eu("span",bne,[tu(o,{iconKey:"clock",width:16,height:16}),su(" "+fe(e.$timeDiff(a.waiting_since)),1)])],void 0),_:2},1032,["content"])):ou("",!0),e.fieldVisibility.agent&&a.agent?(Hd(),qd(l,{key:3,effect:"dark",content:e.$t("Assigned Agent: ")+((null==(h=a.agent)?void 0:h.full_name)||e.$t("Unassigned")),placement:"top",trigger:"hover"},{default:br(()=>[eu("span",vne,[tu(o,{iconKey:"agent",width:14,height:14}),eu("span",yne,fe(a.agent.full_name||e.$t("Unassigned")),1)])],void 0),_:2},1032,["content"])):ou("",!0)])])])],8,Xse)}),128)),e.tickets.length?ou("",!0):(Hd(),jd("div",Sne,[eu("img",{src:e.appVars.asset_url+"images/empty.svg",alt:""},null,8,xne),eu("p",null,fe(e.$t("No Results Found")),1)]))],2)),[[V,e.loading]]):"grid"===e.ticketLayout?vr((Hd(),jd("div",wne,[eu("div",Ene,[eu("div",{class:"fs_grid_table",style:ee({"--fs-grid-cols":n.gridTemplateColumns})},[eu("div",Cne,[eu("div",kne,[s.show_bulk_actions?(Hd(),qd(c,{key:0,indeterminate:e.isIndeterminate,"model-value":e.selectAllChecked,onChange:n.handleSelectAll,onClick:t[22]||(t[22]=Th(()=>{},["stop"]))},null,8,["indeterminate","model-value","onChange"])):ou("",!0)]),eu("div",Tne,[eu("span",null,fe(e.$t("Title")),1)]),e.gridFieldVisibility.agent?(Hd(),jd("div",Ane,[eu("span",null,fe(e.$t("Agent")),1)])):ou("",!0),e.gridFieldVisibility.product?(Hd(),jd("div",Rne,fe(e.$t("Product")),1)):ou("",!0),e.gridFieldVisibility.response_count?(Hd(),jd("div",One,fe(e.$t("Responses")),1)):ou("",!0),e.gridFieldVisibility.client_priority?(Hd(),jd("div",Nne,fe(e.$t("Priority")),1)):ou("",!0),e.gridFieldVisibility.waiting_time?(Hd(),jd("div",Ine,fe(e.$t("Date")),1)):ou("",!0),e.gridFieldVisibility.tags?(Hd(),jd("div",Dne,[eu("span",null,fe(e.$t("Tags")),1)])):ou("",!0),e.gridFieldVisibility.status?(Hd(),jd("div",Mne,fe(e.$t("Status")),1)):ou("",!0),e.gridFieldVisibility.mailbox?(Hd(),jd("div",Lne,fe(e.$t("Mailbox")),1)):ou("",!0)]),(Hd(!0),jd(Pd,null,sc(e.tickets,a=>{var i,r,d,u,p,h,g;return Hd(),jd("div",{class:ne(["fs_grid_row",{fs_grid_row_selected:e.ticket_selections.includes(a.id)}]),key:a.id,onClick:e=>n.gotToTicket(a,e)},[eu("div",Fne,[s.show_bulk_actions?(Hd(),qd(c,{key:0,onClick:t[23]||(t[23]=Th(()=>{},["stop"])),"model-value":e.ticket_selections.includes(a.id),onChange:e=>n.handleTicketSelection(a.id)},null,8,["model-value","onChange"])):ou("",!0)]),eu("div",$ne,[eu("div",Bne,[(null==(i=a.customer)?void 0:i.photo)?(Hd(),jd("img",{key:0,src:a.customer.photo,alt:a.customer.first_name,class:"fs_grid_avatar_img"},null,8,Vne)):(Hd(),jd("span",Une,fe(n.getInitials(a.customer)),1))]),eu("div",Hne,[eu("div",zne,[eu("a",{href:e.$router.resolve({name:"view_ticket",params:{ticket_id:a.id}}).href,onClick:e=>n.goToTicketView(a,e),class:"fs_grid_title_text"},fe(a.title),9,Yne),e.gridFieldVisibility.author?(Hd(),jd("span",Gne,[su(fe(e.$t("by"))+" "+fe(null==(r=a.customer)?void 0:r.first_name)+" ",1),tu(l,{effect:"dark",content:e.$t("Internal Ticket ID")+": #"+a.id,placement:"top",trigger:"hover"},{default:br(()=>[eu("em",null,"#"+fe(a.display_ticket_number||a.serial_number||a.id),1)],void 0),_:2},1032,["content"])])):ou("",!0),a.source&&e.gridFieldVisibility.source?(Hd(),jd("span",{key:1,class:"fs_grid_source_icon",onClick:t[24]||(t[24]=Th(()=>{},["stop"]))},[tu(l,{effect:"dark",content:e.ucFirst(a.source),placement:"top"},{default:br(()=>[eu("span",Wne,[s.imageErrors[a.id+"_"+a.source]?(Hd(),jd("span",qne,fe(a.source.charAt(0).toUpperCase()),1)):(Hd(),jd("img",{key:0,src:e.$getSourceIcon(a.source),alt:e.ucFirst(a.source),onError:e=>s.imageErrors[a.id+"_"+a.source]=!0,class:"fs_grid_source_img"},null,40,jne))])],void 0),_:2},1032,["content"])])):ou("",!0),"new"===a.status?(Hd(),jd("span",Kne)):ou("",!0),tu(O,{activities:a.live_activity,onClick:t[25]||(t[25]=Th(()=>{},["stop"]))},null,8,["activities"])]),e.gridFieldVisibility.description?(Hd(),jd("p",{key:0,class:"fs_grid_description",innerHTML:n.getExcerpt(a)},null,8,Xne)):ou("",!0)])]),e.gridFieldVisibility.agent?(Hd(),jd("div",Qne,[a.agent?(Hd(),qd(l,{key:0,effect:"dark",content:a.agent.full_name,placement:"top"},{default:br(()=>[eu("span",Zne,fe(a.agent.first_name),1)],void 0),_:2},1032,["content"])):(Hd(),jd("span",Jne,"—"))])):ou("",!0),e.gridFieldVisibility.product?(Hd(),jd("div",eoe,[(null==(d=a.product)?void 0:d.title)?(Hd(),qd(l,{key:0,effect:"dark",content:a.product.title,placement:"top"},{default:br(()=>[eu("span",toe,fe(a.product.title),1)],void 0),_:2},1032,["content"])):(Hd(),jd("span",aoe,"—"))])):ou("",!0),e.gridFieldVisibility.response_count?(Hd(),jd("div",ioe,[a.response_count?(Hd(),jd("span",soe,[tu(o,{iconKey:"ticketCount",width:16,height:16}),su(" "+fe(a.response_count),1)])):(Hd(),jd("span",noe,"—"))])):ou("",!0),e.gridFieldVisibility.client_priority?(Hd(),jd("div",ooe,[a.client_priority?(Hd(),jd("span",{key:0,class:ne(["fs_client_priority_badge",`fs_client_priority_${null==(u=a.client_priority)?void 0:u.toLowerCase()}`])},[eu("span",{class:ne(["fs_priority_dot",`fs_priority_dot_${null==(p=a.client_priority)?void 0:p.toLowerCase()}`])},null,2),su(" "+fe(e.appVars.client_priorities[a.client_priority]||a.client_priority),1)],2)):(Hd(),jd("span",roe,"—"))])):ou("",!0),e.gridFieldVisibility.waiting_time?(Hd(),jd("div",loe,[eu("div",coe,[a.created_at?(Hd(),qd(l,{key:0,effect:"dark",content:e.$t("Ticket Created"),placement:"top"},{default:br(()=>[eu("span",doe,[tu(o,{iconKey:"clock",width:14,height:14}),su(" "+fe(e.$timeDiff(a.created_at)),1)])],void 0),_:2},1032,["content"])):ou("",!0),a.waiting_since?(Hd(),qd(l,{key:1,effect:"dark",content:e.$t("Waiting Since"),placement:"top"},{default:br(()=>[eu("span",uoe,[tu(o,{iconKey:"clock",width:14,height:14}),su(" "+fe(e.$timeDiff(a.waiting_since)),1)])],void 0),_:2},1032,["content"])):ou("",!0)])])):ou("",!0),e.gridFieldVisibility.tags?(Hd(),jd("div",poe,[a.tags&&a.tags.length?(Hd(),qd(R,{key:0,onClick:t[26]||(t[26]=Th(()=>{},["stop"])),tags:a.tags,ticket_id:a.id,mode:"ticket_list"},null,8,["tags","ticket_id"])):(Hd(),jd("span",hoe,"—"))])):ou("",!0),e.gridFieldVisibility.status?(Hd(),jd("div",goe,[a.status?(Hd(),jd("span",{key:0,class:ne(["fs_status_badge",`fs_status_${null==(h=a.status)?void 0:h.toLowerCase()}`])},fe(e.appVars.ticket_statuses[a.status]||a.status),3)):(Hd(),jd("span",moe,"—"))])):ou("",!0),e.gridFieldVisibility.mailbox?(Hd(),jd("div",foe,[(null==(g=a.mailbox)?void 0:g.name)?(Hd(),jd("span",_oe,fe(a.mailbox.name),1)):(Hd(),jd("span",boe,"—"))])):ou("",!0)],10,Pne)}),128))],4)]),e.tickets.length?ou("",!0):(Hd(),jd("div",voe,[eu("img",{src:e.appVars.asset_url+"images/empty.svg",alt:""},null,8,yoe),eu("p",null,fe(e.$t("No Results Found")),1)]))])),[[V,e.loading]]):ou("",!0)],64)):(Hd(),jd("div",Soe,[tu(N,{rows:10,animated:""})])),e.tickets.length?(Hd(),jd("div",xoe,[eu("span",woe,[eu("p",null,"Page "+fe(e.pagination.current_page)+" of "+fe(Math.ceil(e.pagination.total/e.pagination.per_page)),1),tu(I,{onFetch:t[27]||(t[27]=e=>n.fetchTickets()),pagination:e.pagination,layout:"sizes"},null,8,["pagination"])]),eu("span",Eoe,[tu(I,{onFetch:t[28]||(t[28]=e=>n.fetchTickets()),pagination:e.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ou("",!0)])]),tu(M,{"append-to-body":!0,modelValue:s.add_ticket_modal,"onUpdate:modelValue":t[30]||(t[30]=e=>s.add_ticket_modal=e),width:"50%",class:"fs_dialog fs_tk_dialog"},{default:br(()=>[tu(D,{onClose:t[29]||(t[29]=e=>s.add_ticket_modal=!1)})],void 0),_:1},8,["modelValue"]),tu(M,{title:e.$t("Save search"),modelValue:s.isLabelSearchOpen,"onUpdate:modelValue":t[33]||(t[33]=e=>s.isLabelSearchOpen=e),onClose:t[34]||(t[34]=e=>s.isLabelSearchOpen=!1),class:"fs_dialog"},{footer:br(()=>[eu("span",Coe,[tu(r,{class:"fs_outline_btn",onClick:t[32]||(t[32]=e=>s.isLabelSearchOpen=!1)},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),vr((Hd(),qd(r,{disabled:s.saving,class:"fs_filled_btn",type:"success",onClick:n.handleSaveSearch},{default:br(()=>[su(fe(e.$t("Save")),1)],void 0),_:1},8,["disabled","onClick"])),[[V,s.saving]])])]),default:br(()=>[tu(P,{"label-position":"top"},{default:br(()=>[tu(L,{label:e.$t("Search Name")},{default:br(()=>[tu(E,{type:"text",placeholder:e.$t("Search Name"),modelValue:e.label_search_name,"onUpdate:modelValue":t[31]||(t[31]=t=>e.label_search_name=t)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1},8,["title","modelValue"]),tu($,{"with-header":!1,"append-to-body":!0,modelValue:s.openLabelSearchDrawer,"onUpdate:modelValue":t[35]||(t[35]=e=>s.openLabelSearchDrawer=e),class:"fs-el-drawer"},{footer:br(()=>[eu("div",koe,[tu(r,{class:"fs_outline_btn",onClick:n.closeSavedSearchListModal},{default:br(()=>[su(fe(e.$t("Close")),1)],void 0),_:1},8,["onClick"])])]),default:br(()=>[tu(F,{labelSearchList:e.labelSearchList,filtersValue:e.advanced_filters,onClose:n.closeSavedSearchListModal,onGetSavedSearch:n.handleAdvanceSearch,onSetLabelSearchItem:n.handleLabelSearchEdit,onDelete:n.handleLabelSearchDelete},null,8,["labelSearchList","filtersValue","onClose","onGetSavedSearch","onSetLabelSearchItem","onDelete"])],void 0),_:1},8,["modelValue"]),e.appReady&&s.show_bulk_actions?(Hd(),qd(B,{key:0,onFetchTickets:t[36]||(t[36]=e=>n.refreshTickets())})):ou("",!0)])}]]),Aoe={class:"fs_edit_response"},Roe={class:"fs_edit_response_actions"};const Ooe=dH({name:"EditResponse",props:{response:{type:Object,required:!0},ticketId:{type:[String,Number],default:()=>""}},components:{WpEditor:cee},data(){return{saving:!1,filteredAgents:this.appVars.support_agents,popup:!1,editor_ready:!0,draftReplyApprovePermission:this.appVars.me.permissions.includes("fst_approve_draft_reply")}},computed:{resolvedTicketId(){return this.response.ticket_id||this.ticketId}},methods:{editResponse(){this.saving=!0,this.$put(`tickets/${this.resolvedTicketId}/responses/${this.response.id}`,{content:this.response.content}).then(e=>{this.$notify({message:e.message,type:"success"}),this.$emit("updated",e.response)}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})}}},[["render",function(e,t,a,i,s,n){const o=Zl("wp-editor"),r=vk;return Hd(),jd("div",Aoe,[s.editor_ready?(Hd(),qd(o,{key:0,modelValue:a.response.content,"onUpdate:modelValue":t[0]||(t[0]=e=>a.response.content=e),ticketId:n.resolvedTicketId,is_agent:"yes"},null,8,["modelValue","ticketId"])):ou("",!0),eu("div",Roe,[tu(r,{class:"fs_filled_btn",size:"large",type:"success",onClick:t[1]||(t[1]=e=>n.editResponse())},{default:br(()=>[su(fe(s.draftReplyApprovePermission&&"draft_response"===a.response.conversation_type?e.$t("Update And Approve Response"):e.$t("Update Response")),1)],void 0),_:1})])])}]]),Noe={key:0,class:"fs_field_label",slot:"label"},Ioe=["innerHTML"],Doe=["innerHTML"];const Moe=dH({name:"withLabelField",props:["field"]},[["render",function(e,t,a,i,s,n){const o=Zl("InfoFilled"),r=jx,l=KE,c=sE;return Hd(),qd(c,{class:ne(["fs_field_wrapper",a.field.wrapper_class])},{default:br(()=>[a.field.label?(Hd(),jd("div",Noe,[su(fe(a.field.label)+" ",1),a.field.help?(Hd(),qd(l,{key:0,"popper-class":"sidebar-popper",effect:"dark",placement:"top"},{content:br(()=>[eu("span",{innerHTML:a.field.help},null,8,Ioe)]),default:br(()=>[tu(r,null,{default:br(()=>[tu(o)],void 0),_:1})],void 0),_:1})):ou("",!0)])):ou("",!0),oc(e.$slots,"default"),a.field.inline_help&&"inline-checkbox"!==a.field.type?(Hd(),jd("p",{key:1,class:"fc_inline_help",innerHTML:a.field.inline_help},null,8,Doe)):ou("",!0)],void 0),_:3},8,["class"])}]]);const Loe=dH({name:"InputText",props:["field","modelValue"],emits:["update:modelValue"],data(){return{modelValueLocal:this.modelValue}},watch:{modelValueLocal(e){this.$emit("update:modelValue",e)}}},[["render",function(e,t,a,i,s,n){const o=oC;return Hd(),qd(o,{disabled:a.field.disabled,type:a.field.data_type,placeholder:a.field.placeholder,min:a.field.min,max:a.field.max,modelValue:s.modelValueLocal,"onUpdate:modelValue":t[0]||(t[0]=e=>s.modelValueLocal=e)},null,8,["disabled","type","placeholder","min","max","modelValue"])}]]);const Poe=dH({name:"WPEditorField",components:{WpBaseEditor:cee},props:["field","modelValue"],emits:["update:modelValue"],data(){return{modelValueLocal:this.modelValue}},watch:{modelValueLocal(e){this.$emit("update:modelValue",e)}}},[["render",function(e,t,a,i,s,n){const o=Zl("wp-base-editor");return Hd(),qd(o,{showShortcodes:a.field.show_shortcodes,showSavedReplies:a.field.show_saved_replies,modelValue:s.modelValueLocal,"onUpdate:modelValue":t[0]||(t[0]=e=>s.modelValueLocal=e)},null,8,["showShortcodes","showSavedReplies","modelValue"])}]]);const Foe=dH({name:"InputRadioImage",props:["field","value","size"],data(){return{model:this.value,boxSize:this.size||120}},watch:{model(e){this.$emit("input",e)}}},[["render",function(e,t,a,i,s,n){const o=UR,r=HR;return Hd(),qd(r,{class:"fc_image_radios",modelValue:s.model,"onUpdate:modelValue":t[0]||(t[0]=e=>s.model=e)},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(a.field.options,(e,t)=>(Hd(),qd(o,{key:t,value:e.id},{default:br(()=>[eu("div",{style:ee({backgroundImage:"url("+e.image+")",width:s.boxSize+"px",height:s.boxSize+"px"}),class:ne([s.model==e.id?"fc_image_active":"","fc_image_box"])},[eu("span",null,fe(e.label),1)],6)],void 0),_:2},1032,["value"]))),128))],void 0),_:1},8,["modelValue"])}]]);const $oe=dH({name:"InputRadio",props:["field","modelValue"],emits:["update:modelValue"],data(){return{modelValueLocal:this.modelValue}},watch:{modelValueLocal(e){this.$emit("update:modelValue",e)}}},[["render",function(e,t,a,i,s,n){const o=UR,r=HR;return Hd(),qd(r,{class:ne(a.field.wrapper_class),modelValue:s.modelValueLocal,"onUpdate:modelValue":t[0]||(t[0]=e=>s.modelValueLocal=e)},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(a.field.options,(e,t)=>(Hd(),qd(o,{key:t,value:e.id},{default:br(()=>[su(fe(e.label),1)],void 0),_:2},1032,["value"]))),128))],void 0),_:1},8,["class","modelValue"])}]]),Boe={class:"fs_option_title"},Voe={key:0,class:"fs_option_id"};const Uoe=dH({name:"InputOptions",props:["field","modelValue"],emits:["update:modelValue"],computed:{modelValueLocal(){return this.convertToInt(this.modelValue)}},methods:{convertToInt:e=>Array.isArray(e)?e.map(e=>parseInt(e)||e):parseInt(e)||e,updateValue(e){JSON.stringify(e)!==JSON.stringify(this.modelValue)&&this.$emit("update:modelValue",e)},getOptionLabel(e){return this.field.show_id?`${e.title} (${this.$t("Page ID")} #${e.id})`:e.title}}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A;return Hd(),jd("div",null,[tu(r,{clearable:"",filterable:"",multiple:a.field.multiple,placeholder:a.field.placeholder,"model-value":n.modelValueLocal,"onUpdate:modelValue":n.updateValue},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(a.field.options,e=>(Hd(),qd(o,{key:e.id,label:n.getOptionLabel(e),value:e.id},{default:br(()=>[eu("span",Boe,fe(e.title),1),a.field.show_id?(Hd(),jd("span",Voe,fe(e.id),1)):ou("",!0)],void 0),_:2},1032,["label","value"]))),128))],void 0),_:1},8,["multiple","placeholder","model-value","onUpdate:modelValue"])])}]]),Hoe={class:"fs_inline_checkbox_label"},zoe=["innerHTML"];const Yoe=dH({name:"InlineCheckbox",props:["field","value","modelValue"],emits:["input","update:modelValue"],computed:{falseValue(){return this.field.false_label||this.field["false-label"]},model:{get(){return void 0!==this.modelValue?this.modelValue:this.value},set(e){this.$emit("input",e),this.$emit("update:modelValue",e)}}}},[["render",function(e,t,a,i,s,n){const o=wR,r=Zl("InfoFilled"),l=jx,c=KE;return Hd(),jd("span",Hoe,[tu(o,{"true-value":a.field.true_label,"false-value":n.falseValue,disabled:a.field.disabled,modelValue:n.model,"onUpdate:modelValue":t[0]||(t[0]=e=>n.model=e)},{default:br(()=>[su(fe(a.field.checkbox_label),1)],void 0),_:1},8,["true-value","false-value","disabled","modelValue"]),a.field.help?(Hd(),qd(c,{key:0,"popper-class":"sidebar-popper",effect:"dark",placement:"top"},{content:br(()=>[eu("span",{innerHTML:a.field.help},null,8,zoe)]),default:br(()=>[tu(l,{class:"fs_inline_checkbox_help_icon"},{default:br(()=>[tu(r)],void 0),_:1})],void 0),_:1})):ou("",!0)])}]]);const Goe=dH({name:"InputText",props:["field","value"],data(){return{model:this.value}},watch:{model(e){this.$emit("input",e)}}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A,l=oC;return Hd(),jd("div",null,[e.appVars.verified_senders.length?(Hd(),qd(r,{key:0,placeholder:a.field.placeholder,filterable:"","allow-create":"",modelValue:s.model,"onUpdate:modelValue":t[0]||(t[0]=e=>s.model=e)},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(e.appVars.verified_senders,e=>(Hd(),qd(o,{key:e,value:e},null,8,["value"]))),128))],void 0),_:1},8,["placeholder","modelValue"])):(Hd(),qd(l,{key:1,type:a.field.data_type,placeholder:a.field.placeholder,modelValue:s.model,"onUpdate:modelValue":t[1]||(t[1]=e=>s.model=e)},null,8,["type","placeholder","modelValue"]))])}]]);const Woe=dH({name:"CheckBoxGroup",props:["field","value"],data(){return{model:this.value}},emits:["input"],watch:{model(e){this.$emit("input",e)}},created(){Vq(this.value)||(this.model=[])}},[["render",function(e,t,a,i,s,n){const o=wR,r=ER;return Hd(),qd(r,{modelValue:s.model,"onUpdate:modelValue":t[0]||(t[0]=e=>s.model=e)},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(a.field.options,(e,t)=>(Hd(),qd(o,{key:t,value:t},{default:br(()=>[su(fe(e),1)],void 0),_:2},1032,["value"]))),128))],void 0),_:1},8,["modelValue"])}]]),joe={key:0,class:"fs_warn_alert"},qoe=["innerHTML"],Koe=["innerHTML"];const Xoe=dH({name:"HtmlViewer",components:{IconPack:$z},props:["field"]},[["render",function(e,t,a,i,s,n){const o=Zl("IconPack");return Hd(),jd("div",{class:ne(["fs_html_viewer",a.field.wrapper_class])},["fs_warn_alert_wrapper"===a.field.wrapper_class?(Hd(),jd("div",joe,[tu(o,{"icon-key":"warning",width:20,height:20,class:"fs_warn_icon"}),eu("div",{class:"fs_warn_content",innerHTML:a.field.html},null,8,qoe)])):(Hd(),jd("div",{key:1,innerHTML:a.field.html},null,8,Koe))],2)}]]),Qoe={style:{float:"left"}},Zoe={key:0,style:{float:"right",color:"#8492a6","font-size":"13px"}};const Joe=dH({name:"AgentSelectors",props:["field","modelValue"],emits:["update:modelValue"],data(){return{agents:this.appVars.support_agents,loading:!1,modelValueLocal:this.modelValue}},watch:{modelValueLocal(e){this.$emit("update:modelValue",e)}}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A;return Hd(),jd("div",null,[tu(r,{multiple:a.field.is_multiple,clearable:"",filterable:"",placeholder:a.field.placeholder,modelValue:s.modelValueLocal,"onUpdate:modelValue":t[0]||(t[0]=e=>s.modelValueLocal=e)},{default:br(()=>[a.field.extra_options?(Hd(!0),jd(Pd,{key:0},sc(a.field.extra_options,(e,t)=>(Hd(),qd(o,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128)):ou("",!0),(Hd(!0),jd(Pd,null,sc(s.agents,e=>(Hd(),qd(o,{key:e.id,label:e.full_name,value:e.id},{default:br(()=>[eu("span",Qoe,fe(e.full_name),1),e.show_id?(Hd(),jd("span",Zoe,fe(e.id),1)):ou("",!0)],void 0),_:2},1032,["label","value"]))),128))],void 0),_:1},8,["multiple","placeholder","modelValue"])])}]]),ere={style:{float:"left"}},tre={key:0,style:{float:"right",color:"#8492a6","font-size":"13px"}};const are=dH({name:"TagSelectors",props:["field","modelValue"],emits:["update:modelValue"],data(){return{tags:this.appVars.ticket_tags,loading:!1,modelValueLocal:this.modelValue}},watch:{modelValueLocal(e){this.$emit("update:modelValue",e)}}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A;return Hd(),jd("div",null,[tu(r,{clearable:"",multiple:a.field.is_multiple,filterable:"",placeholder:a.field.placeholder,modelValue:s.modelValueLocal,"onUpdate:modelValue":t[0]||(t[0]=e=>s.modelValueLocal=e)},{default:br(()=>[a.field.extra_options?(Hd(!0),jd(Pd,{key:0},sc(a.field.extra_options,(e,t)=>(Hd(),qd(o,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128)):ou("",!0),(Hd(!0),jd(Pd,null,sc(s.tags,e=>(Hd(),qd(o,{key:e.id,label:e.title,value:e.id},{default:br(()=>[eu("span",ere,fe(e.title),1),e.show_id?(Hd(),jd("span",tre,fe(e.id),1)):ou("",!0)],void 0),_:2},1032,["label","value"]))),128))],void 0),_:1},8,["multiple","placeholder","modelValue"])])}]]);const ire=dH({name:"InputOptions",props:["field","modelValue"],emits:["update:modelValue"],data(){return{countries:{},loading:!1,modelValueLocal:this.modelValue}},watch:{modelValueLocal(e){this.$emit("update:modelValue",e)}},methods:{fetchCountries(){if(window.fs_countries_options)return this.countries=window.fs_countries_options,!1;this.loading=!0,this.$get("options/countries").then(e=>{window.fs_countries_options=e.countries,this.countries=e.countries}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}},mounted(){this.fetchCountries()}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A,l=q$;return Hd(),jd("div",null,[vr((Hd(),qd(r,{clearable:"",filterable:"",placeholder:a.field.placeholder,modelValue:s.modelValueLocal,"onUpdate:modelValue":t[0]||(t[0]=e=>s.modelValueLocal=e)},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.countries,(e,t)=>(Hd(),qd(o,{key:t,label:e,value:t},null,8,["label","value"]))),128))],void 0),_:1},8,["placeholder","modelValue"])),[[l,s.loading]])])}]]),sre={class:"fs_table"};const nre=dH({name:"ObjectTabularInput",props:["field","modelValue"],emits:["update:modelValue"],watch:{modelValue(e){this.$emit("update:modelValue",e)}}},[["render",function(e,t,a,i,s,n){const o=oC;return Hd(),jd("table",sre,[eu("thead",null,[eu("tr",null,[eu("th",null,fe(a.field.source_label),1),eu("th",null,fe(a.field.new_label),1)])]),eu("tbody",null,[(Hd(!0),jd(Pd,null,sc(a.field.options,(e,t)=>(Hd(),jd("tr",null,[eu("th",null,fe(e),1),eu("td",null,[tu(o,{modelValue:a.modelValue[t],"onUpdate:modelValue":e=>a.modelValue[t]=e},null,8,["modelValue","onUpdate:modelValue"])])]))),256))])])}]]),ore={name:"KeyboardShortcutsModal",props:{modelValue:{type:Boolean,default:!1},shortcutModalData:{type:Object,default:null}},emits:["update:modelValue"],data:()=>({activeTab:"mac"}),computed:{modalTitle(){return this.shortcutModalData?this.shortcutModalData.title:"Keyboard Shortcuts"},macLabel(){return this.shortcutModalData?this.shortcutModalData.mac_label:"macOS"},winLabel(){return this.shortcutModalData?this.shortcutModalData.win_label:"Windows"},actionLabel(){return this.shortcutModalData?this.shortcutModalData.action_label:"Action"},shortcutLabel(){return this.shortcutModalData?this.shortcutModalData.shortcut_label:"Shortcut"},macShortcuts(){return this.shortcutModalData?this.shortcutModalData.mac_shortcuts:[]},winShortcuts(){return this.shortcutModalData?this.shortcutModalData.win_shortcuts:[]}}},rre={class:"fs_keyboard_shortcuts_content"};const lre={class:"fs_global_form_builder"},cre={key:0,class:"fs_field_description"},dre=["innerHTML"];const ure=dH({name:"global_form_builder",components:{WithLabel:Moe,InputText:Loe,WpEditor:cee,WpEditorField:Poe,ImageRadio:Foe,InputRadio:$oe,InputOptions:Uoe,InlineCheckbox:Yoe,VerifiedEmailInput:Goe,CheckboxGroup:Woe,HtmlViewer:Xoe,AgentSelectors:Joe,TagSelectors:are,CountrySelector:ire,ObjectTabularInput:nre,KeyboardShortcutsModal:dH(ore,[["render",function(e,t,a,i,s,n){const o=JP,r=ZP,l=fF,c=mF,d=pD;return Hd(),qd(d,{title:n.modalTitle,"model-value":a.modelValue,width:"560px",class:"fs_dialog fs_keyboard_shortcuts_dialog","append-to-body":"","onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t))},{default:br(()=>[eu("div",rre,[tu(c,{modelValue:s.activeTab,"onUpdate:modelValue":t[0]||(t[0]=e=>s.activeTab=e),class:"fs_customer_management_tabs"},{default:br(()=>[tu(l,{label:n.macLabel,name:"mac"},{default:br(()=>[tu(r,{data:n.macShortcuts,size:"small",class:"fs_shortcuts_table"},{default:br(()=>[tu(o,{label:n.actionLabel,prop:"action","min-width":"200"},null,8,["label"]),tu(o,{label:n.shortcutLabel,prop:"shortcut",width:"220"},null,8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},8,["label"]),tu(l,{label:n.winLabel,name:"win"},{default:br(()=>[tu(r,{data:n.winShortcuts,size:"small",class:"fs_shortcuts_table"},{default:br(()=>[tu(o,{label:n.actionLabel,prop:"action","min-width":"200"},null,8,["label"]),tu(o,{label:n.shortcutLabel,prop:"shortcut",width:"220"},null,8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},8,["label"])],void 0),_:1},8,["modelValue"])])],void 0),_:1},8,["title","model-value"])}]])},data:()=>({showKeyboardShortcutsModal:!1}),computed:{shortcutModalData(){return this.fields&&this.fields.keyboard_shortcuts&&this.fields.keyboard_shortcuts.shortcut_modal?this.fields.keyboard_shortcuts.shortcut_modal:null}},props:{formData:{type:Object,required:!1,default:()=>({})},label_position:{required:!1,type:String,default:()=>"top"},fields:{required:!0,type:Object}},methods:{nativeSave(){this.$emit("nativeSave",this.formData)},compare(e,t,a){switch(t){case"=":return e===a;case"!=":return e!==a;case"contains":return a.includes(e);case"not_contains":return!a.includes(e)}},dependancyPass(e){if(e&&e.dependency){const t=e.dependency.depends_on.split("/").reduce((e,t)=>e[t],this.formData);return!!this.compare(e.dependency.value,e.dependency.operator,t)}return!0}}},[["render",function(e,t,a,i,s,n){const o=Zl("with-label"),r=iE,l=Zl("keyboard-shortcuts-modal");return Hd(),jd("div",lre,[tu(r,{onSubmit:Th(n.nativeSave,["prevent"]),data:a.formData,"label-position":a.label_position},{default:br(()=>[oc(e.$slots,"form_start"),(Hd(!0),jd(Pd,null,sc(a.fields,(e,i)=>(Hd(),jd(Pd,{key:i},[n.dependancyPass(e)?(Hd(),qd(o,{key:0,field:e},{default:br(()=>[eu("div",{class:ne(`fs_${e.type}_wrapper`)},[(Hd(),qd(ec(e.type),du({modelValue:a.formData[i],"onUpdate:modelValue":e=>a.formData[i]=e,field:e},{ref_for:!0},e.props),null,16,["modelValue","onUpdate:modelValue","field"])),e.inline_help&&"inline-checkbox"==e.type?(Hd(),jd("div",cre,[eu("span",{innerHTML:e.inline_help},null,8,dre),"keyboard_shortcuts"===i&&e.shortcut_modal?(Hd(),jd("a",{key:0,href:"#",class:"fs_doc_link fs_keyboard_shortcuts_link",onClick:t[0]||(t[0]=Th(e=>s.showKeyboardShortcutsModal=!0,["prevent"]))},fe(e.shortcut_modal.title),1)):ou("",!0)])):ou("",!0)],2)],void 0),_:2},1032,["field"])):ou("",!0)],64))),128)),oc(e.$slots,"form_end")],void 0),_:3},8,["onSubmit","data","label-position"]),tu(l,{modelValue:s.showKeyboardShortcutsModal,"onUpdate:modelValue":t[1]||(t[1]=e=>s.showKeyboardShortcutsModal=e),"shortcut-modal-data":n.shortcutModalData},null,8,["modelValue","shortcut-modal-data"])])}]]),pre={class:"fs_customer_form"},hre={key:0,class:"fs_form_buttons"};const gre=dH({name:"CustomerForm",props:["customer","source"],components:{FormBuilder:ure},emits:["updated"],data:()=>({basic_fields:{},address_fields:{},loading:!1}),mounted(){this.fetchCustomerField()},methods:{async createCustomer(){this.loading=!0,this.$post("customers",this.customer).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.$emit("updated",e.customer)}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},async fetchCustomerField(){this.loading=!0,this.$get("customers/customerField/"+(this.customer.id?this.customer.id:0),{user_id:this.customer.user_id?this.customer.user_id:0}).then(e=>{this.address_fields=e.customerField.address_fields,this.basic_fields=e.customerField.basic_fields,this.basic_fields.first_name&&(this.basic_fields.first_name.required=!0),this.basic_fields.email&&(this.basic_fields.email.required=!0)}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},async updateCustomer(){this.loading=!0,this.$put(`customers/${this.customer.id}`,this.customer).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.$emit("updated",e.customer)}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}}},[["render",function(e,t,a,i,s,n){const o=Zl("form-builder"),r=vk,l=q$;return vr((Hd(),jd("div",pre,[tu(o,{fields:s.basic_fields,"form-data":a.customer},null,8,["fields","form-data"]),tu(o,{fields:s.address_fields,"form-data":a.customer},null,8,["fields","form-data"]),e.$route.params.customer_id||"ticket"===a.source?(Hd(),jd("div",hre,[a.customer.id?(Hd(),qd(r,{key:0,class:"fs_filled_btn",onClick:t[0]||(t[0]=e=>n.updateCustomer()),type:"success"},{default:br(()=>[su(fe(e.$t("Update Customer")),1)],void 0),_:1})):(Hd(),qd(r,{key:1,class:"fs_filled_btn",onClick:t[1]||(t[1]=e=>n.createCustomer()),type:"primary"},{default:br(()=>[su(fe(e.$t("Create Customer")),1)],void 0),_:1}))])):ou("",!0)])),[[l,s.loading]])}]]),mre={key:0,class:"fs_crm_profile"},fre={class:"fs_crm_heading"},_re=["href"],bre={class:"fs_taggables_header_title"},vre={key:0,class:"fs_crm_profile_title"},yre={class:"fs_taggables"},Sre={class:"fs_taggables_header"},xre={class:"fs_taggables_header_title"},wre={class:"fs_taggables_tags"},Ere={class:"fs_popover_content_wrapper"},Cre=["title"],kre={class:"fs_popover_title"},Tre={class:"fs_taggables"},Are={class:"fs_taggables_header"},Rre={class:"fs_taggables_header_title"},Ore={class:"fs_taggables_tags"},Nre={class:"fs_popover_content_wrapper"},Ire=["title"],Dre={class:"fs_popover_title"};const Mre=dH({name:"CRMProfile",props:["crm_profile"],data(){return{all_tags:this.appVars.fluentcrm_config.tags,all_lists:this.appVars.fluentcrm_config.lists,can_add_tags:this.appVars.fluentcrm_config.can_add_tags,attachedTags:[],attachedLists:[],popVisible:!1,saving:!1,listPopVisible:!1}},methods:{syncTags(){this.saving=!0,this.$post("tickets/sync-fluentcrm-tags",{contact_id:this.crm_profile.id,tags:this.attachedTags}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.crm_profile.tags=e.tags,this.popVisible=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},syncLists(){this.saving=!0,this.$post("tickets/sync-fluentcrm-lists",{contact_id:this.crm_profile.id,lists:this.attachedLists}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.crm_profile.lists=e.lists,this.listPopVisible=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})}},mounted(){qK(this.crm_profile.tags,e=>{this.attachedTags.push(e.id)}),qK(this.crm_profile.lists,e=>{this.attachedLists.push(e.id)})}},[["render",function(e,t,a,i,s,n){const o=Zl("Plus"),r=jx,l=Zl("Close"),c=bA,d=_A,u=vk,p=$B,h=q$;return a.crm_profile?(Hd(),jd("div",mre,[eu("div",fre,[eu("a",{target:"_blank",rel:"noopener",href:a.crm_profile.view_url},[eu("span",bre,fe(e.$t("CRM")),1),eu("span",{class:ne(["el-tag el-tag--mini el-tag--danger","fc_status_"+a.crm_profile.status])},[t[8]||(t[8]=eu("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[eu("path",{d:"M8.60001 6.80039H12.8L7.40001 14.6004V9.20039H3.20001L8.60001 1.40039V6.80039Z",fill:"white"})],-1)),su(" "+fe(e.ucFirst(a.crm_profile.status)),1)],2)],8,_re)]),a.crm_profile.name_mismatch?(Hd(),jd("span",vre,fe(a.crm_profile.full_name),1)):ou("",!0),eu("div",yre,[eu("div",Sre,[eu("span",xre,fe(e.$t("Contacts Tag")),1),eu("div",wre,[(Hd(!0),jd(Pd,null,sc(a.crm_profile.tags,e=>(Hd(),jd("span",{class:"el-tag el-tag--mini el-tag--plain",key:e.id},fe(e.title),1))),128)),s.can_add_tags?(Hd(),qd(p,{key:0,placement:"bottom",width:400,visible:s.popVisible,trigger:"manual","popper-class":"fs_popover"},{reference:br(()=>[eu("span",{onClick:t[0]||(t[0]=e=>s.popVisible=!s.popVisible),style:{cursor:"pointer"},class:"fs_add_tag_icon el-tag el-tag--mini el-tag--plain"},[tu(r,{style:{"vertical-align":"middle"}},{default:br(()=>[tu(o)],void 0),_:1})])]),default:br(()=>[eu("div",Ere,[eu("span",{class:"fs_popover_close",onClick:t[1]||(t[1]=e=>s.popVisible=!1),title:e.$t("Close"),role:"button"},[tu(r,null,{default:br(()=>[tu(l)],void 0),_:1})],8,Cre),eu("h4",kre,fe(e.$t("Apply / Remove Tags on FluentCRM Profile")),1),tu(d,{multiple:!0,modelValue:s.attachedTags,"onUpdate:modelValue":t[2]||(t[2]=e=>s.attachedTags=e),size:"small"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.all_tags,e=>(Hd(),qd(c,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"]),vr((Hd(),qd(u,{class:"fs_filled_btn",onClick:t[3]||(t[3]=e=>n.syncTags()),disabled:s.saving,type:"success",size:"small"},{default:br(()=>[su(fe(e.$t("Update Settings")),1)],void 0),_:1},8,["disabled"])),[[h,s.saving]])])],void 0),_:1},8,["visible"])):ou("",!0)])])]),eu("div",Tre,[eu("div",Are,[eu("span",Rre,fe(e.$t("Contacts List")),1),eu("div",Ore,[(Hd(!0),jd(Pd,null,sc(a.crm_profile.lists,e=>(Hd(),jd("span",{class:"el-tag el-tag--mini el-tag--plain",key:e.id},fe(e.title),1))),128)),s.can_add_tags?(Hd(),qd(p,{key:0,placement:"bottom",width:400,visible:s.listPopVisible,trigger:"manual","popper-class":"fs_popover"},{reference:br(()=>[eu("span",{onClick:t[4]||(t[4]=e=>s.listPopVisible=!s.listPopVisible),style:{cursor:"pointer"},class:"fs_add_tag_icon el-tag el-tag--mini el-tag--plain"},[tu(r,{style:{"vertical-align":"middle"}},{default:br(()=>[tu(o)],void 0),_:1})])]),default:br(()=>[eu("div",Nre,[eu("span",{class:"fs_popover_close",onClick:t[5]||(t[5]=e=>s.listPopVisible=!1),title:e.$t("Close"),role:"button"},[tu(r,null,{default:br(()=>[tu(l)],void 0),_:1})],8,Ire),eu("h4",Dre,fe(e.$t("Apply / Remove Lists on FluentCRM Profile")),1),tu(d,{multiple:!0,modelValue:s.attachedLists,"onUpdate:modelValue":t[6]||(t[6]=e=>s.attachedLists=e),size:"small",class:"fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.all_lists,e=>(Hd(),qd(c,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"]),vr((Hd(),qd(u,{onClick:t[7]||(t[7]=e=>n.syncLists()),disabled:s.saving,class:"fs_filled_btn"},{default:br(()=>[su(fe(e.$t("Update Settings")),1)],void 0),_:1},8,["disabled"])),[[h,s.saving]])])],void 0),_:1},8,["visible"])):ou("",!0)])])])])):ou("",!0)}]]),Lre={class:"fs_minute_input"},Pre={class:"fs-time-input-wrapper"},Fre={class:"fs-time-input-container"},$re={class:"fs-time-label-box"},Bre={class:"fs-time-label"},Vre={class:"fs-time-input-wrapper"},Ure={class:"fs-time-input-container"},Hre={class:"fs-time-label-box"},zre={class:"fs-time-label"};const Yre={name:"TaskTimer",props:["ticket_id","customer_id"],components:{HourMinuteInput:dH({name:"HourMinuteInput",props:["modelValue"],emits:["update:modelValue"],data(){return{form:{hour:Math.floor(this.modelValue/60),minute:Math.floor(this.modelValue%60)}}},watch:{modelValue:{handler(e){const t=Math.floor(e/60),a=Math.floor(e%60);this.form.hour===t&&this.form.minute===a||(this.form.hour=t,this.form.minute=a)},immediate:!0},form:{handler(){const e=60*parseInt(this.form.hour||0)+parseInt(this.form.minute||0);this.$emit("update:modelValue",e)},deep:!0}}},[["render",function(e,t,a,i,s,n){const o=oC;return Hd(),jd("div",Lre,[eu("div",Pre,[eu("div",Fre,[tu(o,{type:"number",modelValue:s.form.hour,"onUpdate:modelValue":t[0]||(t[0]=e=>s.form.hour=e),min:0,step:1,class:"fs-time-input"},null,8,["modelValue"]),eu("div",$re,[eu("span",Bre,fe(e.$t("Hours")),1)])])]),eu("div",Vre,[eu("div",Ure,[tu(o,{type:"number",modelValue:s.form.minute,"onUpdate:modelValue":t[1]||(t[1]=e=>s.form.minute=e),min:0,max:59,step:1,class:"fs-time-input"},null,8,["modelValue"]),eu("div",Hre,[eu("span",zre,fe(e.$t("Minutes")),1)])])])])}]])},data:()=>({tracks:[],estimatedMinutes:0,loading:!1,updating:!1,estimatedForm:!1,logForm:!1,estimateTimePopoverPlacement:"left",newLog:{working_minutes:"",message:"",started_at:""}}),computed:{percentileCompleted(){return this.estimatedMinutes?Math.floor(this.totalLoggedMinutes/this.estimatedMinutes*100):0},totalLoggedMinutes(){return this.tracks.reduce((e,t)=>e+t.billable_minutes,0)},progressColor(){return this.percentileCompleted>100?"#EF4444":"#3B82F6"},totalLoggedLabel(){return this.formatMinutes(this.totalLoggedMinutes)},totalEstimationLabel(){return this.formatMinutes(this.estimatedMinutes)},textColor(){return this.percentileCompleted>=15?"white":"black"}},methods:{fetchTracks(){this.loading=!0,this.$get(`time-tracks/${this.ticket_id}`).then(e=>{this.tracks=e.tracks,this.estimatedMinutes=e.estimated_minutes}).catch(e=>this.$handleError(e))},toggleLog(){this.logForm=!this.logForm},formatMinutes(e){const t=parseInt(e);if(!t)return"";const a=Math.floor(t/60),i=t%60;return a?`${a}h ${i}m`:`${i}m`},logTime(){this.newLog.working_minutes<1?alert("Please enter valid time"):(this.updating=!0,this.$post(`time-tracks/${this.ticket_id}`,{customer_id:this.customer_id,...this.newLog}).then(e=>{this.tracks.push(e.track),this.logForm=!1,this.updating=!1,this.newLog={working_minutes:"",message:"",started_at:""}}).catch(e=>this.$handleError(e)).always(()=>{this.updating=!1,this.logForm=!1}))},updateEstimatedTime(){this.updating=!0,this.$post(`time-tracks/${this.ticket_id}/estimated-time`,{estimated_minutes:this.estimatedMinutes}).then(()=>{this.updating=!1,this.estimatedForm=!1}).catch(e=>this.$handleError(e)).always(()=>this.updating=!1)}},mounted(){this.fetchTracks(),window.innerWidth<817&&(this.estimateTimePopoverPlacement="bottom")}},Gre={class:"fs-task-timer-wrap"},Wre={class:"fs-progress-row"},jre={class:"fs-progress-percentage"},qre={key:0,class:"fs-no-logging-text"},Kre={key:1,class:"fs-no-logging-text"},Xre={key:0,class:"fs-time-labels-row"},Qre={class:"fs-time-label-text"},Zre={class:"fs_detail_log"},Jre={class:"fs-time-track-agent"},ele=["href"],tle={class:"fs-time-label-text"},ale={class:"fs-estimation-popover"},ile={class:"fs-estimation-title"},sle={class:"fs-action-buttons-row"},nle={class:"fs-estimation-popover"},ole={class:"fs-estimation-title"},rle={key:1,class:"fs-new-timer"};const lle=dH(Yre,[["render",function(e,t,a,i,s,n){const o=TL,r=JP,l=AC,c=ZP,d=$B,u=Zl("HourMinuteInput"),p=vk,h=Zl("Plus"),g=jx,m=sE,f=oC,_=iE,b=q$;return Hd(),jd("div",Gre,[eu("div",Wre,[eu("span",jre,fe(n.percentileCompleted)+"%",1),n.totalLoggedLabel?(Hd(),jd("span",Kre,fe(n.totalLoggedLabel)+" "+fe(e.$t("logged")),1)):(Hd(),jd("span",qre,fe(e.$t("No logging yet!")),1))]),tu(o,{color:n.progressColor,percentage:n.percentileCompleted>100?100:n.percentileCompleted,"show-text":!1,"stroke-width":8},null,8,["color","percentage"]),s.estimatedMinutes?(Hd(),jd("div",Xre,[tu(d,{ref:"estimatedTimePop","popper-class":"fs-timer-log-popover",placement:s.estimateTimePopoverPlacement,width:400,trigger:"click"},{reference:br(()=>[eu("span",Qre,fe(n.totalLoggedLabel)+" "+fe(e.$t("logged")),1)]),default:br(()=>[tu(c,{stripe:"",data:s.tracks,style:{width:"100%"}},{default:br(()=>[tu(r,{type:"expand",width:"30"},{default:br(({row:t})=>[eu("div",Zre,[eu("p",null,[eu("b",null,fe(e.$t("Logged at:")),1),su(" "+fe(e.smartDate(t.created_at,!0)),1)]),eu("p",null,[eu("b",null,fe(e.$t("Work Description:")),1),su(" "+fe(t.message),1)])])]),_:1}),tu(r,{prop:"agent",label:e.$t("Agent")},{default:br(({row:e})=>{var t,a;return[eu("div",Jre,[tu(l,{src:null==(t=e.agent)?void 0:t.photo,size:24},null,8,["src"]),eu("a",{href:`/wp-admin/user-edit.php?user_id=${e.agent.user_id}`,target:"_blank"},fe(null==(a=e.agent)?void 0:a.full_name),9,ele)])]}),_:1},8,["label"]),tu(r,{prop:"billable_minutes",label:e.$t("Time"),width:"80"},{default:br(({row:e})=>[eu("span",null,fe(n.formatMinutes(e.billable_minutes)),1)]),_:1},8,["label"]),tu(r,{width:"80",prop:"created_at",label:e.$t("Date")},{default:br(({row:t})=>[eu("span",null,fe(e.smartDate(t.created_at)),1)]),_:1},8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},8,["placement"]),tu(d,{ref:"estimatedTimeForm",placement:"right",width:400,visible:s.estimatedForm,"onUpdate:visible":t[1]||(t[1]=e=>s.estimatedForm=e),trigger:"click"},{reference:br(()=>[eu("span",tle,fe(n.totalEstimationLabel)+" "+fe(e.$t("estimated")),1)]),default:br(()=>[eu("div",ale,[eu("h4",ile,fe(e.$t("Set Estimated Time")),1),tu(u,{modelValue:s.estimatedMinutes,"onUpdate:modelValue":t[0]||(t[0]=e=>s.estimatedMinutes=e)},null,8,["modelValue"]),vr((Hd(),qd(p,{disabled:s.updating,onClick:n.updateEstimatedTime,class:"fs_filled_btn",type:"success"},{default:br(()=>[su(fe(e.$t("Update Estimation")),1)],void 0),_:1},8,["disabled","onClick"])),[[b,s.updating]])])],void 0),_:1},8,["visible"])])):ou("",!0),eu("div",sle,[tu(p,{onClick:n.toggleLog,class:"fs_outline_btn"},{default:br(()=>[tu(g,null,{default:br(()=>[tu(h)],void 0),_:1}),eu("span",null,fe(e.$t("Add Log")),1)],void 0),_:1},8,["onClick"]),s.estimatedMinutes?ou("",!0):(Hd(),qd(d,{key:0,ref:"estimatedTimeFormBtn",placement:"right",width:400,visible:s.estimatedForm,"onUpdate:visible":t[3]||(t[3]=e=>s.estimatedForm=e),trigger:"click"},{reference:br(()=>[tu(p,{class:"fs_outline_btn"},{default:br(()=>[su(fe(e.$t("Set Estimation")),1)],void 0),_:1})]),default:br(()=>[eu("div",nle,[eu("h4",ole,fe(e.$t("Set Estimated Time")),1),tu(u,{modelValue:s.estimatedMinutes,"onUpdate:modelValue":t[2]||(t[2]=e=>s.estimatedMinutes=e)},null,8,["modelValue"]),vr((Hd(),qd(p,{disabled:s.updating,onClick:n.updateEstimatedTime,class:"fs_filled_btn",type:"success"},{default:br(()=>[su(fe(e.$t("Update Estimation")),1)],void 0),_:1},8,["disabled","onClick"])),[[b,s.updating]])])],void 0),_:1},8,["visible"]))]),s.logForm?(Hd(),jd("div",rle,[vr((Hd(),qd(_,{ref:"newLogForm","label-position":"top"},{default:br(()=>[tu(m,{label:e.$t("Total Hours")},{default:br(()=>[tu(u,{modelValue:s.newLog.working_minutes,"onUpdate:modelValue":t[4]||(t[4]=e=>s.newLog.working_minutes=e)},null,8,["modelValue"])],void 0),_:1},8,["label"]),tu(m,{label:e.$t("Work Description")},{default:br(()=>[tu(f,{placeholder:e.$t("Describe this log entry"),modelValue:s.newLog.message,"onUpdate:modelValue":t[5]||(t[5]=e=>s.newLog.message=e),type:"textarea",rows:4},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),tu(m,{class:"fs-form-actions"},{default:br(()=>[vr((Hd(),qd(p,{type:"primary",disabled:s.updating,onClick:t[6]||(t[6]=e=>n.logTime()),class:"fs_filled_btn"},{default:br(()=>[su(fe(e.$t("Submit Log")),1)],void 0),_:1},8,["disabled"])),[[b,s.updating]])],void 0),_:1})],void 0),_:1})),[[b,s.updating]])])):ou("",!0)])}]]),cle={name:"WidgetHeader",props:{title:{type:String,required:!0},icon:{type:[String,Object],default:null},expanded:{type:Boolean,default:!1}},emits:["toggle"],computed:{isHtml(){return this.title&&/<[^>]+>/.test(this.title)}},methods:{toggleExpanded(){this.$emit("toggle")}}},dle={class:"fs_widget_header_content"},ule={class:"fs_widget_title_wrapper"},ple={key:0,class:"fs_widget_title"},hle=["innerHTML"],gle={key:0,class:"fs_widget_divider"};const mle={name:"CollapsibleWidget",components:{WidgetHeader:dH(cle,[["render",function(e,t,a,i,s,n){const o=jx;return Hd(),jd("div",{class:ne(["fs_widget_header",{fs_widget_expanded:a.expanded}]),onClick:t[0]||(t[0]=(...e)=>n.toggleExpanded&&n.toggleExpanded(...e))},[eu("div",dle,[eu("div",ule,[oc(e.$slots,"icon",{},()=>[a.icon?(Hd(),qd(o,{key:0,size:"18",class:"fs_widget_icon"},{default:br(()=>[(Hd(),qd(ec(a.icon)))],void 0),_:1})):ou("",!0)]),n.isHtml?(Hd(),jd("h3",{key:1,class:"fs_widget_title",innerHTML:a.title},null,8,hle)):(Hd(),jd("h3",ple,fe(a.title),1))]),tu(o,{class:"fs_widget_toggle_icon"},{default:br(()=>[(Hd(),qd(ec(a.expanded?"ArrowUp":"ArrowDown")))],void 0),_:1})]),a.expanded?(Hd(),jd("div",gle)):ou("",!0)],2)}]])},props:{title:{type:String,required:!0},icon:{type:[String,Object],default:null},defaultExpanded:{type:Boolean,default:!1}},data(){return{isExpanded:this.defaultExpanded}},methods:{toggleWidget(){this.isExpanded=!this.isExpanded},expand(){this.isExpanded=!0},collapse(){this.isExpanded=!1}}},fle={class:"fs_widget_body"};const _le=dH(mle,[["render",function(e,t,a,i,s,n){const o=Zl("widget-header");return Hd(),jd("div",{class:ne(["fs_collapsible_widget",{fs_widget_expanded:s.isExpanded}])},[tu(o,{title:a.title,icon:a.icon,expanded:s.isExpanded,onToggle:n.toggleWidget},nc({_:2},[e.$slots.icon?{name:"icon",fn:br(()=>[oc(e.$slots,"icon")]),key:"0"}:void 0]),1032,["title","icon","expanded","onToggle"]),tu(ip,{name:"fs-widget-slide"},{default:br(()=>[vr(eu("div",fle,[oc(e.$slots,"default")],512),[[vp,s.isExpanded]])],void 0),_:3})],2)}]]),ble={__name:"VueTemplateLoader",props:{widget:{type:Object,required:!0},data:{required:!1}},setup(e){const t=e=>{if("string"==typeof e){const t=(e=>{var t,a;try{if("string"!=typeof e)return null;const i=e.match(/<template(?:\s[^>]*)?>|<template>/i);if(!i)return null;const s=i.index+i[0].length;let n=1,o=s,r=-1;for(;o<e.length&&n>0;){const t=e.indexOf("<template",o),a=e.indexOf("</template>",o);if(-1===a)return null;-1!==t&&t<a?(n++,o=t+9):(n--,0===n&&(r=a),o=a+11)}if(-1===r)return null;const l=e.substring(s,r).trim(),c=e.match(/<script>([\s\S]*?)<\/script>/i);let d={};if(c){const e=c[1].trim();if(!/export\s+default/.test(e))return null;const i=e.replace(/export\s+default/,"return");d=new Function("Vue","ElMessage","ElMessageBox",i)(H_,null==(t=null==window?void 0:window.ELEMENT)?void 0:t.ElMessage,null==(a=null==window?void 0:window.ELEMENT)?void 0:a.ElMessageBox)||{}}return sl({...d,template:l})}catch(PI){return null}})(e);return t?sl(t):null}return sl(e)};return(a,i)=>(Hd(),qd(ec(t(e.widget.component)),du({ref:"componentRefs",data:e.data},{...e.widget}),null,16,["data"]))}},vle=["innerHTML"],yle={__name:"DynamicTemplates",props:{widgetsQuery:{type:Object,default:()=>({}),required:!1},filter:{type:String,default:"",required:!1},data:{required:!1}},emits:["change"],setup(e,{expose:t,emit:a}){const i=e,s=fo([]),n=(e,t)=>(e._wid||(e._wid=e.id||e.form_name||(e.type+"_"+(e.title||"")+"_"+(e.component||"")+"_"+t).replace(/\s+/g,"_")),e),o=io(H_),r={},l={},c=()=>{const e={filter:i.filter,data:i.widgetsQuery};Oj.get("widgets",e).then(e=>{if(e&&Array.isArray(e.widgets)){const t=s.value.filter(e=>e._jsHook);e.widgets.forEach((e,t)=>n(e,"srv_"+t)),s.value=t.concat(e.widgets)}})};Ul(c);let d=JSON.stringify(i.widgetsQuery);Rr(()=>JSON.stringify(i.widgetsQuery),e=>{e!==d&&(d=e,c())});const u=fu(),p=()=>{var e;const t=null==(e=window.fluentSupportAdmin)?void 0:e.hooks;if(!t||!u)return;let a=u.appContext.components;(e=>{var t;const a=null==(t=window.fluentSupportAdmin)?void 0:t.hooks;if(!a)return;window.fluentSupportAdmin.app={vue:o,components:e,xhr:Oj},a.applyFilters(i.filter+"_components",[],o,e).forEach(({name:e,component:t})=>{l[e]!==t&&(l[e]=t,r[e]=sl(t))})})(a);let c=t.applyFilters(i.filter,[],o,a);if(!Array.isArray(c)||!c.length)return;c.forEach((e,t)=>{e._jsHook=!0,n(e,"js_"+t)});const d=s.value.filter(e=>!e._jsHook);s.value=d.concat(c)};let h=null;Hl(()=>{p(),h=setTimeout(p,300),window.addEventListener("fluent_support_widgets_ready",p)}),Gl(()=>{h&&clearTimeout(h),window.removeEventListener("fluent_support_widgets_ready",p)});const g=e=>sl(e),m=e=>r[e]||null,f=fo([]),_=async(e,t)=>{const a=f.value.map(a=>"function"==typeof a[e]?a[e](t):Promise.resolve());return await Promise.all(a),!0},b=fo();return t({beforeUpdatingData:async e=>await _("beforeUpdatingData",e),afterUpdatingData:async e=>await _("afterUpdatingData",e),getFormStates:()=>{let e=[];if(Array.isArray(b.value))for(let t of b.value)e={...e,...t.getState()};return e},resetForms:()=>{if(Array.isArray(b.value))for(let e of b.value)e.resetOnSave()&&e.resetForm()}}),(t,a)=>(Hd(!0),jd(Pd,null,sc(s.value,t=>(Hd(),jd(Pd,{key:t._wid},["vue-component"!==t.type&&"vue-template"!==t.type||!0===t.use_card?(Hd(),qd(_le,{key:0,title:t.title||"",icon:t.icon||"SetUp","default-expanded":!1!==t.default_expanded,class:"fs_sidebar_widget fs_dynamic_widget"},{default:br(()=>["html"===t.type?(Hd(),jd("div",{key:0,innerHTML:t.content},null,8,vle)):"vue-component"===t.type?(Hd(),jd(Pd,{key:1},["object"==typeof t.component?(Hd(),qd(ec(g(t.component)),du({key:0,ref_for:!0,ref_key:"componentRefs",ref:f},{ref_for:!0},{...t,data:e.data}),null,16)):m(t.component)?(Hd(),qd(ec(m(t.component)),du({key:1,ref_for:!0,ref_key:"componentRefs",ref:f},{ref_for:!0},{...t,data:e.data}),null,16)):ou("",!0)],64)):(Hd(),jd(Pd,{key:2},[su(fe(t.content),1)],64))],void 0),_:2},1032,["title","icon","default-expanded"])):"vue-component"===t.type?(Hd(),jd(Pd,{key:1},["object"==typeof t.component?(Hd(),qd(ec(g(t.component)),du({key:0,ref_for:!0,ref_key:"componentRefs",ref:f},{ref_for:!0},{...t,data:e.data}),null,16)):m(t.component)?(Hd(),qd(ec(m(t.component)),du({key:1,ref_for:!0,ref_key:"componentRefs",ref:f},{ref_for:!0},{...t,data:e.data}),null,16)):ou("",!0)],64)):"vue-template"===t.type?(Hd(),qd(ble,{key:2,widget:t,data:e.data},null,8,["widget","data"])):ou("",!0)],64))),128))}},Sle={name:"FluentBookingSidebarWidget",components:{CollapsibleWidget:_le},props:{ticketId:{type:[String,Number],required:!0},refreshKey:{type:[String,Number,Boolean],default:()=>""}},data:()=>({loading:!1,meetings:{upcoming:[],past:[],scope:"",message:""},errorMessage:"",meetingsRequestKey:0}),computed:{nextMeeting(){var e;return(null==(e=this.meetings.upcoming)?void 0:e[0])||null},pastMeetings(){return this.meetings.past||[]},bookingsListUrl(){return this.getBookingsListUrl("upcoming")},pastBookingsListUrl(){return this.getBookingsListUrl("completed")},shouldShowWidget(){return this.loading||!!this.nextMeeting||this.pastMeetings.length>0||!!this.errorMessage}},watch:{ticketId(){this.fetchMeetings()},refreshKey(){this.fetchMeetings()}},methods:{fetchMeetings(){if(!this.ticketId)return;const e=++this.meetingsRequestKey,t=this.ticketId.toString();this.loading=!0,this.errorMessage="",this.$get(`tickets/${t}/fluent-booking/meetings`).then(a=>{e===this.meetingsRequestKey&&t===this.ticketId.toString()&&(this.meetings=a.meetings||{upcoming:[],past:[],scope:"",message:""})}).catch(a=>{e===this.meetingsRequestKey&&t===this.ticketId.toString()&&(this.errorMessage=this.$t("Could not load FluentBooking meetings."),this.$handleError(a))}).always(()=>{e===this.meetingsRequestKey&&t===this.ticketId.toString()&&(this.loading=!1)})},getStatusClass(e){const t=(e||"").toString().toLowerCase();return["completed"].includes(t)?"fs_status_closed":["cancelled","rejected","no_show"].includes(t)?"fs_status_cancelled":["scheduled","pending"].includes(t)?"fs_status_active":`fs_status_${t}`},getBookingsListUrl(e){var t;const a=(null==(t=this.appVars.fluent_booking)?void 0:t.admin_url)||"";return a?a.replace(/\/?$/,"/")+`scheduled-events?period=${e}`:""},getDatePart(e,t){if(!e)return"day"===t?"--":"";const a=this.$dayjs(e);return a.isValid()?"date"===t?a.date():a.format("ddd"):"day"===t?"--":""},handleBookingLinkSent(e){var t;const a=null==(t=null==e?void 0:e.detail)?void 0:t.ticket_id;a&&a.toString()===this.ticketId.toString()&&this.fetchMeetings()}},mounted(){window.addEventListener("fluent-support/fluent-booking-link-sent",this.handleBookingLinkSent),this.fetchMeetings()},beforeUnmount(){window.removeEventListener("fluent-support/fluent-booking-link-sent",this.handleBookingLinkSent)}},xle={class:"fs_fluent_booking_sidebar"},wle={key:0,class:"fs_fb_notice fs_fb_error"},Ele={class:"fs_fb_section_header"},Cle={class:"fs_fb_section_label"},kle=["href","title"],Tle={key:1,class:"fs_fb_section_count"},Ale={class:"fs_fb_meeting_card"},Rle={class:"fs_fb_meeting_top"},Ole={key:0,class:"fs_fb_calendar_name"},Nle={class:"fs_fb_meeting_main"},Ile={class:"fs_fb_date_box"},Dle={class:"fs_fb_meeting_meta"},Mle={class:"fs_fb_meeting_title"},Lle={class:"fs_fb_meeting_time"},Ple={key:0,class:"fs_fb_meeting_timezone"},Fle={key:1,class:"fs_fb_internal_note"},$le={class:"fs_fb_actions"},Ble=["href"],Vle=["href"],Ule={class:"fs_fb_section_header"},Hle={class:"fs_fb_section_label"},zle=["href","title"],Yle={key:1,class:"fs_fb_section_count"},Gle={class:"fs_fb_meeting_list"},Wle={class:"fs_fb_meeting_item_content"},jle=["href","title"],qle={key:1,class:"fs_fb_meeting_title"},Kle={class:"fs_fb_meeting_time"},Xle={key:2,class:"fs_fb_internal_note fs_fb_internal_note_compact"};const Qle={class:"fs_tk_sidebar_wrap_new"},Zle={class:"fs_client_info_body"},Jle={class:"fs_client_header"},ece={class:"fs_client_avatar"},tce=["src","alt"],ace={class:"fs_client_details"},ice={class:"fs_client_name_row"},sce={class:"fs_client_name"},nce={key:0,class:"fs_blocked_badge"},oce={class:"fs_client_email"},rce=["href"],lce={key:1},cce={class:"fs_customer_address"},dce={key:0,class:"fs_customer_note"},uce={key:2,class:"fs_sidebar_loading"},pce={class:"fs_watchers_body"},hce={key:0,class:"fs_watchers_list"},gce={class:"fs_popover_title"},mce={key:0,class:"fs_widget_purchases"},fce={class:"fs_purchase_list"},_ce={class:"fs_purchase_row"},bce=["onClick"],vce={key:1,class:"fs_widget_fct_purchases"},yce={key:0,class:"fs_summary_stats"},Sce={class:"fs_full_listed"},xce={class:"fs_list_sub"},wce={class:"fs_list_value"},Ece=["href","innerHTML"],Cce={class:"fs_list_sub"},kce={class:"fs_list_value"},Tce={key:0},Ace={class:"fs_list_sub"},Rce={class:"fs_list_value"},Oce={key:1},Nce={class:"fs_list_sub"},Ice={class:"fs_list_value"},Dce={class:"fct_product_content"},Mce={class:"fct_product_title"},Lce={key:0,class:"fct_license_type"},Pce={class:"fct_product_price_row"},Fce=["innerHTML"],$ce={class:"fct_product_type_icon"},Bce={key:1,class:"fct_product_sites"},Vce={class:"fct_expired_badge"},Uce={class:"fct_product_status_row"},Hce={class:"fct_order_links"},zce=["href","title"],Yce={key:2,class:"fs_widget_custom_body"},Gce=["innerHTML"],Wce={class:"fs_order_card_header"},jce={class:"fs_wc_card-body"},qce={class:"fs_wc-order-preview-address"},Kce={key:0},Xce=["innerHTML"],Qce={key:1},Zce={key:2},Jce={key:3},ede={class:"fs_wc-order-preview-address fs_mt_30"},tde={key:0},ade=["innerHTML"],ide=["innerHTML"],sde={class:"fs_order_card_footer"},nde=["href"],ode={class:"fs_order_card_header"},rde={class:"fs_wc_card-body"},lde={class:"fs_wc-order-preview-address"},cde={key:0},dde={key:0},ude={key:1},pde={key:1},hde=["innerHTML"],gde={class:"fs_order_card_footer"},mde=["href"],fde={class:"fs_previous_conversations_body"},_de={class:"fs_conversation_list"},bde={class:"fs_conversation_content"},vde={class:"fs_conversation_title"},yde={key:0,class:"fs_load_more_wrap"},Sde=["disabled"],xde={key:2},wde={class:"fs_additional_details_body"},Ede={class:"fs_detail_field"},Cde={class:"fs_detail_label"},kde={class:"fs_detail_field"},Tde={class:"fs_detail_label"},Ade={key:0,class:"fs_detail_field"},Rde={class:"fs_detail_label"},Ode={class:"fs_tags_wrapper"};const Nde=dH({name:"TicketSidebar",components:{CustomerForm:gre,RemoteSelector:pee,FluentCrmProfile:Mre,TaskTimer:lle,CollapsibleWidget:_le,TicketTags:wH,DynamicTemplates:yle,FluentBookingSidebarWidget:dH(Sle,[["render",function(e,t,a,i,s,n){const o=Zl("collapsible-widget"),r=q$;return e.appVars.fluent_booking&&e.appVars.fluent_booking.active&&n.shouldShowWidget?(Hd(),qd(o,{key:0,title:e.$t("Meeting"),icon:"Calendar","default-expanded":!0,class:"fs_sidebar_widget fs_fluent_booking_sidebar_widget"},{default:br(()=>[vr((Hd(),jd("div",xle,[s.errorMessage&&!s.loading?(Hd(),jd("div",wle,fe(s.errorMessage),1)):ou("",!0),n.nextMeeting?(Hd(),jd(Pd,{key:1},[eu("div",Ele,[eu("span",Cle,fe(e.$t("Next Meeting")),1),s.meetings.upcoming.length>1&&n.bookingsListUrl?(Hd(),jd("a",{key:0,class:"fs_fb_section_count fs_fb_section_count_link",href:n.bookingsListUrl,target:"_blank",rel:"noopener",title:e.$t("View upcoming bookings in FluentBooking")}," +"+fe(s.meetings.upcoming.length-1)+" "+fe(e.$t("more")),9,kle)):s.meetings.upcoming.length>1?(Hd(),jd("span",Tle," +"+fe(s.meetings.upcoming.length-1)+" "+fe(e.$t("more")),1)):ou("",!0)]),eu("div",Ale,[eu("div",Rle,[eu("div",{class:ne(["fs_fb_meeting_status",n.getStatusClass(n.nextMeeting.status)])},[t[0]||(t[0]=eu("span",{class:"fs_fb_status_dot"},null,-1)),su(" "+fe(n.nextMeeting.status_label),1)],2),n.nextMeeting.calendar_title?(Hd(),jd("span",Ole,fe(n.nextMeeting.calendar_title),1)):ou("",!0)]),eu("div",Nle,[eu("div",Ile,[eu("span",null,fe(n.getDatePart(n.nextMeeting.local_start_time||n.nextMeeting.start_time,"day")),1),eu("strong",null,fe(n.getDatePart(n.nextMeeting.local_start_time||n.nextMeeting.start_time,"date")),1)]),eu("div",Dle,[eu("div",Mle,fe(n.nextMeeting.event_title||e.$t("Meeting")),1),eu("div",Lle,fe(n.nextMeeting.date_text),1),n.nextMeeting.timezone?(Hd(),jd("div",Ple,fe(e.$t("Timezone"))+": "+fe(n.nextMeeting.timezone),1)):ou("",!0),n.nextMeeting.internal_note?(Hd(),jd("div",Fle,[eu("span",null,fe(e.$t("Internal Note")),1),eu("p",null,fe(n.nextMeeting.internal_note),1)])):ou("",!0)])]),eu("div",$le,[n.nextMeeting.join_url?(Hd(),jd("a",{key:0,class:"el-button el-button--small fs_filled_btn",href:n.nextMeeting.join_url,target:"_blank",rel:"noopener"},fe(e.$t("Join Meeting")),9,Ble)):ou("",!0),n.nextMeeting.admin_url?(Hd(),jd("a",{key:1,class:"el-button el-button--small fs_outline_btn",href:n.nextMeeting.admin_url,target:"_blank",rel:"noopener"},fe(e.$t("View")),9,Vle)):ou("",!0)])])],64)):ou("",!0),n.pastMeetings.length?(Hd(),jd(Pd,{key:2},[eu("div",Ule,[eu("span",Hle,fe(e.$t("Past Meetings")),1),n.pastBookingsListUrl?(Hd(),jd("a",{key:0,class:"fs_fb_section_count fs_fb_section_count_link",href:n.pastBookingsListUrl,target:"_blank",rel:"noopener",title:e.$t("View completed bookings in FluentBooking")},fe(n.pastMeetings.length),9,zle)):(Hd(),jd("span",Yle,fe(n.pastMeetings.length),1))]),eu("ul",Gle,[(Hd(!0),jd(Pd,null,sc(n.pastMeetings,t=>(Hd(),jd("li",{key:t.id,class:"fs_fb_meeting_item"},[eu("div",Wle,[t.admin_url?(Hd(),jd("a",{key:0,class:"fs_fb_meeting_title fs_fb_meeting_title_link",href:t.admin_url,target:"_blank",rel:"noopener",title:e.$t("Open exact booking in FluentBooking")},fe(t.event_title||e.$t("Meeting")),9,jle)):(Hd(),jd("div",qle,fe(t.event_title||e.$t("Meeting")),1)),eu("div",Kle,fe(t.date_text),1),t.internal_note?(Hd(),jd("div",Xle,[eu("span",null,fe(e.$t("Internal Note")),1),eu("p",null,fe(t.internal_note),1)])):ou("",!0)]),eu("span",{class:ne(["fs_status_badge",n.getStatusClass(t.status)])},fe(t.status_label),3)]))),128))])],64)):ou("",!0)])),[[r,s.loading]])],void 0),_:1},8,["title"])):ou("",!0)}]]),IconPack:$z},props:["ticket_id","ticket","fluentcrm_profile","watchers","watcher_ids","fetch_other_tickets","can_manage_tickets"],data(){return{drawer:!1,drawerType:null,loading:!0,extra_widgets:!1,other_tickets:[],watcherIds:[],customerManagementModal:!1,changing:!1,activeTabName:"update_customer_data",add_watcher:!1,ticketSummary:"",ticketTone:"",agents:this.appVars.support_agents,client_priorities:this.appVars.client_priorities,admin_priorities:this.appVars.admin_priorities,orders:null,customerID:null,origin:window.location.origin,otherTicketsPage:1,otherTicketsTotal:0,otherTicketsMore:!1,loadingMoreTickets:!1,loadMoreRequest:null,widgetsRequest:null}},watch:{watcher_ids(e){this.watcherIds=e},ticket_id(){this.widgetsRequest&&(this.widgetsRequest.abort(),this.widgetsRequest=null),this.loadMoreRequest&&(this.loadMoreRequest.abort(),this.loadMoreRequest=null),this.other_tickets=[],this.extra_widgets=null,this.otherTicketsPage=1,this.otherTicketsMore=!1,this.fetchWidgets()},fetch_other_tickets(){this.otherTicketsPage=1,this.otherTicketsMore=!1,this.fetchWidgets()}},mounted(){this.fetchWidgets(),this.watcherIds=this.watcher_ids,this.has_pro&&this.ticket.watchers&&this.ticket.watchers.length>0&&(this.watcherIds=this.ticket.watchers.map(e=>e.tag_id.toString()))},methods:{fetchMoreOtherTickets(){if(this.loadingMoreTickets||!this.otherTicketsMore)return;this.loadingMoreTickets=!0;const e=this.otherTicketsPage+1;this.loadMoreRequest=this.$get(`tickets/${this.ticket_id}/widgets`,{page:e}).then(t=>{this.otherTicketsPage=e,this.other_tickets=this.other_tickets.concat(t.other_tickets),this.otherTicketsTotal=t.other_tickets_total,this.otherTicketsMore=t.other_tickets_more}).catch(e=>this.$handleError(e)).always(()=>{this.loadingMoreTickets=!1,this.loadMoreRequest=null})},fetchWidgets(){this.loading=!0,this.widgetsRequest=this.$get(`tickets/${this.ticket_id}/widgets`,{with:["other_tickets","extra_widgets"]}).then(e=>{this.other_tickets=e.other_tickets,this.otherTicketsTotal=e.other_tickets_total,this.otherTicketsMore=e.other_tickets_more,this.otherTicketsPage=1,this.extra_widgets=e.extra_widgets}).catch(e=>this.$handleError(e)).always(()=>{this.loading=!1,this.widgetsRequest=null})},customerManagement(){this.customerManagementModal=!this.customerManagementModal},changeCustomer(e){this.$put(`tickets/${this.ticket_id}/change-customer`,{customer:e}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.closeModal()}).catch(e=>this.$handleError(e)).always(()=>{this.loading=!1})},handleClick(e){this.activeTabName=e.props.name},closeModal(){this.customerManagementModal=!1,window.location.reload()},getCustomerAddress:e=>e.custom_field_keys?e.custom_field_keys.map(t=>e[t]).filter(Boolean).join(", "):"",getPaymentMethodName(e){return{offline_payment:this.$t("Offline Payment"),stripe:"Stripe",paypal:"PayPal"}[e]||e},handleClose(e){this.$confirm({message:this.$t("watcher_remove_warning"),title:this.$t("Warning"),options:{confirmButtonText:this.$t("Yes"),cancelButtonText:this.$t("No"),type:"warning",cancelButtonClass:"el-button--default fs_outline_btn",confirmButtonClass:"el-button--danger fs_filled_btn"}}).then(()=>{const t=this.watcherIds.indexOf(e.toString());t>-1&&this.watcherIds.splice(t,1),this.saving=!0,this.updateWatcher()}).catch(e=>this.$handleError(e))},updateWatcher(){this.saving=!0,this.$post(`tickets/${this.ticket.id}/sync-watchers`,{watchers:this.watcherIds}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.$emit("refresh"),this.add_watcher=!1,this.saving=!1}).catch(e=>{this.$handleError(e),this.saving=!1})},openDrawer(e,t,a=null){this.drawerType=e,this.orders="woo_purchases"===e?{orderInfo:t,products:(null==a?void 0:a[t.id])||[]}:{orderInfo:t,products:t.order_items||[]},this.drawer=!0},getOrderDetails(e,t){this.openDrawer("woo_purchases",e,t)},getOrderDetailsForCart(e){this.openDrawer("fct_purchases",e)},getDisplayCurrency:e=>e||"",getLicenseType(e){switch(null==e?void 0:e.toString().toLowerCase()){case"active":return"success";case"expired":return"danger";case"disabled":return"warning";default:return"info"}},getProductStatusType(e){switch(null==e?void 0:e.toString().toLowerCase()){case"active":case"completed":return"success";case"processing":return"primary";case"on-hold":return"warning";case"expired":case"canceled":case"failed":return"danger";default:return"info"}},cancelClick(){this.drawer=!1,this.drawerType=null,this.orders=null},getOrderTooltip(e,t){return`Purchase date: ${this.dateTimeFormat(t.date,"DD MMM YYYY, hh:mm A")}, Amount: ${t.currency} ${t.total}`},formatFullAddress:e=>e?[e.address_1,e.address_2,e.city,e.state,e.postcode,e.country].filter(Boolean).join(", "):"",getType(e){switch(null==e?void 0:e.toString().toLowerCase()){case"on-hold":return"warning";case"processing":return"primary";case"completed":return"success";default:return"info"}},updateTicketPriority(e,t=null){const a=null!==t?t:this.ticket[e];this.$put(`tickets/${this.ticket_id}/property`,{prop_name:e,prop_value:a}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),qK(e.update_data,(e,t)=>{this.ticket[t]=e}),this.$emit("refresh")}).catch(e=>this.$handleError(e))}}},[["render",function(e,t,a,i,s,n){var o;const r=Zl("router-link"),l=Zl("More"),c=jx,d=Zl("fluent-crm-profile"),u=Zl("collapsible-widget"),p=Zl("TaskTimer"),h=OL,g=Zl("fluent-booking-sidebar-widget"),m=QT,f=Zl("Plus"),_=vk,b=bA,v=_A,y=$B,S=KE,x=Zl("Refresh"),w=Zl("ShoppingBag"),E=Zl("Timer"),C=JP,k=ZP,T=xA,A=SD,R=Zl("DynamicTemplates"),O=Zl("Message"),N=Zl("Loading"),I=Zl("icon-pack"),D=Zl("ticket-tags"),M=Zl("customer-form"),L=fF,P=Zl("remote-selector"),F=sE,$=iE,B=mF,V=pD,U=q$;return Hd(),jd("div",Qle,[a.ticket&&a.ticket.customer?(Hd(),qd(u,{key:0,title:e.$t("Customer Informations"),icon:"User","default-expanded":!0,class:"fs_sidebar_widget fs_sidebar_widget_ci"},{default:br(()=>[eu("div",Zle,[eu("div",Jle,[tu(r,{to:{name:"view_customer",params:{customer_id:a.ticket.customer.id}}},{default:br(()=>[eu("div",ece,[eu("img",{src:a.ticket.customer.photo,alt:a.ticket.customer.full_name},null,8,tce)])],void 0),_:1},8,["to"]),eu("div",ace,[eu("div",ice,[eu("h4",sce,[su(fe(a.ticket.customer.full_name)+" ",1),"inactive"==a.ticket.customer.status?(Hd(),jd("span",nce,"("+fe(e.$t("Blocked"))+")",1)):ou("",!0)])]),eu("p",oce,[a.ticket.customer.profile_edit_url?(Hd(),jd("a",{key:0,rel:"noopener",target:"_blank",href:a.ticket.customer.profile_edit_url},fe(a.ticket.customer.email),9,rce)):(Hd(),jd("span",lce,fe(a.ticket.customer.email),1))])]),e.appVars.me.permissions.includes("fst_sensitive_data")?(Hd(),qd(c,{key:0,class:"fs_client_more_icon",onClick:n.customerManagement},{default:br(()=>[tu(l)],void 0),_:1},8,["onClick"])):ou("",!0)]),eu("p",cce,fe(n.getCustomerAddress(a.ticket.customer)),1),a.ticket.customer.note?(Hd(),jd("div",dce,fe(a.ticket.customer.note),1)):ou("",!0),a.fluentcrm_profile?(Hd(),qd(d,{key:1,crm_profile:a.fluentcrm_profile},null,8,["crm_profile"])):ou("",!0)])],void 0),_:1},8,["title"])):ou("",!0),"yes"===e.appVars.agent_time_tracking&&e.has_pro?(Hd(),qd(u,{key:1,title:e.$t("Time Logging"),icon:"Timer","default-expanded":!1,class:"fs_sidebar_widget"},{default:br(()=>[tu(p,{ticket_id:a.ticket_id,customer_id:a.ticket.customer_id},null,8,["ticket_id","customer_id"])],void 0),_:1},8,["title"])):ou("",!0),s.loading?(Hd(),jd("div",uce,[tu(h,{rows:1,animated:""})])):ou("",!0),a.ticket&&(null==(o=e.appVars.fluent_booking)?void 0:o.active)&&a.can_manage_tickets?(Hd(),qd(g,{key:3,"ticket-id":a.ticket_id,"refresh-key":a.fetch_other_tickets},null,8,["ticket-id","refresh-key"])):ou("",!0),e.has_pro&&a.watchers.length?(Hd(),qd(u,{key:4,title:e.$t("Watchers")+(a.watchers.length?` (${a.watchers.length})`:""),icon:"View","default-expanded":!1,class:"fs_sidebar_widget"},{default:br(()=>[eu("div",pce,[a.watchers.length?(Hd(),jd("div",hce,[(Hd(!0),jd(Pd,null,sc(a.watchers,(e,t)=>(Hd(),qd(m,{key:t,class:"fs_watcher_tag",size:"small",closable:a.can_manage_tickets,"disable-transitions":!1,onClose:t=>n.handleClose(e.id)},{default:br(()=>[su(fe(e.full_name),1)],void 0),_:2},1032,["closable","onClose"]))),128))])):ou("",!0),a.can_manage_tickets?(Hd(),qd(y,{key:1,placement:"bottom",width:300,visible:s.add_watcher,trigger:"manual","popper-class":"fs_popover"},{reference:br(()=>[tu(_,{onClick:t[0]||(t[0]=e=>s.add_watcher=!s.add_watcher),size:"small",class:"fs_outline_btn"},{default:br(()=>[tu(c,null,{default:br(()=>[tu(f)],void 0),_:1}),su(" "+fe(e.$t("Add Watcher")),1)],void 0),_:1})]),default:br(()=>[eu("h4",gce,fe(e.$t("Add Bookmark")),1),tu(v,{multiple:"",filterable:"",modelValue:s.watcherIds,"onUpdate:modelValue":t[1]||(t[1]=e=>s.watcherIds=e),size:"small",class:"fs_watcher_select fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.agents,(e,t)=>(Hd(),qd(b,{key:t,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"]),tu(_,{onClick:t[2]||(t[2]=e=>n.updateWatcher()),type:"primary",size:"small",class:"fs_filled_btn"},{default:br(()=>[su(fe(e.$t("Update")),1)],void 0),_:1})],void 0),_:1},8,["visible"])):ou("",!0)])],void 0),_:1},8,["title"])):ou("",!0),s.extra_widgets?(Hd(!0),jd(Pd,{key:5},sc(s.extra_widgets,(a,i)=>(Hd(),qd(u,{key:i,title:a.title||a.header,icon:"ShoppingCart","default-expanded":!0,class:ne([`fs_tk_widget_${i}`,"fs_sidebar_widget fs_tk_extra_card"])},{default:br(()=>["woo_purchases"===i?(Hd(),jd("div",mce,[eu("ul",fce,[(Hd(!0),jd(Pd,null,sc(a.orders,(e,s)=>(Hd(),jd("li",{key:s,class:"fs_purchase_item"},[eu("div",_ce,[tu(S,{content:n.getOrderTooltip(i,e),placement:"top","raw-content":!0},{default:br(()=>[eu("a",{onClick:t=>n.openDrawer(i,e,a.products),class:"fs_order_link"},"#"+fe(e.id),9,bce)],void 0),_:2},1032,["content"]),t[13]||(t[13]=eu("div",{class:"fs_purchase_divider"},null,-1)),tu(m,{size:"small",type:n.getType(e.status)},{default:br(()=>[su(fe(e.status),1)],void 0),_:2},1032,["type"])])]))),128))])])):"fct_purchases"===i?(Hd(),jd("div",vce,[a.summary?(Hd(),jd("div",yce,[eu("ul",Sce,[eu("li",null,[eu("span",xce,fe(e.$t("Lifetime Value"))+":",1),eu("span",wce,[eu("a",{href:`${s.origin}/wp-admin/admin.php?page=fluent-cart#/customers/${a.fluent_cart_customer_id}/view`,target:"_blank",class:"fs_list_value fs_ltv_link",innerHTML:a.summary.lifetime_value},null,8,Ece)])]),eu("li",null,[eu("span",Cce,fe(e.$t("Purchases"))+":",1),eu("span",kce,fe(a.summary.total_purchases),1)]),a.summary.first_purchase?(Hd(),jd("li",Tce,[eu("span",Ace,fe(e.$t("First Purchased"))+":",1),eu("span",Rce,fe(a.summary.first_purchase),1)])):ou("",!0),a.summary.last_purchase?(Hd(),jd("li",Oce,[eu("span",Nce,fe(e.$t("Last Purchased"))+":",1),eu("span",Ice,fe(a.summary.last_purchase),1)])):ou("",!0)])])):ou("",!0),(Hd(!0),jd(Pd,null,sc(a.products,(a,i)=>(Hd(),jd("div",{key:i,class:"fct_product_item"},[eu("div",Dce,[tu(S,{content:`Purchased on: ${e.dateTimeFormat(a.order.date,"MMM DD, YYYY")}`,placement:"top"},{default:br(()=>[eu("h3",Mce,fe(a.product_name),1)],void 0),_:2},1032,["content"]),a.license_type&&"Subscription"!==a.license_type?(Hd(),jd("div",Lce,fe(a.license_type),1)):ou("",!0),eu("div",Pce,[eu("span",{class:"fct_product_price",innerHTML:a.formatted_price},null,8,Fce),eu("span",$ce,[a.license_type&&a.license_type.includes("Subscription")?(Hd(),qd(c,{key:0},{default:br(()=>[tu(x)],void 0),_:1})):(Hd(),qd(c,{key:1},{default:br(()=>[tu(w)],void 0),_:1})),su(" "+fe(a.license_type&&a.license_type.includes("Subscription")?e.$t("Subscription"):e.$t("Product")),1)])]),"expired"===a.status?(Hd(),jd("div",Bce,[eu("span",Vce,[tu(c,null,{default:br(()=>[tu(E)],void 0),_:1}),su(" "+fe(e.$t("Expired")),1)])])):ou("",!0),eu("div",Uce,[eu("span",{class:ne(["fct_status_indicator","fct_status_"+a.status.toLowerCase()])},[t[14]||(t[14]=eu("span",{class:"fct_status_dot"},null,-1)),su(" "+fe(a.status),1)],2),eu("div",Hce,[eu("a",{href:`${s.origin}/wp-admin/admin.php?page=fluent-cart#/orders/${a.order.id}/view`,target:"_blank",class:"fct_order_link",title:`View Order #${a.order.invoice_no||"WPMN-"+a.order.id}`}," #"+fe(a.order.id),9,zce)])])])]))),128))])):(Hd(),jd("div",Yce,[eu("div",{innerHTML:a.body_html},null,8,Gce)]))],void 0),_:2},1032,["title","class"]))),128)):ou("",!0),tu(A,{class:"fs_wc_order_details",modelValue:s.drawer,"onUpdate:modelValue":t[3]||(t[3]=e=>s.drawer=e),"append-to-body":!0,size:"40%","with-header":!1},{default:br(()=>["woo_purchases"===s.drawerType?(Hd(),qd(T,{key:0,class:"fs_order_box_card"},{header:br(()=>[eu("div",Wce,[eu("h3",null,fe(e.$t("Order"))+" #"+fe(s.orders.orderInfo.id),1),tu(m,{class:"ml-2",type:n.getType(s.orders.orderInfo.status)},{default:br(()=>[su(fe(s.orders.orderInfo.status),1)],void 0),_:1},8,["type"])])]),default:br(()=>[eu("div",jce,[eu("div",null,[eu("div",qce,[eu("h2",null,fe(e.$t("Billing details")),1),s.orders.orderInfo.billing_address?(Hd(),jd("span",Kce,[eu("strong",null,fe(e.$t("Address"))+": ",1),t[15]||(t[15]=su()),eu("p",{innerHTML:s.orders.orderInfo.billing_address},null,8,Xce)])):ou("",!0),eu("p",null,[eu("strong",null,fe(e.$t("Email"))+": ",1),su(fe(s.orders.orderInfo.email),1)]),s.orders.orderInfo.phone?(Hd(),jd("p",Qce,[eu("strong",null,fe(e.$t("Phone"))+": ",1),su(fe(s.orders.orderInfo.phone),1)])):ou("",!0),s.orders.orderInfo.payment_method?(Hd(),jd("p",Zce,[eu("strong",null,fe(e.$t("Payment Via"))+": ",1),su(fe(s.orders.orderInfo.payment_method),1)])):ou("",!0),s.orders.orderInfo.date?(Hd(),jd("p",Jce,[eu("strong",null,fe(e.$t("Purchase Date"))+": ",1),su(fe(s.orders.orderInfo.date),1)])):ou("",!0)]),eu("div",ede,[eu("h2",null,fe(e.$t("Shipping details")),1),s.orders.orderInfo.shipping_address?(Hd(),jd("span",tde,[eu("strong",null,fe(e.$t("Address"))+": ",1),t[16]||(t[16]=su()),eu("p",{innerHTML:s.orders.orderInfo.shipping_address},null,8,ade)])):ou("",!0),eu("p",null,[eu("strong",null,fe(e.$t("Shipping method")),1),su(" "+fe(s.orders.orderInfo.shipping_method),1)])])]),tu(k,{data:s.orders.products,style:{width:"100%","margin-top":"2%"}},{default:br(()=>[tu(C,{prop:"post_title",label:e.$t("Product"),width:"60%"},null,8,["label"]),tu(C,{prop:"product_qty",label:e.$t("Quantity"),width:"20%",align:"center"},null,8,["label"]),tu(C,{label:"Total",width:"20%",align:"center"},{default:br(e=>[eu("span",{innerHTML:s.orders.orderInfo.currency},null,8,ide),eu("span",null,fe(e.row.product_gross_revenue),1)]),_:1})],void 0),_:1},8,["data"])]),eu("div",sde,[eu("a",{href:s.orders.orderInfo.order_link,target:"_blank",class:"el-button fs_filled_btn"},fe(e.$t("Edit")),9,nde),tu(_,{onClick:n.cancelClick,class:"fs_outline_btn"},{default:br(()=>[su(fe(e.$t("Close")),1)],void 0),_:1},8,["onClick"])])],void 0),_:1})):"fct_purchases"===s.drawerType?(Hd(),qd(T,{key:1,class:"fs_order_box_card"},{header:br(()=>[eu("div",ode,[eu("h3",null,"Order #"+fe(s.orders.orderInfo.id),1),tu(m,{class:"ml-2",type:n.getType(s.orders.orderInfo.status)},{default:br(()=>[su(fe(s.orders.orderInfo.status),1)],void 0),_:1},8,["type"])])]),default:br(()=>[eu("div",rde,[(Hd(),jd(Pd,null,sc(["billing_address","shipping_address"],(t,a)=>eu("div",{key:a},[eu("div",lde,[eu("h2",null,fe("billing_address"===t?e.$t("Billing Details"):e.$t("Shipping Details")),1),s.orders.orderInfo[t]?(Hd(),jd("div",cde,[eu("p",null,[eu("strong",null,fe(e.$t("Name"))+": ",1),su(" "+fe(s.orders.orderInfo[t].full_name),1)]),eu("p",null,[eu("strong",null,fe(e.$t("Email"))+": ",1),su(" "+fe(s.orders.orderInfo[t].email),1)]),eu("p",null,[eu("strong",null,fe(e.$t("Address"))+": ",1),su(" "+fe(n.formatFullAddress(s.orders.orderInfo[t].formatted_address)),1)]),s.orders.orderInfo.payment_method?(Hd(),jd("p",dde,[eu("strong",null,fe(e.$t("Payment Via"))+":",1),su(" "+fe(n.getPaymentMethodName(s.orders.orderInfo.payment_method)),1)])):ou("",!0),s.orders.orderInfo.created_at?(Hd(),jd("p",ude,[eu("strong",null,fe(e.$t("Purchase Date"))+": ",1),su(" "+fe(e.dateTimeFormat(s.orders.orderInfo.created_at,"DD MMM YYYY, hh:mm A")),1)])):ou("",!0)])):(Hd(),jd("p",pde,fe(e.$t("No"))+" "+fe("billing_address"===t?e.$t("billing"):e.$t("shipping"))+" "+fe(e.$t("address available")),1))])])),64)),tu(k,{data:s.orders.products,style:{"margin-top":"20px"}},{default:br(()=>[tu(C,{prop:"post_title",label:e.$t("Product"),width:"30%"},null,8,["label"]),tu(C,{prop:"title",label:e.$t("Variant"),width:"20%"},null,8,["label"]),tu(C,{prop:"quantity",label:e.$t("Quantity"),width:"20%",align:"center"},null,8,["label"]),tu(C,{label:e.$t("Total"),width:"20%",align:"center"},{default:br(e=>[eu("span",{innerHTML:e.row.formatted_total},null,8,hde)]),_:1},8,["label"])],void 0),_:1},8,["data"])]),eu("div",gde,[eu("a",{href:`${s.origin}/wp-admin/admin.php?page=fluent-cart#/orders/${s.orders.orderInfo.id}/view`,target:"_blank",class:"el-button el-button--primary"},fe(e.$t("Edit")),9,mde),tu(_,{onClick:n.cancelClick,type:"danger"},{default:br(()=>[su(fe(e.$t("Close")),1)],void 0),_:1},8,["onClick"])])],void 0),_:1})):ou("",!0)],void 0),_:1},8,["modelValue"]),a.ticket?(Hd(),qd(R,{key:6,filter:"ticket_sidebar",widgetsQuery:{ticket_id:a.ticket.id},data:{ticket:a.ticket}},null,8,["widgetsQuery","data"])):ou("",!0),s.other_tickets&&s.other_tickets.length?(Hd(),qd(u,{key:7,title:e.$t("Previous Conversations")+(s.otherTicketsTotal?` (${s.otherTicketsTotal})`:""),icon:"ChatLineSquare","default-expanded":!0,class:"fs_sidebar_widget fs_tk_other_tickets_card"},{default:br(()=>[eu("div",fde,[eu("ul",_de,[(Hd(!0),jd(Pd,null,sc(s.other_tickets,e=>(Hd(),jd("li",{key:"other_ticket_"+e.id,class:"fs_conversation_item"},[tu(r,{to:{name:"view_ticket",params:{ticket_id:e.id},query:{prev_ticket:a.ticket_id}},class:"fs_conversation_link"},{default:br(()=>{var t;return[eu("div",bde,[tu(c,{class:"fs_conversation_icon"},{default:br(()=>[tu(O)],void 0),_:1}),eu("span",vde,fe(e.title),1)]),eu("span",{class:ne(["fs_status_badge",null==(t=e.status)?void 0:t.toLowerCase()])},fe(e.status),3)]},void 0),_:2},1032,["to"])]))),128))]),s.otherTicketsMore?(Hd(),jd("div",yde,[eu("button",{class:"fs_load_more_btn",disabled:s.loadingMoreTickets,onClick:t[4]||(t[4]=(...e)=>n.fetchMoreOtherTickets&&n.fetchMoreOtherTickets(...e))},[s.loadingMoreTickets?(Hd(),qd(c,{key:0,class:"is-loading"},{default:br(()=>[tu(N)],void 0),_:1})):(Hd(),qd(I,{key:1,"icon-key":"arrow_down",width:16,height:16})),s.loadingMoreTickets?ou("",!0):(Hd(),jd("span",xde,fe(e.$t("Load More")),1))],8,Sde)])):ou("",!0)])],void 0),_:1},8,["title"])):ou("",!0),tu(u,{title:e.$t("Additional Details"),icon:"Setting","default-expanded":!0,class:"fs_sidebar_widget"},{default:br(()=>[eu("div",wde,[eu("div",Ede,[eu("label",Cde,fe(e.$t("Client Priority")),1),tu(v,{modelValue:a.ticket.client_priority,"onUpdate:modelValue":t[5]||(t[5]=e=>a.ticket.client_priority=e),onChange:t[6]||(t[6]=e=>n.updateTicketPriority("client_priority")),size:"small",class:"fs_select_field",disabled:!a.can_manage_tickets},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.client_priorities,(e,t)=>(Hd(),qd(b,{key:t,value:t,label:e},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","disabled"])]),eu("div",kde,[eu("label",Tde,fe(e.$t("Agent Priority")),1),tu(v,{modelValue:a.ticket.priority,"onUpdate:modelValue":t[7]||(t[7]=e=>a.ticket.priority=e),onChange:t[8]||(t[8]=e=>n.updateTicketPriority("priority")),size:"small",class:"fs_select_field",disabled:!a.can_manage_tickets},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.admin_priorities,(e,t)=>(Hd(),qd(b,{key:t,value:t,label:e},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","disabled"])]),a.can_manage_tickets?(Hd(),jd("div",Ade,[eu("label",Rde,fe(e.$t("Add Tags")),1),eu("div",Ode,[tu(D,{creatable:!0,ticket_id:a.ticket.id,tags:a.ticket.tags},null,8,["ticket_id","tags"])])])):ou("",!0)])],void 0),_:1},8,["title"]),tu(V,{modelValue:s.customerManagementModal,"onUpdate:modelValue":t[12]||(t[12]=e=>s.customerManagementModal=e),"append-to-body":!0,title:e.$t("Customer Management"),class:"fs_dialog"},{default:br(()=>[tu(B,{modelValue:s.activeTabName,"onUpdate:modelValue":t[11]||(t[11]=e=>s.activeTabName=e),onTabClick:n.handleClick,class:"fs_customer_management_tabs"},{default:br(()=>[tu(L,{label:e.$t("Update Customer"),name:"update_customer_data"},{default:br(()=>[tu(M,{onUpdated:n.closeModal,source:"ticket",customer:a.ticket.customer},null,8,["onUpdated","customer"])],void 0),_:1},8,["label"]),tu(L,{label:e.$t("Change Customer"),name:"change_customer"},{default:br(()=>[tu($,{data:a.ticket,"label-position":"top"},{default:br(()=>[tu(F,{label:e.$t("Select Customer")},{default:br(()=>[tu(P,{modelValue:s.customerID,"onUpdate:modelValue":t[9]||(t[9]=e=>s.customerID=e),response_key:"customers",api_path:"customers",value_selector:"id",label_joiner:" - ",label_selectors:["full_name","email"],clearable:""},null,8,["modelValue"])],void 0),_:1},8,["label"])],void 0),_:1},8,["data"]),tu(F,null,{default:br(()=>[vr((Hd(),qd(_,{onClick:t[10]||(t[10]=e=>n.changeCustomer(s.customerID)),disabled:s.changing||!s.customerID,class:"fs_filled_btn"},{default:br(()=>[su(fe(e.$t("Change Customer")),1)],void 0),_:1},8,["disabled"])),[[U,s.changing]])],void 0),_:1})],void 0),_:1},8,["label"])],void 0),_:1},8,["modelValue","onTabClick"])],void 0),_:1},8,["modelValue","title"])])}],["__scopeId","data-v-5a5ce927"]]),Ide={key:0,class:"fs_fluent_boards"},Dde={class:"fs_fbs_select_container"},Mde={class:"fs_fbs_select_wrapper"},Lde={for:"select-board",class:"fs_fbs_select_label fs_field_label"},Pde={class:"fs_fbs_select_wrapper"},Fde={for:"select-task",class:"fs_fbs_select_label fs_field_label"},$de={class:"fs_fbs_date_range"},Bde={class:"fs_start_date_picker"},Vde={for:"ticket-content",class:"fs_fbs_input_label fs_field_label"},Ude={class:"fs_end_date_picker"},Hde={for:"ticket-content",class:"fs_fbs_input_label fs_field_label"},zde={class:"fs_fbs_input_container"},Yde={for:"ticket-title",class:"fs_fbs_input_label fs_field_label"},Gde={class:"fs_fbs_input_container"},Wde={for:"ticket-content",class:"fs_fbs_input_label fs_field_label"},jde={class:"fs_fbs_button_container"},qde={class:"fs_text_right"},Kde={key:1};const Xde=dH({name:"FluentBoardsIntegration",props:{ticket:{type:Object,required:!0},fluentcrm_profile:{type:Object,required:!0}},components:{WpEditor:cee},data(){return{loading:!1,fluentBoardsData:[],fluentBoardStages:[],boardId:null,stageId:null,app_ready:!1,startDate:"",endDate:"",task:{...this.ticket},has_pro:null}},computed:{isAddButtonEnabled(){return""!==this.task.title&&null!==this.stageId}},mounted(){this.fetchBoards()},methods:{fetchBoards(){this.$get("tickets/fluent-boards/boards").then(e=>{this.fluentBoardsData=e.boards,this.app_ready=!0}).catch(e=>{this.$handleError(e)})},fetchStages(){this.$get("tickets/fluent-boards/stages/"+this.boardId).then(e=>{this.fluentBoardStages=e.stages}).catch(e=>{this.$handleError(e)})},createTask(){this.$post("tickets/fluent-boards/stages",{source_id:this.task.id,title:this.task.title,description:this.task.content,board_id:this.boardId,stage_id:this.stageId,started_at:this.startDate,due_at:this.endDate,source:"FluentSupport",crm_contact_id:this.fluentcrm_profile.id||null}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.$emit("created")}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A,l=KI,c=oC,d=Zl("wp-editor"),u=vk,p=OL;return s.app_ready?(Hd(),jd("div",Ide,[eu("div",Dde,[eu("div",Mde,[eu("label",Lde,fe(e.$t("Select Board")),1),tu(r,{class:"fs_select_field",id:"select-board",onChange:n.fetchStages,modelValue:s.boardId,"onUpdate:modelValue":t[0]||(t[0]=e=>s.boardId=e)},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.fluentBoardsData,e=>(Hd(),qd(o,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["onChange","modelValue"])]),eu("div",Pde,[eu("label",Fde,fe(e.$t("Select Stage")),1),tu(r,{class:"fs_select_field",id:"select-task",modelValue:s.stageId,"onUpdate:modelValue":t[1]||(t[1]=e=>s.stageId=e),disabled:!s.boardId},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.fluentBoardStages,e=>(Hd(),qd(o,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","disabled"])])]),eu("div",null,[eu("div",$de,[eu("div",Bde,[eu("label",Vde,fe(e.$t("Start date ")),1),tu(l,{modelValue:s.startDate,"onUpdate:modelValue":t[2]||(t[2]=e=>s.startDate=e),class:"fs_date_picker fs_text_input",type:"date",placeholder:e.$t("Pick a day"),"value-format":"YYYY-MM-DD"},null,8,["modelValue","placeholder"])]),eu("div",Ude,[eu("label",Hde,fe(e.$t("End date ")),1),tu(l,{modelValue:s.endDate,"onUpdate:modelValue":t[3]||(t[3]=e=>s.endDate=e),type:"date",class:"fs_date_picker fs_text_input",placeholder:e.$t("Pick a day"),"value-format":"YYYY-MM-DD"},null,8,["modelValue","placeholder"])])]),eu("div",zde,[eu("label",Yde,fe(e.$t("Task Title")),1),tu(c,{class:"fs_text_input",id:"ticket-title",modelValue:s.task.title,"onUpdate:modelValue":t[4]||(t[4]=e=>s.task.title=e)},null,8,["modelValue"])]),eu("div",Gde,[eu("label",Wde,fe(e.$t("Task Description")),1),tu(d,{id:"ticket-content",modelValue:s.task.content,"onUpdate:modelValue":t[5]||(t[5]=e=>s.task.content=e)},null,8,["modelValue"])]),eu("div",jde,[eu("div",qde,[tu(u,{class:"fs_filled_btn",disabled:!n.isAddButtonEnabled,onClick:n.createTask,type:"success"},{default:br(()=>[su(fe(e.$t("Create Task")),1)],void 0),_:1},8,["disabled","onClick"])])])])])):(Hd(),jd("div",Kde,[tu(p,{rows:5,animated:""})]))}]]),Qde={class:"fs_active_agents_avatars"},Zde=["src","alt"],Jde={key:0,class:"fs_active_agent_count"},eue={class:"fs_active_agents_text"},tue=["aria-label","aria-expanded"];const aue=dH({name:"active_agents",components:{IconPack:$z},props:{ticket:{type:Object,required:!0}},data(){return{ticket_id:this.ticket.id,loading:!1,app_off:!1,isExpanded:!0}},computed:{totalCount(){return this.ticket.live_activity?this.ticket.live_activity.length:0},visibleAvatars(){return this.ticket.live_activity?this.ticket.live_activity.slice(0,3):[]},remainingCount(){return Math.max(0,this.totalCount-3)}},mounted(){setTimeout(()=>{this.activityOn()},3e4)},beforeUnmount(){this.activityOff()},methods:{toggleExpanded(){this.isExpanded=!this.isExpanded},scheduleNextEvent(){const e=2e4*Math.random()+3e4;setTimeout(()=>{this.loading||this.activityOn()},e)},activityOn(){this.loading||this.app_off||(this.loading=!0,this.$get(`tickets/${this.ticket_id}/live_activity`).then(e=>{this.ticket.live_activity=e.live_activity,this.scheduleNextEvent()}).catch(e=>{}).always(()=>{this.loading=!1}))},activityOff(){this.app_off=!0,this.$del(`tickets/${this.ticket_id}/live_activity`)}}},[["render",function(e,t,a,i,s,n){const o=Zl("IconPack"),r=KE;return a.ticket.live_activity&&a.ticket.live_activity.length>1?(Hd(),jd("div",{key:0,class:ne(["fs_active_agents",{fs_active_agents_collapsed:!s.isExpanded}])},[eu("div",{class:ne(["fs_active_agents_content",{fs_active_agents_content_collapsed:!s.isExpanded}])},[t[1]||(t[1]=eu("span",{class:"fs_active_agents_status_dot"},null,-1)),eu("div",Qde,[(Hd(!0),jd(Pd,null,sc(n.visibleAvatars,(e,t)=>(Hd(),jd("div",{key:e.id,class:"fs_active_agent_avatar",style:ee({zIndex:t+1})},[eu("img",{src:e.photo,alt:e.name||"Agent"},null,8,Zde)],4))),128)),n.remainingCount>0?(Hd(),jd("div",Jde," +"+fe(n.remainingCount),1)):ou("",!0)]),eu("div",eue,fe(n.totalCount)+" "+fe(e.$t("People Watching")),1)],2),tu(r,{effect:"dark",content:e.$t(s.isExpanded?"Hide Watchers":"Show Watchers"),placement:"top",trigger:"hover"},{default:br(()=>[eu("button",{type:"button",class:ne(["fs_active_agents_toggle",{fs_active_agents_toggle_bordered:s.isExpanded}]),"aria-label":e.$t(s.isExpanded?"Hide Watchers":"Show Watchers"),"aria-expanded":s.isExpanded,onClick:t[0]||(t[0]=(...e)=>n.toggleExpanded&&n.toggleExpanded(...e))},[tu(o,{"icon-key":s.isExpanded?"arrow_right_close":"arrow_left_open",width:20,height:20},null,8,["icon-key"])],10,tue)],void 0),_:1},8,["content"])],2)):ou("",!0)}]]),iue={name:"SplitTicket",components:{WpEditor:cee},props:{ticket_data:{type:Object,required:!0},spliting:{type:Boolean,required:!0}},data(){return{priorities:this.appVars.client_priorities,products:this.appVars.support_products,mailboxes:this.appVars.mailboxes}},methods:{splitTicket(){this.$emit("split-ticket")}}};const sue={name:"ViewTicket",props:["ticket_id"],components:{Pagination:dq,CreateResponse:$ae,TicketSidebar:Nde,EditResponse:Ooe,ActiveAgents:aue,TicketTags:wH,CustomFieldForm:dte,WorkFlowSelector:Eae,SplitTicket:dH(iue,[["render",function(e,t,a,i,s,n){const o=oC,r=sE,l=Zl("wp-editor"),c=bA,d=_A,u=lO,p=rO,h=vk,g=iE,m=q$;return Hd(),qd(g,{data:a.ticket_data,"label-position":"top"},{default:br(()=>[tu(r,{label:e.$t("Ticket Title"),class:"fs_form_item"},{default:br(()=>[tu(o,{modelValue:a.ticket_data.title,"onUpdate:modelValue":t[0]||(t[0]=e=>a.ticket_data.title=e),placeholder:e.$t("Ticket Title")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),tu(r,{label:e.$t("Ticket Content"),class:"fs_form_item"},{default:br(()=>[tu(l,{modelValue:a.ticket_data.content,"onUpdate:modelValue":t[1]||(t[1]=e=>a.ticket_data.content=e)},null,8,["modelValue"])],void 0),_:1},8,["label"]),tu(p,{gutter:30},{default:br(()=>[tu(u,{md:12,xs:24},{default:br(()=>[tu(r,{label:e.$t("Ticket Priority"),class:"fs_form_item"},{default:br(()=>[tu(d,{modelValue:a.ticket_data.client_priority,"onUpdate:modelValue":t[2]||(t[2]=e=>a.ticket_data.client_priority=e),placeholder:e.$t("Ticket Priority")},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.priorities,(e,t)=>(Hd(),qd(c,{key:t,value:t,label:e},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1},8,["label"])],void 0),_:1}),tu(u,{md:12,xs:24},{default:br(()=>[s.products.length?(Hd(),qd(r,{key:0,label:e.$t("Ticket Product"),class:"fs_form_item"},{default:br(()=>[tu(d,{modelValue:a.ticket_data.product_id,"onUpdate:modelValue":t[3]||(t[3]=e=>a.ticket_data.product_id=e),placeholder:e.$t("Ticket Product")},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.products,e=>(Hd(),qd(c,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1},8,["label"])):ou("",!0)],void 0),_:1}),tu(u,{md:12,xs:24},{default:br(()=>[s.mailboxes.length?(Hd(),qd(r,{key:0,label:e.$t("Ticket Mailbox"),class:"fs_form_item"},{default:br(()=>[tu(d,{modelValue:a.ticket_data.mailbox_id,"onUpdate:modelValue":t[4]||(t[4]=e=>a.ticket_data.mailbox_id=e),placeholder:e.$t("Ticket Mailbox")},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.mailboxes,e=>(Hd(),qd(c,{key:e.id,value:e.id,label:e.name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1},8,["label"])):ou("",!0)],void 0),_:1})],void 0),_:1}),tu(r,null,{default:br(()=>[vr((Hd(),qd(h,{class:"fs_filled_btn",onClick:n.splitTicket,disabled:a.spliting||!a.ticket_data.title,type:"primary"},{default:br(()=>[su(fe(e.$t("Split Ticket")),1)],void 0),_:1},8,["onClick","disabled"])),[[m,a.spliting]])],void 0),_:1})],void 0),_:1},8,["data"])}]]),FluentBoardsIntegration:Xde,IconPack:$z,FluentBotAIResponseGenerator:b7},data(){return{loading:!1,ticket:{},conversations:[],show_response_box:"",products:this.appVars.support_products,agents:this.appVars.support_agents,admin_priorities:this.appVars.admin_priorities,client_priorities:this.appVars.client_priorities,updating:!1,deleting:!1,active_agents:[],edit_response_modal:!1,editing_response:!1,showCustomDataEditForm:!1,fluentcrm_profile:!1,mailboxes:this.appVars.mailboxes,customer_tickets:[],show_merge_modal:!1,show_watcher_modal:!1,watchers:[],pagination:{current_page:1,total:0,per_page:10},conversation_type:"",filteredWatchersIds:[],split_ticket_modal:!1,split_ticket:{},ticket_statuses:this.appVars.changeable_ticket_statuses,close_ticket_silently:"no",app_ready:!1,fetch_other_tickets:!1,canManageTickets:!1,draftReplyPermission:!1,draftReplyApprovePermission:!1,draftResponse:{},showDraft:!1,draftData:{},show_response_draft:!1,tickets_to_merge:[],filteredMergeSelectedTickets:[],ticketNotFound:"",show_fbs_add_task_modal:!1,watcherIds:[],ticketSummary:"",customerSentiment:"",ResponseLoader:!1,apiKey:"",fluentBotIntegration:!!this.appVars.fluent_bot_integration,showFluentBotPanel:!1,fluentBotBootstrapped:!1,pendingFluentBotContextId:null,deleteTicketPermission:!1,conversationRefs:{}}},computed:{openAIIntegration(){return!!this.appVars.open_ai_integration},getTicketStatus(){const e={};for(let t in this.ticket_statuses)this.ticket_statuses[t].length&&(e[t]=this.ticket_statuses[t][0]);return e},popoverWidth:()=>"undefined"!=typeof window?Math.min(600,window.innerWidth-40):600,agentGroups(){return this.appVars.agent_groups||[]},groupedAgentOptions(){return Bae(this.agents||[],this.agentGroups,this.$t("Other"))},assignedAgentGroupName(){if(!this.ticket.agent_id||!this.agentGroups.length)return"";const e=Number(this.ticket.agent_id);for(const t of this.agentGroups){if((t.agent_ids||[]).map(Number).includes(e))return t.title}return""},isReplyResponseBoxOpen(){return["response","draft_response"].includes(this.show_response_box)},isNoteResponseBoxOpen(){return"note"===this.show_response_box}},watch:{showFluentBotPanel(e){if(e)this.fluentBotBootstrapped=!0,this._priorFocusEl=document.activeElement,this._escHandler=e=>{"Escape"===e.key&&this.handleFluentBotEscape(e)},document.addEventListener("keydown",this._escHandler),this._outsideClickHandler=e=>{const t=e.target;t&&t instanceof Element&&(t.closest(".fs_fluent_bot_panel")||t.closest(".fs_fluent_bot_response_button")||t.closest(".el-overlay, .el-popper, .el-notification, .el-message-box")||(this.showFluentBotPanel=!1))},document.addEventListener("pointerdown",this._outsideClickHandler,!0),this.$nextTick(()=>{const e=this.$refs.fluentBotPanel;e&&"function"==typeof e.focus&&e.focus()});else{if(this._escHandler&&(document.removeEventListener("keydown",this._escHandler),this._escHandler=null),this._outsideClickHandler&&(document.removeEventListener("pointerdown",this._outsideClickHandler,!0),this._outsideClickHandler=null),this._priorFocusEl&&"function"==typeof this._priorFocusEl.focus)try{this._priorFocusEl.focus()}catch(PI){}this._priorFocusEl=null}},"$route.params.ticket_id"(e){e&&(this.doAction("ticket_view_exit",this.ticket.id),this.ticket={},this.$nextTick(()=>{this.doAction("ticket_view_entered",e),this.fetchTicket()}))},tickets_to_merge(e){this.filteredMergeSelectedTickets=e.map(e=>parseInt(e.id))}},methods:{handleFluentBotEscape(e){const t=document.querySelector('.el-overlay:not([style*="display: none"])');if(t&&"none"!==t.style.display)return;e.stopPropagation();const a=this.$refs.fluentBotComponent;a&&a.hasOpenMenu()?a.closeMenus():this.showFluentBotPanel=!1},insertFluentBotResponse(e){if(window.tinymce&&window.tinymce.activeEditor)return window.tinymce.activeEditor.insertContent(e),void(this.showFluentBotPanel=!1);this.$notify({message:this.$t("Open the reply editor first to insert FluentBot content."),type:"warning",position:"bottom-right"})},onAgentPopoverShow(){this.$nextTick(()=>{this.$refs.agentSelect&&(this.$refs.agentSelect.focus(),this.$refs.agentSelect.toggleMenu())})},toggleReplyResponseBox(){const e=this.draftReplyPermission?"draft_response":"response";this.show_response_box=this.show_response_box===e?"":e},toggleNoteResponseBox(){this.show_response_box=this.isNoteResponseBoxOpen?"":"note"},async fetchTicket(){this.loading=!0,await this.$get(`tickets/${this.ticket_id}`,{customer_id:this.ticket.customer_id,with_data:["fluentcrm_profile"]}).then(e=>{"yes"===this.appVars.enable_draft_mode&&this.fetchDraft(),this.loading=!1,this.ticket=e.ticket,this.ticket.product_id=this.ticket.product_id&&"0"!==this.ticket.product_id?Number(this.ticket.product_id):null,this.$setTitle(e.ticket.title),this.conversations=e.responses;const t=this.appVars.me.permissions;this.canManageTickets=t.includes("fst_manage_own_tickets")||t.includes("fst_manage_unassigned_tickets")||t.includes("fst_manage_other_tickets"),this.draftReplyPermission=t.includes("fst_draft_reply"),this.draftReplyApprovePermission=t.includes("fst_approve_draft_reply"),this.deleteTicketPermission=t.includes("fst_delete_tickets"),document.body.dispatchEvent(new CustomEvent("fs_ticket_viewed",{detail:{response:e}})),this.appVars.fluentcrm_config&&(this.fluentcrm_profile=e.fluentcrm_profile),this.has_pro&&(this.watchers=e.watchers,this.filteredWatchersIds=e.watchers.map((e,t)=>e.tag_id))}).catch(e=>{this.loading=!1,this.$handleError(e)}).always(()=>{this.loading=!1})},async fetchDraft(){try{const e=await this.$get(`tickets/${this.ticket_id}/draft`);this.draftData=e.draft,this.draftData&&this.draftData.value.content?(this.draftResponse=this.draftData.value.content,this.showDraft=!0):(this.draftResponse=null,this.draft=null)}catch(e){this.$handleError(e)}},getTextByPerson(e,t){return"draft_response"===(null==e?void 0:e.conversation_type)?this.$t("Draft Response"):"agent"===(null==e?void 0:e.person.person_type)?e.person.title?e.person.title:this.$t("Support Staff"):t.customer_id==e.person_id?this.$t("Thread Starter"):this.$t("Thread Follower")},getRibbonClass(e,t){const a=["fs_thread_ribbon"];return e.person&&("agent"===e.person.person_type?a.push("fs_thread_ribbon_agent"):t.customer_id==e.person_id?a.push("fs_thread_ribbon_customer"):a.push("fs_thread_ribbon_customer_cc")),"draft_response"===e.conversation_type&&a.push("fs_thread_ribbon_draft_response"),a},getTicketClasses(e,t){const a=["fs_thread"];return e.person&&("agent"===e.person.person_type?(a.push("fs_person_agent"),a.push("fs_agent")):t.customer_id==e.person_id?(a.push("fs_person_customer"),a.push("fs_customer")):(a.push("fs_person_customer_cc"),a.push("fs_cc_customer"))),a.push("fs_conv_type_"+e.conversation_type),a},getConversationClass(e){var t,a;return"note"===e.conversation_type?"fs_msg_note":"draft_response"===e.conversation_type?"fs_msg_draft":"internal_info"===e.conversation_type?"fs_internal_info":"customer"===(null==(t=e.person)?void 0:t.person_type)?"fs_msg_customer":"agent"===(null==(a=e.person)?void 0:a.person_type)?"fs_msg_agent":""},recordNewResponse(e,t){var a,i;this.conversations.unshift(e),this.ticket.status=t.ticket.status,this.show_response_box="","response"===(null==e?void 0:e.conversation_type)&&(null==(a=null==e?void 0:e.content)?void 0:a.includes("fs_ticket_id="))&&window.dispatchEvent(new CustomEvent("fluent-support/fluent-booking-link-sent",{detail:{ticket_id:this.ticket_id,response_id:e.id}})),qK(t.update_data,(e,t)=>{this.ticket[t]=e}),"yes"===this.appVars.pref.go_back_after_reply&&(null==(i=window.history.state)||i.back)},updateTicketAttr(e,t=null){const a=null!==t?t:this.ticket[e];return this.$put(`tickets/${this.ticket.id}/property`,{prop_name:e,prop_value:a}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),qK(e.update_data,(e,t)=>{this.ticket[t]=e}),this.fetchTicket()}).catch(e=>{this.$handleError(e)})},handleStatusChange(e){if(this.updating)return;const t=this.ticket.status;e!==t&&("closed"!==e?"closed"!==t?(this.updating=!0,this.updateTicketAttr("status",e).always(()=>{this.updating=!1})):this.reOpen():this.closeTicket())},getHumanName(e){var t;return parseInt(null==(t=this.appVars.me)?void 0:t.id)===parseInt(e.id)?this.$t("You"):e.full_name},closeTicket(){this.updating=!0,this.$post(`tickets/${this.ticket.id}/close`,{close_ticket_silently:this.close_ticket_silently}).then(e=>{var t;this.ticket.status=e.ticket.status,this.$notify({message:e.message,type:"success",position:"bottom-right"}),(null==(t=window.history.state)?void 0:t.back)&&this.$router.go(-1)}).catch(e=>{this.$handleError(e)}).always(()=>{this.updating=!1})},deleteTicket(){this.$confirm({message:this.$t("Are you sure to delete this Ticket?"),title:this.$t("Warning"),options:{confirmButtonText:this.$t("Delete Ticket"),cancelButtonText:this.$t("Cancel"),type:"warning",cancelButtonClass:"el-button--default fs_outline_btn",confirmButtonClass:"el-button--danger fs_filled_btn"}}).then(()=>{this.deleting=!0,this.$del(`tickets/${this.ticket.id}/delete`).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.$router.push({name:"tickets"})})})},approveDraftResponse(e){this.$put(`tickets/${e.ticket_id}/approve_draft_response/${e.id}`,{content:e.content}).then(e=>{this.$notify({message:e.message,type:"success"}),this.fetchTicket()}).catch(e=>{this.$handleError(e)})},reOpen(){this.updating=!0,this.$post(`tickets/${this.ticket.id}/re-open`).then(e=>{this.ticket.status=e.ticket.status}).catch(e=>{this.$handleError(e)}).always(()=>{this.updating=!1})},onActivityChange(e){const t=[];e.forEach(e=>{t.push(e.val())}),this.active_agents=t},onTicketDataChange(e){let t=e.val();this.ticket[t.type]=t.data},handleResponseActionCommand(e){var t;const a=e.type,i=e.conversation;"delete"==a?this.$confirm({message:this.$t("response_delete_warning"),title:this.$t("Warning"),options:{confirmButtonText:this.$t("Delete Response"),cancelButtonText:this.$t("Cancel"),type:"warning",cancelButtonClass:"el-button--default fs_outline_btn",confirmButtonClass:"el-button--danger fs_filled_btn"}}).then(()=>{this.$del(`tickets/${this.ticket.id}/responses/${i.id}`).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetchTicket()}).catch(e=>{this.$handleError(e)})}):"edit"===a?(this.editing_response=i,this.edit_response_modal=!0,this.conversation_type=i.conversation_type):"discard"===a?this.$confirm({message:this.$t("Are you sure you want to discard this draft response?"),title:this.$t("Warning"),options:{confirmButtonText:this.$t("Discard"),cancelButtonText:this.$t("Cancel"),type:"warning",cancelButtonClass:"el-button--default fs_outline_btn",confirmButtonClass:"el-button--danger fs_filled_btn"}}).then(()=>{this.discardDraft(i.id).then(()=>{this.$notify({message:this.$t("Draft response discarded successfully"),type:"success",position:"bottom-right"}),this.fetchTicket()}).catch(e=>{this.$handleError(e)})}):"split_ticket"===a?(this.split_ticket={conversation_id:i.id,content:i.content,customer_id:parseInt(this.ticket.customer_id),mailbox_id:parseInt(this.ticket.mailbox_id),product_id:null==(t=this.ticket.product)?void 0:t.id,client_priority:this.ticket.priority,create_wp_user:"no",create_customer:"no"},this.split_ticket_modal=!0):"add_to_fluentbot"===a&&(this.showFluentBotPanel=!0,this.pendingFluentBotContextId=i.id)},afterCreatedTask(){this.show_fbs_add_task_modal=!1,this.fetchTicket()},changeMailbox(e){this.loading=!this.loading,this.$put(`mailboxes/${this.ticket.mailbox_id}/move_tickets`,{new_box_id:e,ticket_ids:[this.ticket_id],move_type:"Custom"}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetchTicket()}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},customerTickets(){this.$get("tickets/customer_tickets/"+this.ticket.customer_id,{exclude_ticket_id:this.ticket_id,page:this.pagination.current_page,per_page:this.pagination.per_page}).then(e=>{this.app_ready=!0,this.customer_tickets=e.tickets.data,this.pagination.total=e.tickets.total}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},handleMergeSelectionChange(e){this.tickets_to_merge=e},mergeTickets(){this.$confirm({message:this.$t("Are you sure you want to merge these tickets?"),title:this.$t("Merge Tickets"),type:"Warning",options:{confirmButtonText:this.$t("Merge"),cancelButtonText:this.$t("Cancel"),type:"warning",cancelButtonClass:"el-button--default fs_outline_btn",confirmButtonClass:"el-button--danger fs_filled_btn"}}).then(()=>{this.loading=!0,this.$post("tickets/"+this.ticket_id+"/merge_tickets",{ticket_to_merge:this.filteredMergeSelectedTickets}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.customerTickets(),this.fetchTicket(),this.fetch_other_tickets=!this.fetch_other_tickets}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})})},santizeContent:e=>e&&"string"==typeof e?((e=e.replace(/\n\s*\n/g,"\n")).includes("@[")&&(e=e.replace(/@\[(\d+):([^\]]+)\]/g,(e,t,a)=>`<span class="fs_agent_mention">@${a}</span>`)),VZ(window.DOMPurify),window.DOMPurify.sanitize(e,{ADD_ATTR:["target"],FORBID_TAGS:["style"]})):e,syncCustomData(e){this.ticket.custom_fields=e,this.showCustomDataEditForm=!1},addWatchers(){this.saving=!0,this.$post(`tickets/${this.ticket.id}/add_watchers`,{watchers:this.watcherIds}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetchTicket(),this.show_watcher_modal=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},splitToNewTicket(){this.loading=!0,this.$post("tickets/"+this.ticket.id+"/split_ticket",{split_ticket:this.split_ticket}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.customerTickets(),this.fetchTicket(),this.split_ticket_modal=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},discardDraft(e){return this.$del("tickets/"+e+"/draft").then(e=>{this.draftData=null,this.draftResponse=null,this.showDraft=!1}).catch(e=>{this.$handleError(e)})},getArrToString:e=>e?e.join(","):"",isEmpty:e=>rte(e),isArray:e=>Vq(e),getMailboxName(e){if(!this.mailboxes||!this.mailboxes.length)return"";const t=this.mailboxes.find(t=>t.id==e);return t?t.name:""},getProductName(e){if(!this.products||!this.products.length||!e)return"";const t=this.products.find(t=>t.id==e);return t?t.title:""},closeAIResponse(){this.ticketSummary="",this.customerSentiment=""},getTicketSummary(){this.ResponseLoader=!0,this.$post(`ai/${this.ticket_id}/get-ticket-summary`,{type:"ticketSummary"}).then(e=>{this.ticketSummary=e,this.customerSentiment="",this.ResponseLoader=!1}).catch(e=>{this.ResponseLoader=!1,this.$handleError(e)})},getCustomerSentiment(){this.ResponseLoader=!0,this.$post(`ai/${this.ticket_id}/get-ticket-tone`,{type:"ticketTone"}).then(e=>{let t={emoji:"",text:e};e.includes("Positive")?(t.emoji="😀",t.text="Positive"):e.includes("Neutral")?(t.emoji="😐",t.text="Neutral"):e.includes("Negative")&&(t.emoji="😡",t.text="Negative"),this.customerSentiment=t,this.ticketSummary="",this.ResponseLoader=!1}).catch(e=>{this.ResponseLoader=!1,this.$handleError(e)})},setRef(e,t){t&&(this.conversationRefs[e]=t)},handleKeydown(e){const{metaKey:t,altKey:a,code:i}=e;if((!t||!a||"KeyI"!==i)&&t&&a){e.preventDefault();const t={KeyR:()=>{(this.canManageTickets||this.draftReplyPermission)&&this.toggleReplyResponseBox()},KeyN:()=>{this.canManageTickets&&this.toggleNoteResponseBox()},KeyQ:()=>this.fetchTicket(),KeyM:()=>{this.has_pro&&(this.customerTickets(),this.show_merge_modal=!this.show_merge_modal,this.app_ready=!1)},KeyB:()=>{this.has_pro&&(this.show_watcher_modal=!this.show_watcher_modal)}}[i];t&&t()}},async scrollToHash(){const e=window.location.hash.split("#").pop();if(e&&this.conversationRefs[e]){const t=this.conversationRefs[e];return this.$scrollToRef(t)}},handleTopBarCommand(e){switch(e){case"merge":this.customerTickets(),this.show_merge_modal=!this.show_merge_modal,this.app_ready=!1;break;case"close_silently":this.close_ticket_silently="yes",this.closeTicket(),this.close_ticket_silently="no";break;case"fluent_boards":this.show_fbs_add_task_modal=!this.show_fbs_add_task_modal;break;case"delete":this.deleteTicket()}}},async mounted(){await this.fetchTicket(),this.doAction("ticket_view_entered",this.ticket_id),await this.scrollToHash(),window.addEventListener("hashchange",this.scrollToHash),"yes"===this.appVars.keyboard_shortcuts&&window.addEventListener("keydown",this.handleKeydown)},beforeUnmount(){this.doAction("ticket_view_exit",this.ticket_id),document.body.dispatchEvent(new CustomEvent("fs_ticket_view_exit",{detail:{ticket_id:this.ticket_id}})),"yes"===this.appVars.keyboard_shortcuts&&window.removeEventListener("keydown",this.handleKeydown),this._escHandler&&document.removeEventListener("keydown",this._escHandler),this._outsideClickHandler&&(document.removeEventListener("pointerdown",this._outsideClickHandler,!0),this._outsideClickHandler=null)}},nue={class:"fs_view_ticket"},oue={class:"fs_ticket_body"},rue={class:"fs_action_buttons"},lue=["src"],cue=["src"],due={class:"fs_agent_selector_tooltip"},uue={key:0,class:"fs_agent_selector_display"},pue=["src","alt"],hue={class:"fs_agent_name_display"},gue={key:0,class:"fs_agent_group_label"},mue=["src"],fue={class:"fs_agent_selector"},_ue=["src"],bue={key:0},vue={width:"14",style:{"margin-right":"4px"},height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yue=["src"],Sue={class:"fs_title_container"},xue={class:"fs_title_content"},wue={class:"fs_title_row"},Eue={class:"fs_ticket_title"},Cue=["title"],kue={style:{"margin-top":"8px","font-size":"12px",color:"#525866"}},Tue={key:1},Aue={class:"fs_info_container"},Rue={class:"fs_timer_info"},Oue={class:"fs_timer_text"},Nue={key:1,class:"fs_info_separator"},Iue={class:"fs_ticket_status"},Due={key:3,class:"fs_ticket_status"},Mue={key:0,class:"fs_box_body"},Lue={class:"fs_tk_merge_actions"},Pue={key:0,style:{"padding-bottom":"20px"},class:"fs_pagination_wrapper"},Fue={key:1,class:"fs_box_body"},$ue={key:2,class:"fs_box_body fs_skeleton_loader"},Bue={class:"fs_box_body"},Vue={class:"fs_ticket_header"},Uue={class:"fs_header_container"},Hue={class:"fs_action_group"},zue=["src"],Yue={class:"fs_header_right_group"},Gue={class:"fs_header_dropdown_text"},Wue=["src"],jue={key:0,class:"fs_header_dropdown_text"},que=["src"],Kue={key:2,class:"fs_intelligence"},Xue={key:0,class:"fs_intelligence_card__result"},Que={class:"fs_generated_summary"},Zue={class:"fs_ai_response_actions"},Jue={class:"fs_ai_regenerate"},epe=["src"],tpe={class:"fs_ai_response_close"},ape=["src"],ipe={key:1,class:"fs_intelligence_card__result"},spe={class:"fs_customer_sentiment"},npe={class:"fs_ai_response_actions"},ope={class:"fs_ai_regenerate"},rpe=["src"],lpe={class:"fs_ai_response_close"},cpe=["src"],dpe={class:"fs_customer_sentiment_status"},upe={class:"fs_sentiment_emoji"},ppe={class:"fs_sentiment_label"},hpe={class:"fs_sentiment_text"},gpe={key:3,class:"fs_ai_response_loading"},mpe={key:0,class:"fs_response_box_transition"},fpe={class:"fs_response_box_transition_inner"},_pe={key:0},bpe=["src"],vpe={key:5,class:"fs_threads_container"},ype={key:0,class:"fs_saved_draft fs_conversation_message fs_msg_draft"},Spe={class:"fs_message_container"},xpe={class:"fs_message_content"},wpe={class:"fs_message_header"},Epe={class:"fs_message_info"},Cpe={class:"fs_message_name_row"},kpe={class:"fs_badge_draft_response"},Tpe=["title"],Ape=["title"],Rpe=["innerHTML"],Ope={class:"fs_draft_actions"},Npe={class:"fs_message_container"},Ipe={class:"fs_message_avatar"},Dpe=["src","alt"],Mpe={class:"fs_message_content"},Lpe={class:"fs_message_header"},Ppe={class:"fs_message_info"},Fpe={class:"fs_message_name_row"},$pe={key:0,class:"fs_message_name"},Bpe={class:"fs_role_badge fs_role_badge_customer"},Vpe={class:"fs_role_badge fs_role_badge_agent"},Upe={key:3,class:"fs_message_label fs_label_internal_info"},Hpe={key:4,class:"fs_message_label fs_label_internal_info"},zpe={key:5,class:"fs_badge_draft_response"},Ype=["title"],Gpe={key:0,class:"fs_carbon_copy_info"},Wpe={key:0,class:"carrier_info"},jpe={key:0,class:"from_info"},qpe={key:1,class:"fs_cc_info"},Kpe={class:"fs_conversation_right_side"},Xpe={key:0,class:"fs_ticket_source"},Qpe=["src"],Zpe={key:0,class:"fs_message_actions"},Jpe=["src"],ehe=["innerHTML"],the={key:0,class:"fs_message_attachments"},ahe=["href"],ihe={key:1,class:"fs_message_liked"},she=["src"],nhe={key:2,class:"fs_draft_actions"},ohe=["src"],rhe={class:"fs_conversation_message fs_thread_starter"},lhe={class:"fs_message_container"},che={class:"fs_message_avatar"},dhe=["src","alt"],uhe={class:"fs_message_content"},phe={class:"fs_message_header"},hhe={class:"fs_message_info"},ghe={class:"fs_message_name_row"},mhe={class:"fs_message_name"},fhe={class:"fs_role_badge fs_role_badge_customer"},_he={class:"fs_message_badge fs_badge_thread_starter"},bhe={key:0,class:"fs_created_by_agent"},vhe={class:"fs_message_time_row"},yhe=["title"],She={class:"fs_message_email"},xhe={key:0,class:"carrier_info"},whe={key:0,class:"fs_cc_info"},Ehe={key:0,class:"fs_carbon_copy_info"},Che={class:"fs_conversation_right_side"},khe={key:0,class:"fs_ticket_source"},The=["src"],Ahe=["innerHTML"],Rhe={key:0,class:"fs_message_attachments"},Ohe=["href"],Nhe={key:1,class:"fs_conversation_message fs_additional_info"},Ihe={class:"fs_custom_data_card"},Dhe={class:"fs_custom_data_header"},Mhe=["src"],Lhe={class:"fs_custom_data_body"},Phe={key:0,class:"fs_custom_data_list"},Fhe={class:"fs_custom_data_label"},$he={class:"fs_custom_data_value"},Bhe={key:0},Vhe=["innerHTML"],Uhe={key:1,class:"fs_no_data"},Hhe={class:"fs_ticket_sidebar"},zhe=["aria-label","aria-hidden"],Yhe={key:1,class:"fs_ticket_error_message"},Ghe={class:"fs_error_container"},Whe=["src","alt"],jhe={class:"fs_error_title"},qhe={class:"fs_error_description"},Khe={class:"fs_ticket_body"},Xhe={class:"fs_skeleton_loader"},Qhe={class:"fs_ticket_sidebar"};const Zhe=dH(sue,[["render",function(e,t,a,i,s,n){var o,r,l,c,d,u,p,h;const g=vk,m=KE,f=Zl("ArrowDown"),_=jx,b=bA,v=vA,y=_A,S=$B,x=Zl("work-flow-selector"),w=Zl("Check"),E=Zl("RefreshRight"),C=Zl("More"),k=oM,T=Zl("MuteNotification"),A=Zl("Delete"),R=rM,O=nM,N=oC,I=Zl("Timer"),D=JP,M=ZP,L=Zl("pagination"),P=OL,F=pD,$=Zl("IconPack"),B=Zl("OfficeBuilding"),V=Zl("create-response"),U=Zl("EditPen"),H=Zl("MoreFilled"),z=Zl("paperclip"),Y=Zl("custom-field-form"),G=Zl("ticket-sidebar"),W=Zl("FluentBotAIResponseGenerator"),j=Zl("edit-response"),q=Zl("FluentBoardsIntegration"),K=Zl("split-ticket"),X=Zl("active-agents"),Q=q$;return Hd(),jd("div",nue,[s.ticket&&s.ticket.id?(Hd(),jd(Pd,{key:0},[eu("div",oue,[(Hd(),qd(Ur,{to:"#fs_top_bar_actions_slot"},[eu("div",rue,[tu(m,{effect:"dark",content:e.$t("Refresh"),placement:"top"},{default:br(()=>[vr((Hd(),qd(g,{class:"fs_refresh_btn fs_outline_btn",title:e.$t("Refresh"),onClick:t[0]||(t[0]=e=>n.fetchTicket()),disabled:s.loading},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/refresh.svg",alt:""},null,8,lue)],void 0),_:1},8,["title","disabled"])),[[Q,s.loading]])],void 0),_:1},8,["content"]),!s.watchers.length&&e.has_pro?(Hd(),qd(m,{key:0,effect:"dark",content:e.$t("Add Bookmark"),placement:"top"},{default:br(()=>[tu(g,{class:"fs_outline_btn",title:e.$t("Add Bookmark"),onClick:t[1]||(t[1]=e=>s.show_watcher_modal=!0)},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/bookMark.svg",alt:""},null,8,cue)],void 0),_:1},8,["title"])],void 0),_:1},8,["content"])):ou("",!0),s.canManageTickets?(Hd(),qd(m,{key:1,effect:"dark",content:e.$t("Assign Agent"),placement:"top",trigger:"hover"},{default:br(()=>[eu("span",due,[tu(S,{placement:"bottom",width:300,trigger:"click","popper-class":"fs_popover",onShow:n.onAgentPopoverShow},{reference:br(()=>{var t;return[tu(g,{class:ne(["fs_outline_btn",(null==(t=s.ticket.agent)?void 0:t.photo)?"fs_agent_selector_btn":""])},{default:br(()=>{var t,a;return[(null==(t=s.ticket.agent)?void 0:t.photo)?(Hd(),jd("div",uue,[eu("img",{src:s.ticket.agent.photo,alt:s.ticket.agent.full_name,class:"fs_agent_avatar_img"},null,8,pue),eu("span",hue,[su(fe((null==(a=s.ticket.agent)?void 0:a.full_name)||e.$t("Unassigned"))+" ",1),n.assignedAgentGroupName?(Hd(),jd("span",gue,"("+fe(n.assignedAgentGroupName)+")",1)):ou("",!0)]),tu(_,{class:"fs_agent_dropdown_arrow"},{default:br(()=>[tu(f)],void 0),_:1})])):(Hd(),jd("img",{key:1,src:e.appVars.asset_url+"images/agenIconFill.svg",alt:"",class:"fs_agent_icon_placeholder"},null,8,mue))]},void 0),_:1},8,["class"])]}),default:br(()=>[eu("div",fue,[tu(y,{ref:"agentSelect",modelValue:s.ticket.agent_id,"onUpdate:modelValue":t[2]||(t[2]=e=>s.ticket.agent_id=e),onChange:t[3]||(t[3]=e=>n.updateTicketAttr("agent_id")),filterable:"",class:"fs_select_field fs_agent_selector_dropdown","popper-class":"fs_agent_group_popper",placeholder:e.$t("Select Agent")},{default:br(()=>[n.agentGroups.length?(Hd(!0),jd(Pd,{key:0},sc(n.groupedAgentOptions,e=>(Hd(),qd(v,{key:e.label,label:e.label},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(e.agents,e=>(Hd(),qd(b,{key:e.id,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:2},1032,["label"]))),128)):(Hd(!0),jd(Pd,{key:1},sc(s.agents,e=>(Hd(),qd(b,{key:e.id,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])])],void 0),_:1},8,["onShow"])])],void 0),_:1},8,["content"])):ou("",!0),e.appVars.manual_workflows&&e.appVars.manual_workflows.length?(Hd(),qd(m,{key:2,effect:"dark",content:e.$t("Run Workflow"),placement:"top",trigger:"hover"},{default:br(()=>[tu(x,{onReloadTickets:t[4]||(t[4]=e=>n.fetchTicket()),ticket_ids:[a.ticket_id]},{default:br(()=>[tu(g,{class:"fs_outline_btn",title:e.$t("Run Workflow")},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/workFlow.svg",alt:""},null,8,_ue)],void 0),_:1},8,["title"])],void 0),_:1},8,["ticket_ids"])],void 0),_:1},8,["content"])):ou("",!0),s.canManageTickets?(Hd(),qd(m,{key:3,effect:"dark",content:e.$t("Close Ticket"),placement:"top",trigger:"hover"},{default:br(()=>[vr((Hd(),qd(g,{class:"fs_outline_btn fs_action_btn_with_text fs_close_ticket_btn",onClick:t[5]||(t[5]=e=>"closed"===s.ticket.status?n.reOpen():n.closeTicket()),disabled:s.updating},{default:br(()=>["closed"!==s.ticket.status?(Hd(),qd(_,{key:0},{default:br(()=>[tu(w)],void 0),_:1})):ou("",!0),"closed"===s.ticket.status?(Hd(),qd(_,{key:1},{default:br(()=>[tu(E)],void 0),_:1})):ou("",!0),eu("span",null,fe("closed"===s.ticket.status?e.$t("Re-open"):e.$t("Close Ticket")),1)],void 0),_:1},8,["disabled"])),[[Q,s.updating]])],void 0),_:1},8,["content"])):ou("",!0),s.canManageTickets?(Hd(),qd(m,{key:4,effect:"dark",content:e.$t("More Actions"),placement:"top",trigger:"hover"},{default:br(()=>[tu(O,{class:"fs_more_action",trigger:"click",onCommand:n.handleTopBarCommand},{dropdown:br(()=>[tu(R,{class:"fs_global_dropdown fs_table_more_actions_dropdown_menu"},{default:br(()=>[e.has_pro?(Hd(),jd("div",bue,[tu(k,{command:"merge"},{default:br(()=>[(Hd(),jd("svg",vue,[...t[28]||(t[28]=[eu("path",{d:"M4.14447 5.12748C4.24566 5.4978 4.46577 5.8246 4.77092 6.05754C5.07606 6.29048 5.44932 6.41666 5.83322 6.41665H8.16655C8.85374 6.4167 9.51884 6.65933 10.0446 7.10178C10.5704 7.54423 10.9232 8.15808 11.0406 8.83515C11.4365 8.96431 11.7734 9.23039 11.9908 9.5856C12.2082 9.9408 12.2918 10.3619 12.2267 10.7732C12.1616 11.1845 11.9519 11.5591 11.6355 11.8298C11.319 12.1005 10.9163 12.2495 10.4999 12.25C10.0924 12.2503 9.69767 12.1084 9.38362 11.8489C9.06957 11.5893 8.85594 11.2283 8.77956 10.828C8.70318 10.4278 8.76884 10.0135 8.96522 9.65651C9.1616 9.29952 9.47639 9.02224 9.85531 8.87248C9.75412 8.50216 9.534 8.17537 9.22886 7.94242C8.92371 7.70948 8.55045 7.5833 8.16655 7.58331H5.83322C5.20199 7.58424 4.58765 7.37946 4.08322 6.99998V8.84915C4.47259 8.98676 4.80078 9.2576 5.00976 9.61378C5.21875 9.96997 5.29509 10.3886 5.22528 10.7956C5.15547 11.2026 4.94401 11.5719 4.62827 11.8381C4.31254 12.1043 3.91286 12.2503 3.49989 12.2503C3.08691 12.2503 2.68724 12.1043 2.3715 11.8381C2.05577 11.5719 1.84431 11.2026 1.7745 10.7956C1.70469 10.3886 1.78102 9.96997 1.99001 9.61378C2.199 9.2576 2.52718 8.98676 2.91655 8.84915V5.15081C2.52979 5.01426 2.20325 4.74624 1.99393 4.39351C1.7846 4.04079 1.70577 3.62576 1.7712 3.22085C1.83663 2.81594 2.04216 2.44686 2.35192 2.17801C2.66169 1.90916 3.05602 1.75762 3.46611 1.74983C3.8762 1.74204 4.276 1.87849 4.59576 2.13537C4.91551 2.39226 5.13491 2.75326 5.21568 3.15539C5.29644 3.55753 5.23344 3.97525 5.03766 4.33567C4.84189 4.6961 4.52577 4.97633 4.14447 5.12748V5.12748ZM3.49989 4.08331C3.6546 4.08331 3.80297 4.02186 3.91237 3.91246C4.02176 3.80306 4.08322 3.65469 4.08322 3.49998C4.08322 3.34527 4.02176 3.1969 3.91237 3.0875C3.80297 2.97811 3.6546 2.91665 3.49989 2.91665C3.34518 2.91665 3.1968 2.97811 3.08741 3.0875C2.97801 3.1969 2.91655 3.34527 2.91655 3.49998C2.91655 3.65469 2.97801 3.80306 3.08741 3.91246C3.1968 4.02186 3.34518 4.08331 3.49989 4.08331ZM3.49989 11.0833C3.6546 11.0833 3.80297 11.0219 3.91237 10.9125C4.02176 10.8031 4.08322 10.6547 4.08322 10.5C4.08322 10.3453 4.02176 10.1969 3.91237 10.0875C3.80297 9.9781 3.6546 9.91665 3.49989 9.91665C3.34518 9.91665 3.1968 9.9781 3.08741 10.0875C2.97801 10.1969 2.91655 10.3453 2.91655 10.5C2.91655 10.6547 2.97801 10.8031 3.08741 10.9125C3.1968 11.0219 3.34518 11.0833 3.49989 11.0833ZM10.4999 11.0833C10.6546 11.0833 10.803 11.0219 10.9124 10.9125C11.0218 10.8031 11.0832 10.6547 11.0832 10.5C11.0832 10.3453 11.0218 10.1969 10.9124 10.0875C10.803 9.9781 10.6546 9.91665 10.4999 9.91665C10.3452 9.91665 10.1968 9.9781 10.0874 10.0875C9.97801 10.1969 9.91655 10.3453 9.91655 10.5C9.91655 10.6547 9.97801 10.8031 10.0874 10.9125C10.1968 11.0219 10.3452 11.0833 10.4999 11.0833Z",fill:"currentColor"},null,-1)])])),su(" "+fe(e.$t("Merge Ticket")),1)],void 0),_:1}),tu(k,{command:"close_silently"},{default:br(()=>[tu(_,null,{default:br(()=>[tu(T)],void 0),_:1}),su(" "+fe(e.$t("Close Ticket Silently")),1)],void 0),_:1})])):ou("",!0),e.appVars.fluent_boards?(Hd(),qd(k,{key:1,command:"fluent_boards"},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"/images/addTask.svg",class:"fs_add_task_logo"},null,8,yue),su(" "+fe(e.$t("Add Task to Fluent Boards")),1)],void 0),_:1})):ou("",!0),tu(k,{command:"delete"},{default:br(()=>[tu(_,null,{default:br(()=>[tu(A)],void 0),_:1}),su(" "+fe(e.$t("Delete Ticket")),1)],void 0),_:1})],void 0),_:1})]),default:br(()=>[tu(g,{class:"fs_outline_btn",title:e.$t("More Actions")},{default:br(()=>[tu(_,{style:{transform:"rotate(90deg)"}},{default:br(()=>[tu(C)],void 0),_:1})],void 0),_:1},8,["title"])],void 0),_:1},8,["onCommand"])],void 0),_:1},8,["content"])):ou("",!0)])])),eu("div",Sue,[eu("div",xue,[eu("div",wue,[eu("h2",Eue,[s.canManageTickets?(Hd(),qd(S,{key:0,placement:"bottom-start",width:n.popoverWidth,trigger:"click"},{reference:br(()=>{var t;return[eu("span",{title:e.$t("Click to Edit Subject")},fe(null==(t=s.ticket)?void 0:t.title),9,Cue)]}),default:br(()=>[tu(N,{onKeyup:t[6]||(t[6]=Rh(e=>n.updateTicketAttr("title"),["enter"])),modelValue:s.ticket.title,"onUpdate:modelValue":t[7]||(t[7]=e=>s.ticket.title=e),class:"fs_text_input"},null,8,["modelValue"]),eu("p",kue,fe(e.$t("Press enter to save")),1)],void 0),_:1},8,["width"])):(Hd(),jd("span",Tue,fe(null==(o=s.ticket)?void 0:o.title),1))])]),eu("div",Aue,[s.ticket.waiting_since?(Hd(),qd(m,{key:0,effect:"dark",content:e.$t("Waiting Time")+": "+s.ticket.waiting_since,placement:"top",trigger:"hover"},{default:br(()=>[eu("div",Rue,[tu(_,{class:"fs_timer_icon"},{default:br(()=>[tu(I)],void 0),_:1}),eu("span",Oue,fe(e.$t("Waiting"))+": "+fe(e.$timeDiff(s.ticket.waiting_since)),1)])],void 0),_:1},8,["content"])):ou("",!0),s.ticket.waiting_since?(Hd(),jd("span",Nue,"∙")):ou("",!0),s.canManageTickets&&e.has_pro&&!n.isEmpty(s.ticket_statuses)?(Hd(),qd(S,{key:2,placement:"bottom",width:300,trigger:"click"},{reference:br(()=>{var t;return[eu("div",Iue,[eu("span",{class:ne(["fs_status_badge",`fs_status_${null==(t=s.ticket.status)?void 0:t.toLowerCase()}`])},fe(e.appVars.ticket_statuses[s.ticket.status]||s.ticket.status),3)])]}),default:br(()=>[tu(y,{class:"fs_select_field",teleported:!1,disabled:s.updating,onChange:n.handleStatusChange,"model-value":s.ticket.status,size:"default"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(n.getTicketStatus,(t,a)=>(Hd(),qd(b,{key:a,value:a,label:e.appVars.ticket_statuses[a]||a},{default:br(()=>[su(fe(e.appVars.ticket_statuses[a]||a),1)],void 0),_:2},1032,["value","label"]))),128))],void 0),_:1},8,["disabled","onChange","model-value"])],void 0),_:1})):(Hd(),jd("div",Due,[eu("span",{class:ne(["fs_status_badge",`fs_status_${null==(r=s.ticket.status)?void 0:r.toLowerCase()}`])},fe(e.appVars.ticket_statuses[s.ticket.status]||s.ticket.status),3)]))])])]),e.has_pro&&s.show_merge_modal?(Hd(),qd(F,{key:0,modelValue:s.show_merge_modal,"onUpdate:modelValue":t[9]||(t[9]=e=>s.show_merge_modal=e),title:e.$t("Merge Tickets"),"append-to-body":!0,class:"fs_dialog fs_dialog_merge_ticket"},{default:br(()=>[s.customer_tickets.length&&s.app_ready?(Hd(),jd("div",Mue,[tu(M,{data:s.customer_tickets,style:{width:"100%"},onSelectionChange:n.handleMergeSelectionChange},{default:br(()=>[tu(D,{type:"selection",width:"55"}),tu(D,{prop:"id",label:e.$t("ID"),width:"130"},null,8,["label"]),tu(D,{prop:"title",label:e.$t("Title"),width:"250"},null,8,["label"]),tu(D,{prop:"status",label:e.$t("Status"),width:"130"},null,8,["label"])],void 0),_:1},8,["data","onSelectionChange"]),eu("div",Lue,[s.customer_tickets.length?(Hd(),jd("div",Pue,[tu(L,{onFetch:n.customerTickets,pagination:s.pagination},null,8,["onFetch","pagination"])])):ou("",!0),tu(g,{class:"fs_filled_btn",size:"default",type:"primary",onClick:t[8]||(t[8]=e=>n.mergeTickets())},{default:br(()=>[su(fe(e.$t("Merge")),1)],void 0),_:1})])])):!s.customer_tickets.length&&s.app_ready?(Hd(),jd("div",Fue,[eu("h3",null,fe(e.$t("customer_has_one_tk")),1)])):(Hd(),jd("div",$ue,[tu(P,{rows:5,animated:""})]))],void 0),_:1},8,["modelValue","title"])):ou("",!0),e.has_pro&&s.show_watcher_modal?(Hd(),qd(F,{key:1,modelValue:s.show_watcher_modal,"onUpdate:modelValue":t[11]||(t[11]=e=>s.show_watcher_modal=e),title:e.$t("Add Bookmark"),"append-to-body":!0,class:"fs_dialog"},{default:br(()=>[eu("div",Bue,[tu(y,{class:"fs_select_field",filterable:"",clearable:!0,multiple:!0,modelValue:s.watcherIds,"onUpdate:modelValue":t[10]||(t[10]=e=>s.watcherIds=e)},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.agents,(e,t)=>(Hd(),qd(b,{key:t,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"]),tu(g,{class:"fs_filled_btn fs_bookmark_action_btn",onClick:n.addWatchers},{default:br(()=>[su(fe(e.$t("Add")),1)],void 0),_:1},8,["onClick"])])],void 0),_:1},8,["modelValue","title"])):ou("",!0),eu("div",Vue,[eu("div",Uue,[eu("div",Hue,["closed"!=s.ticket.status&&(s.canManageTickets||s.draftReplyPermission)?(Hd(),qd(g,{key:0,class:ne(["fs_outline_btn",{fs_header_btn_active:n.isReplyResponseBoxOpen}]),onClick:n.toggleReplyResponseBox},{default:br(()=>[tu($,{iconKey:n.isReplyResponseBoxOpen?"cancel":"total_replies",width:20,height:20},null,8,["iconKey"]),su(" "+fe(n.isReplyResponseBoxOpen?e.$t("Cancel Reply"):e.$t("Reply")),1)],void 0),_:1},8,["class","onClick"])):ou("",!0),s.canManageTickets?(Hd(),qd(g,{key:1,class:ne(["fs_outline_btn",{fs_header_btn_active:n.isNoteResponseBoxOpen}]),onClick:n.toggleNoteResponseBox},{default:br(()=>[n.isNoteResponseBoxOpen?(Hd(),qd($,{key:0,iconKey:"cancel",width:20,height:20})):(Hd(),jd("img",{key:1,class:"fs_header_icon",src:e.appVars.asset_url+"images/draftLineIcon.svg",alt:""},null,8,zue)),su(" "+fe(n.isNoteResponseBoxOpen?e.$t("Cancel Notes"):e.$t("Notes")),1)],void 0),_:1},8,["class","onClick"])):ou("",!0)]),eu("div",Yue,[tu(m,{effect:"dark",content:e.$t("Business Inbox"),placement:"top",trigger:"hover"},{default:br(()=>[eu("span",null,[e.appVars.me.permissions.includes("fst_manage_settings")&&s.mailboxes&&s.mailboxes.length>1?(Hd(),qd(O,{key:0,trigger:"click",onCommand:t[12]||(t[12]=e=>n.updateTicketAttr("mailbox_id",e))},{dropdown:br(()=>[tu(R,{class:"fs_global_dropdown"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.mailboxes,e=>(Hd(),qd(k,{key:e.id,command:e.id,disabled:s.ticket.mailbox_id==e.id},{default:br(()=>[su(fe(e.name),1)],void 0),_:2},1032,["command","disabled"]))),128))],void 0),_:1})]),default:br(()=>[tu(g,{class:"fs_outline_btn fs_header_dropdown"},{default:br(()=>[tu(_,{class:"fs_header_icon"},{default:br(()=>[tu(B)],void 0),_:1}),eu("span",Gue,fe(n.getMailboxName(s.ticket.mailbox_id)),1),tu(_,{class:"fs_header_icon"},{default:br(()=>[tu(f)],void 0),_:1})],void 0),_:1})],void 0),_:1})):ou("",!0)])],void 0),_:1},8,["content"]),tu(m,{effect:"dark",content:e.$t("Product"),placement:"top",trigger:"hover"},{default:br(()=>[eu("span",null,[s.products&&s.products.length?(Hd(),qd(O,{key:0,trigger:"click",onCommand:t[13]||(t[13]=e=>n.updateTicketAttr("product_id",e))},{dropdown:br(()=>[tu(R,{class:"fs_global_dropdown"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.products,e=>(Hd(),qd(k,{key:e.id,command:e.id,disabled:s.ticket.product_id==e.id},{default:br(()=>[su(fe(e.title),1)],void 0),_:2},1032,["command","disabled"]))),128))],void 0),_:1})]),default:br(()=>[tu(g,{class:ne(["fs_outline_btn",{fs_header_dropdown:s.ticket.product_id}])},{default:br(()=>[eu("img",{class:"fs_header_icon",src:e.appVars.asset_url+"images/productIcon.svg",alt:""},null,8,Wue),s.ticket.product_id?(Hd(),jd("span",jue,fe(n.getProductName(s.ticket.product_id)),1)):ou("",!0),s.ticket.product_id?(Hd(),qd(_,{key:1,class:"fs_header_icon"},{default:br(()=>[tu(f)],void 0),_:1})):ou("",!0)],void 0),_:1},8,["class"])],void 0),_:1})):ou("",!0)])],void 0),_:1},8,["content"]),tu(m,{effect:"dark",content:e.$t("AI Intelligence"),placement:"top",trigger:"hover"},{default:br(()=>[eu("span",null,[n.openAIIntegration?(Hd(),qd(O,{key:0,trigger:"click"},{dropdown:br(()=>[tu(R,{class:"fs_global_dropdown"},{default:br(()=>[tu(k,{onClick:n.getTicketSummary},{default:br(()=>[su(fe(e.$t("Ticket Summary")),1)],void 0),_:1},8,["onClick"]),tu(k,{onClick:n.getCustomerSentiment},{default:br(()=>[su(fe(e.$t("Customer Sentiment")),1)],void 0),_:1},8,["onClick"])],void 0),_:1})]),default:br(()=>[tu(g,{class:"fs_filled_btn fs_ai_btn"},{default:br(()=>[eu("img",{class:"fs_header_icon",src:e.appVars.asset_url+"images/aiIcon.svg",alt:""},null,8,que)],void 0),_:1})],void 0),_:1})):ou("",!0)])],void 0),_:1},8,["content"])])])]),s.ResponseLoader?ou("",!0):vr((Hd(),jd("div",Kue,[s.ticketSummary?(Hd(),jd("div",Xue,[eu("div",Que,[eu("div",Zue,[eu("div",Jue,[tu(g,{class:"fs_outline_btn",onClick:n.getTicketSummary},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/refresh.svg",alt:""},null,8,epe),su(" "+fe(e.$t("Regenerate")),1)],void 0),_:1},8,["onClick"])]),eu("div",tpe,[tu(g,{class:"fs_ai_response_close_button",onClick:n.closeAIResponse},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/closeIcon.svg",alt:""},null,8,ape)],void 0),_:1},8,["onClick"])])]),eu("div",null,[eu("strong",null,fe(e.$t("Ticket Summary"))+":",1),eu("p",null,fe(s.ticketSummary),1)])])])):ou("",!0),s.customerSentiment?(Hd(),jd("div",ipe,[eu("div",spe,[eu("div",npe,[eu("div",ope,[tu(g,{class:"fs_outline_btn",onClick:n.getCustomerSentiment},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/refresh.svg",alt:""},null,8,rpe),su(" "+fe(e.$t("Regenerate")),1)],void 0),_:1},8,["onClick"])]),eu("div",lpe,[tu(g,{class:"fs_ai_response_close_button",onClick:n.closeAIResponse},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/closeIcon.svg",alt:""},null,8,cpe)],void 0),_:1},8,["onClick"])])]),eu("div",null,[eu("div",dpe,[eu("div",upe,fe(s.customerSentiment.emoji),1),eu("div",ppe,fe(e.$t("Tone of customer")),1),eu("div",hpe,fe(s.customerSentiment.text),1)])])])])):ou("",!0)])),[[Q,s.ResponseLoader]]),s.ResponseLoader?(Hd(),jd("div",gpe,[tu(P,{rows:4,animated:""})])):ou("",!0),tu(ip,{name:"fs-response-box"},{default:br(()=>[s.show_response_box?(Hd(),jd("div",mpe,[eu("div",fpe,[tu(V,{onCreated:n.recordNewResponse,ticket:s.ticket,is_agent:"yes",onClose:t[14]||(t[14]=e=>s.show_response_box=""),type:s.show_response_box,draft:s.draftData,openAIIntegration:n.openAIIntegration,fluentBotIntegration:s.fluentBotIntegration,onDiscardDraft:n.discardDraft,onToggleFluentBot:t[15]||(t[15]=e=>s.showFluentBotPanel=!s.showFluentBotPanel)},null,8,["onCreated","ticket","type","draft","openAIIntegration","fluentBotIntegration","onDiscardDraft"])])])):ou("",!0)],void 0),_:1}),"closed"==s.ticket.status?(Hd(),jd("div",{key:4,class:ne(["fs_create_response text-align-center","fs_create_response_"+s.ticket.status])},[eu("span",null,fe(e.$t("Closed Ticket")),1),eu("p",null,[su(fe(e.$t("ticket_closed"))+" "+fe(s.ticket.resolved_at)+" ",1),s.ticket.closed_by_person?(Hd(),jd("span",_pe,[t[29]||(t[29]=su(" by ",-1)),eu("b",null,fe(n.getHumanName(s.ticket.closed_by_person)),1)])):ou("",!0)]),s.canManageTickets?vr((Hd(),qd(g,{key:0,disabled:s.updating,onClick:t[16]||(t[16]=e=>n.reOpen()),class:"fs_outline_btn"},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/refresh.svg",alt:""},null,8,bpe),su(" "+fe(e.$t("Reopen This ticket")),1)],void 0),_:1},8,["disabled"])),[[Q,s.updating]]):ou("",!0)],2)):ou("",!0),s.ticket&&s.ticket.id?(Hd(),jd("div",vpe,["yes"===e.appVars.enable_draft_mode&&s.showDraft&&!s.show_response_box?(Hd(),jd("article",ype,[eu("div",Spe,[t[30]||(t[30]=eu("div",{class:"fs_message_avatar"},null,-1)),eu("div",xpe,[eu("div",wpe,[eu("div",Epe,[eu("div",Cpe,[eu("div",kpe,fe(e.$t("Saved Draft")),1)]),eu("div",null,[(null==(l=s.draftData)?void 0:l.created_at)?(Hd(),jd("span",{key:0,class:"fs_message_timestamp",title:e.$t("Draft created at ")+s.draftData.created_at},fe(e.$timeDiff(s.draftData.created_at)),9,Tpe)):(null==(c=s.draftData)?void 0:c.updated_at)?(Hd(),jd("span",{key:1,class:"fs_message_timestamp",title:e.$t("Draft updated at ")+s.draftData.updated_at},fe(e.$timeDiff(s.draftData.updated_at)),9,Ape)):ou("",!0)])])]),eu("div",{innerHTML:n.santizeContent(s.draftResponse),class:"fs_message_body"},null,8,Rpe),eu("div",Ope,[tu(g,{class:"fs_outline_btn",size:"default",onClick:t[17]||(t[17]=e=>s.show_response_box=s.draftReplyPermission?"draft_response":"response")},{default:br(()=>[tu(_,null,{default:br(()=>[tu(U)],void 0),_:1}),su(" "+fe(e.$t("Edit")),1)],void 0),_:1}),tu(g,{class:"fs_outline_btn",size:"default",onClick:t[18]||(t[18]=e=>n.discardDraft(s.draftData.id)),text:""},{default:br(()=>[su(fe(e.$t("Discard")),1)],void 0),_:1})])])])])):ou("",!0),(Hd(!0),jd(Pd,null,sc(s.conversations,a=>{var i,o,r,l,c,d,u,p,h;return Hd(),jd("article",{key:a.id,ref_for:!0,ref:e=>n.setRef(a.id,e),class:ne(["fs_conversation_message",n.getConversationClass(a)])},[eu("div",Npe,[eu("div",Ipe,[a.person?(Hd(),jd("img",{key:0,src:null==(i=a.person)?void 0:i.photo,alt:a.person.full_name},null,8,Dpe)):ou("",!0)]),eu("div",Mpe,[eu("div",Lpe,[eu("div",Ppe,[eu("div",Fpe,[a.person?(Hd(),jd("span",$pe,fe(n.getHumanName(a.person)),1)):ou("",!0),"customer"===(null==(o=a.person)?void 0:o.person_type)?(Hd(),qd(m,{key:1,effect:"dark",content:e.$t("Customer"),placement:"top"},{default:br(()=>[eu("span",Bpe,[tu($,{iconKey:"user_icon",width:16,height:16})])],void 0),_:1},8,["content"])):"agent"===(null==(r=a.person)?void 0:r.person_type)?(Hd(),qd(m,{key:2,effect:"dark",content:e.$t("Agent"),placement:"top"},{default:br(()=>[eu("span",Vpe,[tu($,{iconKey:"agent_icon",width:16,height:16})])],void 0),_:1},8,["content"])):ou("",!0),"note"===a.conversation_type?(Hd(),jd("span",Upe,fe(e.$t("Added Note")),1)):ou("",!0),"internal_info"===a.conversation_type?(Hd(),jd("span",Hpe,fe(e.$t("Added Internal Info")),1)):ou("",!0),"draft_response"===a.conversation_type?(Hd(),jd("div",zpe,fe(e.$t("DRAFT RESPONSE")),1)):ou("",!0)]),eu("div",null,[eu("span",{class:"fs_message_timestamp",title:e.$t("Conversation created at ")+a.created_at},fe(e.$timeDiff(a.created_at)),9,Ype),s.ticket.carbon_copy?(Hd(),jd("div",Gpe,[eu("span",null,[t[31]||(t[31]=eu("strong",null,"Cc: ",-1)),su(fe(s.ticket.carbon_copy),1)])])):ou("",!0)]),"customer"==(null==(l=a.person)?void 0:l.person_type)||(null==(c=a.cc_info)?void 0:c.length)?(Hd(),jd("div",Wpe,["customer"==a.person.person_type?(Hd(),jd("div",jpe,[eu("span",null,[t[32]||(t[32]=eu("strong",null,"From: ",-1)),su(fe(null==(d=a.person)?void 0:d.full_name)+"<"+fe(null==(u=a.person)?void 0:u.email)+">",1)])])):ou("",!0),(null==(p=a.cc_info)?void 0:p.length)?(Hd(),jd("div",qpe,[eu("span",null,[t[33]||(t[33]=eu("strong",null,"Cc: ",-1)),su(fe(n.getArrToString(a.cc_info)),1)])])):ou("",!0)])):ou("",!0)]),eu("div",Kpe,[eu("div",null,[a.source?(Hd(),jd("span",Xpe,[eu("img",{src:e.appVars.asset_url+"images/source.svg",alt:""},null,8,Qpe),su(" Source: "+fe(e.ucFirst(a.source)),1)])):ou("",!0)]),s.canManageTickets||s.draftReplyPermission?(Hd(),jd("div",Zpe,[tu(O,{onCommand:n.handleResponseActionCommand,trigger:"click"},{dropdown:br(()=>[tu(R,{class:"fs_global_dropdown fs_table_more_actions_dropdown_menu"},{default:br(()=>[s.draftReplyPermission&&"draft_response"!==a.conversation_type?ou("",!0):(Hd(),qd(k,{key:0,command:{type:"edit",conversation:a},icon:"EditPen"},{default:br(()=>[su(fe(e.$t("Edit")),1)],void 0),_:1},8,["command"])),e.has_pro&&"draft_response"!==a.conversation_type?(Hd(),qd(k,{key:1,command:{type:"split_ticket",conversation:a},icon:"TopLeft"},{default:br(()=>[su(fe(e.$t("Split Ticket")),1)],void 0),_:1},8,["command"])):ou("",!0),s.fluentBotIntegration&&"response"===a.conversation_type?(Hd(),qd(k,{key:2,command:{type:"add_to_fluentbot",conversation:a}},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/fluentBotDark.svg",alt:"",class:"fs_fluent_bot_menu_icon"},null,8,Jpe),su(" "+fe(e.$t("Add to FluentBot")),1)],void 0),_:1},8,["command"])):ou("",!0),s.canManageTickets?(Hd(),qd(k,{key:3,command:{type:"delete",conversation:a},icon:"Delete"},{default:br(()=>[su(fe(e.$t("Delete")),1)],void 0),_:1},8,["command"])):ou("",!0)],void 0),_:2},1024)]),default:br(()=>[tu(g,{class:"fs_more_btn"},{default:br(()=>[tu(_,null,{default:br(()=>[tu(H)],void 0),_:1})],void 0),_:1})],void 0),_:2},1032,["onCommand"])])):ou("",!0)])]),eu("div",{innerHTML:n.santizeContent(a.content),class:"fs_message_body"},null,8,ehe),(null==(h=a.attachments)?void 0:h.length)?(Hd(),jd("div",the,[eu("ul",null,[(Hd(!0),jd(Pd,null,sc(a.attachments,e=>(Hd(),jd("li",{key:e.file_hash},[tu(_,{style:{"vertical-align":"middle"}},{default:br(()=>[tu(z)],void 0),_:1}),eu("a",{target:"_blank",rel:"noopener",href:e.secureUrl},fe(e.title),9,ahe)]))),128))])])):ou("",!0),e.has_pro&&"yes"===e.appVars.agent_feedback_rating&&a.agent_feedback?(Hd(),jd("div",ihe,[eu("img",{src:`${e.appVars.asset_url}images/icons/${"like"===a.agent_feedback?"likeButtonFill":"dislikeButtonFill"}.svg`},null,8,she),eu("span",null,fe("like"===a.agent_feedback?e.$t("Liked"):e.$t("Disliked")),1)])):ou("",!0),"draft_response"===a.conversation_type?(Hd(),jd("div",nhe,[s.draftReplyApprovePermission?(Hd(),qd(g,{key:0,class:"fs_outline_btn",size:"default",onClick:e=>n.approveDraftResponse(a)},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/checkDoubleLine.svg",alt:""},null,8,ohe),su(" "+fe(e.$t("Approve")),1)],void 0),_:1},8,["onClick"])):ou("",!0)])):ou("",!0)])])],2)}),128)),eu("article",rhe,[eu("div",lhe,[eu("div",che,[eu("img",{src:null==(d=s.ticket.customer)?void 0:d.photo,alt:null==(u=s.ticket.customer)?void 0:u.full_name},null,8,dhe)]),eu("div",uhe,[eu("div",phe,[eu("div",hhe,[eu("div",ghe,[eu("span",mhe,fe(null==(p=s.ticket.customer)?void 0:p.full_name),1),tu(m,{effect:"dark",content:e.$t("Customer"),placement:"top"},{default:br(()=>[eu("span",fhe,[tu($,{iconKey:"user_icon",width:16,height:16})])],void 0),_:1},8,["content"]),eu("div",_he,fe(e.$t("THREAD STARTER")),1),s.ticket.created_by_agent&&!s.ticket.created_by_agent.agent_initiated?(Hd(),jd("span",bhe,[su(fe(e.$t("Created By"))+" ",1),eu("strong",null,fe(s.ticket.created_by_agent.full_name),1)])):ou("",!0)]),eu("div",vhe,[eu("span",{class:"fs_message_timestamp",title:e.$t("Ticket created at ")+s.ticket.created_at},fe(e.$timeDiff(s.ticket.created_at)),9,yhe),t[35]||(t[35]=eu("span",{class:"fs_message_separator"}," • ",-1)),eu("span",She,fe(null==(h=s.ticket.customer)?void 0:h.email),1),"email"==s.ticket.source?(Hd(),jd("div",xhe,[s.ticket.carbon_copy?(Hd(),jd("div",whe,[eu("span",null,[t[34]||(t[34]=eu("strong",null,"Cc: ",-1)),su(fe(s.ticket.carbon_copy),1)])])):ou("",!0)])):ou("",!0)]),s.ticket.carbon_copy?(Hd(),jd("div",Ehe,[eu("span",null,[t[36]||(t[36]=eu("strong",null,"Cc: ",-1)),su(fe(s.ticket.carbon_copy),1)])])):ou("",!0)]),eu("div",Che,[s.ticket.source?(Hd(),jd("span",khe,[eu("img",{src:e.appVars.asset_url+"images/source.svg",alt:""},null,8,The),su(" Source: "+fe(e.ucFirst(s.ticket.source)),1)])):ou("",!0)])]),eu("div",{innerHTML:n.santizeContent(s.ticket.content),class:"fs_message_body"},null,8,Ahe),s.ticket.attachments&&s.ticket.attachments.length?(Hd(),jd("div",Rhe,[eu("ul",null,[(Hd(!0),jd(Pd,null,sc(s.ticket.attachments,e=>(Hd(),jd("li",{key:e.file_hash},[tu(_,{style:{"vertical-align":"middle"}},{default:br(()=>[tu(z)],void 0),_:1}),eu("a",{target:"_blank",rel:"noopener",href:e.secureUrl},fe(e.title),9,Ohe)]))),128))])])):ou("",!0),s.showCustomDataEditForm?(Hd(),qd(F,{key:1,title:e.$t("Updating Custom Field Data"),modelValue:s.showCustomDataEditForm,"onUpdate:modelValue":t[19]||(t[19]=e=>s.showCustomDataEditForm=e),width:"60%","append-to-body":!0,class:"fs_dialog"},{default:br(()=>[tu(Y,{onSyncData:n.syncCustomData,ticket_id:a.ticket_id,type:"update_ticket",custom_data:s.ticket.custom_fields},null,8,["onSyncData","ticket_id","custom_data"])],void 0),_:1},8,["title","modelValue"])):ou("",!0)])])]),e.has_pro&&!n.isEmpty(e.appVars.custom_fields)?(Hd(),jd("article",Nhe,[eu("div",Ihe,[eu("div",Dhe,[eu("h3",null,fe(e.$t("Additional Info")),1),tu(g,{onClick:t[20]||(t[20]=e=>s.showCustomDataEditForm=!s.showCustomDataEditForm),text:!0,size:"small",class:"fs_edit_custom_data_btn"},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/edit.svg",alt:""},null,8,Mhe)],void 0),_:1})]),eu("div",Lhe,[n.isEmpty(s.ticket.custom_fields)?(Hd(),jd("p",Uhe,fe(e.$t("No additional data found")),1)):(Hd(),jd("ul",Phe,[(Hd(!0),jd(Pd,null,sc(s.ticket.custom_fields,(t,a)=>(Hd(),jd("li",{key:a,class:"fs_custom_data_item"},[eu("span",Fhe,fe(e.appVars.custom_fields[a].label),1),eu("div",$he,[n.isArray(t)?(Hd(),jd("span",Bhe,[(Hd(!0),jd(Pd,null,sc(t,e=>(Hd(),jd("span",{class:"fs_custom_check_value",key:e},fe(e),1))),128))])):(Hd(),jd("span",{key:1,innerHTML:n.santizeContent(t)},null,8,Vhe))])]))),128))]))])])])):ou("",!0)])):ou("",!0)]),eu("div",Hhe,[tu(G,{fluentcrm_profile:s.fluentcrm_profile,ticket_id:a.ticket_id,ticket:s.ticket,watchers:s.watchers,watcher_ids:s.watcherIds,onRefresh:n.fetchTicket,fetch_other_tickets:s.fetch_other_tickets,can_manage_tickets:s.canManageTickets},null,8,["fluentcrm_profile","ticket_id","ticket","watchers","watcher_ids","onRefresh","fetch_other_tickets","can_manage_tickets"])]),(Hd(),qd(Ur,{to:"body"},[tu(ip,{name:"fs_panel_slide"},{default:br(()=>[s.fluentBotBootstrapped?vr((Hd(),jd("div",{key:0,class:"fs_fluent_bot_panel",ref:"fluentBotPanel",role:"dialog",tabindex:"-1","aria-label":e.$t("FluentBot assistant panel"),"aria-hidden":s.showFluentBotPanel?"false":"true"},[tu(W,{ref:"fluentBotComponent",type:"createResponse",ticketId:s.ticket.id,productID:s.ticket.product_id,is_agent:"yes",ticketResponses:s.conversations,addContextId:s.pendingFluentBotContextId,onContextAdded:t[21]||(t[21]=e=>s.pendingFluentBotContextId=null),onClose:t[22]||(t[22]=e=>s.showFluentBotPanel=!1),onInsert:n.insertFluentBotResponse},null,8,["ticketId","productID","ticketResponses","addContextId","onInsert"])],8,zhe)),[[vp,s.showFluentBotPanel]]):ou("",!0)],void 0),_:1})]))],64)):s.ticketNotFound.length?(Hd(),jd("div",Yhe,[eu("div",Ghe,[eu("img",{src:e.appVars.asset_url+"images/ticketNotFound.svg",alt:e.$t("Ticket not found"),class:"fs_error_icon"},null,8,Whe),eu("h2",jhe,fe(s.ticketNotFound),1),eu("p",qhe,[su(fe(e.$t("Go back to"))+" ",1),eu("a",{class:"fs_error_link",onClick:t[23]||(t[23]=t=>e.$router.push({name:"tickets"}))},fe(e.$t("All Tickets")),1),su(" "+fe(e.$t("or contact support for assistance.")),1)])])])):(Hd(),jd(Pd,{key:2},[eu("div",Khe,[eu("div",Xhe,[tu(P,{rows:10,animated:""})])]),eu("div",Qhe,[tu(P,{class:"fs_sidebar_skeleton",rows:3,animated:""}),tu(P,{class:"fs_sidebar_skeleton",rows:3,animated:""}),tu(P,{class:"fs_sidebar_skeleton",rows:3,animated:""})])],64)),tu(F,{modelValue:s.edit_response_modal,"onUpdate:modelValue":t[25]||(t[25]=e=>s.edit_response_modal=e),title:e.$t("Edit Response"),"append-to-body":!0,class:"fs_dialog"},{default:br(()=>[s.editing_response?(Hd(),qd(j,{key:0,onUpdated:t[24]||(t[24]=e=>{s.edit_response_modal=!1,s.editing_response=!1}),response:s.editing_response,"ticket-id":s.ticket.id},null,8,["response","ticket-id"])):ou("",!0)],void 0),_:1},8,["modelValue","title"]),s.show_fbs_add_task_modal?(Hd(),qd(F,{key:3,modelValue:s.show_fbs_add_task_modal,"onUpdate:modelValue":t[26]||(t[26]=e=>s.show_fbs_add_task_modal=e),title:e.$t("Add Task to Fluent Boards"),"append-to-body":!0,class:"fs_dialog"},{default:br(()=>[tu(q,{onCreated:n.afterCreatedTask,ticket:s.ticket,fluentcrm_profile:s.fluentcrm_profile},null,8,["onCreated","ticket","fluentcrm_profile"])],void 0),_:1},8,["modelValue","title"])):ou("",!0),tu(F,{modelValue:s.split_ticket_modal,"onUpdate:modelValue":t[27]||(t[27]=e=>s.split_ticket_modal=e),title:e.$t("Split Ticket"),"append-to-body":!0,class:"fs_dialog"},{default:br(()=>[tu(K,{ticket_data:s.split_ticket,onSplitTicket:n.splitToNewTicket,spliting:s.loading},null,8,["ticket_data","onSplitTicket","spliting"])],void 0),_:1},8,["modelValue","title"]),s.ticket&&s.ticket.id?(Hd(),qd(X,{key:4,ticket:s.ticket},null,8,["ticket"])):ou("",!0)])}]]),Jhe={class:"fs_tickets_view fs_settings_view"},ege=["src"],tge={class:"fs_settings_wrapper"},age={class:"fs_inner_sidebar fs_desktop_sidebar"},ige=["onClick"],sge=["src"],nge={class:"fs_sidebar_children"},oge=["src"],rge=["onClick"],lge=["src"],cge={class:"fs_sidebar_children"},dge=["src"],uge={class:"fs_inner_body"};const pge=dH({name:"SettingsView",data:()=>({settings_items:[],isMenuOpen:!1,openGroups:{}}),watch:{$route(){this.autoOpenActiveGroup()},settings_items(){this.autoOpenActiveGroup()}},methods:{fetchSettingsMenu(){this.$get("settings/settings-menu").then(e=>{this.settings_items=e}).catch(e=>{this.$handleError(e)})},toggleGroup(e){this.openGroups={...this.openGroups,[e]:!this.openGroups[e]}},autoOpenActiveGroup(){const e=this.$route.name;this.settings_items.forEach((t,a)=>{if(t.children&&t.children.length){t.children.some(t=>t.route_name===e)&&(this.openGroups={...this.openGroups,[a]:!0})}})},toggleMenu(){this.isMenuOpen=!this.isMenuOpen,this.isMenuOpen?document.body.style.overflow="hidden":document.body.style.overflow=""},closeMenu(){this.isMenuOpen=!1,document.body.style.overflow=""}},mounted(){this.fetchSettingsMenu()},beforeUnmount(){document.body.style.overflow=""}},[["render",function(e,t,a,i,s,n){const o=vk,r=Zl("router-link"),l=Zl("router-view");return Hd(),jd("div",Jhe,[vr(eu("div",{class:ne(["fs_settings_menu_overlay",{"is-open":s.isMenuOpen}]),onClick:t[0]||(t[0]=Th((...e)=>n.closeMenu&&n.closeMenu(...e),["stop"]))},null,2),[[vp,s.isMenuOpen]]),eu("div",{class:ne(["fs_settings_menu_toggle",{"is-hidden":s.isMenuOpen}])},[s.isMenuOpen?ou("",!0):(Hd(),qd(o,{key:0,class:"fs_outline_btn fs_settings_menu_toggle_btn",onClick:n.toggleMenu},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/settings.svg",alt:"Settings"},null,8,ege),su(" "+fe(e.$t("Settings")),1)],void 0),_:1},8,["onClick"]))],2),eu("div",tge,[eu("div",age,[eu("ul",null,[(Hd(!0),jd(Pd,null,sc(s.settings_items,(a,i)=>(Hd(),jd("li",{key:i},[a.children&&a.children.length?(Hd(),jd(Pd,{key:0},[eu("button",{class:ne(["fs_sidebar_group_toggle",{"is-open":s.openGroups[i]}]),onClick:e=>n.toggleGroup(i)},[eu("img",{src:e.appVars.asset_url+"images/"+a.icon+".svg",class:"fs-sidebar-icons"},null,8,sge),eu("span",null,fe(a.title),1),t[1]||(t[1]=eu("svg",{class:"fs_sidebar_chevron",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[eu("polyline",{points:"6 9 12 15 18 9"})],-1))],10,ige),vr(eu("ul",nge,[(Hd(!0),jd(Pd,null,sc(a.children,(e,t)=>(Hd(),jd("li",{key:t},[tu(r,{to:{name:e.route_name}},{default:br(()=>[su(fe(e.title),1)],void 0),_:2},1032,["to"])]))),128))],512),[[vp,s.openGroups[i]]])],64)):(Hd(),qd(r,{key:1,to:{name:a.route_name,query:a.route_query}},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/"+a.icon+".svg",class:"fs-sidebar-icons"},null,8,oge),su(" "+fe(a.title),1)],void 0),_:2},1032,["to"]))]))),128))])]),eu("div",{class:ne(["fs_inner_sidebar fs_mobile_drawer",{"is-open":s.isMenuOpen}])},[eu("ul",null,[(Hd(!0),jd(Pd,null,sc(s.settings_items,(a,i)=>(Hd(),jd("li",{key:i},[a.children&&a.children.length?(Hd(),jd(Pd,{key:0},[eu("button",{class:ne(["fs_sidebar_group_toggle",{"is-open":s.openGroups[i]}]),onClick:e=>n.toggleGroup(i)},[eu("img",{src:e.appVars.asset_url+"images/"+a.icon+".svg",class:"fs-sidebar-icons"},null,8,lge),eu("span",null,fe(a.title),1),t[2]||(t[2]=eu("svg",{class:"fs_sidebar_chevron",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[eu("polyline",{points:"6 9 12 15 18 9"})],-1))],10,rge),vr(eu("ul",cge,[(Hd(!0),jd(Pd,null,sc(a.children,(e,t)=>(Hd(),jd("li",{key:t},[tu(r,{to:{name:e.route_name},onClick:n.closeMenu},{default:br(()=>[su(fe(e.title),1)],void 0),_:2},1032,["to","onClick"])]))),128))],512),[[vp,s.openGroups[i]]])],64)):(Hd(),qd(r,{key:1,to:{name:a.route_name,query:a.route_query},onClick:n.closeMenu},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/"+a.icon+".svg",class:"fs-sidebar-icons"},null,8,dge),su(" "+fe(a.title),1)],void 0),_:2},1032,["to","onClick"]))]))),128))])],2),eu("div",uge,[tu(l,{key:"products_view"})])])])}]]),hge={name:"BusinessSettings",components:{FormBuilder:ure},data:()=>({settings:{},fields:{},fetching:!1,loading:!1,app_ready:!1,settings_key:"global_business_settings"}),computed:{processedFields(){const e={};return Object.keys(this.fields).forEach(t=>{const a={...this.fields[t]};if(a.inline_help=this.makeShortcodesClickable(a.inline_help),"portal_page_id"===t&&this.settings.portal_page_id){const e=this.settings.portal_page_id,t=(a.admin_url||"")+"post.php?post="+e+"&action=edit",i=(a.home_url||"")+"?page_id="+e;a.inline_help+=' <a href="'+t+'" target="_blank" class="fs_doc_link fs_doc_link_empty_icon">'+this.$t("Edit")+'</a> | <a href="'+i+'" target="_blank" rel="noopener noreferrer" class="fs_doc_link">'+this.$t("Preview")+"</a>"}"ticket_link_portal"===t&&(a.wrapper_class=[a.wrapper_class,"default"===this.settings.ticket_link_portal?"fs_portal_destination_has_page":"",this.settings.ticket_link_portal&&"default"!==this.settings.ticket_link_portal?"fs_portal_destination_compact":""].filter(Boolean).join(" ")),e[t]=a}),e}},methods:{makeShortcodesClickable:e=>e?e.replace(/<code>(\[.*?\])<\/code>/g,'<code class="fs_clickable_shortcode" data-shortcode="$1">$1</code>'):e,fetchSettings(){this.fetching=!0,this.$get("settings",{settings_key:this.settings_key,with:["fields"]}).then(e=>{this.settings=e.settings,this.fields=e.fields,this.app_ready=!0}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},saveSettings(){this.loading=!0,this.$post("settings",{settings_key:this.settings_key,settings:this.settings}).then(e=>{var t,a;Object.prototype.hasOwnProperty.call(this.settings,"internal_notifications_enabled")&&(window.fluentSupportAdmin.internal_notification_settings={...window.fluentSupportAdmin.internal_notification_settings||{},enabled:this.settings.internal_notifications_enabled},window.dispatchEvent(new CustomEvent("fluent_support_internal_notification_settings_changed",{detail:{settings:window.fluentSupportAdmin.internal_notification_settings}})),null==(a=(t=window.fluentSupportAdmin).refreshNotificationPolling)||a.call(t)),this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},copyShortcode(e){const t=this.$t("Shortcode copied to clipboard: ")+e,a=this.$t("Failed to copy shortcode");return e?navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(e).then(()=>(this.$notify({type:"success",title:this.$t("Success"),message:t,position:"bottom-right"}),!0)).catch(e=>(this.$notify({type:"error",title:this.$t("Error"),message:a,position:"bottom-right"}),!1)):(this.$notify({type:"error",title:this.$t("Error"),message:this.$t("Copy to clipboard requires HTTPS"),position:"bottom-right"}),Promise.resolve(!1)):(this.$notify({type:"warning",title:this.$t("Warning"),message:this.$t("Nothing to copy"),position:"bottom-right"}),Promise.resolve(!1))},copyPortalLink(e){return e?this.$copyToClipboard(e,this.$t("Copied to clipboard")+": "+e,this.$t("Failed to copy link")):Promise.resolve(!1)},handleClick(e){if(e.target.classList.contains("fs_clickable_shortcode")||e.target.closest(".fs_clickable_shortcode")){const t=(e.target.classList.contains("fs_clickable_shortcode")?e.target:e.target.closest(".fs_clickable_shortcode")).getAttribute("data-shortcode");t&&this.copyShortcode(t)}if(e.target.classList.contains("fs_portal_link_token")||e.target.closest(".fs_portal_link_token")){const t=e.target.classList.contains("fs_portal_link_token")?e.target:e.target.closest(".fs_portal_link_token");this.copyPortalLink(t.getAttribute("data-portal-link"))}}},mounted(){this.fetchSettings(),this.$setTitle("Business Settings")}},gge={class:"fs_box_header"},mge={class:"fs_box_head"},fge={class:"fs_save_settings_container"},_ge={key:0,class:"fs_box_body fs_business_settings_wrapper"},bge={key:1,class:"fs_box_body fs_skeleton_loader"};const vge=dH(hge,[["render",function(e,t,a,i,s,n){const o=vk,r=Zl("form-builder"),l=OL,c=q$;return Hd(),jd("div",{class:"fs_box_wrapper",onClick:t[1]||(t[1]=(...e)=>n.handleClick&&n.handleClick(...e))},[eu("div",gge,[eu("div",mge,[eu("h3",null,fe(e.$t("Global Settings")),1),eu("div",fge,[tu(o,{size:"default",type:"success",class:"fs_save_settings_btn",onClick:t[0]||(t[0]=e=>n.saveSettings())},{default:br(()=>[su(fe(e.$t("Save Settings")),1)],void 0),_:1})])]),t[2]||(t[2]=eu("div",{class:"fs_box_actions"},null,-1))]),s.fetching?(Hd(),jd("div",bge,[tu(l,{rows:5,animated:""})])):vr((Hd(),jd("div",_ge,[s.app_ready?(Hd(),qd(r,{key:0,fields:n.processedFields,"form-data":s.settings,label_position:"top"},null,8,["fields","form-data"])):ou("",!0)])),[[c,s.loading]])])}]]),yge={name:"TableMoreActions",components:{Delete:VS,DocumentCopy:US},emits:["delete","duplicate"],props:{scope:{type:Object,required:!0},fetching:{type:Boolean,default:!1},deleteWarning:{type:String,default:"Are you sure you want to delete this?"},actions:{type:Array,default:()=>["delete"]}},data:()=>({deleteDialogVisible:!1}),methods:{hasAction(e){return this.actions.includes(e)},deleteTag(e){this.$emit("delete",e)},confirmDelete(){this.deleteDialogVisible=!1,this.$emit("delete",this.scope)},duplicateItem(e){this.$emit("duplicate",e)}}},Sge={class:"fs_table_more_actions_dropdown"},xge={class:"fs_action_button_wrapper"},wge={class:"fs_dropdown_item_content"},Ege={class:"fs_dropdown_item_content"},Cge={class:"fs_dialog_warning_content"},kge={class:"fs_popconfirm_actions"};const Tge=dH(yge,[["render",function(e,t,a,i,s,n){const o=vk,r=Zl("DocumentCopy"),l=jx,c=oM,d=Zl("Delete"),u=rM,p=nM,h=pD,g=q$;return Hd(),jd(Pd,null,[tu(p,{trigger:"click","hide-on-click":!1},{dropdown:br(()=>[tu(u,{class:"fs_global_dropdown fs_table_more_actions_dropdown_menu"},{default:br(()=>[n.hasAction("duplicate")?(Hd(),qd(c,{key:0,onClick:t[0]||(t[0]=e=>n.duplicateItem(a.scope))},{default:br(()=>[eu("div",wge,[tu(l,{class:"fs_dropdown_icon"},{default:br(()=>[tu(r)],void 0),_:1}),su(" "+fe(e.$t("Duplicate")),1)])],void 0),_:1})):ou("",!0),n.hasAction("delete")?(Hd(),qd(c,{key:1,class:"fs_delete_action",onClick:t[1]||(t[1]=e=>s.deleteDialogVisible=!0)},{default:br(()=>[eu("div",Ege,[tu(l,{class:"fs_dropdown_icon"},{default:br(()=>[tu(d)],void 0),_:1}),su(" "+fe(e.$t("Delete")),1)])],void 0),_:1})):ou("",!0)],void 0),_:1})]),default:br(()=>[eu("span",Sge,[eu("div",xge,[vr(tu(o,{class:"fs_action_button fs_more_action",text:"",icon:"More"},null,512),[[g,a.fetching]])])])],void 0),_:1}),tu(h,{modelValue:s.deleteDialogVisible,"onUpdate:modelValue":t[3]||(t[3]=e=>s.deleteDialogVisible=e),title:e.$t("Confirm Delete"),width:"400",class:"fs_dialog","append-to-body":!0},{footer:br(()=>[eu("div",kge,[tu(o,{class:"fs_outline_btn",size:"small",onClick:t[2]||(t[2]=e=>s.deleteDialogVisible=!1)},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),tu(o,{class:"fs_filled_btn",size:"small",onClick:n.confirmDelete},{default:br(()=>[su(fe(e.$t("Delete")),1)],void 0),_:1},8,["onClick"])])]),default:br(()=>[eu("div",Cge,[t[4]||(t[4]=eu("i",{class:"el-icon el-message-box__status el-message-box-icon--warning"},[eu("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[eu("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})])],-1)),eu("p",null,fe(a.deleteWarning),1)])],void 0),_:1},8,["modelValue","title"])],64)}]]),Age={xmlns:"http://www.w3.org/2000/svg",width:"138",height:"129",viewBox:"0 0 138 129",fill:"none"};const Rge=dH({name:"TableEmptyStateImage"},[["render",function(e,t,a,i,s,n){return Hd(),jd("svg",Age,[...t[0]||(t[0]=[nu('<path d="M69.3362 103C96.796 103 119.058 80.6575 119.058 53C119.058 25.3425 96.6979 3 69.3362 3C41.8763 3 19.6143 25.3425 19.6143 53C19.6143 80.6575 41.8763 103 69.3362 103Z" fill="#E1E4EA"></path><path d="M125.37 37.1588C127.591 37.1588 129.391 35.352 129.391 33.1233C129.391 30.8946 127.591 29.0879 125.37 29.0879C123.149 29.0879 121.349 30.8946 121.349 33.1233C121.349 35.352 123.149 37.1588 125.37 37.1588Z" fill="#E1E4EA"></path><path d="M131.254 21.4112C132.77 21.4112 134 20.1774 134 18.6553C134 17.1333 132.77 15.8994 131.254 15.8994C129.737 15.8994 128.508 17.1333 128.508 18.6553C128.508 20.1774 129.737 21.4112 131.254 21.4112Z" fill="#E1E4EA"></path><path d="M21.8695 20.2247C23.3861 20.2247 24.6155 18.9908 24.6155 17.4688C24.6155 15.9468 23.3861 14.7129 21.8695 14.7129C20.353 14.7129 19.1235 15.9468 19.1235 17.4688C19.1235 18.9908 20.353 20.2247 21.8695 20.2247Z" fill="#E1E4EA"></path><path d="M5.09968 73.3739C7.91616 73.3739 10.1994 71.0825 10.1994 68.2558C10.1994 65.4292 7.91616 63.1377 5.09968 63.1377C2.28321 63.1377 0 65.4292 0 68.2558C0 71.0825 2.28321 73.3739 5.09968 73.3739Z" fill="#E1E4EA"></path><g filter="url(#filter0_d_5767_114769)"><path d="M98.4092 90.1478H112.647C114.435 90.1478 115.968 88.6102 115.968 86.8163V20.1869C115.968 18.3931 114.435 16.8555 112.647 16.8555H98.8512" fill="white"></path></g><g filter="url(#filter1_d_5767_114769)"><path d="M41.8801 90.1478H28.0844C26.296 90.1478 24.7632 88.6102 24.7632 86.8163V20.1869C24.7632 18.3931 26.296 16.8555 28.0844 16.8555H41.5959" fill="white"></path></g><path d="M34.3608 30.1807H41.2587" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M34.3608 39.1494H41.2587" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M34.3608 48.375H41.2587" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M34.3608 57.6016H41.2587" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M34.3608 75.54H41.2587" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M105.493 30.1807H98.8506" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10"></path><path d="M105.493 39.1494H98.8506" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M105.493 48.375H98.8506" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M105.493 57.6016H98.8506" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><path d="M105.493 75.54H98.8506" stroke="#E1E4EA" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><g filter="url(#filter2_d_5767_114769)"><path d="M95.5299 95.785H44.9457C43.1574 95.785 41.6245 94.2474 41.6245 92.4535V15.061C41.6245 13.2671 43.1574 11.7295 44.9457 11.7295H95.5299C97.3182 11.7295 98.8511 13.2671 98.8511 15.061V92.4535C98.8511 94.2474 97.3182 95.785 95.5299 95.785Z" fill="white"></path></g><path d="M89.3983 36.8039H54.1426C53.3762 36.8039 52.8652 36.3395 52.8652 35.6428V32.624C52.8652 31.9273 53.3762 31.4629 54.1426 31.4629H89.3983C90.1647 31.4629 90.6757 31.9273 90.6757 32.624V35.6428C90.6757 36.1072 90.1647 36.8039 89.3983 36.8039Z" fill="#E1E4EA"></path><path d="M89.3983 50.6418H54.1426C53.3762 50.6418 52.8652 50.1774 52.8652 49.4807V46.4619C52.8652 45.7652 53.3762 45.3008 54.1426 45.3008H89.3983C90.1647 45.3008 90.6757 45.7652 90.6757 46.4619V49.4807C90.6757 50.1774 90.1647 50.6418 89.3983 50.6418Z" fill="#E1E4EA"></path><path d="M89.3983 64.7365H54.1426C53.3762 64.7365 52.8652 64.2721 52.8652 63.5754V60.5566C52.8652 59.8599 53.3762 59.3955 54.1426 59.3955H89.3983C90.1647 59.3955 90.6757 59.8599 90.6757 60.5566V63.5754C90.6757 64.2721 90.1647 64.7365 89.3983 64.7365Z" fill="#E1E4EA"></path><path d="M89.3989 79.0871H75.3477C74.5813 79.0871 74.0703 78.6227 74.0703 77.926V74.9072C74.0703 74.2105 74.5813 73.7461 75.3477 73.7461H89.3989C90.1653 73.7461 90.6762 74.2105 90.6762 74.9072V77.926C90.6762 78.6227 90.1653 79.0871 89.3989 79.0871Z" fill="#E1E4EA"></path><defs><filter id="filter0_d_5767_114769" x="76.4092" y="5.85547" width="61.5591" height="117.292" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="11"></feOffset><feGaussianBlur stdDeviation="11"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.12 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_5767_114769"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_5767_114769" result="shape"></feBlend></filter><filter id="filter1_d_5767_114769" x="2.76318" y="5.85547" width="61.1167" height="117.292" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="11"></feOffset><feGaussianBlur stdDeviation="11"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.12 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_5767_114769"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_5767_114769" result="shape"></feBlend></filter><filter id="filter2_d_5767_114769" x="19.6245" y="0.729492" width="101.227" height="128.056" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="11"></feOffset><feGaussianBlur stdDeviation="11"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.12 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_5767_114769"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_5767_114769" result="shape"></feBlend></filter></defs>',23)])])}]]),Oge={class:"fs_products"},Nge={class:"fs_box_wrapper"},Ige={class:"fs_box_header"},Dge={class:"fs_box_head"},Mge={class:"fs_box_head"},Lge={key:0,class:"fs_table_container"},Pge={class:"fs_table_header"},Fge={class:"fs_box_actions"},$ge={class:"fs_ticket_orders fs_table_search_field"},Bge={class:"fs_table_wrapper"},Vge={class:"fs_table_empty_state"},Uge={class:"fs-table-action-cell"},Hge={class:"fs_action_button_wrapper"},zge={key:0,class:"fs_pagination_wrapper"},Yge={class:"fs_pagination_left"},Gge={class:"fs_pagination_right"},Wge={key:1,class:"fs_box_body fs_skeleton_loader"},jge={class:"fs_dialog_footer"};const qge=dH({name:"SupportProducts",components:{Pagination:dq,TableMoreActions:Tge,TableEmptyStateImage:Rge},data:()=>({products:[],pagination:{current_page:1,per_page:10,total:0},fetching:!0,saving:!1,ticket_modal:!1,editing_product:!1,search:""}),methods:{getProducts(){this.fetching=!0,this.$get("products",{per_page:this.pagination.per_page,page:this.pagination.current_page,search:this.search}).then(e=>{this.products=e.products.data,this.pagination.total=e.products.total}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},createOrUpdateProduct(){this.saving=!0;let e=this.$post,t="products";this.editing_product.id&&(e=this.$put,t=`products/${this.editing_product.id}`),e(t,{...this.editing_product}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.getProducts(),this.ticket_modal=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},editProductModal(e){this.editing_product=JSON.parse(JSON.stringify(e)),this.ticket_modal=!0},createTicketModal(){this.editing_product={title:"",description:""},this.ticket_modal=!0},deleteProduct(e){this.$del(`products/${e.id}`).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.getProducts()})}},mounted(){this.getProducts(),this.$setTitle(this.$t("Products Settings"))}},[["render",function(e,t,a,i,s,n){const o=Zl("Search"),r=jx,l=oC,c=vk,d=Zl("TableEmptyStateImage"),u=PM,p=JP,h=Zl("TableMoreActions"),g=ZP,m=Zl("pagination"),f=OL,_=sE,b=iE,v=pD,y=q$;return Hd(),jd("div",Oge,[eu("div",Nge,[eu("div",Ige,[eu("div",Dge,[eu("div",Mge,[eu("h3",null,fe(e.$t("Products")),1)])])]),s.fetching?(Hd(),jd("div",Wge,[tu(f,{class:"fs_box_wrapper",rows:5,animated:""})])):(Hd(),jd("div",Lge,[eu("div",Pge,[eu("div",Fge,[eu("div",$ge,[tu(l,{onKeyup:Rh(n.getProducts,["enter"]),clearable:"",onClear:n.getProducts,placeholder:e.$t("Search..."),modelValue:s.search,"onUpdate:modelValue":t[0]||(t[0]=e=>s.search=e),class:"fs_text_input fs_table_search_input"},{prefix:br(()=>[tu(r,{class:"el-input__icon"},{default:br(()=>[tu(o)],void 0),_:1})]),_:1},8,["onKeyup","onClear","placeholder","modelValue"])]),tu(c,{onClick:t[1]||(t[1]=e=>n.createTicketModal()),class:"fs_filled_btn",icon:"Plus"},{default:br(()=>[su(fe(e.$t("Add New")),1)],void 0),_:1})])]),eu("div",Bge,[tu(g,{data:s.products,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{empty:br(()=>[eu("div",Vge,[tu(u,{description:e.$t("No Products Found"),"image-size":130},{image:br(()=>[tu(d)]),_:1},8,["description"])])]),default:br(()=>[tu(p,{width:"100",prop:"id",label:e.$t("ID")},null,8,["label"]),tu(p,{prop:"title",width:"200",label:e.$t("Title")},null,8,["label"]),tu(p,{prop:"description",width:"250",label:e.$t("Description")},null,8,["label"]),tu(p,{align:"center",width:"150",label:e.$t("Action")},{default:br(t=>[eu("div",Uge,[eu("div",Hge,[tu(c,{class:"fs_action_button",onClick:e=>n.editProductModal(t.row),text:"",icon:"EditPen"},null,8,["onClick"])]),tu(h,{scope:t,fetching:s.fetching,onDelete:e=>n.deleteProduct(t.row),"delete-warning":e.$t("product_delete_warning")},null,8,["scope","fetching","onDelete","delete-warning"])])]),_:1},8,["label"])],void 0),_:1},8,["data"])]),s.products.length?(Hd(),jd("div",zge,[eu("span",Yge,[eu("p",null,"Page "+fe(s.pagination.current_page)+" of "+fe(Math.ceil(s.pagination.total/s.pagination.per_page)),1),tu(m,{onFetch:t[2]||(t[2]=e=>n.getProducts()),pagination:s.pagination,layout:"sizes"},null,8,["pagination"])]),eu("span",Gge,[tu(m,{onFetch:t[3]||(t[3]=e=>n.getProducts()),pagination:s.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ou("",!0)]))]),s.editing_product?(Hd(),qd(v,{key:0,"append-to-body":!0,title:s.editing_product&&s.editing_product.id?e.$t("Edit Product"):e.$t("Create New Supported Product"),modelValue:s.ticket_modal,"onUpdate:modelValue":t[8]||(t[8]=e=>s.ticket_modal=e),width:"60%",class:"fs_dialog"},{footer:br(()=>[eu("span",jge,[tu(c,{class:"fs_outline_btn",onClick:t[6]||(t[6]=()=>s.ticket_modal=!1)},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),vr((Hd(),qd(c,{disabled:s.saving,onClick:t[7]||(t[7]=e=>n.createOrUpdateProduct()),class:"fs_filled_btn"},{default:br(()=>[su(fe(s.editing_product&&s.editing_product.id?e.$t("Update Product"):e.$t("Add Product")),1)],void 0),_:1},8,["disabled"])),[[y,s.saving]])])]),default:br(()=>[tu(b,{"label-position":"top",data:s.editing_product},{default:br(()=>[tu(_,{label:e.$t("Title"),class:"fs_form_item"},{default:br(()=>[tu(l,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("Product Title"),modelValue:s.editing_product.title,"onUpdate:modelValue":t[4]||(t[4]=e=>s.editing_product.title=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),tu(_,{label:e.$t("Description"),class:"fs_form_item"},{default:br(()=>[tu(l,{class:"fs_textarea_input fs_text_input_40",type:"textarea",rows:"4",placeholder:e.$t("Product Description"),modelValue:s.editing_product.description,"onUpdate:modelValue":t[5]||(t[5]=e=>s.editing_product.description=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},8,["title","modelValue"])):ou("",!0)])}]]),Kge={class:"fs_products"},Xge={class:"fs_box_wrapper"},Qge={class:"fs_box_header"},Zge={class:"fs_box_head"},Jge={class:"fs_box_head"},eme={key:0,class:"fs_table_container"},tme={class:"fs_table_header"},ame={class:"fs_box_actions"},ime={class:"fs_ticket_orders fs_table_search_field"},sme={class:"fs_table_wrapper"},nme={class:"fs_table_empty_state"},ome={class:"fs-table-action-cell"},rme={class:"fs_action_button_wrapper"},lme={key:0,class:"fs_pagination_wrapper"},cme={class:"fs_pagination_left"},dme={class:"fs_pagination_right"},ume={key:1,class:"fs_box_body fs_skeleton_loader"},pme={class:"fs_dialog_footer"};const hme=dH({name:"TicketTags",components:{Pagination:dq,TableMoreActions:Tge,TableEmptyStateImage:Rge,NarrowPromo:Hie},data:()=>({tags:[],pagination:{current_page:1,per_page:10,total:0},fetching:!0,saving:!1,tag_modal:!1,editing_tag:!1,search:""}),methods:{fetchTags(){this.fetching=!0,this.$get("ticket-tags",{per_page:this.pagination.per_page,page:this.pagination.current_page,search:this.search}).then(e=>{this.tags=e.tags.data,this.pagination.total=e.tags.total}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},createOrUpdateTag(){this.saving=!0;let e=this.$post,t="ticket-tags";this.editing_tag.id&&(e=this.$put,t=`ticket-tags/${this.editing_tag.id}`),e(t,{...this.editing_tag}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetchTags(),this.tag_modal=!1,this.renewOptions("ticket-tags/options")}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},editTagModal(e){this.editing_tag=JSON.parse(JSON.stringify(e)),this.tag_modal=!0},createTagModal(){this.editing_tag={title:"",description:""},this.tag_modal=!0},deleteTag(e){this.$del(`ticket-tags/${e.id}`).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetchTags(),this.renewOptions("ticket-tags/options")})}},mounted(){this.has_pro&&this.fetchTags(),this.$setTitle(this.$t("Ticket Tags"))}},[["render",function(e,t,a,i,s,n){const o=Zl("search"),r=jx,l=oC,c=vk,d=Zl("TableEmptyStateImage"),u=PM,p=JP,h=Zl("router-link"),g=Zl("TableMoreActions"),m=ZP,f=Zl("pagination"),_=OL,b=Zl("NarrowPromo"),v=sE,y=iE,S=pD,x=q$;return Hd(),jd("div",Kge,[eu("div",Xge,[eu("div",Qge,[eu("div",Zge,[eu("div",Jge,[eu("h3",null,fe(e.$t("Ticket Tags")),1)])])]),e.has_pro?(Hd(),jd(Pd,{key:0},[s.fetching?(Hd(),jd("div",ume,[tu(_,{class:"fs_box_wrapper",rows:5,animated:""})])):(Hd(),jd("div",eme,[eu("div",tme,[eu("div",ame,[eu("div",ime,[tu(l,{onKeyup:Rh(n.fetchTags,["enter"]),clearable:"",onClear:n.fetchTags,disabled:!e.has_pro,placeholder:e.$t("Search..."),modelValue:s.search,"onUpdate:modelValue":t[0]||(t[0]=e=>s.search=e),class:"fs_text_input fs_table_search_input"},{prefix:br(()=>[tu(r,{class:"el-input__icon"},{default:br(()=>[tu(o)],void 0),_:1})]),_:1},8,["onKeyup","onClear","disabled","placeholder","modelValue"])]),e.has_pro?(Hd(),qd(c,{key:0,onClick:t[1]||(t[1]=e=>n.createTagModal()),class:"fs_filled_btn",icon:"Plus"},{default:br(()=>[su(fe(e.$t("Add New")),1)],void 0),_:1})):ou("",!0)])]),eu("div",sme,[tu(m,{data:s.tags,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{empty:br(()=>[eu("div",nme,[tu(u,{description:e.$t("No Tags Found"),"image-size":130},{image:br(()=>[tu(d)]),_:1},8,["description"])])]),default:br(()=>[tu(p,{width:"100",prop:"id",label:e.$t("ID")},null,8,["label"]),tu(p,{prop:"title",width:"200",label:e.$t("Name")},null,8,["label"]),tu(p,{prop:"description",width:"250",label:e.$t("Description")},null,8,["label"]),tu(p,{label:e.$t("Tickets"),width:"80"},{default:br(e=>[tu(h,{to:{name:"tickets",query:{tags:[e.row.id]}}},{default:br(()=>[su(fe(e.row.count),1)],void 0),_:2},1032,["to"])]),_:1},8,["label"]),tu(p,{align:"center",width:"150",label:e.$t("Action")},{default:br(t=>[eu("div",ome,[eu("div",rme,[tu(c,{class:"fs_action_button",onClick:e=>n.editTagModal(t.row),text:"",icon:"EditPen"},null,8,["onClick"])]),tu(g,{scope:t,fetching:s.fetching,onDelete:e=>n.deleteTag(t.row),"delete-warning":e.$t("tag_delete_warning")},null,8,["scope","fetching","onDelete","delete-warning"])])]),_:1},8,["label"])],void 0),_:1},8,["data"])]),s.tags.length?(Hd(),jd("div",lme,[eu("span",cme,[eu("p",null,"Page "+fe(s.pagination.current_page)+" of "+fe(Math.ceil(s.pagination.total/s.pagination.per_page)),1),tu(f,{onFetch:t[2]||(t[2]=e=>n.fetchTags()),pagination:s.pagination,layout:"sizes"},null,8,["pagination"])]),eu("span",dme,[tu(f,{onFetch:t[3]||(t[3]=e=>n.fetchTags()),pagination:s.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ou("",!0)]))],64)):(Hd(),qd(b,{key:1,heading:e.$t("segment_ticket_by_tags"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))]),s.editing_tag?(Hd(),qd(S,{key:0,"append-to-body":!0,title:s.editing_tag&&s.editing_tag.id?e.$t("Edit Tag"):e.$t("Create New Ticket Tag"),modelValue:s.tag_modal,"onUpdate:modelValue":t[8]||(t[8]=e=>s.tag_modal=e),width:"60%",class:"fs_dialog"},{footer:br(()=>[eu("span",pme,[tu(c,{class:"fs_outline_btn",onClick:t[6]||(t[6]=()=>s.tag_modal=!1)},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),vr((Hd(),qd(c,{disabled:s.saving,onClick:t[7]||(t[7]=e=>n.createOrUpdateTag()),class:"fs_filled_btn"},{default:br(()=>[su(fe(s.editing_tag&&s.editing_tag.id?e.$t("Update Ticket Tag"):e.$t("Add Ticket Tag")),1)],void 0),_:1},8,["disabled"])),[[x,s.saving]])])]),default:br(()=>[tu(y,{"label-position":"top",data:s.editing_tag},{default:br(()=>[tu(v,{label:e.$t("Tag Name"),class:"fs_form_item"},{default:br(()=>[tu(l,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("Tag Title"),modelValue:s.editing_tag.title,"onUpdate:modelValue":t[4]||(t[4]=e=>s.editing_tag.title=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),tu(v,{label:e.$t("Description"),class:"fs_form_item"},{default:br(()=>[tu(l,{class:"fs_textarea_input fs_text_input_40",type:"textarea",rows:"4",placeholder:e.$t("Tag Description"),modelValue:s.editing_tag.description,"onUpdate:modelValue":t[5]||(t[5]=e=>s.editing_tag.description=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},8,["title","modelValue"])):ou("",!0)])}]]),gme={name:"agent-members",components:{Pagination:dq,TableMoreActions:Tge,TableEmptyStateImage:Rge,WpEditor:cee},data(){return{agents:[],pagination:{per_page:10,current_page:1,total:0},permissions:[],loading:!1,editing_agent:!1,agent_modal:!1,saving:!1,search:"",integrationSettings:[],upload_url:this.appVars.rest.url+"/agents/",requestHeaders:{"X-WP-Nonce":this.appVars.rest.nonce},show_icon:!1,restrictBusinessBox:!1,selectedBusinessBoxes:[],businessBoxes:[]}},computed:{treeData(){return[{id:0,label:"All Permissions",children:this.getFormattedPermissionData()}]},defaultProps:()=>({children:"children",label:"label"})},methods:{fetchAgents(){this.loading=!0,this.$get("agents",{per_page:this.pagination.per_page,page:this.pagination.current_page,search:this.search}).then(e=>{this.agents=e.agents.data,this.pagination.total=e.agents.total,this.permissions=e.permissions,this.businessBoxes=e.businessBoxes}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},fetchSettings(){this.$get("settings/integration-settings").then(e=>{this.integrationSettings=e}).catch(e=>{this.$handleError(e)})},createStaffModal(){this.editing_agent={email:"",first_name:"",last_name:"",title:"",permissions:[],restrictions:{businessBoxRestrictions:!1,restrictedBusinessBoxes:[]},agent_signature:"",agent_signature_enabled:"no"},this.agent_modal=!0},initEdit(e){this.editing_agent=e,this.agent_modal=!0},createOrUpdateAgent(){this.saving=!0;let e=this.$post,t="agents";this.editing_agent.id&&(e=this.$put,t=`agents/${this.editing_agent.id}`),e(t,{...this.editing_agent}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fetchAgents(),this.editing_agent=!1,this.agent_modal=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},readable:e=>e.replace("fst_","").replaceAll("_"," "),deleteAgent(e){xB.prompt(this.$t("Please Provide Fallback Agent ID"),this.$t("Fallback Agent ID"),{confirmButtonText:this.$t("Confirm Delete"),cancelButtonText:this.$t("Cancel"),inputErrorMessage:this.$t("Invalid ID"),customClass:"fs_text_input fs_text_input_40",cancelButtonClass:"el-button--default fs_outline_btn",confirmButtonClass:"el-button--danger fs_filled_btn"}).then(({value:t})=>{this.confirmDeleteAgent(e,t)}).catch(()=>{})},confirmDeleteAgent(e,t){this.$del(`agents/${e}`,{fallback_agent_id:t}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fetchAgents()}).catch(e=>{this.$handleError(e)})},handleAvatarSuccess(e,t){const a=e.agent.id,i=this.agents.findIndex(e=>e.id===a);this.agents[i].photo=e.image,this.$notify({type:"success",message:e.message,position:"bottom-right"})},handleAvatarError(e){const t=JSON.parse(e.message);this.$notify({type:"error",message:t.message,position:"bottom-right"})},showIcon(e){document.querySelector("i.fs_agent_avatar_upload-"+e).style.display="inline-flex"},hideIcon(e){document.querySelector("i.fs_agent_avatar_upload-"+e).style.display="none"},confirmResetProfile(e){this.loading=!0,this.$post("agents/reset_avatar/"+e.id).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fetchAgents()}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},getFormattedPermissionData(){return this.permissions.map((e,t)=>{let a=e.permissions;return{id:t,label:e.title,children:Object.keys(a).map(e=>({id:e,label:a[e]}))}})},getAllChildrenIds(e){let t=[];if(!e.children||0===e.children.length)return t;for(const a of e.children)t.push(a.id,...this.getAllChildrenIds(a));return t},handleCheckChange(e,t){const{permissions:a}=this.editing_agent,i=[e.id,...this.getAllChildrenIds(e)];this.editing_agent.permissions=t?[...new Set([...a,...i])]:a.filter(e=>!i.includes(e))},resetAgentModal(){this.editing_agent=!1,this.agent_modal=!1},manageBusinessBoxRestrictions(e){e||(this.editing_agent.restrictions.restrictedBusinessBoxes=[])}},mounted(){this.fetchAgents(),this.fetchSettings()}},mme={key:0,class:"fs_table_container",style:{width:"100%",margin:"0"}},fme={class:"fs_table_header"},_me={class:"fs_box_actions"},bme={class:"fs_ticket_orders fs_table_search_field"},vme={style:{overflow:"hidden",width:"100%"}},yme={class:"fs_table_wrapper fs_support_staffs_table",style:{"overflow-x":"auto"}},Sme={class:"fs_table_empty_state"},xme=["onMouseover","onMouseout"],wme={class:"fs_agent_avatar"},Eme={class:"fs_agent_avatar_cell"},Cme=["src"],kme={class:"fs_agent_info"},Tme=["href","title"],Ame={style:{display:"block"}},Rme={key:0},Ome={key:1,class:"fs_text_muted"},Nme={class:"fs-table-action-cell"},Ime={class:"fs_action_button_wrapper"},Dme={key:0,class:"fs_pagination_wrapper"},Mme={class:"fs_pagination_left"},Lme={class:"fs_pagination_right"},Pme={key:1,class:"fs_box_body fs_skeleton_loader"},Fme={key:0,class:"telegram_integration"},$me={key:1,class:"slack_integration"},Bme={key:2,class:"twilio_integration"},Vme={class:"custom-tree-node"},Ume={key:0},Hme={key:1},zme={class:"fs_restriction_section"},Yme={class:"fs_restriction_label"},Gme={class:"fs_restriction_content"},Wme={style:{"margin-top":"16px"}},jme={key:0},qme={class:"fs_dialog_footer"},Kme={key:0},Xme={key:1};const Qme={key:0,class:"fs_table_container",style:{width:"100%",margin:"0"}},Zme={class:"fs_table_header"},Jme={class:"fs_box_actions"},efe={class:"fs_ticket_orders fs_table_search_field"},tfe={style:{overflow:"hidden",width:"100%"}},afe={class:"fs_table_wrapper fs_agent_groups_table",style:{"overflow-x":"auto"}},ife={class:"fs_table_empty_state"},sfe={class:"fs-table-action-cell"},nfe={class:"fs_action_button_wrapper"},ofe={class:"fs_action_button_wrapper"},rfe={key:0,class:"fs_pagination_wrapper"},lfe={class:"fs_pagination_left"},cfe={class:"fs_pagination_right"},dfe={key:1,class:"fs_box_body fs_skeleton_loader"},ufe={class:"fs_agent_group_default_description"},pfe={class:"fs_dialog_footer"},hfe={class:"fs_dialog_warning_content"},gfe={class:"fs_popconfirm_actions"};const mfe={class:"fs_box_wrapper"},ffe={class:"fs_box_header"},_fe={class:"fs_box_head"},bfe={class:"fs_table_container fs_support_staffs_container"},vfe={class:"fs_settings_sub_menu"};const yfe=dH({name:"support-staffs",components:{AgentMembers:dH(gme,[["render",function(e,t,a,i,s,n){const o=Zl("search"),r=jx,l=oC,c=vk,d=Zl("TableEmptyStateImage"),u=PM,p=Zl("Camera"),h=$$,g=oM,m=yL,f=rM,_=nM,b=JP,v=KE,y=QT,S=Zl("TableMoreActions"),x=ZP,w=Zl("pagination"),E=OL,C=sE,k=lO,T=rO,A=l$,R=iE,O=wR,N=bA,I=_A,D=Zl("wp-editor"),M=pD,L=q$;return Hd(),jd("div",null,[s.loading?(Hd(),jd("div",Pme,[tu(E,{rows:5,animated:""})])):(Hd(),jd("div",mme,[eu("div",fme,[eu("div",_me,[eu("div",bme,[tu(l,{onKeyup:Rh(n.fetchAgents,["enter"]),clearable:"",onClear:n.fetchAgents,size:"small",placeholder:e.$t("Search Agents"),modelValue:s.search,"onUpdate:modelValue":t[0]||(t[0]=e=>s.search=e),class:"fs_text_input fs_table_search_input"},{prefix:br(()=>[tu(r,{class:"el-input__icon"},{default:br(()=>[tu(o)],void 0),_:1})]),_:1},8,["onKeyup","onClear","placeholder","modelValue"])]),tu(c,{onClick:t[1]||(t[1]=e=>n.createStaffModal()),class:"fs_filled_btn",icon:"Plus"},{default:br(()=>[su(fe(e.$t("Add New")),1)],void 0),_:1})])]),eu("div",vme,[eu("div",yme,[tu(x,{data:s.agents,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell"},{empty:br(()=>[eu("div",Sme,[tu(u,{description:e.$t("No Support Staff Found"),"image-size":130},{image:br(()=>[tu(d)]),_:1},8,["description"])])]),default:br(()=>[tu(b,{label:e.$t("Staff"),width:"220"},{default:br(t=>[eu("div",{class:"fs_as_profile_picture",onMouseover:e=>n.showIcon(t.row.id),onMouseout:e=>n.hideIcon(t.row.id)},[eu("div",wme,[tu(_,{trigger:"click","hide-on-click":!1,placement:"bottom-start"},{dropdown:br(()=>[tu(f,{class:"fs_global_dropdown <>fs-as-avatar-actions</>"},{default:br(()=>[tu(g,null,{default:br(()=>[tu(h,{class:"fs_avatar_uploader",action:s.upload_url+"avatar/"+t.row.id,"on-success":n.handleAvatarSuccess,"on-error":n.handleAvatarError,headers:s.requestHeaders,"show-file-list":!1},{default:br(()=>[su(fe(e.$t("Upload a Custom Picture")),1)],void 0),_:1},8,["action","on-success","on-error","headers"])],void 0),_:2},1024),t.row.avatar?(Hd(),qd(g,{key:0},{default:br(()=>[tu(m,{"confirm-button-text":"Yes","cancel-button-text":"No",title:e.$t("Reset to gravatar?"),onConfirm:e=>n.confirmResetProfile(t.row)},{reference:br(()=>[su(fe(e.$t("Reset To Default Gravatar")),1)]),_:1},8,["title","onConfirm"])],void 0),_:2},1024)):ou("",!0)],void 0),_:2},1024)]),default:br(()=>[tu(r,{class:ne("fs_agent_avatar_upload fs_agent_avatar_upload-"+t.row.id)},{default:br(()=>[tu(p)],void 0),_:1},8,["class"])],void 0),_:2},1024),eu("div",Eme,[t.row.photo?(Hd(),jd("img",{key:0,src:t.row.photo,class:"avatar"},null,8,Cme)):ou("",!0),eu("div",kme,[eu("a",{href:t.row.user_profile,title:t.row.full_name,class:"fs_agent_name"},fe(t.row.full_name),9,Tme),eu("span",null,"#"+fe(t.row.id),1)])])])],40,xme)]),_:1},8,["label"]),tu(b,{label:e.$t("Title"),width:"150"},{default:br(e=>[eu("span",null,fe(e.row.title),1)]),_:1},8,["label"]),tu(b,{label:e.$t("Permissions"),width:"160"},{default:br(t=>[tu(v,{placement:"top"},{content:br(()=>[eu("p",null,fe(e.$t("Assigned Permissions")),1),(Hd(!0),jd(Pd,null,sc(t.row.permissions,e=>(Hd(),jd("span",Ame,fe(n.readable(e)),1))),256))]),default:br(()=>[tu(c,{class:"fs_agent_permissions",type:"default",size:"small"},{default:br(()=>[su(fe(t.row.permissions.length)+" "+fe(e.$t("Permissions")),1)],void 0),_:2},1024)],void 0),_:2},1024)]),_:1},8,["label"]),tu(b,{label:e.$t("Group"),width:"160"},{default:br(t=>[t.row.groups&&t.row.groups.length?(Hd(),jd("span",Rme,[su(fe(t.row.groups[0].title)+" ",1),t.row.groups.length>1?(Hd(),qd(v,{key:0,placement:"top"},{content:br(()=>[(Hd(!0),jd(Pd,null,sc(t.row.groups.slice(1),(e,t)=>(Hd(),jd("span",{key:e.id,style:{display:"block"}},fe(e.title),1))),128))]),default:br(()=>[tu(y,{size:"small",type:"info"},{default:br(()=>[su("+"+fe(t.row.groups.length-1)+" "+fe(e.$t("More")),1)],void 0),_:2},1024)],void 0),_:2},1024)):ou("",!0)])):(Hd(),jd("span",Ome,"—"))]),_:1},8,["label"]),tu(b,{label:e.$t("Replies"),prop:"replies_count",width:"120"},null,8,["label"]),tu(b,{label:e.$t("Interactions"),prop:"interactions_count",width:"120"},null,8,["label"]),tu(b,{width:"120",label:e.$t("Actions")},{default:br(t=>[eu("div",Nme,[eu("div",Ime,[tu(c,{class:"fs_support_action_btn fs_action_button",onClick:e=>n.initEdit(t.row),text:"",icon:"EditPen"},null,8,["onClick"])]),tu(S,{scope:t.row,fetching:s.loading,onDelete:e=>n.deleteAgent(t.row.id),"delete-warning":e.$t("agent_delete_warning")},null,8,["scope","fetching","onDelete","delete-warning"])])]),_:1},8,["label"])],void 0),_:1},8,["data"])])]),s.agents.length?(Hd(),jd("div",Dme,[eu("span",Mme,[eu("p",null," Page "+fe(s.pagination.current_page)+" of "+fe(Math.ceil(s.pagination.total/s.pagination.per_page)),1),tu(w,{onFetch:t[2]||(t[2]=e=>n.fetchAgents()),pagination:s.pagination,layout:"sizes"},null,8,["pagination"])]),eu("span",Lme,[tu(w,{"hide-on-single-page":!0,onFetch:t[3]||(t[3]=e=>n.fetchAgents()),pagination:s.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ou("",!0)])),s.editing_agent?(Hd(),qd(M,{key:2,"append-to-body":!0,title:s.editing_agent&&s.editing_agent.id?e.$t("Edit Staff"):e.$t("Add New Support Staff"),modelValue:s.agent_modal,"onUpdate:modelValue":t[17]||(t[17]=e=>s.agent_modal=e),width:"60%",onClose:t[18]||(t[18]=e=>n.resetAgentModal()),class:"fs_dialog"},{footer:br(()=>[eu("span",qme,[vr((Hd(),qd(c,{disabled:s.saving,onClick:t[16]||(t[16]=e=>n.createOrUpdateAgent()),class:"fs_filled_btn"},{default:br(()=>[s.editing_agent.id?(Hd(),jd("span",Kme,fe(e.$t("Update")),1)):(Hd(),jd("span",Xme,fe(e.$t("Create")),1))],void 0),_:1},8,["disabled"])),[[L,s.saving]])])]),default:br(()=>[tu(R,{"label-position":"top",data:s.editing_agent},{default:br(()=>[tu(T,{gutter:20},{default:br(()=>[tu(k,{span:12},{default:br(()=>[tu(C,{label:e.$t("First Name"),class:"fs_form_item"},{default:br(()=>[tu(l,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("First Name"),modelValue:s.editing_agent.first_name,"onUpdate:modelValue":t[4]||(t[4]=e=>s.editing_agent.first_name=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1}),tu(k,{span:12},{default:br(()=>[tu(C,{label:e.$t("Last Name"),class:"fs_form_item"},{default:br(()=>[tu(l,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("Last Name"),modelValue:s.editing_agent.last_name,"onUpdate:modelValue":t[5]||(t[5]=e=>s.editing_agent.last_name=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1}),tu(T,{gutter:20},{default:br(()=>[tu(k,{span:12},{default:br(()=>[tu(C,{label:e.$t("Email"),class:"fs_form_item"},{default:br(()=>[tu(l,{class:"fs_text_input fs_text_input_40",disabled:s.editing_agent.id,type:"email",placeholder:e.$t("Agent Email"),modelValue:s.editing_agent.email,"onUpdate:modelValue":t[6]||(t[6]=e=>s.editing_agent.email=e)},null,8,["disabled","placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1}),tu(k,{span:12},{default:br(()=>[tu(C,{label:e.$t("Title"),class:"fs_form_item"},{default:br(()=>[tu(l,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("agent_title"),modelValue:s.editing_agent.title,"onUpdate:modelValue":t[7]||(t[7]=e=>s.editing_agent.title=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1}),s.integrationSettings.includes("telegram_settings")?(Hd(),jd("div",Fme,[eu("h3",null,fe(e.$t("Telegram Integration")),1),tu(C,{label:e.$t("Telegram Chat ID"),class:"fs_form_item"},{default:br(()=>[tu(l,{class:"fs_text_input fs_text_input_40",text:"",placeholder:e.$t("Telegram Chat ID"),modelValue:s.editing_agent.telegram_chat_id,"onUpdate:modelValue":t[8]||(t[8]=e=>s.editing_agent.telegram_chat_id=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])])):ou("",!0),s.integrationSettings.includes("slack_settings")?(Hd(),jd("div",$me,[eu("h3",null,fe(e.$t("Slack Integration")),1),tu(C,{label:e.$t("Slack User ID"),class:"fs_form_item"},{default:br(()=>[tu(l,{class:"fs_text_input fs_text_input_40",text:"",placeholder:e.$t("Slack User ID"),modelValue:s.editing_agent.slack_user_id,"onUpdate:modelValue":t[9]||(t[9]=e=>s.editing_agent.slack_user_id=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])])):ou("",!0),s.integrationSettings.includes("twilio_settings")?(Hd(),jd("div",Bme,[eu("h3",null,fe(e.$t("Twilio Integration")),1),tu(C,{label:e.$t("WhatsApp Phone Number"),class:"fs_form_item"},{default:br(()=>[tu(l,{class:"fs_text_input fs_text_input_40",text:"",placeholder:e.$t("Ex: +123456789"),modelValue:s.editing_agent.whatsapp_number,"onUpdate:modelValue":t[10]||(t[10]=e=>s.editing_agent.whatsapp_number=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])])):ou("",!0),t[20]||(t[20]=eu("hr",{class:"fs_divider"},null,-1)),tu(C,{label:e.$t("Permissions"),class:"fs_form_item"},{default:br(()=>[tu(A,{data:n.treeData,"show-checkbox":"","node-key":"id",props:n.defaultProps,"default-expand-all":"","default-checked-keys":s.editing_agent.permissions,onCheckChange:n.handleCheckChange},{default:br(({node:e,data:a})=>[eu("span",Vme,["Draft Reply"===e.label?(Hd(),jd("span",Ume,[tu(v,{width:"200",class:"box-item","popper-class":"fs_tree_tooltip",effect:"dark",placement:"top-start"},{content:br(()=>[...t[19]||(t[19]=[su(" If any of the following options are enabled: ",-1),eu("br",null,null,-1),su(" 1. Manage Own Tickets,",-1),eu("br",null,null,-1),su(" 2. Manage Unassigned Tickets,",-1),eu("br",null,null,-1),su(" 3. Manage Other Tickets,",-1),eu("br",null,null,-1),su(" In that case, the draft replies permission will be disabled. ",-1)])]),default:br(()=>[eu("span",null,fe(e.label),1)],void 0),_:2},1024)])):(Hd(),jd("span",Hme,fe(e.label),1))])]),_:1},8,["data","props","default-checked-keys","onCheckChange"])],void 0),_:1},8,["label"])],void 0),_:1},8,["data"]),t[22]||(t[22]=eu("hr",{class:"fs_divider"},null,-1)),eu("div",zme,[eu("h4",Yme,fe(e.$t("Restrictions")),1),eu("div",Gme,[tu(R,{model:s.editing_agent,"label-position":"top",ref:"form"},{default:br(()=>[tu(C,{class:"fs_form_item"},{default:br(()=>[tu(O,{modelValue:s.editing_agent.restrictions.businessBoxRestrictions,"onUpdate:modelValue":t[11]||(t[11]=e=>s.editing_agent.restrictions.businessBoxRestrictions=e),onChange:t[12]||(t[12]=e=>n.manageBusinessBoxRestrictions(s.restrictBusinessBox))},{default:br(()=>[su(fe(e.$t("Business Inbox Access Restriction")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1}),s.editing_agent.restrictions.businessBoxRestrictions?(Hd(),qd(C,{key:0,class:"fs_form_item"},{default:br(()=>[tu(I,{class:"fs_select_field fs_select_restricted_business_boxes",modelValue:s.editing_agent.restrictions.restrictedBusinessBoxes,"onUpdate:modelValue":t[13]||(t[13]=e=>s.editing_agent.restrictions.restrictedBusinessBoxes=e),placeholder:e.$t("Select"),clearable:"",multiple:""},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.businessBoxes,e=>(Hd(),qd(N,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1})):ou("",!0)],void 0),_:1},8,["model"])])]),eu("div",Wme,[t[21]||(t[21]=eu("hr",{class:"fs_divider"},null,-1)),eu("h4",null,fe(e.$t("Agent Signature")),1),tu(C,{class:"fs_form_item"},{default:br(()=>[tu(O,{modelValue:s.editing_agent.agent_signature_enabled,"onUpdate:modelValue":t[14]||(t[14]=e=>s.editing_agent.agent_signature_enabled=e),"true-label":"yes","false-label":"no"},{default:br(()=>[su(fe(e.$t("Enable signature for this agent")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1}),"yes"===s.editing_agent.agent_signature_enabled?(Hd(),jd("div",jme,[tu(D,{editor_id:"agent_signature_"+(s.editing_agent.id||"new"),modelValue:s.editing_agent.agent_signature,"onUpdate:modelValue":t[15]||(t[15]=e=>s.editing_agent.agent_signature=e),height:150},null,8,["editor_id","modelValue"])])):ou("",!0)])],void 0),_:1},8,["title","modelValue"])):ou("",!0)])}]]),AgentGroups:dH({name:"agent-groups",components:{Pagination:dq,TableEmptyStateImage:Rge},data:()=>({groups:[],pagination:{current_page:1,per_page:10,total:0},fetching:!0,saving:!1,group_modal:!1,editing_group:!1,original_group:null,search:"",freshAgents:[],delete_modal:!1,deleting_group:null,fallback_group_id:null,deleting:!1}),computed:{availableAgents(){return this.freshAgents.length?this.freshAgents:this.appVars.support_agents||[]},fallbackGroups(){return this.deleting_group?this.groups.filter(e=>e.id!==this.deleting_group.id):[]},hasChanges(){return!this.editing_group||!this.editing_group.id||(!this.original_group||JSON.stringify(this.editing_group)!==JSON.stringify(this.original_group))}},methods:{getGroups(){this.fetching=!0,this.$get("agent-groups",{per_page:this.pagination.per_page,page:this.pagination.current_page,search:this.search}).then(e=>{this.groups=e.groups.data,this.pagination.total=e.groups.total}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},openCreateModal(){this.editing_group={title:"",description:"",agent_ids:[],is_default:!1},this.group_modal=!0},openEditModal(e){this.editing_group=null,this.$get(`agent-groups/${e.id}`).then(e=>{this.freshAgents=e.agents||[];const t=e.group;this.editing_group={id:t.id,title:t.title,description:t.description||"",agent_ids:(t.agent_ids||[]).map(e=>Number(e)),is_default:!(!t.settings||!t.settings.is_default)},this.original_group=JSON.parse(JSON.stringify(this.editing_group)),this.group_modal=!0}).catch(e=>{this.$handleError(e)})},createOrUpdateGroup(){if(!this.editing_group.title)return void this.$notify({type:"warning",message:this.$t("Title is required"),position:"bottom-right"});if(!this.editing_group.agent_ids||!this.editing_group.agent_ids.length)return void this.$notify({type:"error",message:this.$t("Please add at least one group member."),position:"bottom-right"});this.saving=!0;let e=this.$post,t="agent-groups";this.editing_group.id&&(e=this.$put,t=`agent-groups/${this.editing_group.id}`),e(t,{...this.editing_group}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.getGroups(),this.group_modal=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},openDeleteModal(e){this.deleting_group=e,this.fallback_group_id=null,this.delete_modal=!0},confirmDeleteGroup(){this.deleting=!0,this.$del(`agent-groups/${this.deleting_group.id}`,{fallback_group_id:this.fallback_group_id}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.delete_modal=!1,this.deleting_group=null,this.getGroups()}).catch(e=>{this.$handleError(e)}).always(()=>{this.deleting=!1})}},mounted(){this.getGroups()}},[["render",function(e,t,a,i,s,n){const o=Zl("Search"),r=jx,l=oC,c=vk,d=Zl("TableEmptyStateImage"),u=PM,p=JP,h=QT,g=ZP,m=Zl("pagination"),f=OL,_=sE,b=bA,v=_A,y=wR,S=iE,x=pD,w=q$;return Hd(),jd("div",null,[s.fetching?(Hd(),jd("div",dfe,[tu(f,{class:"fs_box_wrapper",rows:5,animated:""})])):(Hd(),jd("div",Qme,[eu("div",Zme,[eu("div",Jme,[eu("div",efe,[tu(l,{onKeyup:Rh(n.getGroups,["enter"]),clearable:"",onClear:n.getGroups,placeholder:e.$t("Search..."),modelValue:s.search,"onUpdate:modelValue":t[0]||(t[0]=e=>s.search=e),class:"fs_text_input fs_table_search_input"},{prefix:br(()=>[tu(r,{class:"el-input__icon"},{default:br(()=>[tu(o)],void 0),_:1})]),_:1},8,["onKeyup","onClear","placeholder","modelValue"])]),tu(c,{onClick:t[1]||(t[1]=e=>n.openCreateModal()),class:"fs_filled_btn",icon:"Plus"},{default:br(()=>[su(fe(e.$t("Add Group")),1)],void 0),_:1})])]),eu("div",tfe,[eu("div",afe,[tu(g,{data:s.groups,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{empty:br(()=>[eu("div",ife,[tu(u,{description:e.$t("No Agent Groups Found"),"image-size":130},{image:br(()=>[tu(d)]),_:1},8,["description"])])]),default:br(()=>[tu(p,{prop:"title",label:e.$t("Title"),width:"150"},null,8,["label"]),tu(p,{label:e.$t("Members"),width:"120"},{default:br(e=>[eu("span",null,fe(e.row.agents_count),1)]),_:1},8,["label"]),tu(p,{label:e.$t("Default"),width:"120"},{default:br(t=>[t.row.settings&&t.row.settings.is_default?(Hd(),qd(h,{key:0,type:"success",size:"small"},{default:br(()=>[su(fe(e.$t("Default")),1)],void 0),_:1})):ou("",!0)]),_:1},8,["label"]),tu(p,{align:"center",width:"200",label:e.$t("Actions")},{default:br(e=>[eu("div",sfe,[eu("div",nfe,[tu(c,{class:"fs_action_button",onClick:t=>n.openEditModal(e.row),text:"",icon:"EditPen"},null,8,["onClick"])]),eu("div",ofe,[tu(c,{class:"fs_action_button",onClick:t=>n.openDeleteModal(e.row),text:"",icon:"Delete"},null,8,["onClick"])])])]),_:1},8,["label"])],void 0),_:1},8,["data"])])]),s.groups.length?(Hd(),jd("div",rfe,[eu("span",lfe,[eu("p",null,"Page "+fe(s.pagination.current_page)+" of "+fe(Math.ceil(s.pagination.total/s.pagination.per_page)),1),tu(m,{onFetch:t[2]||(t[2]=e=>n.getGroups()),pagination:s.pagination,layout:"sizes"},null,8,["pagination"])]),eu("span",cfe,[tu(m,{onFetch:t[3]||(t[3]=e=>n.getGroups()),pagination:s.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ou("",!0)])),s.editing_group?(Hd(),qd(x,{key:2,"append-to-body":!0,title:s.editing_group.id?e.$t("Edit Group"):e.$t("Create Agent Group"),modelValue:s.group_modal,"onUpdate:modelValue":t[10]||(t[10]=e=>s.group_modal=e),width:"60%",class:"fs_dialog"},{footer:br(()=>[eu("span",pfe,[tu(c,{class:"fs_outline_btn",onClick:t[8]||(t[8]=e=>s.group_modal=!1)},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),vr((Hd(),qd(c,{disabled:s.saving||!n.hasChanges,onClick:t[9]||(t[9]=e=>n.createOrUpdateGroup()),class:"fs_filled_btn"},{default:br(()=>[su(fe(s.editing_group.id?e.$t("Update Group"):e.$t("Add Group")),1)],void 0),_:1},8,["disabled"])),[[w,s.saving]])])]),default:br(()=>[tu(S,{"label-position":"top",data:s.editing_group},{default:br(()=>[tu(_,{label:e.$t("Title"),class:"fs_form_item",required:""},{default:br(()=>[tu(l,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("Group Title"),modelValue:s.editing_group.title,"onUpdate:modelValue":t[4]||(t[4]=e=>s.editing_group.title=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),tu(_,{label:e.$t("Description"),class:"fs_form_item"},{default:br(()=>[tu(l,{class:"fs_textarea_input fs_text_input_40",type:"textarea",rows:"3",placeholder:e.$t("Group Description"),modelValue:s.editing_group.description,"onUpdate:modelValue":t[5]||(t[5]=e=>s.editing_group.description=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),tu(_,{label:e.$t("Agents"),class:"fs_form_item",required:""},{default:br(()=>[tu(v,{modelValue:s.editing_group.agent_ids,"onUpdate:modelValue":t[6]||(t[6]=e=>s.editing_group.agent_ids=e),multiple:"",filterable:"","reserve-keyword":!1,placeholder:e.$t("Select Agents"),class:"fs_select_field",style:{width:"100%"}},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(n.availableAgents,e=>(Hd(),qd(b,{key:e.id,label:e.first_name+" "+e.last_name,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),tu(_,{class:"fs_form_item"},{default:br(()=>[tu(y,{modelValue:s.editing_group.is_default,"onUpdate:modelValue":t[7]||(t[7]=e=>s.editing_group.is_default=e)},{default:br(()=>[su(fe(e.$t("Set as Default Group")),1)],void 0),_:1},8,["modelValue"]),eu("span",ufe,fe(e.$t("When new agents are created without being assigned to any group, they will automatically be added to the default group.")),1)],void 0),_:1})],void 0),_:1},8,["data"])],void 0),_:1},8,["title","modelValue"])):ou("",!0),s.deleting_group?(Hd(),qd(x,{key:3,"append-to-body":!0,title:e.$t("Delete Agent Group"),modelValue:s.delete_modal,"onUpdate:modelValue":t[13]||(t[13]=e=>s.delete_modal=e),width:"450",class:"fs_dialog"},{footer:br(()=>[eu("div",gfe,[tu(c,{class:"fs_outline_btn",onClick:t[12]||(t[12]=e=>s.delete_modal=!1)},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),vr((Hd(),qd(c,{class:"fs_filled_btn",disabled:!s.fallback_group_id||s.deleting,onClick:n.confirmDeleteGroup},{default:br(()=>[su(fe(e.$t("Confirm Delete")),1)],void 0),_:1},8,["disabled","onClick"])),[[w,s.deleting]])])]),default:br(()=>[eu("div",hfe,[eu("p",null,fe(e.$t("All agents in this group will be moved to the selected fallback group.")),1)]),tu(S,{"label-position":"top",style:{"margin-top":"15px"}},{default:br(()=>[tu(_,{label:e.$t("Move agents to"),class:"fs_form_item"},{default:br(()=>[tu(v,{modelValue:s.fallback_group_id,"onUpdate:modelValue":t[11]||(t[11]=e=>s.fallback_group_id=e),placeholder:e.$t("Select a fallback group"),class:"fs_select_field",style:{width:"100%"}},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(n.fallbackGroups,e=>(Hd(),qd(b,{key:e.id,label:e.title,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1},8,["title","modelValue"])):ou("",!0)])}]])},data:()=>({active_tab:"members"}),mounted(){this.$setTitle(this.$t("Support Staff"))}},[["render",function(e,t,a,i,s,n){const o=Zl("AgentMembers"),r=Zl("AgentGroups");return Hd(),jd("div",mfe,[eu("div",ffe,[eu("div",_fe,[eu("h3",null,fe(e.$t("Support Staff")),1)])]),eu("div",bfe,[eu("div",vfe,[eu("ul",null,[eu("li",{onClick:t[0]||(t[0]=e=>s.active_tab="members"),class:ne({fs_sub_active:"members"===s.active_tab})},[eu("span",null,fe(e.$t("Members")),1)],2),eu("li",{onClick:t[1]||(t[1]=e=>s.active_tab="groups"),class:ne({fs_sub_active:"groups"===s.active_tab})},[eu("span",null,fe(e.$t("Groups")),1)],2)])]),"members"===s.active_tab?(Hd(),qd(o,{key:0})):ou("",!0),"groups"===s.active_tab?(Hd(),qd(r,{key:1})):ou("",!0)])])}]]),Sfe="undefined"!=typeof document;function xfe(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}const wfe=Object.assign;function Efe(e,t){const a={};for(const i in t){const s=t[i];a[i]=kfe(s)?s.map(e):e(s)}return a}const Cfe=()=>{},kfe=Array.isArray;function Tfe(e,t){const a={};for(const i in e)a[i]=i in t?t[i]:e[i];return a}const Afe=/#/g,Rfe=/&/g,Ofe=/\//g,Nfe=/=/g,Ife=/\?/g,Dfe=/\+/g,Mfe=/%5B/g,Lfe=/%5D/g,Pfe=/%5E/g,Ffe=/%60/g,$fe=/%7B/g,Bfe=/%7C/g,Vfe=/%7D/g,Ufe=/%20/g;function Hfe(e){return null==e?"":encodeURI(""+e).replace(Bfe,"|").replace(Mfe,"[").replace(Lfe,"]")}function zfe(e){return Hfe(e).replace(Dfe,"%2B").replace(Ufe,"+").replace(Afe,"%23").replace(Rfe,"%26").replace(Ffe,"`").replace($fe,"{").replace(Vfe,"}").replace(Pfe,"^")}function Yfe(e){return zfe(e).replace(Nfe,"%3D")}function Gfe(e){return function(e){return Hfe(e).replace(Afe,"%23").replace(Ife,"%3F")}(e).replace(Ofe,"%2F")}function Wfe(e){if(null==e)return null;try{return decodeURIComponent(""+e)}catch(t){}return""+e}const jfe=/\/$/;function qfe(e,t,a="/"){let i,s={},n="",o="";const r=t.indexOf("#");let l=t.indexOf("?");return l=r>=0&&l>r?-1:l,l>=0&&(i=t.slice(0,l),n=t.slice(l,r>0?r:t.length),s=e(n.slice(1))),r>=0&&(i=i||t.slice(0,r),o=t.slice(r,t.length)),i=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const a=t.split("/"),i=e.split("/"),s=i[i.length-1];".."!==s&&"."!==s||i.push("");let n,o,r=a.length-1;for(n=0;n<i.length;n++)if(o=i[n],"."!==o){if(".."!==o)break;r>1&&r--}return a.slice(0,r).join("/")+"/"+i.slice(n).join("/")}(null!=i?i:t,a),{fullPath:i+n+o,path:i,query:s,hash:Wfe(o)}}function Kfe(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Xfe(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Qfe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var a in e)if(!Zfe(e[a],t[a]))return!1;return!0}function Zfe(e,t){return kfe(e)?Jfe(e,t):kfe(t)?Jfe(t,e):(null==e?void 0:e.valueOf())===(null==t?void 0:t.valueOf())}function Jfe(e,t){return kfe(t)?e.length===t.length&&e.every((e,a)=>e===t[a]):1===e.length&&e[0]===t}const e_e={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let t_e=function(e){return e.pop="pop",e.push="push",e}({}),a_e=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function i_e(e){if(!e)if(Sfe){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(jfe,"")}const s_e=/^[^#]+#/;function n_e(e,t){return e.replace(s_e,"#")+t}const o_e=()=>({left:window.scrollX,top:window.scrollY});function r_e(e){let t;if("el"in e){const a=e.el,i="string"==typeof a&&a.startsWith("#"),s="string"==typeof a?i?document.getElementById(a.slice(1)):document.querySelector(a):a;if(!s)return;t=function(e,t){const a=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-a.left-(t.left||0),top:i.top-a.top-(t.top||0)}}(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function l_e(e,t){return(history.state?history.state.position-t:-1)+e}const c_e=new Map;function d_e(e){return"string"==typeof e||"symbol"==typeof e}let u_e=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const p_e=Symbol("");function h_e(e,t){return wfe(new Error,{type:e,[p_e]:!0},t)}function g_e(e,t){return e instanceof Error&&p_e in e&&(null==t||!!(e.type&t))}u_e.MATCHER_NOT_FOUND,u_e.NAVIGATION_GUARD_REDIRECT,u_e.NAVIGATION_ABORTED,u_e.NAVIGATION_CANCELLED,u_e.NAVIGATION_DUPLICATED;function m_e(e){const t={};if(""===e||"?"===e)return t;const a=("?"===e[0]?e.slice(1):e).split("&");for(let i=0;i<a.length;++i){const e=a[i].replace(Dfe," "),s=e.indexOf("="),n=Wfe(s<0?e:e.slice(0,s)),o=s<0?null:Wfe(e.slice(s+1));if(n in t){let e=t[n];kfe(e)||(e=t[n]=[e]),e.push(o)}else t[n]=o}return t}function f_e(e){let t="";for(let a in e){const i=e[a];a=Yfe(a),null!=i?(kfe(i)?i.map(e=>e&&zfe(e)):[i&&zfe(i)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+a,null!=e&&(t+="="+e))}):void 0!==i&&(t+=(t.length?"&":"")+a)}return t}function __e(e){const t={};for(const a in e){const i=e[a];void 0!==i&&(t[a]=kfe(i)?i.map(e=>null==e?null:""+e):null==i?i:""+i)}return t}const b_e=Symbol(""),v_e=Symbol(""),y_e=Symbol(""),S_e=Symbol(""),x_e=Symbol("");function w_e(){let e=[];return{add:function(t){return e.push(t),()=>{const a=e.indexOf(t);a>-1&&e.splice(a,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function E_e(e,t,a,i,s,n=e=>e()){const o=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise((r,l)=>{const c=e=>{var n;!1===e?l(h_e(u_e.NAVIGATION_ABORTED,{from:a,to:t})):e instanceof Error?l(e):"string"==typeof(n=e)||n&&"object"==typeof n?l(h_e(u_e.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&i.enterCallbacks[s]===o&&"function"==typeof e&&o.push(e),r())},d=n(()=>e.call(i&&i.instances[s],t,a,c));let u=Promise.resolve(d);e.length<3&&(u=u.then(c)),u.catch(e=>l(e))})}function C_e(e,t,a,i,s=e=>e()){const n=[];for(const o of e)for(const e in o.components){let r=o.components[e];if("beforeRouteEnter"===t||o.instances[e])if(xfe(r)){const l=(r.__vccOpts||r)[t];l&&n.push(E_e(l,a,i,o,e,s))}else{let l=r();n.push(()=>l.then(n=>{if(!n)throw new Error(`Couldn't resolve component "${e}" at "${o.path}"`);const r=(l=n).__esModule||"Module"===l[Symbol.toStringTag]||l.default&&xfe(l.default)?n.default:n;var l;o.mods[e]=n,o.components[e]=r;const c=(r.__vccOpts||r)[t];return c&&E_e(c,a,i,o,e,s)()}))}}return n}function k_e(e,t){const{pathname:a,search:i,hash:s}=t,n=e.indexOf("#");if(n>-1){let t=s.includes(e.slice(n))?e.slice(n).length:1,a=s.slice(t);return"/"!==a[0]&&(a="/"+a),Kfe(a,"")}return Kfe(a,e)+i+s}function T_e(e,t,a,i=!1,s=!1){return{back:e,current:t,forward:a,replaced:i,position:window.history.length,scroll:s?o_e():null}}function A_e(e){const{history:t,location:a}=window,i={value:k_e(e,a)},s={value:t.state};function n(i,n,o){const r=e.indexOf("#"),l=r>-1?(a.host&&document.querySelector("base")?e:e.slice(r))+i:location.protocol+"//"+location.host+e+i;try{t[o?"replaceState":"pushState"](n,"",l),s.value=n}catch(c){a[o?"replace":"assign"](l)}}return s.value||n(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:i,state:s,push:function(e,a){const o=wfe({},s.value,t.state,{forward:e,scroll:o_e()});n(o.current,o,!0),n(e,wfe({},T_e(i.value,e,null),{position:o.position+1},a),!1),i.value=e},replace:function(e,a){n(e,wfe({},t.state,T_e(s.value.back,e,s.value.forward,!0),a,{position:s.value.position}),!0),i.value=e}}}function R_e(e){const t=A_e(e=i_e(e)),a=function(e,t,a,i){let s=[],n=[],o=null;const r=({state:n})=>{const r=k_e(e,location),l=a.value,c=t.value;let d=0;if(n){if(a.value=r,t.value=n,o&&o===l)return void(o=null);d=c?n.position-c.position:0}else i(r);s.forEach(e=>{e(a.value,l,{delta:d,type:t_e.pop,direction:d?d>0?a_e.forward:a_e.back:a_e.unknown})})};function l(){if("hidden"===document.visibilityState){const{history:e}=window;if(!e.state)return;e.replaceState(wfe({},e.state,{scroll:o_e()}),"")}}return window.addEventListener("popstate",r),window.addEventListener("pagehide",l),document.addEventListener("visibilitychange",l),{pauseListeners:function(){o=a.value},listen:function(e){s.push(e);const t=()=>{const t=s.indexOf(e);t>-1&&s.splice(t,1)};return n.push(t),t},destroy:function(){for(const e of n)e();n=[],window.removeEventListener("popstate",r),window.removeEventListener("pagehide",l),document.removeEventListener("visibilitychange",l)}}}(e,t.state,t.location,t.replace);const i=wfe({location:"",base:e,go:function(e,t=!0){t||a.pauseListeners(),history.go(e)},createHref:n_e.bind(null,e)},t,a);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let O_e=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var N_e=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(N_e||{});const I_e={type:O_e.Static,value:""},D_e=/[a-zA-Z0-9_]/;const M_e="[^/]+?",L_e={sensitive:!1,strict:!1,start:!0,end:!0};var P_e=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(P_e||{});const F_e=/[.+*?^${}()[\]/\\]/g;function $_e(e,t){let a=0;for(;a<e.length&&a<t.length;){const i=t[a]-e[a];if(i)return i;a++}return e.length<t.length?1===e.length&&e[0]===P_e.Static+P_e.Segment?-1:1:e.length>t.length?1===t.length&&t[0]===P_e.Static+P_e.Segment?1:-1:0}function B_e(e,t){let a=0;const i=e.score,s=t.score;for(;a<i.length&&a<s.length;){const e=$_e(i[a],s[a]);if(e)return e;a++}if(1===Math.abs(s.length-i.length)){if(V_e(i))return 1;if(V_e(s))return-1}return s.length-i.length}function V_e(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const U_e={strict:!1,end:!0,sensitive:!1};function H_e(e,t,a){const i=function(e,t){const a=wfe({},L_e,t),i=[];let s=a.start?"^":"";const n=[];for(const r of e){const e=r.length?[]:[P_e.Root];a.strict&&!r.length&&(s+="/");for(let t=0;t<r.length;t++){const i=r[t];let o=P_e.Segment+(a.sensitive?P_e.BonusCaseSensitive:0);if(i.type===O_e.Static)t||(s+="/"),s+=i.value.replace(F_e,"\\$&"),o+=P_e.Static;else if(i.type===O_e.Param){const{value:e,repeatable:a,optional:l,regexp:c}=i;n.push({name:e,repeatable:a,optional:l});const d=c||M_e;d!==M_e&&(o+=P_e.BonusCustomRegExp);let u=a?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(u=l&&r.length<2?`(?:/${u})`:"/"+u),l&&(u+="?"),s+=u,o+=P_e.Dynamic,l&&(o+=P_e.BonusOptional),a&&(o+=P_e.BonusRepeatable),".*"===d&&(o+=P_e.BonusWildcard)}e.push(o)}i.push(e)}if(a.strict&&a.end){const e=i.length-1;i[e][i[e].length-1]+=P_e.BonusStrict}a.strict||(s+="/?"),a.end?s+="$":a.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const o=new RegExp(s,a.sensitive?"":"i");return{re:o,score:i,keys:n,parse:function(e){const t=e.match(o),a={};if(!t)return null;for(let i=1;i<t.length;i++){const e=t[i]||"",s=n[i-1];a[s.name]=e&&s.repeatable?e.split("/"):e}return a},stringify:function(t){let a="",i=!1;for(const s of e){i&&a.endsWith("/")||(a+="/"),i=!1;for(const e of s)if(e.type===O_e.Static)a+=e.value;else if(e.type===O_e.Param){const{value:n,repeatable:o,optional:r}=e,l=n in t?t[n]:"";if(kfe(l)&&!o)throw new Error(`Provided param "${n}" is an array but it is not repeatable (* or + modifiers)`);const c=kfe(l)?l.join("/"):l;if(!c){if(!r)throw new Error(`Missing required param "${n}"`);s.length<2&&(a.endsWith("/")?a=a.slice(0,-1):i=!0)}a+=c}}return a||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[I_e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${a})/"${c}": ${e}`)}let a=N_e.Static,i=a;const s=[];let n;function o(){n&&s.push(n),n=[]}let r,l=0,c="",d="";function u(){c&&(a===N_e.Static?n.push({type:O_e.Static,value:c}):a===N_e.Param||a===N_e.ParamRegExp||a===N_e.ParamRegExpEnd?(n.length>1&&("*"===r||"+"===r)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),n.push({type:O_e.Param,value:c,regexp:d,repeatable:"*"===r||"+"===r,optional:"*"===r||"?"===r})):t("Invalid state to consume buffer"),c="")}function p(){c+=r}for(;l<e.length;)if(r=e[l++],"\\"!==r||a===N_e.ParamRegExp)switch(a){case N_e.Static:"/"===r?(c&&u(),o()):":"===r?(u(),a=N_e.Param):p();break;case N_e.EscapeNext:p(),a=i;break;case N_e.Param:"("===r?a=N_e.ParamRegExp:D_e.test(r)?p():(u(),a=N_e.Static,"*"!==r&&"?"!==r&&"+"!==r&&l--);break;case N_e.ParamRegExp:")"===r?"\\"==d[d.length-1]?d=d.slice(0,-1)+r:a=N_e.ParamRegExpEnd:d+=r;break;case N_e.ParamRegExpEnd:u(),a=N_e.Static,"*"!==r&&"?"!==r&&"+"!==r&&l--,d="";break;default:t("Unknown state")}else i=a,a=N_e.EscapeNext;return a===N_e.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),u(),o(),s}(e.path),a),s=wfe(i,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function z_e(e,t){const a=[],i=new Map;function s(e,a,i){const r=!i,l=G_e(e);l.aliasOf=i&&i.record;const c=Tfe(t,e),d=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)d.push(G_e(wfe({},l,{components:i?i.record.components:l.components,path:e,aliasOf:i?i.record:l})))}let u,p;for(const t of d){const{path:d}=t;if(a&&"/"!==d[0]){const e=a.record.path,i="/"===e[e.length-1]?"":"/";t.path=a.record.path+(d&&i+d)}if(u=H_e(t,a,c),i?i.alias.push(u):(p=p||u,p!==u&&p.alias.push(u),r&&e.name&&!j_e(u)&&n(e.name)),K_e(u)&&o(u),l.children){const e=l.children;for(let t=0;t<e.length;t++)s(e[t],u,i&&i.children[t])}i=i||u}return p?()=>{n(p)}:Cfe}function n(e){if(d_e(e)){const t=i.get(e);t&&(i.delete(e),a.splice(a.indexOf(t),1),t.children.forEach(n),t.alias.forEach(n))}else{const t=a.indexOf(e);t>-1&&(a.splice(t,1),e.record.name&&i.delete(e.record.name),e.children.forEach(n),e.alias.forEach(n))}}function o(e){const t=function(e,t){let a=0,i=t.length;for(;a!==i;){const s=a+i>>1;B_e(e,t[s])<0?i=s:a=s+1}const s=function(e){let t=e;for(;t=t.parent;)if(K_e(t)&&0===B_e(e,t))return t}(e);s&&(i=t.lastIndexOf(s,i-1));return i}(e,a);a.splice(t,0,e),e.record.name&&!j_e(e)&&i.set(e.record.name,e)}return t=Tfe(U_e,t),e.forEach(e=>s(e)),{addRoute:s,resolve:function(e,t){let s,n,o,r={};if("name"in e&&e.name){if(s=i.get(e.name),!s)throw h_e(u_e.MATCHER_NOT_FOUND,{location:e});o=s.record.name,r=wfe(Y_e(t.params,s.keys.filter(e=>!e.optional).concat(s.parent?s.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Y_e(e.params,s.keys.map(e=>e.name))),n=s.stringify(r)}else if(null!=e.path)n=e.path,s=a.find(e=>e.re.test(n)),s&&(r=s.parse(n),o=s.record.name);else{if(s=t.name?i.get(t.name):a.find(e=>e.re.test(t.path)),!s)throw h_e(u_e.MATCHER_NOT_FOUND,{location:e,currentLocation:t});o=s.record.name,r=wfe({},t.params,e.params),n=s.stringify(r)}const l=[];let c=s;for(;c;)l.unshift(c.record),c=c.parent;return{name:o,path:n,params:r,matched:l,meta:q_e(l)}},removeRoute:n,clearRoutes:function(){a.length=0,i.clear()},getRoutes:function(){return a},getRecordMatcher:function(e){return i.get(e)}}}function Y_e(e,t){const a={};for(const i of t)i in e&&(a[i]=e[i]);return a}function G_e(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:W_e(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function W_e(e){const t={},a=e.props||!1;if("component"in e)t.default=a;else for(const i in e.components)t[i]="object"==typeof a?a[i]:a;return t}function j_e(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function q_e(e){return e.reduce((e,t)=>wfe(e,t.meta),{})}function K_e({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function X_e(e){const t=xr(y_e),a=xr(S_e),i=Mu(()=>{const a=So(e.to);return t.resolve(a)}),s=Mu(()=>{const{matched:e}=i.value,{length:t}=e,s=e[t-1],n=a.matched;if(!s||!n.length)return-1;const o=n.findIndex(Xfe.bind(null,s));if(o>-1)return o;const r=Z_e(e[t-2]);return t>1&&Z_e(s)===r&&n[n.length-1].path!==r?n.findIndex(Xfe.bind(null,e[t-2])):o}),n=Mu(()=>s.value>-1&&function(e,t){for(const a in t){const i=t[a],s=e[a];if("string"==typeof i){if(i!==s)return!1}else if(!kfe(s)||s.length!==i.length||i.some((e,t)=>e.valueOf()!==s[t].valueOf()))return!1}return!0}(a.params,i.value.params)),o=Mu(()=>s.value>-1&&s.value===a.matched.length-1&&Qfe(a.params,i.value.params));return{route:i,href:Mu(()=>i.value.href),isActive:n,isExactActive:o,navigate:function(a={}){if(function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(a)){const a=t[So(e.replace)?"replace":"push"](So(e.to)).catch(Cfe);return e.viewTransition&&"undefined"!=typeof document&&"startViewTransition"in document&&document.startViewTransition(()=>a),a}return Promise.resolve()}}}const Q_e=sl({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:X_e,setup(e,{slots:t}){const a=to(X_e(e)),{options:i}=xr(y_e),s=Mu(()=>({[J_e(e.activeClass,i.linkActiveClass,"router-link-active")]:a.isActive,[J_e(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:a.isExactActive}));return()=>{const i=t.default&&(1===(n=t.default(a)).length?n[0]:n);var n;return e.custom?i:Lu("a",{"aria-current":a.isExactActive?e.ariaCurrentValue:null,href:a.href,onClick:a.navigate,class:s.value},i)}}});function Z_e(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const J_e=(e,t,a)=>null!=e?e:null!=t?t:a,ebe=sl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:a}){const i=xr(x_e),s=Mu(()=>e.route||i.value),n=xr(v_e,0),o=Mu(()=>{let e=So(n);const{matched:t}=s.value;let a;for(;(a=t[e])&&!a.components;)e++;return e}),r=Mu(()=>s.value.matched[o.value]);Sr(v_e,Mu(()=>o.value+1)),Sr(b_e,r),Sr(x_e,s);const l=fo();return Rr(()=>[l.value,r.value,e.name],([e,t,a],[i,s,n])=>{t&&(t.instances[a]=e,s&&s!==t&&e&&e===i&&(t.leaveGuards.size||(t.leaveGuards=s.leaveGuards),t.updateGuards.size||(t.updateGuards=s.updateGuards))),!e||!t||s&&Xfe(t,s)&&i||(t.enterCallbacks[a]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const i=s.value,n=e.name,o=r.value,c=o&&o.components[n];if(!c)return tbe(a.default,{Component:c,route:i});const d=o.props[n],u=d?!0===d?i.params:"function"==typeof d?d(i):d:null,p=Lu(c,wfe({},u,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[n]=null)},ref:l}));return tbe(a.default,{Component:p,route:i})||p}}});function tbe(e,t){if(!e)return null;const a=e(t);return 1===a.length?a[0]:a}const abe=ebe;const ibe={class:"fs_integration"},sbe={class:"fs_box_wrapper"},nbe={class:"fs_box_header"},obe={class:"fs_box_head"},rbe={class:"fs_save_settings_container"},lbe={class:"fs_box_body"},cbe={key:0,class:"fs_settings_sub_menu"},dbe=["onClick"],ube={key:1,class:"fs_notification_integration_settings_form"},pbe={key:0,class:"fs_integration_header"},hbe=["innerHTML"],gbe={key:2},mbe={key:2,class:"fs_skeleton_wrap"};const fbe=dH({name:"IntegrationView",components:{FormBuilder:ure,NarrowPromo:Hie},data(){const e=xr(y_e);return{integration_key:e.currentRoute.value.query.integration_key,loading:!1,settings:!1,fields:!1,saving:!1,drivers:this.appVars.notification_integrations,router:e}},computed:{current_integration(){return this.drivers.find(e=>e.key===this.integration_key)}},methods:{async fetchSettings(){this.current_integration&&!this.current_integration.require_pro&&(this.loading=!0,await this.$get("settings/integration",{integration_key:this.integration_key}).then(e=>{this.settings=e.settings,this.fields=e.fields,e.fields&&this.$setTitle(e.fields.title)}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1}))},async saveSettings(){this.saving=!0,await this.$post("settings/integration",{integration_key:this.integration_key,settings:this.settings}).then(e=>{this.settings=e.settings,this.$notify({message:e.message,type:"success",position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},switchIntegration(e){this.router.push({name:"integration",query:{integration_key:e}}),this.integration_key=e,this.fetchSettings()}},mounted(){this.integration_key?this.fetchSettings():this.drivers&&this.drivers.length&&(this.integration_key=this.drivers[0].key,this.router.push({name:"integration",query:{integration_key:this.drivers[0].key}}),this.fetchSettings())}},[["render",function(e,t,a,i,s,n){const o=vk,r=Zl("NarrowPromo"),l=Zl("form-builder"),c=OL;return Hd(),jd("div",ibe,[eu("div",sbe,[eu("div",nbe,[eu("div",obe,[eu("h3",null,fe(e.$t("Notification Integrations")),1),eu("div",rbe,[tu(o,{size:"default",type:"success",class:"fs_filled_btn",onClick:t[0]||(t[0]=e=>n.saveSettings())},{default:br(()=>[su(fe(e.$t("Save Settings")),1)],void 0),_:1})])])]),eu("div",lbe,[s.drivers&&s.drivers.length?(Hd(),jd("div",cbe,[eu("ul",null,[(Hd(!0),jd(Pd,null,sc(s.drivers,e=>(Hd(),jd("li",{key:e.key,onClick:t=>n.switchIntegration(e.key),class:ne({fs_sub_active:e.key==s.integration_key})},[eu("span",null,fe(e.title),1)],10,dbe))),128))])])):ou("",!0),s.loading?(Hd(),jd("div",mbe,[tu(c,{rows:5,animated:""})])):(Hd(),jd("div",ube,[n.current_integration&&n.current_integration.require_pro?(Hd(),qd(r,{key:0,heading:n.current_integration.promo_heading,description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"])):s.fields?(Hd(),jd(Pd,{key:1},[n.current_integration?(Hd(),jd("div",pbe,[eu("h3",null,fe(n.current_integration.title)+" "+fe(e.$t("Integration Settings")),1),eu("p",{innerHTML:n.current_integration.description},null,8,hbe)])):ou("",!0),tu(l,{fields:s.fields.fields,formData:s.settings},null,8,["fields","formData"])],64)):(Hd(),jd("h3",gbe,fe(e.$t("Settings could not be found"))+"!",1))]))])])])}]]),_be={class:"fs_reCaptcha_settings"},bbe={class:"fs_box_wrapper"},vbe={class:"fs_box_header"},ybe={class:"fs_box_head"},Sbe={class:"fs_save_settings_container"},xbe={key:0,class:"fs_actions"},wbe={key:0,class:"fs_box_body"},Ebe={key:0},Cbe={class:"settings-body"},kbe={key:1,class:"fs_reCaptcha_settings_body"},Tbe={class:"settings-body"},Abe={class:"fs_recaptcha_checkboxes"},Rbe=["data-sitekey"],Obe={key:1,class:"fs_box_body fs_skeleton_loader"};const Nbe=dH({name:"RecaptchaView",data:()=>({reCaptchaVersion:"recaptcha_v2",formContainingReCaptcha:{login_form:"no",signup_form:"no"},siteKey:"",secretKey:"",captchaResponse:"",reCaptchaEnabled:!1,fetching:!1,loading:!1,isValid:!1,hasSavedSettings:!1}),methods:{fetchSettings(){this.fetching=!0,this.$get("settings/recaptcha-settings").then(e=>{const t=e;null!=t&&Object.keys(t).length>0?(this.reCaptchaVersion=t.reCaptcha_version,this.siteKey=t.siteKey,this.secretKey=t.secretKey,this.formContainingReCaptcha=t.formContainingReCaptcha,this.reCaptchaEnabled="true"===t.is_enabled,this.hasSavedSettings=!0):this.hasSavedSettings=!1,this.loadRecaptchaV3Script(),this.validate()}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},saveSettings(){if(!this.validate())return this.$notify({message:this.$t("Missing required fields."),type:"error",position:"bottom-right"});this.loading=!0,this.$post("settings/recaptcha-settings",{key:"reCaptcha",reCaptcha:{reCaptchaVersion:this.reCaptchaVersion,formContainingReCaptcha:this.formContainingReCaptcha,siteKey:this.siteKey,secretKey:this.secretKey,captchaResponse:this.captchaResponse,reCaptchaEnabled:this.reCaptchaEnabled}}).then(e=>{this.hasSavedSettings=!0,this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},clearSettings(){this.loading=!0,this.$post("settings/recaptcha-settings",{key:"reCaptcha",reCaptcha:"clear-reCaptcha-settings"}).then(e=>{this.reCaptchaVersion="recaptcha_v2",this.siteKey="",this.secretKey="",this.formContainingReCaptcha={login_form:"no",signup_form:"no"},this.reCaptchaEnabled=!1,this.hasSavedSettings=!1,this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},loadRecaptchaResponse(){var e;if(this.validate(),"recaptcha_v3"===this.reCaptchaVersion)this.loadRecaptchaV3Script(),window.grecaptcha&&window.grecaptcha.ready(()=>{window.grecaptcha.execute(this.siteKey,{action:"submit"}).then(e=>{this.captchaResponse=e})});else{null==(e=document.querySelector(".grecaptcha-badge"))||e.remove();let t=document.getElementById("recaptchaContainer");t&&(t.innerHTML=""),window.___grecaptcha_cfg&&(window.___grecaptcha_cfg.clients={}),window.grecaptcha&&t&&window.grecaptcha.render("recaptchaContainer",{sitekey:this.siteKey,callback:e=>{this.captchaResponse=e}})}},loadRecaptchaV3Script(){if("recaptcha_v3"===this.reCaptchaVersion){var e=document.createElement("script");e.src=`https://www.google.com/recaptcha/api.js?render=${this.siteKey}`,document.head.appendChild(e)}},validate(){return this.isValid=!(!this.siteKey||!this.secretKey),this.isValid}},mounted(){this.$setTitle("reCAPTCHA Settings");var e=document.createElement("script");e.src="https://www.google.com/recaptcha/api.js",document.head.appendChild(e),this.fetchSettings()},beforeUnmount(){var e;null==(e=document.querySelector(".grecaptcha-badge"))||e.remove()}},[["render",function(e,t,a,i,s,n){const o=vk,r=VL,l=sE,c=UR,d=HR,u=oC,p=wR,h=iE,g=OL,m=q$;return Hd(),jd("div",_be,[eu("div",bbe,[eu("div",vbe,[eu("div",ybe,[eu("h3",null,fe(e.$t("reCAPTCHA Settings")),1),eu("div",Sbe,[s.hasSavedSettings?(Hd(),jd("div",xbe,[tu(o,{class:"fs_stroke_btn",onClick:n.clearSettings},{default:br(()=>[su(fe(e.$t("Clear Settings")),1)],void 0),_:1},8,["onClick"])])):ou("",!0),eu("div",null,[tu(o,{size:"default",type:"success",class:"fs_save_settings_btn",onClick:t[0]||(t[0]=e=>n.saveSettings()),disabled:!s.isValid},{default:br(()=>[su(fe(e.$t("Save Settings")),1)],void 0),_:1},8,["disabled"])])])]),t[7]||(t[7]=eu("div",{class:"fs_box_actions"},null,-1))]),s.fetching?(Hd(),jd("div",Obe,[tu(g,{rows:5,animated:""})])):vr((Hd(),jd("div",wbe,["fluent_auth"==e.appVars.auth_provider?(Hd(),jd("div",Ebe,[eu("div",Cbe,[eu("h3",null,fe(e.$t("Signin and Registration forms are handled by FluentAuth Plugin")),1)])])):(Hd(),jd("div",kbe,[eu("div",Tbe,[tu(h,{"label-position":"top","label-width":"140px"},{default:br(()=>[tu(l,{class:"fs_form_item",label:e.$t("Enable reCAPTCHA")},{default:br(()=>[tu(r,{modelValue:s.reCaptchaEnabled,"onUpdate:modelValue":t[1]||(t[1]=e=>s.reCaptchaEnabled=e),"active-text":e.$t("Enable reCAPTCHA for enhanced security"),onChange:n.loadRecaptchaResponse},null,8,["modelValue","active-text","onChange"])],void 0),_:1},8,["label"]),t[8]||(t[8]=eu("hr",{class:"fs_divider"},null,-1)),tu(l,{class:"fs_form_item fs_recaptcha_version",label:e.$t("reCAPTCHA Version")},{default:br(()=>[tu(d,{onChange:n.loadRecaptchaResponse,modelValue:s.reCaptchaVersion,"onUpdate:modelValue":t[2]||(t[2]=e=>s.reCaptchaVersion=e)},{default:br(()=>[tu(c,{value:"recaptcha_v2"},{default:br(()=>[su(fe(e.$t("Version 2")),1)],void 0),_:1}),tu(c,{value:"recaptcha_v3"},{default:br(()=>[su(fe(e.$t("Version 3")),1)],void 0),_:1})],void 0),_:1},8,["onChange","modelValue"])],void 0),_:1},8,["label"]),tu(l,{class:"fs_form_item",label:e.$t("Site Key")},{default:br(()=>[tu(u,{class:"fs_text_input",modelValue:s.siteKey,"onUpdate:modelValue":t[3]||(t[3]=e=>s.siteKey=e),onChange:n.loadRecaptchaResponse,placeholder:e.$t("Enter your reCAPTCHA site key")},null,8,["modelValue","onChange","placeholder"])],void 0),_:1},8,["label"]),tu(l,{class:"fs_form_item",label:e.$t("Secret Key")},{default:br(()=>[tu(u,{class:"fs_text_input",type:"password",modelValue:s.secretKey,"onUpdate:modelValue":t[4]||(t[4]=e=>s.secretKey=e),onChange:n.loadRecaptchaResponse,placeholder:e.$t("Enter your reCAPTCHA secret key")},null,8,["modelValue","onChange","placeholder"])],void 0),_:1},8,["label"]),tu(l,{class:"fs_form_item",label:e.$t("Use reCAPTCHA on")},{default:br(()=>[eu("div",Abe,[tu(p,{modelValue:s.formContainingReCaptcha.login_form,"onUpdate:modelValue":t[5]||(t[5]=e=>s.formContainingReCaptcha.login_form=e),onChange:n.loadRecaptchaResponse,"true-value":"yes","false-value":"no"},{default:br(()=>[su(fe(e.$t("Login Form")),1)],void 0),_:1},8,["modelValue","onChange"]),tu(p,{modelValue:s.formContainingReCaptcha.signup_form,"onUpdate:modelValue":t[6]||(t[6]=e=>s.formContainingReCaptcha.signup_form=e),onChange:n.loadRecaptchaResponse,"true-value":"yes","false-value":"no"},{default:br(()=>[su(fe(e.$t("Signup Form")),1)],void 0),_:1},8,["modelValue","onChange"])])],void 0),_:1},8,["label"]),"recaptcha_v2"===s.reCaptchaVersion&&s.siteKey?(Hd(),qd(l,{key:0,class:"fs_form_item",label:e.$t("Validate Captcha")},{default:br(()=>[eu("div",{class:"g-recaptcha",id:"recaptchaContainer","data-sitekey":s.siteKey},null,8,Rbe)],void 0),_:1},8,["label"])):ou("",!0)],void 0),_:1})])]))])),[[m,s.loading]])])])}]]),Ibe={class:"fs_box_wrapper"},Dbe={class:"fs_box_header"},Mbe={class:"fs_box_head"},Lbe={key:0,class:"fs_save_settings_container"},Pbe={key:0,class:"fs_box_body fs_business_settings_wrapper"},Fbe={key:1,class:"fs_box_body fs_skeleton_loader"};const $be=dH({name:"TicketFormConfig",components:{FormBuilder:ure,NarrowPromo:Hie},data:()=>({settings:{},fetching:!1,settings_fields:{},saving:!1,settings_key:"ticket_form_settings"}),computed:{has_pro(){var e;return(null==(e=this.appVars)?void 0:e.has_pro)||!1}},watch:{"settings.disabled_fields"(){this.settings.disabled_fields&&this.settings.disabled_fields.includes("product_services")&&(this.settings.product_required_field="no")}},methods:{fetchSettings(){this.fetching=!0,this.$get("pro/form-settings",{with:["fields"]}).then(e=>{this.settings=e.settings,this.settings_fields=e.settings_fields}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},saveSettings(){this.saving=!0,this.$post("pro/form-settings",{settings:this.settings}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})}},mounted(){this.has_pro&&this.fetchSettings(),this.$setTitle(this.$t("Ticket Form Config"))}},[["render",function(e,t,a,i,s,n){const o=vk,r=Zl("form-builder"),l=OL,c=Zl("NarrowPromo"),d=q$;return Hd(),jd("div",Ibe,[eu("div",Dbe,[eu("div",Mbe,[eu("h3",null,fe(e.$t("Ticket Form Settings")),1),n.has_pro?(Hd(),jd("div",Lbe,[vr((Hd(),qd(o,{onClick:t[0]||(t[0]=e=>n.saveSettings()),disabled:s.saving,class:"fs_save_settings_btn",type:"success"},{default:br(()=>[su(fe(e.$t("Save Settings")),1)],void 0),_:1},8,["disabled"])),[[d,s.saving]])])):ou("",!0)]),t[1]||(t[1]=eu("div",{class:"fs_box_actions"},null,-1))]),n.has_pro?(Hd(),jd(Pd,{key:0},[s.fetching?(Hd(),jd("div",Fbe,[tu(l,{rows:5,animated:""})])):(Hd(),jd("div",Pbe,[tu(r,{fields:s.settings_fields,"form-data":s.settings},null,8,["fields","form-data"])]))],64)):(Hd(),qd(c,{key:1,heading:e.$t("ticket_form_notice_for_pro"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))])}]]),Bbe={key:0},Vbe={class:"fs_custom_field_option_lists"},Ube={style:{"margin-bottom":"20px"},class:"fs_table fs_stripe"},Hbe={class:"fs_flex fs_action_td"};const zbe={class:"fs_products"},Ybe={class:"fs_box_wrapper fs_custom_fields_wrapper"},Gbe={class:"fs_box_header"},Wbe={class:"fs_box_head"},jbe={key:0,class:"fs_table_container"},qbe={class:"fs_custom_table_field_header fs_table_header"},Kbe={class:"fs_custom_field_actions"},Xbe={class:"fs_table_wrapper"},Qbe={class:"fs_custom_field_table_header_row"},Zbe={class:"fs_field_label_header"},Jbe={class:"fs_field_slug_header"},eve={class:"fs_field_type_header"},tve={class:"fs_field_actions_header"},ave={class:"fs_custom_field_column"},ive={class:"fs_field_label"},sve={class:"fs_field_slug"},nve={class:"fs_field_type"},ove={class:"fs_field_actions"},rve={class:"fs-table-action-cell"},lve={class:"fs_action_button_wrapper"},cve={key:0,class:"fs_pagination_wrapper"},dve={class:"fs_pagination_left"},uve={class:"fs_pagination_right"},pve={key:1,class:"fs_box_body fs_skeleton_loader"},hve={class:"fs_dialog_footer"},gve={class:"fs_dialog_footer"};const mve=dH({name:"CustomFields",components:{CustomFieldForm:dH({name:"FieldForm",props:["field_types","item","form_type","fields"],data:()=>({optionInputVisible:!1,optionInputValue:""}),computed:{keyedFields(){const e=[];qK(this.appVars.support_products,t=>{e.push(t.title)});const t={ticket_title:{label:"Ticket Title",slug:"ticket_title",type:"text"},ticket_content:{label:"Ticket Content",slug:"ticket_content",type:"text"},ticket_client_priority:{label:"Ticket Client Priority",slug:"ticket_client_priority",type:"select-one",options:Object.keys(this.appVars.client_priorities)},ticket_product_id:{label:"Selected Product or Service",slug:"ticket_product_id",type:"select-one",options:e}};return qK(this.fields,e=>{t[e.slug]=e}),t}},methods:{maybeSetSlug(){if("new"!=this.form_type)return!1;const e=this.item.label.toLowerCase().replace(/đ/gi,"d").replace(/\s*$/g,"").replace(/\s+/g,"_").substring(0,25);this.item.slug=e},changeFieldType(){const e=this.item.field_key,t=this.field_types[e];this.item.type=t.type,this.item.label="",this.hasOptions(t.type)?this.item.options||(this.item.options=["Value Option 1"]):delete this.item.options},hasOptions:e=>-1!==["select-one","select-multi","radio","checkbox"].indexOf(e),showOptionInput(){this.optionInputVisible=!0,this.$nextTick(()=>{this.$refs.saveTagInput.focus()})},handleOptionInputConfirm(){const e=this.optionInputValue;e&&this.item.options.push(e),this.optionInputVisible=!1,this.optionInputValue=""},removeOptionItem(e){this.item.options.splice(e,1)},initConditions(e){e.conditions&&e.conditions.length||(e.conditions=[{item_key:"",operator:"=",value:""}]),e.match_type||(e.match_type="all")},addCondition(e){this.item.conditions.splice(e+1,0,{item_key:"",operator:"=",value:""})},removeCondition(e){this.item.conditions.splice(e,1)}}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A,l=sE,c=oC,d=lO,u=rO,p=Zl("Delete"),h=jx,g=vk,m=wR,f=UR,_=HR,b=iE;return Hd(),qd(b,{class:"fs_custom_field_form","label-position":"top",data:a.item},{default:br(()=>[tu(l,{label:e.$t("Field Type"),class:"fs_form_item"},{default:br(()=>[tu(r,{onChange:t[0]||(t[0]=e=>n.changeFieldType()),placeholder:e.$t("Select Field Type"),modelValue:a.item.field_key,"onUpdate:modelValue":t[1]||(t[1]=e=>a.item.field_key=e),class:"fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(a.field_types,(e,t)=>(Hd(),qd(o,{key:t,label:e.label,value:t},null,8,["label","value"]))),128))],void 0),_:1},8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),a.item.type?(Hd(),jd(Pd,{key:0},[tu(u,{gutter:30},{default:br(()=>[tu(d,{sm:12,xs:24},{default:br(()=>[tu(l,{label:e.$t("Public Label"),class:"fs_form_item"},{default:br(()=>[tu(c,{onKeyup:t[2]||(t[2]=e=>n.maybeSetSlug()),placeholder:e.$t("Custom Field Public Label"),modelValue:a.item.label,"onUpdate:modelValue":t[3]||(t[3]=e=>a.item.label=e),class:"fs_text_input"},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1}),tu(d,{sm:12,xs:24},{default:br(()=>[tu(l,{label:e.$t("Admin Label (Optional)"),class:"fs_form_item"},{default:br(()=>[tu(c,{onKeyup:t[4]||(t[4]=e=>n.maybeSetSlug()),placeholder:e.$t("Custom Field Admin Label"),modelValue:a.item.admin_label,"onUpdate:modelValue":t[5]||(t[5]=e=>a.item.admin_label=e),class:"fs_text_input"},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1}),tu(u,{gutter:30},{default:br(()=>[tu(d,{sm:12,xs:24},{default:br(()=>[tu(l,{label:e.$t("Slug (Optional)"),class:"fs_form_item"},{default:br(()=>[tu(c,{maxlength:"20",placeholder:e.$t("Custom Field Slug"),disabled:"update"==a.form_type,modelValue:a.item.slug,"onUpdate:modelValue":t[6]||(t[6]=e=>a.item.slug=e),class:"fs_text_input"},nc({_:2},["new"==a.form_type?{name:"prepend",fn:br(()=>[t[15]||(t[15]=su("cf_",-1))]),key:"0"}:void 0]),1032,["placeholder","disabled","modelValue"]),"new"==a.form_type?(Hd(),jd("p",Bbe,fe(e.$t("You can not change the slug once save a custom field")),1)):ou("",!0)],void 0),_:1},8,["label"])],void 0),_:1}),tu(d,{sm:12,xs:24},{default:br(()=>[tu(l,{label:e.$t("Placeholder"),class:"fs_form_item"},{default:br(()=>[tu(c,{placeholder:e.$t("Field Placeholder"),modelValue:a.item.placeholder,"onUpdate:modelValue":t[7]||(t[7]=e=>a.item.placeholder=e),class:"fs_text_input"},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1}),n.hasOptions(a.item.type)?(Hd(),qd(l,{key:0,label:e.$t("Field Value Options"),class:"fs_form_item"},{default:br(()=>[eu("ul",Vbe,[(Hd(!0),jd(Pd,null,sc(a.item.options,(t,i)=>(Hd(),jd("li",{key:i},[tu(c,{placeholder:e.$t("Option Value"),modelValue:a.item.options[i],"onUpdate:modelValue":e=>a.item.options[i]=e,type:"text",class:"fs_text_input"},{suffix:br(()=>[a.item.options.length>1?(Hd(),qd(h,{key:0,onClick:e=>n.removeOptionItem(i),class:"fs_clickable el-icon-close el-input__icon"},{default:br(()=>[tu(p)],void 0),_:1},8,["onClick"])):ou("",!0)]),_:2},1032,["placeholder","modelValue","onUpdate:modelValue"])]))),128))]),s.optionInputVisible?(Hd(),qd(c,{key:0,class:"input-new-tag fs_text_input",modelValue:s.optionInputValue,"onUpdate:modelValue":t[8]||(t[8]=e=>s.optionInputValue=e),ref:"saveTagInput",placeholder:e.$t("type and press enter"),onKeyup:Rh(n.handleOptionInputConfirm,["enter"]),onBlur:n.handleOptionInputConfirm},null,8,["modelValue","placeholder","onKeyup","onBlur"])):(Hd(),qd(g,{key:1,class:"button-new-tag fs_filled_btn fs_ml_10",onClick:n.showOptionInput},{default:br(()=>[su(" + "+fe(e.$t("New Option")),1)],void 0),_:1},8,["onClick"]))],void 0),_:1},8,["label"])):ou("",!0),tu(u,{gutter:30},{default:br(()=>[tu(d,{sm:12,xs:24},{default:br(()=>[tu(l,{class:"fs_form_item"},{default:br(()=>[tu(m,{"true-label":"yes","false-label":"no",modelValue:a.item.admin_only,"onUpdate:modelValue":t[9]||(t[9]=e=>a.item.admin_only=e)},{default:br(()=>[su(fe(e.$t("This is an agent only field")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1})],void 0),_:1}),tu(d,{sm:12,xs:24},{default:br(()=>[tu(l,{class:"fs_form_item"},{default:br(()=>[tu(m,{onChange:t[10]||(t[10]=e=>n.initConditions(a.item)),modelValue:a.item.has_logics,"onUpdate:modelValue":t[11]||(t[11]=e=>a.item.has_logics=e),"true-label":"yes","false-label":"no"},{default:br(()=>[su(fe(e.$t("Enable Conditional Logics")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1})],void 0),_:1}),tu(d,{sm:12,xs:24},{default:br(()=>[tu(l,{class:"fs_form_item"},{default:br(()=>[tu(m,{onChange:t[12]||(t[12]=e=>n.initConditions(a.item)),modelValue:a.item.required,"onUpdate:modelValue":t[13]||(t[13]=e=>a.item.required=e),"true-label":"yes","false-label":"no"},{default:br(()=>[su(fe(e.$t("Required")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1})],void 0),_:1})],void 0),_:1}),"yes"==a.item.has_logics&&a.item.conditions?(Hd(),jd(Pd,{key:1},[eu("table",Ube,[eu("thead",null,[eu("tr",null,[eu("th",null,fe(e.$t("Field")),1),eu("th",null,fe(e.$t("Operator")),1),eu("th",null,fe(e.$t("Match Value")),1),t[16]||(t[16]=eu("th",null,null,-1))])]),eu("tbody",null,[(Hd(!0),jd(Pd,null,sc(a.item.conditions,(t,i)=>(Hd(),jd("tr",{key:i},[eu("td",null,[tu(r,{filterable:"",modelValue:t.item_key,"onUpdate:modelValue":e=>t.item_key=e,placeholder:e.$t("Select Field"),class:"fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(n.keyedFields,e=>(Hd(),qd(o,{key:e.slug,value:e.slug,disabled:e.slug==a.item.slug,label:e.admin_label||e.label},null,8,["value","disabled","label"]))),128))],void 0),_:1},8,["modelValue","onUpdate:modelValue","placeholder"])]),eu("td",null,[t.item_key&&n.keyedFields[t.item_key]?(Hd(),qd(r,{key:0,filterable:"",modelValue:t.operator,"onUpdate:modelValue":e=>t.operator=e,placeholder:e.$t("Select Field"),class:"fs_select_field"},{default:br(()=>[tu(o,{label:e.$t("Equal"),value:"="},null,8,["label"]),tu(o,{label:e.$t("Not Equal"),value:"!="},null,8,["label"]),"number"==n.keyedFields[t.item_key].type?(Hd(),jd(Pd,{key:0},[tu(o,{label:e.$t("Less than"),value:"lt"},null,8,["label"]),tu(o,{label:e.$t("Greater Than"),value:"gt"},null,8,["label"])],64)):n.keyedFields[t.item_key].options?ou("",!0):(Hd(),jd(Pd,{key:1},[tu(o,{label:e.$t("Contains"),value:"contains"},null,8,["label"]),tu(o,{label:e.$t("Not Contains"),value:"not_contains"},null,8,["label"])],64))],void 0),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):ou("",!0)]),eu("td",null,[t.operator&&t.item_key&&n.keyedFields[t.item_key]?(Hd(),jd(Pd,{key:0},[n.keyedFields[t.item_key].options?(Hd(),qd(r,{key:0,modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,placeholder:e.$t("Select Value"),class:"fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(n.keyedFields[t.item_key].options,e=>(Hd(),qd(o,{key:e,label:e,value:e},null,8,["label","value"]))),128))],void 0),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):(Hd(),qd(c,{key:1,type:"number"==n.keyedFields[t.item_key].type?"number":"text",modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,placeholder:e.$t("Type Compare Value"),class:"fs_text_input"},null,8,["type","modelValue","onUpdate:modelValue","placeholder"]))],64)):ou("",!0)]),eu("td",Hbe,[tu(g,{onClick:e=>n.addCondition(i),type:"success",icon:"Plus",class:"fs_outline_btn"},null,8,["onClick"]),tu(g,{onClick:e=>n.removeCondition(i),disabled:1==a.item.conditions.length,icon:"Delete",class:"fs_outline_btn"},null,8,["onClick","disabled"])])]))),128))])]),tu(l,{label:e.$t("Condition Match Type")},{default:br(()=>[tu(_,{modelValue:a.item.match_type,"onUpdate:modelValue":t[14]||(t[14]=e=>a.item.match_type=e)},{default:br(()=>[tu(f,{value:"all"},{default:br(()=>[su(fe(e.$t("Match all conditions")),1)],void 0),_:1}),tu(f,{value:"any"},{default:br(()=>[su(fe(e.$t("Match any conditions")),1)],void 0),_:1})],void 0),_:1},8,["modelValue"])],void 0),_:1},8,["label"])],64)):ou("",!0)],64)):ou("",!0)],void 0),_:1},8,["data"])}]]),TableMoreActions:Tge,Pagination:dq,TableEmptyStateImage:Rge,NarrowPromo:Hie,draggable:cH},data:()=>({fields:[],loading:!1,new_item:{},field_types:{},addFieldVisible:!1,updateFieldVisible:!1,update_field:{},pagination:{current_page:1,per_page:10,total:0}}),created(){this.$setTitle(this.$t("Custom Ticket Fields")),this.has_pro&&this.fetchFields()},methods:{fetchFields(){this.loading=!0,this.$get("ticket-custom-fields",{with:["field_types"],per_page:this.pagination.per_page,page:this.pagination.current_page}).then(e=>{this.fields=e.fields,this.field_types=e.field_types,e.pagination&&(this.pagination=e.pagination),this.loading=!1}).catch(e=>{this.$handleError(e),this.loading=!1})},saveFields(){this.loading=!0,this.$post("ticket-custom-fields",{fields:JSON.stringify(this.fields)}).then(e=>{this.fields=e.fields,this.$notify({type:"success",message:e.message||this.$t("Fields order updated successfully"),position:"bottom-right"}),this.loading=!1}).catch(e=>{this.$handleError(e),this.loading=!1})},createField(){if(!this.validateField(this.new_item))return!1;this.fields.push(this.new_item),this.addFieldVisible=!1,this.new_item={},this.saveFields()},validateField(e){return e.label?!("options"in e)||(!(!Array.isArray(e.options)||0===e.options.length||e.options.some(e=>""===e.trim()))||(this.$notify({type:"error",message:this.$t("Please provide valid field option values"),position:"bottom-right"}),!1)):(this.$notify({type:"error",message:this.$t("Please Provide label"),position:"bottom-right"}),!1)},updateFieldModal(e){this.update_field=this.fields[e],this.updateFieldVisible=!0},updateField(){if(!this.validateField(this.update_field))return!1;this.updateFieldVisible=!1,this.update_field={},this.saveFields()},deleteField(e){this.fields.splice(e,1),this.saveFields()},movePosition(e,t){let a=e-1;"down"===t&&(a=e+1);const i=[...this.fields],s=i[e];i.splice(e,1),i.splice(a,0,s),this.fields=i,this.saveFields()}}},[["render",function(e,t,a,i,s,n){const o=vk,r=Zl("Lock"),l=jx,c=Zl("Connection"),d=Zl("TableMoreActions"),u=Zl("draggable"),p=Zl("pagination"),h=OL,g=Zl("NarrowPromo"),m=Zl("custom-field-form"),f=pD;return Hd(),jd("div",zbe,[eu("div",Ybe,[eu("div",Gbe,[eu("div",Wbe,[eu("h3",null,fe(e.$t("Custom Ticket Fields")),1)])]),e.has_pro?(Hd(),jd(Pd,{key:0},[s.loading?(Hd(),jd("div",pve,[tu(h,{class:"fs_box_wrapper",rows:5,animated:""})])):(Hd(),jd("div",jbe,[eu("div",qbe,[eu("div",Kbe,[e.has_pro?(Hd(),qd(o,{key:0,onClick:t[0]||(t[0]=e=>s.addFieldVisible=!0),class:"fs_filled_btn",icon:"Plus"},{default:br(()=>[su(fe(e.$t("Add New Field")),1)],void 0),_:1})):ou("",!0)])]),eu("div",Xbe,[eu("div",Qbe,[eu("div",Zbe,fe(e.$t("Label")),1),eu("div",Jbe,fe(e.$t("Slug")),1),eu("div",eve,fe(e.$t("Type")),1),eu("div",tve,fe(e.$t("Actions")),1)]),tu(u,{modelValue:s.fields,"onUpdate:modelValue":t[1]||(t[1]=e=>s.fields=e),"ghost-class":"ghost","item-key":"slug",onEnd:n.saveFields,handle:".fs_custom_drag_svg"},{item:br(({element:a,index:i})=>[(Hd(),jd("div",{key:a.slug,class:"fs_custom_field_row"},[t[10]||(t[10]=eu("span",{class:"fs_custom_drag_svg"},[eu("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M4 0.5H20C21.933 0.5 23.5 2.067 23.5 4V20C23.5 21.933 21.933 23.5 20 23.5H4C2.067 23.5 0.5 21.933 0.5 20V4L0.504883 3.82031C0.595411 2.03035 2.03035 0.595411 3.82031 0.504883L4 0.5Z",fill:"var(--fs-bg-primary, white)"}),eu("path",{d:"M4 0.5H20C21.933 0.5 23.5 2.067 23.5 4V20C23.5 21.933 21.933 23.5 20 23.5H4C2.067 23.5 0.5 21.933 0.5 20V4L0.504883 3.82031C0.595411 2.03035 2.03035 0.595411 3.82031 0.504883L4 0.5Z",stroke:"var(--fs-border-default, #E1E4EA)"}),eu("path",{d:"M9.375 8.25C9.99632 8.25 10.5 7.74632 10.5 7.125C10.5 6.50368 9.99632 6 9.375 6C8.75368 6 8.25 6.50368 8.25 7.125C8.25 7.74632 8.75368 8.25 9.375 8.25ZM9.375 13.125C9.99632 13.125 10.5 12.6213 10.5 12C10.5 11.3787 9.99632 10.875 9.375 10.875C8.75368 10.875 8.25 11.3787 8.25 12C8.25 12.6213 8.75368 13.125 9.375 13.125ZM10.5 16.875C10.5 17.4963 9.99632 18 9.375 18C8.75368 18 8.25 17.4963 8.25 16.875C8.25 16.2537 8.75368 15.75 9.375 15.75C9.99632 15.75 10.5 16.2537 10.5 16.875ZM14.625 8.25C15.2463 8.25 15.75 7.74632 15.75 7.125C15.75 6.50368 15.2463 6 14.625 6C14.0037 6 13.5 6.50368 13.5 7.125C13.5 7.74632 14.0037 8.25 14.625 8.25ZM15.75 12C15.75 12.6213 15.2463 13.125 14.625 13.125C14.0037 13.125 13.5 12.6213 13.5 12C13.5 11.3787 14.0037 10.875 14.625 10.875C15.2463 10.875 15.75 11.3787 15.75 12ZM14.625 18C15.2463 18 15.75 17.4963 15.75 16.875C15.75 16.2537 15.2463 15.75 14.625 15.75C14.0037 15.75 13.5 16.2537 13.5 16.875C13.5 17.4963 14.0037 18 14.625 18Z",fill:"#525866"})])],-1)),eu("div",ave,[eu("div",ive,[su(fe(a.label||a.admin_label)+" ",1),"yes"==a.admin_only?(Hd(),qd(l,{key:0,title:e.$t("Agent Only Field")},{default:br(()=>[tu(r)],void 0),_:1},8,["title"])):ou("",!0),"yes"==a.has_logics?(Hd(),qd(l,{key:1,title:e.$t("Conditional Field")},{default:br(()=>[tu(c)],void 0),_:1},8,["title"])):ou("",!0)]),eu("div",sve,fe(a.slug),1),eu("div",nve,fe(a.type),1),eu("div",ove,[eu("div",rve,[eu("div",lve,[tu(o,{class:"fs_action_button",onClick:e=>n.updateFieldModal(i),text:"",icon:"EditPen"},null,8,["onClick"])]),tu(d,{scope:{row:a,$index:i},fetching:s.loading,onDelete:e=>n.deleteField(i),"delete-warning":e.$t("Delete custom field")},null,8,["scope","fetching","onDelete","delete-warning"])])])])]))]),_:1},8,["modelValue","onEnd"])]),s.fields.length?(Hd(),jd("div",cve,[eu("span",dve,[eu("p",null," Page "+fe(s.pagination.current_page)+" of "+fe(Math.ceil(s.pagination.total/s.pagination.per_page)),1),tu(p,{onFetch:t[2]||(t[2]=e=>n.fetchFields()),pagination:s.pagination,layout:"sizes"},null,8,["pagination"])]),eu("span",uve,[tu(p,{onFetch:t[3]||(t[3]=e=>n.fetchFields()),pagination:s.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ou("",!0)]))],64)):(Hd(),qd(g,{key:1,heading:e.$t("tk_data_collect_using_customfield"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))]),tu(f,{title:e.$t("Add New Custom Field"),modelValue:s.addFieldVisible,"onUpdate:modelValue":t[6]||(t[6]=e=>s.addFieldVisible=e),"append-to-body":!0,width:"60%",class:"fs_dialog"},{footer:br(()=>[eu("span",hve,[tu(o,{class:"fs_outline_btn",onClick:t[4]||(t[4]=()=>s.addFieldVisible=!1)},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),tu(o,{class:"fs_filled_btn",onClick:t[5]||(t[5]=e=>n.createField()),type:"success"},{default:br(()=>[su(fe(e.$t("Add")),1)],void 0),_:1})])]),default:br(()=>[tu(m,{form_type:"new",field_types:s.field_types,item:s.new_item,fields:s.fields},null,8,["field_types","item","fields"])],void 0),_:1},8,["title","modelValue"]),tu(f,{title:e.$t("Update Custom Field"),modelValue:s.updateFieldVisible,"onUpdate:modelValue":t[9]||(t[9]=e=>s.updateFieldVisible=e),"append-to-body":!0,width:"60%",class:"fs_dialog"},{footer:br(()=>[eu("span",gve,[tu(o,{class:"fs_outline_btn",onClick:t[7]||(t[7]=()=>s.updateFieldVisible=!1)},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),tu(o,{class:"fs_filled_btn",onClick:t[8]||(t[8]=e=>n.updateField()),type:"success"},{default:br(()=>[su(fe(e.$t("Update Field")),1)],void 0),_:1})])]),default:br(()=>[s.updateFieldVisible?(Hd(),qd(m,{key:0,fields:s.fields,form_type:"update",field_types:s.field_types,item:s.update_field},null,8,["fields","field_types","item"])):ou("",!0)],void 0),_:1},8,["title","modelValue"])])}]]),fve={class:"fs_license_manager"},_ve={class:"fs_box_wrapper"},bve={class:"fs_box_header"},vve={class:"fs_box_head"},yve={class:"fs_box_actions fs_ticket_orders"},Sve={key:0,class:"fs_box_body"},xve={key:0},wve=["href"],Eve={key:0},Cve={key:1},kve={key:1},Tve={class:"fs_license_form_title"},Ave={class:"fs_deactivate_license_text"},Rve={key:2,class:"fs_license_form_wrapper"},Ove={class:"fs_license_form_content"},Nve={class:"fs_license_form_header"},Ive={class:"fs_license_form_title"},Dve={class:"fs_license_form_description"},Mve={class:"fs_license_input_wrapper"},Lve={key:0,class:"fs_license_error_message"},Pve={key:1,class:"fs_license_hint_text"},Fve={class:"fs_license_purchase_text"},$ve=["href"],Bve={key:1,class:"fs_box_body fs_skeleton_loader"};const Vve=dH({name:"LicenseManagement",data:()=>({fetching:!1,licenseData:{},verifying:!1,licenseKey:"",showNewLicenseInput:!1,errorMessage:"",showLicenseKeyError:!1}),mounted(){this.fetchLicense(),this.$setTitle(this.$t("License Management"))},methods:{async fetchLicense(){this.errorMessage="",this.showLicenseKeyError=!1,this.fetching=!0,await this.$get("pro/license",{verify:!0}).then(e=>{this.licenseData=e}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},async verifyLicense(){if(!this.licenseKey)return this.showLicenseKeyError=!0,this.$notify({type:"error",message:this.$t("Please provide a license key"),position:"bottom-right"}),void(this.errorMessage=this.$t("Please provide a license key"));this.showLicenseKeyError=!1,this.verifying=!0,this.errorMessage="",await this.$post("pro/license",{license_key:this.licenseKey}).then(e=>{this.licenseData=e.license_data,this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{let t="";t="string"==typeof e?e:e&&e.message?e.message:this.convertToText(e),t||(t="Something is wrong!"),this.errorMessage=t,this.$handleError(e)}).always(()=>{this.verifying=!1})},async deactivateLicense(){this.verifying=!0,await this.$post("pro/remove-license").then(e=>{this.licenseData=e.license_data,this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.verifying=!1})}}},[["render",function(e,t,a,i,s,n){const o=vk,r=oC,l=Zl("circle-check"),c=jx,d=OL,u=q$;return Hd(),jd("div",fve,[eu("div",_ve,[eu("div",bve,[eu("div",vve,[eu("h3",null,fe(e.$t("License Management")),1)]),eu("div",yve,[tu(o,{text:"",icon:"Refresh",onClick:t[0]||(t[0]=e=>n.fetchLicense())})])]),s.fetching?(Hd(),jd("div",Bve,[tu(d,{rows:4,animated:""})])):(Hd(),jd("div",Sve,[vr((Hd(),jd("div",{class:ne("fs_license_"+s.licenseData.status)},["expired"==s.licenseData.status?(Hd(),jd("div",xve,[eu("h3",null,fe(e.$t("Looks like your license has been expired"))+" "+fe(s.licenseData.expires|e.nsHumanDiffTime),1),eu("a",{href:s.licenseData.renew_url,target:"_blank",class:"el-button el-button--danger el-button--small"},fe(e.$t("Click Here to Renew your License")),9,wve),t[8]||(t[8]=eu("hr",{style:{margin:"20px 0px"}},null,-1)),s.showNewLicenseInput?(Hd(),jd("div",Cve,[eu("h3",null,fe(e.$t("Your License Key")),1),tu(r,{modelValue:s.licenseKey,"onUpdate:modelValue":t[3]||(t[3]=e=>s.licenseKey=e),placeholder:e.$t("License Key")},{append:br(()=>[tu(o,{onClick:t[2]||(t[2]=e=>n.verifyLicense()),icon:"Lock"},{default:br(()=>[su(fe(e.$t("Verify License")),1)],void 0),_:1})]),_:1},8,["modelValue","placeholder"])])):(Hd(),jd("p",Eve,[su(fe(e.$t("Have a new license Key?"))+" ",1),eu("a",{onClick:t[1]||(t[1]=Th(e=>s.showNewLicenseInput=!s.showNewLicenseInput,["prevent"])),href:"#"},fe(e.$t("Click here")),1)]))])):"valid"==s.licenseData.status?(Hd(),jd("div",kve,[tu(c,{class:"fs_text-center fs_activated_icon"},{default:br(()=>[tu(l)],void 0),_:1}),eu("h2",Tve,fe(e.$t("Your license key is valid and activated")),1),eu("p",Ave,[su(fe(e.$t("Want to deactivate this license?"))+" ",1),eu("a",{onClick:t[4]||(t[4]=Th(e=>n.deactivateLicense(),["prevent"])),href:"#",class:"fs_license_purchase_link"},fe(e.$t("Click here")),1)])])):(Hd(),jd("div",Rve,[eu("div",Ove,[eu("div",Nve,[eu("h3",Ive,fe(e.$t("Customer Support Plugin for WordPress")),1),eu("p",Dve,fe(e.$t("Please Provide a license key of FluentSupport")),1)]),eu("div",Mve,[tu(r,{modelValue:s.licenseKey,"onUpdate:modelValue":t[6]||(t[6]=e=>s.licenseKey=e),placeholder:e.$t("License key"),class:ne([{fs_license_input_error:s.showLicenseKeyError},"fs_license_input"]),onInput:t[7]||(t[7]=e=>s.showLicenseKeyError=!1)},{append:br(()=>[tu(o,{onClick:t[5]||(t[5]=e=>n.verifyLicense()),class:"fs_license_verify_btn"},{default:br(()=>[t[9]||(t[9]=eu("svg",{width:"17",height:"9",viewBox:"0 0 17 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M8.93775 5.25411C8.7467 6.36417 8.14642 7.36226 7.25544 8.05136C6.36445 8.74046 5.24749 9.07049 4.12507 8.9763C3.00264 8.88211 1.9563 8.37055 1.19262 7.5426C0.428933 6.71465 0.00339216 5.63048 1.87515e-06 4.50411C-0.00102824 3.37507 0.422395 2.28689 1.18626 1.45548C1.95013 0.62407 2.99862 0.11018 4.12371 0.0157691C5.2488 -0.0786414 6.36827 0.253328 7.26001 0.945811C8.15176 1.63829 8.75061 2.64069 8.93775 3.75411H16.5V5.25411H15V8.25411H13.5V5.25411H12V8.25411H10.5V5.25411H8.93775ZM4.5 7.50411C5.29565 7.50411 6.05871 7.18804 6.62132 6.62544C7.18393 6.06283 7.5 5.29976 7.5 4.50411C7.5 3.70847 7.18393 2.9454 6.62132 2.38279C6.05871 1.82019 5.29565 1.50411 4.5 1.50411C3.70435 1.50411 2.94129 1.82019 2.37868 2.38279C1.81607 2.9454 1.5 3.70847 1.5 4.50411C1.5 5.29976 1.81607 6.06283 2.37868 6.62544C2.94129 7.18804 3.70435 7.50411 4.5 7.50411V7.50411Z",fill:"#525866"})],-1)),eu("span",null,fe(e.$t("Verify License")),1)],void 0),_:1})]),_:1},8,["modelValue","placeholder","class"]),s.showLicenseKeyError?(Hd(),jd("p",Lve,fe(e.$t("Please enter your license key.")),1)):s.showLicenseKeyError?ou("",!0):(Hd(),jd("p",Pve,fe(e.$t("Please enter your license key.")),1))])]),eu("p",Fve,[su(fe(e.$t("Don't have a license key?"))+" ",1),eu("a",{class:"fs_doc_link",target:"_blank",href:s.licenseData.purchase_url},fe(e.$t("Purchase one here")),9,$ve)])]))],2)),[[u,s.verifying]])]))])])}]]),Uve={class:"fs_fluentcrm_settings"},Hve={class:"fs_box_wrapper"},zve={class:"fs_box_header"},Yve={class:"fs_box_head"},Gve={key:0,class:"fs_save_settings_container"},Wve={class:"fs_save_full"},jve={class:"fs_save_short"},qve={key:0,class:"fs_box_body fs_business_settings_wrapper"},Kve={key:1,class:"fs_box_body fs_skeleton_loader"};const Xve=dH({name:"FluentCRMIntegration",components:{FormBuilder:ure,NarrowPromo:Hie},data(){return{crm_config:this.appVars.fluentcrm_config,fetching:!0,settings:{},settings_fields:{},is_installed:!1,saving:!1,installing:!1,fluentcrm_logo:""}},methods:{fetchSettings(){this.fetching=!0,this.$get("settings/fluentcrm-settings").then(e=>{if(e.is_installed){this.settings=e.settings,this.settings_fields=e.settings_fields;let t=this.settings.assigned_tags,a=this.settings.assigned_list;Array.isArray(t)?this.settings.assigned_tags=t.map(e=>isNaN(e)?e:parseInt(e)):this.settings.assigned_tags=isNaN(t)?t:parseInt(t),Array.isArray(a)?this.settings.assigned_list=a.map(e=>isNaN(e)?e:parseInt(e)):this.settings.assigned_list=isNaN(a)?a:parseInt(a),this.fluentcrm_logo=e.fluentcrm_logo,this.is_installed=!0}else this.is_installed=!1,this.fluentcrm_logo=e.fluentcrm_logo}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},saveSettings(){if("yes"==this.settings.enabled&&!this.settings.assigned_tags.length)return this.$notify({type:"error",message:this.$t("Please select at least one FluentCRM Tag"),position:"bottom-right"}),!1;this.saving=!0,this.$post("settings",{settings_key:"_fluentcrm_intergration_settings",settings:this.settings}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},installFluentCRM(){this.installing=!0,this.$post("settings/install-fluentcrm").then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fetchSettings()}).catch(e=>{this.$handleError(e)}).always(()=>{this.installing=!1})}},mounted(){this.fetchSettings(),this.$setTitle("FluentCRM Integration")}},[["render",function(e,t,a,i,s,n){const o=vk,r=Zl("form-builder"),l=Zl("NarrowPromo"),c=OL,d=q$;return Hd(),jd("div",Uve,[eu("div",Hve,[eu("div",zve,[eu("div",Yve,[eu("h3",null,fe(e.$t("FluentCRM Integration")),1),s.is_installed?(Hd(),jd("div",Gve,[vr((Hd(),qd(o,{onClick:t[0]||(t[0]=e=>n.saveSettings()),disabled:s.saving,class:"fs_save_settings_btn fs_fluentcrm_save_btn",type:"success"},{default:br(()=>[eu("span",Wve,fe(e.$t("Save Settings")),1),eu("span",jve,fe(e.$t("Save")),1)],void 0),_:1},8,["disabled"])),[[d,s.saving]])])):ou("",!0)])]),s.fetching?(Hd(),jd("div",Kve,[tu(c,{rows:5,animated:""})])):(Hd(),jd("div",qve,[s.is_installed?(Hd(),qd(r,{key:0,fields:s.settings_fields,formData:s.settings},null,8,["fields","formData"])):(Hd(),qd(l,{key:1,"image-src":s.fluentcrm_logo,heading:e.$t("email_marketing_automation_newsletter_crm")},{default:br(()=>[eu("p",null,[t[2]||(t[2]=eu("a",{target:"_blank",rel:"noopener",href:"https://fluentcrm.com"},"FluentCRM",-1)),su(" "+fe(e.$t("email_marketing_automation_newsletter_crm_infos")),1)]),eu("p",null,fe(e.$t("integrate_support_customers_with_fluentcrm")),1),vr((Hd(),qd(o,{class:"fs_promo_btn",disabled:s.installing,onClick:t[1]||(t[1]=e=>n.installFluentCRM()),type:"success"},{default:br(()=>[su(fe(e.$t("install_fluentcrm")),1)],void 0),_:1},8,["disabled"])),[[d,s.installing]])],void 0),_:1},8,["image-src","heading"]))]))])])}]]),Qve={class:"fs_box_wrapper"},Zve={class:"fs_box_header"},Jve={class:"fs_box_head"},eye={key:0,class:"fs_save_settings_container"},tye={key:0,style:{padding:"20px"},class:"fs_box_body"},aye={key:1,class:"fs_box_body fs_skeleton_loader"};const iye=dH({name:"AutoCloseSettings",components:{FormBuilder:ure,NarrowPromo:Hie},data:()=>({settings:{},fields:{},fetching:!1,loading:!1,app_ready:!1,settings_key:"auto_close_settings"}),methods:{fetchSettings(){this.fetching=!0,this.$get("settings/auto-close",{settings_key:this.settings_key,with:["fields"]}).then(e=>{this.settings=e.settings,this.fields=e.fields,this.app_ready=!0}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},saveSettings(){this.loading=!0,this.$post("settings/auto-close",{settings_key:this.settings_key,settings:this.settings}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}},mounted(){this.has_pro&&this.fetchSettings(),this.$setTitle(this.$t("Auto Close Settings"))}},[["render",function(e,t,a,i,s,n){const o=vk,r=Zl("NarrowPromo"),l=wR,c=Zl("form-builder"),d=OL,u=q$;return Hd(),jd("div",Qve,[eu("div",Zve,[eu("div",Jve,[eu("h3",null,fe(e.$t("Auto Close Settings")),1),e.has_pro?(Hd(),jd("div",eye,[tu(o,{size:"default",type:"success",class:"fs_save_settings_btn",onClick:t[0]||(t[0]=e=>n.saveSettings())},{default:br(()=>[su(fe(e.$t("Save Settings")),1)],void 0),_:1})])):ou("",!0)]),t[2]||(t[2]=eu("div",{class:"fs_box_actions"},null,-1))]),e.has_pro?(Hd(),jd(Pd,{key:1},[s.fetching?(Hd(),jd("div",aye,[tu(d,{rows:5,animated:""})])):vr((Hd(),jd("div",tye,[eu("div",null,[tu(l,{modelValue:s.settings.enabled,"onUpdate:modelValue":t[1]||(t[1]=e=>s.settings.enabled=e),"true-value":"yes","false-value":"no"},{default:br(()=>[su(fe(e.$t("Enable Auto Closing Inactive Tickets")),1)],void 0),_:1},8,["modelValue"])]),s.app_ready&&"yes"==s.settings.enabled?(Hd(),qd(c,{key:0,fields:s.fields,"form-data":s.settings,label_position:"top"},null,8,["fields","form-data"])):ou("",!0)])),[[u,s.loading]])],64)):(Hd(),qd(r,{key:0,heading:e.$t("Auto Close tickets based on active days or based on tags or waiting time."),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))])}]]),sye={class:"fs_storage_oauth_settings"},nye={key:1},oye=["innerHTML"],rye={class:"fs_storage_oauth_footer"},lye={class:"fs_storage_oauth_actions"},cye={key:2,class:"fs_storage_oauth_error"};const dye={class:"fs_box_wrapper"},uye={class:"fs_box_header"},pye={class:"fs_box_head"},hye={key:0,class:"fs_box_body fs_storage_integration_wrapper"},gye={class:"fs_storage_integration_cards"},mye={class:"fs_storage_card_content"},fye={class:"fs_storage_card_left"},_ye={class:"fs_storage_icon_wrapper"},bye=["src","alt"],vye={class:"fs_storage_card_info"},yye={class:"fs_storage_card_header"},Sye={class:"fs_storage_card_title"},xye={key:0,class:"fs_status_badge active"},wye=["innerHTML"],Eye={class:"fs_storage_card_right"},Cye={class:"fs_storage_card_actions"},kye={class:"fs_tk_filter fs_waiting_toggle"},Tye=["src"],Aye=["href"],Rye=["src"],Oye={key:1,class:"fs_box_body fs_skeleton_loader"};const Nye=dH({name:"UploadIntegrationView",components:{OAuth2Settings:dH({name:"OAuth2Settings",props:["driver_name","driver"],components:{FormBuilder:ure},$emits:["driverRemoved"],data:()=>({settings:{},fieldsConfig:{fields:{}},loading:!1,saving:!1}),methods:{getSettings(){this.loading=!0,this.$get("settings/upload_integration",{integration_key:this.driver_name}).then(e=>{this.settings=e.settings,this.fieldsConfig=e.fieldsConfig}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},saveSettings(){this.saving=!0,this.$post("settings/upload_integration",{integration_key:this.driver_name,settings:this.settings}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),e.redirect?window.location.href=e.redirect:e.is_discarded&&this.$emit("driverRemoved")}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},reconnect(){this.settings.do_reconnect="yes",this.saveSettings()},disconnect(){this.settings.access_token="",this.settings.refresh_tokn="",this.settings.client_id="",this.settings.client_secret="",this.saveSettings()}},mounted(){this.getSettings()}},[["render",function(e,t,a,i,s,n){const o=OL,r=Zl("form-builder"),l=iE,c=vk;return Hd(),jd("div",sye,[s.loading?(Hd(),qd(o,{key:0,animated:!0,rows:4})):s.settings?(Hd(),jd("div",nye,[tu(l,{"label-position":"top",data:s.settings},{default:br(()=>[s.fieldsConfig.description?(Hd(),jd("div",{key:0,class:"fs_storage_oauth_description",innerHTML:s.fieldsConfig.description},null,8,oye)):ou("",!0),tu(r,{fields:s.fieldsConfig.fields,formData:s.settings},null,8,["fields","formData"])],void 0),_:1},8,["data"]),eu("div",rye,[eu("div",lye,["yes"!=s.settings.status?(Hd(),qd(c,{key:0,class:"fs_filled_btn",onClick:n.saveSettings,loading:s.saving},{default:br(()=>[su(fe(s.fieldsConfig.button_text),1)],void 0),_:1},8,["onClick","loading"])):(Hd(),qd(c,{key:1,class:"fs_filled_btn",onClick:t[0]||(t[0]=e=>n.reconnect()),loading:s.saving},{default:br(()=>[su(fe(e.$t("Reconnect")),1)],void 0),_:1},8,["loading"])),"yes"==s.settings.status?(Hd(),qd(c,{key:2,onClick:t[1]||(t[1]=e=>n.disconnect()),class:"fs_outline_btn fs_danger_btn",plain:""},{default:br(()=>[su(fe(e.$t("Disconnect")),1)],void 0),_:1})):ou("",!0)])])])):(Hd(),jd("div",cye,[eu("p",null,fe(e.$t("Sorry, settings could not be loaded")),1)]))])}]])},data:()=>({availableDrivers:{},enabled_driver:"local",title:"",loading:!1,saving:!1,dialogVisible:!1,hasCode:!1,selectedDriver:null,selectedDriverName:""}),methods:{fetchUploadSettings(){this.loading=!0,this.$get("settings/remote-upload-settings").then(e=>{this.availableDrivers=e.drivers,this.enabled_driver=e.enabled_driver}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},updateDriver(e){"local"===e&&"local"===this.enabled_driver||(this.enabled_driver===e&&"local"!==e&&(e="local"),this.saving=!0,this.$post("settings/update-remote-upload-driver",{driver:e}).then(t=>{this.$notify({type:"success",message:t.message,position:"bottom-right"}),this.enabled_driver=e}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1}))},showConfigDialog(e,t){this.selectedDriverName=t,this.selectedDriver=e,this.title="Configure "+this.selectedDriver.title+" Settings",this.dialogVisible=!0},closeDialog(){this.fetchUploadSettings(),this.dialogVisible=!1,this.selectedDriver=null,this.selectedDriverName=""},handleDriverRemoved(e){e==this.enabled_driver&&(this.enabled_driver="local",this.updateDriver("local")),this.closeDialog()}},mounted(){this.fetchUploadSettings(),this.$route.query.code&&(this.hasCode=!0),this.$setTitle("File Storage Settings")}},[["render",function(e,t,a,i,s,n){const o=VL,r=vk,l=OL,c=Zl("o-auth2-settings"),d=pD,u=q$;return Hd(),jd("div",dye,[eu("div",uye,[eu("div",pye,[eu("h3",null,fe(e.$t("File Storage Settings")),1)])]),s.loading?(Hd(),jd("div",Oye,[tu(l,{animated:!0,rows:3})])):(Hd(),jd("div",hye,[eu("div",gye,[(Hd(!0),jd(Pd,null,sc(s.availableDrivers,(t,a)=>(Hd(),jd("div",{key:a,class:"fs_storage_integration_card"},[eu("div",mye,[eu("div",fye,[eu("div",_ye,[eu("img",{src:t.icon,alt:t.title,class:"fs_storage_icon"},null,8,bye)]),eu("div",vye,[eu("div",yye,[eu("h3",Sye,fe(t.title),1),s.enabled_driver==a?(Hd(),jd("span",xye,fe(e.$t("Active")),1)):ou("",!0)]),eu("p",{class:"fs_storage_card_description",innerHTML:t.description},null,8,wye)])]),eu("div",Eye,[eu("div",Cye,["local"===a||t.is_configured?(Hd(),jd(Pd,{key:0},[eu("div",kye,[vr(tu(o,{onChange:e=>n.updateDriver(a),"model-value":s.enabled_driver==a,disabled:s.saving||"local"===a&&"local"===s.enabled_driver},null,8,["onChange","model-value","disabled"]),[[u,s.saving]])]),t.has_config&&"local"!==a?(Hd(),qd(r,{key:0,onClick:e=>n.showConfigDialog(t,a),class:"fs_outline_btn"},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/gear.svg",alt:""},null,8,Tye)],void 0),_:1},8,["onClick"])):ou("",!0)],64)):t.require_pro?(Hd(),jd("a",{key:1,class:"fs_storage_manage_btn fs_storage_upgrade_btn",target:"_blank",rel:"noopener",href:t.upgrade_url},fe(e.$t("Upgrade to Pro")),9,Aye)):t.has_config?(Hd(),qd(r,{key:2,onClick:e=>n.showConfigDialog(t,a),class:"fs_outline_btn"},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/gear.svg",alt:""},null,8,Rye)],void 0),_:1},8,["onClick"])):ou("",!0)])])])]))),128))])])),s.selectedDriver?(Hd(),qd(d,{key:2,title:s.title,modelValue:s.dialogVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>s.dialogVisible=e),onClose:n.closeDialog,width:"60%",class:"fs_dialog","append-to-body":!0},{default:br(()=>[s.selectedDriver&&s.dialogVisible?(Hd(),qd(c,{key:0,onDriverRemoved:t[0]||(t[0]=e=>n.handleDriverRemoved(s.selectedDriverName)),driver_name:s.selectedDriverName,driver:s.selectedDriver},null,8,["driver_name","driver"])):ou("",!0)],void 0),_:1},8,["title","modelValue","onClose"])):ou("",!0)])}]]),Iye={class:"common-layout"},Dye={class:"text-center"};const Mye=dH({name:"VerifyGoogleDrive",data:()=>({settings:null,code:null,loading:!1,verifying:!1}),methods:{fetchSettings(){this.loading=!0,this.$get("settings/upload_integration",{integration_key:"google_drive"}).then(e=>{this.settings=e.settings,this.requestToken()}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},requestToken(){this.verifying=!0;const e=new URLSearchParams({client_id:this.settings.client_id,client_secret:this.settings.client_secret,grant_type:"authorization_code",code:this.code,access_type:"offline",redirect_uri:this.settings.redirect_uri});fetch("https://accounts.google.com/o/oauth2/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:e,redirect:"follow"}).then(e=>e.json()).then(e=>{e.access_token?(this.settings.access_token=e.access_token,this.settings.refresh_token=e.refresh_token,this.settings.expires_in=e.expires_in,this.settings.is_oauth_flow=!0,this.saveSettings()):(this.$notify({type:"error",message:this.$t("Something went wrong. Please try again."),position:"bottom-right"}),this.$router.push({name:"upload_integration"}))}).catch(e=>{this.$handleError(e),this.verifying=!1})},saveSettings(){this.verifying=!0,this.$post("settings/upload_integration",{integration_key:"google_drive",settings:this.settings}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.$router.push({name:"upload_integration"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.verifying=!1})}},mounted(){this.fetchSettings(),this.code=this.$route.query.code}},[["render",function(e,t,a,i,s,n){const o=xA,r=lO,l=rO,c=lN,d=rN,u=q$;return Hd(),jd("div",Iye,[tu(d,null,{default:br(()=>[tu(c,null,{default:br(()=>[tu(l,{gutter:12,justify:"center"},{default:br(()=>[tu(r,{span:12},{default:br(()=>[tu(o,{shadow:"always","grid-content":""},{default:br(()=>[vr((Hd(),jd("div",Dye,[eu("h2",null,fe(e.$t("Google Drive")),1),eu("p",null,fe(e.$t("Verifying your API connection. Please wait")),1)])),[[u,s.loading||s.verifying]])],void 0),_:1})],void 0),_:1})],void 0),_:1})],void 0),_:1})],void 0),_:1})])}]]),Lye={class:"fs_bulk_action_wrapper"};const Pye=dH({name:"BulkAction",props:{selectedItems:{type:Array,default:()=>[]},selectedAction:{type:String,default:""},actions:{type:Array,default:()=>[{value:"delete",label:"Delete"}]}},emits:["apply-action","update:selectedAction"],data(){return{localSelectedAction:this.selectedAction}},computed:{hasSelectedItems(){return this.selectedItems&&this.selectedItems.length>0},availableActions(){return this.actions.map(e=>({...e,label:this.$t(e.label)}))}},watch:{selectedAction(e){this.localSelectedAction=e},localSelectedAction(e){this.$emit("update:selectedAction",e)}},methods:{updateSelectedAction(e){this.$emit("update:selectedAction",e)},applyBulkAction(){this.selectedAction&&this.hasSelectedItems&&this.$emit("apply-action",{action:this.selectedAction,items:this.selectedItems})}}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A,l=vk;return Hd(),jd("div",Lye,[tu(r,{"model-value":a.selectedAction,"onUpdate:modelValue":n.updateSelectedAction,placeholder:e.$t("Bulk Action"),class:"fs_bulk_action_select",disabled:!n.hasSelectedItems},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(n.availableActions,e=>(Hd(),qd(o,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))],void 0),_:1},8,["model-value","onUpdate:modelValue","placeholder","disabled"]),tu(l,{onClick:n.applyBulkAction,disabled:!a.selectedAction||!n.hasSelectedItems,class:"fs_bulk_action_apply",type:"primary"},{default:br(()=>[su(fe(e.$t("Apply")),1)],void 0),_:1},8,["onClick","disabled"])])}]]),Fye={name:"Customers",components:{Pagination:dq,CustomerForm:gre,TableMoreActions:Tge,BulkAction:Pye},data(){return{customers:[],pagination:{per_page:10,current_page:1,total:0},loading:!1,deleting:!1,saving:!1,first_time_loading:!0,showEditModal:!1,editing_customer:{},status:"",search:"",selectedCustomers:[],selectedBulkAction:"",showBulkDeleteDialog:!1,bulkActionItems:[],statusFilters:{active:this.$t("Active"),inactive:this.$t("Blocked")}}},computed:{componentKey(){return this.editing_customer&&this.editing_customer.id?this.editing_customer.id.toString():(1e3*Math.random()).toFixed(0).toString()},allStatusFilters(){return{"":this.$t("All"),...this.statusFilters}},bulkActions:()=>[{value:"delete",label:"Delete"}],bulkDeleteWarning(){const e=this.bulkActionItems?this.bulkActionItems.length:0;return e?this.$t(`Are you sure to delete ${e} customer(s)? It will delete all associated data with these customers`):this.$t("No customers selected for deletion.")}},mounted(){this.$setTitle(this.$t("Customers")),this.fetchCustomers()},methods:{async fetchCustomers(){this.$get("customers",{per_page:this.pagination.per_page,page:this.pagination.current_page,search:this.search,status:this.status}).then(e=>{this.customers=e.customers.data,this.pagination.total=e.customers.total}).always(()=>{this.loading=!1,this.first_time_loading=!1}).catch(e=>{this.$handleError(e)})},setStatus(e){this.status=e,this.fetchCustomers()},showAddCustomerModal(e){this.editing_customer=e,this.showEditModal=!0},closeModal(){this.editing_customer={},this.showEditModal=!1,this.fetchCustomers()},deleteCustomer(e){this.deleting=!0,this.$del(`customers/${e}`).then(e=>{this.fetchCustomers(),this.$notify({message:e.message,type:"success",position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.deleting=!1})},async createOrUpdateCustomer(){this.saving=!0,(this.editing_customer.id?this.$put:this.$post)(this.editing_customer.id?`customers/${this.editing_customer.id}`:"customers",{...this.editing_customer}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetchCustomers(),this.showEditModal=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},tableRowClassName:({row:e,rowIndex:t})=>"fs_status_"+e.status,handleImageError(e){e.target.style.display="none"},handleSelectionChange(e){this.selectedCustomers=e},async handleBulkAction({action:e,items:t}){if("delete"===e){if(!t||!t.length)return;this.bulkActionItems=t,this.showBulkDeleteDialog=!0}},async confirmBulkDelete(){this.bulkActionItems&&this.bulkActionItems.length?(await this.bulkDeleteCustomers(this.bulkActionItems),this.showBulkDeleteDialog=!1,this.bulkActionItems=[]):this.showBulkDeleteDialog=!1},cancelBulkDelete(){this.showBulkDeleteDialog=!1,this.bulkActionItems=[]},async bulkDeleteCustomers(e){if(!e||0===e.length)return;const t=e.map(e=>e.id);try{this.deleting=!0;const e=await this.$del("customers/bulk-delete",{customer_ids:t});this.$notify({message:e.message||this.$t("Customers deleted successfully"),type:"success",position:"bottom-right"}),this.selectedCustomers=[],this.selectedBulkAction="",await this.fetchCustomers()}catch(a){this.$handleError(a)}finally{this.deleting=!1}}}},$ye={class:"fs_customers"},Bye={key:0,class:"fs_box_wrapper"},Vye={class:"fs_component_header"},Uye={class:"fs_component_head"},Hye={class:"fs_page_title"},zye={class:"fs_box_actions"},Yye={class:"fs_table_container"},Gye={class:"fs_table_header"},Wye={class:"fs_box_actions"},jye={class:"fs_status_tabs"},qye={class:"fs_segmented_control"},Kye=["onClick"],Xye={class:"fs_customers_table_actions"},Qye={class:"fs_bulk_actions_section"},Zye={class:"fs_ticket_orders fs_table_search_field"},Jye={class:"fs_table_wrapper"},eSe={class:"fs_customer_name_cell"},tSe={class:"fs_customer_avatar"},aSe=["src","alt"],iSe={class:"fs_customer_info"},sSe={class:"fs_customer_email"},nSe={key:0},oSe={key:1},rSe=["src"],lSe={class:"fs-table-action-cell"},cSe={class:"fs_action_button_wrapper"},dSe={key:0,class:"fs_pagination_wrapper"},uSe={class:"fs_pagination_left"},pSe={class:"fs_pagination_right"},hSe={key:1,class:"fs_table_container fs_skeleton_loader"},gSe={class:"fs_dialog_footer"},mSe={class:"fs_dialog_warning_content"},fSe={class:"fs_popconfirm_actions"};const _Se=dH(Fye,[["render",function(e,t,a,i,s,n){const o=vk,r=Zl("BulkAction"),l=Zl("search"),c=jx,d=oC,u=JP,p=Zl("router-link"),h=Zl("TableMoreActions"),g=ZP,m=Zl("pagination"),f=OL,_=Zl("customer-form"),b=pD,v=q$;return Hd(),jd("div",$ye,[s.first_time_loading?(Hd(),jd("div",hSe,[tu(f,{class:"fs_box_wrapper fs_skeleton",rows:5,animated:""})])):(Hd(),jd("div",Bye,[eu("div",Vye,[eu("div",Uye,[eu("h3",Hye,fe(e.$t("All Customers")),1)]),eu("div",zye,[tu(o,{onClick:t[0]||(t[0]=e=>n.showAddCustomerModal({})),class:"fs_filled_btn",icon:"Plus"},{default:br(()=>[su(fe(e.$t("Add Customer")),1)],void 0),_:1})])]),eu("div",Yye,[eu("div",Gye,[eu("div",Wye,[eu("div",jye,[eu("div",qye,[(Hd(!0),jd(Pd,null,sc(n.allStatusFilters,(e,t)=>(Hd(),jd("button",{key:t,onClick:e=>n.setStatus(t),class:ne(["fs_segment_button",{fs_segment_active:s.status===t}])},fe(e),11,Kye))),128))])]),eu("div",Xye,[eu("div",Qye,[tu(r,{"selected-items":s.selectedCustomers,actions:n.bulkActions,"selected-action":s.selectedBulkAction,"onUpdate:selectedAction":t[1]||(t[1]=e=>s.selectedBulkAction=e),onApplyAction:n.handleBulkAction},null,8,["selected-items","actions","selected-action","onApplyAction"])]),eu("div",Zye,[tu(d,{onKeyup:t[2]||(t[2]=Rh(e=>n.fetchCustomers(),["enter"])),clearable:"",onClear:t[3]||(t[3]=e=>n.fetchCustomers()),placeholder:e.$t("Search Customers..."),modelValue:s.search,"onUpdate:modelValue":t[4]||(t[4]=e=>s.search=e),class:"fs_text_input fs_table_search_input"},{prefix:br(()=>[tu(c,{class:"el-input__icon"},{default:br(()=>[tu(l)],void 0),_:1})]),_:1},8,["placeholder","modelValue"])])])])]),eu("div",Jye,[vr((Hd(),qd(g,{data:s.customers,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed",onSelectionChange:n.handleSelectionChange},{default:br(()=>[tu(u,{type:"selection",width:"50",align:"center"}),tu(u,{width:"50",prop:"id",label:e.$t("ID")},null,8,["label"]),tu(u,{prop:"full_name",width:"250",label:e.$t("Name")},{default:br(e=>[eu("div",eSe,[eu("div",tSe,[eu("img",{src:e.row.photo,alt:e.row.full_name||"Customer",class:"fs_avatar_img",onError:t[5]||(t[5]=(...e)=>n.handleImageError&&n.handleImageError(...e))},null,40,aSe)]),eu("div",iSe,[tu(p,{to:{name:"view_customer",params:{customer_id:e.row.id}},class:"fs_customer_name_link"},{default:br(()=>[su(fe(e.row.full_name?e.row.full_name:"N/A"),1)],void 0),_:2},1032,["to"]),eu("div",sSe,fe(e.row.email),1)])])]),_:1},8,["label"]),tu(u,{width:"120",label:e.$t("Status")},{default:br(t=>[eu("div",{class:ne(["fs_status_badge fs_customer_status_badge",`fs_status_${t.row.status}`])},["inactive"==t.row.status?(Hd(),jd("span",nSe,fe(e.$t("Blocked")),1)):(Hd(),jd("span",oSe,fe(e.ucFirst(t.row.status)),1))],2)]),_:1},8,["label"]),tu(u,{width:"180",label:e.$t("Last Activity")},{default:br(t=>[su(fe(e.$timeDiff(t.row.last_response_at)||"--"),1)]),_:1},8,["label"]),tu(u,{width:"150",label:e.$t("Stats")},{default:br(t=>[tu(p,{to:{name:"tickets",query:{search:"customer_id:"+t.row.id}},class:"fs_stats_link"},{default:br(()=>[tu(o,{size:"small",text:"",class:"fs_stats_button"},{icon:br(()=>[eu("img",{src:e.appVars.asset_url+"images/ticketCount.svg"},null,8,rSe)]),default:br(()=>[su(" "+fe(t.row.total_tickets),1)],void 0),_:2},1024)],void 0),_:2},1032,["to"])]),_:1},8,["label"]),tu(u,{align:"center",width:"150",label:e.$t("Action")},{default:br(t=>[eu("div",lSe,[eu("div",cSe,[tu(o,{class:"fs_action_button",onClick:e=>n.showAddCustomerModal(t.row),text:"",icon:"EditPen"},null,8,["onClick"])]),tu(h,{scope:t,fetching:s.loading,onDelete:e=>n.deleteCustomer(t.row.id),"delete-warning":e.$t("Are you sure to delete this customer? It will delete all associated data with this customer")},null,8,["scope","fetching","onDelete","delete-warning"])])]),_:1},8,["label"])],void 0),_:1},8,["data","onSelectionChange"])),[[v,s.loading]])]),s.customers.length?(Hd(),jd("div",dSe,[eu("span",uSe,[eu("p",null,"Page "+fe(s.pagination.current_page)+" of "+fe(Math.ceil(s.pagination.total/s.pagination.per_page)),1),tu(m,{onFetch:t[6]||(t[6]=e=>n.fetchCustomers()),pagination:s.pagination,layout:"sizes"},null,8,["pagination"])]),eu("span",pSe,[tu(m,{onFetch:t[7]||(t[7]=e=>n.fetchCustomers()),pagination:s.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ou("",!0)])])),s.editing_customer?(Hd(),qd(b,{key:2,"append-to-body":!0,title:s.editing_customer.id?e.$t("Update customer"):e.$t("Add new customer"),modelValue:s.showEditModal,"onUpdate:modelValue":t[11]||(t[11]=e=>s.showEditModal=e),width:"60%",class:"fs_dialog"},{footer:br(()=>[eu("span",gSe,[tu(o,{class:"fs_outline_btn",onClick:t[9]||(t[9]=()=>s.showEditModal=!1)},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),vr((Hd(),qd(o,{disabled:s.saving,onClick:t[10]||(t[10]=e=>n.createOrUpdateCustomer()),class:"fs_filled_btn"},{default:br(()=>[su(fe(s.editing_customer&&s.editing_customer.id?e.$t("Update Customer"):e.$t("Create Customer")),1)],void 0),_:1},8,["disabled"])),[[v,s.saving]])])]),default:br(()=>[s.editing_customer?(Hd(),qd(_,{onUpdated:t[8]||(t[8]=e=>n.closeModal()),customer:s.editing_customer,key:n.componentKey},null,8,["customer"])):ou("",!0)],void 0),_:1},8,["title","modelValue"])):ou("",!0),tu(b,{modelValue:s.showBulkDeleteDialog,"onUpdate:modelValue":t[12]||(t[12]=e=>s.showBulkDeleteDialog=e),title:e.$t("Confirm Delete"),width:"400",class:"fs_dialog","append-to-body":!0},{footer:br(()=>[eu("div",fSe,[tu(o,{class:"fs_outline_btn",size:"small",onClick:n.cancelBulkDelete},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),tu(o,{class:"fs_filled_btn",size:"small",loading:s.deleting,onClick:n.confirmBulkDelete},{default:br(()=>[su(fe(e.$t("Delete")),1)],void 0),_:1},8,["loading","onClick"])])]),default:br(()=>[eu("div",mSe,[t[13]||(t[13]=eu("i",{class:"el-icon el-message-box__status el-message-box-icon--warning"},[eu("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[eu("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})])],-1)),eu("p",null,fe(n.bulkDeleteWarning),1)])],void 0),_:1},8,["modelValue","title"])])}]]),bSe={class:"fs_saved_replies"},vSe={key:0,class:"fs_box_wrapper"},ySe={class:"fs_component_header"},SSe={class:"fs_component_head"},xSe={class:"fs_page_title"},wSe={class:"fs_box_actions"},ESe={key:0,class:"fs_table_container"},CSe={class:"fs_table_header"},kSe={class:"fs_box_actions"},TSe={class:"fs_ticket_orders fs_table_search_field"},ASe={class:"fs_table_wrapper"},RSe={class:"fs-table-action-cell"},OSe={class:"fs_action_button_wrapper"},NSe={key:0,class:"fs_pagination_wrapper"},ISe={class:"fs_pagination_left"},DSe={class:"fs_pagination_right"},MSe={key:1,class:"fs_table_container fs_skeleton_loader"},LSe={class:"fs_dialog_footer"};const PSe=dH({name:"SavedReplies",components:{WpEditor:cee,Pagination:dq,TableMoreActions:Tge,NarrowPromo:Hie},data(){return{replies:[],pagination:{current_page:1,per_page:10,total:0},loading:!0,saving:!1,editing_reply:!1,products:this.appVars.support_products,search:"",shortcodes:{"{{customer.first_name}}":"Customer First Name","{{customer.last_name}}":"Customer Last Name","{{customer.full_name}}":"Customer Full Name","{{customer.email}}":"Customer Email","{{customer.title}}":"Customer Title","{{customer.status}}":"Customer Status","{{agent.first_name}}":"Agent First Name","{{agent.last_name}}":"Agent Last Name","{{agent.full_name}}":"Agent Full Name","{{agent.email}}":"Agent Email","{{agent.title}}":"Agent Title"},showModal:!1}},methods:{fetch(){this.loading=!0,this.$get("saved-replies",{page:this.pagination.current_page,per_page:this.pagination.per_page,search:this.search}).then(e=>{this.replies=e.replies.data,this.pagination.total=e.replies.total}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},createOrUpdate(){this.saving=!0;let e=this.$post,t="saved-replies";this.editing_reply.id&&(e=this.$put,t=`saved-replies/${this.editing_reply.id}`);e(t,{...this.editing_reply,product_id:this.editing_reply.product_id||null}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetch(),this.showModal=!1}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},editModal(e){this.editing_reply=JSON.parse(JSON.stringify(e));0===Number(this.editing_reply.product_id)&&(this.editing_reply.product_id=null),this.showModal=!0},createModal(){this.editing_reply={title:"",content:"",product_id:null},this.showModal=!0},deleteReply(e){this.$del(`saved-replies/${e.id}`).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.fetch()})},resetEditingReply(){this.editing_reply=!1}},mounted(){this.has_pro?this.fetch():this.loading=!1,this.$setTitle("Saved Replies")}},[["render",function(e,t,a,i,s,n){const o=vk,r=Zl("search"),l=jx,c=oC,d=JP,u=Zl("TableMoreActions"),p=ZP,h=Zl("pagination"),g=Zl("NarrowPromo"),m=OL,f=sE,_=Zl("wp-editor"),b=bA,v=_A,y=iE,S=pD,x=q$;return Hd(),jd("div",bSe,[s.loading?(Hd(),jd("div",MSe,[tu(m,{class:"fs_box_wrapper fs_skeleton",rows:5,animated:""})])):(Hd(),jd("div",vSe,[e.has_pro?(Hd(),jd(Pd,{key:0},[eu("div",ySe,[eu("div",SSe,[eu("h3",xSe,fe(e.$t("Saved Replies")),1)]),eu("div",wSe,[tu(o,{disabled:!e.has_pro,class:"fs_filled_btn",onClick:t[0]||(t[0]=e=>n.createModal()),icon:"Plus"},{default:br(()=>[su(fe(e.$t("Create New")),1)],void 0),_:1},8,["disabled"])])]),s.loading?ou("",!0):(Hd(),jd("div",ESe,[eu("div",CSe,[eu("div",kSe,[eu("div",TSe,[tu(c,{onKeyup:Rh(n.fetch,["enter"]),clearable:"",onClear:n.fetch,disabled:!e.has_pro,placeholder:e.$t("Search..."),modelValue:s.search,"onUpdate:modelValue":t[1]||(t[1]=e=>s.search=e),class:"fs_text_input fs_table_search_input"},{prefix:br(()=>[tu(l,{class:"el-input__icon"},{default:br(()=>[tu(r)],void 0),_:1})]),_:1},8,["onKeyup","onClear","disabled","placeholder","modelValue"])])])]),eu("div",ASe,[tu(p,{data:s.replies,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{default:br(()=>[tu(d,{width:"50",prop:"id",label:e.$t("ID")},null,8,["label"]),tu(d,{prop:"title",width:"200",label:e.$t("Title")},null,8,["label"]),tu(d,{width:"200",label:e.$t("Product")},{default:br(e=>{var t;return[su(fe((null==(t=e.row.product)?void 0:t.title)||"--"),1)]}),_:1},8,["label"]),tu(d,{width:"180",label:e.$t("Created By")},{default:br(e=>{var t;return[su(fe(null==(t=e.row.person)?void 0:t.full_name),1)]}),_:1},8,["label"]),tu(d,{width:"180",label:e.$t("Created On")},{default:br(t=>[su(fe(e.$timeDiff(t.row.created_at)),1)]),_:1},8,["label"]),tu(d,{align:"center",width:"150",label:e.$t("Action")},{default:br(t=>[eu("div",RSe,[eu("div",OSe,[tu(o,{class:"fs_action_button",onClick:e=>n.editModal(t.row),text:"",icon:"EditPen"},null,8,["onClick"])]),tu(u,{scope:t,fetching:s.loading,onDelete:e=>n.deleteReply(t.row),"delete-warning":e.$t("replies_delete_warning")},null,8,["scope","fetching","onDelete","delete-warning"])])]),_:1},8,["label"])],void 0),_:1},8,["data"])]),s.replies.length?(Hd(),jd("div",NSe,[eu("span",ISe,[eu("p",null,"Page "+fe(s.pagination.current_page)+" of "+fe(Math.ceil(s.pagination.total/s.pagination.per_page)),1),tu(h,{onFetch:t[2]||(t[2]=e=>n.fetch()),pagination:s.pagination,layout:"sizes"},null,8,["pagination"])]),eu("span",DSe,[tu(h,{onFetch:t[3]||(t[3]=e=>n.fetch()),pagination:s.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ou("",!0)]))],64)):(Hd(),qd(g,{key:1,heading:e.$t("create_reply_template"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))])),s.editing_reply?(Hd(),qd(S,{key:2,"append-to-body":!0,title:s.editing_reply&&s.editing_reply.id?e.$t("Edit Reply"):e.$t("Create New Reply"),modelValue:s.showModal,"onUpdate:modelValue":t[9]||(t[9]=e=>s.showModal=e),width:"60%",class:"fs_dialog fs_reply_modal",onClosed:n.resetEditingReply},{footer:br(()=>[eu("span",LSe,[tu(o,{class:"fs_outline_btn",onClick:t[7]||(t[7]=()=>s.showModal=!1)},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),vr((Hd(),qd(o,{disabled:s.saving,onClick:t[8]||(t[8]=e=>n.createOrUpdate()),class:"fs_filled_btn"},{default:br(()=>[su(fe(s.editing_reply&&s.editing_reply.id?e.$t("Update Reply"):e.$t("Save Reply")),1)],void 0),_:1},8,["disabled"])),[[x,s.saving]])])]),default:br(()=>[tu(y,{"label-position":"top",data:s.editing_reply},{default:br(()=>[tu(f,{label:e.$t("Title"),class:"fs_form_item"},{default:br(()=>[tu(c,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("Reply Title"),modelValue:s.editing_reply.title,"onUpdate:modelValue":t[4]||(t[4]=e=>s.editing_reply.title=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),tu(f,{label:e.$t("Content"),class:"fs_form_item"},{default:br(()=>[(Hd(),qd(_,{key:s.editing_reply.id,modelValue:s.editing_reply.content,"onUpdate:modelValue":t[5]||(t[5]=e=>s.editing_reply.content=e),"show-shortcodes":!0,editor_shortcodes:s.shortcodes},null,8,["modelValue","editor_shortcodes"]))],void 0),_:1},8,["label"]),tu(f,{label:e.$t("Preferred Product"),class:"fs_form_item"},{default:br(()=>[tu(v,{placeholder:e.$t("Select Product"),class:"fs_select_field",modelValue:s.editing_reply.product_id,"onUpdate:modelValue":t[6]||(t[6]=e=>s.editing_reply.product_id=e),clearable:""},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.products,e=>(Hd(),qd(b,{key:e.id,label:e.title,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["placeholder","modelValue"])],void 0),_:1},8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},8,["title","modelValue","onClosed"])):ou("",!0)])}]]),FSe={class:"fs_customer_page"},$Se={key:0,class:"fs_box_wrapper"},BSe={style:{padding:"20px"},class:"fs_box_header"},VSe={class:"fs_box_head"},USe={style:{"margin-top":"20px"}},HSe={style:{padding:"20px","margin-top":"2.3em"},class:"fs_box_body"},zSe={class:"fs_customer_avatar"},YSe=["src"],GSe={class:"fs_tk_sidebar_wrap_new"},WSe={class:"fs_client_info_body"},jSe={class:"fs_client_header"},qSe={class:"fs_client_avatar"},KSe=["src","alt"],XSe={class:"fs_client_details"},QSe={class:"fs_client_name_row"},ZSe={class:"fs_client_name"},JSe={key:0,class:"fs_blocked_badge"},exe={class:"fs_client_email"},txe=["href"],axe={key:1},ixe={key:0,class:"fs_widget_purchases"},sxe={class:"fs_purchase_list"},nxe={class:"fs_purchase_row"},oxe=["onClick"],rxe={class:"fs_order_card_header"},lxe={class:"fs_wc_card-body"},cxe={class:"fs_wc-order-preview-address"},dxe=["innerHTML"],uxe={key:0},pxe={key:1},hxe={key:2},gxe={class:"fs_wc-order-preview-address fs_mt_30"},mxe=["innerHTML"],fxe=["innerHTML"],_xe={class:"fs_order_card_footer"},bxe=["href"],vxe={key:1,class:"fs_widget_custom_body"},yxe=["innerHTML"],Sxe={class:"fs_previous_conversations_body"},xxe={class:"fs_conversation_list"},wxe={class:"fs_conversation_content"},Exe={class:"fs_conversation_title"},Cxe={key:1,class:"fs_padded_20"};const kxe=dH({name:"CustomerPage",props:["customer_id"],components:{CollapsibleWidget:_le,CustomerForm:gre,FluentCrmProfile:Mre},data(){return{customer:{},tickets:[],widgets:{},drawer:!1,orders:[],loading_sidebar:!1,fluentcrm_profile:!1,loading:!1,upload_url:this.appVars.rest.url+`/customers/profile_image/${this.customer_id}`,requestHeaders:{"X-WP-Nonce":this.appVars.rest.nonce},canOpenProfileUploadPopup:!0}},mounted(){this.fetchCustomer()},methods:{async fetchCustomer(){this.loading=!0,this.$get(`customers/${this.customer_id}`,{with:["widgets","tickets","fluentcrm_profile"]}).then(e=>{this.customer=e.customer,this.tickets=e.tickets,this.widgets=e.widgets,this.fluentcrm_profile=e.fluentcrm_profile}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},handleAvatarSuccess(e,t){this.customer.photo=e.image,this.$notify({title:this.$t("Success"),message:this.$t(e.message),type:"success"}),this.canOpenProfileUploadPopup=!0},handleAvatarError(e,t){let a=JSON.parse(e.message);this.$notify({title:this.$t("Error"),message:this.$t(a.message),type:"error"}),this.canOpenProfileUploadPopup=!0},getOrderDetails(e,t){this.drawer=!0,this.orders={orderInfo:e,products:t[e.id]}},getType(e){switch(e.toLocaleString()){case"on-hold":return"warning";case"processing":return"primary";case"completed":return"success";default:return"info"}},showIcon(){document.querySelector("i.fs_customer_avatar_upload").style.display="inline-flex"},hideIcon(){document.querySelector("i.fs_customer_avatar_upload").style.display="none"},getDisplayCurrency(e){return e&&e.length<=3&&e.match(/^[A-Z]{3}$/)?this.getCurrencySymbol(e):e||""},async confirmResetProfile(){this.loading=!0,this.$post(`customers/reset_avatar/${this.customer_id}`).then(e=>{this.$notify({message:this.$t(e.message),position:"bottom-right",type:"success"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},beforeAvatarUpload(){this.canOpenProfileUploadPopup=!1}}},[["render",function(e,t,a,i,s,n){const o=$C,r=FC,l=Zl("Camera"),c=jx,d=$$,u=oM,p=yL,h=rM,g=nM,m=Zl("customer-form"),f=lO,_=Zl("router-link"),b=Zl("fluent-crm-profile"),v=Zl("collapsible-widget"),y=KE,S=QT,x=JP,w=ZP,E=vk,C=xA,k=SD,T=Zl("Message"),A=rO,R=OL;return Hd(),jd("div",FSe,[s.customer.id?(Hd(),jd("div",$Se,[eu("div",BSe,[eu("div",VSe,[tu(r,{separator:">"},{default:br(()=>[tu(o,{to:{name:"Customers"}},{default:br(()=>[su(fe(e.$t("Customers")),1)],void 0),_:1}),tu(o,null,{default:br(()=>[su(fe(s.customer.first_name)+" "+fe(s.customer.last_name),1)],void 0),_:1})],void 0),_:1})]),t[4]||(t[4]=eu("div",{class:"fs_box_actions fs_customer_filters"},[eu("div",{class:"fs_cs_status_filter"})],-1))]),eu("div",USe,[tu(A,{gutter:30},{default:br(()=>[tu(f,{sm:12,md:18,xs:24},{default:br(()=>[eu("div",HSe,[eu("div",{class:"fs_cs_profile_picture",onMouseover:t[0]||(t[0]=(...e)=>n.showIcon&&n.showIcon(...e)),onMouseout:t[1]||(t[1]=(...e)=>n.hideIcon&&n.hideIcon(...e))},[eu("div",zSe,[s.canOpenProfileUploadPopup?(Hd(),qd(g,{key:0,trigger:"click","hide-on-click":!1,placement:"bottom-start"},{dropdown:br(()=>[tu(h,{class:"fs_global_dropdown fs-cs-avatar-actions"},{default:br(()=>[tu(u,null,{default:br(()=>[tu(d,{class:"fs-avatar-uploader",action:s.upload_url,"on-success":n.handleAvatarSuccess,"on-error":n.handleAvatarError,headers:s.requestHeaders,"show-file-list":!1,"before-upload":n.beforeAvatarUpload},{default:br(()=>[...t[5]||(t[5]=[su(" Upload a Custom Picture ",-1)])],void 0),_:1},8,["action","on-success","on-error","headers","before-upload"])],void 0),_:1}),s.customer.avatar?(Hd(),qd(u,{key:0},{default:br(()=>[tu(p,{"confirm-button-text":"Yes","cancel-button-text":"No",title:e.$t("Reset to gravatar?"),onConfirm:n.confirmResetProfile},{reference:br(()=>[...t[6]||(t[6]=[su(" Reset To Default Gravatar ",-1)])]),_:1},8,["title","onConfirm"])],void 0),_:1})):ou("",!0)],void 0),_:1})]),default:br(()=>[tu(c,{class:"fs_customer_avatar_upload"},{default:br(()=>[tu(l)],void 0),_:1})],void 0),_:1})):ou("",!0),s.customer.photo?(Hd(),jd("img",{key:1,src:s.customer.photo,class:"avatar"},null,8,YSe)):ou("",!0)])],32),s.customer.id?(Hd(),qd(m,{key:0,customer:s.customer,style:{"margin-top":"4em"}},null,8,["customer"])):ou("",!0)])],void 0),_:1}),tu(f,{sm:12,md:6,xs:24},{default:br(()=>[eu("div",GSe,[s.customer?(Hd(),qd(v,{key:0,title:e.$t("Customer Informations"),icon:"User","default-expanded":!0,class:"fs_sidebar_widget fs_sidebar_widget_ci"},{default:br(()=>[eu("div",WSe,[eu("div",jSe,[tu(_,{to:{name:"view_customer",params:{customer_id:s.customer.id}}},{default:br(()=>[eu("div",qSe,[eu("img",{src:s.customer.photo,alt:s.customer.full_name},null,8,KSe)])],void 0),_:1},8,["to"]),eu("div",XSe,[eu("div",QSe,[eu("h4",ZSe,[su(fe(s.customer.full_name)+" ",1),"inactive"==s.customer.status?(Hd(),jd("span",JSe,"("+fe(e.$t("Blocked"))+")",1)):ou("",!0)])]),eu("p",exe,[s.customer.profile_edit_url?(Hd(),jd("a",{key:0,rel:"noopener",target:"_blank",href:s.customer.profile_edit_url},fe(s.customer.email),9,txe)):(Hd(),jd("span",axe,fe(s.customer.email),1))])])]),s.fluentcrm_profile?(Hd(),qd(b,{key:0,crm_profile:s.fluentcrm_profile},null,8,["crm_profile"])):ou("",!0)])],void 0),_:1},8,["title"])):ou("",!0),s.widgets?(Hd(!0),jd(Pd,{key:1},sc(s.widgets,(a,i)=>(Hd(),qd(v,{key:i,title:a.title||a.header,icon:"ShoppingCart","default-expanded":!1,class:ne([`fs_tk_widget_${i}`,"fs_sidebar_widget fs_tk_extra_card"])},{default:br(()=>["woo_purchases"===i?(Hd(),jd("div",ixe,[eu("ul",sxe,[(Hd(!0),jd(Pd,null,sc(a.orders,(i,s)=>(Hd(),jd("li",{key:s,class:"fs_purchase_item"},[eu("div",nxe,[tu(y,{content:"Purchase date: "+i.date+", Amount: "+e.getCurrencySymbol(i.currency)+i.total,placement:"top","raw-content":!0},{default:br(()=>[eu("a",{onClick:e=>n.getOrderDetails(i,a.products),class:"fs_order_link"},"#"+fe(i.id),9,oxe)],void 0),_:2},1032,["content"]),t[7]||(t[7]=eu("div",{class:"fs_purchase_divider"},null,-1)),tu(S,{size:"small",type:n.getType(i.status)},{default:br(()=>[su(fe(i.status),1)],void 0),_:2},1032,["type"])])]))),128))]),tu(k,{class:"fs_wc_order_details",modelValue:s.drawer,"onUpdate:modelValue":t[3]||(t[3]=e=>s.drawer=e),size:"40%","append-to-body":!0,"with-header":!1},{default:br(()=>[tu(C,{class:"fs_order_box_card"},{header:br(()=>[eu("div",rxe,[eu("h3",null,fe(e.$t("Order"))+" #"+fe(s.orders.orderInfo.id),1),tu(S,{class:"ml-2",type:n.getType(s.orders.orderInfo.status)},{default:br(()=>[su(fe(s.orders.orderInfo.status),1)],void 0),_:1},8,["type"])])]),default:br(()=>[eu("div",lxe,[eu("div",null,[eu("div",cxe,[eu("h2",null,fe(e.$t("Billing details")),1),eu("p",{innerHTML:s.orders.orderInfo.billing_address},null,8,dxe),eu("p",null,[eu("strong",null,fe(e.$t("Email"))+": ",1),su(fe(s.orders.orderInfo.email),1)]),s.orders.orderInfo.phone?(Hd(),jd("p",uxe,[eu("strong",null,fe(e.$t("Phone"))+": ",1),su(fe(s.orders.orderInfo.phone),1)])):ou("",!0),s.orders.orderInfo.payment_method?(Hd(),jd("p",pxe,[eu("strong",null,fe(e.$t("Payment Via"))+": ",1),su(fe(s.orders.orderInfo.payment_method),1)])):ou("",!0),s.orders.orderInfo.date?(Hd(),jd("p",hxe,[eu("strong",null,fe(e.$t("Purchase Date"))+": ",1),su(fe(s.orders.orderInfo.date),1)])):ou("",!0)]),eu("div",gxe,[eu("h2",null,fe(e.$t("Shipping details")),1),eu("p",{innerHTML:s.orders.orderInfo.shipping_address},null,8,mxe),eu("p",null,[eu("strong",null,fe(e.$t("Shipping method")),1),su(" "+fe(s.orders.orderInfo.shipping_method),1)])])]),tu(w,{data:s.orders.products,style:{width:"100%","margin-top":"2%"}},{default:br(()=>[tu(x,{prop:"post_title",label:e.$t("Product"),width:"60%"},null,8,["label"]),tu(x,{prop:"product_qty",label:e.$t("Quantity"),width:"20%",align:"center"},null,8,["label"]),tu(x,{label:"Total",width:"20%",align:"center"},{default:br(e=>[eu("span",{innerHTML:s.orders.orderInfo.currency},null,8,fxe),eu("span",null,fe(e.row.product_gross_revenue),1)]),_:1})],void 0),_:1},8,["data"])]),eu("div",_xe,[eu("a",{href:s.orders.orderInfo.order_link,target:"_blank",class:"el-button fs_filled_btn"},fe(e.$t("Edit")),9,bxe),tu(E,{onClick:t[2]||(t[2]=e=>s.drawer=!1),class:"fs_outline_btn"},{default:br(()=>[su(fe(e.$t("Close")),1)],void 0),_:1})])],void 0),_:1})],void 0),_:1},8,["modelValue"])])):(Hd(),jd("div",vxe,[eu("div",{innerHTML:a.body_html},null,8,yxe)]))],void 0),_:2},1032,["title","class"]))),128)):ou("",!0),s.tickets&&s.tickets.length?(Hd(),qd(v,{key:2,title:e.$t("Support Tickets")+` (${s.tickets.length})`,icon:"ChatLineSquare","default-expanded":!1,class:"fs_sidebar_widget fs_tk_other_tickets_card"},{default:br(()=>[eu("div",Sxe,[eu("ul",xxe,[(Hd(!0),jd(Pd,null,sc(s.tickets,t=>(Hd(),jd("li",{key:"other_ticket_"+t.id,class:"fs_conversation_item"},[tu(_,{to:{name:"view_ticket",params:{ticket_id:t.id},query:{prev_ticket:e.ticket_id}},class:"fs_conversation_link"},{default:br(()=>{var e;return[eu("div",wxe,[tu(c,{class:"fs_conversation_icon"},{default:br(()=>[tu(T)],void 0),_:1}),eu("span",Exe,fe(t.title),1)]),eu("span",{class:ne(["fs_status_badge",null==(e=t.status)?void 0:e.toLowerCase()])},fe(t.status),3)]},void 0),_:2},1032,["to"])]))),128))])])],void 0),_:1},8,["title"])):ou("",!0)])],void 0),_:1})],void 0),_:1})])])):(Hd(),jd("div",Cxe,[tu(R,{class:"fs_box_wrapper fs_skeleton",rows:5,animated:""})]))])}]]),Txe={class:"fs_mailboxes"},Axe={key:0,class:"fs_box_wrapper"},Rxe={class:"fs_breadcrumb"},Oxe={class:"fs_mailbox_settings_wrapper"},Nxe={class:"fs_menu_container"},Ixe=["src"],Dxe={class:"fs_menu_arrow_wrapper"},Mxe=["src"],Lxe=["src"],Pxe={class:"fs_menu_arrow_wrapper"},Fxe=["src"],$xe=["src"],Bxe={class:"fs_menu_arrow_wrapper"},Vxe=["src"],Uxe={class:"inner_body fs_box_body fs_padded_20"},Hxe={key:1,class:"fs_box_body fs_skeleton_loader"};const zxe=dH({name:"MailBoxRoot",props:["box_id"],data:()=>({fetching:!0,mailbox:!1}),mounted(){this.fetch(),this.$setTitle("Business Settings")},methods:{fetch(){this.fetching=!0,this.$get(`mailboxes/${this.box_id}`).then(e=>{this.mailbox=e.mailbox,this.$setTitle(e.mailbox.name+" Settings")}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})}}},[["render",function(e,t,a,i,s,n){const o=$C,r=FC,l=Zl("router-link"),c=Zl("router-view"),d=OL;return Hd(),jd("div",Txe,[s.mailbox?(Hd(),jd("div",Axe,[eu("div",Rxe,[tu(r,{separator:">"},{default:br(()=>[tu(o,{to:{name:"mailboxes"}},{default:br(()=>[su(fe(e.$t("Business Inboxes")),1)],void 0),_:1}),tu(o,null,{default:br(()=>[su(fe(s.mailbox.name),1)],void 0),_:1})],void 0),_:1})]),eu("div",Oxe,[eu("div",Nxe,[eu("div",{class:ne(["fs_menu_item",{active:"box_settings"===e.$route.name}])},[tu(l,{to:{name:"box_settings",params:{box_id:s.mailbox.id}}},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/inboxSettings.svg",alt:""},null,8,Ixe),eu("span",null,fe(e.$t("Inbox Settings")),1),eu("div",Dxe,["box_settings"===e.$route.name?(Hd(),jd("img",{key:0,class:"fs_menu_arrow",src:e.appVars.asset_url+"images/arrow.svg"},null,8,Mxe)):ou("",!0)])],void 0),_:1},8,["to"])],2),eu("div",{class:ne(["fs_menu_item",{active:"email_settings"===e.$route.name}])},[tu(l,{to:{name:"email_settings",params:{box_id:s.mailbox.id}}},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/emailSettings.svg",alt:""},null,8,Lxe),eu("span",null,fe(e.$t("Email Settings")),1),eu("div",Pxe,["email_settings"===e.$route.name?(Hd(),jd("img",{key:0,class:"fs_menu_arrow",src:e.appVars.asset_url+"images/arrow.svg"},null,8,Fxe)):ou("",!0)])],void 0),_:1},8,["to"])],2),s.mailbox&&"email"==s.mailbox.box_type?(Hd(),jd("div",{key:0,class:ne(["fs_menu_item",{active:"email_piping"===e.$route.name}])},[tu(l,{to:{name:"email_piping",params:{box_id:s.mailbox.id}}},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/emailPiping.svg",alt:""},null,8,$xe),eu("span",null,fe(e.$t("Email Piping")),1),eu("div",Bxe,["email_piping"===e.$route.name?(Hd(),jd("img",{key:0,class:"fs_menu_arrow",src:e.appVars.asset_url+"images/arrow.svg"},null,8,Vxe)):ou("",!0)])],void 0),_:1},8,["to"])],2)):ou("",!0)]),eu("div",Uxe,[tu(c,{mailbox:s.mailbox},null,8,["mailbox"])])])])):(Hd(),jd("div",Hxe,[tu(d,{rows:5,animated:""})]))])}]]);var Yxe=_q,Gxe=/\s/;var Wxe=function(e){for(var t=e.length;t--&&Gxe.test(e.charAt(t)););return t},jxe=/^\s+/;var qxe=Rq,Kxe=Oq;var Xxe=function(e){return e?e.slice(0,Wxe(e)+1).replace(jxe,""):e},Qxe=AK,Zxe=function(e){return"symbol"==typeof e||Kxe(e)&&"[object Symbol]"==qxe(e)},Jxe=/^[-+]0x[0-9a-f]+$/i,ewe=/^0b[01]+$/i,twe=/^0o[0-7]+$/i,awe=parseInt;var iwe=AK,swe=function(){return Yxe.Date.now()},nwe=function(e){if("number"==typeof e)return e;if(Zxe(e))return NaN;if(Qxe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qxe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xxe(e);var a=ewe.test(e);return a||twe.test(e)?awe(e.slice(2),a?2:8):Jxe.test(e)?NaN:+e},owe=Math.max,rwe=Math.min;var lwe=function(e,t,a){var i,s,n,o,r,l,c=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var a=i,n=s;return i=s=void 0,c=t,o=e.apply(n,a)}function g(e){var a=e-l;return void 0===l||a>=t||a<0||u&&e-c>=n}function m(){var e=swe();if(g(e))return f(e);r=setTimeout(m,function(e){var a=t-(e-l);return u?rwe(a,n-(e-c)):a}(e))}function f(e){return r=void 0,p&&i?h(e):(i=s=void 0,o)}function _(){var e=swe(),a=g(e);if(i=arguments,s=this,l=e,a){if(void 0===r)return function(e){return c=e,r=setTimeout(m,t),d?h(e):o}(l);if(u)return clearTimeout(r),r=setTimeout(m,t),h(l)}return void 0===r&&(r=setTimeout(m,t)),o}return t=nwe(t)||0,iwe(a)&&(d=!!a.leading,n=(u="maxWait"in a)?owe(nwe(a.maxWait)||0,t):n,p="trailing"in a?!!a.trailing:p),_.cancel=function(){void 0!==r&&clearTimeout(r),c=0,i=l=s=r=void 0},_.flush=function(){return void 0===r?o:f(swe())},_};const cwe=Ak(lwe),dwe={class:"fs_field_label"},uwe={key:0,class:"fs_all_tickets fs_move_tickets_container"},pwe={class:"fs_box_wrapper"},hwe={class:"fs_box_head"},gwe={class:"fs_box_body fs_move_ticket_list_body"},mwe={class:"fs_move_ticket_header"},fwe={key:0,class:"fs_selected_count"},_we={key:0,class:"fs_select_all_section"},bwe={class:"fs_select_all_container"},vwe={class:"fs_select_all"},ywe={class:"fs_total_count"},Swe={class:"fs_tickets_list fs_move_tickets_list"},xwe=["onClick"],wwe={class:"fs_ticket_main_content"},Ewe={class:"fs_ticket_left_section"},Cwe={class:"fs_ticket_title_row"},kwe={class:"fs_ticket_title_group"},Twe={class:"fs_ticket_title"},Awe={key:0,class:"fs_ticket_author"},Rwe={key:1,class:"fs_ticket_product_badge"},Owe={key:0,class:"fs_status_dot fs_status_dot_new"},Nwe={key:0,class:"fs_tickets_empty_state"},Iwe=["src"],Dwe={key:1,class:"fs_pagination_wrapper"},Mwe={class:"fs_pagination_left"},Lwe={class:"fs_pagination_right"},Pwe={class:"fs_dialog_footer"},Fwe={key:0};const $we={class:"fs_mailboxes"},Bwe={class:"fs_box_wrapper"},Vwe={class:"fs_component_header"},Uwe={class:"fs_component_head"},Hwe={class:"fs_page_title"},zwe={class:"fs_box_actions"},Ywe={key:0,class:"fs_mailbox_grid"},Gwe={class:"fs_mailbox_header"},Wwe={class:"fs_mailbox_title"},jwe={class:"fs_title_row"},qwe={key:0,class:"fs_status_badge fs_status_active"},Kwe={class:"fs_mailbox_header_actions"},Xwe=["src"],Qwe=["src"],Zwe={class:"fs_mailbox_body"},Jwe={class:"fs_mailbox_field"},eEe={class:"fs_mailbox_field_label"},tEe={class:"fs_mailbox_field_value"},aEe={class:"fs_mailbox_field_row"},iEe={class:"fs_mailbox_field"},sEe={class:"fs_mailbox_field_label"},nEe={class:"fs_mailbox_field_value"},oEe={class:"fs_mailbox_field"},rEe={class:"fs_mailbox_field_label"},lEe={class:"fs_mailbox_field_value"},cEe={key:1,class:"fs_table_container fs_skeleton_loader"},dEe={class:"fs_field_label"},uEe={key:0,class:"fs_dialog_footer"},pEe={class:"fs_field_label"},hEe={class:"fs_dialog_footer"};const gEe=dH({name:"ChooseMailBox",components:{MoveTicket:dH({name:"MoveTicket",components:{Pagination:dq,RemoteSelector:pee,NarrowPromo:Hie},props:["mailbox_id","mailboxes"],emits:["update_mailbox","reset_me"],data(){return{count:10,loading:!1,pagination:{current_page:1,total:0,per_page:10},move_ticket:{show_modal:!!this.mailbox_id,box_id:this.mailbox_id,fallback_box:"",move_type:"All",selected_tickets:[]},show_ticket_selection:!1,tickets:[],filters:{status_type:"",product_id:"",mailbox_id:this.mailbox_id,customer_id:"",ticket_title:"",notes:""},customers:[],products:[],filtered:!1,moving:!1,moveTypes:["All","Custom"]}},computed:{selectAllChecked:{get(){return this.tickets.length>0&&this.move_ticket.selected_tickets.length===this.tickets.length},set(){}},isIndeterminate(){return this.move_ticket.selected_tickets.length>0&&this.move_ticket.selected_tickets.length<this.tickets.length}},created(){this.debouncedTicketTitleSearch=cwe(()=>{this.pagination.current_page=1,this.showTicket("Custom")},350)},methods:{load(){this.count+=5},closeModal(){this.$emit("reset_me")},customerChangeHandler(e){this.filters.customer_id=e??"",this.pagination.current_page=1,this.showTicket("Custom")},productChangeHandler(e){this.filters.product_id=e??"",this.pagination.current_page=1,this.showTicket("Custom")},showTicket(e){if("Custom"===e){this.loading=!0;let e={order_by:"id",order_type:"DESC",filter_type:"simple",filters:this.filters,page:this.pagination.current_page,per_page:this.pagination.per_page};this.$get(`mailboxes/${this.mailbox_id}/tickets`,e).then(e=>{this.tickets=e.tickets.data,this.pagination.total=e.tickets.total,this.show_ticket_selection=!0}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}else this.move_ticket.selected_tickets=[],this.show_ticket_selection=!1,this.pagination.total=0},setPage(e){this.page=e},toggleTicketSelection(e){const t=this.move_ticket.selected_tickets.indexOf(e);t>-1?this.move_ticket.selected_tickets.splice(t,1):this.move_ticket.selected_tickets.push(e)},handleSelectAll(e){this.move_ticket.selected_tickets=e?this.tickets.map(e=>e.id):[]},moveTicketMailBox(){return this.move_ticket.fallback_box&&this.move_ticket.box_id?this.move_ticket.move_type?"Custom"==this.move_ticket.move_type&&Object.keys(this.move_ticket.selected_tickets).length<1?(alert(this.$t("Please select ticket first")),!1):(this.moving=!0,void this.$put(`mailboxes/${this.move_ticket.box_id}/move_tickets`,{new_box_id:this.move_ticket.fallback_box,move_type:this.move_ticket.move_type,ticket_ids:this.move_ticket.selected_tickets}).then(e=>{this.show_ticket_selection=!1,this.move_ticket={show_modal:!1,box_id:this.mailbox_id,fallback_box:"",move_type:"All",selected_tickets:[]},this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.$emit("update_mailbox")}).catch(e=>{this.$handleError(e)}).always(()=>{this.moving=!1})):(alert(this.$t("Please provide You want to move all or custom selected tickets?")),!1):(alert(this.$t("Please provide fallback box")),!1)},previewMove(){if(!this.move_ticket.fallback_box)return void alert(this.$t("Please select a fallback business box"));const e="All"===this.move_ticket.move_type?"all tickets":`${this.move_ticket.selected_tickets.length} selected tickets`;alert(`Preview: Moving ${e} to the selected business box`)}}},[["render",function(e,t,a,i,s,n){const o=Zl("InfoFilled"),r=jx,l=KE,c=bA,d=_A,u=sE,p=iE,h=Zl("remote-selector"),g=lO,m=oC,f=rO,_=wR,b=Zl("pagination"),v=Zl("NarrowPromo"),y=vk,S=pD,x=q$;return Hd(),qd(S,{title:e.$t("Move all tickets to new Business Box"),modelValue:s.move_ticket.show_modal,"onUpdate:modelValue":t[10]||(t[10]=e=>s.move_ticket.show_modal=e),width:"60%",onClose:n.closeModal,class:"fs_dialog fs_move_ticket_dialog"},nc({default:br(()=>[tu(p,{"label-position":"top"},{default:br(()=>[tu(u,null,{default:br(()=>[eu("span",dwe,[su(fe(e.$t("Fallback Business"))+" ",1),tu(l,{effect:"dark",content:e.$t("select_new_business_to_move_tickets"),placement:"top","popper-class":"fs-tooltip"},{default:br(()=>[tu(r,null,{default:br(()=>[tu(o)],void 0),_:1})],void 0),_:1},8,["content"])]),tu(d,{modelValue:s.move_ticket.fallback_box,"onUpdate:modelValue":t[0]||(t[0]=e=>s.move_ticket.fallback_box=e),placeholder:e.$t("Select Business Box"),class:"fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(a.mailboxes,e=>(Hd(),qd(c,{disabled:e.id==s.move_ticket.box_id,key:e.id,value:e.id,label:e.name},null,8,["disabled","value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1}),tu(u,{label:e.$t("All or Custom")},{default:br(()=>[tu(d,{modelValue:s.move_ticket.move_type,"onUpdate:modelValue":t[1]||(t[1]=e=>s.move_ticket.move_type=e),placeholder:e.$t("Want to move all or custom selected"),onChange:n.showTicket,class:"fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.moveTypes,e=>(Hd(),qd(c,{key:e,value:e,label:e},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder","onChange"])],void 0),_:1},8,["label"])],void 0),_:1}),s.show_ticket_selection?(Hd(),jd(Pd,{key:0},[e.has_pro?(Hd(),jd("div",uwe,[eu("div",pwe,[eu("h4",null,fe(e.$t("Filter ticket")),1),t[11]||(t[11]=eu("hr",null,null,-1)),eu("div",hwe,[tu(p,{data:s.filters,"label-position":"top"},{default:br(()=>[tu(f,{gutter:20},{default:br(()=>[tu(g,{span:8},{default:br(()=>[tu(u,{label:e.$t("Select Customer")},{default:br(()=>[tu(h,{modelValue:s.filters.customer_id,"onUpdate:modelValue":t[2]||(t[2]=e=>s.filters.customer_id=e),response_key:"customers",api_path:"customers",value_selector:"id",label_joiner:" - ",label_selectors:["full_name","email"],onChange:n.customerChangeHandler,clearable:""},null,8,["modelValue","onChange"])],void 0),_:1},8,["label"])],void 0),_:1}),tu(g,{span:8},{default:br(()=>[tu(u,{label:e.$t("Select Product")},{default:br(()=>[tu(h,{modelValue:s.filters.product_id,"onUpdate:modelValue":t[3]||(t[3]=e=>s.filters.product_id=e),response_key:"products",api_path:"products",value_selector:"id",label_selectors:["title"],onChange:n.productChangeHandler,clearable:""},null,8,["modelValue","onChange"])],void 0),_:1},8,["label"])],void 0),_:1}),tu(g,{span:7},{default:br(()=>[tu(u,{label:e.$t("Ticket Title"),class:"fs_ticket_title_filter_item"},{default:br(()=>[tu(m,{modelValue:s.filters.ticket_title,"onUpdate:modelValue":t[4]||(t[4]=e=>s.filters.ticket_title=e),placeholder:e.$t("Filter by ticket title"),onInput:e.debouncedTicketTitleSearch,class:"fs_text_input fs_ticket_title_input"},null,8,["modelValue","placeholder","onInput"])],void 0),_:1},8,["label"])],void 0),_:1})],void 0),_:1})],void 0),_:1},8,["data"])]),eu("div",gwe,[eu("div",mwe,[eu("h4",null,fe(e.$t("Select ticket that you want to move")),1),s.move_ticket.selected_tickets.length?(Hd(),jd("span",fwe,fe(s.move_ticket.selected_tickets.length)+" "+fe(e.$t("selected")),1)):ou("",!0)]),s.tickets.length?(Hd(),jd("div",_we,[eu("div",bwe,[eu("div",vwe,[tu(_,{indeterminate:n.isIndeterminate,modelValue:n.selectAllChecked,"onUpdate:modelValue":t[5]||(t[5]=e=>n.selectAllChecked=e),onChange:n.handleSelectAll},{default:br(()=>[su(fe(e.$t("Select All")),1)],void 0),_:1},8,["indeterminate","modelValue","onChange"]),eu("span",ywe,fe(s.move_ticket.selected_tickets.length)+" "+fe(e.$t("out of"))+" "+fe(s.pagination.total)+" "+fe(e.$t("tickets")),1)])])])):ou("",!0),vr((Hd(),jd("div",Swe,[(Hd(!0),jd(Pd,null,sc(s.tickets,e=>(Hd(),jd("div",{class:ne(["fs_ticket_item",{fs_ticket_selected:s.move_ticket.selected_tickets.includes(e.id)}]),key:e.id,onClick:t=>n.toggleTicketSelection(e.id)},[eu("div",wwe,[eu("div",Ewe,[eu("div",Cwe,[tu(_,{onClick:t[6]||(t[6]=Th(()=>{},["stop"])),"model-value":s.move_ticket.selected_tickets.includes(e.id),onChange:t=>n.toggleTicketSelection(e.id)},null,8,["model-value","onChange"]),eu("div",kwe,[eu("span",Twe,fe(e.title),1),e.customer?(Hd(),jd("span",Awe," by "+fe(e.customer.first_name)+" "+fe(e.customer.last_name)+" #"+fe(e.id),1)):ou("",!0),e.product&&e.product.title?(Hd(),jd("span",Rwe,fe(e.product.title),1)):ou("",!0)]),"new"===e.status?(Hd(),jd("span",Owe)):ou("",!0)])])])],10,xwe))),128)),s.tickets.length||s.loading?ou("",!0):(Hd(),jd("div",Nwe,[eu("img",{src:e.appVars.asset_url+"images/empty.svg",alt:""},null,8,Iwe),eu("p",null,fe(e.$t("No tickets found")),1)]))])),[[x,s.loading]]),s.tickets.length?(Hd(),jd("div",Dwe,[eu("span",Mwe,[eu("p",null,fe(e.$t("Page"))+" "+fe(s.pagination.current_page)+" "+fe(e.$t("of"))+" "+fe(Math.ceil(s.pagination.total/s.pagination.per_page)),1)]),eu("span",Lwe,[tu(b,{onFetch:t[7]||(t[7]=e=>n.showTicket("Custom")),pagination:s.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ou("",!0)])])])):(Hd(),qd(v,{key:1,heading:e.$t("move_ticket_by_selecting"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))],64)):ou("",!0)],void 0),_:2},[e.has_pro?{name:"footer",fn:br(()=>[eu("span",Pwe,[tu(y,{onClick:t[8]||(t[8]=e=>s.move_ticket.show_modal=!1),class:"fs_outline_btn"},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),vr((Hd(),qd(y,{disabled:s.moving,type:"success",onClick:t[9]||(t[9]=e=>n.moveTicketMailBox()),class:"fs_filled_btn"},{default:br(()=>[su(fe(e.$t("Move"))+" ",1),s.move_ticket.selected_tickets.length>0?(Hd(),jd("span",Fwe," ( "+fe(s.move_ticket.selected_tickets.length)+" )",1)):ou("",!0)],void 0),_:1},8,["disabled"])),[[x,s.moving]])])]),key:"0"}:void 0]),1032,["title","modelValue","onClose"])}]]),NarrowPromo:Hie},data:()=>({fetching:!0,mailboxes:[],create_modal:!1,new_business:{box_type:"web",name:"",email:"",mapped_email:"",customer_portal_page_id:""},creating:!1,deleting_box:{show_modal:!1,box_id:"",fallback_box:""},deleting:!1,change_box:"",set_default:""}),computed:{can_create_mailbox(){return!!this.appVars.has_pro||!(this.mailboxes.length>1)}},mounted(){this.fetch(),this.$setTitle(this.$t("Business Inboxes"))},methods:{sortMailboxes:e=>e.sort((e,t)=>"yes"===e.is_default&&"yes"!==t.is_default?-1:"yes"!==e.is_default&&"yes"===t.is_default?1:0),fetch(){this.fetching=!0,this.$get("mailboxes").then(e=>{this.mailboxes=this.sortMailboxes(e.mailboxes)}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},update_mailbox(e){this.change_box="",this.mailboxes=this.sortMailboxes(e)},showNewBusinessModal(){this.new_business={box_type:"web",name:"",email:"",mapped_email:"",customer_portal_page_id:""},this.create_modal=!0},createMailBox(){this.creating=!0,this.$post("mailboxes",{business:this.new_business}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),"email"==e.mailbox.box_type?this.$router.push({name:"email_piping",params:{box_id:e.mailbox.id}}):this.$router.push({name:"box_settings",params:{box_id:e.mailbox.id}})}).catch(e=>{this.$handleError(e)}).always(()=>{this.creating=!1})},handleBoxCommand(e){"delete"==e.type?(this.deleting_box.box_id=e.box_id,this.deleting_box.show_modal=!0):"move"==e.type?this.change_box=e.box_id:"set_default"==e.type&&this.setAsDefault(e.box_id)},setAsDefault(e){this.$put(`mailboxes/${e}/set_default`).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fetch()}).catch(e=>{this.$handleError(e)})},deleteMailBox(){this.deleting=!0,this.$del(`mailboxes/${this.deleting_box.box_id}`,{fallback_id:this.deleting_box.fallback_box}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.deleting_box.show_modal=!1,this.fetch()}).catch(e=>{this.$handleError(e)}).always(()=>{this.deleting=!1})},reset_me(){this.change_box=""}}},[["render",function(e,t,a,i,s,n){const o=vk,r=oM,l=rM,c=nM,d=OL,u=oC,p=sE,h=Zl("InfoFilled"),g=jx,m=KE,f=UR,_=HR,b=iE,v=Zl("NarrowPromo"),y=pD,S=bA,x=_A,w=Zl("move-ticket"),E=q$;return Hd(),jd("div",$we,[eu("div",Bwe,[eu("div",Vwe,[eu("div",Uwe,[eu("h3",Hwe,fe(e.$t("Business Inboxes")),1)]),eu("div",zwe,[tu(o,{class:"fs_filled_btn",onClick:t[0]||(t[0]=e=>n.showNewBusinessModal()),icon:"Plus"},{default:br(()=>[su(fe(e.$t("Add New Business Box")),1)],void 0),_:1})])]),s.fetching?(Hd(),jd("div",cEe,[tu(d,{rows:5,animated:""})])):(Hd(),jd("div",Ywe,[(Hd(!0),jd(Pd,null,sc(s.mailboxes,t=>(Hd(),jd("div",{key:t.id,class:"fs_mailbox_card"},[eu("div",Gwe,[eu("div",Wwe,[eu("div",jwe,[eu("h4",null,fe(t.name),1),"yes"===t.is_default?(Hd(),jd("span",qwe,fe(e.$t("Default")),1)):ou("",!0)])]),eu("div",Kwe,[tu(o,{class:"fs_settings_button",onClick:a=>e.$router.push({name:"box_settings",params:{box_id:t.id}})},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/gear.svg"},null,8,Xwe)],void 0),_:1},8,["onClick"]),tu(c,{onCommand:n.handleBoxCommand,class:"fs_mailbox_actions",trigger:"click"},{dropdown:br(()=>[tu(l,{class:"fs_global_dropdown fs_table_more_actions_dropdown_menu"},{default:br(()=>["yes"!==t.is_default?(Hd(),qd(r,{key:0,command:{type:"set_default",box_id:t.id},icon:"FolderChecked"},{default:br(()=>[su(fe(e.$t("Set as Default")),1)],void 0),_:1},8,["command"])):ou("",!0),t.tickets_count>0?(Hd(),qd(r,{key:1,command:{type:"move",box_id:t.id},icon:"EditPen"},{default:br(()=>[su(fe(e.$t("Move Tickets")),1)],void 0),_:1},8,["command"])):ou("",!0),tu(r,{command:{type:"delete",box_id:t.id},icon:"Delete"},{default:br(()=>[su(fe(e.$t("Delete")),1)],void 0),_:1},8,["command"])],void 0),_:2},1024)]),default:br(()=>[tu(o,{class:"fs_action_button",text:""},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/more.svg"},null,8,Qwe)],void 0),_:1})],void 0),_:2},1032,["onCommand"])])]),eu("div",Zwe,[eu("div",Jwe,[eu("span",eEe,fe(e.$t("Email")),1),eu("span",tEe,fe(t.email),1)]),eu("div",aEe,[eu("div",iEe,[eu("span",sEe,fe(e.$t("Type")),1),eu("span",nEe,fe(t.box_type),1)]),eu("div",oEe,[eu("span",rEe,fe(e.$t("Tickets")),1),eu("span",lEe,fe(t.tickets_count),1)])])])]))),128))]))]),tu(y,{title:e.$t("Add a New Business Inbox"),modelValue:s.create_modal,"onUpdate:modelValue":t[6]||(t[6]=e=>s.create_modal=e),width:"60%",class:"fs_dialog"},{footer:br(()=>[n.can_create_mailbox?(Hd(),jd("span",uEe,[tu(o,{class:"fs_outline_btn",onClick:t[4]||(t[4]=e=>s.create_modal=!1)},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),tu(o,{class:"fs_filled_btn",onClick:t[5]||(t[5]=e=>n.createMailBox())},{default:br(()=>[su(fe(e.$t("Add Business Inbox")),1)],void 0),_:1})])):ou("",!0)]),default:br(()=>[n.can_create_mailbox?(Hd(),qd(b,{key:0,data:s.new_business,"label-position":"top"},{default:br(()=>[tu(p,{label:e.$t("Inbox Name")},{default:br(()=>[tu(u,{type:"text",class:"fs_text_input fs_text_input_40",modelValue:s.new_business.name,"onUpdate:modelValue":t[1]||(t[1]=e=>s.new_business.name=e)},null,8,["modelValue"])],void 0),_:1},8,["label"]),tu(p,null,{label:br(()=>[eu("span",dEe,[su(fe(e.$t("Support Inbox Email"))+" ",1),tu(m,{effect:"dark",content:e.$t("email_can_be_send"),placement:"top","popper-class":"fs-tooltip"},{default:br(()=>[tu(g,null,{default:br(()=>[tu(h)],void 0),_:1})],void 0),_:1},8,["content"])])]),default:br(()=>[tu(u,{type:"email",class:"fs_text_input fs_text_input_40",modelValue:s.new_business.email,"onUpdate:modelValue":t[2]||(t[2]=e=>s.new_business.email=e)},null,8,["modelValue"])],void 0),_:1}),tu(p,{label:e.$t("Support Channel")},{default:br(()=>[tu(_,{class:"fs_choose_mailbox_type",modelValue:s.new_business.box_type,"onUpdate:modelValue":t[3]||(t[3]=e=>s.new_business.box_type=e)},{default:br(()=>[tu(f,{value:"web"},{default:br(()=>[su(fe(e.$t("Web Based")),1)],void 0),_:1}),tu(f,{disabled:!e.appVars.has_email_parser,value:"email"},{default:br(()=>[su(fe(e.$t("email_based_heading")),1)],void 0),_:1},8,["disabled"])],void 0),_:1},8,["modelValue"])],void 0),_:1},8,["label"])],void 0),_:1},8,["data"])):(Hd(),qd(v,{key:1,heading:e.$t("shared_inbox_message"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))],void 0),_:1},8,["title","modelValue"]),tu(y,{title:e.$t("Are You Sure? You can not undo this action."),modelValue:s.deleting_box.show_modal,"onUpdate:modelValue":t[10]||(t[10]=e=>s.deleting_box.show_modal=e),width:"60%",class:"fs_dialog"},{footer:br(()=>[eu("span",hEe,[tu(o,{class:"fs_outline_btn",onClick:t[8]||(t[8]=e=>s.deleting_box.show_modal=!1)},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),vr((Hd(),qd(o,{disabled:s.deleting,class:"fs_filled_btn",onClick:t[9]||(t[9]=e=>n.deleteMailBox())},{default:br(()=>[su(fe(e.$t("Confirm Delete This Business")),1)],void 0),_:1},8,["disabled"])),[[E,s.deleting]])])]),default:br(()=>[tu(b,{data:s.deleting_box,"label-position":"top"},{default:br(()=>[tu(p,null,{label:br(()=>[eu("span",pEe,[su(fe(e.$t("Support Inbox Email"))+" ",1),tu(m,{effect:"dark",content:e.$t("select_fallback_business"),placement:"top","popper-class":"fs-tooltip"},{default:br(()=>[tu(g,null,{default:br(()=>[tu(h)],void 0),_:1})],void 0),_:1},8,["content"])])]),default:br(()=>[tu(x,{modelValue:s.deleting_box.fallback_box,"onUpdate:modelValue":t[7]||(t[7]=e=>s.deleting_box.fallback_box=e),class:"fs_select_field",placeholder:e.$t("Select related Product/Service")},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.mailboxes,e=>(Hd(),qd(S,{disabled:e.id==s.deleting_box.box_id,key:e.id,value:e.id,label:e.name},null,8,["disabled","value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1})],void 0),_:1},8,["data"])],void 0),_:1},8,["title","modelValue"]),s.change_box?(Hd(),qd(w,{key:0,mailbox_id:s.change_box,mailboxes:s.mailboxes,onUpdate_mailbox:t[11]||(t[11]=e=>n.fetch()),onReset_me:n.reset_me},null,8,["mailbox_id","mailboxes","onReset_me"])):ou("",!0)])}]]),mEe={class:"fs_mailbox_settings_container"},fEe={class:"fs_mailbox_settings_header"},_Ee={class:"fs_mailbox_settings_header_left"},bEe={class:"fs_main_header_text"},vEe={class:"fs_sub_text"},yEe={class:"fs_settings_form"},SEe={class:"fs_form_group"},xEe={class:"fs_form_label"},wEe={class:"fs_form_group"},EEe={class:"fs_field_label"},CEe={class:"fs_form_group"},kEe={class:"fs_field_label"},TEe={key:0,class:"fs_form_group"},AEe={class:"fs_sub_text"},REe={key:1,class:"fs_form_group"},OEe={class:"fs_form_label"},NEe={class:"fs_form_group"},IEe={class:"fs_form_label"},DEe={class:"fs_color_picker_wrapper"},MEe={class:"fs_color_value"},LEe={class:"fs_form_group"};const PEe=dH({name:"MailBoxSettings",components:{WpEditor:cee},props:["mailbox"],data(){return{shortCodes:{"{{customer.first_name}}":this.$t("Customer First name"),"{{customer.last_name}}":this.$t("Customer Last name"),"{{customer.email}}":this.$t("Customer Email"),"{{ticket.id}}":this.$t("Ticket ID"),"{{ticket.public_id}}":this.$t("Public Ticket ID"),"{{ticket.public_url}}":this.$t("Ticket Public URL"),"{{ticket.title}}":this.$t("Ticket Title")},saving:!1}},mounted(){this.mailbox.settings.color||(this.mailbox.settings.color="#189877")},methods:{saveSettings(){if("email"==this.mailbox.box_type&&this.mailbox.settings.admin_email_address==this.mailbox.email)return this.$notify({type:"error",message:this.$t("Your Admin Email Address and Support From Email should not be same. Please use a different email address."),position:"bottom-right"}),!1;this.saving=!0,this.$put(`mailboxes/${this.mailbox.id}`,{business:this.mailbox}).then(e=>{this.$notify({type:"success",position:"bottom-right",message:e.message})}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})}}},[["render",function(e,t,a,i,s,n){const o=vk,r=oC,l=Zl("InfoFilled"),c=jx,d=KE,u=Zl("router-link"),p=Zl("wp-editor"),h=tN,g=wR,m=q$;return Hd(),jd("div",mEe,[eu("div",fEe,[eu("div",_Ee,[eu("h1",bEe,fe(e.$t("Inbox Settings")),1),eu("p",vEe,fe(e.$t("The following settings will be applied to the newly created")),1)]),vr((Hd(),qd(o,{type:"primary",class:"fs_save_settings_btn",disabled:s.saving,onClick:t[0]||(t[0]=e=>n.saveSettings())},{default:br(()=>[su(fe(e.$t("Save Settings")),1)],void 0),_:1},8,["disabled"])),[[m,s.saving]])]),eu("div",yEe,[eu("div",SEe,[eu("label",xEe,fe(e.$t("Inbox Name")),1),tu(r,{modelValue:a.mailbox.name,"onUpdate:modelValue":t[1]||(t[1]=e=>a.mailbox.name=e),placeholder:e.$t("Inbox Name"),class:"fs_text_input fs_text_input_40"},null,8,["modelValue","placeholder"])]),eu("div",wEe,[eu("span",EEe,[su(fe(e.$t("Support Inbox Email"))+" ",1),tu(d,{effect:"dark",content:e.$t("select_fallback_business"),placement:"top","popper-class":"fs-tooltip"},{default:br(()=>[tu(c,null,{default:br(()=>[tu(l)],void 0),_:1})],void 0),_:1},8,["content"])]),tu(r,{modelValue:a.mailbox.email,"onUpdate:modelValue":t[2]||(t[2]=e=>a.mailbox.email=e),disabled:a.mailbox.mapped_email&&"email"==a.mailbox.box_type,type:"email",placeholder:e.$t("Support Inbox Email"),class:"fs_text_input fs_text_input_40"},null,8,["modelValue","disabled","placeholder"])]),eu("div",CEe,[eu("span",kEe,[su(fe(e.$t("Admin Email Address"))+" ",1),tu(d,{effect:"dark",content:e.$t("admin_get_email"),placement:"top","popper-class":"fs-tooltip"},{default:br(()=>[tu(c,null,{default:br(()=>[tu(l)],void 0),_:1})],void 0),_:1},8,["content"])]),tu(r,{modelValue:a.mailbox.settings.admin_email_address,"onUpdate:modelValue":t[3]||(t[3]=e=>a.mailbox.settings.admin_email_address=e),type:"email",class:"fs_text_input fs_text_input_40"},null,8,["modelValue"])]),"email"!=a.mailbox.box_type||a.mailbox.mapped_email?ou("",!0):(Hd(),jd("div",TEe,[eu("p",AEe,[su(fe(e.$t("Please configure"))+" ",1),t[7]||(t[7]=eu("br",null,null,-1)),tu(u,{to:{name:"email_piping",params:{box_id:a.mailbox.id}},class:"fs_doc_link"},{default:br(()=>[su(fe(e.$t("your email piping settings first")),1)],void 0),_:1},8,["to"])])])),e.has_pro?(Hd(),jd("div",REe,[eu("label",OEe,fe(e.$t("Email Footer For Customers")),1),tu(p,{height:200,modelValue:a.mailbox.email_footer,"onUpdate:modelValue":t[4]||(t[4]=e=>a.mailbox.email_footer=e),editor_shortcodes:s.shortCodes,class:"fs_custom_editor"},null,8,["modelValue","editor_shortcodes"])])):ou("",!0),eu("div",NEe,[eu("label",IEe,fe(e.$t("Inbox Color")),1),eu("div",DEe,[tu(h,{modelValue:a.mailbox.settings.color,"onUpdate:modelValue":t[5]||(t[5]=e=>a.mailbox.settings.color=e),size:"large",style:{width:"30px",height:"30px"}},null,8,["modelValue"]),eu("span",MEe,fe(a.mailbox.settings.color||"#189877"),1)])]),eu("div",LEe,[tu(g,{modelValue:a.mailbox.settings.hide_business_box,"onUpdate:modelValue":t[6]||(t[6]=e=>a.mailbox.settings.hide_business_box=e),"true-value":"yes","false-value":"no",class:"fs_custom_checkbox"},{default:br(()=>[su(fe(e.$t("Hide Badge in Tickets")),1)],void 0),_:1},8,["modelValue"])])])])}]]),FEe={class:"fs_box_email_settings"},$Ee={class:"fs_mailbox_settings_header"},BEe={class:"fs_mailbox_settings_header_left"},VEe={class:"fs_main_header_text"},UEe={class:"fs_sub_text"},HEe={key:0,class:"fs_skeleton_loader"},zEe={key:1,class:"fs_email_settings_table"},YEe={class:"fs_table"},GEe={class:"fs_table_header_cell fs_title_col"},WEe={class:"fs_table_header_cell fs_status_col"},jEe={class:"fs_table_header_cell fs_manage_col"},qEe={class:"fs_table_cell"},KEe={class:"fs_table_cell"},XEe={class:"fs_table_cell"},QEe=["src"],ZEe={key:0,class:"fs_email_settings_modal_title"},JEe={class:"fs_field_label"},eCe={style:{display:"flex","align-items":"center",gap:"4px"}},tCe=["data-tooltip"],aCe={class:"fs_checkbox_group"},iCe={class:"fs_smartcodes_section"},sCe={class:"fs_smartcodes_list"},nCe=["onClick"],oCe={class:"fs_smartcode_text"},rCe={class:"fs_dialog_footer"};const lCe=dH({name:"BoxEmailSettings",components:{WpEditor:cee,Modal:Eie},props:["box_id","mailbox"],data:()=>({active_email:"",email_types:[],active_email_settings:!1,configs:[],edit_modal:!1,loading:!1,saving:!1,allowed_mails_for_attachments:["ticket_created_email_to_customer","ticket_created_email_to_admin","ticket_created_by_agent_email_to_customer","ticket_created_by_agent_on_behalf_email_to_customer","ticket_replied_by_agent_email_to_customer","ticket_replied_by_customer_email_to_admin"]}),computed:{shortCodes(){return"ticket_created_email_to_customer"==this.active_email||"ticket_created_email_to_admin"==this.active_email?{"{{customer.first_name}}":this.$t("Customer First Name"),"{{customer.last_name}}":this.$t("Customer Last Name"),"{{customer.full_name}}":this.$t("Customer Full Name"),"{{customer.email}}":this.$t("Customer Email"),"{{ticket.admin_url}}":this.$t("Ticket Link(Agent)"),"{{ticket.public_url}}":this.$t("Ticket Link(Customer)"),"{{ticket.id}}":this.$t("Ticket ID"),"{{ticket.public_id}}":this.$t("Public Ticket ID"),"{{ticket.title}}":this.$t("Ticket Title"),"{{ticket.content}}":this.$t("Ticket Content"),"{{business.name}}":this.$t("Business Name")}:"ticket_agent_on_change"==this.active_email?{"{{ticket.admin_url}}":this.$t("Ticket Link(Agent)"),"{{ticket.id}}":this.$t("Ticket ID"),"{{ticket.public_id}}":this.$t("Public Ticket ID"),"{{ticket.title}}":this.$t("Ticket Title"),"{{ticket.content}}":this.$t("Ticket Content"),"{{business.name}}":this.$t("Business Name"),"{{agent.first_name}}":this.$t("Assigned Agent First Name"),"{{agent.last_name}}":this.$t("AssignedAgent Last Name"),"{{agent.full_name}}":this.$t("Assigned Agent Full Name"),"{{assigner.first_name}}":this.$t("Assigner First Name"),"{{assigner.last_name}}":this.$t("Assigner Last Name"),"{{assigner.full_name}}":this.$t("Assigner Full Name")}:{"{{customer.first_name}}":this.$t("Customer First Name"),"{{customer.last_name}}":this.$t("Customer Last Name"),"{{customer.full_name}}":this.$t("Customer Full Name"),"{{customer.email}}":this.$t("Customer Email"),"{{ticket.admin_url}}":this.$t("Ticket Link(Agent)"),"{{ticket.public_url}}":this.$t("Ticket Link(Customer)"),"{{ticket.id}}":this.$t("Ticket ID"),"{{ticket.public_id}}":this.$t("Public Ticket ID"),"{{ticket.title}}":this.$t("Ticket Title"),"{{ticket.content}}":this.$t("Ticket Content"),"{{business.name}}":this.$t("Business Name"),"{{agent.first_name}}":this.$t("Agent First Name"),"{{agent.last_name}}":this.$t("Agent Last Name"),"{{agent.full_name}}":this.$t("Agent Full Name"),"{{response.title}}":this.$t("Response Title"),"{{response.content}}":this.$t("Response Content"),"{{agent.title}}":this.$t("Agent Title")}}},methods:{getConfigs(){this.loading=!0,this.$get(`mailboxes/${this.box_id}/email_configs`).then(e=>{this.configs=e.email_configs,this.email_types=e.email_keys}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},editEmail(e){this.$get(`mailboxes/${this.box_id}/email_settings`,{email_type:e.key}).then(e=>{this.active_email_settings=e.email_settings,this.edit_modal=!this.edit_modal}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1}),this.active_email=e.key,this.active_email_settings=!1},saveSettings(){this.saving=!0,this.$put(`mailboxes/${this.box_id}/email_settings`,{email_type:this.active_email_settings.key,email_settings:this.active_email_settings}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.edit_modal=!1,this.loading=!0,this.getConfigs()}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},insertShortcodeInSubject(e){let t="";"string"==typeof e?t=e:e&&e.target&&"_value"in e.target?t=e.target._value:e&&e.target&&"value"in e.target&&(t=e.target.value),t&&this.$nextTick(()=>{const e=document.querySelector(".fs_subject_input_wrapper .el-input__inner");if(e){const a=e.selectionStart,i=e.selectionEnd,s=this.active_email_settings.email_subject||"",n=s.substring(0,a),o=s.substring(i),r=n+t+o;this.active_email_settings.email_subject=r,this.$nextTick(()=>{e.focus(),e.setSelectionRange(a+t.length,a+t.length)})}})}},mounted(){this.getConfigs()}},[["render",function(e,t,a,i,s,n){const o=OL,r=vk,l=Zl("InfoFilled"),c=jx,d=Zl("ArrowDown"),u=oM,p=rM,h=nM,g=oC,m=sE,f=Zl("wp-editor"),_=wR,b=iE,v=pD,y=q$;return Hd(),jd(Pd,null,[eu("div",FEe,[eu("div",$Ee,[eu("div",BEe,[eu("h1",VEe,fe(e.$t("Email Settings")),1),eu("p",UEe,fe(e.$t("The following settings will be applied to the newly created")),1)])]),s.configs.length?(Hd(),jd("div",zEe,[eu("table",YEe,[eu("thead",null,[eu("tr",null,[eu("th",GEe,fe(e.$t("Title")),1),eu("th",WEe,fe(e.$t("Status")),1),eu("th",jEe,fe(e.$t("Manage")),1)])]),eu("tbody",null,[(Hd(!0),jd(Pd,null,sc(s.configs,t=>(Hd(),jd("tr",{key:t.key,class:"fs_table_row"},[eu("td",qEe,fe(t.title),1),eu("td",KEe,[eu("div",{class:ne(["fs_status_badge","yes"===t.status?"fs_status_active":"fs_status_inactive"])},[eu("span",null,fe("yes"===t.status?e.$t("Active"):e.$t("Closed")),1)],2)]),eu("td",XEe,[tu(r,{onClick:e=>n.editEmail(t),text:"",class:"fs_edit_btn"},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/edit.svg",alt:""},null,8,QEe)],void 0),_:1},8,["onClick"])])]))),128))])])])):(Hd(),jd("div",HEe,[tu(o,{rows:5,animated:""})]))]),s.active_email_settings?(Hd(),qd(v,{key:0,"append-to-body":!0,title:s.active_email_settings&&s.active_email_settings.title?s.active_email_settings.title:e.$t("Email Settings"),modelValue:s.edit_modal,"onUpdate:modelValue":t[5]||(t[5]=e=>s.edit_modal=e),width:"60%",class:"fs_dialog fs_email_settings_modal"},{footer:br(()=>[eu("span",rCe,[tu(r,{class:"fs_outline_btn",onClick:t[4]||(t[4]=()=>s.edit_modal=!1)},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),vr((Hd(),qd(r,{disabled:s.saving,onClick:n.saveSettings,class:"fs_filled_btn"},{default:br(()=>[su(fe(e.$t("Save Settings")),1)],void 0),_:1},8,["disabled","onClick"])),[[y,s.saving]])])]),default:br(()=>[tu(b,{"label-position":"top",data:s.active_email_settings},{default:br(()=>[s.active_email_settings.description?(Hd(),jd("h3",ZEe,fe(s.active_email_settings.description),1)):ou("",!0),tu(m,{class:"fs_form_item"},{label:br(()=>[eu("div",JEe,[eu("span",eCe,[su(fe(e.$t("Email Subject"))+" ",1),eu("span",{class:"fs-email-subject-tooltip","data-tooltip":e.$t("can_not_edit_subject")},[tu(c,null,{default:br(()=>[tu(l)],void 0),_:1})],8,tCe)]),"no"!==s.active_email_settings.can_edit_subject?(Hd(),qd(h,{key:0,trigger:"click","popper-options":{strategy:"fixed"},class:"fs_subject_shortcode_dropdown"},{dropdown:br(()=>[tu(p,{class:"fs_global_dropdown fs_shortcode_dropdown fs_table_more_actions_dropdown_menu"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(n.shortCodes,(e,t)=>(Hd(),qd(u,{key:t,value:t,onClick:n.insertShortcodeInSubject},{default:br(()=>[su(fe(e),1)],void 0),_:2},1032,["value","onClick"]))),128))],void 0),_:1})]),default:br(()=>[tu(r,{size:"small",type:"primary"},{default:br(()=>[su(fe(e.$t("Smart Codes"))+" ",1),tu(c,null,{default:br(()=>[tu(d)],void 0),_:1})],void 0),_:1})],void 0),_:1})):ou("",!0)])]),default:br(()=>[tu(g,{ref:"subjectInput",class:"fs_text_input fs_text_input_40 fs_subject_input_wrapper",disabled:"no"==s.active_email_settings.can_edit_subject,modelValue:s.active_email_settings.email_subject,"onUpdate:modelValue":t[0]||(t[0]=e=>s.active_email_settings.email_subject=e),placeholder:e.$t("Email Subject")},null,8,["disabled","modelValue","placeholder"])],void 0),_:1}),tu(m,{label:e.$t("Email Body"),class:"fs_form_item"},{default:br(()=>[tu(f,{editor_id:s.active_email_settings.key,modelValue:s.active_email_settings.email_body,"onUpdate:modelValue":t[1]||(t[1]=e=>s.active_email_settings.email_body=e),editor_shortcodes:n.shortCodes},null,8,["editor_id","modelValue","editor_shortcodes"])],void 0),_:1},8,["label"]),tu(m,{class:"fs_form_item"},{default:br(()=>[eu("div",aCe,[tu(_,{"true-value":"yes","false-value":"no",modelValue:s.active_email_settings.status,"onUpdate:modelValue":t[2]||(t[2]=e=>s.active_email_settings.status=e)},{default:br(()=>[su(fe(e.$t("enable_email")),1)],void 0),_:1},8,["modelValue"]),"yes"==s.active_email_settings.status&&s.allowed_mails_for_attachments.includes(s.active_email_settings.key)?(Hd(),qd(_,{key:0,"true-value":"yes","false-value":"no",modelValue:s.active_email_settings.send_attachments,"onUpdate:modelValue":t[3]||(t[3]=e=>s.active_email_settings.send_attachments=e)},{default:br(()=>[su(fe(e.$t("Send Attachments")),1)],void 0),_:1},8,["modelValue"])):ou("",!0)])],void 0),_:1}),eu("div",iCe,[eu("span",null,fe(e.$t("Available Shortcodes")),1),eu("div",sCe,[(Hd(!0),jd(Pd,null,sc(n.shortCodes,(e,t)=>(Hd(),jd("div",{key:t,class:"fs_smartcode_item",onClick:e=>n.insertShortcodeInSubject(t)},[eu("span",oCe,fe(e)+": "+fe(t),1)],8,nCe))),128))])])],void 0),_:1},8,["data"])],void 0),_:1},8,["title","modelValue"])):ou("",!0)],64)}]]),cCe={class:"fs_box_email_settings"},dCe={key:0,class:"fs_mailbox_settings_header"},uCe={class:"fs_mailbox_settings_header_left"},pCe={class:"fs_main_header_text"},hCe={key:1,class:"fs_skeleton_loader"},gCe={key:2,class:"fs_email_piping_content"},mCe={key:0,class:"fs_not_issued_state"},fCe={class:"fs_piping_title"},_Ce={class:"fs_piping_description"},bCe={class:"fs_piping_form"},vCe={class:"fs_checkbox_wrapper"},yCe={target:"_blank",rel:"noopener",href:"https://fluentsupport.com/privacy-policy/email-piping-data-policy/",class:"fs_terms_link"},SCe={key:1,class:"fs_masked_email_form"},xCe={class:"fs_piping_title"},wCe={class:"fs_piping_description"},ECe={class:"fs_piping_form"},CCe={class:"fs_email_input_wrapper"},kCe=["src"],TCe={class:"fs_highlight"},ACe={target:"_blank",rel:"noopener",href:"https://fluentsupport.com/docs/email-piping-email-based-support-ticket/",class:"fs_doc_link"},RCe={key:2,class:"fs_active_state"},OCe={class:"fs_piping_title"},NCe={class:"fs_piping_description"},ICe={class:"fs_email_input_wrapper"},DCe=["src"],MCe={key:3,class:"fs_error_state"},LCe={class:"fs_piping_title fs_error_title"},PCe={class:"fs_piping_description"},FCe={key:4,class:"fs_webhook_section"},$Ce={class:"fs_webhook_content"},BCe={class:"fs_webhook_description"},VCe={class:"fs_email_input_wrapper"},UCe=["src"],HCe={key:3,class:"fs_error_message"};const zCe=dH({name:"MailBoxEmailPiping",props:["mailbox"],data:()=>({status:!1,email_pipe:!1,loading_pipe:!1,webhook_url:!1,is_custom_supported:!1,terms_agree:!1,issuing:!1,error_message:"",copied:!1}),methods:{async loadPipeStatus(){this.loading_pipe=!0,this.error_message="",await this.$get("email-box/"+this.mailbox.id+"/status").then(e=>{this.email_pipe=e.email_pipe,this.webhook_url=e.webhook_url,this.is_custom_supported=e.is_custom_supported,this.error_message=e.error_message}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading_pipe=!1})},async issueEmail(){this.issuing=!0,await this.$post("email-box/"+this.mailbox.id+"/issue-email").then(e=>{this.email_pipe=e.email_pipe}).catch(e=>{this.$handleError(e)}).always(()=>{this.issuing=!1})},async copyToClipboard(e){try{await navigator.clipboard.writeText(e),this.copied=!0,this.$notify({type:"success",title:this.$t("Success"),message:this.$t("Copied to clipboard"),position:"bottom-right"}),setTimeout(()=>{this.copied=!1},2e3)}catch(t){}}},mounted(){"email"!==this.mailbox.box_type?this.$router.push({name:"box_settings",params:{box_id:this.mailbox.id}}):this.loadPipeStatus()}},[["render",function(e,t,a,i,s,n){const o=OL,r=wR,l=vk,c=oC;return Hd(),jd("div",cCe,["not_issued"===s.email_pipe.status?(Hd(),jd("div",dCe,[eu("div",uCe,[eu("h1",pCe,fe(e.$t("Email Piping")),1)])])):ou("",!0),s.loading_pipe?(Hd(),jd("div",hCe,[tu(o,{rows:5,animated:""})])):s.email_pipe?(Hd(),jd("div",gCe,["not_issued"===s.email_pipe.status?(Hd(),jd("div",mCe,[eu("h2",fCe,fe(e.$t("You are almost done"))+"🎉",1),eu("p",_Ce,fe(e.$t("Connect your email address with Fluent Support Email parser, so when your customers send an email or reply from email it will be synced with your support portal")),1),eu("div",bCe,[eu("div",vCe,[tu(r,{modelValue:s.terms_agree,"onUpdate:modelValue":t[0]||(t[0]=e=>s.terms_agree=e),class:"fs_terms_checkbox"},{default:br(()=>[su(fe(e.$t("I agree with the Fluent Support email parsing"))+" ",1),eu("a",yCe,fe(e.$t("Terms & Condition")),1)],void 0),_:1},8,["modelValue"])]),tu(l,{onClick:t[1]||(t[1]=e=>n.issueEmail()),type:"primary",class:"fs_save_settings_btn",disabled:!s.terms_agree,loading:s.issuing},{default:br(()=>[su(fe(e.$t("Get Piping Email Details")),1)],void 0),_:1},8,["disabled","loading"])])])):"issued"==s.email_pipe.status?(Hd(),jd("div",SCe,[eu("h2",xCe,fe(e.$t("Your masked mailbox email has been issued")),1),eu("p",wCe,[su(fe(e.$t("Please enable auto-forwarding your emails from"))+" ",1),eu("strong",null,fe(a.mailbox.email),1),su(" "+fe(e.$t("to this following address.")),1)]),eu("div",ECe,[eu("div",CCe,[tu(c,{readonly:!0,modelValue:s.email_pipe.mapped_email,"onUpdate:modelValue":t[2]||(t[2]=e=>s.email_pipe.mapped_email=e),class:"fs_text_input fs_text_input_40"},null,8,["modelValue"]),tu(l,{onClick:t[3]||(t[3]=e=>n.copyToClipboard(s.email_pipe.mapped_email)),class:"fs_copy_btn",size:"small"},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/copy.svg",alt:""},null,8,kCe)],void 0),_:1})]),tu(l,{onClick:t[4]||(t[4]=e=>n.loadPipeStatus()),type:"primary",style:{width:"fit-content"},class:"fs_save_settings_btn"},{default:br(()=>[su(fe(e.$t("I have done it")),1)],void 0),_:1}),eu("div",TCe,[eu("p",null,[su(fe(e.$t("Once you activate the auto-forward for"))+" ",1),eu("strong",null,fe(a.mailbox.email),1),su(", "+fe(e.$t("the status will be active.")),1)]),eu("p",null,fe(e.$t("For the confirmation email from your email service provider, please check the latest ticket. A new ticket should be created with confirmation code.")),1),eu("p",null,[eu("a",ACe,fe(e.$t("Read the email piping documentation")),1)])])])])):"active"==s.email_pipe.status?(Hd(),jd("div",RCe,[eu("h2",OCe,fe(e.$t("Your mailbox is active.")),1),eu("p",NCe,fe(e.$t("All the forwarded emails to this address will be synced with your tickets. Below is your mask email address")),1),t[9]||(t[9]=eu("div",{class:"fs_piping_form"},null,-1)),eu("div",ICe,[tu(c,{readonly:!0,modelValue:s.email_pipe.mapped_email,"onUpdate:modelValue":t[5]||(t[5]=e=>s.email_pipe.mapped_email=e),class:"fs_text_input fs_text_input_40"},null,8,["modelValue"]),tu(l,{onClick:t[6]||(t[6]=e=>n.copyToClipboard(s.email_pipe.mapped_email)),class:"fs_copy_btn",size:"small"},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/copy.svg",alt:""},null,8,DCe)],void 0),_:1})])])):(Hd(),jd("div",MCe,[eu("h2",LCe,fe(s.error_message),1),eu("p",PCe,[su(fe(e.$t("Please contact with"))+" ",1),t[10]||(t[10]=eu("a",{href:"https://wpmanageninja.com/support-tickets/#/",target:"_blank",class:"fs_support_link"}," WPManageNinja Support ",-1))])])),s.is_custom_supported?(Hd(),jd("div",FCe,[eu("div",$Ce,[eu("p",BCe,fe(e.$t("If you want to connect with your own email parser please use this following URL to send payload data")),1),eu("div",VCe,[tu(c,{readonly:!0,modelValue:s.webhook_url,"onUpdate:modelValue":t[7]||(t[7]=e=>s.webhook_url=e),class:"fs_text_input fs_text_input_40"},null,8,["modelValue"]),tu(l,{onClick:t[8]||(t[8]=e=>n.copyToClipboard(s.webhook_url)),class:"fs_copy_btn",size:"small"},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"images/copy.svg",alt:""},null,8,UCe)],void 0),_:1})])])])):ou("",!0)])):(Hd(),jd("div",HCe,fe(e.$t("Settings could not be loaded")),1))])}]]);function YCe(e){return e+.5|0}const GCe=(e,t,a)=>Math.max(Math.min(e,a),t);function WCe(e){return GCe(YCe(2.55*e),0,255)}function jCe(e){return GCe(YCe(255*e),0,255)}function qCe(e){return GCe(YCe(e/2.55)/100,0,1)}function KCe(e){return GCe(YCe(100*e),0,100)}const XCe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},QCe=[..."0123456789ABCDEF"],ZCe=e=>QCe[15&e],JCe=e=>QCe[(240&e)>>4]+QCe[15&e],eke=e=>(240&e)>>4==(15&e);function tke(e){var t=(e=>eke(e.r)&&eke(e.g)&&eke(e.b)&&eke(e.a))(e)?ZCe:JCe;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const ake=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ike(e,t,a){const i=t*Math.min(a,1-a),s=(t,s=(t+e/30)%12)=>a-i*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function ske(e,t,a){const i=(i,s=(i+e/60)%6)=>a-a*t*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function nke(e,t,a){const i=ike(e,1,.5);let s;for(t+a>1&&(s=1/(t+a),t*=s,a*=s),s=0;s<3;s++)i[s]*=1-t-a,i[s]+=t;return i}function oke(e){const t=e.r/255,a=e.g/255,i=e.b/255,s=Math.max(t,a,i),n=Math.min(t,a,i),o=(s+n)/2;let r,l,c;return s!==n&&(c=s-n,l=o>.5?c/(2-s-n):c/(s+n),r=function(e,t,a,i,s){return e===s?(t-a)/i+(t<a?6:0):t===s?(a-e)/i+2:(e-t)/i+4}(t,a,i,c,s),r=60*r+.5),[0|r,l||0,o]}function rke(e,t,a,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,a,i)).map(jCe)}function lke(e,t,a){return rke(ike,e,t,a)}function cke(e){return(e%360+360)%360}function dke(e){const t=ake.exec(e);let a,i=255;if(!t)return;t[5]!==a&&(i=t[6]?WCe(+t[5]):jCe(+t[5]));const s=cke(+t[2]),n=+t[3]/100,o=+t[4]/100;return a="hwb"===t[1]?function(e,t,a){return rke(nke,e,t,a)}(s,n,o):"hsv"===t[1]?function(e,t,a){return rke(ske,e,t,a)}(s,n,o):lke(s,n,o),{r:a[0],g:a[1],b:a[2],a:i}}const uke={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},pke={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let hke;function gke(e){hke||(hke=function(){const e={},t=Object.keys(pke),a=Object.keys(uke);let i,s,n,o,r;for(i=0;i<t.length;i++){for(o=r=t[i],s=0;s<a.length;s++)n=a[s],r=r.replace(n,uke[n]);n=parseInt(pke[o],16),e[r]=[n>>16&255,n>>8&255,255&n]}return e}(),hke.transparent=[0,0,0,0]);const t=hke[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const mke=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const fke=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,_ke=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function bke(e,t,a){if(e){let i=oke(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*a,0===t?360:1)),i=lke(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function vke(e,t){return e?Object.assign(t||{},e):e}function yke(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=jCe(e[3]))):(t=vke(e,{r:0,g:0,b:0,a:1})).a=jCe(t.a),t}function Ske(e){return"r"===e.charAt(0)?function(e){const t=mke.exec(e);let a,i,s,n=255;if(t){if(t[7]!==a){const e=+t[7];n=t[8]?WCe(e):GCe(255*e,0,255)}return a=+t[1],i=+t[3],s=+t[5],a=255&(t[2]?WCe(a):GCe(a,0,255)),i=255&(t[4]?WCe(i):GCe(i,0,255)),s=255&(t[6]?WCe(s):GCe(s,0,255)),{r:a,g:i,b:s,a:n}}}(e):dke(e)}class xke{constructor(e){if(e instanceof xke)return e;const t=typeof e;let a;var i,s,n;"object"===t?a=yke(e):"string"===t&&(n=(i=e).length,"#"===i[0]&&(4===n||5===n?s={r:255&17*XCe[i[1]],g:255&17*XCe[i[2]],b:255&17*XCe[i[3]],a:5===n?17*XCe[i[4]]:255}:7!==n&&9!==n||(s={r:XCe[i[1]]<<4|XCe[i[2]],g:XCe[i[3]]<<4|XCe[i[4]],b:XCe[i[5]]<<4|XCe[i[6]],a:9===n?XCe[i[7]]<<4|XCe[i[8]]:255})),a=s||gke(e)||Ske(e)),this._rgb=a,this._valid=!!a}get valid(){return this._valid}get rgb(){var e=vke(this._rgb);return e&&(e.a=qCe(e.a)),e}set rgb(e){this._rgb=yke(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${qCe(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?tke(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=oke(e),a=t[0],i=KCe(t[1]),s=KCe(t[2]);return e.a<255?`hsla(${a}, ${i}%, ${s}%, ${qCe(e.a)})`:`hsl(${a}, ${i}%, ${s}%)`}(this._rgb):void 0}mix(e,t){if(e){const a=this.rgb,i=e.rgb;let s;const n=t===s?.5:t,o=2*n-1,r=a.a-i.a,l=((o*r===-1?o:(o+r)/(1+o*r))+1)/2;s=1-l,a.r=255&l*a.r+s*i.r+.5,a.g=255&l*a.g+s*i.g+.5,a.b=255&l*a.b+s*i.b+.5,a.a=n*a.a+(1-n)*i.a,this.rgb=a}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,a){const i=_ke(qCe(e.r)),s=_ke(qCe(e.g)),n=_ke(qCe(e.b));return{r:jCe(fke(i+a*(_ke(qCe(t.r))-i))),g:jCe(fke(s+a*(_ke(qCe(t.g))-s))),b:jCe(fke(n+a*(_ke(qCe(t.b))-n))),a:e.a+a*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new xke(this.rgb)}alpha(e){return this._rgb.a=jCe(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=YCe(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return bke(this._rgb,2,e),this}darken(e){return bke(this._rgb,2,-e),this}saturate(e){return bke(this._rgb,1,e),this}desaturate(e){return bke(this._rgb,1,-e),this}rotate(e){return function(e,t){var a=oke(e);a[0]=cke(a[0]+t),a=lke(a),e.r=a[0],e.g=a[1],e.b=a[2]}(this._rgb,e),this}}function wke(){}const Eke=(()=>{let e=0;return()=>e++})();function Cke(e){return null==e}function kke(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function Tke(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function Ake(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function Rke(e,t){return Ake(e)?e:t}function Oke(e,t){return void 0===e?t:e}const Nke=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ike(e,t,a){if(e&&"function"==typeof e.call)return e.apply(a,t)}function Dke(e,t,a,i){let s,n,o;if(kke(e))for(n=e.length,s=0;s<n;s++)t.call(a,e[s],s);else if(Tke(e))for(o=Object.keys(e),n=o.length,s=0;s<n;s++)t.call(a,e[o[s]],o[s])}function Mke(e,t){let a,i,s,n;if(!e||!t||e.length!==t.length)return!1;for(a=0,i=e.length;a<i;++a)if(s=e[a],n=t[a],s.datasetIndex!==n.datasetIndex||s.index!==n.index)return!1;return!0}function Lke(e){if(kke(e))return e.map(Lke);if(Tke(e)){const t=Object.create(null),a=Object.keys(e),i=a.length;let s=0;for(;s<i;++s)t[a[s]]=Lke(e[a[s]]);return t}return e}function Pke(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Fke(e,t,a,i){if(!Pke(e))return;const s=t[e],n=a[e];Tke(s)&&Tke(n)?$ke(s,n,i):t[e]=Lke(n)}function $ke(e,t,a){const i=kke(t)?t:[t],s=i.length;if(!Tke(e))return e;const n=(a=a||{}).merger||Fke;let o;for(let r=0;r<s;++r){if(o=i[r],!Tke(o))continue;const t=Object.keys(o);for(let i=0,s=t.length;i<s;++i)n(t[i],e,o,a)}return e}function Bke(e,t){return $ke(e,t,{merger:Vke})}function Vke(e,t,a){if(!Pke(e))return;const i=t[e],s=a[e];Tke(i)&&Tke(s)?Bke(i,s):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Lke(s))}const Uke={"":e=>e,x:e=>e.x,y:e=>e.y};function Hke(e,t){const a=Uke[t]||(Uke[t]=function(e){const t=function(e){const t=e.split("."),a=[];let i="";for(const s of t)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(a.push(i),i="");return a}(e);return e=>{for(const a of t){if(""===a)break;e=e&&e[a]}return e}}(t));return a(e)}function zke(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Yke=e=>void 0!==e,Gke=e=>"function"==typeof e,Wke=(e,t)=>{if(e.size!==t.size)return!1;for(const a of e)if(!t.has(a))return!1;return!0};const jke=Math.PI,qke=2*jke,Kke=qke+jke,Xke=Number.POSITIVE_INFINITY,Qke=jke/180,Zke=jke/2,Jke=jke/4,eTe=2*jke/3,tTe=Math.log10,aTe=Math.sign;function iTe(e,t,a){return Math.abs(e-t)<a}function sTe(e){const t=Math.round(e);e=iTe(e,t,e/1e3)?t:e;const a=Math.pow(10,Math.floor(tTe(e))),i=e/a;return(i<=1?1:i<=2?2:i<=5?5:10)*a}function nTe(e){return!function(e){return"symbol"==typeof e||"object"==typeof e&&null!==e&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function oTe(e,t,a){let i,s,n;for(i=0,s=e.length;i<s;i++)n=e[i][a],isNaN(n)||(t.min=Math.min(t.min,n),t.max=Math.max(t.max,n))}function rTe(e){return e*(jke/180)}function lTe(e){return e*(180/jke)}function cTe(e){if(!Ake(e))return;let t=1,a=0;for(;Math.round(e*t)/t!==e;)t*=10,a++;return a}function dTe(e,t){const a=t.x-e.x,i=t.y-e.y,s=Math.sqrt(a*a+i*i);let n=Math.atan2(i,a);return n<-.5*jke&&(n+=qke),{angle:n,distance:s}}function uTe(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function pTe(e,t){return(e-t+Kke)%qke-jke}function hTe(e){return(e%qke+qke)%qke}function gTe(e,t,a,i){const s=hTe(e),n=hTe(t),o=hTe(a),r=hTe(n-s),l=hTe(o-s),c=hTe(s-n),d=hTe(s-o);return s===n||s===o||i&&n===o||r>l&&c<d}function mTe(e,t,a){return Math.max(t,Math.min(a,e))}function fTe(e,t,a,i=1e-6){return e>=Math.min(t,a)-i&&e<=Math.max(t,a)+i}function _Te(e,t,a){a=a||(a=>e[a]<t);let i,s=e.length-1,n=0;for(;s-n>1;)i=n+s>>1,a(i)?n=i:s=i;return{lo:n,hi:s}}const bTe=(e,t,a,i)=>_Te(e,a,i?i=>{const s=e[i][t];return s<a||s===a&&e[i+1][t]===a}:i=>e[i][t]<a),vTe=(e,t,a)=>_Te(e,a,i=>e[i][t]>=a);const yTe=["push","pop","shift","splice","unshift"];function STe(e,t){const a=e._chartjs;if(!a)return;const i=a.listeners,s=i.indexOf(t);-1!==s&&i.splice(s,1),i.length>0||(yTe.forEach(t=>{delete e[t]}),delete e._chartjs)}function xTe(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const wTe="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function ETe(e,t){let a=[],i=!1;return function(...s){a=s,i||(i=!0,wTe.call(window,()=>{i=!1,e.apply(t,a)}))}}const CTe=e=>"start"===e?"left":"end"===e?"right":"center",kTe=(e,t,a)=>"start"===e?t:"end"===e?a:(t+a)/2;function TTe(e,t,a){const i=t.length;let s=0,n=i;if(e._sorted){const{iScale:o,vScale:r,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,d=o.axis,{min:u,max:p,minDefined:h,maxDefined:g}=o.getUserBounds();if(h){if(s=Math.min(bTe(l,d,u).lo,a?i:bTe(t,d,o.getPixelForValue(u)).lo),c){const e=l.slice(0,s+1).reverse().findIndex(e=>!Cke(e[r.axis]));s-=Math.max(0,e)}s=mTe(s,0,i-1)}if(g){let e=Math.max(bTe(l,o.axis,p,!0).hi+1,a?0:bTe(t,d,o.getPixelForValue(p),!0).hi+1);if(c){const t=l.slice(e-1).findIndex(e=>!Cke(e[r.axis]));e+=Math.max(0,t)}n=mTe(e,s,i)-s}else n=i-s}return{start:s,count:n}}function ATe(e){const{xScale:t,yScale:a,_scaleRanges:i}=e,s={xmin:t.min,xmax:t.max,ymin:a.min,ymax:a.max};if(!i)return e._scaleRanges=s,!0;const n=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==a.min||i.ymax!==a.max;return Object.assign(i,s),n}const RTe=e=>0===e||1===e,OTe=(e,t,a)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*qke/a),NTe=(e,t,a)=>Math.pow(2,-10*e)*Math.sin((e-t)*qke/a)+1,ITe={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*Zke),easeOutSine:e=>Math.sin(e*Zke),easeInOutSine:e=>-.5*(Math.cos(jke*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>RTe(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>RTe(e)?e:OTe(e,.075,.3),easeOutElastic:e=>RTe(e)?e:NTe(e,.075,.3),easeInOutElastic(e){const t=.1125;return RTe(e)?e:e<.5?.5*OTe(2*e,t,.45):.5+.5*NTe(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-ITe.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,a=2.75;return e<1/a?t*e*e:e<2/a?t*(e-=1.5/a)*e+.75:e<2.5/a?t*(e-=2.25/a)*e+.9375:t*(e-=2.625/a)*e+.984375},easeInOutBounce:e=>e<.5?.5*ITe.easeInBounce(2*e):.5*ITe.easeOutBounce(2*e-1)+.5};function DTe(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function MTe(e){return DTe(e)?e:new xke(e)}function LTe(e){return DTe(e)?e:new xke(e).saturate(.5).darken(.1).hexString()}const PTe=["x","y","borderWidth","radius","tension"],FTe=["color","borderColor","backgroundColor"];const $Te=new Map;function BTe(e,t,a){return function(e,t){t=t||{};const a=e+JSON.stringify(t);let i=$Te.get(a);return i||(i=new Intl.NumberFormat(e,t),$Te.set(a,i)),i}(t,a).format(e)}const VTe={values:e=>kke(e)?e:""+e,numeric(e,t,a){if(0===e)return"0";const i=this.chart.options.locale;let s,n=e;if(a.length>1){const t=Math.max(Math.abs(a[0].value),Math.abs(a[a.length-1].value));(t<1e-4||t>1e15)&&(s="scientific"),n=function(e,t){let a=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(a)>=1&&e!==Math.floor(e)&&(a=e-Math.floor(e));return a}(e,a)}const o=tTe(Math.abs(n)),r=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:s,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),BTe(e,i,l)},logarithmic(e,t,a){if(0===e)return"0";const i=a[t].significand||e/Math.pow(10,Math.floor(tTe(e)));return[1,2,3,5,10,15].includes(i)||t>.8*a.length?VTe.numeric.call(this,e,t,a):""}};var UTe={formatters:VTe};const HTe=Object.create(null),zTe=Object.create(null);function YTe(e,t){if(!t)return e;const a=t.split(".");for(let i=0,s=a.length;i<s;++i){const t=a[i];e=e[t]||(e[t]=Object.create(null))}return e}function GTe(e,t,a){return"string"==typeof t?$ke(YTe(e,t),a):$ke(YTe(e,""),t)}let WTe=class{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>LTe(t.backgroundColor),this.hoverBorderColor=(e,t)=>LTe(t.borderColor),this.hoverColor=(e,t)=>LTe(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return GTe(this,e,t)}get(e){return YTe(this,e)}describe(e,t){return GTe(zTe,e,t)}override(e,t){return GTe(HTe,e,t)}route(e,t,a,i){const s=YTe(this,e),n=YTe(this,a),o="_"+t;Object.defineProperties(s,{[o]:{value:s[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[o],t=n[i];return Tke(e)?Object.assign({},t,e):Oke(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach(e=>e(this))}};var jTe=new WTe({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:FTe},numbers:{type:"number",properties:PTe}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:UTe.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function qTe(e,t,a,i,s){let n=t[s];return n||(n=t[s]=e.measureText(s).width,a.push(s)),n>i&&(i=n),i}function KTe(e,t,a,i){let s=(i=i||{}).data=i.data||{},n=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(s=i.data={},n=i.garbageCollect=[],i.font=t),e.save(),e.font=t;let o=0;const r=a.length;let l,c,d,u,p;for(l=0;l<r;l++)if(u=a[l],null==u||kke(u)){if(kke(u))for(c=0,d=u.length;c<d;c++)p=u[c],null==p||kke(p)||(o=qTe(e,s,n,o,p))}else o=qTe(e,s,n,o,u);e.restore();const h=n.length/2;if(h>a.length){for(l=0;l<h;l++)delete s[n[l]];n.splice(0,h)}return o}function XTe(e,t,a){const i=e.currentDevicePixelRatio,s=0!==a?Math.max(a/2,.5):0;return Math.round((t-s)*i)/i+s}function QTe(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function ZTe(e,t,a,i){JTe(e,t,a,i,null)}function JTe(e,t,a,i,s){let n,o,r,l,c,d,u,p;const h=t.pointStyle,g=t.rotation,m=t.radius;let f=(g||0)*Qke;if(h&&"object"==typeof h&&(n=h.toString(),"[object HTMLImageElement]"===n||"[object HTMLCanvasElement]"===n))return e.save(),e.translate(a,i),e.rotate(f),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void e.restore();if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:s?e.ellipse(a,i,s/2,m,0,0,qke):e.arc(a,i,m,0,qke),e.closePath();break;case"triangle":d=s?s/2:m,e.moveTo(a+Math.sin(f)*d,i-Math.cos(f)*m),f+=eTe,e.lineTo(a+Math.sin(f)*d,i-Math.cos(f)*m),f+=eTe,e.lineTo(a+Math.sin(f)*d,i-Math.cos(f)*m),e.closePath();break;case"rectRounded":c=.516*m,l=m-c,o=Math.cos(f+Jke)*l,u=Math.cos(f+Jke)*(s?s/2-c:l),r=Math.sin(f+Jke)*l,p=Math.sin(f+Jke)*(s?s/2-c:l),e.arc(a-u,i-r,c,f-jke,f-Zke),e.arc(a+p,i-o,c,f-Zke,f),e.arc(a+u,i+r,c,f,f+Zke),e.arc(a-p,i+o,c,f+Zke,f+jke),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,d=s?s/2:l,e.rect(a-d,i-l,2*d,2*l);break}f+=Jke;case"rectRot":u=Math.cos(f)*(s?s/2:m),o=Math.cos(f)*m,r=Math.sin(f)*m,p=Math.sin(f)*(s?s/2:m),e.moveTo(a-u,i-r),e.lineTo(a+p,i-o),e.lineTo(a+u,i+r),e.lineTo(a-p,i+o),e.closePath();break;case"crossRot":f+=Jke;case"cross":u=Math.cos(f)*(s?s/2:m),o=Math.cos(f)*m,r=Math.sin(f)*m,p=Math.sin(f)*(s?s/2:m),e.moveTo(a-u,i-r),e.lineTo(a+u,i+r),e.moveTo(a+p,i-o),e.lineTo(a-p,i+o);break;case"star":u=Math.cos(f)*(s?s/2:m),o=Math.cos(f)*m,r=Math.sin(f)*m,p=Math.sin(f)*(s?s/2:m),e.moveTo(a-u,i-r),e.lineTo(a+u,i+r),e.moveTo(a+p,i-o),e.lineTo(a-p,i+o),f+=Jke,u=Math.cos(f)*(s?s/2:m),o=Math.cos(f)*m,r=Math.sin(f)*m,p=Math.sin(f)*(s?s/2:m),e.moveTo(a-u,i-r),e.lineTo(a+u,i+r),e.moveTo(a+p,i-o),e.lineTo(a-p,i+o);break;case"line":o=s?s/2:Math.cos(f)*m,r=Math.sin(f)*m,e.moveTo(a-o,i-r),e.lineTo(a+o,i+r);break;case"dash":e.moveTo(a,i),e.lineTo(a+Math.cos(f)*(s?s/2:m),i+Math.sin(f)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function eAe(e,t,a){return a=a||.5,!t||e&&e.x>t.left-a&&e.x<t.right+a&&e.y>t.top-a&&e.y<t.bottom+a}function tAe(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function aAe(e){e.restore()}function iAe(e,t,a,i,s){if(!t)return e.lineTo(a.x,a.y);if("middle"===s){const i=(t.x+a.x)/2;e.lineTo(i,t.y),e.lineTo(i,a.y)}else"after"===s!=!!i?e.lineTo(t.x,a.y):e.lineTo(a.x,t.y);e.lineTo(a.x,a.y)}function sAe(e,t,a,i){if(!t)return e.lineTo(a.x,a.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?a.cp2x:a.cp1x,i?a.cp2y:a.cp1y,a.x,a.y)}function nAe(e,t,a,i,s){if(s.strikethrough||s.underline){const n=e.measureText(i),o=t-n.actualBoundingBoxLeft,r=t+n.actualBoundingBoxRight,l=a-n.actualBoundingBoxAscent,c=a+n.actualBoundingBoxDescent,d=s.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=s.decorationWidth||2,e.moveTo(o,d),e.lineTo(r,d),e.stroke()}}function oAe(e,t){const a=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=a}function rAe(e,t,a,i,s,n={}){const o=kke(t)?t:[t],r=n.strokeWidth>0&&""!==n.strokeColor;let l,c;for(e.save(),e.font=s.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Cke(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,n),l=0;l<o.length;++l)c=o[l],n.backdrop&&oAe(e,n.backdrop),r&&(n.strokeColor&&(e.strokeStyle=n.strokeColor),Cke(n.strokeWidth)||(e.lineWidth=n.strokeWidth),e.strokeText(c,a,i,n.maxWidth)),e.fillText(c,a,i,n.maxWidth),nAe(e,a,i,c,n),i+=Number(s.lineHeight);e.restore()}function lAe(e,t){const{x:a,y:i,w:s,h:n,radius:o}=t;e.arc(a+o.topLeft,i+o.topLeft,o.topLeft,1.5*jke,jke,!0),e.lineTo(a,i+n-o.bottomLeft),e.arc(a+o.bottomLeft,i+n-o.bottomLeft,o.bottomLeft,jke,Zke,!0),e.lineTo(a+s-o.bottomRight,i+n),e.arc(a+s-o.bottomRight,i+n-o.bottomRight,o.bottomRight,Zke,0,!0),e.lineTo(a+s,i+o.topRight),e.arc(a+s-o.topRight,i+o.topRight,o.topRight,0,-Zke,!0),e.lineTo(a+o.topLeft,i)}const cAe=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,dAe=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function uAe(e,t){const a=(""+e).match(cAe);if(!a||"normal"===a[1])return 1.2*t;switch(e=+a[2],a[3]){case"px":return e;case"%":e/=100}return t*e}const pAe=e=>+e||0;function hAe(e,t){const a={},i=Tke(t),s=i?Object.keys(t):t,n=Tke(e)?i?a=>Oke(e[a],e[t[a]]):t=>e[t]:()=>e;for(const o of s)a[o]=pAe(n(o));return a}function gAe(e){return hAe(e,{top:"y",right:"x",bottom:"y",left:"x"})}function mAe(e){return hAe(e,["topLeft","topRight","bottomLeft","bottomRight"])}function fAe(e){const t=gAe(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function _Ae(e,t){e=e||{},t=t||jTe.font;let a=Oke(e.size,t.size);"string"==typeof a&&(a=parseInt(a,10));let i=Oke(e.style,t.style);i&&!(""+i).match(dAe)&&(i=void 0);const s={family:Oke(e.family,t.family),lineHeight:uAe(Oke(e.lineHeight,t.lineHeight),a),size:a,style:i,weight:Oke(e.weight,t.weight),string:""};return s.string=function(e){return!e||Cke(e.size)||Cke(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(s),s}function bAe(e,t,a,i){let s,n,o;for(s=0,n=e.length;s<n;++s)if(o=e[s],void 0!==o&&void 0!==o)return o}function vAe(e,t){return Object.assign(Object.create(e),t)}function yAe(e,t=[""],a,i,s=()=>e[0]){const n=a||e;void 0===i&&(i=NAe("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:i,_getTarget:s,override:a=>yAe([a,...e],t,n,i)};return new Proxy(o,{deleteProperty:(t,a)=>(delete t[a],delete t._keys,delete e[0][a],!0),get:(a,i)=>CAe(a,i,()=>function(e,t,a,i){let s;for(const n of t)if(s=NAe(wAe(n,e),a),void 0!==s)return EAe(e,s)?RAe(a,i,e,s):s}(i,t,e,a)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>IAe(e).includes(t),ownKeys:e=>IAe(e),set(e,t,a){const i=e._storage||(e._storage=s());return e[t]=i[t]=a,delete e._keys,!0}})}function SAe(e,t,a,i){const s={_cacheable:!1,_proxy:e,_context:t,_subProxy:a,_stack:new Set,_descriptors:xAe(e,i),setContext:t=>SAe(e,t,a,i),override:s=>SAe(e.override(s),t,a,i)};return new Proxy(s,{deleteProperty:(t,a)=>(delete t[a],delete e[a],!0),get:(e,t,a)=>CAe(e,t,()=>function(e,t,a){const{_proxy:i,_context:s,_subProxy:n,_descriptors:o}=e;let r=i[t];Gke(r)&&o.isScriptable(t)&&(r=function(e,t,a,i){const{_proxy:s,_context:n,_subProxy:o,_stack:r}=a;if(r.has(e))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+e);r.add(e);let l=t(n,o||i);r.delete(e),EAe(e,l)&&(l=RAe(s._scopes,s,e,l));return l}(t,r,e,a));kke(r)&&r.length&&(r=function(e,t,a,i){const{_proxy:s,_context:n,_subProxy:o,_descriptors:r}=a;if(void 0!==n.index&&i(e))return t[n.index%t.length];if(Tke(t[0])){const a=t,i=s._scopes.filter(e=>e!==a);t=[];for(const l of a){const a=RAe(i,s,e,l);t.push(SAe(a,n,o&&o[e],r))}}return t}(t,r,e,o.isIndexable));EAe(t,r)&&(r=SAe(r,s,n&&n[t],o));return r}(e,t,a)),getOwnPropertyDescriptor:(t,a)=>t._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,a)=>Reflect.has(e,a),ownKeys:()=>Reflect.ownKeys(e),set:(t,a,i)=>(e[a]=i,delete t[a],!0)})}function xAe(e,t={scriptable:!0,indexable:!0}){const{_scriptable:a=t.scriptable,_indexable:i=t.indexable,_allKeys:s=t.allKeys}=e;return{allKeys:s,scriptable:a,indexable:i,isScriptable:Gke(a)?a:()=>a,isIndexable:Gke(i)?i:()=>i}}const wAe=(e,t)=>e?e+zke(t):t,EAe=(e,t)=>Tke(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function CAe(e,t,a){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const i=a();return e[t]=i,i}function kAe(e,t,a){return Gke(e)?e(t,a):e}const TAe=(e,t)=>!0===e?t:"string"==typeof e?Hke(t,e):void 0;function AAe(e,t,a,i,s){for(const n of t){const t=TAe(a,n);if(t){e.add(t);const n=kAe(t._fallback,a,s);if(void 0!==n&&n!==a&&n!==i)return n}else if(!1===t&&void 0!==i&&a!==i)return null}return!1}function RAe(e,t,a,i){const s=t._rootScopes,n=kAe(t._fallback,a,i),o=[...e,...s],r=new Set;r.add(i);let l=OAe(r,o,a,n||a,i);return null!==l&&((void 0===n||n===a||(l=OAe(r,o,n,l,i),null!==l))&&yAe(Array.from(r),[""],s,n,()=>function(e,t,a){const i=e._getTarget();t in i||(i[t]={});const s=i[t];if(kke(s)&&Tke(a))return a;return s||{}}(t,a,i)))}function OAe(e,t,a,i,s){for(;a;)a=AAe(e,t,a,i,s);return a}function NAe(e,t){for(const a of t){if(!a)continue;const t=a[e];if(void 0!==t)return t}}function IAe(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const a of e)for(const e of Object.keys(a).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function DAe(e,t,a,i){const{iScale:s}=e,{key:n="r"}=this._parsing,o=new Array(i);let r,l,c,d;for(r=0,l=i;r<l;++r)c=r+a,d=t[c],o[r]={r:s.parse(Hke(d,n),c)};return o}const MAe=Number.EPSILON||1e-14,LAe=(e,t)=>t<e.length&&!e[t].skip&&e[t],PAe=e=>"x"===e?"y":"x";function FAe(e,t,a,i){const s=e.skip?t:e,n=t,o=a.skip?t:a,r=uTe(n,s),l=uTe(o,n);let c=r/(r+l),d=l/(r+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const u=i*c,p=i*d;return{previous:{x:n.x-u*(o.x-s.x),y:n.y-u*(o.y-s.y)},next:{x:n.x+p*(o.x-s.x),y:n.y+p*(o.y-s.y)}}}function $Ae(e,t="x"){const a=PAe(t),i=e.length,s=Array(i).fill(0),n=Array(i);let o,r,l,c=LAe(e,0);for(o=0;o<i;++o)if(r=l,l=c,c=LAe(e,o+1),l){if(c){const e=c[t]-l[t];s[o]=0!==e?(c[a]-l[a])/e:0}n[o]=r?c?aTe(s[o-1])!==aTe(s[o])?0:(s[o-1]+s[o])/2:s[o-1]:s[o]}!function(e,t,a){const i=e.length;let s,n,o,r,l,c=LAe(e,0);for(let d=0;d<i-1;++d)l=c,c=LAe(e,d+1),l&&c&&(iTe(t[d],0,MAe)?a[d]=a[d+1]=0:(s=a[d]/t[d],n=a[d+1]/t[d],r=Math.pow(s,2)+Math.pow(n,2),r<=9||(o=3/Math.sqrt(r),a[d]=s*o*t[d],a[d+1]=n*o*t[d])))}(e,s,n),function(e,t,a="x"){const i=PAe(a),s=e.length;let n,o,r,l=LAe(e,0);for(let c=0;c<s;++c){if(o=r,r=l,l=LAe(e,c+1),!r)continue;const s=r[a],d=r[i];o&&(n=(s-o[a])/3,r[`cp1${a}`]=s-n,r[`cp1${i}`]=d-n*t[c]),l&&(n=(l[a]-s)/3,r[`cp2${a}`]=s+n,r[`cp2${i}`]=d+n*t[c])}}(e,n,t)}function BAe(e,t,a){return Math.max(Math.min(e,a),t)}function VAe(e,t,a,i,s){let n,o,r,l;if(t.spanGaps&&(e=e.filter(e=>!e.skip)),"monotone"===t.cubicInterpolationMode)$Ae(e,s);else{let a=i?e[e.length-1]:e[0];for(n=0,o=e.length;n<o;++n)r=e[n],l=FAe(a,r,e[Math.min(n+1,o-(i?0:1))%o],t.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,a=r}t.capBezierPoints&&function(e,t){let a,i,s,n,o,r=eAe(e[0],t);for(a=0,i=e.length;a<i;++a)o=n,n=r,r=a<i-1&&eAe(e[a+1],t),n&&(s=e[a],o&&(s.cp1x=BAe(s.cp1x,t.left,t.right),s.cp1y=BAe(s.cp1y,t.top,t.bottom)),r&&(s.cp2x=BAe(s.cp2x,t.left,t.right),s.cp2y=BAe(s.cp2y,t.top,t.bottom)))}(e,a)}function UAe(){return"undefined"!=typeof window&&"undefined"!=typeof document}function HAe(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function zAe(e,t,a){let i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*t.parentNode[a])):i=e,i}const YAe=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const GAe=["top","right","bottom","left"];function WAe(e,t,a){const i={};a=a?"-"+a:"";for(let s=0;s<4;s++){const n=GAe[s];i[n]=parseFloat(e[t+"-"+n+a])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function jAe(e,t){if("native"in e)return e;const{canvas:a,currentDevicePixelRatio:i}=t,s=YAe(a),n="border-box"===s.boxSizing,o=WAe(s,"padding"),r=WAe(s,"border","width"),{x:l,y:c,box:d}=function(e,t){const a=e.touches,i=a&&a.length?a[0]:e,{offsetX:s,offsetY:n}=i;let o,r,l=!1;if(((e,t,a)=>(e>0||t>0)&&(!a||!a.shadowRoot))(s,n,e.target))o=s,r=n;else{const e=t.getBoundingClientRect();o=i.clientX-e.left,r=i.clientY-e.top,l=!0}return{x:o,y:r,box:l}}(e,a),u=o.left+(d&&r.left),p=o.top+(d&&r.top);let{width:h,height:g}=t;return n&&(h-=o.width+r.width,g-=o.height+r.height),{x:Math.round((l-u)/h*a.width/i),y:Math.round((c-p)/g*a.height/i)}}const qAe=e=>Math.round(10*e)/10;function KAe(e,t,a,i){const s=YAe(e),n=WAe(s,"margin"),o=zAe(s.maxWidth,e,"clientWidth")||Xke,r=zAe(s.maxHeight,e,"clientHeight")||Xke,l=function(e,t,a){let i,s;if(void 0===t||void 0===a){const n=e&&HAe(e);if(n){const e=n.getBoundingClientRect(),o=YAe(n),r=WAe(o,"border","width"),l=WAe(o,"padding");t=e.width-l.width-r.width,a=e.height-l.height-r.height,i=zAe(o.maxWidth,n,"clientWidth"),s=zAe(o.maxHeight,n,"clientHeight")}else t=e.clientWidth,a=e.clientHeight}return{width:t,height:a,maxWidth:i||Xke,maxHeight:s||Xke}}(e,t,a);let{width:c,height:d}=l;if("content-box"===s.boxSizing){const e=WAe(s,"border","width"),t=WAe(s,"padding");c-=t.width+e.width,d-=t.height+e.height}c=Math.max(0,c-n.width),d=Math.max(0,i?c/i:d-n.height),c=qAe(Math.min(c,o,l.maxWidth)),d=qAe(Math.min(d,r,l.maxHeight)),c&&!d&&(d=qAe(c/2));return(void 0!==t||void 0!==a)&&i&&l.height&&d>l.height&&(d=l.height,c=qAe(Math.floor(d*i))),{width:c,height:d}}function XAe(e,t,a){const i=t||1,s=qAe(e.height*i),n=qAe(e.width*i);e.height=qAe(e.height),e.width=qAe(e.width);const o=e.canvas;return o.style&&(a||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==i||o.height!==s||o.width!==n)&&(e.currentDevicePixelRatio=i,o.height=s,o.width=n,e.ctx.setTransform(i,0,0,i,0,0),!0)}const QAe=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};UAe()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(PI){}return e}();function ZAe(e,t){const a=function(e,t){return YAe(e).getPropertyValue(t)}(e,t),i=a&&a.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function JAe(e,t,a,i){return{x:e.x+a*(t.x-e.x),y:e.y+a*(t.y-e.y)}}function eRe(e,t,a,i){return{x:e.x+a*(t.x-e.x),y:"middle"===i?a<.5?e.y:t.y:"after"===i?a<1?e.y:t.y:a>0?t.y:e.y}}function tRe(e,t,a,i){const s={x:e.cp2x,y:e.cp2y},n={x:t.cp1x,y:t.cp1y},o=JAe(e,s,a),r=JAe(s,n,a),l=JAe(n,t,a),c=JAe(o,r,a),d=JAe(r,l,a);return JAe(c,d,a)}function aRe(e,t,a){return e?function(e,t){return{x:a=>e+e+t-a,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,a):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function iRe(e,t){let a,i;"ltr"!==t&&"rtl"!==t||(a=e.canvas.style,i=[a.getPropertyValue("direction"),a.getPropertyPriority("direction")],a.setProperty("direction",t,"important"),e.prevTextDirection=i)}function sRe(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function nRe(e){return"angle"===e?{between:gTe,compare:pTe,normalize:hTe}:{between:fTe,compare:(e,t)=>e-t,normalize:e=>e}}function oRe({start:e,end:t,count:a,loop:i,style:s}){return{start:e%a,end:t%a,loop:i&&(t-e+1)%a==0,style:s}}function rRe(e,t,a){if(!a)return[e];const{property:i,start:s,end:n}=a,o=t.length,{compare:r,between:l,normalize:c}=nRe(i),{start:d,end:u,loop:p,style:h}=function(e,t,a){const{property:i,start:s,end:n}=a,{between:o,normalize:r}=nRe(i),l=t.length;let c,d,{start:u,end:p,loop:h}=e;if(h){for(u+=l,p+=l,c=0,d=l;c<d&&o(r(t[u%l][i]),s,n);++c)u--,p--;u%=l,p%=l}return p<u&&(p+=l),{start:u,end:p,loop:h,style:e.style}}(e,t,a),g=[];let m,f,_,b=!1,v=null;const y=()=>b||l(s,_,m)&&0!==r(s,_),S=()=>!b||0===r(n,m)||l(n,_,m);for(let x=d,w=d;x<=u;++x)f=t[x%o],f.skip||(m=c(f[i]),m!==_&&(b=l(m,s,n),null===v&&y()&&(v=0===r(m,s)?x:w),null!==v&&S()&&(g.push(oRe({start:v,end:x,loop:p,count:o,style:h})),v=null),w=x,_=m));return null!==v&&g.push(oRe({start:v,end:u,loop:p,count:o,style:h})),g}function lRe(e,t){const a=[],i=e.segments;for(let s=0;s<i.length;s++){const n=rRe(i[s],e.points,t);n.length&&a.push(...n)}return a}function cRe(e,t,a,i){return i&&i.setContext&&a?function(e,t,a,i){const s=e._chart.getContext(),n=dRe(e.options),{_datasetIndex:o,options:{spanGaps:r}}=e,l=a.length,c=[];let d=n,u=t[0].start,p=u;function h(e,t,i,s){const n=r?-1:1;if(e!==t){for(e+=l;a[e%l].skip;)e-=n;for(;a[t%l].skip;)t+=n;e%l!==t%l&&(c.push({start:e%l,end:t%l,loop:i,style:s}),d=s,u=t%l)}}for(const g of t){u=r?u:g.start;let e,t=a[u%l];for(p=u+1;p<=g.end;p++){const n=a[p%l];e=dRe(i.setContext(vAe(s,{type:"segment",p0:t,p1:n,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:o}))),uRe(e,d)&&h(u,p-1,g.loop,d),t=n,d=e}u<p-1&&h(u,p-1,g.loop,d)}return c}(e,t,a,i):t}function dRe(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function uRe(e,t){if(!t)return!1;const a=[],i=function(e,t){return DTe(t)?(a.includes(t)||a.push(t),a.indexOf(t)):t};return JSON.stringify(e,i)!==JSON.stringify(t,i)}function pRe(e,t,a){return e.options.clip?e[a]:t[a]}function hRe(e,t){const a=t._clip;if(a.disabled)return!1;const i=function(e,t){const{xScale:a,yScale:i}=e;return a&&i?{left:pRe(a,t,"left"),right:pRe(a,t,"right"),top:pRe(i,t,"top"),bottom:pRe(i,t,"bottom")}:t}(t,e.chartArea);return{left:!1===a.left?0:i.left-(!0===a.left?0:a.left),right:!1===a.right?e.width:i.right+(!0===a.right?0:a.right),top:!1===a.top?0:i.top-(!0===a.top?0:a.top),bottom:!1===a.bottom?e.height:i.bottom+(!0===a.bottom?0:a.bottom)}}class gRe{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,a,i){const s=t.listeners[i],n=t.duration;s.forEach(i=>i({chart:e,initial:t.initial,numSteps:n,currentStep:Math.min(a-t.start,n)}))}_refresh(){this._request||(this._running=!0,this._request=wTe.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((a,i)=>{if(!a.running||!a.items.length)return;const s=a.items;let n,o=s.length-1,r=!1;for(;o>=0;--o)n=s[o],n._active?(n._total>a.duration&&(a.duration=n._total),n.tick(e),r=!0):(s[o]=s[s.length-1],s.pop());r&&(i.draw(),this._notify(i,a,e,"progress")),s.length||(a.running=!1,this._notify(i,a,e,"complete"),a.initial=!1),t+=s.length}),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let a=t.get(e);return a||(a={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,a)),a}listen(e,t,a){this._getAnims(e).listeners[t].push(a)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const a=t.items;let i=a.length-1;for(;i>=0;--i)a[i].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var mRe=new gRe;const fRe="transparent",_Re={boolean:(e,t,a)=>a>.5?t:e,color(e,t,a){const i=MTe(e||fRe),s=i.valid&&MTe(t||fRe);return s&&s.valid?s.mix(i,a).hexString():t},number:(e,t,a)=>e+(t-e)*a};class bRe{constructor(e,t,a,i){const s=t[a];i=bAe([e.to,i,s,e.from]);const n=bAe([e.from,s,i]);this._active=!0,this._fn=e.fn||_Re[e.type||typeof n],this._easing=ITe[e.easing]||ITe.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=a,this._from=n,this._to=i,this._promises=void 0}active(){return this._active}update(e,t,a){if(this._active){this._notify(!1);const i=this._target[this._prop],s=a-this._start,n=this._duration-s;this._start=a,this._duration=Math.floor(Math.max(n,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=bAe([e.to,t,i,e.from]),this._from=bAe([e.from,i,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,a=this._duration,i=this._prop,s=this._from,n=this._loop,o=this._to;let r;if(this._active=s!==o&&(n||t<a),!this._active)return this._target[i]=o,void this._notify(!0);t<0?this._target[i]=s:(r=t/a%2,r=n&&r>1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[i]=this._fn(s,o,r))}wait(){const e=this._promises||(this._promises=[]);return new Promise((t,a)=>{e.push({res:t,rej:a})})}_notify(e){const t=e?"res":"rej",a=this._promises||[];for(let i=0;i<a.length;i++)a[i][t]()}}let vRe=class{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!Tke(e))return;const t=Object.keys(jTe.animation),a=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const s=e[i];if(!Tke(s))return;const n={};for(const e of t)n[e]=s[e];(kke(s.properties)&&s.properties||[i]).forEach(e=>{e!==i&&a.has(e)||a.set(e,n)})})}_animateOptions(e,t){const a=t.options,i=function(e,t){if(!t)return;let a=e.options;if(!a)return void(e.options=t);a.$shared&&(e.options=a=Object.assign({},a,{$shared:!1,$animations:{}}));return a}(e,a);if(!i)return[];const s=this._createAnimations(i,a);return a.$shared&&function(e,t){const a=[],i=Object.keys(t);for(let s=0;s<i.length;s++){const t=e[i[s]];t&&t.active()&&a.push(t.wait())}return Promise.all(a)}(e.options.$animations,a).then(()=>{e.options=a},()=>{}),s}_createAnimations(e,t){const a=this._properties,i=[],s=e.$animations||(e.$animations={}),n=Object.keys(t),o=Date.now();let r;for(r=n.length-1;r>=0;--r){const l=n[r];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(e,t));continue}const c=t[l];let d=s[l];const u=a.get(l);if(d){if(u&&d.active()){d.update(u,c,o);continue}d.cancel()}u&&u.duration?(s[l]=d=new bRe(u,e,l,c),i.push(d)):e[l]=c}return i}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const a=this._createAnimations(e,t);return a.length?(mRe.add(this._chart,a),!0):void 0}};function yRe(e,t){const a=e&&e.options||{},i=a.reverse,s=void 0===a.min?t:0,n=void 0===a.max?t:0;return{start:i?n:s,end:i?s:n}}function SRe(e,t){const a=[],i=e._getSortedDatasetMetas(t);let s,n;for(s=0,n=i.length;s<n;++s)a.push(i[s].index);return a}function xRe(e,t,a,i={}){const s=e.keys,n="single"===i.mode;let o,r,l,c;if(null===t)return;let d=!1;for(o=0,r=s.length;o<r;++o){if(l=+s[o],l===a){if(d=!0,i.all)continue;break}c=e.values[l],Ake(c)&&(n||0===t||aTe(t)===aTe(c))&&(t+=c)}return d||i.all?t:0}function wRe(e,t){const a=e&&e.options.stacked;return a||void 0===a&&void 0!==t.stack}function ERe(e,t,a){const i=e[t]||(e[t]={});return i[a]||(i[a]={})}function CRe(e,t,a,i){for(const s of t.getMatchingVisibleMetas(i).reverse()){const t=e[s.index];if(a&&t>0||!a&&t<0)return s.index}return null}function kRe(e,t){const{chart:a,_cachedMeta:i}=e,s=a._stacks||(a._stacks={}),{iScale:n,vScale:o,index:r}=i,l=n.axis,c=o.axis,d=function(e,t,a){return`${e.id}.${t.id}.${a.stack||a.type}`}(n,o,i),u=t.length;let p;for(let h=0;h<u;++h){const e=t[h],{[l]:a,[c]:n}=e;p=(e._stacks||(e._stacks={}))[c]=ERe(s,d,a),p[r]=n,p._top=CRe(p,o,!0,i.type),p._bottom=CRe(p,o,!1,i.type);(p._visualValues||(p._visualValues={}))[r]=n}}function TRe(e,t){const a=e.scales;return Object.keys(a).filter(e=>a[e].axis===t).shift()}function ARe(e,t){const a=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[i]||void 0===t[i][a])return;delete t[i][a],void 0!==t[i]._visualValues&&void 0!==t[i]._visualValues[a]&&delete t[i]._visualValues[a]}}}const RRe=e=>"reset"===e||"none"===e,ORe=(e,t)=>t?e:Object.assign({},e);class NRe{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=wRe(e.vScale,e),this.addElements(),this.options.fill&&this.chart.isPluginEnabled("filler")}updateIndex(e){this.index!==e&&ARe(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,a=this.getDataset(),i=(e,t,a,i)=>"x"===e?t:"r"===e?i:a,s=t.xAxisID=Oke(a.xAxisID,TRe(e,"x")),n=t.yAxisID=Oke(a.yAxisID,TRe(e,"y")),o=t.rAxisID=Oke(a.rAxisID,TRe(e,"r")),r=t.indexAxis,l=t.iAxisID=i(r,s,n,o),c=t.vAxisID=i(r,n,s,o);t.xScale=this.getScaleForId(s),t.yScale=this.getScaleForId(n),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&STe(this._data,this),e._stacked&&ARe(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),a=this._data;if(Tke(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:a,vScale:i}=t,s="x"===a.axis?"x":"y",n="x"===i.axis?"x":"y",o=Object.keys(e),r=new Array(o.length);let l,c,d;for(l=0,c=o.length;l<c;++l)d=o[l],r[l]={[s]:d,[n]:e[d]};return r}(t,e)}else if(a!==t){if(a){STe(a,this);const e=this._cachedMeta;ARe(e),e._parsed=[]}t&&Object.isExtensible(t)&&(s=this,(i=t)._chartjs?i._chartjs.listeners.push(s):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[s]}}),yTe.forEach(e=>{const t="_onData"+zke(e),a=i[e];Object.defineProperty(i,e,{configurable:!0,enumerable:!1,value(...e){const s=a.apply(this,e);return i._chartjs.listeners.forEach(a=>{"function"==typeof a[t]&&a[t](...e)}),s}})}))),this._syncList=[],this._data=t}var i,s}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,a=this.getDataset();let i=!1;this._dataCheck();const s=t._stacked;t._stacked=wRe(t.vScale,t),t.stack!==a.stack&&(i=!0,ARe(t),t.stack=a.stack),this._resyncElements(e),(i||s!==t._stacked)&&(kRe(this,t._parsed),t._stacked=wRe(t.vScale,t))}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),a=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(a,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:a,_data:i}=this,{iScale:s,_stacked:n}=a,o=s.axis;let r,l,c,d=0===e&&t===i.length||a._sorted,u=e>0&&a._parsed[e-1];if(!1===this._parsing)a._parsed=i,a._sorted=!0,c=i;else{c=kke(i[e])?this.parseArrayData(a,i,e,t):Tke(i[e])?this.parseObjectData(a,i,e,t):this.parsePrimitiveData(a,i,e,t);const s=()=>null===l[o]||u&&l[o]<u[o];for(r=0;r<t;++r)a._parsed[r+e]=l=c[r],d&&(s()&&(d=!1),u=l);a._sorted=d}n&&kRe(this,c)}parsePrimitiveData(e,t,a,i){const{iScale:s,vScale:n}=e,o=s.axis,r=n.axis,l=s.getLabels(),c=s===n,d=new Array(i);let u,p,h;for(u=0,p=i;u<p;++u)h=u+a,d[u]={[o]:c||s.parse(l[h],h),[r]:n.parse(t[h],h)};return d}parseArrayData(e,t,a,i){const{xScale:s,yScale:n}=e,o=new Array(i);let r,l,c,d;for(r=0,l=i;r<l;++r)c=r+a,d=t[c],o[r]={x:s.parse(d[0],c),y:n.parse(d[1],c)};return o}parseObjectData(e,t,a,i){const{xScale:s,yScale:n}=e,{xAxisKey:o="x",yAxisKey:r="y"}=this._parsing,l=new Array(i);let c,d,u,p;for(c=0,d=i;c<d;++c)u=c+a,p=t[u],l[c]={x:s.parse(Hke(p,o),u),y:n.parse(Hke(p,r),u)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,a){const i=this.chart,s=this._cachedMeta,n=t[e.axis];return xRe({keys:SRe(i,!0),values:t._stacks[e.axis]._visualValues},n,s.index,{mode:a})}updateRangeFromParsed(e,t,a,i){const s=a[t.axis];let n=null===s?NaN:s;const o=i&&a._stacks[t.axis];i&&o&&(i.values=o,n=xRe(i,s,this._cachedMeta.index)),e.min=Math.min(e.min,n),e.max=Math.max(e.max,n)}getMinMax(e,t){const a=this._cachedMeta,i=a._parsed,s=a._sorted&&e===a.iScale,n=i.length,o=this._getOtherScale(e),r=((e,t,a)=>e&&!t.hidden&&t._stacked&&{keys:SRe(a,!0),values:null})(t,a,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(e){const{min:t,max:a,minDefined:i,maxDefined:s}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:s?a:Number.POSITIVE_INFINITY}}(o);let u,p;function h(){p=i[u];const t=p[o.axis];return!Ake(p[e.axis])||c>t||d<t}for(u=0;u<n&&(h()||(this.updateRangeFromParsed(l,e,p,r),!s));++u);if(s)for(u=n-1;u>=0;--u)if(!h()){this.updateRangeFromParsed(l,e,p,r);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,a=[];let i,s,n;for(i=0,s=t.length;i<s;++i)n=t[i][e.axis],Ake(n)&&a.push(n);return a}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,a=t.iScale,i=t.vScale,s=this.getParsed(e);return{label:a?""+a.getLabelForValue(s[a.axis]):"",value:i?""+i.getLabelForValue(s[i.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,a,i,s;return Tke(e)?(t=e.top,a=e.right,i=e.bottom,s=e.left):t=a=i=s=e,{top:t,right:a,bottom:i,left:s,disabled:!1===e}}(Oke(this.options.clip,function(e,t,a){if(!1===a)return!1;const i=yRe(e,a),s=yRe(t,a);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,a=this._cachedMeta,i=a.data||[],s=t.chartArea,n=[],o=this._drawStart||0,r=this._drawCount||i.length-o,l=this.options.drawActiveElementsOnTop;let c;for(a.dataset&&a.dataset.draw(e,s,o,r),c=o;c<o+r;++c){const t=i[c];t.hidden||(t.active&&l?n.push(t):t.draw(e,s))}for(c=0;c<n.length;++c)n[c].draw(e,s)}getStyle(e,t){const a=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(a):this.resolveDataElementOptions(e||0,a)}getContext(e,t,a){const i=this.getDataset();let s;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];s=t.$context||(t.$context=function(e,t,a){return vAe(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:a,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),s.parsed=this.getParsed(e),s.raw=i.data[e],s.index=s.dataIndex=e}else s=this.$context||(this.$context=function(e,t){return vAe(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),s.dataset=i,s.index=s.datasetIndex=this.index;return s.active=!!t,s.mode=a,s}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",a){const i="active"===t,s=this._cachedDataOpts,n=e+"-"+t,o=s[n],r=this.enableOptionSharing&&Yke(a);if(o)return ORe(o,r);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),d=i?[`${e}Hover`,"hover",e,""]:[e,""],u=l.getOptionScopes(this.getDataset(),c),p=Object.keys(jTe.elements[e]),h=l.resolveNamedOptions(u,p,()=>this.getContext(a,i,t),d);return h.$shared&&(h.$shared=r,s[n]=Object.freeze(ORe(h,r))),h}_resolveAnimations(e,t,a){const i=this.chart,s=this._cachedDataOpts,n=`animation-${t}`,o=s[n];if(o)return o;let r;if(!1!==i.options.animation){const i=this.chart.config,s=i.datasetAnimationScopeKeys(this._type,t),n=i.getOptionScopes(this.getDataset(),s);r=i.createResolver(n,this.getContext(e,a,t))}const l=new vRe(i,r&&r.animations);return r&&r._cacheable&&(s[n]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||RRe(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const a=this.resolveDataElementOptions(e,t),i=this._sharedOptions,s=this.getSharedOptions(a),n=this.includeOptions(t,s)||s!==i;return this.updateSharedOptions(s,t,a),{sharedOptions:s,includeOptions:n}}updateElement(e,t,a,i){RRe(i)?Object.assign(e,a):this._resolveAnimations(t,i).update(e,a)}updateSharedOptions(e,t,a){e&&!RRe(t)&&this._resolveAnimations(void 0,t).update(e,a)}_setStyle(e,t,a,i){e.active=i;const s=this.getStyle(t,i);this._resolveAnimations(t,a,i).update(e,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(e,t,a){this._setStyle(e,a,"active",!1)}setHoverStyle(e,t,a){this._setStyle(e,a,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,a=this._cachedMeta.data;for(const[o,r,l]of this._syncList)this[o](r,l);this._syncList=[];const i=a.length,s=t.length,n=Math.min(s,i);n&&this.parse(0,n),s>i?this._insertElements(i,s-i,e):s<i&&this._removeElements(s,i-s)}_insertElements(e,t,a=!0){const i=this._cachedMeta,s=i.data,n=e+t;let o;const r=e=>{for(e.length+=t,o=e.length-1;o>=n;o--)e[o]=e[o-t]};for(r(s),o=e;o<n;++o)s[o]=new this.dataElementType;this._parsing&&r(i._parsed),this.parse(e,t),a&&this.updateElements(s,e,t,"reset")}updateElements(e,t,a,i){}_removeElements(e,t){const a=this._cachedMeta;if(this._parsing){const i=a._parsed.splice(e,t);a._stacked&&ARe(a,i)}a.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,a,i]=e;this[t](a,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const a=arguments.length-2;a&&this._sync(["_insertElements",e,a])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function IRe(e){const t=e.iScale,a=function(e,t){if(!e._cache.$bar){const a=e.getMatchingVisibleMetas(t);let i=[];for(let t=0,s=a.length;t<s;t++)i=i.concat(a[t].controller.getAllParsedValues(e));e._cache.$bar=xTe(i.sort((e,t)=>e-t))}return e._cache.$bar}(t,e.type);let i,s,n,o,r=t._length;const l=()=>{32767!==n&&-32768!==n&&(Yke(o)&&(r=Math.min(r,Math.abs(n-o)||r)),o=n)};for(i=0,s=a.length;i<s;++i)n=t.getPixelForValue(a[i]),l();for(o=void 0,i=0,s=t.ticks.length;i<s;++i)n=t.getPixelForTick(i),l();return r}function DRe(e,t,a,i){return kke(e)?function(e,t,a,i){const s=a.parse(e[0],i),n=a.parse(e[1],i),o=Math.min(s,n),r=Math.max(s,n);let l=o,c=r;Math.abs(o)>Math.abs(r)&&(l=r,c=o),t[a.axis]=c,t._custom={barStart:l,barEnd:c,start:s,end:n,min:o,max:r}}(e,t,a,i):t[a.axis]=a.parse(e,i),t}function MRe(e,t,a,i){const s=e.iScale,n=e.vScale,o=s.getLabels(),r=s===n,l=[];let c,d,u,p;for(c=a,d=a+i;c<d;++c)p=t[c],u={},u[s.axis]=r||s.parse(o[c],c),l.push(DRe(p,u,n,c));return l}function LRe(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function PRe(e,t,a,i){let s=t.borderSkipped;const n={};if(!s)return void(e.borderSkipped=n);if(!0===s)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:r,reverse:l,top:c,bottom:d}=function(e){let t,a,i,s,n;return e.horizontal?(t=e.base>e.x,a="left",i="right"):(t=e.base<e.y,a="bottom",i="top"),t?(s="end",n="start"):(s="start",n="end"),{start:a,end:i,reverse:t,top:s,bottom:n}}(e);"middle"===s&&a&&(e.enableBorderRadius=!0,(a._top||0)===i?s=c:(a._bottom||0)===i?s=d:(n[FRe(d,o,r,l)]=!0,s=c)),n[FRe(s,o,r,l)]=!0,e.borderSkipped=n}function FRe(e,t,a,i){var s,n,o;return i?(o=a,e=$Re(e=(s=e)===(n=t)?o:s===o?n:s,a,t)):e=$Re(e,t,a),e}function $Re(e,t,a){return"start"===e?t:"end"===e?a:e}function BRe(e,{inflateAmount:t},a){e.inflateAmount="auto"===t?1===a?.33:0:t}o(NRe,"defaults",{}),o(NRe,"datasetElementType",null),o(NRe,"dataElementType",null);class VRe extends NRe{parsePrimitiveData(e,t,a,i){return MRe(e,t,a,i)}parseArrayData(e,t,a,i){return MRe(e,t,a,i)}parseObjectData(e,t,a,i){const{iScale:s,vScale:n}=e,{xAxisKey:o="x",yAxisKey:r="y"}=this._parsing,l="x"===s.axis?o:r,c="x"===n.axis?o:r,d=[];let u,p,h,g;for(u=a,p=a+i;u<p;++u)g=t[u],h={},h[s.axis]=s.parse(Hke(g,l),u),d.push(DRe(Hke(g,c),h,n,u));return d}updateRangeFromParsed(e,t,a,i){super.updateRangeFromParsed(e,t,a,i);const s=a._custom;s&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,s.min),e.max=Math.max(e.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:a,vScale:i}=t,s=this.getParsed(e),n=s._custom,o=LRe(n)?"["+n.start+", "+n.end+"]":""+i.getLabelForValue(s[i.axis]);return{label:""+a.getLabelForValue(s[a.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,a,i){const s="reset"===i,{index:n,_cachedMeta:{vScale:o}}=this,r=o.getBasePixel(),l=o.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(t,i);for(let p=t;p<t+a;p++){const t=this.getParsed(p),a=s||Cke(t[o.axis])?{base:r,head:r}:this._calculateBarValuePixels(p),h=this._calculateBarIndexPixels(p,c),g=(t._stacks||{})[o.axis],m={horizontal:l,base:a.base,enableBorderRadius:!g||LRe(t._custom)||n===g._top||n===g._bottom,x:l?a.head:h.center,y:l?h.center:a.head,height:l?h.size:Math.abs(a.size),width:l?Math.abs(a.size):h.size};u&&(m.options=d||this.resolveDataElementOptions(p,e[p].active?"active":i));const f=m.options||e[p].options;PRe(m,f,g,n),BRe(m,f,c.ratio),this.updateElement(e[p],p,m,i)}}_getStacks(e,t){const{iScale:a}=this._cachedMeta,i=a.getMatchingVisibleMetas(this._type).filter(e=>e.controller.options.grouped),s=a.options.stacked,n=[],o=this._cachedMeta.controller.getParsed(t),r=o&&o[a.axis],l=e=>{const t=e._parsed.find(e=>e[a.axis]===r),i=t&&t[e.vScale.axis];if(Cke(i)||isNaN(i))return!0};for(const c of i)if((void 0===t||!l(c))&&((!1===s||-1===n.indexOf(c.stack)||void 0===s&&void 0===c.stack)&&n.push(c.stack),c.index===e))break;return n.length||n.push(void 0),n}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const e=this.chart.scales,t=this.chart.options.indexAxis;return Object.keys(e).filter(a=>e[a].axis===t).shift()}_getAxis(){const e={},t=this.getFirstScaleIdForIndexAxis();for(const a of this.chart.data.datasets)e[Oke("x"===this.chart.options.indexAxis?a.xAxisID:a.yAxisID,t)]=!0;return Object.keys(e)}_getStackIndex(e,t,a){const i=this._getStacks(e,a),s=void 0!==t?i.indexOf(t):-1;return-1===s?i.length-1:s}_getRuler(){const e=this.options,t=this._cachedMeta,a=t.iScale,i=[];let s,n;for(s=0,n=t.data.length;s<n;++s)i.push(a.getPixelForValue(this.getParsed(s)[a.axis],s));const o=e.barThickness;return{min:o||IRe(t),pixels:i,start:a._startPixel,end:a._endPixel,stackCount:this._getStackCount(),scale:a,grouped:e.grouped,ratio:o?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:a,index:i},options:{base:s,minBarLength:n}}=this,o=s||0,r=this.getParsed(e),l=r._custom,c=LRe(l);let d,u,p=r[t.axis],h=0,g=a?this.applyStack(t,r,a):p;g!==p&&(h=g-p,g=p),c&&(p=l.barStart,g=l.barEnd-l.barStart,0!==p&&aTe(p)!==aTe(l.barEnd)&&(h=0),h+=p);const m=Cke(s)||c?h:s;let f=t.getPixelForValue(m);if(d=this.chart.getDataVisibility(e)?t.getPixelForValue(h+g):f,u=d-f,Math.abs(u)<n){u=function(e,t,a){return 0!==e?aTe(e):(t.isHorizontal()?1:-1)*(t.min>=a?1:-1)}(u,t,o)*n,p===o&&(f-=u/2);const e=t.getPixelForDecimal(0),s=t.getPixelForDecimal(1),l=Math.min(e,s),h=Math.max(e,s);f=Math.max(Math.min(f,h),l),d=f+u,a&&!c&&(r._stacks[t.axis]._visualValues[i]=t.getValueForPixel(d)-t.getValueForPixel(f))}if(f===t.getPixelForValue(o)){const e=aTe(u)*t.getLineWidthForValue(o)/2;f+=e,u-=e}return{size:u,base:f,head:d,center:d+u/2}}_calculateBarIndexPixels(e,t){const a=t.scale,i=this.options,s=i.skipNull,n=Oke(i.maxBarThickness,1/0);let o,r;const l=this._getAxisCount();if(t.grouped){const a=s?this._getStackCount(e):t.stackCount,c="flex"===i.barThickness?function(e,t,a,i){const s=t.pixels,n=s[e];let o=e>0?s[e-1]:null,r=e<s.length-1?s[e+1]:null;const l=a.categoryPercentage;null===o&&(o=n-(null===r?t.end-t.start:r-n)),null===r&&(r=n+n-o);const c=n-(n-Math.min(o,r))/2*l;return{chunk:Math.abs(r-o)/2*l/i,ratio:a.barPercentage,start:c}}(e,t,i,a*l):function(e,t,a,i){const s=a.barThickness;let n,o;return Cke(s)?(n=t.min*a.categoryPercentage,o=a.barPercentage):(n=s*i,o=1),{chunk:n/i,ratio:o,start:t.pixels[e]-n/2}}(e,t,i,a*l),d="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,u=this._getAxis().indexOf(Oke(d,this.getFirstScaleIdForIndexAxis())),p=this._getStackIndex(this.index,this._cachedMeta.stack,s?e:void 0)+u;o=c.start+c.chunk*p+c.chunk/2,r=Math.min(n,c.chunk*c.ratio)}else o=a.getPixelForValue(this.getParsed(e)[a.axis],e),r=Math.min(n,t.min*t.ratio);return{base:o-r/2,head:o+r/2,center:o,size:r}}draw(){const e=this._cachedMeta,t=e.vScale,a=e.data,i=a.length;let s=0;for(;s<i;++s)null===this.getParsed(s)[t.axis]||a[s].hidden||a[s].draw(this._ctx)}}o(VRe,"id","bar"),o(VRe,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),o(VRe,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class URe extends NRe{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,a,i){const s=super.parsePrimitiveData(e,t,a,i);for(let n=0;n<s.length;n++)s[n]._custom=this.resolveDataElementOptions(n+a).radius;return s}parseArrayData(e,t,a,i){const s=super.parseArrayData(e,t,a,i);for(let n=0;n<s.length;n++){const e=t[a+n];s[n]._custom=Oke(e[2],this.resolveDataElementOptions(n+a).radius)}return s}parseObjectData(e,t,a,i){const s=super.parseObjectData(e,t,a,i);for(let n=0;n<s.length;n++){const e=t[a+n];s[n]._custom=Oke(e&&e.r&&+e.r,this.resolveDataElementOptions(n+a).radius)}return s}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let a=e.length-1;a>=0;--a)t=Math.max(t,e[a].size(this.resolveDataElementOptions(a))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,a=this.chart.data.labels||[],{xScale:i,yScale:s}=t,n=this.getParsed(e),o=i.getLabelForValue(n.x),r=s.getLabelForValue(n.y),l=n._custom;return{label:a[e]||"",value:"("+o+", "+r+(l?", "+l:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,a,i){const s="reset"===i,{iScale:n,vScale:o}=this._cachedMeta,{sharedOptions:r,includeOptions:l}=this._getSharedOptions(t,i),c=n.axis,d=o.axis;for(let u=t;u<t+a;u++){const t=e[u],a=!s&&this.getParsed(u),p={},h=p[c]=s?n.getPixelForDecimal(.5):n.getPixelForValue(a[c]),g=p[d]=s?o.getBasePixel():o.getPixelForValue(a[d]);p.skip=isNaN(h)||isNaN(g),l&&(p.options=r||this.resolveDataElementOptions(u,t.active?"active":i),s&&(p.options.radius=0)),this.updateElement(t,u,p,i)}}resolveDataElementOptions(e,t){const a=this.getParsed(e);let i=super.resolveDataElementOptions(e,t);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const s=i.radius;return"active"!==t&&(i.radius=0),i.radius+=Oke(a&&a._custom,s),i}}o(URe,"id","bubble"),o(URe,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),o(URe,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});class HRe extends NRe{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const a=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=a;else{let s,n,o=e=>+a[e];if(Tke(a[e])){const{key:e="value"}=this._parsing;o=t=>+Hke(a[t],e)}for(s=e,n=e+t;s<n;++s)i._parsed[s]=o(s)}}_getRotation(){return rTe(this.options.rotation-90)}_getCircumference(){return rTe(this.options.circumference)}_getRotationExtents(){let e=qke,t=-qke;for(let a=0;a<this.chart.data.datasets.length;++a)if(this.chart.isDatasetVisible(a)&&this.chart.getDatasetMeta(a).type===this._type){const i=this.chart.getDatasetMeta(a).controller,s=i._getRotation(),n=i._getCircumference();e=Math.min(e,s),t=Math.max(t,s+n)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:a}=t,i=this._cachedMeta,s=i.data,n=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,o=Math.max((Math.min(a.width,a.height)-n)/2,0),r=Math.min((l=this.options.cutout,c=o,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:+l/c),1);var l,c;const d=this._getRingWeight(this.index),{circumference:u,rotation:p}=this._getRotationExtents(),{ratioX:h,ratioY:g,offsetX:m,offsetY:f}=function(e,t,a){let i=1,s=1,n=0,o=0;if(t<qke){const r=e,l=r+t,c=Math.cos(r),d=Math.sin(r),u=Math.cos(l),p=Math.sin(l),h=(e,t,i)=>gTe(e,r,l,!0)?1:Math.max(t,t*a,i,i*a),g=(e,t,i)=>gTe(e,r,l,!0)?-1:Math.min(t,t*a,i,i*a),m=h(0,c,u),f=h(Zke,d,p),_=g(jke,c,u),b=g(jke+Zke,d,p);i=(m-_)/2,s=(f-b)/2,n=-(m+_)/2,o=-(f+b)/2}return{ratioX:i,ratioY:s,offsetX:n,offsetY:o}}(p,u,r),_=(a.width-n)/h,b=(a.height-n)/g,v=Math.max(Math.min(_,b)/2,0),y=Nke(this.options.radius,v),S=(y-Math.max(y*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*y,this.offsetY=f*y,i.total=this.calculateTotal(),this.outerRadius=y-S*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-S*d,0),this.updateElements(s,0,s.length,e)}_circumference(e,t){const a=this.options,i=this._cachedMeta,s=this._getCircumference();return t&&a.animation.animateRotate||!this.chart.getDataVisibility(e)||null===i._parsed[e]||i.data[e].hidden?0:this.calculateCircumference(i._parsed[e]*s/qke)}updateElements(e,t,a,i){const s="reset"===i,n=this.chart,o=n.chartArea,r=n.options.animation,l=(o.left+o.right)/2,c=(o.top+o.bottom)/2,d=s&&r.animateScale,u=d?0:this.innerRadius,p=d?0:this.outerRadius,{sharedOptions:h,includeOptions:g}=this._getSharedOptions(t,i);let m,f=this._getRotation();for(m=0;m<t;++m)f+=this._circumference(m,s);for(m=t;m<t+a;++m){const t=this._circumference(m,s),a=e[m],n={x:l+this.offsetX,y:c+this.offsetY,startAngle:f,endAngle:f+t,circumference:t,outerRadius:p,innerRadius:u};g&&(n.options=h||this.resolveDataElementOptions(m,a.active?"active":i)),f+=t,this.updateElement(a,m,n,i)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let a,i=0;for(a=0;a<t.length;a++){const s=e._parsed[a];null===s||isNaN(s)||!this.chart.getDataVisibility(a)||t[a].hidden||(i+=Math.abs(s))}return i}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?qke*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,a=this.chart,i=a.data.labels||[],s=BTe(t._parsed[e],a.options.locale);return{label:i[e]||"",value:s}}getMaxBorderWidth(e){let t=0;const a=this.chart;let i,s,n,o,r;if(!e)for(i=0,s=a.data.datasets.length;i<s;++i)if(a.isDatasetVisible(i)){n=a.getDatasetMeta(i),e=n.data,o=n.controller;break}if(!e)return 0;for(i=0,s=e.length;i<s;++i)r=o.resolveDataElementOptions(i),"inner"!==r.borderAlign&&(t=Math.max(t,r.borderWidth||0,r.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let a=0,i=e.length;a<i;++a){const e=this.resolveDataElementOptions(a);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let a=0;a<e;++a)this.chart.isDatasetVisible(a)&&(t+=this._getRingWeight(a));return t}_getRingWeight(e){return Math.max(Oke(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}o(HRe,"id","doughnut"),o(HRe,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),o(HRe,"descriptors",{_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),o(HRe,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data,{labels:{pointStyle:a,textAlign:i,color:s,useBorderRadius:n,borderRadius:o}}=e.legend.options;return t.labels.length&&t.datasets.length?t.labels.map((t,r)=>{const l=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:l.backgroundColor,fontColor:s,hidden:!e.getDataVisibility(r),lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:l.borderWidth,strokeStyle:l.borderColor,textAlign:i,pointStyle:a,borderRadius:n&&(o||l.borderRadius),index:r}}):[]}},onClick(e,t,a){a.chart.toggleDataVisibility(t.index),a.chart.update()}}}});class zRe extends NRe{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:a,data:i=[],_dataset:s}=t,n=this.chart._animationsDisabled;let{start:o,count:r}=TTe(t,i,n);this._drawStart=o,this._drawCount=r,ATe(t)&&(o=0,r=i.length),a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!s._decimated,a.points=i;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(a,void 0,{animated:!n,options:l},e),this.updateElements(i,o,r,e)}updateElements(e,t,a,i){const s="reset"===i,{iScale:n,vScale:o,_stacked:r,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(t,i),u=n.axis,p=o.axis,{spanGaps:h,segment:g}=this.options,m=nTe(h)?h:Number.POSITIVE_INFINITY,f=this.chart._animationsDisabled||s||"none"===i,_=t+a,b=e.length;let v=t>0&&this.getParsed(t-1);for(let y=0;y<b;++y){const a=e[y],h=f?a:{};if(y<t||y>=_){h.skip=!0;continue}const b=this.getParsed(y),S=Cke(b[p]),x=h[u]=n.getPixelForValue(b[u],y),w=h[p]=s||S?o.getBasePixel():o.getPixelForValue(r?this.applyStack(o,b,r):b[p],y);h.skip=isNaN(x)||isNaN(w)||S,h.stop=y>0&&Math.abs(b[u]-v[u])>m,g&&(h.parsed=b,h.raw=l.data[y]),d&&(h.options=c||this.resolveDataElementOptions(y,a.active?"active":i)),f||this.updateElement(a,y,h,i),v=b}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,a=t.options&&t.options.borderWidth||0,i=e.data||[];if(!i.length)return a;const s=i[0].size(this.resolveDataElementOptions(0)),n=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(a,s,n)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}o(zRe,"id","line"),o(zRe,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),o(zRe,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class YRe extends NRe{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,a=this.chart,i=a.data.labels||[],s=BTe(t._parsed[e].r,a.options.locale);return{label:i[e]||"",value:s}}parseObjectData(e,t,a,i){return DAe.bind(this)(e,t,a,i)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((e,a)=>{const i=this.getParsed(a).r;!isNaN(i)&&this.chart.getDataVisibility(a)&&(i<t.min&&(t.min=i),i>t.max&&(t.max=i))}),t}_updateRadius(){const e=this.chart,t=e.chartArea,a=e.options,i=Math.min(t.right-t.left,t.bottom-t.top),s=Math.max(i/2,0),n=(s-Math.max(a.cutoutPercentage?s/100*a.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=s-n*this.index,this.innerRadius=this.outerRadius-n}updateElements(e,t,a,i){const s="reset"===i,n=this.chart,o=n.options.animation,r=this._cachedMeta.rScale,l=r.xCenter,c=r.yCenter,d=r.getIndexAngle(0)-.5*jke;let u,p=d;const h=360/this.countVisibleElements();for(u=0;u<t;++u)p+=this._computeAngle(u,i,h);for(u=t;u<t+a;u++){const t=e[u];let a=p,g=p+this._computeAngle(u,i,h),m=n.getDataVisibility(u)?r.getDistanceFromCenterForValue(this.getParsed(u).r):0;p=g,s&&(o.animateScale&&(m=0),o.animateRotate&&(a=g=d));const f={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:a,endAngle:g,options:this.resolveDataElementOptions(u,t.active?"active":i)};this.updateElement(t,u,f,i)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach((e,a)=>{!isNaN(this.getParsed(a).r)&&this.chart.getDataVisibility(a)&&t++}),t}_computeAngle(e,t,a){return this.chart.getDataVisibility(e)?rTe(this.resolveDataElementOptions(e,t).angle||a):0}}o(YRe,"id","polarArea"),o(YRe,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),o(YRe,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:a,color:i}}=e.legend.options;return t.labels.map((t,s)=>{const n=e.getDatasetMeta(0).controller.getStyle(s);return{text:t,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,fontColor:i,lineWidth:n.borderWidth,pointStyle:a,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,t,a){a.chart.toggleDataVisibility(t.index),a.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class GRe extends HRe{}o(GRe,"id","pie"),o(GRe,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class WRe extends NRe{getLabelAndValue(e){const t=this._cachedMeta.vScale,a=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(a[t.axis])}}parseObjectData(e,t,a,i){return DAe.bind(this)(e,t,a,i)}update(e){const t=this._cachedMeta,a=t.dataset,i=t.data||[],s=t.iScale.getLabels();if(a.points=i,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const n={_loop:!0,_fullLoop:s.length===i.length,options:t};this.updateElement(a,void 0,n,e)}this.updateElements(i,0,i.length,e)}updateElements(e,t,a,i){const s=this._cachedMeta.rScale,n="reset"===i;for(let o=t;o<t+a;o++){const t=e[o],a=this.resolveDataElementOptions(o,t.active?"active":i),r=s.getPointPositionForValue(o,this.getParsed(o).r),l=n?s.xCenter:r.x,c=n?s.yCenter:r.y,d={x:l,y:c,angle:r.angle,skip:isNaN(l)||isNaN(c),options:a};this.updateElement(t,o,d,i)}}}o(WRe,"id","radar"),o(WRe,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),o(WRe,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class jRe extends NRe{getLabelAndValue(e){const t=this._cachedMeta,a=this.chart.data.labels||[],{xScale:i,yScale:s}=t,n=this.getParsed(e),o=i.getLabelForValue(n.x),r=s.getLabelForValue(n.y);return{label:a[e]||"",value:"("+o+", "+r+")"}}update(e){const t=this._cachedMeta,{data:a=[]}=t,i=this.chart._animationsDisabled;let{start:s,count:n}=TTe(t,a,i);if(this._drawStart=s,this._drawCount=n,ATe(t)&&(s=0,n=a.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:s,_dataset:n}=t;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!n._decimated,s.points=a;const o=this.resolveDatasetElementOptions(e);o.segment=this.options.segment,this.updateElement(s,void 0,{animated:!i,options:o},e)}else this.datasetElementType&&(delete t.dataset,this.datasetElementType=!1);this.updateElements(a,s,n,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,t,a,i){const s="reset"===i,{iScale:n,vScale:o,_stacked:r,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(t,i),d=this.getSharedOptions(c),u=this.includeOptions(i,d),p=n.axis,h=o.axis,{spanGaps:g,segment:m}=this.options,f=nTe(g)?g:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||s||"none"===i;let b=t>0&&this.getParsed(t-1);for(let v=t;v<t+a;++v){const t=e[v],a=this.getParsed(v),c=_?t:{},g=Cke(a[h]),y=c[p]=n.getPixelForValue(a[p],v),S=c[h]=s||g?o.getBasePixel():o.getPixelForValue(r?this.applyStack(o,a,r):a[h],v);c.skip=isNaN(y)||isNaN(S)||g,c.stop=v>0&&Math.abs(a[p]-b[p])>f,m&&(c.parsed=a,c.raw=l.data[v]),u&&(c.options=d||this.resolveDataElementOptions(v,t.active?"active":i)),_||this.updateElement(t,v,c,i),b=a}this.updateSharedOptions(d,i,c)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let a=t.length-1;a>=0;--a)e=Math.max(e,t[a].size(this.resolveDataElementOptions(a))/2);return e>0&&e}const a=e.dataset,i=a.options&&a.options.borderWidth||0;if(!t.length)return i;const s=t[0].size(this.resolveDataElementOptions(0)),n=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(i,s,n)/2}}o(jRe,"id","scatter"),o(jRe,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),o(jRe,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var qRe=Object.freeze({__proto__:null,BarController:VRe,BubbleController:URe,DoughnutController:HRe,LineController:zRe,PieController:GRe,PolarAreaController:YRe,RadarController:WRe,ScatterController:jRe});function KRe(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class XRe{constructor(e){o(this,"options"),this.options=e||{}}static override(e){Object.assign(XRe.prototype,e)}init(){}formats(){return KRe()}parse(){return KRe()}format(){return KRe()}add(){return KRe()}diff(){return KRe()}startOf(){return KRe()}endOf(){return KRe()}}var QRe=XRe;function ZRe(e,t,a,i){const{controller:s,data:n,_sorted:o}=e,r=s._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(r&&t===r.axis&&"r"!==t&&o&&n.length){const o=r._reversePixels?vTe:bTe;if(!i){const i=o(n,t,a);if(l){const{vScale:t}=s._cachedMeta,{_parsed:a}=e,n=a.slice(0,i.lo+1).reverse().findIndex(e=>!Cke(e[t.axis]));i.lo-=Math.max(0,n);const o=a.slice(i.hi).findIndex(e=>!Cke(e[t.axis]));i.hi+=Math.max(0,o)}return i}if(s._sharedOptions){const e=n[0],i="function"==typeof e.getRange&&e.getRange(t);if(i){const e=o(n,t,a-i),s=o(n,t,a+i);return{lo:e.lo,hi:s.hi}}}}return{lo:0,hi:n.length-1}}function JRe(e,t,a,i,s){const n=e.getSortedVisibleDatasetMetas(),o=a[t];for(let r=0,l=n.length;r<l;++r){const{index:e,data:a}=n[r],{lo:l,hi:c}=ZRe(n[r],t,o,s);for(let t=l;t<=c;++t){const s=a[t];s.skip||i(s,e,t)}}}function eOe(e,t,a,i,s){const n=[];if(!s&&!e.isPointInArea(t))return n;return JRe(e,a,t,function(a,o,r){(s||eAe(a,e.chartArea,0))&&a.inRange(t.x,t.y,i)&&n.push({element:a,datasetIndex:o,index:r})},!0),n}function tOe(e,t,a,i,s,n){let o=[];const r=function(e){const t=-1!==e.indexOf("x"),a=-1!==e.indexOf("y");return function(e,i){const s=t?Math.abs(e.x-i.x):0,n=a?Math.abs(e.y-i.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(n,2))}}(a);let l=Number.POSITIVE_INFINITY;return JRe(e,a,t,function(a,c,d){const u=a.inRange(t.x,t.y,s);if(i&&!u)return;const p=a.getCenterPoint(s);if(!(!!n||e.isPointInArea(p))&&!u)return;const h=r(t,p);h<l?(o=[{element:a,datasetIndex:c,index:d}],l=h):h===l&&o.push({element:a,datasetIndex:c,index:d})}),o}function aOe(e,t,a,i,s,n){return n||e.isPointInArea(t)?"r"!==a||i?tOe(e,t,a,i,s,n):function(e,t,a,i){let s=[];return JRe(e,a,t,function(e,a,n){const{startAngle:o,endAngle:r}=e.getProps(["startAngle","endAngle"],i),{angle:l}=dTe(e,{x:t.x,y:t.y});gTe(l,o,r)&&s.push({element:e,datasetIndex:a,index:n})}),s}(e,t,a,s):[]}function iOe(e,t,a,i,s){const n=[],o="x"===a?"inXRange":"inYRange";let r=!1;return JRe(e,a,t,(e,i,l)=>{e[o]&&e[o](t[a],s)&&(n.push({element:e,datasetIndex:i,index:l}),r=r||e.inRange(t.x,t.y,s))}),i&&!r?[]:n}var sOe={modes:{index(e,t,a,i){const s=jAe(t,e),n=a.axis||"x",o=a.includeInvisible||!1,r=a.intersect?eOe(e,s,n,i,o):aOe(e,s,n,!1,i,o),l=[];return r.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{const t=r[0].index,a=e.data[t];a&&!a.skip&&l.push({element:a,datasetIndex:e.index,index:t})}),l):[]},dataset(e,t,a,i){const s=jAe(t,e),n=a.axis||"xy",o=a.includeInvisible||!1;let r=a.intersect?eOe(e,s,n,i,o):aOe(e,s,n,!1,i,o);if(r.length>0){const t=r[0].datasetIndex,a=e.getDatasetMeta(t).data;r=[];for(let e=0;e<a.length;++e)r.push({element:a[e],datasetIndex:t,index:e})}return r},point:(e,t,a,i)=>eOe(e,jAe(t,e),a.axis||"xy",i,a.includeInvisible||!1),nearest(e,t,a,i){const s=jAe(t,e),n=a.axis||"xy",o=a.includeInvisible||!1;return aOe(e,s,n,a.intersect,i,o)},x:(e,t,a,i)=>iOe(e,jAe(t,e),"x",a.intersect,i),y:(e,t,a,i)=>iOe(e,jAe(t,e),"y",a.intersect,i)}};const nOe=["left","top","right","bottom"];function oOe(e,t){return e.filter(e=>e.pos===t)}function rOe(e,t){return e.filter(e=>-1===nOe.indexOf(e.pos)&&e.box.axis===t)}function lOe(e,t){return e.sort((e,a)=>{const i=t?a:e,s=t?e:a;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function cOe(e,t){const a=function(e){const t={};for(const a of e){const{stack:e,pos:i,stackWeight:s}=a;if(!e||!nOe.includes(i))continue;const n=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});n.count++,n.weight+=s}return t}(e),{vBoxMaxWidth:i,hBoxMaxHeight:s}=t;let n,o,r;for(n=0,o=e.length;n<o;++n){r=e[n];const{fullSize:o}=r.box,l=a[r.stack],c=l&&r.stackWeight/l.weight;r.horizontal?(r.width=c?c*i:o&&t.availableWidth,r.height=s):(r.width=i,r.height=c?c*s:o&&t.availableHeight)}return a}function dOe(e,t,a,i){return Math.max(e[a],t[a])+Math.max(e[i],t[i])}function uOe(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function pOe(e,t,a,i){const{pos:s,box:n}=a,o=e.maxPadding;if(!Tke(s)){a.size&&(e[s]-=a.size);const t=i[a.stack]||{size:0,count:1};t.size=Math.max(t.size,a.horizontal?n.height:n.width),a.size=t.size/t.count,e[s]+=a.size}n.getPadding&&uOe(o,n.getPadding());const r=Math.max(0,t.outerWidth-dOe(o,e,"left","right")),l=Math.max(0,t.outerHeight-dOe(o,e,"top","bottom")),c=r!==e.w,d=l!==e.h;return e.w=r,e.h=l,a.horizontal?{same:c,other:d}:{same:d,other:c}}function hOe(e,t){const a=t.maxPadding;function i(e){const i={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{i[e]=Math.max(t[e],a[e])}),i}return i(e?["left","right"]:["top","bottom"])}function gOe(e,t,a,i){const s=[];let n,o,r,l,c,d;for(n=0,o=e.length,c=0;n<o;++n){r=e[n],l=r.box,l.update(r.width||t.w,r.height||t.h,hOe(r.horizontal,t));const{same:o,other:u}=pOe(t,a,r,i);c|=o&&s.length,d=d||u,l.fullSize||s.push(r)}return c&&gOe(s,t,a,i)||d}function mOe(e,t,a,i,s){e.top=a,e.left=t,e.right=t+i,e.bottom=a+s,e.width=i,e.height=s}function fOe(e,t,a,i){const s=a.padding;let{x:n,y:o}=t;for(const r of e){const e=r.box,l=i[r.stack]||{placed:0,weight:1},c=r.stackWeight/l.weight||1;if(r.horizontal){const i=t.w*c,n=l.size||e.height;Yke(l.start)&&(o=l.start),e.fullSize?mOe(e,s.left,o,a.outerWidth-s.right-s.left,n):mOe(e,t.left+l.placed,o,i,n),l.start=o,l.placed+=i,o=e.bottom}else{const i=t.h*c,o=l.size||e.width;Yke(l.start)&&(n=l.start),e.fullSize?mOe(e,n,s.top,o,a.outerHeight-s.bottom-s.top):mOe(e,n,t.top+l.placed,o,i),l.start=n,l.placed+=i,n=e.right}}t.x=n,t.y=o}var _Oe={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const a=e.boxes?e.boxes.indexOf(t):-1;-1!==a&&e.boxes.splice(a,1)},configure(e,t,a){t.fullSize=a.fullSize,t.position=a.position,t.weight=a.weight},update(e,t,a,i){if(!e)return;const s=fAe(e.options.layout.padding),n=Math.max(t-s.width,0),o=Math.max(a-s.height,0),r=function(e){const t=function(e){const t=[];let a,i,s,n,o,r;for(a=0,i=(e||[]).length;a<i;++a)s=e[a],({position:n,options:{stack:o,stackWeight:r=1}}=s),t.push({index:a,box:s,pos:n,horizontal:s.isHorizontal(),weight:s.weight,stack:o&&n+o,stackWeight:r});return t}(e),a=lOe(t.filter(e=>e.box.fullSize),!0),i=lOe(oOe(t,"left"),!0),s=lOe(oOe(t,"right")),n=lOe(oOe(t,"top"),!0),o=lOe(oOe(t,"bottom")),r=rOe(t,"x"),l=rOe(t,"y");return{fullSize:a,leftAndTop:i.concat(n),rightAndBottom:s.concat(l).concat(o).concat(r),chartArea:oOe(t,"chartArea"),vertical:i.concat(s).concat(l),horizontal:n.concat(o).concat(r)}}(e.boxes),l=r.vertical,c=r.horizontal;Dke(e.boxes,e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()});const d=l.reduce((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1,0)||1,u=Object.freeze({outerWidth:t,outerHeight:a,padding:s,availableWidth:n,availableHeight:o,vBoxMaxWidth:n/2/d,hBoxMaxHeight:o/2}),p=Object.assign({},s);uOe(p,fAe(i));const h=Object.assign({maxPadding:p,w:n,h:o,x:s.left,y:s.top},s),g=cOe(l.concat(c),u);gOe(r.fullSize,h,u,g),gOe(l,h,u,g),gOe(c,h,u,g)&&gOe(l,h,u,g),function(e){const t=e.maxPadding;function a(a){const i=Math.max(t[a]-e[a],0);return e[a]+=i,i}e.y+=a("top"),e.x+=a("left"),a("right"),a("bottom")}(h),fOe(r.leftAndTop,h,u,g),h.x+=h.w,h.y+=h.h,fOe(r.rightAndBottom,h,u,g),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Dke(r.chartArea,t=>{const a=t.box;Object.assign(a,e.chartArea),a.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class bOe{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,a){}removeEventListener(e,t,a){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,a,i){return t=Math.max(0,t||e.width),a=a||e.height,{width:t,height:Math.max(0,i?Math.floor(t/i):a)}}isAttached(e){return!0}updateConfig(e){}}class vOe extends bOe{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const yOe="$chartjs",SOe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},xOe=e=>null===e||""===e;const wOe=!!QAe&&{passive:!0};function EOe(e,t,a){e&&e.canvas&&e.canvas.removeEventListener(t,a,wOe)}function COe(e,t){for(const a of e)if(a===t||a.contains(t))return!0}function kOe(e,t,a){const i=e.canvas,s=new MutationObserver(e=>{let t=!1;for(const a of e)t=t||COe(a.addedNodes,i),t=t&&!COe(a.removedNodes,i);t&&a()});return s.observe(document,{childList:!0,subtree:!0}),s}function TOe(e,t,a){const i=e.canvas,s=new MutationObserver(e=>{let t=!1;for(const a of e)t=t||COe(a.removedNodes,i),t=t&&!COe(a.addedNodes,i);t&&a()});return s.observe(document,{childList:!0,subtree:!0}),s}const AOe=new Map;let ROe=0;function OOe(){const e=window.devicePixelRatio;e!==ROe&&(ROe=e,AOe.forEach((t,a)=>{a.currentDevicePixelRatio!==e&&t()}))}function NOe(e,t,a){const i=e.canvas,s=i&&HAe(i);if(!s)return;const n=ETe((e,t)=>{const i=s.clientWidth;a(e,t),i<s.clientWidth&&a()},window),o=new ResizeObserver(e=>{const t=e[0],a=t.contentRect.width,i=t.contentRect.height;0===a&&0===i||n(a,i)});return o.observe(s),function(e,t){AOe.size||window.addEventListener("resize",OOe),AOe.set(e,t)}(e,n),o}function IOe(e,t,a){a&&a.disconnect(),"resize"===t&&function(e){AOe.delete(e),AOe.size||window.removeEventListener("resize",OOe)}(e)}function DOe(e,t,a){const i=e.canvas,s=ETe(t=>{null!==e.ctx&&a(function(e,t){const a=SOe[e.type]||e.type,{x:i,y:s}=jAe(e,t);return{type:a,chart:t,native:e,x:void 0!==i?i:null,y:void 0!==s?s:null}}(t,e))},e);return function(e,t,a){e&&e.addEventListener(t,a,wOe)}(i,t,s),s}class MOe extends bOe{acquireContext(e,t){const a=e&&e.getContext&&e.getContext("2d");return a&&a.canvas===e?(function(e,t){const a=e.style,i=e.getAttribute("height"),s=e.getAttribute("width");if(e[yOe]={initial:{height:i,width:s,style:{display:a.display,height:a.height,width:a.width}}},a.display=a.display||"block",a.boxSizing=a.boxSizing||"border-box",xOe(s)){const t=ZAe(e,"width");void 0!==t&&(e.width=t)}if(xOe(i))if(""===e.style.height)e.height=e.width/(t||2);else{const t=ZAe(e,"height");void 0!==t&&(e.height=t)}}(e,t),a):null}releaseContext(e){const t=e.canvas;if(!t[yOe])return!1;const a=t[yOe].initial;["height","width"].forEach(e=>{const i=a[e];Cke(i)?t.removeAttribute(e):t.setAttribute(e,i)});const i=a.style||{};return Object.keys(i).forEach(e=>{t.style[e]=i[e]}),t.width=t.width,delete t[yOe],!0}addEventListener(e,t,a){this.removeEventListener(e,t);const i=e.$proxies||(e.$proxies={}),s={attach:kOe,detach:TOe,resize:NOe}[t]||DOe;i[t]=s(e,t,a)}removeEventListener(e,t){const a=e.$proxies||(e.$proxies={}),i=a[t];if(!i)return;({attach:IOe,detach:IOe,resize:IOe}[t]||EOe)(e,t,i),a[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,a,i){return KAe(e,t,a,i)}isAttached(e){const t=e&&HAe(e);return!(!t||!t.isConnected)}}let LOe=(a=class{constructor(){o(this,"x"),o(this,"y"),o(this,"active",!1),o(this,"options"),o(this,"$animations")}tooltipPosition(e){const{x:t,y:a}=this.getProps(["x","y"],e);return{x:t,y:a}}hasValue(){return nTe(this.x)&&nTe(this.y)}getProps(e,t){const a=this.$animations;if(!t||!a)return this;const i={};return e.forEach(e=>{i[e]=a[e]&&a[e].active()?a[e]._to:this[e]}),i}},o(a,"defaults",{}),o(a,"defaultRoutes"),a);function POe(e,t){const a=e.options.ticks,i=function(e){const t=e.options.offset,a=e._tickSize(),i=e._length/a+(t?0:1),s=e._maxLength/a;return Math.floor(Math.min(i,s))}(e),s=Math.min(a.maxTicksLimit||i,i),n=a.major.enabled?function(e){const t=[];let a,i;for(a=0,i=e.length;a<i;a++)e[a].major&&t.push(a);return t}(t):[],o=n.length,r=n[0],l=n[o-1],c=[];if(o>s)return function(e,t,a,i){let s,n=0,o=a[0];for(i=Math.ceil(i),s=0;s<e.length;s++)s===o&&(t.push(e[s]),n++,o=a[n*i])}(t,c,n,o/s),c;const d=function(e,t,a){const i=function(e){const t=e.length;let a,i;if(t<2)return!1;for(i=e[0],a=1;a<t;++a)if(e[a]-e[a-1]!==i)return!1;return i}(e),s=t.length/a;if(!i)return Math.max(s,1);const n=function(e){const t=[],a=Math.sqrt(e);let i;for(i=1;i<a;i++)e%i===0&&(t.push(i),t.push(e/i));return a===(0|a)&&t.push(a),t.sort((e,t)=>e-t).pop(),t}(i);for(let o=0,r=n.length-1;o<r;o++){const e=n[o];if(e>s)return e}return Math.max(s,1)}(n,t,s);if(o>0){let e,a;const i=o>1?Math.round((l-r)/(o-1)):null;for(FOe(t,c,d,Cke(i)?0:r-i,r),e=0,a=o-1;e<a;e++)FOe(t,c,d,n[e],n[e+1]);return FOe(t,c,d,l,Cke(i)?t.length:l+i),c}return FOe(t,c,d),c}function FOe(e,t,a,i,s){const n=Oke(i,0),o=Math.min(Oke(s,e.length),e.length);let r,l,c,d=0;for(a=Math.ceil(a),s&&(r=s-i,a=r/Math.floor(r/a)),c=n;c<0;)d++,c=Math.round(n+d*a);for(l=Math.max(n,0);l<o;l++)l===c&&(t.push(e[l]),d++,c=Math.round(n+d*a))}const $Oe=(e,t,a)=>"top"===t||"left"===t?e[t]+a:e[t]-a,BOe=(e,t)=>Math.min(t||e,e);function VOe(e,t){const a=[],i=e.length/t,s=e.length;let n=0;for(;n<s;n+=i)a.push(e[Math.floor(n)]);return a}function UOe(e,t,a){const i=e.ticks.length,s=Math.min(t,i-1),n=e._startPixel,o=e._endPixel,r=1e-6;let l,c=e.getPixelForTick(s);if(!(a&&(l=1===i?Math.max(c-n,o-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(s-1))/2,c+=s<t?l:-l,c<n-r||c>o+r)))return c}function HOe(e){return e.drawTicks?e.tickLength:0}function zOe(e,t){if(!e.display)return 0;const a=_Ae(e.font,t),i=fAe(e.padding);return(kke(e.text)?e.text.length:1)*a.lineHeight+i.height}function YOe(e,t,a){let i=CTe(e);return(a&&"right"!==t||!a&&"right"===t)&&(i=(e=>"left"===e?"right":"right"===e?"left":e)(i)),i}class GOe extends LOe{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:a,_suggestedMax:i}=this;return e=Rke(e,Number.POSITIVE_INFINITY),t=Rke(t,Number.NEGATIVE_INFINITY),a=Rke(a,Number.POSITIVE_INFINITY),i=Rke(i,Number.NEGATIVE_INFINITY),{min:Rke(e,a),max:Rke(t,i),minDefined:Ake(e),maxDefined:Ake(t)}}getMinMax(e){let t,{min:a,max:i,minDefined:s,maxDefined:n}=this.getUserBounds();if(s&&n)return{min:a,max:i};const o=this.getMatchingVisibleMetas();for(let r=0,l=o.length;r<l;++r)t=o[r].controller.getMinMax(this,e),s||(a=Math.min(a,t.min)),n||(i=Math.max(i,t.max));return a=n&&a>i?i:a,i=s&&a>i?a:i,{min:Rke(a,Rke(i,a)),max:Rke(i,Rke(a,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ike(this.options.beforeUpdate,[this])}update(e,t,a){const{beginAtZero:i,grace:s,ticks:n}=this.options,o=n.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=a=Object.assign({left:0,right:0,top:0,bottom:0},a),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+a.left+a.right:this.height+a.top+a.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,a){const{min:i,max:s}=e,n=Nke(t,(s-i)/2),o=(e,t)=>a&&0===e?0:e+t;return{min:o(i,-Math.abs(n)),max:o(s,n)}}(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const r=o<this.ticks.length;this._convertTicksToLabels(r?VOe(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),n.display&&(n.autoSkip||"auto"===n.source)&&(this.ticks=POe(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),r&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,a=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,a=!a),this._startPixel=e,this._endPixel=t,this._reversePixels=a,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ike(this.options.afterUpdate,[this])}beforeSetDimensions(){Ike(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ike(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Ike(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ike(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let a,i,s;for(a=0,i=e.length;a<i;a++)s=e[a],s.label=Ike(t.callback,[s.value,a,e],this)}afterTickToLabelConversion(){Ike(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ike(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,a=BOe(this.ticks.length,e.ticks.maxTicksLimit),i=t.minRotation||0,s=t.maxRotation;let n,o,r,l=i;if(!this._isVisible()||!t.display||i>=s||a<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),d=c.widest.width,u=c.highest.height,p=mTe(this.chart.width-d,0,this.maxWidth);n=e.offset?this.maxWidth/a:p/(a-1),d+6>n&&(n=p/(a-(e.offset?.5:1)),o=this.maxHeight-HOe(e.grid)-t.padding-zOe(e.title,this.chart.options.font),r=Math.sqrt(d*d+u*u),l=lTe(Math.min(Math.asin(mTe((c.highest.height+6)/n,-1,1)),Math.asin(mTe(o/r,-1,1))-Math.asin(mTe(u/r,-1,1)))),l=Math.max(i,Math.min(s,l))),this.labelRotation=l}afterCalculateLabelRotation(){Ike(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ike(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:a,title:i,grid:s}}=this,n=this._isVisible(),o=this.isHorizontal();if(n){const n=zOe(i,t.options.font);if(o?(e.width=this.maxWidth,e.height=HOe(s)+n):(e.height=this.maxHeight,e.width=HOe(s)+n),a.display&&this.ticks.length){const{first:t,last:i,widest:s,highest:n}=this._getLabelSizes(),r=2*a.padding,l=rTe(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(o){const t=a.mirror?0:d*s.width+c*n.height;e.height=Math.min(this.maxHeight,e.height+t+r)}else{const t=a.mirror?0:c*s.width+d*n.height;e.width=Math.min(this.maxWidth,e.width+t+r)}this._calculatePadding(t,i,d,c)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,a,i){const{ticks:{align:s,padding:n},position:o}=this.options,r=0!==this.labelRotation,l="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,u=0;r?l?(d=i*e.width,u=a*t.height):(d=a*e.height,u=i*t.width):"start"===s?u=t.width:"end"===s?d=e.width:"inner"!==s&&(d=e.width/2,u=t.width/2),this.paddingLeft=Math.max((d-o+n)*this.width/(this.width-o),0),this.paddingRight=Math.max((u-c+n)*this.width/(this.width-c),0)}else{let a=t.height/2,i=e.height/2;"start"===s?(a=0,i=e.height):"end"===s&&(a=t.height,i=0),this.paddingTop=a+n,this.paddingBottom=i+n}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ike(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,a;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,a=e.length;t<a;t++)Cke(e[t].label)&&(e.splice(t,1),a--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let a=this.ticks;t<a.length&&(a=VOe(a,t)),this._labelSizes=e=this._computeLabelSizes(a,a.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,a){const{ctx:i,_longestTextCache:s}=this,n=[],o=[],r=Math.floor(t/BOe(t,a));let l,c,d,u,p,h,g,m,f,_,b,v=0,y=0;for(l=0;l<t;l+=r){if(u=e[l].label,p=this._resolveTickFontOptions(l),i.font=h=p.string,g=s[h]=s[h]||{data:{},gc:[]},m=p.lineHeight,f=_=0,Cke(u)||kke(u)){if(kke(u))for(c=0,d=u.length;c<d;++c)b=u[c],Cke(b)||kke(b)||(f=qTe(i,g.data,g.gc,f,b),_+=m)}else f=qTe(i,g.data,g.gc,f,u),_=m;n.push(f),o.push(_),v=Math.max(f,v),y=Math.max(_,y)}!function(e,t){Dke(e,e=>{const a=e.gc,i=a.length/2;let s;if(i>t){for(s=0;s<i;++s)delete e.data[a[s]];a.splice(0,i)}})}(s,t);const S=n.indexOf(v),x=o.indexOf(y),w=e=>({width:n[e]||0,height:o[e]||0});return{first:w(0),last:w(t-1),widest:w(S),highest:w(x),widths:n,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return mTe(this._alignToPixels?XTe(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const a=t[e];return a.$context||(a.$context=function(e,t,a){return vAe(e,{tick:a,index:t,type:"tick"})}(this.getContext(),e,a))}return this.$context||(this.$context=vAe(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=rTe(this.labelRotation),a=Math.abs(Math.cos(t)),i=Math.abs(Math.sin(t)),s=this._getLabelSizes(),n=e.autoSkipPadding||0,o=s?s.widest.width+n:0,r=s?s.highest.height+n:0;return this.isHorizontal()?r*a>o*i?o/a:r/i:r*i<o*a?r/a:o/i}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,a=this.chart,i=this.options,{grid:s,position:n,border:o}=i,r=s.offset,l=this.isHorizontal(),c=this.ticks.length+(r?1:0),d=HOe(s),u=[],p=o.setContext(this.getContext()),h=p.display?p.width:0,g=h/2,m=function(e){return XTe(a,e,h)};let f,_,b,v,y,S,x,w,E,C,k,T;if("top"===n)f=m(this.bottom),S=this.bottom-d,w=f-g,C=m(e.top)+g,T=e.bottom;else if("bottom"===n)f=m(this.top),C=e.top,T=m(e.bottom)-g,S=f+g,w=this.top+d;else if("left"===n)f=m(this.right),y=this.right-d,x=f-g,E=m(e.left)+g,k=e.right;else if("right"===n)f=m(this.left),E=e.left,k=m(e.right)-g,y=f+g,x=this.left+d;else if("x"===t){if("center"===n)f=m((e.top+e.bottom)/2+.5);else if(Tke(n)){const e=Object.keys(n)[0],t=n[e];f=m(this.chart.scales[e].getPixelForValue(t))}C=e.top,T=e.bottom,S=f+g,w=S+d}else if("y"===t){if("center"===n)f=m((e.left+e.right)/2);else if(Tke(n)){const e=Object.keys(n)[0],t=n[e];f=m(this.chart.scales[e].getPixelForValue(t))}y=f-g,x=y-d,E=e.left,k=e.right}const A=Oke(i.ticks.maxTicksLimit,c),R=Math.max(1,Math.ceil(c/A));for(_=0;_<c;_+=R){const e=this.getContext(_),t=s.setContext(e),i=o.setContext(e),n=t.lineWidth,c=t.color,d=i.dash||[],p=i.dashOffset,h=t.tickWidth,g=t.tickColor,m=t.tickBorderDash||[],f=t.tickBorderDashOffset;b=UOe(this,_,r),void 0!==b&&(v=XTe(a,b,n),l?y=x=E=k=v:S=w=C=T=v,u.push({tx1:y,ty1:S,tx2:x,ty2:w,x1:E,y1:C,x2:k,y2:T,width:n,color:c,borderDash:d,borderDashOffset:p,tickWidth:h,tickColor:g,tickBorderDash:m,tickBorderDashOffset:f}))}return this._ticksLength=c,this._borderValue=f,u}_computeLabelItems(e){const t=this.axis,a=this.options,{position:i,ticks:s}=a,n=this.isHorizontal(),o=this.ticks,{align:r,crossAlign:l,padding:c,mirror:d}=s,u=HOe(a.grid),p=u+c,h=d?-c:p,g=-rTe(this.labelRotation),m=[];let f,_,b,v,y,S,x,w,E,C,k,T,A="middle";if("top"===i)S=this.bottom-h,x=this._getXAxisLabelAlignment();else if("bottom"===i)S=this.top+h,x=this._getXAxisLabelAlignment();else if("left"===i){const e=this._getYAxisLabelAlignment(u);x=e.textAlign,y=e.x}else if("right"===i){const e=this._getYAxisLabelAlignment(u);x=e.textAlign,y=e.x}else if("x"===t){if("center"===i)S=(e.top+e.bottom)/2+p;else if(Tke(i)){const e=Object.keys(i)[0],t=i[e];S=this.chart.scales[e].getPixelForValue(t)+p}x=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===i)y=(e.left+e.right)/2-p;else if(Tke(i)){const e=Object.keys(i)[0],t=i[e];y=this.chart.scales[e].getPixelForValue(t)}x=this._getYAxisLabelAlignment(u).textAlign}"y"===t&&("start"===r?A="top":"end"===r&&(A="bottom"));const R=this._getLabelSizes();for(f=0,_=o.length;f<_;++f){b=o[f],v=b.label;const e=s.setContext(this.getContext(f));w=this.getPixelForTick(f)+s.labelOffset,E=this._resolveTickFontOptions(f),C=E.lineHeight,k=kke(v)?v.length:1;const t=k/2,a=e.color,r=e.textStrokeColor,c=e.textStrokeWidth;let u,p=x;if(n?(y=w,"inner"===x&&(p=f===_-1?this.options.reverse?"left":"right":0===f?this.options.reverse?"right":"left":"center"),T="top"===i?"near"===l||0!==g?-k*C+C/2:"center"===l?-R.highest.height/2-t*C+C:-R.highest.height+C/2:"near"===l||0!==g?C/2:"center"===l?R.highest.height/2-t*C:R.highest.height-k*C,d&&(T*=-1),0===g||e.showLabelBackdrop||(y+=C/2*Math.sin(g))):(S=w,T=(1-k)*C/2),e.showLabelBackdrop){const t=fAe(e.backdropPadding),a=R.heights[f],i=R.widths[f];let s=T-t.top,n=0-t.left;switch(A){case"middle":s-=a/2;break;case"bottom":s-=a}switch(x){case"center":n-=i/2;break;case"right":n-=i;break;case"inner":f===_-1?n-=i:f>0&&(n-=i/2)}u={left:n,top:s,width:i+t.width,height:a+t.height,color:e.backdropColor}}m.push({label:v,font:E,textOffset:T,options:{rotation:g,color:a,strokeColor:r,strokeWidth:c,textAlign:p,textBaseline:A,translation:[y,S],backdrop:u}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-rTe(this.labelRotation))return"top"===e?"left":"right";let a="center";return"start"===t.align?a="left":"end"===t.align?a="right":"inner"===t.align&&(a="inner"),a}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:a,mirror:i,padding:s}}=this.options,n=e+s,o=this._getLabelSizes().widest.width;let r,l;return"left"===t?i?(l=this.right+s,"near"===a?r="left":"center"===a?(r="center",l+=o/2):(r="right",l+=o)):(l=this.right-n,"near"===a?r="right":"center"===a?(r="center",l-=o/2):(r="left",l=this.left)):"right"===t?i?(l=this.left+s,"near"===a?r="right":"center"===a?(r="center",l-=o/2):(r="left",l-=o)):(l=this.left+n,"near"===a?r="left":"center"===a?(r="center",l+=o/2):(r="right",l=this.right)):r="right",{textAlign:r,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:a,top:i,width:s,height:n}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(a,i,s,n),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const a=this.ticks.findIndex(t=>t.value===e);if(a>=0){return t.setContext(this.getContext(a)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,a=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,n;const o=(e,t,i)=>{i.width&&i.color&&(a.save(),a.lineWidth=i.width,a.strokeStyle=i.color,a.setLineDash(i.borderDash||[]),a.lineDashOffset=i.borderDashOffset,a.beginPath(),a.moveTo(e.x,e.y),a.lineTo(t.x,t.y),a.stroke(),a.restore())};if(t.display)for(s=0,n=i.length;s<n;++s){const e=i[s];t.drawOnChartArea&&o({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&o({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:a,grid:i}}=this,s=a.setContext(this.getContext()),n=a.display?s.width:0;if(!n)return;const o=i.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let l,c,d,u;this.isHorizontal()?(l=XTe(e,this.left,n)-n/2,c=XTe(e,this.right,o)+o/2,d=u=r):(d=XTe(e,this.top,n)-n/2,u=XTe(e,this.bottom,o)+o/2,l=c=r),t.save(),t.lineWidth=s.width,t.strokeStyle=s.color,t.beginPath(),t.moveTo(l,d),t.lineTo(c,u),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,a=this._computeLabelArea();a&&tAe(t,a);const i=this.getLabelItems(e);for(const s of i){const e=s.options,a=s.font;rAe(t,s.label,0,s.textOffset,a,e)}a&&aAe(t)}drawTitle(){const{ctx:e,options:{position:t,title:a,reverse:i}}=this;if(!a.display)return;const s=_Ae(a.font),n=fAe(a.padding),o=a.align;let r=s.lineHeight/2;"bottom"===t||"center"===t||Tke(t)?(r+=n.bottom,kke(a.text)&&(r+=s.lineHeight*(a.text.length-1))):r+=n.top;const{titleX:l,titleY:c,maxWidth:d,rotation:u}=function(e,t,a,i){const{top:s,left:n,bottom:o,right:r,chart:l}=e,{chartArea:c,scales:d}=l;let u,p,h,g=0;const m=o-s,f=r-n;if(e.isHorizontal()){if(p=kTe(i,n,r),Tke(a)){const e=Object.keys(a)[0],i=a[e];h=d[e].getPixelForValue(i)+m-t}else h="center"===a?(c.bottom+c.top)/2+m-t:$Oe(e,a,t);u=r-n}else{if(Tke(a)){const e=Object.keys(a)[0],i=a[e];p=d[e].getPixelForValue(i)-f+t}else p="center"===a?(c.left+c.right)/2-f+t:$Oe(e,a,t);h=kTe(i,o,s),g="left"===a?-Zke:Zke}return{titleX:p,titleY:h,maxWidth:u,rotation:g}}(this,r,t,o);rAe(e,a.text,0,0,s,{color:a.color,maxWidth:d,rotation:u,textAlign:YOe(o,t,i),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,a=Oke(e.grid&&e.grid.z,-1),i=Oke(e.border&&e.border.z,0);return this._isVisible()&&this.draw===GOe.prototype.draw?[{z:a,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),a=this.axis+"AxisID",i=[];let s,n;for(s=0,n=t.length;s<n;++s){const n=t[s];n[a]!==this.id||e&&n.type!==e||i.push(n)}return i}_resolveTickFontOptions(e){return _Ae(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class WOe{constructor(e,t,a){this.type=e,this.scope=t,this.override=a,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let a;(function(e){return"id"in e&&"defaults"in e})(t)&&(a=this.register(t));const i=this.items,s=e.id,n=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+e);return s in i||(i[s]=e,function(e,t,a){const i=$ke(Object.create(null),[a?jTe.get(a):{},jTe.get(t),e.defaults]);jTe.set(t,i),e.defaultRoutes&&function(e,t){Object.keys(t).forEach(a=>{const i=a.split("."),s=i.pop(),n=[e].concat(i).join("."),o=t[a].split("."),r=o.pop(),l=o.join(".");jTe.route(n,s,l,r)})}(t,e.defaultRoutes);e.descriptors&&jTe.describe(t,e.descriptors)}(e,n,a),this.override&&jTe.override(e.id,e.overrides)),n}get(e){return this.items[e]}unregister(e){const t=this.items,a=e.id,i=this.scope;a in t&&delete t[a],i&&a in jTe[i]&&(delete jTe[i][a],this.override&&delete HTe[a])}}class jOe{constructor(){this.controllers=new WOe(NRe,"datasets",!0),this.elements=new WOe(LOe,"elements"),this.plugins=new WOe(Object,"plugins"),this.scales=new WOe(GOe,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,a){[...t].forEach(t=>{const i=a||this._getRegistryForType(t);a||i.isForType(t)||i===this.plugins&&t.id?this._exec(e,i,t):Dke(t,t=>{const i=a||this._getRegistryForType(t);this._exec(e,i,t)})})}_exec(e,t,a){const i=zke(e);Ike(a["before"+i],[],a),t[e](a),Ike(a["after"+i],[],a)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const a=this._typedRegistries[t];if(a.isForType(e))return a}return this.plugins}_get(e,t,a){const i=t.get(e);if(void 0===i)throw new Error('"'+e+'" is not a registered '+a+".");return i}}var qOe=new jOe;class KOe{constructor(){this._init=void 0}notify(e,t,a,i){if("beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),void 0===this._init)return;const s=i?this._descriptors(e).filter(i):this._descriptors(e),n=this._notify(s,e,t,a);return"afterDestroy"===t&&(this._notify(s,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),n}_notify(e,t,a,i){i=i||{};for(const s of e){const e=s.plugin;if(!1===Ike(e[a],[t,i,s.options],e)&&i.cancelable)return!1}return!0}invalidate(){Cke(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const a=e&&e.config,i=Oke(a.options&&a.options.plugins,{}),s=function(e){const t={},a=[],i=Object.keys(qOe.plugins.items);for(let n=0;n<i.length;n++)a.push(qOe.getPlugin(i[n]));const s=e.plugins||[];for(let n=0;n<s.length;n++){const e=s[n];-1===a.indexOf(e)&&(a.push(e),t[e.id]=!0)}return{plugins:a,localIds:t}}(a);return!1!==i||t?function(e,{plugins:t,localIds:a},i,s){const n=[],o=e.getContext();for(const r of t){const t=r.id,l=XOe(i[t],s);null!==l&&n.push({plugin:r,options:QOe(e.config,{plugin:r,local:a[t]},l,o)})}return n}(e,s,i,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],a=this._cache,i=(e,t)=>e.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(i(t,a),e,"stop"),this._notify(i(a,t),e,"start")}}function XOe(e,t){return t||!1!==e?!0===e?{}:e:null}function QOe(e,{plugin:t,local:a},i,s){const n=e.pluginScopeKeys(t),o=e.getOptionScopes(i,n);return a&&t.defaults&&o.push(t.defaults),e.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ZOe(e,t){const a=jTe.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||a.indexAxis||"x"}function JOe(e){if("x"===e||"y"===e||"r"===e)return e}function eNe(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function tNe(e,...t){if(JOe(e))return e;for(const a of t){const t=a.axis||eNe(a.position)||e.length>1&&JOe(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function aNe(e,t,a){if(a[t+"AxisID"]===e)return{axis:t}}function iNe(e,t){const a=HTe[e.type]||{scales:{}},i=t.scales||{},s=ZOe(e.type,t),n=Object.create(null);return Object.keys(i).forEach(t=>{const o=i[t];if(!Tke(o))return;if(o._proxy)return;const r=tNe(t,o,function(e,t){if(t.data&&t.data.datasets){const a=t.data.datasets.filter(t=>t.xAxisID===e||t.yAxisID===e);if(a.length)return aNe(e,"x",a[0])||aNe(e,"y",a[0])}return{}}(t,e),jTe.scales[o.type]),l=function(e,t){return e===t?"_index_":"_value_"}(r,s),c=a.scales||{};n[t]=Bke(Object.create(null),[{axis:r},o,c[r],c[l]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,o=a.indexAxis||ZOe(s,t),r=(HTe[s]||{}).scales||{};Object.keys(r).forEach(e=>{const t=function(e,t){let a=e;return"_index_"===e?a=t:"_value_"===e&&(a="x"===t?"y":"x"),a}(e,o),s=a[t+"AxisID"]||t;n[s]=n[s]||Object.create(null),Bke(n[s],[{axis:t},i[s],r[e]])})}),Object.keys(n).forEach(e=>{const t=n[e];Bke(t,[jTe.scales[t.type],jTe.scale])}),n}function sNe(e){const t=e.options||(e.options={});t.plugins=Oke(t.plugins,{}),t.scales=iNe(e,t)}function nNe(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const oNe=new Map,rNe=new Set;function lNe(e,t){let a=oNe.get(e);return a||(a=t(),oNe.set(e,a),rNe.add(a)),a}const cNe=(e,t,a)=>{const i=Hke(t,a);void 0!==i&&e.add(i)};let dNe=class{constructor(e){this._config=function(e){return(e=e||{}).data=nNe(e.data),sNe(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=nNe(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),sNe(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return lNe(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,t){return lNe(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,t){return lNe(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]])}pluginScopeKeys(e){const t=e.id;return lNe(`${this.type}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){const a=this._scopeCache;let i=a.get(e);return i&&!t||(i=new Map,a.set(e,i)),i}getOptionScopes(e,t,a){const{options:i,type:s}=this,n=this._cachedScopes(e,a),o=n.get(t);if(o)return o;const r=new Set;t.forEach(t=>{e&&(r.add(e),t.forEach(t=>cNe(r,e,t))),t.forEach(e=>cNe(r,i,e)),t.forEach(e=>cNe(r,HTe[s]||{},e)),t.forEach(e=>cNe(r,jTe,e)),t.forEach(e=>cNe(r,zTe,e))});const l=Array.from(r);return 0===l.length&&l.push(Object.create(null)),rNe.has(t)&&n.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,HTe[t]||{},jTe.datasets[t]||{},{type:t},jTe,zTe]}resolveNamedOptions(e,t,a,i=[""]){const s={$shared:!0},{resolver:n,subPrefixes:o}=uNe(this._resolverCache,e,i);let r=n;if(function(e,t){const{isScriptable:a,isIndexable:i}=xAe(e);for(const s of t){const t=a(s),n=i(s),o=(n||t)&&e[s];if(t&&(Gke(o)||pNe(o))||n&&kke(o))return!0}return!1}(n,t)){s.$shared=!1;r=SAe(n,a=Gke(a)?a():a,this.createResolver(e,a,o))}for(const l of t)s[l]=r[l];return s}createResolver(e,t,a=[""],i){const{resolver:s}=uNe(this._resolverCache,e,a);return Tke(t)?SAe(s,t,void 0,i):s}};function uNe(e,t,a){let i=e.get(t);i||(i=new Map,e.set(t,i));const s=a.join();let n=i.get(s);if(!n){n={resolver:yAe(t,a),subPrefixes:a.filter(e=>!e.toLowerCase().includes("hover"))},i.set(s,n)}return n}const pNe=e=>Tke(e)&&Object.getOwnPropertyNames(e).some(t=>Gke(e[t]));const hNe=["top","bottom","left","right","chartArea"];function gNe(e,t){return"top"===e||"bottom"===e||-1===hNe.indexOf(e)&&"x"===t}function mNe(e,t){return function(a,i){return a[e]===i[e]?a[t]-i[t]:a[e]-i[e]}}function fNe(e){const t=e.chart,a=t.options.animation;t.notifyPlugins("afterRender"),Ike(a&&a.onComplete,[e],t)}function _Ne(e){const t=e.chart,a=t.options.animation;Ike(a&&a.onProgress,[e],t)}function bNe(e){return UAe()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const vNe={},yNe=e=>{const t=bNe(e);return Object.values(vNe).filter(e=>e.canvas===t).pop()};function SNe(e,t,a){const i=Object.keys(e);for(const s of i){const i=+s;if(i>=t){const n=e[s];delete e[s],(a>0||i>t)&&(e[i+a]=n)}}}class xNe{static register(...e){qOe.add(...e),wNe()}static unregister(...e){qOe.remove(...e),wNe()}constructor(e,t){const a=this.config=new dNe(t),i=bNe(e),s=yNe(i);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const n=a.createResolver(a.chartOptionScopes(),this.getContext());this.platform=new(a.platform||function(e){return!UAe()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?vOe:MOe}(i)),this.platform.updateConfig(a);const o=this.platform.acquireContext(i,n.aspectRatio),r=o&&o.canvas,l=r&&r.height,c=r&&r.width;this.id=Eke(),this.ctx=o,this.canvas=r,this.width=c,this.height=l,this._options=n,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new KOe,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let a;return function(...i){return t?(clearTimeout(a),a=setTimeout(e,t,i)):e.apply(this,i),t}}(e=>this.update(e),n.resizeDelay||0),this._dataChanges=[],vNe[this.id]=this,o&&r&&(mRe.listen(this,"complete",fNe),mRe.listen(this,"progress",_Ne),this._initialize(),this.attached&&this.update())}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:a,height:i,_aspectRatio:s}=this;return Cke(e)?t&&s?s:i?a/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return qOe}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():XAe(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return QTe(this.canvas,this.ctx),this}stop(){return mRe.stop(this),this}resize(e,t){mRe.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const a=this.options,i=this.canvas,s=a.maintainAspectRatio&&this.aspectRatio,n=this.platform.getMaximumSize(i,e,t,s),o=a.devicePixelRatio||this.platform.getDevicePixelRatio(),r=this.width?"resize":"attach";this.width=n.width,this.height=n.height,this._aspectRatio=this.aspectRatio,XAe(this,o,!0)&&(this.notifyPlugins("resize",{size:n}),Ike(a.onResize,[this,n],this),this.attached&&this._doResize(r)&&this.render())}ensureScalesHaveIDs(){Dke(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){const e=this.options,t=e.scales,a=this.scales,i=Object.keys(a).reduce((e,t)=>(e[t]=!1,e),{});let s=[];t&&(s=s.concat(Object.keys(t).map(e=>{const a=t[e],i=tNe(e,a),s="r"===i,n="x"===i;return{options:a,dposition:s?"chartArea":n?"bottom":"left",dtype:s?"radialLinear":n?"category":"linear"}}))),Dke(s,t=>{const s=t.options,n=s.id,o=tNe(n,s),r=Oke(s.type,t.dtype);void 0!==s.position&&gNe(s.position,o)===gNe(t.dposition)||(s.position=t.dposition),i[n]=!0;let l=null;if(n in a&&a[n].type===r)l=a[n];else{l=new(qOe.getScale(r))({id:n,type:r,ctx:this.ctx,chart:this}),a[l.id]=l}l.init(s,e)}),Dke(i,(e,t)=>{e||delete a[t]}),Dke(a,e=>{_Oe.configure(this,e,e.options),_Oe.addBox(this,e)})}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,a=e.length;if(e.sort((e,t)=>e.index-t.index),a>t){for(let e=t;e<a;++e)this._destroyDatasetMeta(e);e.splice(t,a-t)}this._sortedMetasets=e.slice(0).sort(mNe("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach((e,a)=>{0===t.filter(t=>t===e._dataset).length&&this._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let a,i;for(this._removeUnreferencedMetasets(),a=0,i=t.length;a<i;a++){const i=t[a];let s=this.getDatasetMeta(a);const n=i.type||this.config.type;if(s.type&&s.type!==n&&(this._destroyDatasetMeta(a),s=this.getDatasetMeta(a)),s.type=n,s.indexAxis=i.indexAxis||ZOe(n,this.options),s.order=i.order||0,s.index=a,s.label=""+i.label,s.visible=this.isDatasetVisible(a),s.controller)s.controller.updateIndex(a),s.controller.linkScales();else{const t=qOe.getController(n),{datasetElementType:i,dataElementType:o}=jTe.datasets[n];Object.assign(t,{dataElementType:qOe.getElement(o),datasetElementType:i&&qOe.getElement(i)}),s.controller=new t(this,a),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){Dke(this.data.datasets,(e,t)=>{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const a=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!a.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let n=0;for(let l=0,c=this.data.datasets.length;l<c;l++){const{controller:e}=this.getDatasetMeta(l),t=!i&&-1===s.indexOf(e);e.buildOrUpdateElements(t),n=Math.max(+e.getMaxOverflow(),n)}n=this._minPadding=a.layout.autoPadding?n:0,this._updateLayout(n),i||Dke(s,e=>{e.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(mNe("z","_idx"));const{_active:o,_lastEvent:r}=this;r?this._eventHandler(r,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Dke(this.scales,e=>{_Oe.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),a=new Set(e.events);Wke(t,a)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:a,start:i,count:s}of t){SNe(e,i,"_removeElements"===a?-s:s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,a=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+","+e.splice(1).join(","))),i=a(0);for(let s=1;s<t;s++)if(!Wke(i,a(s)))return;return Array.from(i).map(e=>e.split(",")).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;_Oe.update(this,this.width,this.height,e);const t=this.chartArea,a=t.width<=0||t.height<=0;this._layers=[],Dke(this.boxes,e=>{a&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,a=this.data.datasets.length;t<a;++t)this._updateDataset(t,Gke(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const a=this.getDatasetMeta(e),i={meta:a,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(a.controller._update(t),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(mRe.has(this)?this.attached&&!mRe.running(this)&&mRe.start(this):(this.draw(),fNe({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,a=[];let i,s;for(i=0,s=t.length;i<s;++i){const s=t[i];e&&!s.visible||a.push(s)}return a}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,a={meta:e,index:e.index,cancelable:!0},i=hRe(this,e);!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(i&&tAe(t,i),e.controller.draw(),i&&aAe(t),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(e){return eAe(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,a,i){const s=sOe.modes[t];return"function"==typeof s?s(this,e,a,i):[]}getDatasetMeta(e){const t=this.data.datasets[e],a=this._metasets;let i=a.filter(e=>e&&e._dataset===t).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},a.push(i)),i}getContext(){return this.$context||(this.$context=vAe(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const a=this.getDatasetMeta(e);return"boolean"==typeof a.hidden?!a.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,a){const i=a?"show":"hide",s=this.getDatasetMeta(e),n=s.controller._resolveAnimations(void 0,i);Yke(t)?(s.data[t].hidden=!a,this.update()):(this.setDatasetVisibility(e,a),n.update(s,{visible:a}),this.update(t=>t.datasetIndex===e?i:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),mRe.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),QTe(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete vNe[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,a=(a,i)=>{t.addEventListener(this,a,i),e[a]=i},i=(e,t,a)=>{e.offsetX=t,e.offsetY=a,this._eventHandler(e)};Dke(this.options.events,e=>a(e,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,a=(a,i)=>{t.addEventListener(this,a,i),e[a]=i},i=(a,i)=>{e[a]&&(t.removeEventListener(this,a,i),delete e[a])},s=(e,t)=>{this.canvas&&this.resize(e,t)};let n;const o=()=>{i("attach",o),this.attached=!0,this.resize(),a("resize",s),a("detach",n)};n=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),a("attach",o)},t.isAttached(this.canvas)?o():n()}unbindEvents(){Dke(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},Dke(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,a){const i=a?"set":"remove";let s,n,o,r;for("dataset"===t&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),o=0,r=e.length;o<r;++o){n=e[o];const t=n&&this.getDatasetMeta(n.datasetIndex).controller;t&&t[i+"HoverStyle"](n.element,n.datasetIndex,n.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],a=e.map(({datasetIndex:e,index:t})=>{const a=this.getDatasetMeta(e);if(!a)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:a.data[t],index:t}});!Mke(a,t)&&(this._active=a,this._lastEvent=null,this._updateHoverStyles(a,t))}notifyPlugins(e,t,a){return this._plugins.notify(this,e,t,a)}isPluginEnabled(e){return 1===this._plugins._cache.filter(t=>t.plugin.id===e).length}_updateHoverStyles(e,t,a){const i=this.options.hover,s=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),n=s(t,e),o=a?e:s(e,t);n.length&&this.updateHoverStyle(n,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(e,t){const a={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},i=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",a,i))return;const s=this._handleEvent(e,t,a.inChartArea);return a.cancelable=!1,this.notifyPlugins("afterEvent",a,i),(s||a.changed)&&this.render(),this}_handleEvent(e,t,a){const{_active:i=[],options:s}=this,n=t,o=this._getActiveElements(e,i,a,n),r=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,a,i){return a&&"mouseout"!==e.type?i?t:e:null}(e,this._lastEvent,a,r);a&&(this._lastEvent=null,Ike(s.onHover,[e,o,this],this),r&&Ike(s.onClick,[e,o,this],this));const c=!Mke(o,i);return(c||t)&&(this._active=o,this._updateHoverStyles(o,i,t)),this._lastEvent=l,c}_getActiveElements(e,t,a,i){if("mouseout"===e.type)return[];if(!a)return t;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,i)}}function wNe(){return Dke(xNe.instances,e=>e._plugins.invalidate())}function ENe(e,t,a,i){const s=hAe(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const n=(a-t)/2,o=Math.min(n,i*t/2),r=e=>{const t=(a-Math.min(n,e))*i/2;return mTe(e,0,Math.min(n,t))};return{outerStart:r(s.outerStart),outerEnd:r(s.outerEnd),innerStart:mTe(s.innerStart,0,o),innerEnd:mTe(s.innerEnd,0,o)}}function CNe(e,t,a,i){return{x:a+e*Math.cos(t),y:i+e*Math.sin(t)}}function kNe(e,t,a,i,s,n){const{x:o,y:r,startAngle:l,pixelMargin:c,innerRadius:d}=t,u=Math.max(t.outerRadius+i+a-c,0),p=d>0?d+i+a+c:0;let h=0;const g=s-l;if(i){const e=((d>0?d-i:0)+(u>0?u-i:0))/2;h=(g-(0!==e?g*e/(e+i):g))/2}const m=(g-Math.max(.001,g*u-a/jke)/u)/2,f=l+m+h,_=s-m-h,{outerStart:b,outerEnd:v,innerStart:y,innerEnd:S}=ENe(t,p,u,_-f),x=u-b,w=u-v,E=f+b/x,C=_-v/w,k=p+y,T=p+S,A=f+y/k,R=_-S/T;if(e.beginPath(),n){const t=(E+C)/2;if(e.arc(o,r,u,E,t),e.arc(o,r,u,t,C),v>0){const t=CNe(w,C,o,r);e.arc(t.x,t.y,v,C,_+Zke)}const a=CNe(T,_,o,r);if(e.lineTo(a.x,a.y),S>0){const t=CNe(T,R,o,r);e.arc(t.x,t.y,S,_+Zke,R+Math.PI)}const i=(_-S/p+(f+y/p))/2;if(e.arc(o,r,p,_-S/p,i,!0),e.arc(o,r,p,i,f+y/p,!0),y>0){const t=CNe(k,A,o,r);e.arc(t.x,t.y,y,A+Math.PI,f-Zke)}const s=CNe(x,f,o,r);if(e.lineTo(s.x,s.y),b>0){const t=CNe(x,E,o,r);e.arc(t.x,t.y,b,f-Zke,E)}}else{e.moveTo(o,r);const t=Math.cos(E)*u+o,a=Math.sin(E)*u+r;e.lineTo(t,a);const i=Math.cos(C)*u+o,s=Math.sin(C)*u+r;e.lineTo(i,s)}e.closePath()}function TNe(e,t,a,i,s){const{fullCircles:n,startAngle:o,circumference:r,options:l}=t,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:p,borderRadius:h}=l,g="inner"===l.borderAlign;if(!c)return;e.setLineDash(u||[]),e.lineDashOffset=p,g?(e.lineWidth=2*c,e.lineJoin=d||"round"):(e.lineWidth=c,e.lineJoin=d||"bevel");let m=t.endAngle;if(n){kNe(e,t,a,i,m,s);for(let t=0;t<n;++t)e.stroke();isNaN(r)||(m=o+(r%qke||qke))}g&&function(e,t,a){const{startAngle:i,pixelMargin:s,x:n,y:o,outerRadius:r,innerRadius:l}=t;let c=s/r;e.beginPath(),e.arc(n,o,r,i-c,a+c),l>s?(c=s/l,e.arc(n,o,l,a+c,i-c,!0)):e.arc(n,o,s,a+Zke,i-Zke),e.closePath(),e.clip()}(e,t,m),l.selfJoin&&m-o>=jke&&0===h&&"miter"!==d&&function(e,t,a){const{startAngle:i,x:s,y:n,outerRadius:o,innerRadius:r,options:l}=t,{borderWidth:c,borderJoinStyle:d}=l,u=Math.min(c/o,hTe(i-a));if(e.beginPath(),e.arc(s,n,o-c/2,i+u/2,a-u/2),r>0){const t=Math.min(c/r,hTe(i-a));e.arc(s,n,r+c/2,a-t/2,i+t/2,!0)}else{const t=Math.min(c/2,o*hTe(i-a));if("round"===d)e.arc(s,n,t,a-jke/2,i+jke/2,!0);else if("bevel"===d){const o=2*t*t,r=-o*Math.cos(a+jke/2)+s,l=-o*Math.sin(a+jke/2)+n,c=o*Math.cos(i+jke/2)+s,d=o*Math.sin(i+jke/2)+n;e.lineTo(r,l),e.lineTo(c,d)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}(e,t,m),n||(kNe(e,t,a,i,m,s),e.stroke())}o(xNe,"defaults",jTe),o(xNe,"instances",vNe),o(xNe,"overrides",HTe),o(xNe,"registry",qOe),o(xNe,"version","4.5.1"),o(xNe,"getChart",yNe);class ANe extends LOe{constructor(e){super(),o(this,"circumference"),o(this,"endAngle"),o(this,"fullCircles"),o(this,"innerRadius"),o(this,"outerRadius"),o(this,"pixelMargin"),o(this,"startAngle"),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,a){const i=this.getProps(["x","y"],a),{angle:s,distance:n}=dTe(i,{x:e,y:t}),{startAngle:o,endAngle:r,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],a),u=(this.options.spacing+this.options.borderWidth)/2,p=Oke(d,r-o),h=gTe(s,o,r)&&o!==r,g=p>=qke||h,m=fTe(n,l+u,c+u);return g&&m}getCenterPoint(e){const{x:t,y:a,startAngle:i,endAngle:s,innerRadius:n,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:r,spacing:l}=this.options,c=(i+s)/2,d=(n+o+l+r)/2;return{x:t+Math.cos(c)*d,y:a+Math.sin(c)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:a}=this,i=(t.offset||0)/4,s=(t.spacing||0)/2,n=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=a>qke?Math.floor(a/qke):0,0===a||this.innerRadius<0||this.outerRadius<0)return;e.save();const o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*i,Math.sin(o)*i);const r=i*(1-Math.sin(Math.min(jke,a||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,a,i,s){const{fullCircles:n,startAngle:o,circumference:r}=t;let l=t.endAngle;if(n){kNe(e,t,a,i,l,s);for(let t=0;t<n;++t)e.fill();isNaN(r)||(l=o+(r%qke||qke))}kNe(e,t,a,i,l,s),e.fill()}(e,this,r,s,n),TNe(e,this,r,s,n),e.restore()}}function RNe(e,t,a=t){e.lineCap=Oke(a.borderCapStyle,t.borderCapStyle),e.setLineDash(Oke(a.borderDash,t.borderDash)),e.lineDashOffset=Oke(a.borderDashOffset,t.borderDashOffset),e.lineJoin=Oke(a.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Oke(a.borderWidth,t.borderWidth),e.strokeStyle=Oke(a.borderColor,t.borderColor)}function ONe(e,t,a){e.lineTo(a.x,a.y)}function NNe(e,t,a={}){const i=e.length,{start:s=0,end:n=i-1}=a,{start:o,end:r}=t,l=Math.max(s,o),c=Math.min(n,r),d=s<o&&n<o||s>r&&n>r;return{count:i,start:l,loop:t.loop,ilen:c<l&&!d?i+c-l:c-l}}function INe(e,t,a,i){const{points:s,options:n}=t,{count:o,start:r,loop:l,ilen:c}=NNe(s,a,i),d=function(e){return e.stepped?iAe:e.tension||"monotone"===e.cubicInterpolationMode?sAe:ONe}(n);let u,p,h,{move:g=!0,reverse:m}=i||{};for(u=0;u<=c;++u)p=s[(r+(m?c-u:u))%o],p.skip||(g?(e.moveTo(p.x,p.y),g=!1):d(e,h,p,m,n.stepped),h=p);return l&&(p=s[(r+(m?c:0))%o],d(e,h,p,m,n.stepped)),!!l}function DNe(e,t,a,i){const s=t.points,{count:n,start:o,ilen:r}=NNe(s,a,i),{move:l=!0,reverse:c}=i||{};let d,u,p,h,g,m,f=0,_=0;const b=e=>(o+(c?r-e:e))%n,v=()=>{h!==g&&(e.lineTo(f,g),e.lineTo(f,h),e.lineTo(f,m))};for(l&&(u=s[b(0)],e.moveTo(u.x,u.y)),d=0;d<=r;++d){if(u=s[b(d)],u.skip)continue;const t=u.x,a=u.y,i=0|t;i===p?(a<h?h=a:a>g&&(g=a),f=(_*f+t)/++_):(v(),e.lineTo(t,a),p=i,_=0,h=g=a),m=a}v()}function MNe(e){const t=e.options,a=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||a)?DNe:INe}o(ANe,"id","arc"),o(ANe,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),o(ANe,"defaultRoutes",{backgroundColor:"backgroundColor"}),o(ANe,"descriptors",{_scriptable:!0,_indexable:e=>"borderDash"!==e});const LNe="function"==typeof Path2D;function PNe(e,t,a,i){LNe&&!t.options.segment?function(e,t,a,i){let s=t._path;s||(s=t._path=new Path2D,t.path(s,a,i)&&s.closePath()),RNe(e,t.options),e.stroke(s)}(e,t,a,i):function(e,t,a,i){const{segments:s,options:n}=t,o=MNe(t);for(const r of s)RNe(e,n,r.style),e.beginPath(),o(e,t,r,{start:a,end:a+i-1})&&e.closePath(),e.stroke()}(e,t,a,i)}class FNe extends LOe{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const a=this.options;if((a.tension||"monotone"===a.cubicInterpolationMode)&&!a.stepped&&!this._pointsUpdated){const i=a.spanGaps?this._loop:this._fullLoop;VAe(this._points,a,e,i,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const a=e.points,i=e.options.spanGaps,s=a.length;if(!s)return[];const n=!!e._loop,{start:o,end:r}=function(e,t,a,i){let s=0,n=t-1;if(a&&!i)for(;s<t&&!e[s].skip;)s++;for(;s<t&&e[s].skip;)s++;for(s%=t,a&&(n+=s);n>s&&e[n%t].skip;)n--;return n%=t,{start:s,end:n}}(a,s,n,i);return cRe(e,!0===i?[{start:o,end:r,loop:n}]:function(e,t,a,i){const s=e.length,n=[];let o,r=t,l=e[t];for(o=t+1;o<=a;++o){const a=e[o%s];a.skip||a.stop?l.skip||(i=!1,n.push({start:t%s,end:(o-1)%s,loop:i}),t=r=a.stop?o:null):(r=o,l.skip&&(t=o)),l=a}return null!==r&&n.push({start:t%s,end:r%s,loop:i}),n}(a,o,r<o?r+s:r,!!e._fullLoop&&0===o&&r===s-1),a,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,a=e.length;return a&&t[e[a-1].end]}interpolate(e,t){const a=this.options,i=e[t],s=this.points,n=lRe(this,{property:t,start:i,end:i});if(!n.length)return;const o=[],r=function(e){return e.stepped?eRe:e.tension||"monotone"===e.cubicInterpolationMode?tRe:JAe}(a);let l,c;for(l=0,c=n.length;l<c;++l){const{start:c,end:d}=n[l],u=s[c],p=s[d];if(u===p){o.push(u);continue}const h=r(u,p,Math.abs((i-u[t])/(p[t]-u[t])),a.stepped);h[t]=e[t],o.push(h)}return 1===o.length?o[0]:o}pathSegment(e,t,a){return MNe(this)(e,this,t,a)}path(e,t,a){const i=this.segments,s=MNe(this);let n=this._loop;t=t||0,a=a||this.points.length-t;for(const o of i)n&=s(e,this,o,{start:t,end:t+a-1});return!!n}draw(e,t,a,i){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(e.save(),PNe(e,this,a,i),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function $Ne(e,t,a,i){const s=e.options,{[a]:n}=e.getProps([a],i);return Math.abs(t-n)<s.radius+s.hitRadius}o(FNe,"id","line"),o(FNe,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),o(FNe,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),o(FNe,"descriptors",{_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e});class BNe extends LOe{constructor(e){super(),o(this,"parsed"),o(this,"skip"),o(this,"stop"),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,a){const i=this.options,{x:s,y:n}=this.getProps(["x","y"],a);return Math.pow(e-s,2)+Math.pow(t-n,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(e,t){return $Ne(this,e,"x",t)}inYRange(e,t){return $Ne(this,e,"y",t)}getCenterPoint(e){const{x:t,y:a}=this.getProps(["x","y"],e);return{x:t,y:a}}size(e){let t=(e=e||this.options||{}).radius||0;t=Math.max(t,t&&e.hoverRadius||0);return 2*(t+(t&&e.borderWidth||0))}draw(e,t){const a=this.options;this.skip||a.radius<.1||!eAe(this,t,this.size(a)/2)||(e.strokeStyle=a.borderColor,e.lineWidth=a.borderWidth,e.fillStyle=a.backgroundColor,ZTe(e,a,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function VNe(e,t){const{x:a,y:i,base:s,width:n,height:o}=e.getProps(["x","y","base","width","height"],t);let r,l,c,d,u;return e.horizontal?(u=o/2,r=Math.min(a,s),l=Math.max(a,s),c=i-u,d=i+u):(u=n/2,r=a-u,l=a+u,c=Math.min(i,s),d=Math.max(i,s)),{left:r,top:c,right:l,bottom:d}}function UNe(e,t,a,i){return e?0:mTe(t,a,i)}function HNe(e){const t=VNe(e),a=t.right-t.left,i=t.bottom-t.top,s=function(e,t,a){const i=e.options.borderWidth,s=e.borderSkipped,n=gAe(i);return{t:UNe(s.top,n.top,0,a),r:UNe(s.right,n.right,0,t),b:UNe(s.bottom,n.bottom,0,a),l:UNe(s.left,n.left,0,t)}}(e,a/2,i/2),n=function(e,t,a){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),s=e.options.borderRadius,n=mAe(s),o=Math.min(t,a),r=e.borderSkipped,l=i||Tke(s);return{topLeft:UNe(!l||r.top||r.left,n.topLeft,0,o),topRight:UNe(!l||r.top||r.right,n.topRight,0,o),bottomLeft:UNe(!l||r.bottom||r.left,n.bottomLeft,0,o),bottomRight:UNe(!l||r.bottom||r.right,n.bottomRight,0,o)}}(e,a/2,i/2);return{outer:{x:t.left,y:t.top,w:a,h:i,radius:n},inner:{x:t.left+s.l,y:t.top+s.t,w:a-s.l-s.r,h:i-s.t-s.b,radius:{topLeft:Math.max(0,n.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,n.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,n.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,n.bottomRight-Math.max(s.b,s.r))}}}}function zNe(e,t,a,i){const s=null===t,n=null===a,o=e&&!(s&&n)&&VNe(e,i);return o&&(s||fTe(t,o.left,o.right))&&(n||fTe(a,o.top,o.bottom))}function YNe(e,t){e.rect(t.x,t.y,t.w,t.h)}function GNe(e,t,a={}){const i=e.x!==a.x?-t:0,s=e.y!==a.y?-t:0,n=(e.x+e.w!==a.x+a.w?t:0)-i,o=(e.y+e.h!==a.y+a.h?t:0)-s;return{x:e.x+i,y:e.y+s,w:e.w+n,h:e.h+o,radius:e.radius}}o(BNe,"id","point"),o(BNe,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),o(BNe,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});class WNe extends LOe{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:a,backgroundColor:i}}=this,{inner:s,outer:n}=HNe(this),o=(r=n.radius).topLeft||r.topRight||r.bottomLeft||r.bottomRight?lAe:YNe;var r;e.save(),n.w===s.w&&n.h===s.h||(e.beginPath(),o(e,GNe(n,t,s)),e.clip(),o(e,GNe(s,-t,n)),e.fillStyle=a,e.fill("evenodd")),e.beginPath(),o(e,GNe(s,t)),e.fillStyle=i,e.fill(),e.restore()}inRange(e,t,a){return zNe(this,e,t,a)}inXRange(e,t){return zNe(this,e,null,t)}inYRange(e,t){return zNe(this,null,e,t)}getCenterPoint(e){const{x:t,y:a,base:i,horizontal:s}=this.getProps(["x","y","base","horizontal"],e);return{x:s?(t+i)/2:t,y:s?a:(a+i)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}o(WNe,"id","bar"),o(WNe,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),o(WNe,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var jNe=Object.freeze({__proto__:null,ArcElement:ANe,BarElement:WNe,LineElement:FNe,PointElement:BNe});const qNe=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],KNe=qNe.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function XNe(e){return qNe[e%qNe.length]}function QNe(e){return KNe[e%KNe.length]}function ZNe(e){let t=0;return(a,i)=>{const s=e.getDatasetMeta(i).controller;s instanceof HRe?t=function(e,t){return e.backgroundColor=e.data.map(()=>XNe(t++)),t}(a,t):s instanceof YRe?t=function(e,t){return e.backgroundColor=e.data.map(()=>QNe(t++)),t}(a,t):s&&(t=function(e,t){return e.borderColor=XNe(t),e.backgroundColor=QNe(t),++t}(a,t))}}function JNe(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}var eIe={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,a){if(!a.enabled)return;const{data:{datasets:i},options:s}=e.config,{elements:n}=s,o=JNe(i)||(r=s)&&(r.borderColor||r.backgroundColor)||n&&JNe(n)||"rgba(0,0,0,0.1)"!==jTe.borderColor||"rgba(0,0,0,0.1)"!==jTe.backgroundColor;var r;if(!a.forceOverride&&o)return;const l=ZNe(e);i.forEach(l)}};function tIe(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function aIe(e){e.data.datasets.forEach(e=>{tIe(e)})}var iIe={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,a)=>{if(!a.enabled)return void aIe(e);const i=e.width;e.data.datasets.forEach((t,s)=>{const{_data:n,indexAxis:o}=t,r=e.getDatasetMeta(s),l=n||t.data;if("y"===bAe([o,e.options.indexAxis]))return;if(!r.controller.supportsDecimation)return;const c=e.scales[r.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(e.options.parsing)return;let{start:d,count:u}=function(e,t){const a=t.length;let i,s=0;const{iScale:n}=e,{min:o,max:r,minDefined:l,maxDefined:c}=n.getUserBounds();return l&&(s=mTe(bTe(t,n.axis,o).lo,0,a-1)),i=c?mTe(bTe(t,n.axis,r).hi+1,s,a)-s:a-s,{start:s,count:i}}(r,l);if(u<=(a.threshold||4*i))return void tIe(t);let p;switch(Cke(n)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),a.algorithm){case"lttb":p=function(e,t,a,i,s){const n=s.samples||i;if(n>=a)return e.slice(t,t+a);const o=[],r=(a-2)/(n-2);let l=0;const c=t+a-1;let d,u,p,h,g,m=t;for(o[l++]=e[m],d=0;d<n-2;d++){let i,s=0,n=0;const c=Math.floor((d+1)*r)+1+t,f=Math.min(Math.floor((d+2)*r)+1,a)+t,_=f-c;for(i=c;i<f;i++)s+=e[i].x,n+=e[i].y;s/=_,n/=_;const b=Math.floor(d*r)+1+t,v=Math.min(Math.floor((d+1)*r)+1,a)+t,{x:y,y:S}=e[m];for(p=h=-1,i=b;i<v;i++)h=.5*Math.abs((y-s)*(e[i].y-S)-(y-e[i].x)*(n-S)),h>p&&(p=h,u=e[i],g=i);o[l++]=u,m=g}return o[l++]=e[c],o}(l,d,u,i,a);break;case"min-max":p=function(e,t,a,i){let s,n,o,r,l,c,d,u,p,h,g=0,m=0;const f=[],_=t+a-1,b=e[t].x,v=e[_].x-b;for(s=t;s<t+a;++s){n=e[s],o=(n.x-b)/v*i,r=n.y;const t=0|o;if(t===l)r<p?(p=r,c=s):r>h&&(h=r,d=s),g=(m*g+n.x)/++m;else{const a=s-1;if(!Cke(c)&&!Cke(d)){const t=Math.min(c,d),i=Math.max(c,d);t!==u&&t!==a&&f.push({...e[t],x:g}),i!==u&&i!==a&&f.push({...e[i],x:g})}s>0&&a!==u&&f.push(e[a]),f.push(n),l=t,m=0,p=h=r,c=d=u=s}}return f}(l,d,u,i);break;default:throw new Error(`Unsupported decimation algorithm '${a.algorithm}'`)}t._decimated=p})},destroy(e){aIe(e)}};function sIe(e,t,a,i){if(i)return;let s=t[e],n=a[e];return"angle"===e&&(s=hTe(s),n=hTe(n)),{property:e,start:s,end:n}}function nIe(e,t,a){for(;t>e;t--){const e=a[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function oIe(e,t,a,i){return e&&t?i(e[a],t[a]):e?e[a]:t?t[a]:0}function rIe(e,t){let a=[],i=!1;return kke(e)?(i=!0,a=e):a=function(e,t){const{x:a=null,y:i=null}=e||{},s=t.points,n=[];return t.segments.forEach(({start:e,end:t})=>{t=nIe(e,t,s);const o=s[e],r=s[t];null!==i?(n.push({x:o.x,y:i}),n.push({x:r.x,y:i})):null!==a&&(n.push({x:a,y:o.y}),n.push({x:a,y:r.y}))}),n}(e,t),a.length?new FNe({points:a,options:{tension:0},_loop:i,_fullLoop:i}):null}function lIe(e){return e&&!1!==e.fill}function cIe(e,t,a){let i=e[t].fill;const s=[t];let n;if(!a)return i;for(;!1!==i&&-1===s.indexOf(i);){if(!Ake(i))return i;if(n=e[i],!n)return!1;if(n.visible)return i;s.push(i),i=n.fill}return!1}function dIe(e,t,a){const i=function(e){const t=e.options,a=t.fill;let i=Oke(a&&a.target,a);void 0===i&&(i=!!t.backgroundColor);if(!1===i||null===i)return!1;if(!0===i)return"origin";return i}(e);if(Tke(i))return!isNaN(i.value)&&i;let s=parseFloat(i);return Ake(s)&&Math.floor(s)===s?function(e,t,a,i){"-"!==e&&"+"!==e||(a=t+a);if(a===t||a<0||a>=i)return!1;return a}(i[0],t,s,a):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function uIe(e,t,a){const i=[];for(let s=0;s<a.length;s++){const n=a[s],{first:o,last:r,point:l}=pIe(n,t,"x");if(!(!l||o&&r))if(o)i.unshift(l);else if(e.push(l),!r)break}e.push(...i)}function pIe(e,t,a){const i=e.interpolate(t,a);if(!i)return{};const s=i[a],n=e.segments,o=e.points;let r=!1,l=!1;for(let c=0;c<n.length;c++){const e=n[c],t=o[e.start][a],i=o[e.end][a];if(fTe(s,t,i)){r=s===t,l=s===i;break}}return{first:r,last:l,point:i}}class hIe{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,a){const{x:i,y:s,radius:n}=this;return t=t||{start:0,end:qke},e.arc(i,s,n,t.end,t.start,!0),!a.bounds}interpolate(e){const{x:t,y:a,radius:i}=this,s=e.angle;return{x:t+Math.cos(s)*i,y:a+Math.sin(s)*i,angle:s}}}function gIe(e){const{chart:t,fill:a,line:i}=e;if(Ake(a))return function(e,t){const a=e.getDatasetMeta(t),i=a&&e.isDatasetVisible(t);return i?a.dataset:null}(t,a);if("stack"===a)return function(e){const{scale:t,index:a,line:i}=e,s=[],n=i.segments,o=i.points,r=function(e,t){const a=[],i=e.getMatchingVisibleMetas("line");for(let s=0;s<i.length;s++){const e=i[s];if(e.index===t)break;e.hidden||a.unshift(e.dataset)}return a}(t,a);r.push(rIe({x:null,y:t.bottom},i));for(let l=0;l<n.length;l++){const e=n[l];for(let t=e.start;t<=e.end;t++)uIe(s,o[t],r)}return new FNe({points:s,options:{}})}(e);if("shape"===a)return!0;const s=function(e){const t=e.scale||{};if(t.getPointPositionForValue)return function(e){const{scale:t,fill:a}=e,i=t.options,s=t.getLabels().length,n=i.reverse?t.max:t.min,o=function(e,t,a){let i;return i="start"===e?a:"end"===e?t.options.reverse?t.min:t.max:Tke(e)?e.value:t.getBaseValue(),i}(a,t,n),r=[];if(i.grid.circular){const e=t.getPointPositionForValue(0,n);return new hIe({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(o)})}for(let l=0;l<s;++l)r.push(t.getPointPositionForValue(l,o));return r}(e);return function(e){const{scale:t={},fill:a}=e,i=function(e,t){let a=null;return"start"===e?a=t.bottom:"end"===e?a=t.top:Tke(e)?a=t.getPixelForValue(e.value):t.getBasePixel&&(a=t.getBasePixel()),a}(a,t);if(Ake(i)){const e=t.isHorizontal();return{x:e?i:null,y:e?null:i}}return null}(e)}(e);return s instanceof hIe?s:rIe(s,i)}function mIe(e,t,a){const i=gIe(t),{chart:s,index:n,line:o,scale:r,axis:l}=t,c=o.options,d=c.fill,u=c.backgroundColor,{above:p=u,below:h=u}=d||{},g=s.getDatasetMeta(n),m=hRe(s,g);i&&o.points.length&&(tAe(e,a),function(e,t){const{line:a,target:i,above:s,below:n,area:o,scale:r,clip:l}=t,c=a._loop?"angle":t.axis;e.save();let d=n;n!==s&&("x"===c?(fIe(e,i,o.top),bIe(e,{line:a,target:i,color:s,scale:r,property:c,clip:l}),e.restore(),e.save(),fIe(e,i,o.bottom)):"y"===c&&(_Ie(e,i,o.left),bIe(e,{line:a,target:i,color:n,scale:r,property:c,clip:l}),e.restore(),e.save(),_Ie(e,i,o.right),d=s));bIe(e,{line:a,target:i,color:d,scale:r,property:c,clip:l}),e.restore()}(e,{line:o,target:i,above:p,below:h,area:a,scale:r,axis:l,clip:m}),aAe(e))}function fIe(e,t,a){const{segments:i,points:s}=t;let n=!0,o=!1;e.beginPath();for(const r of i){const{start:i,end:l}=r,c=s[i],d=s[nIe(i,l,s)];n?(e.moveTo(c.x,c.y),n=!1):(e.lineTo(c.x,a),e.lineTo(c.x,c.y)),o=!!t.pathSegment(e,r,{move:o}),o?e.closePath():e.lineTo(d.x,a)}e.lineTo(t.first().x,a),e.closePath(),e.clip()}function _Ie(e,t,a){const{segments:i,points:s}=t;let n=!0,o=!1;e.beginPath();for(const r of i){const{start:i,end:l}=r,c=s[i],d=s[nIe(i,l,s)];n?(e.moveTo(c.x,c.y),n=!1):(e.lineTo(a,c.y),e.lineTo(c.x,c.y)),o=!!t.pathSegment(e,r,{move:o}),o?e.closePath():e.lineTo(a,d.y)}e.lineTo(a,t.first().y),e.closePath(),e.clip()}function bIe(e,t){const{line:a,target:i,property:s,color:n,scale:o,clip:r}=t,l=function(e,t,a){const i=e.segments,s=e.points,n=t.points,o=[];for(const r of i){let{start:e,end:i}=r;i=nIe(e,i,s);const l=sIe(a,s[e],s[i],r.loop);if(!t.segments){o.push({source:r,target:l,start:s[e],end:s[i]});continue}const c=lRe(t,l);for(const t of c){const e=sIe(a,n[t.start],n[t.end],t.loop),i=rRe(r,s,e);for(const s of i)o.push({source:s,target:t,start:{[a]:oIe(l,e,"start",Math.max)},end:{[a]:oIe(l,e,"end",Math.min)}})}}return o}(a,i,s);for(const{source:c,target:d,start:u,end:p}of l){const{style:{backgroundColor:t=n}={}}=c,l=!0!==i;e.save(),e.fillStyle=t,vIe(e,o,r,l&&sIe(s,u,p)),e.beginPath();const h=!!a.pathSegment(e,c);let g;if(l){h?e.closePath():yIe(e,i,p,s);const t=!!i.pathSegment(e,d,{move:h,reverse:!0});g=h&&t,g||yIe(e,i,u,s)}e.closePath(),e.fill(g?"evenodd":"nonzero"),e.restore()}}function vIe(e,t,a,i){const s=t.chart.chartArea,{property:n,start:o,end:r}=i||{};if("x"===n||"y"===n){let t,i,l,c;"x"===n?(t=o,i=s.top,l=r,c=s.bottom):(t=s.left,i=o,l=s.right,c=r),e.beginPath(),a&&(t=Math.max(t,a.left),l=Math.min(l,a.right),i=Math.max(i,a.top),c=Math.min(c,a.bottom)),e.rect(t,i,l-t,c-i),e.clip()}}function yIe(e,t,a,i){const s=t.interpolate(a,i);s&&e.lineTo(s.x,s.y)}var SIe={id:"filler",afterDatasetsUpdate(e,t,a){const i=(e.data.datasets||[]).length,s=[];let n,o,r,l;for(o=0;o<i;++o)n=e.getDatasetMeta(o),r=n.dataset,l=null,r&&r.options&&r instanceof FNe&&(l={visible:e.isDatasetVisible(o),index:o,fill:dIe(r,o,i),chart:e,axis:n.controller.options.indexAxis,scale:n.vScale,line:r}),n.$filler=l,s.push(l);for(o=0;o<i;++o)l=s[o],l&&!1!==l.fill&&(l.fill=cIe(s,o,a.propagate))},beforeDraw(e,t,a){const i="beforeDraw"===a.drawTime,s=e.getSortedVisibleDatasetMetas(),n=e.chartArea;for(let o=s.length-1;o>=0;--o){const t=s[o].$filler;t&&(t.line.updateControlPoints(n,t.axis),i&&t.fill&&mIe(e.ctx,t,n))}},beforeDatasetsDraw(e,t,a){if("beforeDatasetsDraw"!==a.drawTime)return;const i=e.getSortedVisibleDatasetMetas();for(let s=i.length-1;s>=0;--s){const t=i[s].$filler;lIe(t)&&mIe(e.ctx,t,e.chartArea)}},beforeDatasetDraw(e,t,a){const i=t.meta.$filler;lIe(i)&&"beforeDatasetDraw"===a.drawTime&&mIe(e.ctx,i,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const xIe=(e,t)=>{let{boxHeight:a=t,boxWidth:i=t}=e;return e.usePointStyle&&(a=Math.min(a,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:a,itemHeight:Math.max(t,a)}};let wIe=class extends LOe{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,a){this.maxWidth=e,this.maxHeight=t,this._margins=a,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=Ike(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,a)=>e.sort(t,a,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const a=e.labels,i=_Ae(a.font),s=i.size,n=this._computeTitleHeight(),{boxWidth:o,itemHeight:r}=xIe(a,s);let l,c;t.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(n,s,o,r)+10):(c=this.maxHeight,l=this._fitCols(n,i,o,r)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,a,i){const{ctx:s,maxWidth:n,options:{labels:{padding:o}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+o;let d=e;s.textAlign="left",s.textBaseline="middle";let u=-1,p=-c;return this.legendItems.forEach((e,h)=>{const g=a+t/2+s.measureText(e.text).width;(0===h||l[l.length-1]+g+2*o>n)&&(d+=c,l[l.length-(h>0?0:1)]=0,p+=c,u++),r[h]={left:0,top:p,row:u,width:g,height:i},l[l.length-1]+=g+o}),d}_fitCols(e,t,a,i){const{ctx:s,maxHeight:n,options:{labels:{padding:o}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],c=n-e;let d=o,u=0,p=0,h=0,g=0;return this.legendItems.forEach((e,n)=>{const{itemWidth:m,itemHeight:f}=function(e,t,a,i,s){const n=function(e,t,a,i){let s=e.text;s&&"string"!=typeof s&&(s=s.reduce((e,t)=>e.length>t.length?e:t));return t+a.size/2+i.measureText(s).width}(i,e,t,a),o=function(e,t,a){let i=e;"string"!=typeof t.text&&(i=EIe(t,a));return i}(s,i,t.lineHeight);return{itemWidth:n,itemHeight:o}}(a,t,s,e,i);n>0&&p+f+2*o>c&&(d+=u+o,l.push({width:u,height:p}),h+=u+o,g++,u=p=0),r[n]={left:h,top:p,col:g,width:m,height:f},u=Math.max(u,m),p+=f+o}),d+=u,l.push({width:u,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:a,labels:{padding:i},rtl:s}}=this,n=aRe(s,this.left,this.width);if(this.isHorizontal()){let s=0,o=kTe(a,this.left+i,this.right-this.lineWidths[s]);for(const r of t)s!==r.row&&(s=r.row,o=kTe(a,this.left+i,this.right-this.lineWidths[s])),r.top+=this.top+e+i,r.left=n.leftForLtr(n.x(o),r.width),o+=r.width+i}else{let s=0,o=kTe(a,this.top+e+i,this.bottom-this.columnSizes[s].height);for(const r of t)r.col!==s&&(s=r.col,o=kTe(a,this.top+e+i,this.bottom-this.columnSizes[s].height)),r.top=o,r.left+=this.left+i,r.left=n.leftForLtr(n.x(r.left),r.width),o+=r.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;tAe(e,this),this._draw(),aAe(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:a,ctx:i}=this,{align:s,labels:n}=e,o=jTe.color,r=aRe(e.rtl,this.left,this.width),l=_Ae(n.font),{padding:c}=n,d=l.size,u=d/2;let p;this.drawTitle(),i.textAlign=r.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:h,boxHeight:g,itemHeight:m}=xIe(n,d),f=this.isHorizontal(),_=this._computeTitleHeight();p=f?{x:kTe(s,this.left+c,this.right-a[0]),y:this.top+c+_,line:0}:{x:this.left+c,y:kTe(s,this.top+_+c,this.bottom-t[0].height),line:0},iRe(this.ctx,e.textDirection);const b=m+c;this.legendItems.forEach((v,y)=>{i.strokeStyle=v.fontColor,i.fillStyle=v.fontColor;const S=i.measureText(v.text).width,x=r.textAlign(v.textAlign||(v.textAlign=n.textAlign)),w=h+u+S;let E=p.x,C=p.y;r.setWidth(this.width),f?y>0&&E+w+c>this.right&&(C=p.y+=b,p.line++,E=p.x=kTe(s,this.left+c,this.right-a[p.line])):y>0&&C+b>this.bottom&&(E=p.x=E+t[p.line].width+c,p.line++,C=p.y=kTe(s,this.top+_+c,this.bottom-t[p.line].height));if(function(e,t,a){if(isNaN(h)||h<=0||isNaN(g)||g<0)return;i.save();const s=Oke(a.lineWidth,1);if(i.fillStyle=Oke(a.fillStyle,o),i.lineCap=Oke(a.lineCap,"butt"),i.lineDashOffset=Oke(a.lineDashOffset,0),i.lineJoin=Oke(a.lineJoin,"miter"),i.lineWidth=s,i.strokeStyle=Oke(a.strokeStyle,o),i.setLineDash(Oke(a.lineDash,[])),n.usePointStyle){const o={radius:g*Math.SQRT2/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:s},l=r.xPlus(e,h/2);JTe(i,o,l,t+u,n.pointStyleWidth&&h)}else{const n=t+Math.max((d-g)/2,0),o=r.leftForLtr(e,h),l=mAe(a.borderRadius);i.beginPath(),Object.values(l).some(e=>0!==e)?lAe(i,{x:o,y:n,w:h,h:g,radius:l}):i.rect(o,n,h,g),i.fill(),0!==s&&i.stroke()}i.restore()}(r.x(E),C,v),E=((e,t,a,i)=>e===(i?"left":"right")?a:"center"===e?(t+a)/2:t)(x,E+h+u,f?E+w:this.right,e.rtl),function(e,t,a){rAe(i,a.text,e,t+m/2,l,{strikethrough:a.hidden,textAlign:r.textAlign(a.textAlign)})}(r.x(E),C,v),f)p.x+=w+c;else if("string"!=typeof v.text){const e=l.lineHeight;p.y+=EIe(v,e)+c}else p.y+=b}),sRe(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,a=_Ae(t.font),i=fAe(t.padding);if(!t.display)return;const s=aRe(e.rtl,this.left,this.width),n=this.ctx,o=t.position,r=a.size/2,l=i.top+r;let c,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),c=this.top+l,d=kTe(e.align,d,this.right-u);else{const t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);c=l+kTe(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=kTe(o,d,d+u);n.textAlign=s.textAlign(CTe(o)),n.textBaseline="middle",n.strokeStyle=t.color,n.fillStyle=t.color,n.font=a.string,rAe(n,t.text,p,c,a)}_computeTitleHeight(){const e=this.options.title,t=_Ae(e.font),a=fAe(e.padding);return e.display?t.lineHeight+a.height:0}_getLegendItemAt(e,t){let a,i,s;if(fTe(e,this.left,this.right)&&fTe(t,this.top,this.bottom))for(s=this.legendHitBoxes,a=0;a<s.length;++a)if(i=s[a],fTe(e,i.left,i.left+i.width)&&fTe(t,i.top,i.top+i.height))return this.legendItems[a];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const a=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const n=this._hoveredItem,o=(s=a,null!==(i=n)&&null!==s&&i.datasetIndex===s.datasetIndex&&i.index===s.index);n&&!o&&Ike(t.onLeave,[e,n,this],this),this._hoveredItem=a,a&&!o&&Ike(t.onHover,[e,a,this],this)}else a&&Ike(t.onClick,[e,a,this],this);var i,s}};function EIe(e,t){return t*(e.text?e.text.length:0)}var CIe={id:"legend",_element:wIe,start(e,t,a){const i=e.legend=new wIe({ctx:e.ctx,options:a,chart:e});_Oe.configure(e,i,a),_Oe.addBox(e,i)},stop(e){_Oe.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,a){const i=e.legend;_Oe.configure(e,i,a),i.options=a},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,a){const i=t.datasetIndex,s=a.chart;s.isDatasetVisible(i)?(s.hide(i),t.hidden=!0):(s.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:a,pointStyle:i,textAlign:s,color:n,useBorderRadius:o,borderRadius:r}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{const l=e.controller.getStyle(a?0:void 0),c=fAe(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:n,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:i||l.pointStyle,rotation:l.rotation,textAlign:s||l.textAlign,borderRadius:o&&(r||l.borderRadius),datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class kIe extends LOe{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const a=this.options;if(this.left=0,this.top=0,!a.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const i=kke(a.text)?a.text.length:1;this._padding=fAe(a.padding);const s=i*_Ae(a.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:a,bottom:i,right:s,options:n}=this,o=n.align;let r,l,c,d=0;return this.isHorizontal()?(l=kTe(o,a,s),c=t+e,r=s-a):("left"===n.position?(l=a+e,c=kTe(o,i,t),d=-.5*jke):(l=s-e,c=kTe(o,t,i),d=.5*jke),r=i-t),{titleX:l,titleY:c,maxWidth:r,rotation:d}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const a=_Ae(t.font),i=a.lineHeight/2+this._padding.top,{titleX:s,titleY:n,maxWidth:o,rotation:r}=this._drawArgs(i);rAe(e,t.text,0,0,a,{color:t.color,maxWidth:o,rotation:r,textAlign:CTe(t.align),textBaseline:"middle",translation:[s,n]})}}var TIe={id:"title",_element:kIe,start(e,t,a){!function(e,t){const a=new kIe({ctx:e.ctx,options:t,chart:e});_Oe.configure(e,a,t),_Oe.addBox(e,a),e.titleBlock=a}(e,a)},stop(e){const t=e.titleBlock;_Oe.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,a){const i=e.titleBlock;_Oe.configure(e,i,a),i.options=a},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const AIe=new WeakMap;var RIe={id:"subtitle",start(e,t,a){const i=new kIe({ctx:e.ctx,options:a,chart:e});_Oe.configure(e,i,a),_Oe.addBox(e,i),AIe.set(e,i)},stop(e){_Oe.removeBox(e,AIe.get(e)),AIe.delete(e)},beforeUpdate(e,t,a){const i=AIe.get(e);_Oe.configure(e,i,a),i.options=a},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const OIe={average(e){if(!e.length)return!1;let t,a,i=new Set,s=0,n=0;for(t=0,a=e.length;t<a;++t){const a=e[t].element;if(a&&a.hasValue()){const e=a.tooltipPosition();i.add(e.x),s+=e.y,++n}}if(0===n||0===i.size)return!1;return{x:[...i].reduce((e,t)=>e+t)/i.size,y:s/n}},nearest(e,t){if(!e.length)return!1;let a,i,s,n=t.x,o=t.y,r=Number.POSITIVE_INFINITY;for(a=0,i=e.length;a<i;++a){const i=e[a].element;if(i&&i.hasValue()){const e=uTe(t,i.getCenterPoint());e<r&&(r=e,s=i)}}if(s){const e=s.tooltipPosition();n=e.x,o=e.y}return{x:n,y:o}}};function NIe(e,t){return t&&(kke(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function IIe(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function DIe(e,t){const{element:a,datasetIndex:i,index:s}=t,n=e.getDatasetMeta(i).controller,{label:o,value:r}=n.getLabelAndValue(s);return{chart:e,label:o,parsed:n.getParsed(s),raw:e.data.datasets[i].data[s],formattedValue:r,dataset:n.getDataset(),dataIndex:s,datasetIndex:i,element:a}}function MIe(e,t){const a=e.chart.ctx,{body:i,footer:s,title:n}=e,{boxWidth:o,boxHeight:r}=t,l=_Ae(t.bodyFont),c=_Ae(t.titleFont),d=_Ae(t.footerFont),u=n.length,p=s.length,h=i.length,g=fAe(t.padding);let m=g.height,f=0,_=i.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),_){m+=h*(t.displayColors?Math.max(r,l.lineHeight):l.lineHeight)+(_-h)*l.lineHeight+(_-1)*t.bodySpacing}p&&(m+=t.footerMarginTop+p*d.lineHeight+(p-1)*t.footerSpacing);let b=0;const v=function(e){f=Math.max(f,a.measureText(e).width+b)};return a.save(),a.font=c.string,Dke(e.title,v),a.font=l.string,Dke(e.beforeBody.concat(e.afterBody),v),b=t.displayColors?o+2+t.boxPadding:0,Dke(i,e=>{Dke(e.before,v),Dke(e.lines,v),Dke(e.after,v)}),b=0,a.font=d.string,Dke(e.footer,v),a.restore(),f+=g.width,{width:f,height:m}}function LIe(e,t,a,i){const{x:s,width:n}=a,{width:o,chartArea:{left:r,right:l}}=e;let c="center";return"center"===i?c=s<=(r+l)/2?"left":"right":s<=n/2?c="left":s>=o-n/2&&(c="right"),function(e,t,a,i){const{x:s,width:n}=i,o=a.caretSize+a.caretPadding;return"left"===e&&s+n+o>t.width||"right"===e&&s-n-o<0||void 0}(c,e,t,a)&&(c="center"),c}function PIe(e,t,a){const i=a.yAlign||t.yAlign||function(e,t){const{y:a,height:i}=t;return a<i/2?"top":a>e.height-i/2?"bottom":"center"}(e,a);return{xAlign:a.xAlign||t.xAlign||LIe(e,t,a,i),yAlign:i}}function FIe(e,t,a,i){const{caretSize:s,caretPadding:n,cornerRadius:o}=e,{xAlign:r,yAlign:l}=a,c=s+n,{topLeft:d,topRight:u,bottomLeft:p,bottomRight:h}=mAe(o);let g=function(e,t){let{x:a,width:i}=e;return"right"===t?a-=i:"center"===t&&(a-=i/2),a}(t,r);const m=function(e,t,a){let{y:i,height:s}=e;return"top"===t?i+=a:i-="bottom"===t?s+a:s/2,i}(t,l,c);return"center"===l?"left"===r?g+=c:"right"===r&&(g-=c):"left"===r?g-=Math.max(d,p)+s:"right"===r&&(g+=Math.max(u,h)+s),{x:mTe(g,0,i.width-t.width),y:mTe(m,0,i.height-t.height)}}function $Ie(e,t,a){const i=fAe(a.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-i.right:e.x+i.left}function BIe(e){return NIe([],IIe(e))}function VIe(e,t){const a=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return a?e.override(a):e}const UIe={beforeTitle:wke,title(e){if(e.length>0){const t=e[0],a=t.chart.data.labels,i=a?a.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return a[t.dataIndex]}return""},afterTitle:wke,beforeBody:wke,beforeLabel:wke,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const a=e.formattedValue;return Cke(a)||(t+=a),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:wke,afterBody:wke,beforeFooter:wke,footer:wke,afterFooter:wke};function HIe(e,t,a,i){const s=e[t].call(a,i);return void 0===s?UIe[t].call(a,i):s}let zIe=(i=class extends LOe{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,a=this.options.setContext(this.getContext()),i=a.enabled&&t.options.animation&&a.animations,s=new vRe(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,a=this._tooltipItems,vAe(e,{tooltip:t,tooltipItems:a,type:"tooltip"})));var e,t,a}getTitle(e,t){const{callbacks:a}=t,i=HIe(a,"beforeTitle",this,e),s=HIe(a,"title",this,e),n=HIe(a,"afterTitle",this,e);let o=[];return o=NIe(o,IIe(i)),o=NIe(o,IIe(s)),o=NIe(o,IIe(n)),o}getBeforeBody(e,t){return BIe(HIe(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:a}=t,i=[];return Dke(e,e=>{const t={before:[],lines:[],after:[]},s=VIe(a,e);NIe(t.before,IIe(HIe(s,"beforeLabel",this,e))),NIe(t.lines,HIe(s,"label",this,e)),NIe(t.after,IIe(HIe(s,"afterLabel",this,e))),i.push(t)}),i}getAfterBody(e,t){return BIe(HIe(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:a}=t,i=HIe(a,"beforeFooter",this,e),s=HIe(a,"footer",this,e),n=HIe(a,"afterFooter",this,e);let o=[];return o=NIe(o,IIe(i)),o=NIe(o,IIe(s)),o=NIe(o,IIe(n)),o}_createItems(e){const t=this._active,a=this.chart.data,i=[],s=[],n=[];let o,r,l=[];for(o=0,r=t.length;o<r;++o)l.push(DIe(this.chart,t[o]));return e.filter&&(l=l.filter((t,i,s)=>e.filter(t,i,s,a))),e.itemSort&&(l=l.sort((t,i)=>e.itemSort(t,i,a))),Dke(l,t=>{const a=VIe(e.callbacks,t);i.push(HIe(a,"labelColor",this,t)),s.push(HIe(a,"labelPointStyle",this,t)),n.push(HIe(a,"labelTextColor",this,t))}),this.labelColors=i,this.labelPointStyles=s,this.labelTextColors=n,this.dataPoints=l,l}update(e,t){const a=this.options.setContext(this.getContext()),i=this._active;let s,n=[];if(i.length){const e=OIe[a.position].call(this,i,this._eventPosition);n=this._createItems(a),this.title=this.getTitle(n,a),this.beforeBody=this.getBeforeBody(n,a),this.body=this.getBody(n,a),this.afterBody=this.getAfterBody(n,a),this.footer=this.getFooter(n,a);const t=this._size=MIe(this,a),o=Object.assign({},e,t),r=PIe(this.chart,a,o),l=FIe(a,o,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,s={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=n,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&a.external&&a.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,a,i){const s=this.getCaretPosition(e,a,i);t.lineTo(s.x1,s.y1),t.lineTo(s.x2,s.y2),t.lineTo(s.x3,s.y3)}getCaretPosition(e,t,a){const{xAlign:i,yAlign:s}=this,{caretSize:n,cornerRadius:o}=a,{topLeft:r,topRight:l,bottomLeft:c,bottomRight:d}=mAe(o),{x:u,y:p}=e,{width:h,height:g}=t;let m,f,_,b,v,y;return"center"===s?(v=p+g/2,"left"===i?(m=u,f=m-n,b=v+n,y=v-n):(m=u+h,f=m+n,b=v-n,y=v+n),_=m):(f="left"===i?u+Math.max(r,c)+n:"right"===i?u+h-Math.max(l,d)-n:this.caretX,"top"===s?(b=p,v=b-n,m=f-n,_=f+n):(b=p+g,v=b+n,m=f+n,_=f-n),y=b),{x1:m,x2:f,x3:_,y1:b,y2:v,y3:y}}drawTitle(e,t,a){const i=this.title,s=i.length;let n,o,r;if(s){const l=aRe(a.rtl,this.x,this.width);for(e.x=$Ie(this,a.titleAlign,a),t.textAlign=l.textAlign(a.titleAlign),t.textBaseline="middle",n=_Ae(a.titleFont),o=a.titleSpacing,t.fillStyle=a.titleColor,t.font=n.string,r=0;r<s;++r)t.fillText(i[r],l.x(e.x),e.y+n.lineHeight/2),e.y+=n.lineHeight+o,r+1===s&&(e.y+=a.titleMarginBottom-o)}}_drawColorBox(e,t,a,i,s){const n=this.labelColors[a],o=this.labelPointStyles[a],{boxHeight:r,boxWidth:l}=s,c=_Ae(s.bodyFont),d=$Ie(this,"left",s),u=i.x(d),p=r<c.lineHeight?(c.lineHeight-r)/2:0,h=t.y+p;if(s.usePointStyle){const t={radius:Math.min(l,r)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},a=i.leftForLtr(u,l)+l/2,c=h+r/2;e.strokeStyle=s.multiKeyBackground,e.fillStyle=s.multiKeyBackground,ZTe(e,t,a,c),e.strokeStyle=n.borderColor,e.fillStyle=n.backgroundColor,ZTe(e,t,a,c)}else{e.lineWidth=Tke(n.borderWidth)?Math.max(...Object.values(n.borderWidth)):n.borderWidth||1,e.strokeStyle=n.borderColor,e.setLineDash(n.borderDash||[]),e.lineDashOffset=n.borderDashOffset||0;const t=i.leftForLtr(u,l),a=i.leftForLtr(i.xPlus(u,1),l-2),o=mAe(n.borderRadius);Object.values(o).some(e=>0!==e)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,lAe(e,{x:t,y:h,w:l,h:r,radius:o}),e.fill(),e.stroke(),e.fillStyle=n.backgroundColor,e.beginPath(),lAe(e,{x:a,y:h+1,w:l-2,h:r-2,radius:o}),e.fill()):(e.fillStyle=s.multiKeyBackground,e.fillRect(t,h,l,r),e.strokeRect(t,h,l,r),e.fillStyle=n.backgroundColor,e.fillRect(a,h+1,l-2,r-2))}e.fillStyle=this.labelTextColors[a]}drawBody(e,t,a){const{body:i}=this,{bodySpacing:s,bodyAlign:n,displayColors:o,boxHeight:r,boxWidth:l,boxPadding:c}=a,d=_Ae(a.bodyFont);let u=d.lineHeight,p=0;const h=aRe(a.rtl,this.x,this.width),g=function(a){t.fillText(a,h.x(e.x+p),e.y+u/2),e.y+=u+s},m=h.textAlign(n);let f,_,b,v,y,S,x;for(t.textAlign=n,t.textBaseline="middle",t.font=d.string,e.x=$Ie(this,m,a),t.fillStyle=a.bodyColor,Dke(this.beforeBody,g),p=o&&"right"!==m?"center"===n?l/2+c:l+2+c:0,v=0,S=i.length;v<S;++v){for(f=i[v],_=this.labelTextColors[v],t.fillStyle=_,Dke(f.before,g),b=f.lines,o&&b.length&&(this._drawColorBox(t,e,v,h,a),u=Math.max(d.lineHeight,r)),y=0,x=b.length;y<x;++y)g(b[y]),u=d.lineHeight;Dke(f.after,g)}p=0,u=d.lineHeight,Dke(this.afterBody,g),e.y-=s}drawFooter(e,t,a){const i=this.footer,s=i.length;let n,o;if(s){const r=aRe(a.rtl,this.x,this.width);for(e.x=$Ie(this,a.footerAlign,a),e.y+=a.footerMarginTop,t.textAlign=r.textAlign(a.footerAlign),t.textBaseline="middle",n=_Ae(a.footerFont),t.fillStyle=a.footerColor,t.font=n.string,o=0;o<s;++o)t.fillText(i[o],r.x(e.x),e.y+n.lineHeight/2),e.y+=n.lineHeight+a.footerSpacing}}drawBackground(e,t,a,i){const{xAlign:s,yAlign:n}=this,{x:o,y:r}=e,{width:l,height:c}=a,{topLeft:d,topRight:u,bottomLeft:p,bottomRight:h}=mAe(i.cornerRadius);t.fillStyle=i.backgroundColor,t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.beginPath(),t.moveTo(o+d,r),"top"===n&&this.drawCaret(e,t,a,i),t.lineTo(o+l-u,r),t.quadraticCurveTo(o+l,r,o+l,r+u),"center"===n&&"right"===s&&this.drawCaret(e,t,a,i),t.lineTo(o+l,r+c-h),t.quadraticCurveTo(o+l,r+c,o+l-h,r+c),"bottom"===n&&this.drawCaret(e,t,a,i),t.lineTo(o+p,r+c),t.quadraticCurveTo(o,r+c,o,r+c-p),"center"===n&&"left"===s&&this.drawCaret(e,t,a,i),t.lineTo(o,r+d),t.quadraticCurveTo(o,r,o+d,r),t.closePath(),t.fill(),i.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,a=this.$animations,i=a&&a.x,s=a&&a.y;if(i||s){const a=OIe[e.position].call(this,this._active,this._eventPosition);if(!a)return;const n=this._size=MIe(this,e),o=Object.assign({},a,this._size),r=PIe(t,e,o),l=FIe(e,o,r,t);i._to===l.x&&s._to===l.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=n.width,this.height=n.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let a=this.opacity;if(!a)return;this._updateAnimationTarget(t);const i={width:this.width,height:this.height},s={x:this.x,y:this.y};a=Math.abs(a)<.001?0:a;const n=fAe(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=a,this.drawBackground(s,e,i,t),iRe(e,t.textDirection),s.y+=n.top,this.drawTitle(s,e,t),this.drawBody(s,e,t),this.drawFooter(s,e,t),sRe(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const a=this._active,i=e.map(({datasetIndex:e,index:t})=>{const a=this.chart.getDatasetMeta(e);if(!a)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:a.data[t],index:t}}),s=!Mke(a,i),n=this._positionChanged(i,t);(s||n)&&(this._active=i,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,a=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,s=this._active||[],n=this._getActiveElements(e,s,t,a),o=this._positionChanged(n,e),r=t||!Mke(n,s)||o;return r&&(this._active=n,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),r}_getActiveElements(e,t,a,i){const s=this.options;if("mouseout"===e.type)return[];if(!i)return t.filter(e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index));const n=this.chart.getElementsAtEventForMode(e,s.mode,s,a);return s.reverse&&n.reverse(),n}_positionChanged(e,t){const{caretX:a,caretY:i,options:s}=this,n=OIe[s.position].call(this,e,t);return!1!==n&&(a!==n.x||i!==n.y)}},o(i,"positioners",OIe),i);var YIe={id:"tooltip",_element:zIe,positioners:OIe,afterInit(e,t,a){a&&(e.tooltip=new zIe({chart:e,options:a}))},beforeUpdate(e,t,a){e.tooltip&&e.tooltip.initialize(a)},reset(e,t,a){e.tooltip&&e.tooltip.initialize(a)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const a={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...a,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",a)}},afterEvent(e,t){if(e.tooltip){const a=t.replay;e.tooltip.handleEvent(t.event,a,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:UIe},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},GIe=Object.freeze({__proto__:null,Colors:eIe,Decimation:iIe,Filler:SIe,Legend:CIe,SubTitle:RIe,Title:TIe,Tooltip:YIe});function WIe(e,t,a,i){const s=e.indexOf(t);if(-1===s)return((e,t,a,i)=>("string"==typeof t?(a=e.push(t)-1,i.unshift({index:a,label:t})):isNaN(t)&&(a=null),a))(e,t,a,i);return s!==e.lastIndexOf(t)?a:s}function jIe(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class qIe extends GOe{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:a,label:i}of t)e[a]===i&&e.splice(a,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(Cke(e))return null;const a=this.getLabels();return((e,t)=>null===e?null:mTe(Math.round(e),0,t))(t=isFinite(t)&&a[t]===e?t:WIe(a,e,Oke(t,e),this._addedLabels),a.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:a,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(a=0),t||(i=this.getLabels().length-1)),this.min=a,this.max=i}buildTicks(){const e=this.min,t=this.max,a=this.options.offset,i=[];let s=this.getLabels();s=0===e&&t===s.length-1?s:s.slice(e,t+1),this._valueRange=Math.max(s.length-(a?0:1),1),this._startValue=this.min-(a?.5:0);for(let n=e;n<=t;n++)i.push({value:n});return i}getLabelForValue(e){return jIe.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function KIe(e,t){const a=[],{bounds:i,step:s,min:n,max:o,precision:r,count:l,maxTicks:c,maxDigits:d,includeBounds:u}=e,p=s||1,h=c-1,{min:g,max:m}=t,f=!Cke(n),_=!Cke(o),b=!Cke(l),v=(m-g)/(d+1);let y,S,x,w,E=sTe((m-g)/h/p)*p;if(E<1e-14&&!f&&!_)return[{value:g},{value:m}];w=Math.ceil(m/E)-Math.floor(g/E),w>h&&(E=sTe(w*E/h/p)*p),Cke(r)||(y=Math.pow(10,r),E=Math.ceil(E*y)/y),"ticks"===i?(S=Math.floor(g/E)*E,x=Math.ceil(m/E)*E):(S=g,x=m),f&&_&&s&&function(e,t){const a=Math.round(e);return a-t<=e&&a+t>=e}((o-n)/s,E/1e3)?(w=Math.round(Math.min((o-n)/E,c)),E=(o-n)/w,S=n,x=o):b?(S=f?n:S,x=_?o:x,w=l-1,E=(x-S)/w):(w=(x-S)/E,w=iTe(w,Math.round(w),E/1e3)?Math.round(w):Math.ceil(w));const C=Math.max(cTe(E),cTe(S));y=Math.pow(10,Cke(r)?C:r),S=Math.round(S*y)/y,x=Math.round(x*y)/y;let k=0;for(f&&(u&&S!==n?(a.push({value:n}),S<n&&k++,iTe(Math.round((S+k*E)*y)/y,n,XIe(n,v,e))&&k++):S<n&&k++);k<w;++k){const e=Math.round((S+k*E)*y)/y;if(_&&e>o)break;a.push({value:e})}return _&&u&&x!==o?a.length&&iTe(a[a.length-1].value,o,XIe(o,v,e))?a[a.length-1].value=o:a.push({value:o}):_&&x!==o||a.push({value:x}),a}function XIe(e,t,{horizontal:a,minRotation:i}){const s=rTe(i),n=(a?Math.sin(s):Math.cos(s))||.001,o=.75*t*(""+e).length;return Math.min(t/n,o)}o(qIe,"id","category"),o(qIe,"defaults",{ticks:{callback:jIe}});class QIe extends GOe{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return Cke(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:a}=this.getUserBounds();let{min:i,max:s}=this;const n=e=>i=t?i:e,o=e=>s=a?s:e;if(e){const e=aTe(i),t=aTe(s);e<0&&t<0?o(0):e>0&&t>0&&n(0)}if(i===s){let t=0===s?1:Math.abs(.05*s);o(s+t),e||n(i-t)}this.min=i,this.max=s}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:a,stepSize:i}=e;return i?(t=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,t>1e3&&(t=1e3)):(t=this.computeTickLimit(),a=a||11),a&&(t=Math.min(a,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let a=this.getTickLimit();a=Math.max(2,a);const i=KIe({maxTicks:a,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&oTe(i,this,"value"),e.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const e=this.ticks;let t=this.min,a=this.max;if(super.configure(),this.options.offset&&e.length){const i=(a-t)/Math.max(e.length-1,1)/2;t-=i,a+=i}this._startValue=t,this._endValue=a,this._valueRange=a-t}getLabelForValue(e){return BTe(e,this.chart.options.locale,this.options.ticks.format)}}class ZIe extends QIe{determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=Ake(e)?e:0,this.max=Ake(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,a=rTe(this.options.ticks.minRotation),i=(e?Math.sin(a):Math.cos(a))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,s.lineHeight/i))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}o(ZIe,"id","linear"),o(ZIe,"defaults",{ticks:{callback:UTe.formatters.numeric}});const JIe=e=>Math.floor(tTe(e)),eDe=(e,t)=>Math.pow(10,JIe(e)+t);function tDe(e){return 1===e/Math.pow(10,JIe(e))}function aDe(e,t,a){const i=Math.pow(10,a),s=Math.floor(e/i);return Math.ceil(t/i)-s}function iDe(e,{min:t,max:a}){t=Rke(e.min,t);const i=[],s=JIe(t);let n=function(e,t){let a=JIe(t-e);for(;aDe(e,t,a)>10;)a++;for(;aDe(e,t,a)<10;)a--;return Math.min(a,JIe(e))}(t,a),o=n<0?Math.pow(10,Math.abs(n)):1;const r=Math.pow(10,n),l=s>n?Math.pow(10,s):0,c=Math.round((t-l)*o)/o,d=Math.floor((t-l)/r/10)*r*10;let u=Math.floor((c-d)/Math.pow(10,n)),p=Rke(e.min,Math.round((l+d+u*Math.pow(10,n))*o)/o);for(;p<a;)i.push({value:p,major:tDe(p),significand:u}),u>=10?u=u<15?15:20:u++,u>=20&&(n++,u=2,o=n>=0?1:o),p=Math.round((l+d+u*Math.pow(10,n))*o)/o;const h=Rke(e.max,p);return i.push({value:h,major:tDe(h),significand:u}),i}class sDe extends GOe{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const a=QIe.prototype.parse.apply(this,[e,t]);if(0!==a)return Ake(a)&&a>0?a:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=Ake(e)?Math.max(0,e):null,this.max=Ake(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ake(this._userMin)&&(this.min=e===eDe(this.min,0)?eDe(this.min,-1):eDe(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let a=this.min,i=this.max;const s=t=>a=e?a:t,n=e=>i=t?i:e;a===i&&(a<=0?(s(1),n(10)):(s(eDe(a,-1)),n(eDe(i,1)))),a<=0&&s(eDe(i,-1)),i<=0&&n(eDe(a,1)),this.min=a,this.max=i}buildTicks(){const e=this.options,t=iDe({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&oTe(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":BTe(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=tTe(e),this._valueRange=tTe(this.max)-tTe(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(tTe(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function nDe(e){const t=e.ticks;if(t.display&&e.display){const e=fAe(t.backdropPadding);return Oke(t.font&&t.font.size,jTe.font.size)+e.height}return 0}function oDe(e,t,a){return a=kke(a)?a:[a],{w:KTe(e,t.string,a),h:a.length*t.lineHeight}}function rDe(e,t,a,i,s){return e===i||e===s?{start:t-a/2,end:t+a/2}:e<i||e>s?{start:t-a,end:t}:{start:t,end:t+a}}function lDe(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},a=Object.assign({},t),i=[],s=[],n=e._pointLabels.length,o=e.options.pointLabels,r=o.centerPointLabels?jke/n:0;for(let l=0;l<n;l++){const n=o.setContext(e.getPointLabelContext(l));s[l]=n.padding;const c=e.getPointPosition(l,e.drawingArea+s[l],r),d=_Ae(n.font),u=oDe(e.ctx,d,e._pointLabels[l]);i[l]=u;const p=hTe(e.getIndexAngle(l)+r),h=Math.round(lTe(p));cDe(a,t,p,rDe(h,c.x,u.w,0,180),rDe(h,c.y,u.h,90,270))}e.setCenterPoint(t.l-a.l,a.r-t.r,t.t-a.t,a.b-t.b),e._pointLabelItems=function(e,t,a){const i=[],s=e._pointLabels.length,n=e.options,{centerPointLabels:o,display:r}=n.pointLabels,l={extra:nDe(n)/2,additionalAngle:o?jke/s:0};let c;for(let d=0;d<s;d++){l.padding=a[d],l.size=t[d];const s=dDe(e,d,l);i.push(s),"auto"===r&&(s.visible=uDe(s,c),s.visible&&(c=s))}return i}(e,i,s)}function cDe(e,t,a,i,s){const n=Math.abs(Math.sin(a)),o=Math.abs(Math.cos(a));let r=0,l=0;i.start<t.l?(r=(t.l-i.start)/n,e.l=Math.min(e.l,t.l-r)):i.end>t.r&&(r=(i.end-t.r)/n,e.r=Math.max(e.r,t.r+r)),s.start<t.t?(l=(t.t-s.start)/o,e.t=Math.min(e.t,t.t-l)):s.end>t.b&&(l=(s.end-t.b)/o,e.b=Math.max(e.b,t.b+l))}function dDe(e,t,a){const i=e.drawingArea,{extra:s,additionalAngle:n,padding:o,size:r}=a,l=e.getPointPosition(t,i+s+o,n),c=Math.round(lTe(hTe(l.angle+Zke))),d=function(e,t,a){90===a||270===a?e-=t/2:(a>270||a<90)&&(e-=t);return e}(l.y,r.h,c),u=function(e){if(0===e||180===e)return"center";if(e<180)return"left";return"right"}(c),p=function(e,t,a){"right"===a?e-=t:"center"===a&&(e-=t/2);return e}(l.x,r.w,u);return{visible:!0,x:l.x,y:d,textAlign:u,left:p,top:d,right:p+r.w,bottom:d+r.h}}function uDe(e,t){if(!t)return!0;const{left:a,top:i,right:s,bottom:n}=e;return!(eAe({x:a,y:i},t)||eAe({x:a,y:n},t)||eAe({x:s,y:i},t)||eAe({x:s,y:n},t))}function pDe(e,t,a){const{left:i,top:s,right:n,bottom:o}=a,{backdropColor:r}=t;if(!Cke(r)){const a=mAe(t.borderRadius),l=fAe(t.backdropPadding);e.fillStyle=r;const c=i-l.left,d=s-l.top,u=n-i+l.width,p=o-s+l.height;Object.values(a).some(e=>0!==e)?(e.beginPath(),lAe(e,{x:c,y:d,w:u,h:p,radius:a}),e.fill()):e.fillRect(c,d,u,p)}}function hDe(e,t,a,i){const{ctx:s}=e;if(a)s.arc(e.xCenter,e.yCenter,t,0,qke);else{let a=e.getPointPosition(0,t);s.moveTo(a.x,a.y);for(let n=1;n<i;n++)a=e.getPointPosition(n,t),s.lineTo(a.x,a.y)}}o(sDe,"id","logarithmic"),o(sDe,"defaults",{ticks:{callback:UTe.formatters.logarithmic,major:{enabled:!0}}});class gDe extends QIe{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=fAe(nDe(this.options)/2),t=this.width=this.maxWidth-e.width,a=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+a/2+e.top),this.drawingArea=Math.floor(Math.min(t,a)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=Ake(e)&&!isNaN(e)?e:0,this.max=Ake(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/nDe(this.options))}generateTickLabels(e){QIe.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((e,t)=>{const a=Ike(this.options.pointLabels.callback,[e,t],this);return a||0===a?a:""}).filter((e,t)=>this.chart.getDataVisibility(t))}fit(){const e=this.options;e.display&&e.pointLabels.display?lDe(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,a,i){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((a-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,a,i))}getIndexAngle(e){return hTe(e*(qke/(this._pointLabels.length||1))+rTe(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(Cke(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(Cke(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const a=t[e];return function(e,t,a){return vAe(e,{label:a,index:t,type:"pointLabel"})}(this.getContext(),e,a)}}getPointPosition(e,t,a=0){const i=this.getIndexAngle(e)-Zke+a;return{x:Math.cos(i)*t+this.xCenter,y:Math.sin(i)*t+this.yCenter,angle:i}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:a,right:i,bottom:s}=this._pointLabelItems[e];return{left:t,top:a,right:i,bottom:s}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const a=this.ctx;a.save(),a.beginPath(),hDe(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),a.closePath(),a.fillStyle=e,a.fill(),a.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:a,grid:i,border:s}=t,n=this._pointLabels.length;let o,r,l;if(t.pointLabels.display&&function(e,t){const{ctx:a,options:{pointLabels:i}}=e;for(let s=t-1;s>=0;s--){const t=e._pointLabelItems[s];if(!t.visible)continue;const n=i.setContext(e.getPointLabelContext(s));pDe(a,n,t);const o=_Ae(n.font),{x:r,y:l,textAlign:c}=t;rAe(a,e._pointLabels[s],r,l+o.lineHeight/2,o,{color:n.color,textAlign:c,textBaseline:"middle"})}}(this,n),i.display&&this.ticks.forEach((e,t)=>{if(0!==t||0===t&&this.min<0){r=this.getDistanceFromCenterForValue(e.value);const a=this.getContext(t),o=i.setContext(a),l=s.setContext(a);!function(e,t,a,i,s){const n=e.ctx,o=t.circular,{color:r,lineWidth:l}=t;!o&&!i||!r||!l||a<0||(n.save(),n.strokeStyle=r,n.lineWidth=l,n.setLineDash(s.dash||[]),n.lineDashOffset=s.dashOffset,n.beginPath(),hDe(e,a,o,i),n.closePath(),n.stroke(),n.restore())}(this,o,r,n,l)}}),a.display){for(e.save(),o=n-1;o>=0;o--){const i=a.setContext(this.getPointLabelContext(o)),{color:s,lineWidth:n}=i;n&&s&&(e.lineWidth=n,e.strokeStyle=s,e.setLineDash(i.borderDash),e.lineDashOffset=i.borderDashOffset,r=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),l=this.getPointPosition(o,r),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(l.x,l.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,a=t.ticks;if(!a.display)return;const i=this.getIndexAngle(0);let s,n;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((i,o)=>{if(0===o&&this.min>=0&&!t.reverse)return;const r=a.setContext(this.getContext(o)),l=_Ae(r.font);if(s=this.getDistanceFromCenterForValue(this.ticks[o].value),r.showLabelBackdrop){e.font=l.string,n=e.measureText(i.label).width,e.fillStyle=r.backdropColor;const t=fAe(r.backdropPadding);e.fillRect(-n/2-t.left,-s-l.size/2-t.top,n+t.width,l.size+t.height)}rAe(e,i.label,0,-s,l,{color:r.color,strokeColor:r.textStrokeColor,strokeWidth:r.textStrokeWidth})}),e.restore()}drawTitle(){}}o(gDe,"id","radialLinear"),o(gDe,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:UTe.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}}),o(gDe,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),o(gDe,"descriptors",{angleLines:{_fallback:"grid"}});const mDe={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},fDe=Object.keys(mDe);function _De(e,t){return e-t}function bDe(e,t){if(Cke(t))return null;const a=e._adapter,{parser:i,round:s,isoWeekday:n}=e._parseOpts;let o=t;return"function"==typeof i&&(o=i(o)),Ake(o)||(o="string"==typeof i?a.parse(o,i):a.parse(o)),null===o?null:(s&&(o="week"!==s||!nTe(n)&&!0!==n?a.startOf(o,s):a.startOf(o,"isoWeek",n)),+o)}function vDe(e,t,a,i){const s=fDe.length;for(let n=fDe.indexOf(e);n<s-1;++n){const e=mDe[fDe[n]],s=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((a-t)/(s*e.size))<=i)return fDe[n]}return fDe[s-1]}function yDe(e,t,a){if(a){if(a.length){const{lo:i,hi:s}=_Te(a,t);e[a[i]>=t?a[i]:a[s]]=!0}}else e[t]=!0}function SDe(e,t,a){const i=[],s={},n=t.length;let o,r;for(o=0;o<n;++o)r=t[o],s[r]=o,i.push({value:r,major:!1});return 0!==n&&a?function(e,t,a,i){const s=e._adapter,n=+s.startOf(t[0].value,i),o=t[t.length-1].value;let r,l;for(r=n;r<=o;r=+s.add(r,1,i))l=a[r],l>=0&&(t[l].major=!0);return t}(e,i,s,a):i}let xDe=(s=class extends GOe{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){const a=e.time||(e.time={}),i=this._adapter=new QRe(e.adapters.date);i.init(t),Bke(a.displayFormats,i.formats()),this._parseOpts={parser:a.parser,round:a.round,isoWeekday:a.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:bDe(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,a=e.time.unit||"day";let{min:i,max:s,minDefined:n,maxDefined:o}=this.getUserBounds();function r(e){n||isNaN(e.min)||(i=Math.min(i,e.min)),o||isNaN(e.max)||(s=Math.max(s,e.max))}n&&o||(r(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||r(this.getMinMax(!1))),i=Ake(i)&&!isNaN(i)?i:+t.startOf(Date.now(),a),s=Ake(s)&&!isNaN(s)?s:+t.endOf(Date.now(),a)+1,this.min=Math.min(i,s-1),this.max=Math.max(i+1,s)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],a=e[e.length-1]),{min:t,max:a}}buildTicks(){const e=this.options,t=e.time,a=e.ticks,i="labels"===a.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const s=this.min,n=function(e,t,a){let i=0,s=e.length;for(;i<s&&e[i]<t;)i++;for(;s>i&&e[s-1]>a;)s--;return i>0||s<e.length?e.slice(i,s):e}(i,s,this.max);return this._unit=t.unit||(a.autoSkip?vDe(t.minUnit,this.min,this.max,this._getLabelCapacity(s)):function(e,t,a,i,s){for(let n=fDe.length-1;n>=fDe.indexOf(a);n--){const a=fDe[n];if(mDe[a].common&&e._adapter.diff(s,i,a)>=t-1)return a}return fDe[a?fDe.indexOf(a):0]}(this,n.length,t.minUnit,this.min,this.max)),this._majorUnit=a.major.enabled&&"year"!==this._unit?function(e){for(let t=fDe.indexOf(e)+1,a=fDe.length;t<a;++t)if(mDe[fDe[t]].common)return fDe[t]}(this._unit):void 0,this.initOffsets(i),e.reverse&&n.reverse(),SDe(this,n,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let t,a,i=0,s=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),i=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,a=this.getDecimalForValue(e[e.length-1]),s=1===e.length?a:(a-this.getDecimalForValue(e[e.length-2]))/2);const n=e.length<3?.5:.25;i=mTe(i,0,n),s=mTe(s,0,n),this._offsets={start:i,end:s,factor:1/(i+1+s)}}_generate(){const e=this._adapter,t=this.min,a=this.max,i=this.options,s=i.time,n=s.unit||vDe(s.minUnit,t,a,this._getLabelCapacity(t)),o=Oke(i.ticks.stepSize,1),r="week"===n&&s.isoWeekday,l=nTe(r)||!0===r,c={};let d,u,p=t;if(l&&(p=+e.startOf(p,"isoWeek",r)),p=+e.startOf(p,l?"day":n),e.diff(a,t,n)>1e5*o)throw new Error(t+" and "+a+" are too far apart with stepSize of "+o+" "+n);const h="data"===i.ticks.source&&this.getDataTimestamps();for(d=p,u=0;d<a;d=+e.add(d,o,n),u++)yDe(c,d,h);return d!==a&&"ticks"!==i.bounds&&1!==u||yDe(c,d,h),Object.keys(c).sort(_De).map(e=>+e)}getLabelForValue(e){const t=this._adapter,a=this.options.time;return a.tooltipFormat?t.format(e,a.tooltipFormat):t.format(e,a.displayFormats.datetime)}format(e,t){const a=this.options.time.displayFormats,i=this._unit,s=t||a[i];return this._adapter.format(e,s)}_tickFormatFunction(e,t,a,i){const s=this.options,n=s.ticks.callback;if(n)return Ike(n,[e,t,a],this);const o=s.time.displayFormats,r=this._unit,l=this._majorUnit,c=r&&o[r],d=l&&o[l],u=a[t],p=l&&d&&u&&u.major;return this._adapter.format(e,i||(p?d:c))}generateTickLabels(e){let t,a,i;for(t=0,a=e.length;t<a;++t)i=e[t],i.label=this._tickFormatFunction(i.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,a=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+a)*t.factor)}getValueForPixel(e){const t=this._offsets,a=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+a*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,a=this.ctx.measureText(e).width,i=rTe(this.isHorizontal()?t.maxRotation:t.minRotation),s=Math.cos(i),n=Math.sin(i),o=this._resolveTickFontOptions(0).size;return{w:a*s+o*n,h:a*n+o*s}}_getLabelCapacity(e){const t=this.options.time,a=t.displayFormats,i=a[t.unit]||a.millisecond,s=this._tickFormatFunction(e,0,SDe(this,[e],this._majorUnit),i),n=this._getLabelSize(s),o=Math.floor(this.isHorizontal()?this.width/n.w:this.height/n.h)-1;return o>0?o:1}getDataTimestamps(){let e,t,a=this._cache.data||[];if(a.length)return a;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(e=0,t=i.length;e<t;++e)a=a.concat(i[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(a)}getLabelTimestamps(){const e=this._cache.labels||[];let t,a;if(e.length)return e;const i=this.getLabels();for(t=0,a=i.length;t<a;++t)e.push(bDe(this,i[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return xTe(e.sort(_De))}},o(s,"id","time"),o(s,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}}),s);function wDe(e,t,a){let i,s,n,o,r=0,l=e.length-1;a?(t>=e[r].pos&&t<=e[l].pos&&({lo:r,hi:l}=bTe(e,"pos",t)),({pos:i,time:n}=e[r]),({pos:s,time:o}=e[l])):(t>=e[r].time&&t<=e[l].time&&({lo:r,hi:l}=bTe(e,"time",t)),({time:i,pos:n}=e[r]),({time:s,pos:o}=e[l]));const c=s-i;return c?n+(o-n)*(t-i)/c:n}class EDe extends xDe{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=wDe(t,this.min),this._tableRange=wDe(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:a}=this,i=[],s=[];let n,o,r,l,c;for(n=0,o=e.length;n<o;++n)l=e[n],l>=t&&l<=a&&i.push(l);if(i.length<2)return[{time:t,pos:0},{time:a,pos:1}];for(n=0,o=i.length;n<o;++n)c=i[n+1],r=i[n-1],l=i[n],Math.round((c+r)/2)!==l&&s.push({time:l,pos:n/(o-1)});return s}_generate(){const e=this.min,t=this.max;let a=super.getDataTimestamps();return a.includes(e)&&a.length||a.splice(0,0,e),a.includes(t)&&1!==a.length||a.push(t),a.sort((e,t)=>e-t)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),a=this.getLabelTimestamps();return e=t.length&&a.length?this.normalize(t.concat(a)):t.length?t:a,e=this._cache.all=e,e}getDecimalForValue(e){return(wDe(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,a=this.getDecimalForPixel(e)/t.factor-t.end;return wDe(this._table,a*this._tableRange+this._minPos,!0)}}o(EDe,"id","timeseries"),o(EDe,"defaults",xDe.defaults);const CDe=[qRe,jNe,GIe,Object.freeze({__proto__:null,CategoryScale:qIe,LinearScale:ZIe,LogarithmicScale:sDe,RadialLinearScale:gDe,TimeScale:xDe,TimeSeriesScale:EDe})];xNe.register(...CDe);const kDe={ref:"chartCanvas"};const TDe=dH(sl({name:"MonthlyChart",props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,required:!1,default:()=>({})}},setup(e){const t=fo(null);let a=null,i=!1;const s=()=>{if(i||!t.value)return;const s=t.value.getContext("2d");if(s){if(a){try{a.destroy()}catch(PI){}a=null}try{a=new xNe(s,{type:"bar",data:e.chartData,options:{...e.chartOptions,animation:{duration:300},responsive:!0,maintainAspectRatio:!1}})}catch(n){}}};return Rr(()=>e.chartData,()=>{i||(()=>{if(!i&&a)try{a.data=e.chartData,a.update("none")}catch(t){s()}})()},{deep:!0}),Hl(()=>{ar(()=>{s()})}),Gl(()=>{if(i=!0,a){try{a.stop(),a.clear(),a.destroy()}catch(e){}a=null}}),{chartCanvas:t}}}),[["render",function(e,t,a,i,s,n){return Hd(),jd("canvas",kDe,null,512)}]]),ADe={},RDe=function(e,t,a){let i=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),n=(null==s?void 0:s.nonce)||(null==s?void 0:s.getAttribute("nonce"));i=Promise.allSettled(t.map(t=>{if(t=function(e,t){return new URL(e,t).href}(t,a),t in ADe)return;ADe[t]=!0;const i=t.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(!!a)for(let a=e.length-1;a>=0;a--){const s=e[a];if(s.href===t&&(!i||"stylesheet"===s.rel))return}else if(document.querySelector(`link[href="${t}"]${s}`))return;const o=document.createElement("link");return o.rel=i?"stylesheet":"modulepreload",i||(o.as="script"),o.crossOrigin="",o.href=t,n&&o.setAttribute("nonce",n),document.head.appendChild(o),i?new Promise((e,a)=>{o.addEventListener("load",e),o.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${t}`)))}):void 0}))}function s(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return i.then(t=>{for(const e of t||[])"rejected"===e.status&&s(e.reason);return e().catch(s)})};var ODe=Object.defineProperty,NDe=Object.defineProperties,IDe=Object.getOwnPropertyDescriptors,DDe=Object.getOwnPropertySymbols,MDe=Object.prototype.hasOwnProperty,LDe=Object.prototype.propertyIsEnumerable,PDe=(e,t,a)=>t in e?ODe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,FDe=(e,t)=>{for(var a in t||(t={}))MDe.call(t,a)&&PDe(e,a,t[a]);if(DDe)for(var a of DDe(t))LDe.call(t,a)&&PDe(e,a,t[a]);return e},$De=(e,t)=>NDe(e,IDe(t)),BDe=(e,t,a)=>PDe(e,"symbol"!=typeof t?t+"":t,a);class VDe{static isSSR(){return"undefined"==typeof window||"undefined"==typeof document}static isBrowser(){return!this.isSSR()}static hasAPI(e){return!this.isSSR()&&void 0!==window[e]}static getApex(){return"undefined"!=typeof window&&window.Apex?window.Apex:"undefined"!=typeof global&&global.Apex?global.Apex:{}}}class UDe{constructor(e,t=null){this.nodeName=e,this.namespaceURI=t,this.attributes=new Map,this.children=[],this.textContent="",this.style={},this.classList=new HDe,this.parentNode=null,this._ssrWidth=void 0,this._ssrHeight=void 0,this._ssrMode=void 0}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){if(e&&e!==this){if(e.parentNode&&e.parentNode!==this)e.parentNode.removeChild(e);else if(e.parentNode===this){const t=this.children.indexOf(e);-1!==t&&this.children.splice(t,1)}e.parentNode=this,this.children.push(e)}return e}removeChild(e){const t=this.children.indexOf(e);return-1!==t&&(this.children.splice(t,1),e.parentNode=null),e}insertBefore(e,t){if(!t)return this.appendChild(e);if(e.parentNode&&e.parentNode!==this)e.parentNode.removeChild(e);else if(e.parentNode===this){const t=this.children.indexOf(e);-1!==t&&this.children.splice(t,1)}const a=this.children.indexOf(t);return-1!==a&&(e.parentNode=this,this.children.splice(a,0,e)),e}cloneNode(e=!1){const t=new UDe(this.nodeName,this.namespaceURI);return t.textContent=this.textContent,this.attributes.forEach((e,a)=>{t.attributes.set(a,e)}),Object.assign(t.style,this.style),e&&this.children.forEach(e=>{e.cloneNode&&t.appendChild(e.cloneNode(!0))}),t}getBoundingClientRect(){return{width:this._ssrWidth||0,height:this._ssrHeight||0,top:0,left:0,right:this._ssrWidth||0,bottom:this._ssrHeight||0,x:0,y:0}}getRootNode(){let e=this;for(;e.parentNode;)e=e.parentNode;return e}querySelector(){return null}querySelectorAll(){return[]}getElementsByClassName(){return[]}addEventListener(){}removeEventListener(){}get childNodes(){return this.children}toString(){let e="";if(this.attributes.forEach((t,a)=>{e+=` ${a}="${t}"`}),0===this.children.length&&!this.textContent)return`<${this.nodeName}${e}/>`;const t=this.children.map(e=>e.toString()).join("");return`<${this.nodeName}${e}>${this.textContent}${t}</${this.nodeName}>`}get innerHTML(){return this.children.map(e=>e.toString()).join("")}set innerHTML(e){this.children=[],this.textContent=e}get outerHTML(){return this.toString()}get isConnected(){return!0}}class HDe{constructor(){this.classes=new Set}add(...e){e.forEach(e=>this.classes.add(e))}remove(...e){e.forEach(e=>this.classes.delete(e))}contains(e){return this.classes.has(e)}toggle(e,t){return!0===t?(this.classes.add(e),!0):!1===t||this.classes.has(e)?(this.classes.delete(e),!1):(this.classes.add(e),!0)}toString(){return Array.from(this.classes).join(" ")}}class zDe{constructor(){this.SVGNS="http://www.w3.org/2000/svg",this.XLINKNS="http://www.w3.org/1999/xlink"}createElementNS(e,t){return new UDe(t,e)}createTextNode(e){const t={nodeName:"#text",nodeType:3,textContent:e,toString:()=>t.textContent};return t}querySelector(){return null}querySelectorAll(){return[]}getComputedStyle(){return{}}getBoundingClientRect(e){return e&&e.getBoundingClientRect?e.getBoundingClientRect():{width:0,height:0,top:0,left:0,right:0,bottom:0,x:0,y:0}}createXMLSerializer(){return{serializeToString:e=>e.toString?e.toString():""}}createDOMParser(){return{parseFromString(e,t){const a=new UDe("root");return a.innerHTML=e,{documentElement:a}}}}}let YDe=null,GDe=null,WDe=null;class jDe{static init(){VDe.isSSR()&&!YDe&&(YDe=new zDe)}static createElement(e){return VDe.isSSR()?(YDe||this.init(),YDe.createElementNS(null,e)):document.createElement(e)}static createElementNS(e,t){return VDe.isSSR()?(YDe||this.init(),YDe.createElementNS(e,t)):document.createElementNS(e,t)}static createTextNode(e){return VDe.isSSR()?(YDe||this.init(),YDe.createTextNode(e)):document.createTextNode(e)}static querySelector(e){return VDe.isSSR()?null:document.querySelector(e)}static querySelectorAll(e){return VDe.isSSR()?[]:document.querySelectorAll(e)}static getComputedStyle(e){return VDe.isSSR()?{}:window.getComputedStyle(e)}static getBoundingClientRect(e){return VDe.isSSR()?(YDe||this.init(),YDe.getBoundingClientRect(e)):e?e.getBoundingClientRect():{width:0,height:0,top:0,left:0,right:0,bottom:0,x:0,y:0}}static getXMLSerializer(){return VDe.isSSR()?(YDe||this.init(),GDe||(GDe=YDe.createXMLSerializer()),GDe):(GDe||(GDe=new XMLSerializer),GDe)}static getDOMParser(){return VDe.isSSR()?(YDe||this.init(),WDe||(WDe=YDe.createDOMParser()),WDe):(WDe||(WDe=new DOMParser),WDe)}static addWindowEventListener(e,t,a){VDe.isBrowser()&&window.addEventListener(e,t,a)}static removeWindowEventListener(e,t,a){VDe.isBrowser()&&window.removeEventListener(e,t,a)}static requestAnimationFrame(e){return VDe.isBrowser()?window.requestAnimationFrame(e):(e(0),null)}static cancelAnimationFrame(e){VDe.isBrowser()&&e&&window.cancelAnimationFrame(e)}static elementExists(e){return!!e&&(VDe.isSSR()?!0===e._ssrMode||void 0!==e.nodeName:!!e.getRootNode&&(e.getRootNode({composed:!0})===document||e.isConnected))}static getWindow(){return VDe.isBrowser()?window:null}static getDocument(){return VDe.isBrowser()?document:null}static _getShim(){return YDe}static _resetShim(){YDe=null,GDe=null,WDe=null}}let qDe=class e{static isObject(e){return e&&"object"==typeof e&&!Array.isArray(e)}static is(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}static isSafari(){return VDe.isBrowser()&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}static extend(e,t){const a=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach(i=>{this.isObject(t[i])?i in e?a[i]=this.extend(e[i],t[i]):Object.assign(a,{[i]:t[i]}):Object.assign(a,{[i]:t[i]})}),a}static extendArray(t,a){const i=[];return t.map(t=>{i.push(e.extend(a,t))}),t=i}static monthMod(e){return e%12}static clone(e,t=new WeakMap,a=!1){if(null===e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);let i;if(Array.isArray(e))if(a)i=e.slice();else{i=[],t.set(e,i);for(let a=0;a<e.length;a++)i[a]=this.clone(e[a],t,!1)}else if(e instanceof Date)i=new Date(e.getTime());else if(a)i=Object.assign({},e);else{i={},t.set(e,i);for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=this.clone(e[a],t,!1))}return i}static shallowClone(e){return null===e||"object"!=typeof e?e:Array.isArray(e)?e.slice():Object.assign({},e)}static shallowEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;if("object"!=typeof e||"object"!=typeof t)return e===t;const a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(const s of a)if(e[s]!==t[s])return!1;return!0}static log10(e){return Math.log(e)/Math.LN10}static roundToBase10(e){return Math.pow(10,Math.floor(Math.log10(e)))}static roundToBase(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}static parseNumber(e){return"number"==typeof e||null===e?e:parseFloat(e)}static stripNumber(e,t=2){return Number.isInteger(e)?e:parseFloat(e.toPrecision(t))}static randomId(){return(Math.random()+1).toString(36).substring(4)}static noExponents(e){return e.toString().includes("e")?Math.round(e):e}static elementExists(e){return!(!e||!e.isConnected)}static isInShadowDOM(t){if(!t||!t.getRootNode)return!1;const a=t.getRootNode();return a&&a!==document&&e.is("ShadowRoot",a)}static getShadowRootHost(t){if(!e.isInShadowDOM(t))return null;return t.getRootNode().host||null}static getDimensions(e){if(!e)return[0,0];if(VDe.isSSR())return[e._ssrWidth||400,e._ssrHeight||300];let t;try{t=getComputedStyle(e,null)}catch(PI){return[e.clientWidth||0,e.clientHeight||0]}let a=e.clientWidth,i=e.clientHeight;if(!a||!i){const t=e.getBoundingClientRect();a=a||t.width,i=i||t.height}return i-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),a-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),[a,i]}static getBoundingClientRect(e){if(!e)return{top:0,right:0,bottom:0,left:0,width:0,height:0,x:0,y:0};if(VDe.isSSR())return jDe.getBoundingClientRect(e);const 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}}static getLargestStringFromArr(e){return e.reduce((e,t)=>(Array.isArray(t)&&(t=t.reduce((e,t)=>e.length>t.length?e:t)),e.length>t.length?e:t),0)}static hexToRgba(e="#999999",t=.6){"#"!==e.substring(0,1)&&(e="#999999");const a=e.replace("#",""),i=a.match(new RegExp("(.{"+a.length/3+"})","g"))||[];for(let s=0;s<i.length;s++)i[s]=parseInt(1===i[s].length?i[s]+i[s]:i[s],16);return void 0!==t&&i.push(t),"rgba("+i.join(",")+")"}static getOpacityFromRGBA(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}static parseHex(e){if("string"!=typeof e)return null;let t=e.trim().replace("#","");return 3===t.length&&(t=t.split("").map(e=>e+e).join("")),/^[0-9a-fA-F]{6}$/.test(t)?[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]:null}static relativeLuminance([e,t,a]){const i=e=>{const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};return.2126*i(e)+.7152*i(t)+.0722*i(a)}static getContrastRatio(t,a){const i=e.parseHex(t),s=e.parseHex(a);if(!i||!s)return 0;const n=e.relativeLuminance(i),o=e.relativeLuminance(s);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}static rgb2hex(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):""}shadeRGBColor(e,t){const a=t.split(","),i=e<0?0:255,s=e<0?-1*e:e,n=parseInt(a[0].slice(4),10),o=parseInt(a[1],10),r=parseInt(a[2],10);return"rgb("+(Math.round((i-n)*s)+n)+","+(Math.round((i-o)*s)+o)+","+(Math.round((i-r)*s)+r)+")"}shadeHexColor(e,t){const a=parseInt(t.slice(1),16),i=e<0?0:255,s=e<0?-1*e:e,n=a>>16,o=a>>8&255,r=255&a;return"#"+(16777216+65536*(Math.round((i-n)*s)+n)+256*(Math.round((i-o)*s)+o)+(Math.round((i-r)*s)+r)).toString(16).slice(1)}shadeColor(t,a){return e.isColorHex(a)?this.shadeHexColor(t,a):this.shadeRGBColor(t,a)}static isColorHex(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}static isCSSVariable(e){if("string"!=typeof e)return!1;const t=e.trim();return t.startsWith("var(")&&t.endsWith(")")}static getThemeColor(t){if(!e.isCSSVariable(t))return t;if(VDe.isSSR())return t;const a=document.createElement("div");let i;a.style.cssText="position:fixed; left: -9999px; visibility:hidden;",a.style.color=t,document.body.appendChild(a);try{i=window.getComputedStyle(a).color}finally{a.parentNode&&a.parentNode.removeChild(a)}return i}static applyOpacityToColor(e,t){const a=Number(t);if(!Number.isFinite(a))return e;if(a<=0)return"transparent";if(a>=1)return e;return`color-mix(in srgb, ${e} ${Math.round(100*a)}%, transparent)`}static getPolygonPos(e,t){const a=[],i=2*Math.PI/t;for(let s=0;s<t;s++){const t={};t.x=e*Math.sin(s*i),t.y=-e*Math.cos(s*i),a.push(t)}return a}static polarToCartesian(e,t,a,i){const s=(i-90)*Math.PI/180;return{x:e+a*Math.cos(s),y:t+a*Math.sin(s)}}static escapeString(e,t="x"){let a=e.toString().slice();return a=a.replace(/[` ~!@#$%^&*()|+=?;:'",.<>{}[\]\\/]/gi,t),a}static negToZero(e){return e<0?0:e}static moveIndexInArray(e,t,a){if(a>=e.length){let t=a-e.length+1;for(;t--;)e.push(void 0)}return e.splice(a,0,e.splice(t,1)[0]),e}static extractNumber(e){return parseFloat(e.replace(/[^\d.]*/g,""))}static findAncestor(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}static setELstyles(e,t){for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e.style.key=t[a])}static preciseAddition(e,t){const a=(String(e).split(".")[1]||"").length,i=(String(t).split(".")[1]||"").length,s=Math.pow(10,Math.max(a,i));return(Math.round(e*s)+Math.round(t*s))/s}static isNumber(e){return!isNaN(e)&&parseFloat(String(Number(e)))===e&&!isNaN(parseInt(e,10))}static isFloat(e){return Number(e)===e&&e%1!=0}static isMsEdge(){if(VDe.isSSR())return!1;const e=window.navigator.userAgent,t=e.indexOf("Edge/");return t>0&&parseInt(e.substring(t+5,e.indexOf(".",t)),10)}static getGCD(e,t,a=7){let i=Math.pow(10,a-Math.floor(Math.log10(Math.max(e,t))));for(i>1?(e=Math.round(Math.abs(e)*i),t=Math.round(Math.abs(t)*i)):i=1;t;){const a=t;t=e%t,e=a}return e/i}static getPrimeFactors(e){const t=[];let a=2;for(;e>=2;)e%a==0?(t.push(a),e/=a):a++;return t}static mod(e,t,a=7){const i=Math.pow(10,a-Math.floor(Math.log10(Math.max(e,t))));return(e=Math.round(Math.abs(e)*i))%(t=Math.round(Math.abs(t)*i))/i}};class KDe{constructor(e){this.w=e,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]}isValidDate(e){return"number"!=typeof e&&!isNaN(this.parseDate(e))}getTimeStamp(e){if(!Date.parse(e))return e;return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime()}getDate(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}parseDate(e){const t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);let a=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return a=this.getTimeStamp(a),a}parseDateWithTimezone(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}formatDate(e,t){const a=this.w.globals.locale,i=this.w.config.xaxis.labels.datetimeUTC,s=["\0",...a.months],n=["",...a.shortMonths],o=["",...a.days],r=["",...a.shortDays];function l(e,t=2){let a=e+"";for(;a.length<t;)a="0"+a;return a}const 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);const d=(i?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+s[0])).replace(/(^|[^\\])MMM/g,"$1"+n[0])).replace(/(^|[^\\])MM/g,"$1"+l(d))).replace(/(^|[^\\])M/g,"$1"+d);const u=i?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+o[0])).replace(/(^|[^\\])ddd/g,"$1"+r[0])).replace(/(^|[^\\])dd/g,"$1"+l(u))).replace(/(^|[^\\])d/g,"$1"+u);const p=i?e.getUTCHours():e.getHours(),h=p>12?p-12:0===p?12:p;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+l(p))).replace(/(^|[^\\])H/g,"$1"+p)).replace(/(^|[^\\])hh+/g,"$1"+l(h))).replace(/(^|[^\\])h/g,"$1"+h);const g=i?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+l(g))).replace(/(^|[^\\])m/g,"$1"+g);const m=i?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+l(m))).replace(/(^|[^\\])s/g,"$1"+m);let f=i?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+l(f,3)),f=Math.round(f/10),t=t.replace(/(^|[^\\])ff/g,"$1"+l(f)),f=Math.round(f/10);const _=p<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+f)).replace(/(^|[^\\])TT+/g,"$1"+_)).replace(/(^|[^\\])T/g,"$1"+_.charAt(0));const b=_.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+b)).replace(/(^|[^\\])t/g,"$1"+b.charAt(0));let v=-e.getTimezoneOffset(),y=i||!v?"Z":v>0?"+":"-";if(!i){v=Math.abs(v);const e=v%60;y+=l(Math.floor(v/60))+":"+l(e)}t=t.replace(/(^|[^\\])K/g,"$1"+y);const S=(i?e.getUTCDay():e.getDay())+1;return t=(t=(t=(t=(t=t.replace(new RegExp(o[0],"g"),o[S])).replace(new RegExp(r[0],"g"),r[S])).replace(new RegExp(s[0],"g"),s[d])).replace(new RegExp(n[0],"g"),n[d])).replace(/\\(.)/g,"$1")}getTimeUnitsfromTimestamp(e,t){const a=this.w;void 0!==a.config.xaxis.min&&(e=a.config.xaxis.min),void 0!==a.config.xaxis.max&&(t=a.config.xaxis.max);const i=this.getDate(e),s=this.getDate(t),n=this.formatDate(i,"yyyy MM dd HH mm ss fff").split(" "),o=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(n[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(n[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(n[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(n[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(n[2],10),maxDate:parseInt(o[2],10),minMonth:parseInt(n[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(n[0],10),maxYear:parseInt(o[0],10)}}isLeapYear(e){return e%4==0&&e%100!=0||e%400==0}calculcateLastDaysOfMonth(e,t,a){return this.determineDaysOfMonths(e,t)-a}determineDaysOfYear(e){let t=365;return this.isLeapYear(e)&&(t=366),t}determineRemainingDaysOfYear(e,t,a){let i=this.daysCntOfYear[t]+a;return t>1&&this.isLeapYear(e)&&i++,i}determineDaysOfMonths(e,t){let a=30;switch(e=qDe.monthMod(e),!0){case this.months30.indexOf(e)>-1:2===e&&(a=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:a=31}return a}getDateFields(e,t){const a=new Date(e);return t?{year:a.getUTCFullYear(),month:a.getUTCMonth(),date:a.getUTCDate(),hour:a.getUTCHours(),minute:a.getUTCMinutes(),second:a.getUTCSeconds(),ms:a.getUTCMilliseconds(),weekday:a.getUTCDay()}:{year:a.getFullYear(),month:a.getMonth(),date:a.getDate(),hour:a.getHours(),minute:a.getMinutes(),second:a.getSeconds(),ms:a.getMilliseconds(),weekday:a.getDay()}}addInterval(e,t,a,i){const s=new Date(e);if(i)switch(t){case"year":s.setUTCFullYear(s.getUTCFullYear()+a);break;case"month":s.setUTCMonth(s.getUTCMonth()+a);break;case"week":s.setUTCDate(s.getUTCDate()+7*a);break;case"day":s.setUTCDate(s.getUTCDate()+a);break;case"hour":s.setUTCHours(s.getUTCHours()+a);break;case"minute":s.setUTCMinutes(s.getUTCMinutes()+a);break;case"second":s.setUTCSeconds(s.getUTCSeconds()+a)}else switch(t){case"year":s.setFullYear(s.getFullYear()+a);break;case"month":s.setMonth(s.getMonth()+a);break;case"week":s.setDate(s.getDate()+7*a);break;case"day":s.setDate(s.getDate()+a);break;case"hour":s.setHours(s.getHours()+a);break;case"minute":s.setMinutes(s.getMinutes()+a);break;case"second":s.setSeconds(s.getSeconds()+a)}return s.getTime()}ceilToBoundary(e,t,a,i){const s=new Date(e);if(i)switch(t){case"second":{const t=s.getUTCSeconds(),i=Math.ceil(t/a)*a;return i===t&&0===s.getUTCMilliseconds()?e:(s.setUTCMilliseconds(0),s.setUTCSeconds(i),s.getTime())}case"minute":{const t=s.getUTCMinutes(),i=Math.ceil(t/a)*a;return i===t&&0===s.getUTCSeconds()&&0===s.getUTCMilliseconds()?e:(s.setUTCMilliseconds(0),s.setUTCSeconds(0),s.setUTCMinutes(i),s.getTime())}case"hour":{const t=s.getUTCHours(),i=Math.ceil(t/a)*a;return i===t&&0===s.getUTCMinutes()&&0===s.getUTCSeconds()&&0===s.getUTCMilliseconds()?e:(s.setUTCMilliseconds(0),s.setUTCSeconds(0),s.setUTCMinutes(0),s.setUTCHours(i),s.getTime())}case"day":return 0===s.getUTCHours()&&0===s.getUTCMinutes()&&0===s.getUTCSeconds()&&0===s.getUTCMilliseconds()?e:(s.setUTCMilliseconds(0),s.setUTCSeconds(0),s.setUTCMinutes(0),s.setUTCHours(0),s.setUTCDate(s.getUTCDate()+1),s.getTime());case"week":{const t=6048e5,i=Date.UTC(1970,0,5);s.setUTCMilliseconds(0),s.setUTCSeconds(0),s.setUTCMinutes(0),s.setUTCHours(0);const n=s.getTime(),o=Math.ceil((n-i)/t),r=i+Math.ceil(o/a)*a*t;return r>=e?r:r+a*t}case"month":{const t=s.getUTCMonth(),i=Math.ceil(t/a)*a;return i===t&&1===s.getUTCDate()&&0===s.getUTCHours()&&0===s.getUTCMinutes()&&0===s.getUTCSeconds()&&0===s.getUTCMilliseconds()?e:(s.setUTCMilliseconds(0),s.setUTCSeconds(0),s.setUTCMinutes(0),s.setUTCHours(0),s.setUTCDate(1),s.setUTCMonth(i),s.getTime())}case"year":{const t=s.getUTCFullYear(),i=Math.ceil(t/a)*a;return i===t&&0===s.getUTCMonth()&&1===s.getUTCDate()&&0===s.getUTCHours()&&0===s.getUTCMinutes()&&0===s.getUTCSeconds()&&0===s.getUTCMilliseconds()?e:Date.UTC(i,0,1)}}else switch(t){case"second":{const t=s.getSeconds(),i=Math.ceil(t/a)*a;return i===t&&0===s.getMilliseconds()?e:(s.setMilliseconds(0),s.setSeconds(i),s.getTime())}case"minute":{const t=s.getMinutes(),i=Math.ceil(t/a)*a;return i===t&&0===s.getSeconds()&&0===s.getMilliseconds()?e:(s.setMilliseconds(0),s.setSeconds(0),s.setMinutes(i),s.getTime())}case"hour":{const t=s.getHours(),i=Math.ceil(t/a)*a;return i===t&&0===s.getMinutes()&&0===s.getSeconds()&&0===s.getMilliseconds()?e:(s.setMilliseconds(0),s.setSeconds(0),s.setMinutes(0),s.setHours(i),s.getTime())}case"day":return 0===s.getHours()&&0===s.getMinutes()&&0===s.getSeconds()&&0===s.getMilliseconds()?e:(s.setMilliseconds(0),s.setSeconds(0),s.setMinutes(0),s.setHours(0),s.setDate(s.getDate()+1),s.getTime());case"week":{const t=6048e5,i=new Date(1970,0,5).getTime();s.setMilliseconds(0),s.setSeconds(0),s.setMinutes(0),s.setHours(0);const n=s.getTime(),o=Math.ceil((n-i)/t),r=i+Math.ceil(o/a)*a*t;return r>=e?r:r+a*t}case"month":{const t=s.getMonth(),i=Math.ceil(t/a)*a;return i===t&&1===s.getDate()&&0===s.getHours()&&0===s.getMinutes()&&0===s.getSeconds()&&0===s.getMilliseconds()?e:(s.setMilliseconds(0),s.setSeconds(0),s.setMinutes(0),s.setHours(0),s.setDate(1),s.setMonth(i),s.getTime())}case"year":{const t=s.getFullYear(),i=Math.ceil(t/a)*a;return i===t&&0===s.getMonth()&&1===s.getDate()&&0===s.getHours()&&0===s.getMinutes()&&0===s.getSeconds()&&0===s.getMilliseconds()?e:new Date(i,0,1).getTime()}}return e}isAtBoundary(e,t,a){const i=this.getDateFields(e,a);switch(t){case"year":return 0===i.month&&1===i.date&&0===i.hour&&0===i.minute&&0===i.second&&0===i.ms;case"month":return 1===i.date&&0===i.hour&&0===i.minute&&0===i.second&&0===i.ms;case"day":return 0===i.hour&&0===i.minute&&0===i.second&&0===i.ms;case"hour":return 0===i.minute&&0===i.second&&0===i.ms;case"minute":return 0===i.second&&0===i.ms;case"second":return 0===i.ms}return!1}}class XDe{constructor(e){this.w=e,this.tooltipKeyFormat="dd MMM"}xLabelFormat(e,t,a,i){const s=this.w;if("datetime"===s.config.xaxis.type&&void 0===s.config.xaxis.labels.formatter&&void 0===s.config.tooltip.x.formatter){const e=new KDe(this.w);return e.formatDate(e.getDate(t),s.config.tooltip.x.format)}return e(t,a,i)}defaultGeneralFormatter(e){return Array.isArray(e)?e.map(e=>e):e}defaultYFormatter(e,t){const a=this.w;if(qDe.isNumber(e))if(0!==a.globals.yValueDecimal)e=e.toFixed(void 0!==t.decimalsInFloat?t.decimalsInFloat:a.globals.yValueDecimal);else{const t=e.toFixed(0);e=Number(t)===e?t:e.toFixed(1)}return e}setLabelFormatters(){const e=this.w,t=e.formatters;return t.xaxisTooltipFormatter=e=>this.defaultGeneralFormatter(e),t.ttKeyFormatter=e=>this.defaultGeneralFormatter(e),t.ttZFormatter=e=>e,t.legendFormatter=e=>this.defaultGeneralFormatter(e),void 0!==e.config.xaxis.labels.formatter?t.xLabelFormatter=e.config.xaxis.labels.formatter:t.xLabelFormatter=t=>{if(qDe.isNumber(t)){if(!e.config.xaxis.convertedCatToNumeric&&"numeric"===e.config.xaxis.type){if(qDe.isNumber(e.config.xaxis.decimalsInFloat))return t.toFixed(e.config.xaxis.decimalsInFloat);{const a=e.globals.maxX-e.globals.minX;if(a>0){const e=a/10,i=Math.max(0,-Math.floor(Math.log10(e)));return t.toFixed(i)}return t.toFixed(0)}}if(e.globals.isBarHorizontal){if(e.globals.maxY-e.globals.minYArr<4)return t.toFixed(1)}return t.toFixed(0)}return t},"function"==typeof e.config.tooltip.x.formatter?t.ttKeyFormatter=e.config.tooltip.x.formatter:t.ttKeyFormatter=t.xLabelFormatter,"function"==typeof e.config.xaxis.tooltip.formatter&&(t.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||void 0!==e.config.tooltip.y.formatter)&&(t.ttVal=e.config.tooltip.y),void 0!==e.config.tooltip.z.formatter&&(t.ttZFormatter=e.config.tooltip.z.formatter),void 0!==e.config.legend.formatter&&(t.legendFormatter=e.config.legend.formatter),t.yLabelFormatters=[],e.config.yaxis.forEach((a,i)=>{void 0!==a.labels.formatter?t.yLabelFormatters[i]=a.labels.formatter:t.yLabelFormatters[i]=t=>e.globals.xyCharts?Array.isArray(t)?t.map(e=>this.defaultYFormatter(e,a)):this.defaultYFormatter(t,a):t}),e.globals}heatmapLabelFormatters(){const e=this.w;if("heatmap"===e.config.chart.type){e.globals.yAxisScale[0].result=e.seriesData.seriesNames.slice();const t=e.seriesData.seriesNames.reduce((e,t)=>e.length>t.length?e:t,0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}const QDe=({isTimeline:e,seriesIndex:t,dataPointIndex:a,y1:i,y2:s,w:n})=>{var o;let r=n.rangeData.seriesRangeStart[t][a],l=n.rangeData.seriesRangeEnd[t][a],c=n.labelData.labels[a],d=n.config.series[t].name?n.config.series[t].name:"";const u=n.formatters.ttKeyFormatter,p=n.config.tooltip.y.title.formatter,h={w:n,seriesIndex:t,dataPointIndex:a,start:r,end:l};if("function"==typeof p&&(d=p(d,h)),(null==(o=n.config.series[t].data[a])?void 0:o.x)&&(c=n.config.series[t].data[a].x),!e&&"datetime"===n.config.xaxis.type){c=new XDe(n).xLabelFormat(n.formatters.ttKeyFormatter,c,c,{i:void 0,dateFormatter:new KDe(n).formatDate,w:n})}"function"==typeof u&&(c=u(c,h)),Number.isFinite(i)&&Number.isFinite(s)&&(r=i,l=s);let g="",m="";const f=n.globals.colors[t];if(void 0===n.config.tooltip.x.formatter)if("datetime"===n.config.xaxis.type){const e=new KDe(n);g=e.formatDate(e.getDate(r),n.config.tooltip.x.format),m=e.formatDate(e.getDate(l),n.config.tooltip.x.format)}else g=r,m=l;else g=n.config.tooltip.x.formatter(r),m=n.config.tooltip.x.formatter(l);return{start:r,end:l,startVal:g,endVal:m,ylabel:c,color:f,seriesName:d}},ZDe=e=>{let{color:t,seriesName:a,ylabel:i,start:s,end:n,seriesIndex:o,dataPointIndex:r}=e;const l=e.w.globals.tooltip.tooltipLabels.getFormatters(o);s=l.yLbFormatter(s),n=l.yLbFormatter(n);const c=l.yLbFormatter(e.w.seriesData.series[o][r]);let d="";const u=`<span class="value start-value">\n ${s}\n </span> <span class="separator">-</span> <span class="value end-value">\n ${n}\n </span>`;return d=e.w.globals.comboCharts?"rangeArea"===e.w.config.series[o].type||"rangeBar"===e.w.config.series[o].type?u:`<span>${c}</span>`:u,'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(a||"")+'</span></div><div> <span class="category">'+i+": </span> "+d+" </div></div>"};class JDe{constructor(e){this.opts=e}hideYAxis(){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}line(){return{dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}sparkline(e){this.hideYAxis();return qDe.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}})}slope(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter(e,t){const a=t.w.config.series[t.seriesIndex].name;return null!==e?a+": "+e:""},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:"top",labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}},markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:"straight"}}}bar(){return{chart:{stacked:!1},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"square"},fill:{opacity:.85},legend:{markers:{shape:"square"}},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}}}}}funnel(){return this.hideYAxis(),$De(FDe({},this.bar()),{chart:{animations:{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}}})}pyramid(){return this.funnel()}gauge(){const e=this.radialBar();return $De(FDe({},e),{plotOptions:{radialBar:{startAngle:-135,endAngle:135,hollow:{margin:0,size:"60%"},track:{background:"#e7e7e7",strokeWidth:"100%",margin:5},dataLabels:{name:{show:!1},value:{show:!0,fontSize:"32px",fontWeight:600,offsetY:8}}}}})}candlestick(){return{stroke:{width:1},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:({seriesIndex:e,dataPointIndex:t,w:a})=>this._getBoxTooltip(a,e,t,["Open","High","","Low","Close"],"candlestick")},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}boxPlot(){return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:({seriesIndex:e,dataPointIndex:t,w:a})=>this._getBoxTooltip(a,e,t,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}rangeBar(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter(e,{seriesIndex:t,dataPointIndex:a,w:i}){const s=()=>{const e=i.rangeData.seriesRangeStart[t][a];return i.rangeData.seriesRangeEnd[t][a]-e};return i.globals.comboCharts?"rangeBar"===i.config.series[t].type||"rangeArea"===i.config.series[t].type?s():e:s()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:e=>e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?(e=>{const{color:t,seriesName:a,ylabel:i,startVal:s,endVal:n}=QDe($De(FDe({},e),{isTimeline:!0}));return ZDe($De(FDe({},e),{color:t,seriesName:a,ylabel:i,start:s,end:n}))})(e):(e=>{const{color:t,seriesName:a,ylabel:i,start:s,end:n}=QDe(e);return ZDe($De(FDe({},e),{color:t,seriesName:a,ylabel:i,start:s,end:n}))})(e)},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}dumbbell(e){var t,a;return(null==(t=e.plotOptions.bar)?void 0:t.barHeight)||(e.plotOptions.bar.barHeight=2),(null==(a=e.plotOptions.bar)?void 0:a.columnWidth)||(e.plotOptions.bar.columnWidth=2),e}area(){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}}}rangeArea(){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:e=>(e=>{const{color:t,seriesName:a,ylabel:i,start:s,end:n}=QDe(e);return ZDe($De(FDe({},e),{color:t,seriesName:a,ylabel:i,start:s,end:n}))})(e)}}}brush(e){return qDe.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}stacked100(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;const t=e.dataLabels.formatter;e.yaxis.forEach((t,a)=>{e.yaxis[a].min=0,e.yaxis[a].max=100});return"bar"===e.chart.type&&(e.dataLabels.formatter=t||function(e){return"number"==typeof e&&e?e.toFixed(0)+"%":e}),e}stackedBars(){const e=this.bar();return $De(FDe({},e),{plotOptions:$De(FDe({},e.plotOptions),{bar:$De(FDe({},e.plotOptions.bar),{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}convertCatToNumeric(e){return e.xaxis.convertedCatToNumeric=!0,e}convertCatToNumericXaxis(e,t){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(e){return qDe.isNumber(e)?Math.floor(e):e};const a=e.xaxis.labels.formatter;let i=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return t&&t.length&&(i=t.map(e=>Array.isArray(e)?e:String(e))),i&&i.length&&(e.xaxis.labels.formatter=function(e){return qDe.isNumber(e)?a(i[Math.floor(e)-1]):a(e)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}bubble(){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}}}}scatter(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}heatmap(){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"}},grid:{padding:{right:20}}}}treemap(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{opacity:1,gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}pie(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:e=>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"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}donut(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:e=>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"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}polarArea(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:e=>e.toFixed(1)+"%",enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}radar(){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:5,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},xaxis:{labels:{formatter:e=>e,style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}radialBar(){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},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}_getBoxTooltip(e,t,a,i,s){const n=e.candleData.seriesCandleO[t][a],o=e.candleData.seriesCandleH[t][a],r=e.candleData.seriesCandleM[t][a],l=e.candleData.seriesCandleL[t][a],c=e.candleData.seriesCandleC[t][a],d=e.config.series[t];return d.type&&d.type!==s?`<div class="apexcharts-custom-tooltip">\n ${d.name?d.name:"series-"+(t+1)}: <strong>${e.seriesData.series[t][a]}</strong>\n </div>`:`<div class="apexcharts-tooltip-box apexcharts-tooltip-${e.config.chart.type}"><div>${i[0]}: <span class="value">`+n+`</span></div><div>${i[1]}: <span class="value">`+o+"</span></div>"+(r?`<div>${i[2]}: <span class="value">`+r+"</span></div>":"")+`<div>${i[3]}: <span class="value">`+l+`</span></div><div>${i[4]}: <span class="value">`+c+"</span></div></div>"}}const eMe={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"}}};class tMe{constructor(){this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,alignZero:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,showDuplicates:!1,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:void 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,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}}init(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350},respectReducedMotion:!0},background:"",locales:[eMe],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.7},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,keyDown:void 0,keyUp:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,injectStyleSheet:!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,stackOnlyBar:!0,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",categoryFormatter:void 0,valueFormatter:void 0},png:{filename:void 0},svg:{filename:void 0},scale:void 0,width:void 0},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,allowMouseWheelZoom:!0,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}},accessibility:{enabled:!0,description:void 0,announcements:{enabled:!0},keyboard:{enabled:!0,navigation:{enabled:!0,wrapAround:!1}}},dataReducer:{enabled:!1,algorithm:"lttb",targetPoints:250,threshold:500}},parsing:{x:void 0,y:void 0},plotOptions:{line:{isSlopeChart:!1,colors:{threshold:0,colorAboveThreshold:void 0,colorBelowThreshold:void 0}},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}},funnel:{shape:"rectangle",lastShape:"flat"},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0},seriesTitle:{show:!0,offsetY:1,offsetX:1,borderColor:"#000",borderWidth:1,borderRadius:2,style:{background:"rgba(0, 0, 0, 0.6)",color:"#fff",fontSize:"12px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:6,right:6,top:2,bottom:2}}}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,shape:"arc",min:0,max:100,bands:[],bandsStyle:{strokeWidth:"40%",gap:0,hideTrackWhenPresent:!0},ticks:{show:!1,major:{count:11,length:10,width:2,color:"#666",placement:"outside"},minor:{count:4,length:5,width:1,color:"#999",placement:"outside"},labels:{show:!1,offset:6,fontSize:"11px",fontFamily:void 0,fontWeight:400,color:"#666",formatter:e=>String(e)}},needle:{color:"#333",length:"85%",baseWidth:4,tipWidth:1,offsetY:0,showValueArc:!1,animation:{enabled:!0,duration:800,easing:"ease-out"}},hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",stroke:void 0,strokeWidth:1,strokeDasharray:void 0,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:e=>e},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:e=>e+"%"},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:e=>e.globals.seriesTotals.reduce((e,t)=>e+t,0)/e.seriesData.series.length+"%"}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:e=>e,onClick:void 0}},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:e=>e},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:e=>e},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:e=>e.globals.seriesTotals.reduce((e,t)=>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:e=>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",backgroundColor:void 0,borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},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:[],clusterGroupedSeries:!0,clusterGroupedSeriesOrientation:"vertical",labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},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",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{hover:{filter:{type:"lighten"}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken"}}},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,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,arrow:!0,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0,background:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:e=>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",day:"dd MMM",hour:"HH:mm",minute:"HH:mm",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},stepSize:void 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:.8}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65},accessibility:{colorBlindMode:""}}}}}class aMe{constructor(e){this.opts=e}init({responsiveOverride:e}){var t,a,i,s,n,o,r,l,c,d;let u=this.opts;const p=new tMe,h=new JDe(u);u=this.normalizeAliasedChartType(u),this.chartType=u.chart.type,u=this.extendYAxis(u),u=this.extendAnnotations(u);let g=p.init(),m={};if(u&&"object"==typeof u){let p={};const f=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"],_=u.chart.requestedType;p="funnel"===_||"pyramid"===_?h[_]():"gauge"===_?h.gauge():-1!==f.indexOf(u.chart.type)?h[u.chart.type]():h.line(),(null==(a=null==(t=u.plotOptions)?void 0:t.bar)?void 0:a.isFunnel)&&(p=h.funnel()),u.chart.stacked&&"bar"===u.chart.type&&(p=h.stackedBars()),(null==(i=u.chart.brush)?void 0:i.enabled)&&(p=h.brush(p)),(null==(n=null==(s=u.plotOptions)?void 0:s.line)?void 0:n.isSlopeChart)&&(p=h.slope()),u.chart.stacked&&"100%"===u.chart.stackType&&(u=h.stacked100(u)),(null==(r=null==(o=u.plotOptions)?void 0:o.bar)?void 0:r.isDumbbell)&&(u=h.dumbbell(u)),this.checkForDarkTheme(VDe.getApex()),this.checkForDarkTheme(u),u.xaxis=u.xaxis||VDe.getApex().xaxis||{},e||(u.xaxis.convertedCatToNumeric=!1),u=this.checkForCatToNumericXAxis(this.chartType,p,u),((null==(l=u.chart.sparkline)?void 0:l.enabled)||(null==(d=null==(c=VDe.getApex().chart)?void 0:c.sparkline)?void 0:d.enabled))&&(p=h.sparkline(p)),m=qDe.extend(g,p)}const f=qDe.extend(m,VDe.getApex());return g=qDe.extend(f,u),g=this.handleUserInputErrors(g),g}normalizeAliasedChartType(e){if(!e||!e.chart)return e;const t=e.chart.type;return"funnel"!==t&&"pyramid"!==t&&"gauge"!==t||(e.chart.requestedType=t,"funnel"===t||"pyramid"===t?(e.plotOptions=e.plotOptions||{},e.plotOptions.bar=e.plotOptions.bar||{},e.plotOptions.bar.isFunnel=!0,e.plotOptions.bar.horizontal=!0,e.chart.type="bar"):"gauge"===t&&(e.chart.type="radialBar")),e}checkForCatToNumericXAxis(e,t,a){var i,s;const n=new JDe(a),o=("bar"===e||"boxPlot"===e)&&(null==(s=null==(i=a.plotOptions)?void 0:i.bar)?void 0:s.horizontal),r="pie"===e||"polarArea"===e||"donut"===e||"radar"===e||"radialBar"===e||"heatmap"===e,l="datetime"!==a.xaxis.type&&"numeric"!==a.xaxis.type,c=a.xaxis.tickPlacement?a.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return o||r||!l||"between"===c||(a=n.convertCatToNumeric(a)),a}extendYAxis(e,t){const a=new tMe;(void 0===e.yaxis||!e.yaxis||Array.isArray(e.yaxis)&&0===e.yaxis.length)&&(e.yaxis={});const i=VDe.getApex();e.yaxis.constructor!==Array&&i.yaxis&&i.yaxis.constructor!==Array&&(e.yaxis=qDe.extend(e.yaxis,i.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[qDe.extend(a.yAxis,e.yaxis)]:e.yaxis=qDe.extendArray(e.yaxis,a.yAxis);let s=!1;e.yaxis.forEach(e=>{e.logarithmic&&(s=!0)});let n=e.series;return t&&!n&&(n=t.config.series),s&&n.length!==e.yaxis.length&&n.length&&(e.yaxis=n.map((t,i)=>{if(t.name||(n[i].name=`series-${i+1}`),e.yaxis[i])return e.yaxis[i].seriesName=n[i].name,e.yaxis[i];{const t=qDe.extend(a.yAxis,e.yaxis[0]);return t.show=!1,t}})),s&&n.length>1&&(n.length,e.yaxis.length),e}extendAnnotations(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),e=this.extendPointAnnotations(e)}extendYAxisAnnotations(e){const t=new tMe;return e.annotations.yaxis=qDe.extendArray(void 0!==e.annotations.yaxis?e.annotations.yaxis:[],t.yAxisAnnotation),e}extendXAxisAnnotations(e){const t=new tMe;return e.annotations.xaxis=qDe.extendArray(void 0!==e.annotations.xaxis?e.annotations.xaxis:[],t.xAxisAnnotation),e}extendPointAnnotations(e){const t=new tMe;return e.annotations.points=qDe.extendArray(void 0!==e.annotations.points?e.annotations.points:[],t.pointAnnotation),e}checkForDarkTheme(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.theme.palette||(e.theme.palette="palette4"))}handleUserInputErrors(e){const 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&&(t.yaxis[0].reversed=!1),t}}const iMe=[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],sMe=[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24];class nMe{initGlobalVars(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.dataWasParsed=!1,e.originalSeries=null,e.maxValsInArrayIndex=0,e.yValueDecimal=0,e.allSeriesHasEqualX=!0,e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.barGroups=[],e.lineGroups=[],e.areaGroups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,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.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0,e.multiAxisTickAmount=0,e.disableZoomIn=!1,e.disableZoomOut=!1,e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.rotateXLabels=!1,e.overlappingXLabels=!1,e.radialSize=0,e.barHeight=0,e.barWidth=0,e.animationEnded=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.lastWheelExecution=0,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.lastDrawnDataLabelsIndexes=[],e.textRectsCache=new Map,e.domCache=new Map,e.dimensionCache={},e.cachedSelectors={},e.seriesNS||this._attachNamespaces(e)}_attachNamespaces(e){const t=(t,a,i=a)=>{Object.defineProperty(t,i,{get:()=>e[a],set(t){e[a]=t},enumerable:!0,configurable:!0})},a={};t(a,"series","data");for(const o of["seriesNames","seriesX","seriesZ","seriesXvalues","seriesYvalues","seriesGoals","seriesLog","seriesColors","seriesPercent","seriesTotals","stackedSeriesTotals","seriesCandleO","seriesCandleH","seriesCandleM","seriesCandleL","seriesCandleC","seriesRangeStart","seriesRangeEnd","seriesRange","seriesYAxisMap","seriesYAxisReverseMap","seriesGroups","barGroups","lineGroups","areaGroups","originalSeries","collapsedSeries","collapsedSeriesIndices","ancillaryCollapsedSeries","ancillaryCollapsedSeriesIndices","allSeriesCollapsed","risingSeries","previousPaths","ignoreYAxisIndexes","labels","categoryLabels","timescaleLabels","groups"])t(a,o);Object.defineProperty(e,"seriesNS",{value:a,writable:!1,enumerable:!1,configurable:!0});const i={};for(const o of["minX","maxX","initialMinX","initialMaxX","minY","maxY","minYArr","maxYArr","minZ","maxZ","minDate","maxDate","minXDiff","xRange","yRange","zRange","xAxisScale","yAxisScale","xAxisTicksPositions","xTickAmount","multiAxisTickAmount","dataPoints","maxValsInArrayIndex","isXNumeric","isMultipleYAxis","isMultiLineX","isDataXYZ","dataFormatXNumeric","allSeriesHasEqualX","hasNullValues","dataWasParsed","hasXaxisGroups","hasSeriesGroups","skipFirstTimelinelabel","skipLastTimelinelabel","yValueDecimal","invalidLogScale","noLabelsProvided"])t(i,o);Object.defineProperty(e,"axes",{value:i,writable:!1,enumerable:!1,configurable:!0});const s={};for(const o of["svgWidth","svgHeight","gridWidth","gridHeight","translateX","translateY","translateXAxisX","translateXAxisY","translateYAxisX","xAxisLabelsHeight","xAxisGroupLabelsHeight","xAxisLabelsWidth","yAxisLabelsWidth","yAxisWidths","yLabelsCoords","yTitleCoords","padHorizontal","barPadForNumericAxis","rotateXLabels","scaleX","scaleY","radialSize","defaultLabels","overlappingXLabels"])t(s,o);Object.defineProperty(e,"layout",{value:s,writable:!1,enumerable:!1,configurable:!0});const n={};for(const o of["domCache","dimensionCache","cachedSelectors","textRectsCache","pointsArray","dataLabelsRects","lastDrawnDataLabelsIndexes","delayedElements","resizeTimer","selectionResizeTimer","resizeObserver"])t(n,o);Object.defineProperty(e,"cache",{value:n,writable:!1,enumerable:!1,configurable:!0})}globalVars(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},LINE_HEIGHT_RATIO:1.618,axisCharts:!0,isSlopeChart:e.plotOptions.line.isSlopeChart,comboCharts:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],ignoreYAxisIndexes:[],isDirty:!1,isExecCalled:!1,dataChanged:!1,resized:!1,invalidLogScale:!1,hasNullValues:!1,columnSeries:null,yaxis:null,total:0,shouldAnimate:!0,previousPaths:[],svgWidth:0,svgHeight:0,defaultLabels:!1,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateYAxisX:[],yAxisWidths:[],tooltip:null,resizeObserver:null,locale:{},memory:{methodsToExec:[]},niceScaleAllowedMagMsd:iMe,niceScaleDefaultTicks:sMe,seriesYAxisMap:[],seriesYAxisReverseMap:[],noData:!1}}init(e){const t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=qDe.extend({},e),t.initialSeries=qDe.clone(e.series),t.lastXAxis=qDe.clone(t.initialConfig.xaxis),t.lastYAxis=qDe.clone(t.initialConfig.yaxis),t}}class oMe{constructor(e){this.opts=e}init(){const e=new aMe(this.opts).init({responsiveOverride:!1}),t=(new nMe).init(e),a={config:e,globals:t,dom:{},interact:{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,zoomed:!1,selection:void 0,visibleXRange:void 0,selectedDataPoints:[],mousedown:!1,clientX:null,clientY:null,lastClientPosition:{},lastWheelExecution:0,capturedSeriesIndex:-1,capturedDataPointIndex:-1,disableZoomIn:!1,disableZoomOut:!1,isTouchDevice:!!VDe.isBrowser()&&("ontouchstart"in window||navigator.maxTouchPoints>0)},formatters:{xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,legendFormatter:void 0},candleData:{seriesCandleO:[],seriesCandleH:[],seriesCandleM:[],seriesCandleL:[],seriesCandleC:[]},rangeData:{seriesRangeStart:[],seriesRangeEnd:[],seriesRange:[]},labelData:{labels:[],categoryLabels:[],timescaleLabels:[],hasXaxisGroups:!1,groups:[],seriesGroups:[]},axisFlags:{isXNumeric:!1,dataFormatXNumeric:!1,isDataXYZ:!1,isRangeData:!1,isRangeBar:!1,isMultiLineX:!1,noLabelsProvided:!1,dataWasParsed:!1},seriesData:{series:[],seriesNames:[],seriesX:[],seriesZ:[],seriesColors:[],seriesGoals:[],stackedSeriesTotals:[],stackedSeriesTotalsByGroups:[]},layout:{gridHeight:0,gridWidth:0,translateX:0,translateY:0,translateXAxisX:0,translateXAxisY:0,rotateXLabels:!1,xAxisHeight:0,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yLabelsCoords:[],yTitleCoords:[]}};Object.defineProperty(t,"dom",{get:()=>a.dom,set(e){a.dom=e},enumerable:!1,configurable:!0});for(const i of["xLabelFormatter","yLabelFormatters","xaxisTooltipFormatter","ttKeyFormatter","ttVal","ttZFormatter","legendFormatter"])Object.defineProperty(t,i,{get:()=>a.formatters[i],set(e){a.formatters[i]=e},enumerable:!1,configurable:!0});for(const i of["zoomEnabled","panEnabled","selectionEnabled","zoomed","selection","visibleXRange","selectedDataPoints","mousedown","clientX","clientY","lastClientPosition","lastWheelExecution","capturedSeriesIndex","capturedDataPointIndex","disableZoomIn","disableZoomOut","isTouchDevice"])Object.defineProperty(t,i,{get:()=>a.interact[i],set(e){a.interact[i]=e},enumerable:!1,configurable:!0});for(const i of["gridHeight","gridWidth","translateX","translateY","translateXAxisX","translateXAxisY","rotateXLabels","xAxisHeight","xAxisLabelsHeight","xAxisGroupLabelsHeight","xAxisLabelsWidth","yLabelsCoords","yTitleCoords"])Object.defineProperty(t,i,{get:()=>a.layout[i],set(e){a.layout[i]=e},enumerable:!1,configurable:!0});for(const i of["series","seriesNames","seriesX","seriesZ","seriesColors","seriesGoals","stackedSeriesTotals","stackedSeriesTotalsByGroups"])Object.defineProperty(t,i,{get:()=>a.seriesData[i],set(e){a.seriesData[i]=e},enumerable:!1,configurable:!0});for(const i of["isXNumeric","dataFormatXNumeric","isDataXYZ","isRangeData","isRangeBar","isMultiLineX","noLabelsProvided","dataWasParsed"])Object.defineProperty(t,i,{get:()=>a.axisFlags[i],set(e){a.axisFlags[i]=e},enumerable:!1,configurable:!0});for(const i of["labels","categoryLabels","timescaleLabels","hasXaxisGroups","groups","seriesGroups"])Object.defineProperty(t,i,{get:()=>a.labelData[i],set(e){a.labelData[i]=e},enumerable:!1,configurable:!0});for(const i of["seriesRangeStart","seriesRangeEnd","seriesRange"])Object.defineProperty(t,i,{get:()=>a.rangeData[i],set(e){a.rangeData[i]=e},enumerable:!1,configurable:!0});for(const i of["seriesCandleO","seriesCandleH","seriesCandleM","seriesCandleL","seriesCandleC"])Object.defineProperty(t,i,{get:()=>a.candleData[i],set(e){a.candleData[i]=e},enumerable:!1,configurable:!0});return a}}class rMe{constructor(e){this.w=e}static checkComboSeries(e,t){let a=!1,i=0,s=0;return void 0===t&&(t="line"),e.length&&void 0!==e[0].type&&e.forEach(e=>{"bar"!==e.type&&"column"!==e.type&&"candlestick"!==e.type&&"boxPlot"!==e.type||i++,void 0!==e.type&&e.type!==t&&s++}),s>0&&(a=!0),{comboBarCount:i,comboCharts:a}}getStackedSeriesTotals(e=[]){const t=this.w,a=[];if(0===t.seriesData.series.length)return a;for(let i=0;i<t.seriesData.series[t.globals.maxValsInArrayIndex].length;i++){let s=0;for(let a=0;a<t.seriesData.series.length;a++)void 0!==t.seriesData.series[a][i]&&-1===e.indexOf(a)&&(s+=t.seriesData.series[a][i]);a.push(s)}return a}getSeriesTotalByIndex(e=null){if(null===e)return this.w.config.series.reduce((e,t)=>e+t,0);{const t=this.w.seriesData.series[e];return Array.isArray(t)?t.reduce((e,t)=>e+t,0):null!=t?t:0}}getStackedSeriesTotalsByGroups(){const e=this.w,t=[];return e.labelData.seriesGroups.forEach(a=>{const i=[];e.config.series.forEach((t,s)=>{a.indexOf(e.seriesData.seriesNames[s])>-1&&i.push(s)});const s=e.seriesData.series.map((e,t)=>-1===i.indexOf(t)?t:-1).filter(e=>-1!==e);t.push(this.getStackedSeriesTotals(s))}),t}setSeriesYAxisMappings(){const e=this.w.globals,t=this.w.config;let a=[];const i=[],s=[],n=this.w.seriesData.series.length>t.yaxis.length||t.yaxis.some(e=>Array.isArray(e.seriesName));t.series.forEach((e,t)=>{s.push(t),i.push(null)}),t.yaxis.forEach((e,t)=>{a[t]=[]});const o=[];t.yaxis.forEach((e,i)=>{let r=!1;if(e.seriesName){let o=[];Array.isArray(e.seriesName)?o=e.seriesName:o.push(e.seriesName),o.forEach(e=>{t.series.forEach((t,o)=>{if(t.name===e){let e=o;i===o||n?(!n||s.indexOf(o)>-1)&&a[i].push([i,o]):(a[o].push([o,i]),e=i),r=!0,e=s.indexOf(e),-1!==e&&s.splice(e,1)}})})}r||o.push(i)}),a=a.map(e=>{const t=[];return e.forEach(e=>{i[e[1]]=e[0],t.push(e[1])}),t});let r=t.yaxis.length-1;for(let l=0;l<o.length&&(r=o[l],a[r]=[],s);l++){const e=s[0];s.shift(),a[r].push(e),i[e]=r}s.forEach(e=>{a[r].push(e),i[e]=r}),e.seriesYAxisMap=a.map(e=>e),e.seriesYAxisReverseMap=i.map(e=>e),e.seriesYAxisMap.forEach((e,a)=>{e.forEach(e=>{if(t.series[e]&&void 0===t.series[e].group){t.series[e].group="apexcharts-axis-".concat(a.toString())}})})}isSeriesNull(e=null){let t=[];const a=this.w.config.series;return t=null===e?a.filter(e=>null!==e):a[e]&&Array.isArray(a[e].data)?a[e].data.filter(e=>null!==e):null!==a[e]&&void 0!==a[e]?[a[e]]:[],0===t.length}seriesHaveSameValues(e){const t=this.w.seriesData.series[e];return!Array.isArray(t)||t.every((e,t,a)=>e===a[0])}getCategoryLabels(e){const t=this.w;let a=e.slice();return t.config.xaxis.convertedCatToNumeric&&(a=e.map(e=>t.config.xaxis.labels.formatter(e-t.globals.minX+1))),a}getLargestSeries(){const e=this.w;e.globals.maxValsInArrayIndex=e.seriesData.series.map(e=>e.length).indexOf(Math.max.apply(Math,e.seriesData.series.map(e=>e.length)))}getLargestMarkerSize(){const e=this.w;let t=0;return e.globals.markers.size.forEach(e=>{t=Math.max(t,e)}),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach(e=>{t=Math.max(t,e.size)}),t>0&&(e.config.markers.hover.size>0?t=e.config.markers.hover.size:t+=e.config.markers.hover.sizeOffset),e.globals.markers.largestSize=t,t}getSeriesTotals(){const e=this.w;e.globals.seriesTotals=e.seriesData.series.map(e=>{let t=0;if(Array.isArray(e))for(let a=0;a<e.length;a++)t+=e[a];else t+=e;return t})}getSeriesTotalsXRange(e,t){const a=this.w;return a.seriesData.series.map((i,s)=>{let n=0;for(let o=0;o<i.length;o++)a.seriesData.seriesX[s][o]>e&&a.seriesData.seriesX[s][o]<t&&(n+=i[o]);return n})}getPercentSeries(){const e=this.w;e.globals.seriesPercent=e.seriesData.series.map(t=>{const a=[];if(Array.isArray(t))for(let i=0;i<t.length;i++){const s=e.seriesData.stackedSeriesTotals[i];let n=0;s&&(n=100*t[i]/s),a.push(n)}else{const i=100*t/e.globals.seriesTotals.reduce((e,t)=>e+t,0);a.push(i)}return a})}getCalculatedRatios(){const e=this.w,t=e.globals,a=[];let i=0,s=0,n=0,o=0,r=[],l=.1,c=0;if(t.yRange=[],t.isMultipleYAxis)for(let d=0;d<t.minYArr.length;d++)t.yRange.push(Math.abs(t.minYArr[d]-t.maxYArr[d])),r.push(0);else t.yRange.push(Math.abs(t.minY-t.maxY));t.xRange=Math.abs(t.maxX-t.minX),t.zRange=Math.abs(t.maxZ-t.minZ);for(let d=0;d<t.yRange.length;d++)a.push(t.yRange[d]/this.w.layout.gridHeight);if(s=t.xRange/this.w.layout.gridWidth,i=t.yRange/this.w.layout.gridWidth,n=t.xRange/this.w.layout.gridHeight,o=t.zRange/this.w.layout.gridHeight*16,o||(o=1),t.minY!==Number.MIN_VALUE&&0!==Math.abs(t.minY)){t.hasNegs=!0}if(e.globals.seriesYAxisReverseMap.length>0){const n=(t,i)=>{const s=e.config.yaxis[e.globals.seriesYAxisReverseMap[i]],n=t<0?-1:1;return t=Math.abs(t),s.logarithmic&&(t=this.getBaseLog(s.logBase,t)),-n*t/a[i]};if(t.isMultipleYAxis){r=[];for(let e=0;e<a.length;e++)r.push(n(t.minYArr[e],e))}else r=[],r.push(n(t.minY,0)),t.minY!==Number.MIN_VALUE&&0!==Math.abs(t.minY)&&(l=-t.minY/i,c=t.minX/s)}else r=[],r.push(0),l=0,c=0;return{yRatio:a,invertedYRatio:i,zRatio:o,xRatio:s,invertedXRatio:n,baseLineInvertedY:l,baseLineY:r,baseLineX:c}}getLogSeries(e){const t=this.w;return t.globals.seriesLog=e.map((e,a)=>{const i=t.globals.seriesYAxisReverseMap[a];return t.config.yaxis[i]&&t.config.yaxis[i].logarithmic?e.map(e=>null===e?null:this.getLogVal(t.config.yaxis[i].logBase,e,a)):e}),t.globals.invalidLogScale?e:t.globals.seriesLog}getLogValAtSeriesIndex(e,t){if(null===e)return null;const a=this.w,i=a.globals.seriesYAxisReverseMap[t];return a.config.yaxis[i]&&a.config.yaxis[i].logarithmic?this.getLogVal(a.config.yaxis[i].logBase,e,t):e}getBaseLog(e,t){return Math.log(t)/Math.log(e)}getLogVal(e,t,a){if(t<=0)return 0;const i=this.w,s=0===i.globals.minYArr[a]?-1:this.getBaseLog(e,i.globals.minYArr[a]),n=(0===i.globals.maxYArr[a]?0:this.getBaseLog(e,i.globals.maxYArr[a]))-s;if(t<1)return t/n;return(this.getBaseLog(e,t)-s)/n}getLogYRatios(e){const t=this.w,a=this.w.globals,i=a;return i.yLogRatio=e.slice(),i.logYRange=a.yRange.map((e,s)=>{const n=t.globals.seriesYAxisReverseMap[s];if(t.config.yaxis[n]&&this.w.config.yaxis[n].logarithmic){let e=-Number.MAX_VALUE,n=Number.MIN_VALUE,o=1;return a.seriesLog.forEach((a,i)=>{a.forEach(a=>{t.config.yaxis[i]&&t.config.yaxis[i].logarithmic&&(e=Math.max(a,e),n=Math.min(a,n))})}),o=Math.pow(a.yRange[s],Math.abs(n-e)/a.yRange[s]),i.yLogRatio[s]=o/this.w.layout.gridHeight,o}}),i.invalidLogScale?e.slice():i.yLogRatio}static extendArrayProps(e,t,a){var i,s;return(null==t?void 0:t.yaxis)&&(t=e.extendYAxis(t,a)),(null==t?void 0:t.annotations)&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),(null==(i=null==t?void 0:t.annotations)?void 0:i.xaxis)&&(t=e.extendXAxisAnnotations(t)),(null==(s=null==t?void 0:t.annotations)?void 0:s.points)&&(t=e.extendPointAnnotations(t))),t}drawSeriesByGroup(e,t,a,i){const s=this.w,n=[];return e.series.length>0&&t.forEach(t=>{const o=[],r=[];e.i.forEach((a,i)=>{s.config.series[a].group===t&&(o.push(e.series[i]),r.push(a))}),o.length>0&&n.push(i.draw(o,a,r))}),n}}const lMe="http://www.w3.org/2000/svg";function cMe(e){return 1-Math.pow(1-e,3)}let dMe=null;function uMe(e,t,a){if(!VDe.isBrowser())return!1;if(a.globals.dataChanged||a.globals.resized)return!1;const i=a.config.chart.animations;if(!i||!1===i.enabled)return!1;const s=a.config.chart.type;if("line"!==s&&"area"!==s&&"rangeArea"!==s)return!1;if(!(a.layout.gridWidth>0))return!1;const n=2*(i.speed||800),o=Math.max(0,Math.min(1,t/a.layout.gridWidth)),r=(1-Math.cbrt(1-o))*n,l=e.node.style;l.opacity="0";let c=null;const d=e=>{null===c&&(c=e),e-c>=r?l.opacity="1":jDe.requestAnimationFrame(d)};return jDe.requestAnimationFrame(d),!0}function pMe(e){const t=e.config.chart.animations;t&&!1!==t.respectReducedMotion&&function(){if(!VDe.isBrowser())return!1;try{return dMe||(dMe=window.matchMedia("(prefers-reduced-motion: reduce)")),!!dMe.matches}catch(e){return!1}}()&&(t.enabled=!1,t.dynamicAnimation&&(t.dynamicAnimation.enabled=!1))}function hMe(e){const t=e.style,a=e.index||0,i="number"==typeof e.baseDelay?e.baseDelay:40,s=e.row||0,n=e.col||0,o=e.groupIndex||0,r=e.perGroup||1,l=e.centerDistance||0;switch(t){case"none":return 0;case"diagonal":return(s+n)*i;case"group":return o*i+a%r*(i/4);case"centroid":return l*i*(a+1);default:return a*i}}class gMe{constructor(e,t){this.w=e,this.ctx=t}animateLine(e,t,a,i){e.attr(t).animate(i).attr(a)}animateMarker(e,t,a,i){e.attr({opacity:0}).animate(t).attr({opacity:1}).after(()=>{i()})}animatePop(e,{speed:t,delay:a=0,onComplete:i}){const s=this.w;if(!VDe.isBrowser()||!s.globals.shouldAnimate||t<1)return void(i&&i());const n=e.node.style;n.transformBox="fill-box",n.transformOrigin="center",n.transform="scale(0)",n.opacity="0";const o=performance.now()+a,r=e=>{const a=Math.max(0,Math.min(1,(e-o)/t));n.transform=`scale(${function(e){const t=1.70158;return 1+2.70158*Math.pow(e-1,3)+t*Math.pow(e-1,2)}(a)})`,n.opacity=String(Math.min(1,2*a)),a<1?jDe.requestAnimationFrame(r):(n.transform="",n.transformOrigin="",n.transformBox="",n.opacity="",i&&i())};jDe.requestAnimationFrame(r)}animateRect(e,t,a,i,s,n=0){e.attr(t).animate(i,n).attr(a).after(()=>s())}animatePathsGradually(e){const{el:t,realIndex:a,j:i,fill:s,pathFrom:n,pathTo:o,speed:r,delay:l}=e,c=this.w;let d=0;c.config.chart.animations.animateGradually.enabled&&(d=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(d=0),this.morphSVG(t,a,i,"line"!==c.config.chart.type||c.globals.comboCharts?s:"stroke",n,o,r,l*d)}showDelayedElements(){this.w.globals.delayedElements.forEach(e=>{const t=e.el;t.classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")})}animationCompleted(e){const 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}))}animateDraw(e,{realIndex:t,j:a,isFill:i,isLast:s,speed:n,delay:o,mask:r}){const l=this.w,c=this,d=()=>{s&&l.globals.shouldAnimate&&c.animationCompleted(e),c.showDelayedElements()};if(!VDe.isBrowser()||!l.globals.shouldAnimate||n<1)return void d();const u=e.node,p=()=>{const e=r&&"radial"===r.type,s=l.layout.gridWidth+8,c=r&&r.cx||0,p=r&&r.cy||0,h=(r&&r.r||l.layout.gridWidth/2)+4,g=`apexDrawMask${l.globals.cuid}-${t}-${null!=a?a:0}-${i?"f":"s"}`,m=jDe.createElementNS(lMe,"mask");let f;if(m.setAttribute("id",g),m.setAttribute("maskUnits","userSpaceOnUse"),e){const e=h;m.setAttribute("x",String(c-e)),m.setAttribute("y",String(p-e)),m.setAttribute("width",String(2*e)),m.setAttribute("height",String(2*e)),f=jDe.createElementNS(lMe,"circle"),f.setAttribute("cx",String(c)),f.setAttribute("cy",String(p)),f.setAttribute("r","0"),f.setAttribute("fill","#fff")}else m.setAttribute("x",String(-4)),m.setAttribute("y",String(-4)),m.setAttribute("width",String(s)),m.setAttribute("height",String(l.layout.gridHeight+8)),f=jDe.createElementNS(lMe,"rect"),f.setAttribute("x",String(-4)),f.setAttribute("y",String(-4)),f.setAttribute("width","0"),f.setAttribute("height",String(l.layout.gridHeight+8)),f.setAttribute("fill","#fff");m.appendChild(f),l.dom.elDefs.node.appendChild(m),u.setAttribute("mask",`url(#${g})`);const _=performance.now()+(o||0),b=t=>{const a=Math.max(0,Math.min(1,(t-_)/n)),i=cMe(a);e?f.setAttribute("r",String(i*h)):f.setAttribute("width",String(i*s)),a<1?jDe.requestAnimationFrame(b):(u.removeAttribute("mask"),m.parentNode&&m.parentNode.removeChild(m),d())};jDe.requestAnimationFrame(b)};jDe.requestAnimationFrame(()=>{if(i)return void p();const e=u.getAttribute("stroke-dasharray");if(!!e&&"0"!==e&&""!==e)return void p();let t=0;try{"function"==typeof u.getTotalLength&&(t=u.getTotalLength())}catch(a){t=0}t?(e=>{u.setAttribute("stroke-dasharray",String(e)),u.setAttribute("stroke-dashoffset",String(e));const t=performance.now()+(o||0),a=i=>{const s=Math.max(0,Math.min(1,(i-t)/n));u.setAttribute("stroke-dashoffset",String(e*(1-cMe(s)))),s<1?jDe.requestAnimationFrame(a):(u.removeAttribute("stroke-dasharray"),u.removeAttribute("stroke-dashoffset"),d())};jDe.requestAnimationFrame(a)})(t):d()})}morphSVG(e,t,a,i,s,n,o,r){const l=this.w;s||(s=e.attr("pathFrom")),n||(n=e.attr("pathTo"));const c=()=>("radar"===l.config.chart.type&&(o=1),`M 0 ${l.layout.gridHeight}`);(!s||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=c()),(!n.trim()||n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n=c()),l.globals.shouldAnimate||(o=1),e.plot(s).animate(1,r).plot(s).animate(o,r).plot(n).after(()=>{qDe.isNumber(a)?a===l.seriesData.series[l.globals.maxValsInArrayIndex].length-2&&l.globals.shouldAnimate&&this.animationCompleted(e):"none"!==i&&l.globals.shouldAnimate&&(!l.globals.comboCharts&&t===l.seriesData.series.length-1||l.globals.comboCharts)&&this.animationCompleted(e),this.showDelayedElements()})}}class mMe{constructor(e){this.w=e}getDefaultFilter(e,t){const a=this.w;e.unfilter&&e.unfilter(!0),a.config.chart.dropShadow.enabled&&this.dropShadow(e,a.config.chart.dropShadow,t)}applyFilter(e,t,a){var i,s,n;const o=this.w;if(e.unfilter&&e.unfilter(!0),"none"===a)return void this.getDefaultFilter(e,t);const r=o.config.chart.dropShadow,l="lighten"===a?2:.3;e.filterWith&&(e.filterWith(e=>{e.colorMatrix({type:"matrix",values:`\n ${l} 0 0 0 0\n 0 ${l} 0 0 0\n 0 0 ${l} 0 0\n 0 0 0 1 0\n `,in:"SourceGraphic",result:"brightness"}),r.enabled&&this.addShadow(e,t,r,"brightness")}),r.noUserSpaceOnUse||null==(s=null==(i=e.filterer())?void 0:i.node)||s.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(null==(n=e.filterer())?void 0:n.node))}addShadow(e,t,a,i){var s;const n=this.w;let{blur:o,top:r,left:l,color:c,opacity:d}=a;if(c=Array.isArray(c)?c[t]:c,(null==(s=n.config.chart.dropShadow.enabledOnSeries)?void 0:s.length)>0&&-1===n.config.chart.dropShadow.enabledOnSeries.indexOf(t))return e;e.offset({in:i,dx:l,dy:r,result:"offset"}),e.gaussianBlur({in:"offset",stdDeviation:o,result:"blur"}),e.flood({"flood-color":c,"flood-opacity":d,result:"flood"}),e.composite({in:"flood",in2:"blur",operator:"in",result:"shadow"}),e.merge(["shadow",i])}dropShadow(e,t,a=0){var i,s,n,o,r;const l=this.w;return e.unfilter&&e.unfilter(!0),qDe.isMsEdge()&&"radialBar"===l.config.chart.type||(null==(i=l.config.chart.dropShadow.enabledOnSeries)?void 0:i.length)>0&&-1===(null==(s=l.config.chart.dropShadow.enabledOnSeries)?void 0:s.indexOf(a))||e.filterWith&&(e.filterWith(e=>{this.addShadow(e,a,t,"SourceGraphic")}),t.noUserSpaceOnUse||null==(o=null==(n=e.filterer())?void 0:n.node)||o.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(null==(r=e.filterer())?void 0:r.node)),e}setSelectionFilter(e,t,a){const i=this.w;if(void 0!==i.interact.selectedDataPoints[t]&&i.interact.selectedDataPoints[t].indexOf(a)>-1){e.node.setAttribute("selected",!0);const a=i.config.states.active.filter;"none"!==a&&this.applyFilter(e,t,a.type)}}_scaleFilterSize(e){if(!e)return;(t=>{for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.setAttribute(a,t[a])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}class fMe{constructor(e,t=null){this.w=e,this.ctx=t}roundPathCorners(e,t){function a(e,t,a){var s=t.x-e.x,n=t.y-e.y,o=Math.sqrt(s*s+n*n);return i(e,t,Math.min(1,a/o))}function i(e,t,a){return{x:e.x+(t.x-e.x)*a,y:e.y+(t.y-e.y)*a}}function s(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function n(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 a=t.match(/^([a-zA-Z])(.+)/);return a?(e.push(a[1]),e.push(a[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},[]),r=[];if(o.length>1){var l=n(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),r.push(o[0]);for(var d=1;d<o.length;d++){var u=r[r.length-1],p=o[d],h=p==c?o[1]:o[d+1];if(h&&u&&u.length>2&&"L"==p[0]&&h.length>2&&"L"==h[0]){var g,m,f=n(u),_=n(p),b=n(h);g=a(_,f,t),m=a(_,b,t),s(p,g),p.origPoint=_,r.push(p);var v=i(g,_,.5),y=i(_,m,.5),S=["C",v.x,v.y,y.x,y.y,m.x,m.y];S.origPoint=_,r.push(S)}else r.push(p)}if(c){var x=n(r[r.length-1]);r.push(["Z"]),s(r[0],x)}}else r=o;return r.reduce(function(e,t){return e+t.join(" ")+" "},"")}drawLine(e,t,a,i,s="#a8a8a8",n=0,o=null,r="butt"){return this.w.dom.Paper.line().attr({x1:e,y1:t,x2:a,y2:i,stroke:s,"stroke-dasharray":n,"stroke-width":o,"stroke-linecap":r})}drawRect(e=0,t=0,a=0,i=0,s=0,n="#fefefe",o=1,r=null,l=null,c=0){const d=this.w.dom.Paper.rect();return d.attr({x:e,y:t,width:a>0?a:0,height:i>0?i:0,rx:s,ry:s,opacity:o,"stroke-width":null!==r?r:0,stroke:null!==l?l:"none","stroke-dasharray":c}),d.node.setAttribute("fill",n),d}drawPolygon(e,t="#e1e1e1",a=1,i="none"){return this.w.dom.Paper.polygon(e).attr({fill:i,stroke:t,"stroke-width":a})}drawCircle(e,t=null){e<0&&(e=0);const a=this.w.dom.Paper.circle(2*e);return null!==t&&a.attr(t),a}drawPath({d:e="",stroke:t="#a8a8a8",strokeWidth:a=1,fill:i,fillOpacity:s=1,strokeOpacity:n=1,classes:o,strokeLinecap:r=null,strokeDashArray:l=0}){const c=this.w;null===r&&(r=c.config.stroke.lineCap),(e.indexOf("undefined")>-1||e.indexOf("NaN")>-1)&&(e=`M 0 ${c.layout.gridHeight}`);return c.dom.Paper.path(e).attr({fill:i,"fill-opacity":s,stroke:t,"stroke-opacity":n,"stroke-linecap":r,"stroke-width":a,"stroke-dasharray":l,class:o})}group(e=null){const t=this.w.dom.Paper.group();return null!==e&&t.attr(e),t}move(e,t){return["M",e,t].join(" ")}line(e,t,a=null){return"H"===a?[" H",e].join(" "):"V"===a?[" V",t].join(" "):[" L",e,t].join(" ")}curve(e,t,a,i,s,n){return["C",e,t,a,i,s,n].join(" ")}quadraticCurve(e,t,a,i){return["Q",e,t,a,i].join(" ")}arc(e,t,a,i,s,n,o,r=!1){let l="A";r&&(l="a");return[l,e,t,a,i,s,n,o].join(" ")}renderPaths({j:e,realIndex:t,pathFrom:a,pathTo:i,stroke:s,strokeWidth:n,strokeLinecap:o,fill:r,animationDelay:l,initialSpeed:c,dataChangeSpeed:d,className:u,chartType:p,shouldClipToGrid:h=!0,bindEventsOnPaths:g=!0,drawShadow:m=!0,drawMask:f=null}){const _=this.w,b=new mMe(this.w),v=new gMe(this.w,void 0),y=this.w.config.chart.animations.enabled,S=y&&this.w.config.chart.animations.dynamicAnimation.enabled;if(a&&a.startsWith("M 0 0")&&i){const e=i.match(/^M\s+[\d.-]+\s+[\d.-]+/);e&&(a=a.replace(/^M\s+0\s+0/,e[0]))}let x;const w=!!(y&&!_.globals.resized||S&&_.globals.dataChanged&&_.globals.shouldAnimate),E="string"==typeof u&&(u.indexOf("apexcharts-line")>-1||u.indexOf("apexcharts-area")>-1||u.indexOf("apexcharts-rangeArea")>-1||u.indexOf("apexcharts-radar")>-1),C=!(!y||_.globals.resized||_.globals.dataChanged||!E);w&&!C?x=a:(x=i,w||(_.globals.animationEnded=!0));const k=_.config.stroke.dashArray;let T=0;T=Array.isArray(k)?k[t]:_.config.stroke.dashArray;const A=this.drawPath({d:x,stroke:s,strokeWidth:n,fill:r,fillOpacity:1,classes:u,strokeLinecap:o,strokeDashArray:T});A.attr("index",t),h&&("bar"===p&&!_.globals.isBarHorizontal||_.globals.comboCharts?A.attr({"clip-path":`url(#gridRectBarMask${_.globals.cuid})`}):A.attr({"clip-path":`url(#gridRectMask${_.globals.cuid})`})),_.config.chart.dropShadow.enabled&&m&&b.dropShadow(A,_.config.chart.dropShadow,t),g&&(A.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,A)),A.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,A)),A.node.addEventListener("mousedown",this.pathMouseDown.bind(this,A))),A.attr({pathTo:i,pathFrom:a});const R={el:A,j:e,realIndex:t,pathFrom:a,pathTo:i,fill:r,strokeWidth:n,delay:l};if(!y||_.globals.resized||_.globals.dataChanged)!_.globals.resized&&_.globals.dataChanged||v.showDelayedElements();else if(C){const a=2*c,i="none"===s||0===n,o=_.seriesData.series.length,r=!!_.globals.comboCharts||t===o-1;v.animateDraw(A,{realIndex:t,j:e,isFill:i,isLast:r,speed:a,delay:0,mask:f})}else v.animatePathsGradually($De(FDe({},R),{speed:c}));return _.globals.dataChanged&&S&&w&&v.animatePathsGradually($De(FDe({},R),{speed:d})),A}drawPattern(e,t,a,i="#a8a8a8",s=0){return this.w.dom.Paper.pattern(t,a,n=>{"horizontalLines"===e?n.line(0,0,a,0).stroke({color:i,width:s+1}):"verticalLines"===e?n.line(0,0,0,t).stroke({color:i,width:s+1}):"slantedLines"===e?n.line(0,0,t,a).stroke({color:i,width:s}):"squares"===e?n.rect(t,a).fill("none").stroke({color:i,width:s}):"circles"===e&&n.circle(t).fill("none").stroke({color:i,width:s})})}drawGradient(e,t,a,i,s,n=null,o=null,r=[],l=0){const c=this.w;let d;t.length<9&&0===t.indexOf("#")&&(t=qDe.hexToRgba(t,i)),a.length<9&&0===a.indexOf("#")&&(a=qDe.hexToRgba(a,s));let u=0,p=1,h=1,g=null;null!==o&&(u=void 0!==o[0]?o[0]/100:0,p=void 0!==o[1]?o[1]/100:1,h=void 0!==o[2]?o[2]/100:1,g=void 0!==o[3]?o[3]/100:null);const m=!("donut"!==c.config.chart.type&&"pie"!==c.config.chart.type&&"polarArea"!==c.config.chart.type&&"bubble"!==c.config.chart.type);if(d=r&&0!==r.length?c.dom.Paper.gradient(m?"radial":"linear",e=>{(Array.isArray(r[l])?r[l]:r).forEach(t=>{e.stop(t.offset/100,t.color,t.opacity)})}):c.dom.Paper.gradient(m?"radial":"linear",e=>{e.stop(u,t,i),e.stop(p,a,s),e.stop(h,a,s),null!==g&&e.stop(g,t,i)}),m){const e=c.layout.gridWidth/2,t=c.layout.gridHeight/2;"bubble"!==c.config.chart.type?d.attr({gradientUnits:"userSpaceOnUse",cx:e,cy:t,r:n}):d.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===e?d.from(0,0).to(0,1):"diagonal"===e?d.from(0,0).to(1,1):"horizontal"===e?d.from(0,1).to(1,1):"diagonal2"===e&&d.from(1,0).to(0,1);return d}getTextBasedOnMaxWidth({text:e,maxWidth:t,fontSize:a,fontFamily:i}){const s=this.getTextRects(e,a,i,""),n=s.width/e.length,o=Math.floor(t/n);return t<s.width?e.slice(0,o-3)+"...":e}drawText({x:e,y:t,text:a,textAnchor:i,fontSize:s,fontFamily:n,fontWeight:o,foreColor:r,opacity:l,maxWidth:c,cssClass:d="",isPlainText:u=!0,dominantBaseline:p="auto"}){const h=this.w;void 0===a&&(a="");let g=a;i||(i="start"),r&&r.length||(r=h.config.chart.foreColor),n=n||h.config.chart.fontFamily,o=o||"regular";const m={maxWidth:c,fontSize:s=s||"11px",fontFamily:n};let f;return Array.isArray(a)?f=h.dom.Paper.text(e=>{for(let t=0;t<a.length;t++)g=a[t],c&&(g=this.getTextBasedOnMaxWidth(FDe({text:a[t]},m))),0===t?e.tspan(g):e.tspan(g).newLine()}):(c&&(g=this.getTextBasedOnMaxWidth(FDe({text:a},m))),f=u?h.dom.Paper.plain(a):h.dom.Paper.text(e=>e.tspan(g))),f.attr({x:e,y:t,"text-anchor":i,"dominant-baseline":p,"font-size":s,"font-family":n,"font-weight":o,fill:r,class:"apexcharts-text "+d}),f.node.style.fontFamily=n,f.node.style.opacity=l,f}getMarkerPath(e,t,a,i){let s="";switch(a){case"cross":s=`M ${e-(i/=1.4)} ${t-i} L ${e+i} ${t+i} M ${e-i} ${t+i} L ${e+i} ${t-i}`;break;case"plus":s=`M ${e-(i/=1.12)} ${t} L ${e+i} ${t} M ${e} ${t-i} L ${e} ${t+i}`;break;case"star":case"sparkle":{let n=5;i*=1.15,"sparkle"===a&&(i/=1.1,n=4);const o=Math.PI/n;for(let a=0;a<=2*n;a++){const n=a*o,r=a%2==0?i:i/2;s+=(0===a?"M":"L")+(e+r*Math.sin(n))+","+(t-r*Math.cos(n))}s+="Z";break}case"triangle":s=`M ${e} ${t-i} \n L ${e+i} ${t+i} \n L ${e-i} ${t+i} \n Z`;break;case"square":case"rect":s=`M ${e-(i/=1.125)} ${t-i} \n L ${e+i} ${t-i} \n L ${e+i} ${t+i} \n L ${e-i} ${t+i} \n Z`;break;case"diamond":s=`M ${e} ${t-(i*=1.05)} \n L ${e+i} ${t} \n L ${e} ${t+i} \n L ${e-i} ${t} \n Z`;break;case"line":s=`M ${e-(i/=1.1)} ${t} \n L ${e+i} ${t}`;break;default:s=`M ${e}, ${t} \n m -${(i*=2)/2}, 0 \n a ${i/2},${i/2} 0 1,0 ${i},0 \n a ${i/2},${i/2} 0 1,0 -${i},0`}return s}drawMarkerShape(e,t,a,i,s){const n=this.drawPath({d:this.getMarkerPath(e,t,a,i),stroke:s.pointStrokeColor,strokeDashArray:s.pointStrokeDashArray,strokeWidth:s.pointStrokeWidth,fill:s.pointFillColor,fillOpacity:s.pointFillOpacity,strokeOpacity:s.pointStrokeOpacity});return n.attr({cx:e,cy:t,shape:s.shape,class:s.class?s.class:""}),n}drawMarker(e,t,a){e=e||0;let i=a.pSize||0;return qDe.isNumber(t)||(i=0,t=0),this.drawMarkerShape(e,t,null==a?void 0:a.shape,i,FDe(FDe({},a),"line"===a.shape||"plus"===a.shape||"cross"===a.shape?{pointStrokeColor:a.pointFillColor,pointStrokeOpacity:a.pointFillOpacity}:{}))}pathMouseEnter(e,t){var a,i;const s=this.w,n=new mMe(this.w),o=parseInt(null!=(a=e.node.getAttribute("index"))?a:"",10),r=parseInt(null!=(i=e.node.getAttribute("j"))?i:"",10);if(!(isNaN(o)||isNaN(r)||("function"==typeof s.config.chart.events.dataPointMouseEnter&&s.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:o,dataPointIndex:r,w:s}),fMe._fireEvent(s,"dataPointMouseEnter",[t,this.ctx,{seriesIndex:o,dataPointIndex:r,w:s}]),"none"!==s.config.states.active.filter.type&&"true"===e.node.getAttribute("selected")||"none"===s.config.states.hover.filter.type||s.interact.isTouchDevice))){const t=s.config.states.hover.filter;n.applyFilter(e,o,t.type)}}pathMouseLeave(e,t){var a,i;const s=this.w,n=new mMe(this.w),o=parseInt(null!=(a=e.node.getAttribute("index"))?a:"",10),r=parseInt(null!=(i=e.node.getAttribute("j"))?i:"",10);isNaN(o)||isNaN(r)||("function"==typeof s.config.chart.events.dataPointMouseLeave&&s.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:o,dataPointIndex:r,w:s}),fMe._fireEvent(s,"dataPointMouseLeave",[t,this.ctx,{seriesIndex:o,dataPointIndex:r,w:s}]),"none"!==s.config.states.active.filter.type&&"true"===e.node.getAttribute("selected")||"none"!==s.config.states.hover.filter.type&&n.getDefaultFilter(e,o))}pathMouseDown(e,t){var a,i;const s=this.w,n=new mMe(this.w),o=parseInt(null!=(a=e.node.getAttribute("index"))?a:"",10),r=parseInt(null!=(i=e.node.getAttribute("j"))?i:"",10);if(isNaN(o)||isNaN(r))return;let l="false";if("true"===e.node.getAttribute("selected")){e.node.setAttribute("selected","false");const t=s.interact.selectedDataPoints[o].indexOf(r);t>-1&&s.interact.selectedDataPoints[o].splice(t,1)}else{if(!s.config.states.active.allowMultipleDataPointsSelection&&s.interact.selectedDataPoints.length>0){s.interact.selectedDataPoints=[];const e=s.dom.Paper.find(".apexcharts-series path:not(.apexcharts-decoration-element)"),t=s.dom.Paper.find(".apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)"),a=e=>{Array.prototype.forEach.call(e,e=>{e.node.setAttribute("selected","false"),n.getDefaultFilter(e,o)})};a(e),a(t)}e.node.setAttribute("selected","true"),l="true",void 0===s.interact.selectedDataPoints[o]&&(s.interact.selectedDataPoints[o]=[]),s.interact.selectedDataPoints[o].push(r)}if("true"===l){const t=s.config.states.active.filter;if("none"!==t)n.applyFilter(e,o,t.type);else if("none"!==s.config.states.hover.filter&&!s.interact.isTouchDevice){const t=s.config.states.hover.filter;n.applyFilter(e,o,t.type)}}else if("none"!==s.config.states.active.filter.type)if("none"===s.config.states.hover.filter.type||s.interact.isTouchDevice)n.getDefaultFilter(e,o);else{const t=s.config.states.hover.filter;n.applyFilter(e,o,t.type)}"function"==typeof s.config.chart.events.dataPointSelection&&s.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:s.interact.selectedDataPoints,seriesIndex:o,dataPointIndex:r,w:s}),t&&fMe._fireEvent(s,"dataPointSelection",[t,this.ctx,{selectedDataPoints:s.interact.selectedDataPoints,seriesIndex:o,dataPointIndex:r,w:s}])}rotateAroundCenter(e){let t={};e&&"function"==typeof e.getBBox&&(t=e.getBBox());return{x:t.x+t.width/2,y:t.y+t.height/2}}setupEventDelegation(e,t){let a=null;e.node.addEventListener("mouseover",i=>{const s=fMe._findDelegateTarget(i.target,e.node,t);s&&s!==a&&(a&&a.instance&&this.pathMouseLeave(a.instance,i),a=s,s.instance&&this.pathMouseEnter(s.instance,i))}),e.node.addEventListener("mouseout",i=>{if(!a)return;(i.relatedTarget?fMe._findDelegateTarget(i.relatedTarget,e.node,t):null)!==a&&(a&&a.instance&&this.pathMouseLeave(a.instance,i),a=null)}),e.node.addEventListener("mousedown",a=>{const i=fMe._findDelegateTarget(a.target,e.node,t);i&&i.instance&&this.pathMouseDown(i.instance,a)})}static _fireEvent(e,t,a){const i=e.globals.events;if(!i||!Object.prototype.hasOwnProperty.call(i,t))return;const s=i[t];for(let n=0;n<s.length;n++)s[n].apply(null,a)}static _findDelegateTarget(e,t,a){for(;e&&e!==t&&e!==document;){if(e.matches&&e.matches(a))return e;e=e.parentNode}return null}static setAttrs(e,t){for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.setAttribute(a,t[a])}getTextRects(e,t,a,i,s=!0){const n=this.w,o=[e,t,a,i,s].join("\0"),r=n.globals.textRectsCache;if(r&&r.has(o))return r.get(o);const l=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:a,foreColor:"#fff",opacity:0});i&&l.attr("transform",i),n.dom.Paper.add(l);let c=l.bbox();s||(c=l.node.getBoundingClientRect()),l.remove();const d={width:c.width,height:c.height};return r&&r.set(o,d),d}placeTextWithEllipsis(e,t,a){if("function"==typeof e.getComputedTextLength&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=a/1.1)){for(let i=t.length-3;i>0;i-=3)if(e.getSubStringLength(0,i)<=a/1.1)return void(e.textContent=t.substring(0,i)+"...");e.textContent="."}}}const _Me="http://www.w3.org/2000/svg";class bMe{constructor(e,t){"object"==typeof e?(this.x=e.x,this.y=e.y):(this.x=e||0,this.y=t||0)}transform(e){return e.apply(this)}clone(){return new bMe(this.x,this.y)}}class vMe{constructor(e,t,a,i,s,n){this.a=null!=e?e:1,this.b=null!=t?t:0,this.c=null!=a?a:0,this.d=null!=i?i:1,this.e=null!=s?s:0,this.f=null!=n?n:0}rotate(e){const t=e*Math.PI/180,a=Math.cos(t),i=Math.sin(t);return this.multiply(new vMe(a,i,-i,a,0,0))}scale(e,t){return this.multiply(new vMe(e,0,0,null!=t?t:e,0,0))}multiply(e){return new vMe(this.a*e.a+this.c*e.b,this.b*e.a+this.d*e.b,this.a*e.c+this.c*e.d,this.b*e.c+this.d*e.d,this.a*e.e+this.c*e.f+this.e,this.b*e.e+this.d*e.f+this.f)}apply(e){return new bMe(this.a*e.x+this.c*e.y+this.e,this.b*e.x+this.d*e.y+this.f)}}class yMe{constructor(e,t,a,i){this.x=e,this.y=t,this.w=a,this.h=i,this.width=a,this.height=i,this.x2=e+a,this.y2=t+i}}class SMe{constructor(e){this.w=e,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}clippedImgArea(e){const t=this.w,a=t.config,i=parseInt(String(t.layout.gridWidth),10),s=parseInt(String(t.layout.gridHeight),10),n=i>s?i:s,o=e.image;let r=0,l=0;void 0===e.width&&void 0===e.height?void 0!==a.fill.image.width&&void 0!==a.fill.image.height?(r=a.fill.image.width+1,l=a.fill.image.height):(r=n+1,l=n):(r=e.width,l=e.height);const c=jDe.createElementNS(_Me,"pattern");fMe.setAttrs(c,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:r+"px",height:l+"px"});const d=jDe.createElementNS(_Me,"image");c.appendChild(d);const u=VDe.isBrowser()?window.SVG:global.SVG;d.setAttributeNS(u.xlink,"href",o),fMe.setAttrs(d,{x:0,y:0,preserveAspectRatio:"none",width:r+"px",height:l+"px"}),d.style.opacity=e.opacity,t.dom.elDefs.node.appendChild(c)}getSeriesIndex(e){const t=this.w,a=t.config.chart.type;return("bar"===a||"rangeBar"===a)&&t.config.plotOptions.bar.distributed||"heatmap"===a||"treemap"===a?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.seriesData.series.length,this.seriesIndex}computeColorStops(e,t){const a=this.w;let i=null,s=null;for(const r of e)r>=t.threshold?(null===i||r>i)&&(i=r):(null===s||r<s)&&(s=r);null===i&&(i=t.threshold),null===s&&(s=t.threshold);let n=i-t.threshold+(t.threshold-s);0===n&&(n=1);let o=100-(t.threshold-s)/n*100;return o=Math.max(0,Math.min(o,100)),[{offset:o,color:t.colorAboveThreshold,opacity:a.config.fill.opacity},{offset:0,color:t.colorBelowThreshold,opacity:a.config.fill.opacity}]}fillPath(e){var t,a,i,s;const n=this.w;this.opts=e;const o=this.w.config;let r,l,c;this.seriesIndex=this.getSeriesIndex(e);const d=o.plotOptions.line.colors.colorAboveThreshold&&o.plotOptions.line.colors.colorBelowThreshold;let u=this.getFillColors()[this.seriesIndex];void 0!==n.seriesData.seriesColors[this.seriesIndex]&&(u=n.seriesData.seriesColors[this.seriesIndex]),"function"==typeof u&&(u=u({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:n}));const p=e.fillType?e.fillType:this.getFillType(this.seriesIndex);let h=Array.isArray(o.fill.opacity)?o.fill.opacity[this.seriesIndex]:o.fill.opacity;const g="gradient"===p||d;e.color&&(u=e.color);const m=n.config.series[this.seriesIndex];(null==(a=null==(t=null==m?void 0:m.data)?void 0:t[e.dataPointIndex])?void 0:a.fillColor)&&(u=null==(s=null==(i=null==m?void 0:m.data)?void 0:i[e.dataPointIndex])?void 0:s.fillColor),u||(u="#fff"),void 0!==e.opacity&&null!==e.opacity&&(h=e.opacity);let f=u;qDe.isCSSVariable(u)?f=qDe.applyOpacityToColor(u,h):-1===u.indexOf("rgb")?-1===u.indexOf("#")?f=u:u.length<9&&(f=qDe.hexToRgba(u,h)):u.indexOf("rgba")>-1?h=qDe.getOpacityFromRGBA(u):f=qDe.hexToRgba(qDe.rgb2hex(u),h);const _=qDe.isCSSVariable(u)?qDe.getThemeColor(u):u;if("pattern"===p&&(l=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:l,fillColor:_,defaultColor:f})),g){const t=o.fill.gradient.colorStops?[...o.fill.gradient.colorStops]:[];let a=o.fill.gradient.type;d&&(t[this.seriesIndex]=this.computeColorStops(n.seriesData.series[this.seriesIndex],o.plotOptions.line.colors),a="vertical"),c=this.handleGradientFill({type:a,fillConfig:e.fillConfig,fillColor:_,fillOpacity:h,colorStops:t,i:this.seriesIndex})}if("image"===p){const t=o.fill.image.src,a=e.patternID?e.patternID:"",i=`pattern${n.globals.cuid}${e.seriesNumber+1}${a}`;-1===this.patternIDs.indexOf(i)&&(this.clippedImgArea({opacity:h,image:Array.isArray(t)?e.seriesNumber<t.length?t[e.seriesNumber]:t[0]:t,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:i}),this.patternIDs.push(i)),r=`url(#${i})`}else r=g?c:"pattern"===p?l:f;return e.solid&&(r=f),r}getFillType(e){const t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}getFillColors(){const e=this.w,t=e.config,a=this.opts;let 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!==a.fillColors&&(i=[],Array.isArray(a.fillColors)?i=a.fillColors.slice():i.push(a.fillColors)),i}handlePatternFill({fillConfig:e,patternFill:t,fillColor:a,defaultColor:i}){let s=this.w.config.fill;e&&(s=e);const n=this.opts,o=new fMe(this.w),r=Array.isArray(s.pattern.strokeWidth)?s.pattern.strokeWidth[this.seriesIndex]:s.pattern.strokeWidth,l=a;if(Array.isArray(s.pattern.style))if(void 0!==s.pattern.style[n.seriesNumber]){t=o.drawPattern(s.pattern.style[n.seriesNumber],s.pattern.width,s.pattern.height,l,r)}else t=i;else t=o.drawPattern(s.pattern.style,s.pattern.width,s.pattern.height,l,r);return t}handleGradientFill({type:e,fillColor:t,fillOpacity:a,fillConfig:i,colorStops:s,i:n}){let o=this.w.config.fill;i&&(o=FDe(FDe({},o),i));const r=this.opts,l=new fMe(this.w),c=new qDe;e=e||o.gradient.type;let d,u=t,p=void 0===o.gradient.opacityFrom?a:Array.isArray(o.gradient.opacityFrom)?o.gradient.opacityFrom[n]:o.gradient.opacityFrom;u.indexOf("rgba")>-1&&(p=qDe.getOpacityFromRGBA(u));let h=void 0===o.gradient.opacityTo?a:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[n]:o.gradient.opacityTo;if(void 0===o.gradient.gradientToColors||0===o.gradient.gradientToColors.length)d="dark"===o.gradient.shade?c.shadeColor(-1*parseFloat(o.gradient.shadeIntensity),t.indexOf("rgb")>-1?qDe.rgb2hex(t):t):c.shadeColor(parseFloat(o.gradient.shadeIntensity),t.indexOf("rgb")>-1?qDe.rgb2hex(t):t);else if(o.gradient.gradientToColors[r.seriesNumber]){const e=o.gradient.gradientToColors[r.seriesNumber];d=e,e.indexOf("rgba")>-1&&(h=qDe.getOpacityFromRGBA(e))}else d=t;if(o.gradient.gradientFrom&&(u=o.gradient.gradientFrom),o.gradient.gradientTo&&(d=o.gradient.gradientTo),o.gradient.inverseColors){const e=u;u=d,d=e}return u.indexOf("rgb")>-1&&(u=qDe.rgb2hex(u)),d.indexOf("rgb")>-1&&(d=qDe.rgb2hex(d)),l.drawGradient(e,u,d,p,h,r.size,o.gradient.stops,s,n)}}class xMe{constructor(e,t){this.w=e,this.ctx=t,this._filters=new mMe(this.w),this._graphics=new fMe(this.w,this.ctx)}setGlobalMarkerSize(){const 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.seriesData.series.length+1)for(let t=0;t<=e.seriesData.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(()=>e.config.markers.size)}plotChartMarkers({pointsPos:e,seriesIndex:t,j:a,pSize:i,alwaysDrawMarker:s=!1,isVirtualPoint:n=!1}){const o=this.w,r=t,l=e;let c=null;const d=new fMe(this.w),u=o.config.markers.discrete&&o.config.markers.discrete.length;if(Array.isArray(l.x))for(let p=0;p<l.x.length;p++){let e,h=a,g=!qDe.isNumber(l.y[p]);0===o.globals.markers.largestSize&&o.globals.hasNullValues&&null!==o.seriesData.series[r][a+1]&&!n&&(g=!0),1===a&&0===p&&(h=0),1===a&&1===p&&(h=1);let m="apexcharts-marker";"line"!==o.config.chart.type&&"area"!==o.config.chart.type||o.globals.comboCharts||o.config.tooltip.intersect||(m+=" no-pointer-events");if((Array.isArray(o.config.markers.size)?o.globals.markers.size[t]>0:o.config.markers.size>0)||s||u){g||(m+=` w${qDe.randomId()}`);const a=this.getMarkerConfig({cssClass:m,seriesIndex:t,dataPointIndex:h}),n=o.config.series[r];if(n.data[h]&&(n.data[h].fillColor&&(a.pointFillColor=n.data[h].fillColor),n.data[h].strokeColor&&(a.pointStrokeColor=n.data[h].strokeColor)),void 0!==i&&(a.pSize=i),(l.x[p]<-o.globals.markers.largestSize||l.x[p]>o.layout.gridWidth+o.globals.markers.largestSize||l.y[p]<-o.globals.markers.largestSize||l.y[p]>o.layout.gridHeight+o.globals.markers.largestSize)&&(a.pSize=0),!g){(o.globals.markers.size[t]>0||s||u)&&!c&&(c=d.group({class:s||u?"":"apexcharts-series-markers"}),c.attr("clip-path",`url(#gridRectMarkerMask${o.globals.cuid})`),this.setupMarkerDelegation(c)),e=d.drawMarker(l.x[p],l.y[p],a),e.attr("rel",h),e.attr("j",h),e.attr("index",t),e.node.setAttribute("default-marker-size",a.pSize),uMe(e,l.x[p],o),this._filters.setSelectionFilter(e,t,h),c&&c.add(e)}}else void 0===o.globals.pointsArray[t]&&(o.globals.pointsArray[t]=[]),o.globals.pointsArray[t].push([l.x[p],l.y[p]])}return c}getMarkerConfig({cssClass:e,seriesIndex:t,dataPointIndex:a=null,radius:i=null,size:s=null,strokeWidth:n=null}){const o=this.w,r=this.getMarkerStyle(t);let l=null===s?o.globals.markers.size[t]:s;const c=o.config.markers;return null!==a&&c.discrete.length&&c.discrete.map(e=>{e.seriesIndex===t&&e.dataPointIndex===a&&(r.pointStrokeColor=e.strokeColor,r.pointFillColor=e.fillColor,l=e.size,r.pointShape=e.shape)}),{pSize:null===i?l:i,pRadius:null!==i?i:c.radius,pointStrokeWidth:null!==n?n:Array.isArray(c.strokeWidth)?c.strokeWidth[t]:c.strokeWidth,pointStrokeColor:r.pointStrokeColor,pointFillColor:r.pointFillColor,shape:r.pointShape||(Array.isArray(c.shape)?c.shape[t]:c.shape),class:e,pointStrokeOpacity:Array.isArray(c.strokeOpacity)?c.strokeOpacity[t]:c.strokeOpacity,pointStrokeDashArray:Array.isArray(c.strokeDashArray)?c.strokeDashArray[t]:c.strokeDashArray,pointFillOpacity:Array.isArray(c.fillOpacity)?c.fillOpacity[t]:c.fillOpacity,seriesIndex:t}}setupMarkerDelegation(e){const t=this.w,a=".apexcharts-marker";this._graphics.setupEventDelegation(e,a),e.node.addEventListener("click",i=>{if(t.config.markers.onClick){fMe._findDelegateTarget(i.target,e.node,a)&&t.config.markers.onClick(i)}}),e.node.addEventListener("dblclick",i=>{if(t.config.markers.onDblClick){fMe._findDelegateTarget(i.target,e.node,a)&&t.config.markers.onDblClick(i)}}),e.node.addEventListener("touchstart",t=>{const i=fMe._findDelegateTarget(t.target,e.node,a);i&&i.instance&&this._graphics.pathMouseDown(i.instance,t)},{passive:!0})}addEvents(e){const t=this.w;e.node.addEventListener("mouseenter",this._graphics.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",this._graphics.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",this._graphics.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",this._graphics.pathMouseDown.bind(this.ctx,e),{passive:!0})}getMarkerStyle(e){const t=this.w,a=t.globals.markers.colors,i=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(i)?i[e]:i,pointFillColor:Array.isArray(a)?a[e]:a}}}class wMe{constructor(e,t){this.ctx=t,this.w=e,this.initialAnim=this.w.config.chart.animations.enabled,this.anim=new gMe(this.w),this.filters=new mMe(this.w),this.fill=new SMe(this.w),this.markers=new xMe(this.w,this.ctx),this.graphics=new fMe(this.w)}draw(e,t,a){const i=this.w,s=this.graphics,n=a.realIndex,o=a.pointsPos,r=a.zRatio,l=a.elParent,c=s.group({class:`apexcharts-series-markers apexcharts-series-${i.config.chart.type}`});if(c.attr("clip-path",`url(#gridRectMarkerMask${i.globals.cuid})`),this.markers.setupMarkerDelegation(c),Array.isArray(o.x))for(let d=0;d<o.x.length;d++){let e=t+1,a=!0;0===t&&0===d&&(e=0),0===t&&1===d&&(e=1);let s=i.globals.markers.size[n];if(r!==1/0){const t=i.config.plotOptions.bubble;s=i.seriesData.seriesZ[n][e],t.zScaling&&(s/=r),t.minBubbleRadius&&s<t.minBubbleRadius&&(s=t.minBubbleRadius),t.maxBubbleRadius&&s>t.maxBubbleRadius&&(s=t.maxBubbleRadius)}const u=o.x[d],p=o.y[d];if(s=s||0,null!==p&&void 0!==i.seriesData.series[n][e]||(a=!1),a){const a=this.drawPoint(u,p,s,n,e,t);c.add(a)}l.add(c)}}drawPoint(e,t,a,i,s,n){const o=this.w,r=i,l=this.anim,c=this.filters,d=this.fill,u=this.markers,p=this.graphics,h=u.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:r,dataPointIndex:s,radius:"bubble"===o.config.chart.type||o.globals.comboCharts&&o.config.series[i]&&"bubble"===o.config.series[i].type?a:null});let g=d.fillPath({seriesNumber:i,dataPointIndex:s,color:h.pointFillColor,patternUnits:"objectBoundingBox",value:o.seriesData.series[i][n]});const m=p.drawMarker(e,t,h),f=o.config.series[r];if(f.data[s]&&f.data[s].fillColor&&(g=f.data[s].fillColor),m.attr({fill:g}),o.config.chart.dropShadow.enabled){const e=o.config.chart.dropShadow;c.dropShadow(m,e,i)}if(!this.initialAnim||o.globals.dataChanged||o.globals.resized)o.globals.animationEnded=!0;else{const e=o.config.chart.animations,t=e.speed,a=o.globals.dataPoints||1,i=e.animateGradually,n=i&&!1!==i.enabled?Math.min(20,.5*t/Math.max(1,a)):0,r=hMe({style:n>0?"sequential":"none",index:s,baseDelay:n});l.animatePop(m,{speed:t,delay:r,onComplete:()=>l.animationCompleted(m)})}return m.attr({rel:s,j:s,index:i,"default-marker-size":h.pSize}),c.setSelectionFilter(m,i,s),m.node.classList.add("apexcharts-marker"),m}centerTextInBubble(e){const t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}class EMe{constructor(e,t=null){this.w=e,this.ctx=t}dataLabelsCorrection(e,t,a,i,s,n,o){const r=this.w;let l=!1;const c=new fMe(this.w).getTextRects(a,o),d=c.width,u=c.height;t<0&&(t=0),t>r.layout.gridHeight+u&&(t=r.layout.gridHeight+u/2),void 0===r.globals.dataLabelsRects[i]&&(r.globals.dataLabelsRects[i]=[]),r.globals.dataLabelsRects[i].push({x:e,y:t,width:d,height:u});const p=r.globals.dataLabelsRects[i].length-2,h=void 0!==r.globals.lastDrawnDataLabelsIndexes[i]?r.globals.lastDrawnDataLabelsIndexes[i][r.globals.lastDrawnDataLabelsIndexes[i].length-1]:0;if(void 0!==r.globals.dataLabelsRects[i][p]){const a=r.globals.dataLabelsRects[i][h];(e>a.x+a.width||t>a.y+a.height||t+u<a.y||e+d<a.x)&&(l=!0)}return(0===s||n)&&(l=!0),{x:e,y:t,textRects:c,drawnextLabel:l}}drawDataLabel({type:e,pos:t,i:a,j:i,isRangeStart:s,strokeWidth:n=2}){const o=this.w,r=new fMe(this.w),l=o.config.dataLabels;let c=0,d=0,u=i,p=null;if(-1!==o.globals.collapsedSeriesIndices.indexOf(a)||!l.enabled||!Array.isArray(t.x))return p;p=r.group({class:"apexcharts-data-labels"});for(let h=0;h<t.x.length;h++)if(c=t.x[h]+l.offsetX,d=t.y[h]+l.offsetY+n,!isNaN(c)){1===i&&0===h&&(u=0),1===i&&1===h&&(u=1);let n=o.seriesData.series[a][u];"rangeArea"===e&&(n=s?o.rangeData.seriesRangeStart[a][u]:o.rangeData.seriesRangeEnd[a][u]);let r="";const l=e=>o.config.dataLabels.formatter(e,{seriesIndex:a,dataPointIndex:u,w:o});if("bubble"===o.config.chart.type){n=o.seriesData.seriesZ[a][u],r=l(n),d=t.y[h];d=new wMe(this.w,this.ctx).centerTextInBubble(d).y}else void 0!==n&&(r=l(n));let g=o.config.dataLabels.textAnchor;o.globals.isSlopeChart&&(g=0===u?"end":u===o.config.series[a].data.length-1?"start":"middle"),this.plotDataLabelsText({x:c,y:d,text:r,i:a,j:u,parent:p,offsetCorrection:!0,dataLabelsConfig:o.config.dataLabels,textAnchor:g})}return p}plotDataLabelsText(e){const t=this.w,a=new fMe(this.w);let{x:i,y:s,i:n,j:o,text:r,textAnchor:l,fontSize:c,parent:d,dataLabelsConfig:u,color:p,alwaysDrawDataLabel:h,offsetCorrection:g,className:m}=e,f=null;if(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(n)<0)return f;let _={x:i,y:s,drawnextLabel:!0,textRects:null};if(g&&(_=this.dataLabelsCorrection(i,s,r,n,o,h,parseInt(u.style.fontSize,10).toString())),t.interact.zoomed||(i=_.x,s=_.y),_.textRects){const e=t.globals.barPadForNumericAxis||0;(i<-(e+20)-_.textRects.width||i>t.layout.gridWidth+_.textRects.width+e+30)&&(r="")}let b=t.globals.dataLabels.style.colors[n];(("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(b=t.globals.dataLabels.style.colors[o]),"function"==typeof b&&(b=b({series:t.seriesData.series,seriesIndex:n,dataPointIndex:o,w:t})),p&&(b=p);let v=u.offsetX,y=u.offsetY;if("bar"!==t.config.chart.type&&"rangeBar"!==t.config.chart.type||(v=0,y=0),t.globals.isSlopeChart&&(0!==o&&(v=-2*u.offsetX+5),0!==o&&o!==t.config.series[n].data.length-1&&(v=0)),_.drawnextLabel){if("middle"===l&&i===t.layout.gridWidth&&(l="end"),f=a.drawText({x:i+v,y:s+y,foreColor:b,textAnchor:l||u.textAnchor,text:r,fontSize:c||u.style.fontSize,fontFamily:u.style.fontFamily,fontWeight:u.style.fontWeight||"normal"}),f.attr({class:m||"apexcharts-datalabel",cx:i,cy:s}),u.dropShadow.enabled){const e=u.dropShadow;new mMe(this.w).dropShadow(f,e)}d.add(f),uMe(f,i,t),void 0===t.globals.lastDrawnDataLabelsIndexes[n]&&(t.globals.lastDrawnDataLabelsIndexes[n]=[]),t.globals.lastDrawnDataLabelsIndexes[n].push(o)}return f}addBackgroundToDataLabel(e,t){const a=this.w,i=a.config.dataLabels.background,s=i.padding,n=i.padding/2,o=t.width,r=t.height,l=new fMe(this.w).drawRect(t.x-s,t.y-n/2,o+2*s,r+n,i.borderRadius,"transparent"!==a.config.chart.background&&a.config.chart.background?a.config.chart.background:"#fff",i.opacity,i.borderWidth,i.borderColor);if(i.dropShadow.enabled){new mMe(this.w).dropShadow(l,i.dropShadow)}return l}dataLabelsBackground(){var e;const t=this.w;if("bubble"===t.config.chart.type)return;const a=t.dom.baseEl.querySelectorAll(".apexcharts-datalabels text");for(let i=0;i<a.length;i++){const s=a[i],n=s.getBBox();let o=null;if(n.width&&n.height&&(o=this.addBackgroundToDataLabel(s,n)),o){null==(e=s.parentNode)||e.insertBefore(o.node,s);const a=t.config.dataLabels.background.backgroundColor||s.getAttribute("fill");t.config.chart.animations.enabled&&!t.globals.resized&&!t.globals.dataChanged?o.animate().attr({fill:a}):o.attr({fill:a}),s.setAttribute("fill",t.config.dataLabels.background.foreColor);const i=s.getAttribute("cx");null!==i&&uMe(o,parseFloat(i),t)}}}bringForward(){const e=this.w,t=e.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),a=e.dom.baseEl.querySelector(".apexcharts-plot-series:last-child");for(let i=0;i<t.length;i++)a&&a.insertBefore(t[i],a.nextSibling)}}class CMe{static invalidateAll(e){e&&e.globals&&(e.globals.cachedSelectors&&(e.globals.cachedSelectors={}),e.globals.domCache&&e.globals.domCache.clear(),e.globals.dimensionCache={})}static invalidateDimensions(e){e&&e.globals&&(e.globals.dimensionCache={})}static invalidateSelectors(e){e&&e.globals&&e.globals.cachedSelectors&&(e.globals.cachedSelectors={})}static getCachedSelector(e,t,a){return e&&e.globals?(e.globals.cachedSelectors||(e.globals.cachedSelectors={}),e.globals.cachedSelectors[t]||(e.globals.cachedSelectors[t]=a()),e.globals.cachedSelectors[t]):a()}static getCachedDimension(e,t,a,i=1e3){if(!e||!e.globals)return a();e.globals.dimensionCache||(e.globals.dimensionCache={});const s=e.globals.dimensionCache[t],n=Date.now();if(s&&s.lastUpdate&&n-s.lastUpdate<i)return s.value;const o=a();return e.globals.dimensionCache[t]={value:o,lastUpdate:n},o}static cacheDOMElement(e,t,a){e&&e.globals&&(e.globals.domCache||(e.globals.domCache=new Map),e.globals.domCache.set(t,a))}static getCachedDOMElement(e,t){return e&&e.globals&&e.globals.domCache&&e.globals.domCache.get(t)||null}}class kMe{constructor(e,{theme:t=null,timeScale:a=null}={}){this.w=e,this.theme=t,this.timeScale=a}getLabel(e,t,a,i,s=[],n="12px",o=!0){const r=this.w,l=void 0===e[i]?"":e[i];let c=l;const d=r.formatters.xLabelFormatter,u=r.config.xaxis.labels.formatter,p=new XDe(this.w),h=l;o&&(c=p.xLabelFormat(d,l,h,{i:i,dateFormatter:new KDe(this.w).formatDate,w:r}),void 0!==u&&(c=u(l,e[i],{i:i,dateFormatter:new KDe(this.w).formatDate,w:r}))),t.length>0?(a=t[i].position,c=t[i].value):"datetime"===r.config.xaxis.type&&void 0===u&&(c=""),void 0===c&&(c=""),c=Array.isArray(c)?c:c.toString();const g=new fMe(this.w);let m={};m=r.layout.rotateXLabels&&o?g.getTextRects(c,parseInt(n,10).toString(),null,`rotate(${r.config.xaxis.labels.rotate} 0 0)`,!1):g.getTextRects(c,parseInt(n,10).toString());const f=!r.config.xaxis.labels.showDuplicates&&this.timeScale;return!Array.isArray(c)&&("NaN"===String(c)||s.indexOf(c)>=0&&f)&&(c=""),{x:a,text:c,textRect:m}}checkLabelBasedOnTickamount(e,t,a){const i=this.w;let s=i.config.xaxis.tickAmount;if("dataPoints"===s&&(s=Math.round(i.layout.gridWidth/120)),s>a)return t;return e%Math.round(a/(s+1))===0||(t.text=""),t}checkForOverflowingLabels(e,t,a,i,s){const n=this.w;if(0===e&&n.globals.skipFirstTimelinelabel&&(t.text=""),e===a-1&&n.globals.skipLastTimelinelabel&&(t.text=""),n.config.xaxis.labels.hideOverlappingLabels&&i.length>0){const e=s[s.length-1];if(n.config.xaxis.labels.trim&&"datetime"!==n.config.xaxis.type)return t;t.x<e.textRect.width/(n.layout.rotateXLabels?Math.abs(n.config.xaxis.labels.rotate)/12:1.01)+e.x&&(t.text="")}return t}checkForReversedLabels(e,t){const a=this.w;return a.config.yaxis[e]&&a.config.yaxis[e].reversed&&t.reverse(),t}yAxisAllSeriesCollapsed(e){const t=this.w.globals;return!t.seriesYAxisMap[e].some(e=>-1===t.collapsedSeriesIndices.indexOf(e))}translateYAxisIndex(e){const t=this.w,a=t.globals,i=t.config.yaxis;return t.seriesData.series.length>i.length||i.some(e=>Array.isArray(e.seriesName))?e:a.seriesYAxisReverseMap[e]}isYAxisHidden(e){const t=this.w,a=t.config.yaxis[e];if(!a.show||this.yAxisAllSeriesCollapsed(e))return!0;if(!a.showForNullSeries){const a=t.globals.seriesYAxisMap[e],i=new rMe(this.w);return a.every(e=>i.isSeriesNull(e))}return!1}getYAxisForeColor(e,t){var a;const i=this.w;return Array.isArray(e)&&i.globals.yAxisScale[t]&&(null==(a=this.theme)||a.pushExtraColors(e,i.globals.yAxisScale[t].result.length,!1)),e}drawYAxisTicks(e,t,a,i,s,n,o){const r=this.w,l=new fMe(this.w);let c=r.layout.translateY+r.config.yaxis[s].labels.offsetY;if(r.globals.isBarHorizontal?c=0:"heatmap"===r.config.chart.type&&(c+=n/2),i.show&&t>0){!0===r.config.yaxis[s].opposite&&(e+=i.width);for(let s=t;s>=0;s--){const t=l.drawLine(e+a.offsetX-i.width+i.offsetX,c+i.offsetY,e+a.offsetX+i.offsetX,c+i.offsetY,i.color);o.add(t),c+=n}}}}class TMe{constructor(e,t,a){this.w=e,this.ctx=t,this.elgrid=a,this.axesUtils=new kMe(e,{theme:t.theme,timeScale:t.timeScale}),this.xaxisLabels=e.labelData.labels.slice(),e.labelData.timescaleLabels.length>0&&!e.globals.isBarHorizontal&&(this.xaxisLabels=e.labelData.timescaleLabels.slice()),e.config.xaxis.overwriteCategories&&(this.xaxisLabels=e.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===e.config.xaxis.position?this.offY=0:this.offY=e.layout.gridHeight,this.offY=this.offY+e.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===e.config.chart.type&&e.config.plotOptions.bar.horizontal,this.xaxisFontSize=e.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=e.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=e.config.xaxis.labels.style.colors,this.xaxisBorderWidth=e.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=e.config.yaxis[0].axisBorder.width.toString()),String(this.xaxisBorderWidth).indexOf("%")>-1?this.xaxisBorderWidth=e.layout.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=e.config.xaxis.axisBorder.height,this.yaxis=e.config.yaxis[0]}drawXaxis(){const e=this.w,t=new fMe(this.w),a=t.group({class:"apexcharts-xaxis",transform:`translate(${e.config.xaxis.offsetX}, ${e.config.xaxis.offsetY})`}),i=t.group({class:"apexcharts-xaxis-texts-g",transform:`translate(${e.layout.translateXAxisX}, ${e.layout.translateXAxisY})`});a.add(i);let s=[];for(let n=0;n<this.xaxisLabels.length;n++)s.push(this.xaxisLabels[n]);if(this.drawXAxisLabelAndGroup(!0,t,i,s,e.axisFlags.isXNumeric,(e,t)=>t),e.labelData.hasXaxisGroups){const a=e.labelData.groups;s=[];for(let e=0;e<a.length;e++)s.push(a[e].title);const n={};e.config.xaxis.group.style&&(n.xaxisFontSize=e.config.xaxis.group.style.fontSize,n.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,n.xaxisForeColors=e.config.xaxis.group.style.colors,n.fontWeight=e.config.xaxis.group.style.fontWeight,n.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,i,s,!1,(e,t)=>a[e].cols*t,n)}if(void 0!==e.config.xaxis.title.text){const i=t.group({class:"apexcharts-xaxis-title"}),s=t.drawText({x:e.layout.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+("bottom"===e.config.xaxis.position?e.layout.xAxisLabelsHeight:-e.layout.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});i.add(s),a.add(i)}if(e.config.xaxis.axisBorder.show){const i=e.globals.barPadForNumericAxis,s=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-i,this.offY,this.xaxisBorderWidth+i,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(s):a.add(s)}return a}drawXAxisLabelAndGroup(e,t,a,i,s,n,o={}){var r,l;const c=[],d=[],u=this.w,p=o.xaxisFontSize||this.xaxisFontSize,h=o.xaxisFontFamily||this.xaxisFontFamily,g=o.xaxisForeColors||this.xaxisForeColors,m=o.fontWeight||u.config.xaxis.labels.style.fontWeight,f=o.cssClass||u.config.xaxis.labels.style.cssClass;let _,b=u.globals.padHorizontal;const v=i.length;let y="category"===u.config.xaxis.type?u.globals.dataPoints:v;if(0===y&&v>y&&(y=v),s){const e=Math.max(Number(u.config.xaxis.tickAmount)||1,y>1?y-1:y);_=u.layout.gridWidth/Math.min(e,v-1),b=b+n(0,_)/2+u.config.xaxis.labels.offsetX}else _=u.layout.gridWidth/y,b=b+n(0,_)+u.config.xaxis.labels.offsetX;for(let S=0;S<=v-1;S++){let s=b-n(S,_)/2+u.config.xaxis.labels.offsetX;0===S&&1===v&&_/2===b&&1===y&&(s=u.layout.gridWidth/2);let o=this.axesUtils.getLabel(i,u.labelData.timescaleLabels,s,S,c,p,e),x=28;u.layout.rotateXLabels&&e&&(x=22),u.config.xaxis.title.text&&"top"===u.config.xaxis.position&&(x+=parseFloat(u.config.xaxis.title.style.fontSize)+2),e||(x=x+parseFloat(p)+(u.layout.xAxisLabelsHeight-u.layout.xAxisGroupLabelsHeight)+(u.layout.rotateXLabels?10:0));o=void 0!==u.config.xaxis.tickAmount&&"dataPoints"!==u.config.xaxis.tickAmount&&"datetime"!==u.config.xaxis.type?this.axesUtils.checkLabelBasedOnTickamount(S,o,v):this.axesUtils.checkForOverflowingLabels(S,o,v,c,d);const w=()=>e&&u.config.xaxis.convertedCatToNumeric?g[u.globals.minX+S-1]:g[S],E=(null!=(l=null==(r=o.textRect)?void 0:r.width)?l:0)/2,C=o.x+E<0;if(u.config.xaxis.labels.show&&!C){const i=t.drawText({x:o.x,y:this.offY+u.config.xaxis.labels.offsetY+x-("top"===u.config.xaxis.position?u.layout.xAxisHeight+u.config.xaxis.axisTicks.height-2:0),text:o.text,textAnchor:"middle",fontWeight:m,fontSize:p,fontFamily:h,foreColor:Array.isArray(g)?w():g,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+f});if(a.add(i),i.on("click",e=>{if("function"==typeof u.config.chart.events.xAxisLabelClick){const t=Object.assign({},u,{labelIndex:S});u.config.chart.events.xAxisLabelClick(e,this.ctx,t)}}),e){const e=jDe.createElementNS(_Me,"title");e.textContent=Array.isArray(o.text)?o.text.join(" "):o.text,i.node.appendChild(e),""!==o.text&&(c.push(o.text),d.push(o))}}S<v-1&&(b+=n(S+1,_))}}drawXaxisInversed(e){const t=this.w,a=new fMe(this.w),i=t.config.yaxis[0].opposite?t.globals.translateYAxisX[e]:0,s=a.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),n=a.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+i+", 0)"});s.add(n);const o=[];if(t.config.yaxis[e].show)for(let h=0;h<this.xaxisLabels.length;h++)o.push(this.xaxisLabels[h]);const r=t.layout.gridHeight/o.length;let l=-r/2.2;const c=t.formatters.yLabelFormatters[0],d=t.config.yaxis[0].labels;if(d.show)for(let h=0;h<=o.length-1;h++){let i=void 0===o[h]?"":o[h];i=c(i,{seriesIndex:e,dataPointIndex:h,w:t});const s=this.axesUtils.getYAxisForeColor(d.style.colors,e),u=()=>Array.isArray(s)?s[h]:s;let p=0;Array.isArray(i)&&(p=i.length/2*parseInt(d.style.fontSize,10));let g=d.offsetX-15,m="end";this.yaxis.opposite&&(m="start"),"left"===t.config.yaxis[0].labels.align?(g=d.offsetX,m="start"):"center"===t.config.yaxis[0].labels.align?(g=d.offsetX,m="middle"):"right"===t.config.yaxis[0].labels.align&&(m="end");const f=a.drawText({x:g,y:l+r+d.offsetY-p,text:i,textAnchor:m,foreColor:u(),fontSize:d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+d.style.cssClass,maxWidth:d.maxWidth});n.add(f),f.on("click",e=>{if("function"==typeof t.config.chart.events.xAxisLabelClick){const a=Object.assign({},t,{labelIndex:h});t.config.chart.events.xAxisLabelClick(e,this.ctx,a)}});const _=jDe.createElementNS(_Me,"title");if(_.textContent=Array.isArray(i)?i.join(" "):i,f.node.appendChild(_),0!==t.config.yaxis[e].labels.rotate){const i=a.rotateAroundCenter(f.node);f.node.setAttribute("transform",`rotate(${t.config.yaxis[e].labels.rotate} 0 ${i.y})`)}l+=r}if(void 0!==t.config.yaxis[0].title.text){const e=a.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+i+", 0)"}),n=a.drawText({x:t.config.yaxis[0].title.offsetX,y:t.layout.gridHeight/2+t.config.yaxis[0].title.offsetY,text:t.config.yaxis[0].title.text,textAnchor:"middle",foreColor:t.config.yaxis[0].title.style.color,fontSize:t.config.yaxis[0].title.style.fontSize,fontWeight:t.config.yaxis[0].title.style.fontWeight,fontFamily:t.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+t.config.yaxis[0].title.style.cssClass});e.add(n),s.add(e)}let u=0;this.isCategoryBarHorizontal&&t.config.yaxis[0].opposite&&(u=t.layout.gridWidth);const p=t.config.xaxis.axisBorder;if(p.show){const e=a.drawLine(t.globals.padHorizontal+p.offsetX+u,1+p.offsetY,t.globals.padHorizontal+p.offsetX+u,t.layout.gridHeight+p.offsetY,p.color,0);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(e):s.add(e)}return t.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(u,o.length,t.config.yaxis[0].axisBorder,t.config.yaxis[0].axisTicks,0,r,s),s}drawXaxisTicks(e,t,a){const i=this.w,s=e;if(e<0||e-2>i.layout.gridWidth)return;const n=this.offY+i.config.xaxis.axisTicks.offsetY;if(t=t+n+i.config.xaxis.axisTicks.height,"top"===i.config.xaxis.position&&(t=n-i.config.xaxis.axisTicks.height),i.config.xaxis.axisTicks.show){const o=new fMe(this.w).drawLine(e+i.config.xaxis.axisTicks.offsetX,n+i.config.xaxis.offsetY,s+i.config.xaxis.axisTicks.offsetX,t+i.config.xaxis.offsetY,i.config.xaxis.axisTicks.color);a.add(o),o.node.classList.add("apexcharts-xaxis-tick")}}getXAxisTicksPositions(){const e=this.w,t=[],a=this.xaxisLabels.length;let i=e.globals.padHorizontal;if(e.labelData.timescaleLabels.length>0)for(let s=0;s<a;s++)i=this.xaxisLabels[s].position,t.push(i);else{const s=a;for(let a=0;a<s;a++){let a=s;e.axisFlags.isXNumeric&&"bar"!==e.config.chart.type&&(a-=1),i+=e.layout.gridWidth/a,t.push(i)}}return t}xAxisLabelCorrections(){var e,t,a;const i=this.w,s=new fMe(this.w),n=i.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),o=i.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),r=i.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),l=i.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(i.layout.rotateXLabels||i.config.xaxis.labels.rotateAlways)for(let c=0;c<o.length;c++){const e=s.rotateAroundCenter(o[c]);e.y=e.y-1,e.x=e.x+1,o[c].setAttribute("transform",`rotate(${i.config.xaxis.labels.rotate} ${e.x} ${e.y})`),o[c].setAttribute("text-anchor","end"),null==n||n.setAttribute("transform","translate(0, -10)");const t=o[c].childNodes;i.config.xaxis.labels.trim&&Array.prototype.forEach.call(t,e=>{s.placeTextWithEllipsis(e,e.textContent,i.layout.xAxisLabelsHeight-("bottom"===i.config.legend.position?20:10))})}else{const e=i.layout.gridWidth/(i.labelData.labels.length+1);for(let t=0;t<o.length;t++){const a=o[t].childNodes;i.config.xaxis.labels.trim&&"datetime"!==i.config.xaxis.type&&Array.prototype.forEach.call(a,t=>{s.placeTextWithEllipsis(t,t.textContent,e)})}}if(r.length>0){const n=r[r.length-1].getBBox(),o=r[0].getBBox();n.x<-20&&(null==(e=r[r.length-1].parentNode)||e.removeChild(r[r.length-1])),o.x+o.width>i.layout.gridWidth&&!i.globals.isBarHorizontal&&(null==(t=r[0].parentNode)||t.removeChild(r[0]));for(let e=0;e<l.length;e++)s.placeTextWithEllipsis(l[e],null!=(a=l[e].textContent)?a:"",i.config.yaxis[0].labels.maxWidth-(i.config.yaxis[0].title.text?2*parseFloat(i.config.yaxis[0].title.style.fontSize):0)-15)}}}class AMe{constructor(e,t){this.w=e,this.ctx=t,this.xaxisLabels=e.labelData.labels.slice(),this.axesUtils=new kMe(t.w,{theme:t.theme,timeScale:t.timeScale}),this.isRangeBar=e.rangeData.seriesRange.length&&e.globals.isBarHorizontal,e.labelData.timescaleLabels.length>0&&(this.xaxisLabels=e.labelData.timescaleLabels.slice())}drawGridArea(e=null){const t=this.w,a=new fMe(this.w);e||(e=a.group({class:"apexcharts-grid"}));const i=a.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.layout.gridHeight,"transparent"),s=a.drawLine(t.globals.padHorizontal,t.layout.gridHeight,t.layout.gridWidth,t.layout.gridHeight,"transparent");return e.add(s),e.add(i),e}drawGrid(){if(this.w.globals.axisCharts){const e=this.renderGrid();return this.drawGridArea(e.el),e}return null}createGridMask(){const e=this.w,t=e.globals,a=new fMe(this.w),i=Array.isArray(e.config.stroke.width)?Math.max(...e.config.stroke.width):e.config.stroke.width,s=e=>{const t=jDe.createElementNS(_Me,"clipPath");return t.setAttribute("id",e),t};e.dom.elGridRectMask=s(`gridRectMask${t.cuid}`),e.dom.elGridRectBarMask=s(`gridRectBarMask${t.cuid}`),e.dom.elGridRectMarkerMask=s(`gridRectMarkerMask${t.cuid}`),e.dom.elForecastMask=s(`forecastMask${t.cuid}`),e.dom.elNonForecastMask=s(`nonForecastMask${t.cuid}`);let n=0,o=0;(["bar","rangeBar","candlestick","boxPlot"].includes(e.config.chart.type)||e.globals.comboBarCount>0)&&e.axisFlags.isXNumeric&&!e.globals.isBarHorizontal&&(n=Math.max(e.config.grid.padding.left,t.barPadForNumericAxis),o=Math.max(e.config.grid.padding.right,t.barPadForNumericAxis)),e.dom.elGridRect=a.drawRect(-i/2-2,-i/2-2,e.layout.gridWidth+i+4,e.layout.gridHeight+i+4,0,"#fff"),e.dom.elGridRectBar=a.drawRect(-i/2-n-2,-i/2-2,e.layout.gridWidth+i+o+n+4,e.layout.gridHeight+i+4,0,"#fff");const r=e.globals.markers.largestSize;e.dom.elGridRectMarker=a.drawRect(Math.min(-i/2-n-2,-r),-r,e.layout.gridWidth+Math.max(i+o+n+4,2*r),e.layout.gridHeight+2*r,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectBarMask.appendChild(e.dom.elGridRectBar.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);const l=e.dom.elDefs.node;l.appendChild(e.dom.elGridRectMask),l.appendChild(e.dom.elGridRectBarMask),l.appendChild(e.dom.elGridRectMarkerMask),l.appendChild(e.dom.elForecastMask),l.appendChild(e.dom.elNonForecastMask)}_drawGridLines({i:e,x1:t,y1:a,x2:i,y2:s,xCount:n,parent:o}){const r=this.w;if(!(0===e&&r.globals.skipFirstTimelinelabel||e===n-1&&r.globals.skipLastTimelinelabel&&!r.config.xaxis.labels.formatter||"radar"===r.config.chart.type)){r.config.grid.xaxis.lines.show&&this._drawGridLine({i:e,x1:t,y1:a,x2:i,y2:s,xCount:n,parent:o});let l=0;if(r.labelData.hasXaxisGroups&&"between"===r.config.xaxis.tickPlacement){const t=r.labelData.groups;if(t){let a=0;for(let i=0;a<e&&i<t.length;i++)a+=t[i].cols;a===e&&(l=.6*r.layout.xAxisLabelsHeight)}}new TMe(this.w,this.ctx).drawXaxisTicks(t,l,r.dom.elGraphical)}}_drawGridLine({i:e,x1:t,y1:a,x2:i,y2:s,xCount:n,parent:o}){const r=this.w,l=o.node.classList.contains("apexcharts-gridlines-horizontal"),c=r.globals.barPadForNumericAxis,d=0===a&&0===s||0===t&&0===i||a===r.layout.gridHeight&&s===r.layout.gridHeight||r.globals.isBarHorizontal&&(0===e||e===n-1),u=new fMe(this.w).drawLine(t-(l?c:0),a,i+(l?c:0),s,r.config.grid.borderColor,r.config.grid.strokeDashArray);u.node.classList.add("apexcharts-gridline"),d&&r.config.grid.show?this.elGridBorders.add(u):o.add(u)}_drawGridBandRect({c:e,x1:t,y1:a,x2:i,y2:s,type:n}){const o=this.w,r=new fMe(this.w),l=o.globals.barPadForNumericAxis,c=o.config.grid[n].colors[e],d=r.drawRect(t-("row"===n?l:0),a,i+("row"===n?2*l:0),s,0,c,o.config.grid[n].opacity);this.elg.add(d),d.attr("clip-path",`url(#gridRectMask${o.globals.cuid})`),d.node.classList.add(`apexcharts-grid-${n}`)}_drawXYLines({xCount:e,tickAmount:t}){var a;const i=this.w,s=({xC:t,x1:a,y1:i,x2:s,y2:n})=>{for(let o=0;o<t;o++)a=this.xaxisLabels[o].position,s=this.xaxisLabels[o].position,this._drawGridLines({i:o,x1:a,y1:i,x2:s,y2:n,xCount:e,parent:this.elgridLinesV})},n=({xC:t,x1:a,y1:s,x2:n,y2:o})=>{for(let r=0;r<t+(i.axisFlags.isXNumeric?0:1);r++)0===r&&1===t&&1===i.globals.dataPoints&&(n=a=i.layout.gridWidth/2),this._drawGridLines({i:r,x1:a,y1:s,x2:n,y2:o,xCount:e,parent:this.elgridLinesV}),n=a+=i.layout.gridWidth/(i.axisFlags.isXNumeric?t-1:t)};if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show){const t=i.globals.padHorizontal,o=0;let r;const l=i.layout.gridHeight;i.labelData.timescaleLabels.length?s({xC:e,x1:t,y1:o,x2:r,y2:l}):(i.axisFlags.isXNumeric&&(e=null==(a=i.globals.xAxisScale)?void 0:a.result.length),n({xC:e,x1:t,y1:o,x2:r,y2:l}))}if(i.config.grid.yaxis.lines.show){const e=0;let a=0,s=0;const n=i.layout.gridWidth;let o=t+1;this.isRangeBar&&(o=i.labelData.labels.length);for(let r=0;r<o+(this.isRangeBar?1:0);r++)this._drawGridLine({i:r,xCount:o+(this.isRangeBar?1:0),x1:e,y1:a,x2:n,y2:s,parent:this.elgridLinesH}),a+=i.layout.gridHeight/(this.isRangeBar?o:t),s=a}}_drawInvertedXYLines({xCount:e}){const t=this.w;if(t.config.grid.xaxis.lines.show||t.config.xaxis.axisTicks.show){let a=t.globals.padHorizontal;const i=0;let s;const n=t.layout.gridHeight;for(let o=0;o<e+1;o++){t.config.grid.xaxis.lines.show&&this._drawGridLine({i:o,xCount:e+1,x1:a,y1:i,x2:s,y2:n,parent:this.elgridLinesV});new TMe(this.w,this.ctx).drawXaxisTicks(a,0,t.dom.elGraphical),a+=t.layout.gridWidth/e,s=a}}if(t.config.grid.yaxis.lines.show){const e=0;let a=0,i=0;const s=t.layout.gridWidth;for(let n=0;n<t.globals.dataPoints+1;n++)this._drawGridLine({i:n,xCount:t.globals.dataPoints+1,x1:e,y1:a,x2:s,y2:i,parent:this.elgridLinesH}),a+=t.layout.gridHeight/t.globals.dataPoints,i=a}}renderGrid(){var e,t,a;const i=this.w,s=i.globals,n=new fMe(this.w);this.elg=n.group({class:"apexcharts-grid"}),this.elgridLinesH=n.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=n.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=n.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),i.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());let o=0;for(;o<s.seriesYAxisMap.length&&s.ignoreYAxisIndexes.includes(o);)o++;o===s.seriesYAxisMap.length&&(o=0);let r,l=s.yAxisScale[o].result.length-1;return!s.isBarHorizontal||this.isRangeBar?(r=this.xaxisLabels.length,this.isRangeBar&&(l=i.labelData.labels.length,i.config.xaxis.tickAmount&&i.config.xaxis.labels.formatter&&(r=i.config.xaxis.tickAmount),(null==(a=null==(t=null==(e=s.yAxisScale)?void 0:e[o])?void 0:t.result)?void 0:a.length)>0&&"datetime"!==i.config.xaxis.type&&(r=s.yAxisScale[o].result.length-1)),this._drawXYLines({xCount:r,tickAmount:l})):(r=l,l=s.xTickAmount,this._drawInvertedXYLines({xCount:r,tickAmount:l})),this.drawGridBands(r,l),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:i.layout.gridWidth/r}}drawGridBands(e,t){var a,i,s,n,o;const r=this.w,l=(e,a,i,s,n,o)=>{for(let l=0,c=0;l<a;l++,c++)c>=r.config.grid[e].colors.length&&(c=0),this._drawGridBandRect({c:c,x1:i,y1:s,x2:n,y2:o,type:e}),s+=r.layout.gridHeight/t};if((null==(a=r.config.grid.row.colors)?void 0:a.length)>0&&l("row",t,0,0,r.layout.gridWidth,r.layout.gridHeight/t),(null==(i=r.config.grid.column.colors)?void 0:i.length)>0){let t=r.globals.isBarHorizontal||"on"!==r.config.xaxis.tickPlacement||"category"!==r.config.xaxis.type&&!r.config.xaxis.convertedCatToNumeric?e:e-1;r.axisFlags.isXNumeric&&(t=(null!=(n=null==(s=r.globals.xAxisScale)?void 0:s.result.length)?n:1)-1);let a=r.globals.padHorizontal;const i=0;let l=r.globals.padHorizontal+r.layout.gridWidth/t;const c=r.layout.gridHeight;for(let s=0,n=0;s<e;s++,n++)n>=r.config.grid.column.colors.length&&(n=0),"datetime"===r.config.xaxis.type&&(a=this.xaxisLabels[s].position,l=((null==(o=this.xaxisLabels[s+1])?void 0:o.position)||r.layout.gridWidth)-this.xaxisLabels[s].position),this._drawGridBandRect({c:n,x1:a,y1:i,x2:l,y2:c,type:"column"}),a+=r.layout.gridWidth/t}}}class RMe{constructor(e){this.w=e,this.coreUtils=new rMe(this.w)}niceScale(e,t,a=0){const i=1e-11,s=this.w,n=s.globals;let o,r,l,c;n.isBarHorizontal?(o=s.config.xaxis,r=Math.max((n.svgWidth-100)/25,2)):(o=s.config.yaxis[a],r=Math.max((n.svgHeight-100)/15,2)),qDe.isNumber(r)||(r=10),l=void 0!==o.min&&null!==o.min,c=void 0!==o.max&&null!==o.min;let d=void 0!==o.stepSize&&null!==o.stepSize,u=void 0!==o.tickAmount&&null!==o.tickAmount,p=u?o.tickAmount:sMe[Math.min(Math.round(r/2),sMe.length-1)];if(n.isMultipleYAxis&&!u&&n.multiAxisTickAmount>0&&(p=n.multiAxisTickAmount,u=!0),p="dataPoints"===p?n.dataPoints-1:Math.abs(Math.round(p)),(e===Number.MIN_VALUE&&0===t||!qDe.isNumber(e)&&!qDe.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)&&(e=qDe.isNumber(o.min)?o.min:0,t=qDe.isNumber(o.max)?o.max:e+p,n.allSeriesCollapsed=!1),e>t){const a=t;t=e,e=a}else e===t&&(e=0===e?0:e-1,t=0===t?2:t+1);const h=[];p<1&&(p=1);let g=p,m=Math.abs(t-e);!l&&e>0&&e/m<.15&&(e=0,l=!0),!c&&t<0&&-t/m<.15&&(t=0,c=!0),m=Math.abs(t-e);let f=m/g,_=f;const b=Math.floor(Math.log10(_)),v=Math.pow(10,b);let y=Math.ceil(_/v);if(y=iMe[0===n.yValueDecimal?0:1][y],_=y*v,f=_,n.isBarHorizontal&&o.stepSize&&"datetime"!==o.type?(f=o.stepSize,d=!0):d&&(f=o.stepSize),d&&o.forceNiceScale){const e=Math.floor(Math.log10(f));f*=Math.pow(10,b-e)}if(l&&c){let e=m/g;if(u)if(d)if(0!=qDe.mod(m,f)){const t=qDe.getGCD(f,e);f=e/t<10?t:e}else 0==qDe.mod(f,e)?f=e:(e=f,u=!1);else f=e;else if(d)0==qDe.mod(m,f)?e=f:f=e;else if(0==qDe.mod(m,f))e=f;else{g=Math.ceil(m/f),e=m/g;const t=qDe.getGCD(m,f);m/t<r&&(e=t),f=e}g=Math.round(m/f)}else{if(l||c){if(c)if(u)e=t-f*g;else{const a=e;e=f*Math.floor(e/f),Math.abs(t-e)/qDe.getGCD(m,f)>r&&(e=t-f*p,e+=f*Math.floor((a-e)/f))}else if(l)if(u)t=e+f*g;else{const a=t;t=f*Math.ceil(t/f),Math.abs(t-e)/qDe.getGCD(m,f)>r&&(t=e+f*p,t+=f*Math.ceil((a-t)/f))}}else if(n.isMultipleYAxis&&u){const a=f*Math.floor(e/f);let i=a+f*g;i<t&&(f*=2),i=t,t=(e=a)+f*g,m=Math.abs(t-e),e>0&&e<Math.abs(i-t)&&(e=0,t=f*g),t<0&&-t<Math.abs(a-e)&&(t=0,e=-f*g)}else e=f*Math.floor(e/f),t=f*Math.ceil(t/f);m=Math.abs(t-e),f=qDe.getGCD(m,f),g=Math.round(m/f)}if(u||l||c||(g=Math.ceil((m-i)/(f+i)),g>16&&qDe.getPrimeFactors(g).length<2&&g++),!u&&o.forceNiceScale&&0===n.yValueDecimal&&g>m&&(g=m,f=Math.round(m/g)),g>r&&(!u&&!d||o.forceNiceScale)){const e=qDe.getPrimeFactors(g),t=e.length-1;let a=g;e:for(var S=0;S<t;S++)for(var x=0;x<=t-S;x++){const i=Math.min(x+S,t);let s=a,n=1;for(var w=x;w<=i;w++)n*=e[w];if(s/=n,s<r){a=s;break e}}f=a===g?m:m/a,g=Math.round(m/f)}n.isMultipleYAxis&&0==n.multiAxisTickAmount&&n.ignoreYAxisIndexes.indexOf(a)<0&&(n.multiAxisTickAmount=g);let E=e-f;const C=f*i;do{E+=f,h.push(qDe.stripNumber(E,7))}while(t-E>C);return{result:h,niceMin:h[0],niceMax:h[h.length-1]}}linearScale(e,t,a=10,i=0,s=void 0){const n=Math.abs(t-e);let o=[];if(e===t)return o=[e],{result:o,niceMin:o[0],niceMax:o[o.length-1]};"dataPoints"===(a=this._adjustTicksForSmallRange(a,i,n))&&(a=this.w.globals.dataPoints-1);const r=a;s||(s=n/r);if(0!==s&&isFinite(s)){const e=Math.floor(Math.log10(Math.abs(s))),t=Math.max(2,2-e),a=Math.pow(10,t);s=Math.round((s+Number.EPSILON)*a)/a}let l=a===Number.MAX_VALUE?5:r;a===Number.MAX_VALUE&&(s=1);let c=e;for(;l>=0;)o.push(c),c=qDe.preciseAddition(c,s),l-=1;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}logarithmicScaleNice(e,t,a){t<=0&&(t=Math.max(e,a)),e<=0&&(e=Math.min(t,a));const i=[],s=Math.ceil(Math.log(t)/Math.log(a)+1);for(let n=Math.floor(Math.log(e)/Math.log(a));n<s;n++)i.push(Math.pow(a,n));return{result:i,niceMin:i[0],niceMax:i[i.length-1]}}logarithmicScale(e,t,a){t<=0&&(t=Math.max(e,a)),e<=0&&(e=Math.min(t,a));const i=[],s=Math.log(t)/Math.log(a),n=Math.log(e)/Math.log(a),o=s-n,r=Math.round(o),l=o/r;for(let c=0,d=n;c<r;c++,d+=l)i.push(Math.pow(a,d));return i.push(Math.pow(a,s)),{result:i,niceMin:e,niceMax:t}}_adjustTicksForSmallRange(e,t,a){let i=e;if(void 0!==t&&this.w.config.yaxis[t].labels.formatter&&void 0===this.w.config.yaxis[t].tickAmount){const e=Number(this.w.config.yaxis[t].labels.formatter(1));qDe.isNumber(e)&&0===this.w.globals.yValueDecimal&&(i=Math.ceil(a))}return i<e?i:e}setYScaleForIndex(e,t,a){const i=this.w.globals,s=this.w.config,n=i.isBarHorizontal?s.xaxis:s.yaxis[e];void 0===i.yAxisScale[e]&&(i.yAxisScale[e]=[]);const o=Math.abs(a-t);n.logarithmic&&o<=5&&(i.invalidLogScale=!0),n.logarithmic&&o>5?(i.allSeriesCollapsed=!1,i.yAxisScale[e]=n.forceNiceScale?this.logarithmicScaleNice(t,a,n.logBase):this.logarithmicScale(t,a,n.logBase)):a!==-Number.MAX_VALUE&&qDe.isNumber(a)&&t!==Number.MAX_VALUE&&qDe.isNumber(t)?(i.allSeriesCollapsed=!1,i.yAxisScale[e]=this.niceScale(t,a,e)):i.yAxisScale[e]=this.niceScale(Number.MIN_VALUE,0,e)}setXScale(e,t){const a=this.w,i=a.globals;if(t!==-Number.MAX_VALUE&&qDe.isNumber(t)){const s=i.xTickAmount;i.xAxisScale=this.linearScale(e,t,s,0,void 0===a.config.xaxis.max?a.config.xaxis.stepSize:void 0)}else i.xAxisScale=this.linearScale(0,10,10);return i.xAxisScale}scaleMultipleYAxes(){const e=this.w.config,t=this.w.globals;this.coreUtils.setSeriesYAxisMappings();const a=t.seriesYAxisMap,i=t.minYArr,s=t.maxYArr,n=[],o=!t.isBarHorizontal;if(t.allSeriesCollapsed=!0,t.barGroups=[],a.forEach((a,r)=>{const l=[];if(a.forEach(t=>{var a;const i=null==(a=e.series[t])?void 0:a.group;l.indexOf(i)<0&&l.push(i)}),a.length>0){let c,d,u=Number.MAX_VALUE,p=-Number.MAX_VALUE,h=u,g=p;if(e.chart.stacked){const i=new Array(t.dataPoints).fill(0),s=[],n=[],o=[];l.forEach(()=>{s.push(i.map(()=>Number.MIN_VALUE)),n.push(i.map(()=>Number.MIN_VALUE)),o.push(i.map(()=>Number.MIN_VALUE))});for(let u=0;u<a.length;u++){!c&&e.series[a[u]].type&&(c=e.series[a[u]].type);const i=a[u];d=e.series[i].group?e.series[i].group:"axis-".concat(r.toString());!(t.collapsedSeriesIndices.indexOf(i)<0&&t.ancillaryCollapsedSeriesIndices.indexOf(i)<0)||(t.allSeriesCollapsed=!1,l.forEach((t,a)=>{if(e.series[i].group===t)for(let e=0;e<this.w.seriesData.series[i].length;e++){const t=this.w.seriesData.series[i][e];t>=0?n[a][e]+=t:o[a][e]+=t,s[a][e]+=t,h=Math.min(h,t),g=Math.max(g,t)}})),"bar"!==c&&"column"!==c||t.barGroups.push(d)}c||(c=e.chart.type),"bar"===c||"column"===c?l.forEach((e,t)=>{u=Math.min(u,Math.min.apply(null,o[t])),p=Math.max(p,Math.max.apply(null,n[t]))}):(l.forEach((e,t)=>{h=Math.min(h,Math.min.apply(null,s[t])),g=Math.max(g,Math.max.apply(null,s[t]))}),u=h,p=g),u===Number.MIN_VALUE&&p===Number.MIN_VALUE&&(p=-Number.MAX_VALUE)}else for(let e=0;e<a.length;e++){const n=a[e];u=Math.min(u,i[n]),p=Math.max(p,s[n]);!(t.collapsedSeriesIndices.indexOf(n)<0&&t.ancillaryCollapsedSeriesIndices.indexOf(n)<0)||(t.allSeriesCollapsed=!1)}void 0!==e.yaxis[r].min&&(u="function"==typeof e.yaxis[r].min?e.yaxis[r].min(u):e.yaxis[r].min),void 0!==e.yaxis[r].max&&(p="function"==typeof e.yaxis[r].max?e.yaxis[r].max(p):e.yaxis[r].max),t.barGroups=t.barGroups.filter((e,t,a)=>a.indexOf(e)===t);const m=e.yaxis[r];o&&!0===m.alignZero&&!m.logarithmic&&void 0===m.min&&void 0===m.max&&t.ignoreYAxisIndexes.indexOf(r)<0&&qDe.isNumber(u)&&qDe.isNumber(p)?n.push({ai:r,minY:u,maxY:p}):(this.setYScaleForIndex(r,u,p),a.forEach(e=>{i[e]=t.yAxisScale[r].niceMin,s[e]=t.yAxisScale[r].niceMax}))}else this.setYScaleForIndex(r,0,-Number.MAX_VALUE)}),n.length>=2){n.forEach(e=>{this.setYScaleForIndex(e.ai,e.minY,e.maxY),a[e.ai].forEach(a=>{i[a]=t.yAxisScale[e.ai].niceMin,s[a]=t.yAxisScale[e.ai].niceMax})});let e=0;n.forEach(a=>{const i=t.yAxisScale[a.ai],s=i.niceMax-i.niceMin;if(s>0){const t=-i.niceMin/s;t>e&&(e=t)}}),e>1&&(e=1),e<0&&(e=0);const o=e=>{if(e<=0)return 1;const t=Math.floor(Math.log10(e)),a=Math.pow(10,t),i=e/a;let s;return s=i<=1+1e-9?1:i<=2+1e-9?2:i<=2.5+1e-9?2.5:i<=5+1e-9?5:10,s*a};n.forEach(n=>{const r=t.yAxisScale[n.ai];if(!r.result||r.result.length<2)return;const l=r.niceMax-r.niceMin;if(l<=0)return;const c=-r.niceMin/l;if(Math.abs(c-e)<=1e-9)return;const d=c<e&&e<1-1e-9,u=!d&&c>e&&e>1e-9;if(!d&&!u)return;const p=d?-e*r.niceMax/(1-e):r.niceMin,h=u?-r.niceMin*(1-e)/e:r.niceMax,g=h-p;if(g<=0)return;const m=Math.max(r.result.length,5),f=o(g/Math.max(m-1,1));if(f<=0)return;let _,b;if(d){_=Math.floor(p/f+1e-9)*f;const t=e>1e-9?_*(e-1)/e:r.niceMax,a=Math.max(t,r.niceMax);b=Math.ceil(a/f-1e-9)*f}else{b=Math.ceil(h/f-1e-9)*f;const t=e<1-1e-9?-e*b/(1-e):r.niceMin,a=Math.min(t,r.niceMin);_=Math.floor(a/f+1e-9)*f}r.result=[];for(let e=_;e<=b+1e-9*f;e=qDe.preciseAddition(e,f))r.result.push(qDe.stripNumber(e,7));r.niceMin=_,r.niceMax=b,a[n.ai].forEach(e=>{i[e]=r.niceMin,s[e]=r.niceMax})})}else if(1===n.length){const e=n[0];this.setYScaleForIndex(e.ai,e.minY,e.maxY),a[e.ai].forEach(a=>{i[a]=t.yAxisScale[e.ai].niceMin,s[a]=t.yAxisScale[e.ai].niceMax})}}}class OMe{constructor(e){this.w=e,this.scales=new RMe(this.w)}init(){this.setYRange(),this.setXRange(),this.setZRange()}getMinYMaxY(e,t=Number.MAX_VALUE,a=-Number.MAX_VALUE,i=null){var s,n,o,r,l;const c=this.w.config,d=this.w.globals;let u=-Number.MAX_VALUE,p=Number.MIN_VALUE;null===i&&(i=e+1);const h=this.w.seriesData.series;let g=h,m=h;"candlestick"===c.chart.type?(g=this.w.candleData.seriesCandleL,m=this.w.candleData.seriesCandleH):"boxPlot"===c.chart.type?(g=this.w.candleData.seriesCandleO,m=this.w.candleData.seriesCandleC):this.w.axisFlags.isRangeData&&(g=this.w.rangeData.seriesRangeStart,m=this.w.rangeData.seriesRangeEnd);let f=!1;if(this.w.seriesData.seriesX.length>=i){const e=null==(s=d.brushSource)?void 0:s.w.config.chart.brush;(c.chart.zoom.enabled&&c.chart.zoom.autoScaleYaxis||(null==e?void 0:e.enabled)&&(null==e?void 0:e.autoScaleYaxis))&&(f=!0)}for(let _=e;_<i;_++){d.dataPoints=Math.max(d.dataPoints,h[_].length);const e=c.series[_].type;this.w.labelData.categoryLabels.length&&(d.dataPoints=this.w.labelData.categoryLabels.filter(e=>void 0!==e).length),this.w.labelData.labels.length&&"datetime"!==c.xaxis.type&&0!==this.w.seriesData.series.reduce((e,t)=>e+t.length,0)&&(d.dataPoints=Math.max(d.dataPoints,this.w.labelData.labels.length));let i=0,s=h[_].length-1;if(f){if(c.xaxis.min)for(;i<s&&this.w.seriesData.seriesX[_][i]<c.xaxis.min;i++);if(c.xaxis.max)for(;s>i&&this.w.seriesData.seriesX[_][s]>c.xaxis.max;s--);}for(let c=i;c<=s&&c<this.w.seriesData.series[_].length;c++){let i=h[_][c];if(null!==i&&qDe.isNumber(i)){switch(void 0!==(null==(n=m[_])?void 0:n[c])&&(u=Math.max(u,m[_][c]),t=Math.min(t,m[_][c])),void 0!==(null==(o=g[_])?void 0:o[c])&&(t=Math.min(t,g[_][c]),a=Math.max(a,g[_][c])),e){case"candlestick":void 0!==this.w.candleData.seriesCandleC[_][c]&&(u=Math.max(u,this.w.candleData.seriesCandleH[_][c]),t=Math.min(t,this.w.candleData.seriesCandleL[_][c]));break;case"boxPlot":void 0!==this.w.candleData.seriesCandleC[_][c]&&(u=Math.max(u,this.w.candleData.seriesCandleC[_][c]),t=Math.min(t,this.w.candleData.seriesCandleO[_][c]))}e&&"candlestick"!==e&&"boxPlot"!==e&&"rangeArea"!==e&&"rangeBar"!==e&&(u=Math.max(u,this.w.seriesData.series[_][c]),t=Math.min(t,this.w.seriesData.series[_][c])),this.w.seriesData.seriesGoals[_]&&this.w.seriesData.seriesGoals[_][c]&&Array.isArray(this.w.seriesData.seriesGoals[_][c])&&this.w.seriesData.seriesGoals[_][c].forEach(e=>{u=Math.max(u,e.value),t=Math.min(t,e.value)}),a=u,i=qDe.noExponents(i),qDe.isFloat(i)&&(d.yValueDecimal=Math.max(d.yValueDecimal,i.toString().split(".")[1].length)),p>(null==(r=g[_])?void 0:r[c])&&(null==(l=g[_])?void 0:l[c])<0&&(p=g[_][c])}else d.hasNullValues=!0}"bar"!==e&&"column"!==e||(p<0&&u<0&&(u=0,a=Math.max(a,0)),p===Number.MIN_VALUE&&(p=0,t=Math.min(t,0)))}return"rangeBar"===c.chart.type&&this.w.rangeData.seriesRangeStart.length&&d.isBarHorizontal&&(p=t),"bar"===c.chart.type&&(p<0&&u<0&&(u=0),p===Number.MIN_VALUE&&(p=0)),{minY:p,maxY:u,lowestY:t,highestY:a}}setYRange(){const e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;let a,i=Number.MAX_VALUE;if(e.isMultipleYAxis){i=Number.MAX_VALUE;for(let t=0;t<this.w.seriesData.series.length;t++)a=this.getMinYMaxY(t),e.minYArr[t]=a.lowestY,e.maxYArr[t]=a.highestY,i=Math.min(i,a.lowestY)}if(a=this.getMinYMaxY(0,i,void 0,this.w.seriesData.series.length),"bar"===t.chart.type?(e.minY=a.minY,e.maxY=a.maxY):(e.minY=a.lowestY,e.maxY=a.highestY),i=a.lowestY,t.chart.stacked&&this._setStackedMinMax(),"line"===t.chart.type||"area"===t.chart.type||"scatter"===t.chart.type||"candlestick"===t.chart.type||"boxPlot"===t.chart.type||"rangeBar"===t.chart.type&&!e.isBarHorizontal?e.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==e.maxY&&(e.minY=i):e.minY=e.minY!==Number.MIN_VALUE?Math.min(a.minY,e.minY):a.minY,t.yaxis.forEach((t,a)=>{void 0!==t.max&&("number"==typeof t.max?e.maxYArr[a]=t.max:"function"==typeof t.max&&(e.maxYArr[a]=t.max(e.isMultipleYAxis?e.maxYArr[a]:e.maxY)),e.maxY=e.maxYArr[a]),void 0!==t.min&&("number"==typeof t.min?e.minYArr[a]=t.min:"function"==typeof t.min&&(e.minYArr[a]=t.min(e.isMultipleYAxis?e.minYArr[a]===Number.MIN_VALUE?0:e.minYArr[a]:e.minY)),e.minY=e.minYArr[a])}),e.isBarHorizontal){["min","max"].forEach(a=>{void 0!==t.xaxis[a]&&"number"==typeof t.xaxis[a]&&("min"===a?e.minY=t.xaxis[a]:e.maxY=t.xaxis[a])})}return e.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),e.minY=i):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.minY,e.maxYArr[0]=e.maxY),e.barGroups=[],e.lineGroups=[],e.areaGroups=[],t.series.forEach(a=>{const i=a;switch(i.type||t.chart.type){case"bar":case"column":e.barGroups.push(i.group);break;case"line":e.lineGroups.push(i.group);break;case"area":e.areaGroups.push(i.group)}}),e.barGroups=e.barGroups.filter((e,t,a)=>a.indexOf(e)===t),e.lineGroups=e.lineGroups.filter((e,t,a)=>a.indexOf(e)===t),e.areaGroups=e.areaGroups.filter((e,t,a)=>a.indexOf(e)===t),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}setXRange(){const e=this.w.globals,t=this.w.config,a="numeric"===t.xaxis.type||"datetime"===t.xaxis.type||"category"===t.xaxis.type&&!this.w.axisFlags.noLabelsProvided||this.w.axisFlags.noLabelsProvided||this.w.axisFlags.isXNumeric,i=()=>{for(let t=0;t<this.w.seriesData.series.length;t++)if(this.w.labelData.labels[t])for(let a=0;a<this.w.labelData.labels[t].length;a++)null!==this.w.labelData.labels[t][a]&&qDe.isNumber(this.w.labelData.labels[t][a])&&(e.maxX=Math.max(e.maxX,this.w.labelData.labels[t][a]),e.initialMaxX=Math.max(e.maxX,this.w.labelData.labels[t][a]),e.minX=Math.min(e.minX,this.w.labelData.labels[t][a]),e.initialMinX=Math.min(e.minX,this.w.labelData.labels[t][a]))};if(this.w.axisFlags.isXNumeric&&i(),this.w.axisFlags.noLabelsProvided&&0===t.xaxis.categories.length&&(e.maxX=this.w.labelData.labels[this.w.labelData.labels.length-1],e.initialMaxX=this.w.labelData.labels[this.w.labelData.labels.length-1],e.minX=1,e.initialMinX=1),this.w.axisFlags.isXNumeric||this.w.axisFlags.noLabelsProvided||this.w.axisFlags.dataFormatXNumeric){let i=10;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);else if("dataPoints"===t.xaxis.tickAmount){if(this.w.seriesData.series.length>1&&(i=this.w.seriesData.series[e.maxValsInArrayIndex].length-1),this.w.axisFlags.isXNumeric){const t=Math.round(e.maxX-e.minX);t<30&&(i=t)}}else i=t.xaxis.tickAmount;if(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&&!this.w.axisFlags.dataFormatXNumeric){const t=[];for(let a=e.minX-1;a<e.maxX;a++)t.push(a+1);e.xAxisScale={result:t,niceMin:t[0],niceMax:t[t.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(0,i,i,0,t.xaxis.stepSize),this.w.axisFlags.noLabelsProvided&&this.w.labelData.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,this.w.labelData.labels.length,i-1,0,t.xaxis.stepSize),this.w.seriesData.seriesX=this.w.labelData.labels.slice());a&&(this.w.labelData.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&this.w.labelData.labels.length&&(e.xTickAmount=this.w.labelData.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}setZRange(){const e=this.w.globals;if(this.w.axisFlags.isDataXYZ)for(let t=0;t<this.w.seriesData.series.length;t++)if(void 0!==this.w.seriesData.seriesZ[t])for(let a=0;a<this.w.seriesData.seriesZ[t].length;a++)null!==this.w.seriesData.seriesZ[t][a]&&qDe.isNumber(this.w.seriesData.seriesZ[t][a])&&(e.maxZ=Math.max(e.maxZ,this.w.seriesData.seriesZ[t][a]),e.minZ=Math.min(e.minZ,this.w.seriesData.seriesZ[t][a]))}_handleSingleDataPoint(){const e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){const a=new KDe(this.w);if("datetime"===t.xaxis.type){const i=a.getDate(e.minX);t.xaxis.labels.datetimeUTC?i.setUTCDate(i.getUTCDate()-2):i.setDate(i.getDate()-2),e.minX=new Date(i).getTime();const s=a.getDate(e.maxX);t.xaxis.labels.datetimeUTC?s.setUTCDate(s.getUTCDate()+2):s.setDate(s.getDate()+2),e.maxX=new Date(s).getTime()}else("numeric"===t.xaxis.type||"category"===t.xaxis.type&&!this.w.axisFlags.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}_getMinXDiff(){const e=this.w.globals;this.w.axisFlags.isXNumeric&&this.w.seriesData.seriesX.forEach(t=>{if(t.length){1===t.length&&t.push(this.w.seriesData.seriesX[e.maxValsInArrayIndex][this.w.seriesData.seriesX[e.maxValsInArrayIndex].length-1]);const a=t.slice();a.sort((e,t)=>e-t),a.forEach((t,i)=>{if(i>0){const s=t-a[i-1];s>0&&(e.minXDiff=Math.min(s,e.minXDiff))}}),1!==e.dataPoints&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)}})}_setStackedMinMax(){const e=this.w.globals;if(!this.w.seriesData.series.length)return;let t=this.w.labelData.seriesGroups;t.length||(t=[this.w.seriesData.seriesNames.map(e=>e)]);const a={},i={};t.forEach(t=>{a[t]=[],i[t]=[];this.w.config.series.map((e,a)=>t.indexOf(this.w.seriesData.seriesNames[a])>-1?a:null).filter(e=>null!==e).forEach(s=>{var n,o,r,l;for(let c=0;c<this.w.seriesData.series[e.maxValsInArrayIndex].length;c++){void 0===a[t][c]&&(a[t][c]=0,i[t][c]=0);(this.w.config.chart.stacked&&!e.comboCharts||this.w.config.chart.stacked&&e.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null==(o=null==(n=this.w.config.series)?void 0:n[s])?void 0:o.type)||"column"===(null==(l=null==(r=this.w.config.series)?void 0:r[s])?void 0:l.type)))&&null!==this.w.seriesData.series[s][c]&&qDe.isNumber(this.w.seriesData.series[s][c])&&(this.w.seriesData.series[s][c]>0?a[t][c]+=parseFloat(String(this.w.seriesData.series[s][c]))+1e-4:i[t][c]+=parseFloat(String(this.w.seriesData.series[s][c])))}})}),Object.entries(a).forEach(([t])=>{a[t].forEach((s,n)=>{e.maxY=Math.max(e.maxY,a[t][n]),e.minY=Math.min(e.minY,i[t][n])})})}}class NMe{constructor(e,{theme:t=null,timeScale:a=null}={},i){this.w=e,this.elgrid=i,this.xaxisFontSize=e.config.xaxis.labels.style.fontSize,this.axisFontFamily=e.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=e.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===e.config.chart.type&&e.config.plotOptions.bar.horizontal,this.xAxisoffX="bottom"===e.config.xaxis.position?e.layout.gridHeight:0,this.drawnLabels=[],this.axesUtils=new kMe(e,{theme:t,timeScale:a})}drawYaxis(e){const t=this.w,a=new fMe(this.w),i=t.config.yaxis[e].labels.style,{fontSize:s,fontFamily:n,fontWeight:o}=i,r=a.group({class:"apexcharts-yaxis",rel:e,transform:`translate(${t.globals.translateYAxisX[e]}, 0)`});if(this.axesUtils.isYAxisHidden(e))return r;const l=a.group({class:"apexcharts-yaxis-texts-g"});r.add(l);const c=t.globals.yAxisScale[e].result.length-1,d=t.layout.gridHeight/c,u=t.formatters.yLabelFormatters[e],p=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice());if(t.config.yaxis[e].labels.show){let r=t.layout.translateY+t.config.yaxis[e].labels.offsetY;t.globals.isBarHorizontal?r=0:"heatmap"===t.config.chart.type&&(r-=d/2),r+=parseInt(s,10)/3;let h=null;for(let g=c;g>=0;g--){const c=u(p[g],g,t);let m=t.config.yaxis[e].labels.padding;t.config.yaxis[e].opposite&&0!==t.config.yaxis.length&&(m*=-1);const f=this.getTextAnchor(t.config.yaxis[e].labels.align,t.config.yaxis[e].opposite),_=this.axesUtils.getYAxisForeColor(i.colors,e),b=Array.isArray(_)?_[g]:_,v=Array.from(t.dom.baseEl.querySelectorAll(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-label tspan`)).map(e=>e.textContent),y=a.drawText({x:m,y:r,text:v.includes(c)&&!t.config.yaxis[e].labels.showDuplicates?"":c,textAnchor:f,fontSize:s,fontFamily:n,fontWeight:o,maxWidth:t.config.yaxis[e].labels.maxWidth,foreColor:b,isPlainText:!1,cssClass:`apexcharts-yaxis-label ${i.cssClass}`});l.add(y),this.addTooltip(y,c),null===h&&(h=y),0!==t.config.yaxis[e].labels.rotate&&this.rotateLabel(a,y,h,t.config.yaxis[e].labels.rotate),r+=d}}return this.addYAxisTitle(a,r,e),this.addAxisBorder(a,r,e,c,d),r}getTextAnchor(e,t){return"left"===e?"start":"center"===e?"middle":"right"===e?"end":t?"start":"end"}addTooltip(e,t){const a=jDe.createElementNS(_Me,"title");a.textContent=Array.isArray(t)?t.join(" "):t,e.node.appendChild(a)}rotateLabel(e,t,a,i){const s=e.rotateAroundCenter(a.node),n=e.rotateAroundCenter(t.node);t.node.setAttribute("transform",`rotate(${i} ${s.x} ${n.y})`)}addYAxisTitle(e,t,a){const i=this.w;if(void 0!==i.config.yaxis[a].title.text){const s=e.group({class:"apexcharts-yaxis-title"}),n=i.config.yaxis[a].opposite?i.globals.translateYAxisX[a]:0,o=e.drawText({x:n,y:i.layout.gridHeight/2+i.layout.translateY+i.config.yaxis[a].title.offsetY,text:i.config.yaxis[a].title.text,textAnchor:"end",foreColor:i.config.yaxis[a].title.style.color,fontSize:i.config.yaxis[a].title.style.fontSize,fontWeight:i.config.yaxis[a].title.style.fontWeight,fontFamily:i.config.yaxis[a].title.style.fontFamily,cssClass:`apexcharts-yaxis-title-text ${i.config.yaxis[a].title.style.cssClass}`});s.add(o),t.add(s)}}addAxisBorder(e,t,a,i,s){const n=this.w,o=n.config.yaxis[a].axisBorder;let r=31+o.offsetX;if(n.config.yaxis[a].opposite&&(r=-31-o.offsetX),o.show){const a=e.drawLine(r,n.layout.translateY+o.offsetY-2,r,n.layout.gridHeight+n.layout.translateY+o.offsetY+2,o.color,0,o.width);t.add(a)}n.config.yaxis[a].axisTicks.show&&this.axesUtils.drawYAxisTicks(r,i,o,n.config.yaxis[a].axisTicks,a,s,t)}drawYaxisInversed(e){const t=this.w,a=new fMe(this.w),i=a.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),s=a.group({class:"apexcharts-xaxis-texts-g",transform:`translate(${t.layout.translateXAxisX}, ${t.layout.translateXAxisY})`});i.add(s);let n=t.globals.yAxisScale[e].result.length-1;const o=t.layout.gridWidth/n+.1;let r=o+t.config.xaxis.labels.offsetX;const l=t.formatters.xLabelFormatter;let c=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice());const d=t.labelData.timescaleLabels;if(d.length>0&&(this.xaxisLabels=d.slice(),c=d.slice(),n=c.length),t.config.xaxis.labels.show)for(let u=d.length?0:n;d.length?u<d.length:u>=0;d.length?u++:u--){let i=null==l?void 0:l(c[u],u,t),n=t.layout.gridWidth+t.globals.padHorizontal-(r-o+t.config.xaxis.labels.offsetX);if(d.length){const e=this.axesUtils.getLabel(c,d,n,u,this.drawnLabels,this.xaxisFontSize);n=e.x,i=e.text,this.drawnLabels.push(e.text),0===u&&t.globals.skipFirstTimelinelabel&&(i=""),u===c.length-1&&t.globals.skipLastTimelinelabel&&(i="")}const p=a.drawText({x:n,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-("top"===t.config.xaxis.position?t.layout.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:i,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.axisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:`apexcharts-xaxis-label ${t.config.xaxis.labels.style.cssClass}`});s.add(p),this.addTooltip(p,i),r+=o}return this.inversedYAxisTitleText(i),this.inversedYAxisBorder(i),i}inversedYAxisBorder(e){const t=this.w,a=new fMe(this.w),i=t.config.xaxis.axisBorder;if(i.show){let s=0;"bar"===t.config.chart.type&&t.axisFlags.isXNumeric&&(s-=15);const n=a.drawLine(t.globals.padHorizontal+s+i.offsetX,this.xAxisoffX,t.layout.gridWidth,this.xAxisoffX,i.color,0,i.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(n):e.add(n)}}inversedYAxisTitleText(e){const t=this.w,a=new fMe(this.w);if(void 0!==t.config.xaxis.title.text){const i=a.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),s=a.drawText({x:t.layout.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(s),e.add(i)}}yAxisTitleRotate(e,t){const a=this.w,i=new fMe(this.w),s=a.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-texts-g`),n=s?s.getBoundingClientRect():{width:0,height:0},o=a.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-title text`),r=o?o.getBoundingClientRect():{width:0,height:0};if(o){const s=this.xPaddingForYAxisTitle(e,n,r,t);o.setAttribute("x",String(s.xPos-(t?10:0)));const l=i.rotateAroundCenter(o);o.setAttribute("transform",`rotate(${t?-1*a.config.yaxis[e].title.rotate:a.config.yaxis[e].title.rotate} ${l.x} ${l.y})`)}}xPaddingForYAxisTitle(e,t,a,i){const s=this.w;let n=0,o=10;return void 0===s.config.yaxis[e].title.text||e<0?{xPos:n,padd:0}:(i?n=t.width+s.config.yaxis[e].title.offsetX+a.width/2+o/2:(n=-1*t.width+s.config.yaxis[e].title.offsetX+o/2+a.width/2,s.globals.isBarHorizontal&&(o=25,n=-1*t.width-s.config.yaxis[e].title.offsetX-o)),{xPos:n,padd:o})}setYAxisXPosition(e,t){const a=this.w;let i=0,s=0,n=18,o=1;a.config.yaxis.length>1&&(this.multipleYs=!0),a.config.yaxis.forEach((r,l)=>{const c=a.globals.ignoreYAxisIndexes.includes(l)||!r.show||r.floating||0===e[l].width,d=e[l].width+t[l].width;r.opposite?a.globals.isBarHorizontal?(s=a.layout.gridWidth+a.layout.translateX-1,a.globals.translateYAxisX[l]=s-r.labels.offsetX):(s=a.layout.gridWidth+a.layout.translateX+o,c||(o+=d+20),a.globals.translateYAxisX[l]=s-r.labels.offsetX+20):(i=a.layout.translateX-n,c||(n+=d+20),a.globals.translateYAxisX[l]=i+r.labels.offsetX)})}setYAxisTextAlignments(){const e=this.w;Array.from(e.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach((t,a)=>{const i=e.config.yaxis[a];if(i&&!i.floating&&void 0!==i.labels.align){const t=e.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${a}'] .apexcharts-yaxis-texts-g`),s=Array.from(e.dom.baseEl.querySelectorAll(`.apexcharts-yaxis[rel='${a}'] .apexcharts-yaxis-label`)),n=t.getBoundingClientRect();s.forEach(e=>{e.setAttribute("text-anchor",i.labels.align)}),"left"!==i.labels.align||i.opposite?"center"===i.labels.align?t.setAttribute("transform",`translate(${n.width/2*(i.opposite?1:-1)}, 0)`):"right"===i.labels.align&&i.opposite&&t.setAttribute("transform",`translate(${n.width}, 0)`):t.setAttribute("transform",`translate(-${n.width}, 0)`)}})}}class IMe{constructor(e,t){this.w=e,this.ctx=t,this.documentEvent=this.documentEvent.bind(this)}addEventListener(e,t){const a=this.w;Object.prototype.hasOwnProperty.call(a.globals.events,e)?a.globals.events[e].push(t):a.globals.events[e]=[t]}removeEventListener(e,t){const a=this.w;if(!Object.prototype.hasOwnProperty.call(a.globals.events,e))return;const i=a.globals.events[e].indexOf(t);-1!==i&&a.globals.events[e].splice(i,1)}fireEvent(e,t){const a=this.w;if(!Object.prototype.hasOwnProperty.call(a.globals.events,e))return;t&&t.length||(t=[]);const i=a.globals.events[e],s=i.length;for(let n=0;n<s;n++)i[n].apply(null,t)}setupEventHandlers(){const e=this.w,t=this.ctx,a=e.dom.baseEl.querySelector(e.globals.chartClass);this.ctx.eventList.forEach(i=>{null==a||a.addEventListener(i,a=>{const i=null===a.target.getAttribute("i")&&-1!==e.interact.capturedSeriesIndex?e.interact.capturedSeriesIndex:a.target.getAttribute("i"),s=null===a.target.getAttribute("j")&&-1!==e.interact.capturedDataPointIndex?e.interact.capturedDataPointIndex:a.target.getAttribute("j"),n=Object.assign({},e,{seriesIndex:e.globals.axisCharts?i:0,dataPointIndex:s});"keydown"===a.type?e.config.chart.accessibility.enabled&&e.config.chart.accessibility.keyboard.enabled&&(t.ctx.keyboardNavigation&&t.ctx.keyboardNavigation.handleKey(a),"function"==typeof e.config.chart.events.keyDown&&e.config.chart.events.keyDown(a,t,n),t.ctx.events.fireEvent("keydown",[a,t,n])):"keyup"===a.type?e.config.chart.accessibility.enabled&&e.config.chart.accessibility.keyboard.enabled&&("function"==typeof e.config.chart.events.keyUp&&e.config.chart.events.keyUp(a,t,n),t.ctx.events.fireEvent("keyup",[a,t,n])):"mousemove"===a.type||"touchmove"===a.type?"function"==typeof e.config.chart.events.mouseMove&&e.config.chart.events.mouseMove(a,t,n):"mouseleave"===a.type||"touchleave"===a.type?"function"==typeof e.config.chart.events.mouseLeave&&e.config.chart.events.mouseLeave(a,t,n):("mouseup"===a.type&&1===a.which||"touchend"===a.type)&&("function"==typeof e.config.chart.events.click&&e.config.chart.events.click(a,t,n),t.ctx.events.fireEvent("click",[a,t,n]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(t=>{e.dom.baseEl.addEventListener(t,this.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}documentEvent(e){const t=this.w,a=e.target.className;if("click"===e.type){const e=t.dom.baseEl.querySelector(".apexcharts-menu");e&&e.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==a&&e.classList.remove("apexcharts-menu-open")}t.interact.clientX="touchmove"===e.type?e.touches[0].clientX:e.clientX,t.interact.clientY="touchmove"===e.type?e.touches[0].clientY:e.clientY}}class DMe{constructor(e){this.w=e}setCurrentLocaleValues(e){let t=this.w.config.chart.locales;const a=VDe.getApex();a.chart&&a.chart.locales&&a.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(a.chart.locales));const i=t.filter(t=>t.name===e)[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");{const e=qDe.extend(eMe,i);this.w.globals.locale=e.options}}}class MMe{constructor(e,t){this.w=e,this.ctx=t}drawAxis(e,t){const a=this.w.globals,i=this.w.config,s=new TMe(this.w,this.ctx,t),n=new NMe(this.w,{theme:this.ctx.theme,timeScale:this.ctx.timeScale},t);if(a.axisCharts&&"radar"!==e){let e,t;a.isBarHorizontal?(t=n.drawYaxisInversed(0),e=s.drawXaxisInversed(0),this.w.dom.elGraphical.add(e),this.w.dom.elGraphical.add(t)):(e=s.drawXaxis(),this.w.dom.elGraphical.add(e),i.yaxis.map((e,i)=>{if(-1===a.ignoreYAxisIndexes.indexOf(i)&&(t=n.drawYaxis(i),this.w.dom.Paper.add(t),"back"===this.w.config.grid.position)){const e=this.w.dom.Paper.children()[1];e&&(e.remove(),this.w.dom.Paper.add(e))}}))}}}class LMe{constructor(e){this.w=e}drawXCrosshairs(){const e=this.w,t=new fMe(this.w),a=new mMe(this.w),i=e.config.xaxis.crosshairs.fill.gradient,s=e.config.xaxis.crosshairs.dropShadow,n=e.config.xaxis.crosshairs.fill.type,o=i.colorFrom,r=i.colorTo,l=i.opacityFrom,c=i.opacityTo,d=i.stops,u=s.enabled,p=s.left,h=s.top,g=s.blur,m=s.color,f=s.opacity;let _=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){"gradient"===n&&(_=t.drawGradient("vertical",o,r,l,c,null,d,[]));let i=t.drawRect();1===e.config.xaxis.crosshairs.width&&(i=t.drawLine(0,0,0,0));let s=e.layout.gridHeight;(!qDe.isNumber(s)||s<0)&&(s=0);let b=e.config.xaxis.crosshairs.width;(!qDe.isNumber(b)||Number(b)<0)&&(b=0),i.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:s,width:b,height:s,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}),u&&(i=a.dropShadow(i,{left:p,top:h,blur:g,color:m,opacity:f})),e.dom.elGraphical.add(i)}}drawYCrosshairs(){const e=this.w,t=new fMe(this.w),a=e.config.yaxis[0].crosshairs,i=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){const s=t.drawLine(-i,0,e.layout.gridWidth+i,0,a.stroke.color,a.stroke.dashArray,a.stroke.width);s.attr({class:"apexcharts-ycrosshairs"}),e.dom.elGraphical.add(s)}const s=t.drawLine(-i,0,e.layout.gridWidth+i,0,a.stroke.color,0,0);s.attr({class:"apexcharts-ycrosshairs-hidden"}),e.dom.elGraphical.add(s)}}function PMe(e,t){if(!qDe.isObject(e)||!qDe.isObject(t))return void 0!==t?t:e;const a=FDe({},e);for(const i of Object.keys(t)){const s=t[i];void 0!==s&&(qDe.isObject(s)&&qDe.isObject(e[i])?a[i]=PMe(e[i],s):a[i]=s)}return a}class FMe{constructor(e){this.w=e,this._activeBreakpoint=null}checkResponsiveConfig(e){const t=this.w,a=t.config;if(0===a.responsive.length)return;const i=a.responsive.slice();i.sort((e,t)=>e.breakpoint>t.breakpoint?1:t.breakpoint>e.breakpoint?-1:0).reverse();const s=new aMe({}),n=(e={})=>{var a;const n=i[0].breakpoint,o=VDe.isBrowser()?window.innerWidth>0?window.innerWidth:screen.width:0;if(o>n){if(null!==this._activeBreakpoint){if(!t.globals.initialConfig)return;const a=qDe.clone(t.globals.initialConfig);a.series=qDe.clone(t.config.series);const i=rMe.extendArrayProps(s,a,t);e=qDe.extend(i,e),this.overrideResponsiveOptions(e),this._activeBreakpoint=null}}else for(let r=0;r<i.length;r++)if(o<i[r].breakpoint){const n=(null==(a=i[r].options)?void 0:a.yaxis)?qDe.clone(i[r].options.yaxis):null;if(e=rMe.extendArrayProps(s,i[r].options,t),e=qDe.extend(t.config,e),Array.isArray(t.config.yaxis)&&n){const a=Array.isArray(n)?n:[n];e=$De(FDe({},e),{yaxis:t.config.yaxis.map((e,t)=>PMe(e,a[t]))})}this.overrideResponsiveOptions(e),this._activeBreakpoint=i[r].breakpoint}};if(e){let a=rMe.extendArrayProps(s,e,t);a=qDe.extend(t.config,a),a=qDe.extend(a,e),n(a)}else n({})}overrideResponsiveOptions(e){const t=new aMe(e).init({responsiveOverride:!0});this.w.config=t}}class $Me{constructor(e,{toggleDataSeries:t,revertDefaultAxisMinMax:a,updateSeries:i}={}){this.w=e,this._toggleDataSeries=t||null,this._revertDefaultAxisMinMax=a||null,this._updateSeries=i||null,this.legendInactiveClass="legend-mouseover-inactive"}clearSeriesCache(){const e=this.w;e.globals.cachedSelectors&&(delete e.globals.cachedSelectors.allSeriesEls,delete e.globals.cachedSelectors.highlightSeriesEls)}getAllSeriesEls(){const e=this.w,t="allSeriesEls";return e.globals.cachedSelectors[t]||(e.globals.cachedSelectors[t]=e.dom.baseEl.getElementsByClassName("apexcharts-series")),e.globals.cachedSelectors[t]}getSeriesByName(e){return this.w.dom.baseEl.querySelector(`.apexcharts-inner .apexcharts-series[seriesName='${qDe.escapeString(e)}']`)}isSeriesHidden(e){var t;const a=this.getSeriesByName(e),i=parseInt(null!=(t=a.getAttribute("data:realIndex"))?t:"0",10);return{isHidden:a.classList.contains("apexcharts-series-collapsed"),realIndex:i}}addCollapsedClassToSeries(e,t){$Me.addCollapsedClassToSeries(this.w,e,t)}static addCollapsedClassToSeries(e,t,a){function i(e){for(let i=0;i<e.length;i++)e[i].index===a&&t.node.classList.add("apexcharts-series-collapsed")}i(e.globals.collapsedSeries),i(e.globals.ancillaryCollapsedSeries)}toggleSeries(e){var t;const a=this.isSeriesHidden(e);return null==(t=this._toggleDataSeries)||t.call(this,a.realIndex,a.isHidden),a.isHidden}showSeries(e){var t;const a=this.isSeriesHidden(e);a.isHidden&&(null==(t=this._toggleDataSeries)||t.call(this,a.realIndex,!0))}hideSeries(e){var t;const a=this.isSeriesHidden(e);a.isHidden||null==(t=this._toggleDataSeries)||t.call(this,a.realIndex,!1)}resetSeries(e=!0,t=!0,a=!0){var i,s;const n=this.w;this.clearSeriesCache();let o=qDe.clone(n.globals.initialSeries);n.globals.previousPaths=[],a?(n.globals.collapsedSeries=[],n.globals.ancillaryCollapsedSeries=[],n.globals.collapsedSeriesIndices=[],n.globals.ancillaryCollapsedSeriesIndices=[]):o=this.emptyCollapsedSeries(o),n.config.series=o,e&&(t&&(n.interact.zoomed=!1,null==(i=this._revertDefaultAxisMinMax)||i.call(this)),null==(s=this._updateSeries)||s.call(this,o,n.config.chart.animations.dynamicAnimation.enabled))}emptyCollapsedSeries(e){const t=this.w;for(let a=0;a<e.length;a++)t.globals.collapsedSeriesIndices.indexOf(a)>-1&&(e[a].data=[]);return e}highlightSeries(e){var t;const a=this.w,i=this.getSeriesByName(e),s=parseInt(null!=(t=null==i?void 0:i.getAttribute("data:realIndex"))?t:"",10),n="highlightSeriesEls";let o=a.globals.cachedSelectors[n];o||(o=a.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),a.globals.cachedSelectors[n]=o);let r=null,l=null,c=null;if(a.globals.axisCharts||"radialBar"===a.config.chart.type)if(a.globals.axisCharts){r=a.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${s}']`),l=a.dom.baseEl.querySelector(`.apexcharts-datalabels[data\\:realIndex='${s}']`);const e=a.globals.seriesYAxisReverseMap[s];c=a.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}']`)}else r=a.dom.baseEl.querySelector(`.apexcharts-series[rel='${s+1}']`);else r=a.dom.baseEl.querySelector(`.apexcharts-series[rel='${s+1}'] path`);for(let d=0;d<o.length;d++){o[d].classList.add(this.legendInactiveClass)}if(r){if(!a.globals.axisCharts){const e=r.parentNode;null==e||e.classList.remove(this.legendInactiveClass)}r.classList.remove(this.legendInactiveClass),null!==l&&l.classList.remove(this.legendInactiveClass),null!==c&&c.classList.remove(this.legendInactiveClass)}else for(let d=0;d<o.length;d++){o[d].classList.remove(this.legendInactiveClass)}}toggleSeriesOnHover(e,t){const a=this.w;t||(t=e.target);const i=a.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if("mousemove"===e.type){const e=parseInt(t.getAttribute("rel"),10)-1;this.highlightSeries(a.seriesData.seriesNames[e])}else if("mouseout"===e.type)for(let s=0;s<i.length;s++)i[s].classList.remove(this.legendInactiveClass)}highlightRangeInSeries(e,t){const a=this.w,i=a.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),s=e=>{for(let t=0;t<i.length;t++){const a=i[t].classList[e];"function"==typeof a&&a.call(i[t].classList,this.legendInactiveClass)}},n=(e,t)=>{for(let a=0;a<i.length;a++){const s=Number(i[a].getAttribute("val"));s>=e.from&&(s<e.to||e.to===t&&s===t)&&i[a].classList.remove(this.legendInactiveClass)}};if("mousemove"===e.type){const e=parseInt(t.getAttribute("rel"),10)-1;s("add");const i=a.config.plotOptions.heatmap.colorScale.ranges;n(i[e],i.reduce((e,t)=>Math.max(e,t.to),0))}else"mouseout"===e.type&&s("remove")}getActiveConfigSeriesIndex(e="asc",t=[]){const a=this.w;let i=0;if(a.config.series.length>1){const s=a.config.series.map((e,i)=>e.data&&e.data.length>0&&-1===a.globals.collapsedSeriesIndices.indexOf(i)&&(!a.globals.comboCharts||0===t.length||t.length&&t.indexOf(a.config.series[i].type)>-1)?i:-1);for(let t="asc"===e?0:s.length-1;"asc"===e?t<s.length:t>=0;"asc"===e?t++:t--)if(-1!==s[t]){i=s[t];break}}return i}getBarSeriesIndices(){return this.w.globals.comboCharts?this.w.config.series.map((e,t)=>"bar"===e.type||"column"===e.type?t:-1).filter(e=>-1!==e):this.w.config.series.map((e,t)=>t)}getPreviousPaths(){var e,t,a,i;const s=this.w;if(!s.globals.axisCharts)return void(s.globals.previousPaths=s.seriesData.series);function n(e,t,a){const i=e[t].childNodes,n={type:a,paths:[],realIndex:e[t].getAttribute("data:realIndex")};for(let s=0;s<i.length;s++)if(i[s].hasAttribute("pathTo")){const e=i[s].getAttribute("pathTo");n.paths.push({d:e})}s.globals.previousPaths.push(n)}s.globals.previousPaths=[];["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(e=>{const t=(a=e,s.dom.baseEl.querySelectorAll(`.apexcharts-${a}-series .apexcharts-series`));var a;for(let i=0;i<t.length;i++)n(t,i,e)});const o=s.dom.baseEl.querySelectorAll(`.apexcharts-${s.config.chart.type} .apexcharts-series`);if(o.length>0)for(let r=0;r<o.length;r++){const n=s.dom.baseEl.querySelectorAll(`.apexcharts-${s.config.chart.type} .apexcharts-series[data\\:realIndex='${r}'] rect`),o=[];for(let s=0;s<n.length;s++){const r=e=>n[s].getAttribute(e),l={x:parseFloat(null!=(e=r("x"))?e:"0"),y:parseFloat(null!=(t=r("y"))?t:"0"),width:parseFloat(null!=(a=r("width"))?a:"0"),height:parseFloat(null!=(i=r("height"))?i:"0")};o.push({rect:l,color:n[s].getAttribute("color")})}s.globals.previousPaths.push(o)}}clearPreviousPaths(){const e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}handleNoData(){const e=this.w,t=e.config.noData,a=new fMe(this.w);let i=e.globals.svgWidth/2,s=e.globals.svgHeight/2,n="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,"left"===t.align?(i=10,n="start"):"right"===t.align&&(i=e.globals.svgWidth-10,n="end"),"top"===t.verticalAlign?s=50:"bottom"===t.verticalAlign&&(s=e.globals.svgHeight-50),i+=t.offsetX,s=s+parseInt(t.style.fontSize,10)+2+t.offsetY,void 0!==t.text&&""!==t.text){const o=a.drawText({x:i,y:s,text:t.text,textAnchor:n,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,cssClass:"apexcharts-text-nodata"});e.dom.Paper.add(o)}}setNullSeriesToZeroValues(e){const t=this.w;for(let a=0;a<e.length;a++)if(0===e[a].length)for(let i=0;i<e[t.globals.maxValsInArrayIndex].length;i++)e[a].push(0);return e}hasAllSeriesEqualX(){let e=!0;const t=this.w,a=this.filteredSeriesX();for(let i=0;i<a.length-1;i++)if(a[i][0]!==a[i+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}filteredSeriesX(){return this.w.seriesData.seriesX.map(e=>e.length>0?e:[])}}class BMe{constructor(e){this.w=e,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}checkHeatmapDistributed(){const{chart:e,plotOptions:t}=this.w.config;return"treemap"===e.type&&t.treemap&&t.treemap.distributed||"heatmap"===e.type&&t.heatmap&&t.heatmap.distributed}checkBarDistributed(){const{chart:e,plotOptions:t}=this.w.config;return t.bar&&t.bar.distributed&&("bar"===e.type||"rangeBar"===e.type)}init(){this.setDefaultColors()}setDefaultColors(){var e;const t=this.w,a=new qDe;t.dom.elWrap.classList.add(`apexcharts-theme-${t.config.theme.mode||"light"}`);const i=null==(e=t.config.theme.accessibility)?void 0:e.colorBlindMode;if(i){t.globals.colors=this.getColorBlindColors(i),this.applySeriesColors(t.seriesData.seriesColors,t.globals.colors);const e=t.globals.colors.slice();return this.pushExtraColors(t.globals.colors),this.applyColorTypes(["fill","stroke"],e),this.applyDataLabelsColors(e),this.applyRadarPolygonsColors(),this.applyMarkersColors(e),void("highContrast"===i&&t.dom.elWrap.classList.add("apexcharts-high-contrast"))}const s=[...t.config.colors||t.config.fill.colors||[]];t.globals.colors=this.getColors(s),this.applySeriesColors(t.seriesData.seriesColors,t.globals.colors),t.config.theme.monochrome.enabled&&(t.globals.colors=this.getMonochromeColors(t.config.theme.monochrome,t.seriesData.series,a));const n=t.globals.colors.slice();this.pushExtraColors(t.globals.colors),this.applyColorTypes(["fill","stroke"],n),this.applyDataLabelsColors(n),this.applyRadarPolygonsColors(),this.applyMarkersColors(n)}getColors(e){const t=this.w;return e&&0!==e.length?Array.isArray(e)&&e.length>0&&"function"==typeof e[0]?(this.isColorFn=!0,t.config.series.map((a,i)=>{const s=e[i]||e[0];return"function"==typeof s?s({value:t.globals.axisCharts?t.seriesData.series[i][0]||0:t.seriesData.series[i],seriesIndex:i,dataPointIndex:i,w:this.w}):s})):e:this.predefined()}applySeriesColors(e,t){e.forEach((e,a)=>{e&&(t[a]=e)})}getMonochromeColors(e,t,a){const{color:i,shadeIntensity:s,shadeTo:n}=e,o=this.isBarDistributed||this.isHeatmapDistributed?t[0].length*t.length:t.length,r=1/(o/s);let l=0;return Array.from({length:o},()=>{const e="dark"===n?a.shadeColor(-1*l,i):a.shadeColor(l,i);return l+=r,e})}applyColorTypes(e,t){const a=this.w;e.forEach(e=>{a.globals[e].colors=void 0===a.config[e].colors?this.isColorFn?a.config.colors:t:a.config[e].colors.slice(),this.pushExtraColors(a.globals[e].colors)})}applyDataLabelsColors(e){const t=this.w;t.globals.dataLabels.style.colors=void 0===t.config.dataLabels.style.colors?e:t.config.dataLabels.style.colors.slice(),this.pushExtraColors(t.globals.dataLabels.style.colors,50)}applyRadarPolygonsColors(){const e=this.w;e.globals.radarPolygons.fill.colors=void 0===e.config.plotOptions.radar.polygons.fill.colors?["dark"===e.config.theme.mode?"#343A3F":"none"]:e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20)}applyMarkersColors(e){const t=this.w;t.globals.markers.colors=void 0===t.config.markers.colors?e:t.config.markers.colors.slice(),this.pushExtraColors(t.globals.markers.colors)}pushExtraColors(e,t,a=null){const i=this.w;let s=t||i.seriesData.series.length;if(null===a&&(a=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===i.config.chart.type&&i.config.plotOptions.heatmap&&i.config.plotOptions.heatmap.colorScale.inverse),a&&i.seriesData.series.length&&(s=i.seriesData.series[i.globals.maxValsInArrayIndex].length*i.seriesData.series.length),e.length<s){const t=s-e.length;for(let a=0;a<t;a++)e.push(e[a])}}getColorBlindColors(e){const t={palette1:["#008FFB","#00A86F","#CA8501","#FF4560","#846DD5"],palette2:["#6978CB","#039DE2","#49A84D","#B39105","#D68000"],palette3:["#209FCC","#648291","#D4526E","#0FA783","#A19285"],palette4:["#2FA59D","#73A20B","#099DE1","#FD5D5D","#648291"],palette5:["#2B908F","#F56566","#2EAB16","#FA4443","#1EA2BD"],palette6:["#449DD1","#F86624","#EA3A4A","#9C63D1","#899E2A"],palette7:["#DF475B","#1B998B","#7E75B7","#F46036","#B1911B"],palette8:["#9C63D1","#F86624","#B38F04","#EA3A4A","#2FA2B3"],palette9:["#98776F","#A19285","#A8705E","#BA6560","#A0927F"],palette10:["#C91EFF","#A94BFD","#6C6AFE","#2983FF","#009ED8"],cvdDeuteranopia:["#0072B2","#E69F00","#56B4E9","#009E73","#F0E442","#D55E00","#CC79A7"],cvdProtanopia:["#0077BB","#EE7733","#009988","#EE3377","#BBBBBB","#33BBEE","#CC3311"],cvdTritanopia:["#CC3311","#009988","#EE7733","#0077BB","#EE3377","#BBBBBB","#33BBEE"],highContrast:["#005A9C","#C00000","#007A33","#6C3483","#7B3F00","#0097A7","#4A235A"]};return({deuteranopia:t.cvdDeuteranopia,protanopia:t.cvdProtanopia,tritanopia:t.cvdTritanopia,highContrast:t.highContrast}[e]||t.palette1).slice()}updateThemeOptions(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};const t=e.theme.mode,a="dark"===t?"palette4":"light"===t?"palette1":e.theme.palette||"palette1",i="dark"===t?"#f6f7f8":"light"===t?"#373d3f":e.chart.foreColor||"#373d3f";return e.tooltip.theme=t||"light",e.chart.foreColor=i,e.theme.palette=a,e}predefined(){const e={palette1:["#008FFB","#00A86F","#CA8501","#FF4560","#846DD5"],palette2:["#6978CB","#039DE2","#49A84D","#B39105","#D68000"],palette3:["#209FCC","#648291","#D4526E","#0FA783","#A19285"],palette4:["#2FA59D","#73A20B","#099DE1","#FD5D5D","#648291"],palette5:["#2B908F","#F56566","#2EAB16","#FA4443","#1EA2BD"],palette6:["#449DD1","#F86624","#EA3A4A","#9C63D1","#899E2A"],palette7:["#DF475B","#1B998B","#7E75B7","#F46036","#B1911B"],palette8:["#9C63D1","#F86624","#B38F04","#EA3A4A","#2FA2B3"],palette9:["#98776F","#A19285","#A8705E","#BA6560","#A0927F"],palette10:["#C91EFF","#A94BFD","#6C6AFE","#2983FF","#009ED8"],cvdDeuteranopia:["#0072B2","#E69F00","#56B4E9","#009E73","#F0E442","#D55E00","#CC79A7"],cvdProtanopia:["#0077BB","#EE7733","#009988","#EE3377","#BBBBBB","#33BBEE","#CC3311"],cvdTritanopia:["#CC3311","#009988","#EE7733","#0077BB","#EE3377","#BBBBBB","#33BBEE"],highContrast:["#005A9C","#C00000","#007A33","#6C3483","#7B3F00","#0097A7","#4A235A"]};return e[this.w.config.theme.palette]||e.palette1}}class VMe{constructor(e){this.w=e}draw(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}drawTitleSubtitle(e){const t=this.w,a="title"===e?t.config.title:t.config.subtitle;let i=t.globals.svgWidth/2,s=a.offsetY,n="middle";if("left"===a.align?(i=10,n="start"):"right"===a.align&&(i=t.globals.svgWidth-10,n="end"),i+=a.offsetX,s=s+parseInt(a.style.fontSize,10)+a.margin/2,void 0!==a.text){const o=new fMe(this.w).drawText({x:i,y:s,text:a.text,textAnchor:n,fontSize:a.style.fontSize,fontFamily:a.style.fontFamily,fontWeight:a.style.fontWeight,foreColor:a.style.color,opacity:1});o.node.setAttribute("class",`apexcharts-${e}-text`),t.dom.Paper.add(o)}}}let UMe=class{constructor(e){this.w=e.w,this.dCtx=e}getTitleSubtitleCoords(e){const t=this.w;let a=0,i=0;const s="title"===e?t.config.title.floating:t.config.subtitle.floating,n=t.dom.baseEl.querySelector(`.apexcharts-${e}-text`);if(null!==n&&!s){const e=n.getBoundingClientRect();a=e.width,i=t.globals.axisCharts?e.height+5:e.height}return{width:a,height:i}}getLegendsRect(){const e=this.w,t=e.dom.elLegendWrap;e.config.legend.height||"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||t&&(t.style.maxHeight=e.globals.svgHeight/2+"px");const a=Object.assign({},qDe.getBoundingClientRect(t));return null!==t&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:a.x,y:a.y,height:a.height,width:0===a.height?0:a.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}getDatalabelsRect(){const e=this.w,t=[];e.config.series.forEach((a,i)=>{a.data.forEach((a,s)=>{const n=(o=e.seriesData.series[i][s],e.config.dataLabels.formatter(o,{seriesIndex:i,dataPointIndex:s,w:e}));var o;t.push(n)})});const a=qDe.getLargestStringFromArr(t),i=new fMe(this.w),s=e.config.dataLabels.style,n=i.getTextRects(a,parseInt(s.fontSize).toString(),s.fontFamily);return{width:1.05*n.width,height:n.height}}getLargestStringFromMultiArr(e,t){let a=e;if(this.w.axisFlags.isMultiLineX){const e=t.map(e=>Array.isArray(e)?e.length:1),i=Math.max(...e);a=t[e.indexOf(i)]}return a}};class HMe{constructor(e){this.w=e.w,this.dCtx=e}getxAxisLabelsCoords(){const e=this.w;let t,a=e.labelData.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&0===a.length&&(a=e.labelData.categoryLabels),e.labelData.timescaleLabels.length>0){const a=this.getxAxisTimeScaleLabelsCoords();t={width:a.width,height:a.height},e.layout.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==e.config.legend.position&&"right"!==e.config.legend.position||e.config.legend.floating?0:this.dCtx.lgRect.width;const i=e.formatters.xLabelFormatter;let s=qDe.getLargestStringFromArr(a),n=this.dCtx.dimHelpers.getLargestStringFromMultiArr(s,a);e.globals.isBarHorizontal&&(s=e.globals.yAxisScale[0].result.reduce((e,t)=>e.length>t.length?e:t,0),n=s);const o=new XDe(this.w),r=s;s=o.xLabelFormat(i,s,r,{i:void 0,dateFormatter:new KDe(this.w).formatDate,w:e}),n=o.xLabelFormat(i,n,r,{i:void 0,dateFormatter:new KDe(this.w).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&void 0===s||""===String(s).trim())&&(s="1",n=s);const l=new fMe(this.w);let c=l.getTextRects(s,e.config.xaxis.labels.style.fontSize),d=c;if(s!==n&&(d=l.getTextRects(n,e.config.xaxis.labels.style.fontSize)),t={width:c.width>=d.width?c.width:d.width,height:c.height>=d.height?c.height:d.height},t.width*a.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==e.config.xaxis.labels.rotate||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.layout.rotateXLabels=!0;const a=t=>l.getTextRects(t,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,`rotate(${e.config.xaxis.labels.rotate} 0 0)`,!1);c=a(s),s!==n&&(d=a(n)),t.height=(c.height>d.height?c.height:d.height)/1.5,t.width=c.width>d.width?c.width:d.width}}else e.layout.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}getxAxisGroupLabelsCoords(){var e;const t=this.w;if(!t.labelData.hasXaxisGroups)return{width:0,height:0};const a=(null==(e=t.config.xaxis.group.style)?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,i=t.labelData.groups.map(e=>e.title);let s;const n=qDe.getLargestStringFromArr(i),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,i),r=new fMe(this.w),l=r.getTextRects(n,a);let c=l;return n!==o&&(c=r.getTextRects(o,a)),s={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},t.config.xaxis.labels.show||(s={width:0,height:0}),{width:s.width,height:s.height}}getxAxisTitleCoords(){const e=this.w;let t=0,a=0;if(void 0!==e.config.xaxis.title.text){const i=new fMe(this.w).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=i.width,a=i.height}return{width:t,height:a}}getxAxisTimeScaleLabelsCoords(){const e=this.w;this.dCtx.timescaleLabels=e.labelData.timescaleLabels.slice();const t=this.dCtx.timescaleLabels.map(e=>e.value),a=t.reduce((e,t)=>void 0===e?0:e.length>t.length?e:t,0),i=new fMe(this.w).getTextRects(a,e.config.xaxis.labels.style.fontSize);return 1.05*i.width*t.length>e.layout.gridWidth&&0!==e.config.xaxis.labels.rotate&&(e.globals.overlappingXLabels=!0),i}additionalPaddingXLabels(e){const t=this.w,a=t.globals,i=t.config,s=i.xaxis.type,n=e.width;a.skipLastTimelinelabel=!1,a.skipFirstTimelinelabel=!1;const o=t.config.yaxis[0].opposite&&t.globals.isBarHorizontal,r=e=>{if(this.dCtx.timescaleLabels&&this.dCtx.timescaleLabels.length){const s=this.dCtx.timescaleLabels[0],o=this.dCtx.timescaleLabels[this.dCtx.timescaleLabels.length-1].position+n/1.75-this.dCtx.yAxisWidthRight,r=s.position-n/1.75+this.dCtx.yAxisWidthLeft,l="right"===t.config.legend.position&&this.dCtx.lgRect.width>0?this.dCtx.lgRect.width:0;o>a.svgWidth-t.layout.translateX-l&&(a.skipLastTimelinelabel=!0),r<-(e.show&&!e.floating||"bar"!==i.chart.type&&"candlestick"!==i.chart.type&&"rangeBar"!==i.chart.type&&"boxPlot"!==i.chart.type?10:n/1.75)&&(a.skipFirstTimelinelabel=!0)}else"datetime"===s?this.dCtx.gridPad.right<n&&!t.layout.rotateXLabels&&(a.skipLastTimelinelabel=!0):"datetime"!==s&&this.dCtx.gridPad.right<n/2-this.dCtx.yAxisWidthRight&&!t.layout.rotateXLabels&&!t.config.xaxis.labels.trim&&(this.dCtx.xPadRight=n/2+1)},l=(e,t)=>{i.yaxis.length>1&&(e=>-1!==a.collapsedSeriesIndices.indexOf(e))(t)||r(e)};i.yaxis.forEach((e,t)=>{o?(this.dCtx.gridPad.left<n&&(this.dCtx.xPadLeft=n/2+1),this.dCtx.xPadRight=n/2+1):l(e,t)})}}class zMe{constructor(e){this.w=e.w,this.dCtx=e}getyAxisLabelsCoords(){const e=this.w,t=[];let a=10;const i=new kMe(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale});return e.config.yaxis.map((s,n)=>{const o={seriesIndex:n,dataPointIndex:-1,w:e},r=e.globals.yAxisScale[n];let l=0;if(!i.isYAxisHidden(n)&&s.labels.show&&void 0!==s.labels.minWidth&&(l=s.labels.minWidth),!i.isYAxisHidden(n)&&s.labels.show&&r.result.length){const i=e.formatters.yLabelFormatters[n],c=r.niceMin===Number.MIN_VALUE?0:r.niceMin;let d=r.result.reduce((e,t)=>{var a,s;return(null==(a=String(i(e,o)))?void 0:a.length)>(null==(s=String(i(t,o)))?void 0:s.length)?e:t},c);d=i(d,o);let u=d;if(void 0!==d&&0!==d.length||(d=r.niceMax),1===String(d).length&&(d+=".0",u=d),e.globals.isBarHorizontal){a=0;const t=e.labelData.labels.slice();d=qDe.getLargestStringFromArr(t),d=i(d,{seriesIndex:n,dataPointIndex:-1,w:e}),u=this.dCtx.dimHelpers.getLargestStringFromMultiArr(d,t)}const p=new fMe(this.w),h="rotate(".concat(s.labels.rotate," 0 0)"),g=p.getTextRects(d,s.labels.style.fontSize,s.labels.style.fontFamily,h,!1);let m=g;d!==u&&(m=p.getTextRects(u,s.labels.style.fontSize,s.labels.style.fontFamily,h,!1)),t.push({width:(l>m.width||l>g.width?l:m.width>g.width?m.width:g.width)+a,height:m.height>g.height?m.height:g.height})}else t.push({width:0,height:0})}),t}getyAxisTitleCoords(){const e=this.w,t=[];return e.config.yaxis.map(e=>{if(e.show&&void 0!==e.title.text){const a=new fMe(this.w),i="rotate(".concat(e.title.rotate," 0 0)"),s=a.getTextRects(e.title.text,e.title.style.fontSize,e.title.style.fontFamily,i,!1);t.push({width:s.width,height:s.height})}else t.push({width:0,height:0})}),t}getTotalYAxisWidth(){const e=this.w;let t=0,a=0,i=0;const s=e.globals.yAxisScale.length>1?10:0,n=new kMe(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale}),o=(o,r)=>{const l=e.config.yaxis[r].floating;let c=0;o.width>0&&!l?(c=o.width+s,function(t){return e.globals.ignoreYAxisIndexes.indexOf(t)>-1}(r)&&(c=c-o.width-s)):c=l||n.isYAxisHidden(r)?0:5,e.config.yaxis[r].opposite?i+=c:a+=c,t+=c};return e.layout.yLabelsCoords.map((e,t)=>{o(e,t)}),e.layout.yTitleCoords.map((e,t)=>{o(e,t)}),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.layout.yLabelsCoords[0].width+e.layout.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=a,this.dCtx.yAxisWidthRight=i,t}}class YMe{constructor(e){this.w=e.w,this.dCtx=e}gridPadForColumnsInNumericAxis(e){const{w:t}=this,{config:a,globals:i}=t;if(i.noData||i.collapsedSeries.length+i.ancillaryCollapsedSeries.length===a.series.length)return 0;const s=e=>["bar","rangeBar","candlestick","boxPlot"].includes(e),n=a.chart.type;let o=0,r=s(n)?a.series.length:1;i.comboBarCount>0&&(r=i.comboBarCount),i.collapsedSeries.forEach(e=>{s(e.type)&&(r-=1)}),a.chart.stacked&&(r=1);const l=s(n)||i.comboBarCount>0;let c=Math.abs(i.initialMaxX-i.initialMinX);if(l&&t.axisFlags.isXNumeric&&!i.isBarHorizontal&&r>0&&0!==c){c<=3&&(c=i.dataPoints);const t=c/e;let s=i.minXDiff&&i.minXDiff/t>0?i.minXDiff/t:0;s>e/2&&(s/=2),o=s*parseInt(a.plotOptions.bar.columnWidth,10)/100,o<1&&(o=1),i.barPadForNumericAxis=o}return o}gridPadFortitleSubtitle(){const{w:e}=this,{globals:t}=e;let a=this.dCtx.isSparkline||!t.axisCharts?0:10;["title","subtitle"].forEach(i=>{void 0!==e.config[i].text?a+=e.config[i].margin:a+=this.dCtx.isSparkline||!t.axisCharts?0:5}),!e.config.legend.show||"bottom"!==e.config.legend.position||e.config.legend.floating||t.axisCharts||(a+=10);const i=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),s=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");e.layout.gridHeight-=i.height+s.height+a,e.layout.translateY+=i.height+s.height+a}setGridXPosForDualYAxis(e,t){const{w:a}=this,i=new kMe(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale});a.config.yaxis.forEach((s,n)=>{-1!==a.globals.ignoreYAxisIndexes.indexOf(n)||s.floating||i.isYAxisHidden(n)||(s.opposite&&(a.layout.translateX-=t[n].width+e[n].width+parseInt(s.labels.style.fontSize,10)/1.2+12),a.layout.translateX<2&&(a.layout.translateX=2))})}}class GMe{constructor(e,t){this.w=e,this.ctx=t,this.theme=t.theme,this.timeScale=t.timeScale,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 UMe(this),this.dimYAxis=new zMe(this),this.dimXAxis=new HMe(this),this.dimGrid=new YMe(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0,this.datalabelsCoords={width:0,height:0},this.xAxisWidth=0,this.timescaleLabels=[]}plotCoords(){const e=this.w,t=e.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};const a=Array.isArray(e.config.stroke.width)?Math.max(...e.config.stroke.width):e.config.stroke.width;this.isSparkline&&((e.config.markers.discrete.length>0||e.config.markers.size>0)&&Object.entries(this.gridPad).forEach(([e,t])=>{this.gridPad[e]=Math.max(t,this.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(a/2,this.gridPad.top),this.gridPad.bottom=Math.max(a/2,this.gridPad.bottom)),t.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),e.layout.gridHeight=e.layout.gridHeight-this.gridPad.top-this.gridPad.bottom,e.layout.gridWidth=e.layout.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;const i=this.dimGrid.gridPadForColumnsInNumericAxis(e.layout.gridWidth);return e.layout.gridWidth=e.layout.gridWidth-2*i,e.layout.translateX=e.layout.translateX+this.gridPad.left+this.xPadLeft+(i>0?i:0),e.layout.translateY=e.layout.translateY+this.gridPad.top,{layout:{gridHeight:e.layout.gridHeight,gridWidth:e.layout.gridWidth,translateX:e.layout.translateX,translateY:e.layout.translateY,translateXAxisX:e.layout.translateXAxisX,translateXAxisY:e.layout.translateXAxisY,rotateXLabels:e.layout.rotateXLabels,xAxisHeight:e.layout.xAxisHeight,xAxisLabelsHeight:e.layout.xAxisLabelsHeight,xAxisGroupLabelsHeight:e.layout.xAxisGroupLabelsHeight,xAxisLabelsWidth:e.layout.xAxisLabelsWidth,yLabelsCoords:e.layout.yLabelsCoords,yTitleCoords:e.layout.yTitleCoords}}}setDimensionsForAxisCharts(){const e=this.w,t=e.globals,a=this.dimYAxis.getyAxisLabelsCoords(),i=this.dimYAxis.getyAxisTitleCoords();t.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),e.layout.yLabelsCoords=[],e.layout.yTitleCoords=[],e.config.yaxis.map((t,s)=>{e.layout.yLabelsCoords.push({width:a[s].width,index:s}),e.layout.yTitleCoords.push({width:i[s].width,index:s})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();const s=this.dimXAxis.getxAxisLabelsCoords(),n=this.dimXAxis.getxAxisGroupLabelsCoords(),o=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(s,o,n),e.layout.translateXAxisY=e.layout.rotateXLabels?this.xAxisHeight/8:-4,e.layout.translateXAxisX=e.layout.rotateXLabels&&e.axisFlags.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(e.layout.rotateXLabels=!1,e.layout.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize,10)/1.5*-1),e.layout.translateXAxisY=e.layout.translateXAxisY+e.config.xaxis.labels.offsetY,e.layout.translateXAxisX=e.layout.translateXAxisX+e.config.xaxis.labels.offsetX;let r=this.yAxisWidth,l=this.xAxisHeight;e.layout.xAxisLabelsHeight=this.xAxisHeight-o.height,e.layout.xAxisGroupLabelsHeight=e.layout.xAxisLabelsHeight-s.height,e.layout.xAxisLabelsWidth=this.xAxisWidth,e.layout.xAxisHeight=this.xAxisHeight;let c=10;("radar"===e.config.chart.type||this.isSparkline)&&(r=0,l=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===e.config.chart.type)&&(r=0,l=0,c=0),this.isSparkline||"treemap"===e.config.chart.type||this.dimXAxis.additionalPaddingXLabels(s);const d=()=>{e.layout.translateX=r+this.datalabelsCoords.width,e.layout.gridHeight=t.svgHeight-this.lgRect.height-l-(this.isSparkline||"treemap"===e.config.chart.type?0:e.layout.rotateXLabels?10:15),e.layout.gridWidth=t.svgWidth-r-2*this.datalabelsCoords.width};switch("top"===e.config.xaxis.position&&(c=e.layout.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":e.layout.translateY=c,d();break;case"top":e.layout.translateY=this.lgRect.height+c,d();break;case"left":e.layout.translateY=c,e.layout.translateX=this.lgRect.width+r+this.datalabelsCoords.width,e.layout.gridHeight=t.svgHeight-l-12,e.layout.gridWidth=t.svgWidth-this.lgRect.width-r-2*this.datalabelsCoords.width;break;case"right":e.layout.translateY=c,e.layout.translateX=r+this.datalabelsCoords.width,e.layout.gridHeight=t.svgHeight-l-12,e.layout.gridWidth=t.svgWidth-this.lgRect.width-r-2*this.datalabelsCoords.width-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(i,a);new NMe(this.w,{theme:this.theme,timeScale:this.timeScale}).setYAxisXPosition(a,i)}setDimensionsForNonAxisCharts(){const e=this.w,t=e.globals,a=e.config;let i=0;e.config.legend.show&&!e.config.legend.floating&&(i=20);const s="pie"===a.chart.type||"polarArea"===a.chart.type||"donut"===a.chart.type?"pie":"radialBar",n=a.plotOptions[s].offsetY,o=a.plotOptions[s].offsetX;if(!a.legend.show||a.legend.floating){e.layout.gridHeight=t.svgHeight;const a=e.dom.elWrap.getBoundingClientRect().width;return e.layout.gridWidth=Math.min(a,e.layout.gridHeight),e.layout.translateY=n,void(e.layout.translateX=o+(t.svgWidth-e.layout.gridWidth)/2)}switch(a.legend.position){case"bottom":e.layout.gridHeight=t.svgHeight-this.lgRect.height,e.layout.gridWidth=t.svgWidth,e.layout.translateY=n-10,e.layout.translateX=o+(t.svgWidth-e.layout.gridWidth)/2;break;case"top":e.layout.gridHeight=t.svgHeight-this.lgRect.height,e.layout.gridWidth=t.svgWidth,e.layout.translateY=this.lgRect.height+n+10,e.layout.translateX=o+(t.svgWidth-e.layout.gridWidth)/2;break;case"left":e.layout.gridWidth=t.svgWidth-this.lgRect.width-i,e.layout.gridHeight="auto"!==a.chart.height?t.svgHeight:e.layout.gridWidth,e.layout.translateY=n,e.layout.translateX=o+this.lgRect.width+i;break;case"right":e.layout.gridWidth=t.svgWidth-this.lgRect.width-i-5,e.layout.gridHeight="auto"!==a.chart.height?t.svgHeight:e.layout.gridWidth,e.layout.translateY=n,e.layout.translateX=o+10;break;default:throw new Error("Legend position not supported")}}conditionalChecksForAxisCoords(e,t,a){const i=this.w,s=i.labelData.hasXaxisGroups?2:1,n=a.height+e.height+t.height,o=i.axisFlags.isMultiLineX?1.2:1.618,r=i.layout.rotateXLabels?22:10,l=i.layout.rotateXLabels&&"bottom"===i.config.legend.position?10:0;this.xAxisHeight=n*o+s*r+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);let c=0,d=0;i.config.yaxis.forEach(e=>{c+=e.labels.minWidth,d+=e.labels.maxWidth}),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>d&&(this.yAxisWidth=d)}}const WMe=1e3,jMe=6e4,qMe=36e5,KMe=24*qMe,XMe=7*KMe,QMe=30*KMe,ZMe=365*KMe,JMe=10/86400,eLe=[{unit:"second",step:1,approxMs:WMe},{unit:"second",step:5,approxMs:5e3},{unit:"second",step:15,approxMs:15e3},{unit:"second",step:30,approxMs:3e4},{unit:"minute",step:1,approxMs:jMe},{unit:"minute",step:5,approxMs:3e5},{unit:"minute",step:15,approxMs:9e5},{unit:"minute",step:30,approxMs:18e5},{unit:"hour",step:1,approxMs:qMe},{unit:"hour",step:3,approxMs:3*qMe},{unit:"hour",step:6,approxMs:6*qMe},{unit:"hour",step:12,approxMs:12*qMe},{unit:"day",step:1,approxMs:KMe},{unit:"day",step:2,approxMs:2*KMe},{unit:"week",step:1,approxMs:XMe},{unit:"week",step:2,approxMs:2*XMe},{unit:"month",step:1,approxMs:QMe},{unit:"month",step:3,approxMs:7776e6},{unit:"month",step:6,approxMs:15552e6},{unit:"year",step:1,approxMs:ZMe},{unit:"year",step:2,approxMs:63072e6},{unit:"year",step:5,approxMs:15768e7},{unit:"year",step:10,approxMs:31536e7},{unit:"year",step:25,approxMs:7884e8},{unit:"year",step:50,approxMs:15768e8},{unit:"year",step:100,approxMs:31536e8}];class tLe{constructor(e,t){this.w=e,this.ctx=t,this.tickInterval=null,this.timeScaleArray=[],this.utc=e.config.xaxis.labels.datetimeUTC}calculateTimeScaleTicks(e,t){const a=this.w;if(a.globals.allSeriesCollapsed)return a.labelData.labels=[],a.labelData.timescaleLabels=[],this.timeScaleArray=[],[];const i=t-e,s=i/KMe;a.interact.disableZoomIn=!1,a.interact.disableZoomOut=!1,s<JMe?a.interact.disableZoomIn=!0:s>5e4&&(a.interact.disableZoomOut=!0);const n=Number.isFinite(a.config.xaxis.tickAmount)?a.config.xaxis.tickAmount:10;this.tickInterval=function(e,t){(!Number.isFinite(t)||t<=0)&&(t=10);if(e<=0)return eLe[0];const a=e/t;let i=eLe[0],s=1/0;for(const n of eLe){const e=Math.abs(Math.log(n.approxMs/a));e<s&&(s=e,i=n)}return i}(i,n);const o=this.generateBaseTicks(e,t,this.tickInterval);return this.timeScaleArray=o,o}generateBaseTicks(e,t,a){const i=this.w,s=new KDe(i),n=this.utc,o=i.layout.gridWidth,r=t-e,l=[];let c=s.ceilToBoundary(e,a.unit,a.step,n),d=0;for(;c<=t&&d<5e3;){const t=s.getDateFields(c,n),i=r>0?(c-e)/r*o:0;l.push({timestamp:c,position:i,unit:a.unit,year:t.year,month:t.month+1,day:t.date,hour:t.hour,minute:t.minute,second:t.second,value:c}),c=s.addInterval(c,a.unit,a.step,n),d++}return l}recalcDimensionsBasedOnFormat(e){const t=this.w,a=this.formatDates(e),i=this.removeOverlappingTS(a);t.labelData.timescaleLabels=i.slice();const s=new GMe(this.w,this.ctx).plotCoords();this.ctx._writeLayoutCoords(s.layout)}formatDates(e){const t=this.w,a=new KDe(t),i=t.config.xaxis.labels.format,s=t.config.xaxis.labels.datetimeFormatter,n=this.utc,o=(e,t=2)=>String(e).padStart(t,"0"),r=i||this._effectiveFormat(e,s);return e.map(e=>{const t=a.getDate(e.timestamp),i=a.formatDate(t,r);return{dateString:`${e.year}-${o(e.month)}-${o(e.day)}T${o(e.hour)}:${o(e.minute)}:${o(e.second)}.000${n?"Z":""}`,position:e.position,value:i,unit:e.unit,year:e.year,month:e.month}})}_effectiveFormat(e,t){if(0===e.length)return t.day||"dd MMM";const a=this.tickInterval&&this.tickInterval.unit||e[0].unit,i=t["week"===a?"day":a]||t.day||"dd MMM",s=e[0],n=e[e.length-1],o=s.year!==n.year,r=o||s.month!==n.month||s.day!==n.day,l=/y/i.test(i),c=/M/.test(i),d=/d/i.test(i);if("month"===a||"week"===a)return o&&!l?i+" yyyy":i;if("day"===a)return o&&!l?i+" yyyy":i;if("hour"===a||"minute"===a||"second"===a){if(r&&!d&&!c){return(o?"dd MMM yyyy":"dd MMM")+" "+i}return i}return i}removeOverlappingTS(e){if(0===e.length)return[];const t=this.w,a=new fMe(t);let i,s=!1;e[0].value&&e.every(t=>t.value.length===e[0].value.length)&&(s=!0,i=a.getTextRects(e[0].value,t.config.xaxis.labels.style.fontSize).width);let n=0;return e.map((o,r)=>{if(0===r)return o;if(!t.config.xaxis.labels.hideOverlappingLabels)return o;const l=s?i:a.getTextRects(e[n].value,t.config.xaxis.labels.style.fontSize).width,c=e[n].position;return o.position>c+l+10?(n=r,o):null}).filter(e=>null!==e)}}const aLe="__apexcharts_registry__";function iLe(){return globalThis[aLe]}function sLe(e){const t=iLe()[e];if(!t)throw new Error(`ApexCharts: chart type "${e}" is not registered. Import it via ApexCharts.use() or use the full apexcharts bundle.`);return t}globalThis[aLe]||(globalThis[aLe]={});class nLe{constructor(e,t,a){this.w=t,this.ctx=a,this.el=e}setupElements(){const{globals:e,config:t}=this.w,a=t.chart.type,i=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"],s=[...i,"radar","heatmap","treemap"];e.axisCharts=s.includes(a),e.xyCharts=i.includes(a),e.isBarHorizontal=["bar","rangeBar","boxPlot"].includes(a)&&t.plotOptions.bar.horizontal,e.chartClass=`.apexcharts${e.chartID}`,this.w.dom.baseEl=this.el,this.w.dom.elWrap=jDe.createElementNS("http://www.w3.org/1999/xhtml","div"),fMe.setAttrs(this.w.dom.elWrap,{id:e.chartClass.substring(1),class:`apexcharts-canvas ${e.chartClass.substring(1)}`}),this.el.appendChild(this.w.dom.elWrap);const n=globalThis.SVG;if(this.w.dom.Paper=n().addTo(this.w.dom.elWrap),this.w.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:`translate(${t.chart.offsetX}, ${t.chart.offsetY})`}),this.w.dom.Paper.node.style.background="dark"!==t.theme.mode||t.chart.background?"light"!==t.theme.mode||t.chart.background?t.chart.background:"#fff":"#343A3F",this.setSVGDimensions(),this.w.dom.elLegendForeign=jDe.createElementNS(_Me,"foreignObject"),fMe.setAttrs(this.w.dom.elLegendForeign,{x:0,y:0,width:e.svgWidth,height:e.svgHeight}),this.w.dom.elLegendWrap=jDe.createElementNS("http://www.w3.org/1999/xhtml","div"),this.w.dom.elLegendWrap.classList.add("apexcharts-legend"),this.w.dom.elWrap.appendChild(this.w.dom.elLegendWrap),this.w.dom.Paper.node.appendChild(this.w.dom.elLegendForeign),t.chart.accessibility.enabled&&t.chart.accessibility.announcements.enabled){const e=jDe.createElement("div");e.className="apexcharts-sr-status",e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),this.w.dom.elWrap.appendChild(e)}if(t.chart.accessibility.enabled){const e=this.getAccessibleChartLabel(),a=t.chart.accessibility.keyboard.enabled&&t.chart.accessibility.keyboard.navigation.enabled?"application":"img";if(this.w.dom.Paper.attr({role:a,"aria-label":e}),t.chart.accessibility.description){const e=jDe.createElementNS(_Me,"desc");e.textContent=t.chart.accessibility.description,this.w.dom.Paper.node.insertBefore(e,this.w.dom.elLegendForeign.nextSibling)}}this.w.dom.elGraphical=this.w.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),this.w.dom.elDefs=this.w.dom.Paper.defs(),this.w.dom.Paper.add(this.w.dom.elGraphical),this.w.dom.elGraphical.add(this.w.dom.elDefs)}plotChartType(e,t){const{w:a,ctx:i}=this,{config:s,globals:n}=a,o={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},bar:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},r=s.chart.type||"line";let l=null,c=0;this.w.seriesData.series.forEach((t,i)=>{var s,n;const d="column"===(null==(s=e[i])?void 0:s.type)?"bar":(null==(n=e[i])?void 0:n.type)||("column"===r?"bar":r),u=o;u[d]?("rangeArea"===d?(u[d].series.push(this.w.rangeData.seriesRangeStart[i]),u[d].seriesRangeEnd.push(this.w.rangeData.seriesRangeEnd[i])):u[d].series.push(t),u[d].i.push(i),"bar"===d&&(a.globals.columnSeries=o.bar)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(d)&&(l=d),r!==d&&"scatter"!==d&&c++}),c>0&&o.bar.series.length>0&&s.plotOptions.bar.horizontal&&(c-=o.bar.series.length,o.bar={series:[],i:[]},a.globals.columnSeries={series:[],i:[]}),n.comboCharts||(n.comboCharts=c>0);const d=o.line.series.length>0||o.area.series.length>0||o.scatter.series.length>0||o.bubble.series.length>0||o.rangeArea.series.length>0||!n.comboCharts&&["line","area","scatter","bubble","rangeArea"].includes(s.chart.type)?new(sLe("line"))(i.w,i,t):null,u=o.candlestick.series.length>0||o.boxPlot.series.length>0||!n.comboCharts&&["candlestick","boxPlot"].includes(s.chart.type)?new(sLe("candlestick"))(i.w,i,t):null,p=!n.comboCharts&&["pie","donut","polarArea"].includes(s.chart.type);i.pie=p?new(sLe("pie"))(i.w,i):null;const h=o.rangeBar.series.length>0||!n.comboCharts&&"rangeBar"===s.chart.type;i.rangeBar=h?new(sLe("rangeBar"))(i.w,i,t):null;let g=[];if(n.comboCharts){const e=new rMe(this.w);if(o.area.series.length>0&&g.push(...e.drawSeriesByGroup(o.area,n.areaGroups,"area",d)),o.bar.series.length>0)if(s.chart.stacked){const e=new(sLe("barStacked"))(i.w,i,t);g.push(e.draw(o.bar.series,o.bar.i))}else i.bar=new(sLe("bar"))(i.w,i,t),g.push(i.bar.draw(o.bar.series,o.bar.i));if(o.rangeArea.series.length>0&&g.push(d.draw(o.rangeArea.series,"rangeArea",o.rangeArea.i,o.rangeArea.seriesRangeEnd)),o.line.series.length>0&&g.push(...e.drawSeriesByGroup(o.line,n.lineGroups,"line",d)),o.candlestick.series.length>0&&g.push(u.draw(o.candlestick.series,"candlestick",o.candlestick.i)),o.boxPlot.series.length>0&&g.push(u.draw(o.boxPlot.series,"boxPlot",o.boxPlot.i)),o.rangeBar.series.length>0&&g.push(i.rangeBar.draw(o.rangeBar.series,o.rangeBar.i)),o.scatter.series.length>0){const e=new(sLe("line"))(i.w,i,t,!0);g.push(e.draw(o.scatter.series,"scatter",o.scatter.i))}if(o.bubble.series.length>0){const e=new(sLe("line"))(i.w,i,t,!0);g.push(e.draw(o.bubble.series,"bubble",o.bubble.i))}}else{const e=s.chart.type;switch(e){case"line":g=d.draw(this.w.seriesData.series,"line");break;case"area":g=d.draw(this.w.seriesData.series,"area");break;case"bar":if(s.chart.stacked){g=new(sLe("barStacked"))(i.w,i,t).draw(this.w.seriesData.series)}else i.bar=new(sLe("bar"))(i.w,i,t),g=i.bar.draw(this.w.seriesData.series);break;case"candlestick":g=u.draw(this.w.seriesData.series,"candlestick");break;case"boxPlot":g=u.draw(this.w.seriesData.series,e);break;case"rangeBar":g=i.rangeBar.draw(this.w.seriesData.series);break;case"rangeArea":g=d.draw(this.w.rangeData.seriesRangeStart,"rangeArea",void 0,this.w.rangeData.seriesRangeEnd);break;case"heatmap":g=new(sLe("heatmap"))(i.w,i,t).draw(this.w.seriesData.series);break;case"treemap":g=new(sLe("treemap"))(i.w,i).draw(this.w.seriesData.series);break;case"pie":case"donut":case"polarArea":g=i.pie.draw(this.w.seriesData.series);break;case"radialBar":g=new(sLe("radialBar"))(i.w,i).draw(this.w.seriesData.series);break;case"radar":g=new(sLe("radar"))(i.w,i).draw(this.w.seriesData.series);break;default:g=d.draw(this.w.seriesData.series)}}return g}setSVGDimensions(){var e;const{globals:t,config:a}=this.w;a.chart.width=a.chart.width||"100%",a.chart.height=a.chart.height||"auto";const i=a.chart.width,s=a.chart.height;t.svgWidth=NaN,t.svgHeight=NaN;let n=qDe.getDimensions(this.el);const o=i.toString().split(/[0-9]+/g).pop();"%"===o?qDe.isNumber(n[0])&&(0===n[0].width&&(n=qDe.getDimensions(this.el.parentNode)),t.svgWidth=n[0]*parseInt(i,10)/100):"px"!==o&&""!==o||(t.svgWidth=parseInt(i,10));const r=String(s).toString().split(/[0-9]+/g).pop();if("auto"!==s&&""!==s)if("%"===r){const e=qDe.getDimensions(this.el.parentNode);t.svgHeight=e[1]*parseInt(s,10)/100}else t.svgHeight=parseInt(s,10);else t.svgHeight=t.axisCharts?t.svgWidth/1.61:t.svgWidth/1.2;if(t.svgWidth=Math.max(t.svgWidth,0),t.svgHeight=Math.max(t.svgHeight,0),fMe.setAttrs(this.w.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==r&&VDe.isBrowser()){const i=a.chart.sparkline.enabled?0:t.axisCharts?a.chart.parentHeightOffset:0,s=this.w.dom.Paper.node;(null==(e=s.parentNode)?void 0:e.parentNode)&&(s.parentNode.parentNode.style.minHeight=`${t.svgHeight+i}px`)}this.w.dom.elWrap.style.width=`${t.svgWidth}px`,this.w.dom.elWrap.style.height=`${t.svgHeight}px`}shiftGraphPosition(){const{globals:e}=this.w,{translateY:t,translateX:a}=e;fMe.setAttrs(this.w.dom.elGraphical.node,{transform:`translate(${a}, ${t})`})}resizeNonAxisCharts(){var e,t,a,i,s,n;const{w:o}=this;let r=0,l=o.config.chart.sparkline.enabled?1:15;l+=o.config.grid.padding.bottom,["top","bottom"].includes(o.config.legend.position)&&o.config.legend.show&&!o.config.legend.floating&&(r=(null!=(t=null==(e=this.ctx.legend)?void 0:e.legendHelpers.getLegendDimensions().clwh)?t:0)+7);const c=o.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie");let d=2.05*o.globals.radialSize;const u=Math.abs(o.config.plotOptions.radialBar.endAngle-o.config.plotOptions.radialBar.startAngle);if(c&&!o.config.chart.sparkline.enabled&&u<360){const e=qDe.getBoundingClientRect(this.w.dom.Paper.node);let t=1/0,u=-1/0;const p=a=>{var i,s,n,o;if(null==(i=a.classList)?void 0:i.contains("apexcharts-radialbar-hollow"))return;const r=null==(n=null==(s=a.tagName)?void 0:s.toLowerCase)?void 0:n.call(s);if("text"===r||"tspan"===r)return;const l=Array.from(null!=(o=a.children)?o:[]);if(l.length>0)return void l.forEach(e=>p(e));const c=qDe.getBoundingClientRect(a);if(c.bottom-c.top>0){const a=c.top-e.top,i=c.bottom-e.top;a<t&&(t=a),i>u&&(u=i)}};if(Array.from(null!=(a=c.children)?a:[]).forEach(e=>p(e)),Number.isFinite(t)||(t=0),!Number.isFinite(u)){const t=qDe.getBoundingClientRect(c);u=t.bottom-e.top}const h=Math.max(l,.2*o.globals.radialSize),g=Math.max(h-t,0);0!==g&&(o.layout.translateY=(null!=(i=o.layout.translateY)?i:0)+g,fMe.setAttrs(this.w.dom.elGraphical.node,{transform:`translate(${null!=(s=o.layout.translateX)?s:0}, ${o.layout.translateY})`}),u+=g),d=u>0?u:2.05*o.globals.radialSize;const m=Math.max(h,t),f=Math.ceil(d+r+m),_=null!=(n=o.config.chart.offsetY)?n:0,b=f+Math.max(_,0);return this.w.dom.elLegendForeign&&this.w.dom.elLegendForeign.setAttribute("height",String(b)),void(o.config.chart.height&&String(o.config.chart.height).includes("%")||(this.w.dom.elWrap.style.height=`${b}px`,fMe.setAttrs(this.w.dom.Paper.node,{height:f}),VDe.isBrowser()&&(this.w.dom.Paper.node.parentNode.parentNode.style.minHeight=`${b}px`)))}const p=Math.ceil(d+this.w.layout.translateY+r+l);this.w.dom.elLegendForeign&&this.w.dom.elLegendForeign.setAttribute("height",String(p)),o.config.chart.height&&String(o.config.chart.height).includes("%")||(this.w.dom.elWrap.style.height=`${p}px`,fMe.setAttrs(this.w.dom.Paper.node,{height:p}),VDe.isBrowser()&&(this.w.dom.Paper.node.parentNode.parentNode.style.minHeight=`${p}px`))}coreCalculations(){new OMe(this.w).init()}resetGlobals(){const e=()=>this.w.config.series.map(()=>[]),t=new nMe,{globals:a}=this.w,i={dataWasParsed:this.w.axisFlags.dataWasParsed,originalSeries:a.originalSeries};t.initGlobalVars(a),a.seriesXvalues=e(),a.seriesYvalues=e(),i.dataWasParsed&&(this.w.axisFlags.dataWasParsed=i.dataWasParsed,a.originalSeries=i.originalSeries)}isMultipleY(){return!!(Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1)&&(this.w.globals.isMultipleYAxis=!0,!0)}xySettings(){const{w:e}=this;let t=null;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new LMe(this.w).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new LMe(this.w).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new tLe(this.w,this.ctx);let t=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?t=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(t=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(t)}t=new rMe(this.w).getCalculatedRatios()}return t}updateSourceChart(e){this.ctx.w.interact.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}setupBrushHandler(){const{ctx:e,w:t}=this;if(t.config.chart.brush.enabled&&"function"!=typeof t.config.chart.events.selection){const a=Array.isArray(t.config.chart.brush.targets)?t.config.chart.brush.targets:[t.config.chart.brush.target];a.forEach(t=>{const a=e.constructor.getChartByID(t);a.w.globals.brushSource=this.ctx,"function"!=typeof a.w.config.chart.events.zoomed&&(a.w.config.chart.events.zoomed=()=>this.updateSourceChart(a)),"function"!=typeof a.w.config.chart.events.scrolled&&(a.w.config.chart.events.scrolled=()=>this.updateSourceChart(a))}),t.config.chart.events.selection=(t,i)=>{a.forEach(t=>{e.constructor.getChartByID(t).ctx.updateHelpers._updateOptions({xaxis:{min:i.xaxis.min,max:i.xaxis.max}},!1,!1,!1,!1)})}}}getAccessibleChartLabel(){const e=this.w,t=e.config;if(t.chart.accessibility&&t.chart.accessibility.description)return t.chart.accessibility.description;const a=t.chart.type,i=[];if(t.title.text)i.push(`${t.title.text}. ${a} chart`),t.subtitle.text&&i.push(t.subtitle.text);else{const s=Array.isArray(e.seriesData.seriesNames)&&e.seriesData.seriesNames.length?e.seriesData.seriesNames.filter(Boolean):Array.isArray(t.series)?t.series.map(e=>"object"==typeof e&&null!==e?e.name:null).filter(Boolean):[],n=e.seriesData.series.length||(t.series?t.series.length:0);s.length?i.push(`${a} chart with ${n} data series: ${s.join(", ")}`):i.push(`${a} chart with ${n} data series`)}return i.join(". ")}}class oLe{constructor(e,{resetGlobals:t=()=>{},isMultipleY:a=()=>{}}={}){this.w=e,this.resetGlobals=t,this.isMultipleY=a,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new rMe(this.w),this.activeSeriesIndex=0}getFirstDataPoint(){const e=this.w.config.series,t=new $Me(this.w);this.activeSeriesIndex=t.getActiveConfigSeriesIndex();const a=e[this.activeSeriesIndex];return a&&a.data&&a.data.length>0&&null!==a.data[0]&&void 0!==a.data[0]?a.data[0]:null}isMultiFormat(){return this.isFormatXY()||this.isFormat2DArray()}isFormatXY(){var e;const t=this.getFirstDataPoint();if(!t||void 0===t.x)return!1;const a=null==(e=this.w.config.series[this.activeSeriesIndex])?void 0:e.data;if(a){const e=e=>e&&void 0!==e.x;for(let t=1;t<Math.min(3,a.length)&&!0===e(a[t]);t++);}return!0}isFormat2DArray(){const e=this.getFirstDataPoint();return e&&Array.isArray(e)}handleFormat2DArray(e,t){const a=this.w.config,i=e[t].data,s="boxPlot"===a.chart.type||"boxPlot"===a.series[t].type;for(let n=0;n<i.length;n++){const e=i[n],t=e[0],o=e[1],r=e[2];if(void 0!==o&&(Array.isArray(o)&&4===o.length&&!s?this.twoDSeries.push(qDe.parseNumber(o[3])):e.length>=5?this.twoDSeries.push(qDe.parseNumber(e[4])):this.twoDSeries.push(qDe.parseNumber(o)),this.w.axisFlags.dataFormatXNumeric=!0),"datetime"===a.xaxis.type){const e=new Date(t).getTime();this.twoDSeriesX.push(e)}else this.twoDSeriesX.push(t);void 0!==r&&(this.threeDSeries.push(r),this.w.axisFlags.isDataXYZ=!0)}}handleFormatXY(e,t){const a=this.w.config,i=this.w.globals,s=new KDe(this.w),n=e[t].data;let o=t;i.collapsedSeriesIndices.indexOf(t)>-1&&(o=this.activeSeriesIndex);const r=e[o].data;for(let l=0;l<n.length;l++){const e=n[l];if(void 0!==e.y){const t=Array.isArray(e.y)?qDe.parseNumber(e.y[e.y.length-1]):qDe.parseNumber(e.y);this.twoDSeries.push(t)}void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),void 0!==e.goals&&Array.isArray(e.goals)?this.seriesGoals[t].push(e.goals):this.seriesGoals[t].push(null),void 0!==e.z&&(this.threeDSeries.push(e.z),this.w.axisFlags.isDataXYZ=!0)}for(let l=0;l<r.length;l++){const e=r[l].x,t="string"==typeof e,n=Array.isArray(e),o=!n&&!!s.isValidDate(e);if(t||o)if(t||a.xaxis.convertedCatToNumeric){const t=i.isBarHorizontal&&this.w.axisFlags.isRangeData;"datetime"!==a.xaxis.type||t?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e),isNaN(e)||"category"===this.w.config.xaxis.type||"string"==typeof e||(this.w.axisFlags.isXNumeric=!0)):this.twoDSeriesX.push(s.parseDate(e))}else"datetime"===a.xaxis.type?this.twoDSeriesX.push(s.parseDate(e.toString())):(this.w.axisFlags.dataFormatXNumeric=!0,this.w.axisFlags.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e)));else n?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e)):(this.w.axisFlags.isXNumeric=!0,this.w.axisFlags.dataFormatXNumeric=!0,this.twoDSeriesX.push(e))}}handleRangeData(e,t){let a={start:[],end:[],rangeUniques:[]};return this.isFormat2DArray()?a=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(a=this.handleRangeDataFormat("xy",e,t)),this.w.rangeData.seriesRangeStart[t]=void 0===a.start?[]:a.start,this.w.rangeData.seriesRangeEnd[t]=void 0===a.end?[]:a.end,this.w.rangeData.seriesRange[t]=a.rangeUniques,this.w.rangeData.seriesRange.forEach(e=>{e&&e.forEach(e=>{const t=e.y,a=t.length;if(!(a<=1))for(let i=0;i<a;i++){const s=t[i],n=s.y1,o=s.y2;for(let r=i+1;r<a;r++){const a=t[r],i=a.y1;if(n<=a.y2&&i<=o){const t=e;t.overlaps.add(s.rangeName),t.overlaps.add(a.rangeName)}}}})}),a}handleCandleStickBoxData(e,t){let a={o:[],h:[],m:[],l:[],c:[]};return this.isFormat2DArray()?a=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(a=this.handleCandleStickBoxDataFormat("xy",e,t)),this.w.candleData.seriesCandleO[t]=a.o,this.w.candleData.seriesCandleH[t]=a.h,this.w.candleData.seriesCandleM[t]=a.m,this.w.candleData.seriesCandleL[t]=a.l,this.w.candleData.seriesCandleC[t]=a.c,a}handleRangeDataFormat(e,t,a){const i=[],s=[],n=new Map,o=[];if(t[a].data.forEach(e=>{if(!n.has(e.x)){const t={x:e.x,overlaps:new Set,y:[]};n.set(e.x,t),o.push(t)}}),"array"===e)for(let r=0;r<t[a].data.length;r++)Array.isArray(t[a].data[r])?(i.push(t[a].data[r][1][0]),s.push(t[a].data[r][1][1])):(i.push(t[a].data[r]),s.push(t[a].data[r]));else if("xy"===e)for(let r=0;r<t[a].data.length;r++){const e=Array.isArray(t[a].data[r].y),o=qDe.randomId(),l=t[a].data[r].x,c={y1:e?t[a].data[r].y[0]:t[a].data[r].y,y2:e?t[a].data[r].y[1]:t[a].data[r].y,rangeName:o};t[a].data[r].rangeName=o;const d=n.get(l);d&&d.y.push(c),i.push(c.y1),s.push(c.y2)}return{start:i,end:s,rangeUniques:o}}handleCandleStickBoxDataFormat(e,t,a){const i=this.w,s="boxPlot"===i.config.chart.type||"boxPlot"===i.config.series[a].type,n=[],o=[],r=[],l=[],c=[],d=t[a].data;let u;if("array"===e){u=s&&6===d[0].length||!s&&5===d[0].length?e=>e.slice(1):e=>Array.isArray(e[1])?e[1]:[]}else u=e=>Array.isArray(e.y)?e.y:[];for(let p=0;p<d.length;p++){const e=u(d[p]);e&&e.length>=2&&(n.push(e[0]),o.push(e[1]),s?(r.push(e[2]),l.push(e[3]),c.push(e[4])):(l.push(e[2]),c.push(e[3])))}return{o:n,h:o,m:r,l:l,c:c}}parseDataAxisCharts(e){var t,a,i,s;const n=this.w.config,o=this.w.globals,r=new KDe(this.w),l=n.labels.length>0?n.labels.slice():n.xaxis.categories.slice();this.w.axisFlags.isRangeBar="rangeBar"===n.chart.type&&o.isBarHorizontal,this.w.labelData.hasXaxisGroups="category"===n.xaxis.type&&n.xaxis.group.groups.length>0,this.w.labelData.hasXaxisGroups&&(this.w.labelData.groups=n.xaxis.group.groups),e.forEach((e,t)=>{void 0!==e.name?this.w.seriesData.seriesNames.push(e.name):this.w.seriesData.seriesNames.push("series-"+parseInt(String(t+1),10))}),this.coreUtils.setSeriesYAxisMappings();const c=[],d=[...new Set(n.series.map(e=>e.group))];n.series.forEach((e,t)=>{const a=d.indexOf(e.group);c[a]||(c[a]=[]),c[a].push(this.w.seriesData.seriesNames[t])}),this.w.labelData.seriesGroups=c;const u=()=>{for(let e=0;e<l.length;e++)if("string"==typeof l[e]){if(!r.isValidDate(l[e]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");this.twoDSeriesX.push(r.parseDate(l[e]))}else this.twoDSeriesX.push(l[e])};for(let p=0;p<e.length;p++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===e[p].data)return;const r=n.chart.dataReducer,c=null==(a=null==(t=o.dataReducerRawSeries)?void 0:t[p])?void 0:a.data;if((null==r?void 0:r.enabled)&&this.isMultiFormat()&&Array.isArray(c)&&c.length>(null!=(i=r.threshold)?i:500)){const t=null!=(s=r.targetPoints)?s:250,a=n.xaxis.min,i=n.xaxis.max,o=null==a&&null==i?c:oLe.sliceByXRange(c,a,i),l=o.length>t?oLe.lttbDownsample(o,t):o;e[p]=$De(FDe({},e[p]),{data:l})}if("rangeBar"!==n.chart.type&&"rangeArea"!==n.chart.type&&"rangeBar"!==e[p].type&&"rangeArea"!==e[p].type||(this.w.axisFlags.isRangeData=!0,this.handleRangeData(e,p)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,p):this.isFormatXY()&&this.handleFormatXY(e,p),"candlestick"!==n.chart.type&&"candlestick"!==e[p].type&&"boxPlot"!==n.chart.type&&"boxPlot"!==e[p].type||this.handleCandleStickBoxData(e,p),this.w.seriesData.series.push(this.twoDSeries),this.w.labelData.labels.push(this.twoDSeriesX),this.w.seriesData.seriesX.push(this.twoDSeriesX),this.w.seriesData.seriesGoals=this.seriesGoals,p!==this.activeSeriesIndex||this.fallbackToCategory||(this.w.axisFlags.isXNumeric=!0);else{"datetime"===n.xaxis.type?(this.w.axisFlags.isXNumeric=!0,u(),this.w.seriesData.seriesX.push(this.twoDSeriesX)):"numeric"===n.xaxis.type&&(this.w.axisFlags.isXNumeric=!0,l.length>0&&(this.twoDSeriesX=l,this.w.seriesData.seriesX.push(this.twoDSeriesX))),this.w.labelData.labels.push(this.twoDSeriesX);const t=e[p].data.map(e=>qDe.parseNumber(e));this.w.seriesData.series.push(t)}this.w.seriesData.seriesZ.push(this.threeDSeries),void 0!==e[p].color?this.w.seriesData.seriesColors.push(e[p].color):this.w.seriesData.seriesColors.push(void 0)}return this.w}parseDataNonAxisCharts(e){const t=this.w.config,a=Array.isArray(e)&&e.every(e=>"number"==typeof e)&&t.labels.length>0;Array.isArray(e)&&e.some(e=>e&&"object"==typeof e&&e.data||e&&"object"==typeof e&&e.parsing);if(a){this.w.seriesData.series=e.slice(),this.w.seriesData.seriesNames=t.labels.slice();for(let e=0;e<this.w.seriesData.series.length;e++)void 0===this.w.seriesData.seriesNames[e]&&this.w.seriesData.seriesNames.push("series-"+(e+1));return this.w}if(Array.isArray(e)&&e.every(e=>"number"==typeof e)){this.w.seriesData.series=e.slice(),this.w.seriesData.seriesNames=[];for(let e=0;e<this.w.seriesData.series.length;e++)this.w.seriesData.seriesNames.push(t.labels[e]||`series-${e+1}`);return this.w}const i=this.extractPieDataFromSeries(e);this.w.seriesData.series=i.values,this.w.seriesData.seriesNames=i.labels,"radialBar"===t.chart.type&&(this.w.seriesData.series=this.w.seriesData.series.map(e=>{const t=qDe.parseNumber(e);return t}));for(let s=0;s<this.w.seriesData.series.length;s++)void 0===this.w.seriesData.seriesNames[s]&&this.w.seriesData.seriesNames.push("series-"+(s+1));return this.w}resetParsingFlags(){const e=this.w;e.axisFlags.dataWasParsed=!1,e.globals.originalSeries=null,e.config.series&&e.config.series.forEach(e=>{e.__apexParsed&&delete e.__apexParsed})}extractPieDataFromSeries(e){const t=[],a=[];if(!Array.isArray(e))return{values:[],labels:[]};if(0===e.length)return{values:[],labels:[]};const i=e[0];return"object"==typeof i&&null!==i&&i.data?(this.extractPieDataFromSeriesObjects(e,t,a),{values:t,labels:a}):{values:[],labels:[]}}extractPieDataFromSeriesObjects(e,t,a){e.forEach((e,i)=>{e.data&&Array.isArray(e.data)&&e.data.forEach(e=>{"object"==typeof e&&null!==e&&void 0!==e.x&&void 0!==e.y&&(a.push(String(e.x)),t.push(qDe.parseNumber(e.y)))})})}handleExternalLabelsData(e){const t=this.w.config;if(t.xaxis.categories.length>0)this.w.labelData.labels=t.xaxis.categories;else if(t.labels.length>0)this.w.labelData.labels=t.labels.slice();else if(this.fallbackToCategory){if(this.w.labelData.labels=this.w.labelData.labels[0],this.w.rangeData.seriesRange.length){this.w.rangeData.seriesRange.map(e=>{e.forEach(e=>{this.w.labelData.labels.indexOf(e.x)<0&&e.x&&this.w.labelData.labels.push(e.x)})});const e=this.w.labelData.labels;if(e.length>0&&("number"==typeof e[0]||"string"==typeof e[0]))this.w.labelData.labels=[...new Set(e)];else{const t=new Map;for(const a of e){const e=JSON.stringify(a);t.has(e)||t.set(e,a)}this.w.labelData.labels=Array.from(t.values())}}if(t.xaxis.convertedCatToNumeric){new JDe(t).convertCatToNumericXaxis(t,this.w.seriesData.seriesX[0]),this._generateExternalLabels(e)}}else this._generateExternalLabels(e)}_generateExternalLabels(e){const t=this.w.globals,a=this.w.config;let i=[];if(t.axisCharts){if(this.w.seriesData.series.length>0)if(this.isFormatXY()){const e=a.series.map(e=>{const t=new Map;for(const a of e.data)t.has(a.x)||t.set(a.x,a);return Array.from(t.values())}),t=e.reduce((e,t,a,i)=>i[e].length>t.length?e:a,0);for(let a=0;a<e[t].length;a++)i.push(a+1)}else for(let e=0;e<this.w.seriesData.series[t.maxValsInArrayIndex].length;e++)i.push(e+1);this.w.seriesData.seriesX=[];for(let t=0;t<e.length;t++)this.w.seriesData.seriesX.push(i);this.w.globals.isBarHorizontal||(this.w.axisFlags.isXNumeric=!0)}if(0===i.length){i=t.axisCharts?[]:this.w.seriesData.series.map((e,t)=>t+1);for(let t=0;t<e.length;t++)this.w.seriesData.seriesX.push(i)}this.w.labelData.labels=i,a.xaxis.convertedCatToNumeric&&(this.w.labelData.categoryLabels=i.map(e=>a.xaxis.labels.formatter(e))),this.w.axisFlags.noLabelsProvided=!0}parseRawDataIfNeeded(e){const t=this.w.config,a=this.w.globals,i=t.parsing;if(this.w.axisFlags.dataWasParsed)return e;if(!i&&!e.some(e=>e.parsing))return e;const s=e.map((e,t)=>{var a,s,n;if(!e.data||!Array.isArray(e.data)||0===e.data.length)return e;const o={x:(null==(a=e.parsing)?void 0:a.x)||(null==i?void 0:i.x),y:(null==(s=e.parsing)?void 0:s.y)||(null==i?void 0:i.y),z:(null==(n=e.parsing)?void 0:n.z)||(null==i?void 0:i.z)};if(!o.x&&!o.y)return e;const r=e.data[0];if("object"==typeof r&&null!==r&&(Object.prototype.hasOwnProperty.call(r,"x")||Object.prototype.hasOwnProperty.call(r,"y"))||Array.isArray(r))return e;if(!o.x||!o.y||Array.isArray(o.y)&&0===o.y.length)return e;const l=e.data.map((e,t)=>{if("object"!=typeof e||null===e)return e;const a=this.getNestedValue(e,o.x);let i,s;if(Array.isArray(o.y)){const t=o.y.map(t=>this.getNestedValue(e,t));"bubble"===this.w.config.chart.type?(t.length,i=t[0]):i=t}else i=this.getNestedValue(e,o.y);o.z&&(s=this.getNestedValue(e,o.z));const n={x:a,y:i,z:void 0};if("bubble"===this.w.config.chart.type&&Array.isArray(o.y)&&2===o.y.length){const t=this.getNestedValue(e,o.y[1]);void 0!==t&&(n.z=t)}return void 0!==s&&(n.z=s),n});return $De(FDe({},e),{data:l,__apexParsed:!0})});return this.w.axisFlags.dataWasParsed=!0,a.originalSeries||(a.originalSeries=qDe.clone(e)),s}getNestedValue(e,t){if(!e||"object"!=typeof e||!t)return;if(-1===t.indexOf("."))return e[t];const a=t.split(".");let i=e;for(let s=0;s<a.length;s++){if(null==i||"object"!=typeof i)return;i=i[a[s]]}return i}parseData(e){var t,a,i,s,n,o;const r=this.w,l=r.config,c=r.globals;if(e=this.parseRawDataIfNeeded(e),(null==(t=l.chart.dataReducer)?void 0:t.enabled)&&c.axisCharts&&!c.dataReducerRawSeries){c.dataReducerRawSeries=e.map(e=>({data:Array.isArray(null==e?void 0:e.data)?e.data.slice():null==e?void 0:e.data}));let t=1/0,o=-1/0;for(const r of e){const e=null==r?void 0:r.data;if(!Array.isArray(e)||0===e.length)continue;const l=!Array.isArray(e[0]),c=l?null==(a=e[0])?void 0:a.x:null==(i=e[0])?void 0:i[0],d=l?null==(s=e[e.length-1])?void 0:s.x:null==(n=e[e.length-1])?void 0:n[0];"number"==typeof c&&(t=Math.min(t,c)),"number"==typeof d&&(o=Math.max(o,d))}t!==1/0&&(c.dataReducerRawMinX=t,c.dataReducerRawMaxX=o)}if(l.series=e,c.dataReducerRawSeries&&(null==(o=l.chart.dataReducer)?void 0:o.enabled)){const t=c.dataReducerRawSeries;c.initialSeries=e.map((e,a)=>{var i,s,n;return $De(FDe({},e),{data:null!=(n=null==(s=null==(i=t[a])?void 0:i.data)?void 0:s.slice())?n:e.data})})}else c.initialSeries=qDe.clone(e);if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.resetGlobals(),this.isMultipleY(),c.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),l.chart.stacked){const e=new $Me(this.w);this.w.seriesData.series=e.setNullSeriesToZeroValues(this.w.seriesData.series)}this.coreUtils.getSeriesTotals(),c.axisCharts&&(this.w.seriesData.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),this.w.seriesData.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),this.w.axisFlags.dataFormatXNumeric||this.w.axisFlags.isXNumeric&&("numeric"!==l.xaxis.type||0!==l.labels.length||0!==l.xaxis.categories.length)||this.handleExternalLabelsData(e);const d=this.coreUtils.getCategoryLabels(this.w.labelData.labels);for(let u=0;u<d.length;u++)if(Array.isArray(d[u])){this.w.axisFlags.isMultiLineX=!0;break}return{seriesData:{series:this.w.seriesData.series,seriesNames:this.w.seriesData.seriesNames,seriesX:this.w.seriesData.seriesX,seriesZ:this.w.seriesData.seriesZ,seriesColors:this.w.seriesData.seriesColors,seriesGoals:this.w.seriesData.seriesGoals,initialSeries:c.initialSeries,originalSeries:c.originalSeries,stackedSeriesTotals:this.w.seriesData.stackedSeriesTotals,stackedSeriesTotalsByGroups:this.w.seriesData.stackedSeriesTotalsByGroups,noLabelsProvided:this.w.axisFlags.noLabelsProvided},rangeData:{seriesRangeStart:this.w.rangeData.seriesRangeStart,seriesRangeEnd:this.w.rangeData.seriesRangeEnd,seriesRange:this.w.rangeData.seriesRange},candleData:{seriesCandleO:this.w.candleData.seriesCandleO,seriesCandleH:this.w.candleData.seriesCandleH,seriesCandleM:this.w.candleData.seriesCandleM,seriesCandleL:this.w.candleData.seriesCandleL,seriesCandleC:this.w.candleData.seriesCandleC},labelData:{labels:this.w.labelData.labels,categoryLabels:this.w.labelData.categoryLabels},axisFlags:{isXNumeric:this.w.axisFlags.isXNumeric,dataFormatXNumeric:this.w.axisFlags.dataFormatXNumeric,isDataXYZ:this.w.axisFlags.isDataXYZ,isRangeData:this.w.axisFlags.isRangeData,isRangeBar:this.w.axisFlags.isRangeBar,isMultiLineX:this.w.axisFlags.isMultiLineX,dataWasParsed:this.w.axisFlags.dataWasParsed,hasXaxisGroups:this.w.labelData.hasXaxisGroups,groups:this.w.labelData.groups,seriesGroups:this.w.labelData.seriesGroups}}}static sliceByXRange(e,t,a){const i=e.length;if(0===i)return e;const s=!Array.isArray(e[0])?e=>e.x:e=>e[0];let n=0;if(null!=t){let a=0,o=i-1;for(;a<=o;){const i=a+o>>1;s(e[i])<t?a=i+1:o=i-1}n=Math.max(0,a-1)}let o=i;if(null!=a){let t=0,n=i-1;for(;t<=n;){const i=t+n>>1;s(e[i])>a?n=i-1:t=i+1}o=Math.min(i,t+1)}return 0===n&&o===i?e.slice():e.slice(n,o)}static lttbDownsample(e,t){const a=e.length;if(t>=a||t<3)return e;const i=!Array.isArray(e[0]),s=i?e=>e.x:e=>e[0],n=i?e=>e.y:e=>e[1],o=[];o.push(e[0]);const r=(a-2)/(t-2);let l=0;for(let c=0;c<t-2;c++){const t=Math.floor((c+1)*r)+1,i=Math.min(Math.floor((c+2)*r)+1,a);let d=0,u=0;const p=i-t;for(let a=t;a<i;a++)d+=s(e[a]),u+=n(e[a]);d/=p,u/=p;const h=Math.floor(c*r)+1,g=Math.min(Math.floor((c+1)*r)+1,a),m=s(e[l]),f=n(e[l]);let _=-1,b=h;for(let a=h;a<g;a++){const t=.5*Math.abs((m-d)*(n(e[a])-f)-(m-s(e[a]))*(u-f));t>_&&(_=t,b=a)}o.push(e[b]),l=b}return o.push(e[a-1]),o}excludeCollapsedSeriesInYAxis(){const e=this.w,t=[];e.globals.seriesYAxisMap.forEach((a,i)=>{let s=0;a.forEach(t=>{-1!==e.globals.collapsedSeriesIndices.indexOf(t)&&s++}),s>0&&s==a.length&&t.push(i)}),e.globals.ignoreYAxisIndexes=t.map(e=>e)}}class rLe{constructor(e,t){this.w=e,this.ctx=t}_updateOptions(e,t=!1,a=!0,i=!0,s=!1){return new Promise(n=>{let o=[this.ctx];i&&(o=this.ctx.getSyncedCharts()),this.w.globals.isExecCalled&&(o=[this.ctx],this.w.globals.isExecCalled=!1),o.forEach((i,r)=>{const l=i.w;if(l.globals.shouldAnimate=a,t||(l.globals.resized=!0,l.globals.dataChanged=!0,a&&i.series.getPreviousPaths()),e&&"object"==typeof e&&(i.config=new aMe(e),e=rMe.extendArrayProps(i.config,e,l),i.w.globals.chartID!==this.w.globals.chartID&&delete e.series,l.config=qDe.extend(l.config,e),s&&(l.globals.lastXAxis=e.xaxis?qDe.clone(e.xaxis):[],l.globals.lastYAxis=e.yaxis?qDe.clone(e.yaxis):[],l.globals.initialConfig=qDe.extend({},l.config),l.globals.initialSeries=qDe.clone(l.config.series),e.series))){for(let e=0;e<l.globals.collapsedSeriesIndices.length;e++){const t=l.config.series[l.globals.collapsedSeriesIndices[e]];l.globals.collapsedSeries[e].data=l.globals.axisCharts?t.data.slice():t}for(let e=0;e<l.globals.ancillaryCollapsedSeriesIndices.length;e++){const t=l.config.series[l.globals.ancillaryCollapsedSeriesIndices[e]];l.globals.ancillaryCollapsedSeries[e].data=l.globals.axisCharts?t.data.slice():t}i.series.emptyCollapsedSeries(l.config.series)}return i.update(e).then(()=>{r===o.length-1&&n(i)})})})}_updateSeries(e,t,a=!1){return new Promise(i=>{const s=this.w;s.globals.shouldAnimate=t,s.globals.dataChanged=!0,CMe.invalidateSelectors(s),t&&this.ctx.series.getPreviousPaths();const n=s.config.series.length;s.globals.dataReducerRawSeries=null,this.ctx.data.resetParsingFlags();const o=this.ctx.data.parseData(e);return this.ctx._writeParsedSeriesData(o.seriesData),this.ctx._writeParsedRangeData(o.rangeData),this.ctx._writeParsedCandleData(o.candleData),this.ctx._writeParsedLabelData(o.labelData),this.ctx._writeParsedAxisFlags(o.axisFlags),a&&(s.globals.initialConfig&&(s.globals.initialConfig.series=qDe.clone(s.config.series)),s.globals.initialSeries=qDe.clone(s.config.series)),this._canUseFastPath(e,n,s)?this.ctx.fastUpdate(t).then(()=>{i(this.ctx)}):this.ctx.update().then(()=>{i(this.ctx)})})}_canUseFastPath(e,t,a){return!!a.dom.elGraphical&&(!!a.globals.axisCharts&&(e.length===t&&(!(a.globals.collapsedSeries.length>0)&&(!(a.globals.ancillaryCollapsedSeries.length>0)&&(!(a.globals.risingSeries.length>0)&&(!a.globals.comboCharts&&!a.interact.zoomed))))))}_extendSeries(e,t){const a=this.w,i=a.config.series[t];return $De(FDe({},a.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,hidden:void 0!==e.hidden?e.hidden:null==i?void 0:i.hidden,data:e.data?e.data:null==i?void 0:i.data,zIndex:void 0!==e.zIndex?e.zIndex:t})}toggleDataPointSelection(e,t){const a=this.w;let i=null;const s=`.apexcharts-series[data\\:realIndex='${e}']`;if(a.globals.axisCharts?i=a.dom.Paper.findOne(`${s} path[j='${t}'], ${s} circle[j='${t}'], ${s} rect[j='${t}']`):void 0===t&&(i=a.dom.Paper.findOne(`${s} path[j='${e}']`),"pie"!==a.config.chart.type&&"polarArea"!==a.config.chart.type&&"donut"!==a.config.chart.type||this.ctx.pie.pieClicked(e)),!i)return null;new fMe(this.w).pathMouseDown(i,null);return i.node?i.node:null}forceXAxisUpdate(e){const t=this.w;if(["min","max"].forEach(a=>{void 0!==e.xaxis[a]&&(t.config.xaxis[a]=e.xaxis[a],t.globals.lastXAxis[a]=e.xaxis[a])}),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){const t=new JDe(e);e=t.convertCatToNumericXaxis(e,this.ctx)}return e}forceYAxisUpdate(e){return e.chart&&e.chart.stacked&&"100%"===e.chart.stackType&&(Array.isArray(e.yaxis)?e.yaxis.forEach((t,a)=>{e.yaxis[a].min=0,e.yaxis[a].max=100}):(e.yaxis.min=0,e.yaxis.max=100)),e}revertDefaultAxisMinMax(e){const t=this.w;let a=t.globals.lastXAxis,i=t.globals.lastYAxis;e&&e.xaxis&&(a=e.xaxis),e&&e.yaxis&&(i=e.yaxis);const s=a;t.config.xaxis.min=s.min,t.config.xaxis.max=s.max;const n=e=>{if(void 0!==i[e]){const a=i[e];t.config.yaxis[e].min=a.min,t.config.yaxis[e].max=a.max}};t.config.yaxis.map((e,a)=>{t.interact.zoomed||void 0!==i[a]?n(a):void 0!==this.ctx.opts.yaxis[a]&&(e.min=this.ctx.opts.yaxis[a].min,e.max=this.ctx.opts.yaxis[a].max)})}}class lLe{constructor(e){this.w=e.w,this.ttCtx=e}getNearestValues({hoverArea:e,elGrid:t,clientX:a,clientY:i}){var s,n;const o=this.w,r=t.getBoundingClientRect(),l=r.width,c=r.height;let d=l/(o.globals.dataPoints-1);const u=c/o.globals.dataPoints,p=this.hasBars();!o.globals.comboCharts&&!p||o.config.xaxis.convertedCatToNumeric||(d=l/o.globals.dataPoints);const h=a-r.left-o.globals.barPadForNumericAxis,g=i-r.top;h<0||g<0||h>l||g>c?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):o.interact.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):o.interact.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));let m=Math.round(h/d);const f=Math.floor(g/u);p&&!o.config.xaxis.convertedCatToNumeric&&(m=Math.ceil(h/d),m-=1);let _=null,b=null,v=o.globals.seriesXvalues.map(e=>e.filter(e=>qDe.isNumber(e)));const y=o.globals.seriesYvalues.map(e=>e.filter(e=>qDe.isNumber(e)));if(o.axisFlags.isXNumeric){const e=this.ttCtx.getElGrid();if(!e)return{hoverX:h,hoverY:g};const t=e.getBoundingClientRect(),a=h*(t.width/l),i=g*(t.height/c);b=this.closestInMultiArray(a,i,v,y),_=b.index,m=null!=(s=b.j)?s:0,null!==_&&o.globals.hasNullValues&&(v=o.globals.seriesXvalues[_],b=this.closestInArray(a,v),m=null!=(n=b.j)?n:0)}return o.interact.capturedSeriesIndex=null===_?-1:_,(!m||m<1)&&(m=0),o.globals.isBarHorizontal?o.interact.capturedDataPointIndex=f:o.interact.capturedDataPointIndex=m,{capturedSeries:_,j:o.globals.isBarHorizontal?f:m,hoverX:h,hoverY:g}}getFirstActiveXArray(e){const t=this.w;let a=0;const i=e.map((e,t)=>e.length>0?t:-1);for(let s=0;s<i.length;s++)if(-1!==i[s]&&-1===t.globals.collapsedSeriesIndices.indexOf(s)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(s)){a=i[s];break}return a}closestInMultiArray(e,t,a,i){const s=this.w,n=e=>-1===s.globals.collapsedSeriesIndices.indexOf(e)&&-1===s.globals.ancillaryCollapsedSeriesIndices.indexOf(e),o=s.config.chart.type,r=!s.globals.comboCharts&&("line"===o||"area"===o);let l=1/0,c=null,d=null;if(s.globals.allSeriesHasEqualX){let s=1/0;for(let t=0;t<a.length;t++){if(!n(t))continue;const o=a[t],r=i[t],l=Math.min(o.length,r.length);for(let t=0;t<l;t++){const a=Math.abs(e-o[t]);a<s&&(s=a,d=t)}}if(null!==d)if(r){let s=1/0;for(let o=0;o<a.length;o++){if(!n(o))continue;const r=a[o],l=i[o],u=Math.min(r.length,l.length);if(u<2){const e=l[d];if("number"!=typeof e)continue;const a=Math.abs(t-e);a<s&&(s=a,c=o);continue}for(let a=0;a<u-1;a++){const i=this._distanceToSegment(e,t,r[a],l[a],r[a+1],l[a+1]);i.dist<s&&(s=i.dist,c=o)}}}else{let e=1/0;for(let s=0;s<a.length;s++){if(!n(s))continue;const a=i[s][d];if("number"!=typeof a)continue;const o=Math.abs(t-a);o<e&&(e=o,c=s)}}return{index:c,j:d}}for(let u=0;u<a.length;u++){if(!n(u))continue;const s=a[u],o=i[u],p=Math.min(s.length,o.length);if(r&&p>=2)for(let a=0;a<p-1;a++){const i=this._distanceToSegment(e,t,s[a],o[a],s[a+1],o[a+1]);i.dist<l&&(l=i.dist,c=u,d=i.t<.5?a:a+1)}else for(let a=0;a<p;a++){const i=e-s[a],n=t-o[a],r=Math.sqrt(i*i+n*n);r<l&&(l=r,c=u,d=a)}}return{index:c,j:d}}_distanceToSegment(e,t,a,i,s,n){const o=s-a,r=n-i,l=o*o+r*r;let c=0===l?0:((e-a)*o+(t-i)*r)/l;c<0?c=0:c>1&&(c=1);const d=e-(a+c*o),u=t-(i+c*r);return{dist:Math.sqrt(d*d+u*u),t:c}}closestInArray(e,t){const a=t[0];let i=null,s=Math.abs(e-a);for(let n=0;n<t.length;n++){const a=Math.abs(e-t[n]);a<s&&(s=a,i=n)}return{j:i}}isXoverlap(e){const t=[],a=this.w.seriesData.seriesX.filter(e=>void 0!==e[0]);if(a.length>0)for(let i=0;i<a.length-1;i++)void 0!==a[i][e]&&void 0!==a[i+1][e]&&a[i][e]!==a[i+1][e]&&t.push("unEqual");return 0===t.length}isInitialSeriesSameLen(){var e,t,a;let i=!0;const s=(null==(e=this.w.globals.initialSeries)?void 0:e.filter((e,t)=>{var a;return!(null==(a=this.w.globals.collapsedSeriesIndices)?void 0:a.includes(t))}))||[];for(let n=0;n<s.length-1;n++){if(!(null==(t=s[n])?void 0:t.data)||!(null==(a=s[n+1])?void 0:a.data))return!0;if(s[n].data.length!==s[n+1].data.length){i=!1;break}}return i}getBarsHeight(e){return[...e].reduce((e,t)=>e+t.getBBox().height,0)}getElMarkers(e){return"number"==typeof e?this.w.dom.baseEl.querySelectorAll(`.apexcharts-series[data\\:realIndex='${e}'] .apexcharts-series-markers-wrap > *`):this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}getAllMarkers(e=!1){let t=[...this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap")];e&&(t=t.filter(e=>{const t=Number(e.getAttribute("data:realIndex"));return-1===this.w.globals.collapsedSeriesIndices.indexOf(t)})),t.sort((e,t)=>{var a=Number(e.getAttribute("data:realIndex")),i=Number(t.getAttribute("data:realIndex"));return i<a?1:i>a?-1:0});const a=[];return t.forEach(e=>{a.push(e.querySelector(".apexcharts-marker"))}),a}hasMarkers(e){return this.getElMarkers(e).length>0}getPathFromPoint(e,t){const a=Number(e.getAttribute("cx")),i=Number(e.getAttribute("cy")),s=e.getAttribute("shape");return new fMe(this.w).getMarkerPath(a,i,s,t)}getElBars(){return this.w.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}hasBars(){return this.getElBars().length>0}getHoverMarkerSize(e){const t=this.w;let a=t.config.markers.hover.size;return void 0===a&&(a=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),a}toggleAllTooltipSeriesGroups(e){const t=this.w,a=this.ttCtx;0===a.allTooltipSeriesGroups.length&&(a.allTooltipSeriesGroups=t.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));const i=a.allTooltipSeriesGroups;for(let s=0;s<i.length;s++)"enable"===e?(i[s].classList.add("apexcharts-active"),i[s].style.display=t.config.tooltip.items.display):(i[s].classList.remove("apexcharts-active"),i[s].style.display="none")}}class cLe{constructor(e){this.w=e.w,this.ttCtx=e,this.tooltipUtil=new lLe(e)}drawSeriesTexts({shared:e=!0,ttItems:t,i:a=0,j:i=null,y1:s,y2:n,e:o}){const r=this.w;void 0!==r.config.tooltip.custom?this.handleCustomTooltip({i:a,j:i,y1:s,y2:n,w:r}):this.toggleActiveInactiveSeries(e,a);const l=this.getValuesToPrint({i:a,j:i});this.printLabels({i:a,j:i,values:l,ttItems:t,shared:e,e:o});const c=this.ttCtx.getElTooltip();c&&(this.ttCtx.tooltipRect.ttWidth=c.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=c.getBoundingClientRect().height)}printLabels({i:e,j:t,values:a,ttItems:i,shared:s,e:n}){const o=this.w,{xVal:r,zVal:l,xAxisTTVal:c}=a,d=o.seriesData.series.length,u=null!==t&&o.config.plotOptions.bar.distributed?o.globals.colors[t]:o.globals.colors[e];for(let p=0;p<d;p++){const a=o.config.tooltip.inverseOrder?d-1-p:p,h=this.computeSeriesRow({i:e,j:t,t:p,tIndex:a,shared:s,e:n,basePColor:u});this.DOMHandling({i:e,t:a,j:t,ttItems:i,values:{val:h.val,goalVals:h.goalVals,xVal:r,xAxisTTVal:c,zVal:l},seriesName:h.seriesName,shared:s,pColor:h.pColor})}}computeSeriesRow({i:e,j:t,tIndex:a,shared:i,e:s,basePColor:n}){const o=this.w;let r,l=this.getFormatters(e),c=n,d=[],u="treemap"===o.config.chart.type?l.yLbTitleFormatter(String(o.config.series[e].data[t].x),{series:o.seriesData.series,seriesIndex:e,dataPointIndex:t,w:o}):this.getSeriesName({fn:l.yLbTitleFormatter,index:e,seriesIndex:e,j:t});return o.globals.axisCharts&&(i?(l=this.getFormatters(a),u=this.getSeriesName({fn:l.yLbTitleFormatter,index:a,seriesIndex:e,j:t}),c=o.globals.colors[a],r=this.formatYValue(l,a,t),d=this.formatGoalVals(l,a,t)):(c=this.resolvePatternColor(s,c),r=this.formatYValue(l,e,t),d=this.formatGoalVals(l,e,t))),null===t&&(r=l.yLbFormatter(o.seriesData.series[e],$De(FDe({},o),{seriesIndex:e,dataPointIndex:e}))),{seriesName:u,val:r,goalVals:d,pColor:c}}formatYValue(e,t,a){var i,s,n,o;const r=this.w;return r.axisFlags.isRangeData?e.yLbFormatter(null==(s=null==(i=r.rangeData.seriesRangeStart)?void 0:i[t])?void 0:s[a],{series:r.rangeData.seriesRangeStart,seriesIndex:t,dataPointIndex:a,w:r})+" - "+e.yLbFormatter(null==(o=null==(n=r.rangeData.seriesRangeEnd)?void 0:n[t])?void 0:o[a],{series:r.rangeData.seriesRangeEnd,seriesIndex:t,dataPointIndex:a,w:r}):e.yLbFormatter(r.seriesData.series[t][a],{series:r.seriesData.series,seriesIndex:t,dataPointIndex:a,w:r})}formatGoalVals(e,t,a){var i;const s=this.w,n=null==(i=s.seriesData.seriesGoals[t])?void 0:i[a];return Array.isArray(n)?n.map(i=>({attrs:i,val:e.yLbFormatter(i.value,{seriesIndex:t,dataPointIndex:a,w:s})})):[]}resolvePatternColor(e,t){var a,i,s;const n=this.w,o=null==(a=null==e?void 0:e.target)?void 0:a.getAttribute("fill");if(!o)return t;if(-1===o.indexOf("url"))return o;if(-1===o.indexOf("Pattern"))return t;const r=n.dom.baseEl.querySelector(o.substr(4).slice(0,-1));return null!=(s=null==(i=null==r?void 0:r.childNodes[0])?void 0:i.getAttribute("stroke"))?s:t}getFormatters(e){const t=this.w;let a,i=t.formatters.yLabelFormatters[e];return void 0!==t.formatters.ttVal?Array.isArray(t.formatters.ttVal)?(i=t.formatters.ttVal[e]&&t.formatters.ttVal[e].formatter,a=t.formatters.ttVal[e]&&t.formatters.ttVal[e].title&&t.formatters.ttVal[e].title.formatter):(i=t.formatters.ttVal.formatter,"function"==typeof t.formatters.ttVal.title.formatter&&(a=t.formatters.ttVal.title.formatter)):a=t.config.tooltip.y.title.formatter,"function"!=typeof i&&(i=t.formatters.yLabelFormatters[0]?t.formatters.yLabelFormatters[0]:function(e){return e}),"function"!=typeof a&&(a=function(e){return e?e+": ":""}),{yLbFormatter:i,yLbTitleFormatter:a}}getSeriesName({fn:e,index:t,seriesIndex:a,j:i}){const s=this.w;return e(String(s.seriesData.seriesNames[t]),{series:s.seriesData.series,seriesIndex:a,dataPointIndex:i,w:s})}DOMHandling({t:e,j:t,ttItems:a,values:i,seriesName:s,shared:n,pColor:o}){const r=this.w,l=this.ttCtx,{val:c,goalVals:d,xVal:u,xAxisTTVal:p,zVal:h}=i;let g=null;g=a[e].children,r.config.tooltip.fillSeriesColor&&(a[e].style.backgroundColor=o,g[0].style.display="none"),l.showTooltipTitle&&(null===l.tooltipTitle&&(l.tooltipTitle=r.dom.baseEl.querySelector(".apexcharts-tooltip-title")),l.tooltipTitle&&(l.tooltipTitle.innerHTML=u)),l.isXAxisTooltipEnabled&&l.xaxisTooltipText&&(l.xaxisTooltipText.innerHTML=""!==p?p:u);const m=a[e].querySelector(".apexcharts-tooltip-text-y-label");m&&(m.innerHTML=s||"");const f=a[e].querySelector(".apexcharts-tooltip-text-y-value");f&&(f.innerHTML=void 0!==c?c:""),g[0]&&g[0].classList.contains("apexcharts-tooltip-marker")&&(r.config.tooltip.marker.fillColors&&Array.isArray(r.config.tooltip.marker.fillColors)&&(o=r.config.tooltip.marker.fillColors[e]),r.config.tooltip.fillSeriesColor?g[0].style.backgroundColor=o:g[0].style.color=o),r.config.tooltip.marker.show||(g[0].style.display="none");const _=a[e].querySelector(".apexcharts-tooltip-text-goals-label"),b=a[e].querySelector(".apexcharts-tooltip-text-goals-value");if(d.length&&r.seriesData.seriesGoals[e]){const a=()=>{let e="<div>",t="<div>";d.forEach(a=>{e+=` <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: ${a.attrs.strokeColor}; height: 3px; border-radius: 0; top: 5px;"></span> ${a.attrs.name}</div>`,t+=`<div>${a.val}</div>`}),_.innerHTML=e+"</div>",b.innerHTML=t+"</div>"};n?r.seriesData.seriesGoals[e][t]&&Array.isArray(r.seriesData.seriesGoals[e][t])?a():(_.innerHTML="",b.innerHTML=""):a()}else _.innerHTML="",b.innerHTML="";if(null!==h){a[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=r.config.tooltip.z.title;a[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==h?h:""}if(n&&g[0]){if(r.config.tooltip.hideEmptySeries){const t=a[e].querySelector(".apexcharts-tooltip-marker"),i=a[e].querySelector(".apexcharts-tooltip-text");0==parseFloat(c)?(t.style.display="none",i.style.display="none"):(t.style.display="block",i.style.display="block")}null==c||r.globals.ancillaryCollapsedSeriesIndices.indexOf(e)>-1||r.globals.collapsedSeriesIndices.indexOf(e)>-1||Array.isArray(l.tConfig.enabledOnSeries)&&-1===l.tConfig.enabledOnSeries.indexOf(e)?g[0].parentNode.style.display="none":g[0].parentNode.style.display=r.config.tooltip.items.display}else Array.isArray(l.tConfig.enabledOnSeries)&&-1===l.tConfig.enabledOnSeries.indexOf(e)&&(g[0].parentNode.style.display="none")}toggleActiveInactiveSeries(e,t){const a=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");const e=a.dom.baseEl.querySelector(`.apexcharts-tooltip-series-group-${t}`);if(e){const t=e;t.classList.add("apexcharts-active"),t.style.display=a.config.tooltip.items.display}}}getValuesToPrint({i:e,j:t}){var a,i,s,n,o,r,l,c;const d=this.w,u=d.seriesData.seriesX.map(e=>e.length>0?e:[]);let p="",h="",g=null,m=null;const f={series:d.seriesData.series,seriesIndex:e,dataPointIndex:t,w:d},_=d.formatters.ttZFormatter;if(null===t)m=d.seriesData.series[e];else if(d.axisFlags.isXNumeric&&"treemap"!==d.config.chart.type){if(p=u[e][t],0===u[e].length){p=u[this.tooltipUtil.getFirstActiveXArray(u)][t]}}else{p=new oLe(this.w).isFormatXY()?void 0!==d.config.series[e].data[t]?d.config.series[e].data[t].x:"":void 0!==d.labelData.labels[t]?d.labelData.labels[t]:""}const b=p;if(d.axisFlags.isXNumeric&&"datetime"===d.config.xaxis.type){p=new XDe(this.w).xLabelFormat(d.formatters.ttKeyFormatter,b,b,{i:void 0,dateFormatter:new KDe(this.w).formatDate,w:this.w})}else p=d.globals.isBarHorizontal?d.formatters.yLabelFormatters[0](b,f):null!=(s=null==(i=(a=d.formatters).xLabelFormatter)?void 0:i.call(a,b,f))?s:b;return void 0!==d.config.tooltip.x.formatter&&(p=null!=(r=null==(o=(n=d.formatters).ttKeyFormatter)?void 0:o.call(n,b,f))?r:b),d.seriesData.seriesZ.length>0&&d.seriesData.seriesZ[e].length>0&&(g=null==_?void 0:_(d.seriesData.seriesZ[e][t],d)),h="function"==typeof d.config.xaxis.tooltip.formatter?null==(c=(l=d.formatters).xaxisTooltipFormatter)?void 0:c.call(l,b,f):p,{val:Array.isArray(m)?m.join(" "):m,xVal:Array.isArray(p)?p.join(" "):p,xAxisTTVal:Array.isArray(h)?h.join(" "):h,zVal:g}}handleCustomTooltip({i:e,j:t,y1:a,y2:i,w:s}){const n=this.ttCtx.getElTooltip();let o=s.config.tooltip.custom;Array.isArray(o)&&o[e]&&(o=o[e]);const r=o({series:s.seriesData.series,seriesIndex:e,dataPointIndex:t,y1:a,y2:i,w:s});n&&("string"==typeof r||"number"==typeof r?n.innerHTML=String(r):(r instanceof Element||"string"==typeof r.nodeName)&&(n.innerHTML="",n.appendChild(r.cloneNode(!0))))}}class dLe{constructor(e){this.ttCtx=e,this.w=e.w}moveXCrosshairs(e,t=null){const a=this.ttCtx,i=this.w,s=a.getElXCrosshairs();let n=e-a.xcrosshairsWidth/2;const o=i.labelData.labels.slice().length;if(null!==t&&(n=i.layout.gridWidth/o*t),null===s||i.globals.isBarHorizontal||(s.setAttribute("x",String(n)),s.setAttribute("x1",String(n)),s.setAttribute("x2",String(n)),s.setAttribute("y2",String(i.layout.gridHeight)),s.classList.add("apexcharts-active")),n<0&&(n=0),n>i.layout.gridWidth&&(n=i.layout.gridWidth),a.isXAxisTooltipEnabled){let e=n;"tickWidth"!==i.config.xaxis.crosshairs.width&&"barWidth"!==i.config.xaxis.crosshairs.width||(e=n+a.xcrosshairsWidth/2),this.moveXAxisTooltip(e)}}moveYCrosshairs(e){const t=this.ttCtx;null!==t.ycrosshairs&&fMe.setAttrs(t.ycrosshairs,{y1:e,y2:e}),null!==t.ycrosshairsHidden&&fMe.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}moveXAxisTooltip(e){var t,a;const i=this.w,s=this.ttCtx;if(null!==s.xaxisTooltip&&0!==s.xcrosshairsWidth){s.xaxisTooltip.classList.add("apexcharts-active");const n=s.xaxisOffY+i.config.xaxis.tooltip.offsetY+i.layout.translateY+5+i.config.xaxis.offsetY;if(e-=s.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e)){e+=i.layout.translateX;const o=new fMe(this.w).getTextRects(null!=(a=null==(t=s.xaxisTooltipText)?void 0:t.innerHTML)?a:"",i.config.xaxis.labels.style.fontSize);s.xaxisTooltipText&&(s.xaxisTooltipText.style.minWidth=o.width+"px"),s.xaxisTooltip.style.left=e+"px",s.xaxisTooltip.style.top=n+"px"}}}moveYAxisTooltip(e){var t,a;const i=this.w,s=this.ttCtx;null===s.yaxisTTEls&&(s.yaxisTTEls=[...i.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip")]);const n=parseInt(null!=(a=null==(t=s.ycrosshairsHidden)?void 0:t.getAttribute("y1"))?a:"0",10);let o=i.layout.translateY+n;if(s.yaxisTTEls){const t=s.yaxisTTEls[e].getBoundingClientRect(),a=t.height;let n;const r=i.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-texts-g`),l=i.dom.elWrap.getBoundingClientRect();if(r){const e=r.getBoundingClientRect();if(e.width>0){n=e.left+e.width/2-l.left-t.width/2}}if(null==n){const a=4;n=i.config.yaxis[e].opposite?i.globals.translateYAxisX[e]+a:i.globals.translateYAxisX[e]-t.width-a}o-=a/2,-1===i.globals.ignoreYAxisIndexes.indexOf(e)&&o>0&&o<i.layout.gridHeight?(s.yaxisTTEls[e].classList.add("apexcharts-active"),s.yaxisTTEls[e].style.top=o+"px",s.yaxisTTEls[e].style.left=n+i.config.yaxis[e].tooltip.offsetX+"px"):s.yaxisTTEls[e].classList.remove("apexcharts-active")}}moveTooltip(e,t,a=null){const i=this.ttCtx.getElTooltip();if(!i)return;const s=this.computeTooltipPosition(e,t,a);null!==s&&this.applyTooltipPosition(i,s)}computeTooltipPosition(e,t,a=null){var i,s,n,o,r,l,c;const d=this.w,u=this.ttCtx,p=u.tooltipRect,h=!!d.config.tooltip.arrow,g=null!==a?parseFloat(String(a)):1,m=p.ttHeight||0,f=p.ttWidth||0,_=parseFloat(String(e)),b=parseFloat(String(t));if(isNaN(_))return null;let v=_+g+5;const y=b+d.layout.translateY;let S=h?y-m/2+g/2:b+g/2,x="right";if(v>d.layout.gridWidth/2&&(v=v-f-g-10,x="left"),v>d.layout.gridWidth-f-10&&(v=d.layout.gridWidth-f),v<-20&&(v=-20),d.config.tooltip.followCursor){const e=u.getElGrid();if(!e)return null;const t=e.getBoundingClientRect();v=u.e.clientX-t.left,v>d.layout.gridWidth/2?(v-=f,x="left"):x="right",S=u.e.clientY+d.layout.translateY-t.top,S>d.layout.gridHeight/2&&(S-=m)}else if(!d.globals.isBarHorizontal)if(h){const e=d.layout.translateY,t=d.layout.translateY+d.layout.gridHeight;S+m>t&&(S=t-m),S<e&&(S=e)}else m/2+S>d.layout.gridHeight&&(S=d.layout.gridHeight-m+d.layout.translateY);if(isNaN(v))return null;v+=d.layout.translateX;const w=null==(s=null==(i=d.config)?void 0:i.chart)?void 0:s.accessibility;if((null==w?void 0:w.enabled)&&(null==(o=null==(n=null==w?void 0:w.keyboard)?void 0:n.navigation)?void 0:o.enabled)&&(null==(c=null==(l=null==(r=d.dom)?void 0:r.baseEl)?void 0:l.querySelector)?void 0:c.call(l,".apexcharts-keyboard-focused"))){const e=h?y:b,t=(g||1)+12,a=S,i=S+m;!isNaN(e)&&m>0&&a<e+t&&i>e-t&&(S=e-m-t,S<0&&(S=e+t))}let E=null;if(h&&m>0){const e=y-S,t=10,a=m-10;E=Math.max(t,Math.min(a,e))}return{x:v,y:S,placement:x,arrowY:E}}applyTooltipPosition(e,t){if(!e)return;const a="true"!==e.dataset.positioned;a&&(e.style.transitionProperty="none"),e.style.left=t.x+"px",e.style.top=t.y+"px",t.placement&&(e.dataset.placement=t.placement),null!=t.arrowY&&e.style.setProperty("--apx-tt-arrow-y",t.arrowY+"px"),null!=t.arrowX&&e.style.setProperty("--apx-tt-arrow-x",t.arrowX+"px"),a&&(e.offsetWidth,e.dataset.positioned="true",requestAnimationFrame(()=>{e.style.transitionProperty=""}))}moveMarkers(e,t){var a;const i=this.w,s=this.ttCtx;if(i.globals.markers.size[e]>0){const n=i.dom.baseEl.querySelectorAll(` .apexcharts-series[data\\:realIndex='${e}'] .apexcharts-marker`);for(let e=0;e<n.length;e++)parseInt(null!=(a=n[e].getAttribute("rel"))?a:"0",10)===t&&(s.marker.resetPointsSize(),s.marker.enlargeCurrentPoint(t,n[e]))}else s.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}moveDynamicPointOnHover(e,t){var a,i,s,n,o;const r=this.w,l=this.ttCtx;let c=0,d=0;const u=new fMe(this.w),p=r.globals.pointsArray,h=l.tooltipUtil.getHoverMarkerSize(t),g=r.config.series[t].type;if(g&&("column"===g||"candlestick"===g||"boxPlot"===g))return;c=null==(i=null==(a=p[t])?void 0:a[e])?void 0:i[0],d=(null==(n=null==(s=p[t])?void 0:s[e])?void 0:n[1])||0;const m=r.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${t}'] .apexcharts-series-markers path`);if(m&&d<r.layout.gridHeight&&d>0){const e=null!=(o=m.getAttribute("shape"))?o:"circle",t=u.getMarkerPath(c,d,e,1.5*h);m.setAttribute("d",t)}this.moveXCrosshairs(c),l.fixedTooltip||this.moveTooltip(c,d,h)}moveDynamicPointsOnHover(e){var t,a;const i=this.ttCtx,s=i.w;let n=0,o=0,r=0;const l=s.globals.pointsArray,c=new $Me(this.w),d=new fMe(this.w);r=c.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);const u=i.tooltipUtil.getHoverMarkerSize(r);if((null==(t=l[r])?void 0:t[e])&&(n=l[r][e][0],o=l[r][e][1]),isNaN(n))return;const p=i.tooltipUtil.getAllMarkers();if(p.length)for(let h=0;h<s.seriesData.series.length;h++){const t=l[h];if(s.globals.comboCharts&&void 0===t&&p.splice(h,0,null),t&&t.length){let t,i=l[h][e][1];p[h].setAttribute("cx",n);const o=null!=(a=p[h].getAttribute("shape"))?a:"circle";if("rangeArea"===s.config.chart.type&&!s.globals.comboCharts){const a=e+s.seriesData.series[h].length;t=l[h][a][1];i-=Math.abs(i-t)/2}if(null!==i&&!isNaN(i)&&i<s.layout.gridHeight+u&&i+u>0){const e=d.getMarkerPath(n,i,o,u);p[h].setAttribute("d",e)}else p[h].setAttribute("d","")}}this.moveXCrosshairs(n),i.fixedTooltip||this.moveTooltip(n,o||s.layout.gridHeight,u)}moveStickyTooltipOverBars(e,t){var a,i,s;const n=this.w,o=this.ttCtx;let r=n.globals.columnSeries?n.globals.columnSeries.length:n.seriesData.series.length;n.config.chart.stacked&&(r=n.globals.barGroups.length);let l=r>=2&&r%2==0?Math.floor(r/2):Math.floor(r/2)+1;if(n.globals.isBarHorizontal){l=new $Me(this.w).getActiveConfigSeriesIndex("desc")+1}let c=n.dom.baseEl.querySelector(`.apexcharts-bar-series .apexcharts-series[rel='${l}'] path[j='${e}'], .apexcharts-candlestick-series .apexcharts-series[rel='${l}'] path[j='${e}'], .apexcharts-boxPlot-series .apexcharts-series[rel='${l}'] path[j='${e}'], .apexcharts-rangebar-series .apexcharts-series[rel='${l}'] path[j='${e}']`);c||"number"!=typeof t||(c=n.dom.baseEl.querySelector(`.apexcharts-bar-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}'],\n .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}'],\n .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}'],\n .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}']`));let d=c?parseFloat(null!=(a=c.getAttribute("cx"))?a:"0"):0,u=c?parseFloat(null!=(i=c.getAttribute("cy"))?i:"0"):0;const p=c?parseFloat(null!=(s=c.getAttribute("barWidth"))?s:"0"):0,h=o.getElGrid();if(!h)return;const g=h.getBoundingClientRect(),m=c&&(c.classList.contains("apexcharts-candlestick-area")||c.classList.contains("apexcharts-boxPlot-area"));if(n.axisFlags.isXNumeric){if(c&&!m){const t=this._datapointCenterXFromBars(e,g);null!=t?d=t:d-=r%2!=0?p/2:0}c&&m&&(d-=p/2)}else n.globals.isBarHorizontal||(d=o.xAxisTicksPositions[e-1]+o.dataPointsDividedWidth/2,isNaN(d)&&(d=o.xAxisTicksPositions[e]-o.dataPointsDividedWidth/2));if(n.globals.isBarHorizontal?u-=o.tooltipRect.ttHeight:n.config.tooltip.followCursor?u=o.e.clientY-g.top-o.tooltipRect.ttHeight/2:u+o.tooltipRect.ttHeight+15>n.layout.gridHeight&&(u=n.layout.gridHeight),n.globals.isBarHorizontal||this.moveXCrosshairs(d),!o.fixedTooltip){if(n.globals.isBarHorizontal&&!n.config.tooltip.followCursor){if(this.placeHorizontalSharedTooltip(e))return}this.moveTooltip(d,u||n.layout.gridHeight)}}_datapointCenterXFromBars(e,t){var a,i;const s=this.w.dom.baseEl.querySelectorAll(`.apexcharts-bar-series path[j='${e}'],.apexcharts-rangebar-series path[j='${e}']`);if(!s.length)return null;let n=1/0,o=-1/0;for(const r of s){const e=r.parentNode;if(null==(i=null==(a=null==e?void 0:e.classList)?void 0:a.contains)?void 0:i.call(a,"apexcharts-series-collapsed"))continue;const t=r.getBoundingClientRect();0===t.width&&0===t.height||(t.left<n&&(n=t.left),t.right>o&&(o=t.right))}return isFinite(n)?(n+o)/2-t.left:null}placeHorizontalSharedTooltip(e){var t,a;const i=this.w,s=this.ttCtx,n=s.getElTooltip();if(!n)return!1;const o=s.getElGrid();if(!o)return!1;const r=o.getBoundingClientRect(),l=i.dom.baseEl.querySelectorAll(`.apexcharts-bar-series path[j='${e}'],.apexcharts-rangebar-series path[j='${e}'],.apexcharts-boxPlot-series path[j='${e}']`);if(!l.length)return!1;let c=1/0,d=-1/0,u=1/0,p=-1/0;for(const k of l){const e=k.parentNode;if(null==(a=null==(t=null==e?void 0:e.classList)?void 0:t.contains)?void 0:a.call(t,"apexcharts-series-collapsed"))continue;const i=k.getBoundingClientRect();0===i.width&&0===i.height||(i.left<c&&(c=i.left),i.right>d&&(d=i.right),i.top<u&&(u=i.top),i.bottom>p&&(p=i.bottom))}if(!isFinite(c))return!1;const h=s.tooltipRect.ttWidth||0,g=s.tooltipRect.ttHeight||0,m=(c+d)/2-r.left+i.layout.translateX,f=u-r.top+i.layout.translateY,_=p-r.top+i.layout.translateY,b=i.layout.translateY,v=i.layout.translateY+i.layout.gridHeight,y=i.layout.translateX,S=i.layout.translateX+i.layout.gridWidth;let x="top",w=f-g-7;if(w<b){const e=_+7;e+g<=v&&(x="bottom",w=e)}let E=m-h/2;E<y&&(E=y),E+h>S&&(E=S-h);const C=Math.max(10,Math.min(h-10,m-E));return this.applyTooltipPosition(n,{x:E,y:w,placement:x,arrowY:null,arrowX:C}),!0}}function uLe(e){const t=e=>`<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">${e}</svg>`;switch(e){case"square":case"rect":return t('<rect x="1" y="1" width="10" height="10" rx="1" fill="currentColor"/>');case"line":return t('<rect x="0" y="5" width="12" height="2" rx="1" fill="currentColor"/>');case"diamond":return t('<path d="M6 0.5 L11.5 6 L6 11.5 L0.5 6 Z" fill="currentColor"/>');case"triangle":return t('<path d="M6 1 L11.2 10.5 L0.8 10.5 Z" fill="currentColor"/>');case"cross":return t('<path d="M2 2 L10 10 M10 2 L2 10" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>');case"plus":return t('<path d="M6 1 L6 11 M1 6 L11 6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>');case"star":return t('<path d="M6 0.5 L7.5 4.4 L11.5 4.7 L8.4 7.2 L9.5 11.1 L6 8.9 L2.5 11.1 L3.6 7.2 L0.5 4.7 L4.5 4.4 Z" fill="currentColor"/>');case"sparkle":return t('<path d="M6 0.5 L7 5 L11.5 6 L7 7 L6 11.5 L5 7 L0.5 6 L5 5 Z" fill="currentColor"/>');default:return t('<circle cx="6" cy="6" r="5" fill="currentColor"/>')}}class pLe{constructor(e){this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new dLe(e)}drawDynamicPoints(){const e=this.w,t=new fMe(this.w),a=new xMe(this.w,this.ctx),i=[...e.dom.baseEl.querySelectorAll(".apexcharts-series")];e.config.chart.stacked&&i.sort((e,t)=>parseFloat(e.getAttribute("data:realIndex"))-parseFloat(t.getAttribute("data:realIndex")));for(let s=0;s<i.length;s++){const n=i[s].querySelector(".apexcharts-series-markers-wrap");if(null!==n){let i=`apexcharts-marker w${(Math.random()+1).toString(36).substring(4)}`;"line"!==e.config.chart.type&&"area"!==e.config.chart.type||e.globals.comboCharts||e.config.tooltip.intersect||(i+=" no-pointer-events");const s=a.getMarkerConfig({cssClass:i,seriesIndex:Number(n.getAttribute("data:realIndex"))}),o=t.drawMarker(0,0,s);o.node.setAttribute("default-marker-size",0);const r=jDe.createElementNS(_Me,"g");r.classList.add("apexcharts-series-markers"),r.appendChild(o.node),n.appendChild(r)}}}enlargeCurrentPoint(e,t,a=null,i=null){const s=this.w;"bubble"!==s.config.chart.type&&this.newPointSize(e,t);let n=t.getAttribute("cx"),o=t.getAttribute("cy");if(null!==a&&null!==i&&(n=a,o=i),this.tooltipPosition.moveXCrosshairs(n),!this.fixedTooltip){if("radar"===s.config.chart.type){const e=this.ttCtx.getElGrid();if(!e)return;const t=e.getBoundingClientRect();n=this.ttCtx.e.clientX-t.left}this.tooltipPosition.moveTooltip(n,o,s.config.markers.hover.size)}}enlargePoints(e){var t,a;const i=this.w,s=this,n=this.ttCtx,o=e,r=i.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker");let l=i.config.markers.hover.size;for(let c=0;c<r.length;c++){const e=r[c].getAttribute("rel"),d=r[c].getAttribute("index");if(void 0===l&&(l=i.globals.markers.size[d]+i.config.markers.hover.sizeOffset),o===parseInt(null!=e?e:"0",10)){s.newPointSize(o,r[c]);const e=null!=(t=r[c].getAttribute("cx"))?t:"0",i=null!=(a=r[c].getAttribute("cy"))?a:"0";s.tooltipPosition.moveXCrosshairs(parseFloat(e)),n.fixedTooltip||s.tooltipPosition.moveTooltip(parseFloat(e),parseFloat(i),l)}else s.oldPointSize(r[c])}}newPointSize(e,t){const a=this.w;let i=a.config.markers.hover.size;const s=0===e?t.parentNode.firstChild:t.parentNode.lastChild;if("0"!==s.getAttribute("default-marker-size")){const e=parseInt(s.getAttribute("index"),10);void 0===i&&(i=a.globals.markers.size[e]+a.config.markers.hover.sizeOffset),i<0&&(i=0);const n=this.ttCtx.tooltipUtil.getPathFromPoint(t,i);t.setAttribute("d",n)}}oldPointSize(e){const t=parseFloat(e.getAttribute("default-marker-size")),a=this.ttCtx.tooltipUtil.getPathFromPoint(e,t);e.setAttribute("d",a)}resetPointsSize(){var e;const t=this.w.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker");for(let a=0;a<t.length;a++){const i=parseFloat(null!=(e=t[a].getAttribute("default-marker-size"))?e:"0");if(qDe.isNumber(i)&&i>0){const e=this.ttCtx.tooltipUtil.getPathFromPoint(t[a],i);t[a].setAttribute("d",e)}else t[a].setAttribute("d","M0,0")}}}class hLe{constructor(e){this.w=e.w;const t=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!t.globals.isBarHorizontal&&"rangeBar"===t.config.chart.type&&t.config.plotOptions.bar.rangeBarGroupRows}getAttr(e,t){var a;return parseFloat(null!=(a=e.target.getAttribute(t))?a:"")}handleHeatTreeTooltip({e:e,opt:t,x:a,y:i,type:s}){var n,o;const r=this.ttCtx,l=this.w;if(e.target.classList.contains(`apexcharts-${s}-rect`)){const s=this.getAttr(e,"i"),c=this.getAttr(e,"j"),d=this.getAttr(e,"cx"),u=this.getAttr(e,"cy"),p=this.getAttr(e,"width"),h=this.getAttr(e,"height");if(r.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:s,j:c,shared:!1,e:e}),l.interact.capturedSeriesIndex=s,l.interact.capturedDataPointIndex=c,a=d+r.tooltipRect.ttWidth/2+p,i=u+r.tooltipRect.ttHeight/2-h/2,r.tooltipPosition.moveXCrosshairs(d+p/2),a>l.layout.gridWidth/2&&(a=d-r.tooltipRect.ttWidth/2+p),r.w.config.tooltip.followCursor){const e=l.dom.elWrap.getBoundingClientRect();a=(null!=(n=l.interact.clientX)?n:0)-e.left-(a>l.layout.gridWidth/2?r.tooltipRect.ttWidth:0),i=(null!=(o=l.interact.clientY)?o:0)-e.top-(i>l.layout.gridHeight/2?r.tooltipRect.ttHeight:0)}}return{x:a,y:i}}handleMarkerTooltip({e:e,opt:t,x:a,y:i}){const s=this.w,n=this.ttCtx;let o,r;if(e.target.classList.contains("apexcharts-marker")){const l=parseInt(t.paths.getAttribute("cx"),10),c=parseInt(t.paths.getAttribute("cy"),10),d=parseFloat(t.paths.getAttribute("val"));if(r=parseInt(t.paths.getAttribute("rel"),10),o=parseInt(t.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,n.intersect){const e=qDe.findAncestor(t.paths,"apexcharts-series");e&&(o=parseInt(e.getAttribute("data:realIndex"),10))}n.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:o,j:r,shared:!n.showOnIntersect&&s.config.tooltip.shared,e:e}),"mouseup"===e.type&&n.markerClick(e,o,r),s.interact.capturedSeriesIndex=o,s.interact.capturedDataPointIndex=r;if(a=l,!!s.config.tooltip.arrow?i=c:(i=c+s.layout.translateY-1.4*n.tooltipRect.ttHeight,d<0&&(i=c)),n.w.config.tooltip.followCursor){const e=n.getElGrid();if(!e)return{x:a,y:i};const t=e.getBoundingClientRect();i=n.e.clientY+s.layout.translateY-t.top}n.marker.enlargeCurrentPoint(r,t.paths,a,i)}return{x:a,y:i}}handleBarTooltip({e:e,opt:t}){var a,i,s;const n=this.w,o=this.ttCtx,r=o.getElTooltip();let l,c=0,d=0,u=0,p=0;const h=this.getBarTooltipXY({e:e,opt:t});if(null===h.j&&0===h.barHeight&&0===h.barWidth)return;p=h.i;const g=h.j;if(n.interact.capturedSeriesIndex=p,n.interact.capturedDataPointIndex=null!==g?g:n.interact.capturedDataPointIndex,n.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!n.config.tooltip.shared?(d=h.x,u=h.y,l=Array.isArray(n.config.stroke.width)?n.config.stroke.width[p]:n.config.stroke.width,c=d):n.globals.comboCharts||n.config.tooltip.shared||(c/=2),isNaN(u)&&(u=n.globals.svgHeight-o.tooltipRect.ttHeight),d+o.tooltipRect.ttWidth>n.layout.gridWidth?d-=o.tooltipRect.ttWidth:d<0&&(d=0),o.w.config.tooltip.followCursor){if(!o.getElGrid())return}if(null===o.tooltip&&(o.tooltip=n.dom.baseEl.querySelector(".apexcharts-tooltip")),n.config.tooltip.shared||(n.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(c+l/2):o.tooltipPosition.moveXCrosshairs(c)),!o.fixedTooltip&&(!n.config.tooltip.shared||n.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(u=u+n.layout.translateY-o.tooltipRect.ttHeight/2,r)){const e=o.tooltipRect.ttWidth||0,t=o.tooltipRect.ttHeight||0,l=!!n.config.tooltip.arrow,{barAnchorXInGrid:c,barAnchorYInGrid:p,barRectInGrid:g}=h,m=7,f=null==(a=o.getElGrid())?void 0:a.getBoundingClientRect(),_=n.dom.elWrap.getBoundingClientRect(),b=f?f.left-_.left:n.layout.translateX;let v,y=null,S=null,x=d+b,w=u;if(l&&n.globals.isBarHorizontal&&null!=g){const a=n.layout.translateY,i=n.layout.translateY+n.layout.gridHeight,s=b,o=b+n.layout.gridWidth,r=(g.left+g.right)/2+b,l=g.top+n.layout.translateY,c=g.bottom+n.layout.translateY;let d=l-t-m;if(v="top",d<a){const e=c+m;e+t<=i&&(v="bottom",d=e)}w=d,x=r-e/2,x<s&&(x=s),x+e>o&&(x=o-e),S=Math.max(10,Math.min(e-10,r-x))}else if(l&&null!=c&&null!=p){const a=c+b,o=b+n.layout.gridWidth/2,r=(null!=(i=null==g?void 0:g.left)?i:c)+b,l=(null!=(s=null==g?void 0:g.right)?s:c)+b;if(a<o?(v="right",x=l+m):(v="left",x=r-e-m),g){w=(g.top+g.bottom)/2+n.layout.translateY-t/2;const e=n.layout.translateY,a=n.layout.translateY+n.layout.gridHeight;w<e&&(w=e),w+t>a&&(w=a-t)}if(t>0&&g){const e=(g.top+g.bottom)/2+n.layout.translateY;y=Math.max(10,Math.min(t-10,e-w))}}o.tooltipPosition.applyTooltipPosition(r,{x:x,y:w,placement:v,arrowY:y,arrowX:S})}}getBarTooltipXY({e:e,opt:t}){const a=this.w;let i=null;const s=this.ttCtx;let n=0,o=0,r=0,l=0,c=0,d=null,u=null,p=null,h=null,g=null;const m=e.target.classList;if(m.contains("apexcharts-bar-area")||m.contains("apexcharts-candlestick-area")||m.contains("apexcharts-boxPlot-area")||m.contains("apexcharts-rangebar-area")){const m=e.target,f=m.getBoundingClientRect(),_=t.elGrid.getBoundingClientRect(),b=f.height;c=f.height;const v=f.width,y=parseInt(m.getAttribute("cx"),10),S=parseInt(m.getAttribute("cy"),10);d=y,u=S,l=parseFloat(m.getAttribute("barWidth"));const x=f.left-_.left,w=f.top-_.top,E=w+b/2;p=x+v/2,h=a.globals.isBarHorizontal?E:w,g={left:x,top:w,right:x+v,bottom:w+b};const C="touchmove"===e.type?e.touches[0].clientX:e.clientX;i=parseInt(m.getAttribute("j"),10),n=parseInt(m.parentNode.getAttribute("rel"),10)-1;const k=m.getAttribute("data-range-y1"),T=m.getAttribute("data-range-y2");a.globals.comboCharts&&(n=parseInt(m.parentNode.getAttribute("data:realIndex"),10));const A=e=>a.axisFlags.isXNumeric?y-v/2:this.isVerticalGroupedRangeBar?y+v/2:y-s.dataPointsDividedWidth+v/2,R=()=>S-s.dataPointsDividedHeight+b/2-s.tooltipRect.ttHeight/2;s.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:n,j:i,y1:k?parseInt(k,10):null,y2:T?parseInt(T,10):null,shared:!s.showOnIntersect&&a.config.tooltip.shared,e:e}),a.config.tooltip.followCursor?a.globals.isBarHorizontal?(o=C-_.left+15,r=R()):(o=A(o),r=e.clientY-_.top-s.tooltipRect.ttHeight/2-15):a.globals.isBarHorizontal?(o=y,s.xyRatios&&o<s.xyRatios.baseLineInvertedY&&(o=y-s.tooltipRect.ttWidth),r=R()):(o=A(o),r=S)}return{x:o,y:r,barHeight:c,barWidth:l,i:n,j:i,barCx:d,barCy:u,barAnchorXInGrid:p,barAnchorYInGrid:h,barRectInGrid:g}}}class gLe{constructor(e){this.w=e.w,this.ttCtx=e}drawXaxisTooltip(){const e=this.w,t=this.ttCtx,a="bottom"===e.config.xaxis.position;t.xaxisOffY=a?e.layout.gridHeight+1:-e.layout.xAxisHeight-e.config.xaxis.axisTicks.height+3;const i=a?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",s=e.dom.elWrap;if(t.isXAxisTooltipEnabled){null===e.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(t.xaxisTooltip=jDe.createElementNS("http://www.w3.org/1999/xhtml","div"),t.xaxisTooltip.setAttribute("class",i+" apexcharts-theme-"+e.config.tooltip.theme),s.appendChild(t.xaxisTooltip),t.xaxisTooltipText=jDe.createElementNS("http://www.w3.org/1999/xhtml","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))}}drawYaxisTooltip(){const e=this.w,t=this.ttCtx;for(let a=0;a<e.config.yaxis.length;a++){const i=e.config.yaxis[a].opposite||e.config.yaxis[a].crosshairs.opposite;t.yaxisOffX=i?e.layout.gridWidth+1:1;const s=i?`apexcharts-yaxistooltip apexcharts-yaxistooltip-${a} apexcharts-yaxistooltip-right`:`apexcharts-yaxistooltip apexcharts-yaxistooltip-${a} apexcharts-yaxistooltip-left`,n=e.dom.elWrap;null===e.dom.baseEl.querySelector(`.apexcharts-yaxistooltip apexcharts-yaxistooltip-${a}`)&&(t.yaxisTooltip=jDe.createElementNS("http://www.w3.org/1999/xhtml","div"),t.yaxisTooltip.setAttribute("class",s+" apexcharts-theme-"+e.config.tooltip.theme),n.appendChild(t.yaxisTooltip),0===a&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[a]=jDe.createElementNS("http://www.w3.org/1999/xhtml","div"),t.yaxisTooltipText[a].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[a]))}}setXCrosshairWidth(){var e,t;const a=this.w,i=this.ttCtx,s=i.getElXCrosshairs();if(i.xcrosshairsWidth=parseInt(a.config.xaxis.crosshairs.width,10),a.globals.comboCharts){const e=a.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==e&&"barWidth"===a.config.xaxis.crosshairs.width){const a=parseFloat(null!=(t=e.getAttribute("barWidth"))?t:"0");i.xcrosshairsWidth=a}else if("tickWidth"===a.config.xaxis.crosshairs.width){const e=a.labelData.labels.length;i.xcrosshairsWidth=a.layout.gridWidth/e}}else if("tickWidth"===a.config.xaxis.crosshairs.width){const e=a.labelData.labels.length;i.xcrosshairsWidth=a.layout.gridWidth/e}else if("barWidth"===a.config.xaxis.crosshairs.width){const t=a.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==t){const a=parseFloat(null!=(e=t.getAttribute("barWidth"))?e:"0");i.xcrosshairsWidth=a}else i.xcrosshairsWidth=1}a.globals.isBarHorizontal&&(i.xcrosshairsWidth=0),null!==s&&i.xcrosshairsWidth>0&&s.setAttribute("width",String(i.xcrosshairsWidth))}handleYCrosshair(){const e=this.w,t=this.ttCtx;t.ycrosshairs=e.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}drawYaxisTooltipText(e,t,a){const i=this.ttCtx,s=this.w,n=s.globals,o=n.seriesYAxisMap[e];if(i.yaxisTooltips[e]&&o.length>0){const r=s.formatters.yLabelFormatters[e],l=i.getElGrid();if(!l)return;const c=l.getBoundingClientRect(),d=o[0];let u=0;a.yRatio.length>1&&(u=d);const p=(t-c.top)*a.yRatio[u],h=n.maxYArr[d]-n.minYArr[d];let g=n.minYArr[d]+(h-p);s.config.yaxis[e].reversed&&(g=n.maxYArr[d]-(h-p)),i.tooltipPosition.moveYCrosshairs(t-c.top),i.yaxisTooltipText[e].innerHTML=r(g),i.tooltipPosition.moveYAxisTooltip(e)}}}class mLe{constructor(e,t){this.w=e,this.ctx=t,this.tConfig=e.config.tooltip,this.tooltipUtil=new lLe(this),this.tooltipLabels=new cLe(this),this.tooltipPosition=new dLe(this),this.marker=new pLe(this),this.intersect=new hLe(this),this.axesTooltip=new gLe(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.xaxisTooltipText=null,this.yaxisTooltip=null,this.yaxisTooltipText=null,this.yaxisTTEls=null,this.xaxisOffY=0,this.yaxisOffX=0,this.xcrosshairsWidth=0,this.ycrosshairs=null,this.ycrosshairsHidden=null,this.tooltip=null,this.e=null,this.isBarShared=!e.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now(),this.dimensionUpdateScheduled=!1,this.xyRatios=null,this.isXAxisTooltipEnabled=!1,this.yaxisTooltips=[],this.allTooltipSeriesGroups=[],this.xAxisTicksPositions=null,this.dataPointsDividedHeight=0,this.dataPointsDividedWidth=0,this.tooltipTitle=null,this.legendLabels=null,this.ttItems=null,this.seriesBound=null,this.seriesHoverTimeout=void 0,this.clientX=0,this.clientY=0,this.barSeriesHeight=0,this.tooltipRect={x:0,y:0,ttWidth:0,ttHeight:0}}setupDimensionCache(){const e=this.w,t=this.getElTooltip();t&&(this.updateDimensionCache(),"undefined"==typeof ResizeObserver||e.globals.resizeObserver||(e.globals.resizeObserver=new ResizeObserver(()=>{this.dimensionUpdateScheduled||(this.dimensionUpdateScheduled=!0,requestAnimationFrame(()=>{this.updateDimensionCache(),this.dimensionUpdateScheduled=!1}))}),e.globals.resizeObserver.observe(t)))}updateDimensionCache(){const e=this.w,t=this.getElTooltip();if(!t)return;const a=t.getBoundingClientRect();e.globals.dimensionCache.tooltip={width:a.width,height:a.height,lastUpdate:Date.now()}}getCachedDimensions(){const e=this.w;if(e.globals.dimensionCache.tooltip){const t=e.globals.dimensionCache.tooltip;if(Date.now()-t.lastUpdate<1e3)return{ttWidth:t.width,ttHeight:t.height}}this.updateDimensionCache();const t=e.globals.dimensionCache.tooltip;return t?{ttWidth:t.width,ttHeight:t.height}:{ttWidth:0,ttHeight:0}}getElTooltip(e){return e||(e=this),e.w.dom.baseEl?e.w.dom.baseEl.querySelector(".apexcharts-tooltip"):null}getElXCrosshairs(){return this.w.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}getElGrid(){return this.w.dom.baseEl.querySelector(".apexcharts-grid")}drawTooltip(e){const t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map(e=>!!(e.show&&e.tooltip.enabled&&t.globals.axisCharts)),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);const a=this.getElTooltip();(null==a?void 0:a.parentNode)&&a.parentNode.removeChild(a),this.tooltipTitle=null;const i=jDe.createElementNS("http://www.w3.org/1999/xhtml","div");i.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&i.classList.add(t.config.tooltip.cssClass),i.classList.add(`apexcharts-theme-${this.tConfig.theme||"light"}`),this.tConfig.fillSeriesColor&&i.classList.add("apexcharts-tooltip-fill-series"),this.tConfig.style&&this.tConfig.style.background&&i.style.setProperty("--apx-tt-bg",this.tConfig.style.background);const s=this.tConfig.shared&&t.config.series.length>1&&!t.globals.isBarHorizontal;if(this.tConfig.arrow&&!this.tConfig.followCursor&&!this.tConfig.fixed.enabled&&!s&&!this.tConfig.fillSeriesColor&&t.globals.axisCharts){const e=jDe.createElementNS("http://www.w3.org/1999/xhtml","div");e.classList.add("apexcharts-tooltip-arrow"),i.appendChild(e)}if(t.config.chart.accessibility.enabled&&t.config.chart.accessibility.announcements.enabled&&(i.setAttribute("role","tooltip"),i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),i.setAttribute("aria-hidden","true")),t.dom.elWrap.appendChild(i),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();const e=new TMe(this.w,this.ctx,void 0);this.xAxisTicksPositions=e.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(),t.globals.collapsedSeries.length===t.seriesData.series.length)return;this.dataPointsDividedHeight=t.layout.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.layout.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=jDe.createElementNS("http://www.w3.org/1999/xhtml","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,i.appendChild(this.tooltipTitle));let n=t.seriesData.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(n=this.showOnIntersect?1:t.seriesData.series.length),this.legendLabels=t.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(n),this.addSVGEvents(),this.setupDimensionCache()}createTTElements(e){const t=this.w,a=[],i=this.getElTooltip();if(!i)return a;for(let s=0;s<e;s++){const n=jDe.createElementNS("http://www.w3.org/1999/xhtml","div");n.classList.add("apexcharts-tooltip-series-group",`apexcharts-tooltip-series-group-${s}`),n.style.order=String(t.config.tooltip.inverseOrder?e-s:s+1);const o=jDe.createElementNS("http://www.w3.org/1999/xhtml","span");o.classList.add("apexcharts-tooltip-marker"),t.config.tooltip.fillSeriesColor?o.style.backgroundColor=t.globals.colors[s]:o.style.color=t.globals.colors[s];const r=t.config.markers.shape;let l=r;Array.isArray(r)&&(l=r[s]),o.setAttribute("shape",l),o.innerHTML=uLe(l),n.appendChild(o);const c=jDe.createElementNS("http://www.w3.org/1999/xhtml","div");c.classList.add("apexcharts-tooltip-text"),c.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,c.style.fontSize=this.tConfig.style.fontSize,["y","goals","z"].forEach(e=>{const t=jDe.createElementNS("http://www.w3.org/1999/xhtml","div");t.classList.add(`apexcharts-tooltip-${e}-group`);const a=jDe.createElementNS("http://www.w3.org/1999/xhtml","span");a.classList.add(`apexcharts-tooltip-text-${e}-label`),t.appendChild(a);const i=jDe.createElementNS("http://www.w3.org/1999/xhtml","span");i.classList.add(`apexcharts-tooltip-text-${e}-value`),t.appendChild(i),c.appendChild(t)}),n.appendChild(c),i.appendChild(n),a.push(n)}return a}addSVGEvents(){const e=this.w,t=e.config.chart.type,a=this.getElTooltip();if(!a)return;const i=!("bar"!==t&&"candlestick"!==t&&"boxPlot"!==t&&"rangeBar"!==t),s="area"===t||"line"===t||"scatter"===t||"bubble"===t||"radar"===t,n=e.dom.Paper.node,o=this.getElGrid();o&&(this.seriesBound=o.getBoundingClientRect());const r=[],l=[],c={hoverArea:n,elGrid:o,tooltipEl:a,tooltipY:r,tooltipX:l,ttItems:this.ttItems};let d;if(e.globals.axisCharts&&(s?d=e.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):i?d=e.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||(d=e.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),d&&d.length))for(let u=0;u<d.length;u++)r.push(d[u].getAttribute("cy")),l.push(d[u].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||i&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([n],c);else if(i&&!e.globals.comboCharts||s&&this.showOnIntersect)this.addDatapointEventsListeners(c);else if(!e.globals.axisCharts||"heatmap"===t||"treemap"===t){const t=e.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(t,c)}if(this.showOnIntersect){const t=e.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");t.length>0&&this.addPathsEventListeners(t,c),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(c)}}drawFixedTooltipRect(){const e=this.w,t=this.getElTooltip();if(!t)return{x:0,y:0,ttWidth:0,ttHeight:0};const a=t.getBoundingClientRect(),i=a.width+10,s=a.height+10;let n=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY;const r=this.tConfig.fixed.position.toLowerCase();return r.indexOf("right")>-1&&(n=n+e.globals.svgWidth-i+10),r.indexOf("bottom")>-1&&(o=o+e.globals.svgHeight-s-10),this.tooltipPosition.applyTooltipPosition(t,{x:n,y:o}),{x:n,y:o,ttWidth:i,ttHeight:s}}addDatapointEventsListeners(e){const t=this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,e)}addPathsEventListeners(e,t){const a=this;for(let i=0;i<e.length;i++){const s={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(t=>e[i].addEventListener(t,a.onSeriesHover.bind(a,s),{capture:!1,passive:!0}))}}onSeriesHover(e,t){const a=Date.now()-this.lastHoverTime;a>=20?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(()=>{this.seriesHover(e,t)},20-a))}seriesHover(e,t){this.lastHoverTime=Date.now();let a=[];const i=this.w;i.config.chart.group&&(a=this.ctx.getGroupedCharts()),i.globals.axisCharts&&(i.globals.minX===-1/0&&i.globals.maxX===1/0||0===i.globals.dataPoints)||(a.length?a.forEach(a=>{const i=this.getElTooltip(a),s={paths:e.paths,tooltipEl:i,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:a.w.globals.tooltip.ttItems};a.w.globals.minX===this.w.globals.minX&&a.w.globals.maxX===this.w.globals.maxX&&a.w.globals.tooltip.seriesHoverByContext({chartCtx:a,ttCtx:a.w.globals.tooltip,opt:s,e:t})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}seriesHoverByContext({chartCtx:e,ttCtx:t,opt:a,e:i}){const s=e.w;if(!this.getElTooltip(e))return;const n=t.getCachedDimensions();if(t.tooltipRect={x:0,y:0,ttWidth:n.ttWidth,ttHeight:n.ttHeight},t.e=i,t.tooltipUtil.hasBars()&&!s.globals.comboCharts&&!t.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries){new $Me(e.w).toggleSeriesOnHover(i,i.target.parentNode)}s.globals.axisCharts?t.axisChartsTooltips({e:i,opt:a,tooltipRect:t.tooltipRect}):t.nonAxisChartsTooltips({e:i,opt:a,tooltipRect:t.tooltipRect}),t.fixedTooltip&&t.drawFixedTooltipRect()}axisChartsTooltips({e:e,opt:t}){var a;const i=this.w;let s,n;const o=t.elGrid.getBoundingClientRect(),r="touchmove"===e.type?e.touches[0].clientX:e.clientX,l="touchmove"===e.type?e.touches[0].clientY:e.clientY;if(this.clientY=l,this.clientX=r,i.interact.capturedSeriesIndex=-1,i.interact.capturedDataPointIndex=-1,l<o.top||l>o.top+o.height)return void this.handleMouseOut(t);if(Array.isArray(this.tConfig.enabledOnSeries)&&!i.config.tooltip.shared){const e=parseInt(t.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(e)<0)return void this.handleMouseOut(t)}const c=this.getElTooltip();if(!c)return;const d=this.getElXCrosshairs();let u=[];i.config.chart.group&&(u=this.ctx.getSyncedCharts());const p=i.globals.xyCharts||"bar"===i.config.chart.type&&!i.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||i.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===e.type||"touchmove"===e.type||"mouseup"===e.type){if(i.globals.collapsedSeries.length+i.globals.ancillaryCollapsedSeries.length===i.seriesData.series.length)return;null!==d&&d.classList.add("apexcharts-active");const o=null==(a=this.yaxisTooltips)?void 0:a.filter(e=>!0===e),h=this.ycrosshairs;if(null!==h&&(null==o?void 0:o.length)&&h.classList.add("apexcharts-active"),p&&!this.showOnIntersect||u.length>1)this.handleStickyTooltip(e,r,l,t);else if("heatmap"===i.config.chart.type||"treemap"===i.config.chart.type){const a=this.intersect.handleHeatTreeTooltip({e:e,opt:t,x:s,y:n,type:i.config.chart.type});s=a.x,n=a.y,c.style.left=s+"px",c.style.top=n+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:e,opt:t}),this.tooltipUtil.hasMarkers(0)&&this.intersect.handleMarkerTooltip({e:e,opt:t,x:s,y:n});if(this.yaxisTooltips&&this.yaxisTooltips.length)for(let e=0;e<i.config.yaxis.length;e++)this.axesTooltip.drawYaxisTooltipText(e,l,this.xyRatios);i.dom.baseEl.classList.add("apexcharts-tooltip-active"),t.tooltipEl.classList.add("apexcharts-active"),i.config.chart.accessibility.enabled&&i.config.chart.accessibility.announcements.enabled&&t.tooltipEl.removeAttribute("aria-hidden")}else"mouseout"!==e.type&&"touchend"!==e.type||this.handleMouseOut(t)}nonAxisChartsTooltips({e:e,opt:t,tooltipRect:a}){var i,s,n,o;const r=this.w,l=t.paths.getAttribute("rel"),c=this.getElTooltip();if(!c)return;const d=r.dom.elWrap.getBoundingClientRect();if("mousemove"===e.type||"touchmove"===e.type){let e,o;r.dom.baseEl.classList.add("apexcharts-tooltip-active"),c.classList.add("apexcharts-active"),r.config.chart.accessibility.enabled&&r.config.chart.accessibility.announcements.enabled&&c.removeAttribute("aria-hidden"),this.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:parseInt(l,10)-1,shared:!1});const u=t.paths.querySelector("path[data\\:cx]")||t.paths;if(r.config.tooltip.intersect&&u.hasAttribute("data:cx")&&u.hasAttribute("data:cy")){const t=r.dom.Paper.node.getBoundingClientRect();e=t.left-d.left+parseFloat(u.getAttribute("data:cx"))-a.ttWidth/2,o=t.top-d.top+parseFloat(u.getAttribute("data:cy"))-a.ttHeight-10}else e=(null!=(i=r.interact.clientX)?i:0)-d.left-a.ttWidth/2,o=(null!=(s=r.interact.clientY)?s:0)-d.top-a.ttHeight-10;if(c.style.left=e+"px",c.style.top=o+"px",r.config.legend.tooltipHoverFormatter){const e=r.config.legend.tooltipHoverFormatter,t=l-1,a=null==(n=this.legendLabels)?void 0:n[t];if(!a)return;const i=e(a.getAttribute("data:default-text"),{seriesIndex:t,dataPointIndex:t,w:r});a.innerHTML=i}}else"mouseout"!==e.type&&"touchend"!==e.type||(c.classList.remove("apexcharts-active"),r.dom.baseEl.classList.remove("apexcharts-tooltip-active"),r.config.legend.tooltipHoverFormatter&&(null==(o=this.legendLabels)||o.forEach(e=>{const t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(null!=t?t:"")})))}handleStickyTooltip(e,t,a,i){const s=this.w,n=this.tooltipUtil.getNearestValues({context:this,hoverArea:i.hoverArea,elGrid:i.elGrid,clientX:t,clientY:a}),o=n.j;let r=n.capturedSeries;null!==r&&s.globals.collapsedSeriesIndices.includes(null!=r?r:-1)&&(r=null);const l=i.elGrid.getBoundingClientRect();if(n.hoverX<0||n.hoverX>l.width)this.handleMouseOut(i);else if(null!==r)this.handleStickyCapturedSeries(e,null!=r?r:-1,i,null!=o?o:0);else if(this.tooltipUtil.isXoverlap(null!=o?o:0)||s.globals.isBarHorizontal){const t=s.seriesData.series.findIndex((e,t)=>!s.globals.collapsedSeriesIndices.includes(t));this.create(e,this,t,null!=o?o:0,i.ttItems)}}handleStickyCapturedSeries(e,t,a,i){const s=this.w;if(!this.tConfig.shared){if(null===s.seriesData.series[t][i])return void this.handleMouseOut(a)}if(void 0!==s.seriesData.series[t][i])this.tConfig.shared&&this.tooltipUtil.isXoverlap(i)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,i,a.ttItems):this.create(e,this,t,i,a.ttItems,!1);else if(this.tooltipUtil.isXoverlap(i)){const t=s.seriesData.series.findIndex((e,t)=>!s.globals.collapsedSeriesIndices.includes(t));this.create(e,this,t,i,a.ttItems)}}deactivateHoverFilter(){const e=this.w,t=new fMe(this.w,this.ctx),a=e.dom.Paper.find(".apexcharts-bar-area");for(let i=0;i<a.length;i++)t.pathMouseLeave(a[i],void 0)}handleMouseOut(e){var t,a;const i=this.w,s=this.getElXCrosshairs();i.dom.baseEl.classList.remove("apexcharts-tooltip-active"),e.tooltipEl.classList.remove("apexcharts-active"),delete e.tooltipEl.dataset.positioned,i.config.chart.accessibility.enabled&&i.config.chart.accessibility.announcements.enabled&&e.tooltipEl.setAttribute("aria-hidden","true"),this.deactivateHoverFilter(),"bubble"!==i.config.chart.type&&this.marker.resetPointsSize(),null!==s&&s.classList.remove("apexcharts-active");const n=this.ycrosshairs;if(null!==n&&n.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&(null==(t=this.xaxisTooltip)||t.classList.remove("apexcharts-active")),this.yaxisTooltips&&this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=[...i.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip")]);for(let e=0;e<this.yaxisTTEls.length;e++)this.yaxisTTEls[e].classList.remove("apexcharts-active")}i.config.legend.tooltipHoverFormatter&&(null==(a=this.legendLabels)||a.forEach(e=>{const t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(null!=t?t:"")}))}markerClick(e,t,a){const i=this.w;"function"==typeof i.config.chart.events.markerClick&&i.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:a,w:i}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:a,w:i}])}create(e,t,a,i,s,n=null){var o,r,l,c,d,u,p,h,g,m,f,_,b,v,y,S,x,w,E;const C=this.w,k=t;"mouseup"===e.type&&this.markerClick(e,a,i),null===n&&(n=this.tConfig.shared);const T=this.tooltipUtil.hasMarkers(a),A=this.tooltipUtil.getElBars(),R=()=>{C.globals.markers.largestSize>0?k.marker.enlargePoints(i):k.tooltipPosition.moveDynamicPointsOnHover(i)};if(C.config.legend.tooltipHoverFormatter){const e=C.config.legend.tooltipHoverFormatter,t=Array.from(null!=(o=this.legendLabels)?o:[]);t.forEach(e=>{const t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(null!=t?t:"")});for(let s=0;s<t.length;s++){const o=t[s],c=parseInt(null!=(r=o.getAttribute("i"))?r:"",10),d=decodeURIComponent(null!=(l=o.getAttribute("data:default-text"))?l:""),u=e(d,{seriesIndex:n?c:a,dataPointIndex:i,w:C});if(n)o.innerHTML=C.globals.collapsedSeriesIndices.indexOf(c)<0?u:d;else if(o.innerHTML=c===a?u:d,a===c)break}}const O=C.rangeData,N=FDe(FDe({ttItems:s,i:a,j:i},void 0!==(null==(p=null==(u=null==(d=null==(c=O.seriesRange)?void 0:c[a])?void 0:d[i])?void 0:u.y[0])?void 0:p.y1)&&{y1:null==(f=null==(m=null==(g=null==(h=O.seriesRange)?void 0:h[a])?void 0:g[i])?void 0:m.y[0])?void 0:f.y1}),void 0!==(null==(y=null==(v=null==(b=null==(_=O.seriesRange)?void 0:_[a])?void 0:b[i])?void 0:v.y[0])?void 0:y.y2)&&{y2:null==(E=null==(w=null==(x=null==(S=O.seriesRange)?void 0:S[a])?void 0:x[i])?void 0:w.y[0])?void 0:E.y2});if(n){if(k.tooltipLabels.drawSeriesTexts($De(FDe({},N),{shared:!this.showOnIntersect&&this.tConfig.shared})),T)R();else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight([...A]),this.barSeriesHeight>0)){const e=new fMe(this.w,this.ctx),t=C.dom.Paper.find(`.apexcharts-bar-area[j='${i}']`);this.deactivateHoverFilter();k.tooltipUtil.getAllMarkers(!0).length&&!this.barSeriesHeight&&R(),k.tooltipPosition.moveStickyTooltipOverBars(i,a);for(let a=0;a<t.length;a++)e.pathMouseEnter(t[a],void 0)}}else k.tooltipLabels.drawSeriesTexts(FDe({shared:!1},N)),this.tooltipUtil.hasBars()&&k.tooltipPosition.moveStickyTooltipOverBars(i,a),T&&k.tooltipPosition.moveMarkers(a,i)}}let fLe=class e{constructor(e){this.node=e,e&&(e.instance=this),this._listeners=[],this._filter=null}attr(e,t){if("string"==typeof e&&void 0===t)return this.node.getAttribute(e);const a="string"==typeof e?{[e]:t}:e;for(const i in a){let e=a[i];null===e?this.node.removeAttribute(i):void 0!==e&&("number"==typeof e&&isNaN(e)&&(e=0),this.node.setAttribute(i,e))}if("text"===this.node.nodeName&&null!=a.x){const e=this.node.querySelectorAll("tspan[data-newline]");for(let t=0;t<e.length;t++)e[t].setAttribute("x",a.x)}return this}css(e){for(const t in e)this.node.style[t]=e[t];return this}fill(e){return"object"==typeof e?this.attr(e):this.attr("fill",e)}stroke(e){return"object"==typeof e?(void 0!==e.color&&this.attr("stroke",e.color),void 0!==e.width&&this.attr("stroke-width",e.width),void 0!==e.dasharray&&this.attr("stroke-dasharray",e.dasharray),void 0!==e.linecap&&this.attr("stroke-linecap",e.linecap),void 0!==e.opacity&&this.attr("stroke-opacity",e.opacity),this):this.attr("stroke",e)}size(e,t){return this.attr({width:e,height:t})}move(e,t){return this.attr({x:e,y:t})}center(e,t){if("g"===this.node.nodeName){const a=this.bbox(),i=e-(a.x+a.width/2),s=t-(a.y+a.height/2);return this.attr("transform",`translate(${i}, ${s})`)}return this.attr({cx:e,cy:t})}add(e){return this.node.appendChild(e.node||e),this}addTo(e){return(e.node||e).appendChild(this.node),this}remove(){return this.node.parentNode&&this.node.parentNode.removeChild(this.node),this}clear(){for(;this.node.firstChild;)this.node.removeChild(this.node.firstChild);return this}find(t){return Array.from(this.node.querySelectorAll(t)).map(t=>t.instance||new e(t))}findOne(t){const a=this.node.querySelector(t);return a?a.instance||new e(a):null}on(e,t){const a=e.split(".")[0];return this._listeners.push({event:e,eventType:a,handler:t}),this.node.addEventListener(a,t),this}off(e,t){if(e||t)if(e&&!t){const t=e.split(".")[0];this._listeners=this._listeners.filter(e=>e.eventType!==t||(this.node.removeEventListener(e.eventType,e.handler),!1))}else{const a=e.split(".")[0];this._listeners=this._listeners.filter(e=>e.eventType!==a||e.handler!==t||(this.node.removeEventListener(e.eventType,e.handler),!1))}else this._listeners.forEach(e=>{this.node.removeEventListener(e.eventType,e.handler)}),this._listeners=[];return this}each(t,a){return Array.from(this.node.children).forEach(i=>{const s=i.instance||new e(i);t.call(s),a&&s.each(t,a)}),this}removeClass(e){return"*"===e?this.node.removeAttribute("class"):this.node.classList.remove(e),this}children(){return Array.from(this.node.childNodes).filter(e=>1===e.nodeType).map(t=>t.instance||new e(t))}hide(){return this.node.style.display="none",this}show(){return this.node.style.display="",this}bbox(){if("function"==typeof this.node.getBBox)try{return this.node.getBBox()}catch(PI){}return{x:0,y:0,width:0,height:0}}tspan(t){const a=jDe.createElementNS("http://www.w3.org/2000/svg","tspan");return a.textContent=t,this.node.appendChild(a),new e(a)}plot(e){return"string"==typeof e&&this.attr("d",e),this}animate(){throw new Error("Animation module not loaded")}filterWith(){throw new Error("Filter module not loaded")}unfilter(e){return this._filter&&(this.node.removeAttribute("filter"),e&&this._filter.node&&this._filter.node.parentNode&&this._filter.node.parentNode.removeChild(this._filter.node),this._filter=null),this}filterer(){return this._filter}},_Le=0;class bLe extends fLe{constructor(e,t,a){const i="radial"===t?"radialGradient":"linearGradient";super(jDe.createElementNS(_Me,i)),this._id="SvgjsGradient"+ ++_Le,this.attr("id",this._id),"function"==typeof a&&a(new vLe(this));let s=e.node.querySelector("defs");s||(s=jDe.createElementNS(_Me,"defs"),e.node.appendChild(s)),s.appendChild(this.node)}stop(e,t,a){const i=jDe.createElementNS(_Me,"stop");return i.setAttribute("offset",e),i.setAttribute("stop-color",t),void 0!==a&&i.setAttribute("stop-opacity",String(a)),this.node.appendChild(i),this}from(e,t){return this.attr({x1:e,y1:t})}to(e,t){return this.attr({x2:e,y2:t})}url(){return"url(#"+this._id+")"}toString(){return this.url()}valueOf(){return this.url()}fill(){return this.url()}}class vLe{constructor(e){this.gradient=e}stop(e,t,a){return this.gradient.stop(e,t,a),this}}let yLe=0;class SLe extends fLe{constructor(e,t,a,i){if(super(jDe.createElementNS(_Me,"pattern")),this._id="SvgjsPattern"+ ++yLe,this.attr({id:this._id,width:t,height:a,patternUnits:"userSpaceOnUse"}),"function"==typeof i){i(new xLe(this.node))}let s=e.node.querySelector("defs");s||(s=jDe.createElementNS(_Me,"defs"),e.node.appendChild(s)),s.appendChild(this.node)}url(){return"url(#"+this._id+")"}toString(){return this.url()}valueOf(){return this.url()}fill(){return this.url()}}class xLe extends fLe{line(e,t,a,i){const s=this._make("line");return void 0!==e&&s.attr({x1:e,y1:t,x2:a,y2:i}),s}rect(e,t){const a=this._make("rect");return void 0!==e&&a.attr({width:e,height:t}),a}circle(e){const t=this._make("circle");return void 0!==e&&t.attr({r:e/2,cx:e/2,cy:e/2}),t}path(e){const t=this._make("path");return e&&t.attr("d",e),t}polygon(e){const t=this._make("polygon");return e&&t.attr("points",e),t}group(){return this._makeContainer("g")}defs(){return this._makeContainer("defs")}plain(e){const t=jDe.createElementNS(_Me,"text");t.textContent=e;const a=new fLe(t);return this.node.appendChild(t),a}text(e){const t=jDe.createElementNS(_Me,"text"),a=new fLe(t);return this.node.appendChild(t),"function"==typeof e&&e(new wLe(t)),a}image(e,t){const a=jDe.createElementNS(_Me,"image");a.setAttributeNS("http://www.w3.org/1999/xlink","href",e);const i=new fLe(a);if(this.node.appendChild(a),"function"==typeof t){const a=new Image;a.onload=function(){i.size(a.width,a.height),t.call(i,{width:a.width,height:a.height})},a.src=e}return i}gradient(e,t){return new bLe(this,e,t)}pattern(e,t,a){return new SLe(this,e,t,a)}_make(e){const t=jDe.createElementNS(_Me,e);return this.node.appendChild(t),new fLe(t)}_makeContainer(e){const t=jDe.createElementNS(_Me,e);return this.node.appendChild(t),new xLe(t)}}class wLe{constructor(e){this.textNode=e}tspan(e){const t=jDe.createElementNS(_Me,"tspan");return t.textContent=e,this.textNode.appendChild(t),new ELe(t,this.textNode)}}class ELe{constructor(e,t){this.node=e,this.textNode=t}newLine(){return this.node.setAttribute("dy","1.1em"),this.node.dataset.newline="1",this}}let CLe=0;class kLe extends fLe{constructor(){super(jDe.createElementNS(_Me,"filter")),this._id="SvgjsFilter"+ ++CLe,this.attr("id",this._id)}size(e,t,a,i){return this.attr({width:e,height:t,x:a,y:i})}}class TLe{constructor(e){this.filter=e}colorMatrix(e){return this._primitive("feColorMatrix",e)}offset(e){return this._primitive("feOffset",e)}gaussianBlur(e){return this._primitive("feGaussianBlur",e)}flood(e){return this._primitive("feFlood",e)}composite(e){return this._primitive("feComposite",e)}merge(e){const t=jDe.createElementNS(_Me,"feMerge");return e.forEach(e=>{const a=jDe.createElementNS(_Me,"feMergeNode");a.setAttribute("in",e),t.appendChild(a)}),this.filter.node.appendChild(t),new fLe(t)}_primitive(e,t){const a=jDe.createElementNS(_Me,e);for(const i in t)a.setAttribute(i,t[i]);return this.filter.node.appendChild(a),new fLe(a)}}function ALe(e){if(!e||"string"!=typeof e)return[["M",0,0]];const t=[],a=/([MmLlHhVvCcSsQqTtAaZz])\s*/g,i=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;let s;const n=[],o=[];for(;null!==(s=a.exec(e));)n.push(s[1]),o.push(s.index);for(let r=0;r<n.length;r++){const a=o[r]+n[r].length,s=r+1<o.length?o[r+1]:e.length,l=e.substring(a,s),c=[];let d;for(i.lastIndex=0;null!==(d=i.exec(l));)c.push(parseFloat(d[0]));const u=n[r].toUpperCase();if("Z"===u)t.push(["Z"]);else if("M"===u||"L"===u||"T"===u)for(let e=0;e<c.length;e+=2)t.push([u,c[e],c[e+1]]);else if("H"===u)for(let e=0;e<c.length;e++)t.push([u,c[e]]);else if("V"===u)for(let e=0;e<c.length;e++)t.push([u,c[e]]);else if("C"===u)for(let e=0;e<c.length;e+=6)t.push([u,c[e],c[e+1],c[e+2],c[e+3],c[e+4],c[e+5]]);else if("S"===u||"Q"===u)for(let e=0;e<c.length;e+=4)t.push([u,c[e],c[e+1],c[e+2],c[e+3]]);else if("A"===u)for(let e=0;e<c.length;e+=7)t.push([u,c[e],c[e+1],c[e+2],c[e+3],c[e+4],c[e+5],c[e+6]])}return 0===t.length&&t.push(["M",0,0]),t}function RLe(e){let t=1/0,a=1/0,i=-1/0,s=-1/0;return e.forEach(e=>{for(let n=1;n<e.length;n+=2)if(n+1<=e.length){const o=e[n],r=e[n+1];"number"==typeof o&&"number"==typeof r&&(o<t&&(t=o),o>i&&(i=o),r<a&&(a=r),r>s&&(s=r))}}),t===1/0?{x:0,y:0,width:0,height:0}:{x:t,y:a,width:i-t,height:s-a}}function OLe(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 NLe(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 ILe(e){var t,a=[e];switch(e[0]){case"M":return this.pos=this.start=[e[1],e[2]],a;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":a=function(e,t){var a,i,s,n,o,r,l,c,d,u,p,h,g,m,f,_,b,v,y,S,x,w,E,C,k,T,A=Math.abs(t[1]),R=Math.abs(t[2]),O=t[3]%360,N=t[4],I=t[5],D=t[6],M=t[7],L=new bMe(e[0],e[1]),P=new bMe(D,M),F=[];if(0===A||0===R||L.x===P.x&&L.y===P.y)return[["C",L.x,L.y,P.x,P.y,P.x,P.y]];a=new bMe((L.x-P.x)/2,(L.y-P.y)/2).transform(new vMe(0,0,0,0,0,0).rotate(O)),(i=a.x*a.x/(A*A)+a.y*a.y/(R*R))>1&&(A*=i=Math.sqrt(i),R*=i);s=new vMe(0,0,0,0,0,0).rotate(O).scale(1/A,1/R).rotate(-O),L=L.transform(s),P=P.transform(s),n=[P.x-L.x,P.y-L.y],r=n[0]*n[0]+n[1]*n[1],o=Math.sqrt(r),n[0]/=o,n[1]/=o,l=r<4?Math.sqrt(1-r/4):0,N===I&&(l*=-1);c=new bMe((P.x+L.x)/2+l*-n[1],(P.y+L.y)/2+l*n[0]),d=new bMe(L.x-c.x,L.y-c.y),u=new bMe(P.x-c.x,P.y-c.y),p=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(p*=-1);h=Math.acos(u.x/Math.sqrt(u.x*u.x+u.y*u.y)),u.y<0&&(h*=-1);I&&p>h&&(h+=2*Math.PI);!I&&p<h&&(h-=2*Math.PI);for(m=Math.ceil(2*Math.abs(p-h)/Math.PI),_=[],b=p,g=(h-p)/m,f=4*Math.tan(g/4)/3,x=0;x<=m;x++)y=Math.cos(b),v=Math.sin(b),S=new bMe(c.x+y,c.y+v),_[x]=[new bMe(S.x+f*v,S.y-f*y),S,new bMe(S.x-f*v,S.y+f*y)],b+=g;for(_[0][0]=_[0][1].clone(),_[_.length-1][2]=_[_.length-1][1].clone(),s=new vMe(0,0,0,0,0,0).rotate(O).scale(A,R).rotate(-O),x=0,w=_.length;x<w;x++)_[x][0]=_[x][0].transform(s),_[x][1]=_[x][1].transform(s),_[x][2]=_[x][2].transform(s);for(x=1,w=_.length;x<w;x++)E=(S=_[x-1][2]).x,C=S.y,k=(S=_[x][0]).x,T=S.y,D=(S=_[x][1]).x,M=S.y,F.push(["C",E,C,k,T,D,M]);return F}(null!=(t=this.pos)?t:[],e),e=a[0]}return e[0]="C",this.pos=[e[5],e[6]],this.reflection=[2*e[5]-e[3],2*e[6]-e[4]],a}function DLe(e,t){if(!1===t)return!1;for(var a=t,i=e.length;a<i;++a)if("M"==e[a][0])return a;return!1}function MLe(e,t,a,i,s,n){for(var o=e.slice(t,a||void 0),r=i.slice(s,n||void 0),l=0,c={pos:[0,0],start:[0,0]},d={pos:[0,0],start:[0,0]};o[l]=OLe.call(c,o[l]),r[l]=OLe.call(d,r[l]),o[l][0]!=r[l][0]||"M"==o[l][0]||"A"==o[l][0]&&(o[l][4]!=r[l][4]||o[l][5]!=r[l][5])?(Array.prototype.splice.apply(o,[l,1].concat(ILe.call(c,o[l]))),Array.prototype.splice.apply(r,[l,1].concat(ILe.call(d,r[l])))):(o[l]=NLe.call(c,o[l]),r[l]=NLe.call(d,r[l])),++l!=o.length||l!=r.length;)l==o.length&&o.push(["C",c.pos[0],c.pos[1],c.pos[0],c.pos[1],c.pos[0],c.pos[1]]),l==r.length&&r.push(["C",d.pos[0],d.pos[1],d.pos[0],d.pos[1],d.pos[0],d.pos[1]]);return{start:o,dest:r}}function LLe(e,t){var a=function(e,t){for(var a,i=ALe(e),s=ALe(t),n=0,o=0,r=!1,l=!1;!1!==n||!1!==o;){if(r=DLe(i,!1!==n&&n+1),l=DLe(s,!1!==o&&o+1),!1===n){const e=RLe(a.start);n=0==e.height||0==e.width?i.push(i[0])-1:i.push(["M",e.x+e.width/2,e.y+e.height/2])-1}if(!1===o){const e=RLe(a.dest);o=0==e.height||0==e.width?s.push(s[0])-1:s.push(["M",e.x+e.width/2,e.y+e.height/2])-1}a=MLe(i,n,r,s,o,l),i=i.slice(0,n).concat(a.start,!1===r?[]:i.slice(r)),s=s.slice(0,o).concat(a.dest,!1===l?[]:s.slice(l)),n=!1!==r&&n+a.start.length,o=!1!==l&&o+a.dest.length}return{start:i,dest:s}}(e,t),i=a.start,s=a.dest;return function(e){var t=i.map(function(t,a){return s[a].map(function(i,n){return 0===n?i:t[n]+(s[a][n]-t[n])*e})});return t.map(e=>e.join(" ")).join(" ")}}function PLe(e){if(!e||"string"!=typeof e)return null;if("#"===e[0]){let t=e.slice(1);3===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);const a=parseInt(t,16);return[a>>16&255,a>>8&255,255&a,1]}const t=e.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);return t?[+t[1],+t[2],+t[3],void 0!==t[4]?+t[4]:1]:null}function FLe(e,t,a){return`rgba(${Math.round(e[0]+(t[0]-e[0])*a)},${Math.round(e[1]+(t[1]-e[1])*a)},${Math.round(e[2]+(t[2]-e[2])*a)},${e[3]+(t[3]-e[3])*a})`}class $Le{constructor(e,t,a){this.el=e,this.duration=null!=t?t:300,this.delay=a||0,this._attrTarget=null,this._plotTarget=null,this._afterCb=null,this._duringCb=null,this._next=null,this._root=null,this._scheduled=!1}attr(e){return this._attrTarget=e,this._schedule(),this}plot(e){return this._plotTarget=e,this._schedule(),this}after(e){return this._afterCb=e,this._schedule(),this}during(e){return this._duringCb=e,this._schedule(),this}animate(e,t){const a=new $Le(this.el,e,t);return this._next=a,a._root=this._root||this,a}_schedule(){const e=this._root||this;e._scheduled||(e._scheduled=!0,queueMicrotask(()=>e._executeChain()))}_executeChain(){const e=[];let t=this;for(;t;)e.push(t),t=t._next;let a=0;e.forEach(e=>{a+=e.delay,e._execute(a),a+=e.duration})}_execute(e){const t=this.el,a=this.duration;if(a<=1){const a=()=>{this._attrTarget&&t.attr(this._attrTarget),this._plotTarget&&t.plot(this._plotTarget),this._afterCb&&this._afterCb.call(t)};return void(e>0?setTimeout(a,e):a())}const i=()=>{const e={},i={},s={};if(this._attrTarget)for(const a of Object.keys(this._attrTarget)){const n=t.attr(a);e[a]=n;const o=PLe(n),r=PLe(String(this._attrTarget[a]));o&&r&&(i[a]=o,s[a]=r)}let n=null;if(this._plotTarget){const e=t.attr("d")||"";try{n=LLe(e,this._plotTarget)}catch(PI){n=null}}const o=performance.now(),r=l=>{const c=l-o,d=Math.min(c/a,1),u=function(e){return-Math.cos(e*Math.PI)/2+.5}(d);if(this._attrTarget)if(d>=1)t.attr(this._attrTarget);else{const a={};for(const t of Object.keys(this._attrTarget))if(i[t]&&s[t])a[t]=FLe(i[t],s[t],u);else{const i=parseFloat(e[t]),s=parseFloat(this._attrTarget[t]);isNaN(i)||isNaN(s)||(a[t]=i+(s-i)*u)}t.attr(a)}n&&d<1&&t.attr("d",n(u)),this._duringCb&&this._duringCb(u),d<1?jDe.requestAnimationFrame(r):(this._plotTarget&&t.attr("d",this._plotTarget),this._afterCb&&this._afterCb.call(t))};jDe.requestAnimationFrame(r)};e>0?setTimeout(i,e):i()}}var BLe;function VLe(){const e=jDe.createElementNS(_Me,"svg"),t=new xLe(e);return t.attr({xmlns:_Me}),t}(BLe=fLe).prototype.filterWith=function(e){const t=new kLe;this._filter=t;let a=this.node;for(;a&&"svg"!==a.nodeName;)a=a.parentNode;if(a){let e=a.querySelector("defs");e||(e=jDe.createElementNS(_Me,"defs"),a.insertBefore(e,a.firstChild)),e.appendChild(t.node)}return e(new TLe(t)),this.attr("filter","url(#"+t._id+")"),this},BLe.prototype.unfilter=function(e){return this._filter&&(this.node.removeAttribute("filter"),e&&this._filter.node&&this._filter.node.parentNode&&this._filter.node.parentNode.removeChild(this._filter.node),this._filter=null),this},BLe.prototype.filterer=function(){return this._filter},function(e){e.prototype.animate=function(e,t){return new $Le(this,e,t)}}(fLe),function(e){e.prototype.draggable=function(e){if(!1===e)return this._dragCleanup&&(this._dragCleanup(),this._dragCleanup=null),this;const t=this,a=e||{},i=e=>{if(e.button&&0!==e.button)return;e.stopPropagation();const i="touchstart"===e.type?e.touches[0]:e,s=t.node,n=parseFloat(s.getAttribute("x"))||0,o=parseFloat(s.getAttribute("y"))||0,r=i.clientX,l=i.clientY,c=s.ownerSVGElement;let d=null;c&&(d=c.getScreenCTM());const u=e=>{const t="touchmove"===e.type?e.touches[0]:e;let i=t.clientX-r,c=t.clientY-l;d&&(i/=d.a,c/=d.d);let u=n+i,p=o+c;const h=parseFloat(s.getAttribute("width"))||0,g=parseFloat(s.getAttribute("height"))||0;void 0!==a.minX&&u<a.minX&&(u=a.minX),void 0!==a.minY&&p<a.minY&&(p=a.minY),void 0!==a.maxX&&u+h>a.maxX&&(u=a.maxX-h),void 0!==a.maxY&&p+g>a.maxY&&(p=a.maxY-g);const m=new CustomEvent("dragmove",{detail:{handler:{move:function(e,t){s.setAttribute("x",e),s.setAttribute("y",t)}},box:{x:u,y:p,w:h,h:g,x2:u+h,y2:p+g}}});s.dispatchEvent(m)},p=()=>{VDe.isBrowser()&&(document.removeEventListener("mousemove",u),document.removeEventListener("touchmove",u),document.removeEventListener("mouseup",p),document.removeEventListener("touchend",p))};VDe.isBrowser()&&(document.addEventListener("mousemove",u),document.addEventListener("touchmove",u),document.addEventListener("mouseup",p),document.addEventListener("touchend",p))};return t.node.addEventListener("mousedown",i),t.node.addEventListener("touchstart",i),t._dragCleanup=()=>{t.node.removeEventListener("mousedown",i),t.node.removeEventListener("touchstart",i)},t}}(fLe),function(e){e.prototype.select=function(e){if(!1===e)return this._selectCleanup&&(this._selectCleanup(),this._selectCleanup=null),this;const t=this,{createHandle:a,updateHandle:i}=e,s=document.createElementNS(_Me,"g");s.setAttribute("class","svg_select_points");const n=t.node.parentNode;n&&n.appendChild(s);const o={},r=["t","b","l","r","lt","rt","lb","rb"];r.forEach((e,t)=>{const i=new xLe(document.createElementNS(_Me,"g"));s.appendChild(i.node);const n=a(i,[0,0],t,[],e);o[e]={group:i,handle:n}});const l=()=>{const e=parseFloat(t.attr("x"))||0,a=parseFloat(t.attr("y"))||0,n=parseFloat(t.attr("width"))||0,l=parseFloat(t.attr("height"))||0,c=t.node.getAttribute("transform");c?s.setAttribute("transform",c):s.removeAttribute("transform");const d={t:[e+n/2,a],b:[e+n/2,a+l],l:[e,a+l/2],r:[e+n,a+l/2],lt:[e,a],rt:[e+n,a],lb:[e,a+l],rb:[e+n,a+l]};r.forEach(e=>{o[e]&&d[e]&&i(o[e].group,d[e])})};return l(),t._selectHandles=s,t._selectHandlesMap=o,t._updateSelectPositions=l,t._selectCleanup=()=>{s.parentNode&&s.parentNode.removeChild(s),t._selectHandles=null,t._selectHandlesMap=null,t._updateSelectPositions=null},t},e.prototype.resize=function(e){if(!1===e)return this._resizeCleanup&&(this._resizeCleanup(),this._resizeCleanup=null),this;const t=this,a=t._selectHandlesMap;if(!a)return t;const i=[],s=e=>{const s=a[e];if(!s||!s.group||!s.group.node)return;const n=s.group.node,o=a=>{if(a.button&&0!==a.button)return;a.stopPropagation();const i=("touchstart"===a.type?a.touches[0]:a).clientX,s=t.node.ownerSVGElement;let n=null;s&&(n=s.getScreenCTM());const o=parseFloat(t.attr("x"))||0,r=parseFloat(t.attr("width"))||0,l=a=>{let s=("touchmove"===a.type?a.touches[0]:a).clientX-i;n&&(s/=n.a);let l=o,c=r;"l"===e?(l=o+s,c=r-s):"r"===e&&(c=r+s),c<0&&(c=0),t.attr({x:l,width:c}),t._updateSelectPositions&&t._updateSelectPositions();const d=new CustomEvent("resize",{detail:{el:t}});t.node.dispatchEvent(d)},c=()=>{VDe.isBrowser()&&(document.removeEventListener("mousemove",l),document.removeEventListener("touchmove",l),document.removeEventListener("mouseup",c),document.removeEventListener("touchend",c));const e=new CustomEvent("resize",{detail:{el:t}});t.node.dispatchEvent(e)};VDe.isBrowser()&&(document.addEventListener("mousemove",l),document.addEventListener("touchmove",l),document.addEventListener("mouseup",c),document.addEventListener("touchend",c))};n.addEventListener("mousedown",o),n.addEventListener("touchstart",o),i.push(()=>{n.removeEventListener("mousedown",o),n.removeEventListener("touchstart",o)})};return s("l"),s("r"),t._resizeCleanup=()=>{i.forEach(e=>e())},t}}(fLe),VLe.xlink="http://www.w3.org/1999/xlink",VDe.isBrowser()&&void 0===window.SVG&&(window.SVG=VLe),VDe.isBrowser()?(void 0===window.SVG&&(window.SVG=VLe),void 0===window.Apex&&(window.Apex={})):"undefined"!=typeof global&&(void 0===global.Apex&&(global.Apex={}),void 0===global.SVG&&(global.SVG=VLe));const ULe=class e{static registerFeatures(t){for(const[a,i]of Object.entries(t))e._featureRegistry.set(a,i)}constructor(e){this.ctx=e,this.w=e.w}initModules(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","highlightSeries","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","keydown","keyup"],this.ctx.animations=new gMe(this.w,this.ctx),this.ctx.axes=new MMe(this.w,this.ctx),this.ctx.core=new nLe(this.ctx.el,this.w,this.ctx),this.ctx.config=new aMe({}),this.ctx.data=new oLe(this.w,{resetGlobals:()=>this.ctx.core.resetGlobals(),isMultipleY:()=>this.ctx.core.isMultipleY()}),this.ctx.grid=new AMe(this.w,this.ctx),this.ctx.graphics=new fMe(this.w,this.ctx),this.ctx.coreUtils=new rMe(this.w),this.ctx.crosshairs=new LMe(this.w),this.ctx.events=new IMe(this.w,this.ctx),this.ctx.fill=new SMe(this.w),this.ctx.localization=new DMe(this.w),this.ctx.options=new tMe,this.ctx.responsive=new FMe(this.w),this.ctx.series=new $Me(this.w,{toggleDataSeries:(...e)=>{var t;return null==(t=this.ctx.legend)?void 0:t.legendHelpers.toggleDataSeries(...e)},revertDefaultAxisMinMax:()=>this.ctx.updateHelpers.revertDefaultAxisMinMax(),updateSeries:(...e)=>this.ctx.updateHelpers._updateSeries(...e)}),this.ctx.theme=new BMe(this.w),this.ctx.formatters=new XDe(this.w),this.ctx.titleSubtitle=new VMe(this.w),this.ctx.dimensions=new GMe(this.w,this.ctx),this.ctx.updateHelpers=new rLe(this.w,this.ctx);const e=new mLe(this.w,this.ctx);this.w.globals.tooltip=e,Object.defineProperty(this.ctx,"tooltip",{get(){return this.w.globals.tooltip},configurable:!0}),this._initOptionalModules()}_initOptionalModules(){const t=e._featureRegistry,a=this.w,i=this.ctx,s=t.get("exports");i.exports=s?new s(a,i):null;const n=t.get("legend");i.legend=n?new n(a,i):null;const o=t.get("toolbar");Object.defineProperty(i,"toolbar",{get(){var e;return!this._toolbar&&o&&(this._toolbar=new o(a,this)),null!=(e=this._toolbar)?e:null},configurable:!0});const r=t.get("zoomPanSelection");Object.defineProperty(i,"zoomPanSelection",{get(){var e;return!this._zoomPanSelection&&r&&(this._zoomPanSelection=new r(a,this)),null!=(e=this._zoomPanSelection)?e:null},configurable:!0});const l=t.get("keyboardNavigation");Object.defineProperty(i,"keyboardNavigation",{get(){var e;return!this._keyboardNavigation&&l&&(this._keyboardNavigation=new l(a,this)),null!=(e=this._keyboardNavigation)?e:null},configurable:!0})}};BDe(ULe,"_featureRegistry",new Map);let HLe=ULe;class zLe{constructor(e){this.ctx=e,this.w=e.w}clear({isUpdating:e}){this.ctx._zoomPanSelection&&this.ctx._zoomPanSelection.destroy(),this.ctx._toolbar&&this.ctx._toolbar.destroy(),this.w.globals.resizeObserver&&"function"==typeof this.w.globals.resizeObserver.disconnect&&(this.w.globals.resizeObserver.disconnect(),this.w.globals.resizeObserver=null),CMe.invalidateAll(this.w),e?(this.ctx._zoomPanSelection=null,this.ctx._toolbar=null,this.ctx._keyboardNavigation=null):(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._keyboardNavigation=null,this.ctx.w.globals.tooltip=null),this.clearDomElements({isUpdating:e})}killSVG(e){e.each(function(){this.removeClass("*"),this.off()},!0),e.clear()}clearDomElements({isUpdating:e}){const t=this.w.dom;if(VDe.isBrowser()){const a=t.Paper.node;a.parentNode&&a.parentNode.parentNode&&!e&&(a.parentNode.parentNode.style.minHeight="unset");const i=t.baseEl;if(i&&this.ctx.eventList.forEach(e=>{i.removeEventListener(e,this.ctx.events.documentEvent)}),null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(t.Paper),t.Paper.remove()}t.elWrap=null,t.elGraphical=null,t.elLegendWrap=null,t.elLegendForeign=null,t.baseEl=null,t.elGridRect=null,t.elGridRectMask=null,t.elGridRectBarMask=null,t.elGridRectMarkerMask=null,t.elForecastMask=null,t.elNonForecastMask=null,t.elDefs=null}}const YLe=new WeakMap;class GLe{constructor(e,t){BDe(this,"core"),BDe(this,"responsive"),BDe(this,"axes"),BDe(this,"grid"),BDe(this,"graphics"),BDe(this,"coreUtils"),BDe(this,"crosshairs"),BDe(this,"events"),BDe(this,"fill"),BDe(this,"localization"),BDe(this,"options"),BDe(this,"series"),BDe(this,"theme"),BDe(this,"formatters"),BDe(this,"titleSubtitle"),BDe(this,"dimensions"),BDe(this,"updateHelpers"),BDe(this,"tooltip"),BDe(this,"data"),BDe(this,"animations"),BDe(this,"exports"),BDe(this,"legend"),BDe(this,"toolbar"),BDe(this,"zoomPanSelection"),BDe(this,"keyboardNavigation"),BDe(this,"annotations"),BDe(this,"timeScale"),BDe(this,"_keyboardNavigation"),BDe(this,"windowResizeHandler"),BDe(this,"parentResizeHandler"),BDe(this,"publicMethods",[]),BDe(this,"eventList",[]),BDe(this,"config"),this.opts=t,this.ctx=this,this.w=new oMe(t).init(),this.el=e,this.w.globals.cuid=qDe.randomId(),this.w.globals.chartID=this.w.config.chart.id?qDe.escapeString(this.w.config.chart.id):this.w.globals.cuid,pMe(this.w);new HLe(this).initModules(),this.lastUpdateOptions=null,this.create=this.create.bind(this),VDe.isBrowser()&&(this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this))}render(){var e,t;return(null==(t=null==(e=this.w)?void 0:e.config)?void 0:t.chart)?new Promise((e,t)=>{var a;if(qDe.elementExists(this.el)){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),this.w.config.chart.id&&Apex._chartInstances.push({id:this.w.globals.chartID,group:this.w.config.chart.group,chart:this}),this.setLocale(this.w.config.chart.defaultLocale);const i=this.w.config.chart.events.beforeMount;if("function"==typeof i&&i(this,this.w),this.events.fireEvent("beforeMount",[this,this.w]),VDe.isBrowser()){window.addEventListener("resize",this.windowResizeHandler),function(e,t){if(VDe.isSSR())return;let a=!1;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){const t=e.getBoundingClientRect();"none"!==e.style.display&&0!==t.width||(a=!0)}const i=new ResizeObserver(i=>{a&&t.call(e,i),a=!0});e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(e.children).forEach(e=>i.observe(e)):i.observe(e),YLe.set(t,i)}(this.el.parentNode,this.parentResizeHandler);const e=this.el.getRootNode&&this.el.getRootNode(),t=qDe.is("ShadowRoot",e),i=this.el.ownerDocument;let s=t?e.getElementById("apexcharts-css"):i.getElementById("apexcharts-css");if(!s){s=jDe.createElementNS("http://www.w3.org/1999/xhtml","style"),s.id="apexcharts-css",s.textContent='@keyframes opaque {\n 0% {\n opacity: 0\n }\n\n to {\n opacity: 1\n }\n}\n\n@keyframes resizeanim {\n\n 0%,\n to {\n opacity: 0\n }\n}\n\n.apexcharts-canvas {\n position: relative;\n direction: ltr !important;\n user-select: none;\n /* Focus indicator colour. Themes override below. */\n --apexcharts-focus-color: #008FFB;\n}\n\n/* Dark theme & high-contrast: brighter focus colour for sufficient contrast. */\n.apexcharts-canvas .apexcharts-theme-dark,\n.apexcharts-theme-dark.apexcharts-canvas {\n --apexcharts-focus-color: #FFD500;\n}\n.apexcharts-canvas.apexcharts-high-contrast,\n.apexcharts-high-contrast.apexcharts-canvas {\n --apexcharts-focus-color: #FFFF00;\n}\n\n/* Visually-hidden aria-live status region (WCAG 4.1.3 Status Messages). */\n.apexcharts-sr-status {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}\n\n/* Respect OS-level reduced-motion preference (WCAG 2.3.3). */\n@media (prefers-reduced-motion: reduce) {\n .apexcharts-canvas *,\n .apexcharts-canvas *::before,\n .apexcharts-canvas *::after {\n animation-duration: 0.01ms !important;\n animation-iteration-count: 1 !important;\n transition-duration: 0.01ms !important;\n }\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\nrect.legend-mouseover-inactive,\n.legend-mouseover-inactive rect,\n.legend-mouseover-inactive path,\n.legend-mouseover-inactive circle,\n.legend-mouseover-inactive line,\n.legend-mouseover-inactive text.apexcharts-yaxis-title-text,\n.legend-mouseover-inactive text.apexcharts-yaxis-label {\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-legend-series[role="button"]:focus {\n outline: 2px solid var(--apexcharts-focus-color, #008FFB);\n outline-offset: 2px;\n}\n\n.apexcharts-legend-series[role="button"]:focus:not(:focus-visible) {\n outline: none;\n}\n\n.apexcharts-legend-series[role="button"]:focus-visible {\n outline: 2px solid var(--apexcharts-focus-color, #008FFB);\n outline-offset: 2px;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0\n}\n\n.apexcharts-canvas svg:focus:not(:focus-visible) {\n outline: none;\n}\n\n/* Keyboard navigation focus indicator on SVG data elements.\n SVG elements don\'t support CSS outline, so we use stroke. */\n.apexcharts-bar-area.apexcharts-keyboard-focused,\n.apexcharts-candlestick-area.apexcharts-keyboard-focused,\n.apexcharts-boxPlot-area.apexcharts-keyboard-focused,\n.apexcharts-rangebar-area.apexcharts-keyboard-focused,\n.apexcharts-pie-area.apexcharts-keyboard-focused,\n.apexcharts-heatmap-rect.apexcharts-keyboard-focused,\n.apexcharts-treemap-rect.apexcharts-keyboard-focused {\n stroke: var(--apexcharts-focus-color, #008FFB);\n stroke-width: 2;\n stroke-opacity: 1;\n}\n\n.apexcharts-tooltip {\n --apx-tt-bg: #ffffff;\n --apx-tt-border: rgba(15, 23, 42, 0.06);\n /* Layered shadow: tight inner contact + soft outer drop. The two Y\n * offsets are exposed as variables so they flip in sync with the\n * arrow when the tooltip is below the data point — see the\n * `[data-placement="bottom"]` rule further down. */\n --apx-tt-shadow-y-mid: 8px;\n --apx-tt-shadow-y-far: 16px;\n --apx-tt-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04), 0 var(--apx-tt-shadow-y-mid) 16px -6px rgba(15, 23, 42, 0.12), 0 var(--apx-tt-shadow-y-far) 36px -12px rgba(15, 23, 42, 0.18);\n --apx-tt-arrow-bg: var(--apx-tt-bg);\n /* Two stacked drop-shadows: the first is a tight contact halo for\n * edge definition against light chart backgrounds; the second is a\n * softer directional drop that lifts the arrow off the surface.\n * `--apx-tt-arrow-drop-y` is the Y offset of the directional drop;\n * a per-placement rule below flips it to negative when the tooltip\n * is below the data point (arrow on top) so the shadow always\n * casts outward instead of into the tooltip body. */\n --apx-tt-arrow-drop-y: 2px;\n --apx-tt-arrow-shadow: drop-shadow(0 0 0.5px rgba(15, 23, 42, 0.2)) drop-shadow(0 var(--apx-tt-arrow-drop-y) 4px rgba(15, 23, 42, 0.2));\n --apx-tt-color: #0f172a;\n --apx-tt-color-muted: rgba(15, 23, 42, 0.55);\n border-radius: 8px;\n background: var(--apx-tt-bg);\n border: 1px solid var(--apx-tt-border);\n box-shadow: var(--apx-tt-shadow);\n color: var(--apx-tt-color);\n cursor: default;\n font-size: 13px;\n left: 0;\n top: 0;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n display: flex;\n flex-direction: column;\n padding: 2px 0;\n white-space: nowrap;\n z-index: 12;\n transition: opacity .12s ease\n}\n\n/* While the tooltip is visible, smoothly animate position changes\n * between data points. Kept short (160 ms) and ease-out so it stays\n * responsive — too long would feel laggy when sweeping across many\n * points fast. The position transition is only attached after the\n * first paint (Position.applyTooltipPosition flips `data-positioned`\n * once the tooltip has been placed) so the *first* show doesn\'t slide\n * the tooltip in from the previously-stale (0,0) coordinates. */\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: opacity .12s ease\n}\n.apexcharts-tooltip.apexcharts-active[data-positioned="true"] {\n transition: opacity .12s ease, left .16s ease-out, top .16s ease-out\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n /* defaults already set above; class kept for backward-compat selectors */\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n --apx-tt-bg: #1c1c1f;\n --apx-tt-border: rgba(255, 255, 255, 0.08);\n --apx-tt-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 var(--apx-tt-shadow-y-mid) 16px -6px rgba(0, 0, 0, 0.45), 0 var(--apx-tt-shadow-y-far) 36px -12px rgba(0, 0, 0, 0.55);\n --apx-tt-arrow-shadow: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.55)) drop-shadow(0 var(--apx-tt-arrow-drop-y) 4px rgba(0, 0, 0, 0.45));\n --apx-tt-color: #f3f4f6;\n --apx-tt-color-muted: rgba(243, 244, 246, 0.55);\n}\n\n.apexcharts-tooltip * {\n font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n padding: 8px 12px 4px;\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.01em;\n color: var(--apx-tt-color-muted);\n background: transparent;\n border-bottom: none;\n margin-bottom: 0\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title,\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: transparent;\n border-bottom: none\n}\n\n/* `fillSeriesColor`: each series-group already paints itself with the\n * series colour. Drop the glass body entirely (transparent bg, no\n * border, no backdrop-filter, no padding) and clip the coloured\n * series-group(s) to the tooltip\'s rounded corners so they fill the\n * shell edge-to-edge. Text inside the coloured group is forced to\n * white for contrast. */\n.apexcharts-tooltip.apexcharts-tooltip-fill-series {\n background: transparent;\n -webkit-backdrop-filter: none;\n backdrop-filter: none;\n border: none;\n padding: 0;\n overflow: hidden;\n color: #fff\n}\n\n.apexcharts-tooltip.apexcharts-tooltip-fill-series .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, 0.22);\n color: #fff;\n opacity: 1;\n padding: 6px 12px\n}\n\n.apexcharts-tooltip.apexcharts-tooltip-fill-series .apexcharts-tooltip-series-group {\n color: #fff\n}\n\n/* Arrow connector — sits *entirely outside* the tooltip body. Shares\n * the body\'s solid fill so it reads as a single shape. `filter:\n * drop-shadow` traces the clipped triangle outline (a regular\n * `box-shadow` would be erased by the `clip-path`). */\n.apexcharts-tooltip-arrow {\n position: absolute;\n width: 7px;\n height: 14px;\n background: var(--apx-tt-arrow-bg);\n /* The variable already contains the full `drop-shadow(...) ...` filter\n * chain (stacked shadows) so it\'s applied raw. */\n -webkit-filter: var(--apx-tt-arrow-shadow);\n filter: var(--apx-tt-arrow-shadow);\n pointer-events: none;\n top: calc(var(--apx-tt-arrow-y, 50%) - 7px)\n}\n\n.apexcharts-tooltip[data-placement="right"] .apexcharts-tooltip-arrow {\n left: -7px;\n clip-path: polygon(0 50%, 100% 0, 100% 100%)\n}\n\n.apexcharts-tooltip[data-placement="left"] .apexcharts-tooltip-arrow {\n right: -7px;\n clip-path: polygon(100% 50%, 0 0, 0 100%)\n}\n\n/* Vertical arrow variants: tooltip is above/below the data point and the\n * arrow points down/up. The base rule above uses `--apx-tt-arrow-y` for\n * left/right placement; for top/bottom we re-orient the rectangle and\n * use `--apx-tt-arrow-x` (set by applyTooltipPosition). */\n.apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow,\n.apexcharts-tooltip[data-placement="bottom"] .apexcharts-tooltip-arrow {\n width: 14px;\n height: 7px;\n top: auto;\n left: calc(var(--apx-tt-arrow-x, 50%) - 7px)\n}\n\n.apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow {\n bottom: -7px;\n clip-path: polygon(50% 100%, 0 0, 100% 0)\n}\n\n.apexcharts-tooltip[data-placement="bottom"] .apexcharts-tooltip-arrow {\n top: -7px;\n clip-path: polygon(50% 0, 0 100%, 100% 100%)\n}\n\n/* When the tooltip is flipped below the data point (arrow on top\n * pointing up), the default downward-biased shadows leave the top\n * edge of both the body *and* the arrow undefined. Flipping every\n * Y offset to negative casts the entire elevation upward so the\n * shadow falls between the tooltip and the bar above. */\n.apexcharts-tooltip[data-placement="bottom"] {\n --apx-tt-shadow-y-mid: -8px;\n --apx-tt-shadow-y-far: -16px;\n --apx-tt-arrow-drop-y: -2px\n}\n\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-y-value,\n.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,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-z-value:empty,\n.apexcharts-tooltip-title:empty {\n display: none\n}\n\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: relative;\n width: 12px;\n height: 12px;\n margin-right: 6px;\n vertical-align: middle;\n color: inherit;\n}\n\n.apexcharts-tooltip-marker svg {\n width: 100%;\n height: 100%;\n display: block;\n}\n\n.apexcharts-tooltip-series-group {\n padding: 4px 12px;\n display: none;\n gap: 8px;\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:last-child,\n.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 8px\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,\n.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/* X/Y axis tooltips — small popovers that label the crosshair on the\n * axes. Restyled to match the modern data-tooltip palette: solid white\n * body with a subtle border + soft drop-shadow, smaller font, rounded\n * corners. The arrows still use the CSS border-triangle technique\n * (cheap, crisp at small sizes); their colours flow from CSS variables\n * so light/dark themes only need one override per axis. */\n.apexcharts-xaxistooltip,\n.apexcharts-yaxistooltip {\n --apx-axt-bg: #ffffff;\n --apx-axt-border: rgba(15, 23, 42, 0.08);\n --apx-axt-color: #0f172a;\n --apx-axt-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.18), 0 1px 3px -1px rgba(15, 23, 42, 0.12);\n opacity: 0;\n pointer-events: none;\n color: var(--apx-axt-color);\n font-size: 12px;\n font-weight: 500;\n text-align: center;\n border-radius: 6px;\n position: absolute;\n z-index: 10;\n background: var(--apx-axt-bg);\n border: 1px solid var(--apx-axt-border);\n box-shadow: var(--apx-axt-shadow)\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark,\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n --apx-axt-bg: #1c1c1f;\n --apx-axt-border: rgba(255, 255, 255, 0.1);\n --apx-axt-color: #f3f4f6;\n --apx-axt-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.55), 0 1px 3px -1px rgba(0, 0, 0, 0.45)\n}\n\n.apexcharts-xaxistooltip {\n padding: 4px 8px;\n transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip:after,\n.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/* :before paints the 1px border outline of the triangle (slightly larger\n * than :after); :after sits inside and paints the fill — leaves a 1px\n * ring of :before visible at the edges. */\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 5px;\n margin-left: -5px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: var(--apx-axt-bg)\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: var(--apx-axt-border)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: var(--apx-axt-bg)\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: var(--apx-axt-border)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 3px 8px\n}\n\n.apexcharts-yaxistooltip:after,\n.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: 5px;\n margin-top: -5px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: var(--apx-axt-bg)\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: var(--apx-axt-border)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: var(--apx-axt-bg)\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: var(--apx-axt-border)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none\n}\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.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_shape {\n stroke-width: 1;\n stroke-dasharray: 10 10;\n stroke: black;\n stroke-opacity: 0.1;\n pointer-events: none;\n fill: none;\n}\n\n.svg_select_handle {\n stroke-width: 3;\n stroke: black;\n fill: none;\n}\n\n.svg_select_handle_r {\n cursor: e-resize;\n}\n\n.svg_select_handle_l {\n cursor: w-resize;\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,\n.apexcharts-pan-icon,\n.apexcharts-reset-icon,\n.apexcharts-selection-icon,\n.apexcharts-toolbar-custom-icon,\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n cursor: pointer;\n /* WCAG 2.5.8 Target Size (Minimum): 24×24 CSS px hit target. */\n width: 26px;\n height: 24px;\n line-height: 24px;\n color: #6e8192;\n text-align: center;\n /* Reset native <button> chrome — these are styled via SVG icons. */\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n border-radius: 5px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: background-color .12s ease, color .12s ease;\n}\n\n.apexcharts-menu-icon svg,\n.apexcharts-pan-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-selection-icon svg,\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg {\n width: 18px;\n height: 18px;\n fill: none;\n stroke: currentColor;\n stroke-width: 2;\n stroke-linecap: round;\n stroke-linejoin: round\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon,\n.apexcharts-theme-dark .apexcharts-pan-icon,\n.apexcharts-theme-dark .apexcharts-reset-icon,\n.apexcharts-theme-dark .apexcharts-selection-icon,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon,\n.apexcharts-theme-dark .apexcharts-zoom-icon,\n.apexcharts-theme-dark .apexcharts-zoomin-icon,\n.apexcharts-theme-dark .apexcharts-zoomout-icon {\n color: #d4d6dc\n}\n\n.apexcharts-canvas .apexcharts-pan-icon.apexcharts-selected,\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected,\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected {\n background: rgba(0, 143, 251, 0.12);\n color: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover,\n.apexcharts-theme-light .apexcharts-pan-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-light .apexcharts-reset-icon:hover,\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover {\n background: rgba(15, 23, 42, 0.06);\n color: #1f2937\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon:hover,\n.apexcharts-theme-dark .apexcharts-pan-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-dark .apexcharts-reset-icon:hover,\n.apexcharts-theme-dark .apexcharts-selection-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-dark .apexcharts-zoom-icon:not(.apexcharts-selected):hover,\n.apexcharts-theme-dark .apexcharts-zoomin-icon:hover,\n.apexcharts-theme-dark .apexcharts-zoomout-icon:hover {\n background: rgba(255, 255, 255, 0.08);\n color: #fff\n}\n\n.apexcharts-menu-icon,\n.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n display: inline-flex;\n align-items: center;\n gap: 1px;\n padding: 3px;\n border-radius: 8px;\n background: rgba(255, 255, 255, 0.85);\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n}\n\n.apexcharts-theme-dark .apexcharts-toolbar {\n background: rgba(28, 28, 31, 0.82);\n}\n\n.apexcharts-menu {\n background: rgba(255, 255, 255, 0.95);\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n position: absolute;\n top: calc(100% + 4px);\n border: 1px solid rgba(15, 23, 42, 0.08);\n border-radius: 8px;\n padding: 4px;\n right: 0;\n opacity: 0;\n min-width: 120px;\n transition: opacity .15s ease, transform .15s ease;\n transform: translateY(-2px);\n pointer-events: none;\n box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.12), 0 2px 4px -1px rgba(15, 23, 42, 0.06)\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n transform: translateY(0);\n pointer-events: all\n}\n\n.apexcharts-menu-item {\n padding: 6px 9px;\n font-size: 12px;\n border-radius: 5px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: rgba(15, 23, 42, 0.06)\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(28, 28, 31, 0.92);\n border-color: rgba(255, 255, 255, 0.08);\n color: #f3f4f6;\n box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-item:hover {\n background: rgba(255, 255, 255, 0.08)\n}\n\n@media screen and (min-width:768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1\n }\n}\n\n/* Toolbar keyboard accessibility: show toolbar when any button inside it is focused */\n.apexcharts-toolbar:focus-within {\n opacity: 1\n}\n\n/* Focus indicator for toolbar icon buttons */\n.apexcharts-menu-icon:focus-visible,\n.apexcharts-pan-icon:focus-visible,\n.apexcharts-reset-icon:focus-visible,\n.apexcharts-selection-icon:focus-visible,\n.apexcharts-toolbar-custom-icon:focus-visible,\n.apexcharts-zoom-icon:focus-visible,\n.apexcharts-zoomin-icon:focus-visible,\n.apexcharts-zoomout-icon:focus-visible {\n outline: 2px solid var(--apexcharts-focus-color, #008FFB);\n outline-offset: 1px;\n border-radius: 5px\n}\n\n/* Focus indicator for hamburger menu items */\n.apexcharts-menu-item:focus-visible {\n outline: 2px solid var(--apexcharts-focus-color, #008FFB);\n outline-offset: -2px;\n background: #eee\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,\n.apexcharts-datalabel.apexcharts-element-hidden,\n.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\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value,\n.apexcharts-datalabels,\n.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-radialbar-label {\n cursor: pointer;\n}\n\n.apexcharts-annotation-rect,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-gridline,\n.apexcharts-line,\n.apexcharts-point-annotation-label,\n.apexcharts-radar-series path:not(.apexcharts-marker),\n.apexcharts-radar-series polygon,\n.apexcharts-toolbar svg,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-xaxis-annotation-label,\n.apexcharts-yaxis-annotation-label,\n.apexcharts-zoom-rect,\n.no-pointer-events {\n pointer-events: none\n}\n\n.apexcharts-tooltip-active .apexcharts-marker {\n transition: .15s ease all\n}\n\n.apexcharts-radar-series .apexcharts-yaxis {\n pointer-events: none;\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,\n.resize-triggers,\n.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}\n\n.apexcharts-disable-transitions * {\n transition: none !important;\n}';const n=(null==(a=this.opts.chart)?void 0:a.nonce)||this.w.config.chart.nonce;n&&s.setAttribute("nonce",n),t?e.prepend(s):!1!==this.w.config.chart.injectStyleSheet&&i.head.appendChild(s)}}const s=this.create(this.w.config.series,{});if(!s)return e(this);this.mount(s).then(()=>{"function"==typeof this.w.config.chart.events.mounted&&this.w.config.chart.events.mounted(this,this.w),this.events.fireEvent("mounted",[this,this.w]),e(s)}).catch(e=>{var a,i;const s=e instanceof Error?e:new Error(String(e)),n=s;n.chartId=null==(i=null==(a=this.w)?void 0:a.globals)?void 0:i.chartID,n.el=this.el,t(s)})}else t(new Error("Element not found"))}):Promise.reject(new Error("ApexCharts: chart configuration is missing or invalid. Ensure the options object includes a `chart` property."))}create(e,t){var a;const i=this.w;if(!this.core){new HLe(this).initModules()}const s=this.w.globals;if(s.noData=!1,s.animationEnded=!1,!qDe.elementExists(this.el))return s.animationEnded=!0,null;if(this.responsive.checkResponsiveConfig(t),i.config.xaxis.convertedCatToNumeric){new JDe(i.config).convertCatToNumericXaxis(i.config,this.ctx)}if(this.core.setupElements(),"treemap"===i.config.chart.type&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),0===s.svgWidth)return s.animationEnded=!0,null;let n=e;e.forEach((e,t)=>{e.hidden&&(n=this.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:t}))});const o=rMe.checkComboSeries(n,i.config.chart.type);s.comboCharts=o.comboCharts,s.comboBarCount=o.comboBarCount;const r=n.every(e=>e.data&&0===e.data.length);(0===n.length||r&&s.collapsedSeries.length<1)&&this.series.handleNoData(),VDe.isBrowser()&&this.events.setupEventHandlers();const l=this.data.parseData(n);this._writeParsedSeriesData(l.seriesData),this._writeParsedRangeData(l.rangeData),this._writeParsedCandleData(l.candleData),this._writeParsedLabelData(l.labelData),this._writeParsedAxisFlags(l.axisFlags),this.theme.init();new xMe(this.w,this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),s.noData&&s.collapsedSeries.length!==i.seriesData.series.length&&!i.config.legend.showForSingleSeries||null==(a=this.legend)||a.init(),this.series.hasAllSeriesEqualX(),s.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar&&(this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX)),this.formatters.heatmapLabelFormatters();new rMe(this.w).getLargestMarkerSize();const c=this.dimensions.plotCoords();this._writeLayoutCoords(c.layout);const d=this.core.xySettings();this.grid.createGridMask();const u=this.core.plotChartType(n,d),p=new EMe(this.w,this);p.bringForward(),i.config.dataLabels.background.enabled&&p.dataLabelsBackground(),this.core.shiftGraphPosition(),i.globals.dataPoints>50&&i.dom.elWrap.classList.add("apexcharts-disable-transitions");return{elGraph:u,xyRatios:d,dimensions:{plot:{left:i.layout.translateX,top:i.layout.translateY,width:i.layout.gridWidth,height:i.layout.gridHeight}}}}mount(e=null){const t=this,a=t.w;return new Promise((i,s)=>{var n,o,r,l,c,d,u,p,h;if(null===t.el)return s(new Error("Not enough data to display or target element not found"));(null===e||a.globals.allSeriesCollapsed)&&t.series.handleNoData(),t.grid=new AMe(t.w,t);const g=t.grid.drawGrid(),m=HLe._featureRegistry.get("annotations");if(t.annotations=m?new m(t.w,{theme:t.theme,timeScale:t.timeScale}):null,null==(n=t.annotations)||n.drawImageAnnos(),null==(o=t.annotations)||o.drawTextAnnos(),"back"===a.config.grid.position&&(g&&a.dom.elGraphical.add(g.el),(null==(r=null==g?void 0:g.elGridBorders)?void 0:r.node)&&a.dom.elGraphical.add(g.elGridBorders)),Array.isArray(e.elGraph))for(let t=0;t<e.elGraph.length;t++)a.dom.elGraphical.add(e.elGraph[t]);else a.dom.elGraphical.add(e.elGraph);"front"===a.config.grid.position&&(g&&a.dom.elGraphical.add(g.el),(null==(l=null==g?void 0:g.elGridBorders)?void 0:l.node)&&a.dom.elGraphical.add(g.elGridBorders)),"front"===a.config.xaxis.crosshairs.position&&t.crosshairs.drawXCrosshairs(),"front"===a.config.yaxis[0].crosshairs.position&&t.crosshairs.drawYCrosshairs(),"treemap"!==a.config.chart.type&&t.axes.drawAxis(a.config.chart.type,g);const f=new TMe(this.w,this.ctx,g),_=new NMe(this.w,{theme:this.theme,timeScale:this.timeScale},g);if(null!==g&&(f.xAxisLabelCorrections(),_.setYAxisTextAlignments(),a.config.yaxis.map((e,t)=>{-1===a.globals.ignoreYAxisIndexes.indexOf(t)&&_.yAxisTitleRotate(t,e.opposite)})),null==(c=t.annotations)||c.drawAxesAnnotations(),!a.globals.noData){if(VDe.isBrowser()&&a.config.tooltip.enabled&&!a.globals.noData&&(null==(d=t.w.globals.tooltip)||d.drawTooltip(e.xyRatios)),a.config.chart.accessibility.enabled&&a.config.chart.accessibility.keyboard.enabled&&a.config.chart.accessibility.keyboard.navigation.enabled&&(null==(u=t.keyboardNavigation)||u.init()),VDe.isBrowser()&&a.globals.axisCharts&&(a.axisFlags.isXNumeric||a.config.xaxis.convertedCatToNumeric||a.axisFlags.isRangeBar))(a.config.chart.zoom.enabled||a.config.chart.selection&&a.config.chart.selection.enabled||a.config.chart.pan&&a.config.chart.pan.enabled)&&(null==(p=t.zoomPanSelection)||p.init({xyRatios:e.xyRatios}));else{const e=a.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(t=>{e[t]=!1})}a.config.chart.toolbar.show&&!a.globals.allSeriesCollapsed&&(null==(h=t.toolbar)||h.createToolbar())}a.globals.memory.methodsToExec.length>0&&a.globals.memory.methodsToExec.forEach(e=>{e.method(e.params,!1,e.context)}),a.globals.axisCharts||a.globals.noData||t.core.resizeNonAxisCharts(),i(t)})}destroy(){VDe.isBrowser()&&(window.removeEventListener("resize",this.windowResizeHandler),function(e,t){if(VDe.isSSR())return;const a=YLe.get(t);a&&(a.disconnect(),YLe.delete(t))}(this.el.parentNode,this.parentResizeHandler));const e=this.w.config.chart.id;e&&Apex._chartInstances.forEach((t,a)=>{t.id===qDe.escapeString(e)&&Apex._chartInstances.splice(a,1)}),this._keyboardNavigation&&this._keyboardNavigation.destroy(),new zLe(this.ctx).clear({isUpdating:!1})}updateOptions(e,t=!1,a=!0,i=!0,s=!0){const n=this.w;if(n.interact.selection=void 0,this.lastUpdateOptions){if(qDe.shallowEqual(this.lastUpdateOptions,e))return Promise.resolve(this);if(e.series&&this.lastUpdateOptions.series&&JSON.stringify(this.lastUpdateOptions.series)===JSON.stringify(e.series)){const t=FDe({},e),a=FDe({},this.lastUpdateOptions);if(delete t.series,delete a.series,qDe.shallowEqual(t,a))return Promise.resolve(this)}}return e.series&&(this.data.resetParsingFlags(),this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map((e,t)=>this.updateHelpers._extendSeries(e,t))),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),n.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,t,a,i,s)}updateSeries(e=[],t=!0,a=!0){return this.data.resetParsingFlags(),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,a)}appendSeries(e,t=!0,a=!0){this.data.resetParsingFlags();const i=this.w.config.series.slice();return i.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(i,t,a)}appendData(e,t=!0){const a=this;a.data.resetParsingFlags(),a.w.globals.dataChanged=!0,a.series.getPreviousPaths();const i=a.w.config.series.slice();for(let s=0;s<i.length;s++)if(null!==e[s]&&void 0!==e[s]){const t=e[s],a=i[s];for(let e=0;e<t.data.length;e++)a.data.push(t.data[e])}return a.w.config.series=i,t&&(a.w.globals.initialSeries=qDe.clone(a.w.config.series)),this.update()}update(e){return new Promise((t,a)=>{if(this.lastUpdateOptions&&JSON.stringify(this.lastUpdateOptions)===JSON.stringify(e))return t(this);this.lastUpdateOptions=qDe.clone(e),new zLe(this.ctx).clear({isUpdating:!0});const i=this.create(this.w.config.series,null!=e?e:{});if(!i)return t(this);this.mount(i).then(()=>{"function"==typeof this.w.config.chart.events.updated&&this.w.config.chart.events.updated(this,this.w),this.events.fireEvent("updated",[this,this.w]),this.w.globals.isDirty=!0,t(this)}).catch(e=>{a(e)})})}fastUpdate(e){return new Promise((t,a)=>{var i;try{const a=this.w,s=a.globals;s.shouldAnimate=e,s.dataChanged=!0,s.animationEnded=!1,CMe.invalidateSelectors(a);const n=a.globals;n.maxY=-Number.MAX_VALUE,n.minY=Number.MIN_VALUE,n.minYArr=[],n.maxYArr=[],n.maxX=-Number.MAX_VALUE,n.minX=Number.MAX_VALUE,n.initialMaxX=-Number.MAX_VALUE,n.initialMinX=Number.MAX_VALUE,n.yAxisScale=[],n.xAxisScale=null,n.xAxisTicksPositions=[],n.xRange=0,n.yRange=[],n.zRange=0,n.xTickAmount=0,n.multiAxisTickAmount=0,n.pointsArray=[],n.dataLabelsRects=[],n.lastDrawnDataLabelsIndexes=[],n.textRectsCache=new Map,n.domCache=new Map,n.cachedSelectors={},n.disableZoomIn=!1,n.disableZoomOut=!1,s.axisCharts&&(this.core.coreCalculations(),"category"!==a.config.xaxis.type&&this.formatters.setLabelFormatters());const o=this.core.xySettings(),r=a.dom.elGraphical.node;r.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-datalabels-background").forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)});const l=this.core.plotChartType(a.config.series,o),c=r.querySelector(".apexcharts-grid"),d=Array.isArray(l)?l:[l];c&&"front"===a.config.grid.position?d.forEach(e=>{const t=e&&e.node?e.node:e;t&&r.insertBefore(t,c)}):d.forEach(e=>{a.dom.elGraphical.add(e)});const u=new EMe(a,this);u.bringForward(),a.config.dataLabels.background.enabled&&u.dataLabelsBackground(),VDe.isBrowser()&&a.config.tooltip.enabled&&!s.noData&&(null==(i=a.globals.tooltip)||i.drawTooltip(o)),"function"==typeof a.config.chart.events.updated&&a.config.chart.events.updated(this,a),this.events.fireEvent("updated",[this,a]),s.isDirty=!0,t(this)}catch(PI){a(PI)}})}getSyncedCharts(){const e=this.getGroupedCharts();let t=[this];return e.length&&(t=[],e.forEach(e=>{t.push(e)})),t}getGroupedCharts(){return Apex._chartInstances.filter(e=>{if(e.group)return!0}).map(e=>this.w.config.chart.group===e.group?e.chart:this)}static getChartByID(e){const t=qDe.escapeString(e);if(!Apex._chartInstances)return;const a=Apex._chartInstances.filter(e=>e.id===t)[0];return a&&a.chart}static initOnLoad(){var e;const t=document.querySelectorAll("[data-apexcharts]");for(let a=0;a<t.length;a++){const i=t[a],s=JSON.parse(null!=(e=t[a].getAttribute("data-options"))?e:"");new GLe(i,s).render()}}static exec(e,t,...a){const i=this.getChartByID(e);if(!i)return;i.w.globals.isExecCalled=!0;let s=null;return-1!==i.publicMethods.indexOf(t)&&(s=i[t](...a)),s}static merge(e,t){return qDe.extend(e,t)}static getThemePalettes(){return{palette1:["#008FFB","#00A86F","#CA8501","#FF4560","#846DD5"],palette2:["#6978CB","#039DE2","#49A84D","#B39105","#D68000"],palette3:["#209FCC","#648291","#D4526E","#0FA783","#A19285"],palette4:["#2FA59D","#73A20B","#099DE1","#FD5D5D","#648291"],palette5:["#2B908F","#F56566","#2EAB16","#FA4443","#1EA2BD"],palette6:["#449DD1","#F86624","#EA3A4A","#9C63D1","#899E2A"],palette7:["#DF475B","#1B998B","#7E75B7","#F46036","#B1911B"],palette8:["#9C63D1","#F86624","#B38F04","#EA3A4A","#2FA2B3"],palette9:["#98776F","#A19285","#A8705E","#BA6560","#A0927F"],palette10:["#C91EFF","#A94BFD","#6C6AFE","#2983FF","#009ED8"],cvdDeuteranopia:["#0072B2","#E69F00","#56B4E9","#009E73","#F0E442","#D55E00","#CC79A7"],cvdProtanopia:["#0077BB","#EE7733","#009988","#EE3377","#BBBBBB","#33BBEE","#CC3311"],cvdTritanopia:["#CC3311","#009988","#EE7733","#0077BB","#EE3377","#BBBBBB","#33BBEE"],highContrast:["#005A9C","#C00000","#007A33","#6C3483","#7B3F00","#0097A7","#4A235A"]}}static use(e){!function(e){Object.assign(iLe(),e)}(e)}static registerFeatures(e){HLe.registerFeatures(e)}toggleSeries(e){return this.series.toggleSeries(e)}highlightSeriesOnLegendHover(e,t){return this.series.toggleSeriesOnHover(e,t)}showSeries(e){this.series.showSeries(e)}hideSeries(e){this.series.hideSeries(e)}highlightSeries(e){this.series.highlightSeries(e)}isSeriesHidden(e){return this.series.isSeriesHidden(e)}resetSeries(e=!0,t=!0){this.series.resetSeries(e,t)}addEventListener(e,t){this.events.addEventListener(e,t)}removeEventListener(e,t){this.events.removeEventListener(e,t)}addXaxisAnnotation(e,t=!0,a=void 0){var i;let s=this;a&&(s=a),null==(i=s.annotations)||i.addXaxisAnnotationExternal(e,t,s)}addYaxisAnnotation(e,t=!0,a=void 0){var i;let s=this;a&&(s=a),null==(i=s.annotations)||i.addYaxisAnnotationExternal(e,t,s)}addPointAnnotation(e,t=!0,a=void 0){var i;let s=this;a&&(s=a),null==(i=s.annotations)||i.addPointAnnotationExternal(e,t,s)}clearAnnotations(e=void 0){var t;let a=this;e&&(a=e),null==(t=a.annotations)||t.clearAnnotations(a)}removeAnnotation(e,t=void 0){var a;let i=this;t&&(i=t),null==(a=i.annotations)||a.removeAnnotation(i,e)}getChartArea(){return this.w.dom.baseEl.querySelector(".apexcharts-inner")}getSeriesTotalXRange(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}getHighestValueInSeries(e=0){return new OMe(this.w).getMinYMaxY(e).highestY}getLowestValueInSeries(e=0){return new OMe(this.w).getMinYMaxY(e).lowestY}getSeriesTotal(){return this.w.globals.seriesTotals}getState(){const e=this.w,t=e.globals;return{series:e.seriesData.series,seriesNames:e.seriesData.seriesNames,colors:t.colors,labels:e.labelData.labels,seriesTotals:t.seriesTotals,seriesPercent:t.seriesPercent,seriesXvalues:t.seriesXvalues,seriesYvalues:t.seriesYvalues,minX:t.minX,maxX:t.maxX,minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,minXDiff:t.minXDiff,dataPoints:t.dataPoints,xAxisScale:t.xAxisScale,yAxisScale:t.yAxisScale,xTickAmount:t.xTickAmount,isXNumeric:e.axisFlags.isXNumeric,seriesYAxisMap:t.seriesYAxisMap,seriesYAxisReverseMap:t.seriesYAxisReverseMap,svgWidth:t.svgWidth,svgHeight:t.svgHeight,gridWidth:e.layout.gridWidth,gridHeight:e.layout.gridHeight,selectedDataPoints:e.interact.selectedDataPoints,collapsedSeriesIndices:t.collapsedSeriesIndices,zoomed:e.interact.zoomed,seriesX:e.seriesData.seriesX,seriesZ:e.seriesData.seriesZ,seriesCandleO:e.candleData.seriesCandleO,seriesCandleH:e.candleData.seriesCandleH,seriesCandleM:e.candleData.seriesCandleM,seriesCandleL:e.candleData.seriesCandleL,seriesCandleC:e.candleData.seriesCandleC,seriesRangeStart:e.rangeData.seriesRangeStart,seriesRangeEnd:e.rangeData.seriesRangeEnd,seriesGoals:e.seriesData.seriesGoals}}toggleDataPointSelection(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}zoomX(e,t){var a;null==(a=this.ctx.toolbar)||a.zoomUpdateOptions(e,t)}setLocale(e){this.localization.setCurrentLocaleValues(e)}dataURI(e){if(!this.ctx.exports)throw new Error("apexcharts: Exports feature is not registered. Import apexcharts/features/exports.");return this.ctx.exports.dataURI(e)}getSvgString(e){if(!this.ctx.exports)throw new Error("apexcharts: Exports feature is not registered. Import apexcharts/features/exports.");return this.ctx.exports.getSvgString(e)}exportToCSV(e={}){if(!this.ctx.exports)throw new Error("apexcharts: Exports feature is not registered. Import apexcharts/features/exports.");return this.ctx.exports.exportToCSV(e)}paper(){return this.w.dom.Paper}_writeParsedSeriesData(e){Object.assign(this.w.seriesData,e)}_writeParsedRangeData(e){Object.assign(this.w.rangeData,e)}_writeParsedCandleData(e){Object.assign(this.w.candleData,e)}_writeParsedLabelData(e){Object.assign(this.w.labelData,e)}_writeParsedAxisFlags(e){Object.assign(this.w.axisFlags,e)}_writeLayoutCoords(e){Object.assign(this.w.layout,e)}_parentResizeCallback(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}_windowResize(){this.w.globals.resizeTimer=window.setTimeout(()=>{this.w.globals.resized=!0,this.w.globals.dataChanged=!1,this.ctx.update()},150)}_windowResizeHandler(){var e;clearTimeout(null!=(e=this.w.globals.resizeTimer)?e:void 0);let{redrawOnWindowResize:t}=this.w.config.chart;"function"==typeof t&&(t=t()),t&&this._windowResize()}}const WLe=".apexcharts-flip-y {\n transform: scaleY(-1) translateY(-100%);\n transform-origin: top;\n transform-box: fill-box;\n}\n.apexcharts-flip-x {\n transform: scaleX(-1);\n transform-origin: center;\n transform-box: fill-box;\n}\n.apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n}\n.apexcharts-legend.apexcharts-legend-group-horizontal {\n flex-direction: column;\n}\n.apexcharts-legend-group {\n display: flex;\n}\n.apexcharts-legend-group-vertical {\n flex-direction: column-reverse;\n}\n.apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\n flex-wrap: wrap\n}\n.apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n flex-direction: column;\n bottom: 0;\n}\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 {\n justify-content: flex-start;\n align-items: flex-start;\n}\n.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\n justify-content: center;\n align-items: center;\n}\n.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\n justify-content: flex-end;\n align-items: flex-end;\n}\n.apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n display: flex;\n align-items: center;\n}\n.apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n}\n.apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n}\n.apexcharts-legend-marker {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin-right: 1px;\n}\n\n.apexcharts-legend-series.apexcharts-no-click {\n cursor: auto;\n}\n.apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n}\n.apexcharts-inactive-legend {\n opacity: 0.45;\n} ";class jLe{constructor(e,t){this.w=e,this.ctx=t}svgStringToNode(e){return(new DOMParser).parseFromString(e,"image/svg+xml").documentElement}scaleSvgNode(e,t){const a=parseFloat(e.getAttributeNS(null,"width")),i=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",a*t),e.setAttributeNS(null,"height",i*t),e.setAttributeNS(null,"viewBox","0 0 "+a+" "+i)}getSvgString(e){return new Promise(t=>{const a=this.w;let i=e||a.config.chart.toolbar.export.scale||a.config.chart.toolbar.export.width/a.globals.svgWidth;i||(i=1);const s=a.globals.svgWidth*i,n=a.globals.svgHeight*i,o=a.dom.elWrap.cloneNode(!0);o.style.width=s+"px",o.style.height=n+"px";const r=(new XMLSerializer).serializeToString(o);let l="\n .apexcharts-tooltip, .apexcharts-toolbar, .apexcharts-xaxistooltip, .apexcharts-yaxistooltip, .apexcharts-xcrosshairs, .apexcharts-ycrosshairs, .apexcharts-zoom-rect, .apexcharts-selection-rect {\n display: none;\n }\n ";a.config.legend.show&&a.dom.elLegendWrap&&a.dom.elLegendWrap.children.length>0&&(l+=WLe);let c=`\n <svg xmlns="http://www.w3.org/2000/svg"\n version="1.1"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n class="apexcharts-svg"\n xmlns:data="ApexChartsNS"\n transform="translate(0, 0)"\n width="${a.globals.svgWidth}px" height="${a.globals.svgHeight}px">\n <foreignObject width="100%" height="100%">\n <div xmlns="http://www.w3.org/1999/xhtml" style="width:${s}px; height:${n}px;">\n <style type="text/css">\n ${l}\n </style>\n ${r}\n </div>\n </foreignObject>\n </svg>\n `;const d=this.svgStringToNode(c);1!==i&&this.scaleSvgNode(d,i),this.convertImagesToBase64(d).then(()=>{c=(new XMLSerializer).serializeToString(d),t(c.replace(/ /g," "))})})}convertImagesToBase64(e){const t=e.getElementsByTagName("image"),a=Array.from(t).map(e=>{const t=e.getAttributeNS("http://www.w3.org/1999/xlink","href");return t&&!t.startsWith("data:")?this.getBase64FromUrl(t).then(t=>{e.setAttributeNS("http://www.w3.org/1999/xlink","href",t)}).catch(e=>{}):Promise.resolve()});return Promise.all(a)}getBase64FromUrl(e){return VDe.isSSR()?Promise.resolve(e):new Promise((t,a)=>{const i=new Image;i.crossOrigin="Anonymous",i.onload=()=>{const e=document.createElement("canvas");e.width=i.width,e.height=i.height;const a=e.getContext("2d");a&&a.drawImage(i,0,0),t(e.toDataURL())},i.onerror=a,i.src=e})}svgUrl(){return new Promise(e=>{this.getSvgString().then(t=>{const a=new Blob([t],{type:"image/svg+xml;charset=utf-8"});e(URL.createObjectURL(a))})})}dataURI(e){return VDe.isSSR()?Promise.resolve({imgURI:""}):new Promise(t=>{const a=this.w,i=e?e.scale||e.width/a.globals.svgWidth:1,s=document.createElement("canvas");s.width=a.globals.svgWidth*i,s.height=parseInt(a.dom.elWrap.style.height,10)*i;const n="transparent"!==a.config.chart.background&&a.config.chart.background?a.config.chart.background:"#fff",o=s.getContext("2d");o&&(o.fillStyle=n,o.fillRect(0,0,s.width*i,s.height*i),this.getSvgString(i).then(e=>{const a="data:image/svg+xml,"+encodeURIComponent(e),i=new Image;i.crossOrigin="anonymous",i.onload=()=>{o.drawImage(i,0,0);const e=s;if(e.msToBlob){const a=e.msToBlob();t({blob:a})}else{const e=s.toDataURL("image/png");t({imgURI:e})}},i.src=a}))})}exportToSVG(){this.svgUrl().then(e=>{this.triggerDownload(e,this.w.config.chart.toolbar.export.svg.filename,".svg")})}exportToPng(){const e=this.w.config.chart.toolbar.export.scale,t=this.w.config.chart.toolbar.export.width,a=e?{scale:e}:t?{width:t}:void 0;this.dataURI(a).then(({imgURI:e,blob:t})=>{t?navigator.msSaveOrOpenBlob(t,this.w.globals.chartID+".png"):this.triggerDownload(e,this.w.config.chart.toolbar.export.png.filename,".png")})}exportToCSV({series:e,fileName:t,columnDelimiter:a=",",lineDelimiter:i="\n"}){const s=this.w;e||(e=s.config.series);let n=[];const o=[];let r="";const l=s.seriesData.series.map((e,t)=>-1===s.globals.collapsedSeriesIndices.indexOf(t)?e:[]),c=e=>"function"==typeof s.config.chart.toolbar.export.csv.categoryFormatter?s.config.chart.toolbar.export.csv.categoryFormatter(e):"datetime"===s.config.xaxis.type&&String(e).length>=10?new Date(e).toDateString():qDe.isNumber(e)?e:e.split(a).join(""),d=e=>"function"==typeof s.config.chart.toolbar.export.csv.valueFormatter?s.config.chart.toolbar.export.csv.valueFormatter(e):e,u=Math.max(...e.map(e=>e.data?e.data.length:0)),p=new oLe(this.w),h=new kMe(this.w,{theme:this.ctx.theme,timeScale:this.ctx.timeScale}),g=e=>{let t="";if(s.globals.axisCharts){if("category"===s.config.xaxis.type||s.config.xaxis.convertedCatToNumeric)if(s.globals.isBarHorizontal){const a=s.formatters.yLabelFormatters[0],i=new $Me(this.ctx.w).getActiveConfigSeriesIndex();t=a(s.labelData.labels[e],{seriesIndex:i,dataPointIndex:e,w:s})}else t=h.getLabel(s.labelData.labels,s.labelData.timescaleLabels,0,e).text;"datetime"===s.config.xaxis.type&&(s.config.xaxis.categories.length?t=s.config.xaxis.categories[e]:s.config.labels.length&&(t=s.config.labels[e]))}else t=s.config.labels[e];return null===t?"nullvalue":(Array.isArray(t)&&(t=t.join(" ")),qDe.isNumber(t)?t:t.split(a).join(""))},m=(t,i)=>{var r;if(n.length&&0===i&&o.push(n.join(a)),t.data){t.data=t.data.length&&t.data||[...Array(u)].map(()=>"");for(let u=0;u<t.data.length;u++){n=[];let h=g(u);if("nullvalue"!==h){if(h||(p.isFormatXY()?h=e[i].data[u].x:p.isFormat2DArray()&&(h=e[i].data[u]?e[i].data[u][0]:"")),0===i){n.push(c(h));for(let t=0;t<s.seriesData.series.length;t++){const a=p.isFormatXY()?null==(r=e[t].data[u])?void 0:r.y:l[t][u];n.push(d(a))}}("candlestick"===s.config.chart.type||t.type&&"candlestick"===t.type)&&(n.pop(),n.push(s.candleData.seriesCandleO[i][u]),n.push(s.candleData.seriesCandleH[i][u]),n.push(s.candleData.seriesCandleL[i][u]),n.push(s.candleData.seriesCandleC[i][u])),("boxPlot"===s.config.chart.type||t.type&&"boxPlot"===t.type)&&(n.pop(),n.push(s.candleData.seriesCandleO[i][u]),n.push(s.candleData.seriesCandleH[i][u]),n.push(s.candleData.seriesCandleM[i][u]),n.push(s.candleData.seriesCandleL[i][u]),n.push(s.candleData.seriesCandleC[i][u])),"rangeBar"===s.config.chart.type&&(n.pop(),n.push(s.rangeData.seriesRangeStart[i][u]),n.push(s.rangeData.seriesRangeEnd[i][u])),n.length&&o.push(n.join(a))}}}};n.push(s.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===s.config.chart.type?(n.push("minimum"),n.push("q1"),n.push("median"),n.push("q3"),n.push("maximum")):"candlestick"===s.config.chart.type?(n.push("open"),n.push("high"),n.push("low"),n.push("close")):"rangeBar"===s.config.chart.type?(n.push("minimum"),n.push("maximum")):e.map((e,t)=>{const i=(e.name?e.name:`series-${t}`)+"";s.globals.axisCharts&&n.push(i.split(a).join("")?i.split(a).join(""):`series-${t}`)}),s.globals.axisCharts||(n.push(s.config.chart.toolbar.export.csv.headerValue),o.push(n.join(a))),s.globals.allSeriesHasEqualX||!s.globals.axisCharts||s.config.xaxis.categories.length||s.config.labels.length?e.map((e,t)=>{s.globals.axisCharts?m(e,t):(n=[],n.push(c(s.labelData.labels[t])),n.push(d(l[t])),o.push(n.join(a)))}):(()=>{const t=new Set,i={};e.forEach((a,s)=>{null==a||a.data.forEach(a=>{let n,o;if(p.isFormatXY())n=a.x,o=a.y;else{if(!p.isFormat2DArray())return;n=a[0],o=a[1]}i[n]||(i[n]=Array(e.length).fill("")),i[n][s]=d(o),t.add(n)})}),n.length&&o.push(n.join(a)),Array.from(t).sort().forEach(e=>{o.push([c(e),i[e].join(a)])})})(),r+=o.join(i),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+r),t||s.config.chart.toolbar.export.csv.filename,".csv")}triggerDownload(e,t,a){if(VDe.isSSR())return;const i=document.createElement("a");i.href=e,i.download=(t||this.w.globals.chartID)+a,document.body.appendChild(i),i.click(),document.body.removeChild(i)}}GLe.registerFeatures({exports:jLe});let qLe=class{constructor(e){this.w=e.w,this.lgCtx=e}getLegendStyles(){if(VDe.isSSR())return null;const e=document.createElement("style");e.setAttribute("type","text/css");const t=this.w.config.chart.nonce;t&&e.setAttribute("nonce",t);const a=document.createTextNode(WLe);return e.appendChild(a),e}getLegendDimensions(){const e=this.w.dom.baseEl.querySelector(".apexcharts-legend");if(!e)return{clwh:0,clww:0};const{width:t,height:a}=e.getBoundingClientRect();return{clwh:a,clww:t}}appendToForeignObject(){var e;const t=this.getLegendStyles();!1!==this.w.config.chart.injectStyleSheet&&t&&(null==(e=this.w.dom.elLegendForeign)||e.appendChild(t))}toggleDataSeries(e,t){var a,i;const s=this.w;if(s.globals.axisCharts||"radialBar"===s.config.chart.type){s.globals.resized=!0;let n=null,o=null;if(s.globals.risingSeries=[],s.globals.axisCharts){if(n=s.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${e}']`),!n)return;o=parseInt(null!=(a=n.getAttribute("data:realIndex"))?a:"",10)}else{if(n=s.dom.baseEl.querySelector(`.apexcharts-series[rel='${e+1}']`),!n)return;o=parseInt(null!=(i=n.getAttribute("rel"))?i:"",10)-1}if(t){[{cs:s.globals.collapsedSeries,csi:s.globals.collapsedSeriesIndices},{cs:s.globals.ancillaryCollapsedSeries,csi:s.globals.ancillaryCollapsedSeriesIndices}].forEach(e=>{const t=e.cs,a=e.csi;this.riseCollapsedSeries(t,a,o)})}else this.hideSeries({seriesEl:n,realIndex:o});if(s.config.chart.accessibility.enabled){const t=s.dom.baseEl.querySelector(`.apexcharts-legend-series[rel="${e+1}"]`);if(t){const a=s.globals.collapsedSeriesIndices.includes(o)||s.globals.ancillaryCollapsedSeriesIndices.includes(o);t.setAttribute("aria-pressed",a?"true":"false");const i=t.querySelector(".apexcharts-legend-text"),n=i?i.textContent:s.seriesData.seriesNames[e],r=a?"hidden":"visible";t.setAttribute("aria-label",`${n}, ${r}. Press Enter or Space to toggle.`)}}}else{const t=s.dom.Paper.findOne(` .apexcharts-series[rel='${e+1}'] path`),a=s.config.chart.type;if("pie"===a||"polarArea"===a||"donut"===a){const e=s.config.plotOptions.pie.donut.labels;new fMe(this.w).pathMouseDown(t,null),this.lgCtx.printDataLabelsInner(t.node,e)}if(s.config.chart.accessibility.enabled){const t=s.dom.baseEl.querySelector(`.apexcharts-legend-series[rel="${e+1}"]`);if(t){const a=s.globals.collapsedSeriesIndices.includes(e);t.setAttribute("aria-pressed",a?"true":"false");const i=t.querySelector(".apexcharts-legend-text"),n=i?i.textContent:s.seriesData.seriesNames[e],o=a?"hidden":"visible";t.setAttribute("aria-label",`${n}, ${o}. Press Enter or Space to toggle.`)}}}}getSeriesAfterCollapsing({realIndex:e}){var t;const a=this.w,i=a.globals,s=qDe.clone(a.config.series);if(i.axisCharts){const t=a.config.yaxis[i.seriesYAxisReverseMap[e]],n={index:e,data:s[e].data.slice(),type:s[e].type||a.config.chart.type};if(t&&t.show&&t.showAlways)i.ancillaryCollapsedSeriesIndices.indexOf(e)<0&&(i.ancillaryCollapsedSeries.push(n),i.ancillaryCollapsedSeriesIndices.push(e));else if(i.collapsedSeriesIndices.indexOf(e)<0){i.collapsedSeries.push(n),i.collapsedSeriesIndices.push(e);const t=i.risingSeries.indexOf(e);i.risingSeries.splice(t,1)}}else i.collapsedSeries.push({index:e,data:s[e],type:null!=(t=a.config.series[e].type)?t:"line"}),i.collapsedSeriesIndices.push(e);return i.allSeriesCollapsed=i.collapsedSeries.length+i.ancillaryCollapsedSeries.length===a.config.series.length,this._getSeriesBasedOnCollapsedState(s)}hideSeries({seriesEl:e,realIndex:t}){const a=this.w,i=this.getSeriesAfterCollapsing({realIndex:t}),s=e.childNodes;for(let n=0;n<s.length;n++)s[n].classList.contains("apexcharts-series-markers-wrap")&&(s[n].classList.contains("apexcharts-hide")?s[n].classList.remove("apexcharts-hide"):s[n].classList.add("apexcharts-hide"));this.lgCtx.updateSeries(i,a.config.chart.animations.dynamicAnimation.enabled)}riseCollapsedSeries(e,t,a){const i=this.w;let s=qDe.clone(i.config.series);if(e.length>0){for(let n=0;n<e.length;n++)e[n].index===a&&(i.globals.axisCharts?s[a].data=e[n].data.slice():s[a]=e[n].data,"number"!=typeof s[a]&&(s[a].hidden=!1),e.splice(n,1),t.splice(n,1),i.globals.risingSeries.push(a),n--);s=this._getSeriesBasedOnCollapsedState(s),this.lgCtx.updateSeries(s,i.config.chart.animations.dynamicAnimation.enabled)}}_getSeriesBasedOnCollapsedState(e){const t=this.w;let a=0;return t.globals.axisCharts?e.forEach((i,s)=>{t.globals.collapsedSeriesIndices.indexOf(s)<0&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(s)<0||(e[s].data=[],a++)}):e.forEach((i,s)=>{t.globals.collapsedSeriesIndices.indexOf(s)<0||(e[s]=0,a++)}),t.globals.allSeriesCollapsed=a===e.length,e}};GLe.registerFeatures({legend:class{constructor(e,t){this.w=e,this.ctx=t,this.printDataLabelsInner=(...e)=>{var a;return null==(a=t.pie)?void 0:a.printDataLabelsInner(...e)},this.updateSeries=(...e)=>t.updateHelpers._updateSeries(...e),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 qLe(this)}init(){const e=this.w,t=e.globals,a=e.config,i=a.legend.showForSingleSeries&&1===this.w.seriesData.series.length||this.isBarsDistributed||this.w.seriesData.series.length>1;if(this.legendHelpers.appendToForeignObject(),(i||!t.axisCharts)&&a.legend.show){const t=e.dom.elLegendWrap;for(;t.firstChild;)t.removeChild(t.firstChild);this.drawLegends(),"bottom"===a.legend.position||"top"===a.legend.position?this.legendAlignHorizontal():"right"!==a.legend.position&&"left"!==a.legend.position||this.legendAlignVertical()}}createLegendMarker({i:e,fillcolor:t}){const a=this.w,i=jDe.createElement("span");i.classList.add("apexcharts-legend-marker");const s=a.config.legend.markers.shape||a.config.markers.shape;let n=s;Array.isArray(s)&&(n=s[e]);const o=Array.isArray(a.config.legend.markers.size)?parseFloat(a.config.legend.markers.size[e]):parseFloat(a.config.legend.markers.size),r=Array.isArray(a.config.legend.markers.offsetX)?parseFloat(a.config.legend.markers.offsetX[e]):parseFloat(a.config.legend.markers.offsetX),l=Array.isArray(a.config.legend.markers.offsetY)?parseFloat(a.config.legend.markers.offsetY[e]):parseFloat(a.config.legend.markers.offsetY),c=Array.isArray(a.config.legend.markers.strokeWidth)?parseFloat(a.config.legend.markers.strokeWidth[e]):parseFloat(a.config.legend.markers.strokeWidth),d=i.style;if(d.height=2*(o+c)+"px",d.width=2*(o+c)+"px",d.left=r+"px",d.top=l+"px",a.config.legend.markers.customHTML)d.background="transparent",d.color=t[e],Array.isArray(a.config.legend.markers.customHTML)?a.config.legend.markers.customHTML[e]&&(i.innerHTML=a.config.legend.markers.customHTML[e]()):i.innerHTML=a.config.legend.markers.customHTML();else{const s=new xMe(this.ctx.w,this.ctx).getMarkerConfig({cssClass:`apexcharts-legend-marker apexcharts-marker apexcharts-marker-${n}`,seriesIndex:e,strokeWidth:c,size:o}),r=(VDe.isBrowser()?window.SVG:global.SVG)().addTo(i).size("100%","100%"),l=new fMe(this.w).drawMarker(0,0,$De(FDe({},s),{pointFillColor:Array.isArray(t)?t[e]:s.pointFillColor,shape:n}));a.dom.Paper.find(".apexcharts-legend-marker.apexcharts-marker").forEach(e=>{e.node.classList.contains("apexcharts-marker-triangle")?e.node.style.transform="translate(50%, 45%)":e.node.style.transform="translate(50%, 50%)"}),r.add(l)}return i}drawLegends(){var e;const t=this,a=this.w,i=a.dom.elLegendWrap,s=a.config.legend.fontFamily;let n=a.seriesData.seriesNames,o=a.config.legend.markers.fillColors?a.config.legend.markers.fillColors.slice():a.globals.colors.slice();if("heatmap"===a.config.chart.type){const e=a.config.plotOptions.heatmap.colorScale.ranges;n=e.map(e=>e.name?e.name:e.from+" - "+e.to),o=e.map(e=>e.color)}else this.isBarsDistributed&&(n=a.labelData.labels.slice());a.config.legend.customLegendItems.length&&(n=a.config.legend.customLegendItems);const r=a.formatters.legendFormatter,l=a.config.legend.inverseOrder,c=[];a.labelData.seriesGroups.length>1&&a.config.legend.clusterGroupedSeries&&a.labelData.seriesGroups.forEach((e,t)=>{c[t]=jDe.createElement("div"),c[t].classList.add("apexcharts-legend-group",`apexcharts-legend-group-${t}`),"horizontal"===a.config.legend.clusterGroupedSeriesOrientation?i.classList.add("apexcharts-legend-group-horizontal"):c[t].classList.add("apexcharts-legend-group-vertical")});for(let d=l?n.length-1:0;l?d>=0:d<=n.length-1;l?d--:d++){const t=r(n[d],{seriesIndex:d,w:a});let l=!1,u=!1;if(a.globals.collapsedSeries.length>0)for(let e=0;e<a.globals.collapsedSeries.length;e++)a.globals.collapsedSeries[e].index===d&&(l=!0);if(a.globals.ancillaryCollapsedSeriesIndices.length>0)for(let e=0;e<a.globals.ancillaryCollapsedSeriesIndices.length;e++)a.globals.ancillaryCollapsedSeriesIndices[e]===d&&(u=!0);const p=this.createLegendMarker({i:d,fillcolor:o});fMe.setAttrs(p,{rel:d+1,"data:collapsed":l||u}),(l||u)&&p.classList.add("apexcharts-inactive-legend");const h=jDe.createElement("div");if(a.config.chart.accessibility.enabled&&a.config.chart.accessibility.keyboard.enabled){h.setAttribute("role","button"),h.setAttribute("tabindex","0");const e=Array.isArray(t)?t.join(" "):t,a=l||u,i=a?"hidden":"visible";h.setAttribute("aria-label",`${e}, ${i}. Press Enter or Space to toggle.`),h.setAttribute("aria-pressed",a?"true":"false")}const g=jDe.createElement("span");g.classList.add("apexcharts-legend-text"),g.innerHTML=Array.isArray(t)?t.join(" "):t;let m=a.config.legend.labels.useSeriesColors?a.globals.colors[d]:Array.isArray(a.config.legend.labels.colors)?null==(e=a.config.legend.labels.colors)?void 0:e[d]:a.config.legend.labels.colors;m||(m=a.config.chart.foreColor),g.style.color=m,g.style.fontSize=a.config.legend.fontSize,g.style.fontWeight=a.config.legend.fontWeight,g.style.fontFamily=s||a.config.chart.fontFamily,fMe.setAttrs(g,{rel:d+1,i:d,"data:default-text":encodeURIComponent(t),"data:collapsed":l||u}),h.appendChild(p),h.appendChild(g);const f=new rMe(this.w);if(!a.config.legend.showForZeroSeries){0===f.getSeriesTotalByIndex(d)&&f.seriesHaveSameValues(d)&&!f.isSeriesNull(d)&&-1===a.globals.collapsedSeriesIndices.indexOf(d)&&-1===a.globals.ancillaryCollapsedSeriesIndices.indexOf(d)&&h.classList.add("apexcharts-hidden-zero-series")}a.config.legend.showForNullSeries||f.isSeriesNull(d)&&-1===a.globals.collapsedSeriesIndices.indexOf(d)&&-1===a.globals.ancillaryCollapsedSeriesIndices.indexOf(d)&&h.classList.add("apexcharts-hidden-null-series"),c.length?a.labelData.seriesGroups.forEach((e,t)=>{var s,n;e.includes(null!=(n=null==(s=a.config.series[d])?void 0:s.name)?n:"")&&(i.appendChild(c[t]),c[t].appendChild(h))}):i.appendChild(h),i.classList.add(`apexcharts-align-${a.config.legend.horizontalAlign}`),i.classList.add("apx-legend-position-"+a.config.legend.position),h.classList.add("apexcharts-legend-series"),h.style.margin=`${a.config.legend.itemMargin.vertical}px ${a.config.legend.itemMargin.horizontal}px`,i.style.width=a.config.legend.width?a.config.legend.width+"px":"",i.style.height=a.config.legend.height?a.config.legend.height+"px":"",fMe.setAttrs(h,{rel:d+1,seriesName:qDe.escapeString(n[d]),"data:collapsed":l||u}),(l||u)&&h.classList.add("apexcharts-inactive-legend"),a.config.legend.onItemClick.toggleDataSeries||h.classList.add("apexcharts-no-click")}a.dom.elWrap.addEventListener("click",t.onLegendClick,!0),a.config.legend.onItemHover.highlightDataSeries&&0===a.config.legend.customLegendItems.length&&(a.dom.elWrap.addEventListener("mousemove",t.onLegendHovered,!0),a.dom.elWrap.addEventListener("mouseout",t.onLegendHovered,!0)),a.config.chart.accessibility.enabled&&a.config.chart.accessibility.keyboard.enabled&&a.dom.elWrap.addEventListener("keydown",t.onLegendKeyDown.bind(t),!0)}setLegendWrapXY(e,t){const a=this.w,i=a.dom.elLegendWrap,s=i.clientHeight;let n=0,o=0;if("bottom"===a.config.legend.position)o=a.globals.svgHeight-Math.min(s,a.globals.svgHeight/2)-5;else if("top"===a.config.legend.position){const e=new GMe(this.w,this.ctx),t=e.dimHelpers.getTitleSubtitleCoords("title").height,a=e.dimHelpers.getTitleSubtitleCoords("subtitle").height;o=(t>0?t-10:0)+(a>0?a-10:0)}i.style.position="absolute",n=n+e+a.config.legend.offsetX,o=o+t+a.config.legend.offsetY,i.style.left=n+"px",i.style.top=o+"px","right"===a.config.legend.position&&(i.style.left="auto",i.style.right=25+a.config.legend.offsetX+"px");["width","height"].forEach(e=>{i&&i.style[e]&&(i.style[e]=parseInt(String(a.config.legend[e]),10)+"px")})}legendAlignHorizontal(){const e=this.w;e.dom.elLegendWrap.style.right="0";const t=new GMe(this.w,this.ctx),a=t.dimHelpers.getTitleSubtitleCoords("title"),i=t.dimHelpers.getTitleSubtitleCoords("subtitle");let s=0;"top"===e.config.legend.position&&(s=a.height+i.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,s)}legendAlignVertical(){const e=this.w,t=this.legendHelpers.getLegendDimensions();let a=0;"left"===e.config.legend.position&&(a=20),"right"===e.config.legend.position&&(a=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(a,20)}onLegendHovered(e){var t;const a=this.w,i=e.target,s=i.classList.contains("apexcharts-legend-series")||i.classList.contains("apexcharts-legend-text")||i.classList.contains("apexcharts-legend-marker");if("heatmap"===a.config.chart.type||this.isBarsDistributed){if(s){const a=parseInt(null!=(t=i.getAttribute("rel"))?t:"0",10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,a,this.w]);new $Me(this.ctx.w).highlightRangeInSeries(e,i)}}else if(!i.classList.contains("apexcharts-inactive-legend")&&s){new $Me(this.ctx.w).toggleSeriesOnHover(e,i)}}onLegendKeyDown(e){const t=this,a=this.w,i=e.target;if((i.classList.contains("apexcharts-legend-series")||i.classList.contains("apexcharts-legend-text")||i.classList.contains("apexcharts-legend-marker"))&&("Enter"===e.key||" "===e.key)){e.preventDefault();const s=i.getAttribute("rel");t.onLegendClick(e),null!==s&&a.config.legend.onItemClick.toggleDataSeries&&requestAnimationFrame(()=>{const e=a.dom.baseEl.querySelector(`.apexcharts-legend-series[rel="${s}"]`);e&&e.focus()})}}onLegendClick(e){var t;const a=this.w,i=e.target;if(!a.config.legend.customLegendItems.length&&(i.classList.contains("apexcharts-legend-series")||i.classList.contains("apexcharts-legend-text")||i.classList.contains("apexcharts-legend-marker"))){const e=parseInt(null!=(t=i.getAttribute("rel"))?t:"0",10)-1,s="true"===i.getAttribute("data:collapsed"),n=this.w.config.chart.events.legendClick;"function"==typeof n&&n(this.ctx,e,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,e,this.w]);const o=this.w.config.legend.markers.onClick;"function"==typeof o&&i.classList.contains("apexcharts-legend-marker")&&(o(this.ctx,e,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,e,this.w]));"treemap"!==a.config.chart.type&&"heatmap"!==a.config.chart.type&&!this.isBarsDistributed&&a.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(e,s)}}}});class KLe{constructor(e,t){this.w=e,this.ctx=t,this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=e.globals.minX,this.maxX=e.globals.maxX,this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null,this.elMenu=null,this.elMenuItems=[],this.t=null}createToolbar(){const e=this.w,t=()=>jDe.createElementNS("http://www.w3.org/1999/xhtml","div"),a=()=>{const e=jDe.createElementNS("http://www.w3.org/1999/xhtml","button");return e.setAttribute("type","button"),e},i=t();if(i.setAttribute("class","apexcharts-toolbar"),i.style.top=e.config.chart.toolbar.offsetY+"px",i.style.right=3-e.config.chart.toolbar.offsetX+"px",e.dom.elWrap.appendChild(i),this.elZoom=a(),this.elZoomIn=a(),this.elZoomOut=a(),this.elPan=a(),this.elSelection=a(),this.elZoomReset=a(),this.elMenuIcon=a(),this.elMenu=t(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(let r=0;r<this.t.customIcons.length;r++)this.elCustomIcons.push(a());const s=[],n=(t,a,i)=>{const n=t.toLowerCase();this.t[n]&&e.config.chart.zoom.enabled&&s.push({el:a,icon:"string"==typeof this.t[n]?this.t[n]:i,title:this.localeValues[t],class:`apexcharts-${n}-icon`})};n("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M12 5v14M5 12h14"/>\n</svg>\n'),n("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M5 12h14"/>\n</svg>\n');const o=t=>{this.t[t]&&e.config.chart[t].enabled&&s.push({el:"zoom"===t?this.elZoom:this.elSelection,icon:"string"==typeof this.t[t]?this.t[t]:"zoom"===t?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <circle cx="11" cy="11" r="7"/>\n <path d="m21 21-4.3-4.3M8 11h6M11 8v6"/>\n</svg>\n':'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M5 3a2 2 0 0 0-2 2"/>\n <path d="M19 3a2 2 0 0 1 2 2"/>\n <path d="M21 19a2 2 0 0 1-2 2"/>\n <path d="M5 21a2 2 0 0 1-2-2"/>\n <path d="M9 3h1M14 3h1M9 21h1M14 21h1M3 9v1M3 14v1M21 9v1M21 14v1"/>\n</svg>\n',title:this.localeValues["zoom"===t?"selectionZoom":"selection"],class:`apexcharts-${t}-icon`})};o("zoom"),o("selection"),this.t.pan&&e.config.chart.zoom.enabled&&s.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M5 9 2 12l3 3"/>\n <path d="M9 5l3-3 3 3"/>\n <path d="M15 19l-3 3-3-3"/>\n <path d="M19 9l3 3-3 3"/>\n <path d="M2 12h20"/>\n <path d="M12 2v20"/>\n</svg>\n',title:this.localeValues.pan,class:"apexcharts-pan-icon"}),n("reset",this.elZoomReset,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M8 3H5a2 2 0 0 0-2 2v3"/>\n <path d="M21 8V5a2 2 0 0 0-2-2h-3"/>\n <path d="M3 16v3a2 2 0 0 0 2 2h3"/>\n <path d="M16 21h3a2 2 0 0 0 2-2v-3"/>\n</svg>\n'),this.t.download&&s.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" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M4 6h16M4 12h16M4 18h16"/>\n</svg>\n',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(let r=0;r<this.elCustomIcons.length;r++)s.push({el:this.elCustomIcons[r],icon:this.t.customIcons[r].icon,title:this.t.customIcons[r].title,index:this.t.customIcons[r].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[r].class});s.forEach((e,t)=>{e.index&&qDe.moveIndexInArray(s,t,e.index)});for(let r=0;r<s.length;r++)fMe.setAttrs(s[r].el,{class:s[r].class,title:s[r].title,"aria-label":s[r].title}),s[r].el.innerHTML=s[r].icon,i.appendChild(s[r].el);this.elZoom.parentNode&&this.elZoom.setAttribute("aria-pressed",String(!!e.interact.zoomEnabled)),this.elSelection.parentNode&&this.elSelection.setAttribute("aria-pressed",String(!!e.interact.selectionEnabled)),this.elPan.parentNode&&this.elPan.setAttribute("aria-pressed",String(!!e.interact.panEnabled)),this.elMenuIcon.parentNode&&(this.elMenuIcon.setAttribute("aria-haspopup","true"),this.elMenuIcon.setAttribute("aria-expanded","false")),this._createHamburgerMenu(i),e.interact.zoomEnabled?this.elZoom.classList.add(this.selectedClass):e.interact.panEnabled?this.elPan.classList.add(this.selectedClass):e.interact.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}_createHamburgerMenu(e){this.elMenuItems=[],e.appendChild(this.elMenu),fMe.setAttrs(this.elMenu,{class:"apexcharts-menu",role:"menu"});const t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];for(let a=0;a<t.length;a++)this.elMenuItems.push(jDe.createElementNS("http://www.w3.org/1999/xhtml","div")),this.elMenuItems[a].innerHTML=t[a].title,fMe.setAttrs(this.elMenuItems[a],{class:`apexcharts-menu-item ${t[a].name}`,title:t[a].title,role:"menuitem",tabindex:"-1"}),this.elMenu.appendChild(this.elMenuItems[a])}addToolbarEventListeners(){var e,t,a,i,s,n,o,r;null==(e=this.elZoomReset)||e.addEventListener("click",this.handleZoomReset.bind(this)),null==(t=this.elSelection)||t.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),null==(a=this.elZoom)||a.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),null==(i=this.elZoomIn)||i.addEventListener("click",this.handleZoomIn.bind(this)),null==(s=this.elZoomOut)||s.addEventListener("click",this.handleZoomOut.bind(this)),null==(n=this.elPan)||n.addEventListener("click",this.togglePanning.bind(this)),null==(o=this.elMenuIcon)||o.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(e=>{e.classList.contains("exportSVG")?e.addEventListener("click",this.handleDownload.bind(this,"svg")):e.classList.contains("exportPNG")?e.addEventListener("click",this.handleDownload.bind(this,"png")):e.classList.contains("exportCSV")&&e.addEventListener("click",this.handleDownload.bind(this,"csv"))});for(let l=0;l<this.t.customIcons.length;l++)this.elCustomIcons[l].addEventListener("click",this.t.customIcons[l].click.bind(this,this.ctx,this.ctx.w));[this.elZoomReset,this.elSelection,this.elZoom,this.elZoomIn,this.elZoomOut,this.elPan,this.elMenuIcon,...this.elCustomIcons].forEach(e=>{e.addEventListener("keydown",t=>{if("Enter"===t.key||" "===t.key){t.preventDefault();const a=e.className;e.click(),requestAnimationFrame(()=>{const e=this.w.dom.baseEl;if(!e)return;const t=a.split(" ").find(e=>e.startsWith("apexcharts-"));if(!t)return;const i=e.querySelector(`.${t}`);i&&i.focus()})}})}),null==(r=this.elMenuIcon)||r.addEventListener("keydown",e=>{var t;"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),(null==(t=this.elMenu)?void 0:t.classList.contains("apexcharts-menu-open"))||this.toggleMenu(),window.setTimeout(()=>{const t="ArrowDown"===e.key?0:this.elMenuItems.length-1;this.elMenuItems[t]&&this.elMenuItems[t].focus()},20))}),this.elMenuItems.forEach((e,t)=>{e.addEventListener("keydown",a=>{var i;if("ArrowDown"===a.key){a.preventDefault();(this.elMenuItems[t+1]||this.elMenuItems[0]).focus()}else if("ArrowUp"===a.key){a.preventDefault();(this.elMenuItems[t-1]||this.elMenuItems[this.elMenuItems.length-1]).focus()}else"Escape"===a.key||"Tab"===a.key?(this._closeMenu(),null==(i=this.elMenuIcon)||i.focus(),"Tab"===a.key||a.preventDefault()):"Enter"!==a.key&&" "!==a.key||(a.preventDefault(),e.click())})})}toggleZoomSelection(e){this.ctx.getSyncedCharts().forEach(t=>{t.ctx.toolbar.toggleOtherControls();const a="selection"===e?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,i="selection"===e?"selectionEnabled":"zoomEnabled";t.w.globals[i]=!t.w.globals[i],a.classList.contains(t.ctx.toolbar.selectedClass)?a.classList.remove(t.ctx.toolbar.selectedClass):a.classList.add(t.ctx.toolbar.selectedClass),a.setAttribute("aria-pressed",String(t.w.globals[i]))})}getToolbarIconsReference(){const e=this.w;this.elZoom||(this.elZoom=e.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.dom.baseEl.querySelector(".apexcharts-selection-icon"))}enableZoomPanFromToolbar(e){this.toggleOtherControls(),"pan"===e?this.w.interact.panEnabled=!0:this.w.interact.zoomEnabled=!0;const t="pan"===e?this.elPan:this.elZoom,a="pan"===e?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),a&&a.classList.remove(this.selectedClass)}togglePanning(){this.ctx.getSyncedCharts().forEach(e=>{e.ctx.toolbar.toggleOtherControls(),e.w.interact.panEnabled=!e.w.interact.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),e.ctx.toolbar.elPan.setAttribute("aria-pressed",String(e.w.interact.panEnabled))})}toggleOtherControls(){const e=this.w;e.interact.panEnabled=!1,e.interact.zoomEnabled=!1,e.interact.selectionEnabled=!1,this.getToolbarIconsReference();[this.elPan,this.elSelection,this.elZoom].forEach(e=>{e&&e.classList.remove(this.selectedClass)})}_currentXRange(){const e=this.w;return e.axisFlags.isRangeBar?{minX:e.globals.minY,maxX:e.globals.maxY}:{minX:e.globals.minX,maxX:e.globals.maxX}}handleZoomIn(){const e=this.w,{minX:t,maxX:a}=this._currentXRange();this.minX=t,this.maxX=a;const i=(t+a)/2,s=(t+i)/2,n=(a+i)/2,o=this._getNewMinXMaxX(s,n);e.interact.disableZoomIn||this.zoomUpdateOptions(o.minX,o.maxX)}handleZoomOut(){const e=this.w,{minX:t,maxX:a}=this._currentXRange();if(this.minX=t,this.maxX=a,"datetime"===e.config.xaxis.type&&new Date(t).getUTCFullYear()<1e3)return;const i=(t+a)/2,s=t-(i-t),n=a-(i-a),o=this._getNewMinXMaxX(s,n);e.interact.disableZoomOut||this.zoomUpdateOptions(o.minX,o.maxX)}_getNewMinXMaxX(e,t){const a=this.w.config.xaxis.convertedCatToNumeric;return{minX:a?Math.floor(e):e,maxX:a?Math.floor(t):t}}zoomUpdateOptions(e,t){const a=this.w;if(void 0===e&&void 0===t)return void this.handleZoomReset();if(a.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=a.globals.dataPoints),t-e<2))return;let i={min:e,max:t};const s=this.getBeforeZoomRange(i,void 0);s&&(i=s.xaxis);const n={xaxis:i};if(!a.globals.initialConfig)return;const o=qDe.clone(a.globals.initialConfig.yaxis);a.config.chart.group||(n.yaxis=o),this.w.interact.zoomed=!0,this.ctx.updateHelpers._updateOptions(n,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(i,o)}zoomCallback(e,t){"function"==typeof this.ev.zoomed&&(this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t}),this.ctx.events.fireEvent("zoomed",{xaxis:e,yaxis:t}))}getBeforeZoomRange(e,t){let a=null;return"function"==typeof this.ev.beforeZoom&&(a=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),a}toggleMenu(){window.setTimeout(()=>{var e,t,a;(null==(e=this.elMenu)?void 0:e.classList.contains("apexcharts-menu-open"))?this._closeMenu():(null==(t=this.elMenu)||t.classList.add("apexcharts-menu-open"),null==(a=this.elMenuIcon)||a.setAttribute("aria-expanded","true"))},0)}_closeMenu(){var e,t;null==(e=this.elMenu)||e.classList.remove("apexcharts-menu-open"),null==(t=this.elMenuIcon)||t.setAttribute("aria-expanded","false")}handleDownload(e){const t=this.w,a=new jLe(this.w,this.ctx);switch(e){case"svg":a.exportToSVG();break;case"png":a.exportToPng();break;case"csv":a.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}handleZoomReset(){this.ctx.getSyncedCharts().forEach(e=>{const t=e.w;if(!t.interact.zoomed)return;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){const a=t.config.chart.events.beforeResetZoom(e,t);a&&e.updateHelpers.revertDefaultAxisMinMax(a)}"function"==typeof t.config.chart.events.zoomed&&e.ctx.toolbar.zoomCallback({min:t.config.xaxis.min,max:t.config.xaxis.max});const a=e.ctx.series.emptyCollapsedSeries(qDe.clone(t.globals.initialSeries));e.updateHelpers._updateSeries(a,t.config.chart.animations.dynamicAnimation.enabled),t.interact.zoomed=!1})}destroy(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}GLe.registerFeatures({toolbar:KLe,zoomPanSelection:class extends KLe{constructor(e,t){super(e,t),this.w=e,this.ctx=t,this.dragged=!1,this.graphics=new fMe(this.w),this.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend","wheel"],this.clientX=0,this.clientY=0,this.startX=0,this.endX=0,this.dragX=0,this.startY=0,this.endY=0,this.dragY=0,this.moveDirection="none",this.debounceTimer=null,this.debounceDelay=100,this.wheelDelay=400}init({xyRatios:e}){const t=this.w,a=this;this.xyRatios=e,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=t.dom.baseEl.querySelector(".apexcharts-grid"),this.constraints=new yMe(0,0,t.layout.gridWidth,t.layout.gridHeight),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),t.dom.Paper.add(this.zoomRect),t.dom.Paper.add(this.selectionRect),"x"===t.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:t.layout.gridWidth,maxY:t.layout.gridHeight}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):"y"===t.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:t.layout.gridWidth}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=t.dom.baseEl.querySelector(`${t.globals.chartClass} .apexcharts-svg`),this.hoverArea&&(this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(t=>{var i;null==(i=this.hoverArea)||i.addEventListener(t,a.svgMouseEvents.bind(a,e),{capture:!1,passive:!0})}),t.config.chart.zoom.enabled&&t.config.chart.zoom.allowMouseWheelZoom&&this.hoverArea.addEventListener("wheel",a.mouseWheelEvent.bind(a),{capture:!1,passive:!1}))}destroy(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}svgMouseEvents(e,t){var a;const i=this.w,s=this.ctx.toolbar,n=i.interact.zoomEnabled?i.config.chart.zoom.type:i.config.chart.selection.type,o=i.config.chart.toolbar.autoSelected;if(t.shiftKey?(this.shiftWasPressed=!0,s.enableZoomPanFromToolbar("pan"===o?"zoom":"pan")):this.shiftWasPressed&&(s.enableZoomPanFromToolbar(o),this.shiftWasPressed=!1),!t.target)return;const r=t.target.classList;let l;t.target.parentNode&&null!==t.target.parentNode&&(l=t.target.parentNode.classList);if(!(r.contains("apexcharts-legend-marker")||r.contains("apexcharts-legend-text")||l&&l.contains("apexcharts-toolbar"))){if(this.clientX="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientX:"touchend"===t.type?t.changedTouches[0].clientX:t.clientX,this.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||"touchstart"===t.type){const e=null==(a=this.gridRect)?void 0:a.getBoundingClientRect();if(!e)return;this.startX=this.clientX-e.left-i.globals.barPadForNumericAxis,this.startY=this.clientY-e.top,this.dragged=!1,this.w.interact.mousedown=!0}("mousemove"===t.type&&1===t.which||"touchmove"===t.type)&&(this.dragged=!0,i.interact.panEnabled?(i.interact.selection=null,this.w.interact.mousedown&&this.panDragging({context:this,zoomtype:n,xyRatios:e})):(this.w.interact.mousedown&&i.interact.zoomEnabled||this.w.interact.mousedown&&i.interact.selectionEnabled)&&(this.selection=this.selectionDrawing({context:this,zoomtype:n}))),"mouseup"!==t.type&&"touchend"!==t.type&&"mouseleave"!==t.type||this.handleMouseUp({zoomtype:n}),this.makeSelectionRectDraggable()}}handleMouseUp({zoomtype:e,isResized:t}){var a;const i=this.w,s=null==(a=this.gridRect)?void 0:a.getBoundingClientRect();s&&(this.w.interact.mousedown||t)&&(this.endX=this.clientX-s.left-i.globals.barPadForNumericAxis,this.endY=this.clientY-s.top,this.dragX=Math.abs(this.endX-this.startX),this.dragY=Math.abs(this.endY-this.startY),(i.interact.zoomEnabled||i.interact.selectionEnabled)&&this.selectionDrawn({context:this,zoomtype:e})),i.interact.zoomEnabled&&this.hideSelectionRect(this.selectionRect),this.dragged=!1,this.w.interact.mousedown=!1}mouseWheelEvent(e){const t=this.w;e.preventDefault();const a=Date.now();a-t.interact.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(e),t.interact.lastWheelExecution=a),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{a-t.interact.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(e),t.interact.lastWheelExecution=a)},this.debounceDelay)}executeMouseWheelZoom(e){var t,a,i;const s=this.w;this.minX=s.axisFlags.isRangeBar?s.globals.minY:s.globals.minX,this.maxX=s.axisFlags.isRangeBar?s.globals.maxY:s.globals.maxX;const n=null==(t=this.gridRect)?void 0:t.getBoundingClientRect();if(!n)return;const o=(e.clientX-n.left)/n.width,r=this.minX,l=this.maxX,c=l-r;let d,u,p;if(e.deltaY<0){d=.5*c;const e=r+o*c;u=e-d/2,p=e+d/2}else d=1.5*c,u=r-d/2,p=l+d/2;if(!s.axisFlags.isRangeBar){const e=null!=(a=s.globals.dataReducerRawMinX)?a:s.globals.initialMinX,t=null!=(i=s.globals.dataReducerRawMaxX)?i:s.globals.initialMaxX;u=Math.max(u,e),p=Math.min(p,t);const n=.01*(t-e);if(p-u<n){const e=(u+p)/2;u=e-n/2,p=e+n/2}}const h=this._getNewMinXMaxX(u,p);isNaN(h.minX)||isNaN(h.maxX)||this.zoomUpdateOptions(h.minX,h.maxX)}makeSelectionRectDraggable(){const e=this.w;if(!this.selectionRect)return;const t=this.selectionRect.node.getBoundingClientRect();t.width>0&&t.height>0&&(this.selectionRect.select(!1).resize(!1),this.selectionRect.select({createRot:()=>{},updateRot:()=>{},createHandle:(e,t,a,i,s)=>"l"===s||"r"===s?e.circle(8).css({"stroke-width":1,stroke:"#333",fill:"#fff"}):e.circle(0),updateHandle:(e,t)=>e.center(t[0],t[1])}).resize().on("resize",()=>{const t=e.interact.zoomEnabled?e.config.chart.zoom.type:e.config.chart.selection.type;this.handleMouseUp({zoomtype:t,isResized:!0})}))}preselectedSelection(){const e=this.w,t=this.xyRatios;if(!e.interact.zoomEnabled)if(void 0!==e.interact.selection&&null!==e.interact.selection)this.drawSelectionRect($De(FDe({},e.interact.selection),{translateX:e.layout.translateX,translateY:e.layout.translateY}));else if(void 0!==e.config.chart.selection.xaxis.min&&void 0!==e.config.chart.selection.xaxis.max){let a=(e.config.chart.selection.xaxis.min-e.globals.minX)/t.xRatio,i=e.layout.gridWidth-(e.globals.maxX-e.config.chart.selection.xaxis.max)/t.xRatio-a;e.axisFlags.isRangeBar&&(a=(e.config.chart.selection.xaxis.min-e.globals.yAxisScale[0].niceMin)/t.invertedYRatio,i=(e.config.chart.selection.xaxis.max-e.config.chart.selection.xaxis.min)/t.invertedYRatio);const s={x:a,y:0,width:i,height:e.layout.gridHeight,translateX:e.layout.translateX,translateY:e.layout.translateY,selectionEnabled:!0};this.drawSelectionRect(s),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:{}})}}drawSelectionRect({x:e,y:t,width:a,height:i,translateX:s=0,translateY:n=0}){const o=this.w,r=this.zoomRect,l=this.selectionRect;if(this.dragged||null!==o.interact.selection){const c={transform:"translate("+s+", "+n+")"};o.interact.zoomEnabled&&this.dragged&&(a<0&&(a=1),r.attr({x:e,y:t,width:a,height:i,fill:o.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":o.config.chart.zoom.zoomedArea.fill.opacity,stroke:o.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":o.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":o.config.chart.zoom.zoomedArea.stroke.opacity}),fMe.setAttrs(r.node,c)),o.interact.selectionEnabled&&(l.attr({x:e,y:t,width:a>0?a:0,height:i>0?i:0,fill:o.config.chart.selection.fill.color,"fill-opacity":o.config.chart.selection.fill.opacity,stroke:o.config.chart.selection.stroke.color,"stroke-width":o.config.chart.selection.stroke.width,"stroke-dasharray":o.config.chart.selection.stroke.dashArray,"stroke-opacity":o.config.chart.selection.stroke.opacity}),fMe.setAttrs(l.node,c))}}hideSelectionRect(e){e&&e.attr({x:0,y:0,width:0,height:0})}selectionDrawing({context:e,zoomtype:t}){var a;const i=this.w,s=e,n=null==(a=this.gridRect)?void 0:a.getBoundingClientRect();if(!n)return;const o=s.startX-1,r=s.startY;let l=!1,c=!1;const d=s.clientX-n.left-i.globals.barPadForNumericAxis,u=s.clientY-n.top;let p=d-o,h=u-r,g={translateX:i.layout.translateX,translateY:i.layout.translateY};return Math.abs(p+o)>i.layout.gridWidth?p=i.layout.gridWidth-o:d<0&&(p=o),o>d&&(l=!0,p=Math.abs(p)),r>u&&(c=!0,h=Math.abs(h)),g="x"===t?{x:l?o-p:o,y:0,width:p,height:i.layout.gridHeight}:"y"===t?{x:0,y:c?r-h:r,width:i.layout.gridWidth,height:h}:{x:l?o-p:o,y:c?r-h:r,width:p,height:h},g=$De(FDe({},g),{translateX:i.layout.translateX,translateY:i.layout.translateY}),s.drawSelectionRect(g),s.selectionDragging("resizing"),g}selectionDragging(e,t){var a;const i=this.w;if(!t)return;t.preventDefault();const{handler:s,box:n}=t.detail,o=this.constraints;let{x:r,y:l}=n;r<o.x&&(r=o.x),l<o.y&&(l=o.y),n.x2>o.x2&&(r=o.x2-n.w),n.y2>o.y2&&(l=o.y2-n.h),s.move(r,l);const c=this.xyRatios,d=this.selectionRect;let u=0;"resizing"===e&&(u=30);const p=e=>parseFloat(d.node.getAttribute(e)),h={x:p("x"),y:p("y"),width:p("width"),height:p("height")};i.interact.selection=h,"function"==typeof i.config.chart.events.selection&&i.interact.selectionEnabled&&(clearTimeout(null!=(a=this.w.globals.selectionResizeTimer)?a:void 0),this.w.globals.selectionResizeTimer=window.setTimeout(()=>{var e;const t=null==(e=this.gridRect)?void 0:e.getBoundingClientRect();if(!t)return;const a=d.node.getBoundingClientRect();let s,n,o,r;if(i.axisFlags.isRangeBar)s=i.globals.yAxisScale[0].niceMin+(a.left-t.left)*c.invertedYRatio,n=i.globals.yAxisScale[0].niceMin+(a.right-t.left)*c.invertedYRatio,o=0,r=1;else{if(!i.globals.xAxisScale)return;s=i.globals.xAxisScale.niceMin+(a.left-t.left)*c.xRatio,n=i.globals.xAxisScale.niceMin+(a.right-t.left)*c.xRatio,o=i.globals.yAxisScale[0].niceMin+(t.bottom-a.bottom)*c.yRatio[0],r=i.globals.yAxisScale[0].niceMax-(a.top-t.top)*c.yRatio[0]}const l={xaxis:{min:s,max:n},yaxis:{min:o,max:r}};i.config.chart.events.selection(this.ctx,l),i.config.chart.brush.enabled&&void 0!==i.config.chart.events.brushScrolled&&i.config.chart.events.brushScrolled(this.ctx,l)},u))}selectionDrawn({context:e,zoomtype:t}){var a,i;const s=this.w,n=e,o=this.xyRatios,r=this.ctx.toolbar,l=s.interact.zoomEnabled?n.zoomRect.node.getBoundingClientRect():n.selectionRect.node.getBoundingClientRect(),c=n.gridRect.getBoundingClientRect(),d=l.left-c.left-s.globals.barPadForNumericAxis,u=l.right-c.left-s.globals.barPadForNumericAxis,p=l.top-c.top,h=l.bottom-c.top;let g,m;if(s.axisFlags.isRangeBar)g=s.globals.yAxisScale[0].niceMin+d*o.invertedYRatio,m=s.globals.yAxisScale[0].niceMin+u*o.invertedYRatio;else{const e=null!=(i=null==(a=s.globals.xAxisScale)?void 0:a.niceMin)?i:0;g=e+d*o.xRatio,m=e+u*o.xRatio}const f=[],_=[];if(s.config.yaxis.forEach((e,t)=>{const a=s.globals.seriesYAxisMap[t][0],i=s.globals.yAxisScale[t].niceMax-o.yRatio[a]*p,n=s.globals.yAxisScale[t].niceMax-o.yRatio[a]*h;f.push(i),_.push(n)}),n.dragged&&(n.dragX>10||n.dragY>10)&&g!==m)if(s.interact.zoomEnabled){if(!s.globals.initialConfig)return;let e=qDe.clone(s.globals.initialConfig.yaxis),a=qDe.clone(s.globals.initialConfig.xaxis);if(s.interact.zoomed=!0,s.config.xaxis.convertedCatToNumeric&&(g=Math.floor(g),m=Math.floor(m),g<1&&(g=1,m=s.globals.dataPoints),m-g<2&&(m=g+1)),"xy"!==t&&"x"!==t||(a={min:g,max:m}),"xy"!==t&&"y"!==t||e.forEach((t,a)=>{e[a].min=_[a],e[a].max=f[a]}),r){const t=r.getBeforeZoomRange(a,e);t&&(a=t.xaxis?t.xaxis:a,e=t.yaxis?t.yaxis:e)}const i={xaxis:a};s.config.chart.group||(i.yaxis=e),n.ctx.updateHelpers._updateOptions(i,!1,n.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof s.config.chart.events.zoomed&&r.zoomCallback(a,e)}else if(s.interact.selectionEnabled){let e=null,a=null;if(a={min:g,max:m},"xy"===t||"y"===t){const t=qDe.clone(s.config.yaxis);e=t,t.forEach((e,a)=>{t[a].min=_[a],t[a].max=f[a]})}s.interact.selection=n.selection,"function"==typeof s.config.chart.events.selection&&s.config.chart.events.selection(n.ctx,{xaxis:a,yaxis:e})}}panDragging({context:e}){var t;const a=this.w,i=e;if(void 0!==a.interact.lastClientPosition.x){const e=a.interact.lastClientPosition.x-i.clientX,s=(null!=(t=a.interact.lastClientPosition.y)?t:0)-i.clientY;Math.abs(e)>Math.abs(s)&&e>0?this.moveDirection="left":Math.abs(e)>Math.abs(s)&&e<0?this.moveDirection="right":Math.abs(s)>Math.abs(e)&&s>0?this.moveDirection="up":Math.abs(s)>Math.abs(e)&&s<0&&(this.moveDirection="down")}a.interact.lastClientPosition={x:i.clientX,y:i.clientY};const s=a.axisFlags.isRangeBar?a.globals.minY:a.globals.minX,n=a.axisFlags.isRangeBar?a.globals.maxY:a.globals.maxX;i.panScrolled(s,n)}panScrolled(e,t){var a,i;const s=this.w,n=this.xyRatios;if(!s.globals.initialConfig)return;const o=qDe.clone(s.globals.initialConfig.yaxis);let r=n.xRatio,l=s.globals.minX,c=s.globals.maxX;if(s.axisFlags.isRangeBar&&(r=n.invertedYRatio,l=s.globals.minY,c=s.globals.maxY),"left"===this.moveDirection?(e=l+s.layout.gridWidth/15*r,t=c+s.layout.gridWidth/15*r):"right"===this.moveDirection&&(e=l-s.layout.gridWidth/15*r,t=c-s.layout.gridWidth/15*r),!s.axisFlags.isRangeBar){const n=null!=(a=s.globals.dataReducerRawMinX)?a:s.globals.initialMinX,o=null!=(i=s.globals.dataReducerRawMaxX)?i:s.globals.initialMaxX;(e<n||t>o)&&(e=l,t=c)}const d={xaxis:{min:e,max:t}};s.config.chart.group||(d.yaxis=o),this.updateScrolledChart(d,e,t)}updateScrolledChart(e,t,a){const i=this.w;if(this.ctx.updateHelpers._updateOptions(e,!1,!1),"function"==typeof i.config.chart.events.scrolled){const e={xaxis:{min:t,max:a}};i.config.chart.events.scrolled(this.ctx,e),this.ctx.events.fireEvent("scrolled",e)}}}});let XLe=class{constructor(e){this.w=e.w,this.annoCtx=e}setOrientations(e,t=null){var a,i;const s=this.w;if("vertical"===e.label.orientation){const n=null!==t?t:0,o=s.dom.baseEl.querySelector(`.apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='${n}']`);if(null!==o){const t=o.getBBox();o.setAttribute("x",String(parseFloat(null!=(a=o.getAttribute("x"))?a:"0")-t.height+4));const s="top"===e.label.position?t.width:-t.width;o.setAttribute("y",String(parseFloat(null!=(i=o.getAttribute("y"))?i:"0")+s));const{x:n,y:r}=this.annoCtx.graphics.rotateAroundCenter(o);o.setAttribute("transform",`rotate(-90 ${n} ${r})`)}}}addBackgroundToAnno(e,t){const a=this.w;if(!e||!t.label.text||!String(t.label.text).trim())return null;const i=a.dom.baseEl.querySelector(".apexcharts-grid");if(!i)return null;const s=i.getBoundingClientRect(),n=i.getBBox(),o=s.width/n.width||1,r=e.getBoundingClientRect();let{left:l,right:c,top:d,bottom:u}=t.label.style.padding;"vertical"===t.label.orientation&&([d,u,l,c]=[l,c,d,u]);const p=(r.left-s.left)/o-l,h=(r.top-s.top)/o-d,g=this.annoCtx.graphics.drawRect(p-a.globals.barPadForNumericAxis,h,r.width/o+l+c,r.height/o+d+u,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&g.node.classList.add(t.id),g}annotationsBackground(){const e=this.w,t=(t,a,i)=>{const s=e.dom.baseEl.querySelector(`.apexcharts-${i}-annotations .apexcharts-${i}-annotation-label[rel='${a}']`);if(s){const a=s.parentNode,i=this.addBackgroundToAnno(s,t);if(i){null==a||a.insertBefore(i.node,s);const n=s.getAttribute("x");null!==n&&uMe(i,parseFloat(n),e),t.label.mouseEnter&&i.node.addEventListener("mouseenter",t.label.mouseEnter.bind(this,t)),t.label.mouseLeave&&i.node.addEventListener("mouseleave",t.label.mouseLeave.bind(this,t)),t.label.click&&i.node.addEventListener("click",t.label.click.bind(this,t))}}};e.config.annotations.xaxis.forEach((e,a)=>t(e,a,"xaxis")),e.config.annotations.yaxis.forEach((e,a)=>t(e,a,"yaxis")),e.config.annotations.points.forEach((e,a)=>t(e,a,"point"))}getY1Y2(e,t){var a,i;const s=this.w,n="y1"===e?t.y:t.y2;let o,r=!1;if(this.annoCtx.invertAxis){const e=s.config.xaxis.convertedCatToNumeric?s.labelData.categoryLabels:s.labelData.labels,i=e.indexOf(n),r=s.dom.baseEl.querySelector(`.apexcharts-yaxis-texts-g text:nth-child(${i+1})`);o=r?parseFloat(null!=(a=r.getAttribute("y"))?a:"0"):(s.layout.gridHeight/e.length-1)*(i+1)-s.globals.barHeight,void 0!==t.seriesIndex&&s.globals.barHeight&&(o-=s.globals.barHeight/2*(s.seriesData.series.length-1)-s.globals.barHeight*t.seriesIndex)}else{const e=s.globals.seriesYAxisMap[t.yAxisIndex][0],a=s.config.yaxis[t.yAxisIndex].logarithmic?new rMe(this.w).getLogVal(s.config.yaxis[t.yAxisIndex].logBase,n,e)/s.globals.yLogRatio[e]:(n-s.globals.minYArr[e])/(s.globals.yRange[e]/s.layout.gridHeight);o=s.layout.gridHeight-Math.min(Math.max(a,0),s.layout.gridHeight),r=a>s.layout.gridHeight||a<0,!t.marker||void 0!==t.y&&null!==t.y||(o=0),(null==(i=s.config.yaxis[t.yAxisIndex])?void 0:i.reversed)&&(o=a)}return"string"==typeof n&&n.includes("px")&&(o=parseFloat(n)),{yP:o,clipped:r}}getX1X2(e,t){const a=this.w,i="x1"===e?t.x:t.x2,s=this.annoCtx.invertAxis?a.globals.minY:a.globals.minX,n=this.annoCtx.invertAxis?a.globals.maxY:a.globals.maxX,o=this.annoCtx.invertAxis?a.globals.yRange[0]:a.globals.xRange;let r=!1,l=this.annoCtx.inversedReversedAxis?(n-i)/(o/a.layout.gridWidth):(i-s)/(o/a.layout.gridWidth);return"category"!==a.config.xaxis.type&&!a.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||a.axisFlags.dataFormatXNumeric||a.config.chart.sparkline.enabled||(l=this.getStringX(i)),"string"==typeof i&&i.includes("px")&&(l=parseFloat(i)),null==i&&t.marker&&(l=a.layout.gridWidth),void 0!==t.seriesIndex&&a.globals.barWidth&&!this.annoCtx.invertAxis&&(l-=a.globals.barWidth/2*(a.seriesData.series.length-1)-a.globals.barWidth*t.seriesIndex),"number"!=typeof l&&(l=0,r=!0),parseFloat(l.toFixed(10))>parseFloat(a.layout.gridWidth.toFixed(10))?(l=a.layout.gridWidth,r=!0):l<0&&(l=0,r=!0),{x:l,clipped:r}}getStringX(e){var t;const a=this.w;let i=e;if(a.config.xaxis.convertedCatToNumeric&&a.labelData.categoryLabels.length){const t=String(e);e=a.labelData.categoryLabels.findIndex(e=>String(e)===t)+1}const s=a.labelData.labels.map(e=>Array.isArray(e)?e.join(" "):e).indexOf(e),n=a.dom.baseEl.querySelector(`.apexcharts-xaxis-texts-g text:nth-child(${s+1})`);return n&&(i=parseFloat(null!=(t=n.getAttribute("x"))?t:"0")),i}};class QLe{constructor(e){this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new XLe(this.annoCtx)}addXaxisAnnotation(e,t,a){const i=this.w,s=this.helpers.getX1X2("x1",e);let n=s.x;const o=s.clipped;let r,l=!0;const c=e.label.text,d=e.strokeDashArray;if(qDe.isNumber(n)){if(null===e.x2||void 0===e.x2){if(!o){const a=this.annoCtx.graphics.drawLine(n+e.offsetX,0+e.offsetY,n+e.offsetX,i.layout.gridHeight+e.offsetY,e.borderColor,d,e.borderWidth);t.appendChild(a.node),e.id&&a.node.classList.add(e.id),uMe(a,n+e.offsetX,i)}}else{const a=this.helpers.getX1X2("x2",e);if(r=a.x,l=a.clipped,r<n){const e=n;n=r,r=e}const s=this.annoCtx.graphics.drawRect(n+e.offsetX,0+e.offsetY,r-n,i.layout.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,d);s.node.classList.add("apexcharts-annotation-rect"),s.attr("clip-path",`url(#gridRectMask${i.globals.cuid})`),t.appendChild(s.node),e.id&&s.node.classList.add(e.id),uMe(s,n+e.offsetX,i)}if(!o||!l){const s=this.annoCtx.graphics.getTextRects(c,e.label.style.fontSize),o="top"===e.label.position?4:"center"===e.label.position?i.layout.gridHeight/2+("vertical"===e.label.orientation?s.width/2:0):i.layout.gridHeight,r=this.annoCtx.graphics.drawText({x:n+e.label.offsetX,y:o+e.label.offsetY-("vertical"===e.label.orientation?"top"===e.label.position?s.width/2-12:-s.width/2:0),text:c,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 ${e.label.style.cssClass} ${e.id?e.id:""}`});r.attr({rel:a}),t.appendChild(r.node),uMe(r,n+e.label.offsetX,i),this.annoCtx.helpers.setOrientations(e,a)}}}drawXAxisAnnotations(){const e=this.w,t=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return e.config.annotations.xaxis.map((e,a)=>{this.addXaxisAnnotation(e,t.node,a)}),t}}class ZLe{constructor(e){this.w=e.w,this.annoCtx=e,this.helpers=new XLe(this.annoCtx),this.axesUtils=new kMe(this.annoCtx.w,{theme:this.annoCtx.theme,timeScale:this.annoCtx.timeScale})}addYaxisAnnotation(e,t,a){const i=this.w,s=e.strokeDashArray;let n=this.helpers.getY1Y2("y1",e),o=n.yP;const r=n.clipped;let l,c=!0,d=!1;const u=e.label.text;if(null===e.y2||void 0===e.y2){if(!r){d=!0;const a=this.annoCtx.graphics.drawLine(0+e.offsetX,o+e.offsetY,this._getYAxisAnnotationWidth(e),o+e.offsetY,e.borderColor,s,e.borderWidth);t.appendChild(a.node),e.id&&a.node.classList.add(e.id)}}else{if(n=this.helpers.getY1Y2("y2",e),l=n.yP,c=n.clipped,l>o){const e=o;o=l,l=e}if(!r||!c){d=!0;const a=this.annoCtx.graphics.drawRect(0+e.offsetX,l+e.offsetY,this._getYAxisAnnotationWidth(e),o-l,0,e.fillColor,e.opacity,1,e.borderColor,s);a.node.classList.add("apexcharts-annotation-rect"),a.attr("clip-path",`url(#gridRectMask${i.globals.cuid})`),t.appendChild(a.node),e.id&&a.node.classList.add(e.id)}}if(d){const s="right"===e.label.position?i.layout.gridWidth:"center"===e.label.position?i.layout.gridWidth/2:0,n=this.annoCtx.graphics.drawText({x:s+e.label.offsetX,y:(null!=l?l:o)+e.label.offsetY-3,text:u,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 ${e.label.style.cssClass} ${e.id?e.id:""}`});n.attr({rel:a}),t.appendChild(n.node)}}_getYAxisAnnotationWidth(e){const t=this.w;let a=t.layout.gridWidth;return a=e.width.indexOf("%")>-1?t.layout.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10),a+e.offsetX}drawYAxisAnnotations(){const e=this.w,t=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.forEach((e,a)=>{e.yAxisIndex=this.axesUtils.translateYAxisIndex(e.yAxisIndex),this.axesUtils.isYAxisHidden(e.yAxisIndex)&&this.axesUtils.yAxisAllSeriesCollapsed(e.yAxisIndex)||this.addYaxisAnnotation(e,t.node,a)}),t}}class JLe{constructor(e){this.w=e.w,this.annoCtx=e,this.helpers=new XLe(this.annoCtx)}addPointAnnotation(e,t,a){const i=this.w;if(i.globals.collapsedSeriesIndices.indexOf(e.seriesIndex)>-1)return;const s=this.helpers.getX1X2("x1",e),n=s.x,o=s.clipped,r=this.helpers.getY1Y2("y1",e),l=r.yP,c=r.clipped;if(qDe.isNumber(n)&&!c&&!o){const s={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 ${e.marker.cssClass} ${e.id?e.id:""}`};let o=this.annoCtx.graphics.drawMarker(n+e.marker.offsetX,l+e.marker.offsetY,s);t.appendChild(o.node),uMe(o,n,i);const r=e.label.text?e.label.text:"",c=this.annoCtx.graphics.drawText({x:n+e.label.offsetX,y:l+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:r,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 ${e.label.style.cssClass} ${e.id?e.id:""}`});if(c.attr({rel:a}),t.appendChild(c.node),uMe(c,n,i),e.customSVG.SVG){const a=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});a.attr({transform:`translate(${n+e.customSVG.offsetX}, ${l+e.customSVG.offsetY})`}),a.node.innerHTML=e.customSVG.SVG,t.appendChild(a.node)}if(e.image.path){const t=e.image.width?e.image.width:20,a=e.image.height?e.image.height:20;o=this.annoCtx.addImage({x:n+e.image.offsetX-t/2,y:l+e.image.offsetY-a/2,width:t,height:a,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))}}drawPointAnnotations(){const e=this.w,t=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map((e,a)=>{this.addPointAnnotation(e,t.node,a)}),t}}GLe.registerFeatures({annotations:class{constructor(e,{theme:t=null,timeScale:a=null}={}){this.w=e,this.theme=t,this.timeScale=a,this.invertAxis=void 0,this.inversedReversedAxis=void 0,this.graphics=new fMe(this.w),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new XLe(this),this.xAxisAnnotations=new QLe(this),this.yAxisAnnotations=new ZLe(this),this.pointsAnnotations=new JLe(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.layout.gridWidth/this.w.globals.dataPoints}drawAxesAnnotations(){const e=this.w;if(e.globals.axisCharts&&e.globals.dataPoints){const t=this.yAxisAnnotations.drawYAxisAnnotations(),a=this.xAxisAnnotations.drawXAxisAnnotations(),i=this.pointsAnnotations.drawPointAnnotations(),s=e.config.chart.animations.enabled,n=[t,a,i],o=[a.node,t.node,i.node],r="line"===e.config.chart.type||"area"===e.config.chart.type||"rangeArea"===e.config.chart.type,l=[r,!1,r];for(let c=0;c<3;c++)e.dom.elGraphical.add(n[c]),!s||e.globals.resized||e.globals.dataChanged||"scatter"!==e.config.chart.type&&"bubble"!==e.config.chart.type&&e.globals.dataPoints>1&&!l[c]&&o[c].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:o[c],index:0});this.helpers.annotationsBackground()}}drawImageAnnos(){this.w.config.annotations.images.map(e=>{this.addImage(e)})}drawTextAnnos(){this.w.config.annotations.texts.map(e=>{this.addText(e)})}addXaxisAnnotation(e,t,a){this.xAxisAnnotations.addXaxisAnnotation(e,t,a)}addYaxisAnnotation(e,t,a){this.yAxisAnnotations.addYaxisAnnotation(e,t,a)}addPointAnnotation(e,t,a){this.pointsAnnotations.addPointAnnotation(e,t,a)}addText(e){const{x:t,y:a,text:i,textAnchor:s,foreColor:n,fontSize:o,fontFamily:r,fontWeight:l,cssClass:c,backgroundColor:d,borderWidth:u,strokeDashArray:p,borderRadius:h,borderColor:g,appendTo:m=".apexcharts-svg",paddingLeft:f=4,paddingRight:_=4,paddingBottom:b=2,paddingTop:v=2}=e,y=this.w,S=this.graphics.drawText({x:t,y:a,text:i,textAnchor:s||"start",fontSize:o||"12px",fontWeight:l||"regular",fontFamily:r||y.config.chart.fontFamily,foreColor:n||y.config.chart.foreColor,cssClass:c}),x=y.dom.baseEl.querySelector(m);x&&x.appendChild(S.node);const w=S.bbox();if(i){const e=this.graphics.drawRect(w.x-f,w.y-v,w.width+f+_,w.height+b+v,h,d||"transparent",1,u,g,p);x.insertBefore(e.node,S.node)}}addImage(e){const t=this.w,{path:a,x:i=0,y:s=0,width:n=20,height:o=20,appendTo:r=".apexcharts-svg"}=e,l=t.dom.Paper.image(a);l.size(n,o).move(i,s);const c=t.dom.baseEl.querySelector(r);return c&&c.appendChild(l.node),l}addXaxisAnnotationExternal(e,t,a){return this.addAnnotationExternal({params:e,pushToMemory:t,context:a,type:"xaxis",contextMethod:a.addXaxisAnnotation}),a}addYaxisAnnotationExternal(e,t,a){return this.addAnnotationExternal({params:e,pushToMemory:t,context:a,type:"yaxis",contextMethod:a.addYaxisAnnotation}),a}addPointAnnotationExternal(e,t,a){return void 0===this.invertAxis&&(this.invertAxis=a.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:a,type:"point",contextMethod:a.addPointAnnotation}),a}addAnnotationExternal({params:e,pushToMemory:t,context:a,type:i,contextMethod:s}){const n=a,o=n.w,r=o.dom.baseEl.querySelector(`.apexcharts-${i}-annotations`),l=r.childNodes.length+1,c=new tMe,d=Object.assign({},"xaxis"===i?c.xAxisAnnotation:"yaxis"===i?c.yAxisAnnotation:c.pointAnnotation),u=qDe.extend(d,e);switch(i){case"xaxis":this.addXaxisAnnotation(u,r,l);break;case"yaxis":this.addYaxisAnnotation(u,r,l);break;case"point":this.addPointAnnotation(u,r,l)}const p=o.dom.baseEl.querySelector(`.apexcharts-${i}-annotations .apexcharts-${i}-annotation-label[rel='${l}']`),h=this.helpers.addBackgroundToAnno(p,u);return h&&r.insertBefore(h.node,p),t&&o.globals.memory.methodsToExec.push({context:n,id:u.id?u.id:qDe.randomId(),method:s,label:"addAnnotation",params:e}),a}clearAnnotations(e){const t=e.w,a=t.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");for(let i=t.globals.memory.methodsToExec.length-1;i>=0;i--)"addText"!==t.globals.memory.methodsToExec[i].label&&"addAnnotation"!==t.globals.memory.methodsToExec[i].label||t.globals.memory.methodsToExec.splice(i,1);Array.prototype.forEach.call(a,e=>{for(;e.firstChild;)e.removeChild(e.firstChild)})}removeAnnotation(e,t){const a=e.w,i=a.dom.baseEl.querySelectorAll(`.${t}`);i&&(a.globals.memory.methodsToExec.map((e,i)=>{e.id===t&&a.globals.memory.methodsToExec.splice(i,1)}),Object.keys(a.config.annotations).forEach(e=>{const i=a.config.annotations[e];Array.isArray(i)&&(a.config.annotations[e]=i.filter(e=>e.id!==t))}),Array.prototype.forEach.call(i,e=>{e.parentElement.removeChild(e)}))}}});GLe.registerFeatures({keyboardNavigation:class{constructor(e,t){this.w=e,this.ctx=t,this.seriesIndex=0,this.dataPointIndex=0,this.active=!1,this._tooltipDismissed=!1,this._focusedEl=null,this._hoveredBarEl=null,this._enlargedScatterMarker=null,this._onKeyDown=this._onKeyDown.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onLegendClick=this._onLegendClick.bind(this),this._onPointerDown=this._onPointerDown.bind(this),this._lastPointerDownAt=0}init(){const e=this.w.dom.Paper.node;e&&(e.setAttribute("tabindex","0"),e.addEventListener("focus",this._onFocus),e.addEventListener("blur",this._onBlur),e.addEventListener("mousedown",this._onPointerDown,{capture:!0}),e.addEventListener("pointerdown",this._onPointerDown,{capture:!0}),e.addEventListener("touchstart",this._onPointerDown,{capture:!0,passive:!0}),e.addEventListener("keydown",this._onKeyDown,{passive:!1}),this.ctx.events.addEventListener("legendClick",this._onLegendClick))}destroy(){const e=this.w,t=e.dom.Paper&&e.dom.Paper.node;t&&(t.removeEventListener("focus",this._onFocus),t.removeEventListener("blur",this._onBlur),t.removeEventListener("keydown",this._onKeyDown),t.removeEventListener("mousedown",this._onPointerDown,{capture:!0}),t.removeEventListener("pointerdown",this._onPointerDown,{capture:!0}),t.removeEventListener("touchstart",this._onPointerDown,{capture:!0}),this.ctx.events.removeEventListener("legendClick",this._onLegendClick))}_onPointerDown(){this._lastPointerDownAt=Date.now()}handleKey(e){}_onFocus(){this._isNavEnabled()&&(Date.now()-this._lastPointerDownAt<100||(this.active=!0,this._clampCursor(),this._snapToVisibleRange(),this._showCurrentPoint()))}_onBlur(){this.active=!1,this._tooltipDismissed=!1,this._hideFocus()}_onLegendClick(){this.active&&(this.active=!1,this._hideFocus())}_onKeyDown(e){var t,a,i;if(this._isNavEnabled()&&this.active){if(e.shiftKey&&("ArrowRight"===e.key||"ArrowLeft"===e.key)&&this._canPan())return e.preventDefault(),void this._panBy("ArrowRight"===e.key?1:-1);switch(e.key){case"ArrowRight":e.preventDefault(),this._move(0,1);break;case"ArrowLeft":e.preventDefault(),this._move(0,-1);break;case"ArrowUp":e.preventDefault(),this._move(-1,0);break;case"ArrowDown":e.preventDefault(),this._move(1,0);break;case"Home":e.preventDefault(),this.dataPointIndex=0,this._skipNullForward(),this._showCurrentPoint();break;case"End":e.preventDefault(),this.dataPointIndex=this._getDataPointCount(this.seriesIndex)-1,this._skipNullBackward(),this._showCurrentPoint();break;case"Enter":case" ":e.preventDefault(),this._fireClick();break;case"+":case"=":this._canZoom()&&(e.preventDefault(),null==(t=this.ctx.toolbar)||t.handleZoomIn(),this._announce("Zoomed in"));break;case"-":case"_":this._canZoom()&&(e.preventDefault(),null==(a=this.ctx.toolbar)||a.handleZoomOut(),this._announce("Zoomed out"));break;case"0":this._canZoom()&&this.w.interact.zoomed&&(e.preventDefault(),null==(i=this.ctx.toolbar)||i.handleZoomReset(),this._announce("Zoom reset"));break;case"Escape":e.preventDefault(),this._tooltipDismissed?(this.active=!1,this._tooltipDismissed=!1,this._hideFocus()):(this._tooltipDismissed=!0,this._hideFocus())}}}_canZoom(){const e=this.w;return Boolean(e.globals.axisCharts&&e.config.chart.zoom&&e.config.chart.zoom.enabled)}_canPan(){return this._canZoom()}_panBy(e){const t=this.w,a=this.ctx.toolbar;if(!a)return;const i=Number(t.globals.minX),s=Number(t.globals.maxX);if(!isFinite(i)||!isFinite(s)||i===s)return;const n=.1*(s-i)*e;a.zoomUpdateOptions(i+n,s+n),this._announce(e>0?"Panned right":"Panned left")}_move(e,t){const a=this.w,i=a.config.chart.accessibility.keyboard.navigation.wrapAround;if(0!==e){const t=this.w.globals.tooltip;if(t&&t.tConfig&&t.tConfig.shared){const e=this.dataPointIndex;if(t.tooltipUtil&&t.tooltipUtil.isXoverlap(e)&&t.tooltipUtil.isInitialSeriesSameLen())return}const s=this._getSeriesCount();let n=this.seriesIndex+e,o=0;for(;o<s&&(n<0&&(n=i?s-1:0),n>=s&&(n=i?0:s-1),a.globals.collapsedSeriesIndices.includes(n));)n+=e,o++;this.seriesIndex=n;const r=this._getDataPointCount(n);this.dataPointIndex>=r&&(this.dataPointIndex=r-1)}if(0!==t){const e=this._getDataPointCount(this.seriesIndex);let a=this.dataPointIndex+t;a<0&&(a=i?e-1:0),a>=e&&(a=i?0:e-1),this.dataPointIndex=a,t>0?this._skipNullForward():this._skipNullBackward(),this._isDataPointVisible(this.seriesIndex,this.dataPointIndex)||this._snapToVisibleRangeInDirection(t)}this._showCurrentPoint()}_skipNullForward(){const e=this.w,t=this.seriesIndex,a=this._getDataPointCount(t);let i=this.dataPointIndex,s=0;if(Array.isArray(e.seriesData.series[t])){for(;s<a&&null===e.seriesData.series[t][i];)i=(i+1)%a,s++;this.dataPointIndex=i}}_skipNullBackward(){const e=this.w,t=this.seriesIndex,a=this._getDataPointCount(t);let i=this.dataPointIndex,s=0;if(Array.isArray(e.seriesData.series[t])){for(;s<a&&null===e.seriesData.series[t][i];)i=(i-1+a)%a,s++;this.dataPointIndex=i}}_showCurrentPoint(){const{seriesIndex:e,dataPointIndex:t}=this,a=this.w,i=a.globals.tooltip;i&&i.ttItems&&(a.interact.capturedSeriesIndex=e,a.interact.capturedDataPointIndex=t,this._applyFocusClass(e,t),this._showTooltip(e,t,i))}_hideFocus(){const e=this.w,t=e.globals.tooltip;if(this._removeFocusClass(),this._leaveHoveredBar(),!t)return;t.marker&&t.marker.resetPointsSize(),this._enlargedScatterMarker=null;const a=t.getElTooltip();a&&(a.classList.remove("apexcharts-active"),e.config.chart.accessibility.enabled&&e.config.chart.accessibility.announcements.enabled&&a.setAttribute("aria-hidden","true")),e.dom.baseEl.classList.remove("apexcharts-tooltip-active");const i=t.getElXCrosshairs();i&&i.classList.remove("apexcharts-active")}_showTooltip(e,t,a){const i=this.w,s=i.config.chart.type,n=a.getElTooltip();if(!n)return;const o=a.getCachedDimensions();a.tooltipRect={x:0,y:0,ttWidth:o.ttWidth||0,ttHeight:o.ttHeight||0},this._setSyntheticEvent(e,t,a),i.dom.baseEl.classList.add("apexcharts-tooltip-active"),n.classList.add("apexcharts-active"),i.config.chart.accessibility.enabled&&i.config.chart.accessibility.announcements.enabled&&n.removeAttribute("aria-hidden"),"pie"===s||"donut"===s||"polarArea"===s?this._showTooltipNonAxis(e,t,a,n):"radialBar"===s?this._showTooltipRadialBar(e,t,a,n):"heatmap"===s||"treemap"===s?this._showTooltipHeatTree(e,t,a,n,s):"bar"===s||"candlestick"===s||"boxPlot"===s||"rangeBar"===s?this._showTooltipBar(e,t,a):this._showTooltipAxisLine(e,t,a)}_setSyntheticEvent(e,t,a){const i=this.w,s=i.config.chart.type;let n=0,o=0;const r=this._getFocusableElement(e,t);if(r){const e=r.getBoundingClientRect();n=e.left+e.width/2,o=e.top+e.height/2}else if(i.globals.pointsArray&&i.globals.pointsArray[e]&&i.globals.pointsArray[e][t]){const s=i.globals.pointsArray[e][t],r=a.getElGrid&&a.getElGrid();if(r){const e=r.getBoundingClientRect();n=e.left+(s[0]||0),o=e.top+(s[1]||0)}}else{const e=i.dom.Paper&&i.dom.Paper.node;if(e){const t=e.getBoundingClientRect();n=t.left+t.width/2,o=t.top+t.height/2}}if(("line"===s||"area"===s||"rangeArea"===s||"scatter"===s||"bubble"===s||"radar"===s)&&i.globals.pointsArray&&i.globals.pointsArray[e]&&i.globals.pointsArray[e][t]){const s=i.globals.pointsArray[e][t],r=a.getElGrid&&a.getElGrid();if(r){const e=r.getBoundingClientRect();n=e.left+(s[0]||0),o=e.top+(s[1]||0)}}a.e={type:"mousemove",clientX:n,clientY:o}}_showTooltipBar(e,t,a){var i,s,n,o;const r=this.w,l=a.tConfig.shared&&(a.tooltipUtil.isXoverlap(t)||r.globals.isBarHorizontal)&&a.tooltipUtil.isInitialSeriesSameLen(),c=null==(o=null==(n=null==(s=null==(i=r.rangeData.seriesRange)?void 0:i[e])?void 0:s[t])?void 0:n.y)?void 0:o[0];a.tooltipLabels.drawSeriesTexts($De(FDe(FDe({ttItems:a.ttItems,i:e,j:t},void 0!==(null==c?void 0:c.y1)&&{y1:c.y1}),void 0!==(null==c?void 0:c.y2)&&{y2:c.y2}),{shared:l}));const d=`.apexcharts-series[data\\:realIndex='${e}']`,u=r.dom.Paper.findOne(`${d} path[j='${t}'], ${d} circle[j='${t}'], ${d} rect[j='${t}']`);if(u){this._leaveHoveredBar();new fMe(this.w,this.ctx).pathMouseEnter(u,null),this._hoveredBarEl=u}if(r.globals.isBarHorizontal){const e=u&&u.node;if(e){const t=r.dom.elWrap.getBoundingClientRect(),i=e.getBoundingClientRect(),s=i.left-t.left,n=i.top-t.top,o=i.height,l=i.width,c=a.tooltipRect.ttWidth||0,d=n+o/2-(a.tooltipRect.ttHeight||0)/2;let u=s+l;s<(a.xyRatios&&null!=a.xyRatios.baseLineInvertedY?a.xyRatios.baseLineInvertedY:t.width/2)&&(u=s-c);const p=a.getElTooltip();p&&(p.style.left=u+"px",p.style.top=d+"px")}}else a.tooltipPosition.moveStickyTooltipOverBars(t,e)}_showTooltipAxisLine(e,t,a){const i=this.w,s=i.config.chart.type,n=a.tConfig.shared&&a.tooltipUtil.isXoverlap(t)&&a.tooltipUtil.isInitialSeriesSameLen();a.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:e,j:t,shared:n});const o="scatter"===s||"bubble"===s,r=i.globals.markers.largestSize>0;o?this._showScatterBubblePoint(e,t,a):r?n?a.marker.enlargePoints(t):a.tooltipPosition.moveDynamicPointOnHover(t,e):n?a.tooltipPosition.moveDynamicPointsOnHover(t):a.tooltipPosition.moveDynamicPointOnHover(t,e)}_showScatterBubblePoint(e,t,a){const i=this.w.dom.baseEl;this._enlargedScatterMarker&&(a.marker.oldPointSize(this._enlargedScatterMarker),this._enlargedScatterMarker=null);const s=i.querySelector(`.apexcharts-series[data\\:realIndex='${e}']`);if(!s)return;const n=s.querySelector(`.apexcharts-marker[rel='${t}']`);n&&(a.marker.enlargeCurrentPoint(t,n),this._enlargedScatterMarker=n)}_showTooltipNonAxis(e,t,a,i){var s,n;const o=this.w;a.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:t,shared:!1});const r=i.getBoundingClientRect(),l=r.width||a.tooltipRect.ttWidth||0,c=r.height||a.tooltipRect.ttHeight||0,d=o.dom.baseEl.querySelector(`.apexcharts-pie-area[j='${t}']`);if(d){const e=parseFloat(null!=(s=d.getAttribute("data:cx"))?s:""),t=parseFloat(null!=(n=d.getAttribute("data:cy"))?n:"");if(!isNaN(e)&&!isNaN(t)){const a=o.dom.Paper.node.getBoundingClientRect(),s=o.dom.elWrap.getBoundingClientRect(),n=a.left-s.left,r=a.top-s.top;i.style.left=n+e-l/2+"px",i.style.top=r+t-c-10+"px"}}}_showTooltipRadialBar(e,t,a,i){var s;const n=this.w;a.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:e,shared:!1});const{ttWidth:o=0,ttHeight:r=0}=a.getCachedDimensions(),l=n.dom.baseEl.querySelector(`.apexcharts-radialbar-series[data\\:realIndex='${e}'] path`);if(l){const t=parseFloat(null!=(s=l.getAttribute("data:angle"))?s:"")||0,a=(n.config.plotOptions.radialBar.startAngle||0)+t/2,c=n.layout.gridWidth/2,d=n.layout.gridHeight/2,u=n.globals.radialSize||Math.min(n.layout.gridWidth,n.layout.gridHeight)/2,p=n.seriesData.series.length,h=u/Math.max(p,1),g=u-e*h,m=(g+(g-h))/2,f=qDe.polarToCartesian(c,d,m,a),_=f.x+(n.layout.translateX||0),b=f.y+(n.layout.translateY||0);i.style.left=_-o/2+"px",i.style.top=b-r-10+"px"}}_showTooltipHeatTree(e,t,a,i,s){var n,o;const r=this.w;a.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:e,j:t,shared:!1});const l=i.getBoundingClientRect(),c=l.width||a.tooltipRect.ttWidth||0,d=l.height||a.tooltipRect.ttHeight||0,u="heatmap"===s?"apexcharts-heatmap-rect":"apexcharts-treemap-rect",p=r.dom.baseEl.querySelector(`.${u}[i='${e}'][j='${t}']`);if(p){const e=r.dom.elWrap.getBoundingClientRect(),t=p.getBoundingClientRect(),s=t.left-e.left,l=t.top-e.top,u=t.width,h=t.height,g=parseFloat(null!=(n=p.getAttribute("cx"))?n:""),m=parseFloat(null!=(o=p.getAttribute("width"))?o:"");a.tooltipPosition.moveXCrosshairs(g+m/2);let f=s+u+c/2;const _=l+h/2-d/2;s+u>r.layout.gridWidth/2&&(f=s-c/2),i.style.left=f+"px",i.style.top=_+"px"}}_applyFocusClass(e,t){this._removeFocusClass();const a=this._getFocusableElement(e,t);if(a){a.classList.add("apexcharts-keyboard-focused"),a.setAttribute("role","img");const i=this._buildPointLabel(e,t);i&&a.setAttribute("aria-label",i),this._focusedEl=a}}_removeFocusClass(){this._focusedEl&&(this._focusedEl.classList.remove("apexcharts-keyboard-focused"),this._focusedEl.removeAttribute("role"),this._focusedEl.removeAttribute("aria-label"),this._focusedEl=null)}_buildPointLabel(e,t){var a,i,s,n,o,r,l,c;const d=this.w,u=d.config.chart.type,p=d.seriesData.seriesNames||[],h=d.seriesData.series||[];if("pie"===u||"donut"===u||"polarArea"===u){const e=null!=(i=(null==(a=d.labelData)?void 0:a.labels)&&d.labelData.labels[t])?i:"",s=Array.isArray(h)?h[t]:"";return e?`${e}: ${s}`:`${s}`}if("radialBar"===u){return`${p[e]||`Series ${e+1}`}: ${Array.isArray(h)?h[e]:""}`}const g=p[e]||`Series ${e+1}`,m=(Array.isArray(h[e])?h[e]:[])[t];let f=null==m?"":String(m);const _=null==(n=null==(s=d.formatters)?void 0:s.yLabelFormatters)?void 0:n[e];if("function"==typeof _)try{f=_(m,{seriesIndex:e,dataPointIndex:t,w:d})}catch(PI){}let b="";const v=null==(o=d.labelData)?void 0:o.categoryLabels,y=null==(l=null==(r=d.seriesData)?void 0:r.seriesX)?void 0:l[e];if(Array.isArray(v)&&null!=v[t])b=String(v[t]);else if(Array.isArray(y)&&null!=y[t]){const a=null==(c=d.formatters)?void 0:c.xLabelFormatter;if("function"==typeof a)try{b=String(a(y[t],{seriesIndex:e,dataPointIndex:t,w:d}))}catch(PI){b=String(y[t])}else b=String(y[t])}return b?`${g}: ${f}, ${b}`:`${g}: ${f}`}_leaveHoveredBar(){if(this._hoveredBarEl){new fMe(this.w,this.ctx).pathMouseLeave(this._hoveredBarEl,null),this._hoveredBarEl=null}}_getFocusableElement(e,t){const a=this.w,i=a.config.chart.type,s=a.dom.baseEl;if("pie"===i||"donut"===i||"polarArea"===i)return s.querySelector(`.apexcharts-pie-area[j='${t}']`);if("heatmap"===i)return s.querySelector(`.apexcharts-heatmap-rect[i='${e}'][j='${t}']`);if("treemap"===i)return s.querySelector(`.apexcharts-treemap-rect[i='${e}'][j='${t}']`);if("radialBar"===i)return s.querySelector(`.apexcharts-radialbar-series[data\\:realIndex='${e}'] path`);if("bar"===i||"candlestick"===i||"boxPlot"===i||"rangeBar"===i)return s.querySelector(`.apexcharts-series[data\\:realIndex='${e}'] path[j='${t}']`);return s.querySelector(`.apexcharts-series[data\\:realIndex='${e}'] .apexcharts-marker[rel='${t}']`)||null}_fireClick(){const e=this.w.globals.tooltip;if(!e)return;e.markerClick({type:"mouseup",clientX:0,clientY:0},this.seriesIndex,this.dataPointIndex)}_isNavEnabled(){const e=this.w.config.chart.accessibility;return e.enabled&&e.keyboard.enabled&&e.keyboard.navigation.enabled}_getSeriesCount(){const e=this.w,t=e.config.chart.type;return"pie"===t||"donut"===t||"polarArea"===t?1:e.seriesData.series.length}_getDataPointCount(e){const t=this.w,a=t.config.chart.type;if("pie"===a||"donut"===a||"polarArea"===a)return t.seriesData.series.length;const i=t.seriesData.series;return i[e]&&Array.isArray(i[e])?i[e].length:0}_clampCursor(){const e=this._getSeriesCount();this.seriesIndex>=e&&(this.seriesIndex=e-1),this.seriesIndex<0&&(this.seriesIndex=0);const t=this._getDataPointCount(this.seriesIndex);this.dataPointIndex>=t&&(this.dataPointIndex=t-1),this.dataPointIndex<0&&(this.dataPointIndex=0)}_snapToVisibleRange(){const e=this.w,t=e.globals,a=this.seriesIndex;if(!e.interact.zoomed)return;const i=e.seriesData.seriesX&&e.seriesData.seriesX[a];if(!i||!i.length)return;const s=t.minX,n=t.maxX;if(void 0===s||void 0===n)return;const o=i[this.dataPointIndex];if(o>=s&&o<=n)return;const r=i.length;for(let l=0;l<r;l++)if(i[l]>=s&&i[l]<=n)return void(this.dataPointIndex=l)}_snapToVisibleRangeInDirection(e){const t=this.w,a=t.globals,i=this.seriesIndex,s=t.seriesData.seriesX&&t.seriesData.seriesX[i];if(!s||!s.length)return;const n=a.minX,o=a.maxX;if(void 0===n||void 0===o)return;const r=s.length;if(e>=0){for(let l=0;l<r;l++)if(s[l]>=n&&s[l]<=o)return void(this.dataPointIndex=l)}else for(let l=r-1;l>=0;l--)if(s[l]>=n&&s[l]<=o)return void(this.dataPointIndex=l)}_isDataPointVisible(e,t){const a=this.w,i=a.globals;if(!a.interact.zoomed)return!0;const s=a.seriesData.seriesX&&a.seriesData.seriesX[e];if(!s)return!0;const n=s[t];return void 0===n||n>=i.minX&&n<=i.maxX}_announce(e){const t=this.w;if(!t.config.chart.accessibility.announcements.enabled)return;const a=t.dom.baseEl;if(!a)return;const i=a.querySelector(".apexcharts-sr-status");i&&(i.textContent="",setTimeout(()=>{i.textContent=e},0))}}});class ePe{constructor(e){this.w=e.w,this.barCtx=e,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}handleBarDataLabels(e){const{x:t,y:a,y1:i,y2:s,i:n,j:o,realIndex:r,columnGroupIndex:l,series:c,barHeight:d,barWidth:u,barXPosition:p,barYPosition:h,visibleSeries:g}=e,m=this.w,f=new fMe(this.barCtx.w),_=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[r]:this.barCtx.strokeWidth;let b,v;m.axisFlags.isXNumeric&&!m.globals.isBarHorizontal?(b=t+u*(g+1),v=a+d*(g+1)-_):(b=t+u*g,v=a+d*g);let y=null,S=null,x=t,w=a,E={};const C=m.config.dataLabels,k=this.barCtx.barOptions.dataLabels,T=this.barCtx.barOptions.dataLabels.total;void 0!==h&&this.barCtx.isRangeBar&&(v=h,w=h),void 0!==p&&this.barCtx.isVerticalGroupedRangeBar&&(b=p,x=p);const A=C.offsetX,R=C.offsetY;let O={width:0,height:0};if(m.config.dataLabels.enabled){const e=m.seriesData.series[n][o];O=f.getTextRects(m.config.dataLabels.formatter?m.config.dataLabels.formatter(e,$De(FDe({},m),{seriesIndex:n,dataPointIndex:o,w:m})):m.formatters.yLabelFormatters[0](e),parseFloat(C.style.fontSize).toString())}const N={x:t,y:a,i:n,j:o,realIndex:r,columnGroupIndex:l,bcx:b,bcy:v,barHeight:d,barWidth:u,textRects:O,strokeWidth:_,dataLabelsX:x,dataLabelsY:w,dataLabelsConfig:C,barDataLabelsConfig:k,barTotalDataLabelsConfig:T,offX:A,offY:R};return E=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(N):this.calculateColumnsDataLabelsPosition(N),y=this.drawCalculatedDataLabels({x:E.dataLabelsX,y:E.dataLabelsY,val:this.barCtx.isRangeBar?[i,s]:"100%"===m.config.chart.stackType?c[r][o]:m.seriesData.series[r][o],i:r,j:o,barWidth:u,barHeight:d,textRects:O,dataLabelsConfig:C}),m.config.chart.stacked&&T.enabled&&(S=this.drawTotalDataLabels({x:E.totalDataLabelsX,y:E.totalDataLabelsY,barWidth:u,barHeight:d,realIndex:r,textAnchor:E.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:r,j:o}),dataLabelsConfig:C,barTotalDataLabelsConfig:T})),{dataLabelsPos:E,dataLabels:y,totalDataLabels:S}}getStackedTotalDataLabel({realIndex:e,j:t}){const a=this.w;let i=this.barCtx.stackedSeriesTotals[t];return this.totalFormatter&&(i=this.totalFormatter(i,$De(FDe({},a),{seriesIndex:e,dataPointIndex:t,w:a}))),i}calculateColumnsDataLabelsPosition(e){const t=this.w;let a,i,{i:s,j:n,realIndex:o,y:r,bcx:l,barWidth:c,barHeight:d,textRects:u,dataLabelsX:p,dataLabelsY:h,dataLabelsConfig:g,barDataLabelsConfig:m,barTotalDataLabelsConfig:f,strokeWidth:_,offX:b,offY:v}=e;const y=l;d=Math.abs(d);const S="vertical"===t.config.plotOptions.bar.dataLabels.orientation,{zeroEncounters:x}=this.barCtx.barHelpers.getZeroValueEncounters({i:s,j:n});l-=_/2;const w=t.layout.gridWidth/t.globals.dataPoints;if(this.barCtx.isVerticalGroupedRangeBar?p+=c/2:(p=t.axisFlags.isXNumeric?l-c/2+b:l-w+c/2+b,!t.config.chart.stacked&&x>0&&t.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(p-=c*x)),S){const e=2;p=p+u.height/2-_/2-e}const E=t.seriesData.series[s][n]<0;let C=r;switch(this.barCtx.isReversed&&(C=r+(E?d:-d)),m.position){case"center":h=S?E?C-d/2+v:C+d/2-v:E?C-d/2+u.height/2+v:C+d/2+u.height/2-v;break;case"bottom":h=S?E?C-d+v:C+d-v:E?C-d+u.height+_+v:C+d-u.height/2+_-v;break;case"top":h=S?E?C+v:C-v:E?C-u.height/2-v:C+u.height+v}let k=C;if(t.labelData.seriesGroups.forEach(e=>{var t;null==(t=this.barCtx[e.join(",")])||t.prevY.forEach(e=>{k=E?Math.max(e[n],k):Math.min(e[n],k)})}),this.barCtx.lastActiveBarSerieIndex===o&&f.enabled){const e=18,s=new fMe(this.barCtx.w).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:n}),g.fontSize);a=E?k-s.height/2-v-f.offsetY+e:k+s.height+v+f.offsetY-e;const r=w;i=y+(t.axisFlags.isXNumeric?-c*t.globals.barGroups.length/2:t.globals.barGroups.length*c/2-(t.globals.barGroups.length-1)*c-r)+f.offsetX}return t.config.chart.stacked||(h<0?h=0+_:h+u.height/3>t.layout.gridHeight&&(h=t.layout.gridHeight-_)),{bcx:l,bcy:r,dataLabelsX:p,dataLabelsY:h,totalDataLabelsX:i,totalDataLabelsY:a,totalDataLabelsAnchor:"middle"}}calculateBarsDataLabelsPosition(e){const t=this.w;let{x:a,i:i,j:s,realIndex:n,bcy:o,barHeight:r,barWidth:l,textRects:c,dataLabelsX:d,strokeWidth:u,dataLabelsConfig:p,barDataLabelsConfig:h,barTotalDataLabelsConfig:g,offX:m,offY:f}=e;const _=t.layout.gridHeight/t.globals.dataPoints,{zeroEncounters:b}=this.barCtx.barHelpers.getZeroValueEncounters({i:i,j:s});l=Math.abs(l);let v,y,S=o-(this.barCtx.isRangeBar?0:_)+r/2+c.height/2+f-3;!t.config.chart.stacked&&b>0&&t.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(S-=r*b);let x="start";const w=t.seriesData.series[i][s]<0;let E=a;switch(this.barCtx.isReversed&&(E=a+(w?-l:l),x=w?"start":"end"),h.position){case"center":d=w?E+l/2-m:Math.max(c.width/2,E-l/2)+m;break;case"bottom":d=w?E+l-u-m:E-l+u+m;break;case"top":d=w?E-u-m:E-u+m}let C=E;if(t.labelData.seriesGroups.forEach(e=>{var t;null==(t=this.barCtx[e.join(",")])||t.prevX.forEach(e=>{C=w?Math.min(e[s],C):Math.max(e[s],C)})}),this.barCtx.lastActiveBarSerieIndex===n&&g.enabled){const e=new fMe(this.barCtx.w).getTextRects(this.getStackedTotalDataLabel({realIndex:n,j:s}),p.fontSize);w?(v=C-u-m-g.offsetX,x="end"):v=C+m+g.offsetX+(this.barCtx.isReversed?-(l+u):u),y=S-c.height/2+e.height/2+g.offsetY+u,t.globals.barGroups.length>1&&(y-=t.globals.barGroups.length/2*(r/2))}return t.config.chart.stacked||("start"===p.textAnchor?d-c.width<0?d=w?c.width+u:u:d+c.width>t.layout.gridWidth&&(d=w?t.layout.gridWidth-u:t.layout.gridWidth-c.width-u):"middle"===p.textAnchor?d-c.width/2<0?d=c.width/2+u:d+c.width/2>t.layout.gridWidth&&(d=t.layout.gridWidth-c.width/2-u):"end"===p.textAnchor&&(d<1?d=c.width+u:d+1>t.layout.gridWidth&&(d=t.layout.gridWidth-c.width-u))),{bcx:a,bcy:o,dataLabelsX:d,dataLabelsY:S,totalDataLabelsX:v,totalDataLabelsY:y,totalDataLabelsAnchor:x}}drawCalculatedDataLabels({x:e,y:t,val:a,i:i,j:s,textRects:n,barHeight:o,barWidth:r,dataLabelsConfig:l}){const c=this.w;let d="rotate(0)";"vertical"===c.config.plotOptions.bar.dataLabels.orientation&&(d=`rotate(-90, ${e}, ${t})`);const u=new EMe(this.barCtx.w,this.barCtx.ctx),p=new fMe(this.barCtx.w),h=l.formatter;let g=null;const m=c.globals.collapsedSeriesIndices.indexOf(i)>-1;if(l.enabled&&!m){g=p.group({class:"apexcharts-data-labels",transform:d});let m="";void 0!==a&&(m=h(a,$De(FDe({},c),{seriesIndex:i,dataPointIndex:s,w:c}))),!a&&c.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(m="");const f=c.seriesData.series[i][s]<0,_=c.config.plotOptions.bar.dataLabels.position;if("vertical"===c.config.plotOptions.bar.dataLabels.orientation&&("top"===_&&(l.textAnchor=f?"end":"start"),"center"===_&&(l.textAnchor="middle"),"bottom"===_&&(l.textAnchor=f?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels){r<p.getTextRects(m,parseFloat(l.style.fontSize).toString()).width&&(m="")}c.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?n.width/1.6>Math.abs(r)&&(m=""):n.height/1.6>Math.abs(o)&&(m=""));const b=FDe({},l);this.barCtx.isHorizontal&&a<0&&("start"===l.textAnchor?b.textAnchor="end":"end"===l.textAnchor&&(b.textAnchor="start")),u.plotDataLabelsText({x:e,y:t,text:m,i:i,j:s,parent:g,dataLabelsConfig:b,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return g}drawTotalDataLabels({x:e,y:t,val:a,realIndex:i,textAnchor:s,barTotalDataLabelsConfig:n}){const o=new fMe(this.barCtx.w);let r;return n.enabled&&void 0!==e&&void 0!==t&&this.barCtx.lastActiveBarSerieIndex===i&&(r=o.drawText({x:e,y:t,foreColor:n.style.color,text:a,textAnchor:s,fontFamily:n.style.fontFamily,fontSize:n.style.fontSize,fontWeight:n.style.fontWeight})),r}}let tPe=class{constructor(e){this.w=e.w,this.barCtx=e}initVariables(e){const t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(let a=0;a<e.length;a++)if(e[a].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[a].length),t.axisFlags.isXNumeric)for(let i=0;i<e[a].length;i++)t.seriesData.seriesX[a][i]>t.globals.minX&&t.seriesData.seriesX[a][i]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;this.arrBorderRadius=this.createBorderRadiusArr(t.seriesData.series),qDe.isSafari()&&(this.arrBorderRadius=this.arrBorderRadius.map(e=>e.map(e=>"none"))),0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}initialPositions(e){const t=this.w;let a,i,s,n,o,r,l,c,d=t.globals.dataPoints;this.barCtx.isRangeBar&&(d=t.labelData.labels.length);let u=this.barCtx.seriesLen;if(t.config.plotOptions.bar.rangeBarGroupRows&&(u=1),this.barCtx.isHorizontal)s=t.layout.gridHeight/d,o=s/u,t.axisFlags.isXNumeric&&(s=t.layout.gridHeight/this.barCtx.totalItems,o=s/this.barCtx.seriesLen),o=o*parseInt(this.barCtx.barOptions.barHeight,10)/100,-1===String(this.barCtx.barOptions.barHeight).indexOf("%")&&(o=parseInt(this.barCtx.barOptions.barHeight,10)),c=this.barCtx.baseLineInvertedY+t.globals.padHorizontal+(this.barCtx.isReversed?t.layout.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(c=t.layout.gridWidth/2),i=(s-o*this.barCtx.seriesLen)/2;else{if(n=t.layout.gridWidth/this.barCtx.visibleItems,t.config.xaxis.convertedCatToNumeric&&(n=t.layout.gridWidth/t.globals.dataPoints),r=n/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100,t.axisFlags.isXNumeric){const e=this.barCtx.xRatio;t.globals.minXDiff&&.5!==t.globals.minXDiff&&t.globals.minXDiff/e>0&&(n=t.globals.minXDiff/e),r=n/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100,r<1&&(r=1)}if(-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(r=parseInt(this.barCtx.barOptions.columnWidth,10)),l=t.layout.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?t.layout.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),t.axisFlags.isXNumeric){a=this.barCtx.getBarXForNumericXAxis({x:a,j:0,realIndex:e,barWidth:r}).x}else a=t.globals.padHorizontal+qDe.noExponents(n-r*this.barCtx.seriesLen)/2}return t.globals.barHeight=o,t.globals.barWidth=r,{x:a,y:i,yDivision:s,xDivision:n,barHeight:o,barWidth:r,zeroH:l,zeroW:c}}initializeStackedPrevVars(e){e.w.labelData.seriesGroups.forEach(t=>{e[t]||(e[t]={}),e[t].prevY=[],e[t].prevX=[],e[t].prevYF=[],e[t].prevXF=[],e[t].prevYVal=[],e[t].prevXVal=[]})}initializeStackedXYVars(e){e.w.labelData.seriesGroups.forEach(t=>{e[t]||(e[t]={}),e[t].xArrj=[],e[t].xArrjF=[],e[t].xArrjVal=[],e[t].yArrj=[],e[t].yArrjF=[],e[t].yArrjVal=[]})}getPathFillColor(e,t,a,i){var s,n,o,r;const l=this.w,c=new SMe(this.barCtx.w);let d=null;const u=this.barCtx.barOptions.distributed?a:t;let p=!1;if(this.barCtx.barOptions.colors.ranges.length>0){this.barCtx.barOptions.colors.ranges.map(i=>{e[t][a]>=i.from&&e[t][a]<=i.to&&(d=i.color,p=!0)})}return{color:c.fillPath({seriesNumber:this.barCtx.barOptions.distributed?u:i,dataPointIndex:a,color:d,value:e[t][a],fillConfig:null==(s=l.config.series[t].data[a])?void 0:s.fill,fillType:(null==(o=null==(n=l.config.series[t].data[a])?void 0:n.fill)?void 0:o.type)?null==(r=l.config.series[t].data[a])?void 0:r.fill.type:Array.isArray(l.config.fill.type)?l.config.fill.type[i]:l.config.fill.type}),useRangeColor:p}}getStrokeWidth(e,t,a){let i=0;const s=this.w;return void 0===this.barCtx.series[e][t]||null===this.barCtx.series[e][t]||"bar"===s.config.chart.type&&!this.barCtx.series[e][t]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,s.config.stroke.show&&(this.barCtx.isNullValue||(i=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[a]:this.barCtx.strokeWidth)),i}createBorderRadiusArr(e){var t;const a=this.w,i=!this.w.config.chart.stacked||a.config.plotOptions.bar.borderRadius<=0,s=e.length,n=0|(null==(t=e[0])?void 0:t.length),o=Array.from({length:s},()=>Array(n).fill(i?"top":"none"));if(i)return o;const r=this.w.config.chart.type;for(let l=0;l<n;l++){const t=[],a=[];let i=0;for(let n=0;n<s;n++){const s=e[n][l];s>0?(t.push(n),i++):s<0&&(a.push(n),i++)}if(t.length>0&&0===a.length)if(1===t.length)o[t[0]][l]="bar"===r&&1===n?"top":"both";else{const e=t[0],a=t[t.length-1];for(const i of t)o[i][l]=i===e?"bar"===r&&1===n?"top":"bottom":i===a?"top":"none"}else if(a.length>0&&0===t.length)if(1===a.length)o[a[0]][l]="both";else{const e=Math.max(...a),t=Math.min(...a);for(const i of a)o[i][l]=i===e?"bottom":i===t?"top":"none"}else if(t.length>0&&a.length>0){const e=t[t.length-1];for(const a of t)o[a][l]=a===e?"top":"none";const i=Math.max(...a);for(const t of a)o[t][l]=t===i?"bottom":"none"}else if(1===i){o[t[0]||a[0]][l]="both"}}return o}barBackground({j:e,i:t,x1:a,x2:i,y1:s,y2:n,elSeries:o}){const r=this.w,l=new fMe(this.barCtx.w),c=new $Me(this.barCtx.w).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&c===t){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length);const t=this.barCtx.barOptions.colors.backgroundBarColors[e],c=l.drawRect(void 0!==a?a:0,void 0!==s?s:0,void 0!==i?i:r.layout.gridWidth,void 0!==n?n:r.layout.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,t,this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(c),c.node.classList.add("apexcharts-backgroundBar")}}getColumnPaths({barWidth:e,barXPosition:t,y1:a,y2:i,strokeWidth:s,isReversed:n,series:o,seriesGroup:r,realIndex:l,i:c,j:d,w:u}){var p;const h=new fMe(this.barCtx.w);(s=Array.isArray(s)?s[l]:s)||(s=0);let g=e,m=t;(null==(p=u.config.series[l].data[d])?void 0:p.columnWidthOffset)&&(m=t-u.config.series[l].data[d].columnWidthOffset/2,g=e+u.config.series[l].data[d].columnWidthOffset);const f=s/2,_=m+f,b=m+g-f,v=(o[c][d]>=0?1:-1)*(n?-1:1);a+=.001-f*v,i+=.001+f*v;const y=h.line(b,a),S="around"===u.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[l][d]?" Z":" z";let x,w=h.move(_,a)+h.line(_,i)+h.line(b,i)+y+S;if("none"!==this.arrBorderRadius[l][d]&&(w=h.roundPathCorners(w,u.config.plotOptions.bar.borderRadius)),x=u.globals.previousPaths.length>0?this.barCtx.getPreviousPath(l,d,w):h.move(_,a)+h.line(_,a)+y+y+y+y+y+h.line(_,a)+S,u.config.chart.stacked){let e=this.barCtx;e=this.barCtx[r],e.yArrj.push(i-f*v),e.yArrjF.push(Math.abs(a-i+s*v)),e.yArrjVal.push(this.barCtx.series[c][d])}return{pathTo:w,pathFrom:x}}getFunnelTrapezoidPaths({barYPosition:e,barHeight:t,series:a,i:i,j:s,realIndex:n,strokeWidth:o,w:r}){const l=new fMe(this.barCtx.w),c=r.layout.gridWidth/2,d=e=>Math.abs(e/this.barCtx.invertedYRatio)/2,u=d(a[i][s]),p=s===a[i].length-1,h="taper"===r.config.plotOptions.funnel.lastShape?"taper":"flat";let g;g=p?"taper"===h?0:u:d(a[i][s+1]);const m=o/2,f=e+m,_=e+t-m,b=c-u,v=c+u,y=c-g,S=c+g,x=l.move(b,f)+l.line(v,f)+l.line(S,_)+l.line(y,_)+" Z";let w;return w=r.globals.previousPaths.length>0?this.barCtx.getPreviousPath(n,s,x):l.move(c,f)+l.line(c,f)+l.line(c,_)+l.line(c,_)+" Z",{pathTo:x,pathFrom:w,x:v,x1:b,barXPosition:c}}getBarpaths({barYPosition:e,barHeight:t,x1:a,x2:i,strokeWidth:s,isReversed:n,series:o,seriesGroup:r,realIndex:l,i:c,j:d,w:u}){var p;const h=new fMe(this.barCtx.w);(s=Array.isArray(s)?s[l]:s)||(s=0);let g=e,m=t;(null==(p=u.config.series[l].data[d])?void 0:p.barHeightOffset)&&(g=e-u.config.series[l].data[d].barHeightOffset/2,m=t+u.config.series[l].data[d].barHeightOffset);const f=s/2,_=g+f,b=g+m-f,v=(o[c][d]>=0?1:-1)*(n?-1:1);a+=.001+f*v,i+=.001-f*v;const y=this.barCtx.isFunnel,S=y?(a+i)/2:a,x=h.line(a,b),w="around"===u.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[l][d]?" Z":" z";let E,C=h.move(a,_)+h.line(i,_)+h.line(i,b)+x+w;if("none"!==this.arrBorderRadius[l][d]&&(C=h.roundPathCorners(C,u.config.plotOptions.bar.borderRadius)),u.globals.previousPaths.length>0)E=this.barCtx.getPreviousPath(l,d,C);else{const e=y?h.line(S,b):x;E=h.move(S,_)+h.line(S,_)+e+e+e+e+e+h.line(S,_)+w}if(u.config.chart.stacked){let e=this.barCtx;e=this.barCtx[r],e.xArrj.push(i+f*v),e.xArrjF.push(Math.abs(a-i-s*v)),e.xArrjVal.push(this.barCtx.series[c][d])}return{pathTo:C,pathFrom:E}}checkZeroSeries({series:e}){const t=this.w;for(let a=0;a<e.length;a++){let i=0;for(let s=0;s<e[t.globals.maxValsInArrayIndex].length;s++)i+=e[a][s];0===i&&this.barCtx.zeroSerieses.push(a)}}getXForValue(e,t,a=!0){let i=a?t:null;return null!=e&&(i=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),i}getYForValue(e,t,a,i=!0){let s=i?t:null;return null!=e&&(s=t-e/this.barCtx.yRatio[a]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[a]:0)),s}getGoalValues(e,t,a,i,s,n){const o=this.w,r=[],l=(i,s)=>{r.push({[e]:"x"===e?this.getXForValue(i,t,!1):this.getYForValue(i,a,n,!1),attrs:s})};if(o.seriesData.seriesGoals[i]&&o.seriesData.seriesGoals[i][s]&&Array.isArray(o.seriesData.seriesGoals[i][s])&&o.seriesData.seriesGoals[i][s].forEach(e=>{l(e.value,e)}),this.barCtx.barOptions.isDumbbell&&o.rangeData.seriesRange.length){const t=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:o.globals.colors,a={strokeHeight:"x"===e?0:o.globals.markers.size[i],strokeWidth:"x"===e?o.globals.markers.size[i]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(t[i])?t[i][0]:t[i]};l(o.rangeData.seriesRangeStart[i][s],a),l(o.rangeData.seriesRangeEnd[i][s],$De(FDe({},a),{strokeColor:Array.isArray(t[i])?t[i][1]:t[i]}))}return r}drawGoalLine({barXPosition:e,barYPosition:t,goalX:a,goalY:i,barWidth:s,barHeight:n}){const o=new fMe(this.barCtx.w),r=o.group({className:"apexcharts-bar-goals-groups"});r.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:r.node}),r.attr("clip-path",`url(#gridRectMarkerMask${this.barCtx.w.globals.cuid})`);let l=null;return this.barCtx.isHorizontal?Array.isArray(a)&&a.forEach(e=>{if(e.x>=-1&&e.x<=o.w.layout.gridWidth+1){const a=void 0!==e.attrs.strokeHeight?e.attrs.strokeHeight:n/2,i=t+a+n/2;l=o.drawLine(e.x,i-2*a,e.x,i,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeWidth?e.attrs.strokeWidth:2,e.attrs.strokeLineCap),r.add(l)}}):Array.isArray(i)&&i.forEach(t=>{if(t.y>=-1&&t.y<=o.w.layout.gridHeight+1){const a=void 0!==t.attrs.strokeWidth?t.attrs.strokeWidth:s/2,i=e+a+s/2;l=o.drawLine(i-2*a,t.y,i,t.y,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeHeight?t.attrs.strokeHeight:2,t.attrs.strokeLineCap),r.add(l)}}),r}drawBarShadow({prevPaths:e,currPaths:t,color:a,realIndex:i,j:s}){const n=this.w,{x:o,x1:r,barYPosition:l}=e,{x:c,x1:d,barYPosition:u}=t,p=l+t.barHeight,h=new fMe(this.barCtx.w),g=new qDe,m=h.move(r,p)+h.line(o,p)+h.line(c,u)+h.line(d,u)+h.line(r,p)+("around"===n.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[i][s]?" Z":" z");return h.drawPath({d:m,fill:g.shadeColor(.5,qDe.rgb2hex(a)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadow apexcharts-decoration-element"})}getZeroValueEncounters({i:e,j:t}){var a;const i=this.w;let s=0,n=0;return(i.config.plotOptions.bar.horizontal?i.seriesData.series.map((e,t)=>t):(null==(a=i.globals.columnSeries)?void 0:a.i.map(e=>e))||[]).forEach(a=>{const o=i.globals.seriesPercent[a][t];o&&s++,a<e&&0===o&&n++}),{nonZeroColumns:s,zeroEncounters:n}}getGroupIndex(e){const t=this.w,a=t.labelData.seriesGroups.findIndex(a=>a.indexOf(t.seriesData.seriesNames[e])>-1),i=this.barCtx.columnGroupIndices;let s=i.indexOf(a);return s<0&&(i.push(a),s=i.length-1),{groupIndex:a,columnGroupIndex:s}}};class aPe{constructor(e,t,a){this.ctx=t,this.w=e,this.barOptions=e.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=e.config.stroke.width,this.isNullValue=!1,this.isRangeBar=e.rangeData.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!e.globals.isBarHorizontal&&e.rangeData.seriesRange.length&&e.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=a,this.xRatio=0,this.yRatio=[],this.invertedXRatio=0,this.invertedYRatio=0,this.baseLineY=[],this.baseLineInvertedY=0,null!==this.xyRatios&&(this.xRatio=a.xRatio,this.yRatio=a.yRatio,this.invertedXRatio=a.invertedXRatio,this.invertedYRatio=a.invertedYRatio,this.baseLineY=a.baseLineY,this.baseLineInvertedY=a.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[],this.series=[],this.elSeries=null,this.visibleI=0,this.isReversed=!1;const i=new $Me(this.w);this.lastActiveBarSerieIndex=i.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[];const s=i.getBarSeriesIndices(),n=new rMe(this.w);this.stackedSeriesTotals=n.getStackedSeriesTotals(this.w.config.series.map((e,t)=>-1===s.indexOf(t)?t:-1).filter(e=>-1!==e)),this.barHelpers=new tPe(this)}draw(e,t){var a,i;const s=this.w,n=new fMe(this.w),o=new rMe(this.w);e=o.getLogSeries(e),this.series=e,this.yRatio=o.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);const r=n.group({class:"apexcharts-bar-series apexcharts-plot-series"});s.config.dataLabels.enabled&&(this.totalItems,this.barOptions.dataLabels.maxItems);for(let l=0,c=0;l<e.length;l++,c++){let o,d;const u=[],p=[],h=s.globals.comboCharts?t[l]:l,{columnGroupIndex:g}=this.barHelpers.getGroupIndex(h),m=n.group({class:"apexcharts-series",rel:l+1,seriesName:qDe.escapeString(s.seriesData.seriesNames[h]),"data:realIndex":h});$Me.addCollapsedClassToSeries(this.w,m,h),e[l].length>0&&(this.visibleI=this.visibleI+1),this.yRatio.length>1&&(this.yaxisIndex=s.globals.seriesYAxisReverseMap[h],this.translationsIndex=h);const f=this.translationsIndex;this.isReversed=s.config.yaxis[this.yaxisIndex]&&s.config.yaxis[this.yaxisIndex].reversed;const _=this.barHelpers.initialPositions(h),{y:b,yDivision:v,zeroW:y,x:S,xDivision:x,zeroH:w}=_;let E=_.barHeight,C=_.barWidth;d=b,o=S,this.isHorizontal||p.push(o+(null!=C?C:0)/2);const k=n.group({class:"apexcharts-datalabels","data:realIndex":h});s.globals.delayedElements.push({el:k.node}),k.node.classList.add("apexcharts-element-hidden");const T=n.group({class:"apexcharts-bar-goals-markers"}),A=n.group({class:"apexcharts-bar-shadows"});s.globals.delayedElements.push({el:A.node}),A.node.classList.add("apexcharts-element-hidden");for(let t=0;t<e[l].length;t++){const n=this.barHelpers.getStrokeWidth(l,t,h);let r=null;const _={indexes:{i:l,j:t,realIndex:h,translationsIndex:f,bc:c},x:o,y:d,strokeWidth:n,elSeries:m};this.isHorizontal?(r=this.drawBarPaths($De(FDe({},_),{barHeight:E,zeroW:y,yDivision:v})),C=this.series[l][t]/this.invertedYRatio):(r=this.drawColumnPaths($De(FDe({},_),{xDivision:x,barWidth:C,zeroH:w})),E=this.series[l][t]/this.yRatio[f]);const b=this.barHelpers.getPathFillColor(e,l,t,h);if(this.isFunnel&&this.barOptions.isFunnel3d&&"trapezoid"!==(null==(a=s.config.plotOptions.funnel)?void 0:a.shape)&&this.pathArr.length&&t>0){const e=this.barHelpers.drawBarShadow({color:"string"==typeof b.color&&-1===(null==(i=b.color)?void 0:i.indexOf("url"))?b.color:qDe.hexToRgba(s.globals.colors[l]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:r,realIndex:h,j:t});if(A.add(e),s.config.chart.dropShadow.enabled){new mMe(this.w).dropShadow(e,s.config.chart.dropShadow,h)}}this.pathArr.push(r);const S=this.barHelpers.drawGoalLine({barXPosition:r.barXPosition,barYPosition:r.barYPosition,goalX:r.goalX,goalY:r.goalY,barHeight:E,barWidth:C});S&&T.add(S),d=r.y,o=r.x,t>0&&p.push(o+(null!=C?C:0)/2),u.push(d),this.renderSeries($De(FDe({realIndex:h,pathFill:b.color},b.useRangeColor?{lineFill:b.color}:{}),{j:t,i:l,columnGroupIndex:g,pathFrom:r.pathFrom,pathTo:r.pathTo,strokeWidth:n,elSeries:m,x:o,y:d,series:e,barHeight:Math.abs(r.barHeight?r.barHeight:E),barWidth:Math.abs(r.barWidth?r.barWidth:C),elDataLabelsWrap:k,elGoalsMarkers:T,elBarShadows:A,visibleSeries:this.visibleI,type:"bar"}))}s.globals.seriesXvalues[h]=p,s.globals.seriesYvalues[h]=u,r.add(m)}return r}renderSeries({realIndex:e,pathFill:t,lineFill:a,j:i,i:s,columnGroupIndex:n,pathFrom:o,pathTo:r,strokeWidth:l,elSeries:c,x:d,y:u,y1:p,y2:h,series:g,barHeight:m,barWidth:f,barXPosition:_,barYPosition:b,elDataLabelsWrap:v,elGoalsMarkers:y,elBarShadows:S,visibleSeries:x,type:w,classes:E}){const C=this.w,k=new fMe(this.w,this.ctx);let T=!1;if(c._bindingsDelegated||(c._bindingsDelegated=!0,k.setupEventDelegation(c,`.apexcharts-${w}-area`)),!a){let t=function(e){const t=C.config.stroke.colors;let a;return Array.isArray(t)&&t.length>0&&(a=t[e],a||(a=""),"function"==typeof a)?a({value:C.seriesData.series[e][i],dataPointIndex:i,w:C}):a};const s="function"==typeof C.globals.stroke.colors[e]?t(e):C.globals.stroke.colors[e];a=this.barOptions.distributed?C.globals.stroke.colors[i]:s}const A=new ePe(this).handleBarDataLabels({x:d,y:u,y1:p,y2:h,i:s,j:i,series:g,realIndex:e,columnGroupIndex:n,barHeight:m,barWidth:f,barXPosition:_,barYPosition:b,visibleSeries:x});C.globals.isBarHorizontal||(A.dataLabelsPos.dataLabelsX+Math.max(f,C.globals.barPadForNumericAxis)<0||A.dataLabelsPos.dataLabelsX-Math.max(f,C.globals.barPadForNumericAxis)>C.layout.gridWidth)&&(T=!0),C.config.series[s].data[i]&&C.config.series[s].data[i].strokeColor&&(a=C.config.series[s].data[i].strokeColor),this.isNullValue&&(t="none");const R=C.config.chart.animations,O=R.animateGradually;let N=0;if(O&&!1!==O.enabled){const e=C.globals.dataPoints||1,t=O.delay||0,a=Math.min(t,.5*R.speed/Math.max(1,e));let n=hMe({style:"sequential",index:i,baseDelay:a});C.config.chart.stacked&&(n+=s*a*.5);N=n/(t||1)}if(!T){const n=k.renderPaths({i:s,j:i,realIndex:e,pathFrom:o,pathTo:r,stroke:a,strokeWidth:l,strokeLineCap:C.config.stroke.lineCap,fill:t,animationDelay:N,initialSpeed:C.config.chart.animations.speed,dataChangeSpeed:C.config.chart.animations.dynamicAnimation.speed,className:`apexcharts-${w}-area ${E}`,chartType:w,bindEventsOnPaths:!1});n.attr("clip-path",`url(#gridRectBarMask${C.globals.cuid})`);const d=C.config.forecastDataPoints;d.count>0&&i>=C.globals.dataPoints-d.count&&(n.node.setAttribute("stroke-dasharray",d.dashArray),n.node.setAttribute("stroke-width",d.strokeWidth),n.node.setAttribute("fill-opacity",d.fillOpacity)),void 0!==p&&void 0!==h&&(n.attr("data-range-y1",p),n.attr("data-range-y2",h));new mMe(this.w).setSelectionFilter(n,e,i),c.add(n),n.attr({cy:A.dataLabelsPos.bcy,cx:A.dataLabelsPos.bcx,j:i,val:C.seriesData.series[s][i],barHeight:m,barWidth:f}),null!==A.dataLabels&&v.add(A.dataLabels),A.totalDataLabels&&v.add(A.totalDataLabels),c.add(v),y&&c.add(y),S&&c.add(S)}return c}drawBarPaths({indexes:e,barHeight:t,strokeWidth:a,zeroW:i,x:s,y:n,yDivision:o,elSeries:r}){const l=this.w,c=e.i,d=e.j;let u;if(l.axisFlags.isXNumeric)u=(n=(l.seriesData.seriesX[c][d]-l.globals.minX)/this.invertedXRatio-t)+t*this.visibleI;else if(l.config.plotOptions.bar.hideZeroBarsWhenGrouped){const{nonZeroColumns:e,zeroEncounters:a}=this.barHelpers.getZeroValueEncounters({i:c,j:d});e>0&&(t=this.seriesLen*t/e),u=n+t*this.visibleI,u-=t*a}else u=n+t*this.visibleI;const p=this.isFunnel&&"trapezoid"===l.config.plotOptions.funnel.shape;if(this.isFunnel&&!p){const e=null!=i?i:0;i=e-(this.barHelpers.getXForValue(this.series[c][d],e)-e)/2}s=this.barHelpers.getXForValue(this.series[c][d],null!=i?i:0);const h=p?this.barHelpers.getFunnelTrapezoidPaths({barYPosition:u,barHeight:t,series:this.series,i:c,j:d,realIndex:e.realIndex,strokeWidth:a,w:l}):this.barHelpers.getBarpaths({barYPosition:u,barHeight:t,x1:i,x2:s,strokeWidth:a,isReversed:this.isReversed,series:this.series,realIndex:e.realIndex,i:c,j:d,w:l});return p&&(i=h.x1,s=h.x),l.axisFlags.isXNumeric||(n+=o),this.barHelpers.barBackground({j:d,i:c,y1:u-t*this.visibleI,y2:t*this.seriesLen,elSeries:r}),{pathTo:h.pathTo,pathFrom:h.pathFrom,x1:i,x:s,y:n,goalX:this.barHelpers.getGoalValues("x",i,null,c,d,0),barYPosition:u,barHeight:t}}drawColumnPaths({indexes:e,x:t,y:a,xDivision:i,barWidth:s,zeroH:n,strokeWidth:o,elSeries:r}){const l=this.w,c=e.realIndex,d=e.translationsIndex,u=e.i,p=e.j,h=e.bc;let g;if(l.axisFlags.isXNumeric){const e=this.getBarXForNumericXAxis({x:t,j:p,realIndex:c,barWidth:s});t=e.x,g=e.barXPosition}else if(l.config.plotOptions.bar.hideZeroBarsWhenGrouped){const{nonZeroColumns:e,zeroEncounters:a}=this.barHelpers.getZeroValueEncounters({i:u,j:p});e>0&&(s=this.seriesLen*s/e),g=t+s*this.visibleI,g-=s*a}else g=t+s*this.visibleI;a=this.barHelpers.getYForValue(this.series[u][p],n,d);const m=this.barHelpers.getColumnPaths({barXPosition:g,barWidth:s,y1:n,y2:a,strokeWidth:o,isReversed:this.isReversed,series:this.series,realIndex:c,i:u,j:p,w:l});return l.axisFlags.isXNumeric||(t+=i),this.barHelpers.barBackground({bc:h,j:p,i:u,x1:g-o/2-s*this.visibleI,x2:s*this.seriesLen+o/2,elSeries:r}),{pathTo:m.pathTo,pathFrom:m.pathFrom,x:t,y:a,goalY:this.barHelpers.getGoalValues("y",null,n,u,p,d),barXPosition:g,barWidth:s}}getBarXForNumericXAxis({x:e,barWidth:t,realIndex:a,j:i}){const s=this.w;let n=a;return s.seriesData.seriesX[a].length||(n=s.globals.maxValsInArrayIndex),qDe.isNumber(s.seriesData.seriesX[n][i])&&(e=(s.seriesData.seriesX[n][i]-s.globals.minX)/this.xRatio-t*this.seriesLen/2),{barXPosition:e+t*this.visibleI,x:e}}getPreviousPath(e,t,a){const i=this.w;let s=null;for(let n=0;n<i.globals.previousPaths.length;n++){const a=i.globals.previousPaths[n];a.paths&&a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(String(e),10)&&void 0!==a.paths[t]&&(s=a.paths[t].d)}return s&&aPe.pathCommandCount(s)===aPe.pathCommandCount(a)?s:a}static pathCommandCount(e){if(!e)return 0;const t=e.match(/[A-Za-z]/g);return t?t.length:0}}class iPe extends aPe{draw(e,t,a){const i=this.w,s=new fMe(this.w),n=i.globals.comboCharts?t:i.config.chart.type,o=new SMe(this.w);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=i.config.plotOptions.bar.horizontal,this.isOHLC=this.candlestickOptions&&"ohlc"===this.candlestickOptions.type,this.coreUtils=new rMe(this.w),e=this.coreUtils.getLogSeries(e),this.series=e,this.yRatio=this.coreUtils.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);const r=s.group({class:`apexcharts-${n}-series apexcharts-plot-series`});for(let l=0;l<e.length;l++){let t,n;this.isBoxPlot="boxPlot"===i.config.chart.type||"boxPlot"===i.config.series[l].type;const c=[],d=[],u=i.globals.comboCharts?a[l]:l,{columnGroupIndex:p}=this.barHelpers.getGroupIndex(u),h=s.group({class:"apexcharts-series",seriesName:qDe.escapeString(i.seriesData.seriesNames[u]),rel:l+1,"data:realIndex":u});$Me.addCollapsedClassToSeries(this.w,h,u),e[l].length>0&&(this.visibleI=this.visibleI+1);let g=0;this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[u][0],g=u);const m=this.barHelpers.initialPositions(u),{y:f,barHeight:_,yDivision:b,zeroW:v,x:y,barWidth:S,xDivision:x,zeroH:w}=m;n=f,t=y,d.push(t+(null!=S?S:0)/2);const E=s.group({class:"apexcharts-datalabels","data:realIndex":u}),C=s.group({class:"apexcharts-bar-goals-markers"});for(let a=0;a<i.globals.dataPoints;a++){const s=this.barHelpers.getStrokeWidth(l,a,u);let r=null;const m={indexes:{i:l,j:a,realIndex:u,translationsIndex:g},x:t,y:n,strokeWidth:s,elSeries:h};r=this.isHorizontal?this.drawHorizontalBoxPaths($De(FDe({},m),{yDivision:b,barHeight:_,zeroW:v})):this.drawVerticalBoxPaths($De(FDe({},m),{xDivision:x,barWidth:S,zeroH:w})),n=r.y,t=r.x;const f=this.barHelpers.drawGoalLine({barXPosition:r.barXPosition,barYPosition:r.barYPosition,goalX:r.goalX,goalY:r.goalY,barHeight:_,barWidth:S});f&&C.add(f),a>0&&d.push(t+(null!=S?S:0)/2),c.push(n),r.pathTo.forEach((c,d)=>{const g=!this.isBoxPlot&&this.candlestickOptions.wick.useFillColor?r.color[d]:i.globals.stroke.colors[l],m=o.fillPath({seriesNumber:u,dataPointIndex:a,color:r.color[d],value:e[l][a]});this.renderSeries({realIndex:u,pathFill:m,lineFill:g,j:a,i:l,pathFrom:r.pathFrom,pathTo:c,strokeWidth:s,elSeries:h,x:t,y:n,series:e,columnGroupIndex:p,barHeight:_,barWidth:S,elDataLabelsWrap:E,elGoalsMarkers:C,visibleSeries:this.visibleI,type:i.config.chart.type})})}i.globals.seriesXvalues[u]=d,i.globals.seriesYvalues[u]=c,r.add(h)}return r}drawVerticalBoxPaths({indexes:e,x:t,xDivision:a,barWidth:i,zeroH:s,strokeWidth:n}){var o,r;const l=this.w,c=new fMe(this.w),d=e.i,u=e.j,{colors:p}=l.config.plotOptions.candlestick,{colors:h}=this.boxOptions,g=e.realIndex,m=e=>Array.isArray(e)?e[g]:e,f=m(p.upward),_=m(p.downward),b=this.yRatio[e.translationsIndex],v=this.getOHLCValue(g,u);let y=s,S=s,x=v.o<v.c?[f]:[_];this.isBoxPlot&&(x=[m(h.lower),m(h.upper)]);let w=Math.min(v.o,v.c),E=Math.max(v.o,v.c),C=v.m;l.axisFlags.isXNumeric&&(t=(l.seriesData.seriesX[g][u]-l.globals.minX)/this.xRatio-i/2);const k=t+i*this.visibleI;let T,A;if(void 0===(null==(o=this.series[d])?void 0:o[u])||null===(null==(r=this.series[d])?void 0:r[u])?(w=s,E=s):(w=s-w/b,E=s-E/b,y=s-v.h/b,S=s-v.l/b,C=s-v.m/b),this.isOHLC){const e=k+i/2,t=s-v.o/b,a=s-v.c/b;T=[c.move(e,y)+c.line(e,S)+c.move(e,t)+c.line(k,t)+c.move(e,a)+c.line(k+i,a)]}else T=this.isBoxPlot?[c.move(k,w)+c.line(k+i/2,w)+c.line(k+i/2,y)+c.line(k+i/4,y)+c.line(k+i-i/4,y)+c.line(k+i/2,y)+c.line(k+i/2,w)+c.line(k+i,w)+c.line(k+i,C)+c.line(k,C)+c.line(k,w+n/2),c.move(k,C)+c.line(k+i,C)+c.line(k+i,E)+c.line(k+i/2,E)+c.line(k+i/2,S)+c.line(k+i-i/4,S)+c.line(k+i/4,S)+c.line(k+i/2,S)+c.line(k+i/2,E)+c.line(k,E)+c.line(k,C)+"z"]:[c.move(k,E)+c.line(k+i/2,E)+c.line(k+i/2,y)+c.line(k+i/2,E)+c.line(k+i,E)+c.line(k+i,w)+c.line(k+i/2,w)+c.line(k+i/2,S)+c.line(k+i/2,w)+c.line(k,w)+c.line(k,E-n/2)];return A=l.globals.previousPaths.length>0?this.getPreviousPath(g,u,T[0]):c.move(k+i/2,w)+c.move(k,w),l.axisFlags.isXNumeric||(t+=a),{pathTo:T,pathFrom:A,x:t,y:E,goalY:this.barHelpers.getGoalValues("y",null,s,d,u,e.translationsIndex),barXPosition:k,color:x}}drawHorizontalBoxPaths({indexes:e,y:t,yDivision:a,barHeight:i,zeroW:s,strokeWidth:n}){var o,r;const l=this.w,c=new fMe(this.w),d=e.i,u=e.j,p=e.realIndex,{colors:h}=l.config.plotOptions.candlestick,{colors:g}=this.boxOptions,m=e=>Array.isArray(e)?e[p]:e,f=this.invertedYRatio,_=this.getOHLCValue(p,u);let b=_.o<_.c?[m(h.upward)]:[m(h.downward)];this.isBoxPlot&&(b=[m(g.lower),m(g.upper)]);let v=s,y=s,S=Math.min(_.o,_.c),x=Math.max(_.o,_.c),w=_.m;l.axisFlags.isXNumeric&&(t=(l.seriesData.seriesX[p][u]-l.globals.minX)/this.invertedXRatio-i/2);const E=t+i*this.visibleI;void 0===(null==(o=this.series[d])?void 0:o[u])||null===(null==(r=this.series[d])?void 0:r[u])?(S=s,x=s):(S=s+S/f,x=s+x/f,v=s+_.h/f,y=s+_.l/f,w=s+_.m/f);const C=[c.move(S,E)+c.line(S,E+i/2)+c.line(v,E+i/2)+c.line(v,E+i/2-i/4)+c.line(v,E+i/2+i/4)+c.line(v,E+i/2)+c.line(S,E+i/2)+c.line(S,E+i)+c.line(w,E+i)+c.line(w,E)+c.line(S+n/2,E),c.move(w,E)+c.line(w,E+i)+c.line(x,E+i)+c.line(x,E+i/2)+c.line(y,E+i/2)+c.line(y,E+i-i/4)+c.line(y,E+i/4)+c.line(y,E+i/2)+c.line(x,E+i/2)+c.line(x,E)+c.line(w,E)+"z"];let k;return k=l.globals.previousPaths.length>0?this.getPreviousPath(p,u,C[0]):c.move(S,E+i/2)+c.move(S,E),l.axisFlags.isXNumeric||(t+=a),{pathTo:C,pathFrom:k,x:x,y:t,goalX:this.barHelpers.getGoalValues("x",s,null,d,u,0),barYPosition:E,color:b}}getOHLCValue(e,t){const a=this.w,i=this.coreUtils,s=a=>a[e]&&null!=a[e][t]?i.getLogValAtSeriesIndex(a[e][t],e):0,n=s(a.candleData.seriesCandleH),o=s(a.candleData.seriesCandleO),r=s(a.candleData.seriesCandleM),l=s(a.candleData.seriesCandleC),c=s(a.candleData.seriesCandleL);return{o:this.isBoxPlot?n:o,h:this.isBoxPlot?o:n,m:r,l:this.isBoxPlot?l:c,c:this.isBoxPlot?c:l}}}class sPe{constructor(e,t){this.ctx=t,this.w=e}checkColorRange(){const e=this.w;let t=!1;const a=e.config.plotOptions[e.config.chart.type];return a.colorScale.ranges.length>0&&a.colorScale.ranges.map(e=>{e.from<=0&&(t=!0)}),t}getShadeColor(e,t,a,i){const s=this.w;let n=1;const o=s.config.plotOptions[e].shadeIntensity,r=this.determineColor(e,t,a);s.globals.hasNegs||i?n=s.config.plotOptions[e].reverseNegativeShade?r.percent<0?r.percent/100*(1.25*o):(1-r.percent/100)*(1.25*o):r.percent<=0?1-(1+r.percent/100)*o:(1-r.percent/100)*o:(n=1-r.percent/100,"treemap"===e&&(n=(1-r.percent/100)*(1.25*o)));let l=r.color;const c=new qDe;if(s.config.plotOptions[e].enableShades)if("dark"===this.w.config.theme.mode){const e=c.shadeColor(-1*n,r.color);l=qDe.hexToRgba(qDe.isColorHex(e)?e:qDe.rgb2hex(e),s.config.fill.opacity)}else{const e=c.shadeColor(n,r.color);l=qDe.hexToRgba(qDe.isColorHex(e)?e:qDe.rgb2hex(e),s.config.fill.opacity)}return{color:l,colorProps:r}}determineColor(e,t,a){const i=this.w,s=i.seriesData.series[t][a],n=i.config.plotOptions[e];let o=n.colorScale.inverse?a:t;n.distributed&&"treemap"===i.config.chart.type&&(o=a);let r=i.globals.colors[o],l=null,c=Math.min(...i.seriesData.series[t]),d=Math.max(...i.seriesData.series[t]);n.distributed||"heatmap"!==e||(c=i.globals.minY,d=i.globals.maxY),void 0!==n.colorScale.min&&(c=n.colorScale.min<i.globals.minY?n.colorScale.min:i.globals.minY,d=n.colorScale.max>i.globals.maxY?n.colorScale.max:i.globals.maxY);const u=Math.abs(d)+Math.abs(c);let p=100*s/(0===u?u-1e-6:u);if(n.colorScale.ranges.length>0){n.colorScale.ranges.map(e=>{if(s>=e.from&&s<=e.to){r=e.color,l=e.foreColor?e.foreColor:null,c=e.from,d=e.to;const t=Math.abs(d)+Math.abs(c);p=100*s/(0===t?t-1e-6:t)}})}return{color:r,foreColor:l,percent:p}}calculateDataLabels({text:e,x:t,y:a,i:i,j:s,colorProps:n,fontSize:o}){const r=this.w.config.dataLabels,l=new fMe(this.w),c=new EMe(this.w,this.ctx);let d=null;if(r.enabled){d=l.group({class:"apexcharts-data-labels"});const u=r.offsetX,p=r.offsetY,h=t+u,g=a+parseFloat(r.style.fontSize)/3+p;c.plotDataLabelsText({x:h,y:g,text:e,i:i,j:s,color:n.foreColor,parent:d,fontSize:o,dataLabelsConfig:r})}return d}}class nPe{constructor(e){this.w=e.w,this.lineCtx=e}sameValueSeriesFix(e,t){const a=this.w;if("gradient"===a.config.fill.type||"gradient"===a.config.fill.type[e]){if(new rMe(this.lineCtx.w).seriesHaveSameValues(e)){const a=t[e].slice();a[a.length-1]=a[a.length-1]+1e-6,t[e]=a}}return t}calculatePoints({series:e,realIndex:t,x:a,y:i,i:s,j:n,prevY:o}){const r=this.w,l=[],c=[];let d=this.lineCtx.categoryAxisCorrection+r.config.markers.offsetX;return r.axisFlags.isXNumeric&&(d=(r.seriesData.seriesX[t][0]-r.globals.minX)/this.lineCtx.xRatio+r.config.markers.offsetX),0===n&&(l.push(d),c.push(qDe.isNumber(e[s][0])?o+r.config.markers.offsetY:null)),l.push(a+r.config.markers.offsetX),c.push(qDe.isNumber(e[s][n+1])?i+r.config.markers.offsetY:null),{x:l,y:c}}checkPreviousPaths({pathFromLine:e,pathFromArea:t,realIndex:a}){const i=this.w;for(let s=0;s<i.globals.previousPaths.length;s++){const n=i.globals.previousPaths[s];("line"===n.type||"area"===n.type)&&n.paths.length>0&&parseInt(n.realIndex,10)===parseInt(a,10)&&("line"===n.type?(this.lineCtx.appendPathFrom=!1,e=i.globals.previousPaths[s].paths[0].d):"area"===n.type&&(this.lineCtx.appendPathFrom=!1,t=i.globals.previousPaths[s].paths[0].d,i.config.stroke.show&&i.globals.previousPaths[s].paths[1]&&(e=i.globals.previousPaths[s].paths[1].d)))}return{pathFromLine:e,pathFromArea:t}}determineFirstPrevY({i:e,realIndex:t,series:a,prevY:i,lineYPosition:s,translationsIndex:n}){var o,r,l;const c=this.w,d=c.config.chart.stacked&&!c.globals.comboCharts||c.config.chart.stacked&&c.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null==(o=this.w.config.series[t])?void 0:o.type)||"column"===(null==(r=this.w.config.series[t])?void 0:r.type));if(void 0!==(null==(l=a[e])?void 0:l[0]))i=(s=d&&e>0?this.lineCtx.prevSeriesY[e-1][0]:this.lineCtx.zeroY)-a[e][0]/this.lineCtx.yRatio[n]+2*(this.lineCtx.isReversed?a[e][0]/this.lineCtx.yRatio[n]:0);else if(d&&e>0&&void 0===a[e][0])for(let u=e-1;u>=0;u--)if(null!==a[u][0]&&void 0!==a[u][0]){i=s=this.lineCtx.prevSeriesY[u][0];break}return{prevY:i,lineYPosition:s}}}const oPe=e=>{const t=function(e){const t=[];let a=e[0],i=e[1],s=t[0]=lPe(a,i),n=1;for(let o=e.length-1;n<o;n++)a=i,i=e[n+1],t[n]=.5*(s+(s=lPe(a,i)));return t[n]=s,t}(e),a=e.length-1,i=[];let s,n,o,r;for(let l=0;l<a;l++)o=lPe(e[l],e[l+1]),Math.abs(o)<1e-6?t[l]=t[l+1]=0:(s=t[l]/o,n=t[l+1]/o,r=s*s+n*n,r>9&&(r=3*o/Math.sqrt(r),t[l]=r*s,t[l+1]=r*n));for(let l=0;l<=a;l++)r=(e[Math.min(a,l+1)][0]-e[Math.max(0,l-1)][0])/(6*(1+t[l]*t[l])),i.push([r||0,t[l]*r||0]);return i},rPe={points(e){const t=oPe(e),a=e[1],i=e[0],s=[],n=t[1],o=t[0];s.push(i,[i[0]+o[0],i[1]+o[1],a[0]-n[0],a[1]-n[1],a[0],a[1]]);for(let r=2,l=t.length;r<l;r++){const a=e[r],i=t[r];s.push([a[0]-i[0],a[1]-i[1],a[0],a[1]])}return s},slice(e,t,a){const i=e.slice(t,a);if(t){if(a-t>1&&i[1].length<6){const e=i[0].length;i[1]=[2*i[0][e-2]-i[0][e-4],2*i[0][e-1]-i[0][e-3]].concat(i[1])}i[0]=i[0].slice(-2)}return i}};function lPe(e,t){return(t[1]-e[1])/(t[0]-e[0])}class cPe{constructor(e,t,a,i){this.ctx=t,this.w=e,this.xyRatios=a,this.xRatio=0,this.yRatio=[],this.zRatio=0,this.baseLineY=[],this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||i,this.scatter=new wMe(this.w,this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new nPe(this),this.markers=new xMe(this.w,this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0,this.xDivision=0,this.zeroY=0,this.areaBottomY=0,this.strokeWidth=0,this.isReversed=!1,this.appendPathFrom=!1,this.elSeries=null,this.elPointsMain=null,this.elDataLabelsWrap=null}draw(e,t,a,i){var s;const n=this.w,o=new fMe(this.w),r=n.globals.comboCharts?t:n.config.chart.type,l=o.group({class:`apexcharts-${r}-series apexcharts-plot-series`}),c=new rMe(this.w);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=c.getLogSeries(e),this.yRatio=c.getLogYRatios(this.yRatio),this.prevSeriesY=[];const d=[];for(let u=0;u<e.length;u++){e=this.lineHelpers.sameValueSeriesFix(u,e);const t=n.globals.comboCharts?a[u]:u,s=this.yRatio.length>1?t:0;this._initSerieVariables(e,u,t);const o=[],l=[],c=[];let p=n.globals.padHorizontal+this.categoryAxisCorrection;const h=1,g=[],m=[];$Me.addCollapsedClassToSeries(this.w,this.elSeries,t),n.axisFlags.isXNumeric&&n.seriesData.seriesX.length>0&&(p=(n.seriesData.seriesX[t][0]-n.globals.minX)/this.xRatio),c.push(p);const f=p;let _;const b=f;let v=this.zeroY,y=this.zeroY;const S=0;v=this.lineHelpers.determineFirstPrevY({i:u,realIndex:t,series:e,prevY:v,lineYPosition:S,translationsIndex:s}).prevY,"monotoneCubic"===n.config.stroke.curve&&null===e[u][0]?o.push(null):o.push(v);const x=v;let w;"rangeArea"===r&&(w=this.lineHelpers.determineFirstPrevY({i:u,realIndex:t,series:i,prevY:y,lineYPosition:S,translationsIndex:s}),y=w.prevY,_=y,l.push(null!==o[0]?y:null));const E=this._calculatePathsFrom({type:r,series:e,i:u,realIndex:t,translationsIndex:s,prevX:b,prevY:v,prevY2:y}),C=[o[0]],k=[l[0]],T={type:r,series:e,realIndex:t,translationsIndex:s,i:u,x:p,y:h,pX:f,pY:x,pathsFrom:E,linePaths:g,areaPaths:m,seriesIndex:a,lineYPosition:S,xArrj:c,yArrj:o,y2Arrj:l,seriesRangeEnd:i},A=this._iterateOverDataPoints($De(FDe({},T),{iterations:"rangeArea"===r?e[u].length-1:void 0,isRangeStart:!0}));if("rangeArea"===r){const e=this._calculatePathsFrom({series:i,i:u,realIndex:t,prevX:b,prevY:y}),a=this._iterateOverDataPoints($De(FDe({},T),{series:i,xArrj:[p],yArrj:C,y2Arrj:k,pY:_,areaPaths:A.areaPaths,pathsFrom:e,iterations:i[u].length-1,isRangeStart:!1})),s=A.linePaths.length/2;for(let t=0;t<s;t++)A.linePaths[t]=a.linePaths[t+s]+A.linePaths[t];A.linePaths.splice(s),A.pathFromLine=a.pathFromLine+A.pathFromLine}else A.pathFromArea+="z";this._handlePaths({type:r,realIndex:t,i:u,paths:A}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),d.push(this.elSeries)}if(void 0!==(null==(s=n.config.series[0])?void 0:s.zIndex)&&d.sort((e,t)=>Number(e.node.getAttribute("zIndex"))-Number(t.node.getAttribute("zIndex"))),n.config.chart.stacked)for(let u=d.length-1;u>=0;u--)l.add(d[u]);else for(let u=0;u<d.length;u++)l.add(d[u]);return l}_initSerieVariables(e,t,a){const i=this.w,s=new fMe(this.w);this.xDivision=i.layout.gridWidth/(i.globals.dataPoints-("on"===i.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(i.config.stroke.width)?i.config.stroke.width[a]:i.config.stroke.width;let n=0;this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[a],n=a),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed,this.zeroY=i.layout.gridHeight-this.baseLineY[n]-(this.isReversed?i.layout.gridHeight:0)+(this.isReversed?2*this.baseLineY[n]:0),this.areaBottomY=this.zeroY,(this.zeroY>i.layout.gridHeight||"end"===i.config.plotOptions.area.fillTo)&&(this.areaBottomY=i.layout.gridHeight),this.categoryAxisCorrection=this.xDivision/2;const o=i.config.series[a];if(this.elSeries=s.group({class:"apexcharts-series",zIndex:void 0!==o.zIndex?o.zIndex:a,seriesName:qDe.escapeString(i.seriesData.seriesNames[a])}),this.elPointsMain=s.group({class:"apexcharts-series-markers-wrap","data:realIndex":a}),i.globals.hasNullValues){const e=this.markers.plotChartMarkers({pointsPos:{x:[0],y:[i.layout.gridHeight+i.globals.markers.largestSize]},seriesIndex:t,j:0,pSize:.1,alwaysDrawMarker:!0,isVirtualPoint:!0});null!==e&&this.elPointsMain.add(e)}this.elDataLabelsWrap=s.group({class:"apexcharts-datalabels","data:realIndex":a});const r=e[t].length===i.globals.dataPoints;this.elSeries.attr({"data:longestSeries":r,rel:t+1,"data:realIndex":a}),this.appendPathFrom=!0}_calculatePathsFrom({type:e,series:t,i:a,realIndex:i,translationsIndex:s,prevX:n,prevY:o,prevY2:r}){const l=this.w,c=new fMe(this.w);let d,u,p,h;if(null===t[a][0]){for(let g=0;g<t[a].length;g++)if(null!==t[a][g]){n=this.xDivision*g,o=this.zeroY-t[a][g]/this.yRatio[s],d=c.move(n,o),u=c.move(n,this.areaBottomY);break}}else d=c.move(n,o),"rangeArea"===e&&(d=c.move(n,r)+c.line(n,o)),u=c.move(n,this.areaBottomY)+c.line(n,o);if(p=c.move(0,this.areaBottomY)+c.line(0,this.areaBottomY),h=c.move(0,this.areaBottomY)+c.line(0,this.areaBottomY),l.globals.previousPaths.length>0){const e=this.lineHelpers.checkPreviousPaths({pathFromLine:p,pathFromArea:h,realIndex:i});p=e.pathFromLine,h=e.pathFromArea}return{prevX:n,prevY:o,linePath:d,areaPath:u,pathFromLine:p,pathFromArea:h}}_handlePaths({type:e,realIndex:t,i:a,paths:i}){const s=this.w,n=new fMe(this.w),o=new SMe(this.w);this.prevSeriesY.push(i.yArrj),s.globals.seriesXvalues[t]=i.xArrj,s.globals.seriesYvalues[t]=i.yArrj;const r=s.config.forecastDataPoints;if(r.count>0&&"rangeArea"!==e){const e=s.globals.seriesXvalues[t][s.globals.seriesXvalues[t].length-r.count-1],a=n.drawRect(e,0,s.layout.gridWidth,s.layout.gridHeight,0);s.dom.elForecastMask.appendChild(a.node);const i=n.drawRect(0,0,e,s.layout.gridHeight,0);s.dom.elNonForecastMask.appendChild(i.node)}this.pointsChart||s.globals.delayedElements.push({el:this.elPointsMain.node,index:t});const l={i:a,realIndex:t,animationDelay:a,initialSpeed:s.config.chart.animations.speed,dataChangeSpeed:s.config.chart.animations.dynamicAnimation.speed,className:`apexcharts-${e}`};if("area"===e){const e=o.fillPath({seriesNumber:t});for(let t=0;t<i.areaPaths.length;t++){const a=n.renderPaths($De(FDe({},l),{pathFrom:i.pathFromArea,pathTo:i.areaPaths[t],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:e}));this.elSeries.add(a)}}if(s.config.stroke.show&&!this.pointsChart){let c=null;if("line"===e)c=o.fillPath({seriesNumber:t,i:a});else if("solid"===s.config.stroke.fill.type)c=s.globals.stroke.colors[t];else{const e=s.config.fill;s.config.fill=s.config.stroke.fill,c=o.fillPath({seriesNumber:t,i:a}),s.config.fill=e}for(let a=0;a<i.linePaths.length;a++){let d=c;"rangeArea"===e&&(d=o.fillPath({seriesNumber:t}));const u=$De(FDe({},l),{pathFrom:i.pathFromLine,pathTo:i.linePaths[a],stroke:c,strokeWidth:this.strokeWidth,strokeLineCap:s.config.stroke.lineCap,fill:"rangeArea"===e?d:"none"}),p=n.renderPaths(u);if(this.elSeries.add(p),p.attr("fill-rule","evenodd"),r.count>0&&"rangeArea"!==e){const e=n.renderPaths(u);e.node.setAttribute("stroke-dasharray",r.dashArray),r.strokeWidth&&e.node.setAttribute("stroke-width",r.strokeWidth),this.elSeries.add(e),e.attr("clip-path",`url(#forecastMask${s.globals.cuid})`),p.attr("clip-path",`url(#nonForecastMask${s.globals.cuid})`)}}}}_iterateOverDataPoints({type:e,series:t,iterations:a,realIndex:i,translationsIndex:s,i:n,x:o,y:r,pX:l,pY:c,pathsFrom:d,linePaths:u,areaPaths:p,seriesIndex:h,lineYPosition:g,xArrj:m,yArrj:f,y2Arrj:_,isRangeStart:b,seriesRangeEnd:v}){var y,S;const x=this.w,w=new fMe(this.w),E=this.yRatio;let{prevY:C,linePath:k,areaPath:T,pathFromLine:A,pathFromArea:R}=d;const O=qDe.isNumber(x.globals.minYArr[i])?x.globals.minYArr[i]:x.globals.minY;a||(a=x.globals.dataPoints>1?x.globals.dataPoints-1:x.globals.dataPoints);const N=(e,t)=>t-e/E[s]+2*(this.isReversed?e/E[s]:0);let I=r;const D=x.config.chart.stacked&&!x.globals.comboCharts||x.config.chart.stacked&&x.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null==(y=this.w.config.series[i])?void 0:y.type)||"column"===(null==(S=this.w.config.series[i])?void 0:S.type));let M=x.config.stroke.curve;Array.isArray(M)&&(M=Array.isArray(h)?M[h[n]]:M[n]);let L,P=0;for(let F=0;F<a&&0!==t[n].length;F++){const s=void 0===t[n][F+1]||null===t[n][F+1];if(x.axisFlags.isXNumeric){let e=x.seriesData.seriesX[i][F+1];void 0===x.seriesData.seriesX[i][F+1]&&(e=x.seriesData.seriesX[i][a-1]),o=(e-x.globals.minX)/this.xRatio}else o+=this.xDivision;if(D)if(n>0&&x.globals.collapsedSeries.length<x.config.series.length-1){const e=e=>{for(let t=e;t>0;t--){if(!(x.globals.collapsedSeriesIndices.indexOf((null==h?void 0:h[t])||t)>-1))return t;t--}return 0};g=this.prevSeriesY[e(n-1)][F+1]}else g=this.zeroY;else g=this.zeroY;s?r=N(O,g):(r=N(t[n][F+1],g),"rangeArea"===e&&(I=N(v[n][F+1],g))),m.push(null===t[n][F+1]?null:o),!s||"smooth"!==x.config.stroke.curve&&"monotoneCubic"!==x.config.stroke.curve?(f.push(r),_.push(I)):(f.push(null),_.push(null));const d=this.lineHelpers.calculatePoints({series:t,x:o,y:r,realIndex:i,i:n,j:F,prevY:C}),y=this._createPaths({type:e,series:t,i:n,j:F,x:o,y:r,y2:I,xArrj:m,yArrj:f,y2Arrj:_,pX:l,pY:c,pathState:P,segmentStartX:L,linePath:k,areaPath:T,linePaths:u,areaPaths:p,curve:M,isRangeStart:b});p=y.areaPaths,u=y.linePaths,l=y.pX,c=y.pY,P=y.pathState,L=y.segmentStartX,T=y.areaPath,k=y.linePath,!this.appendPathFrom||x.globals.hasNullValues||"monotoneCubic"===M&&"rangeArea"===e||(A+=w.line(o,this.areaBottomY),R+=w.line(o,this.areaBottomY)),this.handleNullDataPoints(t,d,n,F,i),this._handleMarkersAndLabels({type:e,pointsPos:d,i:n,j:F,realIndex:i,isRangeStart:b})}return{yArrj:f,xArrj:m,pathFromArea:R,areaPaths:p,pathFromLine:A,linePaths:u,linePath:k,areaPath:T}}_handleMarkersAndLabels({type:e,pointsPos:t,isRangeStart:a,i:i,j:s,realIndex:n}){const o=this.w,r=new EMe(this.w,this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,s,{realIndex:n,pointsPos:t,zRatio:this.zRatio,elParent:this.elPointsMain});else{!(!o.globals.dataChanged&&!o.globals.resized)&&o.seriesData.series[i].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");const e=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:n,j:s+1});null!==e&&this.elPointsMain.add(e)}const l=r.drawDataLabel({type:e,isRangeStart:a,pos:t,i:n,j:s+1});null!==l&&this.elDataLabelsWrap.add(l)}_createPaths({type:e,series:t,i:a,j:i,x:s,y:n,xArrj:o,yArrj:r,y2:l,y2Arrj:c,pX:d,pY:u,pathState:p,segmentStartX:h,linePath:g,areaPath:m,linePaths:f,areaPaths:_,curve:b,isRangeStart:v}){const y=new fMe(this.w),S=this.areaBottomY,x="rangeArea"===e,w="rangeArea"===e&&v;switch(b){case"monotoneCubic":{const e=v?r:c,s=(e,t)=>e.map((e,a)=>[e,t[a]]).filter(e=>null!==e[1]),n=e=>{const t=[];let a=0;return e.forEach(e=>{null!==e?a++:a>0&&(t.push(a),a=0)}),a>0&&t.push(a),t},l=(e,t)=>{const a=n(e),i=[];for(let s=0,n=0;s<a.length;n+=a[s++])i[s]=rPe.slice(t,n,n+a[s]);return i};switch(p){case 0:if(null===e[i+1])break;p=1;case 1:if(!(x?o.length===t[a].length:i===t[a].length-2))break;case 2:{const t=v?o:o.slice().reverse(),a=v?e:e.slice().reverse(),i=s(t,a),n=i.length>1?rPe.points(i):i;let r=[];x&&(w?_=i:r=_.reverse());let c=0,d=0;if(l(a,n).forEach(e=>{c++;const t=(e=>{let t="";for(let a=0;a<e.length;a++){const i=e[a],s=i.length;s>4?(t+=`C${i[0]}, ${i[1]}`,t+=`, ${i[2]}, ${i[3]}`,t+=`, ${i[4]}, ${i[5]}`):s>2&&(t+=`S${i[0]}, ${i[1]}`,t+=`, ${i[2]}, ${i[3]}`)}return t})(e),a=d;d+=e.length;const s=d-1;w?g=y.move(i[a][0],i[a][1])+t:x?g=y.move(r[a][0],r[a][1])+y.line(i[a][0],i[a][1])+t+y.line(r[s][0],r[s][1]):(g=y.move(i[a][0],i[a][1])+t,m=g+y.line(i[s][0],S)+y.line(i[a][0],S)+"z",_.push(m)),f.push(g)}),x&&c>1&&!w){const e=f.slice(c).reverse();f.splice(c),e.forEach(e=>f.push(e))}p=0;break}}break}case"smooth":{const e=.35*(s-d);if(null===t[a][i])p=0;else switch(p){case 0:if(h=d,g=w?y.move(d,c[i])+y.line(d,u):y.move(d,u),m=y.move(d,u),null===t[a][i+1]||void 0===t[a][i+1]){f.push(g),_.push(m);break}if(p=1,i<t[a].length-2){const t=y.curve(d+e,u,s-e,n,s,n);g+=t,m+=t;break}case 1:if(null===t[a][i+1])g+=w?y.line(d,l):y.move(d,u),m+=y.line(d,S)+y.line(h,S)+"z",f.push(g),_.push(m),p=-1;else{const o=y.curve(d+e,u,s-e,n,s,n);g+=o,m+=o,i>=t[a].length-2&&(w&&(g+=y.curve(s,n,s,n,s,l)+y.move(s,l)),m+=y.curve(s,n,s,n,s,S)+y.line(h,S)+"z",f.push(g),_.push(m),p=-1)}}d=s,u=n;break}default:{const e=(e,t,a)=>{let i="";switch(e){case"stepline":i=y.line(t,null,"H")+y.line(null,a,"V");break;case"linestep":i=y.line(null,a,"V")+y.line(t,null,"H");break;case"straight":i=y.line(t,a)}return i};if(null===t[a][i])p=0;else switch(p){case 0:if(h=d,g=w?y.move(d,c[i])+y.line(d,u):y.move(d,u),m=y.move(d,u),null===t[a][i+1]||void 0===t[a][i+1]){f.push(g),_.push(m);break}if(p=1,i<t[a].length-2){const t=e(b,s,n);g+=t,m+=t;break}case 1:if(null===t[a][i+1])g+=w?y.line(d,l):y.move(d,u),m+=y.line(d,S)+y.line(h,S)+"z",f.push(g),_.push(m),p=-1;else{const o=e(b,s,n);g+=o,m+=o,i>=t[a].length-2&&(w&&(g+=y.line(s,l)),m+=y.line(s,S)+y.line(h,S)+"z",f.push(g),_.push(m),p=-1)}}d=s,u=n;break}}return{linePaths:f,areaPaths:_,pX:d,pY:u,pathState:p,segmentStartX:h,linePath:g,areaPath:m}}handleNullDataPoints(e,t,a,i,s){const n=this.w;if(null===e[a][i]&&n.config.markers.showNullDataPoints||1===e[a].length){let e=this.strokeWidth-n.config.markers.strokeWidth/2;e>0||(e=0);const a=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:s,j:i+1,pSize:e,alwaysDrawMarker:!0});null!==a&&this.elPointsMain.add(a)}}}class dPe{constructor(e){this.w=e}drawYAxisTexts(e,t,a,i){const s=this.w,n=s.config.yaxis[0],o=s.formatters.yLabelFormatters[0];return new fMe(this.w).drawText({x:e+n.labels.offsetX,y:t+n.labels.offsetY,text:o(i,a),textAnchor:"middle",fontSize:n.labels.style.fontSize,fontFamily:n.labels.style.fontFamily,foreColor:Array.isArray(n.labels.style.colors)?n.labels.style.colors[a]:n.labels.style.colors})}}class uPe{constructor(e,t){this.ctx=t,this.w=e,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!==e.globals.stroke.colors?e.globals.stroke.colors:e.globals.colors,this.defaultSize=Math.min(e.layout.gridWidth,e.layout.gridHeight),this.centerY=this.defaultSize/2,this.centerX=e.layout.gridWidth/2,"radialBar"===e.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(e.config.plotOptions.pie.endAngle-e.config.plotOptions.pie.startAngle),this.initialAngle=e.config.plotOptions.pie.startAngle%this.fullAngle,e.globals.radialSize=this.defaultSize/2.05-e.config.stroke.width-(e.config.chart.sparkline.enabled?0:e.config.chart.dropShadow.blur),this.donutSize=e.globals.radialSize*parseInt(e.config.plotOptions.pie.donut.size,10)/100;const a=e.config.plotOptions.pie.customScale,i=e.layout.gridWidth/2,s=e.layout.gridHeight/2;this.translateX=i-i*a,this.translateY=s-s*a,this.dataLabelsGroup=new fMe(this.w).group({class:"apexcharts-datalabels-group",transform:`translate(${this.translateX}, ${this.translateY}) scale(${a})`}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}draw(e){const t=this.w,a=new fMe(this.w),i=a.group({class:"apexcharts-pie"});if(t.globals.noData)return i;let s=0;for(let l=0;l<e.length;l++)s+=qDe.negToZero(e[l]);const n=[],o=a.group();0===s&&(s=1e-5),e.forEach(e=>{this.maxY=Math.max(this.maxY,e)}),t.config.yaxis[0].max&&(this.maxY=t.config.yaxis[0].max),"back"===t.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(i);for(let l=0;l<e.length;l++){const a=this.fullAngle*qDe.negToZero(e[l])/s;n.push(a),"polarArea"===this.chartType?(n[l]=this.fullAngle/e.length,this.sliceSizes.push(t.globals.radialSize*e[l]/this.maxY)):this.sliceSizes.push(t.globals.radialSize)}if(t.globals.dataChanged){let e,a=0;for(let i=0;i<t.globals.previousPaths.length;i++)a+=qDe.negToZero(t.globals.previousPaths[i]);for(let i=0;i<t.globals.previousPaths.length;i++)e=this.fullAngle*qDe.negToZero(t.globals.previousPaths[i])/a,this.prevSectorAngleArr.push(e)}if(this.donutSize<0&&(this.donutSize=0),"donut"===this.chartType){const e=a.drawCircle(this.donutSize);e.attr({cx:this.centerX,cy:this.centerY,fill:t.config.plotOptions.pie.donut.background?t.config.plotOptions.pie.donut.background:"transparent"}),o.add(e)}const r=this.drawArcs(n,e);if(this.sliceLabels.forEach(e=>{r.add(e)}),o.attr({transform:`translate(${this.translateX}, ${this.translateY}) scale(${t.config.plotOptions.pie.customScale})`}),o.add(r),i.add(o),this.donutDataLabels.show){const e=this.initialAnim&&!t.globals.resized&&!t.globals.dataChanged&&this.animDur>0,a=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:e?0:this.donutDataLabels.show});if(e){const e=this.dataLabelsGroup.node;e.style.transition="opacity 280ms ease-out",setTimeout(()=>{e.style.opacity="1"},this.animDur)}i.add(a)}return"front"===t.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(i),i}drawArcs(e,t){const a=this.w,i=new mMe(this.w),s=new fMe(this.w),n=new SMe(this.w),o=s.group({class:"apexcharts-slices"});let r=this.initialAngle,l=this.initialAngle,c=this.initialAngle,d=this.initialAngle;this.strokeWidth=a.config.stroke.show?a.config.stroke.width:0;for(let u=0;u<e.length;u++){const p=s.group({class:"apexcharts-series apexcharts-pie-series",seriesName:qDe.escapeString(a.seriesData.seriesNames[u]),rel:u+1,"data:realIndex":u});o.add(p),r=c,l=d,c=r+e[u],d=l+this.prevSectorAngleArr[u];const h=c<r?this.fullAngle+c-r:c-r,g=n.fillPath({seriesNumber:u,size:this.sliceSizes[u],value:t[u]}),m=this.getChangedPath(l,d),f=s.drawPath({d:m,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[u]:this.lineColorArr,strokeWidth:0,fill:g,fillOpacity:a.config.fill.opacity,classes:`apexcharts-pie-area apexcharts-${this.chartType.toLowerCase()}-slice-${u}`});if(f.attr({index:0,j:u}),i.setSelectionFilter(f,0,u),a.config.chart.dropShadow.enabled){const e=a.config.chart.dropShadow;i.dropShadow(f,e,u)}this.addListeners(f,this.donutDataLabels);let _={x:0,y:0};const b=(r+h/2)%this.fullAngle;let v={x:this.centerX,y:this.centerY};"pie"===this.chartType||"polarArea"===this.chartType?(_=qDe.polarToCartesian(this.centerX,this.centerY,a.globals.radialSize/1.25+a.config.plotOptions.pie.dataLabels.offset,b),v=qDe.polarToCartesian(this.centerX,this.centerY,a.globals.radialSize/2,b)):"donut"===this.chartType&&(_=qDe.polarToCartesian(this.centerX,this.centerY,(a.globals.radialSize+this.donutSize)/2+a.config.plotOptions.pie.dataLabels.offset,b),v=qDe.polarToCartesian(this.centerX,this.centerY,(a.globals.radialSize+this.donutSize)/2,b)),fMe.setAttrs(f.node,{"data:angle":h,"data:startAngle":r,"data:strokeWidth":this.strokeWidth,"data:value":t[u],"data:cx":v.x,"data:cy":v.y}),p.add(f);let y=0;if(!this.initialAnim||a.globals.resized||a.globals.dataChanged?this.animBeginArr.push(0):(y=h/this.fullAngle*a.config.chart.animations.speed,0===y&&(y=1),this.animDur=y+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&a.globals.dataChanged?this.animatePaths(f,{size:this.sliceSizes[u],endAngle:c,startAngle:r,prevStartAngle:l,prevEndAngle:d,animateStartingPos:!0,i:u,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:a.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(f,{size:this.sliceSizes[u],endAngle:c,startAngle:r,i:u,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:y}),a.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&f.node.addEventListener("mouseup",this.pieClicked.bind(this,u)),void 0!==a.interact.selectedDataPoints[0]&&a.interact.selectedDataPoints[0].indexOf(u)>-1)if(this.initialAnim&&!a.globals.resized&&!a.globals.dataChanged&&this.animDur>0){const e=this,t=u;setTimeout(()=>e.pieClicked(t),this.animDur)}else this.pieClicked(u);if(a.config.dataLabels.enabled){const t=_.x,n=_.y;let o=100*h/this.fullAngle+"%";if(0!==h&&a.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[u]){const e=a.config.dataLabels.formatter;void 0!==e&&(o=e(a.globals.seriesPercent[u][0],{seriesIndex:u,w:a}));const r=a.globals.dataLabels.style.colors[u],l=s.group({class:"apexcharts-datalabels"}),c=s.drawText({x:t,y:n,text:o,textAnchor:"middle",fontSize:a.config.dataLabels.style.fontSize,fontFamily:a.config.dataLabels.style.fontFamily,fontWeight:a.config.dataLabels.style.fontWeight,foreColor:r});if(l.add(c),a.config.dataLabels.dropShadow.enabled){const e=a.config.dataLabels.dropShadow;i.dropShadow(c,e)}c.node.classList.add("apexcharts-pie-label"),a.config.chart.animations.animate&&!1===a.globals.resized&&(c.node.classList.add("apexcharts-pie-label-delay"),c.node.style.animationDelay=a.config.chart.animations.speed/940+"s"),this.sliceLabels.push(l)}}}return o}addListeners(e,t){const a=new fMe(this.w);e.node.addEventListener("mouseenter",a.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",a.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this)),e.node.addEventListener("mousedown",a.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)))}animatePaths(e,t){const a=this.w;let i=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,s=i,n=t.startAngle;const o=t.startAngle;void 0!==t.prevStartAngle&&void 0!==t.prevEndAngle&&(n=t.prevEndAngle,s=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===a.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,n,o,i,s,t)}animateArc(e,t,a,i,s,n){const o=this,r=this.w,l=new gMe(this.w),c=n.size;let d;(isNaN(t)||isNaN(s))&&(t=a,s=i,n.dur=0);let u=i,p=a;const h=t<a?this.fullAngle+t-a:t-a;r.globals.dataChanged&&n.shouldSetPrevPaths&&n.prevEndAngle&&(d=o.getPiePath({me:o,startAngle:n.prevStartAngle,angle:n.prevEndAngle<n.prevStartAngle?this.fullAngle+n.prevEndAngle-n.prevStartAngle:n.prevEndAngle-n.prevStartAngle,size:c}),e.attr({d:d})),0!==n.dur?e.animate(n.dur,n.animBeginArr[n.i]).after(function(){"pie"!==o.chartType&&"donut"!==o.chartType&&"polarArea"!==o.chartType||this.animate(r.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":o.strokeWidth}),n.i===r.config.series.length-1&&l.animationCompleted(e)}).during(r=>{u=h+(i-h)*r,n.animateStartingPos&&(u=s+(i-s)*r,p=t-s+(a-(t-s))*r),d=o.getPiePath({me:o,startAngle:p,angle:u,size:c}),e.node.setAttribute("data:pathOrig",d),e.attr({d:d})}):(d=o.getPiePath({me:o,startAngle:p,angle:i,size:c}),n.isTrack||(r.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",d),e.attr({d:d,"stroke-width":o.strokeWidth}))}pieClicked(e){const t=this.w,a=this,i=a.sliceSizes[e]+(t.config.plotOptions.pie.expandOnClick?4:0),s=t.dom.Paper.findOne(`.apexcharts-${a.chartType.toLowerCase()}-slice-${e}`);if("true"===s.attr("data:pieClicked")){s.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner();const e=s.attr("data:pathOrig");return void s.attr({d:e})}{const a=t.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(a,e=>{e.setAttribute("data:pieClicked","false");const t=e.getAttribute("data:pathOrig");t&&e.setAttribute("d",t)}),t.interact.capturedDataPointIndex=e,s.attr("data:pieClicked","true")}const n=parseInt(s.attr("data:startAngle"),10),o=parseInt(s.attr("data:angle"),10),r=a.getPiePath({me:a,startAngle:n,angle:o,size:i});360!==o&&s.plot(r)}getChangedPath(e,t){let a="";return this.dynamicAnim&&this.w.globals.dataChanged&&(a=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),a}getPiePath({me:e,startAngle:t,angle:a,size:i}){let s;const n=new fMe(this.w),o=t,r=Math.PI*(o-90)/180;let l=a+t;Math.ceil(l)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(l=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(l)>this.fullAngle&&(l-=this.fullAngle);const c=Math.PI*(l-90)/180,d=e.centerX+i*Math.cos(r),u=e.centerY+i*Math.sin(r),p=e.centerX+i*Math.cos(c),h=e.centerY+i*Math.sin(c),g=qDe.polarToCartesian(e.centerX,e.centerY,e.donutSize,l),m=qDe.polarToCartesian(e.centerX,e.centerY,e.donutSize,o),f=a>180?1:0,_=["M",d,u,"A",i,i,0,f,1,p,h];return s="donut"===e.chartType?[..._,"L",g.x,g.y,"A",e.donutSize,e.donutSize,0,f,0,m.x,m.y,"L",d,u,"z"].join(" "):"pie"===e.chartType||"polarArea"===e.chartType?[..._,"L",e.centerX,e.centerY,"L",d,u].join(" "):[..._].join(" "),n.roundPathCorners(s,2*this.strokeWidth)}drawPolarElements(e){const t=this.w,a=new RMe(this.w),i=new fMe(this.w),s=new dPe(this.w),n=i.group(),o=i.group(),r=a.niceScale(0,Math.ceil(this.maxY),0),l=r.result.reverse(),c=r.result.length;this.maxY=r.niceMax;let d=t.globals.radialSize;const u=d/(c-1);for(let p=0;p<c-1;p++){const e=i.drawCircle(d);if(e.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){const e=s.drawYAxisTexts(this.centerX,this.centerY-d+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,p,l[p]);o.add(e)}n.add(e),d-=u}this.drawSpokes(e),e.add(n),e.add(o)}renderInnerDataLabels(e,t,a){const i=this.w,s=new fMe(this.w),n=t.total.show;e.node.innerHTML="",e.node.style.opacity=a.opacity;const o=a.centerX,r=this.donutDataLabels.total.label?a.centerY:a.centerY-a.centerY/6;let l,c;l=void 0===t.name.color?i.globals.colors[0]:t.name.color;let d=t.name.fontSize,u=t.name.fontFamily,p=t.name.fontWeight;c=void 0===t.value.color?i.config.chart.foreColor:t.value.color;const h=t.value.formatter;let g="",m="";if(n?(l=t.total.color,d=t.total.fontSize,u=t.total.fontFamily,p=t.total.fontWeight,m=this.donutDataLabels.total.label?t.total.label:"",g=t.total.formatter(i)):1===i.seriesData.series.length&&(g=h(i.seriesData.series[0],i),m=i.seriesData.seriesNames[0]),m&&(m=t.name.formatter(m,t.total.show,i)),t.name.show){const a=s.drawText({x:o,y:r+parseFloat(t.name.offsetY),text:m,textAnchor:"middle",foreColor:l,fontSize:d,fontWeight:p,fontFamily:u});a.node.classList.add("apexcharts-datalabel-label"),e.add(a)}if(t.value.show){const a=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,i=s.drawText({x:o,y:r+a,text:g,textAnchor:"middle",foreColor:c,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});i.node.classList.add("apexcharts-datalabel-value"),e.add(i)}return e}printInnerLabels(e,t,a,i){const s=this.w;let n;i?n=void 0===e.name.color?s.globals.colors[parseInt(i.parentNode.getAttribute("rel"),10)-1]:e.name.color:s.seriesData.series.length>1&&e.total.show&&(n=e.total.color);const o=s.dom.baseEl.querySelector(".apexcharts-datalabel-label"),r=s.dom.baseEl.querySelector(".apexcharts-datalabel-value");a=(0,e.value.formatter)(a,s),i||"function"!=typeof e.total.formatter||(a=e.total.formatter(s));const l=t===e.total.label;if(t=this.donutDataLabels.total.label?e.name.formatter(t,l,s):"",null!==o&&(o.textContent=t),null!==r&&(r.textContent=a),null!==o){o.style.fill=n}}printDataLabelsInner(e,t){const a=this.w,i=e.getAttribute("data:value"),s=a.seriesData.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];a.seriesData.series.length>1&&this.printInnerLabels(t,s,i,e);const n=a.dom.baseEl.querySelector(".apexcharts-datalabels-group");if(null!==n){n.style.opacity="1"}}drawSpokes(e){const t=this.w,a=new fMe(this.w),i=t.config.plotOptions.polarArea.spokes;if(0===i.strokeWidth)return;const s=[],n=360/t.seriesData.series.length;for(let o=0;o<t.seriesData.series.length;o++)s.push(qDe.polarToCartesian(this.centerX,this.centerY,t.globals.radialSize,t.config.plotOptions.pie.startAngle+n*o));s.forEach((t,s)=>{const n=a.drawLine(t.x,t.y,this.centerX,this.centerY,Array.isArray(i.connectorColors)?i.connectorColors[s]:i.connectorColors);e.add(n)})}revertDataLabelsInner(){const e=this.w;if(this.donutDataLabels.show){const t=e.dom.Paper.findOne(".apexcharts-datalabels-group"),a=this.renderInnerDataLabels(t,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});e.dom.Paper.findOne(".apexcharts-radialbar, .apexcharts-pie").add(a)}}}function pPe(e,t){let a=0;for(let n=0;n<e.length;n++)a+=e[n];const i=t/a,s=new Array(e.length);for(let n=0;n<e.length;n++)s[n]=e[n]*i;return s}function hPe(e,t,a,i){const s=i*i,n=a*a;return Math.max(s*t/n,n/(s*e))}function gPe(e,t,a,i,s,n){if(0===e)return!0;return hPe(t,a,i,n)>=hPe(Math.min(t,s),Math.max(a,s),i+s,n)}function mPe(e,t,a,i,s,n,o,r){if(o>=r){const o=i/r;let l=n;for(let i=0;i<a;i++){const a=t[i]/o;e.push([s,l,s+o,l+a]),l+=a}}else{const r=i/o;let l=s;for(let i=0;i<a;i++){const a=t[i]/r;e.push([l,n,l+a,n+r]),l+=a}}}function fPe(e,t,a,i,s){const n=[],o=e.length;if(0===o)return n;const r=new Array(o);let l=0,c=0,d=1/0,u=-1/0,p=0;for(;p<o;){const o=Math.min(i,s),h=e[p];if(gPe(l,d,u,c,h,o))r[l]=h,l++,c+=h,h<d&&(d=h),h>u&&(u=h),p++;else{if(mPe(n,r,l,c,t,a,i,s),i>=s){const e=c/s;t+=e,i-=e}else{const e=c/i;a+=e,s-=e}l=0,c=0,d=1/0,u=-1/0}}return l>0&&mPe(n,r,l,c,t,a,i,s),n}const _Pe={generate:function(e,t,a){const i=e.length,s=new Array(i);for(let r=0;r<i;r++){let t=0;const a=e[r];for(let e=0;e<a.length;e++)t+=a[e];s[r]=t}const n=fPe(pPe(s,t*a),0,0,t,a),o=new Array(i);for(let r=0;r<i;r++){const t=n[r],a=t[0],i=t[1],s=t[2]-a,l=t[3]-i;o[r]=fPe(pPe(e[r],s*l),a,i,s,l)}return o}};GLe.use({line:cPe,area:cPe,scatter:cPe,bubble:cPe,rangeArea:cPe,bar:aPe,column:aPe,barStacked:class extends aPe{draw(e,t){const a=this.w;this.graphics=new fMe(this.w),this.bar=new aPe(this.w,this.ctx,this.xyRatios);const i=new rMe(this.w);e=i.getLogSeries(e),this.yRatio=i.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e),"100%"===a.config.chart.stackType&&(e=a.globals.comboCharts?t.map(e=>a.globals.seriesPercent[e]):a.globals.seriesPercent.slice()),this.series=e,this.barHelpers.initializeStackedPrevVars(this);const s=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"});let n=0,o=0;for(let r=0,l=0;r<e.length;r++,l++){const i=a.globals.comboCharts?t[r]:r,{groupIndex:c,columnGroupIndex:d}=this.barHelpers.getGroupIndex(i);this.groupCtx=this[a.labelData.seriesGroups[c]];const u=[],p=[];let h=0;this.yRatio.length>1&&(this.yaxisIndex=a.globals.seriesYAxisReverseMap[i][0],h=i),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed;let g=this.graphics.group({class:"apexcharts-series",seriesName:qDe.escapeString(a.seriesData.seriesNames[i]),rel:r+1,"data:realIndex":i});$Me.addCollapsedClassToSeries(this.w,g,i);const m=this.graphics.group({class:"apexcharts-datalabels","data:realIndex":i}),f=this.graphics.group({class:"apexcharts-bar-goals-markers"}),_=this.initialPositions(n,o,void 0,void 0,void 0,void 0,h),{xDivision:b,yDivision:v,zeroH:y,zeroW:S}=_;let x=_.barHeight,w=_.barWidth;o=_.y,n=_.x,a.globals.barHeight=x,a.globals.barWidth=w,this.barHelpers.initializeStackedXYVars(this),1===this.groupCtx.prevY.length&&this.groupCtx.prevY[0].every(e=>isNaN(e))&&(this.groupCtx.prevY[0]=this.groupCtx.prevY[0].map(()=>y),this.groupCtx.prevYF[0]=this.groupCtx.prevYF[0].map(()=>0));for(let t=0;t<a.globals.dataPoints;t++){const s=this.barHelpers.getStrokeWidth(r,t,i),_={indexes:{i:r,j:t,realIndex:i,translationsIndex:h,bc:l},strokeWidth:s,x:n,y:o,elSeries:g,columnGroupIndex:d,seriesGroup:a.labelData.seriesGroups[c]};let E=null;this.isHorizontal?(E=this.drawStackedBarPaths($De(FDe({},_),{zeroW:S,barHeight:x,yDivision:v})),w=this.series[r][t]/this.invertedYRatio):(E=this.drawStackedColumnPaths($De(FDe({},_),{xDivision:b,barWidth:w,zeroH:y})),x=this.series[r][t]/this.yRatio[h]);const C=this.barHelpers.drawGoalLine({barXPosition:E.barXPosition,barYPosition:E.barYPosition,goalX:E.goalX,goalY:E.goalY,barHeight:x,barWidth:w});C&&f.add(C),o=E.y,n=E.x,u.push(n),p.push(o);const k=this.barHelpers.getPathFillColor(e,r,t,i);let T="";const A=a.globals.isBarHorizontal?"apexcharts-flip-x":"apexcharts-flip-y";("bottom"===this.barHelpers.arrBorderRadius[i][t]&&a.seriesData.series[i][t]>0||"top"===this.barHelpers.arrBorderRadius[i][t]&&a.seriesData.series[i][t]<0)&&(T=A),g=this.renderSeries($De(FDe({realIndex:i,pathFill:k.color},k.useRangeColor?{lineFill:k.color}:{}),{j:t,i:r,columnGroupIndex:d,pathFrom:E.pathFrom,pathTo:E.pathTo,strokeWidth:s,elSeries:g,x:n,y:o,series:e,barHeight:x,barWidth:w,elDataLabelsWrap:m,elGoalsMarkers:f,type:"bar",visibleSeries:d,classes:T}))}a.globals.seriesXvalues[i]=u,a.globals.seriesYvalues[i]=p,this.groupCtx.prevY.push(this.groupCtx.yArrj),this.groupCtx.prevYF.push(this.groupCtx.yArrjF),this.groupCtx.prevYVal.push(this.groupCtx.yArrjVal),this.groupCtx.prevX.push(this.groupCtx.xArrj),this.groupCtx.prevXF.push(this.groupCtx.xArrjF),this.groupCtx.prevXVal.push(this.groupCtx.xArrjVal),s.add(g)}return s}initialPositions(e,t,a,i,s,n,o){const r=this.w;let l,c;if(this.isHorizontal){i=r.layout.gridHeight/r.globals.dataPoints;const e=r.config.plotOptions.bar.barHeight;l=-1===String(e).indexOf("%")?parseInt(e,10):i*parseInt(e,10)/100,n=r.globals.padHorizontal+(this.isReversed?r.layout.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),t=(i-l)/2}else{c=a=r.layout.gridWidth/r.globals.dataPoints;const t=r.config.plotOptions.bar.columnWidth;r.axisFlags.isXNumeric&&r.globals.dataPoints>1?c=(a=r.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:-1===String(t).indexOf("%")?c=parseInt(t,10):c*=parseInt(t,10)/100,s=this.isReversed?this.baseLineY[o]:r.layout.gridHeight-this.baseLineY[o],e=r.globals.padHorizontal+(a-c)/2}const d=r.globals.barGroups.length||1;return{x:e,y:t,yDivision:i,xDivision:a,barHeight:(null!=l?l:0)/d,barWidth:(null!=c?c:0)/d,zeroH:s,zeroW:n}}drawStackedBarPaths({indexes:e,barHeight:t,strokeWidth:a,zeroW:i,x:s,y:n,columnGroupIndex:o,seriesGroup:r,yDivision:l,elSeries:c}){var d,u,p,h,g;const m=this.w,f=n+o*t;let _;const b=e.i,v=e.j,y=e.realIndex,S=e.translationsIndex;let x=0;for(let C=0;C<this.groupCtx.prevXF.length;C++)x+=this.groupCtx.prevXF[C][v];let w=b;if(m.config.series[y].name&&(w=r.indexOf(m.config.series[y].name)),w>0){let e=i;this.groupCtx.prevXVal[w-1][v]<0?e=(null==(d=this.series[b])?void 0:d[v])>=0?this.groupCtx.prevX[w-1][v]+x-2*(this.isReversed?x:0):this.groupCtx.prevX[w-1][v]:this.groupCtx.prevXVal[w-1][v]>=0&&(e=(null==(u=this.series[b])?void 0:u[v])>=0?this.groupCtx.prevX[w-1][v]:this.groupCtx.prevX[w-1][v]-x+2*(this.isReversed?x:0)),_=e}else _=i;s=null===(null==(p=this.series[b])?void 0:p[v])?_:_+(null==(h=this.series[b])?void 0:h[v])/this.invertedYRatio-2*(this.isReversed?(null==(g=this.series[b])?void 0:g[v])/this.invertedYRatio:0);const E=this.barHelpers.getBarpaths({barYPosition:f,barHeight:t,x1:_,x2:s,strokeWidth:a,isReversed:this.isReversed,series:this.series,realIndex:e.realIndex,seriesGroup:r,i:b,j:v,w:m});return this.barHelpers.barBackground({j:v,i:b,y1:f,y2:t,elSeries:c}),n+=l,{pathTo:E.pathTo,pathFrom:E.pathFrom,goalX:this.barHelpers.getGoalValues("x",i,null,b,v,S),barXPosition:_,barYPosition:f,x:s,y:n}}drawStackedColumnPaths({indexes:e,x:t,y:a,xDivision:i,barWidth:s,zeroH:n,columnGroupIndex:o,seriesGroup:r,elSeries:l}){var c,d,u,p,h,g,m,f,_;const b=this.w,v=e.i,y=e.j,S=e.bc,x=e.realIndex,w=e.translationsIndex;if(b.axisFlags.isXNumeric){let e=b.seriesData.seriesX[x][y];e||(e=0),t=(e-b.globals.minX)/this.xRatio-s/2*b.globals.barGroups.length}const E=t+o*s;let C,k=0;for(let R=0;R<this.groupCtx.prevYF.length;R++)k+=isNaN(this.groupCtx.prevYF[R][y])?0:this.groupCtx.prevYF[R][y];let T=v;if(r&&(T=r.indexOf(b.seriesData.seriesNames[x])),T>0&&!b.axisFlags.isXNumeric||T>0&&b.axisFlags.isXNumeric&&b.seriesData.seriesX[x-1][y]===b.seriesData.seriesX[x][y]){let e,t;const a=Math.min(this.yRatio.length+1,x+1);if(void 0!==this.groupCtx.prevY[T-1]&&this.groupCtx.prevY[T-1].length)for(let i=1;i<a;i++)if(!isNaN(null==(c=this.groupCtx.prevY[T-i])?void 0:c[y])){t=this.groupCtx.prevY[T-i][y];break}for(let i=1;i<a;i++){if((null==(d=this.groupCtx.prevYVal[T-i])?void 0:d[y])<0){e=(null==(u=this.series[v])?void 0:u[y])>=0?t-k+2*(this.isReversed?k:0):t;break}if((null==(p=this.groupCtx.prevYVal[T-i])?void 0:p[y])>=0){e=(null==(h=this.series[v])?void 0:h[y])>=0?t:t+k-2*(this.isReversed?k:0);break}}void 0===e&&(e=b.layout.gridHeight),C=(null==(g=this.groupCtx.prevYF[0])?void 0:g.every(e=>0===e))&&this.groupCtx.prevYF.slice(1,T).every(e=>e.every(e=>isNaN(e)))?n:e}else C=n;a=(null==(m=this.series[v])?void 0:m[y])?C-(null==(f=this.series[v])?void 0:f[y])/this.yRatio[w]+2*(this.isReversed?(null==(_=this.series[v])?void 0:_[y])/this.yRatio[w]:0):C;const A=this.barHelpers.getColumnPaths({barXPosition:E,barWidth:s,y1:C,y2:a,yRatio:this.yRatio[w],strokeWidth:this.strokeWidth,isReversed:this.isReversed,series:this.series,seriesGroup:r,realIndex:e.realIndex,i:v,j:y,w:b});return this.barHelpers.barBackground({bc:S,j:y,i:v,x1:E,x2:s,elSeries:l}),{pathTo:A.pathTo,pathFrom:A.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,n,v,y,0),barXPosition:E,x:b.axisFlags.isXNumeric?t:t+i,y:a}}},rangeBar:class extends aPe{draw(e,t){var a,i,s,n,o,r,l,c,d;const u=this.w,p=new fMe(this.w);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=e,this.seriesRangeStart=u.rangeData.seriesRangeStart,this.seriesRangeEnd=u.rangeData.seriesRangeEnd,this.barHelpers.initVariables(e);const h=p.group({class:"apexcharts-rangebar-series apexcharts-plot-series"});for(let g=0;g<e.length;g++){let m,f;const _=u.globals.comboCharts?t[g]:g,{columnGroupIndex:b}=this.barHelpers.getGroupIndex(_),v=p.group({class:"apexcharts-series",seriesName:qDe.escapeString(u.seriesData.seriesNames[_]),rel:g+1,"data:realIndex":_});$Me.addCollapsedClassToSeries(this.w,v,_),e[g].length>0&&(this.visibleI=this.visibleI+1);let y=0;this.yRatio.length>1&&(this.yaxisIndex=u.globals.seriesYAxisReverseMap[_][0],y=_);const S=this.barHelpers.initialPositions(_),{y:x,zeroW:w,x:E,zeroH:C}=S;let k=null!=(a=S.barWidth)?a:0,T=null!=(i=S.barHeight)?i:0;const A=null!=(s=S.yDivision)?s:0,R=null!=(n=S.xDivision)?n:0;f=x,m=E;const O=p.group({class:"apexcharts-datalabels","data:realIndex":_}),N=p.group({class:"apexcharts-rangebar-goals-markers"});for(let t=0;t<u.globals.dataPoints;t++){const a=this.barHelpers.getStrokeWidth(g,t,_),i=this.seriesRangeStart[g][t],s=this.seriesRangeEnd[g][t];let n=null,p=null,h=null;const x={x:m,y:f,strokeWidth:a,elSeries:v};let E=this.seriesLen;if(u.config.plotOptions.bar.rangeBarGroupRows&&(E=1),void 0===(null==(o=u.config.series[g].data)?void 0:o[t]))break;if(this.isHorizontal){h=f+T*this.visibleI;const e=(A-T*E)/2;if(null==(l=null==(r=u.config.series[g].data)?void 0:r[t])?void 0:l.x){const a=this.detectOverlappingBars({i:g,j:t,barYPosition:h,srty:e,barHeight:T,yDivision:A,initPositions:S});T=a.barHeight,h=a.barYPosition}n=this.drawRangeBarPaths(FDe({indexes:{i:g,j:t,realIndex:_},barHeight:T,barYPosition:h,zeroW:w,yDivision:A,y1:i,y2:s},x)),k=n.barWidth}else{u.axisFlags.isXNumeric&&(m=(u.seriesData.seriesX[g][t]-u.globals.minX)/this.xRatio-k/2),p=m+k*this.visibleI;const e=(R-k*E)/2;if(null==(d=null==(c=u.config.series[g].data)?void 0:c[t])?void 0:d.x){const a=this.detectOverlappingBars({i:g,j:t,barXPosition:p,srtx:e,barWidth:k,xDivision:R,initPositions:S});k=a.barWidth,p=a.barXPosition}n=this.drawRangeColumnPaths(FDe({indexes:{i:g,j:t,realIndex:_,translationsIndex:y},barWidth:k,barXPosition:p,zeroH:C,xDivision:R},x)),T=n.barHeight}const I=this.barHelpers.drawGoalLine({barXPosition:n.barXPosition,barYPosition:h,goalX:n.goalX,goalY:n.goalY,barHeight:T,barWidth:k});I&&N.add(I),f=n.y,m=n.x;const D=this.barHelpers.getPathFillColor(e,g,t,_);this.renderSeries({realIndex:_,pathFill:D.color,lineFill:D.useRangeColor?D.color:u.globals.stroke.colors[_],j:t,i:g,x:m,y:f,y1:i,y2:s,pathFrom:n.pathFrom,pathTo:n.pathTo,strokeWidth:a,elSeries:v,series:e,barHeight:T,barWidth:k,barXPosition:p,barYPosition:h,columnGroupIndex:b,elDataLabelsWrap:O,elGoalsMarkers:N,visibleSeries:this.visibleI,type:"rangebar"})}h.add(v)}return h}detectOverlappingBars({i:e,j:t,barYPosition:a,barXPosition:i,srty:s,srtx:n,barHeight:o,barWidth:r,yDivision:l,xDivision:c,initPositions:d}){var u,p,h,g;const m=this.w;let f=[];const _=null==(p=null==(u=m.config.series[e].data)?void 0:u[t])?void 0:p.rangeName,b=null==(g=null==(h=m.config.series[e].data)?void 0:h[t])?void 0:g.x,v=Array.isArray(b)?b.join(" "):b,y=m.labelData.labels.map(e=>Array.isArray(e)?e.join(" "):e).indexOf(v),S=m.rangeData.seriesRange[e].findIndex(e=>{var t;return e.x===v&&(null==(t=e.overlaps)?void 0:t.size)>0});return this.isHorizontal?(a=m.config.plotOptions.bar.rangeBarGroupRows?s+l*y:s+o*this.visibleI+l*y,S>-1&&!m.config.plotOptions.bar.rangeBarOverlap&&(f=Array.from(m.rangeData.seriesRange[e][S].overlaps),f.indexOf(_)>-1&&(a=(o=d.barHeight/f.length)*this.visibleI+l*(100-parseInt(this.barOptions.barHeight,10))/100/2+o*(this.visibleI+f.indexOf(_))+l*y))):(y>-1&&!m.labelData.timescaleLabels.length&&(i=m.config.plotOptions.bar.rangeBarGroupRows?n+c*y:n+r*this.visibleI+c*y),S>-1&&!m.config.plotOptions.bar.rangeBarOverlap&&(f=Array.from(m.rangeData.seriesRange[e][S].overlaps),f.indexOf(_)>-1&&(i=(r=d.barWidth/f.length)*this.visibleI+c*(100-parseInt(this.barOptions.barWidth,10))/100/2+r*(this.visibleI+f.indexOf(_))+c*y))),{barYPosition:a,barXPosition:i,barHeight:o,barWidth:r}}drawRangeColumnPaths({indexes:e,x:t,xDivision:a,barWidth:i,barXPosition:s,zeroH:n}){var o,r;const l=this.w,{i:c,j:d,realIndex:u,translationsIndex:p}=e,h=this.yRatio[p],g=this.getRangeValue(u,d);let m=Math.min(g.start,g.end),f=Math.max(g.start,g.end);void 0===(null==(o=this.series[c])?void 0:o[d])||null===(null==(r=this.series[c])?void 0:r[d])?m=n:(m=n-m/h,f=n-f/h);const _=Math.abs(f-m),b=this.barHelpers.getColumnPaths({barXPosition:s,barWidth:i,y1:m,y2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:u,i:u,j:d,w:l});if(l.axisFlags.isXNumeric){const e=this.getBarXForNumericXAxis({x:t,j:d,realIndex:u,barWidth:i});t=e.x,s=e.barXPosition}else t+=a;return{pathTo:b.pathTo,pathFrom:b.pathFrom,barHeight:_,x:t,y:g.start<0&&g.end<0?m:f,goalY:this.barHelpers.getGoalValues("y",null,n,c,d,p),barXPosition:s}}preventBarOverflow(e){const t=this.w;return e<0&&(e=0),e>t.layout.gridWidth&&(e=t.layout.gridWidth),e}drawRangeBarPaths({indexes:e,y:t,y1:a,y2:i,yDivision:s,barHeight:n,barYPosition:o,zeroW:r}){const l=this.w,{realIndex:c,j:d}=e,u=this.preventBarOverflow(r+a/this.invertedYRatio),p=this.preventBarOverflow(r+i/this.invertedYRatio),h=this.getRangeValue(c,d),g=Math.abs(p-u),m=this.barHelpers.getBarpaths({barYPosition:o,barHeight:n,x1:u,x2:p,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:c,realIndex:c,j:d,w:l});return l.axisFlags.isXNumeric||(t+=s),{pathTo:m.pathTo,pathFrom:m.pathFrom,barWidth:g,x:h.start<0&&h.end<0?u:p,goalX:this.barHelpers.getGoalValues("x",r,null,c,d,0),y:t}}getRangeValue(e,t){const a=this.w;return{start:a.rangeData.seriesRangeStart[e][t],end:a.rangeData.seriesRangeEnd[e][t]}}},candlestick:iPe,boxPlot:iPe,pie:uPe,donut:uPe,polarArea:uPe,radialBar:class extends uPe{constructor(e,t){super(e,t),this.ctx=t,this.w=e,this.animBeginArr=[0],this.animDur=0,this.startAngle=e.config.plotOptions.radialBar.startAngle,this.endAngle=e.config.plotOptions.radialBar.endAngle,this.totalAngle=Math.abs(e.config.plotOptions.radialBar.endAngle-e.config.plotOptions.radialBar.startAngle),this.trackStartAngle=e.config.plotOptions.radialBar.track.startAngle,this.trackEndAngle=e.config.plotOptions.radialBar.track.endAngle,this.barLabels=this.w.config.plotOptions.radialBar.barLabels,this.donutDataLabels=this.w.config.plotOptions.radialBar.dataLabels,this.radialDataLabels=this.donutDataLabels,this.trackStartAngle||(this.trackStartAngle=this.startAngle),this.trackEndAngle||(this.trackEndAngle=this.endAngle),360===this.endAngle&&(this.endAngle=359.99),this.margin=parseInt(e.config.plotOptions.radialBar.track.margin,10),this.onBarLabelClick=this.onBarLabelClick.bind(this)}draw(e){var t;const a=this.w,i=new fMe(this.w),s=i.group({class:"apexcharts-radialbar"});if(a.globals.noData)return s;const n=i.group(),o=this.defaultSize/2,r=a.layout.gridWidth/2;let l=this.defaultSize/2.05;a.config.chart.sparkline.enabled||(l=l-a.config.stroke.width-a.config.chart.dropShadow.blur);const c=a.globals.fill.colors,d=a.config.plotOptions.radialBar,u=Array.isArray(d.bands)&&d.bands.length>0,p=u&&d.bandsStyle&&d.bandsStyle.hideTrackWhenPresent,h="needle"===d.shape;if(d.track.show&&!p){const t=this.drawTracks({size:l,centerX:r,centerY:o,colorArr:c,series:e});n.add(t)}if(u){const t=this.drawBands({size:l,centerX:r,centerY:o,series:e});n.add(t)}const g=this.drawArcs({size:l,centerX:r,centerY:o,colorArr:c,series:e,skipValueArc:h&&!(null==(t=d.needle)?void 0:t.showValueArc)});if(d.ticks&&d.ticks.show){const t=this.drawTicks({size:l,centerX:r,centerY:o,series:e});if(this.initialAnim&&!a.globals.dataChanged&&!a.globals.resized&&VDe.isBrowser()&&a.globals.shouldAnimate){const e=t.node;e.style.opacity="0",e.style.transition="opacity 280ms ease-out";const i=a.config.chart.animations.speed||800;setTimeout(()=>{e.style.opacity="1"},i)}n.add(t)}if(h){const t=this.drawNeedle({size:l,centerX:r,centerY:o,series:e});n.add(t)}let m=360;a.config.plotOptions.radialBar.startAngle<0&&(m=this.totalAngle);const f=(360-m)/360;if(a.globals.radialSize=l-l*f,this.radialDataLabels.value.show){const e=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);a.globals.radialSize+=e*f}return n.add(g.g),"front"===a.config.plotOptions.radialBar.hollow.position&&(g.g.add(g.elHollow),g.dataLabels&&g.g.add(g.dataLabels)),s.add(n),s}drawTracks(e){const t=this.w,a=new fMe(this.w),i=a.group({class:"apexcharts-tracks"}),s=new mMe(this.w),n=new SMe(this.w),o=this.getStrokeWidth(e);e.size=e.size-o/2;for(let r=0;r<e.series.length;r++){const l=a.group({class:"apexcharts-radialbar-track apexcharts-track"});i.add(l),l.attr({rel:r+1}),e.size=e.size-o-this.margin;const c=t.config.plotOptions.radialBar.track,d=n.fillPath({seriesNumber:0,size:e.size,fillColors:Array.isArray(c.background)?c.background[r]:c.background,solid:!0}),u=this.trackStartAngle;let p=this.trackEndAngle;Math.abs(p)+Math.abs(u)>=360&&(p=360-Math.abs(this.startAngle)-.1);const h=a.drawPath({d:"",stroke:d,strokeWidth:o*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){const e=c.dropShadow;s.dropShadow(h,e)}l.add(h),h.attr("id","apexcharts-radialbarTrack-"+r),this.animatePaths(h,{centerX:e.centerX,centerY:e.centerY,endAngle:p,startAngle:u,size:e.size,i:r,totalItems:2,animBeginArr:0,dur:0,isTrack:!0})}return i}drawArcs(e){const t=this.w,a=new fMe(this.w),i=new SMe(this.w),s=new mMe(this.w),n=a.group(),o=this.getStrokeWidth(e);e.size=e.size-o/2;let r=t.config.plotOptions.radialBar.hollow.background;const 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&&(r=this.drawHollowImage(e,n,l,r));const d=this.drawHollow({size:c,centerX:e.centerX,centerY:e.centerY,fill:r||"transparent"});if(t.config.plotOptions.radialBar.hollow.dropShadow.enabled){const e=t.config.plotOptions.radialBar.hollow.dropShadow;s.dropShadow(d,e)}let u=1;!this.radialDataLabels.total.show&&t.seriesData.series.length>1&&(u=0);let p=null;if(this.radialDataLabels.show){const a=t.dom.Paper.findOne(".apexcharts-datalabels-group");p=this.renderInnerDataLabels(a,this.radialDataLabels,{hollowSize:l,centerX:e.centerX,centerY:e.centerY,opacity:u})}"back"===t.config.plotOptions.radialBar.hollow.position&&(n.add(d),p&&n.add(p));let h=!1;t.config.plotOptions.radialBar.inverseOrder&&(h=!0);for(let g=h?e.series.length-1:0;h?g>=0:g<e.series.length;h?g--:g++){const r=a.group({class:"apexcharts-series apexcharts-radial-series",seriesName:qDe.escapeString(t.seriesData.seriesNames[g])});n.add(r),r.attr({rel:g+1,"data:realIndex":g}),$Me.addCollapsedClassToSeries(this.w,r,g),e.size=e.size-o-this.margin;const l=i.fillPath({seriesNumber:g,size:e.size,value:e.series[g]}),c=this.startAngle;let d;const u=t.config.plotOptions.radialBar,p="number"==typeof u.min?u.min:0,h="number"==typeof u.max?u.max:100,m=h===p?1:h-p,f=e=>{const t=Math.min(Math.max(e,p),h);return Math.max(0,(t-p)/m)},_=f(qDe.negToZero(e.series[g]));let b,v=Math.round(this.totalAngle*_)+this.startAngle;t.globals.dataChanged&&(d=this.startAngle,b=Math.round(this.totalAngle*f(qDe.negToZero(t.globals.previousPaths[g])))+d);Math.abs(v)+Math.abs(c)>360&&(v-=.01);Math.abs(b)+Math.abs(d)>360&&(b-=.01);const y=v-c,S=Array.isArray(t.config.stroke.dashArray)?t.config.stroke.dashArray[g]:t.config.stroke.dashArray,x=a.drawPath({d:"",stroke:e.skipValueArc?"transparent":l,strokeWidth:e.skipValueArc?0:o,fill:"none",fillOpacity:t.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+g,strokeDashArray:S}),w=c+y/2,E=qDe.polarToCartesian(e.centerX,e.centerY,e.size,w);if(fMe.setAttrs(x.node,{"data:angle":y,"data:value":e.series[g],"data:cx":E.x,"data:cy":E.y}),t.config.chart.dropShadow.enabled){const e=t.config.chart.dropShadow;s.dropShadow(x,e,g)}if(s.setSelectionFilter(x,0,g),this.addListeners(x,this.radialDataLabels),r.add(x),x.attr({index:0,j:g}),this.barLabels.enabled){const i=qDe.polarToCartesian(e.centerX,e.centerY,e.size,c),s=this.barLabels.formatter(t.seriesData.seriesNames[g],{seriesIndex:g,w:t}),n=["apexcharts-radialbar-label"];this.barLabels.onClick||n.push("apexcharts-no-click");let o=this.barLabels.useSeriesColors?t.globals.colors[g]:t.config.chart.foreColor;o||(o=t.config.chart.foreColor);const l=i.x+this.barLabels.offsetX,d=i.y+this.barLabels.offsetY,u=a.drawText({x:l,y:d,text:s,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:o,cssClass:n.join(" ")});u.on("click",this.onBarLabelClick),u.attr({rel:g+1}),0!==c&&u.attr({"transform-origin":`${l} ${d}`,transform:`rotate(${c} 0 0)`}),r.add(u)}let 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(x,{centerX:e.centerX,centerY:e.centerY,endAngle:v,startAngle:c,prevEndAngle:b,prevStartAngle:d,size:e.size,i:g,totalItems:2,animBeginArr:this.animBeginArr,dur:C,shouldSetPrevPaths:!0})}return{g:n,elHollow:d,dataLabels:p}}_angleAtValue(e){const t=this.w.config.plotOptions.radialBar,a="number"==typeof t.min?t.min:0,i="number"==typeof t.max?t.max:100,s=i===a?a+1:i,n=(Math.max(a,Math.min(s,Number(e)))-a)/(s-a);return this.startAngle+n*(this.endAngle-this.startAngle)}_describeArc(e,t,a,i,s){const n=qDe.polarToCartesian(e,t,a,s),o=qDe.polarToCartesian(e,t,a,i),r=s-i,l=Math.abs(r)>180?1:0;return`M ${n.x} ${n.y} A ${a} ${a} 0 ${l} 0 ${o.x} ${o.y}`}drawBands(e){const t=this.w,a=new fMe(this.w),i=t.config.plotOptions.radialBar,s=i.bands||[],n=a.group({class:"apexcharts-gauge-bands"}),o=this.getStrokeWidth(e),r=e.size-o/2-o-this.margin,l=o*parseInt(i.bandsStyle.strokeWidth,10)/100,c="number"==typeof i.min?i.min:0,d="number"==typeof i.max?i.max:100,u=d===c?0:(i.bandsStyle.gap||0)*((this.endAngle-this.startAngle)/(d-c));for(let p=0;p<s.length;p++){const t=s[p];if(void 0===t.from||void 0===t.to)continue;const o=this._angleAtValue(t.from),c=this._angleAtValue(t.to),d=Math.min(o,c)+u/2,h=Math.max(o,c)-u/2;if(h-d<=0)continue;const g=a.drawPath({d:this._describeArc(e.centerX,e.centerY,r,d,h),stroke:t.color||"#ccc",strokeWidth:l,fill:"none",strokeLinecap:i.bandsStyle.linecap||"butt",classes:"apexcharts-gauge-band"});g.node.setAttribute("data-band-index",String(p)),n.add(g)}return n}drawTicks(e){var t,a,i,s;const n=this.w,o=new fMe(this.w),r=n.config.plotOptions.radialBar,l=r.ticks,c=o.group({class:"apexcharts-gauge-ticks"}),d=this.getStrokeWidth(e),u=e.size-d/2-d-this.margin,p="number"==typeof r.min?r.min:0,h="number"==typeof r.max?r.max:100,g=Math.max(2,null!=(a=null==(t=l.major)?void 0:t.count)?a:11),m=Math.max(0,null!=(s=null==(i=l.minor)?void 0:i.count)?s:0),f=(t,a,i)=>{var s,n,r;const d=this._angleAtValue(t),p=null!=(s=a.length)?s:8,h="inside"===a.placement?u-p:u,g="inside"===a.placement?u:u+p,m=qDe.polarToCartesian(e.centerX,e.centerY,h,d),f=qDe.polarToCartesian(e.centerX,e.centerY,g,d),_=o.drawLine(m.x,m.y,f.x,f.y,a.color||(i?"#666":"#999"),0,a.width||(i?2:1));if(c.add(_),i&&(null==(n=l.labels)?void 0:n.show)){const i=("inside"===a.placement?h:g)+("inside"===a.placement?-1:1)*(null!=(r=l.labels.offset)?r:6),s=qDe.polarToCartesian(e.centerX,e.centerY,i,d),n="function"==typeof l.labels.formatter?l.labels.formatter(t):String(t),u=o.drawText({x:s.x,y:s.y,text:n,textAnchor:"middle",dominantBaseline:"middle",fontFamily:l.labels.fontFamily,fontSize:l.labels.fontSize,fontWeight:l.labels.fontWeight,foreColor:l.labels.color,cssClass:"apexcharts-gauge-tick-label"});c.add(u)}};for(let _=0;_<g;_++){if(f(p+_/(g-1)*(h-p),l.major||{},!0),_<g-1&&m>0)for(let e=1;e<=m;e++){f(p+(_+e/(m+1))/(g-1)*(h-p),l.minor||{},!1)}}return c}drawNeedle(e){var t,a,i,s,n;const o=this.w,r=new fMe(this.w),l=o.config.plotOptions.radialBar.needle||{},c=r.group({class:"apexcharts-gauge-needle"});if(!e.series||0===e.series.length)return c;const d=this.getStrokeWidth(e),u=e.size-d/2-d-this.margin,p="string"==typeof l.length&&l.length.endsWith("%")?u*parseInt(l.length,10)/100:Number(l.length||.85*u),h=null!=(t=l.baseWidth)?t:4,g=null!=(a=l.tipWidth)?a:1,m=l.color||"#333",f=e.centerX,_=Number(null!=(i=l.offsetY)?i:0),b=e.centerY+_,v=`M ${f+h/2} ${b} A ${h/2} ${h/2} 0 0 1 ${f-h/2} ${b} L ${f-g/2} ${b-p} L ${f+g/2} ${b-p} Z`,y=r.drawPath({d:v,stroke:m,strokeWidth:0,fill:m,classes:"apexcharts-gauge-needle-shape"});c.add(y);const S=Number(e.series[0]),x=this._angleAtValue(S),w=this.initialAnim&&!o.globals.dataChanged&&!o.globals.resized,E=this.ctx,C="number"==typeof E._lastNeedleAngle?E._lastNeedleAngle:this.startAngle;E._lastNeedleAngle=x;if(VDe.isBrowser()&&o.globals.shouldAnimate&&(w||o.globals.dataChanged)&&C!==x){const e=c.node;e.setAttribute("transform-origin",`${f} ${b}`),e.setAttribute("transform",`rotate(${C})`);const t=(null==(s=l.animation)?void 0:s.duration)&&Number(l.animation.duration)||l.animationSpeed&&Number(l.animationSpeed)||(null==(n=o.config.chart.animations.dynamicAnimation)?void 0:n.speed)||o.config.chart.animations.speed||800,a=1.70158,i=a+1,r=e=>1+i*Math.pow(e-1,3)+a*Math.pow(e-1,2),d=e=>1-Math.pow(1-e,3),u=w?r:d,p=performance.now(),h=a=>{const i=Math.max(0,Math.min(1,(a-p)/t)),s=C+(x-C)*u(i);e.setAttribute("transform",`rotate(${s})`),i<1&&jDe.requestAnimationFrame(h)};jDe.requestAnimationFrame(h)}else c.attr({"transform-origin":`${f} ${b}`,transform:`rotate(${x})`});return c}drawHollow(e){var t;const a=new fMe(this.w),i=this.w.config.plotOptions.radialBar.hollow,s=a.drawCircle(2*e.size),n={class:"apexcharts-radialbar-hollow",cx:e.centerX,cy:e.centerY,r:e.size,fill:e.fill};return(i.stroke||i.strokeDasharray)&&(n.stroke=i.stroke||"transparent",n["stroke-width"]=null!=(t=i.strokeWidth)?t:1,i.strokeDasharray&&(n["stroke-dasharray"]=i.strokeDasharray)),s.attr(n),s}drawHollowImage(e,t,a,i){const s=this.w,n=new SMe(this.w),o=qDe.randomId(),r=s.config.plotOptions.radialBar.hollow.image;if(s.config.plotOptions.radialBar.hollow.imageClipped)n.clippedImgArea({width:a,height:a,image:r,patternID:`pattern${s.globals.cuid}${o}`}),i=`url(#pattern${s.globals.cuid}${o})`;else{const a=s.config.plotOptions.radialBar.hollow.imageWidth,i=s.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===a&&void 0===i){const a=s.dom.Paper.image(r,function(t){this.move(e.centerX-t.width/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+s.config.plotOptions.radialBar.hollow.imageOffsetY)});t.add(a)}else{const n=s.dom.Paper.image(r,function(){this.move(e.centerX-a/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-i/2+s.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(a,i)});t.add(n)}}return i}getStrokeWidth(e){const t=this.w;return e.size*(100-parseInt(t.config.plotOptions.radialBar.hollow.size,10))/100/(e.series.length+1)-this.margin}onBarLabelClick(e){var t;const a=e.target,i=parseInt(null!=(t=a.getAttribute("rel"))?t:"",10)-1,s=this.barLabels.onClick,n=this.w;s&&s(n.seriesData.seriesNames[i],{w:n,seriesIndex:i})}},radar:class{constructor(e,t){this.ctx=t,this.w=e,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,this.graphics=new fMe(this.w),this.lineColorArr=void 0!==e.globals.stroke.colors?e.globals.stroke.colors:e.globals.colors,this.defaultSize=e.globals.svgHeight<e.globals.svgWidth?e.layout.gridHeight:e.layout.gridWidth,this.isLog=e.config.yaxis[0].logarithmic,this.logBase=e.config.yaxis[0].logBase,this.coreUtils=new rMe(this.w),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,e.globals.maxY,0):e.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,this.w.globals.minY,0):e.globals.minY,this.polygons=e.config.plotOptions.radar.polygons,this.strokeWidth=e.config.stroke.show?e.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-e.config.chart.dropShadow.blur,e.config.xaxis.labels.show&&(this.size=this.size-e.layout.xAxisLabelsWidth/1.75),void 0!==e.config.plotOptions.radar.size&&(this.size=e.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.dataPointsLen=0,this.disAngle=0,this.yaxisLabelsTextsPos=[]}draw(e){const t=this.w,a=new SMe(this.w),i=[],s=new EMe(this.w,this.ctx);e.length&&(this.dataPointsLen=e[t.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;const n=t.layout.gridWidth/2,o=t.layout.gridHeight/2,r=n+t.config.plotOptions.radar.offsetX,l=o+t.config.plotOptions.radar.offsetY,c=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:`translate(${r||0}, ${l||0})`});let d=[],u=null,p=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach((e,n)=>{const o=e.length===t.globals.dataPoints,r=this.graphics.group().attr({class:"apexcharts-series","data:longestSeries":o,seriesName:qDe.escapeString(t.seriesData.seriesNames[n]),rel:n+1,"data:realIndex":n});this.dataRadiusOfPercent[n]=[],this.dataRadius[n]=[],this.angleArr[n]=[],e.forEach((e,t)=>{const a=Math.abs(this.maxValue-this.minValue);e-=this.minValue,this.isLog&&(e=this.coreUtils.getLogVal(this.logBase,e,0)),this.dataRadiusOfPercent[n][t]=e/a,this.dataRadius[n][t]=this.dataRadiusOfPercent[n][t]*this.size,this.angleArr[n][t]=t*this.disAngle}),d=this.getDataPointsPos(this.dataRadius[n],this.angleArr[n]);const l=this.createPaths(d,{x:0,y:0});u=this.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),p=this.graphics.group({class:"apexcharts-datalabels","data:realIndex":n}),t.globals.delayedElements.push({el:u.node,index:n});const c={i:n,realIndex:n,animationDelay:n,initialSpeed:t.config.chart.animations.speed,dataChangeSpeed:t.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:t.globals.stroke.colors[n],strokeLineCap:t.config.stroke.lineCap};let h=null;t.globals.previousPaths.length>0&&(h=this.getPreviousPath(n));for(let i=0;i<l.linePathsTo.length;i++){const e=this.graphics.renderPaths($De(FDe({},c),{pathFrom:null===h?l.linePathsFrom[i]:h,pathTo:l.linePathsTo[i],strokeWidth:Array.isArray(this.strokeWidth)?this.strokeWidth[n]:this.strokeWidth,fill:"none",drawShadow:!1}));r.add(e);const s=a.fillPath({seriesNumber:n}),o=this.graphics.renderPaths($De(FDe({},c),{pathFrom:null===h?l.areaPathsFrom[i]:h,pathTo:l.areaPathsTo[i],strokeWidth:0,fill:s,drawShadow:!1,drawMask:{type:"radial",cx:0,cy:0,r:this.size}}));if(t.config.chart.dropShadow.enabled){const e=new mMe(this.w),a=t.config.chart.dropShadow;e.dropShadow(o,Object.assign({},a,{noUserSpaceOnUse:!0}),n)}r.add(o)}e.forEach((e,a)=>{const i=new xMe(this.w,this.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:n,dataPointIndex:a}),o=this.graphics.drawMarker(d[a].x,d[a].y,i);o.attr("rel",a),o.attr("j",a),o.attr("index",n),o.node.setAttribute("default-marker-size",i.pSize);const l=this.graphics.group({class:"apexcharts-series-markers"});l&&l.add(o),u.add(l),r.add(u);const c=t.config.dataLabels;if(c.enabled){const e=c.formatter(t.seriesData.series[n][a],{seriesIndex:n,dataPointIndex:a,w:t});s.plotDataLabelsText({x:d[a].x,y:d[a].y,text:e,textAnchor:"middle",i:n,j:n,parent:p,offsetCorrection:!1,dataLabelsConfig:FDe({},c)})}r.add(p)}),i.push(r)}),this.drawPolygons({parent:c}),t.config.xaxis.labels.show){const e=this.drawXAxisTexts();c.add(e)}return i.forEach(e=>{c.add(e)}),c.add(this.yaxisLabels),c}drawPolygons(e){const t=this.w,{parent:a}=e,i=new dPe(this.w),s=t.globals.yAxisScale[0].result.reverse(),n=s.length,o=[],r=this.size/(n-1);for(let d=0;d<n;d++)o[d]=r*d;o.reverse();const l=[],c=[];o.forEach((e,t)=>{const a=qDe.getPolygonPos(e,this.dataPointsLen);let i="";a.forEach((e,a)=>{if(0===t){const t=this.graphics.drawLine(e.x,e.y,0,0,Array.isArray(this.polygons.connectorColors)?this.polygons.connectorColors[a]:this.polygons.connectorColors);c.push(t)}0===a&&this.yaxisLabelsTextsPos.push({x:e.x,y:e.y}),i+=e.x+","+e.y+" "}),l.push(i)}),l.forEach((e,i)=>{const s=this.polygons.strokeColors,n=this.polygons.strokeWidth,o=this.graphics.drawPolygon(e,Array.isArray(s)?s[i]:s,Array.isArray(n)?n[i]:n,t.globals.radarPolygons.fill.colors[i]);a.add(o)}),c.forEach(e=>{a.add(e)}),t.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((e,t)=>{const a=i.drawYAxisTexts(e.x,e.y,t,s[t]);this.yaxisLabels.add(a)})}drawXAxisTexts(){const e=this.w,t=e.config.xaxis.labels,a=this.graphics.group({class:"apexcharts-xaxis"}),i=qDe.getPolygonPos(this.size,this.dataPointsLen);return e.labelData.labels.forEach((s,n)=>{const o=e.config.xaxis.labels.formatter,r=new EMe(this.w,this.ctx);if(i[n]){const l=this.getTextPos(i[n],this.size),c=o(s,{seriesIndex:-1,dataPointIndex:n,w:e});r.plotDataLabelsText({x:l.newX,y:l.newY,text:c,textAnchor:l.textAnchor,i:n,j:n,parent:a,className:"apexcharts-xaxis-label",color:Array.isArray(t.style.colors)&&t.style.colors[n]?t.style.colors[n]:"#a8a8a8",dataLabelsConfig:FDe({textAnchor:l.textAnchor,dropShadow:{enabled:!1}},t),offsetCorrection:!1}).on("click",t=>{if("function"==typeof e.config.chart.events.xAxisLabelClick){const a=Object.assign({},e,{labelIndex:n});e.config.chart.events.xAxisLabelClick(t,this.ctx,a)}})}}),a}createPaths(e,t){const a=[];let i=[];const s=[];let n=[];if(e.length){i=[this.graphics.move(t.x,t.y)],n=[this.graphics.move(t.x,t.y)];let o=this.graphics.move(e[0].x,e[0].y),r=this.graphics.move(e[0].x,e[0].y);e.forEach((t,a)=>{o+=this.graphics.line(t.x,t.y),r+=this.graphics.line(t.x,t.y),a===e.length-1&&(o+="Z",r+="Z")}),a.push(o),s.push(r)}return{linePathsFrom:i,linePathsTo:a,areaPathsFrom:n,areaPathsTo:s}}getTextPos(e,t){let a="middle",i=e.x,s=e.y;return Math.abs(e.x)>=10?e.x>0?(a="start",i+=10):e.x<0&&(a="end",i-=10):a="middle",Math.abs(e.y)>=t-10&&(e.y<0?s-=10:e.y>0&&(s+=10)),{textAnchor:a,newX:i,newY:s}}getPreviousPath(e){const t=this.w;let a=null;for(let i=0;i<t.globals.previousPaths.length;i++){const s=t.globals.previousPaths[i];s.paths.length>0&&parseInt(s.realIndex,10)===parseInt(String(e),10)&&void 0!==t.globals.previousPaths[i].paths[0]&&(a=t.globals.previousPaths[i].paths[0].d)}return a}getDataPointsPos(e,t,a=this.dataPointsLen){e=e||[],t=t||[];const i=[];for(let s=0;s<a;s++){const a={};a.x=e[s]*Math.sin(t[s]),a.y=-e[s]*Math.cos(t[s]),i.push(a)}return i}},heatmap:class{constructor(e,t,a){this.ctx=t,this.w=e,this.xRatio=a.xRatio,this.yRatio=a.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new sPe(e,t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}draw(e){const t=this.w,a=new fMe(this.w,this.ctx),i=a.group({class:"apexcharts-heatmap"});i.attr("clip-path",`url(#gridRectMask${t.globals.cuid})`);const s=t.layout.gridWidth/t.globals.dataPoints,n=t.layout.gridHeight/t.seriesData.series.length;let o=0,r=!1;this.negRange=this.helpers.checkColorRange();const l=e.slice();t.config.yaxis[0].reversed&&(r=!0,l.reverse());for(let d=r?0:l.length-1;r?d<l.length:d>=0;r?d++:d--){const r=a.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:qDe.escapeString(t.seriesData.seriesNames[d]),rel:d+1,"data:realIndex":d});if($Me.addCollapsedClassToSeries(this.w,r,d),a.setupEventDelegation(r,".apexcharts-heatmap-rect"),t.config.chart.dropShadow.enabled){const e=t.config.chart.dropShadow;new mMe(this.w).dropShadow(r,e,d)}let c=0;const u=t.config.plotOptions.heatmap.shadeIntensity;let p=0;for(let i=0;i<t.globals.dataPoints;i++){if(t.seriesData.seriesX.length&&!t.globals.allSeriesHasEqualX&&t.globals.minX+t.globals.minXDiff*i<t.seriesData.seriesX[d][p]){c+=s;continue}if(p>=l[d].length)break;const h=this.helpers.getShadeColor(t.config.chart.type,d,p,this.negRange);let g=h.color;const m=h.colorProps;if("image"===t.config.fill.type){g=new SMe(this.w).fillPath({seriesNumber:d,dataPointIndex:p,opacity:t.globals.hasNegs?m.percent<0?1-(1+m.percent/100):u+m.percent/100:m.percent/100,patternID:qDe.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:s,height:t.config.fill.image.height?t.config.fill.image.height:n})}const f=this.rectRadius,_=a.drawRect(c,o,s,n,f);if(_.attr({cx:c,cy:o}),_.node.classList.add("apexcharts-heatmap-rect"),r.add(_),_.attr({fill:g,i:d,index:d,j:p,val:e[d][p],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?g:t.globals.stroke.colors[0],color:g}),t.config.chart.animations.enabled&&!t.globals.dataChanged){let e=1;t.globals.resized||(e=t.config.chart.animations.speed),this.animateHeatMap(_,c,o,s,n,e,d,p)}if(t.globals.dataChanged){let e=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){e=this.dynamicAnim.speed;let a=t.globals.previousPaths[d]&&t.globals.previousPaths[d][p]&&t.globals.previousPaths[d][p].color;a||(a="rgba(255, 255, 255, 0)"),this.animateHeatColor(_,qDe.isColorHex(a)?a:qDe.rgb2hex(a),qDe.isColorHex(g)?g:qDe.rgb2hex(g),e)}}const b=(0,t.config.dataLabels.formatter)(t.seriesData.series[d][p],{value:t.seriesData.series[d][p],seriesIndex:d,dataPointIndex:p,w:t}),v=this.helpers.calculateDataLabels({text:b,x:c+s/2,y:o+n/2,i:d,j:p,colorProps:m,series:l});null!==v&&r.add(v),c+=s,p++}o+=n,i.add(r)}const c=t.globals.yAxisScale[0].result.slice();return t.config.yaxis[0].reversed?c.unshift(""):c.push(""),t.globals.yAxisScale[0].result=c,i}animateHeatMap(e,t,a,i,s,n,o=0,r=0){const l=this.w,c=new gMe(this.w),d=l.config.chart.animations.animateGradually;let u=0;if(d&&!1!==d.enabled){const e=((l.seriesData.series||[]).length||1)+(l.globals.dataPoints||1)-2;u=hMe({style:"diagonal",index:r,row:o,col:r,baseDelay:Math.min(d.delay||0,.5*n/Math.max(1,e))})}c.animateRect(e,{x:t+i/2,y:a+s/2,width:0,height:0},{x:t,y:a,width:i,height:s},n,()=>{c.animationCompleted(e)},u)}animateHeatColor(e,t,a,i){e.attr({fill:t}).animate(i).attr({fill:a})}},treemap:class{constructor(e,t){this.ctx=t,this.w=e,this.strokeWidth=this.w.config.stroke.width,this.helpers=new sPe(e,t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}draw(e){const t=this.w,a=new fMe(this.w,this.ctx),i=new SMe(this.w),s=a.group({class:"apexcharts-treemap"});if(t.globals.noData)return s;const n=[];e.forEach(e=>{const t=e.map(e=>Math.abs(e));n.push(t)}),this.negRange=this.helpers.checkColorRange(),t.config.series.forEach((e,t)=>{e.data.forEach(e=>{Array.isArray(this.labels[t])||(this.labels[t]=[]),this.labels[t].push(e.x)})});return _Pe.generate(n,t.layout.gridWidth,t.layout.gridHeight).forEach((n,o)=>{var r;const l=a.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:qDe.escapeString(t.seriesData.seriesNames[o]),rel:o+1,"data:realIndex":o});if(a.setupEventDelegation(l,".apexcharts-treemap-rect"),t.config.chart.dropShadow.enabled){const e=t.config.chart.dropShadow;new mMe(this.w).dropShadow(s,e,o)}const c=a.group({class:"apexcharts-data-labels"}),d={xMin:1/0,yMin:1/0,xMax:-1/0,yMax:-1/0},u=t.config.chart.animations,p=u.animateGradually,h=p&&!1!==p.enabled,g=new Array(n.length).fill(0);if(h){const e=n.length||1,t=Math.min(p.delay||0,.5*u.speed/e);n.map((e,t)=>({j:t,area:(e[2]-e[0])*(e[3]-e[1])})).sort((e,t)=>t.area-e.area).forEach((e,a)=>{g[e.j]=a*t})}n.forEach((s,n)=>{const r=s[0],c=s[1],u=s[2],p=s[3];d.xMin=Math.min(d.xMin,r),d.yMin=Math.min(d.yMin,c),d.xMax=Math.max(d.xMax,u),d.yMax=Math.max(d.yMax,p);const h=this.helpers.getShadeColor(t.config.chart.type,o,n,this.negRange),m=h.color,f=i.fillPath({color:m,seriesNumber:o,dataPointIndex:n}),_=a.drawRect(r,c,u-r,p-c,t.config.plotOptions.treemap.borderRadius,"#fff",1,this.strokeWidth,t.config.plotOptions.treemap.useFillColorAsStroke?m:t.globals.stroke.colors[o]);_.attr({cx:r,cy:c,index:o,i:o,j:n,width:u-r,height:p-c,fill:f}),_.node.classList.add("apexcharts-treemap-rect");let b={x:r+(u-r)/2,y:c+(p-c)/2,width:0,height:0};const v={x:r,y:c,width:u-r,height:p-c};if(t.config.chart.animations.enabled&&!t.globals.dataChanged){let e=1;t.globals.resized||(e=t.config.chart.animations.speed),this.animateTreemap(_,b,v,e,g[n]||0)}if(t.globals.dataChanged){let e=1;this.dynamicAnim.enabled&&t.globals.shouldAnimate&&(e=this.dynamicAnim.speed,t.globals.previousPaths[o]&&t.globals.previousPaths[o][n]&&t.globals.previousPaths[o][n].rect&&(b=t.globals.previousPaths[o][n].rect),this.animateTreemap(_,b,v,e))}let y=this.getFontSize(s),S=t.config.dataLabels.formatter(this.labels[o][n],{value:t.seriesData.series[o][n],seriesIndex:o,dataPointIndex:n,w:t});"truncate"===t.config.plotOptions.treemap.dataLabels.format&&(y=parseInt(String(t.config.dataLabels.style.fontSize),10),S=this.truncateLabels(String(S),y,r,c,u,p));let x=null;t.seriesData.series[o][n]&&(x=this.helpers.calculateDataLabels({text:S,x:(r+u)/2,y:(c+p)/2+this.strokeWidth/2+y/3,i:o,j:n,colorProps:h,fontSize:y,series:e})),t.config.dataLabels.enabled&&x&&this.rotateToFitLabel(x,y,S,r,c,u,p),l.add(_),null!==x&&l.add(x)});const m=t.config.plotOptions.treemap.seriesTitle;if(t.config.series.length>1&&m&&m.show){const e=t.config.series[o].name||"";if(e&&d.xMin<1/0&&d.yMin<1/0){const{offsetX:i,offsetY:s,borderColor:n,borderWidth:o,borderRadius:c,style:u}=m,p=u.color||t.config.chart.foreColor,h={left:u.padding.left,right:u.padding.right,top:u.padding.top,bottom:u.padding.bottom},g=a.getTextRects(e,u.fontSize,u.fontFamily),f=g.width+h.left+h.right,_=g.height+h.top+h.bottom,b=d.xMin+(i||0),v=d.yMin+(s||0),y=a.drawRect(b,v,f,_,c,u.background,1,o,n),S=a.drawText({x:b+h.left,y:v+h.top+.75*(null!=(r=null==g?void 0:g.height)?r:0),text:e,fontSize:u.fontSize,fontFamily:u.fontFamily,fontWeight:u.fontWeight,foreColor:p,cssClass:u.cssClass||""});l.add(y),l.add(S)}}l.add(c),s.add(l)}),s}getFontSize(e){const t=this.w;const a=function e(t){let a,i=0;if(Array.isArray(t[0]))for(a=0;a<t.length;a++)i+=e(t[a]);else for(a=0;a<t.length;a++)i+=t[a].length;return i}(this.labels)/function e(t){let a,i=0;if(Array.isArray(t[0]))for(a=0;a<t.length;a++)i+=e(t[a]);else for(a=0;a<t.length;a++)i+=1;return i}(this.labels);return function(e,i){const s=e*i,n=Math.pow(s,.5);return Math.min(n/a,parseInt(t.config.dataLabels.style.fontSize,10))}(e[2]-e[0],e[3]-e[1])}rotateToFitLabel(e,t,a,i,s,n,o){const r=new fMe(this.w),l=r.getTextRects(a,String(t));if(l.width+this.w.config.stroke.width+5>n-i&&l.width<=o-s){const t=r.rotateAroundCenter(e.node);e.node.setAttribute("transform",`rotate(-90 ${t.x} ${t.y}) translate(${l.height/3})`)}}truncateLabels(e,t,a,i,s,n){const o=new fMe(this.w),r=o.getTextRects(e,String(t)).width+this.w.config.stroke.width+5>s-a&&n-i>s-a?n-i:s-a,l=o.getTextBasedOnMaxWidth({text:e,maxWidth:r,fontSize:t});return e.length!==l.length&&r/t<5?"":l}animateTreemap(e,t,a,i,s=0){const n=new gMe(this.w);n.animateRect(e,t,a,i,()=>{n.animationCompleted(e)},s)}}});const bPe=["animationEnd","beforeMount","mounted","updated","click","mouseMove","mouseLeave","legendClick","markerClick","selection","dataPointSelection","dataPointMouseEnter","dataPointMouseLeave","beforeZoom","beforeResetZoom","zoomed","scrolled","brushScrolled"],vPe=sl({name:"apexchart",props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0},width:{default:"100%"},height:{default:"auto"}},emits:bPe,setup(e,{emit:t}){const a=fo(null),i=fo(null),s=e=>e&&"object"==typeof e&&!Array.isArray(e)&&null!=e,n=(e,t)=>{"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");let t=Object(e);for(let a=1;a<arguments.length;a++){let e=arguments[a];if(null!=e)for(let a in e)e.hasOwnProperty(a)&&(t[a]=e[a])}return t});let a=Object.assign({},e);return s(e)&&s(t)&&Object.keys(t).forEach(i=>{s(t[i])?i in e?a[i]=n(e[i],t[i]):Object.assign(a,{[i]:t[i]}):Object.assign(a,{[i]:t[i]})}),a},o=e=>JSON.parse(JSON.stringify(e)),r=async()=>{if(await ar(),i.value)return;const s={chart:{type:e.type||e.options.chart&&e.options.chart.type||"line",height:e.height,width:e.width,events:{}},series:o(e.series)},r=e.options.chart?e.options.chart.events:null;bPe.forEach(e=>{s.chart.events[e]=(...a)=>{((...a)=>{t(e,...a)})(...a),r&&r.hasOwnProperty(e)&&r[e](...a)}});const l=n(e.options,s);return i.value=new GLe(a.value,l),i.value.render()},l=()=>(c(),r()),c=()=>{i.value.destroy(),i.value=null};Ul(()=>{window.ApexCharts=GLe}),Hl(()=>{a.value=fu().proxy.$el,r()}),Gl(()=>{i.value&&c()});const d=To(e);let u=null;const p=t=>{u||(u={options:!1,series:!1},ar(()=>{const t=u;if(u=null,i.value)if(t.options&&t.series){const t=o(e.options);t.series=o(e.series),i.value.updateOptions(t)}else t.options?i.value.updateOptions(o(e.options)):t.series&&i.value.updateSeries(o(e.series));else r()})),u[t]=!0};return Rr(d.options,()=>{p("options")}),Rr(d.series,()=>{p("series")},{deep:!0}),Rr(d.type,()=>{l()}),Rr(d.width,()=>{l()}),Rr(d.height,()=>{l()}),{chart:i,init:r,refresh:l,destroy:c,updateOptions:(e,t,a,s)=>i.value.updateOptions(e,t,a,s),updateSeries:(e,t)=>i.value.updateSeries(e,t),toggleSeries:e=>i.value.toggleSeries(e),showSeries:e=>{i.value.showSeries(e)},hideSeries:e=>{i.value.hideSeries(e)},resetSeries:()=>{i.value.resetSeries()},zoomX:(e,t)=>i.value.zoomX(e,t),toggleDataPointSelection:(e,t)=>{i.value.toggleDataPointSelection(e,t)},appendData:e=>i.value.appendData(e),appendSeries:(e,t)=>i.value.appendSeries(e,t),addXaxisAnnotation:(e,t)=>{i.value.addXaxisAnnotation(e,t)},addYaxisAnnotation:(e,t)=>{i.value.addYaxisAnnotation(e,t)},addPointAnnotation:(e,t)=>{i.value.addPointAnnotation(e,t)},removeAnnotation:(e,t)=>{i.value.removeAnnotation(e,t)},clearAnnotations:()=>{i.value.clearAnnotations()},setLocale:e=>i.value.setLocale(e),dataURI:e=>i.value.dataURI(e)}},render:()=>Lu("div",{class:"vue-apexcharts"})}),yPe=(e,t)=>{const a=e.__vccOpts||e;for(const[i,s]of t)a[i]=s;return a},SPe=sl({name:"apexchart-server",props:{type:{type:String,default:"line"},width:{type:[Number,String],default:400},height:{type:[Number,String],default:300},series:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},className:{type:String,default:""}},setup(e){const t=fo("");return jl(async()=>{try{const{default:a}=await RDe(async()=>{const{default:e}=await Promise.resolve({default:{}});return{default:e}},void 0,import.meta.url),i=Object.assign({},e.options,{chart:Object.assign({},e.options.chart,{type:e.type,width:e.width,height:e.height}),series:e.series});t.value=await a.renderToHTML(i,{width:e.width,height:e.height})}catch(a){}}),{chartHTML:t}}}),xPe=["innerHTML"];const wPe=yPe(SPe,[["render",function(e,t,a,i,s,n){return Hd(),jd("div",{innerHTML:e.chartHTML,class:ne(e.className)},null,10,xPe)}]]),EPe=sl({name:"apexchart-hydrate",props:{clientOptions:{type:Object,default:()=>({})},selector:{type:String,default:"[data-apexcharts-hydrate]"}},setup(e){let t=[];Hl(async()=>{try{const{default:a}=await RDe(async()=>{const{default:e}=await Promise.resolve({default:{}});return{default:e}},void 0,import.meta.url);t=a.hydrateAll(e.selector,e.clientOptions)}catch(a){}}),Gl(()=>{t.forEach(e=>{e&&e.destroy&&e.destroy()}),t=[]})},render:()=>null});vPe.install=e=>{e.component(vPe.name,vPe),e.component(wPe.name,wPe),e.component(EPe.name,EPe)};const CPe={name:"Overview",props:["url"],components:{Document:Document,BarChartBase:TDe,VueApexCharts:vPe},data(){return{loading:!1,dateRange:[],selectedDateRangeIndex:0,dateShortcuts:[{text:this.$t("Last 7 days"),value:(()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-6048e5),[t,e]})()},{text:this.$t("Last 30 days"),value:(()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-2592e6),[t,e]})()},{text:this.$t("Last 90 days"),value:(()=>{const e=new Date,t=new Date;return t.setTime(t.getTime()-7776e6),[t,e]})()}],stats:{awaitingReply:0,unassignedTickets:0,avgWaitingTime:0,newTickets:0,newTicketsChange:0,closedTickets:0,notResponded:0,currentlyResponded:0,totalResponses:0,ticketsHandled:0,activeAgents:0,averageResponse:0},productStats:{totalTickets:0,totalResponses:0,products:[]},hourlyTicketChartData:null,hourlyTicketChartOptions:{responsive:!0,maintainAspectRatio:!1,scales:{yAxes:[{beginAtZero:!0,ticks:{stepSize:20,max:80},gridLines:{drawOnChartArea:!1}}],xAxes:[{gridLines:{drawOnChartArea:!1}}]},legend:{display:!1},drawBorder:!1,layout:{padding:{left:16,right:24,top:12,bottom:24}},datasets:{bar:{barPercentage:.7,categoryPercentage:.8}}},hourlyResponseChartData:null,hourlyResponseChartOptions:{responsive:!0,maintainAspectRatio:!1,scales:{yAxes:[{beginAtZero:!0,ticks:{stepSize:2,max:12,callback:function(e){return e+"hr"}},gridLines:{drawOnChartArea:!1}}],xAxes:[{gridLines:{drawOnChartArea:!1}}]},legend:{display:!1},drawBorder:!1,layout:{padding:{left:16,right:24,top:12,bottom:24}},datasets:{bar:{barPercentage:.7,categoryPercentage:.8}}},productTicketChartData:null,productTicketChartOptions:{responsive:!0,maintainAspectRatio:!1,scales:{xAxes:[{beginAtZero:!0,gridLines:{drawOnChartArea:!1}}],yAxes:[{gridLines:{drawOnChartArea:!1}}]},legend:{display:!1},drawBorder:!1,layout:{padding:{left:16,right:24,top:12,bottom:24}}},productResponseChartData:null,productResponseChartOptions:{chart:{type:"donut"},labels:[],colors:this.getChartColorPalette(),legend:{show:!1},dataLabels:{enabled:!1},plotOptions:{pie:{donut:{size:"70%"}}}}}},computed:{selectedDateRangeLabel(){return this.selectedDateRangeIndex>=0&&this.dateShortcuts[this.selectedDateRangeIndex]?this.dateShortcuts[this.selectedDateRangeIndex].text:this.$t("Last 7 days")}},methods:{handleDateRangeShortcutChange(e){this.selectedDateRangeIndex=e;const t=this.dateShortcuts[e];t&&t.value&&(this.dateRange=[Ik(t.value[0]).format("YYYY-MM-DD"),Ik(t.value[1]).format("YYYY-MM-DD")],this.fetchData())},disabledDate:e=>e.getTime()>Date.now(),handleDateRangeChange(){this.fetchData()},handleFilterClick(){this.fetchData()},handleExportClick(){},handleViewDetails(e){},getChartColorPalette(){const e=getComputedStyle(document.documentElement);return[e.getPropertyValue("--fs-chart-quinary").trim()||"#FF8447",e.getPropertyValue("--fs-chart-tertiary").trim()||"#22d3bb",e.getPropertyValue("--fs-chart-quaternary").trim()||"#7D52F4"]},getProductColor(e){const t=getComputedStyle(document.documentElement),a=[t.getPropertyValue("--fs-chart-secondary").trim()||"#47c2ff",t.getPropertyValue("--fs-chart-quaternary").trim()||"#7D52F4",t.getPropertyValue("--fs-chart-quinary").trim()||"#FF8447"];return a[e%a.length]},getProductResponseColor(e){const t=getComputedStyle(document.documentElement),a=[t.getPropertyValue("--fs-chart-quinary").trim()||"#FF8447",t.getPropertyValue("--fs-chart-tertiary").trim()||"#22d3bb",t.getPropertyValue("--fs-chart-quaternary").trim()||"#7D52F4"];return a[e%a.length]},getProductPercentage:(e,t)=>t&&0!==t?e/t*100:0,fetchData(){},setupHourlyTicketChart(e){const t=["12AM","3AM","6AM","9AM","12PM","3PM","6PM","9PM","12AM"],a={labels:t,datasets:[{label:"Number of tickets",backgroundColor:getComputedStyle(document.documentElement).getPropertyValue("--fs-chart-secondary").trim()||"#47c2ff",data:t.map((t,a)=>e[a]||0),barThickness:24}]};this.hourlyTicketChartData=a},setupHourlyResponseChart(e){const t=["12AM","3AM","6AM","9AM","12PM","3PM","6PM","9PM","12AM"],a={labels:t,datasets:[{label:"Number of Responses",backgroundColor:getComputedStyle(document.documentElement).getPropertyValue("--fs-chart-tertiary").trim()||"#22d3bb",data:t.map((t,a)=>e[a]||0),barThickness:24}]};this.hourlyResponseChartData=a},setupProductCharts(e){const t=e.map(e=>e.name),a=e.map(e=>e.responses),i=e.map((e,t)=>this.getProductResponseColor(t));this.productResponseChartData={series:a},this.productResponseChartOptions={...this.productResponseChartOptions,labels:t,colors:i}}},beforeMount(){if(this.dateShortcuts.length>0){const e=this.dateShortcuts[this.selectedDateRangeIndex];e&&e.value&&(this.dateRange=[Ik(e.value[0]).format("YYYY-MM-DD"),Ik(e.value[1]).format("YYYY-MM-DD")])}},mounted(){this.fetchData()}},kPe={class:"fs_overview_page"},TPe={class:"fs_inside_menu_component_header"},APe={class:"fs_component_head"},RPe={class:"fs_page_title"},OPe={class:"fs_box_actions"},NPe={class:"fs_overview_content"},IPe={class:"fs_overview_section"},DPe={class:"fs_section_header"},MPe={class:"fs_section_title"},LPe={class:"fs_section_body"},PPe={class:"fs_stat_cards_row"},FPe={class:"fs_stat_card"},$Pe={class:"fs_stat_icon fs_stat_icon--danger"},BPe={class:"fs_stat_content"},VPe={class:"fs_stat_label"},UPe={class:"fs_stat_value_row"},HPe={class:"fs_stat_value"},zPe={class:"fs_stat_meta"},YPe={class:"fs_stat_card"},GPe={class:"fs_stat_icon fs_stat_icon--warning"},WPe={class:"fs_stat_content"},jPe={class:"fs_stat_label"},qPe={class:"fs_stat_value_row"},KPe={class:"fs_stat_value"},XPe={class:"fs_stat_card"},QPe={class:"fs_stat_icon fs_stat_icon--info"},ZPe={class:"fs_stat_content"},JPe={class:"fs_stat_label"},eFe={class:"fs_stat_value_row"},tFe={class:"fs_stat_value"},aFe={class:"fs_stat_meta"},iFe={class:"fs_overview_section"},sFe={class:"fs_section_header"},nFe={class:"fs_section_title"},oFe={class:"fs_section_body"},rFe={class:"fs_stat_cards_row"},lFe={class:"fs_stat_card"},cFe={class:"fs_stat_icon fs_stat_icon--default"},dFe={class:"fs_stat_content"},uFe={class:"fs_stat_label"},pFe={class:"fs_stat_value_row"},hFe={class:"fs_stat_value"},gFe={key:0,class:"fs_stat_badge"},mFe={class:"fs_stat_meta"},fFe={class:"fs_stat_card"},_Fe={class:"fs_stat_icon fs_stat_icon--default"},bFe={class:"fs_stat_content"},vFe={class:"fs_stat_label"},yFe={class:"fs_stat_value_row"},SFe={class:"fs_stat_value"},xFe={class:"fs_stat_card"},wFe={class:"fs_stat_icon fs_stat_icon--default"},EFe={class:"fs_stat_content"},CFe={class:"fs_stat_label"},kFe={class:"fs_stat_value_row"},TFe={class:"fs_stat_value"},AFe={class:"fs_chart_section"},RFe={class:"fs_chart_header"},OFe={class:"fs_chart_title"},NFe={class:"fs_chart_legend"},IFe={class:"fs_legend_text"},DFe={class:"fs_chart_container",style:{height:"300px"}},MFe={class:"fs_overview_section"},LFe={class:"fs_section_header"},PFe={class:"fs_section_title"},FFe={class:"fs_section_body"},$Fe={class:"fs_stat_cards_row"},BFe={class:"fs_stat_card"},VFe={class:"fs_stat_icon fs_stat_icon--default"},UFe={class:"fs_stat_content"},HFe={class:"fs_stat_label"},zFe={class:"fs_stat_value_row"},YFe={class:"fs_stat_value"},GFe={class:"fs_stat_card"},WFe={class:"fs_stat_icon fs_stat_icon--default"},jFe={class:"fs_stat_content"},qFe={class:"fs_stat_label"},KFe={class:"fs_stat_value_row"},XFe={class:"fs_stat_value"},QFe={class:"fs_stat_card"},ZFe={class:"fs_stat_icon fs_stat_icon--default"},JFe={class:"fs_stat_content"},e$e={class:"fs_stat_label"},t$e={class:"fs_stat_value_row"},a$e={class:"fs_stat_value"},i$e={class:"fs_stat_card"},s$e={class:"fs_stat_icon fs_stat_icon--default"},n$e={class:"fs_stat_content"},o$e={class:"fs_stat_label"},r$e={class:"fs_stat_value_row"},l$e={class:"fs_stat_value"},c$e={class:"fs_chart_section"},d$e={class:"fs_chart_title"},u$e={class:"fs_chart_container",style:{height:"300px"}},p$e={class:"fs_overview_section"},h$e={class:"fs_section_header"},g$e={class:"fs_section_title"},m$e={class:"fs_section_body"},f$e={class:"fs_product_total"},_$e={class:"fs_total_label"},b$e={class:"fs_total_value"},v$e={class:"fs_horizontal_bar_chart",style:{margin:"20px 0"}},y$e={class:"fs_horizontal_bar_track"},S$e={class:"fs_product_list"},x$e={class:"fs_product_info"},w$e={class:"fs_product_name"},E$e={class:"fs_product_count"},C$e={class:"fs_overview_section",style:{"margin-top":"24px"}},k$e={class:"fs_section_header"},T$e={class:"fs_section_title"},A$e={class:"fs_section_body"},R$e={class:"fs_product_total"},O$e={class:"fs_total_label"},N$e={class:"fs_total_value"},I$e={class:"fs_chart_container",style:{height:"250px",margin:"20px 0"}},D$e={class:"fs_product_list"},M$e={class:"fs_product_info"},L$e={class:"fs_product_name"},P$e={class:"fs_product_count"};const F$e=dH(CPe,[["render",function(e,t,a,i,s,n){const o=Zl("ArrowDown"),r=jx,l=vk,c=oM,d=rM,u=nM,p=KI,h=Zl("Filter"),g=Zl("Download"),m=Zl("AlarmClock"),f=Zl("User"),_=Zl("Refresh"),b=Zl("Document"),v=Zl("ChatLineRound"),y=Zl("CircleCheck"),S=Zl("bar-chart-base"),x=Zl("Tickets"),w=Zl("UserFilled"),E=Zl("Message"),C=lO,k=Zl("vue-apex-charts"),T=rO,A=q$;return Hd(),jd("div",kPe,[eu("div",TPe,[eu("div",APe,[eu("h3",RPe,fe(e.$t("Overview")),1)]),eu("div",OPe,[tu(u,{onCommand:n.handleDateRangeShortcutChange,trigger:"click",placement:"bottom-end"},{dropdown:br(()=>[tu(d,{class:"fs_global_dropdown"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.dateShortcuts,(e,t)=>(Hd(),qd(c,{key:t,command:t},{default:br(()=>[su(fe(e.text),1)],void 0),_:2},1032,["command"]))),128))],void 0),_:1})]),default:br(()=>[tu(l,{size:"small",class:"fs_date_range_dropdown"},{default:br(()=>[eu("span",null,fe(n.selectedDateRangeLabel),1),tu(r,{class:"fs_dropdown_arrow"},{default:br(()=>[tu(o)],void 0),_:1})],void 0),_:1})],void 0),_:1},8,["onCommand"]),tu(p,{modelValue:s.dateRange,"onUpdate:modelValue":t[0]||(t[0]=e=>s.dateRange=e),type:"daterange",editable:!1,onChange:n.handleDateRangeChange,"range-separator":"To","disabled-date":n.disabledDate,"value-format":"YYYY-MM-DD","start-placeholder":e.$t("Start date"),"end-placeholder":e.$t("End date"),style:{"margin-right":"10px"}},null,8,["modelValue","onChange","disabled-date","start-placeholder","end-placeholder"]),tu(l,{size:"small",class:"fs_filter_button",onClick:n.handleFilterClick},{default:br(()=>[tu(r,{class:"fs_button_icon"},{default:br(()=>[tu(h)],void 0),_:1}),eu("span",null,fe(e.$t("Filter")),1)],void 0),_:1},8,["onClick"]),tu(l,{size:"small",class:"fs_export_button",onClick:n.handleExportClick},{default:br(()=>[tu(r,{class:"fs_button_icon"},{default:br(()=>[tu(g)],void 0),_:1}),eu("span",null,fe(e.$t("Export")),1)],void 0),_:1},8,["onClick"])])]),vr((Hd(),jd("div",NPe,[tu(T,{gutter:24},{default:br(()=>[tu(C,{xs:24,sm:24,md:16,lg:16},{default:br(()=>[eu("div",IPe,[eu("div",DPe,[eu("h4",MPe,fe(e.$t("Current Support Workload")),1)]),eu("div",LPe,[eu("div",PPe,[eu("div",FPe,[eu("div",$Pe,[tu(r,{class:"fs_stat_icon_el--danger"},{default:br(()=>[tu(m)],void 0),_:1})]),eu("div",BPe,[eu("p",VPe,fe(e.$t("Tickets Awaiting Reply")),1),eu("div",UPe,[eu("span",HPe,fe(s.stats.awaitingReply||0),1),eu("span",zPe,fe(e.$t("Max-time: --")),1)])])]),t[3]||(t[3]=eu("div",{class:"fs_stat_divider"},null,-1)),eu("div",YPe,[eu("div",GPe,[tu(r,{class:"fs_stat_icon_el--warning"},{default:br(()=>[tu(f)],void 0),_:1})]),eu("div",WPe,[eu("p",jPe,fe(e.$t("Unassigned Tickets")),1),eu("div",qPe,[eu("span",KPe,fe(s.stats.unassignedTickets||0),1)])])]),t[4]||(t[4]=eu("div",{class:"fs_stat_divider"},null,-1)),eu("div",XPe,[eu("div",QPe,[tu(r,{class:"fs_stat_icon_el--info"},{default:br(()=>[tu(_)],void 0),_:1})]),eu("div",ZPe,[eu("p",JPe,fe(e.$t("Avg. Waiting Time")),1),eu("div",eFe,[eu("span",tFe,fe(s.stats.avgWaitingTime||0),1),eu("span",aFe,fe(e.$t("Max-time: --")),1)])])])])])]),eu("div",iFe,[eu("div",sFe,[eu("h4",nFe,fe(e.$t("Overall Ticket Stats")),1)]),eu("div",oFe,[eu("div",rFe,[eu("div",lFe,[eu("div",cFe,[tu(r,{class:"fs_stat_icon_el--default"},{default:br(()=>[tu(b)],void 0),_:1})]),eu("div",dFe,[eu("p",uFe,fe(e.$t("New Tickets")),1),eu("div",pFe,[eu("span",hFe,fe(s.stats.newTickets||0),1),s.stats.newTicketsChange?(Hd(),jd("span",gFe,fe(s.stats.newTicketsChange>0?"+":"")+fe(s.stats.newTicketsChange)+"% ",1)):ou("",!0),eu("span",mFe,fe(s.stats.closedTickets||0)+" "+fe(e.$t("closed")),1)])])]),t[5]||(t[5]=eu("div",{class:"fs_stat_divider"},null,-1)),eu("div",fFe,[eu("div",_Fe,[tu(r,{class:"fs_stat_icon_el--default"},{default:br(()=>[tu(v)],void 0),_:1})]),eu("div",bFe,[eu("p",vFe,fe(e.$t("Not Responded Yet")),1),eu("div",yFe,[eu("span",SFe,fe(s.stats.notResponded||0),1)])])]),t[6]||(t[6]=eu("div",{class:"fs_stat_divider"},null,-1)),eu("div",xFe,[eu("div",wFe,[tu(r,{class:"fs_stat_icon_el--default"},{default:br(()=>[tu(y)],void 0),_:1})]),eu("div",EFe,[eu("p",CFe,fe(e.$t("Currently Responded")),1),eu("div",kFe,[eu("span",TFe,fe(s.stats.currentlyResponded||0),1)])])])]),t[8]||(t[8]=eu("div",{class:"fs_chart_divider"},null,-1)),eu("div",AFe,[eu("div",RFe,[eu("h5",OFe,fe(e.$t("HOURLY TICKET DISTRIBUTION")),1),eu("div",NFe,[t[7]||(t[7]=eu("span",{class:"fs_legend_dot fs_legend_dot--secondary"},null,-1)),eu("span",IFe,fe(e.$t("Number of tickets")),1)])]),eu("div",DFe,[s.hourlyTicketChartData?(Hd(),qd(S,{key:0,chartData:s.hourlyTicketChartData,chartOptions:s.hourlyTicketChartOptions},null,8,["chartData","chartOptions"])):ou("",!0)])])])]),eu("div",MFe,[eu("div",LFe,[eu("h4",PFe,fe(e.$t("Agent Response Stats")),1)]),eu("div",FFe,[eu("div",$Fe,[eu("div",BFe,[eu("div",VFe,[tu(r,{class:"fs_stat_icon_el--default"},{default:br(()=>[tu(v)],void 0),_:1})]),eu("div",UFe,[eu("p",HFe,fe(e.$t("Total Responses")),1),eu("div",zFe,[eu("span",YFe,fe(s.stats.totalResponses||0),1)])])]),t[9]||(t[9]=eu("div",{class:"fs_stat_divider"},null,-1)),eu("div",GFe,[eu("div",WFe,[tu(r,{class:"fs_stat_icon_el--default"},{default:br(()=>[tu(x)],void 0),_:1})]),eu("div",jFe,[eu("p",qFe,fe(e.$t("Tickets Handled")),1),eu("div",KFe,[eu("span",XFe,fe(s.stats.ticketsHandled||0),1)])])]),t[10]||(t[10]=eu("div",{class:"fs_stat_divider"},null,-1)),eu("div",QFe,[eu("div",ZFe,[tu(r,{class:"fs_stat_icon_el--default"},{default:br(()=>[tu(w)],void 0),_:1})]),eu("div",JFe,[eu("p",e$e,fe(e.$t("Active Agents")),1),eu("div",t$e,[eu("span",a$e,fe(s.stats.activeAgents||0),1)])])]),t[11]||(t[11]=eu("div",{class:"fs_stat_divider"},null,-1)),eu("div",i$e,[eu("div",s$e,[tu(r,{class:"fs_stat_icon_el--default"},{default:br(()=>[tu(E)],void 0),_:1})]),eu("div",n$e,[eu("p",o$e,fe(e.$t("Average Response")),1),eu("div",r$e,[eu("span",l$e,fe(s.stats.averageResponse||0),1)])])])]),t[12]||(t[12]=eu("div",{class:"fs_chart_divider"},null,-1)),eu("div",c$e,[eu("h5",d$e,fe(e.$t("HOURLY RESPONSE DISTRIBUTION")),1),eu("div",u$e,[s.hourlyResponseChartData?(Hd(),qd(S,{key:0,chartData:s.hourlyResponseChartData,chartOptions:s.hourlyResponseChartOptions},null,8,["chartData","chartOptions"])):ou("",!0)])])])])],void 0),_:1}),tu(C,{xs:24,sm:24,md:8,lg:8},{default:br(()=>[eu("div",p$e,[eu("div",h$e,[eu("h4",g$e,fe(e.$t("Product Distribution by Tickets")),1)]),eu("div",m$e,[eu("div",f$e,[eu("span",_$e,fe(e.$t("Total Tickets")),1),eu("span",b$e,fe(s.productStats.totalTickets||0),1)]),eu("div",v$e,[(Hd(!0),jd(Pd,null,sc(s.productStats.products,(e,t)=>(Hd(),jd("div",{class:"fs_horizontal_bar_item",key:t},[eu("div",y$e,[eu("div",{class:"fs_horizontal_bar_fill",style:ee({width:n.getProductPercentage(e.tickets,s.productStats.totalTickets)+"%",background:n.getProductColor(t)})},null,4)])]))),128))]),eu("div",S$e,[(Hd(!0),jd(Pd,null,sc(s.productStats.products,(e,t)=>(Hd(),jd("div",{class:"fs_product_item",key:t},[eu("div",x$e,[eu("span",{class:"fs_product_dot",style:ee({background:n.getProductColor(t)})},null,4),eu("span",w$e,fe(e.name),1)]),eu("span",E$e,fe(e.tickets),1)]))),128))]),tu(l,{type:"default",size:"small",class:"fs_view_details_btn",onClick:t[1]||(t[1]=e=>n.handleViewDetails("tickets"))},{default:br(()=>[su(fe(e.$t("View Details")),1)],void 0),_:1})])]),eu("div",C$e,[eu("div",k$e,[eu("h4",T$e,fe(e.$t("Product Distribution by Responses")),1)]),eu("div",A$e,[eu("div",R$e,[eu("span",O$e,fe(e.$t("Total Responses")),1),eu("span",N$e,fe(s.productStats.totalResponses||0),1)]),eu("div",I$e,[s.productResponseChartData?(Hd(),qd(k,{key:0,type:"donut",height:"250",options:s.productResponseChartOptions,series:s.productResponseChartData.series},null,8,["options","series"])):ou("",!0)]),eu("div",D$e,[(Hd(!0),jd(Pd,null,sc(s.productStats.products,(e,t)=>(Hd(),jd("div",{class:"fs_product_item",key:t},[eu("div",M$e,[eu("span",{class:"fs_product_dot",style:ee({background:n.getProductResponseColor(t)})},null,4),eu("span",L$e,fe(e.name),1)]),eu("span",P$e,fe(e.responses),1)]))),128))]),tu(l,{type:"default",size:"small",class:"fs_view_details_btn",onClick:t[2]||(t[2]=e=>n.handleViewDetails("responses"))},{default:br(()=>[su(fe(e.$t("View Details")),1)],void 0),_:1})])])],void 0),_:1})],void 0),_:1})])),[[A,s.loading]])])}],["__scopeId","data-v-59504ea0"]]),$$e={name:"TicketsGrowthChart",props:["date_range","agent_id","product_id","mailbox_id","agent_group_id","url"],components:{BarChartBase:TDe},data:()=>({fetching:!1,stats:{},chartData:!1,maxCumulativeValue:0,chartOptions:{responsive:!0,maintainAspectRatio:!1,scales:{y:{type:"linear",position:"left",grid:{drawOnChartArea:!1},ticks:{callback:function(e){if(Math.floor(e)===e)return e}},beginAtZero:!0},x:{grid:{drawOnChartArea:!1},ticks:{autoSkip:!0,maxTicksLimit:10}}},layout:{padding:{left:16,right:24,top:12,bottom:24}},datasets:{bar:{barThickness:8,categoryPercentage:.7}}}}),mounted(){this.fetchReport()},watch:{date_range:{handler(){this.date_range&&2===this.date_range.length&&this.fetchReport()},deep:!0}},methods:{async fetchReport(){this.fetching=!0,await this.$get(this.url+"/tickets-growth",{date_range:this.date_range,agent_id:this.agent_id,product_id:this.product_id,mailbox_id:this.mailbox_id,agent_group_id:this.agent_group_id}).then(e=>{this.setupChartItems(e.stats)})},setupChartItems(e){const t={labels:[],datasets:[]},a=[];qK(e,(e,i)=>{t.labels.push(i),a.push(parseInt(e))});const i=getComputedStyle(document.documentElement).getPropertyValue("--fs-chart-primary").trim()||"#0cbe7e";t.datasets.push({label:this.$t("Ticket Activity"),backgroundColor:i,data:a}),this.chartData=t}}},B$e={style:{width:"100%",height:"400px"}};const V$e=dH($$e,[["render",function(e,t,a,i,s,n){const o=Zl("bar-chart-base");return Hd(),jd("div",B$e,[s.chartData?(Hd(),qd(o,{key:0,chartData:s.chartData,chartOptions:s.chartOptions},null,8,["chartData","chartOptions"])):ou("",!0)])}]]),U$e={name:"ResponseGrowth",props:["date_range","url","agent_id","product_id","mailbox_id","agent_group_id","type","compact"],components:{BarChartBase:TDe},data:()=>({fetching:!1,stats:{},chartData:!1,maxCumulativeValue:0,chartOptions:{responsive:!0,maintainAspectRatio:!1,scales:{y:{type:"linear",position:"left",grid:{drawOnChartArea:!1},ticks:{callback:function(e){if(Math.floor(e)===e)return e}},beginAtZero:!0},x:{grid:{drawOnChartArea:!1},ticks:{autoSkip:!0,maxTicksLimit:10}}},layout:{padding:{left:16,right:24,top:12,bottom:24}},datasets:{bar:{barThickness:8,categoryPercentage:.7}}}}),methods:{async fetchReport(){this.fetching=!0;const e={date_range:this.date_range,agent_id:this.agent_id,product_id:this.product_id,mailbox_id:this.mailbox_id,agent_group_id:this.agent_group_id,type:this.type};await this.$get(this.url+"/response-growth",e).then(e=>{this.setupChartItems(e.stats)})},setupChartItems(e){const t={labels:[],datasets:[]},a=[];qK(e,(e,i)=>{t.labels.push(i),a.push(parseInt(e))});const i=getComputedStyle(document.documentElement).getPropertyValue("--fs-chart-primary").trim()||"#0cbe7e";t.datasets.push({label:this.$t("Response Stats"),backgroundColor:i,data:a}),this.chartData=t}},mounted(){this.fetchReport()},watch:{date_range:{handler(e){e&&2===e.length&&this.fetchReport()},deep:!0}}},H$e={style:{width:"100%",height:"400px"}};const z$e=dH(U$e,[["render",function(e,t,a,i,s,n){const o=Zl("bar-chart-base");return Hd(),jd("div",H$e,[s.chartData?(Hd(),qd(o,{key:0,chartData:s.chartData,chartOptions:s.chartOptions},null,8,["chartData","chartOptions"])):ou("",!0)])}]]),Y$e={name:"ResolveGrowth",props:["date_range","url","agent_id","product_id","mailbox_id","agent_group_id","type","compact"],components:{BarChartBase:TDe},data:()=>({fetching:!1,stats:{},chartData:!1,maxCumulativeValue:0,chartOptions:{responsive:!0,maintainAspectRatio:!1,scales:{y:{type:"linear",position:"left",grid:{drawOnChartArea:!1},ticks:{callback:function(e){if(Math.floor(e)===e)return e}},beginAtZero:!0},x:{grid:{drawOnChartArea:!1},ticks:{autoSkip:!0,maxTicksLimit:10}}},layout:{padding:{left:16,right:24,top:12,bottom:24}},datasets:{bar:{barThickness:8,categoryPercentage:.7}}}}),mounted(){this.fetchReport()},watch:{date_range:{handler(){this.date_range&&2===this.date_range.length&&this.fetchReport()},deep:!0}},methods:{async fetchReport(){this.fetching=!0;const e={date_range:this.date_range,agent_id:this.agent_id,product_id:this.product_id,mailbox_id:this.mailbox_id,agent_group_id:this.agent_group_id,type:this.type};await this.$get(this.url+"/tickets-resolve-growth",e).then(e=>{this.setupChartItems(e.stats)})},setupChartItems(e){const t={labels:[],datasets:[]},a=[];qK(e,(e,i)=>{t.labels.push(i),a.push(parseInt(e))});const i=getComputedStyle(document.documentElement).getPropertyValue("--fs-chart-primary").trim()||"#0cbe7e";t.datasets.push({label:this.$t("Ticket Resolve Stats"),backgroundColor:i,data:a}),this.chartData=t}}},G$e={style:{width:"100%",height:"400px"}};const W$e=dH(Y$e,[["render",function(e,t,a,i,s,n){const o=Zl("bar-chart-base");return Hd(),jd("div",G$e,[s.chartData?(Hd(),qd(o,{key:0,chartData:s.chartData,chartOptions:s.chartOptions},null,8,["chartData","chartOptions"])):ou("",!0)])}]]),j$e={name:"MyPerformanceReport",components:{IconPack:$z},props:{reports:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1}},data:()=>({}),computed:{iconColor:()=>getComputedStyle(document.documentElement).getPropertyValue("--fs-stat-icon-color").trim()||"#525866",stats(){var e,t,a,i,s,n;if(!this.reports||0===this.reports.length)return null;const o=this.reports[0];return o&&o.active_stat?{interactions:(null==(e=o.stats)?void 0:e.interactions)||0,waiting_tickets:o.active_stat.waiting_tickets||0,average_waiting:o.active_stat.average_waiting||0,max_waiting:o.active_stat.max_waiting||0,likes:(null==(t=o.stats)?void 0:t.likes)||0,dislikes:(null==(a=o.stats)?void 0:a.dislikes)||0}:{interactions:(null==(i=null==o?void 0:o.stats)?void 0:i.interactions)||0,waiting_tickets:0,average_waiting:0,max_waiting:0,likes:(null==(s=null==o?void 0:o.stats)?void 0:s.likes)||0,dislikes:(null==(n=null==o?void 0:o.stats)?void 0:n.dislikes)||0}}}},q$e={key:0,class:"fs_personal_performance_box"},K$e={class:"fs_personal_performance_header"},X$e={class:"fs_personal_performance_title"},Q$e={class:"fs_personal_performance_body"},Z$e={class:"fs_personal_performance_list"},J$e={class:"fs_personal_performance_item"},eBe={class:"fs_personal_performance_icon_label"},tBe={class:"fs_personal_performance_label"},aBe={class:"fs_personal_performance_value"},iBe={class:"fs_personal_performance_item"},sBe={class:"fs_personal_performance_icon_label"},nBe={class:"fs_personal_performance_label"},oBe={class:"fs_personal_performance_value"},rBe={class:"fs_personal_performance_item"},lBe={class:"fs_personal_performance_icon_label"},cBe={class:"fs_personal_performance_label"},dBe={class:"fs_personal_performance_value"},uBe={class:"fs_personal_performance_item"},pBe={class:"fs_personal_performance_icon_label"},hBe={class:"fs_personal_performance_label"},gBe={class:"fs_personal_performance_value"},mBe={key:0,class:"fs_personal_performance_item"},fBe={class:"fs_personal_performance_icon_label"},_Be={class:"fs_personal_performance_label"},bBe={class:"fs_personal_performance_value"},vBe={key:1,class:"fs_personal_performance_item"},yBe={class:"fs_personal_performance_icon_label"},SBe={class:"fs_personal_performance_label"},xBe={class:"fs_personal_performance_value"},wBe={key:1,class:"fs_box_body fs_skeleton_loader"};const EBe=e=>{if(!e||2!==e.length)return"";if(!e[0]||!e[1])return"";const t=Ik(e[0]),a=Ik(e[1]);return t.isValid()&&a.isValid()?t.format("MMM")===a.format("MMM")&&t.format("YYYY")===a.format("YYYY")?`${t.format("MMM DD")} - ${a.format("DD YYYY")}`:`${t.format("MMM DD")} - ${a.format("MMM DD YYYY")}`:""},CBe=e=>e?Ik(e).format("YYYY-MM-DD"):"",kBe=e=>({from:e&&e.length>0?CBe(e[0]):"",to:e&&e.length>1?CBe(e[1]):""}),TBe={name:"AgentReports",components:{MyPerformanceReport:dH(j$e,[["render",function(e,t,a,i,s,n){var o,r,l,c,d,u;const p=Zl("IconPack"),h=OL;return a.loading?(Hd(),jd("div",wBe,[tu(h,{rows:5,animated:""})])):(Hd(),jd("div",q$e,[eu("div",K$e,[eu("div",X$e,fe(e.$t("My Performance")),1)]),eu("div",Q$e,[eu("div",Z$e,[eu("div",J$e,[eu("div",eBe,[tu(p,{"icon-key":"interactions",width:20,height:20,fill:n.iconColor,class:"fs_personal_performance_icon"},null,8,["fill"]),eu("span",tBe,fe(e.$t("Interactions")),1)]),eu("span",aBe,fe((null==(o=n.stats)?void 0:o.interactions)||0),1)]),eu("div",iBe,[eu("div",sBe,[tu(p,{"icon-key":"waiting_tickets",width:15,height:15,fill:n.iconColor,class:"fs_personal_performance_icon"},null,8,["fill"]),eu("span",nBe,fe(e.$t("Waiting Tickets")),1)]),eu("span",oBe,fe((null==(r=n.stats)?void 0:r.waiting_tickets)||0),1)]),eu("div",rBe,[eu("div",lBe,[tu(p,{"icon-key":"average_waiting",width:12,height:12,fill:n.iconColor,class:"fs_personal_performance_icon"},null,8,["fill"]),eu("span",cBe,fe(e.$t("Average Waiting")),1)]),eu("span",dBe,fe((null==(l=n.stats)?void 0:l.average_waiting)||0),1)]),eu("div",uBe,[eu("div",pBe,[tu(p,{"icon-key":"max_waiting",width:13,height:13,fill:n.iconColor,class:"fs_personal_performance_icon"},null,8,["fill"]),eu("span",hBe,fe(e.$t("Max Waiting")),1)]),eu("span",gBe,fe((null==(c=n.stats)?void 0:c.max_waiting)||0),1)]),e.has_pro&&"yes"===e.appVars.agent_feedback_rating?(Hd(),jd("div",mBe,[eu("div",fBe,[tu(p,{"icon-key":"like",width:20,height:20,fill:n.iconColor,class:"fs_personal_performance_icon"},null,8,["fill"]),eu("span",_Be,fe(e.$t("Liked")),1)]),eu("span",bBe,fe((null==(d=n.stats)?void 0:d.likes)||0),1)])):ou("",!0),e.has_pro&&"yes"===e.appVars.agent_feedback_rating?(Hd(),jd("div",vBe,[eu("div",yBe,[tu(p,{"icon-key":"dislike",width:20,height:20,fill:n.iconColor,class:"fs_personal_performance_icon"},null,8,["fill"]),eu("span",SBe,fe(e.$t("Disliked")),1)]),eu("span",xBe,fe((null==(u=n.stats)?void 0:u.dislikes)||0),1)])):ou("",!0)])])]))}],["__scopeId","data-v-f76f62f2"]])},props:{url:String,show_settings:Boolean,show_export_btn:Boolean,is_personal:Boolean,date_range:{type:Array,default:()=>[]},open_setting:Boolean,open_export:Boolean},data(){return{reports:[],loading:!1,sorts:{prop:"responses",order:"descending"},sort_column:"response",sort_type:"descending",include_or_exclude_agents:[],include_or_exclude:"include",open_export_options:!1,repost_export_options:this.appVars.repost_export_options,selected_options:[],checkAll:!1,isIndeterminate:!1}},computed:{sortedAgents(){let e=[];return qK(this.appVars.support_agents,t=>{e.push({key:parseInt(t.id),label:t.full_name})}),e},sortedReports(){let e=this.reports;const t=this.$getData("agents_summary_setting");if("my-reports/my-summary"!=this.url&&t){let a=[];qK(e,e=>{t.agents.includes(e.id)&&a.push(e)}),e=a}return"ascending"==this.sort_type?e.sort((e,t)=>parseInt(e.stats[this.sort_column])>parseInt(t.stats[this.sort_column])?1:-1):e.sort((e,t)=>parseInt(e.stats[this.sort_column])<parseInt(t.stats[this.sort_column])?1:-1)},totals(){let e={responses:0,interactions:0,opens:0,closed:0};return this.has_pro&&"yes"===this.appVars.agent_feedback_rating&&(e={...e,likes:0,dislikes:0}),qK(this.reports,t=>{e.responses+=parseInt(t.stats.responses),e.interactions+=parseInt(t.stats.interactions),e.opens+=parseInt(t.stats.opens),e.closed+=parseInt(t.stats.closed),this.has_pro&&"yes"===this.appVars.agent_feedback_rating&&(e.likes+=parseInt(t.stats.likes),e.dislikes+=parseInt(t.stats.dislikes))}),e},showOrHideSummaries(){return"my-reports/my-summary"!=this.url&&!this.is_personal}},watch:{date_range:{handler(e){e&&e.length>0&&this.getReport()},deep:!0},open_export:{handler(e){e&&(this.open_export_options=!0)},immediate:!1}},methods:{handleCheckAllChange(){const e=((e,t={})=>{const{exportOptions:a=[]}=t;return{selectedOptions:e?Object.keys(a):[],isIndeterminate:!1}})(this.checkAll,{exportOptions:this.repost_export_options});this.selected_options=e.selectedOptions,this.isIndeterminate=e.isIndeterminate},handleColumnChanges(){const e=((e,t={})=>{const{exportOptions:a=[]}=t,i=Object.keys(a).length;return e.length===i?{checkAll:!0,isIndeterminate:!1}:0===e.length?{checkAll:!1,isIndeterminate:!1}:{checkAll:!1,isIndeterminate:!0}})(this.selected_options,{exportOptions:this.repost_export_options});this.checkAll=e.checkAll,this.isIndeterminate=e.isIndeterminate},async getReport(){this.loading=!0;const e=kBe(this.date_range);await this.$get(this.url,e).then(e=>{this.reports=e.summary}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},fetchSummarySettings(){const e=this.$getData("agents_summary_setting");e&&(this.include_or_exclude_agents=e.agents)},closeSetting(){this.$emit("update:open_setting",!1)},closeExportModal(){this.open_export_options=!1,this.$emit("update:open_export",!1)},syncSummary(){this.loading=!0,this.$saveData("agents_summary_setting",{agents:this.include_or_exclude_agents}),this.$emit("update:open_setting",!1),this.getReport()},handleSorting(e){this.sort_column=e.prop,this.sort_type=e.order},getSummaries(e){const{columns:t}=e,a=[];return t.forEach((e,t)=>{if(0===t)return void(a[t]=this.$t("Total Summaries"));const i=this.totals[e.property];a[t]=void 0!==i?i:""}),a},exportReport(){const e=kBe(this.date_range);let t=e.from,a=e.to,i=this.$getData("agents_summary_setting"),s=[];if(i?s=i.agents.toString():(qK(this.appVars.support_agents,e=>{s.push({key:parseInt(e.id),label:e.full_name})}),s=s.toString()),""===s)return this.$handleError(this.$t("No agent found, Please select or make sure you have agents to export")),!1;location.href=window.ajaxurl+"?"+jQuery.param({action:"fs_export_agent_report",_wpnonce:fluentSupportAdmin.nonce,columns:this.selected_options,from_date:t,to_date:a,agents:s,format:"csv"}),this.closeExportModal()}},mounted(){this.getReport(),this.fetchSummarySettings()}},ABe={key:1,class:"fs_agent_report_summary_wrapper"},RBe={class:"fs_report_table_container"},OBe={class:"fs_table_header"},NBe={class:"fs_box_actions"},IBe={class:"fs_table_title"},DBe={class:"fs_table_wrapper"},MBe={class:"fs_customer_name_cell"},LBe={class:"fs_customer_avatar"},PBe=["src","alt"],FBe={class:"fs_customer_info"},$Be={class:"fs_customer_email"},BBe={key:0,style:{margin:"0",padding:"0","list-style":"none"}},VBe={class:"fs_agent_summary_dialog_header"},UBe={class:"fs_agent_summary_title"},HBe={class:"fs_dialog_description_wrapper"},zBe={class:"fs_summary_settings"},YBe={class:"fs_transfer_wrapper fframe_body"},GBe={class:"fs_dialog_footer"},WBe={class:"fs_agent_summary_dialog_header"},jBe={class:"fs_agent_summary_title"},qBe={class:"fs_dialog_description_wrapper"},KBe={class:"fs_summary_settings fframe_body"},XBe={class:"fs_dialog_footer"},QBe={key:2,class:"fs_box_body fs_skeleton_loader"};const ZBe=dH(TBe,[["render",function(e,t,a,i,s,n){const o=Zl("MyPerformanceReport"),r=JP,l=ZP,c=BF,d=vk,u=pD,p=wR,h=ER,g=OL,m=q$;return Hd(),jd("div",{class:ne(["fs_agent_reports",{fs_personal_reports:a.is_personal}])},[a.is_personal?(Hd(),qd(o,{key:0,reports:s.reports,loading:s.loading},null,8,["reports","loading"])):ou("",!0),a.is_personal||s.loading?ou("",!0):(Hd(),jd("div",ABe,[eu("div",RBe,[eu("div",OBe,[eu("div",NBe,[eu("span",IBe,fe(e.$t("Agents Report Summary")),1)])]),eu("div",DBe,[vr((Hd(),qd(l,{class:"fs_agent_reports_table",data:n.sortedReports,"summary-method":n.getSummaries,"show-summary":n.showOrHideSummaries,onSortChange:n.handleSorting,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{default:br(()=>[tu(r,{"min-width":"180px",label:e.$t("Agent")},{default:br(e=>[eu("div",MBe,[eu("div",LBe,[eu("img",{src:e.row.photo,alt:e.row.full_name,class:"fs_avatar_img"},null,8,PBe)]),eu("div",FBe,[su(fe(e.row.full_name?e.row.full_name:"N/A")+" ",1),eu("div",$Be,fe(e.row.email),1)])])]),_:1},8,["label"]),tu(r,{"min-width":"130px",sortable:"custom",prop:"responses",label:e.$t("Responses"),align:"center"},{default:br(e=>{var t;return[su(fe(null==(t=e.row.stats)?void 0:t.responses),1)]}),_:1},8,["label"]),tu(r,{"min-width":"120px",sortable:"custom",prop:"interactions",label:e.$t("Interactions"),align:"center"},{default:br(e=>{var t;return[su(fe(null==(t=e.row.stats)?void 0:t.interactions),1)]}),_:1},8,["label"]),tu(r,{"min-width":"130px",sortable:"custom",prop:"opens",label:e.$t("Open Tickets"),align:"center"},{default:br(e=>{var t;return[su(fe(null==(t=e.row.stats)?void 0:t.opens),1)]}),_:1},8,["label"]),tu(r,{"min-width":"100px",sortable:"custom",prop:"closed",label:e.$t("Closed"),align:"center"},{default:br(e=>{var t;return[su(fe(null==(t=e.row.stats)?void 0:t.closed),1)]}),_:1},8,["label"]),e.has_pro&&"yes"===e.appVars.agent_feedback_rating?(Hd(),qd(r,{key:0,"min-width":"100px",sortable:"custom",prop:"likes",label:e.$t("Likes"),align:"center"},{default:br(e=>{var t;return[su(fe(null==(t=e.row.stats)?void 0:t.likes),1)]}),_:1},8,["label"])):ou("",!0),e.has_pro&&"yes"===e.appVars.agent_feedback_rating?(Hd(),qd(r,{key:1,"min-width":"110px",sortable:"custom",prop:"dislikes",label:e.$t("Dislikes"),align:"center"},{default:br(e=>{var t;return[su(fe(null==(t=e.row.stats)?void 0:t.dislikes),1)]}),_:1},8,["label"])):ou("",!0),tu(r,{"min-width":"200px",label:e.$t("Current Overall")},{default:br(t=>[t.row.active_stat?(Hd(),jd("ul",BBe,[eu("li",null,fe(e.$t("Waiting Tickets"))+": "+fe(t.row.active_stat.waiting_tickets),1),eu("li",null,fe(e.$t("Average Waiting"))+": "+fe(t.row.active_stat.average_waiting),1),eu("li",null,fe(e.$t("Max Waiting"))+": "+fe(t.row.active_stat.max_waiting),1)])):ou("",!0)]),_:1},8,["label"])],void 0),_:1},8,["data","summary-method","show-summary","onSortChange"])),[[m,s.loading]])]),tu(u,{"append-to-body":!0,"model-value":a.open_setting,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:open_setting",t)),class:"fs_dialog fs_agent_summary_dialog",width:"670px",onClose:n.closeSetting},{header:br(()=>[eu("div",VBe,[eu("p",UBe,fe(e.$t("exclude_or_include_in_summary")),1),eu("p",HBe,fe(e.$t("If you don't select any agents then all the agents report will be displayed here otherwise it will show only selected agents report.")),1)])]),footer:br(()=>[eu("span",GBe,[tu(d,{class:"fs_outline_btn",onClick:n.closeSetting},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),tu(d,{class:"fs_filled_btn",type:"primary",onClick:n.syncSummary},{default:br(()=>[su(fe(e.$t("Save")),1)],void 0),_:1},8,["onClick"])])]),default:br(()=>[eu("div",zBe,[eu("div",YBe,[tu(c,{modelValue:s.include_or_exclude_agents,"onUpdate:modelValue":t[0]||(t[0]=e=>s.include_or_exclude_agents=e),data:n.sortedAgents,titles:["Available Agents","Selected Agents"],filterable:"",class:"fs_agent_transfer"},null,8,["modelValue","data"])])])],void 0),_:1},8,["model-value","onClose"]),tu(u,{"append-to-body":!0,modelValue:s.open_export_options,"onUpdate:modelValue":t[4]||(t[4]=e=>s.open_export_options=e),class:"fs_dialog fs_export_options_dialog",width:"45%",onClose:n.closeExportModal},{header:br(()=>[eu("div",WBe,[eu("p",jBe,fe(e.$t("exclude_or_include_summary_column")),1),eu("p",qBe,fe(e.$t("If you don't select any column, by default system will take all.")),1)])]),footer:br(()=>[eu("span",XBe,[tu(d,{class:"fs_outline_btn",onClick:n.closeExportModal},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),tu(d,{class:"fs_filled_btn",type:"primary",onClick:n.exportReport},{default:br(()=>[su(fe(e.$t("Export Agents Summary")),1)],void 0),_:1},8,["onClick"])])]),default:br(()=>[eu("div",KBe,[tu(p,{modelValue:s.checkAll,"onUpdate:modelValue":t[2]||(t[2]=e=>s.checkAll=e),indeterminate:s.isIndeterminate,onChange:n.handleCheckAllChange},{default:br(()=>[s.checkAll?(Hd(),jd(Pd,{key:1},[su(fe(e.$t("Uncheck all")),1)],64)):(Hd(),jd(Pd,{key:0},[su(fe(e.$t("Check all")),1)],64))],void 0),_:1},8,["modelValue","indeterminate","onChange"]),tu(h,{modelValue:s.selected_options,"onUpdate:modelValue":t[3]||(t[3]=e=>s.selected_options=e),class:"fs_summary_export_items",onChange:n.handleColumnChanges},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.repost_export_options,(e,t)=>(Hd(),qd(p,{key:t,"model-value":t,label:e},null,8,["model-value","label"]))),128))],void 0),_:1},8,["modelValue","onChange"])])],void 0),_:1},8,["modelValue","onClose"])])])),s.loading?(Hd(),jd("div",QBe,[tu(g,{rows:5,animated:""})])):ou("",!0)],2)}],["__scopeId","data-v-7067d603"]]),JBe={class:"fs_stat_box"},eVe={class:"fs_stat_icon"},tVe={class:"fs_stat_content"},aVe={class:"fs_stat_label"},iVe={class:"fs_stat_value"};const sVe=dH({name:"StatBox",components:{IconPack:$z},props:{label:{type:String,required:!0},value:{type:[String,Number],default:0},icon:{type:String,required:!0},iconBg:{type:String,default:""},iconColor:{type:String,default:""}},computed:{computedIconBg(){if(this.iconBg)return this.iconBg;return getComputedStyle(document.documentElement).getPropertyValue("--fs-state-faded-lighter").trim()||"#f2f5f8"},computedIconColor(){if(this.iconColor)return this.iconColor;return getComputedStyle(document.documentElement).getPropertyValue("--fs-stat-icon-color").trim()||"#525866"}}},[["render",function(e,t,a,i,s,n){const o=Zl("IconPack");return Hd(),jd("div",JBe,[eu("div",eVe,[tu(o,{"icon-key":a.icon,width:20,height:20,fill:n.computedIconColor},null,8,["icon-key","fill"])]),eu("div",tVe,[eu("p",aVe,fe(a.label),1),eu("span",iVe,fe(a.value),1)])])}]]),nVe={tickets:"new_tickets",new_tickets:"new_tickets",closed:"closed_tickets",closed_tickets:"closed_tickets",responses:"responses",active:"active_agents",active_tickets:"active_tickets",open:"open_tickets",open_tickets:"open_tickets",pending:"new_tickets",replies:"reply",total_replies:"reply",resolved:"closed_tickets"},oVe={key:0,class:"fs_stat_boxes_row"},rVe={key:1,class:"fs_padded_20 fs_skeleton_loader"};const lVe=dH({name:"SideBar",components:{StatBox:sVe},props:{mailbox_id:{type:[String,Number],default:null},product_id:{type:[String,Number],default:null},agent_group_id:{type:[String,Number],default:null},date_range:{type:Array,default:null}},data:()=>({loading:!1,overall_reports:{},isInitialized:!1}),computed:{orderedStats(){const e=[];return Object.keys(this.overall_reports||{}).forEach((t,a)=>{const i=this.overall_reports[t],s=t.toLowerCase();e.push({label:i.title||t,value:i.count||0,icon:nVe[s]||nVe[s.replace("_","")]||nVe[s.split("_")[0]]||"new_tickets",iconBg:""})}),e}},watch:{mailbox_id(){this.isInitialized&&this.fetchReports()},product_id(){this.isInitialized&&this.fetchReports()},agent_group_id(){this.isInitialized&&this.fetchReports()},date_range:{handler(){this.isInitialized&&this.fetchReports()},deep:!0}},mounted(){this.$nextTick(()=>{this.fetchReports(),this.isInitialized=!0})},methods:{fetchReports(){this.loading=!0;const e={};this.mailbox_id&&(e.mailbox_id=this.mailbox_id),this.product_id&&(e.product_id=this.product_id),this.agent_group_id&&(e.agent_group_id=this.agent_group_id),this.date_range&&Array.isArray(this.date_range)&&2===this.date_range.length&&this.date_range[0]&&this.date_range[1]&&(e.date_range=this.date_range),this.$get("reports/stats",e).then(e=>{this.overall_reports=e.overall_reports||{}}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}}},[["render",function(e,t,a,i,s,n){const o=Zl("StatBox"),r=OL;return s.loading?(Hd(),jd("div",rVe,[tu(r,{rows:3,animated:""})])):(Hd(),jd("div",oVe,[(Hd(!0),jd(Pd,null,sc(n.orderedStats,(e,t)=>(Hd(),qd(o,{key:e.label||t,label:e.label,value:e.value,icon:e.icon,"icon-bg":e.iconBg,"icon-color":e.iconColor},null,8,["label","value","icon","icon-bg","icon-color"]))),128))]))}]]),cVe=[{text:"Today",value:()=>[Ik().startOf("day").toDate(),Ik().endOf("day").toDate()]},{text:"This Week",value:()=>[Ik().startOf("week").toDate(),Ik().endOf("week").toDate()]},{text:"Last Week",value:()=>[Ik().subtract(1,"week").startOf("week").toDate(),Ik().subtract(1,"week").endOf("week").toDate()]},{text:"Last Month",value:()=>[Ik().subtract(1,"month").startOf("month").toDate(),Ik().subtract(1,"month").endOf("month").toDate()]},{text:"Last 3 Months",value:()=>[Ik().subtract(3,"month").startOf("month").toDate(),Ik().endOf("day").toDate()]},{text:"Last 6 Months",value:()=>[Ik().subtract(6,"month").startOf("month").toDate(),Ik().endOf("day").toDate()]},{text:"Last 1 Year",value:()=>[Ik().subtract(1,"year").startOf("day").toDate(),Ik().endOf("day").toDate()]}],dVe=[{text:"Today",value:()=>[Ik().startOf("day").toDate(),Ik().endOf("day").toDate()]},{text:"Yesterday",value:()=>[Ik().subtract(1,"day").startOf("day").toDate(),Ik().subtract(1,"day").endOf("day").toDate()]},{text:"This Week",value:()=>[Ik().startOf("week").toDate(),Ik().endOf("week").toDate()]},{text:"Last 7 Days",value:()=>[Ik().subtract(6,"day").startOf("day").toDate(),Ik().endOf("day").toDate()]},{text:"Last 2 Weeks",value:()=>[Ik().subtract(2,"week").startOf("week").toDate(),Ik().subtract(1,"week").endOf("week").toDate()]},{text:"This Month",value:()=>[Ik().startOf("month").toDate(),Ik().endOf("month").toDate()]},{text:"Last Month",value:()=>[Ik().subtract(1,"month").startOf("month").toDate(),Ik().subtract(1,"month").endOf("month").toDate()]}],uVe={name:"Reports",props:["date_range"],components:{TicketsChart:V$e,ResponseChart:z$e,ResolveChart:W$e,AgentReports:ZBe,SideBar:lVe,Document:Document,NarrowPromo:Hie,IconPack:$z},data(){return{loading:!1,stat_loading:!1,currently_showing:"tickets-chart",localDateRange:this.date_range,open_setting:!1,open_export:!1,shortcuts:cVe,showing_charts:!0,chartRefreshKey:0,chartMaps:{"tickets-chart":"Ticket Stats","resolve-chart":"Resolve Stats","response-chart":"Response Stats"},agent:""}},computed:{formattedDateRange(){return EBe(this.localDateRange)}},watch:{date_range:{handler(e){this.localDateRange=e},deep:!0}},methods:{handleDateChange(){this.$emit("date-change",this.localDateRange)},disabledDate:e=>e.getTime()>Date.now(),handleComponentChange(e){this.currently_showing=e},handleExportClick(){this.open_export=!0},filterReport(){this.chartRefreshKey+=1}},mounted(){this.$setTitle("Reports")}},pVe={class:"fs_agents_report"},hVe={key:0},gVe={class:"fs_inside_menu_component_header"},mVe={class:"fs_component_head"},fVe={class:"fs_page_title"},_Ve={class:"fs_box_actions"},bVe={class:"fs_date_button_group"},vVe={class:"fs_date_button_group_item fs_date_picker_wrapper"},yVe={class:"fs_date_display"},SVe={key:0,class:"fs_date_text"},xVe={key:1,class:"fs_date_placeholder"},wVe={class:"fs-ml-5"},EVe={class:"fs_reports_main_content"},CVe={class:"fs_box"},kVe={class:"fs_box_header fs_agent_report_header"},TVe={class:"fs_section_title"},AVe={class:"fs_status_tabs"},RVe={class:"fs_segmented_control"},OVe=["onClick"],NVe={class:"fs_box_body"},IVe={class:"fs_chart_container",style:{height:"400px"}},DVe={style:{"margin-top":"24px"}};const MVe=dH(uVe,[["render",function(e,t,a,i,s,n){const o=Zl("IconPack"),r=KI,l=vk,c=Zl("SideBar"),d=Zl("agent-reports"),u=Zl("NarrowPromo"),p=q$;return Hd(),jd("div",pVe,[e.has_pro?(Hd(),jd("div",hVe,[eu("div",gVe,[eu("div",mVe,[eu("h3",fVe,fe(e.$t("Agents Reports")),1)]),eu("div",_Ve,[eu("div",bVe,[eu("div",vVe,[eu("div",yVe,[tu(o,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),n.formattedDateRange?(Hd(),jd("span",SVe,fe(n.formattedDateRange),1)):(Hd(),jd("span",xVe,fe(e.$t("Select date range")),1))]),tu(r,{modelValue:s.localDateRange,"onUpdate:modelValue":t[0]||(t[0]=e=>s.localDateRange=e),type:"daterange",editable:!1,onChange:n.handleDateChange,"range-separator":"To","disabled-date":n.disabledDate,"value-format":"YYYY-MM-DD","start-placeholder":e.$t("Start date"),"end-placeholder":e.$t("End date"),shortcuts:s.shortcuts,class:"fs_date_range_picker"},null,8,["modelValue","onChange","disabled-date","start-placeholder","end-placeholder","shortcuts"])])]),tu(l,{size:"small",class:"fs_settings_button",onClick:t[1]||(t[1]=e=>s.open_setting=!0)},{default:br(()=>[...t[4]||(t[4]=[eu("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M0 7.2285C0 6.57975 0.0825 5.95125 0.237 5.3505C0.651349 5.37228 1.06365 5.27906 1.42833 5.08115C1.79301 4.88324 2.09586 4.58834 2.3034 4.22906C2.51095 3.86977 2.6151 3.4601 2.60436 3.04532C2.59361 2.63053 2.46837 2.2268 2.2425 1.87875C3.14921 0.986677 4.26809 0.340122 5.49375 0C5.68199 0.370104 5.96898 0.6809 6.32294 0.897983C6.6769 1.11506 7.08402 1.22997 7.49925 1.22997C7.91447 1.22997 8.3216 1.11506 8.67556 0.897983C9.02952 0.6809 9.31651 0.370104 9.50475 0C10.7304 0.340122 11.8493 0.986677 12.756 1.87875C12.5299 2.22687 12.4045 2.63075 12.3936 3.04572C12.3828 3.4607 12.487 3.87057 12.6946 4.23001C12.9023 4.58944 13.2054 4.88442 13.5703 5.08231C13.9352 5.2802 14.3477 5.37328 14.7622 5.35125C14.9167 5.95125 14.9992 6.57975 14.9992 7.2285C14.9992 7.87725 14.9167 8.50575 14.7622 9.1065C14.3478 9.08457 13.9354 9.17768 13.5706 9.37553C13.2059 9.57339 12.9029 9.86827 12.6953 10.2276C12.4876 10.5869 12.3834 10.9966 12.3941 11.4115C12.4048 11.8263 12.5301 12.2301 12.756 12.5782C11.8493 13.4703 10.7304 14.1169 9.50475 14.457C9.31651 14.0869 9.02952 13.7761 8.67556 13.559C8.3216 13.3419 7.91447 13.227 7.49925 13.227C7.08402 13.227 6.6769 13.3419 6.32294 13.559C5.96898 13.7761 5.68199 14.0869 5.49375 14.457C4.26809 14.1169 3.14921 13.4703 2.2425 12.5782C2.46863 12.2301 2.59405 11.8262 2.60488 11.4113C2.61571 10.9963 2.51152 10.5864 2.30386 10.227C2.09619 9.86755 1.79314 9.57257 1.42823 9.37469C1.06332 9.1768 0.650778 9.08372 0.23625 9.10575C0.0825 8.5065 0 7.878 0 7.2285ZM3.603 9.4785C4.0755 10.2967 4.2105 11.238 4.026 12.1215C4.332 12.339 4.6575 12.5272 4.99875 12.684C5.68625 12.0681 6.57699 11.7279 7.5 11.7285C8.445 11.7285 9.3285 12.0817 10.0012 12.684C10.3425 12.5272 10.668 12.339 10.974 12.1215C10.7846 11.2185 10.9352 10.2773 11.397 9.4785C11.858 8.67928 12.5978 8.07837 13.4745 7.791C13.5092 7.4168 13.5092 7.0402 13.4745 6.666C12.5975 6.37879 11.8574 5.77786 11.3962 4.9785C10.9345 4.1797 10.7838 3.23853 10.9732 2.3355C10.6673 2.11794 10.3417 1.92961 10.0005 1.773C9.31319 2.3887 8.42276 2.72896 7.5 2.7285C6.57699 2.72914 5.68625 2.38887 4.99875 1.773C4.6576 1.92962 4.33192 2.11795 4.026 2.3355C4.21542 3.23853 4.06479 4.1797 3.603 4.9785C3.14203 5.77772 2.40224 6.37863 1.5255 6.666C1.49081 7.0402 1.49081 7.4168 1.5255 7.791C2.40252 8.0782 3.1426 8.67914 3.60375 9.4785H3.603ZM7.5 9.4785C6.90326 9.4785 6.33097 9.24145 5.90901 8.81949C5.48705 8.39753 5.25 7.82524 5.25 7.2285C5.25 6.63176 5.48705 6.05947 5.90901 5.63751C6.33097 5.21555 6.90326 4.9785 7.5 4.9785C8.09674 4.9785 8.66903 5.21555 9.09099 5.63751C9.51295 6.05947 9.75 6.63176 9.75 7.2285C9.75 7.82524 9.51295 8.39753 9.09099 8.81949C8.66903 9.24145 8.09674 9.4785 7.5 9.4785ZM7.5 7.9785C7.69891 7.9785 7.88968 7.89948 8.03033 7.75883C8.17098 7.61818 8.25 7.42741 8.25 7.2285C8.25 7.02959 8.17098 6.83882 8.03033 6.69817C7.88968 6.55752 7.69891 6.4785 7.5 6.4785C7.30109 6.4785 7.11032 6.55752 6.96967 6.69817C6.82902 6.83882 6.75 7.02959 6.75 7.2285C6.75 7.42741 6.82902 7.61818 6.96967 7.75883C7.11032 7.89948 7.30109 7.9785 7.5 7.9785V7.9785Z",fill:"#525866"})],-1)])],void 0),_:1}),tu(l,{size:"small",class:"fs_export_button",onClick:n.handleExportClick},{default:br(()=>[t[5]||(t[5]=eu("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M5.25 1.773V3.273H1.5V13.773H13.5V7.023H15V14.523C15 14.7219 14.921 14.9127 14.7803 15.0533C14.6397 15.194 14.4489 15.273 14.25 15.273H0.75C0.551088 15.273 0.360322 15.194 0.21967 15.0533C0.0790176 14.9127 0 14.7219 0 14.523V2.523C0 2.32409 0.0790176 2.13332 0.21967 1.99267C0.360322 1.85202 0.551088 1.773 0.75 1.773H5.25ZM12.7125 3.273L10.5 1.0605L11.5605 0L15.5655 4.005C15.6284 4.06793 15.6711 4.14808 15.6885 4.23532C15.7058 4.32256 15.6969 4.41298 15.6629 4.49515C15.6288 4.57733 15.5712 4.64758 15.4973 4.69704C15.4234 4.74649 15.3364 4.77292 15.2475 4.773H9C8.60218 4.773 8.22064 4.93104 7.93934 5.21234C7.65804 5.49364 7.5 5.87518 7.5 6.273V10.773H6V6.273C6 5.47735 6.31607 4.71429 6.87868 4.15168C7.44129 3.58907 8.20435 3.273 9 3.273H12.7125Z",fill:"#525866"})],-1)),eu("span",wVe,fe(e.$t("Export")),1)],void 0),_:1},8,["onClick"])])]),vr((Hd(),jd("div",null,[tu(c,{date_range:s.localDateRange},null,8,["date_range"])])),[[p,s.stat_loading]]),vr((Hd(),jd("div",EVe,[eu("div",CVe,[eu("div",kVe,[eu("h3",TVe,fe(e.$t("Agents Statistics")),1),eu("div",AVe,[eu("div",RVe,[(Hd(!0),jd(Pd,null,sc(s.chartMaps,(e,t)=>(Hd(),jd("button",{key:t,onClick:e=>n.handleComponentChange(t),class:ne(["fs_segment_button",{fs_segment_active:s.currently_showing===t}])},fe(e),11,OVe))),128))])])]),eu("div",NVe,[eu("div",IVe,[s.showing_charts?(Hd(),qd(ec(s.currently_showing),{key:`${s.currently_showing}-${s.chartRefreshKey}`,date_range:s.localDateRange,url:"reports",agent_id:s.agent,type:"agent"},null,8,["date_range","agent_id"])):ou("",!0)])])]),eu("div",DVe,[tu(d,{url:"reports/agents-summary",show_settings:!0,show_export_btn:!0,date_range:a.date_range,open_setting:s.open_setting,open_export:s.open_export,"onUpdate:open_setting":t[2]||(t[2]=e=>s.open_setting=e),"onUpdate:open_export":t[3]||(t[3]=e=>s.open_export=e)},null,8,["date_range","open_setting","open_export"])])])),[[p,s.loading]])])):(Hd(),qd(u,{key:1,heading:e.$t("get_overall_reports"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))])}]]),LVe={class:"fs_inside_menu_component_header"},PVe={class:"fs_component_head"},FVe={class:"fs_page_title"},$Ve={class:"fs_box_actions"},BVe={class:"fs_date_button_group"},VVe={class:"fs_date_button_group_item fs_date_picker_wrapper"},UVe={class:"fs_date_display"},HVe={key:0,class:"fs_date_text"},zVe={key:1,class:"fs_date_placeholder"},YVe={class:"fs_stat_boxes_row"},GVe={class:"fs_personal_report"},WVe={class:"fs_box_wrapper"},jVe={class:"fs_box"},qVe={class:"fs_box_header fs_personal_report_header"},KVe={class:"fs_personal_report_title"},XVe={class:"fs_status_tabs"},QVe={class:"fs_segmented_control"},ZVe=["onClick"],JVe={class:"fs_box_body"};const eUe=dH({name:"PersonalReports",props:["url","date_range"],emits:["date-change"],components:{ResponseChart:z$e,ResolveChart:W$e,AgentReports:ZBe,StatBox:sVe,ArrowDown:fS,Calendar:SS,Filter:GS,Download:zS,IconPack:$z},data(){return{loading:!1,stat_loading:!1,overall_reports:{},currently_showing:"resolve-chart",showing_charts:!0,localDateRange:this.date_range,chartMaps:{"resolve-chart":this.$t("Resolve Stats"),"response-chart":this.$t("Response Stats")},me:this.appVars.me,today_reports:{},shortcuts:cVe}},computed:{formattedDateRange(){return EBe(this.localDateRange)},mergedReports(){const e=[],t={tickets:"new_tickets",new_tickets:"new_tickets",closed:"closed_tickets",closed_tickets:"closed_tickets",responses:"responses",active:"active_agents",active_tickets:"active_tickets",open:"open_tickets",open_tickets:"open_tickets",pending:"new_tickets",replies:"reply",total_replies:"total_replies",resolved:"closed_tickets"};return Object.keys(this.overall_reports||{}).forEach(a=>{const i=this.overall_reports[a],s=a.toLowerCase();e.push({label:i.title||a,value:i.count||0,icon:t[s]||t[s.replace("_","")]||t[s.split("_")[0]]||"new_tickets",iconBg:""})}),e}},watch:{date_range:{handler(e){this.localDateRange=e,this.fetchReports()},deep:!0}},methods:{handleDateChange(){this.$emit("date-change",this.localDateRange),this.fetchReports()},async fetchReports(){this.loading=!0;const e={agent_id:this.me.id};this.localDateRange&&Array.isArray(this.localDateRange)&&2===this.localDateRange.length&&this.localDateRange[0]&&this.localDateRange[1]&&(e.date_range=this.localDateRange),await this.$get(this.url,e).then(e=>{this.overall_reports=e.overall_reports,this.today_reports=e.today_reports}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},handleComponentChange(e){this.currently_showing=e},filterReport(){const e=this.currently_showing;this.currently_showing={render:()=>{}},this.$nextTick(()=>{this.currently_showing=e})}},mounted(){this.fetchReports(),this.$setTitle(this.$t("Personal Reports"))}},[["render",function(e,t,a,i,s,n){const o=Zl("IconPack"),r=Zl("Calendar"),l=jx,c=KI,d=Zl("StatBox"),u=lO,p=Zl("agent-reports"),h=rO,g=q$;return Hd(),jd(Pd,null,[eu("div",LVe,[eu("div",PVe,[eu("h3",FVe,fe(e.$t("Personal Reports")),1)]),eu("div",$Ve,[eu("div",BVe,[eu("div",VVe,[eu("div",UVe,[tu(o,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),n.formattedDateRange?(Hd(),jd("span",HVe,fe(n.formattedDateRange),1)):(Hd(),jd("span",zVe,fe(e.$t("Select date range")),1))]),tu(c,{modelValue:s.localDateRange,"onUpdate:modelValue":t[0]||(t[0]=e=>s.localDateRange=e),type:"daterange",editable:!1,"range-separator":e.$t("To"),"start-placeholder":e.$t("Start"),"end-placeholder":e.$t("End"),"unlink-panels":!0,shortcuts:s.shortcuts,onChange:n.handleDateChange,"value-format":"YYYY-MM-DD",class:"fs_date_range_picker"},{"prefix-icon":br(()=>[tu(l,null,{default:br(()=>[tu(r)],void 0),_:1})]),_:1},8,["modelValue","range-separator","start-placeholder","end-placeholder","shortcuts","onChange"])])])])]),vr((Hd(),jd("div",YVe,[(Hd(!0),jd(Pd,null,sc(n.mergedReports,(e,t)=>(Hd(),qd(d,{key:t,label:e.label,value:e.value,icon:e.icon,"icon-bg":e.iconBg},null,8,["label","value","icon","icon-bg"]))),128))])),[[g,s.loading]]),eu("div",GVe,[vr((Hd(),jd("div",WVe,[tu(h,{gutter:30},{default:br(()=>[tu(u,{sm:24,md:14,lg:16},{default:br(()=>[eu("div",jVe,[eu("div",qVe,[eu("h3",KVe,fe(e.$t("My Statistics")),1),eu("div",XVe,[eu("div",QVe,[(Hd(!0),jd(Pd,null,sc(s.chartMaps,(e,t)=>(Hd(),jd("button",{key:t,onClick:e=>n.handleComponentChange(t),class:ne(["fs_segment_button",{fs_segment_active:s.currently_showing===t}])},fe(e),11,ZVe))),128))])])]),eu("div",JVe,[s.showing_charts?(Hd(),qd(ec(s.currently_showing),{key:0,date_range:s.localDateRange,url:"my-reports",compact:!0},null,8,["date_range"])):ou("",!0)])])],void 0),_:1}),tu(u,{sm:24,md:10,lg:8},{default:br(()=>[tu(p,{url:"my-reports/my-summary",is_personal:!0,date_range:s.localDateRange},null,8,["date_range"])],void 0),_:1})],void 0),_:1})])),[[g,s.loading]])])],64)}]]),tUe={name:"ProductReportSummary",components:{Modal:Eie},props:{url:String,show_settings:Boolean,show_export_btn:Boolean,date_range:{type:Array,default:()=>["",""]}},data(){return{reports:[],loading:!1,sorts:{prop:"responses",order:"descending"},sort_column:"response",sort_type:"descending",valueFormat:"YYYY-MM-DD",open_setting:!1,include_or_exclude_agents:[],include_or_exclude:"include",open_export_options:!1,repost_export_options:this.appVars.repost_export_options,selected_options:[],checkAll:!1,isIndeterminate:!1}},computed:{sortedReports(){let e=[...this.reports];return this.$getData("agents_summary_setting"),"ascending"==this.sort_type?e.sort((e,t)=>parseInt(e.stats[this.sort_column])>parseInt(t.stats[this.sort_column])?1:-1):e.sort((e,t)=>parseInt(e.stats[this.sort_column])<parseInt(t.stats[this.sort_column])?1:-1)},totals(){const e={responses:0,opens:0,closed:0,interactions:0};return qK(this.reports,t=>{e.responses+=parseInt(t.stats.responses),e.interactions+=parseInt(t.stats.interactions),e.opens+=parseInt(t.stats.opens),e.closed+=parseInt(t.stats.closed),e.tickets+=parseInt(t.stats.interactions)}),e},showOrHideSummaries(){return"my-reports/my-summary"!=this.url}},watch:{date_range:{handler(e){e&&e[0]&&e[1]&&this.getReport()},deep:!0},sortedReports:{handler(){this.$nextTick(()=>{this.addClassToSummaryRow()})}}},methods:{async getReport(){this.date_range&&this.date_range[0]&&this.date_range[1]&&(this.loading=!0,await this.$get(this.url,{from:this.date_range[0]?Ik(this.date_range[0]).format("YYYY-MM-DD"):"",to:this.date_range[1]?Ik(this.date_range[1]).format("YYYY-MM-DD"):""}).then(e=>{this.reports=e.summary}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1}))},handleSorting(e){this.sort_column=e.prop,this.sort_type=e.order},onlyPastDates:e=>new Date<=e,getSummaries(e){const{columns:t}=e,a=[];return t.forEach((e,t)=>{a[t]=0!==t?this.totals[e.property]:this.$t("Total Summaries")}),this.$nextTick(()=>{this.addClassToSummaryRow()}),a},addClassToSummaryRow(){var e;const t=null==(e=this.$el)?void 0:e.querySelector(".fs_table_wrapper .el-table__footer-wrapper tfoot tr, .fs_table_wrapper .el-table__footer-wrapper tr");t&&(t.classList.add("fs_table_row"),t.querySelectorAll("td").forEach(e=>e.classList.add("fs_table_cell")))}},mounted(){this.date_range&&this.date_range[0]&&this.date_range[1]&&this.getReport()}},aUe={style:{"margin-top":"20px"},class:"fs_agent_reports"},iUe={key:0},sUe={class:"fs_report_table_container"},nUe={class:"fs_table_header"},oUe={class:"fs_box_actions"},rUe={class:"fs_table_title"},lUe={class:"fs_table_wrapper"},cUe={key:1,class:"fs_box_body fs_skeleton_loader"};const dUe={class:"fs_agents_report"},uUe={key:0,class:"fs_inside_menu_component_header"},pUe={class:"fs_component_head"},hUe={class:"fs_page_title"},gUe={class:"fs_box_actions"},mUe={class:"fs_date_button_group"},fUe={class:"fs_date_button_group_item fs_date_picker_wrapper"},_Ue={class:"fs_date_display"},bUe={key:0,class:"fs_date_text"},vUe={key:1,class:"fs_date_placeholder"},yUe={key:2,class:"fs_box_wrapper"},SUe={class:"fs_box"},xUe={class:"fs_box_header"},wUe={class:"fs_product_statistics_header"},EUe={class:"fs_product_statistics_title"},CUe={class:"fs_status_tabs"},kUe={class:"fs_segmented_control"},TUe=["onClick"],AUe={class:"fs_box_body"};const RUe=dH({name:"ProductReports",props:["date_range"],components:{TicketsChart:V$e,ResponseChart:z$e,ResolveChart:W$e,ProductReportSummary:dH(tUe,[["render",function(e,t,a,i,s,n){const o=JP,r=ZP,l=OL,c=q$;return Hd(),jd("div",aUe,[s.loading?(Hd(),jd("div",cUe,[tu(l,{rows:5,animated:""})])):(Hd(),jd("div",iUe,[eu("div",sUe,[eu("div",nUe,[eu("div",oUe,[eu("span",rUe,fe(e.$t("Product Summary")),1)])]),eu("div",lUe,[vr((Hd(),qd(r,{data:n.sortedReports,"summary-method":n.getSummaries,"show-summary":n.showOrHideSummaries,onSortChange:n.handleSorting,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{default:br(()=>[tu(o,{"min-width":"200px",label:e.$t("Product")},{default:br(e=>[su(fe(e.row.title),1)]),_:1},8,["label"]),tu(o,{sortable:"custom",prop:"responses",label:e.$t("Responses")},{default:br(e=>[su(fe(e.row.stats.responses),1)]),_:1},8,["label"]),tu(o,{sortable:"custom",prop:"interactions",label:e.$t("Interactions")},{default:br(e=>[su(fe(e.row.stats.interactions),1)]),_:1},8,["label"]),tu(o,{sortable:"custom",prop:"opens",label:e.$t("Open Tickets")},{default:br(e=>[su(fe(e.row.stats.opens),1)]),_:1},8,["label"]),tu(o,{sortable:"custom",prop:"closed",label:e.$t("Closed")},{default:br(e=>[su(fe(e.row.stats.closed),1)]),_:1},8,["label"])],void 0),_:1},8,["data","summary-method","show-summary","onSortChange"])),[[c,s.loading]])])])]))])}],["__scopeId","data-v-093761e6"]]),SideBar:lVe,NarrowPromo:Hie,IconPack:$z},data(){return{loading:!1,stat_loading:!1,currently_showing:"tickets-chart",localDateRange:this.date_range,showing_charts:!0,shortcuts:cVe,chartMaps:{"tickets-chart":"Ticket Stats","resolve-chart":"Resolve Stats","response-chart":"Response Stats"},product:""}},computed:{formattedDateRange(){return EBe(this.localDateRange)}},watch:{date_range:{handler(e){this.localDateRange=e},deep:!0}},methods:{handleDateChange(){this.$emit("date-change",this.localDateRange)},filterReport(){const e=this.currently_showing;this.currently_showing={render:()=>{}},this.$nextTick(()=>{this.currently_showing=e})},handleComponentChange(e){this.currently_showing=e}},mounted(){this.$setTitle("Reports")}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A,l=Zl("IconPack"),c=KI,d=Zl("SideBar"),u=Zl("product-report-summary"),p=lO,h=rO,g=Zl("NarrowPromo"),m=q$;return Hd(),jd("div",dUe,[e.has_pro?(Hd(),jd("div",uUe,[eu("div",pUe,[eu("h3",hUe,fe(e.$t("Product Reports")),1)]),eu("div",gUe,[tu(r,{clearable:"",filterable:"",placeholder:e.$t("All Product"),onChange:n.filterReport,modelValue:s.product,"onUpdate:modelValue":t[0]||(t[0]=e=>s.product=e),class:"fs_report_by_product fs_select_field fs_staff_filter fs_select_field_min_width"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(e.appVars.support_products,e=>(Hd(),qd(o,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["placeholder","onChange","modelValue"]),eu("div",mUe,[eu("div",fUe,[eu("div",_Ue,[tu(l,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),n.formattedDateRange?(Hd(),jd("span",bUe,fe(n.formattedDateRange),1)):(Hd(),jd("span",vUe,fe(e.$t("Select date range")),1))]),tu(c,{modelValue:s.localDateRange,"onUpdate:modelValue":t[1]||(t[1]=e=>s.localDateRange=e),type:"daterange",editable:!1,"range-separator":e.$t("To"),"start-placeholder":e.$t("Start"),"end-placeholder":e.$t("End"),"unlink-panels":!0,shortcuts:s.shortcuts,"value-format":"YYYY-MM-DD",onChange:n.handleDateChange,class:"fs_date_range_picker"},null,8,["modelValue","range-separator","start-placeholder","end-placeholder","shortcuts","onChange"])])])])])):ou("",!0),e.has_pro?(Hd(),qd(d,{key:1,product_id:s.product,date_range:s.localDateRange},null,8,["product_id","date_range"])):ou("",!0),e.has_pro?vr((Hd(),jd("div",yUe,[tu(h,{gutter:30},{default:br(()=>[tu(p,{sm:24,md:24,lg:24},{default:br(()=>[eu("div",SUe,[eu("div",xUe,[eu("div",wUe,[eu("h4",EUe,fe(e.$t("Product Statistics")),1),eu("div",CUe,[eu("div",kUe,[(Hd(!0),jd(Pd,null,sc(s.chartMaps,(e,t)=>(Hd(),jd("button",{key:t,onClick:e=>n.handleComponentChange(t),class:ne(["fs_segment_button",{fs_segment_active:s.currently_showing===t}])},fe(e),11,TUe))),128))])])])]),eu("div",AUe,[s.showing_charts?(Hd(),qd(ec(s.currently_showing),{key:0,date_range:s.localDateRange,url:"product-reports",product_id:s.product,type:"product"},null,8,["date_range","product_id"])):ou("",!0)])]),tu(u,{url:"product-reports/product-reports-summary",show_settings:!0,show_export_btn:!0,date_range:s.localDateRange},null,8,["date_range"])],void 0),_:1})],void 0),_:1})])),[[m,s.loading]]):(Hd(),qd(g,{key:3,heading:e.$t("get_overall_reports"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))])}]]),OUe={name:"BusinessBoxReportSummary",components:{Modal:Eie},props:{url:String,show_settings:Boolean,show_export_btn:Boolean,date_range:{type:Array,default:()=>["",""]},mailbox_id:{type:[String,Number],default:""}},data(){return{reports:[],loading:!1,sorts:{prop:"responses",order:"descending"},sort_column:"response",sort_type:"descending",valueFormat:"YYYY-MM-DD",open_setting:!1,include_or_exclude_agents:[],include_or_exclude:"include",open_export_options:!1,repost_export_options:this.appVars.repost_export_options,selected_options:[],checkAll:!1,isIndeterminate:!1}},computed:{sortedReports(){let e=this.reports;return this.$getData("agents_summary_setting"),"ascending"==this.sort_type?e.sort((e,t)=>parseInt(e.stats[this.sort_column])>parseInt(t.stats[this.sort_column])?1:-1):e.sort((e,t)=>parseInt(e.stats[this.sort_column])<parseInt(t.stats[this.sort_column])?1:-1)},totals(){const e={responses:0,opens:0,closed:0,interactions:0};return qK(this.reports,t=>{e.responses+=parseInt(t.stats.responses),e.interactions+=parseInt(t.stats.interactions),e.opens+=parseInt(t.stats.opens),e.closed+=parseInt(t.stats.closed)}),e},showOrHideSummaries(){return"my-reports/my-summary"!=this.url}},watch:{date_range:{handler(e){e&&e[0]&&e[1]&&this.getReport()},deep:!0},mailbox_id(){this.date_range&&this.date_range[0]&&this.date_range[1]&&this.getReport()}},methods:{async getReport(){if(!this.date_range||!this.date_range[0]||!this.date_range[1])return;this.loading=!0;const e={from:this.date_range[0]?Ik(this.date_range[0]).format("YYYY-MM-DD"):"",to:this.date_range[1]?Ik(this.date_range[1]).format("YYYY-MM-DD"):""};this.mailbox_id&&(e.mailbox_id=this.mailbox_id),await this.$get(this.url,e).then(e=>{this.reports=e.summary}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},handleSorting(e){this.sort_column=e.prop,this.sort_type=e.order},onlyPastDates:e=>new Date<=e,getSummaries(e){const{columns:t}=e,a=[];return t.forEach((e,t)=>{a[t]=0!==t?this.totals[e.property]:this.$t("Total Summaries")}),this.$nextTick(()=>{this.addClassToSummaryRow()}),a},addClassToSummaryRow(){var e;const t=null==(e=this.$el)?void 0:e.querySelector(".fs_table_wrapper .el-table__footer-wrapper tfoot tr, .fs_table_wrapper .el-table__footer-wrapper tr");t&&(t.classList.add("fs_table_row"),t.querySelectorAll("td").forEach(e=>e.classList.add("fs_table_cell")))}},mounted(){this.date_range&&this.date_range[0]&&this.date_range[1]&&this.getReport()}},NUe={style:{"margin-top":"20px"},class:"fs_agent_reports"},IUe={key:0},DUe={class:"fs_report_table_container"},MUe={class:"fs_table_header"},LUe={class:"fs_box_actions"},PUe={class:"fs_table_title"},FUe={class:"fs_table_wrapper"},$Ue={key:1,class:"fs_box_body fs_skeleton_loader"};const BUe={class:"fs_agents_report"},VUe={key:0,class:"fs_inside_menu_component_header"},UUe={class:"fs_component_head"},HUe={class:"fs_page_title"},zUe={class:"fs_box_actions"},YUe={class:"fs_date_button_group"},GUe={class:"fs_date_button_group_item fs_date_picker_wrapper"},WUe={class:"fs_date_display"},jUe={key:0,class:"fs_date_text"},qUe={key:1,class:"fs_date_placeholder"},KUe={key:2,class:"fs_box_wrapper"},XUe={class:"fs_box"},QUe={class:"fs_box_header fs_agent_report_header"},ZUe={class:"fs_section_title"},JUe={class:"fs_status_tabs"},eHe={class:"fs_segmented_control"},tHe=["onClick"],aHe={class:"fs_box_body"};const iHe=dH({name:"BusinessBoxReports",props:["date_range"],components:{TicketsChart:V$e,ResponseChart:z$e,ResolveChart:W$e,BusinessBoxReportSummary:dH(OUe,[["render",function(e,t,a,i,s,n){const o=JP,r=ZP,l=OL,c=q$;return Hd(),jd("div",NUe,[s.loading?(Hd(),jd("div",$Ue,[tu(l,{rows:5,animated:""})])):(Hd(),jd("div",IUe,[eu("div",DUe,[eu("div",MUe,[eu("div",LUe,[eu("span",PUe,fe(e.$t("Business Box Summary")),1)])]),eu("div",FUe,[vr((Hd(),qd(r,{data:n.sortedReports,"summary-method":n.getSummaries,"show-summary":n.showOrHideSummaries,onSortChange:n.handleSorting,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{default:br(()=>[tu(o,{"min-width":"200px",label:e.$t("MailBox")},{default:br(e=>[su(fe(e.row.name),1)]),_:1},8,["label"]),tu(o,{sortable:"custom",prop:"responses",label:e.$t("Responses")},{default:br(e=>[su(fe(e.row.stats.responses),1)]),_:1},8,["label"]),tu(o,{sortable:"custom",prop:"interactions",label:e.$t("Interactions")},{default:br(e=>[su(fe(e.row.stats.interactions),1)]),_:1},8,["label"]),tu(o,{sortable:"custom",prop:"opens",label:e.$t("Open Tickets")},{default:br(e=>[su(fe(e.row.stats.opens),1)]),_:1},8,["label"]),tu(o,{sortable:"custom",prop:"closed",label:e.$t("Closed")},{default:br(e=>[su(fe(e.row.stats.closed),1)]),_:1},8,["label"])],void 0),_:1},8,["data","summary-method","show-summary","onSortChange"])),[[c,s.loading]])])])]))])}],["__scopeId","data-v-e1cf6fab"]]),SideBar:lVe,NarrowPromo:Hie,IconPack:$z},data(){return{loading:!1,stat_loading:!1,currently_showing:"tickets-chart",localDateRange:this.date_range,shortcuts:cVe,showing_charts:!0,chartMaps:{"tickets-chart":"Ticket Stats","resolve-chart":"Resolve Stats","response-chart":"Response Stats"},mailbox:""}},computed:{formattedDateRange(){return EBe(this.localDateRange)}},watch:{date_range:{handler(e){this.localDateRange=e},deep:!0}},methods:{handleDateChange(){this.$emit("date-change",this.localDateRange)},filterReport(){const e=this.currently_showing;this.currently_showing={render:()=>{}},this.$nextTick(()=>{this.currently_showing=e})},handleComponentChange(e){this.currently_showing=e}},mounted(){this.$setTitle("Reports")}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A,l=Zl("IconPack"),c=KI,d=Zl("SideBar"),u=Zl("business-box-report-summary"),p=lO,h=rO,g=Zl("NarrowPromo"),m=q$;return Hd(),jd("div",BUe,[e.has_pro?(Hd(),jd("div",VUe,[eu("div",UUe,[eu("h3",HUe,fe(e.$t("Business Box Reports")),1)]),eu("div",zUe,[tu(r,{clearable:"",filterable:"",placeholder:e.$t("All Business Box"),onChange:n.filterReport,modelValue:s.mailbox,"onUpdate:modelValue":t[0]||(t[0]=e=>s.mailbox=e),class:"fs_report_by_product fs_select_field fs_staff_filter fs_select_field_min_width"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(e.appVars.mailboxes,e=>(Hd(),qd(o,{key:e.id,value:e.id,label:e.name},null,8,["value","label"]))),128))],void 0),_:1},8,["placeholder","onChange","modelValue"]),eu("div",YUe,[eu("div",GUe,[eu("div",WUe,[tu(l,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),n.formattedDateRange?(Hd(),jd("span",jUe,fe(n.formattedDateRange),1)):(Hd(),jd("span",qUe,fe(e.$t("Select date range")),1))]),tu(c,{modelValue:s.localDateRange,"onUpdate:modelValue":t[1]||(t[1]=e=>s.localDateRange=e),type:"daterange",editable:!1,"range-separator":e.$t("To"),"start-placeholder":e.$t("Start"),"end-placeholder":e.$t("End"),"unlink-panels":!0,shortcuts:s.shortcuts,onChange:n.handleDateChange,"value-format":"YYYY-MM-DD",class:"fs_date_range_picker",clearable:!0},null,8,["modelValue","range-separator","start-placeholder","end-placeholder","shortcuts","onChange"])])])])])):ou("",!0),e.has_pro?(Hd(),qd(d,{key:1,mailbox_id:s.mailbox,date_range:s.localDateRange},null,8,["mailbox_id","date_range"])):ou("",!0),e.has_pro?vr((Hd(),jd("div",KUe,[tu(h,{gutter:30},{default:br(()=>[tu(p,{sm:24,md:24,lg:24},{default:br(()=>[eu("div",XUe,[eu("div",QUe,[eu("h3",ZUe,fe(e.$t("Business Box Statistics")),1),eu("div",JUe,[eu("div",eHe,[(Hd(!0),jd(Pd,null,sc(s.chartMaps,(e,t)=>(Hd(),jd("button",{key:t,onClick:e=>n.handleComponentChange(t),class:ne(["fs_segment_button",{fs_segment_active:s.currently_showing===t}])},fe(e),11,tHe))),128))])])]),eu("div",aHe,[s.showing_charts?(Hd(),qd(ec(s.currently_showing),{key:0,date_range:s.localDateRange,url:"mailbox-reports",mailbox_id:s.mailbox,type:"mailbox"},null,8,["date_range","mailbox_id"])):ou("",!0)])]),tu(u,{url:"mailbox-reports/mailbox-reports-summary",show_settings:!0,show_export_btn:!0,date_range:s.localDateRange,mailbox_id:s.mailbox},null,8,["date_range","mailbox_id"])],void 0),_:1})],void 0),_:1})])),[[m,s.loading]]):(Hd(),qd(g,{key:3,heading:e.$t("get_overall_reports"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))])}]]),sHe={style:{"margin-top":"20px"},class:"fs_agent_reports"},nHe={key:0},oHe={class:"fs_report_table_container"},rHe={class:"fs_table_header"},lHe={class:"fs_box_actions"},cHe={class:"fs_table_title"},dHe={class:"fs_table_wrapper"},uHe={key:1,class:"fs_box_body fs_skeleton_loader"};const pHe={class:"fs_agents_report"},hHe={key:0,class:"fs_inside_menu_component_header"},gHe={class:"fs_component_head"},mHe={class:"fs_page_title"},fHe={class:"fs_box_actions"},_He={class:"fs_date_button_group"},bHe={class:"fs_date_button_group_item fs_date_picker_wrapper"},vHe={class:"fs_date_display"},yHe={key:0,class:"fs_date_text"},SHe={key:1,class:"fs_date_placeholder"},xHe={key:2,class:"fs_box_wrapper"},wHe={class:"fs_box"},EHe={class:"fs_box_header"},CHe={class:"fs_product_statistics_header"},kHe={class:"fs_product_statistics_title"},THe={class:"fs_status_tabs"},AHe={class:"fs_segmented_control"},RHe=["onClick"],OHe={class:"fs_box_body"};const NHe=dH({name:"AgentGroupReports",props:["date_range"],components:{TicketsChart:V$e,ResponseChart:z$e,ResolveChart:W$e,AgentGroupReportSummary:dH({name:"AgentGroupReportSummary",props:{url:String,date_range:{type:Array,default:()=>["",""]}},data:()=>({reports:[],loading:!1,sort_column:"responses",sort_type:"descending"}),computed:{sortedReports(){let e=[...this.reports];return"agents_count"===this.sort_column?"ascending"===this.sort_type?e.sort((e,t)=>parseInt(e.agents_count)-parseInt(t.agents_count)):e.sort((e,t)=>parseInt(t.agents_count)-parseInt(e.agents_count)):"ascending"===this.sort_type?e.sort((e,t)=>parseInt(e.stats[this.sort_column])>parseInt(t.stats[this.sort_column])?1:-1):e.sort((e,t)=>parseInt(e.stats[this.sort_column])<parseInt(t.stats[this.sort_column])?1:-1)},totals(){const e={agents_count:0,responses:0,interactions:0,opens:0,closed:0};return qK(this.reports,t=>{e.agents_count+=parseInt(t.agents_count),e.responses+=parseInt(t.stats.responses),e.interactions+=parseInt(t.stats.interactions),e.opens+=parseInt(t.stats.opens),e.closed+=parseInt(t.stats.closed)}),e}},watch:{date_range:{handler(e){e&&e[0]&&e[1]&&this.getReport()},deep:!0},sortedReports:{handler(){this.$nextTick(()=>{this.addClassToSummaryRow()})}}},methods:{async getReport(){this.date_range&&this.date_range[0]&&this.date_range[1]&&(this.loading=!0,await this.$get(this.url,{from:this.date_range[0]?Ik(this.date_range[0]).format("YYYY-MM-DD"):"",to:this.date_range[1]?Ik(this.date_range[1]).format("YYYY-MM-DD"):""}).then(e=>{this.reports=e.summary}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1}))},handleSorting(e){this.sort_column=e.prop,this.sort_type=e.order},getSummaries(e){const{columns:t}=e,a=[];return t.forEach((e,t)=>{a[t]=0!==t?this.totals[e.property]:this.$t("Total Summaries")}),this.$nextTick(()=>{this.addClassToSummaryRow()}),a},addClassToSummaryRow(){var e;const t=null==(e=this.$el)?void 0:e.querySelector(".fs_table_wrapper .el-table__footer-wrapper tfoot tr, .fs_table_wrapper .el-table__footer-wrapper tr");t&&(t.classList.add("fs_table_row"),t.querySelectorAll("td").forEach(e=>e.classList.add("fs_table_cell")))}},mounted(){this.date_range&&this.date_range[0]&&this.date_range[1]&&this.getReport()}},[["render",function(e,t,a,i,s,n){const o=JP,r=ZP,l=OL,c=q$;return Hd(),jd("div",sHe,[s.loading?(Hd(),jd("div",uHe,[tu(l,{rows:5,animated:""})])):(Hd(),jd("div",nHe,[eu("div",oHe,[eu("div",rHe,[eu("div",lHe,[eu("span",cHe,fe(e.$t("Agent Group Summary")),1)])]),eu("div",dHe,[vr((Hd(),qd(r,{data:n.sortedReports,"summary-method":n.getSummaries,"show-summary":"",onSortChange:n.handleSorting,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{default:br(()=>[tu(o,{"min-width":"200px",label:e.$t("Group")},{default:br(e=>[su(fe(e.row.title),1)]),_:1},8,["label"]),tu(o,{sortable:"custom",prop:"agents_count",label:e.$t("Agents")},{default:br(e=>[su(fe(e.row.agents_count),1)]),_:1},8,["label"]),tu(o,{sortable:"custom",prop:"responses",label:e.$t("Responses")},{default:br(e=>[su(fe(e.row.stats.responses),1)]),_:1},8,["label"]),tu(o,{sortable:"custom",prop:"interactions",label:e.$t("Interactions")},{default:br(e=>[su(fe(e.row.stats.interactions),1)]),_:1},8,["label"]),tu(o,{sortable:"custom",prop:"opens",label:e.$t("Open Tickets")},{default:br(e=>[su(fe(e.row.stats.opens),1)]),_:1},8,["label"]),tu(o,{sortable:"custom",prop:"closed",label:e.$t("Closed")},{default:br(e=>[su(fe(e.row.stats.closed),1)]),_:1},8,["label"])],void 0),_:1},8,["data","summary-method","onSortChange"])),[[c,s.loading]])])])]))])}],["__scopeId","data-v-46502dba"]]),SideBar:lVe,NarrowPromo:Hie,IconPack:$z},data(){return{loading:!1,currently_showing:"tickets-chart",localDateRange:this.date_range,showing_charts:!0,shortcuts:cVe,chartMaps:{"tickets-chart":"Ticket Stats","resolve-chart":"Resolve Stats","response-chart":"Response Stats"},agentGroup:""}},computed:{formattedDateRange(){return EBe(this.localDateRange)}},watch:{date_range:{handler(e){this.localDateRange=e},deep:!0}},methods:{handleDateChange(){this.$emit("date-change",this.localDateRange)},filterReport(){const e=this.currently_showing;this.currently_showing={render:()=>{}},this.$nextTick(()=>{this.currently_showing=e})},handleComponentChange(e){this.currently_showing=e}},mounted(){this.$setTitle("Reports")}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A,l=Zl("IconPack"),c=KI,d=Zl("SideBar"),u=Zl("agent-group-report-summary"),p=lO,h=rO,g=Zl("NarrowPromo"),m=q$;return Hd(),jd("div",pHe,[e.has_pro?(Hd(),jd("div",hHe,[eu("div",gHe,[eu("h3",mHe,fe(e.$t("Agent Groups Reports")),1)]),eu("div",fHe,[tu(r,{clearable:"",filterable:"",placeholder:e.$t("All Agent Groups"),onChange:n.filterReport,modelValue:s.agentGroup,"onUpdate:modelValue":t[0]||(t[0]=e=>s.agentGroup=e),class:"fs_report_by_product fs_select_field fs_staff_filter fs_select_field_min_width"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(e.appVars.agent_groups,e=>(Hd(),qd(o,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["placeholder","onChange","modelValue"]),eu("div",_He,[eu("div",bHe,[eu("div",vHe,[tu(l,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),n.formattedDateRange?(Hd(),jd("span",yHe,fe(n.formattedDateRange),1)):(Hd(),jd("span",SHe,fe(e.$t("Select date range")),1))]),tu(c,{modelValue:s.localDateRange,"onUpdate:modelValue":t[1]||(t[1]=e=>s.localDateRange=e),type:"daterange",editable:!1,"range-separator":e.$t("To"),"start-placeholder":e.$t("Start"),"end-placeholder":e.$t("End"),"unlink-panels":!0,shortcuts:s.shortcuts,onChange:n.handleDateChange,"value-format":"YYYY-MM-DD",class:"fs_date_range_picker",clearable:!0},null,8,["modelValue","range-separator","start-placeholder","end-placeholder","shortcuts","onChange"])])])])])):ou("",!0),e.has_pro?(Hd(),qd(d,{key:1,agent_group_id:s.agentGroup,date_range:s.localDateRange},null,8,["agent_group_id","date_range"])):ou("",!0),e.has_pro?vr((Hd(),jd("div",xHe,[tu(h,{gutter:30},{default:br(()=>[tu(p,{sm:24,md:24,lg:24},{default:br(()=>[eu("div",wHe,[eu("div",EHe,[eu("div",CHe,[eu("h4",kHe,fe(e.$t("Agent Group Statistics")),1),eu("div",THe,[eu("div",AHe,[(Hd(!0),jd(Pd,null,sc(s.chartMaps,(e,t)=>(Hd(),jd("button",{key:t,onClick:e=>n.handleComponentChange(t),class:ne(["fs_segment_button",{fs_segment_active:s.currently_showing===t}])},fe(e),11,RHe))),128))])])])]),eu("div",OHe,[s.showing_charts?(Hd(),qd(ec(s.currently_showing),{key:0,date_range:s.localDateRange,url:"agent-group-reports",agent_group_id:s.agentGroup},null,8,["date_range","agent_group_id"])):ou("",!0)])]),tu(u,{url:"agent-group-reports/agent-groups-summary",date_range:s.localDateRange},null,8,["date_range"])],void 0),_:1})],void 0),_:1})])),[[m,s.loading]]):(Hd(),qd(g,{key:3,heading:e.$t("get_overall_reports"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))])}]]),IHe={key:0},DHe={class:"fs_inside_menu_component_header"},MHe={class:"fs_component_head"},LHe={class:"fs_page_title"},PHe={class:"fs_box_actions"},FHe={class:"fs_date_button_group"},$He={class:"fs_date_button_group_item fs_date_picker_wrapper"},BHe={class:"fs_date_display"},VHe={key:0,class:"fs_date_text"},UHe={key:1,class:"fs_date_placeholder"},HHe={class:"fs-activity-by-time-of-day"},zHe={class:"fs_wid_widget fs_wid_day_by_day"},YHe={class:"fs_table_header"},GHe={class:"fs_box_actions"},WHe={class:"fs_table_title"},jHe={class:"fs_content"},qHe={key:0,class:"fs_time_widget"},KHe={class:"fs_time_widget_header"},XHe={class:"fs_time_widget_body"},QHe={class:"fs_wid_sub_headers"},ZHe={class:"fs_time_hour_value"},JHe={class:"fs_wid_label_info"},eze={class:"fs_wid_dir"},tze={class:"fs_wid_dir"};const aze=dH({name:"FeedbackByTimeOfDay",props:["date_range"],components:{SideBar:lVe,NarrowPromo:Hie,IconPack:$z},data(){return{appReady:!1,reportType:"ticket",dateRange:this.date_range,shortcuts:cVe,agentId:"",customerId:"",dataItems:{},days:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],filledSlots:["0:00","1:00","2:00","3:00","4:00","5:00","6:00","7:00","8:00","9:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00"],showing_charts:!0,tipIndexes:["1am","4am","7am","10am","1pm","4pm","7pm","10pm"]}},computed:{formattedDateRange(){return EBe(this.dateRange)},maxValue(){let e=0;for(let t in this.dataItems)for(let a in this.dataItems[t])this.dataItems[t][a]>e&&(e=this.dataItems[t][a]);return e<5?5:e}},watch:{date_range:{handler(e){this.dateRange=e,this.fetchStats()},deep:!0}},methods:{getLevel(e){if(!(e=parseInt(e)))return"level_0";const t=Math.round(e/this.maxValue*100);return t>80?"level_5":t>60?"level_4":t>40?"level_3":t>20?"level_2":"level_1"},getTooltipContent(e,t){return"ticket"===this.reportType?this.dataItems[e][t]+" tickets created":this.dataItems[e][t]+" response created"},handleDateChange(){this.$emit("date-change",this.dateRange),this.fetchStats()},onlyPastDates:e=>new Date<=e,fetchStats(){this.appReady=!1,this.$get("reports/day-time-stats",{report_type:this.reportType,agent_id:this.agentId,date_range:this.dateRange}).then(e=>{this.dataItems=e.stats}).fail(e=>{}).always(()=>{this.appReady=!0})}},mounted(){this.fetchStats()}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A,l=Zl("IconPack"),c=KI,d=KE,u=OL,p=Zl("NarrowPromo");return e.has_pro?(Hd(),jd("div",IHe,[eu("div",DHe,[eu("div",MHe,[eu("h3",LHe,fe(e.$t("Activity Reports")),1)]),eu("div",PHe,[tu(r,{onChange:n.fetchStats,modelValue:s.reportType,"onUpdate:modelValue":t[0]||(t[0]=e=>s.reportType=e),class:"fs_report_by_product fs_select_field fs_staff_filter fs_select_field_min_width"},{default:br(()=>[tu(o,{value:"ticket",label:e.$t("All Tickets")},null,8,["label"]),tu(o,{value:"agent_response",label:e.$t("Agent Response")},null,8,["label"]),tu(o,{value:"customer_response",label:e.$t("Customer Response")},null,8,["label"])],void 0),_:1},8,["onChange","modelValue"]),"agent_response"===s.reportType?(Hd(),qd(r,{key:0,clearable:"",filterable:"",placeholder:e.$t("All Agent"),onChange:n.fetchStats,modelValue:s.agentId,"onUpdate:modelValue":t[1]||(t[1]=e=>s.agentId=e),class:"fs_select_field fs_staff_filter fs_select_field_min_width"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(e.appVars.support_agents,e=>(Hd(),qd(o,{key:e.id,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:1},8,["placeholder","onChange","modelValue"])):ou("",!0),eu("div",FHe,[eu("div",$He,[eu("div",BHe,[tu(l,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),n.formattedDateRange?(Hd(),jd("span",VHe,fe(n.formattedDateRange),1)):(Hd(),jd("span",UHe,fe(e.$t("Select date range")),1))]),tu(c,{modelValue:s.dateRange,"onUpdate:modelValue":t[2]||(t[2]=e=>s.dateRange=e),type:"daterange",editable:!1,"range-separator":"To","disabled-date":n.onlyPastDates,"value-format":"YYYY-MM-DD","start-placeholder":e.$t("Start date"),"end-placeholder":e.$t("End date"),shortcuts:s.shortcuts,onChange:n.handleDateChange,class:"fs_date_range_picker"},null,8,["modelValue","disabled-date","start-placeholder","end-placeholder","shortcuts","onChange"])])])])]),eu("div",HHe,[eu("div",zHe,[eu("div",YHe,[eu("div",GHe,[eu("span",WHe,fe(e.$t("Activity Trends by Time of Day")),1)])]),eu("div",jHe,[s.appReady?(Hd(),jd("div",qHe,[eu("div",KHe,[t[3]||(t[3]=eu("div",{class:"fs_time_day"},null,-1)),(Hd(!0),jd(Pd,null,sc(s.days,e=>(Hd(),jd("div",{key:e,class:"fs_time_day"},fe(e),1))),128))]),eu("div",XHe,[eu("div",QHe,[(Hd(!0),jd(Pd,null,sc(s.tipIndexes,e=>(Hd(),jd("div",{key:e,class:"fs_wid_sub_header"},fe(e),1))),128))]),(Hd(!0),jd(Pd,null,sc(s.days,e=>(Hd(),jd("div",{key:e,class:"fs_time_day"},[(Hd(!0),jd(Pd,null,sc(s.filledSlots,t=>(Hd(),jd("div",{key:t,class:ne(["fs_wid_"+n.getLevel(s.dataItems[e][t]),"fs_time_hour"])},[s.dataItems[e][t]?(Hd(),qd(d,{key:0,content:n.getTooltipContent(e,t),placement:"top"},{default:br(()=>[eu("div",ZHe,[eu("span",null,fe(s.dataItems[e][t]),1)])],void 0),_:2},1032,["content"])):ou("",!0)],2))),128))]))),128))])])):(Hd(),qd(u,{key:1,class:"fs_content",rows:5})),eu("div",JHe,[eu("span",eze,fe(e.$t("Less")),1),t[4]||(t[4]=nu('<span class="fs_wid_level fs_wid_level_1"></span><span class="fs_wid_level fs_wid_level_2"></span><span class="fs_wid_level fs_wid_level_3"></span><span class="fs_wid_level fs_wid_level_4"></span><span class="fs_wid_level fs_wid_level_5"></span>',5)),eu("span",tze,fe(e.$t("More")),1)])])])])])):(Hd(),qd(p,{key:1,heading:e.$t("get_overall_reports"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))}]]),ize={calculateEntityTotalMinutes:(e,t,a)=>{const i=e.reduce((e,i)=>{var s;return e+((null==(s=null==t?void 0:t[i])?void 0:s[a])||[]).reduce((e,t)=>e+t.billable_minutes,0)},0);return ize.formatMinutes(i)},calculateTimeSheetTotal:(e,t,a)=>{var i;const s=((null==(i=null==e?void 0:e[t])?void 0:i[a])??[]).reduce((e,t)=>e+t.billable_minutes,0);return ize.formatMinutes(s)},formatMinutes:e=>{let t=parseInt(e);if(!t)return"--";const a=Math.floor(t/60);return t%=60,a?t?`${a}h ${t}m`:`${a}h`:`${t}m`},exportReport:e=>{const{selectedItems:t,dateRange:a,action:i,itemKey:s}=e,n=Array.isArray(a)&&2===a.length?a.join(","):a||"";let o;o=Array.isArray(t)?t.length>0?t.join(","):"mailbox_id"===s?null:"null":null==t||""===t?"mailbox_id"===s?null:"null":String(t);const r=new URLSearchParams({action:i,_wpnonce:window.fluentSupportAdmin.nonce});r.append("dateRange",n),null!==o&&r.append(s,o),location.href=`${window.fluentSupportAdmin.ajaxurl}?${r.toString()}`}},sze={style:{cursor:"pointer"}},nze={class:"fs_detail_log"},oze={class:"fs_time_sheet_person"},rze=["href"];const lze={name:"ByTickets",components:{Modal:Eie,TicketDateSheetPop:dH({name:"TicketDateSheetPop",props:["ticket_id","date","timeSheets"],data:()=>({timeItems:[]}),computed:{timeSheetTotal(){return ize.calculateTimeSheetTotal(this.timeSheets,this.date,this.ticket_id)}},mounted(){this.initItems()},methods:{initItems(){var e,t;const a=(null==(t=null==(e=this.timeSheets)?void 0:e[this.date])?void 0:t[this.ticket_id])??[];qK(a,e=>{this.timeItems.push(e)})},formatMinutes:e=>ize.formatMinutes(e)}},[["render",function(e,t,a,i,s,n){const o=JP,r=AC,l=ZP,c=$B;return Hd(),qd(c,{ref:"estimated_time_pop","popper-class":"fs_timer_log_popover",placement:"left",width:400,trigger:"click"},{reference:br(()=>[eu("div",sze,fe(n.timeSheetTotal),1)]),default:br(()=>[tu(l,{stripe:!0,border:!0,data:s.timeItems,style:{width:"100%"}},{default:br(()=>[tu(o,{type:"expand",width:"30"},{default:br(({row:t})=>[eu("div",nze,[eu("p",null,[eu("b",null,fe(e.$t("Logged at:")),1),su(" "+fe(e.smartDate(t.created_at,!0)),1)]),eu("p",null,[eu("b",null,fe(e.$t("Work Description:")),1),su(" "+fe(t.message),1)])])]),_:1}),tu(o,{prop:"user",label:e.$t("Agent")},{default:br(({row:e})=>{var t,a,i;return[eu("div",oze,[tu(r,{src:null==(t=e.agent)?void 0:t.photo,size:"small"},null,8,["src"]),eu("a",{href:`/wp-admin/user-edit.php?user_id=${null==(a=e.agent)?void 0:a.user_id}`,target:"_blank",class:"fs_time_sheet_agent_link"},fe(null==(i=e.agent)?void 0:i.full_name),9,rze)])]}),_:1},8,["label"]),tu(o,{prop:"billable_minutes",label:e.$t("Time"),width:"80"},{default:br(({row:e})=>[eu("span",null,fe(n.formatMinutes(e.billable_minutes)),1)]),_:1},8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},512)}]])},props:{date_range:{type:Array,required:!0},tasks:{type:Array,default:()=>[]},timeSheets:{type:Object,default:()=>({})},dateLabels:{type:Array,default:()=>[]},totalMinutes:{type:Number,default:0},isLoaded:{type:Boolean,default:!1},selectedMailBoxes:{type:Array,default:()=>[]}},data:()=>({}),methods:{getTicketTotal(e){return ize.calculateEntityTotalMinutes(this.dateLabels,this.timeSheets,e.id)},formatMinutes:e=>ize.formatMinutes(e),exportReport(){ize.exportReport({selectedItems:this.selectedMailBoxes,dateRange:this.date_range,action:"fluent_support_export_tickets_timesheet",itemKey:"mailbox_id"})}}},cze={key:0,class:"fs_time_sheet"},dze={class:"fs_table_wrapper fs_scrollable_table"},uze={key:1,class:"fs_time_sheet_skeleton"};const pze=dH(lze,[["render",function(e,t,a,i,s,n){const o=Zl("router-link"),r=JP,l=Zl("TicketDateSheetPop"),c=ZP,d=OL;return a.isLoaded?(Hd(),jd("div",cze,[eu("div",dze,[tu(c,{data:a.tasks,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell"},{default:br(()=>[tu(r,{fixed:"left",prop:"ticket",label:e.$t("Ticket"),"min-width":"120"},{default:br(({row:e})=>[tu(o,{to:{name:"view_ticket",params:{ticket_id:e.id}},target:"_blank",class:"fs_time_sheet_ticket_link"},{default:br(()=>[su(" #"+fe(e.id),1)],void 0),_:2},1032,["to"])]),_:1},8,["label"]),(Hd(!0),jd(Pd,null,sc(a.dateLabels,t=>(Hd(),qd(r,{"min-width":100,key:t,prop:t,label:t},{header:br(({column:t})=>[eu("span",null,fe(e.smartDate(t.label)),1)]),default:br(({row:e})=>[tu(l,{ticket_id:e.id,date:t,timeSheets:a.timeSheets},null,8,["ticket_id","date","timeSheets"])]),_:2},1032,["prop","label"]))),128)),tu(r,{fixed:"right",label:e.$t("Total"),width:"160"},{header:br(({column:t})=>[eu("span",null,fe(e.$t("Total"))+" ("+fe(n.formatMinutes(a.totalMinutes))+")",1)]),default:br(({row:e})=>[eu("strong",null,fe(n.getTicketTotal(e.id)),1)]),_:1},8,["label"])],void 0),_:1},8,["data"])])])):(Hd(),jd("div",uze,[tu(d,{animated:!0,rows:10})]))}]]),hze={style:{cursor:"pointer"}},gze={class:"fs_detail_log"};const mze=dH({name:"_UserAgentDateSheetPop",props:["user_id","date","timeSheets"],data:()=>({timeItems:[]}),computed:{timeSheetTotal(){return ize.calculateTimeSheetTotal(this.timeSheets,this.date,this.user_id)}},mounted(){this.initItems()},methods:{initItems(){var e,t;const a=(null==(t=null==(e=this.timeSheets)?void 0:e[this.date])?void 0:t[this.user_id])??[];qK(a,e=>{this.timeItems.push(e)})},formatMinutes:e=>ize.formatMinutes(e)}},[["render",function(e,t,a,i,s,n){const o=JP,r=Zl("router-link"),l=ZP,c=$B;return Hd(),qd(c,{ref:"estimated_time_pop","popper-class":"fs_timer_log_popover",placement:"left",width:400,trigger:"click"},{reference:br(()=>[eu("div",hze,fe(n.timeSheetTotal),1)]),default:br(()=>[tu(l,{stripe:!0,border:!0,data:s.timeItems,style:{width:"100%"}},{default:br(()=>[tu(o,{type:"expand",width:"30"},{default:br(({row:t})=>[eu("div",gze,[eu("p",null,[eu("b",null,fe(e.$t("Logged at:")),1),su(" "+fe(e.smartDate(t.created_at,!0)),1)]),eu("p",null,[eu("b",null,fe(e.$t("Work Description:")),1),su(" "+fe(t.message),1)])])]),_:1}),tu(o,{prop:"ticket",label:e.$t("Ticket")},{default:br(({row:e})=>[tu(r,{to:{name:"view_ticket",params:{ticket_id:e.ticket.id}},target:"_blank",class:"fs_time_sheet_ticket_link"},{default:br(()=>[su(fe(e.ticket.title),1)],void 0),_:2},1032,["to"])]),_:1},8,["label"]),tu(o,{prop:"billable_minutes",label:e.$t("Time"),width:"80"},{default:br(({row:e})=>[eu("span",null,fe(n.formatMinutes(e.billable_minutes)),1)]),_:1},8,["label"])],void 0),_:1},8,["data"])],void 0),_:1},512)}]]),fze={name:"ByAgents",components:{Modal:Eie,UserAgentDateSheetPop:mze},props:{date_range:{type:Array,required:!0},agents:{type:Array,default:()=>[]},timeSheets:{type:Object,default:()=>({})},dateLabels:{type:Array,default:()=>[]},totalMinutes:{type:Number,default:0},isLoaded:{type:Boolean,default:!1},selectedAgent:{type:Array,default:()=>[]}},data:()=>({}),methods:{getUserTotal(e){return ize.calculateEntityTotalMinutes(this.dateLabels,this.timeSheets,e)},formatMinutes:e=>ize.formatMinutes(e),exportReport(){ize.exportReport({selectedItems:this.selectedAgent,dateRange:this.date_range,action:"fluent_support_export_agents_timesheet",itemKey:"selectedAgents"})}}},_ze={key:0,class:"fs_time_sheet"},bze={class:"fs_table_wrapper"},vze={class:"fs_time_sheet_person"},yze=["href"],Sze={key:1,class:"fs_time_sheet_skeleton"};const xze=dH(fze,[["render",function(e,t,a,i,s,n){const o=AC,r=JP,l=Zl("UserAgentDateSheetPop"),c=ZP,d=OL;return a.isLoaded?(Hd(),jd("div",_ze,[eu("div",bze,[tu(c,{data:a.agents,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{default:br(()=>[tu(r,{fixed:"left",prop:"agent",label:e.$t("Agent"),"min-width":"150"},{default:br(({row:e})=>[eu("div",vze,[tu(o,{src:e.photo,size:"small"},null,8,["src"]),eu("a",{href:`/wp-admin/user-edit.php?user_id=${e.user_id}`,target:"_blank",class:"fs_time_sheet_agent_link"},fe(e.full_name),9,yze)])]),_:1},8,["label"]),(Hd(!0),jd(Pd,null,sc(a.dateLabels,t=>(Hd(),qd(r,{"min-width":100,key:t,prop:t,label:t},{header:br(({column:t})=>[eu("span",null,fe(e.smartDate(t.label)),1)]),default:br(({row:e})=>[tu(l,{user_id:e.id,date:t,timeSheets:a.timeSheets},null,8,["user_id","date","timeSheets"])]),_:2},1032,["prop","label"]))),128)),tu(r,{fixed:"right",label:e.$t("Total"),width:"160"},{header:br(({column:t})=>[eu("span",null,fe(e.$t("Total"))+" ("+fe(n.formatMinutes(a.totalMinutes))+")",1)]),default:br(({row:e})=>[eu("strong",null,fe(n.getUserTotal(e.id)),1)]),_:1},8,["label"])],void 0),_:1},8,["data"])])])):(Hd(),jd("div",Sze,[tu(d,{animated:!0,rows:10})]))}]]),wze={name:"ByCustomers",components:{UserAgentDateSheetPop:mze,Modal:Eie},props:{date_range:{type:Array,required:!0},customers:{type:Array,default:()=>[]},timeSheets:{type:Object,default:()=>({})},dateLabels:{type:Array,default:()=>[]},totalMinutes:{type:Number,default:0},isLoaded:{type:Boolean,default:!1},selectedCustomer:{type:Array,default:()=>[]}},data:()=>({}),methods:{getUserTotal(e){return ize.calculateEntityTotalMinutes(this.dateLabels,this.timeSheets,e)},formatMinutes:e=>ize.formatMinutes(e),exportReport(){ize.exportReport({selectedItems:this.selectedCustomer,dateRange:this.date_range,action:"fluent_support_export_customers_timesheet",itemKey:"selectedCustomers"})}}},Eze={key:0,class:"fs_time_sheet"},Cze={class:"fs_table_wrapper"},kze={class:"fs_time_sheet_person"},Tze={key:1,class:"fs_time_sheet_skeleton"};const Aze={key:0},Rze={class:"fs_inside_menu_component_header"},Oze={class:"fs_component_head"},Nze={class:"fs_page_title"},Ize={class:"fs_box_actions"},Dze={class:"fs_date_button_group"},Mze={class:"fs_date_button_group_item fs_date_picker_wrapper"},Lze={class:"fs_date_display"},Pze={key:0,class:"fs_date_text"},Fze={key:1,class:"fs_date_placeholder"},$ze={class:"fs_time_sheet_export"},Bze={class:"fs-ml-5"},Vze={class:"fs_report_table_container"},Uze={class:"fs_table_header"},Hze={class:"fs_box_actions"},zze={class:"fs_time_sheet_filter_panel"},Yze={class:"fs_status_tabs"},Gze={class:"fs_segmented_control"},Wze=["onClick"];const jze={class:"fs_reports_wrapper"},qze={class:"fs_reports_layout"},Kze={class:"fs_inside_menu_tab_header fs_desktop_sidebar"},Xze={class:"fs_box_head"},Qze={class:"fs-inside-menu-tabs"},Zze={class:"fs_box_head"},Jze={class:"fs-inside-menu-tabs"},eYe={class:"fs_box_wrapper"},tYe={class:"fs_reports_content"},aYe={class:"fs_component_dashboard"};const iYe=dH({name:"Report",components:{Overview:F$e,Reports:MVe,PersonalReports:eUe,ProductReports:RUe,BusinessBoxReports:iHe,AgentGroupReports:NHe,ActivityByTimeOfDay:aze,TimeSheet:dH({name:"TimeSheet",components:{ByTickets:pze,ByAgents:xze,ByCustomers:dH(wze,[["render",function(e,t,a,i,s,n){const o=AC,r=Zl("router-link"),l=JP,c=Zl("UserAgentDateSheetPop"),d=ZP,u=OL;return a.isLoaded?(Hd(),jd("div",Eze,[eu("div",Cze,[tu(d,{data:a.customers,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed"},{default:br(()=>[tu(l,{fixed:"left",prop:"customer",label:e.$t("Customer"),"min-width":"150"},{default:br(({row:e})=>[eu("div",kze,[tu(o,{src:e.photo,size:"small"},null,8,["src"]),tu(r,{to:{name:"view_customer",params:{customer_id:e.id}},target:"_blank",class:"fs_time_sheet_customer_link"},{default:br(()=>[eu("strong",null,fe(e.full_name),1)],void 0),_:2},1032,["to"])])]),_:1},8,["label"]),(Hd(!0),jd(Pd,null,sc(a.dateLabels,t=>(Hd(),qd(l,{"min-width":100,key:t,prop:t,label:t},{header:br(({column:t})=>[eu("span",null,fe(e.smartDate(t.label)),1)]),default:br(({row:e})=>[tu(c,{user_id:e.id,date:t,timeSheets:a.timeSheets},null,8,["user_id","date","timeSheets"])]),_:2},1032,["prop","label"]))),128)),tu(l,{fixed:"right",label:e.$t("Total"),width:"160"},{header:br(({column:t})=>[eu("span",null,fe(e.$t("Total"))+" ("+fe(n.formatMinutes(a.totalMinutes))+")",1)]),default:br(({row:e})=>[eu("strong",null,fe(n.getUserTotal(e.id)),1)]),_:1},8,["label"])],void 0),_:1},8,["data"])])])):(Hd(),jd("div",Tze,[tu(u,{animated:!0,rows:10})]))}]]),NarrowPromo:Hie,IconPack:$z},props:["url","date_range"],data(){return{pickerStartDate:null,dateRange:this.validateAndAdjustDateRange(this.date_range),appReady:!1,shortcuts:dVe,statusFilters:{byTickets:this.$t("By Tickets"),byAgents:this.$t("By Agents"),byCustomers:this.$t("By Customers")},status:"byTickets",selectedMailBoxes:[],allMailBoxes:[],ticketsData:{tasks:[],timeSheets:{},dateLabels:[],totalMinutes:0,isLoaded:!1},selectedAgent:[],allAgents:[],agentsData:{agents:[],timeSheets:{},dateLabels:[],totalMinutes:0,isLoaded:!1},selectedCustomer:[],allCustomers:[],customersData:{customers:[],timeSheets:{},dateLabels:[],totalMinutes:0,isLoaded:!1}}},computed:{formattedDateRange(){return EBe(this.dateRange)}},watch:{date_range:{handler(e){this.dateRange=this.validateAndAdjustDateRange(e),this.pickerStartDate=null,this.fetchData()},deep:!0}},methods:{validateAndAdjustDateRange(e){if(!e||2!==e.length||!e[0]||!e[1])return e;const t=Ik(e[0]),a=Ik(e[1]);if(!t.isValid()||!a.isValid())return e;if(a.isBefore(t))return e;const i=t.add(1,"month");return a.isAfter(i)?[t.format("YYYY-MM-DD"),i.format("YYYY-MM-DD")]:e},handleCalendarChange([e,t]){if(e&&!t){const t=e instanceof Date?new Date(e.getFullYear(),e.getMonth(),e.getDate()):new Date(e);this.pickerStartDate=t}else this.pickerStartDate=null},disableLargeRange(e){const t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),a=new Date;if(a.setHours(0,0,0,0),t.getTime()>a.getTime())return!0;if(this.pickerStartDate){const e=Ik(this.pickerStartDate).startOf("day"),a=Ik(t).startOf("day"),i=e.add(1,"month");if(a.isAfter(i))return!0}return!1},handleDateRangeChange(){this.dateRange=this.validateAndAdjustDateRange(this.dateRange),this.pickerStartDate=null,this.$emit("date-change",this.dateRange),this.fetchData()},setStatus(e){this.status=e,this.fetchData()},async fetchData(){this.dateRange&&2===this.dateRange.length&&("byTickets"===this.status?await this.fetchReportsByTickets():"byAgents"===this.status?await this.fetchReportsByAgents():"byCustomers"===this.status&&await this.fetchReportsByCustomers())},async fetchReportsByTickets(){this.ticketsData.isLoaded=!1;const e={mailbox_id:this.selectedMailBoxes,date_range:this.dateRange};try{const t=await this.$get("reports/timesheet/by-tickets",e);this.ticketsData.tasks=t.tickets,this.ticketsData.timeSheets=t.time_sheets,this.ticketsData.dateLabels=t.date_labels,this.ticketsData.totalMinutes=t.total_minutes,this.allMailBoxes=t.mail_boxes.map(e=>({key:e.id,label:e.name}))}catch(t){this.$handleError(t)}finally{this.ticketsData.isLoaded=!0}},async fetchReportsByAgents(){this.agentsData.isLoaded=!1;const e={agent_id:this.selectedAgent,date_range:this.dateRange};try{const t=await this.$get("reports/timesheet/by-agents",e);this.agentsData.agents=t.agents,this.agentsData.timeSheets=t.time_sheets,this.agentsData.dateLabels=t.date_labels,this.agentsData.totalMinutes=t.total_minutes,this.allAgents=t.all_agents.map(e=>({key:e.id,label:e.full_name}))}catch(t){this.$handleError(t)}finally{this.agentsData.isLoaded=!0}},async fetchReportsByCustomers(){this.customersData.isLoaded=!1;try{const e={customer_id:this.selectedCustomer,date_range:this.dateRange},t=await this.$get("reports/timesheet/by-customers",e);this.customersData.customers=t.customers,this.customersData.timeSheets=t.time_sheets,this.customersData.dateLabels=t.date_labels,this.customersData.totalMinutes=t.total_minutes,this.allCustomers=t.all_customers.map(e=>({key:e.id,label:e.full_name}))}catch(e){this.$handleError(e)}finally{this.customersData.isLoaded=!0}},exportReport(){"byTickets"===this.status?this.$refs.byTickets&&"function"==typeof this.$refs.byTickets.exportReport&&this.$refs.byTickets.exportReport():"byAgents"===this.status?this.$refs.byAgents&&"function"==typeof this.$refs.byAgents.exportReport&&this.$refs.byAgents.exportReport():"byCustomers"===this.status&&this.$refs.byCustomers&&"function"==typeof this.$refs.byCustomers.exportReport&&this.$refs.byCustomers.exportReport()}},mounted(){this.has_pro&&(this.appReady=!0,this.fetchData())}},[["render",function(e,t,a,i,s,n){const o=Zl("IconPack"),r=KI,l=vk,c=bA,d=_A,u=Zl("ByTickets"),p=Zl("ByAgents"),h=Zl("ByCustomers"),g=Zl("NarrowPromo");return e.has_pro?(Hd(),jd("div",Aze,[eu("div",Rze,[eu("div",Oze,[eu("h3",Nze,fe(e.$t("Time Sheet")),1)]),eu("div",Ize,[eu("div",Dze,[eu("div",Mze,[eu("div",Lze,[tu(o,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),n.formattedDateRange?(Hd(),jd("span",Pze,fe(n.formattedDateRange),1)):(Hd(),jd("span",Fze,fe(e.$t("Select date range")),1))]),tu(r,{modelValue:s.dateRange,"onUpdate:modelValue":t[0]||(t[0]=e=>s.dateRange=e),type:"daterange",editable:!1,onChange:n.handleDateRangeChange,onCalendarChange:n.handleCalendarChange,"range-separator":"To","disabled-date":n.disableLargeRange,"value-format":"YYYY-MM-DD","start-placeholder":e.$t("Start date"),"end-placeholder":e.$t("End date"),shortcuts:s.shortcuts,class:"fs_date_range_picker"},null,8,["modelValue","onChange","onCalendarChange","disabled-date","start-placeholder","end-placeholder","shortcuts"])])]),eu("div",$ze,[tu(l,{type:"default",onClick:n.exportReport},{default:br(()=>[t[4]||(t[4]=eu("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M5.25 1.773V3.273H1.5V13.773H13.5V7.023H15V14.523C15 14.7219 14.921 14.9127 14.7803 15.0533C14.6397 15.194 14.4489 15.273 14.25 15.273H0.75C0.551088 15.273 0.360322 15.194 0.21967 15.0533C0.0790176 14.9127 0 14.7219 0 14.523V2.523C0 2.32409 0.0790176 2.13332 0.21967 1.99267C0.360322 1.85202 0.551088 1.773 0.75 1.773H5.25ZM12.7125 3.273L10.5 1.0605L11.5605 0L15.5655 4.005C15.6284 4.06793 15.6711 4.14808 15.6885 4.23532C15.7058 4.32256 15.6969 4.41298 15.6629 4.49515C15.6288 4.57733 15.5712 4.64758 15.4973 4.69704C15.4234 4.74649 15.3364 4.77292 15.2475 4.773H9C8.60218 4.773 8.22064 4.93104 7.93934 5.21234C7.65804 5.49364 7.5 5.87518 7.5 6.273V10.773H6V6.273C6 5.47735 6.31607 4.71429 6.87868 4.15168C7.44129 3.58907 8.20435 3.273 9 3.273H12.7125Z",fill:"#525866"})],-1)),eu("span",Bze,fe(e.$t("Export")),1)],void 0),_:1},8,["onClick"])])])]),eu("div",Vze,[eu("div",Uze,[eu("div",Hze,[eu("div",zze,["byTickets"===s.status?(Hd(),qd(d,{key:0,modelValue:s.selectedMailBoxes,"onUpdate:modelValue":t[1]||(t[1]=e=>s.selectedMailBoxes=e),onChange:n.fetchData,placeholder:e.$t("Select Mailboxes"),clearable:"",filterable:"",multiple:"","collapse-tags":"",class:"fs_time_sheet_select fs_staff_filter fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.allMailBoxes,e=>(Hd(),qd(c,{key:e.key,label:e.label,value:e.key},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","onChange","placeholder"])):ou("",!0),"byAgents"===s.status?(Hd(),qd(d,{key:1,modelValue:s.selectedAgent,"onUpdate:modelValue":t[2]||(t[2]=e=>s.selectedAgent=e),onChange:n.fetchData,placeholder:e.$t("Select an Agent"),clearable:"",filterable:"",multiple:"","collapse-tags":"",class:"fs_time_sheet_select fs_staff_filter fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.allAgents,e=>(Hd(),qd(c,{key:e.key,label:e.label,value:e.key},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","onChange","placeholder"])):ou("",!0),"byCustomers"===s.status?(Hd(),qd(d,{key:2,modelValue:s.selectedCustomer,"onUpdate:modelValue":t[3]||(t[3]=e=>s.selectedCustomer=e),onChange:n.fetchData,placeholder:e.$t("Select a customer"),clearable:"",filterable:"",multiple:"","collapse-tags":"",class:"fs_time_sheet_select fs_staff_filter fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.allCustomers,e=>(Hd(),qd(c,{key:e.key,label:e.label,value:e.key},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","onChange","placeholder"])):ou("",!0)]),eu("div",Yze,[eu("div",Gze,[(Hd(!0),jd(Pd,null,sc(s.statusFilters,(e,t)=>(Hd(),jd("button",{key:t,onClick:e=>n.setStatus(t),class:ne(["fs_segment_button",{fs_segment_active:s.status===t}])},fe(e),11,Wze))),128))])])])]),s.appReady?(Hd(),jd(Pd,{key:0},["byTickets"===s.status?(Hd(),qd(u,{key:0,ref:"byTickets",date_range:s.dateRange,tasks:s.ticketsData.tasks,timeSheets:s.ticketsData.timeSheets,dateLabels:s.ticketsData.dateLabels,totalMinutes:s.ticketsData.totalMinutes,isLoaded:s.ticketsData.isLoaded,selectedMailBoxes:s.selectedMailBoxes},null,8,["date_range","tasks","timeSheets","dateLabels","totalMinutes","isLoaded","selectedMailBoxes"])):"byAgents"===s.status?(Hd(),qd(p,{key:1,ref:"byAgents",date_range:s.dateRange,agents:s.agentsData.agents,timeSheets:s.agentsData.timeSheets,dateLabels:s.agentsData.dateLabels,totalMinutes:s.agentsData.totalMinutes,isLoaded:s.agentsData.isLoaded,selectedAgent:s.selectedAgent},null,8,["date_range","agents","timeSheets","dateLabels","totalMinutes","isLoaded","selectedAgent"])):"byCustomers"===s.status?(Hd(),qd(h,{key:2,ref:"byCustomers",date_range:s.dateRange,customers:s.customersData.customers,timeSheets:s.customersData.timeSheets,dateLabels:s.customersData.dateLabels,totalMinutes:s.customersData.totalMinutes,isLoaded:s.customersData.isLoaded,selectedCustomer:s.selectedCustomer},null,8,["date_range","customers","timeSheets","dateLabels","totalMinutes","isLoaded","selectedCustomer"])):ou("",!0)],64)):ou("",!0)])])):(Hd(),qd(g,{key:1,heading:e.$t("get_overall_reports"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))}]]),Menu:rx},data(){const e=this.getTabFromUrl()||"personal-reports",t=this.getDateRangeFromUrl()||[Ik().subtract(6,"day").format("YYYY-MM-DD"),Ik().format("YYYY-MM-DD")];return{activeName:e,me:this.appVars.me,date_range:t,isMenuOpen:!1}},computed:{activeComponent(){return{overview:"Overview","personal-reports":"PersonalReports","agent-reports":"Reports","product-reports":"ProductReports","business-box-reports":"BusinessBoxReports","agent-group-reports":"AgentGroupReports","activity-reports":"ActivityByTimeOfDay","time-sheet":"TimeSheet"}[this.activeName]||"PersonalReports"},activeComponentUrl(){return{overview:"overview","personal-reports":"reports/stats","product-reports":"product-reports","business-box-reports":"mailbox-reports","activity-reports":"activity-by-time-of-day","time-sheet":"time-sheet"}[this.activeName]||""}},methods:{getHashParams(){const e=window.location.hash,t=e.indexOf("?");return-1!==t?new URLSearchParams(e.substring(t+1)):new URLSearchParams},getTabFromUrl(){const e=this.getHashParams().get("tab");return["personal-reports","agent-reports","product-reports","business-box-reports","agent-group-reports","activity-reports","time-sheet"].includes(e)?e:null},getDateRangeFromUrl(){const e=this.getHashParams(),t=e.get("from"),a=e.get("to");return t&&a?[t,a]:null},setActiveTab(e){this.activeName=e,this.updateUrl(),this.closeMenu()},toggleMenu(){this.isMenuOpen=!this.isMenuOpen,this.isMenuOpen?document.body.style.overflow="hidden":document.body.style.overflow=""},closeMenu(){this.isMenuOpen=!1,document.body.style.overflow=""},updateUrl(){const e=window.location.hash.split("?")[0]||"#/reports",t=new URLSearchParams;t.set("tab",this.activeName),"time-sheet"!==this.activeName&&this.date_range&&2===this.date_range.length&&(t.set("from",this.date_range[0]),t.set("to",this.date_range[1]));const a=e+"?"+t.toString();window.history.pushState({},"",window.location.pathname+window.location.search+a)},handleDateChange(e){this.date_range=e,this.updateUrl()}},mounted(){window.addEventListener("popstate",()=>{const e=this.getTabFromUrl();e&&(this.activeName=e);const t=this.getDateRangeFromUrl();t&&(this.date_range=t)})},beforeUnmount(){document.body.style.overflow=""}},[["render",function(e,t,a,i,s,n){const o=Zl("Menu"),r=jx,l=vk;return Hd(),jd("div",jze,[vr(eu("div",{class:ne(["fs_reports_menu_overlay",{"is-open":s.isMenuOpen}]),onClick:t[0]||(t[0]=Th((...e)=>n.closeMenu&&n.closeMenu(...e),["stop"]))},null,2),[[vp,s.isMenuOpen]]),eu("div",{class:ne(["fs_reports_menu_toggle",{"is-hidden":s.isMenuOpen}])},[s.isMenuOpen?ou("",!0):(Hd(),qd(l,{key:0,class:"fs_outline_btn fs_reports_menu_toggle_btn",onClick:n.toggleMenu},{default:br(()=>[tu(r,null,{default:br(()=>[tu(o)],void 0),_:1}),su(" "+fe(e.$t("Reports")),1)],void 0),_:1},8,["onClick"]))],2),eu("div",qze,[eu("div",Kze,[eu("div",Xze,[eu("div",Qze,[eu("button",{class:ne(["fs_nav_tab",{fs_nav_tab_active:"personal-reports"===s.activeName}]),onClick:t[1]||(t[1]=e=>n.setActiveTab("personal-reports"))},fe(e.$t("Personal Reports")),3),-1!=s.me.permissions.indexOf("fst_sensitive_data")?(Hd(),jd("button",{key:0,class:ne(["fs_nav_tab",{fs_nav_tab_active:"agent-reports"===s.activeName}]),onClick:t[2]||(t[2]=e=>n.setActiveTab("agent-reports"))},fe(e.$t("Agents Reports")),3)):ou("",!0),-1!=s.me.permissions.indexOf("fst_sensitive_data")?(Hd(),jd("button",{key:1,class:ne(["fs_nav_tab",{fs_nav_tab_active:"agent-group-reports"===s.activeName}]),onClick:t[3]||(t[3]=e=>n.setActiveTab("agent-group-reports"))},fe(e.$t("Agent Groups Reports")),3)):ou("",!0),-1!=s.me.permissions.indexOf("fst_sensitive_data")?(Hd(),jd("button",{key:2,class:ne(["fs_nav_tab",{fs_nav_tab_active:"product-reports"===s.activeName}]),onClick:t[4]||(t[4]=e=>n.setActiveTab("product-reports"))},fe(e.$t("Products Reports")),3)):ou("",!0),-1!=s.me.permissions.indexOf("fst_sensitive_data")?(Hd(),jd("button",{key:3,class:ne(["fs_nav_tab",{fs_nav_tab_active:"business-box-reports"===s.activeName}]),onClick:t[5]||(t[5]=e=>n.setActiveTab("business-box-reports"))},fe(e.$t("Business Boxes Reports")),3)):ou("",!0),-1!=s.me.permissions.indexOf("fst_sensitive_data")?(Hd(),jd("button",{key:4,class:ne(["fs_nav_tab",{fs_nav_tab_active:"activity-reports"===s.activeName}]),onClick:t[6]||(t[6]=e=>n.setActiveTab("activity-reports"))},fe(e.$t("Activity Reports")),3)):ou("",!0),-1!=s.me.permissions.indexOf("fst_sensitive_data")&&"yes"===e.appVars.agent_time_tracking&&e.has_pro?(Hd(),jd("button",{key:5,class:ne(["fs_nav_tab",{fs_nav_tab_active:"time-sheet"===s.activeName}]),onClick:t[7]||(t[7]=e=>n.setActiveTab("time-sheet"))},fe(e.$t("Time Sheet")),3)):ou("",!0)])])]),eu("div",{class:ne(["fs_inside_menu_tab_header fs_mobile_drawer",{"is-open":s.isMenuOpen}])},[eu("div",Zze,[eu("div",Jze,[eu("button",{class:ne(["fs_nav_tab",{fs_nav_tab_active:"personal-reports"===s.activeName}]),onClick:t[8]||(t[8]=e=>n.setActiveTab("personal-reports"))},fe(e.$t("Personal Reports")),3),-1!=s.me.permissions.indexOf("fst_sensitive_data")?(Hd(),jd("button",{key:0,class:ne(["fs_nav_tab",{fs_nav_tab_active:"agent-reports"===s.activeName}]),onClick:t[9]||(t[9]=e=>n.setActiveTab("agent-reports"))},fe(e.$t("Agents Reports")),3)):ou("",!0),-1!=s.me.permissions.indexOf("fst_sensitive_data")?(Hd(),jd("button",{key:1,class:ne(["fs_nav_tab",{fs_nav_tab_active:"agent-group-reports"===s.activeName}]),onClick:t[10]||(t[10]=e=>n.setActiveTab("agent-group-reports"))},fe(e.$t("Agent Groups Reports")),3)):ou("",!0),-1!=s.me.permissions.indexOf("fst_sensitive_data")?(Hd(),jd("button",{key:2,class:ne(["fs_nav_tab",{fs_nav_tab_active:"product-reports"===s.activeName}]),onClick:t[11]||(t[11]=e=>n.setActiveTab("product-reports"))},fe(e.$t("Products Reports")),3)):ou("",!0),-1!=s.me.permissions.indexOf("fst_sensitive_data")?(Hd(),jd("button",{key:3,class:ne(["fs_nav_tab",{fs_nav_tab_active:"business-box-reports"===s.activeName}]),onClick:t[12]||(t[12]=e=>n.setActiveTab("business-box-reports"))},fe(e.$t("Business Boxes Reports")),3)):ou("",!0),-1!=s.me.permissions.indexOf("fst_sensitive_data")?(Hd(),jd("button",{key:4,class:ne(["fs_nav_tab",{fs_nav_tab_active:"activity-reports"===s.activeName}]),onClick:t[13]||(t[13]=e=>n.setActiveTab("activity-reports"))},fe(e.$t("Activity Reports")),3)):ou("",!0),-1!=s.me.permissions.indexOf("fst_sensitive_data")&&"yes"===e.appVars.agent_time_tracking&&e.has_pro?(Hd(),jd("button",{key:5,class:ne(["fs_nav_tab",{fs_nav_tab_active:"time-sheet"===s.activeName}]),onClick:t[14]||(t[14]=e=>n.setActiveTab("time-sheet"))},fe(e.$t("Time Sheet")),3)):ou("",!0)])])],2),eu("div",eYe,[eu("div",tYe,[eu("div",aYe,[(Hd(),qd(Nl,null,[(Hd(),qd(ec(n.activeComponent),{url:n.activeComponentUrl,key:s.activeName,date_range:s.date_range,onDateChange:n.handleDateChange},null,40,["url","date_range","onDateChange"]))],1024))])])])])])}]]),sYe={name:"AllWorkflows",components:{Pagination:dq,TableMoreActions:Tge,BulkAction:Pye,NarrowPromo:Hie},data:()=>({workflows:[],loading:!1,search:"",pagination:{per_page:10,current_page:1,total:0},showAddModal:!1,new_workflow:{title:"",trigger_type:"manual"},creating:!1,deleting:!1,duplicating:!1,workflowId:"",workflowName:"",selectedWorkflows:[],selectedBulkAction:"",showBulkDeleteDialog:!1,bulkActionItems:[]}),computed:{bulkActions:()=>[{value:"delete",label:"Delete"}],bulkDeleteWarning(){const e=this.bulkActionItems?this.bulkActionItems.length:0;return e?this.$t(`Are you sure to delete ${e} workflow(s)? All associated data will be deleted.`):this.$t("No workflows selected for deletion.")}},mounted(){this.has_pro&&this.fetch(),this.$setTitle(this.$t("Workflows"))},methods:{async fetch(){this.loading=!0,await this.$get("workflows",{per_page:this.pagination.per_page,page:this.pagination.current_page,search:this.search}).then(e=>{this.workflows=e.workflows.data,this.pagination.total=e.workflows.total}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},async createWorkflow(){if(!this.new_workflow.title)return this.$notify({type:"error",message:this.$t("Workflow title is required"),position:"bottom-right"}),!1;this.creating=!0,await this.$post("workflows",this.new_workflow).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.$router.push({name:"edit-workflow",params:{workflow_id:e.workflow.id}})}).catch(e=>{this.$handleError(e)}).always(()=>{this.creating=!1})},async duplicateWorkflow(e){this.duplicating=!0,await this.$post("workflows/duplicate/"+e).then(e=>{this.$notify({type:"success",message:this.$t("Workflow duplicated successfully"),position:"bottom-right"}),this.fetch(),this.duplicating=!1,this.renewOptions("workflows/options")}).catch(e=>{this.duplicating=!1,this.$handleError(e)}).always(()=>{this.deleting=!1})},async deleteWorkflow(e){this.deleting=!0,await this.$del("workflows/"+e).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fetch(),this.renewOptions("workflows/options")}).catch(e=>{this.$handleError(e)}).always(()=>{this.deleting=!1})},handleSearch(){this.pagination.current_page=1,this.fetch()},handleSelectionChange(e){this.selectedWorkflows=e},handleBulkAction({action:e,items:t}){if("delete"===e){if(!t||!t.length)return;this.bulkActionItems=t,this.showBulkDeleteDialog=!0}},async confirmBulkDelete(){if(this.bulkActionItems&&this.bulkActionItems.length){this.deleting=!0;try{const e=this.bulkActionItems.map(e=>e.id);for(const t of e)await this.$del("workflows/"+t);this.$notify({type:"success",message:this.$t("Selected workflows deleted successfully"),position:"bottom-right"}),this.selectedWorkflows=[],this.selectedBulkAction="",this.showBulkDeleteDialog=!1,this.bulkActionItems=[],await this.fetch(),this.renewOptions("workflows/options")}catch(e){this.$handleError(e)}finally{this.deleting=!1}}else this.showBulkDeleteDialog=!1},cancelBulkDelete(){this.showBulkDeleteDialog=!1,this.bulkActionItems=[]},handlePageChange(e){this.pagination.current_page=e,this.fetch()},handlePerPageChange(){this.pagination.current_page=1,this.fetch()}}},nYe={class:"fs_all_workflows"},oYe={key:0,class:"fs_box_wrapper"},rYe={class:"fs_component_header"},lYe={class:"fs_component_head"},cYe={class:"fs_page_title"},dYe={class:"fs_box_actions"},uYe={class:"fs_table_container"},pYe={class:"fs_table_header"},hYe={class:"fs_bulk_actions"},gYe={class:"fs-controls-bulk-actions"},mYe={class:"fs_search_container"},fYe={key:0,class:"fs_table_wrapper"},_Ye={style:{"text-transform":"capitalize"}},bYe={class:"fs-table-action-cell"},vYe={class:"fs_action_button_wrapper"},yYe={key:0,class:"fs_pagination_wrapper"},SYe={class:"fs_pagination_left"},xYe={class:"fs_pagination_right"},wYe={key:1},EYe={class:"fs_workflow_type_info"},CYe={key:0},kYe={class:"fs_workflow_info_header"},TYe={class:"fs_workflow_info_header_text"},AYe={class:"fs_workflow_info_body"},RYe={class:"fs_workflow_info_header_text"},OYe={class:"fs_workflow_info_header_example_title"},NYe={class:"fs_workflow_info_header_example_text"},IYe={key:1},DYe={class:"fs_workflow_info_header"},MYe={class:"fs_workflow_info_header_text"},LYe={class:"fs_workflow_info_body"},PYe={class:"fs_workflow_info_header_text"},FYe={class:"fs_workflow_info_header_example_title"},$Ye={class:"fs_workflow_info_header_example_text"},BYe={class:"fs_dialog_footer"},VYe={class:"fs_dialog_warning_content"},UYe={class:"fs_popconfirm_actions"};const HYe=dH(sYe,[["render",function(e,t,a,i,s,n){const o=vk,r=Zl("BulkAction"),l=Zl("Search"),c=jx,d=oC,u=JP,p=Zl("router-link"),h=Zl("EditPen"),g=Zl("TableMoreActions"),m=ZP,f=Zl("pagination"),_=OL,b=Zl("NarrowPromo"),v=sE,y=UR,S=HR,x=iE,w=pD,E=q$;return Hd(),jd("div",nYe,[e.has_pro?(Hd(),jd("div",oYe,[eu("div",rYe,[eu("div",lYe,[eu("h3",cYe,fe(e.$t("All Workflows")),1)]),eu("div",dYe,[tu(o,{type:"primary",disabled:!e.has_pro,class:"fs_filled_btn",onClick:t[0]||(t[0]=e=>s.showAddModal=!0),icon:"Plus"},{default:br(()=>[su(fe(e.$t("Create New")),1)],void 0),_:1},8,["disabled"])])]),eu("div",uYe,[eu("div",pYe,[eu("div",hYe,[eu("div",gYe,[tu(r,{"selected-items":s.selectedWorkflows,actions:n.bulkActions,"selected-action":s.selectedBulkAction,"onUpdate:selectedAction":t[1]||(t[1]=e=>s.selectedBulkAction=e),onApplyAction:n.handleBulkAction},null,8,["selected-items","actions","selected-action","onApplyAction"])])]),eu("div",mYe,[tu(d,{modelValue:s.search,"onUpdate:modelValue":t[2]||(t[2]=e=>s.search=e),placeholder:e.$t("Enter workflow title to search"),onKeyup:Rh(n.handleSearch,["enter"]),onBlur:n.handleSearch,onClear:n.handleSearch,clearable:"",class:"fs_text_input fs_table_search_input"},{prefix:br(()=>[tu(c,null,{default:br(()=>[tu(l)],void 0),_:1})]),_:1},8,["modelValue","placeholder","onKeyup","onBlur","onClear"])])]),s.loading?(Hd(),jd("div",wYe,[tu(_,{rows:3,animated:""})])):(Hd(),jd("div",fYe,[tu(m,{data:s.workflows,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell","table-layout":"fixed",onSelectionChange:n.handleSelectionChange,ref:"workflowTable"},{default:br(()=>[tu(u,{type:"selection",width:"50",align:"center"}),tu(u,{prop:"id",label:e.$t("ID"),width:"90",sortable:""},{header:br(()=>[eu("span",null,fe(e.$t("ID")),1)]),_:1},8,["label"]),tu(u,{width:"446",label:e.$t("Title")},{header:br(()=>[su(fe(e.$t("Title")),1)]),default:br(e=>[tu(p,{class:"fs_workflow_title_link",to:{name:"edit-workflow",params:{workflow_id:e.row.id}}},{default:br(()=>[su(fe(e.row.title),1)],void 0),_:2},1032,["to"])]),_:1},8,["label"]),tu(u,{prop:"trigger",label:e.$t("Trigger"),width:"160",sortable:""},{default:br(e=>[su(fe(e.row.trigger_human_name||"N/A"),1)]),_:1},8,["label"]),tu(u,{prop:"status",label:e.$t("Status"),width:"120",sortable:""},{header:br(()=>[eu("span",null,fe(e.$t("Status")),1)]),default:br(e=>[su(fe(e.row.status?e.row.status.charAt(0).toUpperCase()+e.row.status.slice(1):""),1)]),_:1},8,["label"]),tu(u,{prop:"trigger_type",label:e.$t("Trigger Type"),width:"160",sortable:""},{header:br(()=>[eu("span",null,fe(e.$t("Trigger Type")),1)]),default:br(e=>[eu("span",_Ye,fe(e.row.trigger_type),1)]),_:1},8,["label"]),tu(u,{align:"center",width:"150",label:e.$t("Action")},{default:br(t=>[eu("div",bYe,[eu("div",vYe,[tu(p,{to:{name:"edit-workflow",params:{workflow_id:t.row.id}}},{default:br(()=>[tu(c,null,{default:br(()=>[tu(h)],void 0),_:1})],void 0),_:1},8,["to"])]),tu(g,{scope:t,fetching:s.loading,actions:["delete","duplicate"],onDelete:e=>n.deleteWorkflow(t.row.id),onDuplicate:e=>n.duplicateWorkflow(t.row.id),"delete-warning":e.$t("Are you sure to delete this? All associate data will be deleted")},null,8,["scope","fetching","onDelete","onDuplicate","delete-warning"])])]),_:1},8,["label"])],void 0),_:1},8,["data","onSelectionChange"]),s.workflows.length?(Hd(),jd("div",yYe,[eu("div",SYe,[eu("p",null,"Page "+fe(s.pagination.current_page)+" of "+fe(Math.ceil(s.pagination.total/s.pagination.per_page)),1),tu(f,{onFetch:t[3]||(t[3]=e=>n.fetch()),pagination:s.pagination,layout:"sizes"},null,8,["pagination"])]),eu("div",xYe,[tu(f,{onFetch:t[4]||(t[4]=e=>n.fetch()),pagination:s.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ou("",!0)]))])])):(Hd(),qd(b,{key:1,heading:e.$t("Automate your tickets by applying manual or automated tasks"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"])),tu(w,{modelValue:s.showAddModal,"onUpdate:modelValue":t[9]||(t[9]=e=>s.showAddModal=e),title:e.$t("Add a New Workflow"),width:"60%",class:"fs_dialog"},{footer:br(()=>[eu("span",BYe,[tu(o,{class:"fs_outline_btn",onClick:t[7]||(t[7]=()=>s.showAddModal=!1)},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),vr((Hd(),qd(o,{disabled:s.creating||!s.new_workflow.title,type:"primary",class:"fs_filled_btn",onClick:t[8]||(t[8]=e=>n.createWorkflow())},{default:br(()=>[su(fe(e.$t("Create Workflow")),1)],void 0),_:1},8,["disabled"])),[[E,s.creating]])])]),default:br(()=>[tu(x,{data:s.new_workflow,"label-position":"top"},{default:br(()=>[tu(v,{label:e.$t("Your Workflow Name"),class:"fs_form_item"},{default:br(()=>[tu(d,{class:"fs_text_input fs_text_input_40",type:"text",placeholder:e.$t("Workflow Name"),modelValue:s.new_workflow.title,"onUpdate:modelValue":t[5]||(t[5]=e=>s.new_workflow.title=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"]),tu(v,{label:e.$t("Workflow Type"),class:"fs_form_item"},{default:br(()=>[tu(S,{modelValue:s.new_workflow.trigger_type,"onUpdate:modelValue":t[6]||(t[6]=e=>s.new_workflow.trigger_type=e)},{default:br(()=>[tu(y,{value:"manual"},{default:br(()=>[su(fe(e.$t("Manual")),1)],void 0),_:1}),tu(y,{value:"automatic"},{default:br(()=>[su(fe(e.$t("Automatic")),1)],void 0),_:1})],void 0),_:1},8,["modelValue"])],void 0),_:1},8,["label"]),eu("div",EYe,["manual"==s.new_workflow.trigger_type?(Hd(),jd("div",CYe,[eu("div",kYe,[eu("span",TYe,fe(e.$t("A Manual workflow doesn't do anything until you tell it to. When you apply a manual workflow from a ticket, Fluent Support performs all the actions.")),1)]),eu("div",AYe,[eu("div",RYe,[eu("span",OYe,fe(e.$t("Example")),1),eu("span",NYe,fe(e.$t("When a customer's ticket/response in with a specific question, you execute this workflow to send a reply, add a tag and assign it to someone on your team.")),1)])])])):"automatic"==s.new_workflow.trigger_type?(Hd(),jd("div",IYe,[eu("div",DYe,[eu("span",MYe,fe(e.$t("Automatic workflows are always on, running on selected ticket events. Based on what's happening to your tickets and conversations, It will run the defined actions automatically.")),1)]),eu("div",LYe,[eu("div",PYe,[eu("span",FYe,fe(e.$t("Example")),1)]),eu("span",$Ye,fe(e.$t('When the subject line contains "Bug Report", you want Fluent Support to automatically add a tag, send an email to the customer and assign a support agent.')),1)])])):ou("",!0)])],void 0),_:1},8,["data"])],void 0),_:1},8,["modelValue","title"]),tu(w,{modelValue:s.showBulkDeleteDialog,"onUpdate:modelValue":t[10]||(t[10]=e=>s.showBulkDeleteDialog=e),title:e.$t("Confirm Delete"),width:"400",class:"fs_dialog","append-to-body":!0},{footer:br(()=>[eu("div",UYe,[tu(o,{class:"fs_outline_btn",size:"small",onClick:n.cancelBulkDelete},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),tu(o,{class:"fs_filled_btn",size:"small",loading:s.deleting,onClick:n.confirmBulkDelete},{default:br(()=>[su(fe(e.$t("Delete")),1)],void 0),_:1},8,["loading","onClick"])])]),default:br(()=>[eu("div",VYe,[t[11]||(t[11]=eu("i",{class:"el-icon el-message-box__status el-message-box-icon--warning"},[eu("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[eu("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})])],-1)),eu("p",null,fe(n.bulkDeleteWarning),1)])],void 0),_:1},8,["modelValue","title"])])}]]),zYe={class:"fs_trigger_view"},YYe=["src"],GYe={class:"fs_trigger_name"},WYe={class:"fs_trigger_details"},jYe={class:"fs_trigger_editor"},qYe={key:0},KYe={class:"fs_action_footer"},XYe={class:"fs_popconfirm_actions"};const QYe={class:"fs_add_trigger"},ZYe={class:"fs_provider_selectors"};const JYe={class:"fs_triggers_wrap"};const eGe={key:0,class:"fs_conditional_group"},tGe={class:"fs_condition_line"},aGe={class:"fs_cond_block fs_cond_data"},iGe={class:"fs_cond_block fs_cond_operator"},sGe={key:0,class:"fs_cond_block fc_cond_value"},nGe={key:1,class:"fs_range_inputs"},oGe={key:0,class:"fs_range_inputs"},rGe={class:"fs_cond_block fs_cond_action"},lGe=["onClick"],cGe={class:"fs_group_footer"},dGe={class:"fs_or_text"};const uGe={class:"fs_trigger_mappers"},pGe={key:0,class:"fs_trigger_conditions"},hGe={key:0,class:"fs_filter_separator"},gGe={class:"fs_condition_sign"},mGe={class:"fs_condition_sign fs_button"};const fGe={class:"fs_all_workflows"},_Ge={class:"fs_box_header"},bGe={class:"fs_box_head"},vGe={key:0,class:"fs_box_actions fs-gap-16"},yGe={class:"fs_workflow_status"},SGe={class:"fs_workflow_status_text"},xGe={class:"fs_workflow_status_text_label"},wGe={class:"fs_box_wrapper"},EGe={key:0,class:"fs_workflow_edit_wrap"},CGe={key:0,class:"fs_box fs_triggers_wrap"},kGe={class:"fs_box_edit_header"},TGe={class:"fs_box_head"},AGe={class:"fs_box_body fs_padded_24"},RGe={key:1,class:"fs_box fs_triggers_wrap"},OGe={class:"fs_box_edit_header"},NGe={class:"fs_box_head"},IGe={class:"fs_box_body fs_padded_20"},DGe={class:"fs_box fs_actions_wrap"},MGe={class:"fs_box_edit_header"},LGe={class:"fs_box_head"},PGe={class:"fs_box_body fs_padded_24"},FGe={key:1,class:"fs_workflow_edit_wrap fs_padded_20"};const $Ge=dH({name:"EditWorkFlow",components:{ActionMappers:dH({name:"ActionMappers",props:["workflow_id","actions","all_actions"],components:{ActionMap:dH({name:"ActionMap",props:["action","actions","activeName","dragKey"],components:{FormBuilder:ure},data(){return{settings_fields:{},loading:!1,builder_ready:!0,localActiveName:this.activeName}},watch:{activeName(e){this.localActiveName=e}},mounted(){this.action.settings||(this.action.settings={})},methods:{triggerEventChanged(){if(!this.action.action_name)return this.action.settings={},!1;if(!this.actions[this.action.action_name])return!1;this.builder_ready=!1;const e=JSON.parse(JSON.stringify(this.actions[this.action.action_name]));this.action.settings=e.settings_defaults||{},this.action.title=e.title||"",setTimeout(()=>{this.builder_ready=!0},100)},emitSave(){this.action.is_open=!this.action.is_open,this.$emit("update")},deleteAction(){this.action.is_open=!this.action.is_open,this.$emit("deleteAction")}}},[["render",function(e,t,a,i,s,n){const o=KE,r=bA,l=_A,c=oC,d=sE,u=Zl("form-builder"),p=Zl("Delete"),h=jx,g=vk,m=yL,f=wO,_=xO,b=q$;return vr((Hd(),jd("div",zYe,[tu(_,{modelValue:s.localActiveName,"onUpdate:modelValue":t[5]||(t[5]=e=>s.localActiveName=e)},{default:br(()=>[tu(f,{name:a.action.activeName,class:"fs_actions_board"},{title:br(()=>{var t;return[tu(o,{class:"box-item",effect:"dark",content:e.$t("Drag and Drop Action"),placement:"top-start"},{default:br(()=>[eu("img",{src:e.appVars.asset_url+"/images/icons/dragAndDrop.svg"},null,8,YYe)],void 0),_:1},8,["content"]),eu("div",GYe,fe((null==(t=a.actions[a.action.action_name])?void 0:t.title)||a.action.title||""),1)]}),default:br(()=>{var i;return[eu("div",WYe,[eu("div",jYe,[eu("h3",null,fe(e.$t("Action")),1),tu(l,{onChange:t[0]||(t[0]=e=>n.triggerEventChanged()),placeholder:e.$t("Select Integration Event"),modelValue:a.action.action_name,"onUpdate:modelValue":t[1]||(t[1]=e=>a.action.action_name=e),class:"fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(a.actions,(e,t)=>(Hd(),qd(r,{key:t,value:t,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["placeholder","modelValue"]),a.action.action_name&&a.actions[a.action.action_name]&&s.builder_ready?(Hd(),jd("div",qYe,[(Hd(),qd(u,{key:a.dragKey,fields:(null==(i=a.actions[a.action.action_name])?void 0:i.fields)||[],"form-data":a.action.settings},{form_end:br(()=>[tu(d,{label:e.$t("Action Title"),class:"fs_action_title_form_item"},{default:br(()=>[tu(c,{link:"",placeholder:e.$t("Action Title"),modelValue:a.action.title,"onUpdate:modelValue":t[2]||(t[2]=e=>a.action.title=e)},null,8,["placeholder","modelValue"])],void 0),_:1},8,["label"])]),_:1},8,["fields","form-data"])),eu("div",KYe,[tu(m,{width:310,title:e.$t("delete_action_warning"),onConfirm:t[3]||(t[3]=e=>n.deleteAction())},{reference:br(()=>[tu(g,{class:"fs_delete_action_btn",link:""},{default:br(()=>[tu(h,null,{default:br(()=>[tu(p)],void 0),_:1}),eu("span",null,fe(e.$t("Delete Action")),1)],void 0),_:1})]),actions:br(({confirm:t,cancel:a})=>[eu("div",XYe,[tu(g,{class:"fs_outline_btn",size:"small",onClick:a},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),tu(g,{class:"fs_filled_btn",size:"small",onClick:t},{default:br(()=>[su(fe(e.$t("Yes, Delete this Action")),1)],void 0),_:1},8,["onClick"])])]),_:1},8,["title"]),tu(g,{class:"fs_save_action_btn",onClick:t[4]||(t[4]=e=>n.emitSave()),type:"primary"},{default:br(()=>[su(fe(e.$t("Save")),1)],void 0),_:1})])])):ou("",!0)])])]},void 0),_:1},8,["name"])],void 0),_:1},8,["modelValue"])])),[[b,s.loading]])}]]),ActionAdder:dH({name:"ActionAdder",props:["all_actions","actions_param_size"],emits:["success"],data:()=>({action:{title:"",action_name:"",settings:{}}}),computed:{selectedProvider(){const e=this.action.action_provider;return!!e&&this.all_actions[e]}},methods:{actionSuccess(){if(this.action.action_name){let e={};this.all_actions[this.action.action_name].settings_defaults&&(e=JSON.parse(JSON.stringify(this.all_actions[this.action.action_name].settings_defaults))),this.action.is_open=!0,this.action.settings=e,this.$emit("success",this.action),setTimeout(()=>{this.action={title:"",action_name:"",settings:{}}},200)}}}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A;return Hd(),jd("div",QYe,[eu("h3",{class:ne(["fs_select_field_label",a.actions_param_size?"fs_mt-16":""])},fe(e.$t("Select Action")),3),eu("ul",ZYe,[tu(r,{onChange:t[0]||(t[0]=e=>n.actionSuccess()),modelValue:s.action.action_name,"onUpdate:modelValue":t[1]||(t[1]=e=>s.action.action_name=e),class:"fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(a.all_actions,(e,t)=>(Hd(),qd(o,{value:t,label:e.title},null,8,["value","label"]))),256))],void 0),_:1},8,["modelValue"])])])}]]),draggable:cH},data:()=>({actionsParam:[],show_adder:!1,dragKey:Date.now()}),watch:{actionsParam:{handler(e,t){if(t&&e.length===t.length&&JSON.stringify(e)!==JSON.stringify(t)){const t=e.map(e=>e.id);this.$emit("updateActionSequence",t)}this.emitUpdatedActions()},deep:!0}},mounted(){this.actions.length||(this.show_adder=!0),this.actionsParam=JSON.parse(JSON.stringify(this.actions))},methods:{appendAction(e){this.show_adder=!1;const t={...e,workflow_id:this.workflow_id,activeName:`action_${Date.now()}_${Math.random().toString(36).substr(2,9)}`};this.actionsParam.push(t)},removeAction(e){this.actionsParam.splice(e,1),this.$emit("updateActions",this.actionsParam)},onDragEnd(){this.dragKey=Date.now(),this.$emit("updateActions",this.actionsParam)},triggerUpdate(){this.$emit("updateWorkFlow")},emitUpdatedActions(){this.$emit("update:actions",this.actionsParam)}}},[["render",function(e,t,a,i,s,n){const o=Zl("action-map"),r=Zl("draggable"),l=Zl("action-adder"),c=vk;return Hd(),jd("div",JYe,[eu("div",null,[s.actionsParam.length?(Hd(),qd(r,{key:0,modelValue:s.actionsParam,"onUpdate:modelValue":t[0]||(t[0]=e=>s.actionsParam=e),"ghost-class":"ghost",class:"fs_all_triggers","item-key":"id",onEnd:n.onDragEnd},{item:br(({element:e,index:t})=>[(Hd(),jd("div",{key:e.id,class:"fs_trigger_map"},[tu(o,{dragKey:s.dragKey,onDeleteAction:e=>n.removeAction(t),onUpdate:n.triggerUpdate,action:e,activeName:e.activeName,actions:a.all_actions},null,8,["dragKey","onDeleteAction","onUpdate","action","activeName","actions"])]))]),_:1},8,["modelValue","onEnd"])):ou("",!0)]),vr(tu(l,{onSuccess:n.appendAction,all_actions:a.all_actions,actions_param_size:s.actionsParam.length},null,8,["onSuccess","all_actions","actions_param_size"]),[[vp,s.show_adder]]),s.show_adder?ou("",!0):(Hd(),qd(c,{key:0,type:"info",onClick:t[1]||(t[1]=e=>s.show_adder=!0),class:"fs_outline_btn fs_add_another_action_btn"},{default:br(()=>[t[2]||(t[2]=eu("svg",{class:"fs_add_icon",width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M4.5 4.5V0H6V4.5H10.5V6H6V10.5H4.5V6H0V4.5H4.5Z",fill:"currentColor"})],-1)),eu("span",null,fe(e.$t("Add Another Action")),1)],void 0),_:1}))])}]]),TriggerMappers:dH({name:"TriggerMappers",props:["workflow","trigger_fields","workflow_conditions"],components:{TriggerConditionalGroup:dH({name:"TriggerConditionGroup",props:["settings","conditional_fields","all_conditions"],emits:["deleteGroup"],components:{RemoteCommerceSelect:dH({name:"RemoteCommerceSelect",props:{modelValue:{type:[Array,String],default:()=>[]},provider:{type:String,default:""},optionType:{type:String,default:""}},emits:["update:modelValue"],data(){return{options:[],loading:!1,selected:Array.isArray(this.modelValue)?this.modelValue:[]}},watch:{modelValue(e){this.selected=Array.isArray(e)?e:[]},selected(e){this.$emit("update:modelValue",e)}},created(){this._reqToken=0,this._debouncedFetch=cwe(e=>this.fetchOptions(e),300)},mounted(){this.selected.length&&this.fetchOptions("",this.selected)},methods:{remoteSearch(e){this._debouncedFetch(e)},fetchOptions(e,t){if(!this.provider)return;const a={provider:this.provider,type:this.optionType};t&&t.length?a.ids=t.join(","):a.search=e||"";const i=++this._reqToken;this.loading=!0,this.$get("workflows/commerce-options",a).then(e=>{i===this._reqToken&&(this.options=e.options||[])}).catch(e=>{this.$handleError&&this.$handleError(e)}).always(()=>{i===this._reqToken&&(this.loading=!1)})}}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A;return Hd(),qd(r,{modelValue:s.selected,"onUpdate:modelValue":t[0]||(t[0]=e=>s.selected=e),multiple:"",filterable:"",remote:"","collapse-tags":"","collapse-tags-tooltip":"","reserve-keyword":"","remote-method":n.remoteSearch,loading:s.loading,placeholder:e.$t("Search"),class:"fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.options,e=>(Hd(),qd(o,{key:e.id,value:e.id,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","remote-method","loading","placeholder"])}]])},data:()=>({app_ready:!1}),mounted(){this.settings&&this.settings.length||this.settings.push({data_key:"",data_operator:"",data_value:""}),this.app_ready=!0},methods:{addMore(){this.settings.push({data_key:"",data_operator:"",data_value:""})},maybeValueReset(e,t){"data_key"===t?(e.data_operator="",e.data_value=""):"operator"===t&&e.data_key&&e.data_operator&&"range"===e.data_operator&&(e.value_1="",e.value_2="")},removeCondition(e){1==this.settings.length?this.$emit("deleteGroup"):this.settings.splice(e,1)},deleteSection(){this.$emit("deleteGroup")}}},[["render",function(e,t,a,i,s,n){const o=bA,r=vA,l=_A,c=oC,d=Zl("remote-commerce-select"),u=KI,p=CF;return s.app_ready?(Hd(),jd("div",eGe,[(Hd(!0),jd(Pd,null,sc(a.settings,(i,s)=>(Hd(),jd("div",{key:s},[eu("div",tGe,[eu("div",aGe,[tu(l,{onChange:e=>n.maybeValueReset(i,"data_key"),modelValue:i.data_key,"onUpdate:modelValue":e=>i.data_key=e,class:"fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(a.conditional_fields,(e,t)=>(Hd(),qd(r,{key:t,label:t},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(e.children,(e,t)=>(Hd(),qd(o,{key:e.condition_key,label:e.title,value:e.condition_key},null,8,["label","value"]))),128))],void 0),_:2},1032,["label"]))),128))],void 0),_:1},8,["onChange","modelValue","onUpdate:modelValue"])]),i.data_key&&a.all_conditions[i.data_key]?(Hd(),jd(Pd,{key:0},[eu("div",iGe,[tu(l,{onChange:e=>n.maybeValueReset(i,"operator"),placeholder:e.$t("Operator"),modelValue:i.data_operator,"onUpdate:modelValue":e=>i.data_operator=e,class:"fs_select_field"},{default:br(()=>["string"==a.all_conditions[i.data_key].data_type?(Hd(),jd(Pd,{key:0},[tu(o,{value:"contains",label:e.$t("Contains")},null,8,["label"]),tu(o,{value:"not_contains",label:e.$t("Not contains")},null,8,["label"])],64)):ou("",!0),"single_dropdown"==a.all_conditions[i.data_key].data_type?(Hd(),jd(Pd,{key:1},[tu(o,{value:"equal",label:e.$t("Equal")},null,8,["label"]),tu(o,{value:"not_equal",label:e.$t("Not Equal")},null,8,["label"])],64)):ou("",!0),"multiple_select"==a.all_conditions[i.data_key].data_type||"remote_select"==a.all_conditions[i.data_key].data_type?(Hd(),jd(Pd,{key:2},[tu(o,{value:"includes_in",label:e.$t("Includes In")},null,8,["label"]),tu(o,{value:"not_includes_in",label:e.$t("Not Includes In")},null,8,["label"])],64)):"yes_no"==a.all_conditions[i.data_key].data_type?(Hd(!0),jd(Pd,{key:3},sc(a.all_conditions[i.data_key].options,(e,t)=>(Hd(),qd(o,{value:t,key:t,label:e},null,8,["value","label"]))),128)):"date_range"==a.all_conditions[i.data_key].data_type?(Hd(),jd(Pd,{key:4},[tu(o,{value:"<",label:e.$t("Is before")},null,8,["label"]),tu(o,{value:">",label:e.$t("Is after")},null,8,["label"]),tu(o,{value:"range",label:e.$t("Is between")},null,8,["label"])],64)):"time_range"==a.all_conditions[i.data_key].data_type?(Hd(),qd(o,{key:5,value:"range",label:e.$t("Is between")},null,8,["label"])):ou("",!0)],void 0),_:2},1032,["onChange","placeholder","modelValue","onUpdate:modelValue"])]),i.data_operator?(Hd(),jd("div",sGe,["string"==a.all_conditions[i.data_key].data_type?(Hd(),qd(c,{key:0,type:"text",modelValue:i.data_value,"onUpdate:modelValue":e=>i.data_value=e,placeholder:e.$t("Condition Value"),class:"fs_text_input"},null,8,["modelValue","onUpdate:modelValue","placeholder"])):ou("",!0),"single_dropdown"==a.all_conditions[i.data_key].data_type?(Hd(),qd(l,{key:1,modelValue:i.data_value,"onUpdate:modelValue":e=>i.data_value=e,class:"fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(a.all_conditions[i.data_key].options,(e,t)=>(Hd(),qd(o,{value:t,key:t,label:e},null,8,["value","label"]))),128))],void 0),_:2},1032,["modelValue","onUpdate:modelValue"])):ou("",!0),"multiple_select"==a.all_conditions[i.data_key].data_type?(Hd(),qd(l,{key:2,modelValue:i.data_value,"onUpdate:modelValue":e=>i.data_value=e,multiple:"","collapse-tags":"",class:"fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(a.all_conditions[i.data_key].options,(e,t)=>(Hd(),qd(o,{value:t,key:t,label:e},null,8,["value","label"]))),128))],void 0),_:2},1032,["modelValue","onUpdate:modelValue"])):ou("",!0),"remote_select"==a.all_conditions[i.data_key].data_type?(Hd(),qd(d,{key:i.data_key,modelValue:i.data_value,"onUpdate:modelValue":e=>i.data_value=e,provider:a.all_conditions[i.data_key].option_provider,"option-type":a.all_conditions[i.data_key].option_type},null,8,["modelValue","onUpdate:modelValue","provider","option-type"])):"date_range"==a.all_conditions[i.data_key].data_type?(Hd(),jd(Pd,{key:4},[">"==i.data_operator||"<"==i.data_operator?(Hd(),qd(u,{key:0,"value-format":"YYYY-MM-DD HH:mm",modelValue:i.data_value,"onUpdate:modelValue":e=>i.data_value=e,type:"datetime",placeholder:e.$t("Pick a day")},null,8,["modelValue","onUpdate:modelValue","placeholder"])):"range"==i.data_operator?(Hd(),jd("div",nGe,[tu(u,{"value-format":"YYYY-MM-DD HH:mm",modelValue:i.value_1,"onUpdate:modelValue":e=>i.value_1=e,type:"datetime",placeholder:e.$t("From")},null,8,["modelValue","onUpdate:modelValue","placeholder"]),tu(u,{"value-format":"YYYY-MM-DD HH:mm",modelValue:i.value_2,"onUpdate:modelValue":e=>i.value_2=e,type:"datetime",placeholder:e.$t("To")},null,8,["modelValue","onUpdate:modelValue","placeholder"])])):ou("",!0)],64)):"time_range"==a.all_conditions[i.data_key].data_type?(Hd(),jd(Pd,{key:5},["range"==i.data_operator?(Hd(),jd("div",oGe,[tu(p,{start:"00:00",step:"00:10",end:"23:59",modelValue:i.value_1,"onUpdate:modelValue":e=>i.value_1=e,placeholder:e.$t("From")},null,8,["modelValue","onUpdate:modelValue","placeholder"]),tu(p,{start:"00:00",step:"00:10",end:"23:59",modelValue:i.value_2,"onUpdate:modelValue":e=>i.value_2=e,placeholder:e.$t("To")},null,8,["modelValue","onUpdate:modelValue","placeholder"])])):ou("",!0)],64)):ou("",!0)])):ou("",!0)],64)):ou("",!0),eu("div",rGe,[eu("div",{class:"fs_delete_condition_btn",onClick:e=>n.removeCondition(s)},[...t[1]||(t[1]=[eu("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M11.25 3H15V4.5H13.5V14.25C13.5 14.4489 13.421 14.6397 13.2803 14.7803C13.1397 14.921 12.9489 15 12.75 15H2.25C2.05109 15 1.86032 14.921 1.71967 14.7803C1.57902 14.6397 1.5 14.4489 1.5 14.25V4.5H0V3H3.75V0.75C3.75 0.551088 3.82902 0.360322 3.96967 0.21967C4.11032 0.0790176 4.30109 0 4.5 0H10.5C10.6989 0 10.8897 0.0790176 11.0303 0.21967C11.171 0.360322 11.25 0.551088 11.25 0.75V3ZM12 4.5H3V13.5H12V4.5ZM5.25 6.75H6.75V11.25H5.25V6.75ZM8.25 6.75H9.75V11.25H8.25V6.75ZM5.25 1.5V3H9.75V1.5H5.25Z",fill:"#525866"})],-1)])],8,lGe)])])]))),128)),eu("div",cGe,[eu("button",{type:"button",class:"fs_or_btn_wrapper",onClick:t[0]||(t[0]=e=>n.addMore())},[t[2]||(t[2]=eu("svg",{width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M4.5 4.5V0H6V4.5H10.5V6H6V10.5H4.5V6H0V4.5H4.5Z",fill:"currentColor"})],-1)),eu("span",dGe,fe(e.$t("OR")),1)])])])):ou("",!0)}]])},data:()=>({app_ready:!1}),computed:{conditional_fields(){if(!this.workflow.trigger_key)return[];const e=this.trigger_fields.triggers[this.workflow.trigger_key].supported_conditions,t={};return qK(this.trigger_fields.conditions,(a,i)=>{-1!==e.indexOf(i)&&(t[a.group]||(t[a.group]={title:a.group,children:[]}),a.condition_key=i,t[a.group].children.push(a))}),t}},mounted(){this.app_ready=!0},methods:{addMore(){this.workflow_conditions.push([{data_key:"",data_operator:"",data_value:""}])},deleteGroup(e){this.workflow_conditions.length>1?this.workflow_conditions.splice(e,1):(this.workflow_conditions.splice(e,1),this.workflow_conditions.push([{data_key:"",data_operator:"",data_value:""}]))}}},[["render",function(e,t,a,i,s,n){const o=bA,r=_A,l=sE,c=Zl("trigger-conditional-group");return Hd(),jd("div",uGe,[tu(l,{label:e.$t("Workflow Trigger")},{default:br(()=>[tu(r,{modelValue:a.workflow.trigger_key,"onUpdate:modelValue":t[0]||(t[0]=e=>a.workflow.trigger_key=e),class:"fs_select_field"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(a.trigger_fields.triggers,(e,t)=>(Hd(),qd(o,{value:t,key:t,label:e.title},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"])],void 0),_:1},8,["label"]),a.workflow.trigger_key&&s.app_ready?(Hd(),jd("div",pGe,[eu("h3",null,fe(e.$t("Conditions")),1),(Hd(!0),jd(Pd,null,sc(a.workflow_conditions,(t,i)=>(Hd(),jd("div",{class:"fs_each_cond_group",key:i},[tu(c,{onDeleteGroup:e=>n.deleteGroup(i),conditional_fields:n.conditional_fields,all_conditions:a.trigger_fields.conditions,settings:t},null,8,["onDeleteGroup","conditional_fields","all_conditions","settings"]),i+1!=a.workflow_conditions.length?(Hd(),jd("div",hGe,[eu("div",gGe,fe(e.$t("AND")),1)])):ou("",!0)]))),128)),eu("div",{class:"fs_filter_separator",onClick:t[1]||(t[1]=e=>n.addMore())},[eu("div",mGe,[t[2]||(t[2]=eu("svg",{class:"fs_add_and_icon",width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M4.5 4.5V0H6V4.5H10.5V6H6V10.5H4.5V6H0V4.5H4.5Z",fill:"#0E121B"})],-1)),su(" "+fe(e.$t("AND")),1)])])])):ou("",!0)])}]])},props:["workflow_id"],data:()=>({workflow:!1,workflow_conditions:[],actions:[],action_fields:{},trigger_fields:{},loading:!1,saving:!1,filtred_action_fields:{},actionSequence:[],editingTitle:!1,originalTitle:""}),created(){this.has_pro&&this.fetch()},watch:{"workflow.trigger_key"(e){const{action_fields:t}=this,a={};if("fluent_support/ticket_closed"===e){const e=["fs_action_create_response","fs_action_close_ticket","fs_action_assign_agent","fs_block_customer","fs_delete_ticket"];for(let i in t)e.includes(i)||(a[i]=t[i])}else if("fluent_support/ticket_created"===e){const e=["fs_action_remove_bookmarks","fs_action_remove_tags"];for(let i in t)e.includes(i)||(a[i]=t[i])}else Object.assign(a,t);this.filtred_action_fields=a}},methods:{startEditTitle(){this.originalTitle=this.workflow.title||"",this.editingTitle=!0,this.$nextTick(()=>{this.$refs.titleInputRef&&this.$refs.titleInputRef.focus&&this.$refs.titleInputRef.focus()})},finishEditTitle(){this.editingTitle=!1;(this.workflow.title||"")!==(this.originalTitle||"")&&this.updateWorkFlow()},async fetch(){this.loading=!0,this.$get("workflows/"+this.workflow_id,{with:["action_fields","trigger_fields"]}).then(e=>{"automatic"===e.workflow.trigger_type&&(e.workflow.settings||(e.workflow.settings={}),this.workflow_conditions=e.workflow.settings.conditions||[]),this.workflow=e.workflow,this.actions=e.actions,this.trigger_fields=e.trigger_fields,this.action_fields=e.action_fields}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},async updateWorkFlow(){this.saving=!0;const e=JSON.parse(JSON.stringify(this.workflow));"automatic"===e.trigger_type&&(e.settings||(e.settings={}),e.settings.conditions=this.workflow_conditions||[]),this.$post("workflows/"+this.workflow_id,{actions:this.actions,workflow:e}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),"automatic"===e.workflow.trigger_type&&(e.workflow.settings||(e.workflow.settings={}),this.workflow_conditions=e.workflow.settings.conditions||[]),this.workflow=e.workflow,this.actions=e.actions,"published"===this.workflow.status&&this.renewOptions("workflows/options")}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},async updateActionSequence(e){this.actionSequence=e,this.$post("workflows/action-sequence",{workflow_id:this.workflow_id,action_sequence:e}).then(()=>{}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})}}},[["render",function(e,t,a,i,s,n){const o=$C,r=vk,l=oC,c=FC,d=VL,u=Zl("trigger-mappers"),p=iE,h=Zl("action-mappers"),g=OL,m=q$;return Hd(),jd("div",fGe,[eu("div",_Ge,[eu("div",bGe,[tu(c,{separator:"/"},{default:br(()=>[tu(o,{to:{name:"workflows"}},{default:br(()=>[su(fe(e.$t("Workflows")),1)],void 0),_:1}),s.workflow?(Hd(),qd(o,{key:0},{default:br(()=>[s.editingTitle?(Hd(),qd(l,{key:1,ref:"titleInputRef",modelValue:s.workflow.title,"onUpdate:modelValue":t[0]||(t[0]=e=>s.workflow.title=e),size:"small",class:"fs_inline_title_input fs_text_input",onBlur:n.finishEditTitle,onKeyup:Rh(n.finishEditTitle,["enter"])},null,8,["modelValue","onBlur","onKeyup"])):(Hd(),jd(Pd,{key:0},[su(fe(s.workflow.title)+" ",1),tu(r,{link:"",type:"primary",class:"fs_inline_edit_btn",onClick:n.startEditTitle},{default:br(()=>[...t[5]||(t[5]=[eu("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 11 12",fill:"none"},[eu("path",{d:"M2.0484 8.38247L8.1336 2.29727L7.2852 1.44887L1.2 7.53407V8.38247H2.0484ZM2.5458 9.58247H0V7.03667L6.861 0.175672C6.97352 0.0631893 7.1261 0 7.2852 0C7.4443 0 7.59688 0.0631893 7.7094 0.175672L9.4068 1.87307C9.51928 1.98559 9.58247 2.13817 9.58247 2.29727C9.58247 2.45637 9.51928 2.60896 9.4068 2.72147L2.5458 9.58247ZM0 10.7825H10.8V11.9825H0V10.7825Z",fill:"#525866"})],-1)])],void 0),_:1},8,["onClick"])],64))],void 0),_:1})):ou("",!0)],void 0),_:1})]),s.workflow?(Hd(),jd("div",vGe,[eu("div",yGe,[tu(d,{onChange:t[1]||(t[1]=e=>n.updateWorkFlow()),"active-value":"published","inactive-value":"draft",modelValue:s.workflow.status,"onUpdate:modelValue":t[2]||(t[2]=e=>s.workflow.status=e)},null,8,["modelValue"]),eu("div",SGe,[eu("span",xGe,fe(e.$t("Status"))+": ",1),su(" "+fe(s.workflow.status?s.workflow.status.charAt(0).toUpperCase()+s.workflow.status.slice(1):""),1)])]),vr((Hd(),qd(r,{disabled:s.saving,class:"fs_filled_btn",type:"success",onClick:t[3]||(t[3]=e=>n.updateWorkFlow())},{default:br(()=>[su(fe(e.$t("Update Workflow")),1)],void 0),_:1},8,["disabled"])),[[m,s.saving]])])):ou("",!0)]),eu("div",wGe,[s.workflow?vr((Hd(),jd("div",EGe,["automatic"==s.workflow.trigger_type?(Hd(),jd("div",CGe,[eu("div",kGe,[eu("div",TGe,[eu("h3",null,fe(e.$t("Set Your Trigger & Conditions")),1)])]),eu("div",AGe,[tu(p,{"label-position":"top",data:s.workflow},{default:br(()=>[tu(u,{workflow_conditions:s.workflow_conditions,workflow:s.workflow,trigger_fields:s.trigger_fields},null,8,["workflow_conditions","workflow","trigger_fields"])],void 0),_:1},8,["data"])])])):(Hd(),jd("div",RGe,[eu("div",OGe,[eu("div",NGe,[eu("h3",null,fe(e.$t("Manual Trigger")),1)])]),eu("div",IGe,[su(fe(e.$t("This is a"))+" ",1),eu("b",null,fe(e.$t("manual workflow")),1),su(fe(e.$t(". You can set your actions and run the workflow actions from ticket page.")),1)])])),eu("div",DGe,[eu("div",MGe,[eu("div",LGe,[eu("h3",null,fe(e.$t("Workflow Actions (Tasks)")),1)])]),eu("div",PGe,[tu(h,{actions:s.actions,all_actions:s.filtred_action_fields,"onUpdate:actions":t[4]||(t[4]=e=>s.actions=e),onUpdateActionSequence:n.updateActionSequence,onUpdateWorkFlow:n.updateWorkFlow},null,8,["actions","all_actions","onUpdateActionSequence","onUpdateWorkFlow"])])])])),[[m,s.saving]]):(Hd(),jd("div",FGe,[eu("div",null,[tu(g,{rows:3,animated:""}),tu(g,{rows:4,animated:""})])]))])])}]]),BGe={class:"fs_activity_settings"},VGe={class:"fs_dialog_footer fs_text_right"};const UGe=dH({name:"ActivitySettings",emits:["updated"],data:()=>({loading:!1,saving:!1,activity_settings:{}}),methods:{async fetchSettings(){this.loading=!0,await this.$get("activity-logger/settings").then(e=>{this.activity_settings=e.activity_settings}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},async updateSettings(){this.saving=!0,await this.$post("activity-logger/settings",{activity_settings:this.activity_settings}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.$emit("updated")}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})}},mounted(){this.fetchSettings()}},[["render",function(e,t,a,i,s,n){const o=oC,r=sE,l=wR,c=iE,d=vk,u=q$;return vr((Hd(),jd("div",BGe,[tu(c,{"label-position":"top"},{default:br(()=>[tu(r,{label:e.$t("Automatically delete activity logs after days")},{default:br(()=>[tu(o,{type:"number",min:"1",max:"60",modelValue:s.activity_settings.delete_days,"onUpdate:modelValue":t[0]||(t[0]=e=>s.activity_settings.delete_days=e),class:"fs_text_input fs_mb_5"},null,8,["modelValue"])],void 0),_:1},8,["label"]),tu(r,{class:"fs_form_item fs_mt-10"},{default:br(()=>[tu(l,{"true-label":"yes","false-label":"no",modelValue:s.activity_settings.disable_logs,"onUpdate:modelValue":t[1]||(t[1]=e=>s.activity_settings.disable_logs=e)},{default:br(()=>[su(fe(e.$t("Disable Activity Logs")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1}),tu(r,{class:"fs_form_item"},{default:br(()=>[tu(l,{"true-label":"yes","false-label":"no",modelValue:s.activity_settings.open_link_in_new_tab,"onUpdate:modelValue":t[2]||(t[2]=e=>s.activity_settings.open_link_in_new_tab=e)},{default:br(()=>[su(fe(e.$t("Open Ticket in New Tab")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1})],void 0),_:1}),eu("div",VGe,[vr((Hd(),qd(d,{disabled:s.saving,type:"success",onClick:t[3]||(t[3]=e=>n.updateSettings()),class:"fs_filled_btn"},{default:br(()=>[su(fe(e.$t("Update Settings")),1)],void 0),_:1},8,["disabled"])),[[u,s.saving]])])])),[[u,s.loading]])}]]),HGe={key:0,class:"fs_activity_disabled_banner"},zGe={class:"fs_banner_icon"},YGe={class:"fs_banner_text"},GGe={class:"fs_inside_menu_component_header"},WGe={class:"fs_component_head"},jGe={class:"fs_page_title"},qGe={class:"fs_box_actions"},KGe={class:"fs_activity_logger"},XGe={class:"fs_activity_filters_section"},QGe={class:"fs_activity_filters"},ZGe={class:"fs_filter_group"},JGe={class:"fs_filter_group"},eWe={class:"fs_date_button_group"},tWe={class:"fs_date_button_group_item fs_date_picker_wrapper"},aWe={class:"fs_date_display"},iWe={key:0,class:"fs_date_text"},sWe={key:1,class:"fs_date_placeholder"},nWe={key:0},oWe={key:0,class:"fs_activity_timeline_container"},rWe={key:0,class:"fs_activity_timeline"},lWe=["onClick"],cWe={class:"fs_timeline_icon"},dWe={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},uWe=["d"],pWe={class:"fs_timeline_content"},hWe=["innerHTML"],gWe={class:"fs_activity_time"},mWe={key:1,class:"fs_pagination_wrapper"},fWe={class:"fs_pagination_left"},_We={class:"fs_pagination_right"},bWe={key:2,class:"fs_loading_skeleton"},vWe={key:1,class:"fs_no_activities"},yWe=["src"];const SWe={class:"fs_activity_settings"},xWe={class:"fs_dialog_footer fs_text_right"};const wWe={key:0,class:"fs_activity_disabled_banner"},EWe={class:"fs_banner_icon"},CWe={class:"fs_banner_text"},kWe={class:"fs_inside_menu_component_header"},TWe={class:"fs_component_head"},AWe={class:"fs_page_title"},RWe={class:"fs_box_actions"},OWe={class:"fs_activity_logger"},NWe={class:"fs_activity_filters_section"},IWe={class:"fs_activity_filters"},DWe={class:"fs_filter_group"},MWe={class:"fs_filter_group"},LWe={class:"fs_date_button_group"},PWe={class:"fs_date_button_group_item fs_date_picker_wrapper"},FWe={class:"fs_date_display"},$We={key:0,class:"fs_date_text"},BWe={key:1,class:"fs_date_placeholder"},VWe={key:0,class:"fs_table_wrapper"},UWe={key:1,class:"fs_ticket_not_available"},HWe={key:0,class:"fs_pagination_wrapper"},zWe={class:"fs_pagination_left"},YWe={class:"fs_pagination_right"},GWe={key:1,class:"fs_skeleton_loader"};const WWe={class:"fs_inside_activity_menu_tab_header"},jWe={class:"fs_box_head"},qWe={class:"fs-inside-activity-menu-tabs"},KWe={class:"fs_box_wrapper"},XWe={class:"fs_component_dashboard fs_activity_logger_component"};const QWe=dH({name:"Activity",components:{ActivityLogger:dH({name:"ActivityLogger",components:{ActivitySettings:UGe,Pagination:dq,IconPack:$z},data(){return{activities:[],loading:!1,me:this.appVars.me,showSettingsModal:!1,pagination:{per_page:10,current_page:1,total:0},settings:{},filters:{},date_range:null,shortcuts:cVe}},computed:{formattedDateRange(){return EBe(this.date_range)}},methods:{async fetchActivities(){this.loading=!0,await this.$get("activity-logger",{per_page:this.pagination.per_page,page:this.pagination.current_page,filters:this.filters,from:this.date_range&&this.date_range.length>0?this.date_range[0]:"",to:this.date_range&&this.date_range.length>1?this.date_range[1]:""}).then(e=>{this.activities=e.activities.data,this.pagination.total=e.activities.total,this.settings=e.settings}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},handleClick(e,t){const a=t.target.getAttribute("href");if(!a)return!1;const i={name:"view_ticket",params:{ticket_id:e.object_id}};if("yes"==this.settings.open_link_in_new_tab&&"#view_ticket"==a){const e=this.$router.resolve(i);window.open(e.href,"_blank")}else this.$router.push(i)},getActivityIcon(e){const t=e.description.toLowerCase();return t.includes("created")?"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z":t.includes("response")&&t.includes("customer")?"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z":t.includes("response")&&t.includes("agent")?"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z":t.includes("note")?"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z":t.includes("closed")?"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z":t.includes("reopened")?"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15":t.includes("assign")?"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z":t.includes("deleted")?"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16":"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},getActivityIconClass(e){const t=e.description.toLowerCase();return t.includes("created")?"fs_icon_created":t.includes("response")&&t.includes("customer")?"fs_icon_customer":t.includes("response")&&t.includes("agent")?"fs_icon_agent":t.includes("note")?"fs_icon_note":t.includes("closed")?"fs_icon_closed":t.includes("reopened")?"fs_icon_reopened":t.includes("assign")?"fs_icon_assigned":t.includes("deleted")?"fs_icon_deleted":"fs_icon_default"},formatActivityTime:e=>new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})},mounted(){this.fetchActivities(),this.$setTitle("Activities")}},[["render",function(e,t,a,i,s,n){const o=Zl("IconPack"),r=bA,l=_A,c=Zl("Calendar"),d=jx,u=KI,p=Zl("pagination"),h=OL,g=Zl("activity-settings"),m=pD,f=q$;return Hd(),jd(Pd,null,["yes"==s.settings.disable_logs?(Hd(),jd("div",HGe,[eu("div",zGe,[tu(o,{"icon-key":"warning",width:20,height:20,class:"fs_warn_icon"})]),eu("span",YGe,fe(e.$t("Activity Logs are currently disabled")),1)])):ou("",!0),eu("div",GGe,[eu("div",WGe,[eu("h3",jGe,fe(e.$t("Overall Activities")),1)]),eu("div",qGe,[vr((Hd(),jd("button",{class:"fs_refresh_button",onClick:t[0]||(t[0]=e=>n.fetchActivities())},[t[9]||(t[9]=eu("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M2.59725 1.82476C3.95817 0.645503 5.69924 -0.0025049 7.5 7.27699e-06C11.6423 7.27699e-06 15 3.35776 15 7.50001C15 9.10201 14.4975 10.587 13.6425 11.805L11.25 7.50001H13.5C13.5001 6.32373 13.1544 5.17336 12.506 4.19195C11.8576 3.21054 10.9349 2.44138 9.85288 1.9801C8.77082 1.51882 7.57704 1.38578 6.41997 1.59752C5.2629 1.80926 4.19359 2.35643 3.345 3.17101L2.59725 1.82476ZM12.4028 13.1753C11.0418 14.3545 9.30076 15.0025 7.5 15C3.35775 15 0 11.6423 0 7.50001C0 5.89801 0.5025 4.41301 1.3575 3.19501L3.75 7.50001H1.5C1.4999 8.67629 1.84556 9.82665 2.494 10.8081C3.14244 11.7895 4.06505 12.5586 5.14712 13.0199C6.22918 13.4812 7.42296 13.6142 8.58003 13.4025C9.7371 13.1908 10.8064 12.6436 11.655 11.829L12.4028 13.1753Z",fill:"#525866"})],-1)),eu("span",null,fe(e.$t("Refresh")),1)])),[[f,s.loading]])])]),eu("div",KGe,[eu("div",XGe,[eu("div",QGe,[eu("div",ZGe,[tu(l,{clearable:"",filterable:"",onChange:t[1]||(t[1]=e=>n.fetchActivities()),modelValue:s.filters.agent_id,"onUpdate:modelValue":t[2]||(t[2]=e=>s.filters.agent_id=e),placeholder:e.$t("All Support Staff"),class:"fs_select_field fs_staff_filter"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(e.appVars.support_agents,e=>(Hd(),qd(r,{key:e.id,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])]),eu("div",JGe,[eu("div",eWe,[eu("div",tWe,[eu("div",aWe,[tu(o,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),n.formattedDateRange?(Hd(),jd("span",iWe,fe(n.formattedDateRange),1)):(Hd(),jd("span",sWe,fe(e.$t("Select date range")),1))]),tu(u,{modelValue:s.date_range,"onUpdate:modelValue":t[3]||(t[3]=e=>s.date_range=e),type:"daterange",editable:!1,"range-separator":e.$t("To"),"start-placeholder":e.$t("Start"),"end-placeholder":e.$t("End"),"unlink-panels":!0,shortcuts:s.shortcuts,onChange:n.fetchActivities,"value-format":"YYYY-MM-DD",class:"fs_date_range_picker"},{"prefix-icon":br(()=>[tu(d,null,{default:br(()=>[tu(c)],void 0),_:1})]),_:1},8,["modelValue","range-separator","start-placeholder","end-placeholder","shortcuts","onChange"])])]),-1!=s.me.permissions.indexOf("fst_manage_settings")?(Hd(),jd("button",{key:0,onClick:t[4]||(t[4]=e=>s.showSettingsModal=!0),class:"fs_settings_button"},[...t[10]||(t[10]=[eu("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M3.26954 5.72492C3.38204 5.48742 3.51329 5.26242 3.66329 5.04367L3.63829 3.41867C3.63829 3.26867 3.70079 3.12492 3.81954 3.02492C4.40079 2.53742 5.06329 2.14367 5.79454 1.88117C5.93829 1.83117 6.09454 1.84367 6.21954 1.92492L7.61329 2.76242C7.87579 2.74367 8.13829 2.74367 8.40079 2.76242L9.79454 1.92492C9.92579 1.84992 10.082 1.83117 10.2258 1.88117C10.9383 2.13742 11.607 2.51867 12.2008 3.01867C12.3133 3.11242 12.382 3.26242 12.3758 3.41242L12.3508 5.03742C12.5008 5.25617 12.632 5.48117 12.7445 5.71867L14.1633 6.50617C14.2945 6.58117 14.3883 6.70617 14.4133 6.85617C14.5445 7.59992 14.5508 8.37492 14.4133 9.13117C14.3883 9.28117 14.2945 9.40617 14.1633 9.48117L12.7445 10.2687C12.632 10.5062 12.5008 10.7312 12.3508 10.9499L12.3758 12.5749C12.3758 12.7249 12.3133 12.8687 12.1945 12.9687C11.6133 13.4562 10.9508 13.8499 10.2195 14.1124C10.0758 14.1624 9.91954 14.1499 9.79454 14.0687L8.40079 13.2312C8.13829 13.2499 7.87579 13.2499 7.61329 13.2312L6.21954 14.0687C6.08829 14.1437 5.93204 14.1624 5.78829 14.1124C5.07579 13.8562 4.40704 13.4749 3.81329 12.9749C3.70079 12.8812 3.63204 12.7312 3.63829 12.5812L3.66329 10.9562C3.51329 10.7374 3.38204 10.5124 3.26954 10.2749L1.85079 9.48742C1.71954 9.41242 1.62579 9.28742 1.60079 9.13742C1.46954 8.39367 1.46329 7.61867 1.60079 6.86242C1.62579 6.71242 1.71954 6.58742 1.85079 6.51242L3.26954 5.72492Z",stroke:"#525866","stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),eu("path",{d:"M8.00073 10.9999C9.65759 10.9999 11.0007 9.65679 11.0007 7.99994C11.0007 6.34308 9.65759 4.99994 8.00073 4.99994C6.34388 4.99994 5.00073 6.34308 5.00073 7.99994C5.00073 9.65679 6.34388 10.9999 8.00073 10.9999Z",stroke:"#525866","stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])):ou("",!0)])])]),s.activities?(Hd(),jd("div",nWe,[s.loading?ou("",!0):(Hd(),jd("div",oWe,[s.activities.length>0?(Hd(),jd("div",rWe,[(Hd(!0),jd(Pd,null,sc(s.activities,e=>(Hd(),jd("div",{onClick:Th(t=>n.handleClick(e,t),["prevent"]),key:e.id,class:"fs_timeline_item"},[eu("div",cWe,[eu("div",{class:ne(["fs_activity_icon",n.getActivityIconClass(e)])},[n.getActivityIcon(e)?(Hd(),jd("svg",dWe,[eu("path",{d:n.getActivityIcon(e)},null,8,uWe)])):ou("",!0)],2)]),eu("div",pWe,[eu("div",{class:"fs_activity_description",innerHTML:e.description},null,8,hWe),eu("div",gWe,fe(n.formatActivityTime(e.created_at)),1)])],8,lWe))),128))])):ou("",!0)])),s.activities.length?(Hd(),jd("div",mWe,[eu("div",fWe,[eu("p",null,"Page "+fe(s.pagination.current_page)+" of "+fe(Math.ceil(s.pagination.total/s.pagination.per_page)),1),tu(p,{onFetch:t[5]||(t[5]=e=>n.fetchActivities()),pagination:s.pagination,layout:"sizes"},null,8,["pagination"])]),eu("div",_We,[tu(p,{onFetch:t[6]||(t[6]=e=>n.fetchActivities()),pagination:s.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ou("",!0),s.loading?(Hd(),jd("div",bWe,[tu(h,{rows:5,animated:""})])):ou("",!0)])):ou("",!0),s.activities.length<1?(Hd(),jd("div",vWe,[eu("img",{src:e.appVars.asset_url+"images/empty.svg",alt:""},null,8,yWe),eu("p",null,fe(e.$t("No Results Found")),1)])):ou("",!0),tu(m,{modelValue:s.showSettingsModal,"onUpdate:modelValue":t[8]||(t[8]=e=>s.showSettingsModal=e),title:e.$t("Activity Log Settings"),width:"60%","append-to-body":!0,class:"fs_dialog"},{default:br(()=>[tu(g,{onUpdated:t[7]||(t[7]=e=>{s.showSettingsModal=!1,n.fetchActivities()})})],void 0),_:1},8,["modelValue","title"])])],64)}]]),AIActivityLogger:dH({name:"ActivityLogger",components:{ActivitySettings:UGe,AIActivitySettings:dH({name:"AIActivitySettings",emits:["updated"],data:()=>({loading:!1,saving:!1,ai_activity_settings:{}}),methods:{async fetchSettings(){this.loading=!0,await this.$get("ai-activity-logger/settings").then(e=>{this.ai_activity_settings=e.ai_activity_settings}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},async updateSettings(){this.saving=!0,await this.$post("ai-activity-logger/settings",{ai_activity_settings:this.ai_activity_settings}).then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.$emit("updated")}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})}},mounted(){this.fetchSettings()}},[["render",function(e,t,a,i,s,n){const o=oC,r=sE,l=wR,c=iE,d=vk,u=q$;return vr((Hd(),jd("div",SWe,[tu(c,{"label-position":"top"},{default:br(()=>[tu(r,{class:"fs_form_item",label:e.$t("Automatically delete AI activity logs after days")},{default:br(()=>[tu(o,{type:"number",min:"1",max:"60",modelValue:s.ai_activity_settings.delete_days,"onUpdate:modelValue":t[0]||(t[0]=e=>s.ai_activity_settings.delete_days=e),class:"fs_text_input"},null,8,["modelValue"])],void 0),_:1},8,["label"]),tu(r,{class:"fs_form_item fs_mt-10"},{default:br(()=>[tu(l,{"true-label":"yes","false-label":"no",modelValue:s.ai_activity_settings.disable_logs,"onUpdate:modelValue":t[1]||(t[1]=e=>s.ai_activity_settings.disable_logs=e)},{default:br(()=>[su(fe(e.$t("Disable Activity Logs")),1)],void 0),_:1},8,["modelValue"])],void 0),_:1})],void 0),_:1}),eu("div",xWe,[vr((Hd(),qd(d,{disabled:s.saving,type:"success",onClick:t[2]||(t[2]=e=>n.updateSettings()),class:"fs_filled_btn"},{default:br(()=>[su(fe(e.$t("Update Settings")),1)],void 0),_:1},8,["disabled"])),[[u,s.saving]])])])),[[u,s.loading]])}]]),Pagination:dq,IconPack:$z},data(){return{aiActivities:[],loading:!1,me:this.appVars.me,showSettingsModal:!1,pagination:{per_page:10,current_page:1,total:0},settings:{},filters:{},date_range:null,shortcuts:cVe}},computed:{formattedDateRange(){return EBe(this.date_range)}},methods:{fetchAIActivities(){this.loading=!0,this.$get("ai-activity-logger",{per_page:this.pagination.per_page,page:this.pagination.current_page,filters:this.filters,from:this.date_range&&this.date_range.length>0?this.date_range[0]:"",to:this.date_range&&this.date_range.length>1?this.date_range[1]:""}).then(e=>{this.aiActivities=e.data,this.pagination.total=e.total,this.settings=e.settings,this.loading=!1})}},mounted(){this.fetchAIActivities()}},[["render",function(e,t,a,i,s,n){const o=Zl("IconPack"),r=bA,l=_A,c=Zl("Calendar"),d=jx,u=KI,p=JP,h=Zl("router-link"),g=ZP,m=Zl("pagination"),f=OL,_=Zl("AIActivitySettings"),b=pD,v=q$;return Hd(),jd(Pd,null,["yes"==s.settings.disable_logs?(Hd(),jd("div",wWe,[eu("div",EWe,[tu(o,{"icon-key":"warning",width:20,height:20,class:"fs_warn_icon"})]),eu("span",CWe,fe(e.$t("Activity Logs are currently disabled")),1)])):ou("",!0),eu("div",kWe,[eu("div",TWe,[eu("h3",AWe,fe(e.$t("AI Activities")),1)]),eu("div",RWe,[vr((Hd(),jd("button",{class:"fs_refresh_button",onClick:t[0]||(t[0]=e=>n.fetchAIActivities())},[t[9]||(t[9]=eu("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M2.59725 1.82476C3.95817 0.645503 5.69924 -0.0025049 7.5 7.27699e-06C11.6423 7.27699e-06 15 3.35776 15 7.50001C15 9.10201 14.4975 10.587 13.6425 11.805L11.25 7.50001H13.5C13.5001 6.32373 13.1544 5.17336 12.506 4.19195C11.8576 3.21054 10.9349 2.44138 9.85288 1.9801C8.77082 1.51882 7.57704 1.38578 6.41997 1.59752C5.2629 1.80926 4.19359 2.35643 3.345 3.17101L2.59725 1.82476ZM12.4028 13.1753C11.0418 14.3545 9.30076 15.0025 7.5 15C3.35775 15 0 11.6423 0 7.50001C0 5.89801 0.5025 4.41301 1.3575 3.19501L3.75 7.50001H1.5C1.4999 8.67629 1.84556 9.82665 2.494 10.8081C3.14244 11.7895 4.06505 12.5586 5.14712 13.0199C6.22918 13.4812 7.42296 13.6142 8.58003 13.4025C9.7371 13.1908 10.8064 12.6436 11.655 11.829L12.4028 13.1753Z",fill:"#525866"})],-1)),eu("span",null,fe(e.$t("Refresh")),1)])),[[v,s.loading]])])]),eu("div",OWe,[eu("div",NWe,[eu("div",IWe,[eu("div",DWe,[tu(l,{clearable:"",filterable:"",onChange:t[1]||(t[1]=e=>n.fetchAIActivities()),modelValue:s.filters.agent_id,"onUpdate:modelValue":t[2]||(t[2]=e=>s.filters.agent_id=e),placeholder:e.$t("All Support Staff"),class:"fs_select_field fs_staff_filter"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(e.appVars.support_agents,e=>(Hd(),qd(r,{key:e.id,value:e.id,label:e.full_name},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","placeholder"])]),eu("div",MWe,[eu("div",LWe,[eu("div",PWe,[eu("div",FWe,[tu(o,{"icon-key":"calendar",width:20,height:20,class:"fs_calendar_icon"}),n.formattedDateRange?(Hd(),jd("span",$We,fe(n.formattedDateRange),1)):(Hd(),jd("span",BWe,fe(e.$t("Select date range")),1))]),tu(u,{modelValue:s.date_range,"onUpdate:modelValue":t[3]||(t[3]=e=>s.date_range=e),type:"daterange",editable:!1,"range-separator":e.$t("To"),"start-placeholder":e.$t("Start"),"end-placeholder":e.$t("End"),"unlink-panels":!0,shortcuts:s.shortcuts,onChange:n.fetchAIActivities,"value-format":"YYYY-MM-DD",class:"fs_date_range_picker"},{"prefix-icon":br(()=>[tu(d,null,{default:br(()=>[tu(c)],void 0),_:1})]),_:1},8,["modelValue","range-separator","start-placeholder","end-placeholder","shortcuts","onChange"])])]),-1!=s.me.permissions.indexOf("fst_manage_settings")?(Hd(),jd("button",{key:0,onClick:t[4]||(t[4]=e=>s.showSettingsModal=!0),class:"fs_settings_button"},[...t[10]||(t[10]=[eu("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M3.26954 5.72492C3.38204 5.48742 3.51329 5.26242 3.66329 5.04367L3.63829 3.41867C3.63829 3.26867 3.70079 3.12492 3.81954 3.02492C4.40079 2.53742 5.06329 2.14367 5.79454 1.88117C5.93829 1.83117 6.09454 1.84367 6.21954 1.92492L7.61329 2.76242C7.87579 2.74367 8.13829 2.74367 8.40079 2.76242L9.79454 1.92492C9.92579 1.84992 10.082 1.83117 10.2258 1.88117C10.9383 2.13742 11.607 2.51867 12.2008 3.01867C12.3133 3.11242 12.382 3.26242 12.3758 3.41242L12.3508 5.03742C12.5008 5.25617 12.632 5.48117 12.7445 5.71867L14.1633 6.50617C14.2945 6.58117 14.3883 6.70617 14.4133 6.85617C14.5445 7.59992 14.5508 8.37492 14.4133 9.13117C14.3883 9.28117 14.2945 9.40617 14.1633 9.48117L12.7445 10.2687C12.632 10.5062 12.5008 10.7312 12.3508 10.9499L12.3758 12.5749C12.3758 12.7249 12.3133 12.8687 12.1945 12.9687C11.6133 13.4562 10.9508 13.8499 10.2195 14.1124C10.0758 14.1624 9.91954 14.1499 9.79454 14.0687L8.40079 13.2312C8.13829 13.2499 7.87579 13.2499 7.61329 13.2312L6.21954 14.0687C6.08829 14.1437 5.93204 14.1624 5.78829 14.1124C5.07579 13.8562 4.40704 13.4749 3.81329 12.9749C3.70079 12.8812 3.63204 12.7312 3.63829 12.5812L3.66329 10.9562C3.51329 10.7374 3.38204 10.5124 3.26954 10.2749L1.85079 9.48742C1.71954 9.41242 1.62579 9.28742 1.60079 9.13742C1.46954 8.39367 1.46329 7.61867 1.60079 6.86242C1.62579 6.71242 1.71954 6.58742 1.85079 6.51242L3.26954 5.72492Z",stroke:"#525866","stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),eu("path",{d:"M8.00073 10.9999C9.65759 10.9999 11.0007 9.65679 11.0007 7.99994C11.0007 6.34308 9.65759 4.99994 8.00073 4.99994C6.34388 4.99994 5.00073 6.34308 5.00073 7.99994C5.00073 9.65679 6.34388 10.9999 8.00073 10.9999Z",stroke:"#525866","stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])):ou("",!0)])])]),s.loading?(Hd(),jd("div",GWe,[tu(f,{rows:3,animated:""})])):(Hd(),jd("div",VWe,[tu(g,{data:s.aiActivities,"row-class-name":"fs_table_row","header-row-class-name":"fs_table_header_row","cell-class-name":"fs_table_cell","header-cell-class-name":"fs_table_header_cell",style:{width:"100%"}},{default:br(()=>[tu(p,{prop:"person.full_name",label:e.$t("Agent"),width:"200","min-width":"200",sortable:""},{header:br(()=>[eu("span",null,fe(e.$t("Agent")),1)]),_:1},8,["label"]),tu(p,{label:e.$t("Ticket"),width:"220","min-width":"220",sortable:""},{header:br(()=>[eu("span",null,fe(e.$t("Ticket")),1)]),default:br(e=>[e.row.ticket&&e.row.ticket.id?(Hd(),qd(h,{key:0,class:"fs_ticket_link_preview",to:{name:"view_ticket",params:{ticket_id:e.row.ticket.id}}},{default:br(()=>[eu("p",null,fe(e.row.ticket.title),1)],void 0),_:2},1032,["to"])):(Hd(),jd("span",UWe,"#"+fe(e.row.ticket_id)+" - This ticket has been deleted or is not available.",1))]),_:1},8,["label"]),tu(p,{width:"120","min-width":"120",prop:"model_name",label:e.$t("Model"),sortable:""},{header:br(()=>[eu("span",null,fe(e.$t("Model")),1)]),_:1},8,["label"]),tu(p,{width:"110","min-width":"110",prop:"tokens",label:e.$t("Tokens"),sortable:""},{header:br(()=>[eu("span",null,fe(e.$t("Tokens")),1)]),_:1},8,["label"]),tu(p,{"min-width":"300",prop:"prompt",label:e.$t("Prompt"),sortable:""},{header:br(()=>[eu("span",null,fe(e.$t("Prompt")),1)]),_:1},8,["label"])],void 0),_:1},8,["data"]),s.aiActivities.length?(Hd(),jd("div",HWe,[eu("div",zWe,[eu("p",null,fe(e.$t("Page"))+" "+fe(s.pagination.current_page)+" "+fe(e.$t("of"))+" "+fe(Math.ceil(s.pagination.total/s.pagination.per_page)),1),tu(m,{onFetch:t[5]||(t[5]=e=>n.fetchAIActivities()),pagination:s.pagination,layout:"sizes"},null,8,["pagination"])]),eu("div",YWe,[tu(m,{onFetch:t[6]||(t[6]=e=>n.fetchAIActivities()),pagination:s.pagination,background:!0,layout:"prev, pager, next"},null,8,["pagination"])])])):ou("",!0)]))]),tu(b,{modelValue:s.showSettingsModal,"onUpdate:modelValue":t[8]||(t[8]=e=>s.showSettingsModal=e),title:e.$t("Activity Log Settings"),width:"60%","append-to-body":!0,class:"fs_dialog"},{default:br(()=>[tu(_,{onUpdated:t[7]||(t[7]=e=>{s.showSettingsModal=!1,n.fetchAIActivities()})})],void 0),_:1},8,["modelValue","title"])],64)}]])},data(){return{activeName:"overall_activities",me:this.appVars.me,ai_enabled:!(!this.appVars.open_ai_integration&&!this.appVars.fluent_bot_integration)}}},[["render",function(e,t,a,i,s,n){const o=Zl("activity-logger"),r=Zl("AIActivityLogger");return Hd(),jd(Pd,null,[eu("div",WWe,[eu("div",jWe,[eu("div",qWe,[eu("button",{class:ne(["fs_activity_nav_tab",{fs_activity_nav_tab_active:"overall_activities"===s.activeName}]),onClick:t[0]||(t[0]=e=>s.activeName="overall_activities")},fe(e.$t("Overall")),3),s.ai_enabled?(Hd(),jd("button",{key:0,class:ne(["fs_activity_nav_tab",{fs_activity_nav_tab_active:"ai_activities"===s.activeName}]),onClick:t[1]||(t[1]=e=>s.activeName="ai_activities")},fe(e.$t("AI Activities")),3)):ou("",!0)])])]),eu("div",KWe,[eu("div",XWe,["overall_activities"===s.activeName?(Hd(),qd(o,{key:0})):ou("",!0),"ai_activities"===s.activeName?(Hd(),qd(r,{key:1})):ou("",!0)])])],64)}]]),ZWe={fetchNotifications:(e={})=>Oj.get("notifications",e),fetchUnread:(e={})=>Oj.get("notifications/unread",e),fetchUnreadCount:(e={})=>Oj.get("notifications/unread-count",e),markAsRead:e=>Oj.post(`notifications/${e}/mark-read`),markAllAsRead:()=>Oj.post("notifications/mark-all-read")},JWe=[{key:"all",label:"All"},{key:"mentions",label:"Mentions"},{key:"ticket_activity",label:"Ticket Activity"},{key:"automation_triggers",label:"Automation Triggers"}];function eje(e){const t=Array.isArray(e.recipients)?e.recipients[0]:null;return!(!t||!parseInt(t.is_read,10))}function tje(e){return{...e,is_read:eje(e),event_label:e.event_label||"updated a ticket",event_icon:e.event_icon||"reply"}}function aje(e=[]){return e.map(tje)}function ije(e){var t,a,i,s,n,o;return e.actor&&e.actor.full_name?e.actor.full_name:(null==(a=null==(t=e.payload)?void 0:t.customer)?void 0:a.name)?e.payload.customer.name:(null==(s=null==(i=e.payload)?void 0:i.actor)?void 0:s.name)?e.payload.actor.name:(null==(o=null==(n=e.payload)?void 0:n.assigner)?void 0:o.name)?e.payload.assigner.name:"Someone"}function sje(e){if(e.summary)return e.summary;const t=ije(e),a=e.event_label||"updated a ticket",i=function(e){var t;return e.ticket&&e.ticket.title?e.ticket.title:(null==(t=e.payload)?void 0:t.ticket_title)||""}(e);return i?`${t} ${a} in ${function(e,t=80){return(e=String(e||"")).length<=t?e:`${e.slice(0,t).trim()}...`}(i)}`:`${t} ${a}`}const nje=Tj("notification",{state:()=>({notifications:[],unreadNotifications:[],unreadCount:0,loading:!1,unreadLoading:!1,working:!1,notificationCategories:JWe,pagination:{current_page:1,total:0,per_page:10}}),actions:{async fetchNotifications(e={}){this.loading=!0;try{const t=await ZWe.fetchNotifications(e);return this.setNotificationMeta(t),this.notifications=aje(t.notifications.data||[]),this.pagination.current_page=t.notifications.current_page||1,this.pagination.total=t.notifications.total||0,this.pagination.per_page=t.notifications.per_page||e.per_page||this.pagination.per_page,void 0!==t.unread_count&&(this.unreadCount=parseInt(t.unread_count,10)||0),t}finally{this.loading=!1}},async fetchUnread(e={}){this.unreadLoading=!0;try{const t=await ZWe.fetchUnread(e);return this.setNotificationMeta(t),this.unreadNotifications=aje(t.notifications||[]),this.unreadCount=parseInt(t.unread_count,10)||0,t}finally{this.unreadLoading=!1}},async fetchUnreadCount(e={}){const t=await ZWe.fetchUnreadCount(e);return this.unreadCount=parseInt(t.count,10)||0,this.unreadCount},async markAsRead(e){const t=await ZWe.markAsRead(e);return this.notifications=this.notifications.map(t=>t.id===e?{...t,is_read:!0}:t),this.unreadNotifications=this.unreadNotifications.map(t=>t.id===e?{...t,is_read:!0}:t).filter(e=>!e.is_read),void 0!==t.unread_count?this.unreadCount=parseInt(t.unread_count,10)||0:this.unreadCount=Math.max(0,this.unreadCount-1),t},async markAllAsRead(){this.working=!0;try{const e=await ZWe.markAllAsRead();return this.notifications=this.notifications.map(e=>({...e,is_read:!0})),this.unreadNotifications=[],this.unreadCount=parseInt(e.unread_count,10)||0,e}finally{this.working=!1}},setNotificationMeta(e={}){var t;const a=(null==(t=e.meta)?void 0:t.categories)||e.notification_categories;Array.isArray(a)&&a.length&&(this.notificationCategories=a)}}}),oje={name:"NotificationItem",components:{IconPack:$z},props:{notification:{type:Object,required:!0}},emits:["open","mark-read"],computed:{actorName(){return ije(this.notification)},actorPhoto(){return(e=this.notification).actor&&e.actor.photo?e.actor.photo:(null==(a=null==(t=e.payload)?void 0:t.customer)?void 0:a.photo)?e.payload.customer.photo:(null==(s=null==(i=e.payload)?void 0:i.actor)?void 0:s.photo)?e.payload.actor.photo:(null==(o=null==(n=e.payload)?void 0:n.assigner)?void 0:o.photo)?e.payload.assigner.photo:"";var e,t,a,i,s,n,o},actorInitials(){return function(e){const t=ije(e).trim();return t?t.split(/\s+/).slice(0,2).map(e=>e.charAt(0).toUpperCase()).join(""):"S"}(this.notification)},preview(){return e=this.notification,(null==(t=e.payload)?void 0:t.content_preview)||"";var e,t},summary(){return sje(this.notification)}},methods:{handleOpen(){this.$emit("open",this.notification)}}},rje={class:"fs_notification_media"},lje={class:"fs_notification_avatar"},cje=["src","alt"],dje={key:1},uje={class:"fs_notification_event_icon"},pje={class:"fs_notification_body"},hje={class:"fs_notification_summary"},gje={key:0,class:"fs_notification_preview"},mje={class:"fs_notification_meta"},fje=["aria-label"];const _je=dH(oje,[["render",function(e,t,a,i,s,n){const o=Zl("IconPack");return Hd(),jd("div",{class:ne(["fs_notification_item",{"is-unread":!a.notification.is_read,"is-clickable":!0}]),role:"button",tabindex:"0",onClick:t[3]||(t[3]=(...e)=>n.handleOpen&&n.handleOpen(...e)),onKeydown:[t[4]||(t[4]=Rh(Th((...e)=>n.handleOpen&&n.handleOpen(...e),["prevent"]),["enter"])),t[5]||(t[5]=Rh(Th((...e)=>n.handleOpen&&n.handleOpen(...e),["prevent"]),["space"]))]},[eu("div",rje,[eu("div",lje,[n.actorPhoto?(Hd(),jd("img",{key:0,src:n.actorPhoto,alt:n.actorName},null,8,cje)):(Hd(),jd("span",dje,fe(n.actorInitials),1))]),eu("div",uje,[tu(o,{"icon-key":a.notification.event_icon,width:12,height:12},null,8,["icon-key"])])]),eu("div",pje,[eu("p",hje,fe(n.summary),1),n.preview?(Hd(),jd("p",gje,fe(n.preview),1)):ou("",!0),eu("p",mje,fe(e.$timeDiff(a.notification.created_at)),1)]),a.notification.is_read?ou("",!0):(Hd(),jd("button",{key:0,class:"fs_notification_mark_read",type:"button","aria-label":e.$t("Mark read"),onClick:t[0]||(t[0]=Th(t=>e.$emit("mark-read",a.notification),["stop"])),onKeydown:[t[1]||(t[1]=Rh(Th(()=>{},["stop"]),["enter"])),t[2]||(t[2]=Rh(Th(()=>{},["stop"]),["space"]))]},[...t[6]||(t[6]=[eu("span",{class:"fs_status_dot fs_status_dot_new"},null,-1)])],40,fje))],34)}]]),bje={name:"NotificationsPage",components:{NotificationItem:_je,Pagination:dq},data:()=>({filters:{category:"all",status:"all"}}),computed:{...Aj(nje,{notifications:"notifications",pagination:"pagination",loading:"loading",categories:"notificationCategories"})},methods:{async fetchNotifications(){const e=nje();try{await e.fetchNotifications({category:this.filters.category,status:this.filters.status,page:e.pagination.current_page,per_page:e.pagination.per_page})}catch(t){this.$handleError(t)}},async refreshList(){await this.fetchNotifications()},async setCategory(e){const t=nje();this.filters.category=e,t.pagination.current_page=1,await this.fetchNotifications()},async toggleUnreadOnly(e){const t=nje();this.filters.status=e?"unread":"all",t.pagination.current_page=1,await this.fetchNotifications()},async markRead(e){const t=nje();try{await t.markAsRead(e.id),"unread"===this.filters.status&&await this.fetchNotifications()}catch(a){this.$handleError(a)}},async openNotification(e){e.is_read||await this.markRead(e),e.ticket_id&&this.$router.push({name:"view_ticket",params:{ticket_id:e.ticket_id}})}},async mounted(){this.$setTitle("Notifications"),await this.fetchNotifications()}},vje={class:"fs_notifications_page"},yje={class:"fs_inside_activity_menu_tab_header"},Sje={class:"fs_box_head"},xje={class:"fs-inside-activity-menu-tabs"},wje=["onClick"],Eje={class:"fs_box_wrapper"},Cje={class:"fs_component_dashboard fs_activity_logger_component"},kje={class:"fs_inside_menu_component_header"},Tje={class:"fs_component_head"},Aje={class:"fs_page_title"},Rje={class:"fs_box_actions fs_notifications_header_actions"},Oje={class:"fs_notifications_switch"},Nje={key:0,class:"fs_notifications_empty"},Ije={key:1,class:"fs_notifications_page_list"},Dje={key:2,class:"fs_notifications_empty"},Mje=["src"],Lje={key:3,class:"fs_pagination_wrapper"},Pje={class:"fs_pagination_left"},Fje={class:"fs_pagination_right"};const $je=dH(bje,[["render",function(e,t,a,i,s,n){const o=VL,r=Zl("NotificationItem"),l=Zl("Pagination"),c=q$;return Hd(),jd("div",vje,[eu("div",yje,[eu("div",Sje,[eu("div",xje,[(Hd(!0),jd(Pd,null,sc(e.categories,e=>(Hd(),jd("button",{key:e.key,type:"button",class:ne(["fs_activity_nav_tab",{fs_activity_nav_tab_active:s.filters.category===e.key}]),onClick:t=>n.setCategory(e.key)},fe(e.label),11,wje))),128))])])]),eu("div",Eje,[eu("div",Cje,[eu("div",kje,[eu("div",Tje,[eu("h3",Aje,fe(e.$t("Notifications")),1)]),eu("div",Rje,[eu("label",Oje,[tu(o,{"model-value":"unread"===s.filters.status,onChange:n.toggleUnreadOnly},null,8,["model-value","onChange"]),eu("span",null,fe(e.$t("Unread only")),1)]),vr((Hd(),jd("button",{class:"fs_refresh_button",onClick:t[0]||(t[0]=(...e)=>n.refreshList&&n.refreshList(...e))},[t[1]||(t[1]=eu("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M2.59725 1.82476C3.95817 0.645503 5.69924 -0.0025049 7.5 7.27699e-06C11.6423 7.27699e-06 15 3.35776 15 7.50001C15 9.10201 14.4975 10.587 13.6425 11.805L11.25 7.50001H13.5C13.5001 6.32373 13.1544 5.17336 12.506 4.19195C11.8576 3.21054 10.9349 2.44138 9.85288 1.9801C8.77082 1.51882 7.57704 1.38578 6.41997 1.59752C5.2629 1.80926 4.19359 2.35643 3.345 3.17101L2.59725 1.82476ZM12.4028 13.1753C11.0418 14.3545 9.30076 15.0025 7.5 15C3.35775 15 0 11.6423 0 7.50001C0 5.89801 0.5025 4.41301 1.3575 3.19501L3.75 7.50001H1.5C1.4999 8.67629 1.84556 9.82665 2.494 10.8081C3.14244 11.7895 4.06505 12.5586 5.14712 13.0199C6.22918 13.4812 7.42296 13.6142 8.58003 13.4025C9.7371 13.1908 10.8064 12.6436 11.655 11.829L12.4028 13.1753Z",fill:"#525866"})],-1)),eu("span",null,fe(e.$t("Refresh")),1)])),[[c,e.loading]])])]),e.loading?(Hd(),jd("div",Nje,fe(e.$t("Loading...")),1)):e.notifications.length?(Hd(),jd("div",Ije,[(Hd(!0),jd(Pd,null,sc(e.notifications,e=>(Hd(),qd(r,{key:e.id,notification:e,onOpen:n.openNotification,onMarkRead:n.markRead},null,8,["notification","onOpen","onMarkRead"]))),128))])):(Hd(),jd("div",Dje,[eu("img",{src:e.appVars.asset_url+"images/empty.svg",alt:""},null,8,Mje),eu("p",null,fe(e.$t("No Results Found")),1)])),e.notifications.length?(Hd(),jd("div",Lje,[eu("div",Pje,[eu("p",null,"Page "+fe(e.pagination.current_page)+" of "+fe(Math.ceil(e.pagination.total/e.pagination.per_page)),1),tu(l,{onFetch:n.fetchNotifications,pagination:e.pagination,layout:"sizes"},null,8,["onFetch","pagination"])]),eu("div",Fje,[tu(l,{onFetch:n.fetchNotifications,pagination:e.pagination,background:!0,layout:"prev, pager, next"},null,8,["onFetch","pagination"])])])):ou("",!0)])])])}]]),Bje={class:"fs-incoming-webhooks"},Vje={class:"fs_box_wrapper"},Uje={class:"fs_box_header"},Hje={class:"fs_box_head"},zje={key:0,class:"fs_box_body fs_skeleton_loader"},Yje={key:1,class:"fs_box_body"},Gje={class:"fs_incoming_webhook_wrapper"},Wje={class:"fs_webhook_settings"},jje={class:"fs_select_box_label"},qje=["src"],Kje={class:"fs_popconfirm_actions"},Xje={class:"fc_inline_help"},Qje={class:"fs_webhook_info_table_wrapper"};const Zje=dH({name:"IncomingWebhook",components:{NarrowPromo:Hie},data:()=>({loading:!1,webhook:"",mailbox:"",confirmedMailbox:"",mailboxes:[],fields:[{field:"Ticket Title(Required)",field_key:"title",type:"Text"},{field:"Ticket Content(Required)",field_key:"content",type:"Text"},{field:"Ticket Priority",field_key:"priority",type:"Text"},{field:"Customer First Name",field_key:"sender[first_name]",type:"Text"},{field:"Customer Last Name",field_key:"sender[last_name]",type:"Text"},{field:"Customer Email(Required)",field_key:"sender[email]",type:"Email"},{field:"Customer Title",field_key:"sender[title]",type:"Text"},{field:"Customer Address Line 1",field_key:"sender[address_line_1]",type:"Text"},{field:"Customer Address Line 2",field_key:"sender[address_line_2]",type:"Text"},{field:"Customer City",field_key:"sender[city]",type:"Text"},{field:"Customer State",field_key:"sender[state]",type:"Text"},{field:"Customer Zip",field_key:"sender[zip]",type:"Text"},{field:"Customer Country",field_key:"sender[country]",type:"Text"},{field:"Ticket Custom Field",field_key:"custom_fields[custom_field_slug]",type:"Text"}]}),methods:{fetch(){this.loading=!0,this.$get("settings/incoming-webhook").then(e=>{this.webhook=e.webhook,this.mailboxes=e.mailboxes,this.mailbox=e.mailbox,this.confirmedMailbox=e.mailbox}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},updateWebhook(){this.loading=!0,this.$put("settings/incoming-webhook").then(e=>{this.$notify({type:"success",message:e.message,position:"bottom-right"}),this.fetch()}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},async changeBusinessBox(e){await xB.confirm(this.$t("set_mailbox_webhook"),this.$t("Warning"),{confirmButtonText:this.$t("Set Business Mailbox"),cancelButtonText:this.$t("Cancel"),type:"warning",confirmButtonClass:"fs_filled_btn",cancelButtonClass:"fs_outline_btn"}).catch(()=>!1)?(this.loading=!0,this.$put("settings/incoming-webhook",{mailbox_id:e}).then(t=>{this.$notify({type:"success",message:t.message,position:"bottom-right"}),this.confirmedMailbox=e,this.fetch()}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})):this.mailbox=this.confirmedMailbox}},mounted(){this.has_pro&&this.fetch(),this.$setTitle("Incoming Webhook Settings")}},[["render",function(e,t,a,i,s,n){const o=OL,r=lO,l=bA,c=_A,d=rO,u=oC,p=vk,h=yL,g=sE,m=iE,f=JP,_=ZP,b=Zl("NarrowPromo");return Hd(),jd("div",Bje,[eu("div",Vje,[eu("div",Uje,[eu("div",Hje,[eu("h3",null,fe(e.$t("Incoming Webhook")),1)])]),e.has_pro&&""===s.webhook?(Hd(),jd("div",zje,[tu(o,{rows:5,animated:""})])):ou("",!0),e.has_pro&&s.webhook?(Hd(),jd("div",Yje,[eu("div",Gje,[eu("div",Wje,[tu(d,{class:"fs_select_mailbox"},{default:br(()=>[tu(r,{span:24},{default:br(()=>[eu("label",jje,fe(e.$t("Select Business Box")),1)],void 0),_:1}),tu(r,{span:24,class:"fs_mailbox_select_wrapper"},{default:br(()=>[tu(c,{modelValue:s.mailbox,"onUpdate:modelValue":t[0]||(t[0]=e=>s.mailbox=e),class:"fs_select_field",placeholder:e.$t("Select"),onChange:n.changeBusinessBox},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.mailboxes,e=>(Hd(),qd(l,{key:e.id,label:e.name+"( "+e.box_type+" )",value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder","onChange"])],void 0),_:1})],void 0),_:1}),tu(m,{class:"fs_webhook_url"},{default:br(()=>[tu(g,{size:"small"},{default:br(()=>[tu(u,{label:e.$t("Incoming Webhook URL"),modelValue:s.webhook,"onUpdate:modelValue":t[1]||(t[1]=e=>s.webhook=e),readonly:!0,class:"fs_webhook_url_input"},null,8,["label","modelValue"]),tu(h,{width:310,title:e.$t("Are you sure to regenerate the webhook url? If you regenerate the url you have to change all your used webhook"),onConfirm:n.updateWebhook},{reference:br(()=>[tu(p,{size:"default",class:"fs_refresh_btn"},{default:br(()=>[eu("img",{loading:"lazy",src:e.appVars.asset_url+"images/refresh.svg",class:"fs_icon"},null,8,qje)],void 0),_:1})]),actions:br(({confirm:t,cancel:a})=>[eu("div",Kje,[tu(p,{class:"fs_outline_btn",size:"small",onClick:a},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1},8,["onClick"]),tu(p,{class:"fs_filled_btn",size:"small",onClick:t},{default:br(()=>[su(fe(e.$t("Confirm")),1)],void 0),_:1},8,["onClick"])])]),_:1},8,["title","onConfirm"])],void 0),_:1}),eu("p",Xje,fe(e.$t("to_create_tickets_using_webhooks_notice")),1)],void 0),_:1})]),t[2]||(t[2]=eu("hr",{class:"fs_divider"},null,-1)),eu("div",Qje,[eu("p",null,fe(e.$t(" Fillable Fields")),1),tu(_,{class:"fs_webhook_info_table","highlight-current-row":!1,data:s.fields},{default:br(()=>[tu(f,{prop:"field",label:e.$t("Field")},null,8,["label"]),tu(f,{prop:"field_key",label:e.$t("Field Key")},null,8,["label"]),tu(f,{prop:"type",label:e.$t("Type")},null,8,["label"])],void 0),_:1},8,["data"])])])])):ou("",!0)]),e.has_pro?ou("",!0):(Hd(),qd(b,{key:0,heading:e.$t("use_webhook_to_create_ticket_from_external_site"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))])}]]),Jje={class:"fs_helpscout_importer"},eqe={class:"fs_helpscout_intro"},tqe={class:"fs_input_with_button"},aqe={class:"fs_input_container"},iqe={class:"fs_input_help"},sqe={class:"fs_button_container"},nqe={class:"fs_input_with_button"},oqe={class:"fs_input_container"},rqe={class:"fs_input_help"},lqe={class:"fs_button_container"},cqe={class:"fs_importer_footer"},dqe={class:"fs_importer_actions"};const uqe={class:"fs_freshdesk_importer"},pqe={class:"fs_importer_footer"},hqe={class:"fs_importer_actions"};const gqe={class:"fs_zendesk_importer"},mqe={class:"fs_importer_footer"},fqe={class:"fs_importer_actions"};const _qe={name:"TicketImporter",components:{HelpScoutImporter:dH({name:"HelpScoutImporter",props:["show","settings","previously_imported"],emits:["import","close","restart_previous_migration"],data:()=>({mailboxes:{},start_from_previous_migration:!1}),methods:{authorize(){let e="https://secure.helpscout.net/authentication/authorizeClientApplication?client_id="+this.settings.app_id+"&state="+this.settings.app_secret;window.open(e,"_blank")},getAccessToken(){const e={url:"https://api.helpscout.net/v2/oauth2/token?grant_type=authorization_code&code="+this.settings.code+"&client_id="+this.settings.app_id+"&client_secret="+this.settings.app_secret,method:"POST",body:JSON.stringify({grant_type:"authorization_code",code:this.settings.code,client_id:this.settings.app_id,client_secret:this.settings.app_secret})};jQuery.ajax(e).done(e=>{this.settings.access_token=e.access_token,this.settings.refresh_token=e.refresh_token,this.settings.token_type=e.token_type,this.settings.expires_in=e.expires_in,this.settings.access_token&&this.getMailboxes()}).fail(e=>{this.$handleError(e)})},getMailboxes(){const e=this,t={url:"https://api.helpscout.net/v2/mailboxes",method:"GET",headers:{Authorization:"Bearer "+this.settings.access_token}};jQuery.ajax(t).done(t=>{e.mailboxes=t._embedded.mailboxes}).fail(e=>{this.$handleError(e)})},handleCancel(){this.show=!1}}},[["render",function(e,t,a,i,s,n){const o=oC,r=sE,l=Zl("InfoFilled"),c=jx,d=vk,u=bA,p=_A,h=iE,g=wR;return Hd(),jd("div",Jje,[eu("div",eqe,[eu("p",null,[su(fe(e.$t("Please copy and paste this url:"))+" ",1),eu("code",null,[eu("strong",null,fe(e.appVars.rest.url+"/public/authorize"),1)]),su(" "+fe(e.$t("in your HelpScout Redirection URL. This is required as you have to authorize your app before start importing.")),1)])]),tu(h,{data:a.settings,"label-position":"top"},{default:br(()=>[tu(r,{label:e.$t("App ID"),class:"fs_form_item"},{default:br(()=>[tu(o,{class:"fs_text_input",modelValue:a.settings.app_id,"onUpdate:modelValue":t[0]||(t[0]=e=>a.settings.app_id=e),placeholder:e.$t("App ID")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),tu(r,{label:e.$t("App Secret"),class:"fs_form_item"},{default:br(()=>[eu("div",tqe,[eu("div",aqe,[tu(o,{class:"fs_text_input",modelValue:a.settings.app_secret,"onUpdate:modelValue":t[1]||(t[1]=e=>a.settings.app_secret=e),placeholder:e.$t("App Secret")},null,8,["modelValue","placeholder"]),eu("span",iqe,[tu(c,null,{default:br(()=>[tu(l)],void 0),_:1}),su(" "+fe(e.$t("Click on the"))+" ",1),eu("strong",null,fe(e.$t("Get Authorized")),1),su(" "+fe(e.$t("button to get the authorization code.")),1)])]),eu("div",sqe,[tu(d,{class:"fs_subtle_btn",onClick:n.authorize,disabled:!a.settings.app_secret||!a.settings.app_id},{default:br(()=>[su(fe(e.$t("Get Authorized")),1)],void 0),_:1},8,["onClick","disabled"])])])],void 0),_:1},8,["label"]),tu(r,{label:e.$t("Authorization Code"),class:"fs_form_item"},{default:br(()=>[eu("div",nqe,[eu("div",oqe,[tu(o,{class:"fs_text_input",modelValue:a.settings.code,"onUpdate:modelValue":t[2]||(t[2]=e=>a.settings.code=e),placeholder:e.$t("Authorization Code")},null,8,["modelValue","placeholder"]),eu("span",rqe,[tu(c,null,{default:br(()=>[tu(l)],void 0),_:1}),su(" "+fe(e.$t("Paste the authorization code here once you get it.")),1)])]),eu("div",lqe,[tu(d,{class:"fs_subtle_btn",onClick:n.getAccessToken,disabled:!a.settings.code},{default:br(()=>[su(fe(e.$t("Request Token")),1)],void 0),_:1},8,["onClick","disabled"])])])],void 0),_:1},8,["label"]),a.settings.access_token?(Hd(),qd(r,{key:0,label:e.$t("Access Token"),class:"fs_form_item"},{default:br(()=>[tu(o,{class:"fs_text_input",modelValue:a.settings.access_token,"onUpdate:modelValue":t[3]||(t[3]=e=>a.settings.access_token=e),placeholder:e.$t("Access Token"),disabled:""},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"])):ou("",!0),s.mailboxes.length?(Hd(),qd(r,{key:1,label:e.$t("Choose Mailbox"),class:"fs_form_item"},{default:br(()=>[tu(p,{class:"fs_select_field",modelValue:a.settings.mailbox_id,"onUpdate:modelValue":t[4]||(t[4]=e=>a.settings.mailbox_id=e),placeholder:e.$t("Please select a mailbox")},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.mailboxes,e=>(Hd(),qd(u,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder"])],void 0),_:1},8,["label"])):ou("",!0)],void 0),_:1},8,["data"]),eu("div",cqe,[Object.keys(a.previously_imported).length>0&&a.settings.mailbox_id==a.previously_imported.mailbox_id?(Hd(),qd(g,{key:0,modelValue:s.start_from_previous_migration,"onUpdate:modelValue":t[5]||(t[5]=e=>s.start_from_previous_migration=e),label:e.$t("An incomplete migration exists. Would you like to resume from the previous one?")+" ("+a.previously_imported.completed+"% "+e.$t("completed")+")",size:"large"},null,8,["modelValue","label"])):ou("",!0),eu("div",dqe,[tu(d,{class:"fs_outline_btn",onClick:t[6]||(t[6]=t=>e.$emit("close"))},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),s.start_from_previous_migration?ou("",!0):(Hd(),qd(d,{key:0,class:"fs_filled_btn",onClick:t[7]||(t[7]=t=>e.$emit("import")),disabled:!a.settings.mailbox_id},{default:br(()=>[su(fe(e.$t("Import Tickets")),1)],void 0),_:1},8,["disabled"])),s.start_from_previous_migration?(Hd(),qd(d,{key:1,class:"fs_filled_btn",onClick:t[8]||(t[8]=t=>e.$emit("restart_previous_migration")),disabled:!a.settings.mailbox_id},{default:br(()=>[su(fe(e.$t("Resume Previous Migration")),1)],void 0),_:1},8,["disabled"])):ou("",!0)])])])}]]),FreshDeskImporter:dH({name:"FreshDeskImporter",props:["show","settings","previously_imported"],emits:["import","close","restart_previous_migration"],data:()=>({mailboxes:{},start_from_previous_migration:!1}),methods:{getAccessToken(){const e={url:"https://api.helpscout.net/v2/oauth2/token?grant_type=authorization_code&code="+this.settings.code+"&client_id="+this.settings.app_id+"&client_secret="+this.settings.app_secret,method:"POST",body:JSON.stringify({grant_type:"authorization_code",code:this.settings.code,client_id:this.settings.app_id,client_secret:this.settings.app_secret})};jQuery.ajax(e).done(e=>{this.settings.access_token=e.access_token,this.settings.refresh_token=e.refresh_token,this.settings.token_type=e.token_type,this.settings.expires_in=e.expires_in,this.settings.access_token&&this.getMailboxes()}).fail(e=>{this.$handleError(e)})},getMailboxes(){const e=this,t={url:"https://api.helpscout.net/v2/mailboxes",method:"GET",headers:{Authorization:"Bearer "+this.settings.access_token}};jQuery.ajax(t).done(t=>{e.mailboxes=t._embedded.mailboxes}).fail(e=>{this.$handleError(e)})},handleCancel(){this.show=!1}}},[["render",function(e,t,a,i,s,n){const o=oC,r=sE,l=iE,c=wR,d=vk;return Hd(),jd("div",uqe,[tu(l,{data:a.settings,"label-position":"top"},{default:br(()=>[tu(r,{label:e.$t("Freshdesk Domain"),class:"fs_form_item"},{default:br(()=>[tu(o,{class:"fs_text_input",modelValue:a.settings.domain,"onUpdate:modelValue":t[0]||(t[0]=e=>a.settings.domain=e),placeholder:e.$t("Freshdesk Domain")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),tu(r,{label:e.$t("API Key"),class:"fs_form_item"},{default:br(()=>[tu(o,{class:"fs_text_input",modelValue:a.settings.access_token,"onUpdate:modelValue":t[1]||(t[1]=e=>a.settings.access_token=e),placeholder:e.$t("API Key")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"])],void 0),_:1},8,["data"]),eu("div",pqe,[Object.keys(a.previously_imported).length>0&&a.settings.domain==a.previously_imported.domain?(Hd(),qd(c,{key:0,modelValue:s.start_from_previous_migration,"onUpdate:modelValue":t[2]||(t[2]=e=>s.start_from_previous_migration=e),label:e.$t("An incomplete migration exists. Would you like to resume from the previous one?"),size:"large"},null,8,["modelValue","label"])):ou("",!0),eu("div",hqe,[tu(d,{class:"fs_outline_btn",onClick:t[3]||(t[3]=t=>e.$emit("close"))},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),s.start_from_previous_migration?ou("",!0):(Hd(),qd(d,{key:0,class:"fs_filled_btn",onClick:t[4]||(t[4]=t=>e.$emit("import")),disabled:!a.settings.domain||!a.settings.access_token},{default:br(()=>[su(fe(e.$t("Import Tickets")),1)],void 0),_:1},8,["disabled"])),s.start_from_previous_migration?(Hd(),qd(d,{key:1,class:"fs_filled_btn",onClick:t[5]||(t[5]=t=>e.$emit("restart_previous_migration")),disabled:!a.settings.domain||!a.settings.access_token},{default:br(()=>[su(fe(e.$t("Resume Previous Migration")),1)],void 0),_:1},8,["disabled"])):ou("",!0)])])])}]]),ZendeskImporter:dH({name:"ZendeskImporter",props:["show","settings","previously_imported"],emits:["import","close","restart_previous_migration"],data:()=>({mailboxes:{},start_from_previous_migration:!1}),computed:{hasPreviousMigration(){return this.previously_imported&&Object.keys(this.previously_imported).length>0&&this.previously_imported.domain&&this.settings.domain===this.previously_imported.domain}}},[["render",function(e,t,a,i,s,n){const o=oC,r=sE,l=wR,c=iE,d=vk;return Hd(),jd("div",gqe,[tu(c,{data:a.settings,"label-position":"top"},{default:br(()=>[tu(r,{label:e.$t("Zendesk Domain"),class:"fs_form_item"},{default:br(()=>[tu(o,{class:"fs_text_input",modelValue:a.settings.domain,"onUpdate:modelValue":t[0]||(t[0]=e=>a.settings.domain=e),placeholder:e.$t("Zendesk Domain")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),tu(r,{label:e.$t("Email Address"),class:"fs_form_item"},{default:br(()=>[tu(o,{class:"fs_text_input",type:"email",modelValue:a.settings.email,"onUpdate:modelValue":t[1]||(t[1]=e=>a.settings.email=e),placeholder:e.$t("Email Address")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),tu(r,{label:e.$t("API Key"),class:"fs_form_item"},{default:br(()=>[tu(o,{class:"fs_text_input",modelValue:a.settings.access_token,"onUpdate:modelValue":t[2]||(t[2]=e=>a.settings.access_token=e),placeholder:e.$t("API Key")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"]),tu(r,{class:"fs_form_item"},{default:br(()=>[tu(l,{modelValue:a.settings.include_archived,"onUpdate:modelValue":t[3]||(t[3]=e=>a.settings.include_archived=e),label:e.$t("Include archived tickets"),size:"large"},null,8,["modelValue","label"])],void 0),_:1})],void 0),_:1},8,["data"]),eu("div",mqe,[n.hasPreviousMigration?(Hd(),qd(l,{key:0,modelValue:s.start_from_previous_migration,"onUpdate:modelValue":t[4]||(t[4]=e=>s.start_from_previous_migration=e),label:e.$t("An incomplete migration exists. Would you like to resume from the previous one?")+" ("+a.previously_imported.completed+"% "+e.$t("completed")+")",size:"large"},null,8,["modelValue","label"])):ou("",!0),eu("div",fqe,[tu(d,{class:"fs_outline_btn",onClick:t[5]||(t[5]=t=>e.$emit("close"))},{default:br(()=>[su(fe(e.$t("Cancel")),1)],void 0),_:1}),s.start_from_previous_migration?ou("",!0):(Hd(),qd(d,{key:0,class:"fs_filled_btn",onClick:t[6]||(t[6]=t=>e.$emit("import")),disabled:!a.settings.domain||!a.settings.email||!a.settings.access_token},{default:br(()=>[su(fe(e.$t("Import Tickets")),1)],void 0),_:1},8,["disabled"])),s.start_from_previous_migration?(Hd(),qd(d,{key:1,class:"fs_filled_btn",onClick:t[7]||(t[7]=t=>e.$emit("restart_previous_migration")),disabled:!a.settings.domain||!a.settings.email||!a.settings.access_token},{default:br(()=>[su(fe(e.$t("Resume Previous Migration")),1)],void 0),_:1},8,["disabled"])):ou("",!0)])])])}]])},data:()=>({settings:{},imporing:!1,import_page:1,total_tickets:0,completedPercentage:0,completed:0,loading:!1,currently_importing:"",import_done:!1,deleting:!1,delete_page:1,openSettings:!1,config:{},sass_systems:["helpscout","freshdesk","zendesk"],import_from_sass:!1,had_tickets:!0,previous_migration_data:[]}),methods:{getImporterIcon(e){return this.appVars.asset_url+"/images/importer.svg"},fetchSettings(){this.loading=!0,this.$get("ticket_importer").then(e=>{this.settings=e.stats,this.settings.forEach(e=>{const t=e.handler;this.previous_migration_data[t]=e})}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},restartTicketMigration(e){const t=this.previous_migration_data[e].previously_imported;this.import_page=t.next_page,t.cursor&&(this.config.cursor=t.cursor),t.next_page_url&&(this.config.next_page_url=t.next_page_url),t.include_archived&&(this.config.include_archived=t.include_archived),this.importTickets(e)},importTickets(e){this.imporing=!0,this.openSettings&&(this.openSettings=!1),this.currently_importing=e;let t={handler:e,page:this.import_page};this.config&&(t.query={access_token:this.config.access_token,mailbox:this.config.mailbox_id}),this.config.domain&&(t.query.domain=this.config.domain),this.config.email&&(t.query.email=this.config.email),this.config.cursor&&(t.query.cursor=this.config.cursor),this.config.next_page_url&&(t.query.next_page_url=this.config.next_page_url),this.config.include_archived&&(t.query.include_archived=!0),this.$post("ticket_importer/import",t).then(t=>{if(t.error)return this.$notify({type:"error",message:t.message,position:"bottom-right"}),void(this.imporing=!1);t.has_more?(this.import_page=t.next_page,this.total_tickets=t.total_tickets,this.completed=t.completed,t.cursor&&(this.config.cursor=t.cursor),t.next_page_url&&(this.config.next_page_url=t.next_page_url),this.$nextTick(()=>{this.importTickets(e)})):(this.$notify({type:"success",message:t.message,position:"bottom-right"}),this.imporing=!1,t.had_tickets&&(this.had_tickets="yes"!=t.had_tickets),this.sass_systems.includes(e)?(this.config={},this.import_from_sass=!0):this.import_done=!0,this.import_page=1,this.fetchSettings())}).catch(e=>{this.$handleError(e)})},deleteOldTicketsWithData(e){this.deleting=!0,this.import_done=!1,this.currently_importing=e,this.$del("ticket_importer/delete",{page:this.delete_page,handler:e}).then(t=>{t.has_more?(this.delete_page=t.next_page,this.$nextTick(()=>{this.deleteOldTicketsWithData(e)})):(this.$notify({type:"success",message:t.message,position:"bottom-right"}),this.deleting=!1,this.fetchSettings())}).catch(e=>{this.$handleError(e)})}},mounted(){this.fetchSettings(),this.$setTitle("Ticket Migrator")}},bqe={class:"fs_ticket_importer"},vqe={class:"fs_box_wrapper"},yqe={class:"fs_box_header"},Sqe={class:"fs_box_head"},xqe={key:0,class:"fs_box_body"},wqe={key:0,class:"fs_importer_list"},Eqe={class:"fs_importer_item_content"},Cqe={class:"fs_importer_content"},kqe={class:"fs_importer_title"},Tqe={key:0,class:"fs_last_migration_inline"},Aqe={class:"fs_importer_description"},Rqe={class:"fs_importer_actions"},Oqe={class:"fs_progress_wrap"},Nqe={key:0,class:"fs_progress_container"},Iqe={class:"fs_progress_line"},Dqe={class:"fs_progress_text_wrapper"},Mqe={class:"fs_progress_text"},Lqe={class:"fs_progress_percentage"},Pqe={class:"fs_progress_bar_wrapper"},Fqe={key:1,class:"fs_progress_container"},$qe={class:"fs_progress_line"},Bqe={class:"fs_progress_text"},Vqe={class:"fs_progress_bar_wrapper"},Uqe={key:0,class:"fs_divider"},Hqe={key:1,class:"fs_no_importers"},zqe={key:1,class:"fs_box_body"},Yqe={class:"dialog-footer"};const Gqe=dH(_qe,[["render",function(e,t,a,i,s,n){const o=vk,r=TL,l=OL,c=pD,d=Zl("help-scout-importer"),u=Zl("fresh-desk-importer"),p=Zl("zendesk-importer");return Hd(),jd("div",bqe,[eu("div",vqe,[eu("div",yqe,[eu("div",Sqe,[eu("h3",null,fe(e.$t("Ticket Migration Settings")),1)])]),s.loading?(Hd(),jd("div",zqe,[tu(l,{class:"fs_skeleton",rows:5,animated:""})])):(Hd(),jd("div",xqe,[s.settings.length?(Hd(),jd("div",wqe,[(Hd(!0),jd(Pd,null,sc(s.settings,(t,a)=>(Hd(),jd("div",{key:t.handler,class:"fs_importer_item"},[eu("div",Eqe,[eu("div",Cqe,[eu("h3",kqe,[su(fe(t.name)+" ",1),t.last_migrated?(Hd(),jd("span",Tqe," ("+fe(e.$t("Last migration:"))+" "+fe(t.last_migrated)+") ",1)):ou("",!0)]),eu("p",Aqe,["sass"==(null==t?void 0:t.type)?(Hd(),jd(Pd,{key:0},[su(fe(e.$t("Migrate tickets from"))+" "+fe(t.name)+" "+fe(e.$t("in one click.")),1)],64)):(Hd(),jd(Pd,{key:1},[su(fe(e.$t("This migrator will migrate total"))+" ",1),eu("strong",null,fe(t.tickets),1),su(" "+fe(e.$t("tickets with"))+" ",1),eu("strong",null,fe(t.replies),1),su(" "+fe(e.$t("replies and"))+" ",1),eu("strong",null,fe(t.customers),1),su(" "+fe(e.$t("customers. If you already migrate tickets then it won't migrate existing tickets.")),1)],64))])]),eu("div",Rqe,[s.imporing&&s.currently_importing==t.handler?(Hd(),qd(o,{key:0,disabled:"",plain:""},{default:br(()=>[su(fe(e.$t("Importing...")),1)],void 0),_:1})):s.deleting&&s.currently_importing==t.handler?(Hd(),qd(o,{key:1,disabled:"",plain:""},{default:br(()=>[su(fe(e.$t("Deleting...")),1)],void 0),_:1})):(Hd(),jd(Pd,{key:2},["sass"==t.type?(Hd(),qd(o,{key:0,class:"fs_outline_btn",onClick:e=>(s.openSettings=!0)&&(s.currently_importing=t.handler),plain:""},{default:br(()=>[su(fe(e.$t("Import Tickets")),1)],void 0),_:1},8,["onClick"])):(Hd(),qd(o,{key:1,class:"fs_outline_btn",onClick:e=>n.importTickets(t.handler),plain:""},{default:br(()=>[su(fe(e.$t("Import Tickets")),1)],void 0),_:1},8,["onClick"]))],64))])]),eu("div",Oqe,[s.imporing&&s.currently_importing==t.handler?(Hd(),jd("div",Nqe,[eu("div",Iqe,[eu("div",Dqe,[eu("span",Mqe,fe(e.$t("Migrating...")),1),eu("span",Lqe,fe(s.completed)+"%",1)]),eu("div",Pqe,[tu(r,{"text-inside":!1,"stroke-width":8,percentage:s.completed,"show-text":!1},null,8,["percentage"])])])])):ou("",!0),s.deleting&&s.currently_importing==t.handler?(Hd(),jd("div",Fqe,[eu("div",$qe,[eu("span",Bqe,fe(e.$t("Deleting...")),1),eu("div",Vqe,[tu(r,{"stroke-width":8,percentage:50,status:"exception",indeterminate:!0,"show-text":!1})])])])):ou("",!0)]),a<s.settings.length-1?(Hd(),jd("hr",Uqe)):ou("",!0)]))),128))])):(Hd(),jd("div",Hqe,[eu("h2",null,fe(e.$t("Import from other Support Tickets Plugins")),1),eu("p",null,[su(fe(e.$t("If you want to migrate tickets from other ticketing system like"))+" ",1),eu("strong",null,fe(e.$t("Awesome Support")),1),su(" "+fe(e.$t("or"))+" ",1),eu("strong",null,fe(e.$t("Support Candy")),1),su(" "+fe(e.$t("WordPress plugin then you can migrate from this section.")),1)]),eu("p",null,fe(e.$t("Currently no migration is available for this site")),1)]))])),s.had_tickets?ou("",!0):(Hd(),qd(c,{key:2,modelValue:s.import_done,"onUpdate:modelValue":t[2]||(t[2]=e=>s.import_done=e),title:e.$t("Delete Imported Tickets"),class:"fs_dialog"},{footer:br(()=>[eu("span",Yqe,[tu(o,{onClick:t[0]||(t[0]=e=>s.import_done=!1),type:"primary"},{default:br(()=>[su(fe(e.$t("No")),1)],void 0),_:1}),tu(o,{type:"danger",onClick:t[1]||(t[1]=e=>n.deleteOldTicketsWithData(s.currently_importing))},{default:br(()=>[su(fe(e.$t("Yes")),1)],void 0),_:1})])]),default:br(()=>[eu("span",null,fe(e.$t("Do you want to delete all imported tickets and its data?")),1)],void 0),_:1},8,["modelValue","title"])),"helpscout"==s.currently_importing?(Hd(),qd(c,{key:3,modelValue:s.openSettings,"onUpdate:modelValue":t[6]||(t[6]=e=>s.openSettings=e),title:e.$t("Configure Help Scout Import"),width:"60%",class:"fs_dialog"},{default:br(()=>{var e;return[tu(d,{show:s.openSettings,settings:s.config,previously_imported:null==(e=s.previous_migration_data.helpscout)?void 0:e.previously_imported,onRestart_previous_migration:t[3]||(t[3]=e=>n.restartTicketMigration("helpscout")),onImport:t[4]||(t[4]=e=>n.importTickets(s.currently_importing)),onClose:t[5]||(t[5]=e=>s.openSettings=!1)},null,8,["show","settings","previously_imported"])]},void 0),_:1},8,["modelValue","title"])):ou("",!0),"freshdesk"==s.currently_importing?(Hd(),qd(c,{key:4,modelValue:s.openSettings,"onUpdate:modelValue":t[10]||(t[10]=e=>s.openSettings=e),title:e.$t("Configure FreshDesk Import"),width:"60%",class:"fs_dialog"},{default:br(()=>{var e;return[tu(u,{show:s.openSettings,settings:s.config,previously_imported:null==(e=s.previous_migration_data.freshdesk)?void 0:e.previously_imported,onRestart_previous_migration:t[7]||(t[7]=e=>n.restartTicketMigration("freshdesk")),onImport:t[8]||(t[8]=e=>n.importTickets(s.currently_importing)),onClose:t[9]||(t[9]=e=>s.openSettings=!1)},null,8,["show","settings","previously_imported"])]},void 0),_:1},8,["modelValue","title"])):ou("",!0),"zendesk"==s.currently_importing?(Hd(),qd(c,{key:5,modelValue:s.openSettings,"onUpdate:modelValue":t[14]||(t[14]=e=>s.openSettings=e),title:e.$t("Configure Zendesk Import"),width:"60%",class:"fs_dialog"},{default:br(()=>{var e;return[tu(p,{show:s.openSettings,settings:s.config,previously_imported:null==(e=s.previous_migration_data.zendesk)?void 0:e.previously_imported,onRestart_previous_migration:t[11]||(t[11]=e=>n.restartTicketMigration("zendesk")),onImport:t[12]||(t[12]=e=>n.importTickets(s.currently_importing)),onClose:t[13]||(t[13]=e=>s.openSettings=!1)},null,8,["show","settings","previously_imported"])]},void 0),_:1},8,["modelValue","title"])):ou("",!0)])])}]]),Wqe=["src"],jqe={class:"text item"};const qqe=dH({name:"HelpScoutAuthorization",data:()=>({code:"",error:"",loading:!1}),watch:{"$route.query":{handler:function(e){e.code&&(this.code=e.code)},immediate:!0}}},[["render",function(e,t,a,i,s,n){const o=xA;return Hd(),qd(o,{class:"box-card fs_auth_box"},{default:br(()=>[eu("img",{src:this.appVars.asset_url+"/images/help-scout-logo.svg",alt:"HelpScout",class:"fs_help_scout_logo"},null,8,Wqe),eu("div",jqe,[su(fe(e.$t("Your Help Scout authorization code is:"))+" ",1),eu("code",null,[eu("strong",null,fe(s.code),1)]),su(fe(e.$t(". Please copy this code and paste it in the ")),1),eu("code",null,fe(e.$t("Authorization Code")),1),su(" "+fe(e.$t("field.")),1)])],void 0),_:1})}],["__scopeId","data-v-2ec4deb3"]]),Kqe={class:"fs_box_wrapper"},Xqe={class:"fs_box_header"},Qqe={class:"fs_box_head"},Zqe={key:0,class:"fs_box_body fs_storage_integration_wrapper"},Jqe={class:"fs_storage_integration_cards"},eKe={class:"fs_storage_card_content"},tKe={class:"fs_storage_card_left"},aKe={class:"fs_storage_icon_wrapper"},iKe=["src","alt"],sKe={class:"fs_storage_card_info"},nKe={class:"fs_storage_card_header"},oKe={class:"fs_storage_card_title"},rKe={key:0,class:"fs_status_badge active"},lKe=["innerHTML"],cKe={class:"fs_storage_card_right"},dKe={class:"fs_storage_card_actions"},uKe={key:1,class:"fs_box_body fs_skeleton_loader"};const pKe={class:"fs_box_wrapper"},hKe={class:"fs_box_header"},gKe={class:"fs_box_head"},mKe={key:0,class:"fs_box_actions"},fKe={key:0,class:"fs_ai_skeleton"},_Ke={key:1,class:"fs_ai_sections_wrapper"},bKe={class:"fs_ai_section"},vKe={class:"fs_ai_toggle_row"},yKe={class:"fs_ai_toggle_text"},SKe={class:"fs_ai_toggle_title"},xKe={class:"fs_ai_toggle_desc"},wKe={key:0,class:"fs_ai_section"},EKe={class:"fs_ai_section_head"},CKe={class:"fs_ai_field_row"},kKe={class:"fs_ai_field_label"},TKe={class:"fs_ai_field_title"},AKe={class:"fs_ai_field_desc"},RKe={class:"fs_ai_field_input"},OKe={class:"fs_ai_field_row"},NKe={class:"fs_ai_field_label"},IKe={class:"fs_ai_field_title"},DKe={class:"fs_ai_field_desc"},MKe={class:"fs_ai_field_input"},LKe={key:1,class:"fs_ai_section"},PKe={class:"fs_ai_section_head"},FKe={class:"fs_ai_field_row"},$Ke={class:"fs_ai_field_label"},BKe={class:"fs_ai_field_title"},VKe={class:"fs_ai_field_desc"},UKe={class:"fs_ai_field_input"},HKe={key:0,style:{"margin-top":"6px","font-size":"12px",color:"#6b7280"}};const zKe={class:"fs_bot_container"},YKe={class:"fs_box_wrapper"},GKe={class:"fs_box_header"},WKe={class:"fs_box_head"},jKe={class:"fs_box_actions fs_toggle_container"},qKe={class:"fs_toggle_label"},KKe={class:"fs_toggle_label"},XKe={key:0,class:"fs_box_body"},QKe={class:"fs_padded_20 fs_business_settings_wrapper"},ZKe={class:"fs_section"},JKe={class:"fs_section_head"},eXe={class:"fs_section_description"},tXe={class:"fs_bot_config_card"},aXe={key:0,class:"fs_section_description"},iXe={class:"fs_section"},sXe={class:"fs_section_head"},nXe={class:"fs_section_description"},oXe={key:0,class:"fs_bot_config_card"},rXe={class:"fs_section"},lXe={class:"fs_section_description"},cXe={class:"fs_product_mappings"},dXe={class:"fs_card_list"},uXe={class:"fs_product_header"},pXe={class:"fs_product_name"},hXe={class:"fs_add_product_section"},gXe={class:"fs_save_settings_container"},mXe={class:"fs_padded_20 fs_business_settings_wrapper"},fXe={class:"fs_section"},_Xe={class:"fs_section_description"},bXe={class:"fs_presets_list"},vXe={class:"fs_preset_item"},yXe={class:"fs_preset_fields"},SXe={class:"fs_preset_actions"},xXe={key:1,class:"fs_box_body fs_skeleton_loader fs_padded_20"};const wXe={class:"fs_box_wrapper"},EXe={class:"fs_box_header"},CXe={class:"fs_box_head"},kXe={key:0,class:"fs_box_body fs_skeleton_loader"},TXe={key:1,class:"fs_box_body fs_mcp_load_error"},AXe={class:"fs_mcp_install_actions"},RXe={key:2,class:"fs_box_body fs_mcp_body"},OXe={class:"fs_mcp_toggle_row"},NXe={class:"fs_mcp_toggle_text"},IXe={class:"fs_mcp_toggle_title"},DXe={class:"fs_mcp_toggle_desc"},MXe={class:"fs_mcp_help_text"},LXe={class:"fs_mcp_install_actions"},PXe=["href"],FXe={class:"fs_mcp_pro_tip"},$Xe={class:"fs_mcp_status_row"},BXe={class:"fs_mcp_status_info"},VXe={class:"fs_mcp_status_label"},UXe={key:0,class:"fs_mcp_status_sublabel"},HXe={class:"fs_mcp_connected_badge"},zXe={class:"fs_mcp_field_group"},YXe={class:"fs_mcp_label"},GXe={class:"fs_mcp_status_note"},WXe={class:"fs_mcp_connect_section"},jXe={class:"fs_mcp_section_title"},qXe={class:"fs_mcp_help_text"},KXe=["href"],XXe={class:"fs_mcp_creds_row"},QXe={key:0,class:"fs_mcp_localdev"},ZXe={key:1,class:"fs_mcp_help_text fs_mcp_instructions"},JXe={class:"fs_mcp_copy_action"},eQe={key:1,class:"fs_mcp_disabled_desc"};const tQe=[{path:"/",name:"dashboard",component:LG,meta:{active:"dashboard"}},{path:"/setup",name:"setup",component:lj,meta:{active:""}},{path:"/tickets",component:cq,meta:{active:"tickets"},children:[{name:"tickets",path:"",component:Toe},{name:"view_ticket",path:":ticket_id/view",component:Zhe,props:!0}]},{path:"/settings",component:pge,meta:{active:"settings"},children:[{name:"global_settings",path:"",component:vge},{name:"reCaptcha",path:"reCaptcha",component:Nbe},{name:"ticket-form-config",path:"ticket-form-config",component:$be},{name:"custom_fields",path:"custom-fields",component:mve},{name:"tags",path:"ticket-tags",component:hme},{name:"products",path:"products",component:qge},{path:"support-staffs",name:"support-staffs",component:yfe},{path:"integration",name:"integration",component:fbe},{path:"upload_integration",name:"upload_integration",component:Nye},{path:"fluentcrm-integration",name:"fluentcrm_integration",component:Xve},{path:"license-management",name:"license",component:Vve},{path:"incoming-webhook",name:"incoming-webhook",component:Zje},{path:"auto-close",name:"auto_close",component:iye},{path:"ticket_importer",name:"ticket_importer",component:Gqe},{path:"upload_integration_google",name:"GoogleDriveOauth",component:Mye},{path:"/integration_statuses",name:"integration_statuses",component:dH({name:"IntegrationStatuses",data:()=>({connections:{},loading:!1}),methods:{fetchSettings(){this.loading=!0,this.$get("settings/integration-statuses").then(e=>{this.connections=e.connections}).catch(e=>{this.$handleError(e)}).always(()=>{this.loading=!1})},redirectToDocs(e){window.open(e)}},mounted(){this.fetchSettings(),this.$setTitle("Integration Statuses")}},[["render",function(e,t,a,i,s,n){const o=vk,r=OL;return Hd(),jd("div",Kqe,[eu("div",Xqe,[eu("div",Qqe,[eu("h3",null,fe(e.$t("Integration Statuses")),1)])]),s.loading?(Hd(),jd("div",uKe,[tu(r,{animated:!0,rows:3})])):(Hd(),jd("div",Zqe,[eu("div",Jqe,[(Hd(!0),jd(Pd,null,sc(s.connections,(a,i)=>(Hd(),jd("div",{key:i,class:"fs_storage_integration_card"},[eu("div",eKe,[eu("div",tKe,[eu("div",aKe,[eu("img",{src:a.logo,alt:a.title,class:"fs_storage_icon"},null,8,iKe)]),eu("div",sKe,[eu("div",nKe,[eu("h3",oKe,fe(a.title),1),a.is_integrated?(Hd(),jd("span",rKe,fe(e.$t("Connected")),1)):ou("",!0)]),eu("p",{class:"fs_storage_card_description",innerHTML:a.description},null,8,lKe)])]),eu("div",cKe,[eu("div",dKe,[tu(o,{onClick:e=>n.redirectToDocs(a.doc_url),class:"fs_outline_btn"},{default:br(()=>[...t[0]||(t[0]=[su(" Learn More ",-1)])],void 0),_:1},8,["onClick"])])])])]))),128))])]))])}]]),props:!0},{path:"/ai_integration",name:"ai_integration",component:dH({name:"AIIntegration",components:{NarrowPromo:Hie},data:()=>({loading:!1,saving:!1,isEnabled:!1,provider:"openai",apiKey:"",selectedModel:"",modelOptions:[],providers:[{value:"openai",label:"OpenAI"},{value:"gemini",label:"Google Gemini"},{value:"anthropic",label:"Anthropic Claude"}],availableModels:{}}),computed:{isKeySaved(){return this.apiKey&&this.apiKey.startsWith("****")}},methods:{onProviderChange(e){var t;this.modelOptions=this.availableModels[e]||[],this.selectedModel=(null==(t=this.modelOptions[0])?void 0:t.value)||"",this.apiKey=""},fetchSettings(){this.loading=!0,this.$get("settings/ai-integration").then(e=>{this.isEnabled="no"!==e.enabled,this.provider=e.provider||"openai",this.apiKey=e.api_key||"",this.availableModels=e.available_models||{},this.modelOptions=this.availableModels[this.provider]||[],this.selectedModel=e.model||(this.modelOptions[0]?this.modelOptions[0].value:""),this.loading=!1}).catch(e=>{this.$handleError(e),this.loading=!1})},saveSettings(){this.saving=!0,this.$post("settings/ai-integration",{enabled:this.isEnabled?"yes":"no",provider:this.provider,api_key:this.apiKey,model:this.selectedModel}).then(e=>{this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.saving=!1,this.appVars.open_ai_integration=this.isEnabled&&!!this.apiKey}).catch(e=>{this.$handleError(e),this.saving=!1})}},mounted(){this.has_pro&&this.fetchSettings(),this.$setTitle("AI Model Setup")}},[["render",function(e,t,a,i,s,n){const o=vk,r=OL,l=VL,c=bA,d=_A,u=oC,p=Zl("NarrowPromo");return Hd(),jd("div",pKe,[eu("div",hKe,[eu("div",gKe,[eu("h3",null,fe(e.$t("AI Model Setup")),1)]),e.has_pro&&!s.loading?(Hd(),jd("div",mKe,[tu(o,{class:"fs_filled_btn",type:"primary",loading:s.saving,onClick:n.saveSettings},{default:br(()=>[su(fe(e.$t("Save")),1)],void 0),_:1},8,["loading","onClick"])])):ou("",!0)]),e.has_pro?(Hd(),jd(Pd,{key:0},[s.loading?(Hd(),jd("div",fKe,[tu(r,{animated:!0,rows:5})])):(Hd(),jd("div",_Ke,[eu("div",bKe,[eu("div",vKe,[tu(l,{modelValue:s.isEnabled,"onUpdate:modelValue":t[0]||(t[0]=e=>s.isEnabled=e)},null,8,["modelValue"]),eu("div",yKe,[eu("span",SKe,fe(e.$t("Enable AI")),1),eu("span",xKe,fe(e.$t("When enabled, AI will be available for response suggestions and ticket summaries.")),1)])])]),s.isEnabled?(Hd(),jd("div",wKe,[eu("div",EKe,fe(e.$t("AI Provider")),1),eu("div",CKe,[eu("div",kKe,[eu("p",TKe,fe(e.$t("Provider")),1),eu("p",AKe,fe(e.$t("Select the AI service you want to use.")),1)]),eu("div",RKe,[tu(d,{modelValue:s.provider,"onUpdate:modelValue":t[1]||(t[1]=e=>s.provider=e),onChange:n.onProviderChange,class:"fs_ai_select"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.providers,e=>(Hd(),qd(c,{key:e.value,value:e.value,label:e.label},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue","onChange"])])]),t[4]||(t[4]=eu("div",{class:"fs_ai_divider"},null,-1)),eu("div",OKe,[eu("div",NKe,[eu("p",IKe,fe(e.$t("Model")),1),eu("p",DKe,fe(e.$t("Choose the AI model for text generation.")),1)]),eu("div",MKe,[tu(d,{modelValue:s.selectedModel,"onUpdate:modelValue":t[2]||(t[2]=e=>s.selectedModel=e),class:"fs_ai_select"},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.modelOptions,e=>(Hd(),qd(c,{key:e.value,value:e.value,label:e.label},null,8,["value","label"]))),128))],void 0),_:1},8,["modelValue"])])])])):ou("",!0),s.isEnabled&&s.provider?(Hd(),jd("div",LKe,[eu("div",PKe,fe(e.$t("API Key")),1),eu("div",FKe,[eu("div",$Ke,[eu("p",BKe,fe(e.$t("API Key")),1),eu("p",VKe,fe(e.$t("Enter your API key. It will be stored securely.")),1)]),eu("div",UKe,[tu(u,{modelValue:s.apiKey,"onUpdate:modelValue":t[3]||(t[3]=e=>s.apiKey=e),autocomplete:"off","data-1p-ignore":"","data-lpignore":"true",placeholder:n.isKeySaved?e.$t("Enter a new key to replace the saved one"):e.$t("Enter your API key"),class:"fs_ai_input"},null,8,["modelValue","placeholder"]),n.isKeySaved?(Hd(),jd("p",HKe,[su(fe(e.$t("A key ending in"))+" ",1),eu("strong",null,fe(s.apiKey.slice(-4)),1),su(" "+fe(e.$t("is saved.")),1)])):ou("",!0)])])])):ou("",!0)]))],64)):(Hd(),qd(p,{key:1,heading:e.$t("Use AI for responses, ticket summaries, and sentiment analysis"),description:e.$t("pro_promo"),"button-text":e.$t("Upgrade To Pro")},null,8,["heading","description","button-text"]))])}]]),props:!0},{path:"/fluent_bot_integration",name:"fluent_bot_integration",component:dH({name:"FluentBotIntegration",components:{draggable:cH},data:()=>({activeTab:"configuration",isEnabled:!1,isLoading:!1,isSaving:!1,isSavingPresets:!1,fetching:!0,config:{generalBotId:"",generalApiKey:"",generalBotEnabled:!0,productMappings:[]},allProducts:[],hasApiKey:!1,selectedProduct:null,originalConfig:null,isWatcherReady:!1,presets:[]}),computed:{availableProducts(){const e=this.config.productMappings.map(e=>e.productId);return this.allProducts.filter(t=>!e.includes(t.id))},generalBotRules(){return this.config.generalBotEnabled?{generalBotId:[{required:!0,message:this.$t("Bot ID is required"),trigger:"blur"}]}:{}},mappingBotRules(){return{botId:[{required:!0,message:this.$t("Bot ID is required"),trigger:"blur"}]}},apiKeyRules(){return this.hasApiKey?{}:{generalApiKey:[{required:!0,message:this.$t("API key is required"),trigger:"blur"}]}}},methods:{fetchData(){this.isLoading=!0,this.$get("settings/fluent-bot-integration").then(e=>{this.config={generalBotId:e.generalBotId||"",generalApiKey:"",generalBotEnabled:!1!==e.generalBotEnabled,productMappings:e.productMappings||[]},this.hasApiKey=!0===e.hasApiKey,this.allProducts=e.products||[],this.isEnabled=!0===e.isEnabled||"true"===e.isEnabled,this.originalConfig=JSON.parse(JSON.stringify(this.config)),this.isLoading=!1,this.fetching=!1}).catch(e=>{this.isLoading=!1,this.$handleError(e)})},saveToggle(){this.isEnabled?this.validateAllForms().then(()=>this.submitConfiguration()).catch(()=>{this.isEnabled=!1}):this.submitConfiguration()},saveConfiguration(){this.validateAllForms().then(()=>{this.submitConfiguration()}).catch(()=>{})},validateAllForms(){const e=[];if(this.$refs.apiKeyForm&&e.push(this.$refs.apiKeyForm.validate()),this.config.generalBotEnabled){if(!this.$refs.generalBotForm)return Promise.reject();e.push(this.$refs.generalBotForm.validate())}return this.config.productMappings.forEach((t,a)=>{const i=this.$refs["mappingForm_"+a],s=Array.isArray(i)?i[0]:i;s&&e.push(s.validate())}),Promise.all(e)},submitConfiguration(){this.isSaving=!0,this.$post("settings/fluent-bot-integration",{...this.config,isEnabled:this.isEnabled}).then(e=>{e.data&&!0===e.data.hasApiKey&&(this.hasApiKey=!0),this.config.generalApiKey="",this.originalConfig=JSON.parse(JSON.stringify(this.config)),this.isSaving=!1,this.$notify({message:e.message,type:"success",position:"bottom-right"})}).catch(e=>{this.isSaving=!1,this.$handleError(e)})},addProductMapping(){if(!this.selectedProduct)return;const e=this.allProducts.find(e=>e.id===this.selectedProduct);this.config.productMappings.push({productId:e.id,productTitle:e.title,botId:""}),this.selectedProduct=null},removeMapping(e){this.config.productMappings.splice(e,1)},fetchPresets(){this.$get("settings/fluent-bot-presets").then(e=>{this.presets=(e.presets||[]).map((e,t)=>({...e,position:e.position??t}))}).catch(e=>{this.$handleError(e)})},addPreset(){this.presets.push({label:"",text:"preset_"+Date.now(),description:"",position:this.presets.length})},removePreset(e){this.presets.splice(e,1),this.updatePositions()},updatePositions(){this.presets.forEach((e,t)=>{e.position=t})},savePresets(){this.isSavingPresets=!0,this.$post("settings/fluent-bot-presets",{presets:this.presets}).then(e=>{this.presets=e.presets||this.presets,this.$notify({message:e.message,type:"success",position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.isSavingPresets=!1})},resetToDefaults(){xB.confirm(this.$t("This will remove all custom prompt options and restore the original defaults. This action cannot be undone."),this.$t("Reset to Defaults"),{confirmButtonText:this.$t("Reset"),cancelButtonText:this.$t("Cancel"),type:"warning"}).then(()=>{this.isSavingPresets=!0,this.$post("settings/fluent-bot-presets",{presets:[]}).then(()=>{this.fetchPresets(),this.$notify({message:this.$t("Reset to defaults"),type:"success",position:"bottom-right"})}).catch(e=>{this.$handleError(e)}).always(()=>{this.isSavingPresets=!1})}).catch(()=>{})}},mounted(){this.fetchData(),this.fetchPresets(),this.$setTitle("FluentBot Integration")}},[["render",function(e,t,a,i,s,n){const o=VL,r=oC,l=sE,c=iE,d=Zl("Delete"),u=jx,p=vk,h=bA,g=_A,m=fF,f=Zl("draggable"),_=mF,b=OL;return Hd(),jd("div",zKe,[eu("div",YKe,[eu("div",GKe,[eu("div",WKe,[eu("h3",null,fe(e.$t("FluentBot Integration")),1)]),eu("div",jKe,[eu("span",qKe,fe(e.$t("Disabled")),1),tu(o,{onChange:n.saveToggle,modelValue:s.isEnabled,"onUpdate:modelValue":t[0]||(t[0]=e=>s.isEnabled=e)},null,8,["onChange","modelValue"]),eu("span",KKe,fe(e.$t("Enabled")),1)])]),s.fetching?(Hd(),jd("div",xXe,[tu(b,{rows:5,animated:""})])):(Hd(),jd("div",XKe,[tu(_,{modelValue:s.activeTab,"onUpdate:modelValue":t[6]||(t[6]=e=>s.activeTab=e),class:"fs_bot_tabs"},{default:br(()=>[tu(m,{label:e.$t("Bot Configuration"),name:"configuration"},{default:br(()=>[eu("div",QKe,[eu("div",ZKe,[eu("div",JKe,[eu("div",null,[eu("h3",null,fe(e.$t("API Key")),1),eu("p",eXe,fe(e.$t("Team API key from your FluentBot dashboard (Settings → API Keys). Required to connect.")),1)])]),eu("div",tXe,[tu(c,{ref:"apiKeyForm",model:s.config,rules:n.apiKeyRules,"label-position":"top"},{default:br(()=>[tu(l,{class:"fs_form_item",label:e.$t("API Key"),prop:"generalApiKey"},{default:br(()=>[tu(r,{class:"fs_text_input",modelValue:s.config.generalApiKey,"onUpdate:modelValue":t[1]||(t[1]=e=>s.config.generalApiKey=e),type:"password","show-password":"",placeholder:s.hasApiKey?e.$t("API key saved — leave blank to keep it"):e.$t("Paste your FluentBot API key (fbt_...)")},null,8,["modelValue","placeholder"]),s.hasApiKey?(Hd(),jd("span",aXe,fe(e.$t("A key is already saved. Enter a new one only to replace it.")),1)):ou("",!0)],void 0),_:1},8,["label"])],void 0),_:1},8,["model","rules"])])]),eu("div",iXe,[eu("div",sXe,[eu("div",null,[eu("h3",null,fe(e.$t("General Bot")),1),eu("p",nXe,fe(e.$t("This bot will handle general queries for all products")),1)]),tu(o,{modelValue:s.config.generalBotEnabled,"onUpdate:modelValue":t[2]||(t[2]=e=>s.config.generalBotEnabled=e),"aria-label":e.$t("Enable general bot")},null,8,["modelValue","aria-label"])]),s.config.generalBotEnabled?(Hd(),jd("div",oXe,[tu(c,{ref:"generalBotForm",model:s.config,rules:n.generalBotRules,"label-position":"top"},{default:br(()=>[tu(l,{class:"fs_form_item",label:e.$t("Bot ID"),prop:"generalBotId"},{default:br(()=>[tu(r,{class:"fs_text_input",modelValue:s.config.generalBotId,"onUpdate:modelValue":t[3]||(t[3]=e=>s.config.generalBotId=e),placeholder:e.$t("Enter General Bot ID (Required)")},null,8,["modelValue","placeholder"])],void 0),_:1},8,["label"])],void 0),_:1},8,["model","rules"])])):ou("",!0)]),eu("div",rXe,[eu("h3",null,fe(e.$t("Product-Specific Bots")),1),eu("p",lXe,fe(e.$t("Configure specialized bots trained for specific products")),1),eu("div",cXe,[eu("div",dXe,[(Hd(!0),jd(Pd,null,sc(s.config.productMappings,(t,a)=>(Hd(),jd("div",{key:a,class:"fs_mapping_card"},[eu("div",uXe,[eu("span",pXe,fe(t.productTitle),1),tu(p,{class:"fs_stroke_btn fs_delete_btn",circle:"",size:"small",onClick:e=>n.removeMapping(a)},{default:br(()=>[tu(u,null,{default:br(()=>[tu(d)],void 0),_:1})],void 0),_:1},8,["onClick"])]),tu(c,{ref_for:!0,ref:"mappingForm_"+a,model:t,rules:n.mappingBotRules,"label-position":"top",class:"fs_mapping_form"},{default:br(()=>[tu(l,{class:"fs_form_item",label:e.$t("Bot ID"),prop:"botId"},{default:br(()=>[tu(r,{class:"fs_text_input",modelValue:t.botId,"onUpdate:modelValue":e=>t.botId=e,placeholder:e.$t("Enter Bot ID (Required)")},null,8,["modelValue","onUpdate:modelValue","placeholder"])],void 0),_:2},1032,["label"])],void 0),_:2},1032,["model","rules"])]))),128))]),eu("div",hXe,[tu(g,{modelValue:s.selectedProduct,"onUpdate:modelValue":t[4]||(t[4]=e=>s.selectedProduct=e),placeholder:e.$t("Select a product"),class:"fs_product_select fs_select_field",filterable:"",clearable:""},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(n.availableProducts,e=>(Hd(),qd(h,{key:e.id,label:e.title,value:e.id},null,8,["label","value"]))),128))],void 0),_:1},8,["modelValue","placeholder"]),tu(p,{class:"fs_subtle_btn",onClick:n.addProductMapping,disabled:!s.selectedProduct},{default:br(()=>[su(fe(e.$t("+ Add Product Bot")),1)],void 0),_:1},8,["onClick","disabled"])])])]),eu("div",gXe,[tu(p,{class:"fs_filled_btn",onClick:n.saveConfiguration,loading:s.isSaving},{default:br(()=>[su(fe(e.$t("Save Configuration")),1)],void 0),_:1},8,["onClick","loading"])])])],void 0),_:1},8,["label"]),tu(m,{label:e.$t("Prompt Options"),name:"prompts"},{default:br(()=>[eu("div",mXe,[eu("div",fXe,[eu("h3",null,fe(e.$t("Prompt Options")),1),eu("p",_Xe,fe(e.$t("Customize the quick prompt options shown in the FluentBot chat panel")),1),eu("div",bXe,[tu(f,{modelValue:s.presets,"onUpdate:modelValue":t[5]||(t[5]=e=>s.presets=e),"item-key":"text",handle:".fs_drag_handle",animation:250,"ghost-class":"fs_preset_ghost","chosen-class":"fs_preset_chosen","force-fallback":!0,"fallback-class":"fs_preset_fallback",onEnd:n.updatePositions},{item:br(({element:a,index:i})=>[eu("div",vXe,[t[7]||(t[7]=eu("div",{class:"fs_drag_handle","aria-hidden":"true"},[eu("i",{class:"el-icon"},[eu("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},[eu("path",{fill:"currentColor",d:"M6 3.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm5-9a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"})])])],-1)),eu("div",yXe,[tu(r,{modelValue:a.label,"onUpdate:modelValue":e=>a.label=e,placeholder:e.$t("Label"),size:"small"},null,8,["modelValue","onUpdate:modelValue","placeholder"]),tu(r,{modelValue:a.description,"onUpdate:modelValue":e=>a.description=e,type:"textarea",rows:2,placeholder:e.$t("Prompt description (sent to AI)"),size:"small"},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),tu(p,{class:"fs_stroke_btn fs_delete_btn",circle:"",size:"small","aria-label":e.$t("Remove prompt option"),onClick:e=>n.removePreset(i)},{default:br(()=>[tu(u,null,{default:br(()=>[tu(d)],void 0),_:1})],void 0),_:1},8,["aria-label","onClick"])])]),_:1},8,["modelValue","onEnd"]),eu("div",SXe,[tu(p,{class:"fs_subtle_btn",onClick:n.addPreset},{default:br(()=>[su(fe(e.$t("+ Add Prompt Option")),1)],void 0),_:1},8,["onClick"]),tu(p,{class:"fs_subtle_btn",onClick:n.resetToDefaults},{default:br(()=>[su(fe(e.$t("Reset to Defaults")),1)],void 0),_:1},8,["onClick"]),tu(p,{class:"fs_filled_btn",onClick:n.savePresets,loading:s.isSavingPresets},{default:br(()=>[su(fe(e.$t("Save Prompt Options")),1)],void 0),_:1},8,["onClick","loading"])])])])])],void 0),_:1},8,["label"])],void 0),_:1},8,["modelValue"])]))])])}]]),props:!0},{path:"/ai-agents",name:"mcp_settings",component:dH({name:"McpIntegration",data(){return{fetching:!0,loadFailed:!1,toggling:!1,installing:!1,snippetLoading:!1,snippetsLoaded:!1,mcpEnabled:!1,adapterAvailable:!1,toolkitInstalled:!1,toolkitActive:!1,toolkitVersion:null,canAutoInstall:!1,toolkitDownloadUrl:"",pluginsUrl:"",endpointUrl:"",toolsCount:0,appPasswordsUrl:"",username:"",appPassword:"",localDev:!1,activeClient:"claude-code",snippets:{},clients:[{key:"claude-code",label:"Claude Code"},{key:"claude-desktop",label:"Claude Desktop"},{key:"cursor",label:"Cursor"},{key:"codex",label:"Codex"},{key:"generic",label:this.$t("Other")}]}},computed:{activeSnippet(){return this.snippets[this.activeClient]||null},renderedSnippet(){if(!this.activeSnippet||!this.activeSnippet.snippet)return"";let e=this.activeSnippet.snippet;const t=this.username.trim(),a=this.appPassword.trim();if(t&&a){try{const i=btoa(`${t}:${a}`);e=e.split("<base64(your-username:application-password)>").join(i)}catch(i){}e=e.split("<your-username>").join(t),e=e.split("<your-application-password>").join(a)}return e}},methods:{fetchStatus(){return this.fetching=!0,this.loadFailed=!1,this.$get("settings/mcp").then(e=>{this.mcpEnabled=!!e.mcp_enabled,this.adapterAvailable=!!e.adapter_available,this.toolkitInstalled=!!e.toolkit_installed,this.toolkitActive=!!e.toolkit_active,this.toolkitVersion=e.toolkit_version||null,this.canAutoInstall=!!e.can_auto_install,this.toolkitDownloadUrl=e.toolkit_download_url||"",this.pluginsUrl=e.plugins_url||"",this.endpointUrl=e.endpoint_url||"",this.toolsCount=e.tools_count||0,this.appPasswordsUrl=e.app_passwords_url||"",this.localDev=!!e.is_local_dev,e.current_user_login&&!this.username&&(this.username=e.current_user_login)}).catch(e=>{this.loadFailed=!0,this.$handleError(e)}).always(()=>{this.fetching=!1})},handleToggle(e){this.toggling=!0,this.$post("settings/mcp/toggle",{mcp_enabled:e}).then(e=>{this.mcpEnabled=!!e.mcp_enabled,this.$notify({message:e.message,type:"success",position:"bottom-right"}),this.mcpEnabled&&this.adapterAvailable&&!this.snippetsLoaded&&this.loadSnippets()}).catch(t=>{this.mcpEnabled=!e,this.$handleError(t)}).always(()=>{this.toggling=!1})},loadSnippets(){this.snippetLoading=!0,this.$get("settings/mcp/config-snippets",{local_dev:this.localDev?"yes":"no"}).then(e=>{this.snippets=e.snippets||{},this.snippetsLoaded=!0}).catch(e=>{this.$handleError(e)}).always(()=>{this.snippetLoading=!1})},installAdapter(){this.installing=!0,this.$post("settings/mcp/install-adapter",{}).then(e=>{const t=e.adapter_available?"success":"warning";this.$notify({message:e.message,type:t,position:"bottom-right"}),this.toolkitInstalled=!!e.toolkit_installed,this.toolkitActive=!!e.toolkit_active,e.adapter_available?setTimeout(()=>{window.location.reload()},800):this.installing=!1}).catch(e=>{this.$handleError(e),this.installing=!1})},copyEndpoint(){this.$copyToClipboard(this.endpointUrl,this.$t("Endpoint URL copied"))},copySnippet(){this.$copyToClipboard(this.renderedSnippet,this.$t("Connection snippet copied"))}},mounted(){this.$setTitle(this.$t("MCP for AI Agents")),this.fetchStatus().then(()=>{this.mcpEnabled&&this.adapterAvailable&&this.loadSnippets()})}},[["render",function(e,t,a,i,s,n){const o=OL,r=vk,l=VL,c=oC,d=fF,u=mF,p=wR;return Hd(),jd("div",wXe,[eu("div",EXe,[eu("div",CXe,[eu("h3",null,fe(e.$t("MCP for AI Agents")),1)])]),s.fetching?(Hd(),jd("div",kXe,[tu(o,{animated:!0,rows:5})])):s.loadFailed?(Hd(),jd("div",TXe,[eu("p",null,fe(e.$t("Could not load MCP settings. The controls below are hidden until the server state is confirmed.")),1),eu("div",AXe,[tu(r,{type:"primary",size:"small",class:"fs_filled_btn",onClick:n.fetchStatus},{default:br(()=>[su(fe(e.$t("Retry")),1)],void 0),_:1},8,["onClick"])])])):(Hd(),jd("div",RXe,[eu("div",OXe,[eu("div",NXe,[eu("p",IXe,fe(e.$t("Enable MCP for AI Agents")),1),eu("p",DXe,fe(e.$t("When enabled, Fluent Support exposes its tools through the WordPress Abilities API so AI agents can read and update support tickets with your authorization.")),1)]),tu(l,{modelValue:s.mcpEnabled,"onUpdate:modelValue":t[0]||(t[0]=e=>s.mcpEnabled=e),loading:s.toggling,onChange:n.handleToggle},null,8,["modelValue","loading","onChange"])]),t[6]||(t[6]=eu("div",{class:"fs_mcp_divider"},null,-1)),s.mcpEnabled?(Hd(),jd(Pd,{key:0},[s.adapterAvailable?ou("",!0):(Hd(),jd(Pd,{key:0},[eu("p",MXe,fe(e.$t("Fluent Support ships AI agent tools, but they only become available once FluentHub is installed and active.")),1),eu("div",LXe,[s.canAutoInstall?(Hd(),qd(r,{key:0,type:"primary",class:"fs_filled_btn",loading:s.installing,onClick:n.installAdapter},{default:br(()=>[su(fe(s.toolkitInstalled?e.$t("Activate FluentHub"):e.$t("Install FluentHub")),1)],void 0),_:1},8,["loading","onClick"])):(Hd(),jd(Pd,{key:1},[eu("a",{href:s.toolkitDownloadUrl||s.pluginsUrl,target:"_blank",rel:"noopener noreferrer",class:"el-button el-button--primary el-button--default fs_filled_btn"},fe(e.$t("Get FluentHub")),9,PXe),eu("span",FXe,fe(e.$t("Tip: Fluent Support Pro can install it for you in one click.")),1)],64))])],64)),s.adapterAvailable?(Hd(),jd(Pd,{key:1},[eu("div",$Xe,[eu("div",BXe,[eu("span",VXe,fe(e.$t("Adapter")),1),s.toolkitVersion?(Hd(),jd("span",UXe,"FluentHub "+fe(s.toolkitVersion),1)):ou("",!0)]),eu("span",HXe,fe(e.$t("Connected")),1)]),eu("div",zXe,[eu("label",YXe,fe(e.$t("Endpoint URL")),1),tu(c,{"model-value":s.endpointUrl,readonly:""},{append:br(()=>[tu(r,{onClick:n.copyEndpoint},{default:br(()=>[su(fe(e.$t("Copy")),1)],void 0),_:1},8,["onClick"])]),_:1},8,["model-value"]),eu("span",GXe,[eu("strong",null,fe(s.toolsCount),1),su(" "+fe(e.$t("tools registered")),1)])]),t[5]||(t[5]=eu("div",{class:"fs_mcp_divider"},null,-1)),eu("div",WXe,[eu("h4",jXe,fe(e.$t("Connect a client")),1),eu("p",qXe,[su(fe(e.$t("Create a WordPress application password for your account, enter it below, then copy the snippet for your AI client."))+" ",1),eu("a",{href:s.appPasswordsUrl,target:"_blank",rel:"noopener noreferrer"},fe(e.$t("Create an application password")),9,KXe)]),eu("div",XXe,[tu(c,{modelValue:s.username,"onUpdate:modelValue":t[1]||(t[1]=e=>s.username=e),placeholder:e.$t("WordPress username")},null,8,["modelValue","placeholder"]),tu(c,{modelValue:s.appPassword,"onUpdate:modelValue":t[2]||(t[2]=e=>s.appPassword=e),type:"password","show-password":"",placeholder:e.$t("Application password")},null,8,["modelValue","placeholder"])]),tu(u,{modelValue:s.activeClient,"onUpdate:modelValue":t[3]||(t[3]=e=>s.activeClient=e)},{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.clients,e=>(Hd(),qd(d,{key:e.key,label:e.label,name:e.key},null,8,["label","name"]))),128))],void 0),_:1},8,["modelValue"]),"claude-desktop"===s.activeClient?(Hd(),jd("div",QXe,[tu(p,{modelValue:s.localDev,"onUpdate:modelValue":t[4]||(t[4]=e=>s.localDev=e),onChange:n.loadSnippets},{default:br(()=>[su(fe(e.$t("Local / self-signed site (disable TLS verification)")),1)],void 0),_:1},8,["modelValue","onChange"])])):ou("",!0),n.activeSnippet&&n.activeSnippet.instructions?(Hd(),jd("p",ZXe,fe(n.activeSnippet.instructions),1)):ou("",!0),s.snippetLoading?(Hd(),qd(o,{key:2,rows:4,animated:""})):n.activeSnippet?(Hd(),jd(Pd,{key:3},[tu(c,{type:"textarea",rows:7,"model-value":n.renderedSnippet,readonly:""},null,8,["model-value"]),eu("div",JXe,[tu(r,{type:"primary",class:"fs_filled_btn",disabled:!n.renderedSnippet,onClick:n.copySnippet},{default:br(()=>[su(fe(e.$t("Copy snippet")),1)],void 0),_:1},8,["disabled","onClick"])])],64)):ou("",!0)])],64)):ou("",!0)],64)):(Hd(),jd("p",eQe,fe(e.$t("MCP (Model Context Protocol) lets compatible AI clients like Claude Desktop, OpenAI Codex, and Cursor read and write your support data with your authorization. Enable the toggle above to connect an AI client to Fluent Support.")),1))]))])}],["__scopeId","data-v-df6c6233"]])}]},{path:"/mailboxes",component:gEe,name:"mailboxes",meta:{active:"mailboxes"}},{path:"/notifications",name:"notifications",component:$je,meta:{active:""}},{path:"/mailboxes/:box_id",component:zxe,props:!0,meta:{active:"mailboxes"},children:[{props:!0,path:"settings",name:"box_settings",component:PEe},{props:!0,path:"email_settings",name:"email_settings",component:lCe},{props:!0,path:"email_piping",name:"email_piping",component:zCe}]},{path:"/customers",name:"Customers",component:_Se,meta:{active:"customers"}},{path:"/customers/:customer_id",name:"view_customer",component:kxe,props:!0,meta:{active:"customers"}},{path:"/saved-replies",name:"saved_replies",component:PSe,meta:{active:"saved_replies"}},{path:"/reports",name:"reports",component:iYe,meta:{active:"reports"}},{path:"/workflows",name:"workflows",component:HYe,meta:{active:"workflows"}},{path:"/workflows/:workflow_id/edit",name:"edit-workflow",component:$Ge,props:!0,meta:{active:"workflows"}},{path:"/activity",name:"activity",component:QWe,meta:{active:"activity"}},{path:"/help_scout",name:"help_scout",component:qqe,props:!0},{path:"/:catchAll(.*)*",name:"not_found",component:LG,meta:{active:"dashboard"}}],aQe=[px,TS,$x,ax,yx,ZS,tx,Mx,hx,Ex,lx,fS,vS,YS,VS,Px,gx,Rx,Nx,US,Bx,JS,fx,jS,wS,CS,xx,Cx,nx,MS,HS,PS,mS,LS,ex,RS,Lx,QS,kS,_x,WS,yS,dx,DS,gS,NS,xS,Dx,Ix,zS,ux,ox,qS,KS,kx,_S,bS,vx,AS,cx,wx,Tx,Sx,GS,XS,IS,Fx,ix,Ax,BS,SS],iQe=Fh({});[K$,cB,xB,DB,gO,vk,jx,_A,bA,$B,nM,rM,oM].forEach(e=>{iQe.use(e)}),aQe.forEach(e=>{iQe.component(e.name,e)});var sQe=function(e){return"string"==typeof e&&""!==e&&!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)};var nQe=function(e){return"string"==typeof e&&""!==e&&(!/^__/.test(e)&&!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e))};var oQe=function(e,t){return function(a,i,s,n=10){const o=e[t];if(!nQe(a))return;if(!sQe(i))return;if("function"!=typeof s)return;if("number"!=typeof n)return;const r={callback:s,priority:n,namespace:i};if(o[a]){const e=o[a].handlers;let t;for(t=e.length;t>0&&!(n>=e[t-1].priority);t--);t===e.length?e[t]=r:e.splice(t,0,r),o.__current.forEach(e=>{e.name===a&&e.currentIndex>=t&&e.currentIndex++})}else o[a]={handlers:[r],runs:0};"hookAdded"!==a&&e.doAction("hookAdded",a,i,s,n)}};var rQe=function(e,t,a=!1){return function(i,s){const n=e[t];if(!nQe(i))return;if(!a&&!sQe(s))return;if(!n[i])return 0;let o=0;if(a)o=n[i].handlers.length,n[i]={runs:n[i].runs,handlers:[]};else{const e=n[i].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===s&&(e.splice(t,1),o++,n.__current.forEach(e=>{e.name===i&&e.currentIndex>=t&&e.currentIndex--}))}return"hookRemoved"!==i&&e.doAction("hookRemoved",i,s),o}};var lQe=function(e,t){return function(a,i){const s=e[t];return void 0!==i?a in s&&s[a].handlers.some(e=>e.namespace===i):a in s}};var cQe=function(e,t,a,i){return function(s,...n){const o=e[t];o[s]||(o[s]={handlers:[],runs:0}),o[s].runs++;const r=o[s].handlers;if(!r||!r.length)return a?n[0]:void 0;const l={name:s,currentIndex:0};return(i?async function(){try{o.__current.add(l);let e=a?n[0]:void 0;for(;l.currentIndex<r.length;){const t=r[l.currentIndex];e=await t.callback.apply(null,n),a&&(n[0]=e),l.currentIndex++}return a?e:void 0}finally{o.__current.delete(l)}}:function(){try{o.__current.add(l);let e=a?n[0]:void 0;for(;l.currentIndex<r.length;){e=r[l.currentIndex].callback.apply(null,n),a&&(n[0]=e),l.currentIndex++}return a?e:void 0}finally{o.__current.delete(l)}})()}};var dQe=function(e,t){return function(){var a;const i=e[t];return(null==(a=Array.from(i.__current).at(-1))?void 0:a.name)??null}};var uQe=function(e,t){return function(a){const i=e[t];return void 0===a?i.__current.size>0:Array.from(i.__current).some(e=>e.name===a)}};var pQe=function(e,t){return function(a){const i=e[t];if(nQe(a))return i[a]&&i[a].runs?i[a].runs:0}},hQe=class{constructor(){o(this,"actions"),o(this,"filters"),o(this,"addAction"),o(this,"addFilter"),o(this,"removeAction"),o(this,"removeFilter"),o(this,"hasAction"),o(this,"hasFilter"),o(this,"removeAllActions"),o(this,"removeAllFilters"),o(this,"doAction"),o(this,"doActionAsync"),o(this,"applyFilters"),o(this,"applyFiltersAsync"),o(this,"currentAction"),o(this,"currentFilter"),o(this,"doingAction"),o(this,"doingFilter"),o(this,"didAction"),o(this,"didFilter"),this.actions=Object.create(null),this.actions.__current=new Set,this.filters=Object.create(null),this.filters.__current=new Set,this.addAction=oQe(this,"actions"),this.addFilter=oQe(this,"filters"),this.removeAction=rQe(this,"actions"),this.removeFilter=rQe(this,"filters"),this.hasAction=lQe(this,"actions"),this.hasFilter=lQe(this,"filters"),this.removeAllActions=rQe(this,"actions",!0),this.removeAllFilters=rQe(this,"filters",!0),this.doAction=cQe(this,"actions",!1,!1),this.doActionAsync=cQe(this,"actions",!1,!0),this.applyFilters=cQe(this,"filters",!0,!1),this.applyFiltersAsync=cQe(this,"filters",!0,!0),this.currentAction=dQe(this,"actions"),this.currentFilter=dQe(this,"filters"),this.doingAction=uQe(this,"actions"),this.doingFilter=uQe(this,"filters"),this.didAction=pQe(this,"actions"),this.didFilter=pQe(this,"filters")}};var gQe=function(){return new hQe}(),{addAction:mQe,addFilter:fQe,removeAction:_Qe,removeFilter:bQe,hasAction:vQe,hasFilter:yQe,removeAllActions:SQe,removeAllFilters:xQe,doAction:wQe,doActionAsync:EQe,applyFilters:CQe,applyFiltersAsync:kQe,currentAction:TQe,currentFilter:AQe,doingAction:RQe,doingFilter:OQe,didAction:NQe,didFilter:IQe,actions:DQe,filters:MQe}=gQe,LQe={exports:{}};LQe.exports=function(e,t,a){e=e||{};var i=t.prototype,s={future:"in %s",past:"%s ago",s:"a few 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"};function n(e,t,a,s){return i.fromToBase(e,t,a,s)}a.en.relativeTime=s,i.fromToBase=function(t,i,n,o,r){for(var l,c,d,u=n.$locale().relativeTime||s,p=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=p.length,g=0;g<h;g+=1){var m=p[g];m.d&&(l=o?a(t).diff(n,m.d,!0):n.diff(t,m.d,!0));var f=(e.rounding||Math.round)(Math.abs(l));if(d=l>0,f<=m.r||!m.r){f<=1&&g>0&&(m=p[g-1]);var _=u[m.l];r&&(f=r(""+f)),c="string"==typeof _?_.replace("%d",f):_(f,i,m.l,d);break}}if(i)return c;var b=d?u.future:u.past;return"function"==typeof b?b(c):b.replace("%s",c)},i.to=function(e,t){return n(e,t,this,!0)},i.from=function(e,t){return n(e,t,this)};var o=function(e){return e.$u?a.utc():a()};i.toNow=function(e){return this.to(o(this),e)},i.fromNow=function(e){return this.from(o(this),e)}};const PQe=Ak(LQe.exports);var FQe={exports:{}};FQe.exports=function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(i,s,n){var o=s.prototype;n.utc=function(e){return new s({date:e,utc:!0,args:arguments})},o.utc=function(t){var a=n(this.toDate(),{locale:this.$L,utc:!0});return t?a.add(this.utcOffset(),e):a},o.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var r=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),r.call(this,e)};var l=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=o.utcOffset;o.utcOffset=function(i,s){var n=this.$utils().u;if(n(i))return this.$u?0:n(this.$offset)?c.call(this):this.$offset;if("string"==typeof i&&null===(i=function(e){void 0===e&&(e="");var i=e.match(t);if(!i)return null;var s=(""+i[0]).match(a)||["-",0,0],n=s[0],o=60*+s[1]+ +s[2];return 0===o?0:"+"===n?o:-o}(i)))return this;var o=Math.abs(i)<=16?60*i:i;if(0===o)return this.utc(s);var r=this.clone();if(s)return r.$offset=o,r.$u=!1,r;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(r=this.local().add(o+l,e)).$offset=o,r.$x.$localOffset=l,r};var d=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var u=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var p=o.diff;o.diff=function(e,t,a){if(e&&this.$u===e.$u)return p.call(this,e,t,a);var i=this.local(),s=n(e).local();return p.call(i,s,t,a)}}}();const $Qe=Ak(FQe.exports);!function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(e),i={name:"en-gb",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("_"),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("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few 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"},formats:{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"},ordinal:function(e){var t=["th","st","nd","rd"],a=e%100;return"["+e+(t[(a-20)%10]||t[a]||t[0])+"]"}};a.default.locale(i,null,!0)}(Nk),Ik.extend(PQe),Ik.extend($Qe),Ik.extend(GI),Ik.locale("en-gb");const BQe=new Date;const VQe={class:"fs_color_mode"},UQe={class:"fs_color_mode_core fs_menu_button"},HQe={class:"fs_color_mode_action"};const zQe=dH({name:"ColorMode",components:{IconPack:$z},data:()=>({currentTheme:r.getCurrentTheme(),themeOptions:[{value:r.MODE_LIGHT,label:"Light"},{value:r.MODE_DARK,label:"Dark"},{value:r.MODE_SYSTEM,label:"System"}]}),methods:{handleThemeChange(e){this.currentTheme!==e&&(this.currentTheme=e,r.apply(e))}}},[["render",function(e,t,a,i,s,n){const o=Zl("IconPack"),r=oM,l=rM,c=nM;return Hd(),jd("div",VQe,[tu(c,{placement:"bottom-end",trigger:"click","popper-class":"fs_theme_dropdown",onCommand:n.handleThemeChange},{dropdown:br(()=>[tu(l,null,{default:br(()=>[(Hd(!0),jd(Pd,null,sc(s.themeOptions,e=>(Hd(),qd(r,{key:e.value,command:e.value,class:ne({"is-active":s.currentTheme===e.value})},{default:br(()=>[tu(o,{"icon-key":"theme_"+e.value,width:"16",height:"16"},null,8,["icon-key"]),su(" "+fe(e.label),1)],void 0),_:2},1032,["command","class"]))),128))],void 0),_:1})]),default:br(()=>[eu("div",UQe,[eu("span",HQe,[tu(o,{"icon-key":"theme_"+s.currentTheme,width:"20",height:"20"},null,8,["icon-key"])])])],void 0),_:1},8,["onCommand"])])}]]),YQe={key:0,class:"fs_box_header"},GQe={class:"fs_box_head"},WQe={class:"fs_save_settings_container"},jQe={key:1,class:"fs_dialog_footer fs_text_right"};const qQe={name:"NotificationsPop",components:{InternalNotifications:dH({name:"InternalNotifications",components:{FormBuilder:ure},props:{settingsScope:{type:String,default:"enable"},displayMode:{type:String,default:"page"}},emits:["updated"],data:()=>({settings:{},fields:{},fetching:!1,saving:!1,appReady:!1,settingsKey:"_internal_notification_settings"}),computed:{isModal(){return"modal"===this.displayMode},rootClass(){return this.isModal?"fs_internal_notification_settings_modal":"fs_box_wrapper"},bodyClass(){return this.isModal?"fs_internal_notification_settings_modal_body":"fs_box_body fs_business_settings_wrapper"},skeletonClass(){return this.isModal?"fs_internal_notification_settings_modal_body fs_skeleton_loader":"fs_box_body fs_skeleton_loader"},pageTitle(){return"preferences"===this.settingsScope?this.$t("Notification Settings"):this.$t("Internal Notifications")},visibleFields(){const e={...this.fields};return"preferences"===this.settingsScope?(delete e.enabled,{mention_notifications:this.mentionNotificationField(),...e}):e.enabled?{enabled:e.enabled}:{}}},methods:{fetchSettings(){this.fetching=!0,this.$get("settings",{settings_key:this.settingsKey,with:["fields"]}).then(e=>{this.settings=e.settings||{},this.settings.mention_notifications="yes",this.fields=e.fields||{},this.appReady=!0}).catch(e=>{this.$handleError(e)}).always(()=>{this.fetching=!1})},saveSettings(){this.saving=!0;const e=this.sanitizedSettings();this.$post("settings",{settings_key:this.settingsKey,settings:e}).then(t=>{var a,i;window.fluentSupportAdmin.internal_notification_settings={...e},window.dispatchEvent(new CustomEvent("fluent_support_internal_notification_settings_changed",{detail:{settings:window.fluentSupportAdmin.internal_notification_settings}})),null==(i=(a=window.fluentSupportAdmin).refreshNotificationPolling)||i.call(a),this.$notify({type:"success",message:t.message,position:"bottom-right"}),this.$emit("updated")}).catch(e=>{this.$handleError(e)}).always(()=>{this.saving=!1})},mentionNotificationField(){return{type:"inline-checkbox",true_label:"yes",false_label:"no",checkbox_label:this.$t("Enable Mention Notification"),disabled:!0,help:this.$t("Agents will receive notifications when they are mentioned in replies or internal notes. This cannot be disabled from these settings.")}},sanitizedSettings(){const e={...this.settings};return delete e.mention_notifications,e}},mounted(){this.fetchSettings(),this.isModal||this.$setTitle(this.pageTitle)}},[["render",function(e,t,a,i,s,n){const o=vk,r=Zl("form-builder"),l=OL,c=q$;return Hd(),jd("div",{class:ne(n.rootClass)},[n.isModal?ou("",!0):(Hd(),jd("div",YQe,[eu("div",GQe,[eu("h3",null,fe(n.pageTitle),1),eu("div",WQe,[tu(o,{size:"default",type:"success",class:"fs_save_settings_btn",loading:s.saving,onClick:n.saveSettings},{default:br(()=>[su(fe(e.$t("Save Settings")),1)],void 0),_:1},8,["loading","onClick"])])])])),s.fetching?(Hd(),jd("div",{key:2,class:ne(n.skeletonClass)},[tu(l,{rows:6,animated:""})],2)):vr((Hd(),jd("div",{key:1,class:ne(n.bodyClass)},[s.appReady?(Hd(),qd(r,{key:0,fields:n.visibleFields,"form-data":s.settings,label_position:"top"},null,8,["fields","form-data"])):ou("",!0),n.isModal?(Hd(),jd("div",jQe,[vr((Hd(),qd(o,{disabled:s.saving,type:"success",onClick:n.saveSettings,class:"fs_filled_btn"},{default:br(()=>[su(fe(e.$t("Update Settings")),1)],void 0),_:1},8,["disabled","onClick"])),[[c,s.saving]])])):ou("",!0)],2)),[[c,s.saving]])],2)}]]),NotificationItem:_je,Setting:Cx},data(){var e,t;return{visible:!1,settingsModalVisible:!1,selectedCategory:"all",internalNotificationsEnabled:"yes"===(null==(t=null==(e=window.fluentSupportAdmin)?void 0:e.internal_notification_settings)?void 0:t.enabled)}},computed:{...Aj(nje,{notifications:"unreadNotifications",unreadCount:"unreadCount",loading:"unreadLoading",working:"working",categories:"notificationCategories"})},methods:{async handleShow(){await this.refreshUnread()},async refreshUnread(){const e=nje();try{await e.fetchUnread({category:this.selectedCategory,limit:8})}catch(t){this.$handleError(t)}},async switchCategory(e){this.selectedCategory=e,await this.refreshUnread()},async markRead(e){const t=nje();try{await t.markAsRead(e.id)}catch(a){this.$handleError(a)}},async handleMarkAllRead(){const e=nje();try{await e.markAllAsRead()}catch(t){this.$handleError(t)}},async openNotification(e){e.is_read||await this.markRead(e),this.visible=!1,e.ticket_id?this.$router.push({name:"view_ticket",params:{ticket_id:e.ticket_id}}):this.$router.push({name:"notifications"})},gotoNotifications(){this.visible=!1,this.$router.push({name:"notifications"})},openNotificationSettings(){this.visible=!1,this.settingsModalVisible=!0},handleSettingsChanged(e){var t,a;const i=(null==(t=e.detail)?void 0:t.settings)||(null==(a=window.fluentSupportAdmin)?void 0:a.internal_notification_settings)||{};this.internalNotificationsEnabled="yes"===i.enabled,this.internalNotificationsEnabled||(this.visible=!1,this.settingsModalVisible=!1)}},mounted(){window.addEventListener("fluent_support_internal_notification_settings_changed",this.handleSettingsChanged)},beforeUnmount(){window.removeEventListener("fluent_support_internal_notification_settings_changed",this.handleSettingsChanged)}},KQe={key:0,class:"fs_nav_item fs_item_notifications"},XQe=["aria-label"],QQe={key:0,class:"fs_notifications_badge"},ZQe={class:"fs_notifications_pop"},JQe={class:"fs_notifications_pop_header"},eZe={class:"fs_notifications_pop_header_actions"},tZe=["aria-label"],aZe={class:"fs_notifications_tabs"},iZe={class:"fs_notifications_tabs_list"},sZe=["onClick"],nZe={class:"fs_notifications_pop_body"},oZe={key:0,class:"fs_notifications_loading"},rZe={key:1,class:"fs_notifications_list"},lZe={key:2,class:"fs_notifications_empty"},cZe={class:"fs_notifications_pop_footer"};const dZe=dH(qQe,[["render",function(e,t,a,i,s,n){const o=Zl("Setting"),r=jx,l=vk,c=OL,d=Zl("NotificationItem"),u=$B,p=Zl("InternalNotifications"),h=pD;return s.internalNotificationsEnabled?(Hd(),jd("li",KQe,[tu(u,{visible:s.visible,"onUpdate:visible":t[1]||(t[1]=e=>s.visible=e),"popper-class":"fs_notifications_popover",placement:"bottom-end",width:500,trigger:"click",onShow:n.handleShow},{reference:br(()=>[eu("button",{class:"fs_notifications_trigger",type:"button","aria-label":e.$t("Notifications")},[t[4]||(t[4]=eu("svg",{width:"19",height:"19",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[eu("path",{d:"M10 2.5C7.92894 2.5 6.25 4.17894 6.25 6.25V8.3975C6.25 9.12875 5.99125 9.83625 5.52 10.395L4.0145 12.1812C3.815 12.4175 3.77225 12.745 3.90425 13.025C4.03625 13.305 4.31825 13.4837 4.62875 13.4837H15.3712C15.6817 13.4837 15.9637 13.305 16.0957 13.025C16.2277 12.745 16.185 12.4175 15.9855 12.1812L14.48 10.395C14.0087 9.83625 13.75 9.12875 13.75 8.3975V6.25C13.75 4.17894 12.0711 2.5 10 2.5ZM8.5 15.25C8.5 16.0784 9.17157 16.75 10 16.75C10.8284 16.75 11.5 16.0784 11.5 15.25",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),e.unreadCount?(Hd(),jd("span",QQe,fe(e.unreadCount>99?"99+":e.unreadCount),1)):ou("",!0)],8,XQe)]),default:br(()=>[eu("div",ZQe,[eu("div",JQe,[eu("h3",null,fe(e.$t("Unread Notifications")),1),eu("div",eZe,[eu("button",{class:"fs_notifications_settings_btn",type:"button","aria-label":e.$t("Notification Settings"),onClick:t[0]||(t[0]=(...e)=>n.openNotificationSettings&&n.openNotificationSettings(...e))},[tu(r,null,{default:br(()=>[tu(o)],void 0),_:1})],8,tZe),tu(l,{size:"small",loading:e.working,disabled:e.working||!e.unreadCount,onClick:n.handleMarkAllRead},{default:br(()=>[su(fe(e.$t("Mark all as read")),1)],void 0),_:1},8,["loading","disabled","onClick"])])]),eu("div",aZe,[eu("ul",iZe,[(Hd(!0),jd(Pd,null,sc(e.categories,e=>(Hd(),jd("li",{key:e.key},[eu("button",{type:"button",class:ne(["fs_notifications_tab",{"is-active":s.selectedCategory===e.key}]),onClick:t=>n.switchCategory(e.key)},fe(e.label),11,sZe)]))),128))])]),eu("div",nZe,[e.loading?(Hd(),jd("div",oZe,[tu(c,{rows:3,animated:""})])):e.notifications.length?(Hd(),jd("div",rZe,[(Hd(!0),jd(Pd,null,sc(e.notifications,e=>(Hd(),qd(d,{key:e.id,notification:e,onOpen:n.openNotification,onMarkRead:n.markRead},null,8,["notification","onOpen","onMarkRead"]))),128))])):(Hd(),jd("div",lZe,fe(e.$t("No unread notifications found")),1))]),eu("div",cZe,[tu(l,{class:"fs_outline_btn",onClick:n.gotoNotifications},{default:br(()=>[su(fe(e.$t("View All")),1)],void 0),_:1},8,["onClick"])])])],void 0),_:1},8,["visible","onShow"]),tu(h,{modelValue:s.settingsModalVisible,"onUpdate:modelValue":t[3]||(t[3]=e=>s.settingsModalVisible=e),title:e.$t("Notification Settings"),width:"60%","append-to-body":!0,class:"fs_dialog"},{default:br(()=>[tu(p,{"settings-scope":"preferences","display-mode":"modal",onUpdated:t[2]||(t[2]=e=>s.settingsModalVisible=!1)})],void 0),_:1},8,["modelValue","title"])])):ou("",!0)}]]),uZe=function(e){const t=z_e(e.routes,e),a=e.parseQuery||m_e,i=e.stringifyQuery||f_e,s=e.history,n=w_e(),o=w_e(),r=w_e(),l=_o(e_e);let c=e_e;Sfe&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Efe.bind(null,e=>""+e),u=Efe.bind(null,Gfe),p=Efe.bind(null,Wfe);function h(e,n){if(n=wfe({},n||l.value),"string"==typeof e){const i=qfe(a,e,n.path),o=t.resolve({path:i.path},n),r=s.createHref(i.fullPath);return wfe(i,o,{params:p(o.params),hash:Wfe(i.hash),redirectedFrom:void 0,href:r})}let o;if(null!=e.path)o=wfe({},e,{path:qfe(a,e.path,n.path).path});else{const t=wfe({},e.params);for(const e in t)null==t[e]&&delete t[e];o=wfe({},e,{params:u(t)}),n.params=u(n.params)}const r=t.resolve(o,n),c=e.hash||"";r.params=d(p(r.params));const h=function(e,t){const a=t.query?e(t.query):"";return t.path+(a&&"?")+a+(t.hash||"")}(i,wfe({},e,{hash:(g=c,Hfe(g).replace($fe,"{").replace(Vfe,"}").replace(Pfe,"^")),path:r.path}));var g;const m=s.createHref(h);return wfe({fullPath:h,hash:c,query:i===f_e?__e(e.query):e.query||{}},r,{redirectedFrom:void 0,href:m})}function g(e){return"string"==typeof e?qfe(a,e,l.value.path):wfe({},e)}function m(e,t){if(c!==e)return h_e(u_e.NAVIGATION_CANCELLED,{from:t,to:e})}function f(e){return b(e)}function _(e,t){const a=e.matched[e.matched.length-1];if(a&&a.redirect){const{redirect:i}=a;let s="function"==typeof i?i(e,t):i;return"string"==typeof s&&(s=s.includes("?")||s.includes("#")?s=g(s):{path:s},s.params={}),wfe({query:e.query,hash:e.hash,params:null!=s.path?{}:e.params},s)}}function b(e,t){const a=c=h(e),s=l.value,n=e.state,o=e.force,r=!0===e.replace,d=_(a,s);if(d)return b(wfe(g(d),{state:"object"==typeof d?wfe({},n,d.state):n,force:o,replace:r}),t||a);const u=a;let p;return u.redirectedFrom=t,!o&&function(e,t,a){const i=t.matched.length-1,s=a.matched.length-1;return i>-1&&i===s&&Xfe(t.matched[i],a.matched[s])&&Qfe(t.params,a.params)&&e(t.query)===e(a.query)&&t.hash===a.hash}(i,s,a)&&(p=h_e(u_e.NAVIGATION_DUPLICATED,{to:u,from:s}),N(s,s,!0,!1)),(p?Promise.resolve(p):S(u,s)).catch(e=>g_e(e)?g_e(e,u_e.NAVIGATION_GUARD_REDIRECT)?e:O(e):R(e,u,s)).then(e=>{if(e){if(g_e(e,u_e.NAVIGATION_GUARD_REDIRECT))return b(wfe({replace:r},g(e.to),{state:"object"==typeof e.to?wfe({},n,e.to.state):n,force:o}),t||u)}else e=w(u,s,!0,r,n);return x(u,s,e),e})}function v(e,t){const a=m(e,t);return a?Promise.reject(a):Promise.resolve()}function y(e){const t=M.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function S(e,t){let a;const[i,s,r]=function(e,t){const a=[],i=[],s=[],n=Math.max(t.matched.length,e.matched.length);for(let o=0;o<n;o++){const n=t.matched[o];n&&(e.matched.find(e=>Xfe(e,n))?i.push(n):a.push(n));const r=e.matched[o];r&&(t.matched.find(e=>Xfe(e,r))||s.push(r))}return[a,i,s]}(e,t);a=C_e(i.reverse(),"beforeRouteLeave",e,t);for(const n of i)n.leaveGuards.forEach(i=>{a.push(E_e(i,e,t))});const l=v.bind(null,e,t);return a.push(l),P(a).then(()=>{a=[];for(const i of n.list())a.push(E_e(i,e,t));return a.push(l),P(a)}).then(()=>{a=C_e(s,"beforeRouteUpdate",e,t);for(const i of s)i.updateGuards.forEach(i=>{a.push(E_e(i,e,t))});return a.push(l),P(a)}).then(()=>{a=[];for(const i of r)if(i.beforeEnter)if(kfe(i.beforeEnter))for(const s of i.beforeEnter)a.push(E_e(s,e,t));else a.push(E_e(i.beforeEnter,e,t));return a.push(l),P(a)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),a=C_e(r,"beforeRouteEnter",e,t,y),a.push(l),P(a))).then(()=>{a=[];for(const i of o.list())a.push(E_e(i,e,t));return a.push(l),P(a)}).catch(e=>g_e(e,u_e.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function x(e,t,a){r.list().forEach(i=>y(()=>i(e,t,a)))}function w(e,t,a,i,n){const o=m(e,t);if(o)return o;const r=t===e_e,c=Sfe?history.state:{};a&&(i||r?s.replace(e.fullPath,wfe({scroll:r&&c&&c.scroll},n)):s.push(e.fullPath,n)),l.value=e,N(e,t,a,r),O()}let E;function C(){E||(E=s.listen((e,t,a)=>{if(!L.listening)return;const i=h(e),n=_(i,L.currentRoute.value);if(n)return void b(wfe(n,{replace:!0,force:!0}),i).catch(Cfe);c=i;const o=l.value;var r,d;Sfe&&(r=l_e(o.fullPath,a.delta),d=o_e(),c_e.set(r,d)),S(i,o).catch(e=>g_e(e,u_e.NAVIGATION_ABORTED|u_e.NAVIGATION_CANCELLED)?e:g_e(e,u_e.NAVIGATION_GUARD_REDIRECT)?(b(wfe(g(e.to),{force:!0}),i).then(e=>{g_e(e,u_e.NAVIGATION_ABORTED|u_e.NAVIGATION_DUPLICATED)&&!a.delta&&a.type===t_e.pop&&s.go(-1,!1)}).catch(Cfe),Promise.reject()):(a.delta&&s.go(-a.delta,!1),R(e,i,o))).then(e=>{(e=e||w(i,o,!1))&&(a.delta&&!g_e(e,u_e.NAVIGATION_CANCELLED)?s.go(-a.delta,!1):a.type===t_e.pop&&g_e(e,u_e.NAVIGATION_ABORTED|u_e.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),x(i,o,e)}).catch(Cfe)}))}let k,T=w_e(),A=w_e();function R(e,t,a){O(e);const i=A.list();return i.length&&i.forEach(i=>i(e,t,a)),Promise.reject(e)}function O(e){return k||(k=!e,C(),T.list().forEach(([t,a])=>e?a(e):t()),T.reset()),e}function N(t,a,i,s){const{scrollBehavior:n}=e;if(!Sfe||!n)return Promise.resolve();const o=!i&&function(e){const t=c_e.get(e);return c_e.delete(e),t}(l_e(t.fullPath,0))||(s||!i)&&history.state&&history.state.scroll||null;return ar().then(()=>n(t,a,o)).then(e=>e&&r_e(e)).catch(e=>R(e,t,a))}const I=e=>s.go(e);let D;const M=new Set,L={currentRoute:l,listening:!0,addRoute:function(e,a){let i,s;return d_e(e)?(i=t.getRecordMatcher(e),s=a):s=e,t.addRoute(s,i)},removeRoute:function(e){const a=t.getRecordMatcher(e);a&&t.removeRoute(a)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:h,options:e,push:f,replace:function(e){return f(wfe(g(e),{replace:!0}))},go:I,back:()=>I(-1),forward:()=>I(1),beforeEach:n.add,beforeResolve:o.add,afterEach:r.add,onError:A.add,isReady:function(){return k&&l.value!==e_e?Promise.resolve():new Promise((e,t)=>{T.add([e,t])})},install(e){e.component("RouterLink",Q_e),e.component("RouterView",abe),e.config.globalProperties.$router=L,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>So(l)}),Sfe&&!D&&l.value===e_e&&(D=!0,f(s.location).catch(e=>{}));const t={};for(const i in e_e)Object.defineProperty(t,i,{get:()=>l.value[i],enumerable:!0});e.provide(y_e,L),e.provide(S_e,ao(t)),e.provide(x_e,l);const a=e.unmount;M.add(e),e.unmount=function(){M.delete(e),M.size<1&&(c=e_e,E&&E(),E=null,l.value=e_e,D=!1,k=!1),a()}}};function P(e){return e.reduce((e,t)=>e.then(()=>y(t)),Promise.resolve())}return L}({history:((pZe=location.host?pZe||location.pathname+location.search:"").includes("#")||(pZe+="#"),R_e(pZe)),routes:tQe});var pZe;const hZe=new class{constructor(){this.doAction=wQe,this.addFilter=fQe,this.addAction=mQe,this.applyFilters=CQe,this.removeAllActions=SQe,this.$rest=Oj,this.appVars=window.fluentSupportAdmin,this.app=this.extendVueConstructor()}extendVueConstructor(){const e=this;return iQe.mixin({methods:{addFilter:fQe,applyFilters:CQe,doAction:wQe,addAction:mQe,removeAllActions:SQe,longLocalDate:e.longLocalDate,longLocalDateTime:e.longLocalDateTime,dateTimeFormat:e.dateTimeFormat,localDate:e.localDate,ucFirst:e.ucFirst,ucWords:e.ucWords,slugify:e.slugify,$dayjs:Ik,$get:e.$get,$post:e.$post,$del:e.$del,$put:e.$put,$patch:e.$patch,$handleError:e.handleError,$saveData:e.saveData,$getData:e.getData,$removeData:e.removeData,$timeDiff:e.humanDiffTime,$waitingTime:e.waitingTime,convertToText:e.convertToText,getCurrencySymbol:e.getCurrencySymbol,smartDate:e.smartDate,$copyToClipboard:e.copyToClipboard,$notify:e.notify,$confirm:e.confirm,$scrollToRef:e.scrollToRef,$getSourceIcon:e.getSourceIcon,$setTitle(e){document.title=e},$t:e=>window.window.fluentSupportAdmin.i18n[e]||e,renewOptions(t){this.$get(t).then(t=>{t.option_key&&(e.appVars[t.option_key]=t.options)})}}}),iQe}getExtraComponents(){return{"ticket-header":{template:"<h1>OK</h1>"}}}registerBlock(e,t,a){this.addFilter(e,this.appVars.slug,function(e){return e[t]=a,e})}registerTopMenu(e,t){e&&t.name&&t.path&&t.component&&(this.addFilter("fluent_framework_top_menus",this.appVars.slug,function(a){return(a=a.filter(e=>e.route!==t.name)).push({route:t.name,title:e}),a}),this.addFilter("fluent_framework_global_routes",this.appVars.slug,function(e){return(e=e.filter(e=>e.name!==t.name)).push(t),e}))}$get(e,t={}){return Oj.get(e,t)}$post(e,t={}){return Oj.post(e,t)}$del(e,t={}){return Oj.delete(e,t)}$put(e,t={}){return Oj.put(e,t)}$patch(e,t={}){return Oj.patch(e,t)}dateTimeFormat(e,t){const a=Ik(void 0===e?null:e);return a.isValid()?a.format(t):null}localDate(e){return Ik.utc(e).local()}longLocalDate(e){return this.dateTimeFormat(e,"ddd, DD MMM, YYYY")}saveData(e,t){let a=window.localStorage.getItem("__fluentsupport_data");a=a?JSON.parse(a):{},a[e]=t,window.localStorage.setItem("__fluentsupport_data",JSON.stringify(a))}getData(e,t=!1){let a=window.localStorage.getItem("__fluentsupport_data");return a=JSON.parse(a),a&&a[e]?a[e]:t}removeData(e){let t=window.localStorage.getItem("__fluentsupport_data");if(!t)return[];t=JSON.parse(t),delete t[e],window.localStorage.setItem("__fluentsupport_data",JSON.stringify(t))}longLocalDateTime(e){return this.dateTimeFormat(e,"ddd, DD MMM, YYYY hh:mm:ssa")}ucFirst(e){return e&&"string"==typeof e?e[0].toUpperCase()+e.slice(1).toLowerCase():""}ucWords(e){return(e+"").replace(/^(.)|\s+(.)/g,function(e){return e.toUpperCase()})}slugify(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\\-]+/g,"").replace(/\\-\\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}handleError(e){e.responseJSON&&(e=e.responseJSON);let t="";t="string"==typeof e?e:e&&e.message?e.message:this.convertToText(e),t||(t="Something is wrong!");const a=t.split("<br />"),i=a.length>1?Lu("div",a.filter(Boolean).map(e=>Lu("p",{style:"margin: 0"},e))):t;this.$notify({type:"error",title:"Error",message:i,position:"bottom-right"})}convertToText(e){const t=[];if("object"==typeof e&&void 0===e.join)for(const a in e)t.push(this.convertToText(e[a]));else if("object"==typeof e&&void 0!==e.join)for(const a in e)t.push(this.convertToText(e[a]));else"function"==typeof e||"string"==typeof e&&t.push(e);return t.join("<br />")}humanDiffTime(e){const t=void 0===e?null:e;if(!t)return"";const a=new Date-BQe;return Ik(t).from(Ik(window.fluentSupportAdmin.server_time).add(a,"milliseconds"))}waitingTime(e,t){return t&&e?(e=Ik(e),(t=Ik(t)).from(e)):""}getCurrencySymbol(e){return{USD:"$",EUR:"€",GBP:"£",JPY:"¥",CNY:"¥",KRW:"₩",INR:"₹",CAD:"C$",AUD:"A$",CHF:"CHF",SEK:"kr",NOK:"kr",DKK:"kr",PLN:"zł",CZK:"Kč",HUF:"Ft",RUB:"₽",BRL:"R$",MXN:"$",ZAR:"R",SGD:"S$",HKD:"HK$",NZD:"NZ$",THB:"฿",MYR:"RM",PHP:"₱",IDR:"Rp",VND:"₫",TRY:"₺",ILS:"₪",AED:"د.إ",SAR:"ر.س",EGP:"ج.م",NGN:"₦",KES:"KSh",GHS:"₵",XOF:"CFA",XAF:"FCFA",MAD:"د.م.",TND:"د.ت",DZD:"د.ج",LYD:"ل.د",SDG:"ج.س.",ETB:"Br",UGX:"USh",TZS:"TSh",RWF:"RF",MWK:"MK",ZMW:"ZK",BWP:"P",SZL:"L",LSL:"L",NAD:"N$",MZN:"MT",AOA:"Kz",CVE:"$",GMD:"D",GNF:"FG",LRD:"L$",SLL:"Le",STD:"Db"}[e]||e}smartDate(e,t=!1){if(!e)return"";let a="D MMM, YYYY";Ik(e).isSame(new Date,"year")&&(a="D MMM",t&&(a="D MMM, hh:mm a"));const i=Ik(e);return i.isValid()?i.format(a):null}copyToClipboard(e,t="Copied to clipboard!",a="Failed to copy to clipboard"){const i=this.$notify||this.notify;return"function"!=typeof i?Promise.resolve(!1):e?navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(e).then(()=>(i({type:"success",title:"Success",message:t,position:"bottom-right"}),!0)).catch(e=>(i({type:"error",title:"Error",message:a,position:"bottom-right"}),!1)):(i({type:"error",title:"Error",message:"Copy to clipboard requires HTTPS",position:"bottom-right"}),Promise.resolve(!1)):(i({type:"warning",title:"Warning",message:"Nothing to copy",position:"bottom-right"}),Promise.resolve(!1))}notify(e){DB({position:e.position||"bottom-right",...e})}confirm(e){return xB.confirm(e.message,e.title,e.options)}scrollToRef(e){e&&e.scrollIntoView({behavior:"smooth"})}getSourceIcon(e){if(!e)return null;const t="source"+this.ucFirst(e)+".svg";return window.fluentSupportAdmin.asset_url+"images/"+t}};hZe.app.component("color-mode",zQe),hZe.app.component("fs-notifications-pop",dZe),hZe.app.config.globalProperties.appVars=to(window.fluentSupportAdmin),hZe.app.config.globalProperties.has_pro=window.fluentSupportAdmin.has_pro,window.fluentSupportAdmin&&(window.fluentSupportAdmin.hooks={addFilter:hZe.addFilter,applyFilters:hZe.applyFilters,addAction:hZe.addAction,doAction:hZe.doAction,removeAllActions:hZe.removeAllActions}),hZe.app.config.globalProperties.is_mobile=window.innerWidth<769;const gZe=function(){const e=Us(!0),t=e.run(()=>fo({}));let a=[],i=[];const s=po({install(e){dj(s),s._a=e,e.provide(uj,s),e.config.globalProperties.$pinia=s,i.forEach(e=>a.push(e)),i=[]},use(e){return this._a?a.push(e):i.push(e),this},_p:a,_a:null,_e:e,_s:new Map,state:t});return s}();window.fluentSupportAppp=hZe.app.use(gZe).use(uZe).mount("#alpha_app");const mZe=nje(gZe);let fZe=null;const _Ze=()=>{mZe.fetchUnreadCount().catch(()=>{})},bZe=()=>{var e,t;fZe&&clearInterval(fZe),"yes"===(null==(t=null==(e=window.fluentSupportAdmin)?void 0:e.internal_notification_settings)?void 0:t.enabled)&&(_Ze(),fZe=setInterval(_Ze,(()=>{const e=parseInt(hZe.applyFilters("fluent_support_internal_notification_polling_interval",60),10);return Number.isNaN(e)?6e4:1e3*Math.max(30,Math.min(300,e))})()))};function vZe(e){var t;jQuery(".fs_nav_item").removeClass("current"),jQuery(".fframe_menu_item").removeClass("fs_active");let a=null==(t=e.meta)?void 0:t.active;a&&(jQuery(".fs_nav_item[data-key="+a+"]").addClass("current"),jQuery(".fframe_main-menu-items").find("li[data-key="+a+"]").addClass("fs_active"))}window.fluentSupportAdmin.refreshNotificationPolling=bZe,bZe(),setTimeout(()=>{!function(){if(!document.querySelector(".fs_main_navbar"))return;const e=()=>{document.querySelector(".fs_main_navbar");const e=document.querySelector("#alpha_app");e&&((window.scrollY||window.pageYOffset||document.documentElement.scrollTop||0)>10?e.classList.add("fs-scroll-header"):e.classList.remove("fs-scroll-header"))};window.addEventListener("scroll",e,{passive:!0}),e()}()},100),uZe.afterEach((e,t)=>{vZe(e)}),uZe.isReady().then(()=>{vZe(uZe.currentRoute.value)}),window.fluentSupportAdmin.is_frontend&&jQuery("body").addClass("has_fluent_support"),setInterval(()=>{window.fluentSupportAppp.$get("tickets/ping")},3e4),window.location.hash.includes("setup")&&jQuery(".fframe_main-menu-items").hide(); |